coinswapv1

package
v8.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Params_FullMethodName         = "/canto.coinswap.v1.Query/Params"
	Query_LiquidityPool_FullMethodName  = "/canto.coinswap.v1.Query/LiquidityPool"
	Query_LiquidityPools_FullMethodName = "/canto.coinswap.v1.Query/LiquidityPools"
)
View Source
const (
	Msg_AddLiquidity_FullMethodName    = "/canto.coinswap.v1.Msg/AddLiquidity"
	Msg_RemoveLiquidity_FullMethodName = "/canto.coinswap.v1.Msg/RemoveLiquidity"
	Msg_SwapCoin_FullMethodName        = "/canto.coinswap.v1.Msg/SwapCoin"
	Msg_UpdateParams_FullMethodName    = "/canto.coinswap.v1.Msg/UpdateParams"
)

Variables

View Source
var File_canto_coinswap_v1_coinswap_proto protoreflect.FileDescriptor
View Source
var File_canto_coinswap_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_canto_coinswap_v1_query_proto protoreflect.FileDescriptor
View Source
var File_canto_coinswap_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "canto.coinswap.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddLiquidity",
			Handler:    _Msg_AddLiquidity_Handler,
		},
		{
			MethodName: "RemoveLiquidity",
			Handler:    _Msg_RemoveLiquidity_Handler,
		},
		{
			MethodName: "SwapCoin",
			Handler:    _Msg_SwapCoin_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "canto/coinswap/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "canto.coinswap.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "LiquidityPool",
			Handler:    _Query_LiquidityPool_Handler,
		},
		{
			MethodName: "LiquidityPools",
			Handler:    _Query_LiquidityPools_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "canto/coinswap/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type GenesisState

type GenesisState struct {
	Params        *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	StandardDenom string  `protobuf:"bytes,2,opt,name=standard_denom,json=standardDenom,proto3" json:"standard_denom,omitempty"`
	Pool          []*Pool `protobuf:"bytes,3,rep,name=pool,proto3" json:"pool,omitempty"`
	Sequence      uint64  `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the coinswap module's genesis state

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetPool

func (x *GenesisState) GetPool() []*Pool

func (*GenesisState) GetSequence

func (x *GenesisState) GetSequence() uint64

func (*GenesisState) GetStandardDenom

func (x *GenesisState) GetStandardDenom() string

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type Input

type Input struct {
	Address string        `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Coin    *v1beta1.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin,omitempty"`
	// contains filtered or unexported fields
}

Input defines the properties of order's input

func (*Input) Descriptor deprecated

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

Deprecated: Use Input.ProtoReflect.Descriptor instead.

func (*Input) GetAddress

func (x *Input) GetAddress() string

func (*Input) GetCoin

func (x *Input) GetCoin() *v1beta1.Coin

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) ProtoReflect

func (x *Input) ProtoReflect() protoreflect.Message

func (*Input) Reset

func (x *Input) Reset()

func (*Input) String

func (x *Input) String() string

type MsgAddLiquidity

