package
0.8.1
Repository: https://github.com/enigmampc/secretnetwork.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
** Warning ** Below are functions that check for magic strings that depends on the output of the enclave.
No description provided by the author
No description provided by the author
No description provided by the author
DefaultWasmConfig returns the default settings for WasmConfig.
No description provided by the author
No description provided by the author
GetCodeKey constructs the key for retreiving the ID for the WASM code.
GetContractAddressKey returns the key for the WASM contract instance.
GetContractAddressKey returns the key for the WASM contract instance.
GetContractStorePrefixKey returns the store prefix for the WASM contract instance.
GetContractStorePrefixKey returns the store prefix for the WASM contract instance.
No description provided by the author
NewAbsoluteTxPosition gets a timestamp from the context.
NewCodeInfo fills a new Contract struct.
NewContractInfo creates a new instance of a given WASM contract info.
NewEnv initializes the environment for a contract instance.
No description provided by the author
NewWasmCoins translates between Cosmos SDK coins and Wasm coins.
No description provided by the author
ParseEvents converts wasm LogAttributes into an sdk.Events (with 0 or 1 elements).
RegisterCodec registers the account types and interface.
ValidateGenesis performs basic validation of supply genesis data returning an error for any failed validation criteria.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BuildTagRegexp is a docker image regexp.
No description provided by the author
No description provided by the author
MaxLabelSize is the longest label that can be used when Instantiating a contract.
No description provided by the author
ModuleName is the name of the contract module.
QuerierRoute is the querier route for the staking module.
RouterKey is the msg router key for the staking module.
StoreKey is the string store representation.
TStoreKey is the string transient store representation.

# Variables

nolint.
ContractHistoryStorePrefix = []byte{0x05}.
nolint.
nolint.
nolint.
Codes for wasm contract errors 1-5 are errors that contain an encrypted payload.
ErrAccountExists error for a contract account that already exists.
ErrCreateFailed error for wasm code that has already been uploaded or failed.
ErrDuplicate error for content that exsists.
ErrEmpty error for empty content.
ErrExecuteFailed error for rust execution contract failure.
ErrGasLimit error for out of gas.
ErrInstantiateFailed error for rust instantiate contract failure.
ErrInvalid error for content that is invalid in this context.
ErrInvalidGenesis error for invalid genesis file syntax.
ErrInvalidMsg error when we cannot process the error returned from the contract.
ErrLimit error for content that exceeds a limit.
ErrMigrationFailed error for rust execution contract failure.
ErrNotFound error for an entry not found in the store.
ErrQueryFailed error for rust smart query contract failure.
nolint.
nolint.
ModuleCdc generic sealed codec to be used throughout module.
nolint.

# Structs

AbsoluteTxPosition can be used to sort contracts.
Code struct encompasses CodeInfo and CodeBytes.
CodeInfo is data for the uploaded contract WASM code.
Contract struct encompasses ContractAddress, ContractInfo, and ContractState.
ContractInfo stores a WASM contract instance.
GenesisState is the struct representation of the export genesis.
Model is a struct that holds a KV pair.
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
WasmConfig is the extra config required for wasm.

# Type aliases

base64 of a 64 byte key.