Documentation ¶
Index ¶
- func DeployModule(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, ...) (*v2.AccountTransaction, error)
- func InitContract(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, ...) (*v2.AccountTransaction, error)
- func RegisterData(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, ...) (*v2.AccountTransaction, error)
- func Transfer(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, ...) (*v2.AccountTransaction, error)
- func TransferWithMemo(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, ...) (*v2.AccountTransaction, error)
- func UpdateContract(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, ...) (*v2.AccountTransaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployModule ¶
func DeployModule(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime, module v2.VersionedModuleSource) (*v2.AccountTransaction, error)
DeployModule deploys the given Wasm module. The module is given as a binary source, and no processing is done to the module.
func InitContract ¶
func InitContract(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime, payload v2.InitContractPayload, energy v2.Energy) (*v2.AccountTransaction, error)
InitContract initializes a smart contract, giving it the given amount of energy for execution. The unique parameters are - `energy` -- the amount of energy that can be used for contract execution. The base energy amount for transaction verification will be added to this cost.
func RegisterData ¶
func RegisterData(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime, data v2.RegisteredData) (*v2.AccountTransaction, error)
RegisterData construct a transaction to register the given piece of data.
func Transfer ¶
func Transfer(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime, receiver v2.AccountAddress, amount v2.Amount) (*v2.AccountTransaction, error)
Transfer constructs a transfer transaction.
func TransferWithMemo ¶
func TransferWithMemo(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime, receiver v2.AccountAddress, amount v2.Amount, memo v2.Memo) (*v2.AccountTransaction, error)
TransferWithMemo constructs a transfer transaction with a memo.
func UpdateContract ¶
func UpdateContract(signer v2.ExactSizeTransactionSigner, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime, payload v2.UpdateContractPayload, energy v2.Energy) (*v2.AccountTransaction, error)
UpdateContract updates a smart contract instance, giving it the given amount of energy for execution. The unique parameters are - `energy` -- the amount of energy that can be used for contract execution. The base energy amount for transaction verification will be added to this cost.
Types ¶
This section is empty.