Documentation ¶
Index ¶
- Constants
- func OnDispatch(index int32) *wasmlib.ScExportMap
- type AccountFoundriesCall
- type AccountNFTAmountCall
- type AccountNFTAmountInCollectionCall
- type AccountNFTsCall
- type AccountNFTsInCollectionCall
- type AccountsCall
- type ArrayOfImmutableNftID
- type ArrayOfMutableNftID
- type BalanceBaseTokenCall
- type BalanceCall
- type BalanceNativeTokenCall
- type CoreAccountsEventHandlers
- func (h *CoreAccountsEventHandlers) CallHandler(topic string, dec *wasmtypes.WasmDecoder)
- func (h *CoreAccountsEventHandlers) ID() uint32
- func (h *CoreAccountsEventHandlers) OnCoreAccountsFoundryCreated(handler func(e *EventFoundryCreated))
- func (h *CoreAccountsEventHandlers) OnCoreAccountsFoundryDestroyed(handler func(e *EventFoundryDestroyed))
- func (h *CoreAccountsEventHandlers) OnCoreAccountsFoundryModified(handler func(e *EventFoundryModified))
- type DepositCall
- type EventFoundryCreated
- type EventFoundryDestroyed
- type EventFoundryModified
- type FoundryCreateNewCall
- type FoundryDestroyCall
- type FoundryModifySupplyCall
- type FoundryOutputCall
- type Funcs
- func (sc Funcs) AccountFoundries(ctx wasmlib.ScViewClientContext) *AccountFoundriesCall
- func (sc Funcs) AccountNFTAmount(ctx wasmlib.ScViewClientContext) *AccountNFTAmountCall
- func (sc Funcs) AccountNFTAmountInCollection(ctx wasmlib.ScViewClientContext) *AccountNFTAmountInCollectionCall
- func (sc Funcs) AccountNFTs(ctx wasmlib.ScViewClientContext) *AccountNFTsCall
- func (sc Funcs) AccountNFTsInCollection(ctx wasmlib.ScViewClientContext) *AccountNFTsInCollectionCall
- func (sc Funcs) Accounts(ctx wasmlib.ScViewClientContext) *AccountsCall
- func (sc Funcs) Balance(ctx wasmlib.ScViewClientContext) *BalanceCall
- func (sc Funcs) BalanceBaseToken(ctx wasmlib.ScViewClientContext) *BalanceBaseTokenCall
- func (sc Funcs) BalanceNativeToken(ctx wasmlib.ScViewClientContext) *BalanceNativeTokenCall
- func (sc Funcs) Deposit(ctx wasmlib.ScFuncClientContext) *DepositCall
- func (sc Funcs) FoundryCreateNew(ctx wasmlib.ScFuncClientContext) *FoundryCreateNewCall
- func (sc Funcs) FoundryDestroy(ctx wasmlib.ScFuncClientContext) *FoundryDestroyCall
- func (sc Funcs) FoundryModifySupply(ctx wasmlib.ScFuncClientContext) *FoundryModifySupplyCall
- func (sc Funcs) FoundryOutput(ctx wasmlib.ScViewClientContext) *FoundryOutputCall
- func (sc Funcs) GetAccountNonce(ctx wasmlib.ScViewClientContext) *GetAccountNonceCall
- func (sc Funcs) GetNativeTokenIDRegistry(ctx wasmlib.ScViewClientContext) *GetNativeTokenIDRegistryCall
- func (sc Funcs) NftData(ctx wasmlib.ScViewClientContext) *NftDataCall
- func (sc Funcs) TotalAssets(ctx wasmlib.ScViewClientContext) *TotalAssetsCall
- func (sc Funcs) TransferAccountToChain(ctx wasmlib.ScFuncClientContext) *TransferAccountToChainCall
- func (sc Funcs) TransferAllowanceTo(ctx wasmlib.ScFuncClientContext) *TransferAllowanceToCall
- func (sc Funcs) Withdraw(ctx wasmlib.ScFuncClientContext) *WithdrawCall
- type GetAccountNonceCall
- type GetNativeTokenIDRegistryCall
- type ImmutableAccountFoundriesParams
- type ImmutableAccountFoundriesResults
- type ImmutableAccountNFTAmountInCollectionParams
- type ImmutableAccountNFTAmountInCollectionResults
- type ImmutableAccountNFTAmountParams
- type ImmutableAccountNFTAmountResults
- type ImmutableAccountNFTsInCollectionParams
- type ImmutableAccountNFTsInCollectionResults
- type ImmutableAccountNFTsParams
- type ImmutableAccountNFTsResults
- type ImmutableAccountsResults
- type ImmutableBalanceBaseTokenParams
- type ImmutableBalanceBaseTokenResults
- type ImmutableBalanceNativeTokenParams
- type ImmutableBalanceNativeTokenResults
- type ImmutableBalanceParams
- type ImmutableBalanceResults
- type ImmutableFoundryCreateNewParams
- type ImmutableFoundryCreateNewResults
- type ImmutableFoundryDestroyParams
- type ImmutableFoundryModifySupplyParams
- type ImmutableFoundryOutputParams
- type ImmutableFoundryOutputResults
- type ImmutableGetAccountNonceParams
- type ImmutableGetAccountNonceResults
- type ImmutableGetNativeTokenIDRegistryResults
- type ImmutableNftDataParams
- type ImmutableNftDataResults
- type ImmutableTotalAssetsResults
- type ImmutableTransferAccountToChainParams
- type ImmutableTransferAllowanceToParams
- type MapAgentIDToImmutableBool
- type MapAgentIDToMutableBool
- type MapTokenIDToImmutableBigInt
- type MapTokenIDToImmutableBool
- type MapTokenIDToMutableBigInt
- type MapTokenIDToMutableBool
- type MapUint32ToImmutableBool
- type MapUint32ToMutableBool
- type MutableAccountFoundriesParams
- type MutableAccountFoundriesResults
- type MutableAccountNFTAmountInCollectionParams
- type MutableAccountNFTAmountInCollectionResults
- type MutableAccountNFTAmountParams
- type MutableAccountNFTAmountResults
- type MutableAccountNFTsInCollectionParams
- type MutableAccountNFTsInCollectionResults
- type MutableAccountNFTsParams
- type MutableAccountNFTsResults
- type MutableAccountsResults
- type MutableBalanceBaseTokenParams
- type MutableBalanceBaseTokenResults
- type MutableBalanceNativeTokenParams
- type MutableBalanceNativeTokenResults
- type MutableBalanceParams
- type MutableBalanceResults
- type MutableFoundryCreateNewParams
- type MutableFoundryCreateNewResults
- type MutableFoundryDestroyParams
- type MutableFoundryModifySupplyParams
- type MutableFoundryOutputParams
- type MutableFoundryOutputResults
- type MutableGetAccountNonceParams
- type MutableGetAccountNonceResults
- type MutableGetNativeTokenIDRegistryResults
- type MutableNftDataParams
- type MutableNftDataResults
- type MutableTotalAssetsResults
- type MutableTransferAccountToChainParams
- type MutableTransferAllowanceToParams
- type NftDataCall
- type TotalAssetsCall
- type TransferAccountToChainCall
- type TransferAllowanceToCall
- type WithdrawCall
Constants ¶
const ( ScName = "accounts" ScDescription = "Chain account ledger contract" HScName = wasmtypes.ScHname(0x3c4b5e02) )
const ( ParamAgentID = "a" ParamCollection = "C" ParamDestroyTokens = "y" ParamFoundrySN = "s" ParamGasReserve = "g" ParamNftID = "z" ParamSupplyDeltaAbs = "d" ParamTokenID = "N" ParamTokenScheme = "t" )
const ( ResultAccountNonce = "n" ResultAllAccounts = "this" ResultAmount = "A" ResultAssets = "this" ResultBalance = "B" ResultBalances = "this" ResultFoundries = "this" ResultFoundryOutputBin = "b" ResultFoundrySN = "s" ResultMapping = "this" ResultNftData = "e" ResultNftIDs = "i" ResultTokens = "B" )
const ( FuncDeposit = "deposit" FuncFoundryCreateNew = "foundryCreateNew" FuncFoundryDestroy = "foundryDestroy" FuncFoundryModifySupply = "foundryModifySupply" FuncTransferAccountToChain = "transferAccountToChain" FuncTransferAllowanceTo = "transferAllowanceTo" FuncWithdraw = "withdraw" ViewAccountFoundries = "accountFoundries" ViewAccountNFTAmount = "accountNFTAmount" ViewAccountNFTAmountInCollection = "accountNFTAmountInCollection" ViewAccountNFTs = "accountNFTs" ViewAccountNFTsInCollection = "accountNFTsInCollection" ViewAccounts = "accounts" ViewBalance = "balance" ViewBalanceBaseToken = "balanceBaseToken" ViewBalanceNativeToken = "balanceNativeToken" ViewFoundryOutput = "foundryOutput" ViewGetAccountNonce = "getAccountNonce" ViewGetNativeTokenIDRegistry = "getNativeTokenIDRegistry" ViewNftData = "nftData" ViewTotalAssets = "totalAssets" )
const ( HFuncDeposit = wasmtypes.ScHname(0xbdc9102d) HFuncFoundryCreateNew = wasmtypes.ScHname(0x41822f5f) HFuncFoundryDestroy = wasmtypes.ScHname(0x85e4c893) HFuncFoundryModifySupply = wasmtypes.ScHname(0x76a5868b) HFuncTransferAccountToChain = wasmtypes.ScHname(0x07005c45) HFuncTransferAllowanceTo = wasmtypes.ScHname(0x23f4e3a1) HFuncWithdraw = wasmtypes.ScHname(0x9dcc0f41) HViewAccountFoundries = wasmtypes.ScHname(0xdc3a0c38) HViewAccountNFTAmount = wasmtypes.ScHname(0xabefd5b5) HViewAccountNFTAmountInCollection = wasmtypes.ScHname(0xd7028e1b) HViewAccountNFTs = wasmtypes.ScHname(0x27422359) HViewAccountNFTsInCollection = wasmtypes.ScHname(0xa37fb50f) HViewAccounts = wasmtypes.ScHname(0x3c4b5e02) HViewBalance = wasmtypes.ScHname(0x84168cb4) HViewBalanceBaseToken = wasmtypes.ScHname(0x4c8ccd0f) HViewBalanceNativeToken = wasmtypes.ScHname(0x1fea3104) HViewFoundryOutput = wasmtypes.ScHname(0xd9647be3) HViewGetAccountNonce = wasmtypes.ScHname(0x529d7df9) HViewGetNativeTokenIDRegistry = wasmtypes.ScHname(0x2ad8a59f) HViewNftData = wasmtypes.ScHname(0x83c5c4da) HViewTotalAssets = wasmtypes.ScHname(0xfab0f8d2) )
Variables ¶
This section is empty.
Functions ¶
func OnDispatch ¶ added in v1.0.3
func OnDispatch(index int32) *wasmlib.ScExportMap
Types ¶
type AccountFoundriesCall ¶ added in v1.0.3
type AccountFoundriesCall struct { Func *wasmlib.ScView Params MutableAccountFoundriesParams Results ImmutableAccountFoundriesResults }
type AccountNFTAmountCall ¶ added in v1.0.3
type AccountNFTAmountCall struct { Func *wasmlib.ScView Params MutableAccountNFTAmountParams Results ImmutableAccountNFTAmountResults }
type AccountNFTAmountInCollectionCall ¶ added in v1.0.3
type AccountNFTAmountInCollectionCall struct { Func *wasmlib.ScView Params MutableAccountNFTAmountInCollectionParams Results ImmutableAccountNFTAmountInCollectionResults }
type AccountNFTsCall ¶ added in v0.3.0
type AccountNFTsCall struct { Func *wasmlib.ScView Params MutableAccountNFTsParams Results ImmutableAccountNFTsResults }
type AccountNFTsInCollectionCall ¶ added in v1.0.3
type AccountNFTsInCollectionCall struct { Func *wasmlib.ScView Params MutableAccountNFTsInCollectionParams Results ImmutableAccountNFTsInCollectionResults }
type AccountsCall ¶
type AccountsCall struct { Func *wasmlib.ScView Results ImmutableAccountsResults }
type ArrayOfImmutableNftID ¶ added in v0.3.0
func (ArrayOfImmutableNftID) GetNftID ¶ added in v0.3.0
func (a ArrayOfImmutableNftID) GetNftID(index uint32) wasmtypes.ScImmutableNftID
func (ArrayOfImmutableNftID) Length ¶ added in v0.3.0
func (a ArrayOfImmutableNftID) Length() uint32
type ArrayOfMutableNftID ¶ added in v0.3.0
func (ArrayOfMutableNftID) AppendNftID ¶ added in v0.3.0
func (a ArrayOfMutableNftID) AppendNftID() wasmtypes.ScMutableNftID
func (ArrayOfMutableNftID) Clear ¶ added in v0.3.0
func (a ArrayOfMutableNftID) Clear()
func (ArrayOfMutableNftID) GetNftID ¶ added in v0.3.0
func (a ArrayOfMutableNftID) GetNftID(index uint32) wasmtypes.ScMutableNftID
func (ArrayOfMutableNftID) Length ¶ added in v0.3.0
func (a ArrayOfMutableNftID) Length() uint32
type BalanceBaseTokenCall ¶ added in v1.0.3
type BalanceBaseTokenCall struct { Func *wasmlib.ScView Params MutableBalanceBaseTokenParams Results ImmutableBalanceBaseTokenResults }
type BalanceCall ¶
type BalanceCall struct { Func *wasmlib.ScView Params MutableBalanceParams Results ImmutableBalanceResults }
type BalanceNativeTokenCall ¶ added in v1.0.3
type BalanceNativeTokenCall struct { Func *wasmlib.ScView Params MutableBalanceNativeTokenParams Results ImmutableBalanceNativeTokenResults }
type CoreAccountsEventHandlers ¶ added in v1.0.3
type CoreAccountsEventHandlers struct {
// contains filtered or unexported fields
}
func NewCoreAccountsEventHandlers ¶ added in v1.0.3
func NewCoreAccountsEventHandlers() *CoreAccountsEventHandlers
func (*CoreAccountsEventHandlers) CallHandler ¶ added in v1.0.3
func (h *CoreAccountsEventHandlers) CallHandler(topic string, dec *wasmtypes.WasmDecoder)
func (*CoreAccountsEventHandlers) ID ¶ added in v1.0.3
func (h *CoreAccountsEventHandlers) ID() uint32
func (*CoreAccountsEventHandlers) OnCoreAccountsFoundryCreated ¶ added in v1.0.3
func (h *CoreAccountsEventHandlers) OnCoreAccountsFoundryCreated(handler func(e *EventFoundryCreated))
func (*CoreAccountsEventHandlers) OnCoreAccountsFoundryDestroyed ¶ added in v1.0.3
func (h *CoreAccountsEventHandlers) OnCoreAccountsFoundryDestroyed(handler func(e *EventFoundryDestroyed))
func (*CoreAccountsEventHandlers) OnCoreAccountsFoundryModified ¶ added in v1.0.3
func (h *CoreAccountsEventHandlers) OnCoreAccountsFoundryModified(handler func(e *EventFoundryModified))
type DepositCall ¶
type EventFoundryCreated ¶ added in v1.0.3
type EventFoundryDestroyed ¶ added in v1.0.3
type EventFoundryModified ¶ added in v1.0.3
type FoundryCreateNewCall ¶ added in v0.3.0
type FoundryCreateNewCall struct { Func *wasmlib.ScFunc Params MutableFoundryCreateNewParams Results ImmutableFoundryCreateNewResults }
type FoundryDestroyCall ¶ added in v0.3.0
type FoundryDestroyCall struct { Func *wasmlib.ScFunc Params MutableFoundryDestroyParams }
type FoundryModifySupplyCall ¶ added in v0.3.0
type FoundryModifySupplyCall struct { Func *wasmlib.ScFunc Params MutableFoundryModifySupplyParams }
type FoundryOutputCall ¶ added in v0.3.0
type FoundryOutputCall struct { Func *wasmlib.ScView Params MutableFoundryOutputParams Results ImmutableFoundryOutputResults }
type Funcs ¶
type Funcs struct{}
var ScFuncs Funcs
func (Funcs) AccountFoundries ¶ added in v1.0.3
func (sc Funcs) AccountFoundries(ctx wasmlib.ScViewClientContext) *AccountFoundriesCall
Returns a set of all foundries owned by the given account.
func (Funcs) AccountNFTAmount ¶ added in v1.0.3
func (sc Funcs) AccountNFTAmount(ctx wasmlib.ScViewClientContext) *AccountNFTAmountCall
Returns the amount of NFTs owned by the given account.
func (Funcs) AccountNFTAmountInCollection ¶ added in v1.0.3
func (sc Funcs) AccountNFTAmountInCollection(ctx wasmlib.ScViewClientContext) *AccountNFTAmountInCollectionCall
Returns the amount of NFTs in the specified collection owned by the given account.
func (Funcs) AccountNFTs ¶ added in v0.3.0
func (sc Funcs) AccountNFTs(ctx wasmlib.ScViewClientContext) *AccountNFTsCall
Returns the NFT IDs for all NFTs owned by the given account.
func (Funcs) AccountNFTsInCollection ¶ added in v1.0.3
func (sc Funcs) AccountNFTsInCollection(ctx wasmlib.ScViewClientContext) *AccountNFTsInCollectionCall
Returns the NFT IDs for all NFTs in the specified collection owned by the given account.
func (Funcs) Accounts ¶
func (sc Funcs) Accounts(ctx wasmlib.ScViewClientContext) *AccountsCall
Returns a set of all agent IDs that own assets on the chain.
func (Funcs) Balance ¶
func (sc Funcs) Balance(ctx wasmlib.ScViewClientContext) *BalanceCall
Returns the fungible tokens owned by the given Agent ID on the chain.
func (Funcs) BalanceBaseToken ¶ added in v1.0.3
func (sc Funcs) BalanceBaseToken(ctx wasmlib.ScViewClientContext) *BalanceBaseTokenCall
Returns the amount of base tokens owned by an agent on the chain
func (Funcs) BalanceNativeToken ¶ added in v1.0.3
func (sc Funcs) BalanceNativeToken(ctx wasmlib.ScViewClientContext) *BalanceNativeTokenCall
Returns the amount of specific native tokens owned by an agent on the chain
func (Funcs) Deposit ¶
func (sc Funcs) Deposit(ctx wasmlib.ScFuncClientContext) *DepositCall
A no-op that has the side effect of crediting any transferred tokens to the sender's account.
func (Funcs) FoundryCreateNew ¶ added in v0.3.0
func (sc Funcs) FoundryCreateNew(ctx wasmlib.ScFuncClientContext) *FoundryCreateNewCall
Creates a new foundry with the specified token scheme, and assigns the foundry to the sender.
func (Funcs) FoundryDestroy ¶ added in v0.3.0
func (sc Funcs) FoundryDestroy(ctx wasmlib.ScFuncClientContext) *FoundryDestroyCall
Destroys a given foundry output on L1, reimbursing the storage deposit to the caller. The foundry must be owned by the caller.
func (Funcs) FoundryModifySupply ¶ added in v0.3.0
func (sc Funcs) FoundryModifySupply(ctx wasmlib.ScFuncClientContext) *FoundryModifySupplyCall
Mints or destroys tokens for the given foundry, which must be owned by the caller.
func (Funcs) FoundryOutput ¶ added in v0.3.0
func (sc Funcs) FoundryOutput(ctx wasmlib.ScViewClientContext) *FoundryOutputCall
Returns specified foundry output in serialized form.
func (Funcs) GetAccountNonce ¶
func (sc Funcs) GetAccountNonce(ctx wasmlib.ScViewClientContext) *GetAccountNonceCall
Returns the current account nonce for an Agent. The account nonce is used to issue unique off-ledger requests.
func (Funcs) GetNativeTokenIDRegistry ¶ added in v0.3.0
func (sc Funcs) GetNativeTokenIDRegistry(ctx wasmlib.ScViewClientContext) *GetNativeTokenIDRegistryCall
Returns a set of all native tokenIDs that are owned by the chain.
func (Funcs) NftData ¶ added in v0.3.0
func (sc Funcs) NftData(ctx wasmlib.ScViewClientContext) *NftDataCall
Returns the data for a given NFT that is on the chain.
func (Funcs) TotalAssets ¶
func (sc Funcs) TotalAssets(ctx wasmlib.ScViewClientContext) *TotalAssetsCall
Returns the balances of all fungible tokens controlled by the chain.
func (Funcs) TransferAccountToChain ¶ added in v1.0.3
func (sc Funcs) TransferAccountToChain(ctx wasmlib.ScFuncClientContext) *TransferAccountToChainCall
Transfers the specified allowance from the sender SC's L2 account on the target chain to the sender SC's L2 account on the origin chain.
func (Funcs) TransferAllowanceTo ¶ added in v0.3.0
func (sc Funcs) TransferAllowanceTo(ctx wasmlib.ScFuncClientContext) *TransferAllowanceToCall
Transfers the specified allowance from the sender's L2 account to the given L2 account on the chain.
func (Funcs) Withdraw ¶
func (sc Funcs) Withdraw(ctx wasmlib.ScFuncClientContext) *WithdrawCall
Moves tokens from the caller's on-chain account to the caller's L1 address. The number of tokens to be withdrawn must be specified via the allowance of the request.
type GetAccountNonceCall ¶
type GetAccountNonceCall struct { Func *wasmlib.ScView Params MutableGetAccountNonceParams Results ImmutableGetAccountNonceResults }
type GetNativeTokenIDRegistryCall ¶ added in v0.3.0
type GetNativeTokenIDRegistryCall struct { Func *wasmlib.ScView Results ImmutableGetNativeTokenIDRegistryResults }
type ImmutableAccountFoundriesParams ¶ added in v1.0.3
func NewImmutableAccountFoundriesParams ¶ added in v1.0.3
func NewImmutableAccountFoundriesParams() ImmutableAccountFoundriesParams
func (ImmutableAccountFoundriesParams) AgentID ¶ added in v1.0.3
func (s ImmutableAccountFoundriesParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
type ImmutableAccountFoundriesResults ¶ added in v1.0.3
func (ImmutableAccountFoundriesResults) Foundries ¶ added in v1.0.3
func (s ImmutableAccountFoundriesResults) Foundries() MapUint32ToImmutableBool
foundry serial numbers owned by the given account
type ImmutableAccountNFTAmountInCollectionParams ¶ added in v1.0.3
func NewImmutableAccountNFTAmountInCollectionParams ¶ added in v1.0.3
func NewImmutableAccountNFTAmountInCollectionParams() ImmutableAccountNFTAmountInCollectionParams
func (ImmutableAccountNFTAmountInCollectionParams) AgentID ¶ added in v1.0.3
func (s ImmutableAccountNFTAmountInCollectionParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
func (ImmutableAccountNFTAmountInCollectionParams) Collection ¶ added in v1.0.3
func (s ImmutableAccountNFTAmountInCollectionParams) Collection() wasmtypes.ScImmutableNftID
NFT ID of collection
type ImmutableAccountNFTAmountInCollectionResults ¶ added in v1.0.3
func (ImmutableAccountNFTAmountInCollectionResults) Amount ¶ added in v1.0.3
func (s ImmutableAccountNFTAmountInCollectionResults) Amount() wasmtypes.ScImmutableUint32
amount of NFTs in collection owned by the account
type ImmutableAccountNFTAmountParams ¶ added in v1.0.3
func NewImmutableAccountNFTAmountParams ¶ added in v1.0.3
func NewImmutableAccountNFTAmountParams() ImmutableAccountNFTAmountParams
func (ImmutableAccountNFTAmountParams) AgentID ¶ added in v1.0.3
func (s ImmutableAccountNFTAmountParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
type ImmutableAccountNFTAmountResults ¶ added in v1.0.3
func (ImmutableAccountNFTAmountResults) Amount ¶ added in v1.0.3
func (s ImmutableAccountNFTAmountResults) Amount() wasmtypes.ScImmutableUint32
amount of NFTs owned by the account
type ImmutableAccountNFTsInCollectionParams ¶ added in v1.0.3
func NewImmutableAccountNFTsInCollectionParams ¶ added in v1.0.3
func NewImmutableAccountNFTsInCollectionParams() ImmutableAccountNFTsInCollectionParams
func (ImmutableAccountNFTsInCollectionParams) AgentID ¶ added in v1.0.3
func (s ImmutableAccountNFTsInCollectionParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
func (ImmutableAccountNFTsInCollectionParams) Collection ¶ added in v1.0.3
func (s ImmutableAccountNFTsInCollectionParams) Collection() wasmtypes.ScImmutableNftID
NFT ID of collection
type ImmutableAccountNFTsInCollectionResults ¶ added in v1.0.3
func (ImmutableAccountNFTsInCollectionResults) NftIDs ¶ added in v1.0.3
func (s ImmutableAccountNFTsInCollectionResults) NftIDs() ArrayOfImmutableNftID
NFT IDs in collection owned by the account
type ImmutableAccountNFTsParams ¶ added in v0.3.0
func NewImmutableAccountNFTsParams ¶ added in v1.0.3
func NewImmutableAccountNFTsParams() ImmutableAccountNFTsParams
func (ImmutableAccountNFTsParams) AgentID ¶ added in v0.3.0
func (s ImmutableAccountNFTsParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
type ImmutableAccountNFTsResults ¶ added in v0.3.0
func (ImmutableAccountNFTsResults) NftIDs ¶ added in v0.3.0
func (s ImmutableAccountNFTsResults) NftIDs() ArrayOfImmutableNftID
NFT IDs owned by the account
type ImmutableAccountsResults ¶
func (ImmutableAccountsResults) AllAccounts ¶ added in v0.3.0
func (s ImmutableAccountsResults) AllAccounts() MapAgentIDToImmutableBool
agent IDs
type ImmutableBalanceBaseTokenParams ¶ added in v1.0.3
func NewImmutableBalanceBaseTokenParams ¶ added in v1.0.3
func NewImmutableBalanceBaseTokenParams() ImmutableBalanceBaseTokenParams
func (ImmutableBalanceBaseTokenParams) AgentID ¶ added in v1.0.3
func (s ImmutableBalanceBaseTokenParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
type ImmutableBalanceBaseTokenResults ¶ added in v1.0.3
func (ImmutableBalanceBaseTokenResults) Balance ¶ added in v1.0.3
func (s ImmutableBalanceBaseTokenResults) Balance() wasmtypes.ScImmutableUint64
amount of base tokens in the account
type ImmutableBalanceNativeTokenParams ¶ added in v1.0.3
func NewImmutableBalanceNativeTokenParams ¶ added in v1.0.3
func NewImmutableBalanceNativeTokenParams() ImmutableBalanceNativeTokenParams
func (ImmutableBalanceNativeTokenParams) AgentID ¶ added in v1.0.3
func (s ImmutableBalanceNativeTokenParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
func (ImmutableBalanceNativeTokenParams) TokenID ¶ added in v1.0.3
func (s ImmutableBalanceNativeTokenParams) TokenID() wasmtypes.ScImmutableTokenID
native token ID
type ImmutableBalanceNativeTokenResults ¶ added in v1.0.3
func (ImmutableBalanceNativeTokenResults) Tokens ¶ added in v1.0.3
func (s ImmutableBalanceNativeTokenResults) Tokens() wasmtypes.ScImmutableBigInt
amount of native tokens in the account
type ImmutableBalanceParams ¶
func NewImmutableBalanceParams ¶ added in v1.0.3
func NewImmutableBalanceParams() ImmutableBalanceParams
func (ImmutableBalanceParams) AgentID ¶
func (s ImmutableBalanceParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
type ImmutableBalanceResults ¶
func (ImmutableBalanceResults) Balances ¶
func (s ImmutableBalanceResults) Balances() MapTokenIDToImmutableBigInt
balance per token ID, zero length indicates base token
type ImmutableFoundryCreateNewParams ¶ added in v0.3.0
func NewImmutableFoundryCreateNewParams ¶ added in v1.0.3
func NewImmutableFoundryCreateNewParams() ImmutableFoundryCreateNewParams
func (ImmutableFoundryCreateNewParams) TokenScheme ¶ added in v0.3.0
func (s ImmutableFoundryCreateNewParams) TokenScheme() wasmtypes.ScImmutableBytes
token scheme for the new foundry
type ImmutableFoundryCreateNewResults ¶ added in v0.3.0
func (ImmutableFoundryCreateNewResults) FoundrySN ¶ added in v0.3.0
func (s ImmutableFoundryCreateNewResults) FoundrySN() wasmtypes.ScImmutableUint32
serial number of the newly created foundry
type ImmutableFoundryDestroyParams ¶ added in v0.3.0
func NewImmutableFoundryDestroyParams ¶ added in v1.0.3
func NewImmutableFoundryDestroyParams() ImmutableFoundryDestroyParams
func (ImmutableFoundryDestroyParams) FoundrySN ¶ added in v0.3.0
func (s ImmutableFoundryDestroyParams) FoundrySN() wasmtypes.ScImmutableUint32
serial number of the foundry
type ImmutableFoundryModifySupplyParams ¶ added in v0.3.0
func NewImmutableFoundryModifySupplyParams ¶ added in v1.0.3
func NewImmutableFoundryModifySupplyParams() ImmutableFoundryModifySupplyParams
func (ImmutableFoundryModifySupplyParams) DestroyTokens ¶ added in v0.3.0
func (s ImmutableFoundryModifySupplyParams) DestroyTokens() wasmtypes.ScImmutableBool
mint (default) or destroy tokens
func (ImmutableFoundryModifySupplyParams) FoundrySN ¶ added in v0.3.0
func (s ImmutableFoundryModifySupplyParams) FoundrySN() wasmtypes.ScImmutableUint32
serial number of the foundry
func (ImmutableFoundryModifySupplyParams) SupplyDeltaAbs ¶ added in v0.3.0
func (s ImmutableFoundryModifySupplyParams) SupplyDeltaAbs() wasmtypes.ScImmutableBigInt
positive nonzero amount to mint or destroy
type ImmutableFoundryOutputParams ¶ added in v0.3.0
func NewImmutableFoundryOutputParams ¶ added in v1.0.3
func NewImmutableFoundryOutputParams() ImmutableFoundryOutputParams
func (ImmutableFoundryOutputParams) FoundrySN ¶ added in v0.3.0
func (s ImmutableFoundryOutputParams) FoundrySN() wasmtypes.ScImmutableUint32
serial number of the foundry
type ImmutableFoundryOutputResults ¶ added in v0.3.0
func (ImmutableFoundryOutputResults) FoundryOutputBin ¶ added in v0.3.0
func (s ImmutableFoundryOutputResults) FoundryOutputBin() wasmtypes.ScImmutableBytes
serialized foundry output
type ImmutableGetAccountNonceParams ¶
func NewImmutableGetAccountNonceParams ¶ added in v1.0.3
func NewImmutableGetAccountNonceParams() ImmutableGetAccountNonceParams
func (ImmutableGetAccountNonceParams) AgentID ¶
func (s ImmutableGetAccountNonceParams) AgentID() wasmtypes.ScImmutableAgentID
account agent ID
type ImmutableGetAccountNonceResults ¶
func (ImmutableGetAccountNonceResults) AccountNonce ¶
func (s ImmutableGetAccountNonceResults) AccountNonce() wasmtypes.ScImmutableUint64
account nonce
type ImmutableGetNativeTokenIDRegistryResults ¶ added in v0.3.0
func (ImmutableGetNativeTokenIDRegistryResults) Mapping ¶ added in v0.3.0
func (s ImmutableGetNativeTokenIDRegistryResults) Mapping() MapTokenIDToImmutableBool
token IDs
type ImmutableNftDataParams ¶ added in v0.3.0
func NewImmutableNftDataParams ¶ added in v1.0.3
func NewImmutableNftDataParams() ImmutableNftDataParams
func (ImmutableNftDataParams) NftID ¶ added in v0.3.0
func (s ImmutableNftDataParams) NftID() wasmtypes.ScImmutableNftID
NFT ID
type ImmutableNftDataResults ¶ added in v0.3.0
func (ImmutableNftDataResults) NftData ¶ added in v0.3.0
func (s ImmutableNftDataResults) NftData() wasmtypes.ScImmutableBytes
serialized NFT data
type ImmutableTotalAssetsResults ¶
func (ImmutableTotalAssetsResults) Assets ¶ added in v0.3.0
func (s ImmutableTotalAssetsResults) Assets() MapTokenIDToImmutableBigInt
balance per token ID, zero length indicates base token
type ImmutableTransferAccountToChainParams ¶ added in v1.0.3
func NewImmutableTransferAccountToChainParams ¶ added in v1.0.3
func NewImmutableTransferAccountToChainParams() ImmutableTransferAccountToChainParams
func (ImmutableTransferAccountToChainParams) GasReserve ¶ added in v1.0.3
func (s ImmutableTransferAccountToChainParams) GasReserve() wasmtypes.ScImmutableUint64
Optional gas amount to reserve in the allowance for the internal call to transferAllowanceTo(). Default 10_000 (MinGasFee).
type ImmutableTransferAllowanceToParams ¶ added in v0.3.0
func NewImmutableTransferAllowanceToParams ¶ added in v1.0.3
func NewImmutableTransferAllowanceToParams() ImmutableTransferAllowanceToParams
func (ImmutableTransferAllowanceToParams) AgentID ¶ added in v0.3.0
func (s ImmutableTransferAllowanceToParams) AgentID() wasmtypes.ScImmutableAgentID
The target L2 account
type MapAgentIDToImmutableBool ¶ added in v0.3.0
func (MapAgentIDToImmutableBool) GetBool ¶ added in v0.3.0
func (m MapAgentIDToImmutableBool) GetBool(key wasmtypes.ScAgentID) wasmtypes.ScImmutableBool
type MapAgentIDToMutableBool ¶ added in v0.3.0
func (MapAgentIDToMutableBool) Clear ¶ added in v0.3.0
func (m MapAgentIDToMutableBool) Clear()
func (MapAgentIDToMutableBool) GetBool ¶ added in v0.3.0
func (m MapAgentIDToMutableBool) GetBool(key wasmtypes.ScAgentID) wasmtypes.ScMutableBool
type MapTokenIDToImmutableBigInt ¶ added in v0.3.0
func (MapTokenIDToImmutableBigInt) GetBigInt ¶ added in v0.3.0
func (m MapTokenIDToImmutableBigInt) GetBigInt(key wasmtypes.ScTokenID) wasmtypes.ScImmutableBigInt
type MapTokenIDToImmutableBool ¶ added in v0.3.0
func (MapTokenIDToImmutableBool) GetBool ¶ added in v0.3.0
func (m MapTokenIDToImmutableBool) GetBool(key wasmtypes.ScTokenID) wasmtypes.ScImmutableBool
type MapTokenIDToMutableBigInt ¶ added in v0.3.0
func (MapTokenIDToMutableBigInt) Clear ¶ added in v0.3.0
func (m MapTokenIDToMutableBigInt) Clear()
func (MapTokenIDToMutableBigInt) GetBigInt ¶ added in v0.3.0
func (m MapTokenIDToMutableBigInt) GetBigInt(key wasmtypes.ScTokenID) wasmtypes.ScMutableBigInt
type MapTokenIDToMutableBool ¶ added in v0.3.0
func (MapTokenIDToMutableBool) Clear ¶ added in v0.3.0
func (m MapTokenIDToMutableBool) Clear()
func (MapTokenIDToMutableBool) GetBool ¶ added in v0.3.0
func (m MapTokenIDToMutableBool) GetBool(key wasmtypes.ScTokenID) wasmtypes.ScMutableBool
type MapUint32ToImmutableBool ¶ added in v1.0.3
func (MapUint32ToImmutableBool) GetBool ¶ added in v1.0.3
func (m MapUint32ToImmutableBool) GetBool(key uint32) wasmtypes.ScImmutableBool
type MapUint32ToMutableBool ¶ added in v1.0.3
func (MapUint32ToMutableBool) Clear ¶ added in v1.0.3
func (m MapUint32ToMutableBool) Clear()
func (MapUint32ToMutableBool) GetBool ¶ added in v1.0.3
func (m MapUint32ToMutableBool) GetBool(key uint32) wasmtypes.ScMutableBool
type MutableAccountFoundriesParams ¶ added in v1.0.3
func (MutableAccountFoundriesParams) AgentID ¶ added in v1.0.3
func (s MutableAccountFoundriesParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
type MutableAccountFoundriesResults ¶ added in v1.0.3
func NewMutableAccountFoundriesResults ¶ added in v1.0.3
func NewMutableAccountFoundriesResults() MutableAccountFoundriesResults
func (MutableAccountFoundriesResults) Foundries ¶ added in v1.0.3
func (s MutableAccountFoundriesResults) Foundries() MapUint32ToMutableBool
foundry serial numbers owned by the given account
type MutableAccountNFTAmountInCollectionParams ¶ added in v1.0.3
func (MutableAccountNFTAmountInCollectionParams) AgentID ¶ added in v1.0.3
func (s MutableAccountNFTAmountInCollectionParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
func (MutableAccountNFTAmountInCollectionParams) Collection ¶ added in v1.0.3
func (s MutableAccountNFTAmountInCollectionParams) Collection() wasmtypes.ScMutableNftID
NFT ID of collection
type MutableAccountNFTAmountInCollectionResults ¶ added in v1.0.3
func NewMutableAccountNFTAmountInCollectionResults ¶ added in v1.0.3
func NewMutableAccountNFTAmountInCollectionResults() MutableAccountNFTAmountInCollectionResults
func (MutableAccountNFTAmountInCollectionResults) Amount ¶ added in v1.0.3
func (s MutableAccountNFTAmountInCollectionResults) Amount() wasmtypes.ScMutableUint32
amount of NFTs in collection owned by the account
type MutableAccountNFTAmountParams ¶ added in v1.0.3
func (MutableAccountNFTAmountParams) AgentID ¶ added in v1.0.3
func (s MutableAccountNFTAmountParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
type MutableAccountNFTAmountResults ¶ added in v1.0.3
func NewMutableAccountNFTAmountResults ¶ added in v1.0.3
func NewMutableAccountNFTAmountResults() MutableAccountNFTAmountResults
func (MutableAccountNFTAmountResults) Amount ¶ added in v1.0.3
func (s MutableAccountNFTAmountResults) Amount() wasmtypes.ScMutableUint32
amount of NFTs owned by the account
type MutableAccountNFTsInCollectionParams ¶ added in v1.0.3
func (MutableAccountNFTsInCollectionParams) AgentID ¶ added in v1.0.3
func (s MutableAccountNFTsInCollectionParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
func (MutableAccountNFTsInCollectionParams) Collection ¶ added in v1.0.3
func (s MutableAccountNFTsInCollectionParams) Collection() wasmtypes.ScMutableNftID
NFT ID of collection
type MutableAccountNFTsInCollectionResults ¶ added in v1.0.3
func NewMutableAccountNFTsInCollectionResults ¶ added in v1.0.3
func NewMutableAccountNFTsInCollectionResults() MutableAccountNFTsInCollectionResults
func (MutableAccountNFTsInCollectionResults) NftIDs ¶ added in v1.0.3
func (s MutableAccountNFTsInCollectionResults) NftIDs() ArrayOfMutableNftID
NFT IDs in collection owned by the account
type MutableAccountNFTsParams ¶ added in v0.3.0
func (MutableAccountNFTsParams) AgentID ¶ added in v0.3.0
func (s MutableAccountNFTsParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
type MutableAccountNFTsResults ¶ added in v0.3.0
func NewMutableAccountNFTsResults ¶ added in v1.0.3
func NewMutableAccountNFTsResults() MutableAccountNFTsResults
func (MutableAccountNFTsResults) NftIDs ¶ added in v0.3.0
func (s MutableAccountNFTsResults) NftIDs() ArrayOfMutableNftID
NFT IDs owned by the account
type MutableAccountsResults ¶
func NewMutableAccountsResults ¶ added in v1.0.3
func NewMutableAccountsResults() MutableAccountsResults
func (MutableAccountsResults) AllAccounts ¶ added in v0.3.0
func (s MutableAccountsResults) AllAccounts() MapAgentIDToMutableBool
agent IDs
type MutableBalanceBaseTokenParams ¶ added in v1.0.3
func (MutableBalanceBaseTokenParams) AgentID ¶ added in v1.0.3
func (s MutableBalanceBaseTokenParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
type MutableBalanceBaseTokenResults ¶ added in v1.0.3
func NewMutableBalanceBaseTokenResults ¶ added in v1.0.3
func NewMutableBalanceBaseTokenResults() MutableBalanceBaseTokenResults
func (MutableBalanceBaseTokenResults) Balance ¶ added in v1.0.3
func (s MutableBalanceBaseTokenResults) Balance() wasmtypes.ScMutableUint64
amount of base tokens in the account
type MutableBalanceNativeTokenParams ¶ added in v1.0.3
func (MutableBalanceNativeTokenParams) AgentID ¶ added in v1.0.3
func (s MutableBalanceNativeTokenParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
func (MutableBalanceNativeTokenParams) TokenID ¶ added in v1.0.3
func (s MutableBalanceNativeTokenParams) TokenID() wasmtypes.ScMutableTokenID
native token ID
type MutableBalanceNativeTokenResults ¶ added in v1.0.3
func NewMutableBalanceNativeTokenResults ¶ added in v1.0.3
func NewMutableBalanceNativeTokenResults() MutableBalanceNativeTokenResults
func (MutableBalanceNativeTokenResults) Tokens ¶ added in v1.0.3
func (s MutableBalanceNativeTokenResults) Tokens() wasmtypes.ScMutableBigInt
amount of native tokens in the account
type MutableBalanceParams ¶
func (MutableBalanceParams) AgentID ¶
func (s MutableBalanceParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
type MutableBalanceResults ¶
func NewMutableBalanceResults ¶ added in v1.0.3
func NewMutableBalanceResults() MutableBalanceResults
func (MutableBalanceResults) Balances ¶
func (s MutableBalanceResults) Balances() MapTokenIDToMutableBigInt
balance per token ID, zero length indicates base token
type MutableFoundryCreateNewParams ¶ added in v0.3.0
func (MutableFoundryCreateNewParams) TokenScheme ¶ added in v0.3.0
func (s MutableFoundryCreateNewParams) TokenScheme() wasmtypes.ScMutableBytes
token scheme for the new foundry
type MutableFoundryCreateNewResults ¶ added in v0.3.0
func NewMutableFoundryCreateNewResults ¶ added in v1.0.3
func NewMutableFoundryCreateNewResults() MutableFoundryCreateNewResults
func (MutableFoundryCreateNewResults) FoundrySN ¶ added in v0.3.0
func (s MutableFoundryCreateNewResults) FoundrySN() wasmtypes.ScMutableUint32
serial number of the newly created foundry
type MutableFoundryDestroyParams ¶ added in v0.3.0
func (MutableFoundryDestroyParams) FoundrySN ¶ added in v0.3.0
func (s MutableFoundryDestroyParams) FoundrySN() wasmtypes.ScMutableUint32
serial number of the foundry
type MutableFoundryModifySupplyParams ¶ added in v0.3.0
func (MutableFoundryModifySupplyParams) DestroyTokens ¶ added in v0.3.0
func (s MutableFoundryModifySupplyParams) DestroyTokens() wasmtypes.ScMutableBool
mint (default) or destroy tokens
func (MutableFoundryModifySupplyParams) FoundrySN ¶ added in v0.3.0
func (s MutableFoundryModifySupplyParams) FoundrySN() wasmtypes.ScMutableUint32
serial number of the foundry
func (MutableFoundryModifySupplyParams) SupplyDeltaAbs ¶ added in v0.3.0
func (s MutableFoundryModifySupplyParams) SupplyDeltaAbs() wasmtypes.ScMutableBigInt
positive nonzero amount to mint or destroy
type MutableFoundryOutputParams ¶ added in v0.3.0
func (MutableFoundryOutputParams) FoundrySN ¶ added in v0.3.0
func (s MutableFoundryOutputParams) FoundrySN() wasmtypes.ScMutableUint32
serial number of the foundry
type MutableFoundryOutputResults ¶ added in v0.3.0
func NewMutableFoundryOutputResults ¶ added in v1.0.3
func NewMutableFoundryOutputResults() MutableFoundryOutputResults
func (MutableFoundryOutputResults) FoundryOutputBin ¶ added in v0.3.0
func (s MutableFoundryOutputResults) FoundryOutputBin() wasmtypes.ScMutableBytes
serialized foundry output
type MutableGetAccountNonceParams ¶
func (MutableGetAccountNonceParams) AgentID ¶
func (s MutableGetAccountNonceParams) AgentID() wasmtypes.ScMutableAgentID
account agent ID
type MutableGetAccountNonceResults ¶
func NewMutableGetAccountNonceResults ¶ added in v1.0.3
func NewMutableGetAccountNonceResults() MutableGetAccountNonceResults
func (MutableGetAccountNonceResults) AccountNonce ¶
func (s MutableGetAccountNonceResults) AccountNonce() wasmtypes.ScMutableUint64
account nonce
type MutableGetNativeTokenIDRegistryResults ¶ added in v0.3.0
func NewMutableGetNativeTokenIDRegistryResults ¶ added in v1.0.3
func NewMutableGetNativeTokenIDRegistryResults() MutableGetNativeTokenIDRegistryResults
func (MutableGetNativeTokenIDRegistryResults) Mapping ¶ added in v0.3.0
func (s MutableGetNativeTokenIDRegistryResults) Mapping() MapTokenIDToMutableBool
token IDs
type MutableNftDataParams ¶ added in v0.3.0
func (MutableNftDataParams) NftID ¶ added in v0.3.0
func (s MutableNftDataParams) NftID() wasmtypes.ScMutableNftID
NFT ID
type MutableNftDataResults ¶ added in v0.3.0
func NewMutableNftDataResults ¶ added in v1.0.3
func NewMutableNftDataResults() MutableNftDataResults
func (MutableNftDataResults) NftData ¶ added in v0.3.0
func (s MutableNftDataResults) NftData() wasmtypes.ScMutableBytes
serialized NFT data
type MutableTotalAssetsResults ¶
func NewMutableTotalAssetsResults ¶ added in v1.0.3
func NewMutableTotalAssetsResults() MutableTotalAssetsResults
func (MutableTotalAssetsResults) Assets ¶ added in v0.3.0
func (s MutableTotalAssetsResults) Assets() MapTokenIDToMutableBigInt
balance per token ID, zero length indicates base token
type MutableTransferAccountToChainParams ¶ added in v1.0.3
func (MutableTransferAccountToChainParams) GasReserve ¶ added in v1.0.3
func (s MutableTransferAccountToChainParams) GasReserve() wasmtypes.ScMutableUint64
Optional gas amount to reserve in the allowance for the internal call to transferAllowanceTo(). Default 10_000 (MinGasFee).
type MutableTransferAllowanceToParams ¶ added in v0.3.0
func (MutableTransferAllowanceToParams) AgentID ¶ added in v0.3.0
func (s MutableTransferAllowanceToParams) AgentID() wasmtypes.ScMutableAgentID
The target L2 account
type NftDataCall ¶ added in v0.3.0
type NftDataCall struct { Func *wasmlib.ScView Params MutableNftDataParams Results ImmutableNftDataResults }
type TotalAssetsCall ¶
type TotalAssetsCall struct { Func *wasmlib.ScView Results ImmutableTotalAssetsResults }
type TransferAccountToChainCall ¶ added in v1.0.3
type TransferAccountToChainCall struct { Func *wasmlib.ScFunc Params MutableTransferAccountToChainParams }
type TransferAllowanceToCall ¶ added in v0.3.0
type TransferAllowanceToCall struct { Func *wasmlib.ScFunc Params MutableTransferAllowanceToParams }