types

package
v0.0.0-...-3792732 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

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"
	TypeMsgUpdateParams          = "updateParams"
	TypeMsgRegisterContract      = "registerContract"
)
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        = errors.Register(ModuleName, 1, "invalid gas limit")
	ErrInvalidGasPrice        = errors.Register(ModuleName, 2, "invalid gas price")
	ErrInvalidContractAddress = errors.Register(ModuleName, 3, "invalid contract address")
	ErrAlreadyRegistered      = errors.Register(ModuleName, 4, "contract already registered")
	ErrDuplicateContract      = errors.Register(ModuleName, 5, "duplicate contract")
	ErrNoContractAddresses    = errors.Register(ModuleName, 6, "no contract addresses found")
	ErrInvalidCodeId          = errors.Register(ModuleName, 7, "invalid code id")
	ErrDeductingGasFees       = errors.Register(ModuleName, 8, "not possible to deduct gas fees")
	ErrMissingGranterAddress  = errors.Register(ModuleName, 9, "missing granter address")
	ErrNoGranterAccount       = errors.Register(ModuleName, 10, "granter address does not exist")
	ErrInvalidFundingMode     = errors.Register(ModuleName, 11, "invalid funding mode")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
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}
	ParamsKey                 = []byte{0x10}
)
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 FundingMode_name = map[int32]string{
	0: "Unspecified",
	1: "SelfFunded",
	2: "GrantOnly",
	3: "Dual",
}
View Source
var FundingMode_value = map[string]int32{
	"Unspecified": 0,
	"SelfFunded":  1,
	"GrantOnly":   2,
	"Dual":        3,
}
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

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

func GetContractsIndexKey

func GetContractsIndexKey(address sdk.AccAddress) []byte

GetContractsIndexKey provides the key for the contract address => gasPrice

func HasDuplicates

func HasDuplicates(slice []string) bool

