java.lang.Object
tech.deplant.java4ever.binding.Tvm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrunExecutor
(@NonNull Context context, @NonNull String message, @NonNull Tvm.AccountForExecutor account, Tvm.ExecutionOptions executionOptions, Abi.ABI abi, Boolean skipTransactionCheck, Boc.BocCacheType bocCache, Boolean returnUpdatedAccount) Emulates all the phases of contract execution locallystatic CompletableFuture<Tvm.ResultOfRunGet>
runGet
(@NonNull Context context, @NonNull String account, @NonNull String functionName, Map<String, Object> input, Tvm.ExecutionOptions executionOptions, Boolean tupleListAsArray) Executes a get-method of FIFT contractstatic CompletableFuture<Tvm.ResultOfRunTvm>
runTvm
(@NonNull Context context, @NonNull String message, @NonNull String account, Tvm.ExecutionOptions executionOptions, Abi.ABI abi, Boc.BocCacheType bocCache, Boolean returnUpdatedAccount) Executes get-methods of ABI-compatible contracts
-
Constructor Details
-
Tvm
public Tvm()
-
-
Method Details
-
runExecutor
public static CompletableFuture<Tvm.ResultOfRunExecutor> runExecutor(@NonNull @NonNull Context context, @NonNull @NonNull String message, @NonNull @NonNull Tvm.AccountForExecutor account, Tvm.ExecutionOptions executionOptions, Abi.ABI abi, Boolean skipTransactionCheck, Boc.BocCacheType bocCache, Boolean returnUpdatedAccount) Emulates all the phases of contract execution locally- Parameters:
message
- Input message BOC. Must be encoded as base64.account
- Account to run on executorexecutionOptions
- Execution options.abi
- Contract ABI for decoding output messagesskipTransactionCheck
- Skip transaction check flagbocCache
- Cache type to put the result. The BOC itself returned if no cache type providedreturnUpdatedAccount
- Return updated account flag. Empty string is returned if the flag is `false`
-
runTvm
public static CompletableFuture<Tvm.ResultOfRunTvm> runTvm(@NonNull @NonNull Context context, @NonNull @NonNull String message, @NonNull @NonNull String account, Tvm.ExecutionOptions executionOptions, Abi.ABI abi, Boc.BocCacheType bocCache, Boolean returnUpdatedAccount) Executes get-methods of ABI-compatible contracts- Parameters:
message
- Input message BOC. Must be encoded as base64.account
- Account BOC. Must be encoded as base64.executionOptions
- Execution options.abi
- Contract ABI for decoding output messagesbocCache
- Cache type to put the result. The BOC itself returned if no cache type providedreturnUpdatedAccount
- Return updated account flag. Empty string is returned if the flag is `false`
-
runGet
public static CompletableFuture<Tvm.ResultOfRunGet> runGet(@NonNull @NonNull Context context, @NonNull @NonNull String account, @NonNull @NonNull String functionName, Map<String, Object> input, Tvm.ExecutionOptions executionOptions, Boolean tupleListAsArray) Executes a get-method of FIFT contract- Parameters:
account
- Account BOC in `base64`functionName
- Function nameinput
- Input parametersexecutionOptions
- Execution optionstupleListAsArray
- Convert lists based on nested tuples in the **result** into plain arrays. Default is `false`. Input parameters may use any of lists representationsIf you receive this error on Web: "Runtime error. Unreachable code should not be executed...",set this flag to true.This may happen, for example, when elector contract contains too many participants
-