types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventRegisterCreateNewPairProposal            = "register_create_new_pair_proposal"
	EventRegisterChangeBurningFundAddressProposal = "register_change_stability_fund_address_proposal"
	AttributeValueCategory                        = ModuleName
	AttributeKeyActionMint                        = "mint"
	AttributeKeyActionBurn                        = "burn"
)
View Source
const (
	EventTypeTimeout = "timeout"

	AttributeKeyAckSuccess = "success"
	AttributeKeyAck        = "acknowledgement"
	AttributeKeyAckError   = "error"
)

IBC events

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

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_stable"

	// Version defines the current version the IBC module supports
	Version = "stable-1"

	// PortID is the default port id that module binds to
	PortID = "stable"
)
View Source
const (
	PairKey      = "Pair/value/"
	PairCountKey = "Pair/count/"
)
View Source
const (
	ProposalTypeRegisterPairProposal                     string = "RegisterPairProposal"
	ProposalTypeRegisterChangeBurningFundAddressProposal string = "RegisterChangeBurningFundAddressProposal"
)

constants

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgBurn = "burn"
View Source
const TypeMsgMint = "mint"

Variables

View Source
var (
	ErrSample                          = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrSdkIntError                     = sdkerrors.Register(ModuleName, 1101, "sdk.Int error")
	ErrInvalidLength                   = sdkerrors.Register(ModuleName, 1102, "invalid length")
	ErrInvalidPacketTimeout            = sdkerrors.Register(ModuleName, 1500, "invalid packet timeout")
	ErrInvalidVersion                  = sdkerrors.Register(ModuleName, 1501, "invalid version")
	ErrAfpNegative                     = sdkerrors.Register(ModuleName, 1200, "AFP negative")
	ErrArNegative                      = sdkerrors.Register(ModuleName, 1201, "AR negative")
	ErrQmNegative                      = sdkerrors.Register(ModuleName, 1202, "QM negative")
	ErrARAlreadyInit                   = sdkerrors.Register(ModuleName, 1203, "ErrARAlreadyInit")
	ErrBackingRatioNegative            = sdkerrors.Register(ModuleName, 1204, "BackingRatio negative")
	ErrBackingRatioNil                 = sdkerrors.Register(ModuleName, 1205, "BackingRatio nil")
	ErrQMAlreadyInit                   = sdkerrors.Register(ModuleName, 1206, "ErrQMAlreadyInit")
	ErrCalculateMintingFee             = sdkerrors.Register(ModuleName, 1301, "CalculateMintingFee err")
	ErrCalculateBurningFee             = sdkerrors.Register(ModuleName, 1302, "CalculateBurningFee err")
	ErrInvalidCoins                    = sdkerrors.Register(ModuleName, 500, "ErrInvalidCoins err")
	ErrAtomPriceNil                    = sdkerrors.Register(ModuleName, 1000, "ErrAtomPriceNil err")
	ErrMultipleCoinsLockupNotSupported = sdkerrors.Register(ModuleName, 1600, "ErrMultipleCoinsLockupNotSupported multiple coins lockup is not supported")
	ErrSendBaseTokenDenom              = sdkerrors.Register(ModuleName, 1601, "ErrSendBaseTokenDenom err")
	ErrSendSendTokenDenom              = sdkerrors.Register(ModuleName, 1602, "ErrSendSendTokenDenom err")
	ErrPairNotFound                    = sdkerrors.Register(ModuleName, 1701, "ErrPairNotFound err")
	ErrAmountInGTEminAmountIn          = sdkerrors.Register(ModuleName, 1801, "ErrAmountInGTEminAmountIn err")
)

x/stable module sentinel errors

View Source
var (
	ErrMintBlocked = sdkerrors.Register(ModuleName, 100, "Backing Ration >= 120%")
	ErrBurnBlocked = sdkerrors.Register(ModuleName, 101, "Backing Ration < 85%")
)

