types

package
v1.45.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 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 (
	TypeMsgUpdate                = "msgUpdate"
	TypeMsgActivate              = "msgActivate"
	TypeMsgDeactivate            = "msgDeactivate"
	TypeMsgExecuteContractCompat = "executeContractCompat"
)
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"
	ProposalBatchContractDeregistration      string = "ProposalBatchContractDeregistration"
	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")
	ErrDuplicateContract      = sdkerrors.Register(ModuleName, 5, "duplicate contract")
	ErrNoContractAddresses    = sdkerrors.Register(ModuleName, 6, "no contract addresses found")
	ErrInvalidCodeId          = sdkerrors.Register(ModuleName, 7, "invalid code id")
)
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 (
	ContractsByGasPricePrefix = []byte{0x01} // key to the smart contract execution request ID
	ContractsIndexPrefix      = []byte{0x02}
)
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")
	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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = 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 GetContractsByGasPriceKey added in v1.45.0

func GetContractsByGasPriceKey(gasPrice uint64, address sdk.AccAddress) []byte

func GetContractsIndexKey added in v1.45.0

func GetContractsIndexKey(address sdk.AccAddress) []byte

GetContractsIndexKey provides the key for the contract address => gasPrice

func HasDuplicates added in v1.43.1

func HasDuplicates(slice []string) bool

func NewBeginBlockerExecMsg added in v1.39.0

func NewBeginBlockerExecMsg() ([]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 BatchContractDeregistrationProposal added in v1.42.8

type BatchContractDeregistrationProposal 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"`
	Contracts   []string `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty"`
}

func (*BatchContractDeregistrationProposal) Descriptor added in v1.42.8

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

func (*BatchContractDeregistrationProposal) GetDescription added in v1.42.8

func (p *BatchContractDeregistrationProposal) GetDescription() string

GetDescription returns the description of this proposal.

func (*BatchContractDeregistrationProposal) GetTitle added in v1.42.8

GetTitle returns the title of this proposal.

func (*BatchContractDeregistrationProposal) Marshal added in v1.42.8

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

func (*BatchContractDeregistrationProposal) MarshalTo added in v1.42.8

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

func (*BatchContractDeregistrationProposal) MarshalToSizedBuffer added in v1.42.8

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

func (*BatchContractDeregistrationProposal) ProposalRoute added in v1.42.8

func (p *BatchContractDeregistrationProposal) ProposalRoute() string

ProposalRoute returns router key of this proposal.

func (*BatchContractDeregistrationProposal) ProposalType added in v1.42.8

func (p *BatchContractDeregistrationProposal) ProposalType() string

ProposalType returns proposal type of this proposal.

func (*BatchContractDeregistrationProposal) ProtoMessage added in v1.42.8

func (*BatchContractDeregistrationProposal) ProtoMessage()

func (*BatchContractDeregistrationProposal) Reset added in v1.42.8

func (*BatchContractDeregistrationProposal) Size added in v1.42.8

func (*BatchContractDeregistrationProposal) String added in v1.42.8

func (*BatchContractDeregistrationProposal) Unmarshal added in v1.42.8

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

func (*BatchContractDeregistrationProposal) ValidateBasic added in v1.42.8

func (p *BatchContractDeregistrationProposal) ValidateBasic() error

ValidateBasic returns ValidateBasic result of this proposal.

func (*BatchContractDeregistrationProposal) XXX_DiscardUnknown added in v1.42.8

func (m *BatchContractDeregistrationProposal) XXX_DiscardUnknown()

func (*BatchContractDeregistrationProposal) XXX_Marshal added in v1.42.8

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

func (*BatchContractDeregistrationProposal) XXX_Merge added in v1.42.8

func (*BatchContractDeregistrationProposal) XXX_Size added in v1.42.8

