types

package
v2.0.1-0...-c6a7496 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	PowerFunction     = "power_function"
	SigmoidFunction   = "sigmoid_function"
	SwapperFunction   = "swapper_function"
	AugmentedFunction = "augmented_function"
	BondingFunction   = "bonding_function"

	HatchState  BondState = "HATCH"
	OpenState   BondState = "OPEN"
	SettleState BondState = "SETTLE"
	FailedState BondState = "FAILED"

	DoNotModifyField = "[do-not-modify]"

	AnyNumberOfReserveTokens = -1
)
View Source
const (
	// ModuleName is the name of this module
	ModuleName = "bonds"

	// StoreKey is the default store key for this module
	StoreKey = ModuleName

	// DefaultParamspace is the default param space for this module
	DefaultParamspace = ModuleName

	// BondsMintBurnAccount the root string for the bonds mint burn account address
	BondsMintBurnAccount = "bonds_mint_burn_account"

	// BatchesIntermediaryAccount the root string for the batches account address
	BatchesIntermediaryAccount = "batches_intermediary_account"

	// BondsReserveAccount the root string for the bonds reserve account address
	BondsReserveAccount = "bonds_reserve_account"

	// QuerierRoute is the querier route for this module's store.
	QuerierRoute = ModuleName

	// RouterKey is the message route for this module
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgCreateBond         = "create_bond"
	TypeMsgEditBond           = "edit_bond"
	TypeMsgSetNextAlpha       = "set_next_alpha"
	TypeMsgUpdateBondState    = "update_bond_state"
	TypeMsgBuy                = "buy"
	TypeMsgSell               = "sell"
	TypeMsgSwap               = "swap"
	TypeMsgMakeOutcomePayment = "make_outcome_payment"
	TypeMsgWithdrawShare      = "withdraw_share"
	TypeMsgWithdrawReserve    = "withdraw_reserve"
)
View Source
const (
	DefaultCodespace = ModuleName
)

Variables

View Source
var (
	RequiredParamsForFunctionType = map[string][]string{
		PowerFunction:     {"m", "n", "c"},
		SigmoidFunction:   {"a", "b", "c"},
		SwapperFunction:   nil,
		AugmentedFunction: {"d0", "p0", "theta", "kappa"},
	}

	NoOfReserveTokensForFunctionType = map[string]int{
		PowerFunction:     AnyNumberOfReserveTokens,
		SigmoidFunction:   AnyNumberOfReserveTokens,
		SwapperFunction:   2,
		AugmentedFunction: AnyNumberOfReserveTokens,
	}

	ExtraParameterRestrictions = map[string]FunctionParamRestrictions{
		PowerFunction:     nil,
		SigmoidFunction:   sigmoidParameterRestrictions,
		SwapperFunction:   nil,
		AugmentedFunction: augmentedParameterRestrictions,
	}
)
View Source
var (
	ErrInvalidLengthBonds        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBonds          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBonds = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	TEN = []sdk.Uint{
		sdk.NewUintFromString("1"),
		sdk.NewUintFromString("10"),
		sdk.NewUintFromString("100"),
		sdk.NewUintFromString("1000"),
		sdk.NewUintFromString("10000"),
		sdk.NewUintFromString("100000"),
		sdk.NewUintFromString("1000000"),
		sdk.NewUintFromString("10000000"),
		sdk.NewUintFromString("100000000"),
		sdk.NewUintFromString("1000000000"),

		sdk.NewUintFromString("10000000000"),
		sdk.NewUintFromString("100000000000"),
		sdk.NewUintFromString("1000000000000"),
		sdk.NewUintFromString("10000000000000"),
		sdk.NewUintFromString("100000000000000"),
		sdk.NewUintFromString("1000000000000000"),
		sdk.NewUintFromString("10000000000000000"),
		sdk.NewUintFromString("100000000000000000"),
		sdk.NewUintFromString("1000000000000000000"),
		sdk.NewUintFromString("10000000000000000000"),

		sdk.NewUintFromString("100000000000000000000"),
		sdk.NewUintFromString("1000000000000000000000"),
		sdk.NewUintFromString("10000000000000000000000"),
		sdk.NewUintFromString("100000000000000000000000"),
		sdk.NewUintFromString("1000000000000000000000000"),
		sdk.NewUintFromString("10000000000000000000000000"),
		sdk.NewUintFromString("100000000000000000000000000"),
		sdk.NewUintFromString("1000000000000000000000000000"),
		sdk.NewUintFromString("10000000000000000000000000000"),
		sdk.NewUintFromString("100000000000000000000000000000"),

		sdk.NewUintFromString("1000000000000000000000000000000"),
		sdk.NewUintFromString("10000000000000000000000000000000"),
		sdk.NewUintFromString("100000000000000000000000000000000"),
		sdk.NewUintFromString("1000000000000000000000000000000000"),
		sdk.NewUintFromString("10000000000000000000000000000000000"),
		sdk.NewUintFromString("100000000000000000000000000000000000"),
		sdk.NewUintFromString("1000000000000000000000000000000000000"),
		sdk.NewUintFromString("10000000000000000000000000000000000000"),
		sdk.NewUintFromString("100000000000000000000000000000000000000"),
		sdk.NewUintFromString("1000000000000000000000000000000000000000"),
	}

	// ln(2) - used in ln(x). 30 DP.
	LN2 = sdk.NewUintFromString("693147180559945309417232121458")

	// 1 / ln(2) - used in exp(x). 30 DP.
	ONE_OVER_LN2 = sdk.NewUintFromString("1442695040888963407359924681002")

	ZeroUint = sdk.ZeroUint()
	OneUint  = sdk.OneUint()
	TwoUint  = sdk.NewUint(2)
	FiveUint = sdk.NewUint(5)
	TenUint  = sdk.NewUint(10)

	// LUT flags
	LUT1_isSet   = false
	LUT2_isSet   = false
	LUT3_1_isSet = false
	LUT3_2_isSet = false
	LUT3_3_isSet = false
	LUT3_4_isSet = false
)
View Source
var (
	ErrArgumentCannotBeEmpty                = sdkerrors.Register(DefaultCodespace, 2, "argument cannot be empty")
	ErrArgumentCannotBeNegative             = sdkerrors.Register(DefaultCodespace, 3, "argument cannot be negative")
	ErrArgumentMustBePositive               = sdkerrors.Register(DefaultCodespace, 4, "argument must be a positive value")
	ErrArgumentMustBeInteger                = sdkerrors.Register(DefaultCodespace, 5, "argument must be an integer value")
	ErrArgumentMustBeBetween                = sdkerrors.Register(DefaultCodespace, 6, "argument must be between")
	ErrFunctionParameterMissingOrNonFloat   = sdkerrors.Register(DefaultCodespace, 7, "parameter is missing or is not a float")
	ErrArgumentMissingOrNonFloat            = sdkerrors.Register(DefaultCodespace, 8, "argument is missing or is not a float")
	ErrArgumentMissingOrNonUInteger         = sdkerrors.Register(DefaultCodespace, 9, "argument is missing or is not an unsigned integer")
	ErrArgumentMissingOrNonBoolean          = sdkerrors.Register(DefaultCodespace, 10, "argument is missing or is not true or false")
	ErrIncorrectNumberOfReserveTokens       = sdkerrors.Register(DefaultCodespace, 11, "incorrect number of reserve tokens")
	ErrIncorrectNumberOfFunctionParameters  = sdkerrors.Register(DefaultCodespace, 12, "incorrect number of function parameters")
	ErrBondDoesNotExist                     = sdkerrors.Register(DefaultCodespace, 13, "bond does not exist")
	ErrBondAlreadyExists                    = sdkerrors.Register(DefaultCodespace, 14, "bond already exists")
	ErrBondTokenIsTaken                     = sdkerrors.Register(DefaultCodespace, 15, "bond token is taken")
	ErrBondDoesNotAllowSelling              = sdkerrors.Register(DefaultCodespace, 16, "bond does not allow selling at the moment")
	ErrDidNotEditAnything                   = sdkerrors.Register(DefaultCodespace, 17, "did not edit any bond field")
	ErrFromAndToCannotBeTheSameToken        = sdkerrors.Register(DefaultCodespace, 18, "from and to tokens cannot be the same token")
	ErrDuplicateReserveToken                = sdkerrors.Register(DefaultCodespace, 19, "cannot have duplicate tokens in reserve tokens")
	ErrInvalidStateForAction                = sdkerrors.Register(DefaultCodespace, 20, "cannot perform that action at the current state")
	ErrUnrecognizedFunctionType             = sdkerrors.Register(DefaultCodespace, 21, "unrecognized function type")
	ErrInvalidFunctionParameter             = sdkerrors.Register(DefaultCodespace, 22, "invalid function parameter")
	ErrFunctionNotAvailableForFunctionType  = sdkerrors.Register(DefaultCodespace, 23, "function is not available for the function type")
	ErrFunctionRequiresNonZeroCurrentSupply = sdkerrors.Register(DefaultCodespace, 24, "function requires the current supply to be non zero")
	ErrTokenIsNotAValidReserveToken         = sdkerrors.Register(DefaultCodespace, 25, "token is not a valid reserve token")
	ErrMaxSupplyDenomDoesNotMatchTokenDenom = sdkerrors.Register(DefaultCodespace, 26, "max supply denom does not match token denom")
	ErrBondTokenCannotAlsoBeReserveToken    = sdkerrors.Register(DefaultCodespace, 27, "token cannot also be a reserve token")
	ErrBondTokenCannotBeStakingToken        = sdkerrors.Register(DefaultCodespace, 28, "bond token cannot be staking token")
	ErrReserveDenomsMismatch                = sdkerrors.Register(DefaultCodespace, 29, "denoms do not match reserve denoms")
	ErrCannotMintMoreThanMaxSupply          = sdkerrors.Register(DefaultCodespace, 30, "cannot mint more tokens than the max supply")
	ErrCannotBurnMoreThanSupply             = sdkerrors.Register(DefaultCodespace, 31, "cannot burn more tokens than the current supply")
	ErrMaxPriceExceeded                     = sdkerrors.Register(DefaultCodespace, 32, "actual prices exceed max prices")
	ErrSwapAmountTooSmallToGiveAnyReturn    = sdkerrors.Register(DefaultCodespace, 33, "swap amount too small to give any return")
	ErrSwapAmountCausesReserveDepletion     = sdkerrors.Register(DefaultCodespace, 34, "swap amount too large and causes reserve to be depleted")
	ErrOrderQuantityLimitExceeded           = sdkerrors.Register(DefaultCodespace, 35, "order quantity limits exceeded")
	ErrValuesViolateSanityRate              = sdkerrors.Register(DefaultCodespace, 36, "values violate sanity rate")
	ErrFeesCannotBeOrExceed100Percent       = sdkerrors.Register(DefaultCodespace, 37, "sum of fees is or exceeds 100 percent")
	ErrNoBondTokensOwned                    = sdkerrors.Register(DefaultCodespace, 38, "no bond tokens of this bond are owned")
	ErrInsufficientReserveToBuy             = sdkerrors.Register(DefaultCodespace, 39, "insufficient reserve was supplied to perform buy order")
	ErrBondTokenDoesNotMatchBond            = sdkerrors.Register(DefaultCodespace, 40, "bond token does not match bond")
	ErrReservedBondToken                    = sdkerrors.Register(DefaultCodespace, 41, "bond token is reserved")
	ErrInvalidAlpha                         = sdkerrors.Register(DefaultCodespace, 42, "alpha value is invalid")
	ErrNumericOverflow                      = sdkerrors.Register(DefaultCodespace, 43, "numeric overflow")
	ErrInvalidStateProgression              = sdkerrors.Register(DefaultCodespace, 44, "invalid state progression requested")
	ErrCannotAllowSellsAndWithdrawals       = sdkerrors.Register(DefaultCodespace, 45, "cannot allow both sells and reserve withdrawals")
	ErrInsufficientReserveForWithdraw       = sdkerrors.Register(DefaultCodespace, 46, "requested withdraw amount is greater than available reserve")
)
View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = 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 (
	BondsKeyPrefix       = []byte{0x00} // key for bonds
	BatchesKeyPrefix     = []byte{0x01} // key for batches
	LastBatchesKeyPrefix = []byte{0x02} // key for last batches
	BondDidsKeyPrefix    = []byte{0x03} // key for bond DIDs
)

Bonds and batches are stored as follow:

- Bonds: 0x00<bond_did_bytes> - Batches: 0x01<bond_did_bytes> - Last batches: 0x02<bond_did_bytes> - Bond DIDs: 0x03<bond_token_bytes>

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 (
	KeyReservedBondTokens = []byte("ReservedBondTokens")
)

Parameter store keys

View Source
var (

	// ModuleCdc references the global x/did module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/did and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	StartingPublicAlpha = sdk.MustNewDecFromStr("0.5")
)
View Source
var StateTransitions = initStateTransitions()
View Source
var (
	TEN18DEC = sdk.MustNewDecFromStr("1000000000000000000") // 1e18
)

Functions

func AccAddressesToString

func AccAddressesToString(addresses []sdk.AccAddress) (result string)

func AdjustFees

func AdjustFees(fees sdk.Coins, maxFees sdk.Coins) sdk.Coins

func ApproxPower

func ApproxPower(d sdk.Dec, power sdk.Dec) (guess sdk.Dec, err error)

ApproxPower returns an approximation of raising a Dec to a positive power

func ApproxRoot

func ApproxRoot(d sdk.Dec, root sdk.Dec) (guess sdk.Dec, err error)

ApproxRoot returns an approximation of a Dec's nth root

func CheckCoinDenom

func CheckCoinDenom(denom string) (err error)

func CheckNoOfReserveTokens

func CheckNoOfReserveTokens(resTokens []string, fnType string) error

func CheckReserveTokenNames

func CheckReserveTokenNames(resTokens []string, token string) error

func ConvertFloat64ToDec

func ConvertFloat64ToDec(f float64) (sdk.Dec, error)

func DivideDecCoinByDec

func DivideDecCoinByDec(dc sdk.DecCoin, scale sdk.Dec) sdk.DecCoin

func DivideDecCoinsByDec

func DivideDecCoinsByDec(dcs sdk.DecCoins, scale sdk.Dec) (scaled sdk.DecCoins)

noinspection GoNilness

func GetBatchKey

func GetBatchKey(bondDid string) []byte

func GetBondDidsKey

func GetBondDidsKey(token string) []byte

func GetBondKey

func GetBondKey(bondDid string) []byte

func GetLastBatchKey

func GetLastBatchKey(bondDid string) []byte

func GetRequiredParamsForFunctionType

func GetRequiredParamsForFunctionType(fnType string) (fnParams []string, err error)

func Invariant

func Invariant(R, S sdk.Dec, kappa sdk.Dec) (sdk.Dec, error)

value function for a given state (R,S)

func InvariantI

func InvariantI(C sdk.Int, alpha sdk.Dec, R sdk.Int) sdk.Dec

func InvariantIAlt

func InvariantIAlt(C sdk.Int, alpha sdk.Dec, kappa sdk.Dec) sdk.Dec

func Kappa

func Kappa(I sdk.Dec, C sdk.Int, alpha sdk.Dec) sdk.Dec

func MultiplyDecCoinByDec

func MultiplyDecCoinByDec(dc sdk.DecCoin, scale sdk.Dec) sdk.DecCoin

func MultiplyDecCoinByInt

func MultiplyDecCoinByInt(dc sdk.DecCoin, scale sdk.Int) sdk.DecCoin

func MultiplyDecCoinsByDec

func MultiplyDecCoinsByDec(dcs sdk.DecCoins, scale sdk.Dec) (scaled sdk.DecCoins)

noinspection GoNilness

func MultiplyDecCoinsByInt

func MultiplyDecCoinsByInt(dcs sdk.DecCoins, scale sdk.Int) (scaled sdk.DecCoins)

noinspection GoNilness

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamTable for bonds module.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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)

func Reserve

func Reserve(S sdk.Dec, kappa sdk.Dec, V0 sdk.Dec) (sdk.Dec, error)

This is the reverse of Supply(...) function

func RoundFee

func RoundFee(f sdk.DecCoin) sdk.Coin

func RoundReservePrice

func RoundReservePrice(p sdk.DecCoin) sdk.Coin

func RoundReservePrices

func RoundReservePrices(ps sdk.DecCoins) (rounded sdk.Coins)

noinspection GoNilness

func RoundReserveReturn

func RoundReserveReturn(r sdk.DecCoin) sdk.Coin

func RoundReserveReturns

func RoundReserveReturns(rs sdk.DecCoins) (rounded sdk.Coins)

noinspection GoNilness

func SpotPrice

func SpotPrice(R sdk.Dec, kappa sdk.Dec, V0 sdk.Dec) (sdk.Dec, error)

given a value function (parameterized by kappa) and an invariant coeficient V0 return a spot price P as a function of reserve R

func StringsToString

func StringsToString(strs []string) (result string)

func SystemAlpha

func SystemAlpha(publicAlpha sdk.Dec, S0, S1, R, C sdk.Int) sdk.Dec

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

func ValidateParams

func ValidateParams(params Params) error

validate params

Types

type AugmentedBondRevision1

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

func (*AugmentedBondRevision1) CalculatePriceForTokens

func (algo *AugmentedBondRevision1) CalculatePriceForTokens(price sdk.Coin) (sdk.DecCoin, error)

func (*AugmentedBondRevision1) CalculateTokensForPrice

func (algo *AugmentedBondRevision1) CalculateTokensForPrice(price sdk.Coin) (sdk.DecCoin, error)

func (*AugmentedBondRevision1) ExportToBond

func (algo *AugmentedBondRevision1) ExportToBond(bond *Bond) error

func (*AugmentedBondRevision1) ExportToMap

func (algo *AugmentedBondRevision1) ExportToMap() map[string]float64

func (*AugmentedBondRevision1) Init

func (algo *AugmentedBondRevision1) Init(bond Bond) error

func (*AugmentedBondRevision1) Revision

func (algo *AugmentedBondRevision1) Revision() int64

func (*AugmentedBondRevision1) UpdateAlpha

func (algo *AugmentedBondRevision1) UpdateAlpha(_ap, _delta float64) error

type BaseOrder

type BaseOrder struct {
	AccountDid   github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 167-byte string literal not displayed */
	Amount       types.Coin                                                         `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
	Cancelled    bool                                                               `protobuf:"varint,3,opt,name=cancelled,proto3" json:"cancelled,omitempty"`
	CancelReason string                                                             `protobuf:"bytes,4,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
}

BaseOrder defines a base order type. It contains all the necessary fields for specifying the general details about a buy, sell, or swap order.

func NewBaseOrder

func NewBaseOrder(accountDid iidtypes.DIDFragment, amount sdk.Coin) BaseOrder

func (*BaseOrder) Descriptor

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

func (*BaseOrder) GetAmount

func (m *BaseOrder) GetAmount() types.Coin

func (*BaseOrder) GetCancelReason

func (m *BaseOrder) GetCancelReason() string

func (*BaseOrder) GetCancelled

func (m *BaseOrder) GetCancelled() bool

func (BaseOrder) IsCancelled

func (bo BaseOrder) IsCancelled() bool

func (*BaseOrder) Marshal

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

func (*BaseOrder) MarshalTo

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

func (*BaseOrder) MarshalToSizedBuffer

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

func (*BaseOrder) ProtoMessage

func (*BaseOrder) ProtoMessage()

func (*BaseOrder) Reset

func (m *BaseOrder) Reset()

func (*BaseOrder) Size

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

func (*BaseOrder) String

func (m *BaseOrder) String() string

func (*BaseOrder) Unmarshal

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

func (*BaseOrder) XXX_DiscardUnknown

func (m *BaseOrder) XXX_DiscardUnknown()

func (*BaseOrder) XXX_Marshal

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

func (*BaseOrder) XXX_Merge

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

func (*BaseOrder) XXX_Size

func (m *BaseOrder) XXX_Size() int

func (*BaseOrder) XXX_Unmarshal

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

type Batch

