types

package
v1.54.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ModuleName = "insurance"
	StoreKey   = ModuleName
)
View Source
const (
	// DefaultInsurancePeriodDurationSeconds represents the number of seconds in two weeks
	DefaultInsurancePeriod              = time.Hour * 24 * 14
	DefaultBinaryOptionsInsurancePeriod = time.Minute
)

insurance params default values

View Source
const RouterKey = ModuleName

Variables

View Source
var (
	ErrInsuranceFundAlreadyExists = errors.Register(ModuleName, 1, "insurance fund already exists")
	ErrInsuranceFundNotFound      = errors.Register(ModuleName, 2, "insurance fund not found")
	ErrRedemptionAlreadyExists    = errors.Register(ModuleName, 3, "redemption already exists")
	ErrInvalidDepositAmount       = errors.Register(ModuleName, 4, "invalid deposit amount")
	ErrInvalidDepositDenom        = errors.Register(ModuleName, 5, "invalid deposit denom")
	ErrPayoutTooLarge             = errors.Register(ModuleName, 6, "insurance payout exceeds deposits")
	ErrInvalidTicker              = errors.Register(ModuleName, 7, "invalid ticker")
	ErrInvalidQuoteDenom          = errors.Register(ModuleName, 8, "invalid quote denom")
	ErrInvalidOracle              = errors.Register(ModuleName, 9, "invalid oracle")
	ErrInvalidExpirationTime      = errors.Register(ModuleName, 10, "invalid expiration time")
	ErrInvalidMarketID            = errors.Register(ModuleName, 11, "invalid marketID")
	ErrInvalidShareDenom          = errors.Register(ModuleName, 12, "invalid share denom")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	InsuranceFundInitialSupply                = math.NewIntWithDecimal(1, 18)
	InsuranceFundProtocolOwnedLiquiditySupply = math.NewIntWithDecimal(1, 16)
	InsuranceFundCreatorSupply                = InsuranceFundInitialSupply.Sub(InsuranceFundProtocolOwnedLiquiditySupply)
)
View Source
var (
	ErrInvalidLengthInsurance        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowInsurance          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupInsurance = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// Key for insurance prefixes
	InsuranceFundPrefixKey = []byte{0x02}

	// Key for insurance redemption prefixes
	RedemptionSchedulePrefixKey = []byte{0x03}

	GlobalShareDenomIdPrefixKey         = []byte{0x04, 0x00}
	GlobalRedemptionScheduleIdPrefixKey = []byte{0x05, 0x00}

	ParamsKey = []byte{0x10}
)
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 BinaryOptionsExpiryFlag int64 = -2
View Source
var (
	KeyDefaultRedemptionNoticePeriodDuration = []byte("defaultRedemptionNoticePeriodDuration")
)

Parameter keys

View Source
var MaxUnderwritingAmount, _ = math.NewIntFromString("1000000000000000000000000000")

MaxUnderwritingAmount equals 1 trillion * 1e18

View Source
var (
	// ModuleCdc references the global x/insurance 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/insurance and
	// defined at the application level.
	ModuleCdc = codec.NewLegacyAmino()
)
View Source
var PerpetualExpiryFlag int64 = -1

Functions

func GetRedemptionScheduleKey

func GetRedemptionScheduleKey(redemptionID uint64, claimTime time.Time) []byte

GetRedemptionScheduleKey provides the key to store a single pending redemption

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/insurance interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ShareDenomFromId

func ShareDenomFromId(id uint64) string

Types

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	SetDenomMetaData(ctx context.Context, denomMeta banktypes.Metadata)
}

BankKeeper defines the expected bank keeper methods

type EventInsuranceFundUpdate

type EventInsuranceFundUpdate struct {
	Fund *InsuranceFund `protobuf:"bytes,1,opt,name=fund,proto3" json:"fund,omitempty"`
}

func (*EventInsuranceFundUpdate) Descriptor

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

func (*EventInsuranceFundUpdate) GetFund

func (*EventInsuranceFundUpdate) Marshal

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

func (*EventInsuranceFundUpdate) MarshalTo

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

func (*EventInsuranceFundUpdate) MarshalToSizedBuffer

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

func (*EventInsuranceFundUpdate) ProtoMessage

func (*EventInsuranceFundUpdate) ProtoMessage()

func (*EventInsuranceFundUpdate) Reset

func (m *EventInsuranceFundUpdate) Reset()

func (*EventInsuranceFundUpdate) Size

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

func (*EventInsuranceFundUpdate) String

func (m *EventInsuranceFundUpdate) String() string

func (*EventInsuranceFundUpdate) Unmarshal

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

func (*EventInsuranceFundUpdate) XXX_DiscardUnknown

func (m *EventInsuranceFundUpdate) XXX_DiscardUnknown()

func (*EventInsuranceFundUpdate) XXX_Marshal

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

func (*EventInsuranceFundUpdate) XXX_Merge

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

func (*EventInsuranceFundUpdate) XXX_Size

func (m *EventInsuranceFundUpdate) XXX_Size() int

func (*EventInsuranceFundUpdate) XXX_Unmarshal

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

type EventInsuranceWithdraw added in v1.49.0