func (*BatchContractDeregistrationProposal) XXX_Unmarshal added in v1.42.8

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

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 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"`
	ShouldPinContract bool   `protobuf:"varint,4,opt,name=should_pin_contract,json=shouldPinContract,proto3" json:"should_pin_contract,omitempty"`
	// if true contract owner can update it, if false only current code_id will be allowed to be executed
	IsMigrationAllowed bool `protobuf:"varint,5,opt,name=is_migration_allowed,json=isMigrationAllowed,proto3" json:"is_migration_allowed,omitempty"`
	// code_id of the contract being registered - will be verified upon every execution but only if is_migration_allowed is false
	CodeId uint64 `protobuf:"varint,6,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// Optional address of admin account (that will be allowed to pause or update contract params)
	AdminAddress string `protobuf:"bytes,7,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
}

func (*ContractRegistrationRequest) Descriptor

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

func (*ContractRegistrationRequest) GetAdminAddress added in v1.45.0

func (m *ContractRegistrationRequest) GetAdminAddress() string

func (*ContractRegistrationRequest) GetCodeId

func (m *ContractRegistrationRequest) GetCodeId() uint64

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) GetIsMigrationAllowed added in v1.45.0

func (m *ContractRegistrationRequest) GetIsMigrationAllowed() bool

func (*ContractRegistrationRequest) GetShouldPinContract added in v1.45.0

func (m *ContractRegistrationRequest) GetShouldPinContract() 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 DeactivateCallbackMsg added in v1.43.1

type DeactivateCallbackMsg struct{}

type DeregisterCallbackMsg added in v1.43.1

type DeregisterCallbackMsg struct{}

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"`
	// registered_contracts is an array containing the genesis registered contracts
	RegisteredContracts []RegisteredContractWithAddress `protobuf:"bytes,2,rep,name=registered_contracts,json=registeredContracts,proto3" json:"registered_contracts"`
}

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) GetRegisteredContracts added in v1.45.0

func (m *GenesisState) GetRegisteredContracts() []RegisteredContractWithAddress

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 MsgActivateContract added in v1.45.0

type MsgActivateContract struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Unique Identifier for contract instance to be activated.
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

func (*MsgActivateContract) Descriptor added in v1.45.0

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

func (*MsgActivateContract) GetContractAddress added in v1.45.0

func (m *MsgActivateContract) GetContractAddress() string

func (*MsgActivateContract) GetSender added in v1.45.0

func (m *MsgActivateContract) GetSender() string

func (*MsgActivateContract) GetSignBytes added in v1.45.0

func (msg *MsgActivateContract) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgActivateContract) GetSigners added in v1.45.0

func (msg MsgActivateContract) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgActivateContract) Marshal added in v1.45.0

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

func (*MsgActivateContract) MarshalTo added in v1.45.0

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

func (*MsgActivateContract) MarshalToSizedBuffer added in v1.45.0

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

func (*MsgActivateContract) ProtoMessage added in v1.45.0

func (*MsgActivateContract) ProtoMessage()

func (*MsgActivateContract) Reset added in v1.45.0

func (m *MsgActivateContract) Reset()

func (MsgActivateContract) Route added in v1.45.0

func (msg MsgActivateContract) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgActivateContract) Size added in v1.45.0

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

func (*MsgActivateContract) String added in v1.45.0

func (m *MsgActivateContract) String() string

func (MsgActivateContract) Type added in v1.45.0

func (msg MsgActivateContract) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgActivateContract) Unmarshal added in v1.45.0

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

func (MsgActivateContract) ValidateBasic added in v1.45.0

func (msg MsgActivateContract) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgActivateContract) XXX_DiscardUnknown added in v1.45.0

func (m *MsgActivateContract) XXX_DiscardUnknown()

func (*MsgActivateContract) XXX_Marshal added in v1.45.0

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

func (*MsgActivateContract) XXX_Merge added in v1.45.0

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

func (*MsgActivateContract) XXX_Size added in v1.45.0

func (m *MsgActivateContract) XXX_Size() int

func (*MsgActivateContract) XXX_Unmarshal added in v1.45.0

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

type MsgActivateContractResponse added in v1.45.0

type MsgActivateContractResponse struct {
}

func (*MsgActivateContractResponse) Descriptor added in v1.45.0

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

func (*MsgActivateContractResponse) Marshal added in v1.45.0

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

func (*MsgActivateContractResponse) MarshalTo added in v1.45.0

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

func (*MsgActivateContractResponse) MarshalToSizedBuffer added in v1.45.0

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