GMD errors

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 (
	Multiplier        sdk.Int = sdk.NewInt(int64(10000))
	FeeMultiplier     sdk.Int = sdk.NewInt(int64(100000))
	MintUsqMultiplier sdk.Int = sdk.NewInt(int64(1000))
	BurnUsqMultiplier sdk.Int = sdk.NewInt(int64(1000000000))
)
View Source
var (
	ErrInvalidLengthPacket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPacket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPair        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPair          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPair = 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 (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = 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")
)
View Source
var (
	ErrUnrecognizedPacketType = sdkerrors.Register(ModuleName, 15, "unrecognized packet type")
)
View Source
var (
	// PortKey defines the key to store the port ID in store
	PortKey = KeyPrefix("stable-port-")
)

Functions

func CreateCoins

func CreateCoins(denom string, amount sdk.Int) sdk.Coins

func KeyPrefix

func KeyPrefix(p string) []byte

func NewRegisterChangeBurningFundAddressProposal

func NewRegisterChangeBurningFundAddressProposal(title, description string, address string) govtypes.Content

func NewRegisterPairProposal

func NewRegisterPairProposal(title, description string, amountInDenom banktypes.Metadata, amountOutDenom banktypes.Metadata, minAmount string) govtypes.Content

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 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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.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
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	HasSupply(ctx sdk.Context, denom string) bool
	IsSendEnabledCoin(ctx sdk.Context, coin sdk.Coin) bool
	BlockedAddr(addr sdk.AccAddress) bool
	GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
}

BankKeeper defines the expected interface needed to retrieve account balances.

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, portID, channelID string) (channeltypes.Channel, bool)
	GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
	SendPacket(
		ctx sdk.Context,
		channelCap *capabilitytypes.Capability,
		packet exported.PacketI,
	) error
	ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error
}

ChannelKeeper defines the expected IBC channel keeper.

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
}

GenesisState defines the stable module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPortId

func (m *GenesisState) GetPortId() string

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 MsgBurn

type MsgBurn struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AmountIn string `protobuf:"bytes,2,opt,name=amountInt,proto3" json:"amountInt,omitempty"`
	DenomOut string `protobuf:"bytes,3,opt,name=denomOut,proto3" json:"denomOut,omitempty"`
}

func NewMsgBurn

func NewMsgBurn(creator string, amountIn string, denomOut string) *MsgBurn

func (*MsgBurn) Descriptor

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

func (*MsgBurn) GetAmountIn

func (m *MsgBurn) GetAmountIn() string

func (*MsgBurn) GetCreator

func (m *MsgBurn) GetCreator() string

func (*MsgBurn) GetDenomOut

func (m *MsgBurn) GetDenomOut() string

func (*MsgBurn) GetSignBytes

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

func (*MsgBurn) GetSigners

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

func (*MsgBurn) Marshal

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

func (*MsgBurn) MarshalTo

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

func (*MsgBurn) MarshalToSizedBuffer

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

func (*MsgBurn) ProtoMessage

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset

func (m *MsgBurn) Reset()

func (*MsgBurn) Route

func (msg *MsgBurn) Route() string

func (*MsgBurn) Size

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

func (*MsgBurn) String

func (m *MsgBurn) String() string

func (*MsgBurn) Type

func (msg *MsgBurn) Type() string

func (*MsgBurn) Unmarshal

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

func (*MsgBurn) ValidateBasic

func (msg *MsgBurn) ValidateBasic() error

func (*MsgBurn) XXX_DiscardUnknown

func (m *MsgBurn) XXX_DiscardUnknown()

func (*MsgBurn) XXX_Marshal

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

func (*MsgBurn) XXX_Merge

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

func (*MsgBurn) XXX_Size

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal

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

type MsgBurnResponse

type MsgBurnResponse struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AmountIn  string `protobuf:"bytes,2,opt,name=amountInt,proto3" json:"amountInt,omitempty"`
	AmountOut string `protobuf:"bytes,3,opt,name=amountOut,proto3" json:"amountOut,omitempty"`
}

func (*MsgBurnResponse) Descriptor

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

func (*MsgBurnResponse) GetAmountIn

func (m *MsgBurnResponse) GetAmountIn() string

func (*MsgBurnResponse) GetAmountOut

func (m *MsgBurnResponse) GetAmountOut() string

func (*MsgBurnResponse) GetCreator

func (m *MsgBurnResponse) GetCreator() string

func (*MsgBurnResponse) Marshal

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

func (*MsgBurnResponse) MarshalTo

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

func (*MsgBurnResponse) MarshalToSizedBuffer

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

func (*MsgBurnResponse) ProtoMessage

func (*MsgBurnResponse) ProtoMessage()

func (*MsgBurnResponse) Reset

func (m *MsgBurnResponse) Reset()

func (*MsgBurnResponse) Size

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

func (*MsgBurnResponse) String

func (m *MsgBurnResponse) String() string

func (*MsgBurnResponse) Unmarshal

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

func (*MsgBurnResponse) XXX_DiscardUnknown

func (m *MsgBurnResponse) XXX_DiscardUnknown()

func (*MsgBurnResponse) XXX_Marshal

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

func (*MsgBurnResponse) XXX_Merge

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

func (*MsgBurnResponse) XXX_Size

func (m *MsgBurnResponse) XXX_Size() int

func (*MsgBurnResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
	Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, 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 MsgMint

type MsgMint struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AmountIn string `protobuf:"bytes,2,opt,name=amountInt,proto3" json:"amountInt,omitempty"`
	DenomOut string `protobuf:"bytes,3,opt,name=denomOut,proto3" json:"denomOut,omitempty"`
}

func NewMsgMint

func NewMsgMint(creator string, amountIn string, denomOut string) *MsgMint

func (*MsgMint) Descriptor

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

func (*MsgMint) GetAmountIn

func (m *MsgMint) GetAmountIn() string

func (*MsgMint) GetCreator

func (m *MsgMint) GetCreator() string

func (*MsgMint) GetDenomOut

func (m *MsgMint) GetDenomOut() string

func (*MsgMint) GetSignBytes

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

func (*MsgMint) GetSigners

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

func (*MsgMint) Marshal

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

func (*MsgMint) MarshalTo

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

func (*MsgMint) MarshalToSizedBuffer

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

func (*MsgMint) ProtoMessage

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset

func (m *MsgMint) Reset()

func (*MsgMint) Route

func (msg *MsgMint) Route() string

func (*MsgMint) Size

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

func (*MsgMint) String

func (m *MsgMint) String() string

func (*MsgMint) Type

func (msg *MsgMint) Type() string

func (*MsgMint) Unmarshal

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

func (*MsgMint) ValidateBasic

func (msg *MsgMint) ValidateBasic() error

func (*MsgMint) XXX_DiscardUnknown

func (m *MsgMint) XXX_DiscardUnknown()

func (*MsgMint) XXX_Marshal

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

func (*MsgMint) XXX_Merge

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

func (*MsgMint) XXX_Size

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal

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

type MsgMintResponse

type MsgMintResponse struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AmountIn  string `protobuf:"bytes,2,opt,name=amountInt,proto3" json:"amountInt,omitempty"`
	AmountOut string `protobuf:"bytes,3,opt,name=amountOut,proto3" json:"amountOut,omitempty"`
}

func (*MsgMintResponse) Descriptor

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

func (*MsgMintResponse) GetAmountIn

func (m *MsgMintResponse) GetAmountIn() string

func (*MsgMintResponse) GetAmountOut

func (m *MsgMintResponse) GetAmountOut() string

func (*MsgMintResponse) GetCreator

func (m *MsgMintResponse) GetCreator() string

func (*MsgMintResponse) Marshal

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

func (*MsgMintResponse) MarshalTo

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

func (*MsgMintResponse) MarshalToSizedBuffer

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

func (*MsgMintResponse) ProtoMessage

func (*MsgMintResponse) ProtoMessage()

func (*MsgMintResponse) Reset

func (m *MsgMintResponse) Reset()

func (*MsgMintResponse) Size

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

func (*MsgMintResponse) String

func (m *MsgMintResponse) String() string

func (*MsgMintResponse) Unmarshal

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

func (*MsgMintResponse) XXX_DiscardUnknown

func (m *MsgMintResponse) XXX_DiscardUnknown()

func (*MsgMintResponse) XXX_Marshal

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

func (*MsgMintResponse) XXX_Merge

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

func (*MsgMintResponse) XXX_Size

func (m *MsgMintResponse) XXX_Size() int

func (*MsgMintResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
	Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
}

MsgServer is the server API for Msg service.

type NoData

type NoData struct {
}

func (*NoData) Descriptor

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

