types

package
v0.0.0-...-f9bcfd4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 35 Imported by: 3

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "erc20mgr"

	// Version defines the current version the samplemod
	// module supports
	Version = "erc20mgr-1"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_capability"
)
View Source
const (
	TypeContractCallTx = "ContractCallTx"
)

msg types

Variables

View Source
var (
	ErrInvalidLengthExtension        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowExtension          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupExtension = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyAdmin      = []byte("Admin")
	KeyIsSetAdmin = []byte("IsSetAdmin")
)
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 (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ModuleCdc references the global erc20 module codec. Note, the codec
	// should ONLY be used in certain instances of tests and for JSON encoding.
	//
	// The actual codec used for serialization should be provided to x/ibc-transfer and
	// defined at the application level.
	ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
)

Functions

func CDTContractHandleDecorators

func CDTContractHandleDecorators() contracttypes.ContractHandleDecorator

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register the ibc transfer module interfaces to protobuf Any.

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 Balance

type Balance struct {
	Id     ID    `protobuf:"bytes,1,opt,name=id,proto3,casttype=ID" json:"id,omitempty"`
	Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
}

func (*Balance) Descriptor

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

func (*Balance) Marshal

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

func (*Balance) MarshalTo

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

func (*Balance) MarshalToSizedBuffer

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

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) Reset

func (m *Balance) Reset()

func (*Balance) Size

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

func (*Balance) String

func (m *Balance) String() string

func (*Balance) Unmarshal

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

func (*Balance) XXX_DiscardUnknown

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal

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

func (*Balance) XXX_Merge

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

func (*Balance) XXX_Size

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal

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

type CDTContractHandleDecorator

type CDTContractHandleDecorator struct{}

func (CDTContractHandleDecorator) Handle

func (cd CDTContractHandleDecorator) Handle(ctx context.Context, callInfo txtypes.ContractCallInfo) (newCtx context.Context, err error)

type ClientID

type ClientID string

type ContractCallRequest

type ContractCallRequest struct {
	Method string   `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Args   []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
}

func NewContractCallRequest

func NewContractCallRequest(method string, args ...string) ContractCallRequest

NewContractCallRequest creates a new instance of ContractCallRequest

func (ContractCallRequest) ContractCallInfo

func (r ContractCallRequest) ContractCallInfo(m codec.Codec) txtypes.ContractCallInfo

ContractCallInfo converts the ContractCallRequest to a ContractCallInfo

func (*ContractCallRequest) Descriptor

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

func (*ContractCallRequest) Marshal

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

func (*ContractCallRequest) MarshalTo

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

func (*ContractCallRequest) MarshalToSizedBuffer

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

func (*ContractCallRequest) ProtoMessage

func (*ContractCallRequest) ProtoMessage()

func (*ContractCallRequest) Reset

func (m *ContractCallRequest) Reset()

func (*ContractCallRequest) Size

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

func (*ContractCallRequest) String

func (m *ContractCallRequest) String() string

func (*ContractCallRequest) Unmarshal

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

func (*ContractCallRequest) XXX_DiscardUnknown

func (m *ContractCallRequest) XXX_DiscardUnknown()

func (*ContractCallRequest) XXX_Marshal

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

func (*ContractCallRequest) XXX_Merge

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

func (*ContractCallRequest) XXX_Size

func (m *ContractCallRequest) XXX_Size() int

func (*ContractCallRequest) XXX_Unmarshal

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

type FabricAccount

type FabricAccount struct {
	MspId    MSPID    `protobuf:"bytes,1,opt,name=mspId,proto3,casttype=MSPID" json:"mspId,omitempty"`
	ClientId ClientID `protobuf:"bytes,2,opt,name=clientId,proto3,casttype=ClientID" json:"clientId,omitempty"`
}

func (*FabricAccount) Descriptor

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

func (*FabricAccount) Marshal

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

func (*FabricAccount) MarshalTo

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

func (*FabricAccount) MarshalToSizedBuffer

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

func (*FabricAccount) ProtoMessage

func (*FabricAccount) ProtoMessage()

func (*FabricAccount) Reset

func (m *FabricAccount) Reset()

func (*FabricAccount) Size

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

func (*FabricAccount) String

func (m *FabricAccount) String() string

func (*FabricAccount) Unmarshal

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

func (*FabricAccount) XXX_DiscardUnknown

func (m *FabricAccount) XXX_DiscardUnknown()

func (*FabricAccount) XXX_Marshal

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

func (*FabricAccount) XXX_Merge

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

func (*FabricAccount) XXX_Size

func (m *FabricAccount) XXX_Size() int

func (*FabricAccount) XXX_Unmarshal

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

type FabricAuthExtension

type FabricAuthExtension struct {
}

func (*FabricAuthExtension) Descriptor

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

func (*FabricAuthExtension) Marshal

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

func (*FabricAuthExtension) MarshalTo

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

func (*FabricAuthExtension) MarshalToSizedBuffer

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

func (*FabricAuthExtension) ProtoMessage

func (*FabricAuthExtension) ProtoMessage()

func (*FabricAuthExtension) Reset

func (m *FabricAuthExtension) Reset()

func (*FabricAuthExtension) Size

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

func (*FabricAuthExtension) String

func (m *FabricAuthExtension) String() string

func (*FabricAuthExtension) Unmarshal

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

func (FabricAuthExtension) Verify

func (FabricAuthExtension) Verify(ctx sdk.Context, signer authtypes.Account, signature signing.SignatureV2, tx sdk.Tx) error

func (*FabricAuthExtension) XXX_DiscardUnknown

func (m *FabricAuthExtension) XXX_DiscardUnknown()

func (*FabricAuthExtension) XXX_Marshal

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

func (*FabricAuthExtension) XXX_Merge

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

func (*FabricAuthExtension) XXX_Size

func (m *FabricAuthExtension) XXX_Size() int

func (*FabricAuthExtension) XXX_Unmarshal

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

type GenesisState

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

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns a GenesisState instance

func NewGenesisState

func NewGenesisState() *GenesisState

NewGenesisState creates a new cross module GenesisState instance.

func (*GenesisState) Descriptor

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

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

Validate performs basic genesis state validation returning an error upon any failure.

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 ID

type ID string

func IDFromAccount

func IDFromAccount(accountID authtypes.AccountID) ID

func NewID

func NewID(mspID MSPID, clientID ClientID) (ID, error)

NOTE: This ID is an example. Do not use in production.

func (ID) Marshal

func (i ID) Marshal() ([]byte, error)

type MSPID

type MSPID string

type MsgClient

type MsgClient interface {
	ContractCallTx(ctx context.Context, in *MsgContractCallTx, opts ...grpc.CallOption) (*MsgContractCallTxResponse, 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 MsgContractCallTx

type MsgContractCallTx struct {
	Request *ContractCallRequest                                        `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	Signers []github_com_datachainlab_cross_x_core_auth_types.AccountID `` /* 134-byte string literal not displayed */
}

