package
0.5.7
Repository: https://github.com/initia-labs/initia.git
Documentation: pkg.go.dev

# Functions

AccAddressFromString return sdk.AccAddress from the bech32 encoded string address or hex encoded string address.
BuildExecuteEntryFunctionPayload return execute entry function payload.
BuildExecuteScriptPayload return script payload.
BuildExecuteViewFunctionPayload return execute view function payload.
No description provided by the author
No description provided by the author
No description provided by the author
ConvertProtoToJSONMarshal unmarshals the given bytes into a proto message and then marshals it to json.
address conversion add `0` prefix padding to the given address until 32 bytes size filled.
ConvertToSDKMessage convert vm CosmosMessage to sdk.Msg.
convert vm address to sdk.AccAddress by removing 0s prefix.
Default CustomQueryWhiteList.
DefaultGenesisState gets raw genesis raw message for testing.
DefaultMoveConfig returns the default settings for MoveConfig.
DefaultParams returns default move parameters.
No description provided by the author
No description provided by the author
Return denom of a metadata.
DeserializeBigDecimal deserialize BigDecimal bytes to math.LegacyDec.
DeserializeUint128 deserialize uint128 bytes to math.Int.
DeserializeUint64 deserialize uint64 bytes to math.Int.
No description provided by the author
No description provided by the author
GetBaseSpotPrice return base coin spot price.
GetDelegatorModuleAddress return a unique delegator module address for a validator.
GetDelegatorModuleName return a unique delegator module name for a validator.
GetGenesisStateFromAppState returns x/auth GenesisState given raw application genesis state.
GetModuleKey returns the key of the published move module.
GetModulePrefix returns the prefix key of an account module store.
GetDexWeight conduct same calculation with `get_weight` of dex contract.
GetResourceKey returns the store key of the Move resource.
GetResourcePrefix returns the prefix key of an account resource store.
GetTableEntryKey returns the store key of the Move resource.
GetTableEntryPrefix returns the prefix key of an table store.
GetTableInfoKey returns the store key of the table info.
IsEmptyAccount checks if the account is empty.
No description provided by the author
Return the flag whether the coin denom contains `move/` prefix or not.
Return the flag whether the denom contains `move/` prefix or not.
Extract metadata address from a denom.
Generate named object address from the seed (address + name + 0xFE).
No description provided by the author
NewExecuteAuthorization creates a new ExecuteAuthorization object.
NewGenesisState creates a new GenesisState object.
No description provided by the author
NewMsgExecute creates a new MsgExecute instance.
NewMsgExecuteJSON creates a new MsgExecuteJSON instance.
NewMsgScript creates a new MsgScript instance.
NewMsgScriptJSON creates a new MsgScriptJSON instance.
NewObjectAccountWithAddress create new object account with the given address.
NewPublishAuthorization creates a new PublishAuthorization object.
No description provided by the author
NewTableAccountWithAddress create new object account with the given address.
No description provided by the author
No description provided by the author
NOTE: This is hack of store operation.
ReadBalanceFromFungibleStore util function to read balance from FungibleStore.
No description provided by the author
ReadCollectionInfo util function to read collection info from the raw bytes (bcs).
No description provided by the author
ReadIssuersTableHandleFromModuleStore util function to read issuers table handle from primary_fungible_store::ModuleStore.
ReadMetadataTableHandleFromMetadataStore util function to read metadata table handle from the MetadataStore raw bytes.
ReadNftInfo util function to read nft info from the raw bytes (bcs).
No description provided by the author
ReadStoresFromPool util function to read pool stores from the Pool.
ReadSupplyFromSupply util function to read supply from Supply.
ReadSymbolFromMetadata util function to read symbol from Metadata.
No description provided by the author
ReadUnbondingInfosFromStakingState util function to read unbonding coin amount from the StakingState.
No description provided by the author
ReadUserStoresTableHandleFromModuleStore util function to read user_stores table handle from primary_fungible_store::ModuleStore.
No description provided by the author
ReadWeightsFromDexConfig util function to read pool balances from the DexConfig.
RegisterInterfaces registers the x/market interfaces types with the interface registry.
RegisterLegacyAminoCodec registers the move types and interface.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
StructTagToTypeTag convert struct tag to type tag.
No description provided by the author
No description provided by the author
TypeTagFromStructTag return type tag with struct tag.
TypeTagsFromTypeArgs convert type args to type tags.
TypeTagToStructTag converts coinType(TypeTag) to denom.
No description provided by the author
ValidateGenesis performs basic validation of move genesis data returning an error for any failed validation criteria.

