Javascript SDK for TVM blockchains (Everscale, TON, Venom, etc)
APACHE-2.0 License
Published by d3p almost 3 years ago
variables
field.Published by d3p almost 3 years ago
function_name
field in the "create run message failed" error.Published by d3p almost 3 years ago
abi.encode_initial_data
whichtvm.buildDataInit
function in Solidity.Published by d3p almost 3 years ago
Published by d3p almost 3 years ago
allow_no_signature
parameter to decode_and_fix_ext_msg()
andonerror_id
return value to prepare_ext_in_message()
inner functions used in TS4.Query
interface extended with waitForCollection
and query
methods. waitForCollection
allows to waitproofs.proof_message_data
which proves message data, retrievedPublished by d3p almost 3 years ago
Added JS Blob support in lib-web
New module proofs
is introduced!
Functions proofs.proof_block_data
and proofs.proof_transaction_data
which prove block data, retrieved from Graphql API.
These are the first functions from proofs series :) Wait for others(proof_account_data
, proof_message_data
) in the next releases.
Read about them more in the documentation.
abi.decode_boc
function to decode custom BOC data into JSON parameters.
Ref(<ParamType>)
type was added to ABI.
Solidity functions use ABI types for builder encoding. The simplest way to decode such a BOC is to use ABI decoding. ABI has it own rules for fields layout in cells so manually encoded BOC can not be described in terms of ABI rules. To solve this problem we introduce a new ABI type Ref(<ParamType>)
which allows to store ParamType
ABI parameter in cell reference and, thus, decode manually encoded BOCs. This type is available only in decode_boc
function and will not be available in ABI messages encoding until it is included into some ABI revision.
Published by d3p almost 3 years ago
boc.get_boc_depth
function to get depth of the provided boc.
boc.decode_tvc
function returns additional fields code_hash
, code_depth
, data_hash
, data_depth
and compiler_version
Debot module:
parse
function to Json interface.Published by d3p about 3 years ago
boc.get_code_salt
and boc.set_code_salt
functions for contract code salt management.boc.encode_tvc
and boc.decode_tvc
functions for TVC image encoding and decodingboc.get_compiler_version
function extracting compiler version from contract codeabi.update_initial_data
and abi.decode_initial_data
function for pre-deployment contract data managementPublished by d3p about 3 years ago
ABI v2.2 with fixed message body layout supported. See the specification.
Now, for contracts with ABI version < 2.2 compact layout will still be used for compatibility, for contracts with ABI version 2.2 and more - fixed layout will be used.
Please, make sure that you updated the ABI if you recompiled your contract with 2.2 ABI, or you may get an inconsistent contract behaviour.
Debot module:
getEncryptionBoxInfo
, getSigningBoxInfo
functions to Sdk interface.Published by d3p about 3 years ago
abi.encode_message
and processing.process_message
created invalid deploy message in case ofSigner::None
was used, and contract could not be deployed.client.close
.Published by d3p about 3 years ago
Published by d3p about 3 years ago
Published by d3p about 3 years ago
Published by d3p about 3 years ago
Published by d3p about 3 years ago
crypto.create_encryption_box
function for creating SDK-defined encryption boxes. First supportedprepare_ext_in_message
function.tvm.run_executor
did not work when SDK is configured to use TONOS SE, because of incomplete defaultPublished by d3p about 3 years ago
RuntimeError: unreachable
in wasmPublished by d3p over 3 years ago
2.1
supported.net.query_timeout
config parameter. Its default value is 60000 msencrypt
, decrypt
functions to Sdk interface which accept encryption box handles.Published by d3p over 3 years ago
get_address_type
function in utils
module, which validates address and returns its type. See the documentation.decode_account_data
function in abi
module that converts account data BOC into JSON representation according to ABI 2.1. See the documentation.filter
and timestamp
added to wait_for_collection
errormain.ton.dev
and net.ton.dev
endpoints that will be deprecated on 12.07.21 are now replaced with proper endpoints list, if they were specified in network endpoints
configPublished by d3p over 3 years ago
abi
and signer
in encode_message
): helper functions (e.g. signerNone
, signerKeys
, etc.) are suggested if applicable.Published by d3p over 3 years ago
net
module: robust way to iterate blockchain items (blocks, transactions)create_block_iterator
, create_transaction_iterator
,resume_block_iterator
, resume_transaction_iterator
, iterator_next
, iterator_remove
http://
protocol to endpoints localhost
, 127.0.0.1
, 0.0.0.0
if protocol