func (*NoData) Marshal

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

func (*NoData) MarshalTo

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

func (*NoData) MarshalToSizedBuffer

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

func (*NoData) ProtoMessage

func (*NoData) ProtoMessage()

func (*NoData) Reset

func (m *NoData) Reset()

func (*NoData) Size

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

func (*NoData) String

func (m *NoData) String() string

func (*NoData) Unmarshal

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

func (*NoData) XXX_DiscardUnknown

func (m *NoData) XXX_DiscardUnknown()

func (*NoData) XXX_Marshal

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

func (*NoData) XXX_Merge

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

func (*NoData) XXX_Size

func (m *NoData) XXX_Size() int

func (*NoData) XXX_Unmarshal

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

type OracleKeeper

type OracleKeeper interface {
	GetTokensActualPrice(ctx sdk.Context) (string, string, error)
	GetTokensActualPriceInt(ctx sdk.Context) (sdk.Int, sdk.Int, error)
}

type Pair

type Pair struct {
	Id                uint64                                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PairId            string                                 `protobuf:"bytes,2,opt,name=pairId,proto3" json:"pairId,omitempty"`
	AmountInMetadata  types.Metadata                         `protobuf:"bytes,3,opt,name=amountInMetadata,proto3" json:"amountInMetadata" yaml:"amountInMetadata"`
	AmountOutMetadata types.Metadata                         `protobuf:"bytes,4,opt,name=amountOutMetadata,proto3" json:"amountOutMetadata" yaml:"amountOutMetadata"`
	Qm                github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=qm,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"qm" yaml:"qm"`
	Ar                github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=ar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"ar" yaml:"ar"`
	MinAmountIn       string                                 `protobuf:"bytes,7,opt,name=minAmountInt,proto3" json:"minAmountInt,omitempty"`
}

func (*Pair) Descriptor

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

func (*Pair) GetAmountInMetadata

func (m *Pair) GetAmountInMetadata() types.Metadata

func (*Pair) GetAmountOutMetadata

func (m *Pair) GetAmountOutMetadata() types.Metadata

func (*Pair) GetId

func (m *Pair) GetId() uint64

func (*Pair) GetMinAmountIn

func (m *Pair) GetMinAmountIn() string

func (*Pair) GetPairId

func (m *Pair) GetPairId() string

func (*Pair) Marshal

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

func (*Pair) MarshalTo

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

func (*Pair) MarshalToSizedBuffer

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

func (*Pair) ProtoMessage

func (*Pair) ProtoMessage()

func (*Pair) Reset

func (m *Pair) Reset()

func (*Pair) Size

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

func (*Pair) String

func (m *Pair) String() string

func (*Pair) Unmarshal

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

func (*Pair) XXX_DiscardUnknown

func (m *Pair) XXX_DiscardUnknown()

func (*Pair) XXX_Marshal

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

func (*Pair) XXX_Merge

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

func (*Pair) XXX_Size

func (m *Pair) XXX_Size() int

func (*Pair) XXX_Unmarshal

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

type PairByIdRequest

type PairByIdRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*PairByIdRequest) Descriptor

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

func (*PairByIdRequest) GetId

func (m *PairByIdRequest) GetId() uint64

func (*PairByIdRequest) Marshal

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

func (*PairByIdRequest) MarshalTo

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

func (*PairByIdRequest) MarshalToSizedBuffer

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

func (*PairByIdRequest) ProtoMessage

func (*PairByIdRequest) ProtoMessage()

func (*PairByIdRequest) Reset

func (m *PairByIdRequest) Reset()

func (*PairByIdRequest) Size

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

func (*PairByIdRequest) String

func (m *PairByIdRequest) String() string

func (*PairByIdRequest) Unmarshal

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

func (*PairByIdRequest) XXX_DiscardUnknown

func (m *PairByIdRequest) XXX_DiscardUnknown()

func (*PairByIdRequest) XXX_Marshal

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

func (*PairByIdRequest) XXX_Merge

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

func (*PairByIdRequest) XXX_Size

func (m *PairByIdRequest) XXX_Size() int

func (*PairByIdRequest) XXX_Unmarshal

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

type PairByPairIdRequest

