Javascript SDK for TVM blockchains (Everscale, TON, Venom, etc)
APACHE-2.0 License
Published by d3p about 2 years ago
OVERRIDE_TS
, OVERRIDE_EXPT
, ASYNC_CALL
for external messages in DEngine.Published by d3p about 2 years ago
crypto.encryption_box_get_info
returns nacl box public key in info.public
field.create_crypto_box
optimisation.scrypt
function which takes a lot of CPU time (about 1 second).Published by d3p about 2 years ago
cache_unpin
function calls.Published by d3p about 2 years ago
config.network.access_key
as Authorization: Basic ...
or Authorization: Bearer ...
header./graphql
suffixes specified in config.lib-web
option disableSeparateWorker
. By default, lib web starts a separate worker that will utilize core (wasm).libWebSetup({disableSeparateWorker: true})
.Published by d3p over 2 years ago
Published by d3p over 2 years ago
address
is added to abi.encode_message_body
functionutils.compress_zstd
and utils.decompress_zstd
functions in WASMPublished by d3p over 2 years ago
abi
module errors have been improvedPublished by d3p over 2 years ago
chksig_always_succeed
execution option used in params of the tvm.run_get
, tvm.run_tvm
tvm.run_executor
.abi.calc_function_id
functiontokio
library is updated to 1.* versionPublished by d3p over 2 years ago
accessKey
header in api requests (specified in config.network.accessKey
)info
api requestsPublished by d3p over 2 years ago
Published by d3p over 2 years ago
ton_types::Cell
Published by d3p over 2 years ago
client.config
function that returns the current client config
run_executor().fees
is extended with these fields:
ext_in_msg_fee
- fee for processing external inbound messagetotal_fwd_fees
- total fees of action phaseaccount_fees
- total fees the account pays for the transactionmain
and dev
endpoints aliases for Evernode Cloud Mainnet and Devnet endpoints
binding-gen: enum of types produces its own type for each enum variant.
lib-web: large numbers in transaction fees are rounded now (previously they caused errors).
core: if an application calls first client core functions in parallel
then core creates more than one internal context per single TonClient
instance. As a side effect of this is that a Nodejs process didn't
finish even when client.close
was called.
TransactionFees
type (run_executor().fees
).enum
types descriptions.Published by d3p over 2 years ago
Published by d3p over 2 years ago
allow_partial
flag in all abi.decode_*
functions. This flag controls decoder behaviour whether return error or not in case of incomplete BOC decodingREMP
supported. ProcessingEvent
enum is extended with REMP
statuses (enum of events posted into processing.wait_for_transaction
function callback )first_remp_status_timeout
and next_remp_status_timeout
parameters in network configPublished by d3p over 2 years ago
network.queries_protocol
config parameter allows selecting protocol the SDK uses to communicaite with GraphQL endpoint:
HTTP
– SDK performs single HTTP-request for each request.WS
– SDK uses single WebSocket connection to send all requests. This protocol is a preferablePublished by d3p over 2 years ago
crypto module:
Cryptobox
introduced: root crypto object that stores encrypted secret and acts as a factory for all crypto primitives used in SDK.
Crypto box provides signing and encryption boxes.
Functions:
create_crypto_box
- initializes cryptobox with secret
remove_crypto_box
- removes cryptobox and overwrites all secrets with zeroes
get_crypto_box_seed_phrase
- returns decrypted seed phrase
get_crypto_box_info
- returns encrypted cryptobox secret for next cryptobox initializations
get_signing_box_from_crypto_box
- derives signing box from secret
get_encryption_box_from_crypto_box
- derives encryption box from secret
clear_crypto_box_secret_cache
- forces secret cache (signing and encryption) clean up (overwrites all secrets with zeroes).
ParamsOfXXXAppObject
enum.obj
parameter add this parameterPublished by d3p over 2 years ago
Published by d3p over 2 years ago
Published by d3p over 2 years ago
boc.encode_external_in_message
function to encode message BOC based onnet.subscribe
function to start a low level GraphQL subscription.tvm.run_tvm
and tvm.run_get
functions.Published by d3p over 2 years ago
abi.encode_boc
function to encode parameters with values to BOC, using ABI types.address
type in boc.encode_boc
.MYCODE
instruction in TVM