types

package
v0.21.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

	// 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_stablecoin"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const StableEFModuleAccount = "stable_ef"

Stable Ecosystem Fund

Variables

View Source
var (
	NoCoinFound            = sdkerrors.Register(ModuleName, 1, "No coin found")
	NotEnoughBalance       = sdkerrors.Register(ModuleName, 2, "Not enough balance")
	NoValidCollateralRatio = sdkerrors.Register(ModuleName, 3, "No valid collateral ratio, waiting for new prices")
)

x/stablecoin module sentinel errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

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 RegisterMsgHandler added in v0.1.0

func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMsgHandlerClient added in v0.1.0

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.

func RegisterMsgHandlerFromEndpoint added in v0.1.0

func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMsgHandlerServer added in v0.1.0

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	SetAccount(sdk.Context, authtypes.AccountI)
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(
		ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string,
		amt sdk.Coins,
	) error
	SendCoinsFromModuleToAccount(
		ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress,
		amt sdk.Coins,
	) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type EventBurnNIBI added in v0.5.0

type EventBurnNIBI struct {
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*EventBurnNIBI) Descriptor added in v0.5.0

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

func (*EventBurnNIBI) Marshal added in v0.5.0

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

func (*EventBurnNIBI) MarshalTo added in v0.5.0

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

func (*EventBurnNIBI) MarshalToSizedBuffer added in v0.5.0

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

func (*EventBurnNIBI) ProtoMessage added in v0.5.0

func (*EventBurnNIBI) ProtoMessage()

func (*EventBurnNIBI) Reset added in v0.5.0

func (m *EventBurnNIBI) Reset()

func (*EventBurnNIBI) Size added in v0.5.0

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

func (*EventBurnNIBI) String added in v0.5.0

func (m *EventBurnNIBI) String() string

func (*EventBurnNIBI) Unmarshal added in v0.5.0

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

func (*EventBurnNIBI) XXX_DiscardUnknown added in v0.5.0

func (m *EventBurnNIBI) XXX_DiscardUnknown()

func (*EventBurnNIBI) XXX_Marshal added in v0.5.0

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

func (*EventBurnNIBI) XXX_Merge added in v0.5.0

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

func (*EventBurnNIBI) XXX_Size added in v0.5.0

func (m *EventBurnNIBI) XXX_Size() int

func (*EventBurnNIBI) XXX_Unmarshal added in v0.5.0

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

type EventBurnStable added in v0.5.0

type EventBurnStable struct {
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*EventBurnStable) Descriptor added in v0.5.0

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

func (*EventBurnStable) Marshal added in v0.5.0

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

func (*EventBurnStable) MarshalTo added in v0.5.0

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

func (*EventBurnStable) MarshalToSizedBuffer added in v0.5.0

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

func (*EventBurnStable) ProtoMessage added in v0.5.0

func (*EventBurnStable) ProtoMessage()

func (*EventBurnStable) Reset added in v0.5.0

func (m *EventBurnStable) Reset()

func (*EventBurnStable) Size added in v0.5.0

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

func (*EventBurnStable) String added in v0.5.0

func (m *EventBurnStable) String() string

func (*EventBurnStable) Unmarshal added in v0.5.0

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

func (*EventBurnStable) XXX_DiscardUnknown added in v0.5.0

func (m *EventBurnStable) XXX_DiscardUnknown()

func (*EventBurnStable) XXX_Marshal added in v0.5.0

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

func (*EventBurnStable) XXX_Merge added in v0.5.0

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

func (*EventBurnStable) XXX_Size added in v0.5.0

func (m *EventBurnStable) XXX_Size() int

func (*EventBurnStable) XXX_Unmarshal added in v0.5.0

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

type EventBuyback added in v0.5.0

type EventBuyback struct {
	Caller    string                                 `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"`
	InCoin    types.Coin                             `protobuf:"bytes,2,opt,name=in_coin,json=inCoin,proto3" json:"in_coin"`
	OutCoin   types.Coin                             `protobuf:"bytes,3,opt,name=out_coin,json=outCoin,proto3" json:"out_coin"`
	CollRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
}

func (*EventBuyback) Descriptor added in v0.5.0

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

func (*EventBuyback) GetCaller added in v0.5.0

func (m *EventBuyback) GetCaller() string

func (*EventBuyback) GetInCoin added in v0.5.0

func (m *EventBuyback) GetInCoin() types.Coin

func (*EventBuyback) GetOutCoin added in v0.5.0

func (m *EventBuyback) GetOutCoin() types.Coin

func (*EventBuyback) Marshal added in v0.5.0

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

func (*EventBuyback) MarshalTo added in v0.5.0

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

func (*EventBuyback) MarshalToSizedBuffer added in v0.5.0

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

func (*EventBuyback) ProtoMessage added in v0.5.0

func (*EventBuyback) ProtoMessage()

func (*EventBuyback) Reset added in v0.5.0

func (m *EventBuyback) Reset()

func (*EventBuyback) Size added in v0.5.0

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

func (*EventBuyback) String added in v0.5.0

func (m *EventBuyback) String() string

func (*EventBuyback) Unmarshal added in v0.5.0

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

func (*EventBuyback) XXX_DiscardUnknown added in v0.5.0

func (m *EventBuyback) XXX_DiscardUnknown()

func (*EventBuyback) XXX_Marshal added in v0.5.0

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

func (*EventBuyback) XXX_Merge added in v0.5.0

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

func (*EventBuyback) XXX_Size added in v0.5.0

func (m *EventBuyback) XXX_Size() int

func (*EventBuyback) XXX_Unmarshal added in v0.5.0

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

type EventMintNIBI added in v0.5.0

type EventMintNIBI struct {
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*EventMintNIBI) Descriptor added in v0.5.0

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

func (*EventMintNIBI) Marshal added in v0.5.0

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

func (*EventMintNIBI) MarshalTo added in v0.5.0

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

func (*EventMintNIBI) MarshalToSizedBuffer added in v0.5.0

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

func (*EventMintNIBI) ProtoMessage added in v0.5.0

func (*EventMintNIBI) ProtoMessage()

func (*EventMintNIBI) Reset added in v0.5.0

func (m *EventMintNIBI) Reset()

func (*EventMintNIBI) Size added in v0.5.0

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

func (*EventMintNIBI) String added in v0.5.0

func (m *EventMintNIBI) String() string