type PairByPairIdRequest struct {
	PairId string `protobuf:"bytes,1,opt,name=pairId,proto3" json:"pairId,omitempty"`
}

func (*PairByPairIdRequest) Descriptor

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

func (*PairByPairIdRequest) GetPairId

func (m *PairByPairIdRequest) GetPairId() string

func (*PairByPairIdRequest) Marshal

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

func (*PairByPairIdRequest) MarshalTo

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

func (*PairByPairIdRequest) MarshalToSizedBuffer

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

func (*PairByPairIdRequest) ProtoMessage

func (*PairByPairIdRequest) ProtoMessage()

func (*PairByPairIdRequest) Reset

func (m *PairByPairIdRequest) Reset()

func (*PairByPairIdRequest) Size

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

func (*PairByPairIdRequest) String

func (m *PairByPairIdRequest) String() string

func (*PairByPairIdRequest) Unmarshal

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

func (*PairByPairIdRequest) XXX_DiscardUnknown

func (m *PairByPairIdRequest) XXX_DiscardUnknown()

func (*PairByPairIdRequest) XXX_Marshal

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

func (*PairByPairIdRequest) XXX_Merge

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

func (*PairByPairIdRequest) XXX_Size

func (m *PairByPairIdRequest) XXX_Size() int

func (*PairByPairIdRequest) XXX_Unmarshal

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

type PairRequestResponse

type PairRequestResponse struct {
	PairId            string                                 `protobuf:"bytes,1,opt,name=pairId,proto3" json:"pairId,omitempty"`
	AmountInMetadata  types.Metadata                         `protobuf:"bytes,2,opt,name=amountInMetadata,proto3" json:"amountInMetadata" yaml:"amountInMetadata"`
	AmountOutMetadata types.Metadata                         `protobuf:"bytes,3,opt,name=amountOutMetadata,proto3" json:"amountOutMetadata" yaml:"amountOutMetadata"`
	Qm                github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=qm,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"qm" yaml:"qm"`
	Ar                github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=ar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"ar" yaml:"ar"`
	MinAmountIn       string                                 `protobuf:"bytes,6,opt,name=minAmountInt,proto3" json:"minAmountInt,omitempty"`
}

func (*PairRequestResponse) Descriptor

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

func (*PairRequestResponse) GetAmountInMetadata

func (m *PairRequestResponse) GetAmountInMetadata() types.Metadata

func (*PairRequestResponse) GetAmountOutMetadata

func (m *PairRequestResponse) GetAmountOutMetadata() types.Metadata

func (*PairRequestResponse) GetMinAmountIn

func (m *PairRequestResponse) GetMinAmountIn() string

func (*PairRequestResponse) GetPairId

func (m *PairRequestResponse) GetPairId() string

func (*PairRequestResponse) Marshal

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

func (*PairRequestResponse) MarshalTo

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

func (*PairRequestResponse) MarshalToSizedBuffer

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

func (*PairRequestResponse) ProtoMessage

func (*PairRequestResponse) ProtoMessage()

func (*PairRequestResponse) Reset

func (m *PairRequestResponse) Reset()

func (*PairRequestResponse) Size

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

func (*PairRequestResponse) String

func (m *PairRequestResponse) String() string

func (*PairRequestResponse) Unmarshal

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

func (*PairRequestResponse) XXX_DiscardUnknown

func (m *PairRequestResponse) XXX_DiscardUnknown()

func (*PairRequestResponse) XXX_Marshal

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

func (*PairRequestResponse) XXX_Merge

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

func (*PairRequestResponse) XXX_Size

func (m *PairRequestResponse) XXX_Size() int

