nekoton/nekoton_lib library
Classes
- AbiParam
- AccountsList
- AccountsStorage
- Implementations of nekoton's AccountsStorage
- AccountToAdd
- AdditionalAssets
- Address
- AssetsList
- BlockchainConfig
- Config of transport that could be used in executeLocal
- ContractState
- CreateKeyInput
- DecodedEvent
- DecodedInput
- DecodedOutput
- DecodedTransaction
- DecodedTransactionEvent
- DePoolAsset
- DePoolOnRoundCompleteNotification
- DePoolReceiveAnswerNotification
- DerivedKeyCreateInput
- Input for creating labs key
- DerivedKeyCreateInputDerive
- DerivedKeyCreateInputImport
- DerivedKeyExportOutput
- DerivedKeyExportSeedParams
- DerivedKeyGetPublicKeys
- DerivedKeyPassword
- DerivedKeyPasswordByAccountId
- DerivedKeyPasswordByPublicKey
- DerivedKeyUpdateParams
- DerivedKeyUpdateParamsChangePassword
- DerivedKeyUpdateParamsRenameKey
- EncryptedData
- EncryptedKeyCreateInput
- Input for creating legacy key
- EncryptedKeyExportSeedOutput
- EncryptedKeyGetPublicKeys
- EncryptedKeyPassword
- EncryptedKeyUpdateParams
- EncryptedKeyUpdateParamsChangePassword
- EncryptedKeyUpdateParamsRename
- ExecutionOutput
- ExistingContract
- ExistingWalletInfo
- Expiration
- ExportKeyInput
- ExportKeyOutput
- FeeFactors
- FullContractState
- FunctionCall
- GenericContract
- Implementation of nekoton's GenericContract.
- GenTimings
- GetPublicKeys
- GqlConnection
- GqlConnectionHttpClient
- GqlNetworkSettings
- GqlTransport
- Implementation of jrpc transport
- InternalMessage
- JettonIncomingTransfer
- JettonMetaData
- JettonOutgoingTransfer
- JettonRootData
- JettonWallet
- Implementation of nekoton's JettonWallet.
- JettonWalletData
- JrpcConnection
- JrpcConnectionHttpClient
- Interface for http client to make post requests.
- JrpcNetworkSettings
- JrpcTransport
- Implementation of jrpc transport
- Keypair
- KeyStore
- Implementation of nekoton's KeyStore For all of method: signer - is one of strings to identify type of key (ENCRYPTED_KEY_SIGNER_NAME, DERIVED_KEY_SIGNER_NAME or LEDGER_KEY_SIGNER_NAME)
- KeyStoreEntry
- KnownPayload
- LastTransactionId
- LedgerConnection
- LedgerConnectionHandler
- LedgerKeyCreateInput
- LedgerKeyGetPublicKeys
- LedgerSignatureContext
- LedgerSignInput
- LedgerUpdateKeyInput
- LedgerUpdateKeyInputRename
- Message
- MultisigConfirmTransaction
- MultisigPendingTransaction
- MultisigSendTransaction
- MultisigSubmitTransaction
- MultisigTransaction
- OnBalanceChangedPayload
- OnMessageExpiredPayload
- OnMessageSentPayload
- OnStateChangedPayload
- OnTransactionsFoundPayload
- Password
- PasswordCacheBehavior
- PasswordExplicit
- PendingTransaction
- ProtoConnection
- ProtoConnectionHttpClient
- Interface for http client to make post requests.
- ProtoNetworkSettings
- ProtoTransport
- Implementation of proto transport
- PublicKey
- Public key of the account
- RawContractState
- RawTransaction
- RefreshingInterface
- Interface, that should be implemented by any wallet or contract that supports functionality of refreshing.
- RootTokenContractDetails
- SignedMessage
- SignInput
- Storage
- StorageFeeInfo
- SubscriptionHandlerMessage
- Symbol
- TokenIncomingTransfer
- TokenOutgoingTransfer
- TokenSwapBack
- TokenWallet
- Implementation of nekoton's TonWallet.
- TokenWalletAsset
- TokenWalletDeployedNotification
- TokenWalletDetails
- TokenWalletTransaction
- TonWallet
- Implementation of nekoton's TonWallet.
- TonWalletAsset
- TonWalletDetails
- TonWalletTransactionWithData
- TonWalletTransferParams
- Transaction
- TransactionAdditionalInfo
- TransactionExecutionOptions
- TransactionId
- TransactionsBatchInfo
- TransactionsList
-
TransactionWithData<
T> - TransferRecipient
- Transport
- Abstract class for transport, so we can combine both implementations into single list
- TxTreeSimulationError
- TxTreeSimulationErrorItem
- UnsignedMessage
- Wrapper above nekoton's UnsignedMessage
- UpdateKeyInput
- WalletInteractionInfo
- WalletInteractionMethod
- WalletType
Enums
- AccountStatus
- EncryptionAlgorithm
- KeySignerType
- KeySigner generated class workaround.
- MultisigType
- TokenWalletVersion
- TransactionsBatchType
- TransportType
- TxTreeSimulationErrorType
Extensions
- AbiParamPatterns on AbiParam
- Adds pattern-matching-related methods to AbiParam.
- AccountsListPatterns on AccountsList
- Adds pattern-matching-related methods to AccountsList.
- AccountToAddPatterns on AccountToAdd
- Adds pattern-matching-related methods to AccountToAdd.
- AdditionalAssetsPatterns on AdditionalAssets
- Adds pattern-matching-related methods to AdditionalAssets.
- AddressPatterns on Address
- Adds pattern-matching-related methods to Address.
- AssetsListPatterns on AssetsList
- Adds pattern-matching-related methods to AssetsList.
- BlockchainConfigPatterns on BlockchainConfig
- Adds pattern-matching-related methods to BlockchainConfig.
- ContractStatePatterns on ContractState
- Adds pattern-matching-related methods to ContractState.
- CreateKeyInputToSigner on CreateKeyInput
- DecodedEventPatterns on DecodedEvent
- Adds pattern-matching-related methods to DecodedEvent.
- DecodedInputPatterns on DecodedInput
- Adds pattern-matching-related methods to DecodedInput.
- DecodedOutputPatterns on DecodedOutput
- Adds pattern-matching-related methods to DecodedOutput.
- DecodedTransactionEventPatterns on DecodedTransactionEvent
- Adds pattern-matching-related methods to DecodedTransactionEvent.
- DecodedTransactionPatterns on DecodedTransaction
- Adds pattern-matching-related methods to DecodedTransaction.
- DePoolAssetPatterns on DePoolAsset
- Adds pattern-matching-related methods to DePoolAsset.
- DePoolOnRoundCompleteNotificationPatterns on DePoolOnRoundCompleteNotification
- Adds pattern-matching-related methods to DePoolOnRoundCompleteNotification.
- DePoolReceiveAnswerNotificationPatterns on DePoolReceiveAnswerNotification
- Adds pattern-matching-related methods to DePoolReceiveAnswerNotification.
- DerivedKeyCreateInputDerivePatterns on DerivedKeyCreateInputDerive
- Adds pattern-matching-related methods to DerivedKeyCreateInputDerive.
- DerivedKeyCreateInputImportPatterns on DerivedKeyCreateInputImport
- Adds pattern-matching-related methods to DerivedKeyCreateInputImport.
- DerivedKeyCreateInputPatterns on DerivedKeyCreateInput
- Adds pattern-matching-related methods to DerivedKeyCreateInput.
- DerivedKeyExportOutputPatterns on DerivedKeyExportOutput
- Adds pattern-matching-related methods to DerivedKeyExportOutput.
- DerivedKeyExportSeedParamsPatterns on DerivedKeyExportSeedParams
- Adds pattern-matching-related methods to DerivedKeyExportSeedParams.
- DerivedKeyGetPublicKeysPatterns on DerivedKeyGetPublicKeys
- Adds pattern-matching-related methods to DerivedKeyGetPublicKeys.
- DerivedKeyPasswordByAccountIdPatterns on DerivedKeyPasswordByAccountId
- Adds pattern-matching-related methods to DerivedKeyPasswordByAccountId.
- DerivedKeyPasswordByPublicKeyPatterns on DerivedKeyPasswordByPublicKey
- Adds pattern-matching-related methods to DerivedKeyPasswordByPublicKey.
- DerivedKeyPasswordPatterns on DerivedKeyPassword
- Adds pattern-matching-related methods to DerivedKeyPassword.
- DerivedKeyUpdateParamsChangePasswordPatterns on DerivedKeyUpdateParamsChangePassword
- Adds pattern-matching-related methods to DerivedKeyUpdateParamsChangePassword.
- DerivedKeyUpdateParamsPatterns on DerivedKeyUpdateParams
- Adds pattern-matching-related methods to DerivedKeyUpdateParams.
- DerivedKeyUpdateParamsRenameKeyPatterns on DerivedKeyUpdateParamsRenameKey
- Adds pattern-matching-related methods to DerivedKeyUpdateParamsRenameKey.
- EncryptedDataPatterns on EncryptedData
- Adds pattern-matching-related methods to EncryptedData.
- EncryptedKeyCreateInputPatterns on EncryptedKeyCreateInput
- Adds pattern-matching-related methods to EncryptedKeyCreateInput.
- EncryptedKeyExportSeedOutputPatterns on EncryptedKeyExportSeedOutput
- Adds pattern-matching-related methods to EncryptedKeyExportSeedOutput.
- EncryptedKeyGetPublicKeysPatterns on EncryptedKeyGetPublicKeys
- Adds pattern-matching-related methods to EncryptedKeyGetPublicKeys.
- EncryptedKeyPasswordPatterns on EncryptedKeyPassword
- Adds pattern-matching-related methods to EncryptedKeyPassword.
- EncryptedKeyUpdateParamsChangePasswordPatterns on EncryptedKeyUpdateParamsChangePassword
- Adds pattern-matching-related methods to EncryptedKeyUpdateParamsChangePassword.
- EncryptedKeyUpdateParamsPatterns on EncryptedKeyUpdateParams
- Adds pattern-matching-related methods to EncryptedKeyUpdateParams.
- EncryptedKeyUpdateParamsRenamePatterns on EncryptedKeyUpdateParamsRename
- Adds pattern-matching-related methods to EncryptedKeyUpdateParamsRename.
- ExecutionOutputPatterns on ExecutionOutput
- Adds pattern-matching-related methods to ExecutionOutput.
- ExistingContractPatterns on ExistingContract
- Adds pattern-matching-related methods to ExistingContract.
- ExistingWalletInfoPatterns on ExistingWalletInfo
- Adds pattern-matching-related methods to ExistingWalletInfo.
- ExpirationPatterns on Expiration
- Adds pattern-matching-related methods to Expiration.
- ExportKeyInputToSigner on ExportKeyInput
- FeeFactorsPatterns on FeeFactors
- Adds pattern-matching-related methods to FeeFactors.
- FullContractStatePatterns on FullContractState
- Adds pattern-matching-related methods to FullContractState.
- FunctionCallPatterns on FunctionCall
- Adds pattern-matching-related methods to FunctionCall.
- GenTimingsPatterns on GenTimings
- Adds pattern-matching-related methods to GenTimings.
- GetPublicKeysToSigner on GetPublicKeys
- GqlNetworkSettingsPatterns on GqlNetworkSettings
- Adds pattern-matching-related methods to GqlNetworkSettings.
- InternalMessagePatterns on InternalMessage
- Adds pattern-matching-related methods to InternalMessage.
- JettonIncomingTransferPatterns on JettonIncomingTransfer
- Adds pattern-matching-related methods to JettonIncomingTransfer.
- JettonMetaDataPatterns on JettonMetaData
- Adds pattern-matching-related methods to JettonMetaData.
- JettonOutgoingTransferPatterns on JettonOutgoingTransfer
- Adds pattern-matching-related methods to JettonOutgoingTransfer.
- JettonRootDataPatterns on JettonRootData
- Adds pattern-matching-related methods to JettonRootData.
- JettonWalletDataPatterns on JettonWalletData
- Adds pattern-matching-related methods to JettonWalletData.
- JrpcNetworkSettingsPatterns on JrpcNetworkSettings
- Adds pattern-matching-related methods to JrpcNetworkSettings.
- KeypairPatterns on Keypair
- Adds pattern-matching-related methods to Keypair.
- KeySignerName on KeySigner
- Get name of KeySigner, same as in rust side
- KeyStoreEntryPatterns on KeyStoreEntry
- Adds pattern-matching-related methods to KeyStoreEntry.
- KnownPayloadPatterns on KnownPayload
- Adds pattern-matching-related methods to KnownPayload.
- LastTransactionIdPatterns on LastTransactionId
- Adds pattern-matching-related methods to LastTransactionId.
- LedgerKeyCreateInputPatterns on LedgerKeyCreateInput
- Adds pattern-matching-related methods to LedgerKeyCreateInput.
- LedgerKeyGetPublicKeysPatterns on LedgerKeyGetPublicKeys
- Adds pattern-matching-related methods to LedgerKeyGetPublicKeys.
- LedgerSignatureContextPatterns on LedgerSignatureContext
- Adds pattern-matching-related methods to LedgerSignatureContext.
- LedgerSignInputPatterns on LedgerSignInput
- Adds pattern-matching-related methods to LedgerSignInput.
- LedgerUpdateKeyInputPatterns on LedgerUpdateKeyInput
- Adds pattern-matching-related methods to LedgerUpdateKeyInput.
- LedgerUpdateKeyInputRenamePatterns on LedgerUpdateKeyInputRename
- Adds pattern-matching-related methods to LedgerUpdateKeyInputRename.
- MessagePatterns on Message
- Adds pattern-matching-related methods to Message.
- MultisigConfirmTransactionPatterns on MultisigConfirmTransaction
- Adds pattern-matching-related methods to MultisigConfirmTransaction.
- MultisigPendingTransactionPatterns on MultisigPendingTransaction
- Adds pattern-matching-related methods to MultisigPendingTransaction.
- MultisigSendTransactionPatterns on MultisigSendTransaction
- Adds pattern-matching-related methods to MultisigSendTransaction.
- MultisigSubmitTransactionPatterns on MultisigSubmitTransaction
- Adds pattern-matching-related methods to MultisigSubmitTransaction.
- MultisigTransactionPatterns on MultisigTransaction
- Adds pattern-matching-related methods to MultisigTransaction.
- OnBalanceChangedPayloadPatterns on OnBalanceChangedPayload
- Adds pattern-matching-related methods to OnBalanceChangedPayload.
- OnMessageExpiredPayloadPatterns on OnMessageExpiredPayload
- Adds pattern-matching-related methods to OnMessageExpiredPayload.
- OnMessageSentPayloadPatterns on OnMessageSentPayload
- Adds pattern-matching-related methods to OnMessageSentPayload.
- OnStateChangedPayloadPatterns on OnStateChangedPayload
- Adds pattern-matching-related methods to OnStateChangedPayload.
- OnTransactionsFoundPayloadPatterns on OnTransactionsFoundPayload
- Adds pattern-matching-related methods to OnTransactionsFoundPayload.
- PasswordCacheBehaviorPatterns on PasswordCacheBehavior
- Adds pattern-matching-related methods to PasswordCacheBehavior.
- PasswordExplicitPatterns on PasswordExplicit
- Adds pattern-matching-related methods to PasswordExplicit.
- PasswordPatterns on Password
- Adds pattern-matching-related methods to Password.
- PendingTransactionPatterns on PendingTransaction
- Adds pattern-matching-related methods to PendingTransaction.
- ProtoNetworkSettingsPatterns on ProtoNetworkSettings
- Adds pattern-matching-related methods to ProtoNetworkSettings.
- PublicKeyPatterns on PublicKey
- Adds pattern-matching-related methods to PublicKey.
- RawContractStatePatterns on RawContractState
- Adds pattern-matching-related methods to RawContractState.
- RawTransactionPatterns on RawTransaction
- Adds pattern-matching-related methods to RawTransaction.
- RootTokenContractDetailsPatterns on RootTokenContractDetails
- Adds pattern-matching-related methods to RootTokenContractDetails.
- SignedMessagePatterns on SignedMessage
- Adds pattern-matching-related methods to SignedMessage.
- SignInputToSigner on SignInput
- StorageFeeInfoPatterns on StorageFeeInfo
- Adds pattern-matching-related methods to StorageFeeInfo.
- SubscriptionHandlerMessagePatterns on SubscriptionHandlerMessage
- Adds pattern-matching-related methods to SubscriptionHandlerMessage.
- SymbolPatterns on Symbol
- Adds pattern-matching-related methods to Symbol.
- TokenIncomingTransferPatterns on TokenIncomingTransfer
- Adds pattern-matching-related methods to TokenIncomingTransfer.
- TokenOutgoingTransferPatterns on TokenOutgoingTransfer
- Adds pattern-matching-related methods to TokenOutgoingTransfer.
- TokenSwapBackPatterns on TokenSwapBack
- Adds pattern-matching-related methods to TokenSwapBack.
- TokenWalletAssetPatterns on TokenWalletAsset
- Adds pattern-matching-related methods to TokenWalletAsset.
- TokenWalletDeployedNotificationPatterns on TokenWalletDeployedNotification
- Adds pattern-matching-related methods to TokenWalletDeployedNotification.
- TokenWalletDetailsPatterns on TokenWalletDetails
- Adds pattern-matching-related methods to TokenWalletDetails.
- TokenWalletTransactionPatterns on TokenWalletTransaction
- Adds pattern-matching-related methods to TokenWalletTransaction.
- TonWalletAssetPatterns on TonWalletAsset
- Adds pattern-matching-related methods to TonWalletAsset.
- TonWalletDetailsPatterns on TonWalletDetails
- Adds pattern-matching-related methods to TonWalletDetails.
- TonWalletTransactionWithDataPatterns on TonWalletTransactionWithData
- Adds pattern-matching-related methods to TonWalletTransactionWithData.
- TonWalletTransferParamsPatterns on TonWalletTransferParams
- Adds pattern-matching-related methods to TonWalletTransferParams.
- TransactionAdditionalInfoPatterns on TransactionAdditionalInfo
- Adds pattern-matching-related methods to TransactionAdditionalInfo.
- TransactionExecutionOptionsPatterns on TransactionExecutionOptions
- Adds pattern-matching-related methods to TransactionExecutionOptions.
- TransactionIdPatterns on TransactionId
- Adds pattern-matching-related methods to TransactionId.
- TransactionPatterns on Transaction
- Adds pattern-matching-related methods to Transaction.
- TransactionsBatchInfoPatterns on TransactionsBatchInfo
- Adds pattern-matching-related methods to TransactionsBatchInfo.
- TransactionsListPatterns on TransactionsList
- Adds pattern-matching-related methods to TransactionsList.
-
TransactionWithDataPatterns
on TransactionWithData<
T> - Adds pattern-matching-related methods to TransactionWithData.
- TransferRecipientPatterns on TransferRecipient
- Adds pattern-matching-related methods to TransferRecipient.
- TxTreeSimulationErrorItemPatterns on TxTreeSimulationErrorItem
- Adds pattern-matching-related methods to TxTreeSimulationErrorItem.
- TxTreeSimulationErrorPatterns on TxTreeSimulationError
- Adds pattern-matching-related methods to TxTreeSimulationError.
- UpdateKeyInputToSigner on UpdateKeyInput
- WalletInteractionInfoPatterns on WalletInteractionInfo
- Adds pattern-matching-related methods to WalletInteractionInfo.
- WalletInteractionMethodPatterns on WalletInteractionMethod
- Adds pattern-matching-related methods to WalletInteractionMethod.
- WalletTypePatterns on WalletType
- Adds pattern-matching-related methods to WalletType.
Constants
- accountsStorageKey → const String
- amountJsonConverter → const _BigIntJsonConverter
- Json converter of amount value from string to BigInt (without currency identification)
- dateSecondsSinceEpochJsonConverter → const _DateTimeJsonConverter
- Json converter for date time from secondsSinceEpoch (typically used for fields such as expireAt)
- keystoreStorageKey → const String
- publicKeyLength → const int
- secretKeyLength → const int
- signatureLength → const int
- uriJsonConverter → const _UriJsonConverter
- Json converter of Uri value from string to Uri
Functions
-
checkPublicKey(
PublicKey publicKey) → bool - Check if public key is correct. Return true or false
-
codeToTvc(
String code) → (String, String) - Convert code to base64 tvc string and return (tvc, hash) or throw error
-
computeStorageFee(
{required String config, required String account, required int utime, bool? isMasterchain}) → Future< StorageFeeInfo> -
config
- value from Transport.getBlockchainConfigaccount
- base64-encoded bocutime
- secondsisMasterchain
- default: false -
computeTonWalletAddress(
{required PublicKey publicKey, required WalletType walletType, required int workchain}) → Address -
createExternalMessage(
{required String dst, required String contractAbi, required String method, String? stateInit, required TokensObject input, required PublicKey publicKey, required Duration timeout}) → Future< UnsignedMessage> - Create external unsigned message that can be listened and handled or throws error
-
createExternalMessageWithoutSignature(
{required Address dst, required String contractAbi, required String method, String? stateInit, required TokensObject input, required Duration timeout}) → Future< SignedMessage> - Returns SignedMessage from nekoton or throws error
-
createRawExternalMessage(
{required Address dst, required Duration timeout, String? stateInit, String? body}) → Future< SignedMessage> - Create raw external message without real signing or throws error
-
decodeEvent(
{required String messageBody, required String contractAbi, dynamic event}) → Future< DecodedEvent?> - Decode input data and return DecodedEvent or throws error
-
decodeInput(
{required String messageBody, required String contractAbi, dynamic method, required bool internal}) → Future< DecodedInput?> - Decode input data and return DecodedInput or throws error
-
decodeOutput(
{required String messageBody, required String contractAbi, dynamic method}) → Future< DecodedOutput?> - Decode output data and return DecodedOutput or throws error
-
decodeTransaction(
{required Transaction transaction, required String contractAbi, dynamic method}) → Future< DecodedTransaction?> - Decode transaction and return DecodedTransaction or throws error
-
decodeTransactionEvents(
{required Transaction transaction, required String contractAbi}) → Future< List< DecodedEvent> > - Decode events of transaction and return list of DecodedEvent or throws error
-
deriveFromPhrase(
{required String phrase, required MnemonicType mnemonicType}) → Keypair - Generate public and secret keys from seed phrase and mnemonic type Returns json {'public': '...', 'secret': '...'} or throws Exception
-
encodeComment(
String comment, {bool plain = false}) → String -
comment
- comment to encodeplain
- if true, then return plain comment payload (used for TON) -
encodeInternalInput(
{required String contractAbi, required String method, required TokensObject input}) → Future< String> - Returns base64-encoded body that was encoded or throws error
-
encodeInternalMessage(
{required Address dst, required bool bounce, required BigInt amount, Address? src, String? stateInit, String? body, bool? bounced}) → Future< String> - Returns base-64 encoded Message or throws error
-
executeLocal(
{required String config, required String account, required String message, required DateTime utime, required bool disableSignatureCheck, BigInt? overwriteBalance, int? globalId}) → Future< (String, Transaction)> -
Run contract locally.
config
- value from Transport.getBlockchainConfigaccount
- boc from makeFullAccountBocmessage
- base64-encoded boc from one of: -
extractPublicKey(
String boc) → PublicKey - Extract public key from boc and return it or throw error
-
generateKey(
{required MnemonicType accountType}) → GeneratedKeyG - Generate seed phrase by specified mnemonic type
-
getBocHash(
String boc) → String - Returns hash of decoded boc or throws error
-
getCodeSalt(
String code) → String? - Get salt from code if possible and return base64-encoded salt or throw error
-
getContractTypeNumber(
WalletType walletType) → int -
getExpectedAddress(
{required String tvc, required String contractAbi, required int workchainId, PublicKey? publicKey, required TokensObject initData}) → Future< (Address, String, String)> -
Get address of tvc and contract_abi.
Returns list of
address, state_init, hash
or throws error -
getHash(
String string) → String - Get hash of String
-
getHints(
{required String input}) → List< String> -
Get hints for input part of word of seed phrase to get possible words
input: acco
returns
account, accommodate, ...
-
makeFullAccountBoc(
String? accountStuffBoc) → Future< String> -
Returns base-64 encoded Account or throws error
accountStuffBoc
-FullContractState.boc
-
mergeTvc(
{required String code, required String data}) → (String, String) - Merge code and data to tvc base64 string and return (tvc, hash) or throw error
-
packAddress(
Address address, {bool isUrlSafe = true, bool bounceable = true}) → Address -
packIntoCell(
{required List< AbiParam> params, required TokensObject tokens, String? abiVersion}) → (String, String) - Return (base64 tvc, hash) or throws error
-
packStdSmcAddr(
{required Address address, required bool base64Url, required bool bounceable}) → String - Pack address std smd or throw error Returns new packed address as string
-
parseFullAccountBoc(
String account) → Future< FullContractState?> -
account
- base64-encoded boc after executeLocal -
parseKnownPayload(
String payload) → KnownPayload? - Parse payload and return KnownPayload or throws error
-
repackAddress(
Address address) → Address - Repack address and return json-encoded MsgAddressInt or throw error
-
runGetter(
{required String accountStuffBoc, required String contractAbi, required String methodId, required Map< String, dynamic> input, int? signatureId}) → Future<ExecutionOutput> - Run getter. Return json-encoded ExecutionOutput or throws error.
-
runLocal(
{required String accountStuffBoc, required String contractAbi, required String methodId, required Map< String, dynamic> input, required bool responsible, int? signatureId}) → Future<ExecutionOutput> - Run contract local. Return json-encoded ExecutionOutput or throws error.
-
setCodeSalt(
{required String code, required String salt}) → (String, String) - Set salt to code and return (tvc, hash) or throw error
-
splitTvc(
String tvc) → (String?, String?) - Split base64 tvc string into data and code. Return (data, code) or throw error
-
unpackContractFields(
{required String contractAbi, required String boc, required bool allowPartial}) → Future< Map< String, dynamic> ?> - Unpack contract fields. Returns optional json-encoded Map<String, Token> or throw error
-
unpackFromCell(
{required List< AbiParam> params, required String boc, required bool allowPartial, String? abiVersion}) → TokensObject - Parse list of params and return json-encoded Tokens or throws error
-
unpackInitData(
{required String contractAbi, required String data}) → Future< (PublicKey?, Map< String, dynamic> )> -
Unpack data from
contractAbi
. Returns optional public key and json-encoded Map<String, Token> or throws error. -
unpackStdSmcAddr(
{required String packed, required bool base64Url}) → String -
validateAddress(
Address address) → bool - Return true if address is valid, false otherwise
-
verifySignature(
{required PublicKey publicKey, required String data, required String signature, required int? signatureId}) → Future< bool> - Check signature by publicKey and data hash
Typedefs
- MethodName = dynamic
-
StorageGet
= Future<
String?> Function(String key) -
StorageRemove
= Future<
void> Function(String key) - StorageRemoveUnchecked = void Function(String key)
-
StorageSet
= Future<
void> Function({required String key, required String value}) - StorageSetUnchecked = void Function({required String key, required String value})
-
TokensObject
= Map<
String, dynamic>
Exceptions / Errors
- ExecuteLocalException
- None code-related exception that means that executeLocal finished with specified errorCode.
- LedgerException
- LedgerOperationCancelledException
- TransportCallAfterDisposeError
- Exception that is thrown when transport is disposed and user calls its methods