func NewMsgContractCallTx

func NewMsgContractCallTx(
	request *ContractCallRequest,
	signers []authtypes.AccountID,
) *MsgContractCallTx

func (*MsgContractCallTx) Descriptor

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

func (MsgContractCallTx) GetSignBytes

func (msg MsgContractCallTx) GetSignBytes() []byte

GetSignBytes implements sdk.Msg.

func (MsgContractCallTx) GetSigners

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

GetSigners implements sdk.Msg GetSigners returns the addresses that must sign the transaction. Addresses are returned in a deterministic order. Duplicate addresses will be omitted.

func (*MsgContractCallTx) Marshal

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

func (*MsgContractCallTx) MarshalTo

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

func (*MsgContractCallTx) MarshalToSizedBuffer

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

func (*MsgContractCallTx) ProtoMessage

func (*MsgContractCallTx) ProtoMessage()

func (*MsgContractCallTx) Reset

func (m *MsgContractCallTx) Reset()

func (MsgContractCallTx) Route

func (MsgContractCallTx) Route() string

Route implements sdk.Msg

func (*MsgContractCallTx) Size

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

func (*MsgContractCallTx) String

func (m *MsgContractCallTx) String() string

func (MsgContractCallTx) Type

func (MsgContractCallTx) Type() string

Type implements sdk.Msg

func (*MsgContractCallTx) Unmarshal

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

func (MsgContractCallTx) ValidateBasic

func (msg MsgContractCallTx) ValidateBasic() error

ValidateBasic performs a basic check of the MsgContractCallTx fields.

func (*MsgContractCallTx) XXX_DiscardUnknown

func (m *MsgContractCallTx) XXX_DiscardUnknown()

func (*MsgContractCallTx) XXX_Marshal

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

func (*MsgContractCallTx) XXX_Merge

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

func (*MsgContractCallTx) XXX_Size

func (m *MsgContractCallTx) XXX_Size() int

func (*MsgContractCallTx) XXX_Unmarshal

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

type MsgContractCallTxResponse

type MsgContractCallTxResponse struct {
}