func NewBeginBlockerExecMsg

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 {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	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
	IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
	SendCoins(ctx sdk.Context, from, to sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper methods

type BatchContractDeregistrationProposal

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

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

func (*BatchContractDeregistrationProposal) GetDescription

func (p *BatchContractDeregistrationProposal) GetDescription() string

GetDescription returns the description of this proposal.

func (*BatchContractDeregistrationProposal) GetTitle

GetTitle returns the title of this proposal.

func (*BatchContractDeregistrationProposal) Marshal

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

func (*BatchContractDeregistrationProposal) MarshalTo

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

func (*BatchContractDeregistrationProposal) MarshalToSizedBuffer

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

func (*BatchContractDeregistrationProposal) ProposalRoute

func (p *BatchContractDeregistrationProposal) ProposalRoute() string

ProposalRoute returns router key of this proposal.

func (*BatchContractDeregistrationProposal) ProposalType

func (p *BatchContractDeregistrationProposal) ProposalType() string

ProposalType returns proposal type of this proposal.

func (*BatchContractDeregistrationProposal) ProtoMessage

func (*BatchContractDeregistrationProposal) ProtoMessage()

func (*BatchContractDeregistrationProposal) Reset

func (*BatchContractDeregistrationProposal) Size

func (*BatchContractDeregistrationProposal) String

func (*BatchContractDeregistrationProposal) Unmarshal

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

func (*BatchContractDeregistrationProposal) ValidateBasic

func (p *BatchContractDeregistrationProposal) ValidateBasic() error

ValidateBasic returns ValidateBasic result of this proposal.

func (*BatchContractDeregistrationProposal) XXX_DiscardUnknown

func (m *BatchContractDeregistrationProposal) XXX_DiscardUnknown()

func (*BatchContractDeregistrationProposal) XXX_Marshal

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

func (*BatchContractDeregistrationProposal) XXX_Merge

func (*BatchContractDeregistrationProposal) XXX_Size

func (*BatchContractDeregistrationProposal) XXX_Unmarshal

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

type BatchContractRegistrationRequestProposal

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

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

func (*BatchContractRegistrationRequestProposal) GetDescription

GetDescription returns the description of this proposal.

func (*BatchContractRegistrationRequestProposal) GetTitle

GetTitle returns the title of this proposal.

func (*BatchContractRegistrationRequestProposal) Marshal

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

func (*BatchContractRegistrationRequestProposal) MarshalTo

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

func (*BatchContractRegistrationRequestProposal) MarshalToSizedBuffer

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

func (*BatchContractRegistrationRequestProposal) ProposalRoute

ProposalRoute returns router key of this proposal.

func (*BatchContractRegistrationRequestProposal) ProposalType

ProposalType returns proposal type of this proposal.

func (*BatchContractRegistrationRequestProposal) ProtoMessage

func (*BatchContractRegistrationRequestProposal) Reset

func (*BatchContractRegistrationRequestProposal) Size

func (*BatchContractRegistrationRequestProposal) String

func (*BatchContractRegistrationRequestProposal) Unmarshal

func (*BatchContractRegistrationRequestProposal) ValidateBasic

ValidateBasic returns ValidateBasic result of this proposal.

func (*BatchContractRegistrationRequestProposal) XXX_DiscardUnknown

func (m *BatchContractRegistrationRequestProposal) XXX_DiscardUnknown()

func (*BatchContractRegistrationRequestProposal) XXX_Marshal

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

func (*BatchContractRegistrationRequestProposal) XXX_Merge

func (*BatchContractRegistrationRequestProposal) XXX_Size

func (*BatchContractRegistrationRequestProposal) XXX_Unmarshal

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

type BatchStoreCodeProposal

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 (*BatchStoreCodeProposal) Descriptor

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

func (*BatchStoreCodeProposal) GetDescription

func (p *BatchStoreCodeProposal) GetDescription() string

GetDescription returns the description of this proposal.

func (*BatchStoreCodeProposal) GetTitle

func (p *BatchStoreCodeProposal) GetTitle() string

GetTitle returns the title of this proposal.

func (*BatchStoreCodeProposal) Marshal

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

func (*BatchStoreCodeProposal) MarshalTo

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

func (*BatchStoreCodeProposal) MarshalToSizedBuffer

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

func (*BatchStoreCodeProposal) ProposalRoute

func (p *BatchStoreCodeProposal) ProposalRoute() string

ProposalRoute returns router key of this proposal.

func (*BatchStoreCodeProposal) ProposalType

func (p *BatchStoreCodeProposal) ProposalType() string

ProposalType returns proposal type of this proposal.

func (*BatchStoreCodeProposal) ProtoMessage

func (*BatchStoreCodeProposal) ProtoMessage()

func (*BatchStoreCodeProposal) Reset

func (m *BatchStoreCodeProposal) Reset()

func (*BatchStoreCodeProposal) Size

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

func (*BatchStoreCodeProposal) String

func (m *BatchStoreCodeProposal) String() string

func (*BatchStoreCodeProposal) Unmarshal

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

func (*BatchStoreCodeProposal) ValidateBasic

func (p *BatchStoreCodeProposal) ValidateBasic() error

ValidateBasic returns ValidateBasic result of this proposal.

func (*BatchStoreCodeProposal) XXX_DiscardUnknown

func (m *BatchStoreCodeProposal) XXX_DiscardUnknown()

func (*BatchStoreCodeProposal) XXX_Marshal

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

func (*BatchStoreCodeProposal) XXX_Merge

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

func (*BatchStoreCodeProposal) XXX_Size

func (m *BatchStoreCodeProposal) XXX_Size() int

func (*BatchStoreCodeProposal) XXX_Unmarshal

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"`
	// Optional address of the contract that grants fees. Must be set if
	// funding_mode is other than SelfFunded
	GranterAddress string `protobuf:"bytes,8,opt,name=granter_address,json=granterAddress,proto3" json:"granter_address,omitempty"`
	// Specifies how the contract will fund its execution
	FundingMode FundingMode `` /* 131-byte string literal not displayed */
}

func (*ContractRegistrationRequest) Descriptor

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

func (*ContractRegistrationRequest) GetAdminAddress

func (m *ContractRegistrationRequest) GetAdminAddress() string

func (*ContractRegistrationRequest) GetCodeId

func (m *ContractRegistrationRequest) GetCodeId() uint64

func (*ContractRegistrationRequest) GetContractAddress

func (m *ContractRegistrationRequest) GetContractAddress() string

func (*ContractRegistrationRequest) GetFundingMode

func (m *ContractRegistrationRequest) GetFundingMode() FundingMode

func (*ContractRegistrationRequest) GetGasLimit

func (m *ContractRegistrationRequest) GetGasLimit() uint64

func (*ContractRegistrationRequest) GetGasPrice

func (m *ContractRegistrationRequest) GetGasPrice() uint64

func (*ContractRegistrationRequest) GetGranterAddress

func (m *ContractRegistrationRequest) GetGranterAddress() string

func (*ContractRegistrationRequest) GetIsMigrationAllowed

func (m *ContractRegistrationRequest) GetIsMigrationAllowed() bool

func (*ContractRegistrationRequest) GetShouldPinContract

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) Validate