type Batch struct {
	BondDid         string                                      `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	BlocksRemaining github_com_cosmos_cosmos_sdk_types.Uint     `` /* 147-byte string literal not displayed */
	NextPublicAlpha github_com_cosmos_cosmos_sdk_types.Dec      `` /* 148-byte string literal not displayed */
	TotalBuyAmount  types.Coin                                  `protobuf:"bytes,4,opt,name=total_buy_amount,json=totalBuyAmount,proto3" json:"total_buy_amount"`
	TotalSellAmount types.Coin                                  `protobuf:"bytes,5,opt,name=total_sell_amount,json=totalSellAmount,proto3" json:"total_sell_amount"`
	BuyPrices       github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 135-byte string literal not displayed */
	SellPrices      github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 138-byte string literal not displayed */
	Buys            []BuyOrder                                  `protobuf:"bytes,8,rep,name=buys,proto3" json:"buys"`
	Sells           []SellOrder                                 `protobuf:"bytes,9,rep,name=sells,proto3" json:"sells"`
	Swaps           []SwapOrder                                 `protobuf:"bytes,10,rep,name=swaps,proto3" json:"swaps"`
}

Batch holds a collection of outstanding buy, sell, and swap orders on a particular bond.

func NewBatch

func NewBatch(bondDid string, token string, blocks sdk.Uint) Batch

func (*Batch) Descriptor

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

func (Batch) Empty

func (b Batch) Empty() bool

func (Batch) EqualBuysAndSells

func (b Batch) EqualBuysAndSells() bool

func (*Batch) GetBondDid

func (m *Batch) GetBondDid() string

func (*Batch) GetBuyPrices

func (*Batch) GetBuys

func (m *Batch) GetBuys() []BuyOrder

func (*Batch) GetSellPrices

func (*Batch) GetSells

func (m *Batch) GetSells() []SellOrder

func (*Batch) GetSwaps

func (m *Batch) GetSwaps() []SwapOrder

func (*Batch) GetTotalBuyAmount

func (m *Batch) GetTotalBuyAmount() types.Coin

func (*Batch) GetTotalSellAmount

func (m *Batch) GetTotalSellAmount() types.Coin

func (Batch) HasNextAlpha

func (b Batch) HasNextAlpha() bool

func (*Batch) Marshal

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

func (*Batch) MarshalTo

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

func (*Batch) MarshalToSizedBuffer

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

func (Batch) MoreBuysThanSells

func (b Batch) MoreBuysThanSells() bool

func (Batch) MoreSellsThanBuys

func (b Batch) MoreSellsThanBuys() bool

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) Reset

func (m *Batch) Reset()

func (*Batch) Size

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

func (*Batch) String

func (m *Batch) String() string

func (*Batch) Unmarshal

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

func (*Batch) XXX_DiscardUnknown

func (m *Batch) XXX_DiscardUnknown()

func (*Batch) XXX_Marshal

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

func (*Batch) XXX_Merge

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

func (*Batch) XXX_Size

func (m *Batch) XXX_Size() int

func (*Batch) XXX_Unmarshal

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

type Bond

type Bond struct {
	Token                        string                                                             `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Name                         string                                                             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description                  string                                                             `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	CreatorDid                   github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 167-byte string literal not displayed */
	ControllerDid                github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 176-byte string literal not displayed */
	FunctionType                 string                                                             `protobuf:"bytes,6,opt,name=function_type,json=functionType,proto3" json:"function_type,omitempty"`
	FunctionParameters           FunctionParams                                                     `` /* 133-byte string literal not displayed */
	ReserveTokens                []string                                                           `protobuf:"bytes,8,rep,name=reserve_tokens,json=reserveTokens,proto3" json:"reserve_tokens,omitempty"`
	TxFeePercentage              github_com_cosmos_cosmos_sdk_types.Dec                             `` /* 148-byte string literal not displayed */
	ExitFeePercentage            github_com_cosmos_cosmos_sdk_types.Dec                             `` /* 155-byte string literal not displayed */
	FeeAddress                   string                                                             `protobuf:"bytes,11,opt,name=fee_address,json=feeAddress,proto3" json:"fee_address,omitempty"`
	ReserveWithdrawalAddress     string                                                             `` /* 136-byte string literal not displayed */
	MaxSupply                    types.Coin                                                         `protobuf:"bytes,13,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply"`
	OrderQuantityLimits          github_com_cosmos_cosmos_sdk_types.Coins                           `` /* 165-byte string literal not displayed */
	SanityRate                   github_com_cosmos_cosmos_sdk_types.Dec                             `` /* 132-byte string literal not displayed */
	SanityMarginPercentage       github_com_cosmos_cosmos_sdk_types.Dec                             `` /* 170-byte string literal not displayed */
	CurrentSupply                types.Coin                                                         `protobuf:"bytes,17,opt,name=current_supply,json=currentSupply,proto3" json:"current_supply"`
	CurrentReserve               github_com_cosmos_cosmos_sdk_types.Coins                           `` /* 148-byte string literal not displayed */
	AvailableReserve             github_com_cosmos_cosmos_sdk_types.Coins                           `` /* 154-byte string literal not displayed */
	CurrentOutcomePaymentReserve github_com_cosmos_cosmos_sdk_types.Coins                           `` /* 194-byte string literal not displayed */
	AllowSells                   bool                                                               `protobuf:"varint,21,opt,name=allow_sells,json=allowSells,proto3" json:"allow_sells,omitempty"`
	AllowReserveWithdrawals      bool                                                               `` /* 134-byte string literal not displayed */
	AlphaBond                    bool                                                               `protobuf:"varint,23,opt,name=alpha_bond,json=alphaBond,proto3" json:"alpha_bond,omitempty"`
	BatchBlocks                  github_com_cosmos_cosmos_sdk_types.Uint                            `` /* 136-byte string literal not displayed */
	OutcomePayment               github_com_cosmos_cosmos_sdk_types.Int                             `` /* 144-byte string literal not displayed */
	State                        string                                                             `protobuf:"bytes,26,opt,name=state,proto3" json:"state,omitempty"`
	BondDid                      string                                                             `protobuf:"bytes,27,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	OracleDid                    github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 165-byte string literal not displayed */
}

Bond defines a token bonding curve type with all of its parameters.

func NewBond

func NewBond(token, name, description string, creatorDid, controllerDid, orcaleDid iidtypes.DIDFragment,
	functionType string, functionParameters FunctionParams, reserveTokens []string,
	txFeePercentage, exitFeePercentage sdk.Dec, feeAddress, reserveWithdrawalAddress sdk.AccAddress,
	maxSupply sdk.Coin, orderQuantityLimits sdk.Coins, sanityRate, sanityMarginPercentage sdk.Dec,
	allowSells, allowReserveWithdrawals, alphaBond bool, batchBlocks sdk.Uint, outcomePayment sdk.Int,
	state BondState, bondDid string) Bond

func (Bond) AnyOrderQuantityLimitsExceeded

func (bond Bond) AnyOrderQuantityLimitsExceeded(amounts sdk.Coins) bool

func (*Bond) Descriptor

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

func (*Bond) GetAllowReserveWithdrawals

func (m *Bond) GetAllowReserveWithdrawals() bool

func (*Bond) GetAllowSells

func (m *Bond) GetAllowSells() bool

func (*Bond) GetAlphaBond

func (m *Bond) GetAlphaBond() bool

func (*Bond) GetAvailableReserve

func (m *Bond) GetAvailableReserve() github_com_cosmos_cosmos_sdk_types.Coins

func (*Bond) GetBondDid

func (m *Bond) GetBondDid() string

func (*Bond) GetCurrentOutcomePaymentReserve

func (m *Bond) GetCurrentOutcomePaymentReserve() github_com_cosmos_cosmos_sdk_types.Coins

func (Bond) GetCurrentPricesPT

func (bond Bond) GetCurrentPricesPT(reserveBalances sdk.Coins) (sdk.DecCoins, error)

func (*Bond) GetCurrentReserve

func (m *Bond) GetCurrentReserve() github_com_cosmos_cosmos_sdk_types.Coins

func (*Bond) GetCurrentSupply

func (m *Bond) GetCurrentSupply() types.Coin

func (*Bond) GetDescription

func (m *Bond) GetDescription() string

func (Bond) GetExitFee

func (bond Bond) GetExitFee(reserveAmount sdk.DecCoin) sdk.Coin

func (Bond) GetExitFees

func (bond Bond) GetExitFees(reserveAmounts sdk.DecCoins) (fees sdk.Coins)

noinspection GoNilness

func (Bond) GetFee

func (bond Bond) GetFee(reserveAmount sdk.DecCoin, percentage sdk.Dec) sdk.Coin

func (*Bond) GetFeeAddress

func (m *Bond) GetFeeAddress() string

func (Bond) GetFees

func (bond Bond) GetFees(reserveAmounts sdk.DecCoins, percentage sdk.Dec) (fees sdk.Coins)

func (*Bond) GetFunctionParameters

func (m *Bond) GetFunctionParameters() FunctionParams

func (*Bond) GetFunctionType

func (m *Bond) GetFunctionType() string

func (*Bond) GetMaxSupply

func (m *Bond) GetMaxSupply() types.Coin

func (*Bond) GetName

func (m *Bond) GetName() string

func (Bond) GetNewReserveCoins

func (bond Bond) GetNewReserveCoins(amount sdk.Int) (coins sdk.Coins)

func (Bond) GetNewReserveDecCoins

func (bond Bond) GetNewReserveDecCoins(amount sdk.Dec) (coins sdk.DecCoins)

func (*Bond) GetOrderQuantityLimits

func (m *Bond) GetOrderQuantityLimits() github_com_cosmos_cosmos_sdk_types.Coins

func (Bond) GetPricesAtSupply

func (bond Bond) GetPricesAtSupply(supply sdk.Int) (result sdk.DecCoins, err error)

func (Bond) GetPricesToMint

func (bond Bond) GetPricesToMint(mint sdk.Int, reserveBalances sdk.Coins) (sdk.DecCoins, error)

func (Bond) GetReserveDeltaForLiquidityDelta

func (bond Bond) GetReserveDeltaForLiquidityDelta(mintOrBurn sdk.Int, reserveBalances sdk.Coins) sdk.DecCoins

func (*Bond) GetReserveTokens

func (m *Bond) GetReserveTokens() []string

func (*Bond) GetReserveWithdrawalAddress

func (m *Bond) GetReserveWithdrawalAddress() string

func (Bond) GetReturnsForBurn

func (bond Bond) GetReturnsForBurn(burn sdk.Int, reserveBalances sdk.Coins) (sdk.DecCoins, error)

func (Bond) GetReturnsForSwap

func (bond Bond) GetReturnsForSwap(from sdk.Coin, toToken string, reserveBalances sdk.Coins) (returns sdk.Coins, txFee sdk.Coin, err error)

func (*Bond) GetState

func (m *Bond) GetState() string

func (*Bond) GetToken

func (m *Bond) GetToken() string

func (Bond) GetTxFee

func (bond Bond) GetTxFee(reserveAmount sdk.DecCoin) sdk.Coin

func (Bond) GetTxFees

func (bond Bond) GetTxFees(reserveAmounts sdk.DecCoins) (fees sdk.Coins)

noinspection GoNilness

func (*Bond) Marshal

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

func (*Bond) MarshalTo

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

func (*Bond) MarshalToSizedBuffer

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

func (*Bond) ProtoMessage

func (*Bond) ProtoMessage()

func (Bond) ReserveAtSupply

func (bond Bond) ReserveAtSupply(supply sdk.Int) (result sdk.Dec, err error)

func (Bond) ReserveDenomsEqualTo

func (bond Bond) ReserveDenomsEqualTo(coins sdk.Coins) bool

func (Bond) ReservesViolateSanityRate

func (bond Bond) ReservesViolateSanityRate(newReserves sdk.Coins) bool

func (*Bond) Reset

func (m *Bond) Reset()

func (*Bond) Size

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

func (*Bond) String

func (m *Bond) String() string

func (*Bond) Unmarshal

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

func (*Bond) XXX_DiscardUnknown

func (m *Bond) XXX_DiscardUnknown()

func (*Bond) XXX_Marshal

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

func (*Bond) XXX_Merge

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

func (*Bond) XXX_Size

func (m *Bond) XXX_Size() int

func (*Bond) XXX_Unmarshal

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

type BondBuyOrderCancelledEvent

type BondBuyOrderCancelledEvent struct {
	BondDid string    `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Order   *BuyOrder `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
}

BondBuyOrderCancelledEvent is an event triggered on a Bond buy order cancellation

func (*BondBuyOrderCancelledEvent) Descriptor

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

func (*BondBuyOrderCancelledEvent) GetBondDid

func (m *BondBuyOrderCancelledEvent) GetBondDid() string

func (*BondBuyOrderCancelledEvent) GetOrder

func (m *BondBuyOrderCancelledEvent) GetOrder() *BuyOrder

func (*BondBuyOrderCancelledEvent) Marshal

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

func (*BondBuyOrderCancelledEvent) MarshalTo

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

func (*BondBuyOrderCancelledEvent) MarshalToSizedBuffer

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

func (*BondBuyOrderCancelledEvent) ProtoMessage

func (*BondBuyOrderCancelledEvent) ProtoMessage()

func (*BondBuyOrderCancelledEvent) Reset

func (m *BondBuyOrderCancelledEvent) Reset()

func (*BondBuyOrderCancelledEvent) Size

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

func (*BondBuyOrderCancelledEvent) String

func (m *BondBuyOrderCancelledEvent) String() string

func (*BondBuyOrderCancelledEvent) Unmarshal

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

func (*BondBuyOrderCancelledEvent) XXX_DiscardUnknown

func (m *BondBuyOrderCancelledEvent) XXX_DiscardUnknown()

func (*BondBuyOrderCancelledEvent) XXX_Marshal

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

func (*BondBuyOrderCancelledEvent) XXX_Merge

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

func (*BondBuyOrderCancelledEvent) XXX_Size

func (m *BondBuyOrderCancelledEvent) XXX_Size() int

func (*BondBuyOrderCancelledEvent) XXX_Unmarshal

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

type BondBuyOrderEvent