type EventInsuranceWithdraw struct {
	MarketId     string     `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	MarketTicker string     `protobuf:"bytes,2,opt,name=market_ticker,json=marketTicker,proto3" json:"market_ticker,omitempty"`
	Withdrawal   types.Coin `protobuf:"bytes,3,opt,name=withdrawal,proto3" json:"withdrawal"`
}

func (*EventInsuranceWithdraw) Descriptor added in v1.49.0

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

func (*EventInsuranceWithdraw) GetMarketId added in v1.49.0

func (m *EventInsuranceWithdraw) GetMarketId() string

func (*EventInsuranceWithdraw) GetMarketTicker added in v1.49.0

func (m *EventInsuranceWithdraw) GetMarketTicker() string

func (*EventInsuranceWithdraw) GetWithdrawal added in v1.49.0

func (m *EventInsuranceWithdraw) GetWithdrawal() types.Coin

func (*EventInsuranceWithdraw) Marshal added in v1.49.0

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

func (*EventInsuranceWithdraw) MarshalTo added in v1.49.0

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

func (*EventInsuranceWithdraw) MarshalToSizedBuffer added in v1.49.0

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

func (*EventInsuranceWithdraw) ProtoMessage added in v1.49.0

func (*EventInsuranceWithdraw) ProtoMessage()

func (*EventInsuranceWithdraw) Reset added in v1.49.0

func (m *EventInsuranceWithdraw) Reset()

func (*EventInsuranceWithdraw) Size added in v1.49.0

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

func (*EventInsuranceWithdraw) String added in v1.49.0

func (m *EventInsuranceWithdraw) String() string

func (*EventInsuranceWithdraw) Unmarshal added in v1.49.0

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

func (*EventInsuranceWithdraw) XXX_DiscardUnknown added in v1.49.0

func (m *EventInsuranceWithdraw) XXX_DiscardUnknown()

func (*EventInsuranceWithdraw) XXX_Marshal added in v1.49.0

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

func (*EventInsuranceWithdraw) XXX_Merge added in v1.49.0

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

func (*EventInsuranceWithdraw) XXX_Size added in v1.49.0

func (m *EventInsuranceWithdraw) XXX_Size() int

func (*EventInsuranceWithdraw) XXX_Unmarshal added in v1.49.0

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

type EventRequestRedemption

type EventRequestRedemption struct {
	Schedule *RedemptionSchedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
}

func (*EventRequestRedemption) Descriptor

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

func (*EventRequestRedemption) GetSchedule

func (m *EventRequestRedemption) GetSchedule() *RedemptionSchedule

func (*EventRequestRedemption) Marshal

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

func (*EventRequestRedemption) MarshalTo

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

func (*EventRequestRedemption) MarshalToSizedBuffer

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

func (*EventRequestRedemption) ProtoMessage

func (*EventRequestRedemption) ProtoMessage()

func (*EventRequestRedemption) Reset

func (m *EventRequestRedemption) Reset()

func (*EventRequestRedemption) Size

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

func (*EventRequestRedemption) String

func (m *EventRequestRedemption) String() string

func (*EventRequestRedemption) Unmarshal

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

func (*EventRequestRedemption) XXX_DiscardUnknown

func (m *EventRequestRedemption) XXX_DiscardUnknown()

func (*EventRequestRedemption) XXX_Marshal

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

func (*EventRequestRedemption) XXX_Merge

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

func (*EventRequestRedemption) XXX_Size

func (m *EventRequestRedemption) XXX_Size() int

func (*EventRequestRedemption) XXX_Unmarshal

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

type EventUnderwrite added in v1.32.1

type EventUnderwrite struct {
	// address of the underwriter
	Underwriter string `protobuf:"bytes,1,opt,name=underwriter,proto3" json:"underwriter,omitempty"`
	// marketId of insurance fund for the redemption
	MarketId string `protobuf:"bytes,2,opt,name=marketId,proto3" json:"marketId,omitempty"`
	// deposit coin amount
	Deposit types.Coin `protobuf:"bytes,3,opt,name=deposit,proto3" json:"deposit"`
	// share coin amount
	Shares types.Coin `protobuf:"bytes,4,opt,name=shares,proto3" json:"shares"`
}

func (*EventUnderwrite) Descriptor added in v1.32.1

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

func (*EventUnderwrite) GetDeposit added in v1.32.1

func (m *EventUnderwrite) GetDeposit() types.Coin

func (*EventUnderwrite) GetMarketId added in v1.32.1

func (m *EventUnderwrite) GetMarketId() string

func (*EventUnderwrite) GetShares added in v1.32.1

func (m *EventUnderwrite) GetShares() types.Coin

func (*EventUnderwrite) GetUnderwriter added in v1.32.1

func (m *EventUnderwrite) GetUnderwriter() string

func (*EventUnderwrite) Marshal added in v1.32.1

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

func (*EventUnderwrite) MarshalTo added in v1.32.1

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

func (*EventUnderwrite) MarshalToSizedBuffer added in v1.32.1

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

func (*EventUnderwrite) ProtoMessage added in v1.32.1

func (*EventUnderwrite) ProtoMessage()

func (*EventUnderwrite) Reset added in v1.32.1

func (m *EventUnderwrite) Reset()

func (*EventUnderwrite) Size added in v1.32.1

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

func (*EventUnderwrite) String added in v1.32.1

func (m *EventUnderwrite) String() string

func (*EventUnderwrite) Unmarshal added in v1.32.1

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

func (*EventUnderwrite) XXX_DiscardUnknown added in v1.32.1

func (m *EventUnderwrite) XXX_DiscardUnknown()

func (*EventUnderwrite) XXX_Marshal added in v1.32.1

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

func (*EventUnderwrite) XXX_Merge added in v1.32.1

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

func (*EventUnderwrite) XXX_Size added in v1.32.1

func (m *EventUnderwrite) XXX_Size() int

func (*EventUnderwrite) XXX_Unmarshal added in v1.32.1

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

type EventWithdrawRedemption

type EventWithdrawRedemption struct {
	// redemption schedule triggered withdraw
	Schedule *RedemptionSchedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// redeem coin amount in base_currency
	RedeemCoin types.Coin `protobuf:"bytes,2,opt,name=redeem_coin,json=redeemCoin,proto3" json:"redeem_coin"`
}

func (*EventWithdrawRedemption) Descriptor

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

func (*EventWithdrawRedemption) GetRedeemCoin

func (m *EventWithdrawRedemption) GetRedeemCoin() types.Coin

func (*EventWithdrawRedemption) GetSchedule

func (m *EventWithdrawRedemption) GetSchedule() *RedemptionSchedule

func (*EventWithdrawRedemption) Marshal

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

func (*EventWithdrawRedemption) MarshalTo

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

func (*EventWithdrawRedemption) MarshalToSizedBuffer

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

func (*EventWithdrawRedemption) ProtoMessage

func (*EventWithdrawRedemption) ProtoMessage()

func (*EventWithdrawRedemption) Reset

func (m *EventWithdrawRedemption) Reset()

func (*EventWithdrawRedemption) Size

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

func (*EventWithdrawRedemption) String

func (m *EventWithdrawRedemption) String() string

func (*EventWithdrawRedemption) Unmarshal

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

func (*EventWithdrawRedemption) XXX_DiscardUnknown

func (m *EventWithdrawRedemption) XXX_DiscardUnknown()

func (*EventWithdrawRedemption) XXX_Marshal

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

func (*EventWithdrawRedemption) XXX_Merge

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

func (*EventWithdrawRedemption) XXX_Size

func (m *EventWithdrawRedemption) XXX_Size() int

func (*EventWithdrawRedemption) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the parameters of related to insurance.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// insurance_funds describes the insurance funds available for derivative
	// markets
	InsuranceFunds []InsuranceFund `protobuf:"bytes,2,rep,name=insurance_funds,json=insuranceFunds,proto3" json:"insurance_funds"`
	// redemption_schedule describes the redemption requests pending
	RedemptionSchedule []RedemptionSchedule `protobuf:"bytes,3,rep,name=redemption_schedule,json=redemptionSchedule,proto3" json:"redemption_schedule"`
	// next_share_denom_id describes the next share denom id to be used for newly
	// creating insurance fund incremented by 1 per insurance fund creation
	NextShareDenomId uint64 `protobuf:"varint,4,opt,name=next_share_denom_id,json=nextShareDenomId,proto3" json:"next_share_denom_id,omitempty"`
	// next_redemption_schedule_id describes next redemption schedule id to be
	// used for next schedule incremented by 1 per redemption request
	NextRedemptionScheduleId uint64 `` /* 138-byte string literal not displayed */
}

GenesisState defines the insurance module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState() GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetInsuranceFunds

func (m *GenesisState) GetInsuranceFunds() []InsuranceFund

func (*GenesisState) GetNextRedemptionScheduleId

func (m *GenesisState) GetNextRedemptionScheduleId() uint64

func (*GenesisState) GetNextShareDenomId

func (m *GenesisState) GetNextShareDenomId() uint64

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRedemptionSchedule

func (m *GenesisState) GetRedemptionSchedule() []RedemptionSchedule

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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 InsuranceFund

type InsuranceFund struct {
	// deposit denomination for the given insurance fund
	DepositDenom string `protobuf:"bytes,1,opt,name=deposit_denom,json=depositDenom,proto3" json:"deposit_denom,omitempty"`
	// insurance fund pool token denomination for the given insurance fund
	InsurancePoolTokenDenom string `` /* 134-byte string literal not displayed */
	// redemption_notice_period_duration defines the minimum notice period
	// duration that must pass after an underwriter sends a redemption request
	// before the underwriter can claim his tokens
	RedemptionNoticePeriodDuration time.Duration `` /* 198-byte string literal not displayed */
	// balance of fund
	Balance cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=cosmossdk.io/math.Int" json:"balance"`
	// total share tokens minted
	TotalShare cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=total_share,json=totalShare,proto3,customtype=cosmossdk.io/math.Int" json:"total_share"`
	// marketID of the derivative market
	MarketId string `protobuf:"bytes,6,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// ticker of the derivative market
	MarketTicker string `protobuf:"bytes,7,opt,name=market_ticker,json=marketTicker,proto3" json:"market_ticker,omitempty"`
	// Oracle base currency of the derivative market OR the oracle symbol for the
	// binary options market.
	OracleBase string `protobuf:"bytes,8,opt,name=oracle_base,json=oracleBase,proto3" json:"oracle_base,omitempty"`
	// Oracle quote currency of the derivative market OR the oracle provider for
	// the binary options market.
	OracleQuote string `protobuf:"bytes,9,opt,name=oracle_quote,json=oracleQuote,proto3" json:"oracle_quote,omitempty"`
	// Oracle type of the binary options or derivative market
	OracleType types.OracleType `` /* 134-byte string literal not displayed */
	// Expiration time of the derivative market. Should be -1 for perpetual or -2
	// for binary options markets.
	Expiry int64 `protobuf:"varint,11,opt,name=expiry,proto3" json:"expiry,omitempty"`
}

func NewInsuranceFund

func NewInsuranceFund(
	marketID common.Hash,
	depositDenom, poolTokenDenom string,
	redemptionNoticePeriodDuration time.Duration,
	ticker, oracleBase, oracleQuote string, oracleType oracletypes.OracleType, expiry int64,
) *InsuranceFund

func (*InsuranceFund) AddTotalShare

func (fund *InsuranceFund) AddTotalShare(shares math.Int)

func (*InsuranceFund) Descriptor

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

func (*InsuranceFund) GetDepositDenom

func (m *InsuranceFund) GetDepositDenom() string

func (*InsuranceFund) GetExpiry

func (m *InsuranceFund) GetExpiry() int64

func (*InsuranceFund) GetInsurancePoolTokenDenom

func (m *InsuranceFund) GetInsurancePoolTokenDenom() string

func (*InsuranceFund) GetMarketId

func (m *InsuranceFund) GetMarketId() string

func (*InsuranceFund) GetMarketTicker

func (m *InsuranceFund) GetMarketTicker() string

func (*InsuranceFund) GetOracleBase

func (m *InsuranceFund) GetOracleBase() string

func (*InsuranceFund) GetOracleQuote

func (m *InsuranceFund) GetOracleQuote() string

func (*InsuranceFund) GetOracleType

func (m *InsuranceFund) GetOracleType() types.OracleType

func (*InsuranceFund) GetRedemptionNoticePeriodDuration

func (m *InsuranceFund) GetRedemptionNoticePeriodDuration() time.Duration

func (*InsuranceFund) Marshal

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

func (*InsuranceFund) MarshalTo

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

func (*InsuranceFund) MarshalToSizedBuffer

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

func (*InsuranceFund) ProtoMessage

func (*InsuranceFund) ProtoMessage()

func (*InsuranceFund) Reset

func (m *InsuranceFund) Reset()

func (InsuranceFund) ShareDenom

func (fund InsuranceFund) ShareDenom() string

func (*InsuranceFund) Size

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

func (*InsuranceFund) String

func (m *InsuranceFund) String() string

func (*InsuranceFund) SubTotalShare

func (fund *InsuranceFund) SubTotalShare(shares math.Int)

func (*InsuranceFund) Unmarshal

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

func (*InsuranceFund) XXX_DiscardUnknown

func (m *InsuranceFund) XXX_DiscardUnknown()

func (*InsuranceFund) XXX_Marshal

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

func (*InsuranceFund) XXX_Merge

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

func (*InsuranceFund) XXX_Size

func (m *InsuranceFund) XXX_Size() int

func (*InsuranceFund) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateInsuranceFund defines a method for creating an insurance fund
	CreateInsuranceFund(ctx context.Context, in *MsgCreateInsuranceFund, opts ...grpc.CallOption) (*MsgCreateInsuranceFundResponse, error)
	// Underwrite defines a method for depositing tokens to underwrite an
	// insurance fund
	Underwrite(ctx context.Context, in *MsgUnderwrite, opts ...grpc.CallOption) (*MsgUnderwriteResponse, error)
	// RequestRedemption defines a method for requesting a redemption of the
	// sender's insurance fund tokens
	RequestRedemption(ctx context.Context, in *MsgRequestRedemption, opts ...grpc.CallOption) (*MsgRequestRedemptionResponse, error)
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateInsuranceFund

type MsgCreateInsuranceFund struct {
	// Creator of the insurance fund.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Ticker for the derivative market.
	Ticker string `protobuf:"bytes,2,opt,name=ticker,proto3" json:"ticker,omitempty"`
	// Coin denom to use for the market quote denom
	QuoteDenom string `protobuf:"bytes,3,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"`
	// Oracle base currency of the derivative market OR the oracle symbol for the
	// binary options market.
	OracleBase string `protobuf:"bytes,4,opt,name=oracle_base,json=oracleBase,proto3" json:"oracle_base,omitempty"`
	// Oracle quote currency of the derivative market OR the oracle provider for
	// the binary options market.
	OracleQuote string `protobuf:"bytes,5,opt,name=oracle_quote,json=oracleQuote,proto3" json:"oracle_quote,omitempty"`
	// Oracle type of the binary options or derivative market
	OracleType types.OracleType `` /* 133-byte string literal not displayed */
	// Expiration time of the derivative market. Should be -1 for perpetual or -2
	// for binary options markets.
	Expiry int64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// Initial deposit of the insurance fund
	InitialDeposit types1.Coin `protobuf:"bytes,8,opt,name=initial_deposit,json=initialDeposit,proto3" json:"initial_deposit"`
}

MsgCreateInsuranceFund a message to create an insurance fund for a derivative market.

func (*MsgCreateInsuranceFund) Descriptor

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

func (*MsgCreateInsuranceFund) GetSignBytes

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

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgCreateInsuranceFund) GetSigners

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

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgCreateInsuranceFund) Marshal

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

func (*MsgCreateInsuranceFund) MarshalTo

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

func (*MsgCreateInsuranceFund) MarshalToSizedBuffer

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

func (*MsgCreateInsuranceFund) ProtoMessage

func (*MsgCreateInsuranceFund) ProtoMessage()

func (*MsgCreateInsuranceFund) Reset

func (m *MsgCreateInsuranceFund) Reset()

func (MsgCreateInsuranceFund) Route

func (msg MsgCreateInsuranceFund) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgCreateInsuranceFund) Size

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

func (*MsgCreateInsuranceFund) String

func (m *MsgCreateInsuranceFund) String() string

func (MsgCreateInsuranceFund) Type

func (msg MsgCreateInsuranceFund) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgCreateInsuranceFund) Unmarshal

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

func (MsgCreateInsuranceFund) ValidateBasic

func (msg MsgCreateInsuranceFund) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgCreateInsuranceFund) XXX_DiscardUnknown

func (m *MsgCreateInsuranceFund) XXX_DiscardUnknown()

func (*MsgCreateInsuranceFund) XXX_Marshal

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

func (*MsgCreateInsuranceFund) XXX_Merge

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

func (*MsgCreateInsuranceFund) XXX_Size

func (m *MsgCreateInsuranceFund) XXX_Size() int

func (*MsgCreateInsuranceFund) XXX_Unmarshal

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

type MsgCreateInsuranceFundResponse

type MsgCreateInsuranceFundResponse struct {
}

func (*MsgCreateInsuranceFundResponse) Descriptor

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

func (*MsgCreateInsuranceFundResponse) Marshal

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

func (*MsgCreateInsuranceFundResponse) MarshalTo

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

func (*MsgCreateInsuranceFundResponse) MarshalToSizedBuffer

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

func (*MsgCreateInsuranceFundResponse) ProtoMessage

func (*MsgCreateInsuranceFundResponse) ProtoMessage()

func (*MsgCreateInsuranceFundResponse) Reset

func (m *MsgCreateInsuranceFundResponse) Reset()

func (*MsgCreateInsuranceFundResponse) Size

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

func (*MsgCreateInsuranceFundResponse) String

func (*MsgCreateInsuranceFundResponse) Unmarshal

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

func (*MsgCreateInsuranceFundResponse) XXX_DiscardUnknown

func (m *MsgCreateInsuranceFundResponse) XXX_DiscardUnknown()

func (*MsgCreateInsuranceFundResponse) XXX_Marshal

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

func (*MsgCreateInsuranceFundResponse) XXX_Merge

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

func (*MsgCreateInsuranceFundResponse) XXX_Size

func (m *MsgCreateInsuranceFundResponse) XXX_Size() int

func (*MsgCreateInsuranceFundResponse) XXX_Unmarshal

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

type MsgRequestRedemption

type MsgRequestRedemption struct {
	// Address of the underwriter requesting a redemption.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// MarketID of the insurance fund.
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Insurance fund share token amount to be redeemed.
	Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgRequestRedemption defines a message for requesting a redemption of the sender's insurance fund tokens

func (*MsgRequestRedemption) Descriptor

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

func (*MsgRequestRedemption) GetSignBytes

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

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgRequestRedemption) GetSigners

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

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgRequestRedemption) Marshal

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

func (*MsgRequestRedemption) MarshalTo

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

func (*MsgRequestRedemption) MarshalToSizedBuffer

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

func (*MsgRequestRedemption) ProtoMessage

func (*MsgRequestRedemption) ProtoMessage()

func (*MsgRequestRedemption) Reset

func (m *MsgRequestRedemption) Reset()

func (MsgRequestRedemption) Route

func (msg MsgRequestRedemption) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgRequestRedemption) Size

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

func (*MsgRequestRedemption) String

func (m *MsgRequestRedemption) String() string

func (MsgRequestRedemption) Type

func (msg MsgRequestRedemption) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgRequestRedemption) Unmarshal

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

func (MsgRequestRedemption) ValidateBasic

func (msg MsgRequestRedemption) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgRequestRedemption) XXX_DiscardUnknown

func (m *MsgRequestRedemption) XXX_DiscardUnknown()

func (*MsgRequestRedemption) XXX_Marshal

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

func (*MsgRequestRedemption) XXX_Merge

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

func (*MsgRequestRedemption) XXX_Size

func (m *MsgRequestRedemption) XXX_Size() int

func (*MsgRequestRedemption) XXX_Unmarshal

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

type MsgRequestRedemptionResponse

type MsgRequestRedemptionResponse struct {
}

func (*MsgRequestRedemptionResponse) Descriptor

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

func (*MsgRequestRedemptionResponse) Marshal

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

func (*MsgRequestRedemptionResponse) MarshalTo

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

func (*MsgRequestRedemptionResponse) MarshalToSizedBuffer

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

func (*MsgRequestRedemptionResponse) ProtoMessage

func (*MsgRequestRedemptionResponse) ProtoMessage()

func (*MsgRequestRedemptionResponse) Reset

func (m *MsgRequestRedemptionResponse) Reset()

func (*MsgRequestRedemptionResponse) Size

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

func (*MsgRequestRedemptionResponse) String

func (*MsgRequestRedemptionResponse) Unmarshal

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

func (*MsgRequestRedemptionResponse) XXX_DiscardUnknown

func (m *MsgRequestRedemptionResponse) XXX_DiscardUnknown()

func (*MsgRequestRedemptionResponse) XXX_Marshal

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

func (*MsgRequestRedemptionResponse) XXX_Merge

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

func (*MsgRequestRedemptionResponse) XXX_Size

func (m *MsgRequestRedemptionResponse) XXX_Size() int

func (*MsgRequestRedemptionResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateInsuranceFund defines a method for creating an insurance fund
	CreateInsuranceFund(context.Context, *MsgCreateInsuranceFund) (*MsgCreateInsuranceFundResponse, error)
	// Underwrite defines a method for depositing tokens to underwrite an
	// insurance fund
	Underwrite(context.Context, *MsgUnderwrite) (*MsgUnderwriteResponse, error)
	// RequestRedemption defines a method for requesting a redemption of the
	// sender's insurance fund tokens
	RequestRedemption(context.Context, *MsgRequestRedemption) (*MsgRequestRedemptionResponse, error)
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUnderwrite

type MsgUnderwrite struct {
	// Address of the underwriter.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// MarketID of the insurance fund.
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Amount of quote_denom to underwrite the insurance fund.
	Deposit types1.Coin `protobuf:"bytes,3,opt,name=deposit,proto3" json:"deposit"`
}

MsgUnderwrite defines a message for depositing coins to underwrite an insurance fund

func (*MsgUnderwrite) Descriptor

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

func (*MsgUnderwrite) GetSignBytes

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

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgUnderwrite) GetSigners

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

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgUnderwrite) Marshal

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

func (*MsgUnderwrite) MarshalTo

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

func (*MsgUnderwrite) MarshalToSizedBuffer

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

func (*MsgUnderwrite) ProtoMessage

func (*MsgUnderwrite) ProtoMessage()

func (*MsgUnderwrite) Reset

func (m *MsgUnderwrite) Reset()

func (MsgUnderwrite) Route

func (msg MsgUnderwrite) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgUnderwrite) Size

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

func (*MsgUnderwrite) String

func (m *MsgUnderwrite) String() string

func (MsgUnderwrite) Type

func (msg MsgUnderwrite) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgUnderwrite) Unmarshal

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

func (MsgUnderwrite) ValidateBasic

func (msg MsgUnderwrite) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgUnderwrite) XXX_DiscardUnknown

func (m *MsgUnderwrite) XXX_DiscardUnknown()

func (*MsgUnderwrite) XXX_Marshal

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

func (*MsgUnderwrite) XXX_Merge

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

func (*MsgUnderwrite) XXX_Size

func (m *MsgUnderwrite) XXX_Size() int

func (*MsgUnderwrite) XXX_Unmarshal

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

type MsgUnderwriteResponse

type MsgUnderwriteResponse struct {
}

func (*MsgUnderwriteResponse) Descriptor

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

func (*MsgUnderwriteResponse) Marshal

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

func (*MsgUnderwriteResponse) MarshalTo

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

func (*MsgUnderwriteResponse) MarshalToSizedBuffer

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

func (*MsgUnderwriteResponse) ProtoMessage

func (*MsgUnderwriteResponse) ProtoMessage()

func (*MsgUnderwriteResponse) Reset

func (m *MsgUnderwriteResponse) Reset()

func (*MsgUnderwriteResponse) Size

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

func (*MsgUnderwriteResponse) String

func (m *MsgUnderwriteResponse) String() string

func (*MsgUnderwriteResponse) Unmarshal

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

func (*MsgUnderwriteResponse) XXX_DiscardUnknown

func (m *MsgUnderwriteResponse) XXX_DiscardUnknown()

func (*MsgUnderwriteResponse) XXX_Marshal

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

func (*MsgUnderwriteResponse) XXX_Merge

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

func (*MsgUnderwriteResponse) XXX_Size

func (m *MsgUnderwriteResponse) XXX_Size() int

func (*MsgUnderwriteResponse) XXX_Unmarshal

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

type MsgUpdateParams added in v1.47.1

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the insurance parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func (*MsgUpdateParams) Descriptor added in v1.47.1

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

func (*MsgUpdateParams) GetAuthority added in v1.47.1

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v1.47.1

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes added in v1.47.1

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

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgUpdateParams) GetSigners added in v1.47.1

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

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgUpdateParams) Marshal added in v1.47.1

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

func (*MsgUpdateParams) MarshalTo added in v1.47.1

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v1.47.1

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

func (*MsgUpdateParams) ProtoMessage added in v1.47.1

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v1.47.1

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route added in v1.47.1

func (msg MsgUpdateParams) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgUpdateParams) Size added in v1.47.1

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

func (*MsgUpdateParams) String added in v1.47.1

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type added in v1.47.1

func (msg MsgUpdateParams) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgUpdateParams) Unmarshal added in v1.47.1

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

func (MsgUpdateParams) ValidateBasic added in v1.47.1

func (msg MsgUpdateParams) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgUpdateParams) XXX_DiscardUnknown added in v1.47.1

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v1.47.1

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

func (*MsgUpdateParams) XXX_Merge added in v1.47.1

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

func (*MsgUpdateParams) XXX_Size added in v1.47.1

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v1.47.1

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

type MsgUpdateParamsResponse added in v1.47.1

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor added in v1.47.1

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

func (*MsgUpdateParamsResponse) Marshal added in v1.47.1

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

func (*MsgUpdateParamsResponse) MarshalTo added in v1.47.1

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v1.47.1

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v1.47.1

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v1.47.1

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v1.47.1

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

func (*MsgUpdateParamsResponse) String added in v1.47.1

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v1.47.1

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v1.47.1

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v1.47.1

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

func (*MsgUpdateParamsResponse) XXX_Size added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v1.47.1

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

type ParamSet

type ParamSet interface {
	ParamSetPairs() ParamSetPairs
}

ParamSet defines an interface for structs containing parameters for a module

type ParamSetPair

type ParamSetPair struct {
	Key         []byte
	Value       interface{}
	ValidatorFn ValueValidatorFn
}

ParamSetPair is used for associating paramsubspace key and field of param structs.

func NewParamSetPair

func NewParamSetPair(key []byte, value interface{}, vfn ValueValidatorFn) ParamSetPair

NewParamSetPair creates a new ParamSetPair instance.

type ParamSetPairs

type ParamSetPairs []ParamSetPair

ParamSetPairs Slice of KeyFieldPair

type Params

type Params struct {
	// default_redemption_notice_period_duration defines the default minimum
	// notice period duration that must pass after an underwriter sends a
	// redemption request before the underwriter can claim his tokens
	DefaultRedemptionNoticePeriodDuration time.Duration `` /* 229-byte string literal not displayed */
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(
	defaultRedemptionNoticePeriodDuration time.Duration,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetDefaultRedemptionNoticePeriodDuration

func (m *Params) GetDefaultRedemptionNoticePeriodDuration() time.Duration

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate performs basic validation on insurance parameters.

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 QueryClient

type QueryClient interface {
	// Retrieves insurance params
	InsuranceParams(ctx context.Context, in *QueryInsuranceParamsRequest, opts ...grpc.CallOption) (*QueryInsuranceParamsResponse, error)
	// Retrieves individual insurance fund information from market id
	InsuranceFund(ctx context.Context, in *QueryInsuranceFundRequest, opts ...grpc.CallOption) (*QueryInsuranceFundResponse, error)
	// Retrieves all insurance funds
	InsuranceFunds(ctx context.Context, in *QueryInsuranceFundsRequest, opts ...grpc.CallOption) (*QueryInsuranceFundsResponse, error)
	// Retrives the value of insurance fund share token at current price (not
	// pending redemption)
	EstimatedRedemptions(ctx context.Context, in *QueryEstimatedRedemptionsRequest, opts ...grpc.CallOption) (*QueryEstimatedRedemptionsResponse, error)
	// Retrieves pending redemptions' share token at current price
	PendingRedemptions(ctx context.Context, in *QueryPendingRedemptionsRequest, opts ...grpc.CallOption) (*QueryPendingRedemptionsResponse, error)
	// Retrieves the entire insurance module's state
	InsuranceModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, 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 QueryEstimatedRedemptionsRequest

type QueryEstimatedRedemptionsRequest struct {
	MarketId string `protobuf:"bytes,1,opt,name=marketId,proto3" json:"marketId,omitempty"`
	Address  string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

QueryEstimatedRedemptionsRequest is the request type for the Query/EstimatedRedemptions RPC method.

func (*QueryEstimatedRedemptionsRequest) Descriptor

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

func (*QueryEstimatedRedemptionsRequest) GetAddress

func (m *QueryEstimatedRedemptionsRequest) GetAddress() string

func (*QueryEstimatedRedemptionsRequest) GetMarketId

func (m *QueryEstimatedRedemptionsRequest) GetMarketId() string

func (*QueryEstimatedRedemptionsRequest) Marshal

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

func (*QueryEstimatedRedemptionsRequest) MarshalTo

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

func (*QueryEstimatedRedemptionsRequest) MarshalToSizedBuffer

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

func (*QueryEstimatedRedemptionsRequest) ProtoMessage

func (*QueryEstimatedRedemptionsRequest) ProtoMessage()

func (*QueryEstimatedRedemptionsRequest) Reset

func (*QueryEstimatedRedemptionsRequest) Size

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

func (*QueryEstimatedRedemptionsRequest) String

func (*QueryEstimatedRedemptionsRequest) Unmarshal

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

func (*QueryEstimatedRedemptionsRequest) XXX_DiscardUnknown

func (m *QueryEstimatedRedemptionsRequest) XXX_DiscardUnknown()

func (*QueryEstimatedRedemptionsRequest) XXX_Marshal

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

func (*QueryEstimatedRedemptionsRequest) XXX_Merge

func (*QueryEstimatedRedemptionsRequest) XXX_Size

func (m *QueryEstimatedRedemptionsRequest) XXX_Size() int

func (*QueryEstimatedRedemptionsRequest) XXX_Unmarshal

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

type QueryEstimatedRedemptionsResponse

type QueryEstimatedRedemptionsResponse struct {
	Amount []types.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount"`
}

QueryEstimatedRedemptionsResponse is the response type for the Query/EstimatedRedemptions RPC method.

func (*QueryEstimatedRedemptionsResponse) Descriptor

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

func (*QueryEstimatedRedemptionsResponse) GetAmount

func (m *QueryEstimatedRedemptionsResponse) GetAmount() []types.Coin

func (*QueryEstimatedRedemptionsResponse) Marshal

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

func (*QueryEstimatedRedemptionsResponse) MarshalTo

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

func (*QueryEstimatedRedemptionsResponse) MarshalToSizedBuffer

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

func (*QueryEstimatedRedemptionsResponse) ProtoMessage

func (*QueryEstimatedRedemptionsResponse) ProtoMessage()

func (*QueryEstimatedRedemptionsResponse) Reset

func (*QueryEstimatedRedemptionsResponse) Size

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

func (*QueryEstimatedRedemptionsResponse) String

func (*QueryEstimatedRedemptionsResponse) Unmarshal

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

func (*QueryEstimatedRedemptionsResponse) XXX_DiscardUnknown

func (m *QueryEstimatedRedemptionsResponse) XXX_DiscardUnknown()

func (*QueryEstimatedRedemptionsResponse) XXX_Marshal

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

func (*QueryEstimatedRedemptionsResponse) XXX_Merge

