types

package
v1.42.6-transfer-and-e... Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// ModuleName is set to xwasm and not wasmx to avoid Potential key collision between KVStores
	// (see assertNoPrefix in cosmos-sdk/types/store.go)
	ModuleName = "xwasm"
	StoreKey   = ModuleName
	TStoreKey  = "transient_xwasm"
)
View Source
const (
	GasForFeeDeduction     uint64 = 13419
	GasForFeeRefund        uint64 = 13419
	DefaultGasContractCall uint64 = 63558
	MinExecutionGasLimit          = GasForFeeDeduction + GasForFeeRefund + DefaultGasContractCall
)
View Source
const (
	ProposalContractRegistrationRequest      string = "ProposalContractRegistrationRequest"
	ProposalBatchContractRegistrationRequest string = "ProposalBatchContractRegistrationRequest"
	ProposalBatchStoreCode                   string = "ProposalBatchStoreCode"
)

constants

View Source
const RouterKey = ModuleName

Variables

View Source
var (
	ErrInvalidGasLimit                      = sdkerrors.Register(ModuleName, 1, "invalid gas limit")
	ErrInvalidGasPrice                      = sdkerrors.Register(ModuleName, 2, "invalid gas price")
	ErrInvalidContractAddress               = sdkerrors.Register(ModuleName, 3, "invalid contract address")
	ErrAlreadyRegistered                    = sdkerrors.Register(ModuleName, 4, "contract already registered")
	ErrDuplicateContractRegistrationRequest = sdkerrors.Register(ModuleName, 5, "contract duplicate in registration request")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// Keys for store prefixes
	BidsKey = []byte{0x01}

	// Keys for Smart contract execution
	ContractExecutionRequestIDKey   = []byte{0x02} // key to the smart contract execution request ID
	LatestSmartContractRequestIDKey = []byte{0x03} // key to the latest smart contract request ID

)
View Source
var (
	DefaultIsExecutionEnabled           = false
	DefaultMaxBeginBlockTotalGas uint64 = 42_000_000                        // 42M
	DefaultMaxContractGasLimit   uint64 = DefaultMaxBeginBlockTotalGas / 12 // 3.5M
	DefaultMinGasPrice           uint64 = 1_000_000_000                     // 1B
)

Wasmx params default values

View Source
var (
	KeyIsExecutionEnabled    = []byte("IsExecutionEnabled")
	KeyRegistryContract      = []byte("RegistryContract")
	KeyMaxBeginBlockTotalGas = []byte("MaxBeginBlockTotalGas")
	KeyMaxContractGasLimit   = []byte("MaxContractGasLimit")
	KeyMinGasPrice           = []byte("MinGasPrice")
)

Parameter keys

View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWasmx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWasmx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWasmx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

	// ModuleCdc references the global x/wasmx module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/wasmx and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func GetContractExecutionRequestIDKey

func GetContractExecutionRequestIDKey(requestID uint64) []byte

func NewBeginBlockerExecMsg added in v1.39.0

func NewBeginBlockerExecMsg() ([]byte, error)

func NewRegistryActiveContractQuery added in v1.33.14

func NewRegistryActiveContractQuery() ([]byte, error)

NewRegistryActiveContractQuery constructs the registry active contracts query message

func NewRegistryContractQuery added in v1.33.14

func NewRegistryContractQuery() ([]byte, error)

NewRegistryContractQuery constructs the registry Exec message

func NewRegistryDeactivateMsg added in v1.39.0

func NewRegistryDeactivateMsg(contractAddress string) ([]byte, error)

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/wasmx interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper methods

type BatchContractRegistrationRequestProposal added in v1.33.14

type BatchContractRegistrationRequestProposal struct {
	Title                        string                        `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description                  string                        `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	ContractRegistrationRequests []ContractRegistrationRequest `` /* 137-byte string literal not displayed */
}

func (*BatchContractRegistrationRequestProposal) Descriptor added in v1.33.14

func (*BatchContractRegistrationRequestProposal) Descriptor() ([]byte, []int)

func (*BatchContractRegistrationRequestProposal) GetDescription added in v1.33.14

GetDescription returns the description of this proposal.

func (*BatchContractRegistrationRequestProposal) GetTitle added in v1.33.14

GetTitle returns the title of this proposal.

