construct

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployModule

func DeployModule(numSigs uint32, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime,
	module v2.VersionedModuleSource) *v2.PreAccountTransaction

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(numSigs uint32, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime,
	payload v2.InitContractPayload, energy v2.Energy) *v2.PreAccountTransaction

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(numSigs uint32, sender v2.AccountAddress, nonce v2.SequenceNumber,
	expiry v2.TransactionTime, data v2.RegisteredData) *v2.PreAccountTransaction

RegisterData construct a transaction to register the given piece of data.

func Transfer

func Transfer(numSigs uint32, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime,
	receiver v2.AccountAddress, amount v2.Amount) *v2.PreAccountTransaction

Transfer constructs a transfer transaction.

func TransferWithMemo

func TransferWithMemo(numSigs uint32, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime,
	receiver v2.AccountAddress, amount v2.Amount, memo v2.Memo) *v2.PreAccountTransaction

TransferWithMemo constructs a transfer transaction with a memo.

func UpdateContract

func UpdateContract(numSigs uint32, sender v2.AccountAddress, nonce v2.SequenceNumber, expiry v2.TransactionTime,
	payload v2.UpdateContractPayload, energy v2.Energy) *v2.PreAccountTransaction

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL