Documentation ¶
Overview ¶
Package v1beta2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AccountKeyPrefix() []byte
- func PaymentKeyPrefix() []byte
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetBalance() types.DecCoin
- func (m *Account) GetDepositor() string
- func (m *Account) GetFunds() types.DecCoin
- func (m *Account) GetID() AccountID
- func (m *Account) GetOwner() string
- func (m *Account) GetSettledAt() int64
- func (m *Account) GetState() Account_State
- func (m *Account) GetTransferred() types.DecCoin
- func (m *Account) Marshal() (dAtA []byte, err error)
- func (m *Account) MarshalTo(dAtA []byte) (int, error)
- func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) Size() (n int)
- func (m *Account) String() string
- func (obj *Account) TotalBalance() sdk.DecCoin
- func (m *Account) Unmarshal(dAtA []byte) error
- func (obj *Account) ValidateBasic() error
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type AccountID
- func (*AccountID) Descriptor() ([]byte, []int)
- func (m *AccountID) GetScope() string
- func (m *AccountID) GetXID() string
- func (m *AccountID) Marshal() (dAtA []byte, err error)
- func (m *AccountID) MarshalTo(dAtA []byte) (int, error)
- func (m *AccountID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccountID) ProtoMessage()
- func (m *AccountID) Reset()
- func (m *AccountID) Size() (n int)
- func (m *AccountID) String() string
- func (m *AccountID) Unmarshal(dAtA []byte) error
- func (obj *AccountID) ValidateBasic() error
- func (m *AccountID) XXX_DiscardUnknown()
- func (m *AccountID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountID) XXX_Merge(src proto.Message)
- func (m *AccountID) XXX_Size() int
- func (m *AccountID) XXX_Unmarshal(b []byte) error
- type Account_State
- type FractionalPayment
- func (*FractionalPayment) Descriptor() ([]byte, []int)
- func (m *FractionalPayment) GetAccountID() AccountID
- func (m *FractionalPayment) GetBalance() types.DecCoin
- func (m *FractionalPayment) GetOwner() string
- func (m *FractionalPayment) GetPaymentID() string
- func (m *FractionalPayment) GetRate() types.DecCoin
- func (m *FractionalPayment) GetState() FractionalPayment_State
- func (m *FractionalPayment) GetWithdrawn() types.Coin
- func (m *FractionalPayment) Marshal() (dAtA []byte, err error)
- func (m *FractionalPayment) MarshalTo(dAtA []byte) (int, error)
- func (m *FractionalPayment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FractionalPayment) ProtoMessage()
- func (m *FractionalPayment) Reset()
- func (m *FractionalPayment) Size() (n int)
- func (m *FractionalPayment) String() string
- func (m *FractionalPayment) Unmarshal(dAtA []byte) error
- func (obj *FractionalPayment) ValidateBasic() error
- func (m *FractionalPayment) XXX_DiscardUnknown()
- func (m *FractionalPayment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FractionalPayment) XXX_Merge(src proto.Message)
- func (m *FractionalPayment) XXX_Size() int
- func (m *FractionalPayment) XXX_Unmarshal(b []byte) error
- type FractionalPayment_State
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAccounts() []Account
- func (m *GenesisState) GetPayments() []FractionalPayment
- 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 (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) 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 QueryAccountsRequest
- func (*QueryAccountsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountsRequest) GetOwner() string
- func (m *QueryAccountsRequest) GetPagination() *query.PageRequest
- func (m *QueryAccountsRequest) GetScope() string
- func (m *QueryAccountsRequest) GetState() string
- func (m *QueryAccountsRequest) GetXid() string
- func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountsRequest) ProtoMessage()
- func (m *QueryAccountsRequest) Reset()
- func (m *QueryAccountsRequest) Size() (n int)
- func (m *QueryAccountsRequest) String() string
- func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountsRequest) XXX_DiscardUnknown()
- func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountsRequest) XXX_Size() int
- func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error
- type QueryAccountsResponse
- func (*QueryAccountsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountsResponse) GetAccounts() []Account
- func (m *QueryAccountsResponse) GetPagination() *query.PageResponse
- func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountsResponse) ProtoMessage()
- func (m *QueryAccountsResponse) Reset()
- func (m *QueryAccountsResponse) Size() (n int)
- func (m *QueryAccountsResponse) String() string
- func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountsResponse) XXX_DiscardUnknown()
- func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountsResponse) XXX_Size() int
- func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryPaymentsRequest
- func (*QueryPaymentsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPaymentsRequest) GetId() string
- func (m *QueryPaymentsRequest) GetOwner() string
- func (m *QueryPaymentsRequest) GetPagination() *query.PageRequest
- func (m *QueryPaymentsRequest) GetScope() string
- func (m *QueryPaymentsRequest) GetState() string
- func (m *QueryPaymentsRequest) GetXid() string
- func (m *QueryPaymentsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentsRequest) ProtoMessage()
- func (m *QueryPaymentsRequest) Reset()
- func (m *QueryPaymentsRequest) Size() (n int)
- func (m *QueryPaymentsRequest) String() string
- func (m *QueryPaymentsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentsRequest) XXX_DiscardUnknown()
- func (m *QueryPaymentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPaymentsRequest) XXX_Size() int
- func (m *QueryPaymentsRequest) XXX_Unmarshal(b []byte) error
- type QueryPaymentsResponse
- func (*QueryPaymentsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPaymentsResponse) GetPagination() *query.PageResponse
- func (m *QueryPaymentsResponse) GetPayments() []FractionalPayment
- func (m *QueryPaymentsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentsResponse) ProtoMessage()
- func (m *QueryPaymentsResponse) Reset()
- func (m *QueryPaymentsResponse) Size() (n int)
- func (m *QueryPaymentsResponse) String() string
- func (m *QueryPaymentsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentsResponse) XXX_DiscardUnknown()
- func (m *QueryPaymentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPaymentsResponse) XXX_Size() int
- func (m *QueryPaymentsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "escrow" // StoreKey is the store key string for deployment StoreKey = ModuleName // RouterKey is the message route for deployment RouterKey = ModuleName )
Variables ¶
var ( ErrAccountExists = sdkerrors.Register(ModuleName, errAccountExists, "account exists") ErrAccountClosed = sdkerrors.Register(ModuleName, errAccountClosed, "account closed") ErrAccountNotFound = sdkerrors.Register(ModuleName, errAccountNotFound, "account not found") ErrAccountOverdrawn = sdkerrors.Register(ModuleName, errAccountOverdrawn, "account overdrawn") ErrInvalidDenomination = sdkerrors.Register(ModuleName, errInvalidDenomination, "invalid denomination") ErrPaymentExists = sdkerrors.Register(ModuleName, errPaymentExists, "payment exists") ErrPaymentClosed = sdkerrors.Register(ModuleName, errPaymentClosed, "payment closed") ErrPaymentNotFound = sdkerrors.Register(ModuleName, errPaymentNotFound, "payment not found") ErrPaymentRateZero = sdkerrors.Register(ModuleName, errPaymentRateZero, "payment rate zero") ErrInvalidPayment = sdkerrors.Register(ModuleName, errInvalidPayment, "invalid payment") ErrInvalidSettlement = sdkerrors.Register(ModuleName, errInvalidSettlement, "invalid settlement") ErrInvalidAccountID = sdkerrors.Register(ModuleName, errInvalidAccountID, "invalid account ID") ErrInvalidAccount = sdkerrors.Register(ModuleName, errInvalidAccount, "invalid account") )
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var Account_State_name = map[int32]string{
0: "invalid",
1: "open",
2: "closed",
3: "overdrawn",
}
var Account_State_value = map[string]int32{
"invalid": 0,
"open": 1,
"closed": 2,
"overdrawn": 3,
}
var FractionalPayment_State_name = map[int32]string{
0: "invalid",
1: "open",
2: "closed",
3: "overdrawn",
}
var FractionalPayment_State_value = map[string]int32{
"invalid": 0,
"open": 1,
"closed": 2,
"overdrawn": 3,
}
var ( // ModuleCdc references the global x/provider module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/provider and // defined at the application level. ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func AccountKeyPrefix ¶
func AccountKeyPrefix() []byte
func PaymentKeyPrefix ¶
func PaymentKeyPrefix() []byte
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/provider interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterCodec register concrete types on codec
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Account ¶
type Account struct { // unique identifier for this escrow account ID AccountID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"` // bech32 encoded account address of the owner of this escrow account Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner" yaml:"owner"` // current state of this escrow account State Account_State `protobuf:"varint,3,opt,name=state,proto3,enum=akash.escrow.v1beta2.Account_State" json:"state" yaml:"state"` // unspent coins received from the owner's wallet Balance types.DecCoin `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance" yaml:"balance"` // total coins spent by this account Transferred types.DecCoin `protobuf:"bytes,5,opt,name=transferred,proto3" json:"transferred" yaml:"transferred"` // block height at which this account was last settled SettledAt int64 `protobuf:"varint,6,opt,name=settled_at,json=settledAt,proto3" json:"settledAt" yaml:"settledAt"` // bech32 encoded account address of the depositor. // If depositor is same as the owner, then any incoming coins are added to the Balance. // If depositor isn't same as the owner, then any incoming coins are added to the Funds. Depositor string `protobuf:"bytes,7,opt,name=depositor,proto3" json:"depositor" yaml:"depositor"` // Funds are unspent coins received from the (non-Owner) Depositor's wallet. // If there are any funds, they should be spent before spending the Balance. Funds types.DecCoin `protobuf:"bytes,8,opt,name=funds,proto3" json:"funds" yaml:"funds"` }
Account stores state for an escrow account
func (*Account) Descriptor ¶
func (*Account) GetBalance ¶
func (*Account) GetDepositor ¶
func (*Account) GetSettledAt ¶
func (*Account) GetState ¶
func (m *Account) GetState() Account_State
func (*Account) GetTransferred ¶
func (*Account) MarshalToSizedBuffer ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) TotalBalance ¶
TotalBalance is the sum of Balance and Funds
func (*Account) ValidateBasic ¶
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type AccountID ¶
type AccountID struct { Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope" yaml:"scope"` XID string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid" yaml:"xid"` }
AccountID is the account identifier
func (*AccountID) Descriptor ¶
func (*AccountID) MarshalToSizedBuffer ¶
func (*AccountID) ProtoMessage ¶
func (*AccountID) ProtoMessage()
func (*AccountID) ValidateBasic ¶
func (*AccountID) XXX_DiscardUnknown ¶
func (m *AccountID) XXX_DiscardUnknown()
func (*AccountID) XXX_Marshal ¶
func (*AccountID) XXX_Unmarshal ¶
type Account_State ¶
type Account_State int32
State stores state for an escrow account
const ( // AccountStateInvalid is an invalid state AccountStateInvalid Account_State = 0 // AccountOpen is the state when an account is open AccountOpen Account_State = 1 // AccountClosed is the state when an account is closed AccountClosed Account_State = 2 // AccountOverdrawn is the state when an account is overdrawn AccountOverdrawn Account_State = 3 )
func (Account_State) EnumDescriptor ¶
func (Account_State) EnumDescriptor() ([]byte, []int)
func (Account_State) String ¶
func (x Account_State) String() string
type FractionalPayment ¶
type FractionalPayment struct { AccountID AccountID `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"accountID" yaml:"accountID"` PaymentID string `protobuf:"bytes,2,opt,name=payment_id,json=paymentId,proto3" json:"paymentID" yaml:"paymentID"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner" yaml:"owner"` State FractionalPayment_State `protobuf:"varint,4,opt,name=state,proto3,enum=akash.escrow.v1beta2.FractionalPayment_State" json:"state" yaml:"state"` Rate types.DecCoin `protobuf:"bytes,5,opt,name=rate,proto3" json:"rate" yaml:"rate"` Balance types.DecCoin `protobuf:"bytes,6,opt,name=balance,proto3" json:"balance" yaml:"balance"` Withdrawn types.Coin `protobuf:"bytes,7,opt,name=withdrawn,proto3" json:"withdrawn" yaml:"withdrawn"` }
Payment stores state for a payment
func (*FractionalPayment) Descriptor ¶
func (*FractionalPayment) Descriptor() ([]byte, []int)
func (*FractionalPayment) GetAccountID ¶
func (m *FractionalPayment) GetAccountID() AccountID
func (*FractionalPayment) GetBalance ¶
func (m *FractionalPayment) GetBalance() types.DecCoin
func (*FractionalPayment) GetOwner ¶
func (m *FractionalPayment) GetOwner() string
func (*FractionalPayment) GetPaymentID ¶
func (m *FractionalPayment) GetPaymentID() string
func (*FractionalPayment) GetRate ¶
func (m *FractionalPayment) GetRate() types.DecCoin
func (*FractionalPayment) GetState ¶
func (m *FractionalPayment) GetState() FractionalPayment_State
func (*FractionalPayment) GetWithdrawn ¶
func (m *FractionalPayment) GetWithdrawn() types.Coin
func (*FractionalPayment) Marshal ¶
func (m *FractionalPayment) Marshal() (dAtA []byte, err error)
func (*FractionalPayment) MarshalTo ¶
func (m *FractionalPayment) MarshalTo(dAtA []byte) (int, error)
func (*FractionalPayment) MarshalToSizedBuffer ¶
func (m *FractionalPayment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FractionalPayment) ProtoMessage ¶
func (*FractionalPayment) ProtoMessage()
func (*FractionalPayment) Reset ¶
func (m *FractionalPayment) Reset()
func (*FractionalPayment) Size ¶
func (m *FractionalPayment) Size() (n int)
func (*FractionalPayment) String ¶
func (m *FractionalPayment) String() string
func (*FractionalPayment) Unmarshal ¶
func (m *FractionalPayment) Unmarshal(dAtA []byte) error
func (*FractionalPayment) ValidateBasic ¶
func (obj *FractionalPayment) ValidateBasic() error
func (*FractionalPayment) XXX_DiscardUnknown ¶
func (m *FractionalPayment) XXX_DiscardUnknown()
func (*FractionalPayment) XXX_Marshal ¶
func (m *FractionalPayment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FractionalPayment) XXX_Merge ¶
func (m *FractionalPayment) XXX_Merge(src proto.Message)
func (*FractionalPayment) XXX_Size ¶
func (m *FractionalPayment) XXX_Size() int
func (*FractionalPayment) XXX_Unmarshal ¶
func (m *FractionalPayment) XXX_Unmarshal(b []byte) error
type FractionalPayment_State ¶
type FractionalPayment_State int32
Payment State
const ( // PaymentStateInvalid is the state when the payment is invalid PaymentStateInvalid FractionalPayment_State = 0 // PaymentStateOpen is the state when the payment is open PaymentOpen FractionalPayment_State = 1 // PaymentStateClosed is the state when the payment is closed PaymentClosed FractionalPayment_State = 2 // PaymentStateOverdrawn is the state when the payment is overdrawn PaymentOverdrawn FractionalPayment_State = 3 )
func (FractionalPayment_State) EnumDescriptor ¶
func (FractionalPayment_State) EnumDescriptor() ([]byte, []int)
func (FractionalPayment_State) String ¶
func (x FractionalPayment_State) String() string
type GenesisState ¶
type GenesisState struct { Accounts []Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts" yaml:"accounts"` Payments []FractionalPayment `protobuf:"bytes,2,rep,name=payments,proto3" json:"payments" yaml:"payments"` }
GenesisState defines the basic genesis state used by escrow module
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAccounts ¶
func (m *GenesisState) GetAccounts() []Account
func (*GenesisState) GetPayments ¶
func (m *GenesisState) GetPayments() []FractionalPayment
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) 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) 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 QueryAccountsRequest ¶
type QueryAccountsRequest struct { Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` Xid string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAccountRequest is request type for the Query/Account RPC method
func (*QueryAccountsRequest) Descriptor ¶
func (*QueryAccountsRequest) Descriptor() ([]byte, []int)
func (*QueryAccountsRequest) GetOwner ¶
func (m *QueryAccountsRequest) GetOwner() string
func (*QueryAccountsRequest) GetPagination ¶
func (m *QueryAccountsRequest) GetPagination() *query.PageRequest
func (*QueryAccountsRequest) GetScope ¶
func (m *QueryAccountsRequest) GetScope() string
func (*QueryAccountsRequest) GetState ¶
func (m *QueryAccountsRequest) GetState() string
func (*QueryAccountsRequest) GetXid ¶
func (m *QueryAccountsRequest) GetXid() string
func (*QueryAccountsRequest) Marshal ¶
func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountsRequest) MarshalTo ¶
func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountsRequest) MarshalToSizedBuffer ¶
func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountsRequest) ProtoMessage ¶
func (*QueryAccountsRequest) ProtoMessage()
func (*QueryAccountsRequest) Reset ¶
func (m *QueryAccountsRequest) Reset()
func (*QueryAccountsRequest) Size ¶
func (m *QueryAccountsRequest) Size() (n int)
func (*QueryAccountsRequest) String ¶
func (m *QueryAccountsRequest) String() string
func (*QueryAccountsRequest) Unmarshal ¶
func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountsRequest) XXX_DiscardUnknown ¶
func (m *QueryAccountsRequest) XXX_DiscardUnknown()
func (*QueryAccountsRequest) XXX_Marshal ¶
func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountsRequest) XXX_Merge ¶
func (m *QueryAccountsRequest) XXX_Merge(src proto.Message)
func (*QueryAccountsRequest) XXX_Size ¶
func (m *QueryAccountsRequest) XXX_Size() int
func (*QueryAccountsRequest) XXX_Unmarshal ¶
func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error
type QueryAccountsResponse ¶
type QueryAccountsResponse struct { Accounts []Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryProvidersResponse is response type for the Query/Providers RPC method
func (*QueryAccountsResponse) Descriptor ¶
func (*QueryAccountsResponse) Descriptor() ([]byte, []int)
func (*QueryAccountsResponse) GetAccounts ¶
func (m *QueryAccountsResponse) GetAccounts() []Account
func (*QueryAccountsResponse) GetPagination ¶
func (m *QueryAccountsResponse) GetPagination() *query.PageResponse
func (*QueryAccountsResponse) Marshal ¶
func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountsResponse) MarshalTo ¶
func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountsResponse) MarshalToSizedBuffer ¶
func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountsResponse) ProtoMessage ¶
func (*QueryAccountsResponse) ProtoMessage()
func (*QueryAccountsResponse) Reset ¶
func (m *QueryAccountsResponse) Reset()
func (*QueryAccountsResponse) Size ¶
func (m *QueryAccountsResponse) Size() (n int)
func (*QueryAccountsResponse) String ¶
func (m *QueryAccountsResponse) String() string
func (*QueryAccountsResponse) Unmarshal ¶
func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountsResponse) XXX_DiscardUnknown ¶
func (m *QueryAccountsResponse) XXX_DiscardUnknown()
func (*QueryAccountsResponse) XXX_Marshal ¶
func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountsResponse) XXX_Merge ¶
func (m *QueryAccountsResponse) XXX_Merge(src proto.Message)
func (*QueryAccountsResponse) XXX_Size ¶
func (m *QueryAccountsResponse) XXX_Size() int
func (*QueryAccountsResponse) XXX_Unmarshal ¶
func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME // Accounts queries all accounts Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error) // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME // Payments queries all payments Payments(ctx context.Context, in *QueryPaymentsRequest, opts ...grpc.CallOption) (*QueryPaymentsResponse, 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 QueryPaymentsRequest ¶
type QueryPaymentsRequest struct { Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` Xid string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,6,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPaymentRequest is request type for the Query/Payment RPC method
func (*QueryPaymentsRequest) Descriptor ¶
func (*QueryPaymentsRequest) Descriptor() ([]byte, []int)
func (*QueryPaymentsRequest) GetId ¶
func (m *QueryPaymentsRequest) GetId() string
func (*QueryPaymentsRequest) GetOwner ¶
func (m *QueryPaymentsRequest) GetOwner() string
func (*QueryPaymentsRequest) GetPagination ¶
func (m *QueryPaymentsRequest) GetPagination() *query.PageRequest
func (*QueryPaymentsRequest) GetScope ¶
func (m *QueryPaymentsRequest) GetScope() string
func (*QueryPaymentsRequest) GetState ¶
func (m *QueryPaymentsRequest) GetState() string
func (*QueryPaymentsRequest) GetXid ¶
func (m *QueryPaymentsRequest) GetXid() string
func (*QueryPaymentsRequest) Marshal ¶
func (m *QueryPaymentsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPaymentsRequest) MarshalTo ¶
func (m *QueryPaymentsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentsRequest) MarshalToSizedBuffer ¶
func (m *QueryPaymentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentsRequest) ProtoMessage ¶
func (*QueryPaymentsRequest) ProtoMessage()
func (*QueryPaymentsRequest) Reset ¶
func (m *QueryPaymentsRequest) Reset()
func (*QueryPaymentsRequest) Size ¶
func (m *QueryPaymentsRequest) Size() (n int)
func (*QueryPaymentsRequest) String ¶
func (m *QueryPaymentsRequest) String() string
func (*QueryPaymentsRequest) Unmarshal ¶
func (m *QueryPaymentsRequest) Unmarshal(dAtA []byte) error
func (*QueryPaymentsRequest) XXX_DiscardUnknown ¶
func (m *QueryPaymentsRequest) XXX_DiscardUnknown()
func (*QueryPaymentsRequest) XXX_Marshal ¶
func (m *QueryPaymentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentsRequest) XXX_Merge ¶
func (m *QueryPaymentsRequest) XXX_Merge(src proto.Message)
func (*QueryPaymentsRequest) XXX_Size ¶
func (m *QueryPaymentsRequest) XXX_Size() int
func (*QueryPaymentsRequest) XXX_Unmarshal ¶
func (m *QueryPaymentsRequest) XXX_Unmarshal(b []byte) error
type QueryPaymentsResponse ¶
type QueryPaymentsResponse struct { Payments []FractionalPayment `protobuf:"bytes,1,rep,name=payments,proto3" json:"payments"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryProvidersResponse is response type for the Query/Providers RPC method
func (*QueryPaymentsResponse) Descriptor ¶
func (*QueryPaymentsResponse) Descriptor() ([]byte, []int)
func (*QueryPaymentsResponse) GetPagination ¶
func (m *QueryPaymentsResponse) GetPagination() *query.PageResponse
func (*QueryPaymentsResponse) GetPayments ¶
func (m *QueryPaymentsResponse) GetPayments() []FractionalPayment
func (*QueryPaymentsResponse) Marshal ¶
func (m *QueryPaymentsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPaymentsResponse) MarshalTo ¶
func (m *QueryPaymentsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentsResponse) MarshalToSizedBuffer ¶
func (m *QueryPaymentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentsResponse) ProtoMessage ¶
func (*QueryPaymentsResponse) ProtoMessage()
func (*QueryPaymentsResponse) Reset ¶
func (m *QueryPaymentsResponse) Reset()
func (*QueryPaymentsResponse) Size ¶
func (m *QueryPaymentsResponse) Size() (n int)
func (*QueryPaymentsResponse) String ¶
func (m *QueryPaymentsResponse) String() string
func (*QueryPaymentsResponse) Unmarshal ¶
func (m *QueryPaymentsResponse) Unmarshal(dAtA []byte) error
func (*QueryPaymentsResponse) XXX_DiscardUnknown ¶
func (m *QueryPaymentsResponse) XXX_DiscardUnknown()
func (*QueryPaymentsResponse) XXX_Marshal ¶
func (m *QueryPaymentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentsResponse) XXX_Merge ¶
func (m *QueryPaymentsResponse) XXX_Merge(src proto.Message)
func (*QueryPaymentsResponse) XXX_Size ¶
func (m *QueryPaymentsResponse) XXX_Size() int
func (*QueryPaymentsResponse) XXX_Unmarshal ¶
func (m *QueryPaymentsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME // Accounts queries all accounts Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error) // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME // Payments queries all payments Payments(context.Context, *QueryPaymentsRequest) (*QueryPaymentsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Accounts ¶
func (*UnimplementedQueryServer) Accounts(ctx context.Context, req *QueryAccountsRequest) (*QueryAccountsResponse, error)
func (*UnimplementedQueryServer) Payments ¶
func (*UnimplementedQueryServer) Payments(ctx context.Context, req *QueryPaymentsRequest) (*QueryPaymentsResponse, error)