func (*MsgActivateContractResponse) ProtoMessage added in v1.45.0

func (*MsgActivateContractResponse) ProtoMessage()

func (*MsgActivateContractResponse) Reset added in v1.45.0

func (m *MsgActivateContractResponse) Reset()

func (*MsgActivateContractResponse) Size added in v1.45.0

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

func (*MsgActivateContractResponse) String added in v1.45.0

func (m *MsgActivateContractResponse) String() string

func (*MsgActivateContractResponse) Unmarshal added in v1.45.0

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

func (*MsgActivateContractResponse) XXX_DiscardUnknown added in v1.45.0

func (m *MsgActivateContractResponse) XXX_DiscardUnknown()

func (*MsgActivateContractResponse) XXX_Marshal added in v1.45.0

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

func (*MsgActivateContractResponse) XXX_Merge added in v1.45.0

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

func (*MsgActivateContractResponse) XXX_Size added in v1.45.0

func (m *MsgActivateContractResponse) XXX_Size() int

func (*MsgActivateContractResponse) XXX_Unmarshal added in v1.45.0

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

type MsgClient

type MsgClient interface {
	UpdateRegistryContractParams(ctx context.Context, in *MsgUpdateContract, opts ...grpc.CallOption) (*MsgUpdateContractResponse, error)
	ActivateRegistryContract(ctx context.Context, in *MsgActivateContract, opts ...grpc.CallOption) (*MsgActivateContractResponse, error)
	DeactivateRegistryContract(ctx context.Context, in *MsgDeactivateContract, opts ...grpc.CallOption) (*MsgDeactivateContractResponse, error)
	ExecuteContractCompat(ctx context.Context, in *MsgExecuteContractCompat, opts ...grpc.CallOption) (*MsgExecuteContractCompatResponse, error)
}

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 MsgDeactivateContract added in v1.45.0

type MsgDeactivateContract struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Unique Identifier for contract instance to be deactivated.
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

func (*MsgDeactivateContract) Descriptor added in v1.45.0

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

func (*MsgDeactivateContract) GetContractAddress added in v1.45.0

func (m *MsgDeactivateContract) GetContractAddress() string

func (*MsgDeactivateContract) GetSender added in v1.45.0

func (m *MsgDeactivateContract) GetSender() string

func (*MsgDeactivateContract) GetSignBytes added in v1.45.0

func (msg *MsgDeactivateContract) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgDeactivateContract) GetSigners added in v1.45.0

func (msg MsgDeactivateContract) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgDeactivateContract) Marshal added in v1.45.0

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

func (*MsgDeactivateContract) MarshalTo added in v1.45.0

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

func (*MsgDeactivateContract) MarshalToSizedBuffer added in v1.45.0

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

func (*MsgDeactivateContract) ProtoMessage added in v1.45.0

func (*MsgDeactivateContract) ProtoMessage()

func (*MsgDeactivateContract) Reset added in v1.45.0

func (m *MsgDeactivateContract) Reset()

func (MsgDeactivateContract) Route added in v1.45.0

func (msg MsgDeactivateContract) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgDeactivateContract) Size added in v1.45.0

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

func (*MsgDeactivateContract) String added in v1.45.0

func (m *MsgDeactivateContract) String() string

func (MsgDeactivateContract) Type added in v1.45.0

func (msg MsgDeactivateContract) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgDeactivateContract) Unmarshal added in v1.45.0

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

func (MsgDeactivateContract) ValidateBasic added in v1.45.0

func (msg MsgDeactivateContract) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgDeactivateContract) XXX_DiscardUnknown added in v1.45.0

func (m *MsgDeactivateContract) XXX_DiscardUnknown()

func (*MsgDeactivateContract) XXX_Marshal added in v1.45.0

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

func (*MsgDeactivateContract) XXX_Merge added in v1.45.0

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

func (*MsgDeactivateContract) XXX_Size added in v1.45.0

func (m *MsgDeactivateContract) XXX_Size() int

func (*MsgDeactivateContract) XXX_Unmarshal added in v1.45.0

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

type MsgDeactivateContractResponse added in v1.45.0

type MsgDeactivateContractResponse struct {
}

