Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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)
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (gs GenesisState) Validate() 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 GetAssetYieldsIndexQueryRequest
- func (*GetAssetYieldsIndexQueryRequest) Descriptor() ([]byte, []int)
- func (m *GetAssetYieldsIndexQueryRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAssetYieldsIndexQueryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAssetYieldsIndexQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAssetYieldsIndexQueryRequest) ProtoMessage()
- func (m *GetAssetYieldsIndexQueryRequest) Reset()
- func (m *GetAssetYieldsIndexQueryRequest) Size() (n int)
- func (m *GetAssetYieldsIndexQueryRequest) String() string
- func (m *GetAssetYieldsIndexQueryRequest) Unmarshal(dAtA []byte) error
- func (m *GetAssetYieldsIndexQueryRequest) XXX_DiscardUnknown()
- func (m *GetAssetYieldsIndexQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAssetYieldsIndexQueryRequest) XXX_Merge(src proto.Message)
- func (m *GetAssetYieldsIndexQueryRequest) XXX_Size() int
- func (m *GetAssetYieldsIndexQueryRequest) XXX_Unmarshal(b []byte) error
- type GetAssetYieldsIndexQueryResponse
- func (*GetAssetYieldsIndexQueryResponse) Descriptor() ([]byte, []int)
- func (m *GetAssetYieldsIndexQueryResponse) GetAssetYieldsIndex() string
- func (m *GetAssetYieldsIndexQueryResponse) Marshal() (dAtA []byte, err error)
- func (m *GetAssetYieldsIndexQueryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAssetYieldsIndexQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAssetYieldsIndexQueryResponse) ProtoMessage()
- func (m *GetAssetYieldsIndexQueryResponse) Reset()
- func (m *GetAssetYieldsIndexQueryResponse) Size() (n int)
- func (m *GetAssetYieldsIndexQueryResponse) String() string
- func (m *GetAssetYieldsIndexQueryResponse) Unmarshal(dAtA []byte) error
- func (m *GetAssetYieldsIndexQueryResponse) XXX_DiscardUnknown()
- func (m *GetAssetYieldsIndexQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAssetYieldsIndexQueryResponse) XXX_Merge(src proto.Message)
- func (m *GetAssetYieldsIndexQueryResponse) XXX_Size() int
- func (m *GetAssetYieldsIndexQueryResponse) XXX_Unmarshal(b []byte) error
- type GetSDAIPriceQueryRequest
- func (*GetSDAIPriceQueryRequest) Descriptor() ([]byte, []int)
- func (m *GetSDAIPriceQueryRequest) Marshal() (dAtA []byte, err error)
- func (m *GetSDAIPriceQueryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetSDAIPriceQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetSDAIPriceQueryRequest) ProtoMessage()
- func (m *GetSDAIPriceQueryRequest) Reset()
- func (m *GetSDAIPriceQueryRequest) Size() (n int)
- func (m *GetSDAIPriceQueryRequest) String() string
- func (m *GetSDAIPriceQueryRequest) Unmarshal(dAtA []byte) error
- func (m *GetSDAIPriceQueryRequest) XXX_DiscardUnknown()
- func (m *GetSDAIPriceQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSDAIPriceQueryRequest) XXX_Merge(src proto.Message)
- func (m *GetSDAIPriceQueryRequest) XXX_Size() int
- func (m *GetSDAIPriceQueryRequest) XXX_Unmarshal(b []byte) error
- type GetSDAIPriceQueryResponse
- func (*GetSDAIPriceQueryResponse) Descriptor() ([]byte, []int)
- func (m *GetSDAIPriceQueryResponse) GetPrice() string
- func (m *GetSDAIPriceQueryResponse) Marshal() (dAtA []byte, err error)
- func (m *GetSDAIPriceQueryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetSDAIPriceQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetSDAIPriceQueryResponse) ProtoMessage()
- func (m *GetSDAIPriceQueryResponse) Reset()
- func (m *GetSDAIPriceQueryResponse) Size() (n int)
- func (m *GetSDAIPriceQueryResponse) String() string
- func (m *GetSDAIPriceQueryResponse) Unmarshal(dAtA []byte) error
- func (m *GetSDAIPriceQueryResponse) XXX_DiscardUnknown()
- func (m *GetSDAIPriceQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSDAIPriceQueryResponse) XXX_Merge(src proto.Message)
- func (m *GetSDAIPriceQueryResponse) XXX_Size() int
- func (m *GetSDAIPriceQueryResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type PerpetualsKeeper
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name // Use `yields` instead of `yields` to prevent potential key space conflicts with the IBC module. ModuleName = "yields" // StoreKey defines the primary module store key StoreKey = ModuleName // TDaiPool: Address, where tDAI yields is held before it is claimed by subaccount. TDaiPoolAccount = "tDAIPoolAccount" // SDaiPool: Address, where bridged sDAI is held until it is bridged out. SDaiPoolAccount = "sDAIPoolAccount" // Denom of sDAI in the x/bank module SDaiDenom = "ibc/DEEFE2DEFDC8EA8879923C4CCA42BB888C3CD03FF7ECFEFB1C2FEC27A732ACC8" SDaiBaseDenom = "gsdai" SDaiBaseDenomPathPrefix = "transfer/channel-0" SDaiBaseDenomFullPath = SDaiBaseDenomPathPrefix + "/" + SDaiBaseDenom SDaiDenomExponent = -18 // Denom of tDAI in the x/bank module TDaiDenom = assettypes.TDaiDenom // sDAIKeyPrefix is the prefix for the key-value store forthe sDAI price SDaiKeyPrefix = "SDAIPrice:" // SDAILastBlockUpdate is the prefix for the key-value store for the last block that the sDAI price was updated SDAILastBlockUpdate = "SDAILastBlockUpdate:" // AssetYieldsIndexPrefix is the prefix for the key value store that tracks // the cumulative yields index across all yields epochs. AssetYieldsIndexPrefix = "AssetYieldsIndex:" )
Module name and store keys
const ( // base 10 BASE_10 = 10 // Maker RAY value which stores decimal points SDAI_DECIMALS = 27 SDAI_UPDATE_BLOCK_DELAY = 5000 )
State
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrUnableToDecodeBigInt = errorsmod.Register( ModuleName, 1001, "Unable to decode bigint", ) ErrInvalidSDAIConversionRate = errorsmod.Register( ModuleName, 1002, "Proposed SDAI conversion rate is invalid", ) ErrFailedSDaiToTDaiConversion = errorsmod.Register( ModuleName, 1003, "Failed to convert sDai amount to corresponding TDai Amount", ) )
x/yields module sentinel errors
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type BankKeeper ¶
type BankKeeper interface { GetSupply(ctx context.Context, denom string) sdk.Coin SendCoinsFromAccountToModule( ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins, ) error SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins, ) error SendCoins(ctx context.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin }
BankKeeper defines the expected bank keeper used for simulations.
type GenesisState ¶
type GenesisState struct { }
GenesisState defines the yields module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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) 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 GetAssetYieldsIndexQueryRequest ¶
type GetAssetYieldsIndexQueryRequest struct { }
GetAssetYieldsIndexRequest is a request type for the GetAssetYieldsIndex RPC method.
func (*GetAssetYieldsIndexQueryRequest) Descriptor ¶
func (*GetAssetYieldsIndexQueryRequest) Descriptor() ([]byte, []int)
func (*GetAssetYieldsIndexQueryRequest) Marshal ¶
func (m *GetAssetYieldsIndexQueryRequest) Marshal() (dAtA []byte, err error)
func (*GetAssetYieldsIndexQueryRequest) MarshalTo ¶
func (m *GetAssetYieldsIndexQueryRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetAssetYieldsIndexQueryRequest) MarshalToSizedBuffer ¶
func (m *GetAssetYieldsIndexQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAssetYieldsIndexQueryRequest) ProtoMessage ¶
func (*GetAssetYieldsIndexQueryRequest) ProtoMessage()
func (*GetAssetYieldsIndexQueryRequest) Reset ¶
func (m *GetAssetYieldsIndexQueryRequest) Reset()
func (*GetAssetYieldsIndexQueryRequest) Size ¶
func (m *GetAssetYieldsIndexQueryRequest) Size() (n int)
func (*GetAssetYieldsIndexQueryRequest) String ¶
func (m *GetAssetYieldsIndexQueryRequest) String() string
func (*GetAssetYieldsIndexQueryRequest) Unmarshal ¶
func (m *GetAssetYieldsIndexQueryRequest) Unmarshal(dAtA []byte) error
func (*GetAssetYieldsIndexQueryRequest) XXX_DiscardUnknown ¶
func (m *GetAssetYieldsIndexQueryRequest) XXX_DiscardUnknown()
func (*GetAssetYieldsIndexQueryRequest) XXX_Marshal ¶
func (m *GetAssetYieldsIndexQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAssetYieldsIndexQueryRequest) XXX_Merge ¶
func (m *GetAssetYieldsIndexQueryRequest) XXX_Merge(src proto.Message)
func (*GetAssetYieldsIndexQueryRequest) XXX_Size ¶
func (m *GetAssetYieldsIndexQueryRequest) XXX_Size() int
func (*GetAssetYieldsIndexQueryRequest) XXX_Unmarshal ¶
func (m *GetAssetYieldsIndexQueryRequest) XXX_Unmarshal(b []byte) error
type GetAssetYieldsIndexQueryResponse ¶
type GetAssetYieldsIndexQueryResponse struct {
AssetYieldsIndex string `protobuf:"bytes,1,opt,name=asset_yields_index,json=assetYieldsIndex,proto3" json:"asset_yields_index,omitempty"`
}
GetSDAIPriceQueryResponse is a response type for the GetAssetYieldsIndex RPC method.
func (*GetAssetYieldsIndexQueryResponse) Descriptor ¶
func (*GetAssetYieldsIndexQueryResponse) Descriptor() ([]byte, []int)
func (*GetAssetYieldsIndexQueryResponse) GetAssetYieldsIndex ¶
func (m *GetAssetYieldsIndexQueryResponse) GetAssetYieldsIndex() string
func (*GetAssetYieldsIndexQueryResponse) Marshal ¶
func (m *GetAssetYieldsIndexQueryResponse) Marshal() (dAtA []byte, err error)
func (*GetAssetYieldsIndexQueryResponse) MarshalTo ¶
func (m *GetAssetYieldsIndexQueryResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetAssetYieldsIndexQueryResponse) MarshalToSizedBuffer ¶
func (m *GetAssetYieldsIndexQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAssetYieldsIndexQueryResponse) ProtoMessage ¶
func (*GetAssetYieldsIndexQueryResponse) ProtoMessage()
func (*GetAssetYieldsIndexQueryResponse) Reset ¶
func (m *GetAssetYieldsIndexQueryResponse) Reset()
func (*GetAssetYieldsIndexQueryResponse) Size ¶
func (m *GetAssetYieldsIndexQueryResponse) Size() (n int)
func (*GetAssetYieldsIndexQueryResponse) String ¶
func (m *GetAssetYieldsIndexQueryResponse) String() string
func (*GetAssetYieldsIndexQueryResponse) Unmarshal ¶
func (m *GetAssetYieldsIndexQueryResponse) Unmarshal(dAtA []byte) error
func (*GetAssetYieldsIndexQueryResponse) XXX_DiscardUnknown ¶
func (m *GetAssetYieldsIndexQueryResponse) XXX_DiscardUnknown()
func (*GetAssetYieldsIndexQueryResponse) XXX_Marshal ¶
func (m *GetAssetYieldsIndexQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAssetYieldsIndexQueryResponse) XXX_Merge ¶
func (m *GetAssetYieldsIndexQueryResponse) XXX_Merge(src proto.Message)
func (*GetAssetYieldsIndexQueryResponse) XXX_Size ¶
func (m *GetAssetYieldsIndexQueryResponse) XXX_Size() int
func (*GetAssetYieldsIndexQueryResponse) XXX_Unmarshal ¶
func (m *GetAssetYieldsIndexQueryResponse) XXX_Unmarshal(b []byte) error
type GetSDAIPriceQueryRequest ¶
type GetSDAIPriceQueryRequest struct { }
GetSDAIPriceRequest is a request type for the GetSDAIPrice RPC method.
func (*GetSDAIPriceQueryRequest) Descriptor ¶
func (*GetSDAIPriceQueryRequest) Descriptor() ([]byte, []int)
func (*GetSDAIPriceQueryRequest) Marshal ¶
func (m *GetSDAIPriceQueryRequest) Marshal() (dAtA []byte, err error)
func (*GetSDAIPriceQueryRequest) MarshalTo ¶
func (m *GetSDAIPriceQueryRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetSDAIPriceQueryRequest) MarshalToSizedBuffer ¶
func (m *GetSDAIPriceQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetSDAIPriceQueryRequest) ProtoMessage ¶
func (*GetSDAIPriceQueryRequest) ProtoMessage()
func (*GetSDAIPriceQueryRequest) Reset ¶
func (m *GetSDAIPriceQueryRequest) Reset()
func (*GetSDAIPriceQueryRequest) Size ¶
func (m *GetSDAIPriceQueryRequest) Size() (n int)
func (*GetSDAIPriceQueryRequest) String ¶
func (m *GetSDAIPriceQueryRequest) String() string
func (*GetSDAIPriceQueryRequest) Unmarshal ¶
func (m *GetSDAIPriceQueryRequest) Unmarshal(dAtA []byte) error
func (*GetSDAIPriceQueryRequest) XXX_DiscardUnknown ¶
func (m *GetSDAIPriceQueryRequest) XXX_DiscardUnknown()
func (*GetSDAIPriceQueryRequest) XXX_Marshal ¶
func (m *GetSDAIPriceQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSDAIPriceQueryRequest) XXX_Merge ¶
func (m *GetSDAIPriceQueryRequest) XXX_Merge(src proto.Message)
func (*GetSDAIPriceQueryRequest) XXX_Size ¶
func (m *GetSDAIPriceQueryRequest) XXX_Size() int
func (*GetSDAIPriceQueryRequest) XXX_Unmarshal ¶
func (m *GetSDAIPriceQueryRequest) XXX_Unmarshal(b []byte) error
type GetSDAIPriceQueryResponse ¶
type GetSDAIPriceQueryResponse struct {
Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
}
GetSDAIPriceResponse is a response type for the GetSDAIPrice RPC method.
func (*GetSDAIPriceQueryResponse) Descriptor ¶
func (*GetSDAIPriceQueryResponse) Descriptor() ([]byte, []int)
func (*GetSDAIPriceQueryResponse) GetPrice ¶
func (m *GetSDAIPriceQueryResponse) GetPrice() string
func (*GetSDAIPriceQueryResponse) Marshal ¶
func (m *GetSDAIPriceQueryResponse) Marshal() (dAtA []byte, err error)
func (*GetSDAIPriceQueryResponse) MarshalTo ¶
func (m *GetSDAIPriceQueryResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetSDAIPriceQueryResponse) MarshalToSizedBuffer ¶
func (m *GetSDAIPriceQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetSDAIPriceQueryResponse) ProtoMessage ¶
func (*GetSDAIPriceQueryResponse) ProtoMessage()
func (*GetSDAIPriceQueryResponse) Reset ¶
func (m *GetSDAIPriceQueryResponse) Reset()
func (*GetSDAIPriceQueryResponse) Size ¶
func (m *GetSDAIPriceQueryResponse) Size() (n int)
func (*GetSDAIPriceQueryResponse) String ¶
func (m *GetSDAIPriceQueryResponse) String() string
func (*GetSDAIPriceQueryResponse) Unmarshal ¶
func (m *GetSDAIPriceQueryResponse) Unmarshal(dAtA []byte) error
func (*GetSDAIPriceQueryResponse) XXX_DiscardUnknown ¶
func (m *GetSDAIPriceQueryResponse) XXX_DiscardUnknown()
func (*GetSDAIPriceQueryResponse) XXX_Marshal ¶
func (m *GetSDAIPriceQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSDAIPriceQueryResponse) XXX_Merge ¶
func (m *GetSDAIPriceQueryResponse) XXX_Merge(src proto.Message)
func (*GetSDAIPriceQueryResponse) XXX_Size ¶
func (m *GetSDAIPriceQueryResponse) XXX_Size() int
func (*GetSDAIPriceQueryResponse) XXX_Unmarshal ¶
func (m *GetSDAIPriceQueryResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { }
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 PerpetualsKeeper ¶
type QueryClient ¶
type QueryClient interface { // Get the price of sDAI. GetSDAIPriceQuery(ctx context.Context, in *GetSDAIPriceQueryRequest, opts ...grpc.CallOption) (*GetSDAIPriceQueryResponse, error) // Get the price of sDAI. GetAssetYieldsIndexQuery(ctx context.Context, in *GetAssetYieldsIndexQueryRequest, opts ...grpc.CallOption) (*GetAssetYieldsIndexQueryResponse, 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 ¶
type QueryServer interface { // Get the price of sDAI. GetSDAIPriceQuery(context.Context, *GetSDAIPriceQueryRequest) (*GetSDAIPriceQueryResponse, error) // Get the price of sDAI. GetAssetYieldsIndexQuery(context.Context, *GetAssetYieldsIndexQueryRequest) (*GetAssetYieldsIndexQueryResponse, 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) GetAssetYieldsIndexQuery ¶
func (*UnimplementedQueryServer) GetAssetYieldsIndexQuery(ctx context.Context, req *GetAssetYieldsIndexQueryRequest) (*GetAssetYieldsIndexQueryResponse, error)
func (*UnimplementedQueryServer) GetSDAIPriceQuery ¶
func (*UnimplementedQueryServer) GetSDAIPriceQuery(ctx context.Context, req *GetSDAIPriceQueryRequest) (*GetSDAIPriceQueryResponse, error)