Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetInactiveContractKey(contractAddress sdk.AccAddress) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data GenesisState) error
- type ActivateContractProposal
- func (*ActivateContractProposal) Descriptor() ([]byte, []int)
- func (this *ActivateContractProposal) Equal(that interface{}) bool
- func (p ActivateContractProposal) GetDescription() string
- func (p ActivateContractProposal) GetTitle() string
- func (m *ActivateContractProposal) Marshal() (dAtA []byte, err error)
- func (m *ActivateContractProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ActivateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p ActivateContractProposal) ProposalRoute() string
- func (p ActivateContractProposal) ProposalType() string
- func (*ActivateContractProposal) ProtoMessage()
- func (m *ActivateContractProposal) Reset()
- func (m *ActivateContractProposal) Size() (n int)
- func (p ActivateContractProposal) String() string
- func (m *ActivateContractProposal) Unmarshal(dAtA []byte) error
- func (p ActivateContractProposal) ValidateBasic() error
- func (m *ActivateContractProposal) XXX_DiscardUnknown()
- func (m *ActivateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActivateContractProposal) XXX_Merge(src proto.Message)
- func (m *ActivateContractProposal) XXX_Size() int
- func (m *ActivateContractProposal) XXX_Unmarshal(b []byte) error
- type ContractOpsKeeper
- type DeactivateContractProposal
- func (*DeactivateContractProposal) Descriptor() ([]byte, []int)
- func (this *DeactivateContractProposal) Equal(that interface{}) bool
- func (p DeactivateContractProposal) GetDescription() string
- func (p DeactivateContractProposal) GetTitle() string
- func (m *DeactivateContractProposal) Marshal() (dAtA []byte, err error)
- func (m *DeactivateContractProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *DeactivateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p DeactivateContractProposal) ProposalRoute() string
- func (p DeactivateContractProposal) ProposalType() string
- func (*DeactivateContractProposal) ProtoMessage()
- func (m *DeactivateContractProposal) Reset()
- func (m *DeactivateContractProposal) Size() (n int)
- func (p DeactivateContractProposal) String() string
- func (m *DeactivateContractProposal) Unmarshal(dAtA []byte) error
- func (p DeactivateContractProposal) ValidateBasic() error
- func (m *DeactivateContractProposal) XXX_DiscardUnknown()
- func (m *DeactivateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeactivateContractProposal) XXX_Merge(src proto.Message)
- func (m *DeactivateContractProposal) XXX_Size() int
- func (m *DeactivateContractProposal) XXX_Unmarshal(b []byte) error
- type EventActivateContractProposal
- func (*EventActivateContractProposal) Descriptor() ([]byte, []int)
- func (m *EventActivateContractProposal) GetContract() string
- func (m *EventActivateContractProposal) Marshal() (dAtA []byte, err error)
- func (m *EventActivateContractProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *EventActivateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventActivateContractProposal) ProtoMessage()
- func (m *EventActivateContractProposal) Reset()
- func (m *EventActivateContractProposal) Size() (n int)
- func (m *EventActivateContractProposal) String() string
- func (m *EventActivateContractProposal) Unmarshal(dAtA []byte) error
- func (m *EventActivateContractProposal) XXX_DiscardUnknown()
- func (m *EventActivateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventActivateContractProposal) XXX_Merge(src proto.Message)
- func (m *EventActivateContractProposal) XXX_Size() int
- func (m *EventActivateContractProposal) XXX_Unmarshal(b []byte) error
- type EventDeactivateContractProposal
- func (*EventDeactivateContractProposal) Descriptor() ([]byte, []int)
- func (m *EventDeactivateContractProposal) GetContract() string
- func (m *EventDeactivateContractProposal) Marshal() (dAtA []byte, err error)
- func (m *EventDeactivateContractProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDeactivateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDeactivateContractProposal) ProtoMessage()
- func (m *EventDeactivateContractProposal) Reset()
- func (m *EventDeactivateContractProposal) Size() (n int)
- func (m *EventDeactivateContractProposal) String() string
- func (m *EventDeactivateContractProposal) Unmarshal(dAtA []byte) error
- func (m *EventDeactivateContractProposal) XXX_DiscardUnknown()
- func (m *EventDeactivateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDeactivateContractProposal) XXX_Merge(src proto.Message)
- func (m *EventDeactivateContractProposal) XXX_Size() int
- func (m *EventDeactivateContractProposal) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCodes() []types.Code
- func (m *GenesisState) GetContracts() []types.Contract
- func (m *GenesisState) GetGenMsgs() []types.GenesisState_GenMsgs
- func (m *GenesisState) GetInactiveContractAddresses() []string
- func (m *GenesisState) GetParams() types.Params
- func (m *GenesisState) GetSequences() []types.Sequence
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (gs GenesisState) RawWasmState() wasmtypes.GenesisState
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) ValidateBasic() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgStoreCodeAndInstantiateContract
- func (*MsgStoreCodeAndInstantiateContract) Descriptor() ([]byte, []int)
- func (msg MsgStoreCodeAndInstantiateContract) GetSignBytes() []byte
- func (msg MsgStoreCodeAndInstantiateContract) GetSigners() []sdk.AccAddress
- func (m *MsgStoreCodeAndInstantiateContract) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreCodeAndInstantiateContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreCodeAndInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreCodeAndInstantiateContract) ProtoMessage()
- func (m *MsgStoreCodeAndInstantiateContract) Reset()
- func (msg MsgStoreCodeAndInstantiateContract) Route() string
- func (m *MsgStoreCodeAndInstantiateContract) Size() (n int)
- func (m *MsgStoreCodeAndInstantiateContract) String() string
- func (msg MsgStoreCodeAndInstantiateContract) Type() string
- func (m *MsgStoreCodeAndInstantiateContract) Unmarshal(dAtA []byte) error
- func (msg MsgStoreCodeAndInstantiateContract) ValidateBasic() error
- func (m *MsgStoreCodeAndInstantiateContract) XXX_DiscardUnknown()
- func (m *MsgStoreCodeAndInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreCodeAndInstantiateContract) XXX_Merge(src proto.Message)
- func (m *MsgStoreCodeAndInstantiateContract) XXX_Size() int
- func (m *MsgStoreCodeAndInstantiateContract) XXX_Unmarshal(b []byte) error
- type MsgStoreCodeAndInstantiateContractResponse
- func (*MsgStoreCodeAndInstantiateContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgStoreCodeAndInstantiateContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreCodeAndInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreCodeAndInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreCodeAndInstantiateContractResponse) ProtoMessage()
- func (m *MsgStoreCodeAndInstantiateContractResponse) Reset()
- func (m *MsgStoreCodeAndInstantiateContractResponse) Size() (n int)
- func (m *MsgStoreCodeAndInstantiateContractResponse) String() string
- func (m *MsgStoreCodeAndInstantiateContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_DiscardUnknown()
- func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_Size() int
- func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryInactiveContractRequest
- func (*QueryInactiveContractRequest) Descriptor() ([]byte, []int)
- func (m *QueryInactiveContractRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInactiveContractRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInactiveContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInactiveContractRequest) ProtoMessage()
- func (m *QueryInactiveContractRequest) Reset()
- func (m *QueryInactiveContractRequest) Size() (n int)
- func (m *QueryInactiveContractRequest) String() string
- func (m *QueryInactiveContractRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInactiveContractRequest) XXX_DiscardUnknown()
- func (m *QueryInactiveContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInactiveContractRequest) XXX_Merge(src proto.Message)
- func (m *QueryInactiveContractRequest) XXX_Size() int
- func (m *QueryInactiveContractRequest) XXX_Unmarshal(b []byte) error
- type QueryInactiveContractResponse
- func (*QueryInactiveContractResponse) Descriptor() ([]byte, []int)
- func (m *QueryInactiveContractResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInactiveContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInactiveContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInactiveContractResponse) ProtoMessage()
- func (m *QueryInactiveContractResponse) Reset()
- func (m *QueryInactiveContractResponse) Size() (n int)
- func (m *QueryInactiveContractResponse) String() string
- func (m *QueryInactiveContractResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInactiveContractResponse) XXX_DiscardUnknown()
- func (m *QueryInactiveContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInactiveContractResponse) XXX_Merge(src proto.Message)
- func (m *QueryInactiveContractResponse) XXX_Size() int
- func (m *QueryInactiveContractResponse) XXX_Unmarshal(b []byte) error
- type QueryInactiveContractsRequest
- func (*QueryInactiveContractsRequest) Descriptor() ([]byte, []int)
- func (m *QueryInactiveContractsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInactiveContractsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInactiveContractsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInactiveContractsRequest) ProtoMessage()
- func (m *QueryInactiveContractsRequest) Reset()
- func (m *QueryInactiveContractsRequest) Size() (n int)
- func (m *QueryInactiveContractsRequest) String() string
- func (m *QueryInactiveContractsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInactiveContractsRequest) XXX_DiscardUnknown()
- func (m *QueryInactiveContractsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInactiveContractsRequest) XXX_Merge(src proto.Message)
- func (m *QueryInactiveContractsRequest) XXX_Size() int
- func (m *QueryInactiveContractsRequest) XXX_Unmarshal(b []byte) error
- type QueryInactiveContractsResponse
- func (*QueryInactiveContractsResponse) Descriptor() ([]byte, []int)
- func (m *QueryInactiveContractsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInactiveContractsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInactiveContractsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInactiveContractsResponse) ProtoMessage()
- func (m *QueryInactiveContractsResponse) Reset()
- func (m *QueryInactiveContractsResponse) Size() (n int)
- func (m *QueryInactiveContractsResponse) String() string
- func (m *QueryInactiveContractsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInactiveContractsResponse) XXX_DiscardUnknown()
- func (m *QueryInactiveContractsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInactiveContractsResponse) XXX_Merge(src proto.Message)
- func (m *QueryInactiveContractsResponse) XXX_Size() int
- func (m *QueryInactiveContractsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type ViewKeeper
Constants ¶
const ( // ModuleName is the name of this module. ModuleName = wasmtypes.ModuleName // RouterKey is used to route governance proposals RouterKey = wasmtypes.RouterKey // StoreKey is the prefix under which we store this module's data StoreKey = wasmtypes.StoreKey )
const ( ProposalTypeDeactivateContract wasmtypes.ProposalType = "DeactivateContract" ProposalTypeActivateContract wasmtypes.ProposalType = "ActivateContract" )
Variables ¶
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var EnableAllProposals = append([]wasmtypes.ProposalType{ ProposalTypeDeactivateContract, ProposalTypeActivateContract, }, wasmtypes.EnableAllProposals...)
var ( // ErrInactiveContract error if the contract set inactive ErrInactiveContract = sdkErrors.Register(wasmtypes.DefaultCodespace, 101, "inactive contract") )
Codes for wasm contract errors
var InactiveContractPrefix = []byte{0x90}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetInactiveContractKey ¶
func GetInactiveContractKey(contractAddress sdk.AccAddress) []byte
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the account types and interface
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type ActivateContractProposal ¶
type ActivateContractProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // Contract is the smart contract address to activate Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"` }
ActivateContractProposal gov proposal content type deletes a contract from inactive list.
func (*ActivateContractProposal) Descriptor ¶
func (*ActivateContractProposal) Descriptor() ([]byte, []int)
func (*ActivateContractProposal) Equal ¶
func (this *ActivateContractProposal) Equal(that interface{}) bool
func (ActivateContractProposal) GetDescription ¶
func (p ActivateContractProposal) GetDescription() string
func (ActivateContractProposal) GetTitle ¶
func (p ActivateContractProposal) GetTitle() string
func (*ActivateContractProposal) Marshal ¶
func (m *ActivateContractProposal) Marshal() (dAtA []byte, err error)
func (*ActivateContractProposal) MarshalTo ¶
func (m *ActivateContractProposal) MarshalTo(dAtA []byte) (int, error)
func (*ActivateContractProposal) MarshalToSizedBuffer ¶
func (m *ActivateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ActivateContractProposal) ProposalRoute ¶
func (p ActivateContractProposal) ProposalRoute() string
func (ActivateContractProposal) ProposalType ¶
func (p ActivateContractProposal) ProposalType() string
func (*ActivateContractProposal) ProtoMessage ¶
func (*ActivateContractProposal) ProtoMessage()
func (*ActivateContractProposal) Reset ¶
func (m *ActivateContractProposal) Reset()
func (*ActivateContractProposal) Size ¶
func (m *ActivateContractProposal) Size() (n int)
func (ActivateContractProposal) String ¶
func (p ActivateContractProposal) String() string
func (*ActivateContractProposal) Unmarshal ¶
func (m *ActivateContractProposal) Unmarshal(dAtA []byte) error
func (ActivateContractProposal) ValidateBasic ¶
func (p ActivateContractProposal) ValidateBasic() error
func (*ActivateContractProposal) XXX_DiscardUnknown ¶
func (m *ActivateContractProposal) XXX_DiscardUnknown()
func (*ActivateContractProposal) XXX_Marshal ¶
func (m *ActivateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActivateContractProposal) XXX_Merge ¶
func (m *ActivateContractProposal) XXX_Merge(src proto.Message)
func (*ActivateContractProposal) XXX_Size ¶
func (m *ActivateContractProposal) XXX_Size() int
func (*ActivateContractProposal) XXX_Unmarshal ¶
func (m *ActivateContractProposal) XXX_Unmarshal(b []byte) error
type ContractOpsKeeper ¶
type ContractOpsKeeper interface { wasmtypes.ContractOpsKeeper // DeactivateContract add the contract address to inactive contract list. DeactivateContract(ctx sdk.Context, contractAddress sdk.AccAddress) error // ActivateContract remove the contract address from inactive contract list. ActivateContract(ctx sdk.Context, contractAddress sdk.AccAddress) error }
type DeactivateContractProposal ¶
type DeactivateContractProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // Contract is the smart contract address to deactivate Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"` }
DeactivateContractProposal gov proposal content type adds a contract to inactive list.
func (*DeactivateContractProposal) Descriptor ¶
func (*DeactivateContractProposal) Descriptor() ([]byte, []int)
func (*DeactivateContractProposal) Equal ¶
func (this *DeactivateContractProposal) Equal(that interface{}) bool
func (DeactivateContractProposal) GetDescription ¶
func (p DeactivateContractProposal) GetDescription() string
func (DeactivateContractProposal) GetTitle ¶
func (p DeactivateContractProposal) GetTitle() string
func (*DeactivateContractProposal) Marshal ¶
func (m *DeactivateContractProposal) Marshal() (dAtA []byte, err error)
func (*DeactivateContractProposal) MarshalTo ¶
func (m *DeactivateContractProposal) MarshalTo(dAtA []byte) (int, error)
func (*DeactivateContractProposal) MarshalToSizedBuffer ¶
func (m *DeactivateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (DeactivateContractProposal) ProposalRoute ¶
func (p DeactivateContractProposal) ProposalRoute() string
func (DeactivateContractProposal) ProposalType ¶
func (p DeactivateContractProposal) ProposalType() string
func (*DeactivateContractProposal) ProtoMessage ¶
func (*DeactivateContractProposal) ProtoMessage()
func (*DeactivateContractProposal) Reset ¶
func (m *DeactivateContractProposal) Reset()
func (*DeactivateContractProposal) Size ¶
func (m *DeactivateContractProposal) Size() (n int)
func (DeactivateContractProposal) String ¶
func (p DeactivateContractProposal) String() string
func (*DeactivateContractProposal) Unmarshal ¶
func (m *DeactivateContractProposal) Unmarshal(dAtA []byte) error
func (DeactivateContractProposal) ValidateBasic ¶
func (p DeactivateContractProposal) ValidateBasic() error
func (*DeactivateContractProposal) XXX_DiscardUnknown ¶
func (m *DeactivateContractProposal) XXX_DiscardUnknown()
func (*DeactivateContractProposal) XXX_Marshal ¶
func (m *DeactivateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeactivateContractProposal) XXX_Merge ¶
func (m *DeactivateContractProposal) XXX_Merge(src proto.Message)
func (*DeactivateContractProposal) XXX_Size ¶
func (m *DeactivateContractProposal) XXX_Size() int
func (*DeactivateContractProposal) XXX_Unmarshal ¶
func (m *DeactivateContractProposal) XXX_Unmarshal(b []byte) error
type EventActivateContractProposal ¶
type EventActivateContractProposal struct { // contract is the smart contract's address Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` }
EventActivateContractProposal is the event that is emitted when the contract is activates.
func (*EventActivateContractProposal) Descriptor ¶
func (*EventActivateContractProposal) Descriptor() ([]byte, []int)
func (*EventActivateContractProposal) GetContract ¶
func (m *EventActivateContractProposal) GetContract() string
func (*EventActivateContractProposal) Marshal ¶
func (m *EventActivateContractProposal) Marshal() (dAtA []byte, err error)
func (*EventActivateContractProposal) MarshalTo ¶
func (m *EventActivateContractProposal) MarshalTo(dAtA []byte) (int, error)
func (*EventActivateContractProposal) MarshalToSizedBuffer ¶
func (m *EventActivateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventActivateContractProposal) ProtoMessage ¶
func (*EventActivateContractProposal) ProtoMessage()
func (*EventActivateContractProposal) Reset ¶
func (m *EventActivateContractProposal) Reset()
func (*EventActivateContractProposal) Size ¶
func (m *EventActivateContractProposal) Size() (n int)
func (*EventActivateContractProposal) String ¶
func (m *EventActivateContractProposal) String() string
func (*EventActivateContractProposal) Unmarshal ¶
func (m *EventActivateContractProposal) Unmarshal(dAtA []byte) error
func (*EventActivateContractProposal) XXX_DiscardUnknown ¶
func (m *EventActivateContractProposal) XXX_DiscardUnknown()
func (*EventActivateContractProposal) XXX_Marshal ¶
func (m *EventActivateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventActivateContractProposal) XXX_Merge ¶
func (m *EventActivateContractProposal) XXX_Merge(src proto.Message)
func (*EventActivateContractProposal) XXX_Size ¶
func (m *EventActivateContractProposal) XXX_Size() int
func (*EventActivateContractProposal) XXX_Unmarshal ¶
func (m *EventActivateContractProposal) XXX_Unmarshal(b []byte) error
type EventDeactivateContractProposal ¶
type EventDeactivateContractProposal struct { // contract is the smart contract's address Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` }
EventDeactivateContractProposal is the event that is emitted when the contract is deactivate.
func (*EventDeactivateContractProposal) Descriptor ¶
func (*EventDeactivateContractProposal) Descriptor() ([]byte, []int)
func (*EventDeactivateContractProposal) GetContract ¶
func (m *EventDeactivateContractProposal) GetContract() string
func (*EventDeactivateContractProposal) Marshal ¶
func (m *EventDeactivateContractProposal) Marshal() (dAtA []byte, err error)
func (*EventDeactivateContractProposal) MarshalTo ¶
func (m *EventDeactivateContractProposal) MarshalTo(dAtA []byte) (int, error)
func (*EventDeactivateContractProposal) MarshalToSizedBuffer ¶
func (m *EventDeactivateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDeactivateContractProposal) ProtoMessage ¶
func (*EventDeactivateContractProposal) ProtoMessage()
func (*EventDeactivateContractProposal) Reset ¶
func (m *EventDeactivateContractProposal) Reset()
func (*EventDeactivateContractProposal) Size ¶
func (m *EventDeactivateContractProposal) Size() (n int)
func (*EventDeactivateContractProposal) String ¶
func (m *EventDeactivateContractProposal) String() string
func (*EventDeactivateContractProposal) Unmarshal ¶
func (m *EventDeactivateContractProposal) Unmarshal(dAtA []byte) error
func (*EventDeactivateContractProposal) XXX_DiscardUnknown ¶
func (m *EventDeactivateContractProposal) XXX_DiscardUnknown()
func (*EventDeactivateContractProposal) XXX_Marshal ¶
func (m *EventDeactivateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDeactivateContractProposal) XXX_Merge ¶
func (m *EventDeactivateContractProposal) XXX_Merge(src proto.Message)
func (*EventDeactivateContractProposal) XXX_Size ¶
func (m *EventDeactivateContractProposal) XXX_Size() int
func (*EventDeactivateContractProposal) XXX_Unmarshal ¶
func (m *EventDeactivateContractProposal) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params types.Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Codes []types.Code `protobuf:"bytes,2,rep,name=codes,proto3" json:"codes,omitempty"` Contracts []types.Contract `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty"` Sequences []types.Sequence `protobuf:"bytes,4,rep,name=sequences,proto3" json:"sequences,omitempty"` GenMsgs []types.GenesisState_GenMsgs `protobuf:"bytes,5,rep,name=gen_msgs,json=genMsgs,proto3" json:"gen_msgs,omitempty"` // InactiveContractAddresses is a list of contract address that set inactive InactiveContractAddresses []string `` /* 136-byte string literal not displayed */ }
GenesisState - genesis state of x/wasm
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCodes ¶
func (m *GenesisState) GetCodes() []types.Code
func (*GenesisState) GetContracts ¶
func (m *GenesisState) GetContracts() []types.Contract
func (*GenesisState) GetGenMsgs ¶
func (m *GenesisState) GetGenMsgs() []types.GenesisState_GenMsgs
func (*GenesisState) GetInactiveContractAddresses ¶
func (m *GenesisState) GetInactiveContractAddresses() []string
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() types.Params
func (*GenesisState) GetSequences ¶
func (m *GenesisState) GetSequences() []types.Sequence
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (GenesisState) RawWasmState ¶
func (gs GenesisState) RawWasmState() wasmtypes.GenesisState
RawWasmState convert to wasm genesis state for vanilla import. Custom data models for privileged contracts are not included
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) ValidateBasic ¶
func (gs GenesisState) ValidateBasic() 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 MsgClient ¶
type MsgClient interface { // StoreCodeAndInstantiateContract upload code and instantiate a contract // using it StoreCodeAndInstantiateContract(ctx context.Context, in *MsgStoreCodeAndInstantiateContract, opts ...grpc.CallOption) (*MsgStoreCodeAndInstantiateContractResponse, 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 MsgServer ¶
type MsgServer interface { // StoreCodeAndInstantiateContract upload code and instantiate a contract // using it StoreCodeAndInstantiateContract(context.Context, *MsgStoreCodeAndInstantiateContract) (*MsgStoreCodeAndInstantiateContractResponse, error) }
MsgServer is the server API for Msg service.
type MsgStoreCodeAndInstantiateContract ¶
type MsgStoreCodeAndInstantiateContract struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // WASMByteCode can be raw or gzip compressed WASMByteCode []byte `protobuf:"bytes,2,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty"` InstantiatePermission *types.AccessConfig `protobuf:"bytes,5,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission,omitempty"` // Admin is an optional address that can execute migrations Admin string `protobuf:"bytes,6,opt,name=admin,proto3" json:"admin,omitempty"` // Label is optional metadata to be stored with a contract instance. Label string `protobuf:"bytes,7,opt,name=label,proto3" json:"label,omitempty"` // Msg json encoded message to be passed to the contract on instantiation Msg github_com_Finschia_wasmd_x_wasm_types.RawContractMessage `` /* 126-byte string literal not displayed */ // Funds coins that are transferred to the contract on instantiation Funds github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,9,rep,name=funds,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"funds"` }
MsgStoreCodeAndInstantiateContract submit Wasm code to the system and instantiate a contract using it.
func (*MsgStoreCodeAndInstantiateContract) Descriptor ¶
func (*MsgStoreCodeAndInstantiateContract) Descriptor() ([]byte, []int)
func (MsgStoreCodeAndInstantiateContract) GetSignBytes ¶
func (msg MsgStoreCodeAndInstantiateContract) GetSignBytes() []byte
func (MsgStoreCodeAndInstantiateContract) GetSigners ¶
func (msg MsgStoreCodeAndInstantiateContract) GetSigners() []sdk.AccAddress
func (*MsgStoreCodeAndInstantiateContract) Marshal ¶
func (m *MsgStoreCodeAndInstantiateContract) Marshal() (dAtA []byte, err error)
func (*MsgStoreCodeAndInstantiateContract) MarshalTo ¶
func (m *MsgStoreCodeAndInstantiateContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreCodeAndInstantiateContract) MarshalToSizedBuffer ¶
func (m *MsgStoreCodeAndInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreCodeAndInstantiateContract) ProtoMessage ¶
func (*MsgStoreCodeAndInstantiateContract) ProtoMessage()
func (*MsgStoreCodeAndInstantiateContract) Reset ¶
func (m *MsgStoreCodeAndInstantiateContract) Reset()
func (MsgStoreCodeAndInstantiateContract) Route ¶
func (msg MsgStoreCodeAndInstantiateContract) Route() string
func (*MsgStoreCodeAndInstantiateContract) Size ¶
func (m *MsgStoreCodeAndInstantiateContract) Size() (n int)
func (*MsgStoreCodeAndInstantiateContract) String ¶
func (m *MsgStoreCodeAndInstantiateContract) String() string
func (MsgStoreCodeAndInstantiateContract) Type ¶
func (msg MsgStoreCodeAndInstantiateContract) Type() string
func (*MsgStoreCodeAndInstantiateContract) Unmarshal ¶
func (m *MsgStoreCodeAndInstantiateContract) Unmarshal(dAtA []byte) error
func (MsgStoreCodeAndInstantiateContract) ValidateBasic ¶
func (msg MsgStoreCodeAndInstantiateContract) ValidateBasic() error
func (*MsgStoreCodeAndInstantiateContract) XXX_DiscardUnknown ¶
func (m *MsgStoreCodeAndInstantiateContract) XXX_DiscardUnknown()
func (*MsgStoreCodeAndInstantiateContract) XXX_Marshal ¶
func (m *MsgStoreCodeAndInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreCodeAndInstantiateContract) XXX_Merge ¶
func (m *MsgStoreCodeAndInstantiateContract) XXX_Merge(src proto.Message)
func (*MsgStoreCodeAndInstantiateContract) XXX_Size ¶
func (m *MsgStoreCodeAndInstantiateContract) XXX_Size() int
func (*MsgStoreCodeAndInstantiateContract) XXX_Unmarshal ¶
func (m *MsgStoreCodeAndInstantiateContract) XXX_Unmarshal(b []byte) error
type MsgStoreCodeAndInstantiateContractResponse ¶
type MsgStoreCodeAndInstantiateContractResponse struct { // CodeID is the reference to the stored WASM code CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Address is the bech32 address of the new contract instance Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // Data contains base64-encoded bytes to returned from the contract Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
MsgStoreCodeAndInstantiateContractResponse returns store and instantiate result data.
func (*MsgStoreCodeAndInstantiateContractResponse) Descriptor ¶
func (*MsgStoreCodeAndInstantiateContractResponse) Descriptor() ([]byte, []int)
func (*MsgStoreCodeAndInstantiateContractResponse) Marshal ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgStoreCodeAndInstantiateContractResponse) MarshalTo ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreCodeAndInstantiateContractResponse) MarshalToSizedBuffer ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreCodeAndInstantiateContractResponse) ProtoMessage ¶
func (*MsgStoreCodeAndInstantiateContractResponse) ProtoMessage()
func (*MsgStoreCodeAndInstantiateContractResponse) Reset ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) Reset()
func (*MsgStoreCodeAndInstantiateContractResponse) Size ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) Size() (n int)
func (*MsgStoreCodeAndInstantiateContractResponse) String ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) String() string
func (*MsgStoreCodeAndInstantiateContractResponse) Unmarshal ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) Unmarshal(dAtA []byte) error
func (*MsgStoreCodeAndInstantiateContractResponse) XXX_DiscardUnknown ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_DiscardUnknown()
func (*MsgStoreCodeAndInstantiateContractResponse) XXX_Marshal ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreCodeAndInstantiateContractResponse) XXX_Merge ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_Merge(src proto.Message)
func (*MsgStoreCodeAndInstantiateContractResponse) XXX_Size ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_Size() int
func (*MsgStoreCodeAndInstantiateContractResponse) XXX_Unmarshal ¶
func (m *MsgStoreCodeAndInstantiateContractResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // InactiveContracts queries all inactive contracts InactiveContracts(ctx context.Context, in *QueryInactiveContractsRequest, opts ...grpc.CallOption) (*QueryInactiveContractsResponse, error) // InactiveContract check it the contract is inactive state or not InactiveContract(ctx context.Context, in *QueryInactiveContractRequest, opts ...grpc.CallOption) (*QueryInactiveContractResponse, 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 QueryInactiveContractRequest ¶
type QueryInactiveContractRequest struct { // address is the address of the contract Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
QueryIsInactiveContractRequest is the request type for Query/IsInactiveContract RPC method.
func (*QueryInactiveContractRequest) Descriptor ¶
func (*QueryInactiveContractRequest) Descriptor() ([]byte, []int)
func (*QueryInactiveContractRequest) Marshal ¶
func (m *QueryInactiveContractRequest) Marshal() (dAtA []byte, err error)
func (*QueryInactiveContractRequest) MarshalTo ¶
func (m *QueryInactiveContractRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryInactiveContractRequest) MarshalToSizedBuffer ¶
func (m *QueryInactiveContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInactiveContractRequest) ProtoMessage ¶
func (*QueryInactiveContractRequest) ProtoMessage()
func (*QueryInactiveContractRequest) Reset ¶
func (m *QueryInactiveContractRequest) Reset()
func (*QueryInactiveContractRequest) Size ¶
func (m *QueryInactiveContractRequest) Size() (n int)
func (*QueryInactiveContractRequest) String ¶
func (m *QueryInactiveContractRequest) String() string
func (*QueryInactiveContractRequest) Unmarshal ¶
func (m *QueryInactiveContractRequest) Unmarshal(dAtA []byte) error
func (*QueryInactiveContractRequest) XXX_DiscardUnknown ¶
func (m *QueryInactiveContractRequest) XXX_DiscardUnknown()
func (*QueryInactiveContractRequest) XXX_Marshal ¶
func (m *QueryInactiveContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInactiveContractRequest) XXX_Merge ¶
func (m *QueryInactiveContractRequest) XXX_Merge(src proto.Message)
func (*QueryInactiveContractRequest) XXX_Size ¶
func (m *QueryInactiveContractRequest) XXX_Size() int
func (*QueryInactiveContractRequest) XXX_Unmarshal ¶
func (m *QueryInactiveContractRequest) XXX_Unmarshal(b []byte) error
type QueryInactiveContractResponse ¶
type QueryInactiveContractResponse struct { // inactivated is the result if the contract is inactive contract or not Inactivated bool `protobuf:"varint,1,opt,name=inactivated,proto3" json:"inactivated,omitempty"` }
QueryInactiveContractsResponse is the response type for the Query/IsInactiveContract RPC method.
func (*QueryInactiveContractResponse) Descriptor ¶
func (*QueryInactiveContractResponse) Descriptor() ([]byte, []int)
func (*QueryInactiveContractResponse) Marshal ¶
func (m *QueryInactiveContractResponse) Marshal() (dAtA []byte, err error)
func (*QueryInactiveContractResponse) MarshalTo ¶
func (m *QueryInactiveContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInactiveContractResponse) MarshalToSizedBuffer ¶
func (m *QueryInactiveContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInactiveContractResponse) ProtoMessage ¶
func (*QueryInactiveContractResponse) ProtoMessage()
func (*QueryInactiveContractResponse) Reset ¶
func (m *QueryInactiveContractResponse) Reset()
func (*QueryInactiveContractResponse) Size ¶
func (m *QueryInactiveContractResponse) Size() (n int)
func (*QueryInactiveContractResponse) String ¶
func (m *QueryInactiveContractResponse) String() string
func (*QueryInactiveContractResponse) Unmarshal ¶
func (m *QueryInactiveContractResponse) Unmarshal(dAtA []byte) error
func (*QueryInactiveContractResponse) XXX_DiscardUnknown ¶
func (m *QueryInactiveContractResponse) XXX_DiscardUnknown()
func (*QueryInactiveContractResponse) XXX_Marshal ¶
func (m *QueryInactiveContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInactiveContractResponse) XXX_Merge ¶
func (m *QueryInactiveContractResponse) XXX_Merge(src proto.Message)
func (*QueryInactiveContractResponse) XXX_Size ¶
func (m *QueryInactiveContractResponse) XXX_Size() int
func (*QueryInactiveContractResponse) XXX_Unmarshal ¶
func (m *QueryInactiveContractResponse) XXX_Unmarshal(b []byte) error
type QueryInactiveContractsRequest ¶
type QueryInactiveContractsRequest struct { // pagination defines an optional pagination for the request Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryInactiveContractsRequest is the request type for Query/InactiveContract RPC method.
func (*QueryInactiveContractsRequest) Descriptor ¶
func (*QueryInactiveContractsRequest) Descriptor() ([]byte, []int)
func (*QueryInactiveContractsRequest) Marshal ¶
func (m *QueryInactiveContractsRequest) Marshal() (dAtA []byte, err error)
func (*QueryInactiveContractsRequest) MarshalTo ¶
func (m *QueryInactiveContractsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryInactiveContractsRequest) MarshalToSizedBuffer ¶
func (m *QueryInactiveContractsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInactiveContractsRequest) ProtoMessage ¶
func (*QueryInactiveContractsRequest) ProtoMessage()
func (*QueryInactiveContractsRequest) Reset ¶
func (m *QueryInactiveContractsRequest) Reset()
func (*QueryInactiveContractsRequest) Size ¶
func (m *QueryInactiveContractsRequest) Size() (n int)
func (*QueryInactiveContractsRequest) String ¶
func (m *QueryInactiveContractsRequest) String() string
func (*QueryInactiveContractsRequest) Unmarshal ¶
func (m *QueryInactiveContractsRequest) Unmarshal(dAtA []byte) error
func (*QueryInactiveContractsRequest) XXX_DiscardUnknown ¶
func (m *QueryInactiveContractsRequest) XXX_DiscardUnknown()
func (*QueryInactiveContractsRequest) XXX_Marshal ¶
func (m *QueryInactiveContractsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInactiveContractsRequest) XXX_Merge ¶
func (m *QueryInactiveContractsRequest) XXX_Merge(src proto.Message)
func (*QueryInactiveContractsRequest) XXX_Size ¶
func (m *QueryInactiveContractsRequest) XXX_Size() int
func (*QueryInactiveContractsRequest) XXX_Unmarshal ¶
func (m *QueryInactiveContractsRequest) XXX_Unmarshal(b []byte) error
type QueryInactiveContractsResponse ¶
type QueryInactiveContractsResponse struct { // addresses is the inactive address list of strings, in ascending order of byte format Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // pagination defines the pagination in the response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryInactiveContractsResponse is the response type for the Query/InactiveContract RPC method.
func (*QueryInactiveContractsResponse) Descriptor ¶
func (*QueryInactiveContractsResponse) Descriptor() ([]byte, []int)
func (*QueryInactiveContractsResponse) Marshal ¶
func (m *QueryInactiveContractsResponse) Marshal() (dAtA []byte, err error)
func (*QueryInactiveContractsResponse) MarshalTo ¶
func (m *QueryInactiveContractsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInactiveContractsResponse) MarshalToSizedBuffer ¶
func (m *QueryInactiveContractsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInactiveContractsResponse) ProtoMessage ¶
func (*QueryInactiveContractsResponse) ProtoMessage()
func (*QueryInactiveContractsResponse) Reset ¶
func (m *QueryInactiveContractsResponse) Reset()
func (*QueryInactiveContractsResponse) Size ¶
func (m *QueryInactiveContractsResponse) Size() (n int)
func (*QueryInactiveContractsResponse) String ¶
func (m *QueryInactiveContractsResponse) String() string
func (*QueryInactiveContractsResponse) Unmarshal ¶
func (m *QueryInactiveContractsResponse) Unmarshal(dAtA []byte) error
func (*QueryInactiveContractsResponse) XXX_DiscardUnknown ¶
func (m *QueryInactiveContractsResponse) XXX_DiscardUnknown()
func (*QueryInactiveContractsResponse) XXX_Marshal ¶
func (m *QueryInactiveContractsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInactiveContractsResponse) XXX_Merge ¶
func (m *QueryInactiveContractsResponse) XXX_Merge(src proto.Message)
func (*QueryInactiveContractsResponse) XXX_Size ¶
func (m *QueryInactiveContractsResponse) XXX_Size() int
func (*QueryInactiveContractsResponse) XXX_Unmarshal ¶
func (m *QueryInactiveContractsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // InactiveContracts queries all inactive contracts InactiveContracts(context.Context, *QueryInactiveContractsRequest) (*QueryInactiveContractsResponse, error) // InactiveContract check it the contract is inactive state or not InactiveContract(context.Context, *QueryInactiveContractRequest) (*QueryInactiveContractResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) StoreCodeAndInstantiateContract ¶
func (*UnimplementedMsgServer) StoreCodeAndInstantiateContract(ctx context.Context, req *MsgStoreCodeAndInstantiateContract) (*MsgStoreCodeAndInstantiateContractResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) InactiveContract ¶
func (*UnimplementedQueryServer) InactiveContract(ctx context.Context, req *QueryInactiveContractRequest) (*QueryInactiveContractResponse, error)
func (*UnimplementedQueryServer) InactiveContracts ¶
func (*UnimplementedQueryServer) InactiveContracts(ctx context.Context, req *QueryInactiveContractsRequest) (*QueryInactiveContractsResponse, error)
type ViewKeeper ¶
type ViewKeeper interface { IterateInactiveContracts(ctx sdk.Context, fn func(contractAddress sdk.AccAddress) bool) IsInactiveContract(ctx sdk.Context, contractAddress sdk.AccAddress) bool }