func (*PairRequestResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

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 (p Params) String() string

String implements the Stringer interface.

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 PortKeeper

type PortKeeper interface {
	BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
}

PortKeeper defines the expected IBC port keeper.

type ProposalMetadata

type ProposalMetadata struct {
	AmountInMetadata  types.Metadata `protobuf:"bytes,1,opt,name=amountInMetadata,proto3" json:"amountInMetadata" yaml:"amountInMetadata"`
	AmountOutMetadata types.Metadata `protobuf:"bytes,2,opt,name=amountOutMetadata,proto3" json:"amountOutMetadata" yaml:"amountOutMetadata"`
	MinAmountIn       string         `protobuf:"bytes,3,opt,name=minAmountIn,proto3" json:"minAmountIn,omitempty"`
}

func (*ProposalMetadata) Descriptor

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

func (*ProposalMetadata) GetAmountInMetadata

func (m *ProposalMetadata) GetAmountInMetadata() types.Metadata

func (*ProposalMetadata) GetAmountOutMetadata

func (m *ProposalMetadata) GetAmountOutMetadata() types.Metadata

func (*ProposalMetadata) GetMinAmountIn

func (m *ProposalMetadata) GetMinAmountIn() string

func (*ProposalMetadata) Marshal

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

func (*ProposalMetadata) MarshalTo

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

func (*ProposalMetadata) MarshalToSizedBuffer

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

func (*ProposalMetadata) ProtoMessage

func (*ProposalMetadata) ProtoMessage()

func (*ProposalMetadata) Reset

func (m *ProposalMetadata) Reset()

func (*ProposalMetadata) Size

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

func (*ProposalMetadata) String

func (m *ProposalMetadata) String() string

func (*ProposalMetadata) Unmarshal

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

func (*ProposalMetadata) XXX_DiscardUnknown

func (m *ProposalMetadata) XXX_DiscardUnknown()

func (*ProposalMetadata) XXX_Marshal

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

func (*ProposalMetadata) XXX_Merge

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

func (*ProposalMetadata) XXX_Size

func (m *ProposalMetadata) XXX_Size() int

func (*ProposalMetadata) XXX_Unmarshal

func (m *ProposalMetadata) 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)
	PairByPairId(ctx context.Context, in *PairByPairIdRequest, opts ...grpc.CallOption) (*PairRequestResponse, error)
	PairById(ctx context.Context, in *PairByIdRequest, opts ...grpc.CallOption) (*PairRequestResponse, 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,omitempty"`
}

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)
	PairByPairId(context.Context, *PairByPairIdRequest) (*PairRequestResponse, error)
	PairById(context.Context, *PairByIdRequest) (*PairRequestResponse, error)
}

QueryServer is the server API for Query service.

type RegisterChangeBurningFundAddressProposal