func (*MsgDeactivateContractResponse) Descriptor added in v1.45.0

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

func (*MsgDeactivateContractResponse) Marshal added in v1.45.0

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

func (*MsgDeactivateContractResponse) MarshalTo added in v1.45.0

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

func (*MsgDeactivateContractResponse) MarshalToSizedBuffer added in v1.45.0

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

func (*MsgDeactivateContractResponse) ProtoMessage added in v1.45.0

func (*MsgDeactivateContractResponse) ProtoMessage()

func (*MsgDeactivateContractResponse) Reset added in v1.45.0

func (m *MsgDeactivateContractResponse) Reset()

func (*MsgDeactivateContractResponse) Size added in v1.45.0

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

func (*MsgDeactivateContractResponse) String added in v1.45.0

func (*MsgDeactivateContractResponse) Unmarshal added in v1.45.0

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

func (*MsgDeactivateContractResponse) XXX_DiscardUnknown added in v1.45.0

func (m *MsgDeactivateContractResponse) XXX_DiscardUnknown()

func (*MsgDeactivateContractResponse) XXX_Marshal added in v1.45.0

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

func (*MsgDeactivateContractResponse) XXX_Merge added in v1.45.0

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

func (*MsgDeactivateContractResponse) XXX_Size added in v1.45.0

func (m *MsgDeactivateContractResponse) XXX_Size() int

func (*MsgDeactivateContractResponse) XXX_Unmarshal added in v1.45.0

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

type MsgExecuteContractCompat added in v1.44.3

type MsgExecuteContractCompat struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	// Msg json encoded message to be passed to the contract
	Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// Funds coins that are transferred to the contract on execution
	Funds string `protobuf:"bytes,4,opt,name=funds,proto3" json:"funds,omitempty"`
}

MsgExecuteContractCompat submits the given message data to a smart contract, compatible with EIP712

func (*MsgExecuteContractCompat) Descriptor added in v1.44.3

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

func (*MsgExecuteContractCompat) GetContract added in v1.44.3

func (m *MsgExecuteContractCompat) GetContract() string

func (*MsgExecuteContractCompat) GetFunds added in v1.44.3

func (m *MsgExecuteContractCompat) GetFunds() string

func (*MsgExecuteContractCompat) GetMsg added in v1.44.3

func (m *MsgExecuteContractCompat) GetMsg() string

func (*MsgExecuteContractCompat) GetSender added in v1.44.3

func (m *MsgExecuteContractCompat) GetSender() string

func (MsgExecuteContractCompat) GetSignBytes added in v1.44.3

func (msg MsgExecuteContractCompat) GetSignBytes() []byte

func (MsgExecuteContractCompat) GetSigners added in v1.44.3

func (msg MsgExecuteContractCompat) GetSigners() []sdk.AccAddress

func (*MsgExecuteContractCompat) Marshal added in v1.44.3

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

func (*MsgExecuteContractCompat) MarshalTo added in v1.44.3

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

func (*MsgExecuteContractCompat) MarshalToSizedBuffer added in v1.44.3

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

func (*MsgExecuteContractCompat) ProtoMessage added in v1.44.3

func (*MsgExecuteContractCompat) ProtoMessage()

func (*MsgExecuteContractCompat) Reset added in v1.44.3

func (m *MsgExecuteContractCompat) Reset()

func (MsgExecuteContractCompat) Route added in v1.44.3

func (msg MsgExecuteContractCompat) Route() string

func (*MsgExecuteContractCompat) Size added in v1.44.3

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

func (*MsgExecuteContractCompat) String added in v1.44.3

func (m *MsgExecuteContractCompat) String() string

func (MsgExecuteContractCompat) Type added in v1.44.3

func (msg MsgExecuteContractCompat) Type() string

func (*MsgExecuteContractCompat) Unmarshal added in v1.44.3

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

func (MsgExecuteContractCompat) ValidateBasic added in v1.44.3

func (msg MsgExecuteContractCompat) ValidateBasic() error

func (*MsgExecuteContractCompat) XXX_DiscardUnknown added in v1.44.3

func (m *MsgExecuteContractCompat) XXX_DiscardUnknown()