func (*BatchContractRegistrationRequestProposal) Marshal added in v1.33.14

func (m *BatchContractRegistrationRequestProposal) Marshal() (dAtA []byte, err error)

func (*BatchContractRegistrationRequestProposal) MarshalTo added in v1.33.14

func (m *BatchContractRegistrationRequestProposal) MarshalTo(dAtA []byte) (int, error)

func (*BatchContractRegistrationRequestProposal) MarshalToSizedBuffer added in v1.33.14

func (m *BatchContractRegistrationRequestProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchContractRegistrationRequestProposal) ProposalRoute added in v1.33.14

ProposalRoute returns router key of this proposal.

func (*BatchContractRegistrationRequestProposal) ProposalType added in v1.33.14

ProposalType returns proposal type of this proposal.

func (*BatchContractRegistrationRequestProposal) ProtoMessage added in v1.33.14

func (*BatchContractRegistrationRequestProposal) Reset added in v1.33.14

func (*BatchContractRegistrationRequestProposal) Size added in v1.33.14

func (*BatchContractRegistrationRequestProposal) String added in v1.33.14

func (*BatchContractRegistrationRequestProposal) Unmarshal added in v1.33.14

func (*BatchContractRegistrationRequestProposal) ValidateBasic added in v1.33.14

ValidateBasic returns ValidateBasic result of this proposal.

func (*BatchContractRegistrationRequestProposal) XXX_DiscardUnknown added in v1.33.14

func (m *BatchContractRegistrationRequestProposal) XXX_DiscardUnknown()

func (*BatchContractRegistrationRequestProposal) XXX_Marshal added in v1.33.14

func (m *BatchContractRegistrationRequestProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchContractRegistrationRequestProposal) XXX_Merge added in v1.33.14

func (*BatchContractRegistrationRequestProposal) XXX_Size added in v1.33.14

func (*BatchContractRegistrationRequestProposal) XXX_Unmarshal added in v1.33.14

func (m *BatchContractRegistrationRequestProposal) XXX_Unmarshal(b []byte) error

type BatchStoreCodeProposal added in v1.42.7

type BatchStoreCodeProposal struct {
	Title       string                    `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string                    `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Proposals   []types.StoreCodeProposal `protobuf:"bytes,3,rep,name=proposals,proto3" json:"proposals"`
}

func NewBatchStoreCodeProposal added in v1.42.7

func NewBatchStoreCodeProposal(title, description string, proposals []wasmtypes.StoreCodeProposal) *BatchStoreCodeProposal

NewBatchStoreCodeProposal returns new instance of BatchStoreCodeProposal

func (*BatchStoreCodeProposal) Descriptor added in v1.42.7

func (*BatchStoreCodeProposal) Descriptor() ([]byte, []int)

func (*BatchStoreCodeProposal) GetDescription added in v1.42.7

func (p *BatchStoreCodeProposal) GetDescription() string

GetDescription returns the description of this proposal.

func (*BatchStoreCodeProposal) GetTitle added in v1.42.7

func (p *BatchStoreCodeProposal) GetTitle() string

GetTitle returns the title of this proposal.

func (*BatchStoreCodeProposal) Marshal added in v1.42.7

func (m *BatchStoreCodeProposal) Marshal() (dAtA []byte, err error)

func (*BatchStoreCodeProposal) MarshalTo added in v1.42.7

func (m *BatchStoreCodeProposal) MarshalTo(dAtA []byte) (int, error)

func (*BatchStoreCodeProposal) MarshalToSizedBuffer added in v1.42.7

func (m *BatchStoreCodeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchStoreCodeProposal) ProposalRoute added in v1.42.7

func (p *BatchStoreCodeProposal) ProposalRoute() string

ProposalRoute returns router key of this proposal.

func (*BatchStoreCodeProposal) ProposalType added in v1.42.7

func (p *BatchStoreCodeProposal) ProposalType() string

ProposalType returns proposal type of this proposal.

func (*BatchStoreCodeProposal) ProtoMessage added in v1.42.7

func (*BatchStoreCodeProposal) ProtoMessage()

func (*BatchStoreCodeProposal) Reset added in v1.42.7

func (m *BatchStoreCodeProposal) Reset()

func (*BatchStoreCodeProposal) Size added in v1.42.7

