Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetClearingAccountKey(twilightAddress sdk.AccAddress) []byte
- func GetReserveKey(reserveId uint64) []byte
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- 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 AccountKeeper
- type BankKeeper
- type BridgeKeeper
- type BtcReserve
- func (*BtcReserve) Descriptor() ([]byte, []int)
- func (m *BtcReserve) GetBtcRelayCapacityValue() uint64
- func (m *BtcReserve) GetFeePool() uint64
- func (m *BtcReserve) GetJudgeAddress() string
- func (m *BtcReserve) GetPrivatePoolValue() uint64
- func (m *BtcReserve) GetPublicValue() uint64
- func (m *BtcReserve) GetReserveAddress() string
- func (m *BtcReserve) GetReserveId() uint64
- func (m *BtcReserve) GetTotalValue() uint64
- func (m *BtcReserve) Marshal() (dAtA []byte, err error)
- func (m *BtcReserve) MarshalTo(dAtA []byte) (int, error)
- func (m *BtcReserve) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BtcReserve) ProtoMessage()
- func (m *BtcReserve) Reset()
- func (m *BtcReserve) Size() (n int)
- func (m *BtcReserve) String() string
- func (m *BtcReserve) Unmarshal(dAtA []byte) error
- func (m *BtcReserve) XXX_DiscardUnknown()
- func (m *BtcReserve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BtcReserve) XXX_Merge(src proto.Message)
- func (m *BtcReserve) XXX_Size() int
- func (m *BtcReserve) XXX_Unmarshal(b []byte) error
- type ClearingAccount
- func (*ClearingAccount) Descriptor() ([]byte, []int)
- func (m *ClearingAccount) GetBtcDepositAddress() string
- func (m *ClearingAccount) GetBtcWithdrawAddress() string
- func (m *ClearingAccount) GetQQDepositAddress() string
- func (m *ClearingAccount) GetQQWithdrawAddress() string
- func (m *ClearingAccount) GetReserveAccountBalances() []*IndividualTwilightReserveAccountBalance
- func (m *ClearingAccount) GetTwilightAddress() string
- func (m *ClearingAccount) Marshal() (dAtA []byte, err error)
- func (m *ClearingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *ClearingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClearingAccount) ProtoMessage()
- func (m *ClearingAccount) Reset()
- func (m *ClearingAccount) Size() (n int)
- func (m *ClearingAccount) String() string
- func (m *ClearingAccount) Unmarshal(dAtA []byte) error
- func (m *ClearingAccount) XXX_DiscardUnknown()
- func (m *ClearingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClearingAccount) XXX_Merge(src proto.Message)
- func (m *ClearingAccount) XXX_Size() int
- func (m *ClearingAccount) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- 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 IndividualTwilightReserveAccountBalance
- func (*IndividualTwilightReserveAccountBalance) Descriptor() ([]byte, []int)
- func (m *IndividualTwilightReserveAccountBalance) GetAmount() uint64
- func (m *IndividualTwilightReserveAccountBalance) GetReserveId() uint64
- func (m *IndividualTwilightReserveAccountBalance) Marshal() (dAtA []byte, err error)
- func (m *IndividualTwilightReserveAccountBalance) MarshalTo(dAtA []byte) (int, error)
- func (m *IndividualTwilightReserveAccountBalance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IndividualTwilightReserveAccountBalance) ProtoMessage()
- func (m *IndividualTwilightReserveAccountBalance) Reset()
- func (m *IndividualTwilightReserveAccountBalance) Size() (n int)
- func (m *IndividualTwilightReserveAccountBalance) String() string
- func (m *IndividualTwilightReserveAccountBalance) Unmarshal(dAtA []byte) error
- func (m *IndividualTwilightReserveAccountBalance) XXX_DiscardUnknown()
- func (m *IndividualTwilightReserveAccountBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IndividualTwilightReserveAccountBalance) XXX_Merge(src proto.Message)
- func (m *IndividualTwilightReserveAccountBalance) XXX_Size() int
- func (m *IndividualTwilightReserveAccountBalance) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryBtcReserveRequest
- func (*QueryBtcReserveRequest) Descriptor() ([]byte, []int)
- func (m *QueryBtcReserveRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBtcReserveRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBtcReserveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBtcReserveRequest) ProtoMessage()
- func (m *QueryBtcReserveRequest) Reset()
- func (m *QueryBtcReserveRequest) Size() (n int)
- func (m *QueryBtcReserveRequest) String() string
- func (m *QueryBtcReserveRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBtcReserveRequest) XXX_DiscardUnknown()
- func (m *QueryBtcReserveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBtcReserveRequest) XXX_Merge(src proto.Message)
- func (m *QueryBtcReserveRequest) XXX_Size() int
- func (m *QueryBtcReserveRequest) XXX_Unmarshal(b []byte) error
- type QueryBtcReserveResponse
- func (*QueryBtcReserveResponse) Descriptor() ([]byte, []int)
- func (m *QueryBtcReserveResponse) GetBtcReserves() []BtcReserve
- func (m *QueryBtcReserveResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBtcReserveResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBtcReserveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBtcReserveResponse) ProtoMessage()
- func (m *QueryBtcReserveResponse) Reset()
- func (m *QueryBtcReserveResponse) Size() (n int)
- func (m *QueryBtcReserveResponse) String() string
- func (m *QueryBtcReserveResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBtcReserveResponse) XXX_DiscardUnknown()
- func (m *QueryBtcReserveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBtcReserveResponse) XXX_Merge(src proto.Message)
- func (m *QueryBtcReserveResponse) XXX_Size() int
- func (m *QueryBtcReserveResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "volt" // 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_volt" )
const (
// BtcReserveMaxLimit is the total number of reserves
BtcReserveMaxLimit = 25
)
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrInvalidLengthClearing = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClearing = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClearing = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrBtcReserveMaxLimitReached = sdkerrors.Register(ModuleName, 1, "Btc max reserve limit reached") ErrBtcReserveNotFound = sdkerrors.Register(ModuleName, 2, "Btc reserve not found") ErrInsufficientBtcValue = sdkerrors.Register(ModuleName, 3, "Insufficient Btc value") ErrClearingAccountNotFound = sdkerrors.Register(ModuleName, 4, "Clearing account not found") )
x/volt module sentinel errors
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 ( // TwilightClearingAccountKey indexes clearing accounts according to users twilight address TwilightClearingAccountKey = forkstypes.HashString("TwilightClearingAccountKey") // KeyReserve indexes the reserve KeyReserve BtcReserveKey = forkstypes.HashString("BtcKeyReserve") // LastRegisteredReserveKey indexes the reserve LastRegisteredReserveKey LastRegisteredReserveKey = forkstypes.HashString("LastRegisteredReserveKey") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func GetClearingAccountKey ¶
func GetClearingAccountKey(twilightAddress sdk.AccAddress) []byte
GetClearingAccountKey returns the following key format [HashString("GetClearingAccountKey")][twilight1ahx7f8wyertuus9r20284ej0asrs085ceqtfnm]
func GetReserveKey ¶
GetReserveKey returns the following key format prefix reserve-key, reserve-address
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
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 AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type BridgeKeeper ¶
type BridgeKeeper interface { }
type BtcReserve ¶
type BtcReserve struct { ReserveId uint64 `protobuf:"varint,1,opt,name=ReserveId,proto3" json:"ReserveId,omitempty"` ReserveAddress string `protobuf:"bytes,2,opt,name=ReserveAddress,proto3" json:"ReserveAddress,omitempty"` JudgeAddress string `protobuf:"bytes,3,opt,name=JudgeAddress,proto3" json:"JudgeAddress,omitempty"` BtcRelayCapacityValue uint64 `protobuf:"varint,4,opt,name=BtcRelayCapacityValue,proto3" json:"BtcRelayCapacityValue,omitempty"` TotalValue uint64 `protobuf:"varint,5,opt,name=TotalValue,proto3" json:"TotalValue,omitempty"` PrivatePoolValue uint64 `protobuf:"varint,6,opt,name=PrivatePoolValue,proto3" json:"PrivatePoolValue,omitempty"` PublicValue uint64 `protobuf:"varint,7,opt,name=PublicValue,proto3" json:"PublicValue,omitempty"` FeePool uint64 `protobuf:"varint,8,opt,name=FeePool,proto3" json:"FeePool,omitempty"` }
BtcReserve is a mapping of a validator address to a reserve ID It holds other values in the reserve struct such as total value, private pool value, public pool value, and the btc relay capacity value
func (*BtcReserve) Descriptor ¶
func (*BtcReserve) Descriptor() ([]byte, []int)
func (*BtcReserve) GetBtcRelayCapacityValue ¶
func (m *BtcReserve) GetBtcRelayCapacityValue() uint64
func (*BtcReserve) GetFeePool ¶
func (m *BtcReserve) GetFeePool() uint64
func (*BtcReserve) GetJudgeAddress ¶
func (m *BtcReserve) GetJudgeAddress() string
func (*BtcReserve) GetPrivatePoolValue ¶
func (m *BtcReserve) GetPrivatePoolValue() uint64
func (*BtcReserve) GetPublicValue ¶
func (m *BtcReserve) GetPublicValue() uint64
func (*BtcReserve) GetReserveAddress ¶
func (m *BtcReserve) GetReserveAddress() string
func (*BtcReserve) GetReserveId ¶
func (m *BtcReserve) GetReserveId() uint64
func (*BtcReserve) GetTotalValue ¶
func (m *BtcReserve) GetTotalValue() uint64
func (*BtcReserve) Marshal ¶
func (m *BtcReserve) Marshal() (dAtA []byte, err error)
func (*BtcReserve) MarshalToSizedBuffer ¶
func (m *BtcReserve) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BtcReserve) ProtoMessage ¶
func (*BtcReserve) ProtoMessage()
func (*BtcReserve) Reset ¶
func (m *BtcReserve) Reset()
func (*BtcReserve) Size ¶
func (m *BtcReserve) Size() (n int)
func (*BtcReserve) String ¶
func (m *BtcReserve) String() string
func (*BtcReserve) Unmarshal ¶
func (m *BtcReserve) Unmarshal(dAtA []byte) error
func (*BtcReserve) XXX_DiscardUnknown ¶
func (m *BtcReserve) XXX_DiscardUnknown()
func (*BtcReserve) XXX_Marshal ¶
func (m *BtcReserve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BtcReserve) XXX_Merge ¶
func (m *BtcReserve) XXX_Merge(src proto.Message)
func (*BtcReserve) XXX_Size ¶
func (m *BtcReserve) XXX_Size() int
func (*BtcReserve) XXX_Unmarshal ¶
func (m *BtcReserve) XXX_Unmarshal(b []byte) error
type ClearingAccount ¶
type ClearingAccount struct { TwilightAddress string `protobuf:"bytes,1,opt,name=TwilightAddress,proto3" json:"TwilightAddress,omitempty"` BtcDepositAddress string `protobuf:"bytes,2,opt,name=BtcDepositAddress,proto3" json:"BtcDepositAddress,omitempty"` BtcWithdrawAddress string `protobuf:"bytes,3,opt,name=BtcWithdrawAddress,proto3" json:"BtcWithdrawAddress,omitempty"` QQDepositAddress string `protobuf:"bytes,4,opt,name=QQDepositAddress,proto3" json:"QQDepositAddress,omitempty"` QQWithdrawAddress string `protobuf:"bytes,5,opt,name=QQWithdrawAddress,proto3" json:"QQWithdrawAddress,omitempty"` ReserveAccountBalances []*IndividualTwilightReserveAccountBalance `protobuf:"bytes,6,rep,name=ReserveAccountBalances,proto3" json:"ReserveAccountBalances,omitempty"` }
ClearingAccount is used to keep a mapping of how a user's addresses and its reserve account balances
func (*ClearingAccount) Descriptor ¶
func (*ClearingAccount) Descriptor() ([]byte, []int)
func (*ClearingAccount) GetBtcDepositAddress ¶
func (m *ClearingAccount) GetBtcDepositAddress() string
func (*ClearingAccount) GetBtcWithdrawAddress ¶
func (m *ClearingAccount) GetBtcWithdrawAddress() string
func (*ClearingAccount) GetQQDepositAddress ¶
func (m *ClearingAccount) GetQQDepositAddress() string
func (*ClearingAccount) GetQQWithdrawAddress ¶
func (m *ClearingAccount) GetQQWithdrawAddress() string
func (*ClearingAccount) GetReserveAccountBalances ¶
func (m *ClearingAccount) GetReserveAccountBalances() []*IndividualTwilightReserveAccountBalance
func (*ClearingAccount) GetTwilightAddress ¶
func (m *ClearingAccount) GetTwilightAddress() string
func (*ClearingAccount) Marshal ¶
func (m *ClearingAccount) Marshal() (dAtA []byte, err error)
func (*ClearingAccount) MarshalToSizedBuffer ¶
func (m *ClearingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClearingAccount) ProtoMessage ¶
func (*ClearingAccount) ProtoMessage()
func (*ClearingAccount) Reset ¶
func (m *ClearingAccount) Reset()
func (*ClearingAccount) Size ¶
func (m *ClearingAccount) Size() (n int)
func (*ClearingAccount) String ¶
func (m *ClearingAccount) String() string
func (*ClearingAccount) Unmarshal ¶
func (m *ClearingAccount) Unmarshal(dAtA []byte) error
func (*ClearingAccount) XXX_DiscardUnknown ¶
func (m *ClearingAccount) XXX_DiscardUnknown()
func (*ClearingAccount) XXX_Marshal ¶
func (m *ClearingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClearingAccount) XXX_Merge ¶
func (m *ClearingAccount) XXX_Merge(src proto.Message)
func (*ClearingAccount) XXX_Size ¶
func (m *ClearingAccount) XXX_Size() int
func (*ClearingAccount) XXX_Unmarshal ¶
func (m *ClearingAccount) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState defines the volt module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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 IndividualTwilightReserveAccountBalance ¶
type IndividualTwilightReserveAccountBalance struct { ReserveId uint64 `protobuf:"varint,1,opt,name=ReserveId,proto3" json:"ReserveId,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"` }
func (*IndividualTwilightReserveAccountBalance) Descriptor ¶
func (*IndividualTwilightReserveAccountBalance) Descriptor() ([]byte, []int)
func (*IndividualTwilightReserveAccountBalance) GetAmount ¶
func (m *IndividualTwilightReserveAccountBalance) GetAmount() uint64
func (*IndividualTwilightReserveAccountBalance) GetReserveId ¶
func (m *IndividualTwilightReserveAccountBalance) GetReserveId() uint64
func (*IndividualTwilightReserveAccountBalance) Marshal ¶
func (m *IndividualTwilightReserveAccountBalance) Marshal() (dAtA []byte, err error)
func (*IndividualTwilightReserveAccountBalance) MarshalTo ¶
func (m *IndividualTwilightReserveAccountBalance) MarshalTo(dAtA []byte) (int, error)
func (*IndividualTwilightReserveAccountBalance) MarshalToSizedBuffer ¶
func (m *IndividualTwilightReserveAccountBalance) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IndividualTwilightReserveAccountBalance) ProtoMessage ¶
func (*IndividualTwilightReserveAccountBalance) ProtoMessage()
func (*IndividualTwilightReserveAccountBalance) Reset ¶
func (m *IndividualTwilightReserveAccountBalance) Reset()
func (*IndividualTwilightReserveAccountBalance) Size ¶
func (m *IndividualTwilightReserveAccountBalance) Size() (n int)
func (*IndividualTwilightReserveAccountBalance) String ¶
func (m *IndividualTwilightReserveAccountBalance) String() string
func (*IndividualTwilightReserveAccountBalance) Unmarshal ¶
func (m *IndividualTwilightReserveAccountBalance) Unmarshal(dAtA []byte) error
func (*IndividualTwilightReserveAccountBalance) XXX_DiscardUnknown ¶
func (m *IndividualTwilightReserveAccountBalance) XXX_DiscardUnknown()
func (*IndividualTwilightReserveAccountBalance) XXX_Marshal ¶
func (m *IndividualTwilightReserveAccountBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IndividualTwilightReserveAccountBalance) XXX_Merge ¶
func (m *IndividualTwilightReserveAccountBalance) XXX_Merge(src proto.Message)
func (*IndividualTwilightReserveAccountBalance) XXX_Size ¶
func (m *IndividualTwilightReserveAccountBalance) XXX_Size() int
func (*IndividualTwilightReserveAccountBalance) XXX_Unmarshal ¶
func (m *IndividualTwilightReserveAccountBalance) 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 Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryBtcReserveRequest ¶
type QueryBtcReserveRequest struct { }
func (*QueryBtcReserveRequest) Descriptor ¶
func (*QueryBtcReserveRequest) Descriptor() ([]byte, []int)
func (*QueryBtcReserveRequest) Marshal ¶
func (m *QueryBtcReserveRequest) Marshal() (dAtA []byte, err error)
func (*QueryBtcReserveRequest) MarshalTo ¶
func (m *QueryBtcReserveRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBtcReserveRequest) MarshalToSizedBuffer ¶
func (m *QueryBtcReserveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBtcReserveRequest) ProtoMessage ¶
func (*QueryBtcReserveRequest) ProtoMessage()
func (*QueryBtcReserveRequest) Reset ¶
func (m *QueryBtcReserveRequest) Reset()
func (*QueryBtcReserveRequest) Size ¶
func (m *QueryBtcReserveRequest) Size() (n int)
func (*QueryBtcReserveRequest) String ¶
func (m *QueryBtcReserveRequest) String() string
func (*QueryBtcReserveRequest) Unmarshal ¶
func (m *QueryBtcReserveRequest) Unmarshal(dAtA []byte) error
func (*QueryBtcReserveRequest) XXX_DiscardUnknown ¶
func (m *QueryBtcReserveRequest) XXX_DiscardUnknown()
func (*QueryBtcReserveRequest) XXX_Marshal ¶
func (m *QueryBtcReserveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBtcReserveRequest) XXX_Merge ¶
func (m *QueryBtcReserveRequest) XXX_Merge(src proto.Message)
func (*QueryBtcReserveRequest) XXX_Size ¶
func (m *QueryBtcReserveRequest) XXX_Size() int
func (*QueryBtcReserveRequest) XXX_Unmarshal ¶
func (m *QueryBtcReserveRequest) XXX_Unmarshal(b []byte) error
type QueryBtcReserveResponse ¶
type QueryBtcReserveResponse struct {
BtcReserves []BtcReserve `protobuf:"bytes,1,rep,name=BtcReserves,proto3" json:"BtcReserves"`
}
func (*QueryBtcReserveResponse) Descriptor ¶
func (*QueryBtcReserveResponse) Descriptor() ([]byte, []int)
func (*QueryBtcReserveResponse) GetBtcReserves ¶
func (m *QueryBtcReserveResponse) GetBtcReserves() []BtcReserve
func (*QueryBtcReserveResponse) Marshal ¶
func (m *QueryBtcReserveResponse) Marshal() (dAtA []byte, err error)
func (*QueryBtcReserveResponse) MarshalTo ¶
func (m *QueryBtcReserveResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBtcReserveResponse) MarshalToSizedBuffer ¶
func (m *QueryBtcReserveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBtcReserveResponse) ProtoMessage ¶
func (*QueryBtcReserveResponse) ProtoMessage()
func (*QueryBtcReserveResponse) Reset ¶
func (m *QueryBtcReserveResponse) Reset()
func (*QueryBtcReserveResponse) Size ¶
func (m *QueryBtcReserveResponse) Size() (n int)
func (*QueryBtcReserveResponse) String ¶
func (m *QueryBtcReserveResponse) String() string
func (*QueryBtcReserveResponse) Unmarshal ¶
func (m *QueryBtcReserveResponse) Unmarshal(dAtA []byte) error
func (*QueryBtcReserveResponse) XXX_DiscardUnknown ¶
func (m *QueryBtcReserveResponse) XXX_DiscardUnknown()
func (*QueryBtcReserveResponse) XXX_Marshal ¶
func (m *QueryBtcReserveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBtcReserveResponse) XXX_Merge ¶
func (m *QueryBtcReserveResponse) XXX_Merge(src proto.Message)
func (*QueryBtcReserveResponse) XXX_Size ¶
func (m *QueryBtcReserveResponse) XXX_Size() int
func (*QueryBtcReserveResponse) XXX_Unmarshal ¶
func (m *QueryBtcReserveResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of BtcReserve items. BtcReserve(ctx context.Context, in *QueryBtcReserveRequest, opts ...grpc.CallOption) (*QueryBtcReserveResponse, 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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of BtcReserve items. BtcReserve(context.Context, *QueryBtcReserveRequest) (*QueryBtcReserveResponse, 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) BtcReserve ¶
func (*UnimplementedQueryServer) BtcReserve(ctx context.Context, req *QueryBtcReserveRequest) (*QueryBtcReserveResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)