func (req *ContractRegistrationRequest) Validate() 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

type DeactivateCallbackMsg struct{}

type DeregisterCallbackMsg

type DeregisterCallbackMsg struct{}

type EventContractExecution

type EventContractExecution struct {
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	Response        []byte `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	Error           string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
}

func (*EventContractExecution) Descriptor

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

func (*EventContractExecution) GetContractAddress

func (m *EventContractExecution) GetContractAddress() string

func (*EventContractExecution) GetError

func (m *EventContractExecution) GetError() string

func (*EventContractExecution) GetResponse

func (m *EventContractExecution) GetResponse() []byte

func (*EventContractExecution) Marshal

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

func (*EventContractExecution) MarshalTo

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

func (*EventContractExecution) MarshalToSizedBuffer

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

func (*EventContractExecution) ProtoMessage

func (*EventContractExecution) ProtoMessage()

func (*EventContractExecution) Reset

func (m *EventContractExecution) Reset()

func (*EventContractExecution) Size

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

func (*EventContractExecution) String

func (m *EventContractExecution) String() string

func (*EventContractExecution) Unmarshal

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

func (*EventContractExecution) XXX_DiscardUnknown

func (m *EventContractExecution) XXX_DiscardUnknown()

func (*EventContractExecution) XXX_Marshal

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

func (*EventContractExecution) XXX_Merge

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

func (*EventContractExecution) XXX_Size

func (m *EventContractExecution) XXX_Size() int

func (*EventContractExecution) XXX_Unmarshal

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

type ExecutionData

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

type FundingMode

type FundingMode int32
const (
	FundingMode_Unspecified FundingMode = 0
	FundingMode_SelfFunded  FundingMode = 1
	FundingMode_GrantOnly   FundingMode = 2
	FundingMode_Dual        FundingMode = 3
)

func (FundingMode) EnumDescriptor

func (FundingMode) EnumDescriptor() ([]byte, []int)

func (FundingMode) String

func (x FundingMode) String() string

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

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

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

func NewInjectiveExecMsg

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

type MsgActivateContract

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

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

func (*MsgActivateContract) GetContractAddress

func (m *MsgActivateContract) GetContractAddress() string

func (*MsgActivateContract) GetSender

func (m *MsgActivateContract) GetSender() string

func (*MsgActivateContract) GetSignBytes

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

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

func (MsgActivateContract) GetSigners

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

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

func (*MsgActivateContract) Marshal

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

func (*MsgActivateContract) MarshalTo

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

func (*MsgActivateContract) MarshalToSizedBuffer

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

func (*MsgActivateContract) ProtoMessage

func (*MsgActivateContract) ProtoMessage()

func (*MsgActivateContract) Reset

func (m *MsgActivateContract) Reset()

func (MsgActivateContract) Route

func (msg MsgActivateContract) Route() string

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

func (*MsgActivateContract) Size

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

func (*MsgActivateContract) String

func (m *MsgActivateContract) String() string

func (MsgActivateContract) Type

func (msg MsgActivateContract) Type() string

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

func (*MsgActivateContract) Unmarshal

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

func (MsgActivateContract) ValidateBasic

func (msg MsgActivateContract) ValidateBasic() error

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

func (*MsgActivateContract) XXX_DiscardUnknown

func (m *MsgActivateContract) XXX_DiscardUnknown()

func (*MsgActivateContract) XXX_Marshal

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

func (*MsgActivateContract) XXX_Merge

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

func (*MsgActivateContract) XXX_Size

func (m *MsgActivateContract) XXX_Size() int

func (*MsgActivateContract) XXX_Unmarshal

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

type MsgActivateContractResponse

type MsgActivateContractResponse struct {
}

func (*MsgActivateContractResponse) Descriptor

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

func (*MsgActivateContractResponse) Marshal

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

func (*MsgActivateContractResponse) MarshalTo

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

func (*MsgActivateContractResponse) MarshalToSizedBuffer

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

func (*MsgActivateContractResponse) ProtoMessage

func (*MsgActivateContractResponse) ProtoMessage()

func (*MsgActivateContractResponse) Reset

func (m *MsgActivateContractResponse) Reset()

func (*MsgActivateContractResponse) Size

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

func (*MsgActivateContractResponse) String

func (m *MsgActivateContractResponse) String() string

func (*MsgActivateContractResponse) Unmarshal

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

func (*MsgActivateContractResponse) XXX_DiscardUnknown

func (m *MsgActivateContractResponse) XXX_DiscardUnknown()

func (*MsgActivateContractResponse) XXX_Marshal

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

func (*MsgActivateContractResponse) XXX_Merge

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

func (*MsgActivateContractResponse) XXX_Size

func (m *MsgActivateContractResponse) XXX_Size() int

func (*MsgActivateContractResponse) XXX_Unmarshal

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)
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, 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

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

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

func (*MsgDeactivateContract) GetContractAddress

func (m *MsgDeactivateContract) GetContractAddress() string

func (*MsgDeactivateContract) GetSender

func (m *MsgDeactivateContract) GetSender() string

func (*MsgDeactivateContract) GetSignBytes

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

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

func (MsgDeactivateContract) GetSigners

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

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

func (*MsgDeactivateContract) Marshal

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

func (*MsgDeactivateContract) MarshalTo

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

func (*MsgDeactivateContract) MarshalToSizedBuffer

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

func (*MsgDeactivateContract) ProtoMessage

func (*MsgDeactivateContract) ProtoMessage()

func (*MsgDeactivateContract) Reset

func (m *MsgDeactivateContract) Reset()

func (MsgDeactivateContract) Route

func (msg MsgDeactivateContract) Route() string

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

func (*MsgDeactivateContract) Size

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

func (*MsgDeactivateContract) String

func (m *MsgDeactivateContract) String() string

func (MsgDeactivateContract) Type

func (msg MsgDeactivateContract) Type() string

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

func (*MsgDeactivateContract) Unmarshal

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

func (MsgDeactivateContract) ValidateBasic

func (msg MsgDeactivateContract) ValidateBasic() error

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

func (*MsgDeactivateContract) XXX_DiscardUnknown

func (m *MsgDeactivateContract) XXX_DiscardUnknown()

func (*MsgDeactivateContract) XXX_Marshal

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

func (*MsgDeactivateContract) XXX_Merge

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

func (*MsgDeactivateContract) XXX_Size

func (m *MsgDeactivateContract) XXX_Size() int

func (*MsgDeactivateContract) XXX_Unmarshal

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

type MsgDeactivateContractResponse

type MsgDeactivateContractResponse struct {
}

func (*MsgDeactivateContractResponse) Descriptor

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

func (*MsgDeactivateContractResponse) Marshal

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

func (*MsgDeactivateContractResponse) MarshalTo

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

func (*MsgDeactivateContractResponse) MarshalToSizedBuffer

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

func (*MsgDeactivateContractResponse) ProtoMessage

func (*MsgDeactivateContractResponse) ProtoMessage()

func (*MsgDeactivateContractResponse) Reset

func (m *MsgDeactivateContractResponse) Reset()

func (*MsgDeactivateContractResponse) Size

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

func (*MsgDeactivateContractResponse) String

func (*MsgDeactivateContractResponse) Unmarshal

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

func (*MsgDeactivateContractResponse) XXX_DiscardUnknown

func (m *MsgDeactivateContractResponse) XXX_DiscardUnknown()

func (*MsgDeactivateContractResponse) XXX_Marshal

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

func (*MsgDeactivateContractResponse) XXX_Merge

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

func (*MsgDeactivateContractResponse) XXX_Size

func (m *MsgDeactivateContractResponse) XXX_Size() int

func (*MsgDeactivateContractResponse) XXX_Unmarshal

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

type MsgExecuteContractCompat

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

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

func (*MsgExecuteContractCompat) GetContract

func (m *MsgExecuteContractCompat) GetContract() string

func (*MsgExecuteContractCompat) GetFunds

func (m *MsgExecuteContractCompat) GetFunds() string

func (*MsgExecuteContractCompat) GetMsg

func (m *MsgExecuteContractCompat) GetMsg() string

func (*MsgExecuteContractCompat) GetSender

func (m *MsgExecuteContractCompat) GetSender() string

func (MsgExecuteContractCompat) GetSignBytes

func (msg MsgExecuteContractCompat) GetSignBytes() []byte

func (MsgExecuteContractCompat) GetSigners

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

func (*MsgExecuteContractCompat) Marshal

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

func (*MsgExecuteContractCompat) MarshalTo

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

func (*MsgExecuteContractCompat) MarshalToSizedBuffer

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

func (*MsgExecuteContractCompat) ProtoMessage

func (*MsgExecuteContractCompat) ProtoMessage()

func (*MsgExecuteContractCompat) Reset

func (m *MsgExecuteContractCompat) Reset()

func (MsgExecuteContractCompat) Route

func (msg MsgExecuteContractCompat) Route() string

func (*MsgExecuteContractCompat) Size

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

func (*MsgExecuteContractCompat) String

func (m *MsgExecuteContractCompat) String() string

func (MsgExecuteContractCompat) Type

func (msg MsgExecuteContractCompat) Type() string

func (*MsgExecuteContractCompat) Unmarshal

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

func (MsgExecuteContractCompat) ValidateBasic

func (msg MsgExecuteContractCompat) ValidateBasic() error

func (*MsgExecuteContractCompat) XXX_DiscardUnknown

func (m *MsgExecuteContractCompat) XXX_DiscardUnknown()

func (*MsgExecuteContractCompat) XXX_Marshal

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

func (*MsgExecuteContractCompat) XXX_Merge

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

func (*MsgExecuteContractCompat) XXX_Size

func (m *MsgExecuteContractCompat) XXX_Size() int

func (*MsgExecuteContractCompat) XXX_Unmarshal

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

type MsgExecuteContractCompatResponse

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

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

func (*MsgExecuteContractCompatResponse) GetData

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

func (*MsgExecuteContractCompatResponse) Marshal

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

func (*MsgExecuteContractCompatResponse) MarshalTo

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

func (*MsgExecuteContractCompatResponse) MarshalToSizedBuffer

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

func (*MsgExecuteContractCompatResponse) ProtoMessage

func (*MsgExecuteContractCompatResponse) ProtoMessage()

func (*MsgExecuteContractCompatResponse) Reset

func (*MsgExecuteContractCompatResponse) Size

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

func (*MsgExecuteContractCompatResponse) String

func (*MsgExecuteContractCompatResponse) Unmarshal

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

func (*MsgExecuteContractCompatResponse) XXX_DiscardUnknown

func (m *MsgExecuteContractCompatResponse) XXX_DiscardUnknown()

func (*MsgExecuteContractCompatResponse) XXX_Marshal

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

func (*MsgExecuteContractCompatResponse) XXX_Merge

func (*MsgExecuteContractCompatResponse) XXX_Size

func (m *MsgExecuteContractCompatResponse) XXX_Size() int

func (*MsgExecuteContractCompatResponse) XXX_Unmarshal

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

type MsgRegisterContract

type MsgRegisterContract struct {
	Sender                      string                      `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ContractRegistrationRequest ContractRegistrationRequest `` /* 134-byte string literal not displayed */
}