func (m *BatchStoreCodeProposal) Size() (n int)

func (*BatchStoreCodeProposal) String added in v1.42.7

func (m *BatchStoreCodeProposal) String() string

func (*BatchStoreCodeProposal) Unmarshal added in v1.42.7

func (m *BatchStoreCodeProposal) Unmarshal(dAtA []byte) error

func (*BatchStoreCodeProposal) ValidateBasic added in v1.42.7

func (p *BatchStoreCodeProposal) ValidateBasic() error

ValidateBasic returns ValidateBasic result of this proposal.

func (*BatchStoreCodeProposal) XXX_DiscardUnknown added in v1.42.7

func (m *BatchStoreCodeProposal) XXX_DiscardUnknown()

func (*BatchStoreCodeProposal) XXX_Marshal added in v1.42.7

func (m *BatchStoreCodeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchStoreCodeProposal) XXX_Merge added in v1.42.7

func (m *BatchStoreCodeProposal) XXX_Merge(src proto.Message)

func (*BatchStoreCodeProposal) XXX_Size added in v1.42.7

func (m *BatchStoreCodeProposal) XXX_Size() int

func (*BatchStoreCodeProposal) XXX_Unmarshal added in v1.42.7

func (m *BatchStoreCodeProposal) XXX_Unmarshal(b []byte) error

type BeginBlockerMsg

type BeginBlockerMsg struct {
}

type CWBeginBlockerExecMsg

type CWBeginBlockerExecMsg struct {
	BeginBlockerMsg *BeginBlockerMsg `json:"begin_blocker,omitempty"`
}

type ContractExecutionParams added in v1.33.14

type ContractExecutionParams struct {
	Address      sdk.AccAddress
	GasLimit     uint64
	GasPrice     uint64
	IsExecutable bool
}

func GetSortedContractExecutionParams added in v1.33.14

func GetSortedContractExecutionParams(contractExecutionList []RawContractExecutionParams) ([]*ContractExecutionParams, error)

GetSortedContractExecutionParams returns the ContractExecutionParams sorted by descending order of gas price

type ContractRegistrationRequest