func (*MsgExecuteContractCompat) XXX_Marshal added in v1.44.3

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

func (*MsgExecuteContractCompat) XXX_Merge added in v1.44.3

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

func (*MsgExecuteContractCompat) XXX_Size added in v1.44.3

func (m *MsgExecuteContractCompat) XXX_Size() int

func (*MsgExecuteContractCompat) XXX_Unmarshal added in v1.44.3

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

type MsgExecuteContractCompatResponse added in v1.44.3

type MsgExecuteContractCompatResponse struct {
	// Data contains bytes to returned from the contract
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

MsgExecuteContractCompatResponse returns execution result data.

func (*MsgExecuteContractCompatResponse) Descriptor added in v1.44.3

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

func (*MsgExecuteContractCompatResponse) GetData added in v1.44.3

func (m *MsgExecuteContractCompatResponse) GetData() []byte

func (*MsgExecuteContractCompatResponse) Marshal added in v1.44.3

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

func (*MsgExecuteContractCompatResponse) MarshalTo added in v1.44.3

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

func (*MsgExecuteContractCompatResponse) MarshalToSizedBuffer added in v1.44.3

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

func (*MsgExecuteContractCompatResponse) ProtoMessage added in v1.44.3

func (*MsgExecuteContractCompatResponse) ProtoMessage()

func (*MsgExecuteContractCompatResponse) Reset added in v1.44.3

func (*MsgExecuteContractCompatResponse) Size added in v1.44.3

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

func (*MsgExecuteContractCompatResponse) String added in v1.44.3

func (*MsgExecuteContractCompatResponse) Unmarshal added in v1.44.3

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

func (*MsgExecuteContractCompatResponse) XXX_DiscardUnknown added in v1.44.3

func (m *MsgExecuteContractCompatResponse) XXX_DiscardUnknown()

func (*MsgExecuteContractCompatResponse) XXX_Marshal added in v1.44.3

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

func (*MsgExecuteContractCompatResponse) XXX_Merge added in v1.44.3

func (*MsgExecuteContractCompatResponse) XXX_Size added in v1.44.3

func (m *MsgExecuteContractCompatResponse) XXX_Size() int

func (*MsgExecuteContractCompatResponse) XXX_Unmarshal added in v1.44.3

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

type MsgServer

type MsgServer interface {
	UpdateRegistryContractParams(context.Context, *MsgUpdateContract) (*MsgUpdateContractResponse, error)
	ActivateRegistryContract(context.Context, *MsgActivateContract) (*MsgActivateContractResponse, error)
	DeactivateRegistryContract(context.Context, *MsgDeactivateContract) (*MsgDeactivateContractResponse, error)
	ExecuteContractCompat(context.Context, *MsgExecuteContractCompat) (*MsgExecuteContractCompatResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateContract added in v1.45.0

type MsgUpdateContract struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Unique Identifier for contract instance to be registered.
	ContractAddress string `protobuf:"bytes,2,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,3,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,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// optional - admin account that will be allowed to perform any changes
	AdminAddress string `protobuf:"bytes,5,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
}

func (*MsgUpdateContract) Descriptor added in v1.45.0

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

func (*MsgUpdateContract) GetAdminAddress added in v1.45.0

func (m *MsgUpdateContract) GetAdminAddress() string

func (*MsgUpdateContract) GetContractAddress added in v1.45.0

func (m *MsgUpdateContract) GetContractAddress() string

func (*MsgUpdateContract) GetGasLimit added in v1.45.0

func (m *MsgUpdateContract) GetGasLimit() uint64

func (*MsgUpdateContract) GetGasPrice added in v1.45.0

func (m *MsgUpdateContract) GetGasPrice() uint64

func (*MsgUpdateContract) GetSender added in v1.45.0

func (m *MsgUpdateContract) GetSender() string

func (*MsgUpdateContract) GetSignBytes added in v1.45.0

func (msg *MsgUpdateContract) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgUpdateContract) GetSigners added in v1.45.0

func (msg MsgUpdateContract) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgUpdateContract) Marshal added in v1.45.0

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

func (*MsgUpdateContract) MarshalTo added in v1.45.0

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

func (*MsgUpdateContract) MarshalToSizedBuffer added in v1.45.0

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