func (*MsgRegisterContract) Descriptor

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

func (*MsgRegisterContract) GetContractRegistrationRequest

func (m *MsgRegisterContract) GetContractRegistrationRequest() ContractRegistrationRequest

func (*MsgRegisterContract) GetSender

func (m *MsgRegisterContract) GetSender() string

func (*MsgRegisterContract) GetSignBytes

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

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

func (MsgRegisterContract) GetSigners

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

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

func (*MsgRegisterContract) Marshal

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

func (*MsgRegisterContract) MarshalTo

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

func (*MsgRegisterContract) MarshalToSizedBuffer

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

func (*MsgRegisterContract) ProtoMessage

func (*MsgRegisterContract) ProtoMessage()

func (*MsgRegisterContract) Reset

func (m *MsgRegisterContract) Reset()

func (MsgRegisterContract) Route

func (msg MsgRegisterContract) Route() string

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

func (*MsgRegisterContract) Size

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

func (*MsgRegisterContract) String

func (m *MsgRegisterContract) String() string

func (MsgRegisterContract) Type

func (msg MsgRegisterContract) Type() string

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

func (*MsgRegisterContract) Unmarshal

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

func (MsgRegisterContract) ValidateBasic

func (msg MsgRegisterContract) ValidateBasic() error

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

