package
0.2.2
Repository: https://github.com/konstellation/kn-sdk.git
Documentation: pkg.go.dev

# Functions

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
ConvertToProposals maps each key to a ProposalType and returns a typed list.
DefaultParams returns default wasm parameters.
DefaultWasmConfig returns the default settings for WasmConfig.
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.
GetContractByCodeIDSecondaryIndexPrefix returns the prefix for the second index: `<prefix><codeID>`.
GetContractByCreatedSecondaryIndexKey returns the key for the secondary index: `<prefix><codeID><created><contractAddr>`.
GetContractCodeHistoryElementKey returns the key a contract code history entry: `<prefix><contractAddr><position>`.
GetContractCodeHistoryElementPrefix returns the key prefix for a contract code history entry: `<prefix><contractAddr>`.
GetContractStorePrefix returns the store prefix for the WASM contract instance.
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
NewAbsoluteTxPosition gets a block position 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.
NewInfo initializes the MessageInfo for a contract instance.
No description provided by the author
No description provided by the author
NewWasmCoins translates between Cosmos SDK coins and Wasm coins.
No description provided by the author
ParamKeyTable returns the parameter key table.
ParseEvents converts wasm LogAttributes into an sdk.Events.
No description provided by the author
RegisterLegacyAminoCodec registers the account 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
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

AbsoluteTxPositionLen number of elements in byte representation.
AccessTypeEverybody unrestricted.
AccessTypeNobody forbidden.
AccessTypeOnlyAddress restricted to an address.
AccessTypeUnspecified placeholder for empty value.
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.
ContractCodeHistoryOperationTypeGenesis based on genesis data.
ContractCodeHistoryOperationTypeInit on chain contract instantiation.
ContractCodeHistoryOperationTypeMigrate code migration.
ContractCodeHistoryOperationTypeUnspecified placeholder for empty value.
No description provided by the author
DefaultMaxWasmCodeSize limit max bytes read to prevent gzip bombs.
DefaultParamspace for params keeper.
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.
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
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

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
nolint.
nolint.
nolint.
No description provided by the author
No description provided by the author
nolint.
nolint.
Codes for wasm contract errors.
No description provided by the author
DisableAllProposals contains no wasm gov types.
EnableAllProposals contains all wasm gov types as keys.
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.
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
ErrInvalid error for content that is invalid in this context.
ErrInvalidGenesis error for invalid genesis file syntax.
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
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.
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
nolint.
nolint.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint.

# Structs

AbsoluteTxPosition is a unique transaction position that allows for global ordering of transactions.
AccessConfig access control type.
AccessTypeParam.
ClearAdminProposal gov proposal content type to clear the admin of a contract.
Code struct encompasses CodeInfo and CodeBytes.
CodeInfo is data for the uploaded contract WASM code.
CodeInfoResponse contains code meta data from CodeInfo.
Contract struct encompasses ContractAddress, ContractInfo, and ContractState.
ContractCodeHistoryEntry metadata to a contract.
ContractInfo stores a WASM contract instance.
ContractInfoWithAddress adds the address (key) to the ContractInfo representation.
GenesisState - genesis state of x/wasm.
GenMsgs define the messages that can be executed during genesis phase in order.
No description provided by the author
No description provided by the author
No description provided by the author
InstantiateContractProposal gov proposal content type to instantiate a contract.
MigrateContractProposal gov proposal content type to migrate a contract.
Model is a struct that holds a KV pair.
MsgClearAdmin removes any admin stored for a smart contract.
MsgClearAdminResponse returns empty data.
MsgExecuteContract submits the given message data to a smart contract.
MsgExecuteContractResponse returns execution result data.
MsgInstantiateContract create a new smart contract instance for the given code id.
MsgInstantiateContractResponse return instantiation result data.
MsgMigrateContract runs a code upgrade/ downgrade for a smart contract.
MsgMigrateContractResponse returns contract migration result data.
MsgStoreCode submit Wasm code to the system.
MsgStoreCodeResponse returns store result data.
MsgUpdateAdmin sets a new admin for a smart contract.
MsgUpdateAdminResponse returns empty data.
Params defines the set of wasm parameters.
QueryAllContractStateRequest is the request type for the Query/AllContractState RPC method.
QueryAllContractStateResponse is the response type for the Query/AllContractState RPC method.
QueryCodeRequest is the request type for the Query/Code RPC method.
QueryCodeResponse is the response type for the Query/Code RPC method.
QueryCodesRequest is the request type for the Query/Codes RPC method.
QueryCodesResponse is the response type for the Query/Codes RPC method.
QueryContractHistoryRequest is the request type for the Query/ContractHistory RPC method.
QueryContractHistoryResponse is the response type for the Query/ContractHistory RPC method.
QueryContractInfoRequest is the request type for the Query/ContractInfo RPC method.
QueryContractInfoResponse is the response type for the Query/ContractInfo RPC method.
QueryContractsByCodeRequest is the request type for the Query/ContractsByCode RPC method.
QueryContractsByCodeResponse is the response type for the Query/ContractsByCode RPC method.
QueryRawContractStateRequest is the request type for the Query/RawContractState RPC method.
QueryRawContractStateResponse is the response type for the Query/RawContractState RPC method.
QuerySmartContractStateRequest is the request type for the Query/SmartContractState RPC method.
QuerySmartContractStateResponse is the response type for the Query/SmartContractState RPC method.
Sequence key and value of an id generation counter.
StoreCodeProposal gov proposal content type to submit WASM code to the system.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
UpdateAdminProposal gov proposal content type to set an admin for a contract.
WasmConfig is the extra config required for wasm.

# Interfaces

MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
WasmerEngine defines the WASM contract runtime engine.

# Type aliases

AccessType permission types.
ContractCodeHistoryOperationType actions that caused a code change.
No description provided by the author