type ContractRegistrationRequest struct {
	// Unique Identifier for contract instance to be registered.
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// Maximum gas to be used for the smart contract execution.
	GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// gas price to be used for the smart contract execution.
	GasPrice    uint64 `protobuf:"varint,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	PinContract bool   `protobuf:"varint,4,opt,name=pin_contract,json=pinContract,proto3" json:"pin_contract,omitempty"`
}

func (*ContractRegistrationRequest) Descriptor

func (*ContractRegistrationRequest) Descriptor() ([]byte, []int)

func (*ContractRegistrationRequest) GetContractAddress

func (m *ContractRegistrationRequest) GetContractAddress() string

func (*ContractRegistrationRequest) GetGasLimit

func (m *ContractRegistrationRequest) GetGasLimit() uint64

func (*ContractRegistrationRequest) GetGasPrice added in v1.33.13

func (m *ContractRegistrationRequest) GetGasPrice() uint64

func (*ContractRegistrationRequest) GetPinContract added in v1.39.0

func (m *ContractRegistrationRequest) GetPinContract() bool

func (*ContractRegistrationRequest) Marshal

func (m *ContractRegistrationRequest) Marshal() (dAtA []byte, err error)

func (*ContractRegistrationRequest) MarshalTo

func (m *ContractRegistrationRequest) MarshalTo(dAtA []byte) (int, error)

func (*ContractRegistrationRequest) MarshalToSizedBuffer

func (m *ContractRegistrationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractRegistrationRequest) ProtoMessage

func (*ContractRegistrationRequest) ProtoMessage()

func (*ContractRegistrationRequest) Reset

func (m *ContractRegistrationRequest) Reset()

func (*ContractRegistrationRequest) Size

func (m *ContractRegistrationRequest) Size() (n int)

func (*ContractRegistrationRequest) String

func (m *ContractRegistrationRequest) String() string

func (*ContractRegistrationRequest) Unmarshal

func (m *ContractRegistrationRequest) Unmarshal(dAtA []byte) error

func (*ContractRegistrationRequest) XXX_DiscardUnknown

func (m *ContractRegistrationRequest) XXX_DiscardUnknown()

func (*ContractRegistrationRequest) XXX_Marshal

func (m *ContractRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractRegistrationRequest) XXX_Merge

func (m *ContractRegistrationRequest) XXX_Merge(src proto.Message)

func (*ContractRegistrationRequest) XXX_Size

func (m *ContractRegistrationRequest) XXX_Size() int

func (*ContractRegistrationRequest) XXX_Unmarshal

func (m *ContractRegistrationRequest) XXX_Unmarshal(b []byte) error

type ContractRegistrationRequestProposal

type ContractRegistrationRequestProposal struct {
	Title                       string                      `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description                 string                      `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	ContractRegistrationRequest ContractRegistrationRequest `` /* 134-byte string literal not displayed */
}

func NewContractRegistrationRequestProposal

func NewContractRegistrationRequestProposal(title, description string, contractRegistrationRequest ContractRegistrationRequest) *ContractRegistrationRequestProposal

NewContractRegistrationRequestProposal returns new instance of ContractRegistrationRequestProposal

func (*ContractRegistrationRequestProposal) Descriptor

func (*ContractRegistrationRequestProposal) Descriptor() ([]byte, []int)

func (*ContractRegistrationRequestProposal) GetDescription

func (p *ContractRegistrationRequestProposal) GetDescription() string

GetDescription returns the description of this proposal.

func (*ContractRegistrationRequestProposal) GetTitle

GetTitle returns the title of this proposal.

func (*ContractRegistrationRequestProposal) Marshal

func (m *ContractRegistrationRequestProposal) Marshal() (dAtA []byte, err error)

func (*ContractRegistrationRequestProposal) MarshalTo

func (m *ContractRegistrationRequestProposal) MarshalTo(dAtA []byte) (int, error)

func (*ContractRegistrationRequestProposal) MarshalToSizedBuffer

func (m *ContractRegistrationRequestProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractRegistrationRequestProposal) ProposalRoute

func (p *ContractRegistrationRequestProposal) ProposalRoute() string

ProposalRoute returns router key of this proposal.

func (*ContractRegistrationRequestProposal) ProposalType

func (p *ContractRegistrationRequestProposal) ProposalType() string

ProposalType returns proposal type of this proposal.

func (*ContractRegistrationRequestProposal) ProtoMessage

func (*ContractRegistrationRequestProposal) ProtoMessage()

func (*ContractRegistrationRequestProposal) Reset

func (*ContractRegistrationRequestProposal) Size

func (*ContractRegistrationRequestProposal) String

func (*ContractRegistrationRequestProposal) Unmarshal

func (m *ContractRegistrationRequestProposal) Unmarshal(dAtA []byte) error

func (*ContractRegistrationRequestProposal) ValidateBasic

func (p *ContractRegistrationRequestProposal) ValidateBasic() error

ValidateBasic returns ValidateBasic result of this proposal.

func (*ContractRegistrationRequestProposal) XXX_DiscardUnknown

func (m *ContractRegistrationRequestProposal) XXX_DiscardUnknown()

func (*ContractRegistrationRequestProposal) XXX_Marshal

func (m *ContractRegistrationRequestProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractRegistrationRequestProposal) XXX_Merge

func (*ContractRegistrationRequestProposal) XXX_Size

func (*ContractRegistrationRequestProposal) XXX_Unmarshal

func (m *ContractRegistrationRequestProposal) XXX_Unmarshal(b []byte) error

type ExecutionData added in v1.39.0

type ExecutionData struct {
	Origin string      `json:"origin"`
	Name   string      `json:"name"`
	Args   interface{} `json:"args"`
}

type GenesisState

type GenesisState struct {
	// params defines all the parameters of related to wasmx.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the wasmx module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState() GenesisState

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type InjectiveExecMsg added in v1.39.0

type InjectiveExecMsg struct {
	ExecutionData ExecutionData `json:"injective_exec"`
}

func NewInjectiveExecMsg added in v1.39.0

func NewInjectiveExecMsg(origin sdk.AccAddress, data string) (*InjectiveExecMsg, error)

type MsgClient

type MsgClient interface {
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
}

MsgServer is the server API for Msg service.

type ParamSet

type ParamSet interface {
	ParamSetPairs() ParamSetPairs
}

ParamSet defines an interface for structs containing parameters for a module

type ParamSetPair

type ParamSetPair struct {
	Key         []byte
	Value       interface{}
	ValidatorFn ValueValidatorFn
}

ParamSetPair is used for associating paramsubspace key and field of param structs.

func NewParamSetPair

func NewParamSetPair(key []byte, value interface{}, vfn ValueValidatorFn) ParamSetPair

NewParamSetPair creates a new ParamSetPair instance.

type ParamSetPairs

type ParamSetPairs []ParamSetPair

ParamSetPairs Slice of KeyFieldPair

type Params

type Params struct {
	// Set the status to active to indicate that the contract is to be executed in begin blocker.
	IsExecutionEnabled bool `protobuf:"varint,1,opt,name=is_execution_enabled,json=isExecutionEnabled,proto3" json:"is_execution_enabled,omitempty"`
	// registry_contract is the address of the registry contract that will be used to register contract executions in begin blocker.
	RegistryContract string `protobuf:"bytes,2,opt,name=registry_contract,json=registryContract,proto3" json:"registry_contract,omitempty"`
	// Maximum aggregate total gas to be used for the contract executions in the BeginBlocker.
	MaxBeginBlockTotalGas uint64 `` /* 131-byte string literal not displayed */
	// the maximum gas limit each individual contract can consume in the BeginBlocker.
	MaxContractGasLimit uint64 `protobuf:"varint,4,opt,name=max_contract_gas_limit,json=maxContractGasLimit,proto3" json:"max_contract_gas_limit,omitempty"`
	// min_gas_price defines the minimum gas price the contracts must pay to be executed in the BeginBlocker.
	MinGasPrice uint64 `protobuf:"varint,5,opt,name=min_gas_price,json=minGasPrice,proto3" json:"min_gas_price,omitempty"`
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(
	isExecutionEnabled bool,
	registryContract string,
	maxBeginBlockTotalGas uint64,
	maxContractGasLimit uint64,
	minGasPrice uint64,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetIsExecutionEnabled

func (m *Params) GetIsExecutionEnabled() bool

func (*Params) GetMaxBeginBlockTotalGas added in v1.33.14

func (m *Params) GetMaxBeginBlockTotalGas() uint64

func (*Params) GetMaxContractGasLimit added in v1.33.14

func (m *Params) GetMaxContractGasLimit() uint64

func (*Params) GetMinGasPrice added in v1.42.6

func (m *Params) GetMinGasPrice() uint64

func (*Params) GetRegistryContract added in v1.33.14

func (m *Params) GetRegistryContract() string

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate performs basic validation on wasmx parameters.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryActiveContractsMsg added in v1.33.14

type QueryActiveContractsMsg struct {
}

type QueryClient

type QueryClient interface {
	// Retrieves wasmx params
	WasmxParams(ctx context.Context, in *QueryWasmxParamsRequest, opts ...grpc.CallOption) (*QueryWasmxParamsResponse, error)
	// Retrieves the entire wasmx module's state
	WasmxModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryContractsMsg added in v1.33.7

type QueryContractsMsg struct {
}

type QueryModuleStateRequest

type QueryModuleStateRequest struct {
}

QueryModuleStateRequest is the request type for the Query/WasmxModuleState RPC method.

func (*QueryModuleStateRequest) Descriptor

func (*QueryModuleStateRequest) Descriptor() ([]byte, []int)

func (*QueryModuleStateRequest) Marshal

func (m *QueryModuleStateRequest) Marshal() (dAtA []byte, err error)

func (*QueryModuleStateRequest) MarshalTo

func (m *QueryModuleStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryModuleStateRequest) MarshalToSizedBuffer

func (m *QueryModuleStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryModuleStateRequest) ProtoMessage

func (*QueryModuleStateRequest) ProtoMessage()

func (*QueryModuleStateRequest) Reset

func (m *QueryModuleStateRequest) Reset()

func (*QueryModuleStateRequest) Size

func (m *QueryModuleStateRequest) Size() (n int)

func (*QueryModuleStateRequest) String

func (m *QueryModuleStateRequest) String() string

func (*QueryModuleStateRequest) Unmarshal

func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error

func (*QueryModuleStateRequest) XXX_DiscardUnknown

func (m *QueryModuleStateRequest) XXX_DiscardUnknown()

func (*QueryModuleStateRequest) XXX_Marshal

func (m *QueryModuleStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryModuleStateRequest) XXX_Merge

func (m *QueryModuleStateRequest) XXX_Merge(src proto.Message)

func (*QueryModuleStateRequest) XXX_Size

func (m *QueryModuleStateRequest) XXX_Size() int

func (*QueryModuleStateRequest) XXX_Unmarshal

func (m *QueryModuleStateRequest) XXX_Unmarshal(b []byte) error

type QueryModuleStateResponse

type QueryModuleStateResponse struct {
	State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
}

QueryModuleStateResponse is the response type for the Query/WasmxModuleState RPC method.

func (*QueryModuleStateResponse) Descriptor

func (*QueryModuleStateResponse) Descriptor() ([]byte, []int)

func (*QueryModuleStateResponse) GetState

func (m *QueryModuleStateResponse) GetState() *GenesisState

func (*QueryModuleStateResponse) Marshal

func (m *QueryModuleStateResponse) Marshal() (dAtA []byte, err error)

func (*QueryModuleStateResponse) MarshalTo

func (m *QueryModuleStateResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryModuleStateResponse) MarshalToSizedBuffer

func (m *QueryModuleStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryModuleStateResponse) ProtoMessage

func (*QueryModuleStateResponse) ProtoMessage()

func (*QueryModuleStateResponse) Reset

func (m *QueryModuleStateResponse) Reset()

func (*QueryModuleStateResponse) Size

func (m *QueryModuleStateResponse) Size() (n int)

func (*QueryModuleStateResponse) String

func (m *QueryModuleStateResponse) String() string

func (*QueryModuleStateResponse) Unmarshal

func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error

func (*QueryModuleStateResponse) XXX_DiscardUnknown

func (m *QueryModuleStateResponse) XXX_DiscardUnknown()

func (*QueryModuleStateResponse) XXX_Marshal

func (m *QueryModuleStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryModuleStateResponse) XXX_Merge

func (m *QueryModuleStateResponse) XXX_Merge(src proto.Message)

func (*QueryModuleStateResponse) XXX_Size

func (m *QueryModuleStateResponse) XXX_Size() int

func (*QueryModuleStateResponse) XXX_Unmarshal

func (m *QueryModuleStateResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Retrieves wasmx params
	WasmxParams(context.Context, *QueryWasmxParamsRequest) (*QueryWasmxParamsResponse, error)
	// Retrieves the entire wasmx module's state
	WasmxModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error)
}

QueryServer is the server API for Query service.

type QueryWasmxParamsRequest

type QueryWasmxParamsRequest struct {
}

QueryWasmxParamsRequest is the request type for the Query/WasmxParams RPC method.

func (*QueryWasmxParamsRequest) Descriptor

func (*QueryWasmxParamsRequest) Descriptor() ([]byte, []int)

func (*QueryWasmxParamsRequest) Marshal

func (m *QueryWasmxParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryWasmxParamsRequest) MarshalTo

func (m *QueryWasmxParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryWasmxParamsRequest) MarshalToSizedBuffer

func (m *QueryWasmxParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryWasmxParamsRequest) ProtoMessage

func (*QueryWasmxParamsRequest) ProtoMessage()

func (*QueryWasmxParamsRequest) Reset

func (m *QueryWasmxParamsRequest) Reset()

func (*QueryWasmxParamsRequest) Size

func (m *QueryWasmxParamsRequest) Size() (n int)

func (*QueryWasmxParamsRequest) String

func (m *QueryWasmxParamsRequest) String() string

func (*QueryWasmxParamsRequest) Unmarshal

func (m *QueryWasmxParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryWasmxParamsRequest) XXX_DiscardUnknown

func (m *QueryWasmxParamsRequest) XXX_DiscardUnknown()

func (*QueryWasmxParamsRequest) XXX_Marshal

func (m *QueryWasmxParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryWasmxParamsRequest) XXX_Merge

func (m *QueryWasmxParamsRequest) XXX_Merge(src proto.Message)

func (*QueryWasmxParamsRequest) XXX_Size

func (m *QueryWasmxParamsRequest) XXX_Size() int

func (*QueryWasmxParamsRequest) XXX_Unmarshal

func (m *QueryWasmxParamsRequest) XXX_Unmarshal(b []byte) error

type QueryWasmxParamsResponse

type QueryWasmxParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryWasmxParamsRequest is the response type for the Query/WasmxParams RPC method.

func (*QueryWasmxParamsResponse) Descriptor

func (*QueryWasmxParamsResponse) Descriptor() ([]byte, []int)

func (*QueryWasmxParamsResponse) GetParams

func (m *QueryWasmxParamsResponse) GetParams() Params

func (*QueryWasmxParamsResponse) Marshal

func (m *QueryWasmxParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryWasmxParamsResponse) MarshalTo

func (m *QueryWasmxParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryWasmxParamsResponse) MarshalToSizedBuffer

func (m *QueryWasmxParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryWasmxParamsResponse) ProtoMessage

func (*QueryWasmxParamsResponse) ProtoMessage()

func (*QueryWasmxParamsResponse) Reset

func (m *QueryWasmxParamsResponse) Reset()

func (*QueryWasmxParamsResponse) Size

func (m *QueryWasmxParamsResponse) Size() (n int)

func (*QueryWasmxParamsResponse) String

func (m *QueryWasmxParamsResponse) String() string

func (*QueryWasmxParamsResponse) Unmarshal

func (m *QueryWasmxParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryWasmxParamsResponse) XXX_DiscardUnknown

func (m *QueryWasmxParamsResponse) XXX_DiscardUnknown()

func (*QueryWasmxParamsResponse) XXX_Marshal

func (m *QueryWasmxParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryWasmxParamsResponse) XXX_Merge

func (m *QueryWasmxParamsResponse) XXX_Merge(src proto.Message)

func (*QueryWasmxParamsResponse) XXX_Size

func (m *QueryWasmxParamsResponse) XXX_Size() int

func (*QueryWasmxParamsResponse) XXX_Unmarshal

func (m *QueryWasmxParamsResponse) XXX_Unmarshal(b []byte) error

type RawContractExecutionParams added in v1.33.14

type RawContractExecutionParams struct {
	Address      string `json:"address"`
	GasLimit     uint64 `json:"gas_limit"`
	GasPrice     uint64 `json:"gas_price"`
	IsExecutable bool   `json:"is_executable"`
}

func (*RawContractExecutionParams) ToContractExecutionParams added in v1.33.14

func (r *RawContractExecutionParams) ToContractExecutionParams() (p *ContractExecutionParams, err error)

type RegisterMsg

type RegisterMsg struct {
	GasLimit        uint64 `json:"gas_limit"`
	ContractAddress string `json:"contract_address"`
	GasPrice        uint64 `json:"gas_price"`
	IsExecutable    bool   `json:"is_executable"`
}

type RegistryActiveContractQueryMsg added in v1.33.14

type RegistryActiveContractQueryMsg struct {
	QueryActiveContractsMsg *QueryActiveContractsMsg `json:"get_active_contracts,omitempty"`
}

type RegistryContractQueryMsg added in v1.33.14

type RegistryContractQueryMsg struct {
	QueryContractsMsg *QueryContractsMsg `json:"get_contracts,omitempty"`
}

type RegistryDeactivate added in v1.40.2

type RegistryDeactivate struct {
	ContractAddress string `json:"contract_address"`
}

type RegistryDeactivateMsg added in v1.40.2

type RegistryDeactivateMsg struct {
	RegistryDeactivate *RegistryDeactivate `json:"deactivate,omitempty"`
}

type RegistryRegisterMsg added in v1.33.14

type RegistryRegisterMsg struct {
	Register *RegisterMsg `json:"register,omitempty"`
}

func NewRegistryRegisterMsg added in v1.33.14

func NewRegistryRegisterMsg(req *ContractRegistrationRequest) RegistryRegisterMsg

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) WasmxModuleState

func (*UnimplementedQueryServer) WasmxParams

type ValueValidatorFn

type ValueValidatorFn func(value interface{}) error

type WasmContractOpsKeeper

type WasmContractOpsKeeper interface {
	wasmtypes.ContractOpsKeeper
}

type WasmViewKeeper

type WasmViewKeeper interface {
	wasmtypes.ViewKeeper
}

Jump to

Keyboard shortcuts

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