func (*QueryEstimatedRedemptionsResponse) XXX_Size

func (m *QueryEstimatedRedemptionsResponse) XXX_Size() int

func (*QueryEstimatedRedemptionsResponse) XXX_Unmarshal

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

type QueryInsuranceFundRequest added in v1.23.4

type QueryInsuranceFundRequest struct {
	// Market ID for the market
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}

QueryInsuranceFundRequest is the request type for the Query/InsuranceFunds RPC method.

func (*QueryInsuranceFundRequest) Descriptor added in v1.23.4

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

func (*QueryInsuranceFundRequest) GetMarketId added in v1.23.4

func (m *QueryInsuranceFundRequest) GetMarketId() string

func (*QueryInsuranceFundRequest) Marshal added in v1.23.4

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

func (*QueryInsuranceFundRequest) MarshalTo added in v1.23.4

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

func (*QueryInsuranceFundRequest) MarshalToSizedBuffer added in v1.23.4

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

func (*QueryInsuranceFundRequest) ProtoMessage added in v1.23.4

func (*QueryInsuranceFundRequest) ProtoMessage()

func (*QueryInsuranceFundRequest) Reset added in v1.23.4

func (m *QueryInsuranceFundRequest) Reset()

func (*QueryInsuranceFundRequest) Size added in v1.23.4

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