func (*MsgUpdateContract) ProtoMessage added in v1.45.0

func (*MsgUpdateContract) ProtoMessage()

func (*MsgUpdateContract) Reset added in v1.45.0

func (m *MsgUpdateContract) Reset()

func (MsgUpdateContract) Route added in v1.45.0

func (msg MsgUpdateContract) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgUpdateContract) Size added in v1.45.0

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

func (*MsgUpdateContract) String added in v1.45.0

func (m *MsgUpdateContract) String() string

func (MsgUpdateContract) Type added in v1.45.0

func (msg MsgUpdateContract) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgUpdateContract) Unmarshal added in v1.45.0

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

func (MsgUpdateContract) ValidateBasic added in v1.45.0

func (msg MsgUpdateContract) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgUpdateContract) XXX_DiscardUnknown added in v1.45.0

func (m *MsgUpdateContract) XXX_DiscardUnknown()

func (*MsgUpdateContract) XXX_Marshal added in v1.45.0

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

func (*MsgUpdateContract) XXX_Merge added in v1.45.0

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

func (*MsgUpdateContract) XXX_Size added in v1.45.0

func (m *MsgUpdateContract) XXX_Size() int

func (*MsgUpdateContract) XXX_Unmarshal added in v1.45.0

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

type MsgUpdateContractResponse added in v1.45.0

type MsgUpdateContractResponse struct {
}

func (*MsgUpdateContractResponse) Descriptor added in v1.45.0

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

func (*MsgUpdateContractResponse) Marshal added in v1.45.0

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

func (*MsgUpdateContractResponse) MarshalTo added in v1.45.0

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

func (*MsgUpdateContractResponse) MarshalToSizedBuffer added in v1.45.0

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

func (*MsgUpdateContractResponse) ProtoMessage added in v1.45.0

func (*MsgUpdateContractResponse) ProtoMessage()

func (*MsgUpdateContractResponse) Reset added in v1.45.0

func (m *MsgUpdateContractResponse) Reset()

func (*MsgUpdateContractResponse) Size added in v1.45.0

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

func (*MsgUpdateContractResponse) String added in v1.45.0

func (m *MsgUpdateContractResponse) String() string

func (*MsgUpdateContractResponse) Unmarshal added in v1.45.0

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

func (*MsgUpdateContractResponse) XXX_DiscardUnknown added in v1.45.0

func (m *MsgUpdateContractResponse) XXX_DiscardUnknown()

func (*MsgUpdateContractResponse) XXX_Marshal added in v1.45.0

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

func (*MsgUpdateContractResponse) XXX_Merge added in v1.45.0

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

func (*MsgUpdateContractResponse) XXX_Size added in v1.45.0

func (m *MsgUpdateContractResponse) XXX_Size() int