func (*MsgRegisterContract) XXX_DiscardUnknown

func (m *MsgRegisterContract) XXX_DiscardUnknown()

func (*MsgRegisterContract) XXX_Marshal

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

func (*MsgRegisterContract) XXX_Merge

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

func (*MsgRegisterContract) XXX_Size

func (m *MsgRegisterContract) XXX_Size() int

func (*MsgRegisterContract) XXX_Unmarshal

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

type MsgRegisterContractResponse

type MsgRegisterContractResponse struct {
}

func (*MsgRegisterContractResponse) Descriptor

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

func (*MsgRegisterContractResponse) Marshal

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

func (*MsgRegisterContractResponse) MarshalTo

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

func (*MsgRegisterContractResponse) MarshalToSizedBuffer

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

func (*MsgRegisterContractResponse) ProtoMessage

func (*MsgRegisterContractResponse) ProtoMessage()

func (*MsgRegisterContractResponse) Reset

func (m *MsgRegisterContractResponse) Reset()

func (*MsgRegisterContractResponse) Size

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

func (*MsgRegisterContractResponse) String

func (m *MsgRegisterContractResponse) String() string

func (*MsgRegisterContractResponse) Unmarshal

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

func (*MsgRegisterContractResponse) XXX_DiscardUnknown

func (m *MsgRegisterContractResponse) XXX_DiscardUnknown()