# Constants

Move module event types.
Move module event types.
Move module event types.
Move module event types.
Move module event types.
Move module event types.
upgrade policy attributes.
Move module event types.
Move module event types.
Move module event types.
submessage event attributes.
move type event attributes.
Default parameter values.
Default parameter values.
No description provided by the author
Move module event types.
Move module event types.
Move module event types.
Move module event types.
Move module event types.
Move module event types.
Move module event types.
function names for code.
No description provided by the author
function names for coin.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
function names for dex.
No description provided by the author
function names for initia_nft.
No description provided by the author
No description provided by the author
No description provided by the author
function names for managed_coin.
No description provided by the author
function names for object.
No description provided by the author
No description provided by the author
No description provided by the author
function names for staking.
No description provided by the author
No description provided by the author
No description provided by the author
function names for vesting.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ModuleName is the name of the move module.
No description provided by the author
1MB.
No description provided by the author
module names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MoveStakingModuleName is special purpose module name to store coins for staking feature staking address: initia185vd23fjl3pw2ecfppfdkm4jr7jj372jryhptt.
No description provided by the author
QuerierRoute is the querier route for the move module.
No description provided by the author
No description provided by the author
resource names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RouterKey is the msg router key for the move module.
StoreKey is the string store representation.
TStoreKey is the string transient store representation.
COMPATBILE: Whether a compatibility check should be performed for upgrades.
IMMUTABLE: Whether the modules in the package are immutable and cannot be upgraded.
UNSPECIFIED: a placeholder for an unspecified upgrade policy.

# Variables

AddressBytesLength address bytes length.
No description provided by the author
No description provided by the author
0.015.
No description provided by the author
prefix for dex pairs.
ErrAddressAlreadyTaken error raised when the address is already taken.
ErrEmpty error for the empty content.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidDexConfig error for invalid dex config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidQueryRequest error raised when the query request is invalid.
ErrInvalidRequest error raised when the request is invalid.
ErrLimit error for the content that exceeds a limit.
ErrMalformedClassId error for the invalid denom format.
ErrMalformedDenom error for the invalid denom format.
ErrMalformedSenderCosmosMessage error raised when sender data is not signer address.
ErrMalformedStructTag error for the invalid denom format.
ErrNotSupportedCosmosMessage error raised when the returned cosmos messages are not supported.
ErrNotSupportedCustomQuery error raised when the custom request is not supported.
ErrNotSupportedStargateQuery error raised when the stargate request is not supported or accepted.
ErrScriptDisabled error raised when the script execution is disabled.
ErrUnauthorized error raised when wrong admin try to upgrade module.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Keys for move store Items are stored with the following key: values.
Keys for move store Items are stored with the following key: values.
MoveStakingModuleAddress is a staking module address for staking feature implementation staking address: initia185vd23fjl3pw2ecfppfdkm4jr7jj372jryhptt.
prefix for parameters for module x/move.
Keys for move store Items are stored with the following key: values.
0x1 address.
Keys for move store Items are stored with the following key: values.
Keys for move store Items are stored with the following key: values.
No description provided by the author
No description provided by the author
No description provided by the author
prefix for vm.

# Structs

