lbmtypes

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package lbmtypes is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ProposalTypeDeactivateContract wasmtypes.ProposalType = "DeactivateContract"
	ProposalTypeActivateContract   wasmtypes.ProposalType = "ActivateContract"
)

Variables

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the account types and interface

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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)

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 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 (*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 (*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 (*EventDeactivateContractProposal) Size

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

func (*EventDeactivateContractProposal) 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 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_line_lbm_sdk_x_wasm_types.RawContractMessage `protobuf:"bytes,8,opt,name=msg,proto3,casttype=github.com/line/lbm-sdk/x/wasm/types.RawContractMessage" json:"msg,omitempty"`
	// Funds coins that are transferred to the contract on instantiation
	Funds github_com_line_lbm_sdk_types.Coins `protobuf:"bytes,9,rep,name=funds,proto3,castrepeated=github.com/line/lbm-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 (*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 (MsgStoreCodeAndInstantiateContract) Route

func (*MsgStoreCodeAndInstantiateContract) Size

func (*MsgStoreCodeAndInstantiateContract) String

func (MsgStoreCodeAndInstantiateContract) Type

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 (*MsgStoreCodeAndInstantiateContract) XXX_Size

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

func (*MsgStoreCodeAndInstantiateContractResponse) Size

func (*MsgStoreCodeAndInstantiateContractResponse) String

func (*MsgStoreCodeAndInstantiateContractResponse) Unmarshal

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 (*MsgStoreCodeAndInstantiateContractResponse) XXX_Size

func (*MsgStoreCodeAndInstantiateContractResponse) XXX_Unmarshal

type QueryClient

type QueryClient interface {
	// InactiveContracts queries all inactive contracts
	InactiveContracts(ctx context.Context, in *QueryInactiveContractsRequest, opts ...grpc.CallOption) (*QueryInactiveContractsResponse, error)
	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 (*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 (*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 (*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
	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 (*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(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.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) InactiveContract

func (*UnimplementedQueryServer) InactiveContracts

Jump to

Keyboard shortcuts

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