func (*MsgUpdateContractResponse) XXX_Unmarshal added in v1.45.0

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

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 contracts can be executed in begin blocker.
	IsExecutionEnabled bool `protobuf:"varint,1,opt,name=is_execution_enabled,json=isExecutionEnabled,proto3" json:"is_execution_enabled,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,3,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,4,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,
	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) 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 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 QueryContractRegistrationInfoRequest added in v1.45.0

type QueryContractRegistrationInfoRequest struct {
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

Contract registration info

func (*QueryContractRegistrationInfoRequest) Descriptor added in v1.45.0

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

func (*QueryContractRegistrationInfoRequest) GetContractAddress added in v1.45.0

func (m *QueryContractRegistrationInfoRequest) GetContractAddress() string

func (*QueryContractRegistrationInfoRequest) Marshal added in v1.45.0

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

func (*QueryContractRegistrationInfoRequest) MarshalTo added in v1.45.0

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

func (*QueryContractRegistrationInfoRequest) MarshalToSizedBuffer added in v1.45.0

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

func (*QueryContractRegistrationInfoRequest) ProtoMessage added in v1.45.0

func (*QueryContractRegistrationInfoRequest) ProtoMessage()

func (*QueryContractRegistrationInfoRequest) Reset added in v1.45.0

func (*QueryContractRegistrationInfoRequest) Size added in v1.45.0

func (*QueryContractRegistrationInfoRequest) String added in v1.45.0

func (*QueryContractRegistrationInfoRequest) Unmarshal added in v1.45.0

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

func (*QueryContractRegistrationInfoRequest) XXX_DiscardUnknown added in v1.45.0

func (m *QueryContractRegistrationInfoRequest) XXX_DiscardUnknown()

func (*QueryContractRegistrationInfoRequest) XXX_Marshal added in v1.45.0

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

func (*QueryContractRegistrationInfoRequest) XXX_Merge added in v1.45.0

func (*QueryContractRegistrationInfoRequest) XXX_Size added in v1.45.0

func (*QueryContractRegistrationInfoRequest) XXX_Unmarshal added in v1.45.0

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

type QueryContractRegistrationInfoResponse added in v1.45.0

type QueryContractRegistrationInfoResponse struct {
	Contract *RegisteredContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
}

func (*QueryContractRegistrationInfoResponse) Descriptor added in v1.45.0

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

func (*QueryContractRegistrationInfoResponse) GetContract added in v1.45.0

func (*QueryContractRegistrationInfoResponse) Marshal added in v1.45.0

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

func (*QueryContractRegistrationInfoResponse) MarshalTo added in v1.45.0

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

func (*QueryContractRegistrationInfoResponse) MarshalToSizedBuffer added in v1.45.0

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

func (*QueryContractRegistrationInfoResponse) ProtoMessage added in v1.45.0

func (*QueryContractRegistrationInfoResponse) ProtoMessage()

func (*QueryContractRegistrationInfoResponse) Reset added in v1.45.0

func (*QueryContractRegistrationInfoResponse) Size added in v1.45.0

func (*QueryContractRegistrationInfoResponse) String added in v1.45.0

func (*QueryContractRegistrationInfoResponse) Unmarshal added in v1.45.0

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

func (*QueryContractRegistrationInfoResponse) XXX_DiscardUnknown added in v1.45.0

func (m *QueryContractRegistrationInfoResponse) XXX_DiscardUnknown()

func (*QueryContractRegistrationInfoResponse) XXX_Marshal added in v1.45.0

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

func (*QueryContractRegistrationInfoResponse) XXX_Merge added in v1.45.0

func (*QueryContractRegistrationInfoResponse) XXX_Size added in v1.45.0

func (*QueryContractRegistrationInfoResponse) XXX_Unmarshal added in v1.45.0

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

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 RegisteredContract added in v1.45.0

type RegisteredContract struct {
	// limit of gas per BB execution
	GasLimit uint64 `protobuf:"varint,1,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// gas price that contract is willing to pay for execution in BeginBlocker
	GasPrice uint64 `protobuf:"varint,2,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// is contract currently active
	IsExecutable bool `protobuf:"varint,3,opt,name=is_executable,json=isExecutable,proto3" json:"is_executable,omitempty"`
	// code_id that is allowed to be executed (to prevent malicious updates) - if nil/0 any code_id can be executed
	CodeId uint64 `protobuf:"varint,4,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// optional - admin addr that is allowed to update contract data
	AdminAddress string `protobuf:"bytes,5,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
}

func (*RegisteredContract) Descriptor added in v1.45.0

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

func (*RegisteredContract) Equal added in v1.45.0

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

func (*RegisteredContract) GetAdminAddress added in v1.45.0

func (m *RegisteredContract) GetAdminAddress() string

func (*RegisteredContract) GetCodeId added in v1.45.0

func (m *RegisteredContract) GetCodeId() uint64

func (*RegisteredContract) GetGasLimit added in v1.45.0

func (m *RegisteredContract) GetGasLimit() uint64

func (*RegisteredContract) GetGasPrice added in v1.45.0

func (m *RegisteredContract) GetGasPrice() uint64

func (*RegisteredContract) GetIsExecutable added in v1.45.0

func (m *RegisteredContract) GetIsExecutable() bool

func (*RegisteredContract) Marshal added in v1.45.0

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

func (*RegisteredContract) MarshalTo added in v1.45.0

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

func (*RegisteredContract) MarshalToSizedBuffer added in v1.45.0

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

func (*RegisteredContract) ProtoMessage added in v1.45.0

func (*RegisteredContract) ProtoMessage()

func (*RegisteredContract) Reset added in v1.45.0

func (m *RegisteredContract) Reset()

func (*RegisteredContract) Size added in v1.45.0

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

func (*RegisteredContract) String added in v1.45.0

func (m *RegisteredContract) String() string

func (*RegisteredContract) Unmarshal added in v1.45.0

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

func (*RegisteredContract) XXX_DiscardUnknown added in v1.45.0

func (m *RegisteredContract) XXX_DiscardUnknown()

func (*RegisteredContract) XXX_Marshal added in v1.45.0

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

func (*RegisteredContract) XXX_Merge added in v1.45.0

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

func (*RegisteredContract) XXX_Size added in v1.45.0

func (m *RegisteredContract) XXX_Size() int

func (*RegisteredContract) XXX_Unmarshal added in v1.45.0

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

type RegisteredContractWithAddress added in v1.45.0

type RegisteredContractWithAddress struct {
	Address            string              `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	RegisteredContract *RegisteredContract `protobuf:"bytes,2,opt,name=registered_contract,json=registeredContract,proto3" json:"registered_contract,omitempty"`
}