DexPair contains coin metdata address std::dex::Pool and std::dex::Config resources.
ExecuteAuthorization defines authorization for execute a move function.
ExecuteAuthorizationItem is the information for granting module execution.
No description provided by the author
No description provided by the author
GenesisState - genesis state of x/move.
Module is data for the uploaded contract move code ex) 0000000000000000000000000000000000000001/0/BasicCoin.
No description provided by the author
MsgDelist is a message to unregister a dex pair from the whitelist of various features.
MsgDelistResponse returns result data.
MsgExecute is the message to execute the given module function.
MsgExecuteJSON is the message to execute the given module function.
MsgExecuteJSONResponse returns execution result data.
MsgExecuteResponse returns execution result data.
MsgGovExecute is the message to execute the given module function via gov proposal.
MsgGovExecuteJSON is the message to execute the given module function via gov proposal.
MsgGovExecuteJSONResponse returns execution result data.
MsgGovExecuteResponse returns execution result data.
MsgGovPublish is the message to store compiled Move module via gov proposal.
MsgGovPublishResponse returns execution result data.
MsgGovScript is the message to execute script code with sender as signer via gov.
MsgGovScriptJSON is the message to execute script code with sender as signer via gov.
MsgGovScriptJSONResponse returns execution result data.
MsgGovScriptResponse returns execution result data.
MsgPublish is the message to store compiled Move module.
MsgPublishResponse returns store result data.
MsgScript is the message to execute script code with sender as signer.
MsgScriptJSON is the message to execute script code with sender as signer.
MsgScriptJSONResponse returns execution result data.
MsgScriptResponse returns execution result data.
MsgUpdateParams is the Msg/UpdateParams request type.
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
MsgWhitelist is a message to register a dex pair to whitelist of various features.
MsgWhitelistResponse returns result data.
ObjectAccount defines an account for objects that holds coins without pubkey.
Params defines the set of move parameters.
No description provided by the author
PublishAuthorization defines authorization for publish a move module.
QueryDenomRequest is the request type for the Query/Denom RPC method.
QueryDenomResponse is the response type for the Query/Denom RPC method.
QueryLegacyViewRequest is the request type for the QueryLegacyView RPC method.
QueryLegacyViewResponse is the response type for the QueryLegacyView RPC method.
QueryMetadataRequest is the request type for the Query/Metadata RPC method.
QueryMetadataResponse is the response type for the Query/Metadata RPC method.
QueryModuleRequest is the request type for the Query/Module RPC method.
QueryModuleResponse is the response type for the Query/Module RPC method.
QueryModulesRequest is the request type for the Query/Modules RPC method.
QueryModulesResponse is the response type for the Query/Modules RPC method.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryResourceRequest is the request type for the Query/Resource RPC method.
QueryResourceResponse is the response type for the Query/Resource RPC method.
QueryResourcesRequest is the request type for the Query/Resources RPC method.
QueryResourcesResponse is the response type for the Query/Resources RPC method.
QueryScriptABIRequest is the request type for the Query/ScriptABI RPC method.
QueryScriptABIResponse is the response type for the Query/ScriptABI RPC method.
QueryTableEntriesRequest is the request type for the Query/TableEntries RPC method.
QueryTableEntriesResponse is the response type for the Query/TableEntries RPC method.
QueryTableEntryRequest is the request type for the Query/TableEntry RPC method.
QueryTableEntryResponse is the response type for the Query/TableEntry RPC method.
QueryTableInfoRequest is the request type for the Query/TableInfo RPC method.
QueryTableInfoResponse is the response type for the Query/TableInfo RPC method.
QueryViewBatchRequest is the request type for the QueryViewBatch RPC method.
QueryViewBatchResponse is the response type for the QueryViewBatch RPC method.
QueryViewJSONBatchRequest is the request type for the QueryViewJSONBatch RPC method.
QueryViewJSONBatchResponse is the response type for the QueryViewJSONBatch RPC method.
QueryViewJSONRequest is the request type for the QueryViewJSON RPC method.
QueryViewJSONResponse is the response type for the QueryViewJSON RPC method.
QueryViewRequest is the request type for the QueryView RPC method.
QueryViewResponse is the response type for the QueryView RPC method.
RawParams defines the raw params to store.
Resource is data for the stored move resource ex) 0000000000000000000000000000000000000002/2/0x1::BasicCoin::Coin<0x1::BasicCoin::Initia>.
TableAccount defines an account for tables that holds items without pubkey.
TableEntry is data stored under Table address and the key bytes.
TableInfo is data stored under Table address.
No description provided by the author
No description provided by the author
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
proto wrapper to store the value.
VMEvent is the event emitted from vm.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

AccountKeeper is expected keeper for auth module.
No description provided by the author
BankKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper.
BankViewKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper.
No description provided by the author
No description provided by the author
DistributionKeeper is expected keeper for distribution module.
No description provided by the author
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
No description provided by the author
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
No description provided by the author
StakingKeeper is expected keeper for staking module.
No description provided by the author
VMEngine defines required VM features.

# Type aliases

CustomQuery interface for registration.
The whitelist of custom queries.
No description provided by the author
UpgradePolicy is the policy for upgrading a move module.