func (*EventMintNIBI) Unmarshal added in v0.5.0

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

func (*EventMintNIBI) XXX_DiscardUnknown added in v0.5.0

func (m *EventMintNIBI) XXX_DiscardUnknown()

func (*EventMintNIBI) XXX_Marshal added in v0.5.0

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

func (*EventMintNIBI) XXX_Merge added in v0.5.0

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

func (*EventMintNIBI) XXX_Size added in v0.5.0

func (m *EventMintNIBI) XXX_Size() int

func (*EventMintNIBI) XXX_Unmarshal added in v0.5.0

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

type EventMintStable added in v0.5.0

type EventMintStable struct {
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*EventMintStable) Descriptor added in v0.5.0

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

func (*EventMintStable) Marshal added in v0.5.0

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

func (*EventMintStable) MarshalTo added in v0.5.0

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

func (*EventMintStable) MarshalToSizedBuffer added in v0.5.0

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

func (*EventMintStable) ProtoMessage added in v0.5.0

func (*EventMintStable) ProtoMessage()

func (*EventMintStable) Reset added in v0.5.0

func (m *EventMintStable) Reset()

func (*EventMintStable) Size added in v0.5.0

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

func (*EventMintStable) String added in v0.5.0

func (m *EventMintStable) String() string

func (*EventMintStable) Unmarshal added in v0.5.0

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

func (*EventMintStable) XXX_DiscardUnknown added in v0.5.0

func (m *EventMintStable) XXX_DiscardUnknown()

func (*EventMintStable) XXX_Marshal added in v0.5.0

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

func (*EventMintStable) XXX_Merge added in v0.5.0

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

func (*EventMintStable) XXX_Size added in v0.5.0

func (m *EventMintStable) XXX_Size() int

func (*EventMintStable) XXX_Unmarshal added in v0.5.0

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

type EventRecollateralize added in v0.5.0

type EventRecollateralize struct {
	Caller    string                                 `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"`
	InCoin    types.Coin                             `protobuf:"bytes,2,opt,name=in_coin,json=inCoin,proto3" json:"in_coin"`
	OutCoin   types.Coin                             `protobuf:"bytes,3,opt,name=out_coin,json=outCoin,proto3" json:"out_coin"`
	CollRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
}

func (*EventRecollateralize) Descriptor added in v0.5.0

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

func (*EventRecollateralize) GetCaller added in v0.5.0

func (m *EventRecollateralize) GetCaller() string

func (*EventRecollateralize) GetInCoin added in v0.5.0

func (m *EventRecollateralize) GetInCoin() types.Coin

func (*EventRecollateralize) GetOutCoin added in v0.5.0

func (m *EventRecollateralize) GetOutCoin() types.Coin

func (*EventRecollateralize) Marshal added in v0.5.0

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

func (*EventRecollateralize) MarshalTo added in v0.5.0

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

func (*EventRecollateralize) MarshalToSizedBuffer added in v0.5.0

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

func (*EventRecollateralize) ProtoMessage added in v0.5.0

func (*EventRecollateralize) ProtoMessage()

func (*EventRecollateralize) Reset added in v0.5.0

func (m *EventRecollateralize) Reset()

func (*EventRecollateralize) Size added in v0.5.0

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

func (*EventRecollateralize) String added in v0.5.0

func (m *EventRecollateralize) String() string

func (*EventRecollateralize) Unmarshal added in v0.5.0

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

func (*EventRecollateralize) XXX_DiscardUnknown added in v0.5.0

func (m *EventRecollateralize) XXX_DiscardUnknown()

func (*EventRecollateralize) XXX_Marshal added in v0.5.0

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

func (*EventRecollateralize) XXX_Merge added in v0.5.0

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

func (*EventRecollateralize) XXX_Size added in v0.5.0

func (m *EventRecollateralize) XXX_Size() int

func (*EventRecollateralize) XXX_Unmarshal added in v0.5.0

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

type EventTransfer added in v0.5.0

type EventTransfer struct {
	Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin"`
	From string     `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To   string     `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
}

func (*EventTransfer) Descriptor added in v0.5.0

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

func (*EventTransfer) GetCoin added in v0.5.0

func (m *EventTransfer) GetCoin() types.Coin

func (*EventTransfer) GetFrom added in v0.5.0

func (m *EventTransfer) GetFrom() string

func (*EventTransfer) GetTo added in v0.5.0

func (m *EventTransfer) GetTo() string

func (*EventTransfer) Marshal added in v0.5.0

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

func (*EventTransfer) MarshalTo added in v0.5.0

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

func (*EventTransfer) MarshalToSizedBuffer added in v0.5.0

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

func (*EventTransfer) ProtoMessage added in v0.5.0

func (*EventTransfer) ProtoMessage()

func (*EventTransfer) Reset added in v0.5.0

func (m *EventTransfer) Reset()

func (*EventTransfer) Size added in v0.5.0

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

func (*EventTransfer) String added in v0.5.0

func (m *EventTransfer) String() string

func (*EventTransfer) Unmarshal added in v0.5.0

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

func (*EventTransfer) XXX_DiscardUnknown added in v0.5.0

func (m *EventTransfer) XXX_DiscardUnknown()

func (*EventTransfer) XXX_Marshal added in v0.5.0

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

func (*EventTransfer) XXX_Merge added in v0.5.0

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

func (*EventTransfer) XXX_Size added in v0.5.0

func (m *EventTransfer) XXX_Size() int

func (*EventTransfer) XXX_Unmarshal added in v0.5.0

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

type GenesisState