type MsgAddLiquidity struct {
	MaxToken         *v1beta1.Coin `protobuf:"bytes,1,opt,name=max_token,json=maxToken,proto3" json:"max_token,omitempty"`
	ExactStandardAmt string        `protobuf:"bytes,2,opt,name=exact_standard_amt,json=exactStandardAmt,proto3" json:"exact_standard_amt,omitempty"`
	MinLiquidity     string        `protobuf:"bytes,3,opt,name=min_liquidity,json=minLiquidity,proto3" json:"min_liquidity,omitempty"`
	Deadline         int64         `protobuf:"varint,4,opt,name=deadline,proto3" json:"deadline,omitempty"`
	Sender           string        `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgAddLiquidity defines a msg for adding liquidity to a reserve pool

func (*MsgAddLiquidity) Descriptor deprecated

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

Deprecated: Use MsgAddLiquidity.ProtoReflect.Descriptor instead.

func (*MsgAddLiquidity) GetDeadline

func (x *MsgAddLiquidity) GetDeadline() int64

func (*MsgAddLiquidity) GetExactStandardAmt

func (x *MsgAddLiquidity) GetExactStandardAmt() string

func (*MsgAddLiquidity) GetMaxToken

func (x *MsgAddLiquidity) GetMaxToken() *v1beta1.Coin

func (*MsgAddLiquidity) GetMinLiquidity

func (x *MsgAddLiquidity) GetMinLiquidity() string

func (*MsgAddLiquidity) GetSender

func (x *MsgAddLiquidity) GetSender() string

func (*MsgAddLiquidity) ProtoMessage

func (*MsgAddLiquidity) ProtoMessage()

func (*MsgAddLiquidity) ProtoReflect

func (x *MsgAddLiquidity) ProtoReflect() protoreflect.Message

func (*MsgAddLiquidity) Reset

func (x *MsgAddLiquidity) Reset()

func (*MsgAddLiquidity) String

func (x *MsgAddLiquidity) String() string

type MsgAddLiquidityResponse

type MsgAddLiquidityResponse struct {
	MintToken *v1beta1.Coin `protobuf:"bytes,1,opt,name=mint_token,json=mintToken,proto3" json:"mint_token,omitempty"`
	// contains filtered or unexported fields
}

MsgAddLiquidityResponse defines the Msg/AddLiquidity response type

func (*MsgAddLiquidityResponse) Descriptor deprecated

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

Deprecated: Use MsgAddLiquidityResponse.ProtoReflect.Descriptor instead.

func (*MsgAddLiquidityResponse) GetMintToken

func (x *MsgAddLiquidityResponse) GetMintToken() *v1beta1.Coin

func (*MsgAddLiquidityResponse) ProtoMessage

func (*MsgAddLiquidityResponse) ProtoMessage()

func (*MsgAddLiquidityResponse) ProtoReflect

func (x *MsgAddLiquidityResponse) ProtoReflect() protoreflect.Message

func (*MsgAddLiquidityResponse) Reset

func (x *MsgAddLiquidityResponse) Reset()

func (*MsgAddLiquidityResponse) String

func (x *MsgAddLiquidityResponse) String() string

type MsgClient

type MsgClient interface {
	// AddLiquidity defines a method for depositing some tokens to the liquidity
	// pool
	AddLiquidity(ctx context.Context, in *MsgAddLiquidity, opts ...grpc.CallOption) (*MsgAddLiquidityResponse, error)
	// RemoveLiquidity defines a method for withdraw some tokens from the
	// liquidity pool
	RemoveLiquidity(ctx context.Context, in *MsgRemoveLiquidity, opts ...grpc.CallOption) (*MsgRemoveLiquidityResponse, error)
	// SwapCoin defines a method for swapping a token with the other token from
	// the liquidity pool
	SwapCoin(ctx context.Context, in *MsgSwapOrder, opts ...grpc.CallOption) (*MsgSwapCoinResponse, error)
	// UpdateParams defines a governance operation for updating the x/coinswap
	// module parameters. The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgRemoveLiquidity

type MsgRemoveLiquidity struct {
	WithdrawLiquidity *v1beta1.Coin `protobuf:"bytes,1,opt,name=withdraw_liquidity,json=withdrawLiquidity,proto3" json:"withdraw_liquidity,omitempty"`
	MinToken          string        `protobuf:"bytes,2,opt,name=min_token,json=minToken,proto3" json:"min_token,omitempty"`
	MinStandardAmt    string        `protobuf:"bytes,3,opt,name=min_standard_amt,json=minStandardAmt,proto3" json:"min_standard_amt,omitempty"`
	Deadline          int64         `protobuf:"varint,4,opt,name=deadline,proto3" json:"deadline,omitempty"`
	Sender            string        `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgRemoveLiquidity defines a msg for removing liquidity from a reserve pool

func (*MsgRemoveLiquidity) Descriptor deprecated

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

Deprecated: Use MsgRemoveLiquidity.ProtoReflect.Descriptor instead.

func (*MsgRemoveLiquidity) GetDeadline

func (x *MsgRemoveLiquidity) GetDeadline() int64

func (*MsgRemoveLiquidity) GetMinStandardAmt

func (x *MsgRemoveLiquidity) GetMinStandardAmt() string

func (*MsgRemoveLiquidity) GetMinToken

func (x *MsgRemoveLiquidity) GetMinToken() string

func (*MsgRemoveLiquidity) GetSender

func (x *MsgRemoveLiquidity) GetSender() string

func (*MsgRemoveLiquidity) GetWithdrawLiquidity

func (x *MsgRemoveLiquidity) GetWithdrawLiquidity() *v1beta1.Coin

func (*MsgRemoveLiquidity) ProtoMessage

func (*MsgRemoveLiquidity) ProtoMessage()

func (*MsgRemoveLiquidity) ProtoReflect

func (x *MsgRemoveLiquidity) ProtoReflect() protoreflect.Message

func (*MsgRemoveLiquidity) Reset

func (x *MsgRemoveLiquidity) Reset()

func (*MsgRemoveLiquidity) String

func (x *MsgRemoveLiquidity) String() string

type MsgRemoveLiquidityResponse

type MsgRemoveLiquidityResponse struct {
	WithdrawCoins []*v1beta1.Coin `protobuf:"bytes,1,rep,name=withdraw_coins,json=withdrawCoins,proto3" json:"withdraw_coins,omitempty"`
	// contains filtered or unexported fields
}

MsgRemoveLiquidityResponse defines the Msg/RemoveLiquidity response type

func (*MsgRemoveLiquidityResponse) Descriptor deprecated

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

Deprecated: Use MsgRemoveLiquidityResponse.ProtoReflect.Descriptor instead.

func (*MsgRemoveLiquidityResponse) GetWithdrawCoins

func (x *MsgRemoveLiquidityResponse) GetWithdrawCoins() []*v1beta1.Coin

func (*MsgRemoveLiquidityResponse) ProtoMessage

func (*MsgRemoveLiquidityResponse) ProtoMessage()

func (*MsgRemoveLiquidityResponse) ProtoReflect

func (*MsgRemoveLiquidityResponse) Reset

func (x *MsgRemoveLiquidityResponse) Reset()

func (*MsgRemoveLiquidityResponse) String

func (x *MsgRemoveLiquidityResponse) String() string

type MsgServer

type MsgServer interface {
	// AddLiquidity defines a method for depositing some tokens to the liquidity
	// pool
	AddLiquidity(context.Context, *MsgAddLiquidity) (*MsgAddLiquidityResponse, error)
	// RemoveLiquidity defines a method for withdraw some tokens from the
	// liquidity pool
	RemoveLiquidity(context.Context, *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error)
	// SwapCoin defines a method for swapping a token with the other token from
	// the liquidity pool
	SwapCoin(context.Context, *MsgSwapOrder) (*MsgSwapCoinResponse, error)
	// UpdateParams defines a governance operation for updating the x/coinswap
	// module parameters. The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSwapCoinResponse

type MsgSwapCoinResponse struct {
	// contains filtered or unexported fields
}

MsgSwapCoinResponse defines the Msg/SwapCoin response type

func (*MsgSwapCoinResponse) Descriptor deprecated

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

Deprecated: Use MsgSwapCoinResponse.ProtoReflect.Descriptor instead.

func (*MsgSwapCoinResponse) ProtoMessage

func (*MsgSwapCoinResponse) ProtoMessage()

func (*MsgSwapCoinResponse) ProtoReflect

func (x *MsgSwapCoinResponse) ProtoReflect() protoreflect.Message

func (*MsgSwapCoinResponse) Reset

func (x *MsgSwapCoinResponse) Reset()

func (*MsgSwapCoinResponse) String

func (x *MsgSwapCoinResponse) String() string

type MsgSwapOrder

type MsgSwapOrder struct {
	Input      *Input  `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	Output     *Output `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	Deadline   int64   `protobuf:"varint,3,opt,name=deadline,proto3" json:"deadline,omitempty"`
	IsBuyOrder bool    `protobuf:"varint,4,opt,name=is_buy_order,json=isBuyOrder,proto3" json:"is_buy_order,omitempty"`
	// contains filtered or unexported fields
}

MsgSwapOrder defines a msg for swap order

func (*MsgSwapOrder) Descriptor deprecated

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

Deprecated: Use MsgSwapOrder.ProtoReflect.Descriptor instead.

func (*MsgSwapOrder) GetDeadline

func (x *MsgSwapOrder) GetDeadline() int64

func (*MsgSwapOrder) GetInput

func (x *MsgSwapOrder) GetInput() *Input

func (*MsgSwapOrder) GetIsBuyOrder

func (x *MsgSwapOrder) GetIsBuyOrder() bool

func (*MsgSwapOrder) GetOutput

func (x *MsgSwapOrder) GetOutput() *Output

func (*MsgSwapOrder) ProtoMessage

func (*MsgSwapOrder) ProtoMessage()

func (*MsgSwapOrder) ProtoReflect

func (x *MsgSwapOrder) ProtoReflect() protoreflect.Message

func (*MsgSwapOrder) Reset

func (x *MsgSwapOrder) Reset()

func (*MsgSwapOrder) String

func (x *MsgSwapOrder) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/coinswap parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Output

type Output struct {
	Address string        `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Coin    *v1beta1.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin,omitempty"`
	// contains filtered or unexported fields
}

Output defines the properties of order's output

func (*Output) Descriptor deprecated

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

Deprecated: Use Output.ProtoReflect.Descriptor instead.

func (*Output) GetAddress

func (x *Output) GetAddress() string

func (*Output) GetCoin

func (x *Output) GetCoin() *v1beta1.Coin

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) ProtoReflect

func (x *Output) ProtoReflect() protoreflect.Message

func (*Output) Reset

func (x *Output) Reset()

func (*Output) String

func (x *Output) String() string

type Params

type Params struct {
	Fee                    string          `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"`
	PoolCreationFee        *v1beta1.Coin   `protobuf:"bytes,2,opt,name=pool_creation_fee,json=poolCreationFee,proto3" json:"pool_creation_fee,omitempty"`
	TaxRate                string          `protobuf:"bytes,3,opt,name=tax_rate,json=taxRate,proto3" json:"tax_rate,omitempty"`
	MaxStandardCoinPerPool string          `` /* 133-byte string literal not displayed */
	MaxSwapAmount          []*v1beta1.Coin `protobuf:"bytes,6,rep,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	// contains filtered or unexported fields
}

Params defines token module's parameters

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetFee

func (x *Params) GetFee() string

func (*Params) GetMaxStandardCoinPerPool

func (x *Params) GetMaxStandardCoinPerPool() string

func (*Params) GetMaxSwapAmount

func (x *Params) GetMaxSwapAmount() []*v1beta1.Coin

func (*Params) GetPoolCreationFee

func (x *Params) GetPoolCreationFee() *v1beta1.Coin

func (*Params) GetTaxRate

func (x *Params) GetTaxRate() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type Pool

type Pool struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// denom of base coin of the pool
	StandardDenom string `protobuf:"bytes,2,opt,name=standard_denom,json=standardDenom,proto3" json:"standard_denom,omitempty"`
	// denom of counterparty coin of the pool
	CounterpartyDenom string `protobuf:"bytes,3,opt,name=counterparty_denom,json=counterpartyDenom,proto3" json:"counterparty_denom,omitempty"`
	// escrow account for deposit tokens
	EscrowAddress string `protobuf:"bytes,4,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"`
	// denom of the liquidity pool coin
	LptDenom string `protobuf:"bytes,5,opt,name=lpt_denom,json=lptDenom,proto3" json:"lpt_denom,omitempty"`
	// contains filtered or unexported fields
}

func (*Pool) Descriptor deprecated

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

Deprecated: Use Pool.ProtoReflect.Descriptor instead.

func (*Pool) GetCounterpartyDenom

func (x *Pool) GetCounterpartyDenom() string

func (*Pool) GetEscrowAddress

func (x *Pool) GetEscrowAddress() string

func (*Pool) GetId

func (x *Pool) GetId() string

func (*Pool) GetLptDenom

func (x *Pool) GetLptDenom() string

func (*Pool) GetStandardDenom

func (x *Pool) GetStandardDenom() string

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) ProtoReflect

func (x *Pool) ProtoReflect() protoreflect.Message

func (*Pool) Reset

func (x *Pool) Reset()

func (*Pool) String

func (x *Pool) String() string

type PoolInfo

type PoolInfo struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// escrow account for deposit tokens
	EscrowAddress string `protobuf:"bytes,2,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"`
	// main token balance
	Standard *v1beta11.Coin `protobuf:"bytes,3,opt,name=standard,proto3" json:"standard,omitempty"`
	// counterparty token balance
	Token *v1beta11.Coin `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
	// liquidity token balance
	Lpt *v1beta11.Coin `protobuf:"bytes,5,opt,name=lpt,proto3" json:"lpt,omitempty"`
	// liquidity pool fee
	Fee string `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*PoolInfo) Descriptor deprecated

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

Deprecated: Use PoolInfo.ProtoReflect.Descriptor instead.

func (*PoolInfo) GetEscrowAddress

func (x *PoolInfo) GetEscrowAddress() string

func (*PoolInfo) GetFee

func (x *PoolInfo) GetFee() string

func (*PoolInfo) GetId

func (x *PoolInfo) GetId() string

func (*PoolInfo) GetLpt

func (x *PoolInfo) GetLpt() *v1beta11.Coin

func (*PoolInfo) GetStandard

func (x *PoolInfo) GetStandard() *v1beta11.Coin

func (*PoolInfo) GetToken

func (x *PoolInfo) GetToken() *v1beta11.Coin

func (*PoolInfo) ProtoMessage

func (*PoolInfo) ProtoMessage()

func (*PoolInfo) ProtoReflect

func (x *PoolInfo) ProtoReflect() protoreflect.Message

func (*PoolInfo) Reset

func (x *PoolInfo) Reset()

func (*PoolInfo) String

func (x *PoolInfo) String() string

type QueryClient

type QueryClient interface {
	// Params returns parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// LiquidityPool returns the liquidity pool for the provided
	// lpt_denom
	LiquidityPool(ctx context.Context, in *QueryLiquidityPoolRequest, opts ...grpc.CallOption) (*QueryLiquidityPoolResponse, error)
	// LiquidityPools returns all the liquidity pools available
	LiquidityPools(ctx context.Context, in *QueryLiquidityPoolsRequest, opts ...grpc.CallOption) (*QueryLiquidityPoolsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryLiquidityPoolRequest

type QueryLiquidityPoolRequest struct {
	LptDenom string `protobuf:"bytes,1,opt,name=lpt_denom,json=lptDenom,proto3" json:"lpt_denom,omitempty"`
	// contains filtered or unexported fields
}

QueryLiquidityPoolRequest is request type for the Query/LiquidityPool RPC method

func (*QueryLiquidityPoolRequest) Descriptor deprecated

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

Deprecated: Use QueryLiquidityPoolRequest.ProtoReflect.Descriptor instead.

func (*QueryLiquidityPoolRequest) GetLptDenom

func (x *QueryLiquidityPoolRequest) GetLptDenom() string

func (*QueryLiquidityPoolRequest) ProtoMessage

func (*QueryLiquidityPoolRequest) ProtoMessage()

func (*QueryLiquidityPoolRequest) ProtoReflect

func (*QueryLiquidityPoolRequest) Reset

func (x *QueryLiquidityPoolRequest) Reset()

func (*QueryLiquidityPoolRequest) String

func (x *QueryLiquidityPoolRequest) String() string

type QueryLiquidityPoolResponse

type QueryLiquidityPoolResponse struct {
	Pool *PoolInfo `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
	// contains filtered or unexported fields
}

QueryLiquidityPoolResponse is response type for the Query/LiquidityPool RPC method

func (*QueryLiquidityPoolResponse) Descriptor deprecated

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

Deprecated: Use QueryLiquidityPoolResponse.ProtoReflect.Descriptor instead.

func (*QueryLiquidityPoolResponse) GetPool

func (x *QueryLiquidityPoolResponse) GetPool() *PoolInfo

func (*QueryLiquidityPoolResponse) ProtoMessage

func (*QueryLiquidityPoolResponse) ProtoMessage()

func (*QueryLiquidityPoolResponse) ProtoReflect

func (*QueryLiquidityPoolResponse) Reset

func (x *QueryLiquidityPoolResponse) Reset()

func (*QueryLiquidityPoolResponse) String

func (x *QueryLiquidityPoolResponse) String() string

type QueryLiquidityPoolsRequest

type QueryLiquidityPoolsRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryLiquidityPoolsRequest is request type for the Query/LiquidityPools RPC method

func (*QueryLiquidityPoolsRequest) Descriptor deprecated

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

Deprecated: Use QueryLiquidityPoolsRequest.ProtoReflect.Descriptor instead.

func (*QueryLiquidityPoolsRequest) GetPagination

func (x *QueryLiquidityPoolsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryLiquidityPoolsRequest) ProtoMessage

func (*QueryLiquidityPoolsRequest) ProtoMessage()

func (*QueryLiquidityPoolsRequest) ProtoReflect

func (*QueryLiquidityPoolsRequest) Reset

func (x *QueryLiquidityPoolsRequest) Reset()

func (*QueryLiquidityPoolsRequest) String

func (x *QueryLiquidityPoolsRequest) String() string

type QueryLiquidityPoolsResponse

type QueryLiquidityPoolsResponse struct {
	Pools      []*PoolInfo           `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryLiquidityPoolsResponse is response type for the Query/LiquidityPools RPC method

func (*QueryLiquidityPoolsResponse) Descriptor deprecated

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

Deprecated: Use QueryLiquidityPoolsResponse.ProtoReflect.Descriptor instead.

func (*QueryLiquidityPoolsResponse) GetPagination

func (x *QueryLiquidityPoolsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryLiquidityPoolsResponse) GetPools

func (x *QueryLiquidityPoolsResponse) GetPools() []*PoolInfo

func (*QueryLiquidityPoolsResponse) ProtoMessage

func (*QueryLiquidityPoolsResponse) ProtoMessage()

func (*QueryLiquidityPoolsResponse) ProtoReflect

func (*QueryLiquidityPoolsResponse) Reset

func (x *QueryLiquidityPoolsResponse) Reset()

func (*QueryLiquidityPoolsResponse) String

func (x *QueryLiquidityPoolsResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer

type QueryServer interface {
	// Params returns parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// LiquidityPool returns the liquidity pool for the provided
	// lpt_denom
	LiquidityPool(context.Context, *QueryLiquidityPoolRequest) (*QueryLiquidityPoolResponse, error)
	// LiquidityPools returns all the liquidity pools available
	LiquidityPools(context.Context, *QueryLiquidityPoolsRequest) (*QueryLiquidityPoolsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) AddLiquidity

func (UnimplementedMsgServer) RemoveLiquidity

func (UnimplementedMsgServer) SwapCoin

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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