func (*MsgRegisterContractResponse) XXX_Marshal

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

func (*MsgRegisterContractResponse) XXX_Merge

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

func (*MsgRegisterContractResponse) XXX_Size

func (m *MsgRegisterContractResponse) XXX_Size() int

func (*MsgRegisterContractResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgUpdateContract

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

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

func (*MsgUpdateContract) GetAdminAddress

func (m *MsgUpdateContract) GetAdminAddress() string

func (*MsgUpdateContract) GetContractAddress

func (m *MsgUpdateContract) GetContractAddress() string

func (*MsgUpdateContract) GetGasLimit

func (m *MsgUpdateContract) GetGasLimit() uint64

func (*MsgUpdateContract) GetGasPrice

func (m *MsgUpdateContract) GetGasPrice() uint64

func (*MsgUpdateContract) GetSender

func (m *MsgUpdateContract) GetSender() string

func (*MsgUpdateContract) GetSignBytes

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

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

func (MsgUpdateContract) GetSigners

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

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

func (*MsgUpdateContract) Marshal

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

func (*MsgUpdateContract) MarshalTo

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

func (*MsgUpdateContract) MarshalToSizedBuffer

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

func (*MsgUpdateContract) ProtoMessage

func (*MsgUpdateContract) ProtoMessage()

func (*MsgUpdateContract) Reset

func (m *MsgUpdateContract) Reset()

func (MsgUpdateContract) Route

func (msg MsgUpdateContract) Route() string

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

func (*MsgUpdateContract) Size

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

func (*MsgUpdateContract) String

func (m *MsgUpdateContract) String() string

func (MsgUpdateContract) Type

func (msg MsgUpdateContract) Type() string

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

func (*MsgUpdateContract) Unmarshal

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

func (MsgUpdateContract) ValidateBasic

func (msg MsgUpdateContract) ValidateBasic() error

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

func (*MsgUpdateContract) XXX_DiscardUnknown

func (m *MsgUpdateContract) XXX_DiscardUnknown()

func (*MsgUpdateContract) XXX_Marshal

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

func (*MsgUpdateContract) XXX_Merge

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

func (*MsgUpdateContract) XXX_Size

func (m *MsgUpdateContract) XXX_Size() int

func (*MsgUpdateContract) XXX_Unmarshal

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

type MsgUpdateContractResponse

type MsgUpdateContractResponse struct {
}

func (*MsgUpdateContractResponse) Descriptor

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

func (*MsgUpdateContractResponse) Marshal

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

func (*MsgUpdateContractResponse) MarshalTo

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

func (*MsgUpdateContractResponse) MarshalToSizedBuffer

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

func (*MsgUpdateContractResponse) ProtoMessage

func (*MsgUpdateContractResponse) ProtoMessage()

func (*MsgUpdateContractResponse) Reset

func (m *MsgUpdateContractResponse) Reset()

func (*MsgUpdateContractResponse) Size

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

func (*MsgUpdateContractResponse) String

func (m *MsgUpdateContractResponse) String() string

func (*MsgUpdateContractResponse) Unmarshal

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

func (*MsgUpdateContractResponse) XXX_DiscardUnknown

func (m *MsgUpdateContractResponse) XXX_DiscardUnknown()

func (*MsgUpdateContractResponse) XXX_Marshal

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

func (*MsgUpdateContractResponse) XXX_Merge

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

func (*MsgUpdateContractResponse) XXX_Size

func (m *MsgUpdateContractResponse) XXX_Size() int

func (*MsgUpdateContractResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the wasmx parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes

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

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

func (MsgUpdateParams) GetSigners

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

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

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route

func (msg MsgUpdateParams) Route() string

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

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type

func (msg MsgUpdateParams) Type() string

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

func (*MsgUpdateParams) Unmarshal

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

func (MsgUpdateParams) ValidateBasic

func (msg MsgUpdateParams) ValidateBasic() error

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

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

func (m *MsgUpdateParamsResponse) 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

func (m *Params) GetMaxBeginBlockTotalGas() uint64

func (*Params) GetMaxContractGasLimit

func (m *Params) GetMaxContractGasLimit() uint64

func (*Params) GetMinGasPrice

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 contract registration info
	ContractRegistrationInfo(ctx context.Context, in *QueryContractRegistrationInfoRequest, opts ...grpc.CallOption) (*QueryContractRegistrationInfoResponse, 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

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

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

func (*QueryContractRegistrationInfoRequest) GetContractAddress

func (m *QueryContractRegistrationInfoRequest) GetContractAddress() string

func (*QueryContractRegistrationInfoRequest) Marshal

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

func (*QueryContractRegistrationInfoRequest) MarshalTo

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

func (*QueryContractRegistrationInfoRequest) MarshalToSizedBuffer

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

func (*QueryContractRegistrationInfoRequest) ProtoMessage

func (*QueryContractRegistrationInfoRequest) ProtoMessage()

func (*QueryContractRegistrationInfoRequest) Reset

func (*QueryContractRegistrationInfoRequest) Size

func (*QueryContractRegistrationInfoRequest) String

func (*QueryContractRegistrationInfoRequest) Unmarshal

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

func (*QueryContractRegistrationInfoRequest) XXX_DiscardUnknown

func (m *QueryContractRegistrationInfoRequest) XXX_DiscardUnknown()

func (*QueryContractRegistrationInfoRequest) XXX_Marshal

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

func (*QueryContractRegistrationInfoRequest) XXX_Merge

func (*QueryContractRegistrationInfoRequest) XXX_Size

func (*QueryContractRegistrationInfoRequest) XXX_Unmarshal

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

type QueryContractRegistrationInfoResponse

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

func (*QueryContractRegistrationInfoResponse) Descriptor

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

func (*QueryContractRegistrationInfoResponse) GetContract

func (*QueryContractRegistrationInfoResponse) Marshal

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

func (*QueryContractRegistrationInfoResponse) MarshalTo

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

func (*QueryContractRegistrationInfoResponse) MarshalToSizedBuffer

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

func (*QueryContractRegistrationInfoResponse) ProtoMessage

func (*QueryContractRegistrationInfoResponse) ProtoMessage()

func (*QueryContractRegistrationInfoResponse) Reset

func (*QueryContractRegistrationInfoResponse) Size

func (*QueryContractRegistrationInfoResponse) String

func (*QueryContractRegistrationInfoResponse) Unmarshal

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

func (*QueryContractRegistrationInfoResponse) XXX_DiscardUnknown

func (m *QueryContractRegistrationInfoResponse) XXX_DiscardUnknown()

func (*QueryContractRegistrationInfoResponse) XXX_Marshal

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

func (*QueryContractRegistrationInfoResponse) XXX_Merge

func (*QueryContractRegistrationInfoResponse) XXX_Size

func (*QueryContractRegistrationInfoResponse) XXX_Unmarshal

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 contract registration info
	ContractRegistrationInfo(context.Context, *QueryContractRegistrationInfoRequest) (*QueryContractRegistrationInfoResponse, 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

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"`
	// Optional: address of the contract granting fee
	// Must be set if fund_mode is GrantOnly
	GranterAddress string `protobuf:"bytes,6,opt,name=granter_address,json=granterAddress,proto3" json:"granter_address,omitempty"`
	// funding mode
	FundMode FundingMode `protobuf:"varint,7,opt,name=fund_mode,json=fundMode,proto3,enum=injective.wasmx.v1.FundingMode" json:"fund_mode,omitempty"`
}

func (*RegisteredContract) Descriptor

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

func (*RegisteredContract) Equal

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

func (*RegisteredContract) GetAdminAddress

func (m *RegisteredContract) GetAdminAddress() string

func (*RegisteredContract) GetCodeId

func (m *RegisteredContract) GetCodeId() uint64

func (*RegisteredContract) GetFundMode

func (m *RegisteredContract) GetFundMode() FundingMode

func (*RegisteredContract) GetGasLimit

func (m *RegisteredContract) GetGasLimit() uint64

func (*RegisteredContract) GetGasPrice

func (m *RegisteredContract) GetGasPrice() uint64

func (*RegisteredContract) GetGranterAddress

func (m *RegisteredContract) GetGranterAddress() string

func (*RegisteredContract) GetIsExecutable

func (m *RegisteredContract) GetIsExecutable() bool

func (*RegisteredContract) Marshal

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

func (*RegisteredContract) MarshalTo

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

func (*RegisteredContract) MarshalToSizedBuffer

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

func (*RegisteredContract) ProtoMessage

func (*RegisteredContract) ProtoMessage()

func (*RegisteredContract) Reset

func (m *RegisteredContract) Reset()

func (*RegisteredContract) Size

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

func (*RegisteredContract) String

func (m *RegisteredContract) String() string

func (*RegisteredContract) Unmarshal

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

func (*RegisteredContract) XXX_DiscardUnknown

func (m *RegisteredContract) XXX_DiscardUnknown()

func (*RegisteredContract) XXX_Marshal

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

func (*RegisteredContract) XXX_Merge

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

func (*RegisteredContract) XXX_Size

func (m *RegisteredContract) XXX_Size() int

func (*RegisteredContract) XXX_Unmarshal

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

type RegisteredContractWithAddress

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

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

func (*RegisteredContractWithAddress) GetAddress

func (m *RegisteredContractWithAddress) GetAddress() string

func (*RegisteredContractWithAddress) GetRegisteredContract

func (m *RegisteredContractWithAddress) GetRegisteredContract() *RegisteredContract

func (*RegisteredContractWithAddress) Marshal

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

func (*RegisteredContractWithAddress) MarshalTo

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

func (*RegisteredContractWithAddress) MarshalToSizedBuffer

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

func (*RegisteredContractWithAddress) ProtoMessage

func (*RegisteredContractWithAddress) ProtoMessage()

func (*RegisteredContractWithAddress) Reset

func (m *RegisteredContractWithAddress) Reset()

func (*RegisteredContractWithAddress) Size

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

func (*RegisteredContractWithAddress) String

func (*RegisteredContractWithAddress) Unmarshal

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

func (*RegisteredContractWithAddress) XXX_DiscardUnknown

func (m *RegisteredContractWithAddress) XXX_DiscardUnknown()

func (*RegisteredContractWithAddress) XXX_Marshal

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

func (*RegisteredContractWithAddress) XXX_Merge

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

func (*RegisteredContractWithAddress) XXX_Size

func (m *RegisteredContractWithAddress) XXX_Size() int

func (*RegisteredContractWithAddress) XXX_Unmarshal

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

type RegistryDeactivateCallbackMsg

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

func NewRegistryDeactivateCallbackMsg

func NewRegistryDeactivateCallbackMsg() RegistryDeactivateCallbackMsg

type RegistryDeregisterCallbackMsg

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

func NewRegistryDeregisterCallbackMsg

func NewRegistryDeregisterCallbackMsg() RegistryDeregisterCallbackMsg

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ActivateRegistryContract

func (*UnimplementedMsgServer) DeactivateRegistryContract

func (*UnimplementedMsgServer) ExecuteContractCompat

func (*UnimplementedMsgServer) RegisterContract

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpdateRegistryContractParams

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