Documentation ¶
Index ¶
- func MustMarshalAllowedAddress(cdc codec.BinaryCodec, addr *types.AdminAddr) []byte
- func MustMarshalExchangeRate(cdc codec.BinaryCodec, r *types.ExchangeRate) []byte
- func MustUnmarshalAllowedAddress(cdc codec.BinaryCodec, value []byte) types.AdminAddr
- func MustUnmarshalExchangeRate(cdc codec.BinaryCodec, value []byte) types.ExchangeRate
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- func UnmarshalAllowedAddress(cdc codec.BinaryCodec, value []byte) (addr types.AdminAddr, err error)
- func UnmarshalExchangeRate(cdc codec.BinaryCodec, value []byte) (r types.ExchangeRate, err error)
- type Keeper
- func (k Keeper) AdminAddrAll(c context.Context, req *types.QueryAllAdminAddrRequest) (*types.QueryAllAdminAddrResponse, error)
- func (k Keeper) AllExchangeRates(c context.Context, req *types.QueryAllExchangeRatesRequest) (*types.QueryAllExchangeRatesResponse, error)
- func (k Keeper) DeleteAllowedAddresses(ctx sdk.Context, sender sdk.AccAddress, addrs []types.AdminAddr) error
- func (k Keeper) DeleteExchangeRate(ctx sdk.Context, sender sdk.AccAddress, pair string) error
- func (k Keeper) DeleteExchangeRates(ctx sdk.Context, sender sdk.AccAddress, pairs []string) error
- func (k Keeper) ExchangeRate(c context.Context, req *types.QueryExchangeRateRequest) (*types.QueryExchangeRateResponse, error)
- func (k Keeper) GetAllExchangeRates(ctx sdk.Context) (rates []types.ExchangeRate)
- func (k Keeper) GetAllowedAddress(ctx sdk.Context, addr sdk.AccAddress) (types.AdminAddr, bool)
- func (k Keeper) GetAllowedAddresses(ctx sdk.Context) (allowedAddresses []types.AdminAddr)
- func (k Keeper) GetExchangeRate(ctx sdk.Context, pair string) (exchangeRate types.ExchangeRate, found bool)
- func (k Keeper) IsAllowedAddress(ctx sdk.Context, addr sdk.AccAddress) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetAdminAddr(ctx sdk.Context, sender sdk.AccAddress, add []types.AdminAddr, ...) error
- func (k Keeper) SetAllowedAddresses(ctx sdk.Context, sender sdk.AccAddress, addrs []types.AdminAddr) error
- func (k Keeper) SetAllowedAddressesInternal(ctx sdk.Context, addrs []*types.AdminAddr) error
- func (k Keeper) SetExchangeRate(ctx sdk.Context, sender sdk.AccAddress, rate *types.ExchangeRate) error
- func (k Keeper) SetExchangeRates(ctx sdk.Context, sender sdk.AccAddress, rates []*types.ExchangeRate) error
- func (k Keeper) SetTestAllowedAddresses(ctx sdk.Context, addrs []types.AdminAddr) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustMarshalAllowedAddress ¶ added in v0.4.1
func MustMarshalAllowedAddress(cdc codec.BinaryCodec, addr *types.AdminAddr) []byte
func MustMarshalExchangeRate ¶ added in v0.4.1
func MustMarshalExchangeRate(cdc codec.BinaryCodec, r *types.ExchangeRate) []byte
func MustUnmarshalAllowedAddress ¶ added in v0.4.1
func MustUnmarshalAllowedAddress(cdc codec.BinaryCodec, value []byte) types.AdminAddr
func MustUnmarshalExchangeRate ¶ added in v0.4.1
func MustUnmarshalExchangeRate(cdc codec.BinaryCodec, value []byte) types.ExchangeRate
func NewMsgServerImpl ¶ added in v0.4.1
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
func UnmarshalAllowedAddress ¶ added in v0.4.1
func UnmarshalExchangeRate ¶ added in v0.4.1
func UnmarshalExchangeRate(cdc codec.BinaryCodec, value []byte) (r types.ExchangeRate, err error)
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AdminAddrAll ¶ added in v0.4.1
func (k Keeper) AdminAddrAll(c context.Context, req *types.QueryAllAdminAddrRequest) (*types.QueryAllAdminAddrResponse, error)
func (Keeper) AllExchangeRates ¶ added in v0.4.1
func (k Keeper) AllExchangeRates(c context.Context, req *types.QueryAllExchangeRatesRequest) (*types.QueryAllExchangeRatesResponse, error)
func (Keeper) DeleteAllowedAddresses ¶
func (Keeper) DeleteExchangeRate ¶
func (Keeper) DeleteExchangeRates ¶ added in v0.4.1
func (Keeper) ExchangeRate ¶
func (k Keeper) ExchangeRate(c context.Context, req *types.QueryExchangeRateRequest) (*types.QueryExchangeRateResponse, error)
func (Keeper) GetAllExchangeRates ¶ added in v0.4.1
func (k Keeper) GetAllExchangeRates(ctx sdk.Context) (rates []types.ExchangeRate)
func (Keeper) GetAllowedAddress ¶ added in v0.4.1
func (Keeper) GetAllowedAddresses ¶
func (Keeper) GetExchangeRate ¶
func (Keeper) IsAllowedAddress ¶ added in v0.4.1
func (Keeper) SetAdminAddr ¶
func (Keeper) SetAllowedAddresses ¶
func (Keeper) SetAllowedAddressesInternal ¶ added in v0.4.1
func (Keeper) SetExchangeRate ¶
func (k Keeper) SetExchangeRate(ctx sdk.Context, sender sdk.AccAddress, rate *types.ExchangeRate) error
func (Keeper) SetExchangeRates ¶ added in v0.4.1
func (k Keeper) SetExchangeRates(ctx sdk.Context, sender sdk.AccAddress, rates []*types.ExchangeRate) error
Source Files ¶
- admin_addr.go
- exchange_rate.go
- grpc_query.go
- grpc_query_admin_addr.go
- grpc_query_exchange_rate.go
- grpc_query_params.go
- keeper.go
- msg_server.go
- msg_server_delete_exchange_rate.go
- msg_server_delete_exchange_rates.go
- msg_server_set_admin_addr.go
- msg_server_set_exchange_rate.go
- msg_server_set_exchange_rates.go
- params.go
- querier.go
- test_helper.go
Click to show internal directories.
Click to hide internal directories.