func (*RegisteredContractWithAddress) Descriptor added in v1.45.0

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

func (*RegisteredContractWithAddress) GetAddress added in v1.45.0

func (m *RegisteredContractWithAddress) GetAddress() string

func (*RegisteredContractWithAddress) GetRegisteredContract added in v1.45.0

func (m *RegisteredContractWithAddress) GetRegisteredContract() *RegisteredContract

func (*RegisteredContractWithAddress) Marshal added in v1.45.0

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

func (*RegisteredContractWithAddress) MarshalTo added in v1.45.0

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

func (*RegisteredContractWithAddress) MarshalToSizedBuffer added in v1.45.0

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

func (*RegisteredContractWithAddress) ProtoMessage added in v1.45.0

func (*RegisteredContractWithAddress) ProtoMessage()

func (*RegisteredContractWithAddress) Reset added in v1.45.0

func (m *RegisteredContractWithAddress) Reset()

func (*RegisteredContractWithAddress) Size added in v1.45.0

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

func (*RegisteredContractWithAddress) String added in v1.45.0

func (*RegisteredContractWithAddress) Unmarshal added in v1.45.0

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

func (*RegisteredContractWithAddress) XXX_DiscardUnknown added in v1.45.0

func (m *RegisteredContractWithAddress) XXX_DiscardUnknown()

func (*RegisteredContractWithAddress) XXX_Marshal added in v1.45.0

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

func (*RegisteredContractWithAddress) XXX_Merge added in v1.45.0

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

func (*RegisteredContractWithAddress) XXX_Size added in v1.45.0

func (m *RegisteredContractWithAddress) XXX_Size() int

func (*RegisteredContractWithAddress) XXX_Unmarshal added in v1.45.0

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

type RegistryDeactivateCallbackMsg added in v1.43.1

type RegistryDeactivateCallbackMsg struct {
	DeactivateCallback *DeactivateCallbackMsg `json:"deactivate,omitempty"`
}

func NewRegistryDeactivateCallbackMsg added in v1.43.1

func NewRegistryDeactivateCallbackMsg() RegistryDeactivateCallbackMsg

type RegistryDeregisterCallbackMsg added in v1.43.1

type RegistryDeregisterCallbackMsg struct {
	DeregisterCallback *DeregisterCallbackMsg `json:"deregister,omitempty"`
}

func NewRegistryDeregisterCallbackMsg added in v1.43.1

func NewRegistryDeregisterCallbackMsg() RegistryDeregisterCallbackMsg

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ActivateRegistryContract added in v1.45.0

func (*UnimplementedMsgServer) DeactivateRegistryContract added in v1.45.0

func (*UnimplementedMsgServer) ExecuteContractCompat added in v1.44.3

func (*UnimplementedMsgServer) UpdateRegistryContractParams added in v1.45.0

func (*UnimplementedMsgServer) UpdateRegistryContractParams(ctx context.Context, req *MsgUpdateContract) (*MsgUpdateContractResponse, error)

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