type GenesisState struct {
	Params               Params     `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	ModuleAccountBalance types.Coin `` /* 143-byte string literal not displayed */
}

GenesisState defines the stablecoin 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) GetModuleAccountBalance

func (m *GenesisState) GetModuleAccountBalance() types.Coin

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type LiquidityRatioInfo added in v0.1.0

type LiquidityRatioInfo struct {
	LiquidityRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
	UpperBand      github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
	LowerBand      github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
}

func (*LiquidityRatioInfo) Descriptor added in v0.1.0

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

func (*LiquidityRatioInfo) Marshal added in v0.1.0

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

func (*LiquidityRatioInfo) MarshalTo added in v0.1.0

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

func (*LiquidityRatioInfo) MarshalToSizedBuffer added in v0.1.0

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

func (*LiquidityRatioInfo) ProtoMessage added in v0.1.0

func (*LiquidityRatioInfo) ProtoMessage()

func (*LiquidityRatioInfo) Reset added in v0.1.0

func (m *LiquidityRatioInfo) Reset()

func (*LiquidityRatioInfo) Size added in v0.1.0

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

func (*LiquidityRatioInfo) String added in v0.1.0

func (m *LiquidityRatioInfo) String() string

func (*LiquidityRatioInfo) Unmarshal added in v0.1.0

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

func (*LiquidityRatioInfo) XXX_DiscardUnknown added in v0.1.0

func (m *LiquidityRatioInfo) XXX_DiscardUnknown()

func (*LiquidityRatioInfo) XXX_Marshal added in v0.1.0

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

func (*LiquidityRatioInfo) XXX_Merge added in v0.1.0

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

func (*LiquidityRatioInfo) XXX_Size added in v0.1.0

func (m *LiquidityRatioInfo) XXX_Size() int

func (*LiquidityRatioInfo) XXX_Unmarshal added in v0.1.0

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

type MsgBurnStable

type MsgBurnStable struct {
	Creator string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Stable  types.Coin `protobuf:"bytes,2,opt,name=stable,proto3" json:"stable"`
}

MsgBurnStable allows users to burn NUSD in exchange for NIBI and collateral. The amount of NIBI and Collateral received depends on the current price set by the x/oracle library and the current collateral ratio.

func NewMsgBurn

func NewMsgBurn(creator string, coin sdk.Coin) *MsgBurnStable

func (*MsgBurnStable) Descriptor

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

func (*MsgBurnStable) GetCreator

func (m *MsgBurnStable) GetCreator() string

func (*MsgBurnStable) GetSignBytes

func (msg *MsgBurnStable) GetSignBytes() []byte

func (*MsgBurnStable) GetSigners

func (msg *MsgBurnStable) GetSigners() []sdk.AccAddress

func (*MsgBurnStable) GetStable

func (m *MsgBurnStable) GetStable() types.Coin

func (*MsgBurnStable) Marshal

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

func (*MsgBurnStable) MarshalTo

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

func (*MsgBurnStable) MarshalToSizedBuffer

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

func (*MsgBurnStable) ProtoMessage

func (*MsgBurnStable) ProtoMessage()

func (*MsgBurnStable) Reset

func (m *MsgBurnStable) Reset()

func (*MsgBurnStable) Size

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

func (*MsgBurnStable) String

func (m *MsgBurnStable) String() string

func (*MsgBurnStable) Unmarshal

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

func (*MsgBurnStable) ValidateBasic

func (msg *MsgBurnStable) ValidateBasic() error

func (*MsgBurnStable) XXX_DiscardUnknown

func (m *MsgBurnStable) XXX_DiscardUnknown()

func (*MsgBurnStable) XXX_Marshal

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

func (*MsgBurnStable) XXX_Merge

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

func (*MsgBurnStable) XXX_Size

func (m *MsgBurnStable) XXX_Size() int

func (*MsgBurnStable) XXX_Unmarshal

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

type MsgBurnStableResponse

type MsgBurnStableResponse struct {
	Collateral types.Coin                               `protobuf:"bytes,1,opt,name=collateral,proto3" json:"collateral"`
	Gov        types.Coin                               `protobuf:"bytes,2,opt,name=gov,proto3" json:"gov"`
	FeesPayed  github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

MsgBurnStableResponse specifies the amount of collateral and governance token the user will receive after their burn transaction.

func (*MsgBurnStableResponse) Descriptor

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

func (*MsgBurnStableResponse) GetCollateral

func (m *MsgBurnStableResponse) GetCollateral() types.Coin

func (*MsgBurnStableResponse) GetFeesPayed

func (*MsgBurnStableResponse) GetGov

func (m *MsgBurnStableResponse) GetGov() types.Coin

func (*MsgBurnStableResponse) Marshal

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

func (*MsgBurnStableResponse) MarshalTo

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

func (*MsgBurnStableResponse) MarshalToSizedBuffer

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

func (*MsgBurnStableResponse) ProtoMessage

func (*MsgBurnStableResponse) ProtoMessage()

func (*MsgBurnStableResponse) Reset

func (m *MsgBurnStableResponse) Reset()

func (*MsgBurnStableResponse) Size

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

func (*MsgBurnStableResponse) String

func (m *MsgBurnStableResponse) String() string

func (*MsgBurnStableResponse) Unmarshal

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

func (*MsgBurnStableResponse) XXX_DiscardUnknown

func (m *MsgBurnStableResponse) XXX_DiscardUnknown()

func (*MsgBurnStableResponse) XXX_Marshal

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

func (*MsgBurnStableResponse) XXX_Merge

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

func (*MsgBurnStableResponse) XXX_Size

func (m *MsgBurnStableResponse) XXX_Size() int

func (*MsgBurnStableResponse) XXX_Unmarshal

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

type MsgBuyback

type MsgBuyback struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// Gov (sdk.Coin): Tokens the caller wants to sell to the protocol in exchange
	// for collateral.
	Gov types.Coin `protobuf:"bytes,2,opt,name=gov,proto3" json:"gov"`
}

MsgBuyback

func NewMsgBuyback

func NewMsgBuyback(creator string, coin sdk.Coin) *MsgBuyback

func (*MsgBuyback) Descriptor

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

func (*MsgBuyback) GetCreator

func (m *MsgBuyback) GetCreator() string

func (*MsgBuyback) GetGov

func (m *MsgBuyback) GetGov() types.Coin

func (*MsgBuyback) GetSignBytes

func (msg *MsgBuyback) GetSignBytes() []byte

func (*MsgBuyback) GetSigners

func (msg *MsgBuyback) GetSigners() []sdk.AccAddress

func (*MsgBuyback) Marshal

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

func (*MsgBuyback) MarshalTo

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

func (*MsgBuyback) MarshalToSizedBuffer

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

func (*MsgBuyback) ProtoMessage

func (*MsgBuyback) ProtoMessage()

func (*MsgBuyback) Reset

func (m *MsgBuyback) Reset()

func (*MsgBuyback) Route

func (msg *MsgBuyback) Route() string

func (*MsgBuyback) Size

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

func (*MsgBuyback) String

func (m *MsgBuyback) String() string

func (*MsgBuyback) Type

func (msg *MsgBuyback) Type() string

func (*MsgBuyback) Unmarshal

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

func (*MsgBuyback) ValidateBasic

func (msg *MsgBuyback) ValidateBasic() error

func (*MsgBuyback) XXX_DiscardUnknown

func (m *MsgBuyback) XXX_DiscardUnknown()

func (*MsgBuyback) XXX_Marshal

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

func (*MsgBuyback) XXX_Merge

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

func (*MsgBuyback) XXX_Size

func (m *MsgBuyback) XXX_Size() int

func (*MsgBuyback) XXX_Unmarshal

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

type MsgBuybackResponse

type MsgBuybackResponse struct {
	// Coll (sdk.Coin): Tokens sold to the caller in exchange for her collateral.
	Coll types.Coin `protobuf:"bytes,1,opt,name=coll,proto3" json:"coll"`
}

MsgBuybackResponse is the output of a successful 'Buyback'

func (*MsgBuybackResponse) Descriptor

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

func (*MsgBuybackResponse) GetColl

func (m *MsgBuybackResponse) GetColl() types.Coin

func (*MsgBuybackResponse) Marshal

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

func (*MsgBuybackResponse) MarshalTo

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

func (*MsgBuybackResponse) MarshalToSizedBuffer

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

func (*MsgBuybackResponse) ProtoMessage

func (*MsgBuybackResponse) ProtoMessage()

func (*MsgBuybackResponse) Reset

func (m *MsgBuybackResponse) Reset()

func (*MsgBuybackResponse) Size

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

func (*MsgBuybackResponse) String

func (m *MsgBuybackResponse) String() string

func (*MsgBuybackResponse) Unmarshal

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

func (*MsgBuybackResponse) XXX_DiscardUnknown

func (m *MsgBuybackResponse) XXX_DiscardUnknown()

func (*MsgBuybackResponse) XXX_Marshal

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

func (*MsgBuybackResponse) XXX_Merge

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

func (*MsgBuybackResponse) XXX_Size

func (m *MsgBuybackResponse) XXX_Size() int

func (*MsgBuybackResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// MintStable defines a method for trading a mixture of GOV and COLL to mint an
	// equivalent value of stablecoins.
	MintStable(ctx context.Context, in *MsgMintStable, opts ...grpc.CallOption) (*MsgMintStableResponse, error)
	// BurnStable defines a method for redeeming/burning stablecoins to receive an
	// equivalent value as a mixture of governance and collateral tokens.
	BurnStable(ctx context.Context, in *MsgBurnStable, opts ...grpc.CallOption) (*MsgBurnStableResponse, error)
	// Recollateralize defines a method for manually adding collateral to the
	// protocol in exchange for an equivalent stablecoin value in governance tokens
	// plus a small bonus.
	Recollateralize(ctx context.Context, in *MsgRecollateralize, opts ...grpc.CallOption) (*MsgRecollateralizeResponse, error)
	// Buyback defines a method for manually adding NIBI to the protocol
	// in exchange for an equivalent stablecoin value in collateral, effectively
	// executing a share buyback for Nibiru Chain. The NIBI purchased by the protocol
	// is then burned, distributing value to all NIBI hodlers.
	Buyback(ctx context.Context, in *MsgBuyback, opts ...grpc.CallOption) (*MsgBuybackResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgMintStable

type MsgMintStable struct {
	Creator string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Stable  types.Coin `protobuf:"bytes,2,opt,name=stable,proto3" json:"stable"`
}

MsgMintStable: Msg to mint NUSD. A user deposits NIBI and collateral and gets NUSD in return. The amount of NUSD received depends on the current price set by the oracle library and the current collateral ratio for the protocol.

func (*MsgMintStable) Descriptor

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

func (*MsgMintStable) GetCreator

func (m *MsgMintStable) GetCreator() string

func (*MsgMintStable) GetSignBytes

func (msg *MsgMintStable) GetSignBytes() []byte

func (*MsgMintStable) GetSigners

func (msg *MsgMintStable) GetSigners() []sdk.AccAddress

func (*MsgMintStable) GetStable

func (m *MsgMintStable) GetStable() types.Coin

func (*MsgMintStable) Marshal

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

func (*MsgMintStable) MarshalTo

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

func (*MsgMintStable) MarshalToSizedBuffer

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

func (*MsgMintStable) ProtoMessage

func (*MsgMintStable) ProtoMessage()

func (*MsgMintStable) Reset

func (m *MsgMintStable) Reset()

func (*MsgMintStable) Route

func (msg *MsgMintStable) Route() string

func (*MsgMintStable) Size

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

func (*MsgMintStable) String

func (m *MsgMintStable) String() string

func (*MsgMintStable) Type

func (msg *MsgMintStable) Type() string

func (*MsgMintStable) Unmarshal

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

func (*MsgMintStable) ValidateBasic

func (msg *MsgMintStable) ValidateBasic() error

func (*MsgMintStable) XXX_DiscardUnknown

func (m *MsgMintStable) XXX_DiscardUnknown()

func (*MsgMintStable) XXX_Marshal

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

func (*MsgMintStable) XXX_Merge

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

func (*MsgMintStable) XXX_Size

func (m *MsgMintStable) XXX_Size() int

func (*MsgMintStable) XXX_Unmarshal

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

type MsgMintStableResponse

type MsgMintStableResponse struct {
	Stable    types.Coin                               `protobuf:"bytes,1,opt,name=stable,proto3" json:"stable"`
	UsedCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
	FeesPayed github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

MsgMintStableResponse specifies the amount of NUSD token the user will receive after their mint transaction

func (*MsgMintStableResponse) Descriptor

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

func (*MsgMintStableResponse) GetFeesPayed

func (*MsgMintStableResponse) GetStable

func (m *MsgMintStableResponse) GetStable() types.Coin

func (*MsgMintStableResponse) GetUsedCoins

func (*MsgMintStableResponse) Marshal

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

func (*MsgMintStableResponse) MarshalTo

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

func (*MsgMintStableResponse) MarshalToSizedBuffer

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

func (*MsgMintStableResponse) ProtoMessage

func (*MsgMintStableResponse) ProtoMessage()

func (*MsgMintStableResponse) Reset

func (m *MsgMintStableResponse) Reset()

func (*MsgMintStableResponse) Size

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

func (*MsgMintStableResponse) String

func (m *MsgMintStableResponse) String() string

func (*MsgMintStableResponse) Unmarshal

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

func (*MsgMintStableResponse) XXX_DiscardUnknown

func (m *MsgMintStableResponse) XXX_DiscardUnknown()

func (*MsgMintStableResponse) XXX_Marshal

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

func (*MsgMintStableResponse) XXX_Merge

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

func (*MsgMintStableResponse) XXX_Size

func (m *MsgMintStableResponse) XXX_Size() int

func (*MsgMintStableResponse) XXX_Unmarshal

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

type MsgRecollateralize

type MsgRecollateralize struct {
	Creator string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Coll    types.Coin `protobuf:"bytes,2,opt,name=coll,proto3" json:"coll"`
}

MsgRecollateralize

func NewMsgRecollateralize

func NewMsgRecollateralize(creator string, coin sdk.Coin) *MsgRecollateralize

func (*MsgRecollateralize) Descriptor

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

func (*MsgRecollateralize) GetColl

func (m *MsgRecollateralize) GetColl() types.Coin

func (*MsgRecollateralize) GetCreator

func (m *MsgRecollateralize) GetCreator() string

func (*MsgRecollateralize) GetSignBytes

func (msg *MsgRecollateralize) GetSignBytes() []byte

func (*MsgRecollateralize) GetSigners

func (msg *MsgRecollateralize) GetSigners() []sdk.AccAddress

func (*MsgRecollateralize) Marshal

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

func (*MsgRecollateralize) MarshalTo

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

func (*MsgRecollateralize) MarshalToSizedBuffer

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

func (*MsgRecollateralize) ProtoMessage

func (*MsgRecollateralize) ProtoMessage()

func (*MsgRecollateralize) Reset

func (m *MsgRecollateralize) Reset()

func (*MsgRecollateralize) Route

func (msg *MsgRecollateralize) Route() string

func (*MsgRecollateralize) Size

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

func (*MsgRecollateralize) String

func (m *MsgRecollateralize) String() string

func (*MsgRecollateralize) Type

func (msg *MsgRecollateralize) Type() string

func (*MsgRecollateralize) Unmarshal

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

func (*MsgRecollateralize) ValidateBasic

func (msg *MsgRecollateralize) ValidateBasic() error

func (*MsgRecollateralize) XXX_DiscardUnknown

func (m *MsgRecollateralize) XXX_DiscardUnknown()

func (*MsgRecollateralize) XXX_Marshal

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

func (*MsgRecollateralize) XXX_Merge

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

func (*MsgRecollateralize) XXX_Size

func (m *MsgRecollateralize) XXX_Size() int

func (*MsgRecollateralize) XXX_Unmarshal

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

type MsgRecollateralizeResponse

type MsgRecollateralizeResponse struct {
	// Gov (sdk.Coin): Tokens rewarded to the caller in exchange for her collateral.
	Gov types.Coin `protobuf:"bytes,1,opt,name=gov,proto3" json:"gov"`
}

MsgRecollateralizeResponse is the output of a successful 'Recollateralize'

func (*MsgRecollateralizeResponse) Descriptor

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

func (*MsgRecollateralizeResponse) GetGov

func (*MsgRecollateralizeResponse) Marshal

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

func (*MsgRecollateralizeResponse) MarshalTo

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

func (*MsgRecollateralizeResponse) MarshalToSizedBuffer

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

func (*MsgRecollateralizeResponse) ProtoMessage

func (*MsgRecollateralizeResponse) ProtoMessage()

func (*MsgRecollateralizeResponse) Reset

func (m *MsgRecollateralizeResponse) Reset()

func (*MsgRecollateralizeResponse) Size

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

func (*MsgRecollateralizeResponse) String

func (m *MsgRecollateralizeResponse) String() string

func (*MsgRecollateralizeResponse) Unmarshal

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

func (*MsgRecollateralizeResponse) XXX_DiscardUnknown

func (m *MsgRecollateralizeResponse) XXX_DiscardUnknown()

func (*MsgRecollateralizeResponse) XXX_Marshal

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

func (*MsgRecollateralizeResponse) XXX_Merge

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

func (*MsgRecollateralizeResponse) XXX_Size

func (m *MsgRecollateralizeResponse) XXX_Size() int

func (*MsgRecollateralizeResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// MintStable defines a method for trading a mixture of GOV and COLL to mint an
	// equivalent value of stablecoins.
	MintStable(context.Context, *MsgMintStable) (*MsgMintStableResponse, error)
	// BurnStable defines a method for redeeming/burning stablecoins to receive an
	// equivalent value as a mixture of governance and collateral tokens.
	BurnStable(context.Context, *MsgBurnStable) (*MsgBurnStableResponse, error)
	// Recollateralize defines a method for manually adding collateral to the
	// protocol in exchange for an equivalent stablecoin value in governance tokens
	// plus a small bonus.
	Recollateralize(context.Context, *MsgRecollateralize) (*MsgRecollateralizeResponse, error)
	// Buyback defines a method for manually adding NIBI to the protocol
	// in exchange for an equivalent stablecoin value in collateral, effectively
	// executing a share buyback for Nibiru Chain. The NIBI purchased by the protocol
	// is then burned, distributing value to all NIBI hodlers.
	Buyback(context.Context, *MsgBuyback) (*MsgBuybackResponse, error)
}

MsgServer is the server API for Msg service.

type OracleKeeper added in v0.17.0

type OracleKeeper interface {
	GetExchangeRate(ctx sdk.Context, pair asset.Pair) (sdk.Dec, error)
	GetExchangeRateTwap(ctx sdk.Context, pair asset.Pair) (sdk.Dec, error)
}

type Params

type Params struct {
	// collRatio is the ratio needed as collateral to exchange for stables
	CollRatio int64 `protobuf:"varint,1,opt,name=coll_ratio,json=collRatio,proto3" json:"coll_ratio,omitempty"`
	// feeRatio is the ratio taken as fees when minting or burning stables
	FeeRatio int64 `protobuf:"varint,2,opt,name=fee_ratio,json=feeRatio,proto3" json:"fee_ratio,omitempty"`
	// efFeeRatio is the ratio taken from the fees that goes to Ecosystem Fund
	EfFeeRatio int64 `protobuf:"varint,3,opt,name=ef_fee_ratio,json=efFeeRatio,proto3" json:"ef_fee_ratio,omitempty"`
	// BonusRateRecoll is the percentage of extra stablecoin value given to the caller
	// of 'Recollateralize' in units of governance tokens.
	BonusRateRecoll int64 `protobuf:"varint,4,opt,name=bonus_rate_recoll,json=bonusRateRecoll,proto3" json:"bonus_rate_recoll,omitempty"`
	// distr_epoch_identifier defines the frequnecy of update for the collateral ratio
	DistrEpochIdentifier string `` /* 153-byte string literal not displayed */
	// adjustmentStep is the size of the step taken when updating the collateral ratio
	AdjustmentStep int64 `protobuf:"varint,6,opt,name=adjustment_step,json=adjustmentStep,proto3" json:"adjustment_step,omitempty"`
	// priceLowerBound is the lower bound for the stable coin to trigger a collateral ratio update
	PriceLowerBound int64 `protobuf:"varint,7,opt,name=price_lower_bound,json=priceLowerBound,proto3" json:"price_lower_bound,omitempty"`
	// priceUpperBound is the upper bound for the stable coin to trigger a collateral ratio update
	PriceUpperBound int64 `protobuf:"varint,8,opt,name=price_upper_bound,json=priceUpperBound,proto3" json:"price_upper_bound,omitempty"`
	// isCollateralRatioValid checks if the collateral ratio is correctly updated
	IsCollateralRatioValid bool `` /* 132-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	collRatio sdk.Dec,
	feeRatio sdk.Dec,
	efFeeRatio sdk.Dec,
	bonusRateRecoll sdk.Dec,
	distrEpochIdentifier string,
	adjustmentStep sdk.Dec,
	priceLowerBound sdk.Dec,
	priceUpperBound sdk.Dec,
	isCollateralRatioValid bool,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetAdjustmentStep

func (m *Params) GetAdjustmentStep() int64

func (*Params) GetAdjustmentStepAsDec

func (p *Params) GetAdjustmentStepAsDec() sdk.Dec

func (*Params) GetBonusRateRecoll

func (m *Params) GetBonusRateRecoll() int64

func (*Params) GetBonusRateRecollAsDec

func (p *Params) GetBonusRateRecollAsDec() sdk.Dec

func (*Params) GetCollRatio

func (m *Params) GetCollRatio() int64

func (*Params) GetCollRatioAsDec

func (p *Params) GetCollRatioAsDec() sdk.Dec

func (*Params) GetDistrEpochIdentifier

func (m *Params) GetDistrEpochIdentifier() string

func (*Params) GetEfFeeRatio

func (m *Params) GetEfFeeRatio() int64

func (*Params) GetEfFeeRatioAsDec

func (p *Params) GetEfFeeRatioAsDec() sdk.Dec

func (*Params) GetFeeRatio

func (m *Params) GetFeeRatio() int64

func (*Params) GetFeeRatioAsDec

func (p *Params) GetFeeRatioAsDec() sdk.Dec

func (*Params) GetIsCollateralRatioValid added in v0.1.0

func (m *Params) GetIsCollateralRatioValid() bool

func (*Params) GetPriceLowerBound

func (m *Params) GetPriceLowerBound() int64

func (*Params) GetPriceLowerBoundAsDec

func (p *Params) GetPriceLowerBoundAsDec() sdk.Dec

func (*Params) GetPriceUpperBound

func (m *Params) GetPriceUpperBound() int64

func (*Params) GetPriceUpperBoundAsDec

func (p *Params) GetPriceUpperBoundAsDec() sdk.Dec

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate

func (p *Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryCirculatingSupplies added in v0.1.0

type QueryCirculatingSupplies struct {
}

QueryCirculatingSupplies is the request type for the circulating supply of both NIBI and NUSD.

func (*QueryCirculatingSupplies) Descriptor added in v0.1.0

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

func (*QueryCirculatingSupplies) Marshal added in v0.1.0

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

func (*QueryCirculatingSupplies) MarshalTo added in v0.1.0

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

func (*QueryCirculatingSupplies) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryCirculatingSupplies) ProtoMessage added in v0.1.0

func (*QueryCirculatingSupplies) ProtoMessage()

func (*QueryCirculatingSupplies) Reset added in v0.1.0

func (m *QueryCirculatingSupplies) Reset()

func (*QueryCirculatingSupplies) Size added in v0.1.0

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

func (*QueryCirculatingSupplies) String added in v0.1.0

func (m *QueryCirculatingSupplies) String() string

func (*QueryCirculatingSupplies) Unmarshal added in v0.1.0

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

func (*QueryCirculatingSupplies) XXX_DiscardUnknown added in v0.1.0

func (m *QueryCirculatingSupplies) XXX_DiscardUnknown()

func (*QueryCirculatingSupplies) XXX_Marshal added in v0.1.0

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

func (*QueryCirculatingSupplies) XXX_Merge added in v0.1.0

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

func (*QueryCirculatingSupplies) XXX_Size added in v0.1.0

func (m *QueryCirculatingSupplies) XXX_Size() int

func (*QueryCirculatingSupplies) XXX_Unmarshal added in v0.1.0

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

type QueryCirculatingSuppliesResponse added in v0.1.0

type QueryCirculatingSuppliesResponse struct {
	Nibi types.Coin `protobuf:"bytes,1,opt,name=nibi,proto3" json:"nibi"`
	Nusd types.Coin `protobuf:"bytes,2,opt,name=nusd,proto3" json:"nusd"`
}

func (*QueryCirculatingSuppliesResponse) Descriptor added in v0.1.0

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

func (*QueryCirculatingSuppliesResponse) GetNibi added in v0.11.0

func (*QueryCirculatingSuppliesResponse) GetNusd added in v0.11.0

func (*QueryCirculatingSuppliesResponse) Marshal added in v0.1.0

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

func (*QueryCirculatingSuppliesResponse) MarshalTo added in v0.1.0

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

func (*QueryCirculatingSuppliesResponse) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryCirculatingSuppliesResponse) ProtoMessage added in v0.1.0

func (*QueryCirculatingSuppliesResponse) ProtoMessage()

func (*QueryCirculatingSuppliesResponse) Reset added in v0.1.0

func (*QueryCirculatingSuppliesResponse) Size added in v0.1.0

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

func (*QueryCirculatingSuppliesResponse) String added in v0.1.0

func (*QueryCirculatingSuppliesResponse) Unmarshal added in v0.1.0

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

func (*QueryCirculatingSuppliesResponse) XXX_DiscardUnknown added in v0.1.0

func (m *QueryCirculatingSuppliesResponse) XXX_DiscardUnknown()

func (*QueryCirculatingSuppliesResponse) XXX_Marshal added in v0.1.0

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

func (*QueryCirculatingSuppliesResponse) XXX_Merge added in v0.1.0

func (*QueryCirculatingSuppliesResponse) XXX_Size added in v0.1.0

func (m *QueryCirculatingSuppliesResponse) XXX_Size() int

func (*QueryCirculatingSuppliesResponse) XXX_Unmarshal added in v0.1.0

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the x/stablecoin module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// ModuleAccountBalances queries the account balance of x/stablecoin.
	ModuleAccountBalances(ctx context.Context, in *QueryModuleAccountBalances, opts ...grpc.CallOption) (*QueryModuleAccountBalancesResponse, error)
	CirculatingSupplies(ctx context.Context, in *QueryCirculatingSupplies, opts ...grpc.CallOption) (*QueryCirculatingSuppliesResponse, error)
	LiquidityRatioInfo(ctx context.Context, in *QueryLiquidityRatioInfoRequest, opts ...grpc.CallOption) (*QueryLiquidityRatioInfoResponse, 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 QueryGovToMintStable added in v0.1.0

type QueryGovToMintStable struct {
	Collateral types.Coin `protobuf:"bytes,1,opt,name=collateral,proto3" json:"collateral"`
}

QueryGovToMintStable is the request type for the Query/GovToMintStable RPC method

func (*QueryGovToMintStable) Descriptor added in v0.1.0

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

func (*QueryGovToMintStable) GetCollateral added in v0.1.0

func (m *QueryGovToMintStable) GetCollateral() types.Coin

func (*QueryGovToMintStable) Marshal added in v0.1.0

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

func (*QueryGovToMintStable) MarshalTo added in v0.1.0

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

func (*QueryGovToMintStable) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryGovToMintStable) ProtoMessage added in v0.1.0

func (*QueryGovToMintStable) ProtoMessage()

func (*QueryGovToMintStable) Reset added in v0.1.0

func (m *QueryGovToMintStable) Reset()

func (*QueryGovToMintStable) Size added in v0.1.0

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

func (*QueryGovToMintStable) String added in v0.1.0

func (m *QueryGovToMintStable) String() string

func (*QueryGovToMintStable) Unmarshal added in v0.1.0

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

func (*QueryGovToMintStable) XXX_DiscardUnknown added in v0.1.0

func (m *QueryGovToMintStable) XXX_DiscardUnknown()

func (*QueryGovToMintStable) XXX_Marshal added in v0.1.0

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

func (*QueryGovToMintStable) XXX_Merge added in v0.1.0

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

func (*QueryGovToMintStable) XXX_Size added in v0.1.0

func (m *QueryGovToMintStable) XXX_Size() int

func (*QueryGovToMintStable) XXX_Unmarshal added in v0.1.0

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

type QueryGovToMintStableResponse added in v0.1.0

type QueryGovToMintStableResponse struct {
	Gov types.Coin `protobuf:"bytes,1,opt,name=gov,proto3" json:"gov"`
}

QueryGovToMintStableResponse is the response type for 'QueryGovToMintStable'

func (*QueryGovToMintStableResponse) Descriptor added in v0.1.0

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

func (*QueryGovToMintStableResponse) GetGov added in v0.1.0

func (*QueryGovToMintStableResponse) Marshal added in v0.1.0

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

func (*QueryGovToMintStableResponse) MarshalTo added in v0.1.0

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

func (*QueryGovToMintStableResponse) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryGovToMintStableResponse) ProtoMessage added in v0.1.0

func (*QueryGovToMintStableResponse) ProtoMessage()

func (*QueryGovToMintStableResponse) Reset added in v0.1.0

func (m *QueryGovToMintStableResponse) Reset()

func (*QueryGovToMintStableResponse) Size added in v0.1.0

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

func (*QueryGovToMintStableResponse) String added in v0.1.0

func (*QueryGovToMintStableResponse) Unmarshal added in v0.1.0

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

func (*QueryGovToMintStableResponse) XXX_DiscardUnknown added in v0.1.0

func (m *QueryGovToMintStableResponse) XXX_DiscardUnknown()

func (*QueryGovToMintStableResponse) XXX_Marshal added in v0.1.0

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

func (*QueryGovToMintStableResponse) XXX_Merge added in v0.1.0

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

func (*QueryGovToMintStableResponse) XXX_Size added in v0.1.0

func (m *QueryGovToMintStableResponse) XXX_Size() int

func (*QueryGovToMintStableResponse) XXX_Unmarshal added in v0.1.0

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

type QueryLiquidityRatioInfoRequest added in v0.1.0

type QueryLiquidityRatioInfoRequest struct {
}

func (*QueryLiquidityRatioInfoRequest) Descriptor added in v0.1.0

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

func (*QueryLiquidityRatioInfoRequest) Marshal added in v0.1.0

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

func (*QueryLiquidityRatioInfoRequest) MarshalTo added in v0.1.0

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

func (*QueryLiquidityRatioInfoRequest) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryLiquidityRatioInfoRequest) ProtoMessage added in v0.1.0

func (*QueryLiquidityRatioInfoRequest) ProtoMessage()

func (*QueryLiquidityRatioInfoRequest) Reset added in v0.1.0

func (m *QueryLiquidityRatioInfoRequest) Reset()

func (*QueryLiquidityRatioInfoRequest) Size added in v0.1.0

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

func (*QueryLiquidityRatioInfoRequest) String added in v0.1.0

func (*QueryLiquidityRatioInfoRequest) Unmarshal added in v0.1.0

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

func (*QueryLiquidityRatioInfoRequest) XXX_DiscardUnknown added in v0.1.0

func (m *QueryLiquidityRatioInfoRequest) XXX_DiscardUnknown()

func (*QueryLiquidityRatioInfoRequest) XXX_Marshal added in v0.1.0

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

func (*QueryLiquidityRatioInfoRequest) XXX_Merge added in v0.1.0

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

func (*QueryLiquidityRatioInfoRequest) XXX_Size added in v0.1.0

func (m *QueryLiquidityRatioInfoRequest) XXX_Size() int

func (*QueryLiquidityRatioInfoRequest) XXX_Unmarshal added in v0.1.0

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

type QueryLiquidityRatioInfoResponse added in v0.1.0

type QueryLiquidityRatioInfoResponse struct {
	Info LiquidityRatioInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
}

func (*QueryLiquidityRatioInfoResponse) Descriptor added in v0.1.0

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

func (*QueryLiquidityRatioInfoResponse) GetInfo added in v0.1.0

func (*QueryLiquidityRatioInfoResponse) Marshal added in v0.1.0

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

func (*QueryLiquidityRatioInfoResponse) MarshalTo added in v0.1.0

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

func (*QueryLiquidityRatioInfoResponse) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryLiquidityRatioInfoResponse) ProtoMessage added in v0.1.0

func (*QueryLiquidityRatioInfoResponse) ProtoMessage()

func (*QueryLiquidityRatioInfoResponse) Reset added in v0.1.0

func (*QueryLiquidityRatioInfoResponse) Size added in v0.1.0

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

func (*QueryLiquidityRatioInfoResponse) String added in v0.1.0

func (*QueryLiquidityRatioInfoResponse) Unmarshal added in v0.1.0

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

func (*QueryLiquidityRatioInfoResponse) XXX_DiscardUnknown added in v0.1.0

func (m *QueryLiquidityRatioInfoResponse) XXX_DiscardUnknown()

func (*QueryLiquidityRatioInfoResponse) XXX_Marshal added in v0.1.0

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

func (*QueryLiquidityRatioInfoResponse) XXX_Merge added in v0.1.0

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

func (*QueryLiquidityRatioInfoResponse) XXX_Size added in v0.1.0

func (m *QueryLiquidityRatioInfoResponse) XXX_Size() int

func (*QueryLiquidityRatioInfoResponse) XXX_Unmarshal added in v0.1.0

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

type QueryModuleAccountBalances added in v0.1.0

type QueryModuleAccountBalances struct {
}

QueryModuleAccountBalances is the request type for the balance of the x/stablecoin module account.

func (*QueryModuleAccountBalances) Descriptor added in v0.1.0

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

func (*QueryModuleAccountBalances) Marshal added in v0.1.0

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

func (*QueryModuleAccountBalances) MarshalTo added in v0.1.0

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

func (*QueryModuleAccountBalances) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryModuleAccountBalances) ProtoMessage added in v0.1.0

func (*QueryModuleAccountBalances) ProtoMessage()

func (*QueryModuleAccountBalances) Reset added in v0.1.0

func (m *QueryModuleAccountBalances) Reset()

func (*QueryModuleAccountBalances) Size added in v0.1.0

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

func (*QueryModuleAccountBalances) String added in v0.1.0

func (m *QueryModuleAccountBalances) String() string

func (*QueryModuleAccountBalances) Unmarshal added in v0.1.0

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

func (*QueryModuleAccountBalances) XXX_DiscardUnknown added in v0.1.0

func (m *QueryModuleAccountBalances) XXX_DiscardUnknown()

func (*QueryModuleAccountBalances) XXX_Marshal added in v0.1.0

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

func (*QueryModuleAccountBalances) XXX_Merge added in v0.1.0

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

func (*QueryModuleAccountBalances) XXX_Size added in v0.1.0

func (m *QueryModuleAccountBalances) XXX_Size() int

func (*QueryModuleAccountBalances) XXX_Unmarshal added in v0.1.0

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

type QueryModuleAccountBalancesResponse added in v0.1.0

type QueryModuleAccountBalancesResponse struct {
	// ModuleAccountBalances is the balance of all coins in the x/stablecoin
	// module.
	ModuleAccountBalances github_com_cosmos_cosmos_sdk_types.Coins `` /* 183-byte string literal not displayed */
}

func (*QueryModuleAccountBalancesResponse) Descriptor added in v0.1.0

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

func (*QueryModuleAccountBalancesResponse) GetModuleAccountBalances added in v0.1.0

func (*QueryModuleAccountBalancesResponse) Marshal added in v0.1.0

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

func (*QueryModuleAccountBalancesResponse) MarshalTo added in v0.1.0

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

func (*QueryModuleAccountBalancesResponse) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryModuleAccountBalancesResponse) ProtoMessage added in v0.1.0

func (*QueryModuleAccountBalancesResponse) ProtoMessage()

func (*QueryModuleAccountBalancesResponse) Reset added in v0.1.0

func (*QueryModuleAccountBalancesResponse) Size added in v0.1.0

func (*QueryModuleAccountBalancesResponse) String added in v0.1.0

func (*QueryModuleAccountBalancesResponse) Unmarshal added in v0.1.0

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

func (*QueryModuleAccountBalancesResponse) XXX_DiscardUnknown added in v0.1.0

func (m *QueryModuleAccountBalancesResponse) XXX_DiscardUnknown()

func (*QueryModuleAccountBalancesResponse) XXX_Marshal added in v0.1.0

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

func (*QueryModuleAccountBalancesResponse) XXX_Merge added in v0.1.0

func (*QueryModuleAccountBalancesResponse) XXX_Size added in v0.1.0

func (*QueryModuleAccountBalancesResponse) XXX_Unmarshal added in v0.1.0

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

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 x/stablecoin module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// ModuleAccountBalances queries the account balance of x/stablecoin.
	ModuleAccountBalances(context.Context, *QueryModuleAccountBalances) (*QueryModuleAccountBalancesResponse, error)
	CirculatingSupplies(context.Context, *QueryCirculatingSupplies) (*QueryCirculatingSuppliesResponse, error)
	LiquidityRatioInfo(context.Context, *QueryLiquidityRatioInfoRequest) (*QueryLiquidityRatioInfoResponse, error)
}

QueryServer is the server API for Query service.

type SpotKeeper added in v0.19.0

type SpotKeeper interface {
	FetchPoolFromPair(ctx sdk.Context, denomA string, denomB string,
	) (pool spottypes.Pool, err error)
	FetchPool(ctx sdk.Context, poolId uint64) (pool spottypes.Pool, err error)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BurnStable

func (*UnimplementedMsgServer) Buyback

func (*UnimplementedMsgServer) MintStable

func (*UnimplementedMsgServer) Recollateralize

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CirculatingSupplies added in v0.1.0

func (*UnimplementedQueryServer) LiquidityRatioInfo added in v0.1.0

func (*UnimplementedQueryServer) ModuleAccountBalances added in v0.1.0

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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