func (*QueryInsuranceFundRequest) String added in v1.23.4

func (m *QueryInsuranceFundRequest) String() string

func (*QueryInsuranceFundRequest) Unmarshal added in v1.23.4

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

func (*QueryInsuranceFundRequest) XXX_DiscardUnknown added in v1.23.4

func (m *QueryInsuranceFundRequest) XXX_DiscardUnknown()

func (*QueryInsuranceFundRequest) XXX_Marshal added in v1.23.4

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

func (*QueryInsuranceFundRequest) XXX_Merge added in v1.23.4

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

func (*QueryInsuranceFundRequest) XXX_Size added in v1.23.4

func (m *QueryInsuranceFundRequest) XXX_Size() int

func (*QueryInsuranceFundRequest) XXX_Unmarshal added in v1.23.4

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

type QueryInsuranceFundResponse added in v1.23.4

type QueryInsuranceFundResponse struct {
	Fund *InsuranceFund `protobuf:"bytes,1,opt,name=fund,proto3" json:"fund,omitempty"`
}

QueryInsuranceFundResponse is the response type for the Query/InsuranceFund RPC method.

func (*QueryInsuranceFundResponse) Descriptor added in v1.23.4

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

func (*QueryInsuranceFundResponse) GetFund added in v1.23.4

