BocModule class
Constructors
- BocModule.new(TonSdkCore core)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cache_get(
ParamsOfBocCacheGet params) → Future< ResultOfBocCacheGet> - Get BOC from cache
-
cache_set(
ParamsOfBocCacheSet params) → Future< ResultOfBocCacheSet> - Save BOC into cache or increase pin counter for existing pinned BOC
-
cache_unpin(
ParamsOfBocCacheUnpin params) → Future< void> -
Unpin BOCs with specified pin defined in the
cache_set
. Decrease pin reference counter for BOCs with specified pin defined in thecache_set
. BOCs which have only 1 pin and its reference counter become 0 will be removed from cache -
decode_state_init(
ParamsOfDecodeStateInit params) → Future< ResultOfDecodeStateInit> - Decodes contract's initial state into code, data, libraries and special options.
-
decode_tvc(
ParamsOfDecodeTvc params) → Future< ResultOfDecodeTvc> - Decodes tvc according to the tvc spec. Read more about tvc structure here https://github.com/tonlabs/ever-struct/blob/main/src/scheme/mod.rs#L30
-
encode_boc(
ParamsOfEncodeBoc params) → Future< ResultOfEncodeBoc> - Encodes bag of cells (BOC) with builder operations. This method provides the same functionality as Solidity TvmBuilder. Resulting BOC of this method can be passed into Solidity and C++ contracts as TvmCell type.
-
encode_external_in_message(
ParamsOfEncodeExternalInMessage params) → Future< ResultOfEncodeExternalInMessage> - Allows to encode any external inbound message.
-
encode_state_init(
ParamsOfEncodeStateInit params) → Future< ResultOfEncodeStateInit> - Encodes initial contract state from code, data, libraries ans special options (see input params)
-
get_blockchain_config(
ParamsOfGetBlockchainConfig params) → Future< ResultOfGetBlockchainConfig> - Extract blockchain configuration from key block and also from zerostate.
-
get_boc_depth(
ParamsOfGetBocDepth params) → Future< ResultOfGetBocDepth> - Calculates BOC depth
-
get_boc_hash(
ParamsOfGetBocHash params) → Future< ResultOfGetBocHash> - Calculates BOC root hash
-
get_code_from_tvc(
ParamsOfGetCodeFromTvc params) → Future< ResultOfGetCodeFromTvc> - Extracts code from TVC contract image
-
get_code_salt(
ParamsOfGetCodeSalt params) → Future< ResultOfGetCodeSalt> - Returns the contract code's salt if it is present.
-
get_compiler_version(
ParamsOfGetCompilerVersion params) → Future< ResultOfGetCompilerVersion> - Returns the compiler version used to compile the code.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse_account(
ParamsOfParse params) → Future< ResultOfParse> - JSON structure is compatible with GraphQL API account object
-
parse_block(
ParamsOfParse params) → Future< ResultOfParse> - JSON structure is compatible with GraphQL API block object
-
parse_message(
ParamsOfParse params) → Future< ResultOfParse> - JSON structure is compatible with GraphQL API message object
-
parse_shardstate(
ParamsOfParseShardstate params) → Future< ResultOfParse> - JSON structure is compatible with GraphQL API shardstate object
-
parse_transaction(
ParamsOfParse params) → Future< ResultOfParse> - JSON structure is compatible with GraphQL API transaction object
-
set_code_salt(
ParamsOfSetCodeSalt params) → Future< ResultOfSetCodeSalt> - Returns the new contract code with salt.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited