coreaccounts

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScName        = "accounts"
	ScDescription = "Chain account ledger contract"
	HScName       = wasmtypes.ScHname(0x3c4b5e02)
)
View Source
const (
	ParamAgentID        = "a"
	ParamCollection     = "C"
	ParamDestroyTokens  = "y"
	ParamFoundrySN      = "s"
	ParamGasReserve     = "g"
	ParamNftID          = "z"
	ParamSupplyDeltaAbs = "d"
	ParamTokenID        = "N"
	ParamTokenScheme    = "t"
)
View Source
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"
)
View Source
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"
)
View Source
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

type ArrayOfImmutableNftID struct {
	Proxy wasmtypes.Proxy
}

func (ArrayOfImmutableNftID) GetNftID added in v0.3.0

func (ArrayOfImmutableNftID) Length added in v0.3.0

func (a ArrayOfImmutableNftID) Length() uint32

type ArrayOfMutableNftID added in v0.3.0

type ArrayOfMutableNftID struct {
	Proxy wasmtypes.Proxy
}

func (ArrayOfMutableNftID) AppendNftID added in v0.3.0

func (ArrayOfMutableNftID) Clear added in v0.3.0

func (a ArrayOfMutableNftID) Clear()

func (ArrayOfMutableNftID) GetNftID added in v0.3.0

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 (*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 DepositCall struct {
	Func *wasmlib.ScFunc
}

type EventFoundryCreated added in v1.0.3

type EventFoundryCreated struct {
	Timestamp uint64
	FoundrySN uint32
}

type EventFoundryDestroyed added in v1.0.3

type EventFoundryDestroyed struct {
	Timestamp uint64
	FoundrySN uint32
}

type EventFoundryModified added in v1.0.3

type EventFoundryModified struct {
	Timestamp uint64
	FoundrySN uint32
}

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

type ImmutableAccountFoundriesParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableAccountFoundriesParams added in v1.0.3

func NewImmutableAccountFoundriesParams() ImmutableAccountFoundriesParams

func (ImmutableAccountFoundriesParams) AgentID added in v1.0.3

account agent ID

type ImmutableAccountFoundriesResults added in v1.0.3

type ImmutableAccountFoundriesResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableAccountFoundriesResults) Foundries added in v1.0.3

foundry serial numbers owned by the given account

type ImmutableAccountNFTAmountInCollectionParams added in v1.0.3

type ImmutableAccountNFTAmountInCollectionParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableAccountNFTAmountInCollectionParams added in v1.0.3

func NewImmutableAccountNFTAmountInCollectionParams() ImmutableAccountNFTAmountInCollectionParams

func (ImmutableAccountNFTAmountInCollectionParams) AgentID added in v1.0.3

account agent ID

func (ImmutableAccountNFTAmountInCollectionParams) Collection added in v1.0.3

NFT ID of collection

type ImmutableAccountNFTAmountInCollectionResults added in v1.0.3

type ImmutableAccountNFTAmountInCollectionResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableAccountNFTAmountInCollectionResults) Amount added in v1.0.3

amount of NFTs in collection owned by the account

type ImmutableAccountNFTAmountParams added in v1.0.3

type ImmutableAccountNFTAmountParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableAccountNFTAmountParams added in v1.0.3

func NewImmutableAccountNFTAmountParams() ImmutableAccountNFTAmountParams

func (ImmutableAccountNFTAmountParams) AgentID added in v1.0.3

account agent ID

type ImmutableAccountNFTAmountResults added in v1.0.3

type ImmutableAccountNFTAmountResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableAccountNFTAmountResults) Amount added in v1.0.3

amount of NFTs owned by the account

type ImmutableAccountNFTsInCollectionParams added in v1.0.3

type ImmutableAccountNFTsInCollectionParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableAccountNFTsInCollectionParams added in v1.0.3

func NewImmutableAccountNFTsInCollectionParams() ImmutableAccountNFTsInCollectionParams

func (ImmutableAccountNFTsInCollectionParams) AgentID added in v1.0.3

account agent ID

func (ImmutableAccountNFTsInCollectionParams) Collection added in v1.0.3

NFT ID of collection

type ImmutableAccountNFTsInCollectionResults added in v1.0.3

type ImmutableAccountNFTsInCollectionResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableAccountNFTsInCollectionResults) NftIDs added in v1.0.3

NFT IDs in collection owned by the account

type ImmutableAccountNFTsParams added in v0.3.0

type ImmutableAccountNFTsParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableAccountNFTsParams added in v1.0.3

func NewImmutableAccountNFTsParams() ImmutableAccountNFTsParams

func (ImmutableAccountNFTsParams) AgentID added in v0.3.0

account agent ID

type ImmutableAccountNFTsResults added in v0.3.0

type ImmutableAccountNFTsResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableAccountNFTsResults) NftIDs added in v0.3.0

NFT IDs owned by the account

type ImmutableAccountsResults

type ImmutableAccountsResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableAccountsResults) AllAccounts added in v0.3.0

agent IDs

type ImmutableBalanceBaseTokenParams added in v1.0.3

type ImmutableBalanceBaseTokenParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableBalanceBaseTokenParams added in v1.0.3

func NewImmutableBalanceBaseTokenParams() ImmutableBalanceBaseTokenParams

func (ImmutableBalanceBaseTokenParams) AgentID added in v1.0.3

account agent ID

type ImmutableBalanceBaseTokenResults added in v1.0.3

type ImmutableBalanceBaseTokenResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableBalanceBaseTokenResults) Balance added in v1.0.3

amount of base tokens in the account

type ImmutableBalanceNativeTokenParams added in v1.0.3

type ImmutableBalanceNativeTokenParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableBalanceNativeTokenParams added in v1.0.3

func NewImmutableBalanceNativeTokenParams() ImmutableBalanceNativeTokenParams

func (ImmutableBalanceNativeTokenParams) AgentID added in v1.0.3

account agent ID

func (ImmutableBalanceNativeTokenParams) TokenID added in v1.0.3

native token ID

type ImmutableBalanceNativeTokenResults added in v1.0.3

type ImmutableBalanceNativeTokenResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableBalanceNativeTokenResults) Tokens added in v1.0.3

amount of native tokens in the account

type ImmutableBalanceParams

type ImmutableBalanceParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableBalanceParams added in v1.0.3

func NewImmutableBalanceParams() ImmutableBalanceParams

func (ImmutableBalanceParams) AgentID

account agent ID

type ImmutableBalanceResults

type ImmutableBalanceResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableBalanceResults) Balances

balance per token ID, zero length indicates base token

type ImmutableFoundryCreateNewParams added in v0.3.0

type ImmutableFoundryCreateNewParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableFoundryCreateNewParams added in v1.0.3

func NewImmutableFoundryCreateNewParams() ImmutableFoundryCreateNewParams

func (ImmutableFoundryCreateNewParams) TokenScheme added in v0.3.0

token scheme for the new foundry

type ImmutableFoundryCreateNewResults added in v0.3.0

type ImmutableFoundryCreateNewResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableFoundryCreateNewResults) FoundrySN added in v0.3.0

serial number of the newly created foundry

type ImmutableFoundryDestroyParams added in v0.3.0

type ImmutableFoundryDestroyParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableFoundryDestroyParams added in v1.0.3

func NewImmutableFoundryDestroyParams() ImmutableFoundryDestroyParams

func (ImmutableFoundryDestroyParams) FoundrySN added in v0.3.0

serial number of the foundry

type ImmutableFoundryModifySupplyParams added in v0.3.0

type ImmutableFoundryModifySupplyParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableFoundryModifySupplyParams added in v1.0.3

func NewImmutableFoundryModifySupplyParams() ImmutableFoundryModifySupplyParams

func (ImmutableFoundryModifySupplyParams) DestroyTokens added in v0.3.0

mint (default) or destroy tokens

func (ImmutableFoundryModifySupplyParams) FoundrySN added in v0.3.0

serial number of the foundry

func (ImmutableFoundryModifySupplyParams) SupplyDeltaAbs added in v0.3.0

positive nonzero amount to mint or destroy

type ImmutableFoundryOutputParams added in v0.3.0

type ImmutableFoundryOutputParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableFoundryOutputParams added in v1.0.3

func NewImmutableFoundryOutputParams() ImmutableFoundryOutputParams

func (ImmutableFoundryOutputParams) FoundrySN added in v0.3.0