MsgSignTxResponse defines the Msg/SignTx response type.

func (*MsgContractCallTxResponse) Descriptor

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

func (*MsgContractCallTxResponse) Marshal

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

func (*MsgContractCallTxResponse) MarshalTo

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

func (*MsgContractCallTxResponse) MarshalToSizedBuffer

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

func (*MsgContractCallTxResponse) ProtoMessage

func (*MsgContractCallTxResponse) ProtoMessage()

func (*MsgContractCallTxResponse) Reset

func (m *MsgContractCallTxResponse) Reset()

func (*MsgContractCallTxResponse) Size

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

func (*MsgContractCallTxResponse) String

func (m *MsgContractCallTxResponse) String() string

func (*MsgContractCallTxResponse) Unmarshal

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

func (*MsgContractCallTxResponse) XXX_DiscardUnknown

func (m *MsgContractCallTxResponse) XXX_DiscardUnknown()

func (*MsgContractCallTxResponse) XXX_Marshal

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

func (*MsgContractCallTxResponse) XXX_Merge

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

func (*MsgContractCallTxResponse) XXX_Size

func (m *MsgContractCallTxResponse) XXX_Size() int

func (*MsgContractCallTxResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	ContractCallTx(context.Context, *MsgContractCallTx) (*MsgContractCallTxResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	Admin      string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin,omitempty"`
	IsSetAdmin bool   `protobuf:"varint,2,opt,name=isSetAdmin,proto3" json:"isSetAdmin,omitempty" yaml:"is_set_admin,omitempty"`
}

func NewParams

func NewParams(admin string, isSetAdmin bool) Params

func (*Params) Descriptor

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

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

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 (p Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

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 QueryAllowanceRequest

type QueryAllowanceRequest struct {
	Owner   ID `protobuf:"bytes,1,opt,name=owner,proto3,casttype=ID" json:"owner,omitempty"`
	Spender ID `protobuf:"bytes,2,opt,name=spender,proto3,casttype=ID" json:"spender,omitempty"`
}

func (*QueryAllowanceRequest) Descriptor

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

func (*QueryAllowanceRequest) Marshal

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

func (*QueryAllowanceRequest) MarshalTo

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

func (*QueryAllowanceRequest) MarshalToSizedBuffer

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

func (*QueryAllowanceRequest) ProtoMessage

func (*QueryAllowanceRequest) ProtoMessage()

func (*QueryAllowanceRequest) Reset

func (m *QueryAllowanceRequest) Reset()

func (*QueryAllowanceRequest) Size

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

func (*QueryAllowanceRequest) String

func (m *QueryAllowanceRequest) String() string

func (*QueryAllowanceRequest) Unmarshal

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

func (*QueryAllowanceRequest) XXX_DiscardUnknown

func (m *QueryAllowanceRequest) XXX_DiscardUnknown()

func (*QueryAllowanceRequest) XXX_Marshal

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

func (*QueryAllowanceRequest) XXX_Merge

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

func (*QueryAllowanceRequest) XXX_Size

func (m *QueryAllowanceRequest) XXX_Size() int

func (*QueryAllowanceRequest) XXX_Unmarshal

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

type QueryAllowanceResponse

type QueryAllowanceResponse struct {
	Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
}

func (*QueryAllowanceResponse) Descriptor

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

func (*QueryAllowanceResponse) Marshal

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

func (*QueryAllowanceResponse) MarshalTo

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

func (*QueryAllowanceResponse) MarshalToSizedBuffer

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

func (*QueryAllowanceResponse) ProtoMessage

func (*QueryAllowanceResponse) ProtoMessage()

func (*QueryAllowanceResponse) Reset

func (m *QueryAllowanceResponse) Reset()

func (*QueryAllowanceResponse) Size

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

func (*QueryAllowanceResponse) String

func (m *QueryAllowanceResponse) String() string

func (*QueryAllowanceResponse) Unmarshal

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

func (*QueryAllowanceResponse) XXX_DiscardUnknown

func (m *QueryAllowanceResponse) XXX_DiscardUnknown()

func (*QueryAllowanceResponse) XXX_Marshal

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

func (*QueryAllowanceResponse) XXX_Merge

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

func (*QueryAllowanceResponse) XXX_Size

func (m *QueryAllowanceResponse) XXX_Size() int

func (*QueryAllowanceResponse) XXX_Unmarshal

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

type QueryBalanceOfRequest

type QueryBalanceOfRequest struct {
	Id ID `protobuf:"bytes,1,opt,name=id,proto3,casttype=ID" json:"id,omitempty"`
}

func (*QueryBalanceOfRequest) Descriptor

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

func (*QueryBalanceOfRequest) Marshal

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

func (*QueryBalanceOfRequest) MarshalTo

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

func (*QueryBalanceOfRequest) MarshalToSizedBuffer

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

func (*QueryBalanceOfRequest) ProtoMessage

func (*QueryBalanceOfRequest) ProtoMessage()

func (*QueryBalanceOfRequest) Reset

func (m *QueryBalanceOfRequest) Reset()

func (*QueryBalanceOfRequest) Size

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

func (*QueryBalanceOfRequest) String

func (m *QueryBalanceOfRequest) String() string

func (*QueryBalanceOfRequest) Unmarshal

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

func (*QueryBalanceOfRequest) XXX_DiscardUnknown

func (m *QueryBalanceOfRequest) XXX_DiscardUnknown()

func (*QueryBalanceOfRequest) XXX_Marshal

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

func (*QueryBalanceOfRequest) XXX_Merge

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

func (*QueryBalanceOfRequest) XXX_Size

func (m *QueryBalanceOfRequest) XXX_Size() int

func (*QueryBalanceOfRequest) XXX_Unmarshal

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

type QueryBalanceOfResponse

type QueryBalanceOfResponse struct {
	Balance *Balance `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
}

func (*QueryBalanceOfResponse) Descriptor

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

func (*QueryBalanceOfResponse) Marshal

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

func (*QueryBalanceOfResponse) MarshalTo

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

func (*QueryBalanceOfResponse) MarshalToSizedBuffer

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

func (*QueryBalanceOfResponse) ProtoMessage

func (*QueryBalanceOfResponse) ProtoMessage()

func (*QueryBalanceOfResponse) Reset

func (m *QueryBalanceOfResponse) Reset()

func (*QueryBalanceOfResponse) Size

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

func (*QueryBalanceOfResponse) String

func (m *QueryBalanceOfResponse) String() string

func (*QueryBalanceOfResponse) Unmarshal

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

func (*QueryBalanceOfResponse) XXX_DiscardUnknown

func (m *QueryBalanceOfResponse) XXX_DiscardUnknown()

func (*QueryBalanceOfResponse) XXX_Marshal

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

func (*QueryBalanceOfResponse) XXX_Merge

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

func (*QueryBalanceOfResponse) XXX_Size

func (m *QueryBalanceOfResponse) XXX_Size() int

func (*QueryBalanceOfResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	BalanceOf(ctx context.Context, in *QueryBalanceOfRequest, opts ...grpc.CallOption) (*QueryBalanceOfResponse, error)
	TotalSupply(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*QueryTotalSupplyResponse, error)
	Allowance(ctx context.Context, in *QueryAllowanceRequest, opts ...grpc.CallOption) (*QueryAllowanceResponse, 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 QueryServer

QueryServer is the server API for Query service.

type QueryTotalSupplyResponse

type QueryTotalSupplyResponse struct {
	TotalSupply int64 `protobuf:"varint,1,opt,name=totalSupply,proto3" json:"totalSupply,omitempty"`
}

func (*QueryTotalSupplyResponse) Descriptor

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

func (*QueryTotalSupplyResponse) Marshal

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

func (*QueryTotalSupplyResponse) MarshalTo

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

func (*QueryTotalSupplyResponse) MarshalToSizedBuffer

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

func (*QueryTotalSupplyResponse) ProtoMessage

func (*QueryTotalSupplyResponse) ProtoMessage()

func (*QueryTotalSupplyResponse) Reset

func (m *QueryTotalSupplyResponse) Reset()

func (*QueryTotalSupplyResponse) Size

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

func (*QueryTotalSupplyResponse) String

func (m *QueryTotalSupplyResponse) String() string

func (*QueryTotalSupplyResponse) Unmarshal

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

func (*QueryTotalSupplyResponse) XXX_DiscardUnknown

func (m *QueryTotalSupplyResponse) XXX_DiscardUnknown()

func (*QueryTotalSupplyResponse) XXX_Marshal

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

func (*QueryTotalSupplyResponse) XXX_Merge

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

func (*QueryTotalSupplyResponse) XXX_Size

func (m *QueryTotalSupplyResponse) XXX_Size() int

func (*QueryTotalSupplyResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ContractCallTx

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Allowance

func (*UnimplementedQueryServer) BalanceOf

func (*UnimplementedQueryServer) TotalSupply

Jump to

Keyboard shortcuts

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