type RegisterChangeBurningFundAddressProposal struct {
	// title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Address     string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func (*RegisterChangeBurningFundAddressProposal) Descriptor

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

func (*RegisterChangeBurningFundAddressProposal) GetAddress

func (*RegisterChangeBurningFundAddressProposal) GetDescription

func (*RegisterChangeBurningFundAddressProposal) GetTitle

func (*RegisterChangeBurningFundAddressProposal) Marshal

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

func (*RegisterChangeBurningFundAddressProposal) MarshalTo

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

func (*RegisterChangeBurningFundAddressProposal) MarshalToSizedBuffer

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

func (*RegisterChangeBurningFundAddressProposal) ProposalRoute

func (*RegisterChangeBurningFundAddressProposal) ProposalType

func (*RegisterChangeBurningFundAddressProposal) ProtoMessage

func (*RegisterChangeBurningFundAddressProposal) Reset

func (*RegisterChangeBurningFundAddressProposal) Size

func (*RegisterChangeBurningFundAddressProposal) String

func (*RegisterChangeBurningFundAddressProposal) Unmarshal

func (*RegisterChangeBurningFundAddressProposal) ValidateBasic

func (rtbp *RegisterChangeBurningFundAddressProposal) ValidateBasic() error

func (*RegisterChangeBurningFundAddressProposal) XXX_DiscardUnknown

func (m *RegisterChangeBurningFundAddressProposal) XXX_DiscardUnknown()

func (*RegisterChangeBurningFundAddressProposal) XXX_Marshal

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

func (*RegisterChangeBurningFundAddressProposal) XXX_Merge

func (*RegisterChangeBurningFundAddressProposal) XXX_Size

func (*RegisterChangeBurningFundAddressProposal) XXX_Unmarshal

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

type RegisterPairProposal

type RegisterPairProposal struct {
	// title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// metadata slice of the native Cosmos coins
	AmountInMetadata  types.Metadata `protobuf:"bytes,3,opt,name=amountInMetadata,proto3" json:"amountInMetadata" yaml:"amountInMetadata"`
	AmountOutMetadata types.Metadata `protobuf:"bytes,4,opt,name=amountOutMetadata,proto3" json:"amountOutMetadata" yaml:"amountOutMetadata"`
	MinAmountIn       string         `protobuf:"bytes,5,opt,name=minAmountIn,proto3" json:"minAmountIn,omitempty"`
}

func (*RegisterPairProposal) Descriptor

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

func (*RegisterPairProposal) GetAmountInMetadata

func (m *RegisterPairProposal) GetAmountInMetadata() types.Metadata

func (*RegisterPairProposal) GetAmountOutMetadata

func (m *RegisterPairProposal) GetAmountOutMetadata() types.Metadata

func (*RegisterPairProposal) GetDescription

func (m *RegisterPairProposal) GetDescription() string

func (*RegisterPairProposal) GetMinAmountIn

func (m *RegisterPairProposal) GetMinAmountIn() string

func (*RegisterPairProposal) GetTitle

func (m *RegisterPairProposal) GetTitle() string

func (*RegisterPairProposal) Marshal

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

func (*RegisterPairProposal) MarshalTo

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

func (*RegisterPairProposal) MarshalToSizedBuffer

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

func (*RegisterPairProposal) ProposalRoute

func (*RegisterPairProposal) ProposalRoute() string

func (*RegisterPairProposal) ProposalType

func (*RegisterPairProposal) ProposalType() string

func (*RegisterPairProposal) ProtoMessage

func (*RegisterPairProposal) ProtoMessage()

func (*RegisterPairProposal) Reset

func (m *RegisterPairProposal) Reset()

func (*RegisterPairProposal) Size

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

func (*RegisterPairProposal) String

func (m *RegisterPairProposal) String() string

func (*RegisterPairProposal) Unmarshal

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

func (*RegisterPairProposal) ValidateBasic

func (rtbp *RegisterPairProposal) ValidateBasic() error

func (*RegisterPairProposal) XXX_DiscardUnknown

func (m *RegisterPairProposal) XXX_DiscardUnknown()

func (*RegisterPairProposal) XXX_Marshal

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

func (*RegisterPairProposal) XXX_Merge

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

func (*RegisterPairProposal) XXX_Size

func (m *RegisterPairProposal) XXX_Size() int

func (*RegisterPairProposal) XXX_Unmarshal

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

type ScopedKeeper

type ScopedKeeper interface {
	GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool)
	AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
	ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
}

ScopedKeeper defines the expected IBC scoped keeper.

type StablePacketData

type StablePacketData struct {
	// Types that are valid to be assigned to Packet:
	//	*StablePacketData_NoData
	Packet isStablePacketData_Packet `protobuf_oneof:"packet"`
}

func (*StablePacketData) Descriptor

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

func (*StablePacketData) GetNoData

func (m *StablePacketData) GetNoData() *NoData

func (*StablePacketData) GetPacket

func (m *StablePacketData) GetPacket() isStablePacketData_Packet

func (*StablePacketData) Marshal

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

func (*StablePacketData) MarshalTo

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

func (*StablePacketData) MarshalToSizedBuffer

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

func (*StablePacketData) ProtoMessage

func (*StablePacketData) ProtoMessage()

func (*StablePacketData) Reset

func (m *StablePacketData) Reset()

func (*StablePacketData) Size

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

func (*StablePacketData) String

func (m *StablePacketData) String() string

func (*StablePacketData) Unmarshal

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

func (*StablePacketData) XXX_DiscardUnknown

func (m *StablePacketData) XXX_DiscardUnknown()

func (*StablePacketData) XXX_Marshal

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

func (*StablePacketData) XXX_Merge

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

func (*StablePacketData) XXX_OneofWrappers

func (*StablePacketData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*StablePacketData) XXX_Size

func (m *StablePacketData) XXX_Size() int

func (*StablePacketData) XXX_Unmarshal

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

type StablePacketData_NoData

type StablePacketData_NoData struct {
	NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"`
}

func (*StablePacketData_NoData) MarshalTo

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

func (*StablePacketData_NoData) MarshalToSizedBuffer

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

func (*StablePacketData_NoData) Size

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Burn

func (*UnimplementedMsgServer) Mint

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) PairById

func (*UnimplementedQueryServer) PairByPairId

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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