serial number of the foundry

type ImmutableFoundryOutputResults added in v0.3.0

type ImmutableFoundryOutputResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableFoundryOutputResults) FoundryOutputBin added in v0.3.0

serialized foundry output

type ImmutableGetAccountNonceParams

type ImmutableGetAccountNonceParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetAccountNonceParams added in v1.0.3

func NewImmutableGetAccountNonceParams() ImmutableGetAccountNonceParams

func (ImmutableGetAccountNonceParams) AgentID

account agent ID

type ImmutableGetAccountNonceResults

type ImmutableGetAccountNonceResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetAccountNonceResults) AccountNonce

account nonce

type ImmutableGetNativeTokenIDRegistryResults added in v0.3.0

type ImmutableGetNativeTokenIDRegistryResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetNativeTokenIDRegistryResults) Mapping added in v0.3.0

token IDs

type ImmutableNftDataParams added in v0.3.0

type ImmutableNftDataParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableNftDataParams added in v1.0.3

func NewImmutableNftDataParams() ImmutableNftDataParams

func (ImmutableNftDataParams) NftID added in v0.3.0

NFT ID

type ImmutableNftDataResults added in v0.3.0

type ImmutableNftDataResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableNftDataResults) NftData added in v0.3.0

serialized NFT data

type ImmutableTotalAssetsResults

type ImmutableTotalAssetsResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableTotalAssetsResults) Assets added in v0.3.0

balance per token ID, zero length indicates base token

type ImmutableTransferAccountToChainParams added in v1.0.3

type ImmutableTransferAccountToChainParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableTransferAccountToChainParams added in v1.0.3

func NewImmutableTransferAccountToChainParams() ImmutableTransferAccountToChainParams

func (ImmutableTransferAccountToChainParams) GasReserve added in v1.0.3

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

type ImmutableTransferAllowanceToParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableTransferAllowanceToParams added in v1.0.3

func NewImmutableTransferAllowanceToParams() ImmutableTransferAllowanceToParams

func (ImmutableTransferAllowanceToParams) AgentID added in v0.3.0

The target L2 account

type MapAgentIDToImmutableBool added in v0.3.0

type MapAgentIDToImmutableBool struct {
	Proxy wasmtypes.Proxy
}

func (MapAgentIDToImmutableBool) GetBool added in v0.3.0

type MapAgentIDToMutableBool added in v0.3.0

type MapAgentIDToMutableBool struct {
	Proxy wasmtypes.Proxy
}

func (MapAgentIDToMutableBool) Clear added in v0.3.0

func (m MapAgentIDToMutableBool) Clear()

func (MapAgentIDToMutableBool) GetBool added in v0.3.0

type MapTokenIDToImmutableBigInt added in v0.3.0

type MapTokenIDToImmutableBigInt struct {
	Proxy wasmtypes.Proxy
}

func (MapTokenIDToImmutableBigInt) GetBigInt added in v0.3.0

type MapTokenIDToImmutableBool added in v0.3.0

type MapTokenIDToImmutableBool struct {
	Proxy wasmtypes.Proxy
}

func (MapTokenIDToImmutableBool) GetBool added in v0.3.0

type MapTokenIDToMutableBigInt added in v0.3.0

type MapTokenIDToMutableBigInt struct {
	Proxy wasmtypes.Proxy
}

func (MapTokenIDToMutableBigInt) Clear added in v0.3.0

func (m MapTokenIDToMutableBigInt) Clear()

func (MapTokenIDToMutableBigInt) GetBigInt added in v0.3.0

type MapTokenIDToMutableBool added in v0.3.0

type MapTokenIDToMutableBool struct {
	Proxy wasmtypes.Proxy
}

func (MapTokenIDToMutableBool) Clear added in v0.3.0

func (m MapTokenIDToMutableBool) Clear()

func (MapTokenIDToMutableBool) GetBool added in v0.3.0

type MapUint32ToImmutableBool added in v1.0.3

type MapUint32ToImmutableBool struct {
	Proxy wasmtypes.Proxy
}

func (MapUint32ToImmutableBool) GetBool added in v1.0.3

type MapUint32ToMutableBool added in v1.0.3

type MapUint32ToMutableBool struct {
	Proxy wasmtypes.Proxy
}

func (MapUint32ToMutableBool) Clear added in v1.0.3

func (m MapUint32ToMutableBool) Clear()

func (MapUint32ToMutableBool) GetBool added in v1.0.3

type MutableAccountFoundriesParams added in v1.0.3

type MutableAccountFoundriesParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableAccountFoundriesParams) AgentID added in v1.0.3

account agent ID

type MutableAccountFoundriesResults added in v1.0.3

type MutableAccountFoundriesResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableAccountFoundriesResults added in v1.0.3

func NewMutableAccountFoundriesResults() MutableAccountFoundriesResults

func (MutableAccountFoundriesResults) Foundries added in v1.0.3

foundry serial numbers owned by the given account

type MutableAccountNFTAmountInCollectionParams added in v1.0.3

type MutableAccountNFTAmountInCollectionParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableAccountNFTAmountInCollectionParams) AgentID added in v1.0.3

account agent ID

func (MutableAccountNFTAmountInCollectionParams) Collection added in v1.0.3

NFT ID of collection

type MutableAccountNFTAmountInCollectionResults added in v1.0.3

type MutableAccountNFTAmountInCollectionResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableAccountNFTAmountInCollectionResults added in v1.0.3

func NewMutableAccountNFTAmountInCollectionResults() MutableAccountNFTAmountInCollectionResults

func (MutableAccountNFTAmountInCollectionResults) Amount added in v1.0.3

amount of NFTs in collection owned by the account

type MutableAccountNFTAmountParams added in v1.0.3

type MutableAccountNFTAmountParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableAccountNFTAmountParams) AgentID added in v1.0.3

account agent ID

type MutableAccountNFTAmountResults added in v1.0.3

type MutableAccountNFTAmountResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableAccountNFTAmountResults added in v1.0.3

func NewMutableAccountNFTAmountResults() MutableAccountNFTAmountResults

func (MutableAccountNFTAmountResults) Amount added in v1.0.3

amount of NFTs owned by the account

type MutableAccountNFTsInCollectionParams added in v1.0.3

type MutableAccountNFTsInCollectionParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableAccountNFTsInCollectionParams) AgentID added in v1.0.3

account agent ID

func (MutableAccountNFTsInCollectionParams) Collection added in v1.0.3

NFT ID of collection

type MutableAccountNFTsInCollectionResults added in v1.0.3

type MutableAccountNFTsInCollectionResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableAccountNFTsInCollectionResults added in v1.0.3

func NewMutableAccountNFTsInCollectionResults() MutableAccountNFTsInCollectionResults

func (MutableAccountNFTsInCollectionResults) NftIDs added in v1.0.3

NFT IDs in collection owned by the account

type MutableAccountNFTsParams added in v0.3.0

type MutableAccountNFTsParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableAccountNFTsParams) AgentID added in v0.3.0

account agent ID

type MutableAccountNFTsResults added in v0.3.0

type MutableAccountNFTsResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableAccountNFTsResults added in v1.0.3

func NewMutableAccountNFTsResults() MutableAccountNFTsResults

func (MutableAccountNFTsResults) NftIDs added in v0.3.0

NFT IDs owned by the account

type MutableAccountsResults

type MutableAccountsResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableAccountsResults added in v1.0.3

func NewMutableAccountsResults() MutableAccountsResults

func (MutableAccountsResults) AllAccounts added in v0.3.0

agent IDs

type MutableBalanceBaseTokenParams added in v1.0.3

type MutableBalanceBaseTokenParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableBalanceBaseTokenParams) AgentID added in v1.0.3

account agent ID

type MutableBalanceBaseTokenResults added in v1.0.3

type MutableBalanceBaseTokenResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableBalanceBaseTokenResults added in v1.0.3

func NewMutableBalanceBaseTokenResults() MutableBalanceBaseTokenResults

func (MutableBalanceBaseTokenResults) Balance added in v1.0.3

amount of base tokens in the account

type MutableBalanceNativeTokenParams added in v1.0.3

type MutableBalanceNativeTokenParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableBalanceNativeTokenParams) AgentID added in v1.0.3

account agent ID

func (MutableBalanceNativeTokenParams) TokenID added in v1.0.3

native token ID

type MutableBalanceNativeTokenResults added in v1.0.3

type MutableBalanceNativeTokenResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableBalanceNativeTokenResults added in v1.0.3

func NewMutableBalanceNativeTokenResults() MutableBalanceNativeTokenResults

func (MutableBalanceNativeTokenResults) Tokens added in v1.0.3

amount of native tokens in the account

type MutableBalanceParams

type MutableBalanceParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableBalanceParams) AgentID

account agent ID

type MutableBalanceResults

type MutableBalanceResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableBalanceResults added in v1.0.3

func NewMutableBalanceResults() MutableBalanceResults

func (MutableBalanceResults) Balances

balance per token ID, zero length indicates base token

type MutableFoundryCreateNewParams added in v0.3.0

type MutableFoundryCreateNewParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableFoundryCreateNewParams) TokenScheme added in v0.3.0

token scheme for the new foundry

type MutableFoundryCreateNewResults added in v0.3.0

type MutableFoundryCreateNewResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableFoundryCreateNewResults added in v1.0.3

func NewMutableFoundryCreateNewResults() MutableFoundryCreateNewResults

func (MutableFoundryCreateNewResults) FoundrySN added in v0.3.0

serial number of the newly created foundry

type MutableFoundryDestroyParams added in v0.3.0

type MutableFoundryDestroyParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableFoundryDestroyParams) FoundrySN added in v0.3.0

serial number of the foundry

type MutableFoundryModifySupplyParams added in v0.3.0

type MutableFoundryModifySupplyParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableFoundryModifySupplyParams) DestroyTokens added in v0.3.0

mint (default) or destroy tokens

func (MutableFoundryModifySupplyParams) FoundrySN added in v0.3.0

serial number of the foundry

func (MutableFoundryModifySupplyParams) SupplyDeltaAbs added in v0.3.0

positive nonzero amount to mint or destroy

type MutableFoundryOutputParams added in v0.3.0

type MutableFoundryOutputParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableFoundryOutputParams) FoundrySN added in v0.3.0

serial number of the foundry

type MutableFoundryOutputResults added in v0.3.0

type MutableFoundryOutputResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableFoundryOutputResults added in v1.0.3

func NewMutableFoundryOutputResults() MutableFoundryOutputResults

func (MutableFoundryOutputResults) FoundryOutputBin added in v0.3.0

serialized foundry output

type MutableGetAccountNonceParams

type MutableGetAccountNonceParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetAccountNonceParams) AgentID

account agent ID

type MutableGetAccountNonceResults

type MutableGetAccountNonceResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetAccountNonceResults added in v1.0.3

func NewMutableGetAccountNonceResults() MutableGetAccountNonceResults

func (MutableGetAccountNonceResults) AccountNonce

account nonce

type MutableGetNativeTokenIDRegistryResults added in v0.3.0

type MutableGetNativeTokenIDRegistryResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetNativeTokenIDRegistryResults added in v1.0.3

func NewMutableGetNativeTokenIDRegistryResults() MutableGetNativeTokenIDRegistryResults

func (MutableGetNativeTokenIDRegistryResults) Mapping added in v0.3.0

token IDs

type MutableNftDataParams added in v0.3.0

type MutableNftDataParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableNftDataParams) NftID added in v0.3.0

NFT ID

type MutableNftDataResults added in v0.3.0

type MutableNftDataResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableNftDataResults added in v1.0.3

func NewMutableNftDataResults() MutableNftDataResults

func (MutableNftDataResults) NftData added in v0.3.0

serialized NFT data

type MutableTotalAssetsResults

type MutableTotalAssetsResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableTotalAssetsResults added in v1.0.3

func NewMutableTotalAssetsResults() MutableTotalAssetsResults

func (MutableTotalAssetsResults) Assets added in v0.3.0

balance per token ID, zero length indicates base token

type MutableTransferAccountToChainParams added in v1.0.3

type MutableTransferAccountToChainParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableTransferAccountToChainParams) GasReserve added in v1.0.3

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

type MutableTransferAllowanceToParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableTransferAllowanceToParams) AgentID added in v0.3.0

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
}

type WithdrawCall

type WithdrawCall struct {
	Func *wasmlib.ScFunc
}

Jump to

Keyboard shortcuts

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