type BondBuyOrderEvent struct {
	Order   *BuyOrder `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	BondDid string    `protobuf:"bytes,2,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

BondBuyOrderEvent is an event triggered on a Bond buy order

func (*BondBuyOrderEvent) Descriptor

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

func (*BondBuyOrderEvent) GetBondDid

func (m *BondBuyOrderEvent) GetBondDid() string

func (*BondBuyOrderEvent) GetOrder

func (m *BondBuyOrderEvent) GetOrder() *BuyOrder

func (*BondBuyOrderEvent) Marshal

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

func (*BondBuyOrderEvent) MarshalTo

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

func (*BondBuyOrderEvent) MarshalToSizedBuffer

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

func (*BondBuyOrderEvent) ProtoMessage

func (*BondBuyOrderEvent) ProtoMessage()

func (*BondBuyOrderEvent) Reset

func (m *BondBuyOrderEvent) Reset()

func (*BondBuyOrderEvent) Size

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

func (*BondBuyOrderEvent) String

func (m *BondBuyOrderEvent) String() string

func (*BondBuyOrderEvent) Unmarshal

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

func (*BondBuyOrderEvent) XXX_DiscardUnknown

func (m *BondBuyOrderEvent) XXX_DiscardUnknown()

func (*BondBuyOrderEvent) XXX_Marshal

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

func (*BondBuyOrderEvent) XXX_Merge

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

func (*BondBuyOrderEvent) XXX_Size

func (m *BondBuyOrderEvent) XXX_Size() int

func (*BondBuyOrderEvent) XXX_Unmarshal

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

type BondBuyOrderFulfilledEvent

type BondBuyOrderFulfilledEvent struct {
	BondDid                     string                                   `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Order                       *BuyOrder                                `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	ChargedPrices               github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
	ChargedFees                 github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */
	ReturnedToAddress           github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */
	NewBondTokenBalance         github_com_cosmos_cosmos_sdk_types.Int   `` /* 162-byte string literal not displayed */
	ChargedPricesOfWhichReserve *github_com_cosmos_cosmos_sdk_types.Int  `` /* 198-byte string literal not displayed */
	ChargedPricesOfWhichFunding github_com_cosmos_cosmos_sdk_types.Coins `` /* 192-byte string literal not displayed */
}

BondBuyOrderFulfilledEvent is an event triggered on a Bond buy order fullfillment

func (*BondBuyOrderFulfilledEvent) Descriptor

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

func (*BondBuyOrderFulfilledEvent) GetBondDid

func (m *BondBuyOrderFulfilledEvent) GetBondDid() string

func (*BondBuyOrderFulfilledEvent) GetChargedFees

func (*BondBuyOrderFulfilledEvent) GetChargedPrices

func (*BondBuyOrderFulfilledEvent) GetChargedPricesOfWhichFunding

func (m *BondBuyOrderFulfilledEvent) GetChargedPricesOfWhichFunding() github_com_cosmos_cosmos_sdk_types.Coins

func (*BondBuyOrderFulfilledEvent) GetOrder

func (m *BondBuyOrderFulfilledEvent) GetOrder() *BuyOrder

func (*BondBuyOrderFulfilledEvent) GetReturnedToAddress

func (*BondBuyOrderFulfilledEvent) Marshal

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

func (*BondBuyOrderFulfilledEvent) MarshalTo

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

func (*BondBuyOrderFulfilledEvent) MarshalToSizedBuffer

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

func (*BondBuyOrderFulfilledEvent) ProtoMessage

func (*BondBuyOrderFulfilledEvent) ProtoMessage()

func (*BondBuyOrderFulfilledEvent) Reset

func (m *BondBuyOrderFulfilledEvent) Reset()

func (*BondBuyOrderFulfilledEvent) Size

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

func (*BondBuyOrderFulfilledEvent) String

func (m *BondBuyOrderFulfilledEvent) String() string

func (*BondBuyOrderFulfilledEvent) Unmarshal

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

func (*BondBuyOrderFulfilledEvent) XXX_DiscardUnknown

func (m *BondBuyOrderFulfilledEvent) XXX_DiscardUnknown()

func (*BondBuyOrderFulfilledEvent) XXX_Marshal

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

func (*BondBuyOrderFulfilledEvent) XXX_Merge

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

func (*BondBuyOrderFulfilledEvent) XXX_Size

func (m *BondBuyOrderFulfilledEvent) XXX_Size() int

func (*BondBuyOrderFulfilledEvent) XXX_Unmarshal

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

type BondCreatedEvent

type BondCreatedEvent struct {
	Bond *Bond `protobuf:"bytes,1,opt,name=bond,proto3" json:"bond,omitempty"`
}

BondCreatedEvent is an event triggered on a Bond creation

func (*BondCreatedEvent) Descriptor

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

func (*BondCreatedEvent) GetBond

func (m *BondCreatedEvent) GetBond() *Bond

func (*BondCreatedEvent) Marshal

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

func (*BondCreatedEvent) MarshalTo

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

func (*BondCreatedEvent) MarshalToSizedBuffer

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

func (*BondCreatedEvent) ProtoMessage

func (*BondCreatedEvent) ProtoMessage()

func (*BondCreatedEvent) Reset

func (m *BondCreatedEvent) Reset()

func (*BondCreatedEvent) Size

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

func (*BondCreatedEvent) String

func (m *BondCreatedEvent) String() string

func (*BondCreatedEvent) Unmarshal

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

func (*BondCreatedEvent) XXX_DiscardUnknown

func (m *BondCreatedEvent) XXX_DiscardUnknown()

func (*BondCreatedEvent) XXX_Marshal

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

func (*BondCreatedEvent) XXX_Merge

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

func (*BondCreatedEvent) XXX_Size

func (m *BondCreatedEvent) XXX_Size() int

func (*BondCreatedEvent) XXX_Unmarshal

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

type BondDetails

type BondDetails struct {
	BondDid   string                                      `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	SpotPrice github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 135-byte string literal not displayed */
	Supply    types.Coin                                  `protobuf:"bytes,3,opt,name=supply,proto3" json:"supply"`
	Reserve   github_com_cosmos_cosmos_sdk_types.Coins    `protobuf:"bytes,4,rep,name=reserve,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reserve"`
}

BondDetails contains details about the current state of a given bond.

func (*BondDetails) Descriptor

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

func (*BondDetails) GetBondDid

func (m *BondDetails) GetBondDid() string

func (*BondDetails) GetReserve

func (*BondDetails) GetSpotPrice

func (*BondDetails) GetSupply

func (m *BondDetails) GetSupply() types.Coin

func (*BondDetails) Marshal

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

func (*BondDetails) MarshalTo

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

func (*BondDetails) MarshalToSizedBuffer

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

func (*BondDetails) ProtoMessage

func (*BondDetails) ProtoMessage()

func (*BondDetails) Reset

func (m *BondDetails) Reset()

func (*BondDetails) Size

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

func (*BondDetails) String

func (m *BondDetails) String() string

func (*BondDetails) Unmarshal

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

func (*BondDetails) XXX_DiscardUnknown

func (m *BondDetails) XXX_DiscardUnknown()

func (*BondDetails) XXX_Marshal

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

func (*BondDetails) XXX_Merge

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

func (*BondDetails) XXX_Size

func (m *BondDetails) XXX_Size() int

func (*BondDetails) XXX_Unmarshal

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

type BondEditAlphaFailedEvent

type BondEditAlphaFailedEvent struct {
	BondDid      string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Token        string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	CancelReason string `protobuf:"bytes,3,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
}

BondEditAlphaFailedEvent is an event triggered on a failed attempt to edit of Bond alpha value

func (*BondEditAlphaFailedEvent) Descriptor

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

func (*BondEditAlphaFailedEvent) GetBondDid

func (m *BondEditAlphaFailedEvent) GetBondDid() string

func (*BondEditAlphaFailedEvent) GetCancelReason

func (m *BondEditAlphaFailedEvent) GetCancelReason() string

func (*BondEditAlphaFailedEvent) GetToken

func (m *BondEditAlphaFailedEvent) GetToken() string

func (*BondEditAlphaFailedEvent) Marshal

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

func (*BondEditAlphaFailedEvent) MarshalTo

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

func (*BondEditAlphaFailedEvent) MarshalToSizedBuffer

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

func (*BondEditAlphaFailedEvent) ProtoMessage

func (*BondEditAlphaFailedEvent) ProtoMessage()

func (*BondEditAlphaFailedEvent) Reset

func (m *BondEditAlphaFailedEvent) Reset()

func (*BondEditAlphaFailedEvent) Size

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

func (*BondEditAlphaFailedEvent) String

func (m *BondEditAlphaFailedEvent) String() string

func (*BondEditAlphaFailedEvent) Unmarshal

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

func (*BondEditAlphaFailedEvent) XXX_DiscardUnknown

func (m *BondEditAlphaFailedEvent) XXX_DiscardUnknown()

func (*BondEditAlphaFailedEvent) XXX_Marshal

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

func (*BondEditAlphaFailedEvent) XXX_Merge

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

func (*BondEditAlphaFailedEvent) XXX_Size

func (m *BondEditAlphaFailedEvent) XXX_Size() int

func (*BondEditAlphaFailedEvent) XXX_Unmarshal

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

type BondEditAlphaSuccessEvent

type BondEditAlphaSuccessEvent struct {
	BondDid     string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Token       string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	PublicAlpha string `protobuf:"bytes,3,opt,name=public_alpha,json=publicAlpha,proto3" json:"public_alpha,omitempty"`
	SystemAlpha string `protobuf:"bytes,4,opt,name=system_alpha,json=systemAlpha,proto3" json:"system_alpha,omitempty"`
}

BondEditAlphaSuccessEvent is an event triggered on a successful edit of Bond alpha value

func (*BondEditAlphaSuccessEvent) Descriptor

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

func (*BondEditAlphaSuccessEvent) GetBondDid

func (m *BondEditAlphaSuccessEvent) GetBondDid() string

func (*BondEditAlphaSuccessEvent) GetPublicAlpha

func (m *BondEditAlphaSuccessEvent) GetPublicAlpha() string

func (*BondEditAlphaSuccessEvent) GetSystemAlpha

func (m *BondEditAlphaSuccessEvent) GetSystemAlpha() string

func (*BondEditAlphaSuccessEvent) GetToken

func (m *BondEditAlphaSuccessEvent) GetToken() string

func (*BondEditAlphaSuccessEvent) Marshal

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

func (*BondEditAlphaSuccessEvent) MarshalTo

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

func (*BondEditAlphaSuccessEvent) MarshalToSizedBuffer

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

func (*BondEditAlphaSuccessEvent) ProtoMessage

func (*BondEditAlphaSuccessEvent) ProtoMessage()

func (*BondEditAlphaSuccessEvent) Reset

func (m *BondEditAlphaSuccessEvent) Reset()

func (*BondEditAlphaSuccessEvent) Size

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

func (*BondEditAlphaSuccessEvent) String

func (m *BondEditAlphaSuccessEvent) String() string

func (*BondEditAlphaSuccessEvent) Unmarshal

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

func (*BondEditAlphaSuccessEvent) XXX_DiscardUnknown

func (m *BondEditAlphaSuccessEvent) XXX_DiscardUnknown()

func (*BondEditAlphaSuccessEvent) XXX_Marshal

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

func (*BondEditAlphaSuccessEvent) XXX_Merge

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

func (*BondEditAlphaSuccessEvent) XXX_Size

func (m *BondEditAlphaSuccessEvent) XXX_Size() int

func (*BondEditAlphaSuccessEvent) XXX_Unmarshal

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

type BondMakeOutcomePaymentEvent

type BondMakeOutcomePaymentEvent struct {
	BondDid        string                                   `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	OutcomePayment github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */
	SenderDid      string                                   `protobuf:"bytes,3,opt,name=sender_did,json=senderDid,proto3" json:"sender_did,omitempty"`
	SenderAddress  string                                   `protobuf:"bytes,4,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
}

BondMakeOutcomePaymentEvent is an event triggered on a Bond make outcome payment

func (*BondMakeOutcomePaymentEvent) Descriptor

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

func (*BondMakeOutcomePaymentEvent) GetBondDid

func (m *BondMakeOutcomePaymentEvent) GetBondDid() string

func (*BondMakeOutcomePaymentEvent) GetOutcomePayment

func (*BondMakeOutcomePaymentEvent) GetSenderAddress

func (m *BondMakeOutcomePaymentEvent) GetSenderAddress() string

func (*BondMakeOutcomePaymentEvent) GetSenderDid

func (m *BondMakeOutcomePaymentEvent) GetSenderDid() string

func (*BondMakeOutcomePaymentEvent) Marshal

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

func (*BondMakeOutcomePaymentEvent) MarshalTo

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

func (*BondMakeOutcomePaymentEvent) MarshalToSizedBuffer

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

func (*BondMakeOutcomePaymentEvent) ProtoMessage

func (*BondMakeOutcomePaymentEvent) ProtoMessage()

func (*BondMakeOutcomePaymentEvent) Reset

func (m *BondMakeOutcomePaymentEvent) Reset()

func (*BondMakeOutcomePaymentEvent) Size

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

func (*BondMakeOutcomePaymentEvent) String

func (m *BondMakeOutcomePaymentEvent) String() string

func (*BondMakeOutcomePaymentEvent) Unmarshal

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

func (*BondMakeOutcomePaymentEvent) XXX_DiscardUnknown

func (m *BondMakeOutcomePaymentEvent) XXX_DiscardUnknown()

func (*BondMakeOutcomePaymentEvent) XXX_Marshal

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

func (*BondMakeOutcomePaymentEvent) XXX_Merge

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

func (*BondMakeOutcomePaymentEvent) XXX_Size

func (m *BondMakeOutcomePaymentEvent) XXX_Size() int

func (*BondMakeOutcomePaymentEvent) XXX_Unmarshal

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

type BondSellOrderEvent

type BondSellOrderEvent struct {
	Order   *SellOrder `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	BondDid string     `protobuf:"bytes,2,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

BondSellOrderEvent is an event triggered on a Bond sell order

func (*BondSellOrderEvent) Descriptor

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

func (*BondSellOrderEvent) GetBondDid

func (m *BondSellOrderEvent) GetBondDid() string

func (*BondSellOrderEvent) GetOrder

func (m *BondSellOrderEvent) GetOrder() *SellOrder

func (*BondSellOrderEvent) Marshal

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

func (*BondSellOrderEvent) MarshalTo

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

func (*BondSellOrderEvent) MarshalToSizedBuffer

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

func (*BondSellOrderEvent) ProtoMessage

func (*BondSellOrderEvent) ProtoMessage()

func (*BondSellOrderEvent) Reset

func (m *BondSellOrderEvent) Reset()

func (*BondSellOrderEvent) Size

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

func (*BondSellOrderEvent) String

func (m *BondSellOrderEvent) String() string

func (*BondSellOrderEvent) Unmarshal

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

func (*BondSellOrderEvent) XXX_DiscardUnknown

func (m *BondSellOrderEvent) XXX_DiscardUnknown()

func (*BondSellOrderEvent) XXX_Marshal

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

func (*BondSellOrderEvent) XXX_Merge

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

func (*BondSellOrderEvent) XXX_Size

func (m *BondSellOrderEvent) XXX_Size() int

func (*BondSellOrderEvent) XXX_Unmarshal

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

type BondSellOrderFulfilledEvent

type BondSellOrderFulfilledEvent struct {
	BondDid             string                                   `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Order               *SellOrder                               `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	ChargedFees         github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */
	ReturnedToAddress   github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */
	NewBondTokenBalance github_com_cosmos_cosmos_sdk_types.Int   `` /* 162-byte string literal not displayed */
}

BondSellOrderFulfilledEvent is an event triggered on a Bond sell order fullfillment

func (*BondSellOrderFulfilledEvent) Descriptor

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

func (*BondSellOrderFulfilledEvent) GetBondDid

func (m *BondSellOrderFulfilledEvent) GetBondDid() string

func (*BondSellOrderFulfilledEvent) GetChargedFees

func (*BondSellOrderFulfilledEvent) GetOrder

func (m *BondSellOrderFulfilledEvent) GetOrder() *SellOrder

func (*BondSellOrderFulfilledEvent) GetReturnedToAddress

func (*BondSellOrderFulfilledEvent) Marshal

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

func (*BondSellOrderFulfilledEvent) MarshalTo

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

func (*BondSellOrderFulfilledEvent) MarshalToSizedBuffer

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

func (*BondSellOrderFulfilledEvent) ProtoMessage

func (*BondSellOrderFulfilledEvent) ProtoMessage()

func (*BondSellOrderFulfilledEvent) Reset

func (m *BondSellOrderFulfilledEvent) Reset()

func (*BondSellOrderFulfilledEvent) Size

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

func (*BondSellOrderFulfilledEvent) String

func (m *BondSellOrderFulfilledEvent) String() string

func (*BondSellOrderFulfilledEvent) Unmarshal

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

func (*BondSellOrderFulfilledEvent) XXX_DiscardUnknown

func (m *BondSellOrderFulfilledEvent) XXX_DiscardUnknown()

func (*BondSellOrderFulfilledEvent) XXX_Marshal

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

func (*BondSellOrderFulfilledEvent) XXX_Merge

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

func (*BondSellOrderFulfilledEvent) XXX_Size

func (m *BondSellOrderFulfilledEvent) XXX_Size() int

func (*BondSellOrderFulfilledEvent) XXX_Unmarshal

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

type BondSetNextAlphaEvent

type BondSetNextAlphaEvent struct {
	BondDid   string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	NextAlpha string `protobuf:"bytes,2,opt,name=next_alpha,json=nextAlpha,proto3" json:"next_alpha,omitempty"`
	Signer    string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
}

BondSetNextAlphaEvent is an event triggered when next batch alpha is set

func (*BondSetNextAlphaEvent) Descriptor

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

func (*BondSetNextAlphaEvent) GetBondDid

func (m *BondSetNextAlphaEvent) GetBondDid() string

func (*BondSetNextAlphaEvent) GetNextAlpha

func (m *BondSetNextAlphaEvent) GetNextAlpha() string

func (*BondSetNextAlphaEvent) GetSigner

func (m *BondSetNextAlphaEvent) GetSigner() string

func (*BondSetNextAlphaEvent) Marshal

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

func (*BondSetNextAlphaEvent) MarshalTo

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

func (*BondSetNextAlphaEvent) MarshalToSizedBuffer

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

func (*BondSetNextAlphaEvent) ProtoMessage

func (*BondSetNextAlphaEvent) ProtoMessage()

func (*BondSetNextAlphaEvent) Reset

func (m *BondSetNextAlphaEvent) Reset()

func (*BondSetNextAlphaEvent) Size

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

func (*BondSetNextAlphaEvent) String

func (m *BondSetNextAlphaEvent) String() string

func (*BondSetNextAlphaEvent) Unmarshal

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

func (*BondSetNextAlphaEvent) XXX_DiscardUnknown

func (m *BondSetNextAlphaEvent) XXX_DiscardUnknown()

func (*BondSetNextAlphaEvent) XXX_Marshal

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

func (*BondSetNextAlphaEvent) XXX_Merge

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

func (*BondSetNextAlphaEvent) XXX_Size

func (m *BondSetNextAlphaEvent) XXX_Size() int

func (*BondSetNextAlphaEvent) XXX_Unmarshal

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

type BondState

type BondState string

func BondStateFromString

func BondStateFromString(s string) BondState

func (BondState) IsValidProgressionFrom

func (next BondState) IsValidProgressionFrom(prev BondState) bool

func (BondState) String

func (s BondState) String() string

type BondStateTransitionMap

type BondStateTransitionMap map[BondState][]BondState

type BondSwapOrderEvent

type BondSwapOrderEvent struct {
	Order   *SwapOrder `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	BondDid string     `protobuf:"bytes,2,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

BondSwapOrderEvent is an event triggered on a Bond swap order

func (*BondSwapOrderEvent) Descriptor

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

func (*BondSwapOrderEvent) GetBondDid

func (m *BondSwapOrderEvent) GetBondDid() string

func (*BondSwapOrderEvent) GetOrder

func (m *BondSwapOrderEvent) GetOrder() *SwapOrder

func (*BondSwapOrderEvent) Marshal

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

func (*BondSwapOrderEvent) MarshalTo

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

func (*BondSwapOrderEvent) MarshalToSizedBuffer

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

func (*BondSwapOrderEvent) ProtoMessage

func (*BondSwapOrderEvent) ProtoMessage()

func (*BondSwapOrderEvent) Reset

func (m *BondSwapOrderEvent) Reset()

func (*BondSwapOrderEvent) Size

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

func (*BondSwapOrderEvent) String

func (m *BondSwapOrderEvent) String() string

func (*BondSwapOrderEvent) Unmarshal

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

func (*BondSwapOrderEvent) XXX_DiscardUnknown

func (m *BondSwapOrderEvent) XXX_DiscardUnknown()

func (*BondSwapOrderEvent) XXX_Marshal

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

func (*BondSwapOrderEvent) XXX_Merge

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

func (*BondSwapOrderEvent) XXX_Size

func (m *BondSwapOrderEvent) XXX_Size() int

func (*BondSwapOrderEvent) XXX_Unmarshal

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

type BondSwapOrderFulfilledEvent

type BondSwapOrderFulfilledEvent struct {
	BondDid           string                                   `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Order             *SwapOrder                               `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	ChargedFee        types.Coin                               `protobuf:"bytes,3,opt,name=charged_fee,json=chargedFee,proto3" json:"charged_fee"`
	ReturnedToAddress github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */
	TokensSwapped     types.Coin                               `protobuf:"bytes,5,opt,name=tokens_swapped,json=tokensSwapped,proto3" json:"tokens_swapped"`
}

BondSwapOrderFulfilledEvent is an event triggered on a Bond swap order fullfillment

func (*BondSwapOrderFulfilledEvent) Descriptor

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

func (*BondSwapOrderFulfilledEvent) GetBondDid

func (m *BondSwapOrderFulfilledEvent) GetBondDid() string

func (*BondSwapOrderFulfilledEvent) GetChargedFee

func (m *BondSwapOrderFulfilledEvent) GetChargedFee() types.Coin

func (*BondSwapOrderFulfilledEvent) GetOrder

func (m *BondSwapOrderFulfilledEvent) GetOrder() *SwapOrder

func (*BondSwapOrderFulfilledEvent) GetReturnedToAddress

func (*BondSwapOrderFulfilledEvent) GetTokensSwapped

func (m *BondSwapOrderFulfilledEvent) GetTokensSwapped() types.Coin

func (*BondSwapOrderFulfilledEvent) Marshal

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

func (*BondSwapOrderFulfilledEvent) MarshalTo

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

func (*BondSwapOrderFulfilledEvent) MarshalToSizedBuffer

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

func (*BondSwapOrderFulfilledEvent) ProtoMessage

func (*BondSwapOrderFulfilledEvent) ProtoMessage()

func (*BondSwapOrderFulfilledEvent) Reset

func (m *BondSwapOrderFulfilledEvent) Reset()

func (*BondSwapOrderFulfilledEvent) Size

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

func (*BondSwapOrderFulfilledEvent) String

func (m *BondSwapOrderFulfilledEvent) String() string

func (*BondSwapOrderFulfilledEvent) Unmarshal

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

func (*BondSwapOrderFulfilledEvent) XXX_DiscardUnknown

func (m *BondSwapOrderFulfilledEvent) XXX_DiscardUnknown()

func (*BondSwapOrderFulfilledEvent) XXX_Marshal

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

func (*BondSwapOrderFulfilledEvent) XXX_Merge

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

func (*BondSwapOrderFulfilledEvent) XXX_Size

func (m *BondSwapOrderFulfilledEvent) XXX_Size() int

func (*BondSwapOrderFulfilledEvent) XXX_Unmarshal

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

type BondUpdatedEvent

type BondUpdatedEvent struct {
	Bond *Bond `protobuf:"bytes,1,opt,name=bond,proto3" json:"bond,omitempty"`
}

BondUpdatedEvent is an event triggered on a Bond update

func (*BondUpdatedEvent) Descriptor

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

func (*BondUpdatedEvent) GetBond

func (m *BondUpdatedEvent) GetBond() *Bond

func (*BondUpdatedEvent) Marshal

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

func (*BondUpdatedEvent) MarshalTo

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

func (*BondUpdatedEvent) MarshalToSizedBuffer

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

func (*BondUpdatedEvent) ProtoMessage

func (*BondUpdatedEvent) ProtoMessage()

func (*BondUpdatedEvent) Reset

func (m *BondUpdatedEvent) Reset()

func (*BondUpdatedEvent) Size

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

func (*BondUpdatedEvent) String

func (m *BondUpdatedEvent) String() string

func (*BondUpdatedEvent) Unmarshal

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

func (*BondUpdatedEvent) XXX_DiscardUnknown

func (m *BondUpdatedEvent) XXX_DiscardUnknown()

func (*BondUpdatedEvent) XXX_Marshal

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

func (*BondUpdatedEvent) XXX_Merge

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

func (*BondUpdatedEvent) XXX_Size

func (m *BondUpdatedEvent) XXX_Size() int

func (*BondUpdatedEvent) XXX_Unmarshal

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

type BondWithdrawReserveEvent

type BondWithdrawReserveEvent struct {
	BondDid                  string                                   `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	WithdrawAmount           github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */
	WithdrawerDid            string                                   `protobuf:"bytes,3,opt,name=withdrawer_did,json=withdrawerDid,proto3" json:"withdrawer_did,omitempty"`
	WithdrawerAddress        string                                   `protobuf:"bytes,4,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty"`
	ReserveWithdrawalAddress string                                   `` /* 135-byte string literal not displayed */
}

BondWithdrawReserveEvent is an event triggered on a Bond reserve withdrawal

func (*BondWithdrawReserveEvent) Descriptor

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

func (*BondWithdrawReserveEvent) GetBondDid

func (m *BondWithdrawReserveEvent) GetBondDid() string

func (*BondWithdrawReserveEvent) GetReserveWithdrawalAddress

func (m *BondWithdrawReserveEvent) GetReserveWithdrawalAddress() string

func (*BondWithdrawReserveEvent) GetWithdrawAmount

func (*BondWithdrawReserveEvent) GetWithdrawerAddress

func (m *BondWithdrawReserveEvent) GetWithdrawerAddress() string

func (*BondWithdrawReserveEvent) GetWithdrawerDid

func (m *BondWithdrawReserveEvent) GetWithdrawerDid() string

func (*BondWithdrawReserveEvent) Marshal

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

func (*BondWithdrawReserveEvent) MarshalTo

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

func (*BondWithdrawReserveEvent) MarshalToSizedBuffer

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

func (*BondWithdrawReserveEvent) ProtoMessage

func (*BondWithdrawReserveEvent) ProtoMessage()

func (*BondWithdrawReserveEvent) Reset

func (m *BondWithdrawReserveEvent) Reset()

func (*BondWithdrawReserveEvent) Size

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

func (*BondWithdrawReserveEvent) String

func (m *BondWithdrawReserveEvent) String() string

func (*BondWithdrawReserveEvent) Unmarshal

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

func (*BondWithdrawReserveEvent) XXX_DiscardUnknown

func (m *BondWithdrawReserveEvent) XXX_DiscardUnknown()

func (*BondWithdrawReserveEvent) XXX_Marshal

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

func (*BondWithdrawReserveEvent) XXX_Merge

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

func (*BondWithdrawReserveEvent) XXX_Size

func (m *BondWithdrawReserveEvent) XXX_Size() int

func (*BondWithdrawReserveEvent) XXX_Unmarshal

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

type BondWithdrawShareEvent

type BondWithdrawShareEvent struct {
	BondDid          string                                   `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	WithdrawPayment  github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
	RecipientDid     string                                   `protobuf:"bytes,3,opt,name=recipient_did,json=recipientDid,proto3" json:"recipient_did,omitempty"`
	RecipientAddress string                                   `protobuf:"bytes,4,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
}

BondWithdrawShareEvent is an event triggered on a Bond share withdrawal

func (*BondWithdrawShareEvent) Descriptor

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

func (*BondWithdrawShareEvent) GetBondDid

func (m *BondWithdrawShareEvent) GetBondDid() string

func (*BondWithdrawShareEvent) GetRecipientAddress

func (m *BondWithdrawShareEvent) GetRecipientAddress() string

func (*BondWithdrawShareEvent) GetRecipientDid

func (m *BondWithdrawShareEvent) GetRecipientDid() string

func (*BondWithdrawShareEvent) GetWithdrawPayment

func (*BondWithdrawShareEvent) Marshal

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

func (*BondWithdrawShareEvent) MarshalTo

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

func (*BondWithdrawShareEvent) MarshalToSizedBuffer

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

func (*BondWithdrawShareEvent) ProtoMessage

func (*BondWithdrawShareEvent) ProtoMessage()

func (*BondWithdrawShareEvent) Reset

func (m *BondWithdrawShareEvent) Reset()

func (*BondWithdrawShareEvent) Size

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

func (*BondWithdrawShareEvent) String

func (m *BondWithdrawShareEvent) String() string

func (*BondWithdrawShareEvent) Unmarshal

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

func (*BondWithdrawShareEvent) XXX_DiscardUnknown

func (m *BondWithdrawShareEvent) XXX_DiscardUnknown()

func (*BondWithdrawShareEvent) XXX_Marshal

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

func (*BondWithdrawShareEvent) XXX_Merge

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

func (*BondWithdrawShareEvent) XXX_Size

func (m *BondWithdrawShareEvent) XXX_Size() int

func (*BondWithdrawShareEvent) XXX_Unmarshal

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

type BondingAlgorithm

type BondingAlgorithm interface {
	Init(Bond) error
	Revision() int64
	CalculatePriceForTokens(price sdk.Coin) (sdk.DecCoin, error)
	CalculateTokensForPrice(price sdk.Coin) (sdk.DecCoin, error)
	ExportToMap() map[string]float64
	ExportToBond(bond *Bond) error
	// contains filtered or unexported methods
}

type BuyOrder

type BuyOrder struct {
	BaseOrder BaseOrder                                `protobuf:"bytes,1,opt,name=base_order,json=baseOrder,proto3" json:"base_order"`
	MaxPrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

BuyOrder defines a type for submitting a buy order on a bond, together with the maximum amount of reserve tokens the buyer is willing to pay.

func NewBuyOrder

func NewBuyOrder(buyerDid iidtypes.DIDFragment, amount sdk.Coin, maxPrices sdk.Coins) BuyOrder

func (*BuyOrder) Descriptor

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

func (*BuyOrder) GetBaseOrder

func (m *BuyOrder) GetBaseOrder() BaseOrder

func (*BuyOrder) GetMaxPrices

func (*BuyOrder) Marshal

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

func (*BuyOrder) MarshalTo

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

func (*BuyOrder) MarshalToSizedBuffer

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

func (*BuyOrder) ProtoMessage

func (*BuyOrder) ProtoMessage()

func (*BuyOrder) Reset

func (m *BuyOrder) Reset()

func (*BuyOrder) Size

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

func (*BuyOrder) String

func (m *BuyOrder) String() string

func (*BuyOrder) Unmarshal

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

func (*BuyOrder) XXX_DiscardUnknown

func (m *BuyOrder) XXX_DiscardUnknown()

func (*BuyOrder) XXX_Marshal

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

func (*BuyOrder) XXX_Merge

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

func (*BuyOrder) XXX_Size

func (m *BuyOrder) XXX_Size() int

func (*BuyOrder) XXX_Unmarshal

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

type Either

type Either[L any, R any] interface {
	IsRightBiased() bool
	IsRight() bool
	Left() L
	Right() R
}

func FromError

func FromError[R any](r R, err error) Either[error, R]

func Left

func Left[L any, R any](l L) Either[L, R]

func LeftFlatMap

func LeftFlatMap[L any, R any, LL any](either Either[L, R], f func(l L) Either[LL, R]) Either[LL, R]
func Right[L any, R any](r R) Either[L, R]

func RightFlatMap

func RightFlatMap[L any, R any, RR any](either Either[L, R], f func(r R) Either[L, RR]) Either[L, RR]

type FunctionParam

type FunctionParam struct {
	Param string                                 `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	Value github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"value"`
}

FunctionParam is a key-value pair used for specifying a specific bond parameter.

func NewFunctionParam

func NewFunctionParam(param string, value sdk.Dec) FunctionParam

func (*FunctionParam) Descriptor

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

func (*FunctionParam) GetParam

func (m *FunctionParam) GetParam() string

func (*FunctionParam) Marshal

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

func (*FunctionParam) MarshalTo

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

func (*FunctionParam) MarshalToSizedBuffer

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

func (*FunctionParam) ProtoMessage

func (*FunctionParam) ProtoMessage()

func (*FunctionParam) Reset

func (m *FunctionParam) Reset()

func (*FunctionParam) Size

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

func (*FunctionParam) String

func (m *FunctionParam) String() string

func (*FunctionParam) Unmarshal

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

func (*FunctionParam) XXX_DiscardUnknown

func (m *FunctionParam) XXX_DiscardUnknown()

func (*FunctionParam) XXX_Marshal

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

func (*FunctionParam) XXX_Merge

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

func (*FunctionParam) XXX_Size

func (m *FunctionParam) XXX_Size() int

func (*FunctionParam) XXX_Unmarshal

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

type FunctionParamRestrictions

type FunctionParamRestrictions func(paramsMap map[string]sdk.Dec) error

func GetExceptionsForFunctionType

func GetExceptionsForFunctionType(fnType string) (restrictions FunctionParamRestrictions, err error)

type FunctionParams

type FunctionParams []FunctionParam

func (FunctionParams) AddParam

func (fps FunctionParams) AddParam(param string, value sdk.Dec) FunctionParams

func (FunctionParams) AddParams

func (fps FunctionParams) AddParams(newFps FunctionParams) FunctionParams

func (FunctionParams) AsMap

func (fps FunctionParams) AsMap() (paramsMap map[string]sdk.Dec)

func (FunctionParams) ReplaceParam

func (fps FunctionParams) ReplaceParam(param string, value sdk.Dec)

func (FunctionParams) String

func (fps FunctionParams) String() (result string)

func (FunctionParams) Validate

func (fps FunctionParams) Validate(functionType string) error

type GenesisState

type GenesisState struct {
	Bonds   []Bond  `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds"`
	Batches []Batch `protobuf:"bytes,2,rep,name=batches,proto3" json:"batches"`
	Params  Params  `protobuf:"bytes,3,opt,name=params,proto3" json:"params"`
}

GenesisState defines the bonds module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState(bonds []Bond, batches []Batch, params Params) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBatches

func (m *GenesisState) GetBatches() []Batch

func (*GenesisState) GetBonds

func (m *GenesisState) GetBonds() []Bond

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) 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 MsgBuy

type MsgBuy struct {
	BuyerDid     github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 161-byte string literal not displayed */
	Amount       types.Coin                                                         `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
	MaxPrices    github_com_cosmos_cosmos_sdk_types.Coins                           `` /* 132-byte string literal not displayed */
	BondDid      string                                                             `protobuf:"bytes,4,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	BuyerAddress string                                                             `protobuf:"bytes,5,opt,name=buyer_address,json=buyerAddress,proto3" json:"buyer_address"`
}

MsgBuy defines a message for buying from a bond.

func NewMsgBuy

func NewMsgBuy(buyerDid iidtypes.DIDFragment, amount sdk.Coin, maxPrices sdk.Coins,
	bondDid string, buyerAddress string) *MsgBuy

func (*MsgBuy) Descriptor

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

func (*MsgBuy) GetAmount

func (m *MsgBuy) GetAmount() types.Coin

func (*MsgBuy) GetBondDid

func (m *MsgBuy) GetBondDid() string

func (*MsgBuy) GetBuyerAddress

func (m *MsgBuy) GetBuyerAddress() string

func (MsgBuy) GetIidController

func (msg MsgBuy) GetIidController() iidtypes.DIDFragment

func (*MsgBuy) GetMaxPrices

func (MsgBuy) GetSignBytes

func (msg MsgBuy) GetSignBytes() []byte

func (MsgBuy) GetSigners

func (msg MsgBuy) GetSigners() []sdk.AccAddress

func (msg MsgBuy) GetSignerDid() string { return msg.BuyerDid }

func (*MsgBuy) Marshal

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

func (*MsgBuy) MarshalTo

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

func (*MsgBuy) MarshalToSizedBuffer

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

func (*MsgBuy) ProtoMessage

func (*MsgBuy) ProtoMessage()

func (*MsgBuy) Reset

func (m *MsgBuy) Reset()

func (MsgBuy) Route

func (msg MsgBuy) Route() string

func (*MsgBuy) Size

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

func (*MsgBuy) String

func (m *MsgBuy) String() string

func (MsgBuy) Type

func (msg MsgBuy) Type() string

func (*MsgBuy) Unmarshal

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

func (MsgBuy) ValidateBasic

func (msg MsgBuy) ValidateBasic() error

func (*MsgBuy) XXX_DiscardUnknown

func (m *MsgBuy) XXX_DiscardUnknown()

func (*MsgBuy) XXX_Marshal

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

func (*MsgBuy) XXX_Merge

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

func (*MsgBuy) XXX_Size

func (m *MsgBuy) XXX_Size() int

func (*MsgBuy) XXX_Unmarshal

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

type MsgBuyResponse

type MsgBuyResponse struct {
}

MsgBuyResponse defines the Msg/Buy response type.

func (*MsgBuyResponse) Descriptor

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

func (*MsgBuyResponse) Marshal

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

func (*MsgBuyResponse) MarshalTo

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

func (*MsgBuyResponse) MarshalToSizedBuffer

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

func (*MsgBuyResponse) ProtoMessage

func (*MsgBuyResponse) ProtoMessage()

func (*MsgBuyResponse) Reset

func (m *MsgBuyResponse) Reset()

func (*MsgBuyResponse) Size

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

func (*MsgBuyResponse) String

func (m *MsgBuyResponse) String() string

func (*MsgBuyResponse) Unmarshal

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

func (*MsgBuyResponse) XXX_DiscardUnknown

func (m *MsgBuyResponse) XXX_DiscardUnknown()

func (*MsgBuyResponse) XXX_Marshal

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

func (*MsgBuyResponse) XXX_Merge

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

func (*MsgBuyResponse) XXX_Size

func (m *MsgBuyResponse) XXX_Size() int

func (*MsgBuyResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateBond defines a method for creating a bond.
	CreateBond(ctx context.Context, in *MsgCreateBond, opts ...grpc.CallOption) (*MsgCreateBondResponse, error)
	// EditBond defines a method for editing a bond.
	EditBond(ctx context.Context, in *MsgEditBond, opts ...grpc.CallOption) (*MsgEditBondResponse, error)
	// SetNextAlpha defines a method for editing a bond's alpha parameter.
	SetNextAlpha(ctx context.Context, in *MsgSetNextAlpha, opts ...grpc.CallOption) (*MsgSetNextAlphaResponse, error)
	// UpdateBondState defines a method for updating a bond's current state.
	UpdateBondState(ctx context.Context, in *MsgUpdateBondState, opts ...grpc.CallOption) (*MsgUpdateBondStateResponse, error)
	// Buy defines a method for buying from a bond.
	Buy(ctx context.Context, in *MsgBuy, opts ...grpc.CallOption) (*MsgBuyResponse, error)
	// Sell defines a method for selling from a bond.
	Sell(ctx context.Context, in *MsgSell, opts ...grpc.CallOption) (*MsgSellResponse, error)
	// Swap defines a method for swapping from one reserve bond token to another.
	Swap(ctx context.Context, in *MsgSwap, opts ...grpc.CallOption) (*MsgSwapResponse, error)
	// MakeOutcomePayment defines a method for making an outcome payment to a
	// bond.
	MakeOutcomePayment(ctx context.Context, in *MsgMakeOutcomePayment, opts ...grpc.CallOption) (*MsgMakeOutcomePaymentResponse, error)
	// WithdrawShare defines a method for withdrawing a share from a bond that is
	// in the SETTLE stage.
	WithdrawShare(ctx context.Context, in *MsgWithdrawShare, opts ...grpc.CallOption) (*MsgWithdrawShareResponse, error)
	// WithdrawReserve defines a method for withdrawing reserve from a bond.
	WithdrawReserve(ctx context.Context, in *MsgWithdrawReserve, opts ...grpc.CallOption) (*MsgWithdrawReserveResponse, 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 MsgCreateBond

type MsgCreateBond struct {
	BondDid                  string                                                             `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Token                    string                                                             `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Name                     string                                                             `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description              string                                                             `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	FunctionType             string                                                             `protobuf:"bytes,5,opt,name=function_type,json=functionType,proto3" json:"function_type,omitempty"`
	FunctionParameters       FunctionParams                                                     `` /* 133-byte string literal not displayed */
	CreatorDid               github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 167-byte string literal not displayed */
	ControllerDid            github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 176-byte string literal not displayed */
	OracleDid                github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 164-byte string literal not displayed */
	ReserveTokens            []string                                                           `protobuf:"bytes,10,rep,name=reserve_tokens,json=reserveTokens,proto3" json:"reserve_tokens,omitempty"`
	TxFeePercentage          github_com_cosmos_cosmos_sdk_types.Dec                             `` /* 149-byte string literal not displayed */
	ExitFeePercentage        github_com_cosmos_cosmos_sdk_types.Dec                             `` /* 155-byte string literal not displayed */
	FeeAddress               string                                                             `protobuf:"bytes,13,opt,name=fee_address,json=feeAddress,proto3" json:"fee_address,omitempty"`
	ReserveWithdrawalAddress string                                                             `` /* 136-byte string literal not displayed */
	MaxSupply                types.Coin                                                         `protobuf:"bytes,15,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply"`
	OrderQuantityLimits      github_com_cosmos_cosmos_sdk_types.Coins                           `` /* 165-byte string literal not displayed */
	SanityRate               github_com_cosmos_cosmos_sdk_types.Dec                             `` /* 132-byte string literal not displayed */
	SanityMarginPercentage   github_com_cosmos_cosmos_sdk_types.Dec                             `` /* 170-byte string literal not displayed */
	AllowSells               bool                                                               `protobuf:"varint,19,opt,name=allow_sells,json=allowSells,proto3" json:"allow_sells,omitempty"`
	AllowReserveWithdrawals  bool                                                               `` /* 134-byte string literal not displayed */
	AlphaBond                bool                                                               `protobuf:"varint,21,opt,name=alpha_bond,json=alphaBond,proto3" json:"alpha_bond,omitempty"`
	BatchBlocks              github_com_cosmos_cosmos_sdk_types.Uint                            `` /* 136-byte string literal not displayed */
	OutcomePayment           github_com_cosmos_cosmos_sdk_types.Int                             `` /* 144-byte string literal not displayed */
	CreatorAddress           string                                                             `protobuf:"bytes,24,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address,omitempty"`
}

MsgCreateBond defines a message for creating a new bond.

func NewMsgCreateBond

func NewMsgCreateBond(token, name, description string, creatorDid, controllerDid, oracleDid iidtypes.DIDFragment,
	functionType string, functionParameters FunctionParams, reserveTokens []string,
	txFeePercentage, exitFeePercentage sdk.Dec, feeAddress, reserveWithdrawalAddress sdk.AccAddress,
	maxSupply sdk.Coin, orderQuantityLimits sdk.Coins, sanityRate, sanityMarginPercentage sdk.Dec,
	allowSell, allowReserveWithdrawals, alphaBond bool, batchBlocks sdk.Uint, outcomePayment sdk.Int,
	bondDid string, creatorAddress string) *MsgCreateBond

func (*MsgCreateBond) Descriptor

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

func (*MsgCreateBond) GetAllowReserveWithdrawals

func (m *MsgCreateBond) GetAllowReserveWithdrawals() bool

func (*MsgCreateBond) GetAllowSells

func (m *MsgCreateBond) GetAllowSells() bool

func (*MsgCreateBond) GetAlphaBond

func (m *MsgCreateBond) GetAlphaBond() bool

func (*MsgCreateBond) GetBondDid

func (m *MsgCreateBond) GetBondDid() string

func (*MsgCreateBond) GetCreatorAddress

func (m *MsgCreateBond) GetCreatorAddress() string

func (*MsgCreateBond) GetDescription

func (m *MsgCreateBond) GetDescription() string

func (*MsgCreateBond) GetFeeAddress

func (m *MsgCreateBond) GetFeeAddress() string

func (*MsgCreateBond) GetFunctionParameters

func (m *MsgCreateBond) GetFunctionParameters() FunctionParams

func (*MsgCreateBond) GetFunctionType

func (m *MsgCreateBond) GetFunctionType() string

func (MsgCreateBond) GetIidController

func (msg MsgCreateBond) GetIidController() iidtypes.DIDFragment

func (*MsgCreateBond) GetMaxSupply

func (m *MsgCreateBond) GetMaxSupply() types.Coin

func (*MsgCreateBond) GetName

func (m *MsgCreateBond) GetName() string

func (*MsgCreateBond) GetOrderQuantityLimits

func (m *MsgCreateBond) GetOrderQuantityLimits() github_com_cosmos_cosmos_sdk_types.Coins

func (*MsgCreateBond) GetReserveTokens

func (m *MsgCreateBond) GetReserveTokens() []string

func (*MsgCreateBond) GetReserveWithdrawalAddress

func (m *MsgCreateBond) GetReserveWithdrawalAddress() string

func (MsgCreateBond) GetSignBytes

func (msg MsgCreateBond) GetSignBytes() []byte

func (MsgCreateBond) GetSigners

func (msg MsgCreateBond) GetSigners() []sdk.AccAddress

func (msg MsgCreateBond) GetSignerDid() string { return msg.CreatorDid.Did() }

func (*MsgCreateBond) GetToken

func (m *MsgCreateBond) GetToken() string

func (*MsgCreateBond) Marshal

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

func (*MsgCreateBond) MarshalTo

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

func (*MsgCreateBond) MarshalToSizedBuffer

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

func (*MsgCreateBond) ProtoMessage

func (*MsgCreateBond) ProtoMessage()

func (*MsgCreateBond) Reset

func (m *MsgCreateBond) Reset()

func (MsgCreateBond) Route

func (msg MsgCreateBond) Route() string

func (*MsgCreateBond) Size

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

func (*MsgCreateBond) String

func (m *MsgCreateBond) String() string

func (MsgCreateBond) Type

func (msg MsgCreateBond) Type() string

func (*MsgCreateBond) Unmarshal

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

func (MsgCreateBond) ValidateBasic

func (msg MsgCreateBond) ValidateBasic() error

func (*MsgCreateBond) XXX_DiscardUnknown

func (m *MsgCreateBond) XXX_DiscardUnknown()

func (*MsgCreateBond) XXX_Marshal

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

func (*MsgCreateBond) XXX_Merge

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

func (*MsgCreateBond) XXX_Size

func (m *MsgCreateBond) XXX_Size() int

func (*MsgCreateBond) XXX_Unmarshal

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

type MsgCreateBondResponse

type MsgCreateBondResponse struct {
}

MsgCreateBondResponse defines the Msg/CreateBond response type.

func (*MsgCreateBondResponse) Descriptor

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

func (*MsgCreateBondResponse) Marshal

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

func (*MsgCreateBondResponse) MarshalTo

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

func (*MsgCreateBondResponse) MarshalToSizedBuffer

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

func (*MsgCreateBondResponse) ProtoMessage

func (*MsgCreateBondResponse) ProtoMessage()

func (*MsgCreateBondResponse) Reset

func (m *MsgCreateBondResponse) Reset()

func (*MsgCreateBondResponse) Size

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

func (*MsgCreateBondResponse) String

func (m *MsgCreateBondResponse) String() string

func (*MsgCreateBondResponse) Unmarshal

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

func (*MsgCreateBondResponse) XXX_DiscardUnknown

func (m *MsgCreateBondResponse) XXX_DiscardUnknown()

func (*MsgCreateBondResponse) XXX_Marshal

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

func (*MsgCreateBondResponse) XXX_Merge

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

func (*MsgCreateBondResponse) XXX_Size

func (m *MsgCreateBondResponse) XXX_Size() int

func (*MsgCreateBondResponse) XXX_Unmarshal

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

type MsgEditBond

type MsgEditBond struct {
	BondDid                string                                                             `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Name                   string                                                             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description            string                                                             `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	OrderQuantityLimits    string                                                             `protobuf:"bytes,4,opt,name=order_quantity_limits,json=orderQuantityLimits,proto3" json:"order_quantity_limits,omitempty"`
	SanityRate             string                                                             `protobuf:"bytes,5,opt,name=sanity_rate,json=sanityRate,proto3" json:"sanity_rate,omitempty"`
	SanityMarginPercentage string                                                             `` /* 129-byte string literal not displayed */
	EditorDid              github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 164-byte string literal not displayed */
	EditorAddress          string                                                             `protobuf:"bytes,8,opt,name=editor_address,json=editorAddress,proto3" json:"editor_address,omitempty"`
}

MsgEditBond defines a message for editing an existing bond.

func NewMsgEditBond

func NewMsgEditBond(name, description, orderQuantityLimits, sanityRate,
	sanityMarginPercentage string, editorDid iidtypes.DIDFragment, bondDid string, editorAddress string) *MsgEditBond

func (*MsgEditBond) Descriptor

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

func (*MsgEditBond) GetBondDid

func (m *MsgEditBond) GetBondDid() string

func (*MsgEditBond) GetDescription

func (m *MsgEditBond) GetDescription() string

func (*MsgEditBond) GetEditorAddress

func (m *MsgEditBond) GetEditorAddress() string

func (MsgEditBond) GetIidController

func (msg MsgEditBond) GetIidController() iidtypes.DIDFragment

func (*MsgEditBond) GetName

func (m *MsgEditBond) GetName() string

func (*MsgEditBond) GetOrderQuantityLimits

func (m *MsgEditBond) GetOrderQuantityLimits() string

func (*MsgEditBond) GetSanityMarginPercentage

func (m *MsgEditBond) GetSanityMarginPercentage() string

func (*MsgEditBond) GetSanityRate

func (m *MsgEditBond) GetSanityRate() string

func (MsgEditBond) GetSignBytes

func (msg MsgEditBond) GetSignBytes() []byte

func (MsgEditBond) GetSigners

func (msg MsgEditBond) GetSigners() []sdk.AccAddress

func (msg MsgEditBond) GetSignerDid() string { return msg.EditorDid }

func (*MsgEditBond) Marshal

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

func (*MsgEditBond) MarshalTo

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

func (*MsgEditBond) MarshalToSizedBuffer

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

func (*MsgEditBond) ProtoMessage

func (*MsgEditBond) ProtoMessage()

func (*MsgEditBond) Reset

func (m *MsgEditBond) Reset()

func (MsgEditBond) Route

func (msg MsgEditBond) Route() string

func (*MsgEditBond) Size

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

func (*MsgEditBond) String

func (m *MsgEditBond) String() string

func (MsgEditBond) Type

func (msg MsgEditBond) Type() string

func (*MsgEditBond) Unmarshal

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

func (MsgEditBond) ValidateBasic

func (msg MsgEditBond) ValidateBasic() error

func (*MsgEditBond) XXX_DiscardUnknown

func (m *MsgEditBond) XXX_DiscardUnknown()

func (*MsgEditBond) XXX_Marshal

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

func (*MsgEditBond) XXX_Merge

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

func (*MsgEditBond) XXX_Size

func (m *MsgEditBond) XXX_Size() int

func (*MsgEditBond) XXX_Unmarshal

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

type MsgEditBondResponse

type MsgEditBondResponse struct {
}

MsgEditBondResponse defines the Msg/EditBond response type.

func (*MsgEditBondResponse) Descriptor

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

func (*MsgEditBondResponse) Marshal

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

func (*MsgEditBondResponse) MarshalTo

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

func (*MsgEditBondResponse) MarshalToSizedBuffer

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

func (*MsgEditBondResponse) ProtoMessage

func (*MsgEditBondResponse) ProtoMessage()

func (*MsgEditBondResponse) Reset

func (m *MsgEditBondResponse) Reset()

func (*MsgEditBondResponse) Size

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

func (*MsgEditBondResponse) String

func (m *MsgEditBondResponse) String() string

func (*MsgEditBondResponse) Unmarshal

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

func (*MsgEditBondResponse) XXX_DiscardUnknown

func (m *MsgEditBondResponse) XXX_DiscardUnknown()

func (*MsgEditBondResponse) XXX_Marshal

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

func (*MsgEditBondResponse) XXX_Merge

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

func (*MsgEditBondResponse) XXX_Size

func (m *MsgEditBondResponse) XXX_Size() int

func (*MsgEditBondResponse) XXX_Unmarshal

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

type MsgMakeOutcomePayment

type MsgMakeOutcomePayment struct {
	SenderDid     github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 164-byte string literal not displayed */
	Amount        github_com_cosmos_cosmos_sdk_types.Int                             `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	BondDid       string                                                             `protobuf:"bytes,3,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	SenderAddress string                                                             `protobuf:"bytes,4,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
}

MsgMakeOutcomePayment defines a message for making an outcome payment to a bond.

func NewMsgMakeOutcomePayment

func NewMsgMakeOutcomePayment(senderDid iidtypes.DIDFragment, amount sdk.Int, bondDid string, senderAddress string) *MsgMakeOutcomePayment

func (*MsgMakeOutcomePayment) Descriptor

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

func (*MsgMakeOutcomePayment) GetBondDid

func (m *MsgMakeOutcomePayment) GetBondDid() string

func (MsgMakeOutcomePayment) GetIidController

func (msg MsgMakeOutcomePayment) GetIidController() iidtypes.DIDFragment

func (*MsgMakeOutcomePayment) GetSenderAddress

func (m *MsgMakeOutcomePayment) GetSenderAddress() string

func (MsgMakeOutcomePayment) GetSignBytes

func (msg MsgMakeOutcomePayment) GetSignBytes() []byte

func (MsgMakeOutcomePayment) GetSigners

func (msg MsgMakeOutcomePayment) GetSigners() []sdk.AccAddress

func (msg MsgMakeOutcomePayment) GetSignerDid() string { return msg.SenderDid }

func (*MsgMakeOutcomePayment) Marshal

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

func (*MsgMakeOutcomePayment) MarshalTo

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

func (*MsgMakeOutcomePayment) MarshalToSizedBuffer

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

func (*MsgMakeOutcomePayment) ProtoMessage

func (*MsgMakeOutcomePayment) ProtoMessage()

func (*MsgMakeOutcomePayment) Reset

func (m *MsgMakeOutcomePayment) Reset()

func (MsgMakeOutcomePayment) Route

func (msg MsgMakeOutcomePayment) Route() string

func (*MsgMakeOutcomePayment) Size

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

func (*MsgMakeOutcomePayment) String

func (m *MsgMakeOutcomePayment) String() string

func (MsgMakeOutcomePayment) Type

func (msg MsgMakeOutcomePayment) Type() string

func (*MsgMakeOutcomePayment) Unmarshal

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

func (MsgMakeOutcomePayment) ValidateBasic

func (msg MsgMakeOutcomePayment) ValidateBasic() error

func (*MsgMakeOutcomePayment) XXX_DiscardUnknown

func (m *MsgMakeOutcomePayment) XXX_DiscardUnknown()

func (*MsgMakeOutcomePayment) XXX_Marshal

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

func (*MsgMakeOutcomePayment) XXX_Merge

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

func (*MsgMakeOutcomePayment) XXX_Size

func (m *MsgMakeOutcomePayment) XXX_Size() int

func (*MsgMakeOutcomePayment) XXX_Unmarshal

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

type MsgMakeOutcomePaymentResponse

type MsgMakeOutcomePaymentResponse struct {
}

MsgMakeOutcomePaymentResponse defines the Msg/MakeOutcomePayment response type.

func (*MsgMakeOutcomePaymentResponse) Descriptor

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

func (*MsgMakeOutcomePaymentResponse) Marshal

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

func (*MsgMakeOutcomePaymentResponse) MarshalTo

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

func (*MsgMakeOutcomePaymentResponse) MarshalToSizedBuffer

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

func (*MsgMakeOutcomePaymentResponse) ProtoMessage

func (*MsgMakeOutcomePaymentResponse) ProtoMessage()

func (*MsgMakeOutcomePaymentResponse) Reset

func (m *MsgMakeOutcomePaymentResponse) Reset()

func (*MsgMakeOutcomePaymentResponse) Size

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

func (*MsgMakeOutcomePaymentResponse) String

func (*MsgMakeOutcomePaymentResponse) Unmarshal

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

func (*MsgMakeOutcomePaymentResponse) XXX_DiscardUnknown

func (m *MsgMakeOutcomePaymentResponse) XXX_DiscardUnknown()

func (*MsgMakeOutcomePaymentResponse) XXX_Marshal

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

func (*MsgMakeOutcomePaymentResponse) XXX_Merge

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

func (*MsgMakeOutcomePaymentResponse) XXX_Size

func (m *MsgMakeOutcomePaymentResponse) XXX_Size() int

func (*MsgMakeOutcomePaymentResponse) XXX_Unmarshal

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

type MsgSell

type MsgSell struct {
	SellerDid     github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 164-byte string literal not displayed */
	Amount        types.Coin                                                         `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
	BondDid       string                                                             `protobuf:"bytes,3,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	SellerAddress string                                                             `protobuf:"bytes,4,opt,name=seller_address,json=sellerAddress,proto3" json:"seller_address,omitempty"`
}

MsgSell defines a message for selling from a bond.

func NewMsgSell

func NewMsgSell(sellerDid iidtypes.DIDFragment, amount sdk.Coin, bondDid string, sellerAddress string) *MsgSell

func (*MsgSell) Descriptor

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

func (*MsgSell) GetAmount

func (m *MsgSell) GetAmount() types.Coin

func (*MsgSell) GetBondDid

func (m *MsgSell) GetBondDid() string

func (MsgSell) GetIidController

func (msg MsgSell) GetIidController() iidtypes.DIDFragment

func (*MsgSell) GetSellerAddress

func (m *MsgSell) GetSellerAddress() string

func (MsgSell) GetSignBytes

func (msg MsgSell) GetSignBytes() []byte

func (MsgSell) GetSigners

func (msg MsgSell) GetSigners() []sdk.AccAddress

func (msg MsgSell) GetSignerDid() string { return msg.SellerDid }

func (*MsgSell) Marshal

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

func (*MsgSell) MarshalTo

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

func (*MsgSell) MarshalToSizedBuffer

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

func (*MsgSell) ProtoMessage

func (*MsgSell) ProtoMessage()

func (*MsgSell) Reset

func (m *MsgSell) Reset()

func (MsgSell) Route

func (msg MsgSell) Route() string

func (*MsgSell) Size

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

func (*MsgSell) String

func (m *MsgSell) String() string

func (MsgSell) Type

func (msg MsgSell) Type() string

func (*MsgSell) Unmarshal

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

func (MsgSell) ValidateBasic

func (msg MsgSell) ValidateBasic() error

func (*MsgSell) XXX_DiscardUnknown

func (m *MsgSell) XXX_DiscardUnknown()

func (*MsgSell) XXX_Marshal

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

func (*MsgSell) XXX_Merge

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

func (*MsgSell) XXX_Size

func (m *MsgSell) XXX_Size() int

func (*MsgSell) XXX_Unmarshal

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

type MsgSellResponse

type MsgSellResponse struct {
}

MsgSellResponse defines the Msg/Sell response type.

func (*MsgSellResponse) Descriptor

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

func (*MsgSellResponse) Marshal

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

func (*MsgSellResponse) MarshalTo

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

func (*MsgSellResponse) MarshalToSizedBuffer

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

func (*MsgSellResponse) ProtoMessage

func (*MsgSellResponse) ProtoMessage()

func (*MsgSellResponse) Reset

func (m *MsgSellResponse) Reset()

func (*MsgSellResponse) Size

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

func (*MsgSellResponse) String

func (m *MsgSellResponse) String() string

func (*MsgSellResponse) Unmarshal

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

func (*MsgSellResponse) XXX_DiscardUnknown

func (m *MsgSellResponse) XXX_DiscardUnknown()

func (*MsgSellResponse) XXX_Marshal

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

func (*MsgSellResponse) XXX_Merge

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

func (*MsgSellResponse) XXX_Size

func (m *MsgSellResponse) XXX_Size() int

func (*MsgSellResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateBond defines a method for creating a bond.
	CreateBond(context.Context, *MsgCreateBond) (*MsgCreateBondResponse, error)
	// EditBond defines a method for editing a bond.
	EditBond(context.Context, *MsgEditBond) (*MsgEditBondResponse, error)
	// SetNextAlpha defines a method for editing a bond's alpha parameter.
	SetNextAlpha(context.Context, *MsgSetNextAlpha) (*MsgSetNextAlphaResponse, error)
	// UpdateBondState defines a method for updating a bond's current state.
	UpdateBondState(context.Context, *MsgUpdateBondState) (*MsgUpdateBondStateResponse, error)
	// Buy defines a method for buying from a bond.
	Buy(context.Context, *MsgBuy) (*MsgBuyResponse, error)
	// Sell defines a method for selling from a bond.
	Sell(context.Context, *MsgSell) (*MsgSellResponse, error)
	// Swap defines a method for swapping from one reserve bond token to another.
	Swap(context.Context, *MsgSwap) (*MsgSwapResponse, error)
	// MakeOutcomePayment defines a method for making an outcome payment to a
	// bond.
	MakeOutcomePayment(context.Context, *MsgMakeOutcomePayment) (*MsgMakeOutcomePaymentResponse, error)
	// WithdrawShare defines a method for withdrawing a share from a bond that is
	// in the SETTLE stage.
	WithdrawShare(context.Context, *MsgWithdrawShare) (*MsgWithdrawShareResponse, error)
	// WithdrawReserve defines a method for withdrawing reserve from a bond.
	WithdrawReserve(context.Context, *MsgWithdrawReserve) (*MsgWithdrawReserveResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetNextAlpha

type MsgSetNextAlpha struct {
	BondDid       string                                                             `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	Alpha         github_com_cosmos_cosmos_sdk_types.Dec                             `protobuf:"bytes,2,opt,name=alpha,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"alpha"`
	Delta         *github_com_cosmos_cosmos_sdk_types.Dec                            `protobuf:"bytes,3,opt,name=delta,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"delta,omitempty"`
	OracleDid     github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 164-byte string literal not displayed */
	OracleAddress string                                                             `protobuf:"bytes,5,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"`
}

MsgSetNextAlpha defines a message for editing a bond's alpha parameter.

func NewMsgSetNextAlpha

func NewMsgSetNextAlpha(alpha sdk.Dec, oracleDid iidtypes.DIDFragment, bondDid string, oracleAddress string) *MsgSetNextAlpha

func (*MsgSetNextAlpha) Descriptor

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

func (*MsgSetNextAlpha) GetBondDid

func (m *MsgSetNextAlpha) GetBondDid() string

func (MsgSetNextAlpha) GetIidController

func (msg MsgSetNextAlpha) GetIidController() iidtypes.DIDFragment

func (*MsgSetNextAlpha) GetOracleAddress

func (m *MsgSetNextAlpha) GetOracleAddress() string

func (MsgSetNextAlpha) GetSignBytes

func (msg MsgSetNextAlpha) GetSignBytes() []byte

func (MsgSetNextAlpha) GetSigners

func (msg MsgSetNextAlpha) GetSigners() []sdk.AccAddress

func (msg MsgSetNextAlpha) GetSignerDid() string { return msg.EditorDid }

func (*MsgSetNextAlpha) Marshal

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

func (*MsgSetNextAlpha) MarshalTo

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

func (*MsgSetNextAlpha) MarshalToSizedBuffer

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

func (*MsgSetNextAlpha) ProtoMessage

func (*MsgSetNextAlpha) ProtoMessage()

func (*MsgSetNextAlpha) Reset

func (m *MsgSetNextAlpha) Reset()

func (MsgSetNextAlpha) Route

func (msg MsgSetNextAlpha) Route() string

func (*MsgSetNextAlpha) Size

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

func (*MsgSetNextAlpha) String

func (m *MsgSetNextAlpha) String() string

func (MsgSetNextAlpha) Type

func (msg MsgSetNextAlpha) Type() string

func (*MsgSetNextAlpha) Unmarshal

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

func (MsgSetNextAlpha) ValidateBasic

func (msg MsgSetNextAlpha) ValidateBasic() error

func (*MsgSetNextAlpha) XXX_DiscardUnknown

func (m *MsgSetNextAlpha) XXX_DiscardUnknown()

func (*MsgSetNextAlpha) XXX_Marshal

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

func (*MsgSetNextAlpha) XXX_Merge

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

func (*MsgSetNextAlpha) XXX_Size

func (m *MsgSetNextAlpha) XXX_Size() int

func (*MsgSetNextAlpha) XXX_Unmarshal

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

type MsgSetNextAlphaResponse

type MsgSetNextAlphaResponse struct {
}

func (*MsgSetNextAlphaResponse) Descriptor

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

func (*MsgSetNextAlphaResponse) Marshal

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

func (*MsgSetNextAlphaResponse) MarshalTo

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

func (*MsgSetNextAlphaResponse) MarshalToSizedBuffer

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

func (*MsgSetNextAlphaResponse) ProtoMessage

func (*MsgSetNextAlphaResponse) ProtoMessage()

func (*MsgSetNextAlphaResponse) Reset

func (m *MsgSetNextAlphaResponse) Reset()

func (*MsgSetNextAlphaResponse) Size

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

func (*MsgSetNextAlphaResponse) String

func (m *MsgSetNextAlphaResponse) String() string

func (*MsgSetNextAlphaResponse) Unmarshal

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

func (*MsgSetNextAlphaResponse) XXX_DiscardUnknown

func (m *MsgSetNextAlphaResponse) XXX_DiscardUnknown()

func (*MsgSetNextAlphaResponse) XXX_Marshal

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

func (*MsgSetNextAlphaResponse) XXX_Merge

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

func (*MsgSetNextAlphaResponse) XXX_Size

func (m *MsgSetNextAlphaResponse) XXX_Size() int

func (*MsgSetNextAlphaResponse) XXX_Unmarshal

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

type MsgSwap

type MsgSwap struct {
	SwapperDid     github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 167-byte string literal not displayed */
	BondDid        string                                                             `protobuf:"bytes,2,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	From           types.Coin                                                         `protobuf:"bytes,3,opt,name=from,proto3" json:"from"`
	ToToken        string                                                             `protobuf:"bytes,4,opt,name=to_token,json=toToken,proto3" json:"to_token,omitempty"`
	SwapperAddress string                                                             `protobuf:"bytes,5,opt,name=swapper_address,json=swapperAddress,proto3" json:"swapper_address,omitempty"`
}

MsgSwap defines a message for swapping from one reserve bond token to another.

func NewMsgSwap

func NewMsgSwap(swapperDid iidtypes.DIDFragment, from sdk.Coin, toToken string,
	bondDid string, swapperAddress string) *MsgSwap

func (*MsgSwap) Descriptor

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

func (*MsgSwap) GetBondDid

func (m *MsgSwap) GetBondDid() string

func (*MsgSwap) GetFrom

func (m *MsgSwap) GetFrom() types.Coin

func (MsgSwap) GetIidController

func (msg MsgSwap) GetIidController() iidtypes.DIDFragment

func (MsgSwap) GetSignBytes

func (msg MsgSwap) GetSignBytes() []byte

func (MsgSwap) GetSigners

func (msg MsgSwap) GetSigners() []sdk.AccAddress

func (msg MsgSwap) GetSignerDid() string { return msg.SwapperDid }

func (*MsgSwap) GetSwapperAddress

func (m *MsgSwap) GetSwapperAddress() string

func (*MsgSwap) GetToToken

func (m *MsgSwap) GetToToken() string

func (*MsgSwap) Marshal

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

func (*MsgSwap) MarshalTo

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

func (*MsgSwap) MarshalToSizedBuffer

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

func (*MsgSwap) ProtoMessage

func (*MsgSwap) ProtoMessage()

func (*MsgSwap) Reset

func (m *MsgSwap) Reset()

func (MsgSwap) Route

func (msg MsgSwap) Route() string

func (*MsgSwap) Size

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

func (*MsgSwap) String

func (m *MsgSwap) String() string

func (MsgSwap) Type

func (msg MsgSwap) Type() string

func (*MsgSwap) Unmarshal

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

func (MsgSwap) ValidateBasic

func (msg MsgSwap) ValidateBasic() error

func (*MsgSwap) XXX_DiscardUnknown

func (m *MsgSwap) XXX_DiscardUnknown()

func (*MsgSwap) XXX_Marshal

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

func (*MsgSwap) XXX_Merge

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

func (*MsgSwap) XXX_Size

func (m *MsgSwap) XXX_Size() int

func (*MsgSwap) XXX_Unmarshal

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

type MsgSwapResponse

type MsgSwapResponse struct {
}

MsgSwapResponse defines the Msg/Swap response type.

func (*MsgSwapResponse) Descriptor

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

func (*MsgSwapResponse) Marshal

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

func (*MsgSwapResponse) MarshalTo

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

func (*MsgSwapResponse) MarshalToSizedBuffer

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

func (*MsgSwapResponse) ProtoMessage

func (*MsgSwapResponse) ProtoMessage()

func (*MsgSwapResponse) Reset

func (m *MsgSwapResponse) Reset()

func (*MsgSwapResponse) Size

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

func (*MsgSwapResponse) String

func (m *MsgSwapResponse) String() string

func (*MsgSwapResponse) Unmarshal

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

func (*MsgSwapResponse) XXX_DiscardUnknown

func (m *MsgSwapResponse) XXX_DiscardUnknown()

func (*MsgSwapResponse) XXX_Marshal

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

func (*MsgSwapResponse) XXX_Merge

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

func (*MsgSwapResponse) XXX_Size

func (m *MsgSwapResponse) XXX_Size() int

func (*MsgSwapResponse) XXX_Unmarshal

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

type MsgUpdateBondState

type MsgUpdateBondState struct {
	BondDid       string                                                             `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	State         string                                                             `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	EditorDid     github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 164-byte string literal not displayed */
	EditorAddress string                                                             `protobuf:"bytes,4,opt,name=editor_address,json=editorAddress,proto3" json:"editor_address,omitempty"`
}

MsgUpdateBondState defines a message for updating a bond's current state.

func NewMsgUpdateBondState

func NewMsgUpdateBondState(state BondState, editorDid iidtypes.DIDFragment, bondDid string, editorAddress string) *MsgUpdateBondState

func (*MsgUpdateBondState) Descriptor

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

func (*MsgUpdateBondState) GetBondDid

func (m *MsgUpdateBondState) GetBondDid() string

func (*MsgUpdateBondState) GetEditorAddress

func (m *MsgUpdateBondState) GetEditorAddress() string

func (MsgUpdateBondState) GetIidController

func (msg MsgUpdateBondState) GetIidController() iidtypes.DIDFragment

func (MsgUpdateBondState) GetSignBytes

func (msg MsgUpdateBondState) GetSignBytes() []byte

func (MsgUpdateBondState) GetSigners

func (msg MsgUpdateBondState) GetSigners() []sdk.AccAddress

func (msg MsgUpdateBondState) GetSignerDid() string { return msg.EditorDid }

func (*MsgUpdateBondState) GetState

func (m *MsgUpdateBondState) GetState() string

func (*MsgUpdateBondState) Marshal

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

func (*MsgUpdateBondState) MarshalTo

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

func (*MsgUpdateBondState) MarshalToSizedBuffer

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

func (*MsgUpdateBondState) ProtoMessage

func (*MsgUpdateBondState) ProtoMessage()

func (*MsgUpdateBondState) Reset

func (m *MsgUpdateBondState) Reset()

func (MsgUpdateBondState) Route

func (msg MsgUpdateBondState) Route() string

func (*MsgUpdateBondState) Size

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

func (*MsgUpdateBondState) String

func (m *MsgUpdateBondState) String() string

func (MsgUpdateBondState) Type

func (msg MsgUpdateBondState) Type() string

func (*MsgUpdateBondState) Unmarshal

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

func (MsgUpdateBondState) ValidateBasic

func (msg MsgUpdateBondState) ValidateBasic() error

func (*MsgUpdateBondState) XXX_DiscardUnknown

func (m *MsgUpdateBondState) XXX_DiscardUnknown()

func (*MsgUpdateBondState) XXX_Marshal

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

func (*MsgUpdateBondState) XXX_Merge

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

func (*MsgUpdateBondState) XXX_Size

func (m *MsgUpdateBondState) XXX_Size() int

func (*MsgUpdateBondState) XXX_Unmarshal

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

type MsgUpdateBondStateResponse

type MsgUpdateBondStateResponse struct {
}

MsgUpdateBondStateResponse defines the Msg/UpdateBondState response type.

func (*MsgUpdateBondStateResponse) Descriptor

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

func (*MsgUpdateBondStateResponse) Marshal

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

func (*MsgUpdateBondStateResponse) MarshalTo

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

func (*MsgUpdateBondStateResponse) MarshalToSizedBuffer

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

func (*MsgUpdateBondStateResponse) ProtoMessage

func (*MsgUpdateBondStateResponse) ProtoMessage()

func (*MsgUpdateBondStateResponse) Reset

func (m *MsgUpdateBondStateResponse) Reset()

func (*MsgUpdateBondStateResponse) Size

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

func (*MsgUpdateBondStateResponse) String

func (m *MsgUpdateBondStateResponse) String() string

func (*MsgUpdateBondStateResponse) Unmarshal

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

func (*MsgUpdateBondStateResponse) XXX_DiscardUnknown

func (m *MsgUpdateBondStateResponse) XXX_DiscardUnknown()

func (*MsgUpdateBondStateResponse) XXX_Marshal

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

func (*MsgUpdateBondStateResponse) XXX_Merge

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

func (*MsgUpdateBondStateResponse) XXX_Size

func (m *MsgUpdateBondStateResponse) XXX_Size() int

func (*MsgUpdateBondStateResponse) XXX_Unmarshal

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

type MsgWithdrawReserve

type MsgWithdrawReserve struct {
	WithdrawerDid     github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 176-byte string literal not displayed */
	Amount            github_com_cosmos_cosmos_sdk_types.Coins                           `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	BondDid           string                                                             `protobuf:"bytes,3,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	WithdrawerAddress string                                                             `protobuf:"bytes,4,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty"`
}

MsgWithdrawReserve defines a message for withdrawing reserve from a bond.

func NewMsgWithdrawReserve

func NewMsgWithdrawReserve(withdrawerDid iidtypes.DIDFragment, amount sdk.Coins,
	bondDid string, withdrawerAddress string) *MsgWithdrawReserve

func (*MsgWithdrawReserve) Descriptor

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

func (*MsgWithdrawReserve) GetAmount

func (*MsgWithdrawReserve) GetBondDid

func (m *MsgWithdrawReserve) GetBondDid() string

func (MsgWithdrawReserve) GetIidController

func (msg MsgWithdrawReserve) GetIidController() iidtypes.DIDFragment

func (MsgWithdrawReserve) GetSignBytes

func (msg MsgWithdrawReserve) GetSignBytes() []byte

func (MsgWithdrawReserve) GetSigners

func (msg MsgWithdrawReserve) GetSigners() []sdk.AccAddress

func (msg MsgWithdrawReserve) GetSignerDid() string { return msg.WithdrawerDid }

func (*MsgWithdrawReserve) GetWithdrawerAddress

func (m *MsgWithdrawReserve) GetWithdrawerAddress() string

func (*MsgWithdrawReserve) Marshal

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

func (*MsgWithdrawReserve) MarshalTo

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

func (*MsgWithdrawReserve) MarshalToSizedBuffer

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

func (*MsgWithdrawReserve) ProtoMessage

func (*MsgWithdrawReserve) ProtoMessage()

func (*MsgWithdrawReserve) Reset

func (m *MsgWithdrawReserve) Reset()

func (MsgWithdrawReserve) Route

func (msg MsgWithdrawReserve) Route() string

func (*MsgWithdrawReserve) Size

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

func (*MsgWithdrawReserve) String

func (m *MsgWithdrawReserve) String() string

func (MsgWithdrawReserve) Type

func (msg MsgWithdrawReserve) Type() string

func (*MsgWithdrawReserve) Unmarshal

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

func (MsgWithdrawReserve) ValidateBasic

func (msg MsgWithdrawReserve) ValidateBasic() error

func (*MsgWithdrawReserve) XXX_DiscardUnknown

func (m *MsgWithdrawReserve) XXX_DiscardUnknown()

func (*MsgWithdrawReserve) XXX_Marshal

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

func (*MsgWithdrawReserve) XXX_Merge

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

func (*MsgWithdrawReserve) XXX_Size

func (m *MsgWithdrawReserve) XXX_Size() int

func (*MsgWithdrawReserve) XXX_Unmarshal

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

type MsgWithdrawReserveResponse

type MsgWithdrawReserveResponse struct {
}

MsgWithdrawReserveResponse defines the Msg/WithdrawReserve response type.

func (*MsgWithdrawReserveResponse) Descriptor

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

func (*MsgWithdrawReserveResponse) Marshal

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

func (*MsgWithdrawReserveResponse) MarshalTo

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

func (*MsgWithdrawReserveResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawReserveResponse) ProtoMessage

func (*MsgWithdrawReserveResponse) ProtoMessage()

func (*MsgWithdrawReserveResponse) Reset

func (m *MsgWithdrawReserveResponse) Reset()

func (*MsgWithdrawReserveResponse) Size

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

func (*MsgWithdrawReserveResponse) String

func (m *MsgWithdrawReserveResponse) String() string

func (*MsgWithdrawReserveResponse) Unmarshal

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

func (*MsgWithdrawReserveResponse) XXX_DiscardUnknown

func (m *MsgWithdrawReserveResponse) XXX_DiscardUnknown()

func (*MsgWithdrawReserveResponse) XXX_Marshal

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

func (*MsgWithdrawReserveResponse) XXX_Merge

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

func (*MsgWithdrawReserveResponse) XXX_Size

func (m *MsgWithdrawReserveResponse) XXX_Size() int

func (*MsgWithdrawReserveResponse) XXX_Unmarshal

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

type MsgWithdrawShare

type MsgWithdrawShare struct {
	RecipientDid     github_com_ixofoundation_ixo_blockchain_v2_x_iid_types.DIDFragment `` /* 173-byte string literal not displayed */
	BondDid          string                                                             `protobuf:"bytes,2,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	RecipientAddress string                                                             `protobuf:"bytes,3,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
}

MsgWithdrawShare defines a message for withdrawing a share from a bond that is in the SETTLE stage.

func NewMsgWithdrawShare

func NewMsgWithdrawShare(recipientDid iidtypes.DIDFragment, bondDid string, recipientAddress string) *MsgWithdrawShare

func (*MsgWithdrawShare) Descriptor

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

func (*MsgWithdrawShare) GetBondDid

func (m *MsgWithdrawShare) GetBondDid() string

func (MsgWithdrawShare) GetIidController

func (msg MsgWithdrawShare) GetIidController() iidtypes.DIDFragment

func (*MsgWithdrawShare) GetRecipientAddress

func (m *MsgWithdrawShare) GetRecipientAddress() string

func (MsgWithdrawShare) GetSignBytes

func (msg MsgWithdrawShare) GetSignBytes() []byte

func (MsgWithdrawShare) GetSigners

func (msg MsgWithdrawShare) GetSigners() []sdk.AccAddress

func (msg MsgWithdrawShare) GetSignerDid() string { return msg.RecipientDid }

func (*MsgWithdrawShare) Marshal

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

func (*MsgWithdrawShare) MarshalTo

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

func (*MsgWithdrawShare) MarshalToSizedBuffer

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

func (*MsgWithdrawShare) ProtoMessage

func (*MsgWithdrawShare) ProtoMessage()

func (*MsgWithdrawShare) Reset

func (m *MsgWithdrawShare) Reset()

func (MsgWithdrawShare) Route

func (msg MsgWithdrawShare) Route() string

func (*MsgWithdrawShare) Size

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

func (*MsgWithdrawShare) String

func (m *MsgWithdrawShare) String() string

func (MsgWithdrawShare) Type

func (msg MsgWithdrawShare) Type() string

func (*MsgWithdrawShare) Unmarshal

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

func (MsgWithdrawShare) ValidateBasic

func (msg MsgWithdrawShare) ValidateBasic() error

func (*MsgWithdrawShare) XXX_DiscardUnknown

func (m *MsgWithdrawShare) XXX_DiscardUnknown()

func (*MsgWithdrawShare) XXX_Marshal

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

func (*MsgWithdrawShare) XXX_Merge

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

func (*MsgWithdrawShare) XXX_Size

func (m *MsgWithdrawShare) XXX_Size() int

func (*MsgWithdrawShare) XXX_Unmarshal

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

type MsgWithdrawShareResponse

type MsgWithdrawShareResponse struct {
}

MsgWithdrawShareResponse defines the Msg/WithdrawShare response type.

func (*MsgWithdrawShareResponse) Descriptor

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

func (*MsgWithdrawShareResponse) Marshal

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

func (*MsgWithdrawShareResponse) MarshalTo

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

func (*MsgWithdrawShareResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawShareResponse) ProtoMessage

func (*MsgWithdrawShareResponse) ProtoMessage()

func (*MsgWithdrawShareResponse) Reset

func (m *MsgWithdrawShareResponse) Reset()

func (*MsgWithdrawShareResponse) Size

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

func (*MsgWithdrawShareResponse) String

func (m *MsgWithdrawShareResponse) String() string

func (*MsgWithdrawShareResponse) Unmarshal

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

func (*MsgWithdrawShareResponse) XXX_DiscardUnknown

func (m *MsgWithdrawShareResponse) XXX_DiscardUnknown()

func (*MsgWithdrawShareResponse) XXX_Marshal

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

func (*MsgWithdrawShareResponse) XXX_Merge

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

func (*MsgWithdrawShareResponse) XXX_Size

func (m *MsgWithdrawShareResponse) XXX_Size() int

func (*MsgWithdrawShareResponse) XXX_Unmarshal

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

type Params

type Params struct {
	ReservedBondTokens []string `protobuf:"bytes,1,rep,name=reserved_bond_tokens,json=reservedBondTokens,proto3" json:"reserved_bond_tokens,omitempty"`
}

Params defines the parameters for the bonds module.

func DefaultParams

func DefaultParams() Params

default bonds module parameters

func NewParams

func NewParams(reservedBondTokens []string) Params

func (*Params) Descriptor

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

func (*Params) GetReservedBondTokens

func (m *Params) GetReservedBondTokens() []string

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() paramstypes.ParamSetPairs

Implements 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) 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 QueryAlphaMaximumsRequest

type QueryAlphaMaximumsRequest struct {
	BondDid string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

QueryAlphaMaximumsRequest is the request type for the Query/AlphaMaximums RPC method.

func (*QueryAlphaMaximumsRequest) Descriptor

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

func (*QueryAlphaMaximumsRequest) GetBondDid

func (m *QueryAlphaMaximumsRequest) GetBondDid() string

func (*QueryAlphaMaximumsRequest) Marshal

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

func (*QueryAlphaMaximumsRequest) MarshalTo

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

func (*QueryAlphaMaximumsRequest) MarshalToSizedBuffer

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

func (*QueryAlphaMaximumsRequest) ProtoMessage

func (*QueryAlphaMaximumsRequest) ProtoMessage()

func (*QueryAlphaMaximumsRequest) Reset

func (m *QueryAlphaMaximumsRequest) Reset()

func (*QueryAlphaMaximumsRequest) Size

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

func (*QueryAlphaMaximumsRequest) String

func (m *QueryAlphaMaximumsRequest) String() string

func (*QueryAlphaMaximumsRequest) Unmarshal

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

func (*QueryAlphaMaximumsRequest) XXX_DiscardUnknown

func (m *QueryAlphaMaximumsRequest) XXX_DiscardUnknown()

func (*QueryAlphaMaximumsRequest) XXX_Marshal

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

func (*QueryAlphaMaximumsRequest) XXX_Merge

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

func (*QueryAlphaMaximumsRequest) XXX_Size

func (m *QueryAlphaMaximumsRequest) XXX_Size() int

func (*QueryAlphaMaximumsRequest) XXX_Unmarshal

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

type QueryAlphaMaximumsResponse

type QueryAlphaMaximumsResponse struct {
	MaxSystemAlphaIncrease github_com_cosmos_cosmos_sdk_types.Dec `` /* 171-byte string literal not displayed */
	MaxSystemAlpha         github_com_cosmos_cosmos_sdk_types.Dec `` /* 145-byte string literal not displayed */
}

QueryAlphaMaximumsResponse is the response type for the Query/AlphaMaximums RPC method.

func (*QueryAlphaMaximumsResponse) Descriptor

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

func (*QueryAlphaMaximumsResponse) Marshal

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

func (*QueryAlphaMaximumsResponse) MarshalTo

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

func (*QueryAlphaMaximumsResponse) MarshalToSizedBuffer

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

func (*QueryAlphaMaximumsResponse) ProtoMessage

func (*QueryAlphaMaximumsResponse) ProtoMessage()

func (*QueryAlphaMaximumsResponse) Reset

func (m *QueryAlphaMaximumsResponse) Reset()

func (*QueryAlphaMaximumsResponse) Size

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

func (*QueryAlphaMaximumsResponse) String

func (m *QueryAlphaMaximumsResponse) String() string

func (*QueryAlphaMaximumsResponse) Unmarshal

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

func (*QueryAlphaMaximumsResponse) XXX_DiscardUnknown

func (m *QueryAlphaMaximumsResponse) XXX_DiscardUnknown()

func (*QueryAlphaMaximumsResponse) XXX_Marshal

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

func (*QueryAlphaMaximumsResponse) XXX_Merge

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

func (*QueryAlphaMaximumsResponse) XXX_Size

func (m *QueryAlphaMaximumsResponse) XXX_Size() int

func (*QueryAlphaMaximumsResponse) XXX_Unmarshal

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

type QueryAvailableReserveRequest

type QueryAvailableReserveRequest struct {
	BondDid string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

QueryAvailableReserveRequest is the request type for the Query/AvailableReserve RPC method.

func (*QueryAvailableReserveRequest) Descriptor

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

func (*QueryAvailableReserveRequest) GetBondDid

func (m *QueryAvailableReserveRequest) GetBondDid() string

func (*QueryAvailableReserveRequest) Marshal

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

func (*QueryAvailableReserveRequest) MarshalTo

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

func (*QueryAvailableReserveRequest) MarshalToSizedBuffer

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

func (*QueryAvailableReserveRequest) ProtoMessage

func (*QueryAvailableReserveRequest) ProtoMessage()

func (*QueryAvailableReserveRequest) Reset

func (m *QueryAvailableReserveRequest) Reset()

func (*QueryAvailableReserveRequest) Size

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

func (*QueryAvailableReserveRequest) String

func (*QueryAvailableReserveRequest) Unmarshal

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

func (*QueryAvailableReserveRequest) XXX_DiscardUnknown

func (m *QueryAvailableReserveRequest) XXX_DiscardUnknown()

func (*QueryAvailableReserveRequest) XXX_Marshal

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

func (*QueryAvailableReserveRequest) XXX_Merge

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

func (*QueryAvailableReserveRequest) XXX_Size

func (m *QueryAvailableReserveRequest) XXX_Size() int

func (*QueryAvailableReserveRequest) XXX_Unmarshal

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

type QueryAvailableReserveResponse

type QueryAvailableReserveResponse struct {
	AvailableReserve []types.Coin `protobuf:"bytes,1,rep,name=available_reserve,json=availableReserve,proto3" json:"available_reserve"`
}

QueryAvailableReserveResponse is the response type for the Query/AvailableReserve RPC method.

func (*QueryAvailableReserveResponse) Descriptor

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

func (*QueryAvailableReserveResponse) GetAvailableReserve

func (m *QueryAvailableReserveResponse) GetAvailableReserve() []types.Coin

func (*QueryAvailableReserveResponse) Marshal

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

func (*QueryAvailableReserveResponse) MarshalTo

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

func (*QueryAvailableReserveResponse) MarshalToSizedBuffer

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

func (*QueryAvailableReserveResponse) ProtoMessage

func (*QueryAvailableReserveResponse) ProtoMessage()

func (*QueryAvailableReserveResponse) Reset

func (m *QueryAvailableReserveResponse) Reset()

func (*QueryAvailableReserveResponse) Size

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

func (*QueryAvailableReserveResponse) String

func (*QueryAvailableReserveResponse) Unmarshal

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

func (*QueryAvailableReserveResponse) XXX_DiscardUnknown

func (m *QueryAvailableReserveResponse) XXX_DiscardUnknown()

func (*QueryAvailableReserveResponse) XXX_Marshal

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

func (*QueryAvailableReserveResponse) XXX_Merge

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

func (*QueryAvailableReserveResponse) XXX_Size

func (m *QueryAvailableReserveResponse) XXX_Size() int

func (*QueryAvailableReserveResponse) XXX_Unmarshal

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

type QueryBatchRequest

type QueryBatchRequest struct {
	BondDid string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

QueryBatchRequest is the request type for the Query/Batch RPC method.

func (*QueryBatchRequest) Descriptor

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

func (*QueryBatchRequest) GetBondDid

func (m *QueryBatchRequest) GetBondDid() string

func (*QueryBatchRequest) Marshal

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

func (*QueryBatchRequest) MarshalTo

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

func (*QueryBatchRequest) MarshalToSizedBuffer

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

func (*QueryBatchRequest) ProtoMessage

func (*QueryBatchRequest) ProtoMessage()

func (*QueryBatchRequest) Reset

func (m *QueryBatchRequest) Reset()

func (*QueryBatchRequest) Size

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

func (*QueryBatchRequest) String

func (m *QueryBatchRequest) String() string

func (*QueryBatchRequest) Unmarshal

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

func (*QueryBatchRequest) XXX_DiscardUnknown

func (m *QueryBatchRequest) XXX_DiscardUnknown()

func (*QueryBatchRequest) XXX_Marshal

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

func (*QueryBatchRequest) XXX_Merge

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

func (*QueryBatchRequest) XXX_Size

func (m *QueryBatchRequest) XXX_Size() int

func (*QueryBatchRequest) XXX_Unmarshal

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

type QueryBatchResponse

type QueryBatchResponse struct {
	Batch *Batch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"`
}

QueryBatchResponse is the response type for the Query/Batch RPC method.

func (*QueryBatchResponse) Descriptor

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

func (*QueryBatchResponse) GetBatch

func (m *QueryBatchResponse) GetBatch() *Batch

func (*QueryBatchResponse) Marshal

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

func (*QueryBatchResponse) MarshalTo

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

func (*QueryBatchResponse) MarshalToSizedBuffer

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

func (*QueryBatchResponse) ProtoMessage

func (*QueryBatchResponse) ProtoMessage()

func (*QueryBatchResponse) Reset

func (m *QueryBatchResponse) Reset()

func (*QueryBatchResponse) Size

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

func (*QueryBatchResponse) String

func (m *QueryBatchResponse) String() string

func (*QueryBatchResponse) Unmarshal

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

func (*QueryBatchResponse) XXX_DiscardUnknown

func (m *QueryBatchResponse) XXX_DiscardUnknown()

func (*QueryBatchResponse) XXX_Marshal

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

func (*QueryBatchResponse) XXX_Merge

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

func (*QueryBatchResponse) XXX_Size

func (m *QueryBatchResponse) XXX_Size() int

func (*QueryBatchResponse) XXX_Unmarshal

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

type QueryBondRequest

type QueryBondRequest struct {
	BondDid string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

QueryBondRequest is the request type for the Query/Bond RPC method.

func (*QueryBondRequest) Descriptor

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

func (*QueryBondRequest) GetBondDid

func (m *QueryBondRequest) GetBondDid() string

func (*QueryBondRequest) Marshal

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

func (*QueryBondRequest) MarshalTo

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

func (*QueryBondRequest) MarshalToSizedBuffer

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

func (*QueryBondRequest) ProtoMessage

func (*QueryBondRequest) ProtoMessage()

func (*QueryBondRequest) Reset

func (m *QueryBondRequest) Reset()

func (*QueryBondRequest) Size

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

func (*QueryBondRequest) String

func (m *QueryBondRequest) String() string

func (*QueryBondRequest) Unmarshal

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

func (*QueryBondRequest) XXX_DiscardUnknown

func (m *QueryBondRequest) XXX_DiscardUnknown()

func (*QueryBondRequest) XXX_Marshal

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

func (*QueryBondRequest) XXX_Merge

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

func (*QueryBondRequest) XXX_Size

func (m *QueryBondRequest) XXX_Size() int

func (*QueryBondRequest) XXX_Unmarshal

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

type QueryBondResponse

type QueryBondResponse struct {
	Bond *Bond `protobuf:"bytes,1,opt,name=bond,proto3" json:"bond,omitempty"`
}

QueryBondResponse is the response type for the Query/Bond RPC method.

func (*QueryBondResponse) Descriptor

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

func (*QueryBondResponse) GetBond

func (m *QueryBondResponse) GetBond() *Bond

func (*QueryBondResponse) Marshal

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

func (*QueryBondResponse) MarshalTo

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

func (*QueryBondResponse) MarshalToSizedBuffer

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

func (*QueryBondResponse) ProtoMessage

func (*QueryBondResponse) ProtoMessage()

func (*QueryBondResponse) Reset

func (m *QueryBondResponse) Reset()

func (*QueryBondResponse) Size

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

func (*QueryBondResponse) String

func (m *QueryBondResponse) String() string

func (*QueryBondResponse) Unmarshal

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

func (*QueryBondResponse) XXX_DiscardUnknown

func (m *QueryBondResponse) XXX_DiscardUnknown()

func (*QueryBondResponse) XXX_Marshal

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

func (*QueryBondResponse) XXX_Merge

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

func (*QueryBondResponse) XXX_Size

func (m *QueryBondResponse) XXX_Size() int

func (*QueryBondResponse) XXX_Unmarshal

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

type QueryBondsDetailedRequest

type QueryBondsDetailedRequest struct {
}

QueryBondsDetailedRequest is the request type for the Query/BondsDetailed RPC method.

func (*QueryBondsDetailedRequest) Descriptor

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

func (*QueryBondsDetailedRequest) Marshal

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

func (*QueryBondsDetailedRequest) MarshalTo

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

func (*QueryBondsDetailedRequest) MarshalToSizedBuffer

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

func (*QueryBondsDetailedRequest) ProtoMessage

func (*QueryBondsDetailedRequest) ProtoMessage()

func (*QueryBondsDetailedRequest) Reset

func (m *QueryBondsDetailedRequest) Reset()

func (*QueryBondsDetailedRequest) Size

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

func (*QueryBondsDetailedRequest) String

func (m *QueryBondsDetailedRequest) String() string

func (*QueryBondsDetailedRequest) Unmarshal

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

func (*QueryBondsDetailedRequest) XXX_DiscardUnknown

func (m *QueryBondsDetailedRequest) XXX_DiscardUnknown()

func (*QueryBondsDetailedRequest) XXX_Marshal

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

func (*QueryBondsDetailedRequest) XXX_Merge

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

func (*QueryBondsDetailedRequest) XXX_Size

func (m *QueryBondsDetailedRequest) XXX_Size() int

func (*QueryBondsDetailedRequest) XXX_Unmarshal

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

type QueryBondsDetailedResponse

type QueryBondsDetailedResponse struct {
	BondsDetailed []*BondDetails `protobuf:"bytes,1,rep,name=bonds_detailed,json=bondsDetailed,proto3" json:"bonds_detailed,omitempty"`
}

QueryBondsDetailedResponse is the response type for the Query/BondsDetailed RPC method.

func (*QueryBondsDetailedResponse) Descriptor

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

func (*QueryBondsDetailedResponse) GetBondsDetailed

func (m *QueryBondsDetailedResponse) GetBondsDetailed() []*BondDetails

func (*QueryBondsDetailedResponse) Marshal

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

func (*QueryBondsDetailedResponse) MarshalTo

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

func (*QueryBondsDetailedResponse) MarshalToSizedBuffer

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

func (*QueryBondsDetailedResponse) ProtoMessage

func (*QueryBondsDetailedResponse) ProtoMessage()

func (*QueryBondsDetailedResponse) Reset

func (m *QueryBondsDetailedResponse) Reset()

func (*QueryBondsDetailedResponse) Size

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

func (*QueryBondsDetailedResponse) String

func (m *QueryBondsDetailedResponse) String() string

func (*QueryBondsDetailedResponse) Unmarshal

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

func (*QueryBondsDetailedResponse) XXX_DiscardUnknown

func (m *QueryBondsDetailedResponse) XXX_DiscardUnknown()

func (*QueryBondsDetailedResponse) XXX_Marshal

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

func (*QueryBondsDetailedResponse) XXX_Merge

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

func (*QueryBondsDetailedResponse) XXX_Size

func (m *QueryBondsDetailedResponse) XXX_Size() int

func (*QueryBondsDetailedResponse) XXX_Unmarshal

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

type QueryBondsRequest

type QueryBondsRequest struct {
}

QueryBondsRequest is the request type for the Query/Bonds RPC method.

func (*QueryBondsRequest) Descriptor

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

func (*QueryBondsRequest) Marshal

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

func (*QueryBondsRequest) MarshalTo

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

func (*QueryBondsRequest) MarshalToSizedBuffer

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

func (*QueryBondsRequest) ProtoMessage

func (*QueryBondsRequest) ProtoMessage()

func (*QueryBondsRequest) Reset

func (m *QueryBondsRequest) Reset()

func (*QueryBondsRequest) Size

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

func (*QueryBondsRequest) String

func (m *QueryBondsRequest) String() string

func (*QueryBondsRequest) Unmarshal

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

func (*QueryBondsRequest) XXX_DiscardUnknown

func (m *QueryBondsRequest) XXX_DiscardUnknown()

func (*QueryBondsRequest) XXX_Marshal

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

func (*QueryBondsRequest) XXX_Merge

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

func (*QueryBondsRequest) XXX_Size

func (m *QueryBondsRequest) XXX_Size() int

func (*QueryBondsRequest) XXX_Unmarshal

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

type QueryBondsResponse

type QueryBondsResponse struct {
	Bonds []string `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds,omitempty"`
}

QueryBondsResponse is the response type for the Query/Bonds RPC method.

func (*QueryBondsResponse) Descriptor

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

func (*QueryBondsResponse) GetBonds

func (m *QueryBondsResponse) GetBonds() []string

func (*QueryBondsResponse) Marshal

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

func (*QueryBondsResponse) MarshalTo

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

func (*QueryBondsResponse) MarshalToSizedBuffer

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

func (*QueryBondsResponse) ProtoMessage

func (*QueryBondsResponse) ProtoMessage()

func (*QueryBondsResponse) Reset

func (m *QueryBondsResponse) Reset()

func (*QueryBondsResponse) Size

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

func (*QueryBondsResponse) String

func (m *QueryBondsResponse) String() string

func (*QueryBondsResponse) Unmarshal

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

func (*QueryBondsResponse) XXX_DiscardUnknown

func (m *QueryBondsResponse) XXX_DiscardUnknown()

func (*QueryBondsResponse) XXX_Marshal

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

func (*QueryBondsResponse) XXX_Merge

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

func (*QueryBondsResponse) XXX_Size

func (m *QueryBondsResponse) XXX_Size() int

func (*QueryBondsResponse) XXX_Unmarshal

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

type QueryBuyPriceRequest

type QueryBuyPriceRequest struct {
	BondDid    string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	BondAmount string `protobuf:"bytes,2,opt,name=bond_amount,json=bondAmount,proto3" json:"bond_amount,omitempty"`
}

QueryCustomPriceRequest is the request type for the Query/BuyPrice RPC method.

func (*QueryBuyPriceRequest) Descriptor

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

func (*QueryBuyPriceRequest) GetBondAmount

func (m *QueryBuyPriceRequest) GetBondAmount() string

func (*QueryBuyPriceRequest) GetBondDid

func (m *QueryBuyPriceRequest) GetBondDid() string

func (*QueryBuyPriceRequest) Marshal

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

func (*QueryBuyPriceRequest) MarshalTo

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

func (*QueryBuyPriceRequest) MarshalToSizedBuffer

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

func (*QueryBuyPriceRequest) ProtoMessage

func (*QueryBuyPriceRequest) ProtoMessage()

func (*QueryBuyPriceRequest) Reset

func (m *QueryBuyPriceRequest) Reset()

func (*QueryBuyPriceRequest) Size

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

func (*QueryBuyPriceRequest) String

func (m *QueryBuyPriceRequest) String() string

func (*QueryBuyPriceRequest) Unmarshal

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

func (*QueryBuyPriceRequest) XXX_DiscardUnknown

func (m *QueryBuyPriceRequest) XXX_DiscardUnknown()

func (*QueryBuyPriceRequest) XXX_Marshal

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

func (*QueryBuyPriceRequest) XXX_Merge

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

func (*QueryBuyPriceRequest) XXX_Size

func (m *QueryBuyPriceRequest) XXX_Size() int

func (*QueryBuyPriceRequest) XXX_Unmarshal

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

type QueryBuyPriceResponse

type QueryBuyPriceResponse struct {
	AdjustedSupply types.Coin                               `protobuf:"bytes,1,opt,name=adjusted_supply,json=adjustedSupply,proto3" json:"adjusted_supply"`
	Prices         github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=prices,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"prices"`
	TxFees         github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=tx_fees,json=txFees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"tx_fees"`
	TotalPrices    github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */
	TotalFees      github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

QueryCustomPriceResponse is the response type for the Query/BuyPrice RPC method.

func (*QueryBuyPriceResponse) Descriptor

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

func (*QueryBuyPriceResponse) GetAdjustedSupply

func (m *QueryBuyPriceResponse) GetAdjustedSupply() types.Coin

func (*QueryBuyPriceResponse) GetPrices

func (*QueryBuyPriceResponse) GetTotalFees

func (*QueryBuyPriceResponse) GetTotalPrices

func (*QueryBuyPriceResponse) GetTxFees

func (*QueryBuyPriceResponse) Marshal

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

func (*QueryBuyPriceResponse) MarshalTo

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

func (*QueryBuyPriceResponse) MarshalToSizedBuffer

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

func (*QueryBuyPriceResponse) ProtoMessage

func (*QueryBuyPriceResponse) ProtoMessage()

func (*QueryBuyPriceResponse) Reset

func (m *QueryBuyPriceResponse) Reset()

func (*QueryBuyPriceResponse) Size

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

func (*QueryBuyPriceResponse) String

func (m *QueryBuyPriceResponse) String() string

func (*QueryBuyPriceResponse) Unmarshal

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

func (*QueryBuyPriceResponse) XXX_DiscardUnknown

func (m *QueryBuyPriceResponse) XXX_DiscardUnknown()

func (*QueryBuyPriceResponse) XXX_Marshal

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

func (*QueryBuyPriceResponse) XXX_Merge

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

func (*QueryBuyPriceResponse) XXX_Size

func (m *QueryBuyPriceResponse) XXX_Size() int

func (*QueryBuyPriceResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Bonds returns all existing bonds.
	Bonds(ctx context.Context, in *QueryBondsRequest, opts ...grpc.CallOption) (*QueryBondsResponse, error)
	// BondsDetailed returns a list of all existing bonds with some details about
	// their current state.
	BondsDetailed(ctx context.Context, in *QueryBondsDetailedRequest, opts ...grpc.CallOption) (*QueryBondsDetailedResponse, error)
	// Params queries the paramaters of x/bonds module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Bond queries info of a specific bond.
	Bond(ctx context.Context, in *QueryBondRequest, opts ...grpc.CallOption) (*QueryBondResponse, error)
	// Batch queries info of a specific bond's current batch.
	Batch(ctx context.Context, in *QueryBatchRequest, opts ...grpc.CallOption) (*QueryBatchResponse, error)
	// LastBatch queries info of a specific bond's last batch.
	LastBatch(ctx context.Context, in *QueryLastBatchRequest, opts ...grpc.CallOption) (*QueryLastBatchResponse, error)
	// CurrentPrice queries the current price/s of a specific bond.
	CurrentPrice(ctx context.Context, in *QueryCurrentPriceRequest, opts ...grpc.CallOption) (*QueryCurrentPriceResponse, error)
	// CurrentReserve queries the current balance/s of the reserve pool for a
	// specific bond.
	CurrentReserve(ctx context.Context, in *QueryCurrentReserveRequest, opts ...grpc.CallOption) (*QueryCurrentReserveResponse, error)
	// AvailableReserve queries current available balance/s of the reserve pool
	// for a specific bond.
	AvailableReserve(ctx context.Context, in *QueryAvailableReserveRequest, opts ...grpc.CallOption) (*QueryAvailableReserveResponse, error)
	// CustomPrice queries price/s of a specific bond at a specific supply.
	CustomPrice(ctx context.Context, in *QueryCustomPriceRequest, opts ...grpc.CallOption) (*QueryCustomPriceResponse, error)
	// BuyPrice queries price/s of buying an amount of tokens from a specific
	// bond.
	BuyPrice(ctx context.Context, in *QueryBuyPriceRequest, opts ...grpc.CallOption) (*QueryBuyPriceResponse, error)
	// SellReturn queries return/s on selling an amount of tokens of a specific
	// bond.
	SellReturn(ctx context.Context, in *QuerySellReturnRequest, opts ...grpc.CallOption) (*QuerySellReturnResponse, error)
	// SwapReturn queries return/s on swapping an amount of tokens to another
	// token of a specific bond.
	SwapReturn(ctx context.Context, in *QuerySwapReturnRequest, opts ...grpc.CallOption) (*QuerySwapReturnResponse, error)
	// AlphaMaximums queries alpha maximums for a specific augmented bonding
	// curve.
	AlphaMaximums(ctx context.Context, in *QueryAlphaMaximumsRequest, opts ...grpc.CallOption) (*QueryAlphaMaximumsResponse, 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 QueryCurrentPriceRequest

type QueryCurrentPriceRequest struct {
	BondDid string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

QueryCurrentPriceRequest is the request type for the Query/CurrentPrice RPC method.

func (*QueryCurrentPriceRequest) Descriptor

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

func (*QueryCurrentPriceRequest) GetBondDid

func (m *QueryCurrentPriceRequest) GetBondDid() string

func (*QueryCurrentPriceRequest) Marshal

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

func (*QueryCurrentPriceRequest) MarshalTo

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

func (*QueryCurrentPriceRequest) MarshalToSizedBuffer

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

func (*QueryCurrentPriceRequest) ProtoMessage

func (*QueryCurrentPriceRequest) ProtoMessage()

func (*QueryCurrentPriceRequest) Reset

func (m *QueryCurrentPriceRequest) Reset()

func (*QueryCurrentPriceRequest) Size

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

func (*QueryCurrentPriceRequest) String

func (m *QueryCurrentPriceRequest) String() string

func (*QueryCurrentPriceRequest) Unmarshal

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

func (*QueryCurrentPriceRequest) XXX_DiscardUnknown

func (m *QueryCurrentPriceRequest) XXX_DiscardUnknown()

func (*QueryCurrentPriceRequest) XXX_Marshal

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

func (*QueryCurrentPriceRequest) XXX_Merge

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

func (*QueryCurrentPriceRequest) XXX_Size

func (m *QueryCurrentPriceRequest) XXX_Size() int

func (*QueryCurrentPriceRequest) XXX_Unmarshal

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

type QueryCurrentPriceResponse

type QueryCurrentPriceResponse struct {
	CurrentPrice github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 144-byte string literal not displayed */
}

QueryCurrentPriceResponse is the response type for the Query/CurrentPrice RPC method.

func (*QueryCurrentPriceResponse) Descriptor

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

func (*QueryCurrentPriceResponse) GetCurrentPrice

func (*QueryCurrentPriceResponse) Marshal

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

func (*QueryCurrentPriceResponse) MarshalTo

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

func (*QueryCurrentPriceResponse) MarshalToSizedBuffer

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

func (*QueryCurrentPriceResponse) ProtoMessage

func (*QueryCurrentPriceResponse) ProtoMessage()

func (*QueryCurrentPriceResponse) Reset

func (m *QueryCurrentPriceResponse) Reset()

func (*QueryCurrentPriceResponse) Size

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

func (*QueryCurrentPriceResponse) String

func (m *QueryCurrentPriceResponse) String() string

func (*QueryCurrentPriceResponse) Unmarshal

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

func (*QueryCurrentPriceResponse) XXX_DiscardUnknown

func (m *QueryCurrentPriceResponse) XXX_DiscardUnknown()

func (*QueryCurrentPriceResponse) XXX_Marshal

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

func (*QueryCurrentPriceResponse) XXX_Merge

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

func (*QueryCurrentPriceResponse) XXX_Size

func (m *QueryCurrentPriceResponse) XXX_Size() int

func (*QueryCurrentPriceResponse) XXX_Unmarshal

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

type QueryCurrentReserveRequest

type QueryCurrentReserveRequest struct {
	BondDid string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

QueryCurrentReserveRequest is the request type for the Query/CurrentReserve RPC method.

func (*QueryCurrentReserveRequest) Descriptor

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

func (*QueryCurrentReserveRequest) GetBondDid

func (m *QueryCurrentReserveRequest) GetBondDid() string

func (*QueryCurrentReserveRequest) Marshal

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

func (*QueryCurrentReserveRequest) MarshalTo

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

func (*QueryCurrentReserveRequest) MarshalToSizedBuffer

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

func (*QueryCurrentReserveRequest) ProtoMessage

func (*QueryCurrentReserveRequest) ProtoMessage()

func (*QueryCurrentReserveRequest) Reset

func (m *QueryCurrentReserveRequest) Reset()

func (*QueryCurrentReserveRequest) Size

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

func (*QueryCurrentReserveRequest) String

func (m *QueryCurrentReserveRequest) String() string

func (*QueryCurrentReserveRequest) Unmarshal

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

func (*QueryCurrentReserveRequest) XXX_DiscardUnknown

func (m *QueryCurrentReserveRequest) XXX_DiscardUnknown()

func (*QueryCurrentReserveRequest) XXX_Marshal

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

func (*QueryCurrentReserveRequest) XXX_Merge

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

func (*QueryCurrentReserveRequest) XXX_Size

func (m *QueryCurrentReserveRequest) XXX_Size() int

func (*QueryCurrentReserveRequest) XXX_Unmarshal

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

type QueryCurrentReserveResponse

type QueryCurrentReserveResponse struct {
	CurrentReserve []types.Coin `protobuf:"bytes,1,rep,name=current_reserve,json=currentReserve,proto3" json:"current_reserve"`
}

QueryCurrentReserveResponse is the response type for the Query/CurrentReserve RPC method.

func (*QueryCurrentReserveResponse) Descriptor

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

func (*QueryCurrentReserveResponse) GetCurrentReserve

func (m *QueryCurrentReserveResponse) GetCurrentReserve() []types.Coin

func (*QueryCurrentReserveResponse) Marshal

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

func (*QueryCurrentReserveResponse) MarshalTo

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

func (*QueryCurrentReserveResponse) MarshalToSizedBuffer

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

func (*QueryCurrentReserveResponse) ProtoMessage

func (*QueryCurrentReserveResponse) ProtoMessage()

func (*QueryCurrentReserveResponse) Reset

func (m *QueryCurrentReserveResponse) Reset()

func (*QueryCurrentReserveResponse) Size

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

func (*QueryCurrentReserveResponse) String

func (m *QueryCurrentReserveResponse) String() string

func (*QueryCurrentReserveResponse) Unmarshal

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

func (*QueryCurrentReserveResponse) XXX_DiscardUnknown

func (m *QueryCurrentReserveResponse) XXX_DiscardUnknown()

func (*QueryCurrentReserveResponse) XXX_Marshal

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

func (*QueryCurrentReserveResponse) XXX_Merge

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

func (*QueryCurrentReserveResponse) XXX_Size

func (m *QueryCurrentReserveResponse) XXX_Size() int

func (*QueryCurrentReserveResponse) XXX_Unmarshal

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

type QueryCustomPriceRequest

type QueryCustomPriceRequest struct {
	BondDid    string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	BondAmount string `protobuf:"bytes,2,opt,name=bond_amount,json=bondAmount,proto3" json:"bond_amount,omitempty"`
}

QueryCustomPriceRequest is the request type for the Query/CustomPrice RPC method.

func (*QueryCustomPriceRequest) Descriptor

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

func (*QueryCustomPriceRequest) GetBondAmount

func (m *QueryCustomPriceRequest) GetBondAmount() string

func (*QueryCustomPriceRequest) GetBondDid

func (m *QueryCustomPriceRequest) GetBondDid() string

func (*QueryCustomPriceRequest) Marshal

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

func (*QueryCustomPriceRequest) MarshalTo

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

func (*QueryCustomPriceRequest) MarshalToSizedBuffer

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

func (*QueryCustomPriceRequest) ProtoMessage

func (*QueryCustomPriceRequest) ProtoMessage()

func (*QueryCustomPriceRequest) Reset

func (m *QueryCustomPriceRequest) Reset()

func (*QueryCustomPriceRequest) Size

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

func (*QueryCustomPriceRequest) String

func (m *QueryCustomPriceRequest) String() string

func (*QueryCustomPriceRequest) Unmarshal

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

func (*QueryCustomPriceRequest) XXX_DiscardUnknown

func (m *QueryCustomPriceRequest) XXX_DiscardUnknown()

func (*QueryCustomPriceRequest) XXX_Marshal

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

func (*QueryCustomPriceRequest) XXX_Merge

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

func (*QueryCustomPriceRequest) XXX_Size

func (m *QueryCustomPriceRequest) XXX_Size() int

func (*QueryCustomPriceRequest) XXX_Unmarshal

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

type QueryCustomPriceResponse

type QueryCustomPriceResponse struct {
	Price github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=price,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"price"`
}

QueryCustomPriceResponse is the response type for the Query/CustomPrice RPC method.

func (*QueryCustomPriceResponse) Descriptor

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

func (*QueryCustomPriceResponse) GetPrice

func (*QueryCustomPriceResponse) Marshal

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

func (*QueryCustomPriceResponse) MarshalTo

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

func (*QueryCustomPriceResponse) MarshalToSizedBuffer

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

func (*QueryCustomPriceResponse) ProtoMessage

func (*QueryCustomPriceResponse) ProtoMessage()

func (*QueryCustomPriceResponse) Reset

func (m *QueryCustomPriceResponse) Reset()

func (*QueryCustomPriceResponse) Size

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

func (*QueryCustomPriceResponse) String

func (m *QueryCustomPriceResponse) String() string

func (*QueryCustomPriceResponse) Unmarshal

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

func (*QueryCustomPriceResponse) XXX_DiscardUnknown

func (m *QueryCustomPriceResponse) XXX_DiscardUnknown()

func (*QueryCustomPriceResponse) XXX_Marshal

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

func (*QueryCustomPriceResponse) XXX_Merge

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

func (*QueryCustomPriceResponse) XXX_Size

func (m *QueryCustomPriceResponse) XXX_Size() int

func (*QueryCustomPriceResponse) XXX_Unmarshal

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

type QueryLastBatchRequest

type QueryLastBatchRequest struct {
	BondDid string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
}

QueryLastBatchRequest is the request type for the Query/LastBatch RPC method.

func (*QueryLastBatchRequest) Descriptor

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

func (*QueryLastBatchRequest) GetBondDid

func (m *QueryLastBatchRequest) GetBondDid() string

func (*QueryLastBatchRequest) Marshal

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

func (*QueryLastBatchRequest) MarshalTo

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

func (*QueryLastBatchRequest) MarshalToSizedBuffer

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

func (*QueryLastBatchRequest) ProtoMessage

func (*QueryLastBatchRequest) ProtoMessage()

func (*QueryLastBatchRequest) Reset

func (m *QueryLastBatchRequest) Reset()

func (*QueryLastBatchRequest) Size

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

func (*QueryLastBatchRequest) String

func (m *QueryLastBatchRequest) String() string

func (*QueryLastBatchRequest) Unmarshal

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

func (*QueryLastBatchRequest) XXX_DiscardUnknown

func (m *QueryLastBatchRequest) XXX_DiscardUnknown()

func (*QueryLastBatchRequest) XXX_Marshal

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

func (*QueryLastBatchRequest) XXX_Merge

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

func (*QueryLastBatchRequest) XXX_Size

func (m *QueryLastBatchRequest) XXX_Size() int

func (*QueryLastBatchRequest) XXX_Unmarshal

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

type QueryLastBatchResponse

type QueryLastBatchResponse struct {
	LastBatch *Batch `protobuf:"bytes,1,opt,name=last_batch,json=lastBatch,proto3" json:"last_batch,omitempty"`
}

QueryLastBatchResponse is the response type for the Query/LastBatch RPC method.

func (*QueryLastBatchResponse) Descriptor

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

func (*QueryLastBatchResponse) GetLastBatch

func (m *QueryLastBatchResponse) GetLastBatch() *Batch

func (*QueryLastBatchResponse) Marshal

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

func (*QueryLastBatchResponse) MarshalTo

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

func (*QueryLastBatchResponse) MarshalToSizedBuffer

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

func (*QueryLastBatchResponse) ProtoMessage

func (*QueryLastBatchResponse) ProtoMessage()

func (*QueryLastBatchResponse) Reset

func (m *QueryLastBatchResponse) Reset()

func (*QueryLastBatchResponse) Size

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

func (*QueryLastBatchResponse) String

func (m *QueryLastBatchResponse) String() string

func (*QueryLastBatchResponse) Unmarshal

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

func (*QueryLastBatchResponse) XXX_DiscardUnknown

func (m *QueryLastBatchResponse) XXX_DiscardUnknown()

func (*QueryLastBatchResponse) XXX_Marshal

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

func (*QueryLastBatchResponse) XXX_Merge

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

func (*QueryLastBatchResponse) XXX_Size

func (m *QueryLastBatchResponse) XXX_Size() int

func (*QueryLastBatchResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the 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 *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

QueryParamsResponse is the 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 QuerySellReturnRequest

type QuerySellReturnRequest struct {
	BondDid    string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	BondAmount string `protobuf:"bytes,2,opt,name=bond_amount,json=bondAmount,proto3" json:"bond_amount,omitempty"`
}

QuerySellReturnRequest is the request type for the Query/SellReturn RPC method.

func (*QuerySellReturnRequest) Descriptor

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

func (*QuerySellReturnRequest) GetBondAmount

func (m *QuerySellReturnRequest) GetBondAmount() string

func (*QuerySellReturnRequest) GetBondDid

func (m *QuerySellReturnRequest) GetBondDid() string

func (*QuerySellReturnRequest) Marshal

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

func (*QuerySellReturnRequest) MarshalTo

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

func (*QuerySellReturnRequest) MarshalToSizedBuffer

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

func (*QuerySellReturnRequest) ProtoMessage

func (*QuerySellReturnRequest) ProtoMessage()

func (*QuerySellReturnRequest) Reset

func (m *QuerySellReturnRequest) Reset()

func (*QuerySellReturnRequest) Size

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

func (*QuerySellReturnRequest) String

func (m *QuerySellReturnRequest) String() string

func (*QuerySellReturnRequest) Unmarshal

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

func (*QuerySellReturnRequest) XXX_DiscardUnknown

func (m *QuerySellReturnRequest) XXX_DiscardUnknown()

func (*QuerySellReturnRequest) XXX_Marshal

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

func (*QuerySellReturnRequest) XXX_Merge

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

func (*QuerySellReturnRequest) XXX_Size

func (m *QuerySellReturnRequest) XXX_Size() int

func (*QuerySellReturnRequest) XXX_Unmarshal

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

type QuerySellReturnResponse

type QuerySellReturnResponse struct {
	AdjustedSupply types.Coin                               `protobuf:"bytes,1,opt,name=adjusted_supply,json=adjustedSupply,proto3" json:"adjusted_supply"`
	Returns        github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=returns,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"returns"`
	TxFees         github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=tx_fees,json=txFees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"tx_fees"`
	ExitFees       github_com_cosmos_cosmos_sdk_types.Coins `` /* 129-byte string literal not displayed */
	TotalReturns   github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */
	TotalFees      github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

QuerySellReturnResponse is the response type for the Query/SellReturn RPC method.

func (*QuerySellReturnResponse) Descriptor

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

func (*QuerySellReturnResponse) GetAdjustedSupply

func (m *QuerySellReturnResponse) GetAdjustedSupply() types.Coin

func (*QuerySellReturnResponse) GetExitFees

func (*QuerySellReturnResponse) GetReturns

func (*QuerySellReturnResponse) GetTotalFees

func (*QuerySellReturnResponse) GetTotalReturns

func (*QuerySellReturnResponse) GetTxFees

func (*QuerySellReturnResponse) Marshal

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

func (*QuerySellReturnResponse) MarshalTo

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

func (*QuerySellReturnResponse) MarshalToSizedBuffer

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

func (*QuerySellReturnResponse) ProtoMessage

func (*QuerySellReturnResponse) ProtoMessage()

func (*QuerySellReturnResponse) Reset

func (m *QuerySellReturnResponse) Reset()

func (*QuerySellReturnResponse) Size

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

func (*QuerySellReturnResponse) String

func (m *QuerySellReturnResponse) String() string

func (*QuerySellReturnResponse) Unmarshal

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

func (*QuerySellReturnResponse) XXX_DiscardUnknown

func (m *QuerySellReturnResponse) XXX_DiscardUnknown()

func (*QuerySellReturnResponse) XXX_Marshal

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

func (*QuerySellReturnResponse) XXX_Merge

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

func (*QuerySellReturnResponse) XXX_Size

func (m *QuerySellReturnResponse) XXX_Size() int

func (*QuerySellReturnResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Bonds returns all existing bonds.
	Bonds(context.Context, *QueryBondsRequest) (*QueryBondsResponse, error)
	// BondsDetailed returns a list of all existing bonds with some details about
	// their current state.
	BondsDetailed(context.Context, *QueryBondsDetailedRequest) (*QueryBondsDetailedResponse, error)
	// Params queries the paramaters of x/bonds module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Bond queries info of a specific bond.
	Bond(context.Context, *QueryBondRequest) (*QueryBondResponse, error)
	// Batch queries info of a specific bond's current batch.
	Batch(context.Context, *QueryBatchRequest) (*QueryBatchResponse, error)
	// LastBatch queries info of a specific bond's last batch.
	LastBatch(context.Context, *QueryLastBatchRequest) (*QueryLastBatchResponse, error)
	// CurrentPrice queries the current price/s of a specific bond.
	CurrentPrice(context.Context, *QueryCurrentPriceRequest) (*QueryCurrentPriceResponse, error)
	// CurrentReserve queries the current balance/s of the reserve pool for a
	// specific bond.
	CurrentReserve(context.Context, *QueryCurrentReserveRequest) (*QueryCurrentReserveResponse, error)
	// AvailableReserve queries current available balance/s of the reserve pool
	// for a specific bond.
	AvailableReserve(context.Context, *QueryAvailableReserveRequest) (*QueryAvailableReserveResponse, error)
	// CustomPrice queries price/s of a specific bond at a specific supply.
	CustomPrice(context.Context, *QueryCustomPriceRequest) (*QueryCustomPriceResponse, error)
	// BuyPrice queries price/s of buying an amount of tokens from a specific
	// bond.
	BuyPrice(context.Context, *QueryBuyPriceRequest) (*QueryBuyPriceResponse, error)
	// SellReturn queries return/s on selling an amount of tokens of a specific
	// bond.
	SellReturn(context.Context, *QuerySellReturnRequest) (*QuerySellReturnResponse, error)
	// SwapReturn queries return/s on swapping an amount of tokens to another
	// token of a specific bond.
	SwapReturn(context.Context, *QuerySwapReturnRequest) (*QuerySwapReturnResponse, error)
	// AlphaMaximums queries alpha maximums for a specific augmented bonding
	// curve.
	AlphaMaximums(context.Context, *QueryAlphaMaximumsRequest) (*QueryAlphaMaximumsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySwapReturnRequest

type QuerySwapReturnRequest struct {
	BondDid             string `protobuf:"bytes,1,opt,name=bond_did,json=bondDid,proto3" json:"bond_did,omitempty"`
	FromTokenWithAmount string `protobuf:"bytes,2,opt,name=from_token_with_amount,json=fromTokenWithAmount,proto3" json:"from_token_with_amount,omitempty"`
	ToToken             string `protobuf:"bytes,3,opt,name=to_token,json=toToken,proto3" json:"to_token,omitempty"`
}

QuerySwapReturnRequest is the request type for the Query/SwapReturn RPC method.

func (*QuerySwapReturnRequest) Descriptor

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

func (*QuerySwapReturnRequest) GetBondDid

func (m *QuerySwapReturnRequest) GetBondDid() string

func (*QuerySwapReturnRequest) GetFromTokenWithAmount

func (m *QuerySwapReturnRequest) GetFromTokenWithAmount() string

func (*QuerySwapReturnRequest) GetToToken

func (m *QuerySwapReturnRequest) GetToToken() string

func (*QuerySwapReturnRequest) Marshal

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

func (*QuerySwapReturnRequest) MarshalTo

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

func (*QuerySwapReturnRequest) MarshalToSizedBuffer

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

func (*QuerySwapReturnRequest) ProtoMessage

func (*QuerySwapReturnRequest) ProtoMessage()

func (*QuerySwapReturnRequest) Reset

func (m *QuerySwapReturnRequest) Reset()

func (*QuerySwapReturnRequest) Size

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

func (*QuerySwapReturnRequest) String

func (m *QuerySwapReturnRequest) String() string

func (*QuerySwapReturnRequest) Unmarshal

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

func (*QuerySwapReturnRequest) XXX_DiscardUnknown

func (m *QuerySwapReturnRequest) XXX_DiscardUnknown()

func (*QuerySwapReturnRequest) XXX_Marshal

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

func (*QuerySwapReturnRequest) XXX_Merge

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

func (*QuerySwapReturnRequest) XXX_Size

func (m *QuerySwapReturnRequest) XXX_Size() int

func (*QuerySwapReturnRequest) XXX_Unmarshal

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

type QuerySwapReturnResponse

type QuerySwapReturnResponse struct {
	TotalReturns github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */
	TotalFees    github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

QuerySwapReturnResponse is the response type for the Query/SwapReturn RPC method.

func (*QuerySwapReturnResponse) Descriptor

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

func (*QuerySwapReturnResponse) GetTotalFees

func (*QuerySwapReturnResponse) GetTotalReturns

func (*QuerySwapReturnResponse) Marshal

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

func (*QuerySwapReturnResponse) MarshalTo

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

func (*QuerySwapReturnResponse) MarshalToSizedBuffer

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

func (*QuerySwapReturnResponse) ProtoMessage

func (*QuerySwapReturnResponse) ProtoMessage()

func (*QuerySwapReturnResponse) Reset

func (m *QuerySwapReturnResponse) Reset()

func (*QuerySwapReturnResponse) Size

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

func (*QuerySwapReturnResponse) String

func (m *QuerySwapReturnResponse) String() string

func (*QuerySwapReturnResponse) Unmarshal

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

func (*QuerySwapReturnResponse) XXX_DiscardUnknown

func (m *QuerySwapReturnResponse) XXX_DiscardUnknown()

func (*QuerySwapReturnResponse) XXX_Marshal

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

func (*QuerySwapReturnResponse) XXX_Merge

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

func (*QuerySwapReturnResponse) XXX_Size

func (m *QuerySwapReturnResponse) XXX_Size() int

func (*QuerySwapReturnResponse) XXX_Unmarshal

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

type SellOrder

type SellOrder struct {
	BaseOrder BaseOrder `protobuf:"bytes,1,opt,name=base_order,json=baseOrder,proto3" json:"base_order"`
}

SellOrder defines a type for submitting a sell order on a bond.

func NewSellOrder

func NewSellOrder(sellerDid iidtypes.DIDFragment, amount sdk.Coin) SellOrder

func (*SellOrder) Descriptor

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

func (*SellOrder) GetBaseOrder

func (m *SellOrder) GetBaseOrder() BaseOrder

func (*SellOrder) Marshal

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

func (*SellOrder) MarshalTo

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

func (*SellOrder) MarshalToSizedBuffer

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

func (*SellOrder) ProtoMessage

func (*SellOrder) ProtoMessage()

func (*SellOrder) Reset

func (m *SellOrder) Reset()

func (*SellOrder) Size

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

func (*SellOrder) String

func (m *SellOrder) String() string

func (*SellOrder) Unmarshal

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

func (*SellOrder) XXX_DiscardUnknown

func (m *SellOrder) XXX_DiscardUnknown()

func (*SellOrder) XXX_Marshal

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

func (*SellOrder) XXX_Merge

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

func (*SellOrder) XXX_Size

func (m *SellOrder) XXX_Size() int

func (*SellOrder) XXX_Unmarshal

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

type SwapOrder

type SwapOrder struct {
	BaseOrder BaseOrder `protobuf:"bytes,1,opt,name=base_order,json=baseOrder,proto3" json:"base_order"`
	ToToken   string    `protobuf:"bytes,2,opt,name=to_token,json=toToken,proto3" json:"to_token,omitempty"`
}

SwapOrder defines a type for submitting a swap order between two tokens on a bond.

func NewSwapOrder

func NewSwapOrder(swapperDid iidtypes.DIDFragment, from sdk.Coin, toToken string) SwapOrder

func (*SwapOrder) Descriptor

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

func (*SwapOrder) GetBaseOrder

func (m *SwapOrder) GetBaseOrder() BaseOrder

func (*SwapOrder) GetToToken

func (m *SwapOrder) GetToToken() string

func (*SwapOrder) Marshal

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

func (*SwapOrder) MarshalTo

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

func (*SwapOrder) MarshalToSizedBuffer

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

func (*SwapOrder) ProtoMessage

func (*SwapOrder) ProtoMessage()

func (*SwapOrder) Reset

func (m *SwapOrder) Reset()

func (*SwapOrder) Size

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

func (*SwapOrder) String

func (m *SwapOrder) String() string

func (*SwapOrder) Unmarshal

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

func (*SwapOrder) XXX_DiscardUnknown

func (m *SwapOrder) XXX_DiscardUnknown()

func (*SwapOrder) XXX_Marshal

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

func (*SwapOrder) XXX_Merge

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

func (*SwapOrder) XXX_Size

func (m *SwapOrder) XXX_Size() int

func (*SwapOrder) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Buy

func (*UnimplementedMsgServer) CreateBond

func (*UnimplementedMsgServer) EditBond

func (*UnimplementedMsgServer) MakeOutcomePayment

func (*UnimplementedMsgServer) Sell

func (*UnimplementedMsgServer) SetNextAlpha

func (*UnimplementedMsgServer) Swap

func (*UnimplementedMsgServer) UpdateBondState

func (*UnimplementedMsgServer) WithdrawReserve

func (*UnimplementedMsgServer) WithdrawShare

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AlphaMaximums

func (*UnimplementedQueryServer) AvailableReserve

func (*UnimplementedQueryServer) Batch

func (*UnimplementedQueryServer) Bond

func (*UnimplementedQueryServer) Bonds

func (*UnimplementedQueryServer) BondsDetailed

func (*UnimplementedQueryServer) BuyPrice

func (*UnimplementedQueryServer) CurrentPrice

func (*UnimplementedQueryServer) CurrentReserve

func (*UnimplementedQueryServer) CustomPrice

func (*UnimplementedQueryServer) LastBatch

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) SellReturn

func (*UnimplementedQueryServer) SwapReturn

Jump to

Keyboard shortcuts

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