func (*QueryInsuranceFundResponse) Marshal added in v1.23.4

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

func (*QueryInsuranceFundResponse) MarshalTo added in v1.23.4

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

func (*QueryInsuranceFundResponse) MarshalToSizedBuffer added in v1.23.4

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

func (*QueryInsuranceFundResponse) ProtoMessage added in v1.23.4

func (*QueryInsuranceFundResponse) ProtoMessage()

func (*QueryInsuranceFundResponse) Reset added in v1.23.4

func (m *QueryInsuranceFundResponse) Reset()

func (*QueryInsuranceFundResponse) Size added in v1.23.4

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

func (*QueryInsuranceFundResponse) String added in v1.23.4

func (m *QueryInsuranceFundResponse) String() string

func (*QueryInsuranceFundResponse) Unmarshal added in v1.23.4

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

func (*QueryInsuranceFundResponse) XXX_DiscardUnknown added in v1.23.4

func (m *QueryInsuranceFundResponse) XXX_DiscardUnknown()

func (*QueryInsuranceFundResponse) XXX_Marshal added in v1.23.4

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

func (*QueryInsuranceFundResponse) XXX_Merge added in v1.23.4

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

func (*QueryInsuranceFundResponse) XXX_Size added in v1.23.4

func (m *QueryInsuranceFundResponse) XXX_Size() int

func (*QueryInsuranceFundResponse) XXX_Unmarshal added in v1.23.4

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

type QueryInsuranceFundsRequest added in v1.23.4

type QueryInsuranceFundsRequest struct {
}

QueryInsuranceFundsRequest is the request type for the Query/InsuranceFunds RPC method.

func (*QueryInsuranceFundsRequest) Descriptor added in v1.23.4

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

func (*QueryInsuranceFundsRequest) Marshal added in v1.23.4

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

func (*QueryInsuranceFundsRequest) MarshalTo added in v1.23.4

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

func (*QueryInsuranceFundsRequest) MarshalToSizedBuffer added in v1.23.4

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

func (*QueryInsuranceFundsRequest) ProtoMessage added in v1.23.4

func (*QueryInsuranceFundsRequest) ProtoMessage()

func (*QueryInsuranceFundsRequest) Reset added in v1.23.4

func (m *QueryInsuranceFundsRequest) Reset()

func (*QueryInsuranceFundsRequest) Size added in v1.23.4

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

func (*QueryInsuranceFundsRequest) String added in v1.23.4

func (m *QueryInsuranceFundsRequest) String() string

func (*QueryInsuranceFundsRequest) Unmarshal added in v1.23.4

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

func (*QueryInsuranceFundsRequest) XXX_DiscardUnknown added in v1.23.4

func (m *QueryInsuranceFundsRequest) XXX_DiscardUnknown()

func (*QueryInsuranceFundsRequest) XXX_Marshal added in v1.23.4

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

func (*QueryInsuranceFundsRequest) XXX_Merge added in v1.23.4

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

func (*QueryInsuranceFundsRequest) XXX_Size added in v1.23.4

func (m *QueryInsuranceFundsRequest) XXX_Size() int

func (*QueryInsuranceFundsRequest) XXX_Unmarshal added in v1.23.4

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

type QueryInsuranceFundsResponse added in v1.23.4

type QueryInsuranceFundsResponse struct {
	Funds []InsuranceFund `protobuf:"bytes,1,rep,name=funds,proto3" json:"funds"`
}

QueryInsuranceFundsResponse is the response type for the Query/InsuranceFunds RPC method.

func (*QueryInsuranceFundsResponse) Descriptor added in v1.23.4

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

func (*QueryInsuranceFundsResponse) GetFunds added in v1.23.4

func (*QueryInsuranceFundsResponse) Marshal added in v1.23.4

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

func (*QueryInsuranceFundsResponse) MarshalTo added in v1.23.4

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

func (*QueryInsuranceFundsResponse) MarshalToSizedBuffer added in v1.23.4

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

func (*QueryInsuranceFundsResponse) ProtoMessage added in v1.23.4

func (*QueryInsuranceFundsResponse) ProtoMessage()

func (*QueryInsuranceFundsResponse) Reset added in v1.23.4

func (m *QueryInsuranceFundsResponse) Reset()

func (*QueryInsuranceFundsResponse) Size added in v1.23.4

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

func (*QueryInsuranceFundsResponse) String added in v1.23.4

func (m *QueryInsuranceFundsResponse) String() string

func (*QueryInsuranceFundsResponse) Unmarshal added in v1.23.4

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

func (*QueryInsuranceFundsResponse) XXX_DiscardUnknown added in v1.23.4

func (m *QueryInsuranceFundsResponse) XXX_DiscardUnknown()

func (*QueryInsuranceFundsResponse) XXX_Marshal added in v1.23.4

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

func (*QueryInsuranceFundsResponse) XXX_Merge added in v1.23.4

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

func (*QueryInsuranceFundsResponse) XXX_Size added in v1.23.4

func (m *QueryInsuranceFundsResponse) XXX_Size() int

func (*QueryInsuranceFundsResponse) XXX_Unmarshal added in v1.23.4

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

type QueryInsuranceParamsRequest

type QueryInsuranceParamsRequest struct {
}

QueryInsuranceParamsRequest is the request type for the Query/InsuranceParams RPC method.

func (*QueryInsuranceParamsRequest) Descriptor

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

func (*QueryInsuranceParamsRequest) Marshal

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

func (*QueryInsuranceParamsRequest) MarshalTo

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

func (*QueryInsuranceParamsRequest) MarshalToSizedBuffer

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

func (*QueryInsuranceParamsRequest) ProtoMessage

func (*QueryInsuranceParamsRequest) ProtoMessage()

func (*QueryInsuranceParamsRequest) Reset

func (m *QueryInsuranceParamsRequest) Reset()

func (*QueryInsuranceParamsRequest) Size

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

func (*QueryInsuranceParamsRequest) String

func (m *QueryInsuranceParamsRequest) String() string

func (*QueryInsuranceParamsRequest) Unmarshal

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

func (*QueryInsuranceParamsRequest) XXX_DiscardUnknown

func (m *QueryInsuranceParamsRequest) XXX_DiscardUnknown()

func (*QueryInsuranceParamsRequest) XXX_Marshal

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

func (*QueryInsuranceParamsRequest) XXX_Merge

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

func (*QueryInsuranceParamsRequest) XXX_Size

func (m *QueryInsuranceParamsRequest) XXX_Size() int

func (*QueryInsuranceParamsRequest) XXX_Unmarshal

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

type QueryInsuranceParamsResponse

type QueryInsuranceParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryInsuranceParamsRequest is the response type for the Query/InsuranceParams RPC method.

func (*QueryInsuranceParamsResponse) Descriptor

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

func (*QueryInsuranceParamsResponse) GetParams

func (m *QueryInsuranceParamsResponse) GetParams() Params

func (*QueryInsuranceParamsResponse) Marshal

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

func (*QueryInsuranceParamsResponse) MarshalTo

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

func (*QueryInsuranceParamsResponse) MarshalToSizedBuffer

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

func (*QueryInsuranceParamsResponse) ProtoMessage

func (*QueryInsuranceParamsResponse) ProtoMessage()

func (*QueryInsuranceParamsResponse) Reset

func (m *QueryInsuranceParamsResponse) Reset()

func (*QueryInsuranceParamsResponse) Size

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

func (*QueryInsuranceParamsResponse) String

func (*QueryInsuranceParamsResponse) Unmarshal

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

func (*QueryInsuranceParamsResponse) XXX_DiscardUnknown

func (m *QueryInsuranceParamsResponse) XXX_DiscardUnknown()

func (*QueryInsuranceParamsResponse) XXX_Marshal

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

func (*QueryInsuranceParamsResponse) XXX_Merge

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

func (*QueryInsuranceParamsResponse) XXX_Size

func (m *QueryInsuranceParamsResponse) XXX_Size() int

func (*QueryInsuranceParamsResponse) XXX_Unmarshal

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

type QueryModuleStateRequest added in v1.23.4

type QueryModuleStateRequest struct {
}

QueryModuleStateRequest is the request type for the Query/InsuranceModuleState RPC method.

func (*QueryModuleStateRequest) Descriptor added in v1.23.4

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

func (*QueryModuleStateRequest) Marshal added in v1.23.4

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

func (*QueryModuleStateRequest) MarshalTo added in v1.23.4

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

func (*QueryModuleStateRequest) MarshalToSizedBuffer added in v1.23.4

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

func (*QueryModuleStateRequest) ProtoMessage added in v1.23.4

func (*QueryModuleStateRequest) ProtoMessage()

func (*QueryModuleStateRequest) Reset added in v1.23.4

func (m *QueryModuleStateRequest) Reset()

func (*QueryModuleStateRequest) Size added in v1.23.4

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

func (*QueryModuleStateRequest) String added in v1.23.4

func (m *QueryModuleStateRequest) String() string

func (*QueryModuleStateRequest) Unmarshal added in v1.23.4

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

func (*QueryModuleStateRequest) XXX_DiscardUnknown added in v1.23.4

func (m *QueryModuleStateRequest) XXX_DiscardUnknown()

func (*QueryModuleStateRequest) XXX_Marshal added in v1.23.4

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

func (*QueryModuleStateRequest) XXX_Merge added in v1.23.4

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

func (*QueryModuleStateRequest) XXX_Size added in v1.23.4

func (m *QueryModuleStateRequest) XXX_Size() int

func (*QueryModuleStateRequest) XXX_Unmarshal added in v1.23.4

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

type QueryModuleStateResponse added in v1.23.4

type QueryModuleStateResponse struct {
	State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
}

QueryModuleStateResponse is the response type for the Query/InsuranceModuleState RPC method.

func (*QueryModuleStateResponse) Descriptor added in v1.23.4

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

func (*QueryModuleStateResponse) GetState added in v1.23.4

func (m *QueryModuleStateResponse) GetState() *GenesisState

func (*QueryModuleStateResponse) Marshal added in v1.23.4

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

func (*QueryModuleStateResponse) MarshalTo added in v1.23.4

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

func (*QueryModuleStateResponse) MarshalToSizedBuffer added in v1.23.4

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

func (*QueryModuleStateResponse) ProtoMessage added in v1.23.4

func (*QueryModuleStateResponse) ProtoMessage()

func (*QueryModuleStateResponse) Reset added in v1.23.4

func (m *QueryModuleStateResponse) Reset()

func (*QueryModuleStateResponse) Size added in v1.23.4

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

func (*QueryModuleStateResponse) String added in v1.23.4

func (m *QueryModuleStateResponse) String() string

func (*QueryModuleStateResponse) Unmarshal added in v1.23.4

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

func (*QueryModuleStateResponse) XXX_DiscardUnknown added in v1.23.4

func (m *QueryModuleStateResponse) XXX_DiscardUnknown()

func (*QueryModuleStateResponse) XXX_Marshal added in v1.23.4

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

func (*QueryModuleStateResponse) XXX_Merge added in v1.23.4

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

func (*QueryModuleStateResponse) XXX_Size added in v1.23.4

func (m *QueryModuleStateResponse) XXX_Size() int

func (*QueryModuleStateResponse) XXX_Unmarshal added in v1.23.4

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

type QueryPendingRedemptionsRequest

type QueryPendingRedemptionsRequest struct {
	MarketId string `protobuf:"bytes,1,opt,name=marketId,proto3" json:"marketId,omitempty"`
	Address  string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

QueryPendingRedemptionsRequest is the request type for the Query/PendingRedemptions RPC method.

func (*QueryPendingRedemptionsRequest) Descriptor

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

func (*QueryPendingRedemptionsRequest) GetAddress

func (m *QueryPendingRedemptionsRequest) GetAddress() string

func (*QueryPendingRedemptionsRequest) GetMarketId

func (m *QueryPendingRedemptionsRequest) GetMarketId() string

func (*QueryPendingRedemptionsRequest) Marshal

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

func (*QueryPendingRedemptionsRequest) MarshalTo

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

func (*QueryPendingRedemptionsRequest) MarshalToSizedBuffer

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

func (*QueryPendingRedemptionsRequest) ProtoMessage

func (*QueryPendingRedemptionsRequest) ProtoMessage()

func (*QueryPendingRedemptionsRequest) Reset

func (m *QueryPendingRedemptionsRequest) Reset()

func (*QueryPendingRedemptionsRequest) Size

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

func (*QueryPendingRedemptionsRequest) String

func (*QueryPendingRedemptionsRequest) Unmarshal

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

func (*QueryPendingRedemptionsRequest) XXX_DiscardUnknown

func (m *QueryPendingRedemptionsRequest) XXX_DiscardUnknown()

func (*QueryPendingRedemptionsRequest) XXX_Marshal

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

func (*QueryPendingRedemptionsRequest) XXX_Merge

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

func (*QueryPendingRedemptionsRequest) XXX_Size

func (m *QueryPendingRedemptionsRequest) XXX_Size() int

func (*QueryPendingRedemptionsRequest) XXX_Unmarshal

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

type QueryPendingRedemptionsResponse

type QueryPendingRedemptionsResponse struct {
	Amount []types.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount"`
}

QueryPendingRedemptionsResponse is the response type for the Query/PendingRedemptions RPC method.

func (*QueryPendingRedemptionsResponse) Descriptor

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

func (*QueryPendingRedemptionsResponse) GetAmount

func (m *QueryPendingRedemptionsResponse) GetAmount() []types.Coin

func (*QueryPendingRedemptionsResponse) Marshal

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

func (*QueryPendingRedemptionsResponse) MarshalTo

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

func (*QueryPendingRedemptionsResponse) MarshalToSizedBuffer

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

func (*QueryPendingRedemptionsResponse) ProtoMessage

func (*QueryPendingRedemptionsResponse) ProtoMessage()

func (*QueryPendingRedemptionsResponse) Reset

func (*QueryPendingRedemptionsResponse) Size

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

func (*QueryPendingRedemptionsResponse) String

func (*QueryPendingRedemptionsResponse) Unmarshal

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

func (*QueryPendingRedemptionsResponse) XXX_DiscardUnknown

func (m *QueryPendingRedemptionsResponse) XXX_DiscardUnknown()

func (*QueryPendingRedemptionsResponse) XXX_Marshal

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

func (*QueryPendingRedemptionsResponse) XXX_Merge

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

func (*QueryPendingRedemptionsResponse) XXX_Size

func (m *QueryPendingRedemptionsResponse) XXX_Size() int

func (*QueryPendingRedemptionsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Retrieves insurance params
	InsuranceParams(context.Context, *QueryInsuranceParamsRequest) (*QueryInsuranceParamsResponse, error)
	// Retrieves individual insurance fund information from market id
	InsuranceFund(context.Context, *QueryInsuranceFundRequest) (*QueryInsuranceFundResponse, error)
	// Retrieves all insurance funds
	InsuranceFunds(context.Context, *QueryInsuranceFundsRequest) (*QueryInsuranceFundsResponse, error)
	// Retrives the value of insurance fund share token at current price (not
	// pending redemption)
	EstimatedRedemptions(context.Context, *QueryEstimatedRedemptionsRequest) (*QueryEstimatedRedemptionsResponse, error)
	// Retrieves pending redemptions' share token at current price
	PendingRedemptions(context.Context, *QueryPendingRedemptionsRequest) (*QueryPendingRedemptionsResponse, error)
	// Retrieves the entire insurance module's state
	InsuranceModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error)
}

QueryServer is the server API for Query service.

type RedemptionSchedule

type RedemptionSchedule struct {
	// id of redemption schedule
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// marketId of insurance fund for the redemption
	MarketId string `protobuf:"bytes,2,opt,name=marketId,proto3" json:"marketId,omitempty"`
	// address of the redeemer
	Redeemer string `protobuf:"bytes,3,opt,name=redeemer,proto3" json:"redeemer,omitempty"`
	// the time after which the redemption can be claimed
	ClaimableRedemptionTime time.Time `` /* 163-byte string literal not displayed */
	// the insurance_pool_token amount to redeem
	RedemptionAmount types1.Coin `protobuf:"bytes,5,opt,name=redemption_amount,json=redemptionAmount,proto3" json:"redemption_amount"`
}

func (*RedemptionSchedule) Descriptor

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

func (*RedemptionSchedule) GetClaimableRedemptionTime

func (m *RedemptionSchedule) GetClaimableRedemptionTime() time.Time

func (*RedemptionSchedule) GetId

func (m *RedemptionSchedule) GetId() uint64

func (*RedemptionSchedule) GetMarketId

func (m *RedemptionSchedule) GetMarketId() string

func (*RedemptionSchedule) GetRedeemer

func (m *RedemptionSchedule) GetRedeemer() string

func (*RedemptionSchedule) GetRedemptionAmount

func (m *RedemptionSchedule) GetRedemptionAmount() types1.Coin

func (RedemptionSchedule) GetRedemptionScheduleKey

func (sh RedemptionSchedule) GetRedemptionScheduleKey() []byte

GetRedemptionScheduleKey provides the key to store a single pending redemption

func (*RedemptionSchedule) Marshal

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

func (*RedemptionSchedule) MarshalTo

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

func (*RedemptionSchedule) MarshalToSizedBuffer

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

func (*RedemptionSchedule) ProtoMessage

func (*RedemptionSchedule) ProtoMessage()

func (*RedemptionSchedule) Reset

func (m *RedemptionSchedule) Reset()

func (*RedemptionSchedule) Size

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

func (*RedemptionSchedule) String

func (m *RedemptionSchedule) String() string

func (*RedemptionSchedule) Unmarshal

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

func (*RedemptionSchedule) XXX_DiscardUnknown

func (m *RedemptionSchedule) XXX_DiscardUnknown()

func (*RedemptionSchedule) XXX_Marshal

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

func (*RedemptionSchedule) XXX_Merge

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

func (*RedemptionSchedule) XXX_Size

func (m *RedemptionSchedule) XXX_Size() int

func (*RedemptionSchedule) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateInsuranceFund

func (*UnimplementedMsgServer) RequestRedemption

func (*UnimplementedMsgServer) Underwrite

func (*UnimplementedMsgServer) UpdateParams added in v1.47.1

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) InsuranceFund added in v1.23.4

func (*UnimplementedQueryServer) InsuranceFunds added in v1.23.4

func (*UnimplementedQueryServer) InsuranceModuleState added in v1.23.4

func (*UnimplementedQueryServer) InsuranceParams

func (*UnimplementedQueryServer) PendingRedemptions

type ValueValidatorFn

type ValueValidatorFn func(value interface{}) error

Jump to

Keyboard shortcuts

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