Documentation ¶
Index ¶
- Constants
- Variables
- func NewUnbondingDelegation(delAddr, valAddr string, entry stakingTypes.UnbondingDelegationEntry) stakingTypes.UnbondingDelegation
- type LastUpdateTime
- func (*LastUpdateTime) Descriptor() ([]byte, []int)
- func (m *LastUpdateTime) Marshal() (dAtA []byte, err error)
- func (m *LastUpdateTime) MarshalTo(dAtA []byte) (int, error)
- func (m *LastUpdateTime) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LastUpdateTime) ProtoMessage()
- func (m *LastUpdateTime) Reset()
- func (m *LastUpdateTime) Size() (n int)
- func (m *LastUpdateTime) String() string
- func (m *LastUpdateTime) Unmarshal(dAtA []byte) error
- func (m *LastUpdateTime) XXX_DiscardUnknown()
- func (m *LastUpdateTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LastUpdateTime) XXX_Merge(src proto.Message)
- func (m *LastUpdateTime) XXX_Size() int
- func (m *LastUpdateTime) XXX_Unmarshal(b []byte) error
- type LockedCollateral
- type MixedCoins
- func (mc MixedCoins) Add(a MixedCoins) MixedCoins
- func (*MixedCoins) Descriptor() ([]byte, []int)
- func (m *MixedCoins) Marshal() (dAtA []byte, err error)
- func (m *MixedCoins) MarshalTo(dAtA []byte) (int, error)
- func (m *MixedCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MixedCoins) ProtoMessage()
- func (m *MixedCoins) Reset()
- func (m *MixedCoins) Size() (n int)
- func (m *MixedCoins) String() string
- func (m *MixedCoins) Unmarshal(dAtA []byte) error
- func (m *MixedCoins) XXX_DiscardUnknown()
- func (m *MixedCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MixedCoins) XXX_Merge(src proto.Message)
- func (m *MixedCoins) XXX_Size() int
- func (m *MixedCoins) XXX_Unmarshal(b []byte) error
- type MixedDecCoins
- func (mdc MixedDecCoins) Add(a MixedDecCoins) MixedDecCoins
- func (*MixedDecCoins) Descriptor() ([]byte, []int)
- func (m *MixedDecCoins) Marshal() (dAtA []byte, err error)
- func (m *MixedDecCoins) MarshalTo(dAtA []byte) (int, error)
- func (m *MixedDecCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (mdc MixedDecCoins) MulDec(d sdk.Dec) MixedDecCoins
- func (*MixedDecCoins) ProtoMessage()
- func (mdc MixedDecCoins) QuoDec(d sdk.Dec) MixedDecCoins
- func (m *MixedDecCoins) Reset()
- func (m *MixedDecCoins) Size() (n int)
- func (m *MixedDecCoins) String() string
- func (mdc MixedDecCoins) Sub(a MixedDecCoins) MixedDecCoins
- func (m *MixedDecCoins) Unmarshal(dAtA []byte) error
- func (m *MixedDecCoins) XXX_DiscardUnknown()
- func (m *MixedDecCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MixedDecCoins) XXX_Merge(src proto.Message)
- func (m *MixedDecCoins) XXX_Size() int
- func (m *MixedDecCoins) XXX_Unmarshal(b []byte) error
- type Pool
- func (*Pool) Descriptor() ([]byte, []int)
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type PoolPurchaser
- func (*PoolPurchaser) Descriptor() ([]byte, []int)
- func (m *PoolPurchaser) Marshal() (dAtA []byte, err error)
- func (m *PoolPurchaser) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolPurchaser) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolPurchaser) ProtoMessage()
- func (m *PoolPurchaser) Reset()
- func (m *PoolPurchaser) Size() (n int)
- func (m *PoolPurchaser) String() string
- func (m *PoolPurchaser) Unmarshal(dAtA []byte) error
- func (m *PoolPurchaser) XXX_DiscardUnknown()
- func (m *PoolPurchaser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolPurchaser) XXX_Merge(src proto.Message)
- func (m *PoolPurchaser) XXX_Size() int
- func (m *PoolPurchaser) XXX_Unmarshal(b []byte) error
- type PoolPurchaserPairs
- func (*PoolPurchaserPairs) Descriptor() ([]byte, []int)
- func (m *PoolPurchaserPairs) GetPairs() []PoolPurchaser
- func (m *PoolPurchaserPairs) Marshal() (dAtA []byte, err error)
- func (m *PoolPurchaserPairs) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolPurchaserPairs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolPurchaserPairs) ProtoMessage()
- func (m *PoolPurchaserPairs) Reset()
- func (m *PoolPurchaserPairs) Size() (n int)
- func (m *PoolPurchaserPairs) String() string
- func (m *PoolPurchaserPairs) Unmarshal(dAtA []byte) error
- func (m *PoolPurchaserPairs) XXX_DiscardUnknown()
- func (m *PoolPurchaserPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolPurchaserPairs) XXX_Merge(src proto.Message)
- func (m *PoolPurchaserPairs) XXX_Size() int
- func (m *PoolPurchaserPairs) XXX_Unmarshal(b []byte) error
- type Provider
- func (*Provider) Descriptor() ([]byte, []int)
- func (m *Provider) Marshal() (dAtA []byte, err error)
- func (m *Provider) MarshalTo(dAtA []byte) (int, error)
- func (m *Provider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Provider) ProtoMessage()
- func (m *Provider) Reset()
- func (m *Provider) Size() (n int)
- func (m *Provider) String() string
- func (m *Provider) Unmarshal(dAtA []byte) error
- func (m *Provider) XXX_DiscardUnknown()
- func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Provider) XXX_Merge(src proto.Message)
- func (m *Provider) XXX_Size() int
- func (m *Provider) XXX_Unmarshal(b []byte) error
- type Purchase
- func (*Purchase) Descriptor() ([]byte, []int)
- func (m *Purchase) Marshal() (dAtA []byte, err error)
- func (m *Purchase) MarshalTo(dAtA []byte) (int, error)
- func (m *Purchase) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Purchase) ProtoMessage()
- func (m *Purchase) Reset()
- func (m *Purchase) Size() (n int)
- func (m *Purchase) String() string
- func (m *Purchase) Unmarshal(dAtA []byte) error
- func (m *Purchase) XXX_DiscardUnknown()
- func (m *Purchase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Purchase) XXX_Merge(src proto.Message)
- func (m *Purchase) XXX_Size() int
- func (m *Purchase) XXX_Unmarshal(b []byte) error
- type PurchaseList
- func (*PurchaseList) Descriptor() ([]byte, []int)
- func (m *PurchaseList) Marshal() (dAtA []byte, err error)
- func (m *PurchaseList) MarshalTo(dAtA []byte) (int, error)
- func (m *PurchaseList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PurchaseList) ProtoMessage()
- func (m *PurchaseList) Reset()
- func (m *PurchaseList) Size() (n int)
- func (m *PurchaseList) String() string
- func (m *PurchaseList) Unmarshal(dAtA []byte) error
- func (m *PurchaseList) XXX_DiscardUnknown()
- func (m *PurchaseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PurchaseList) XXX_Merge(src proto.Message)
- func (m *PurchaseList) XXX_Size() int
- func (m *PurchaseList) XXX_Unmarshal(b []byte) error
- type ShieldClaimProposal
- func (*ShieldClaimProposal) Descriptor() ([]byte, []int)
- func (scp ShieldClaimProposal) GetDescription() string
- func (scp ShieldClaimProposal) GetTitle() string
- func (m *ShieldClaimProposal) Marshal() (dAtA []byte, err error)
- func (m *ShieldClaimProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ShieldClaimProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (scp ShieldClaimProposal) ProposalRoute() string
- func (scp ShieldClaimProposal) ProposalType() string
- func (*ShieldClaimProposal) ProtoMessage()
- func (m *ShieldClaimProposal) Reset()
- func (m *ShieldClaimProposal) Size() (n int)
- func (scp ShieldClaimProposal) String() string
- func (m *ShieldClaimProposal) Unmarshal(dAtA []byte) error
- func (scp ShieldClaimProposal) ValidateBasic() error
- func (m *ShieldClaimProposal) XXX_DiscardUnknown()
- func (m *ShieldClaimProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShieldClaimProposal) XXX_Merge(src proto.Message)
- func (m *ShieldClaimProposal) XXX_Size() int
- func (m *ShieldClaimProposal) XXX_Unmarshal(b []byte) error
- type ShieldStaking
- func (*ShieldStaking) Descriptor() ([]byte, []int)
- func (m *ShieldStaking) Marshal() (dAtA []byte, err error)
- func (m *ShieldStaking) MarshalTo(dAtA []byte) (int, error)
- func (m *ShieldStaking) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShieldStaking) ProtoMessage()
- func (m *ShieldStaking) Reset()
- func (m *ShieldStaking) Size() (n int)
- func (m *ShieldStaking) String() string
- func (m *ShieldStaking) Unmarshal(dAtA []byte) error
- func (m *ShieldStaking) XXX_DiscardUnknown()
- func (m *ShieldStaking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShieldStaking) XXX_Merge(src proto.Message)
- func (m *ShieldStaking) XXX_Size() int
- func (m *ShieldStaking) XXX_Unmarshal(b []byte) error
- type Withdraw
- func (*Withdraw) Descriptor() ([]byte, []int)
- func (m *Withdraw) Marshal() (dAtA []byte, err error)
- func (m *Withdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *Withdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Withdraw) ProtoMessage()
- func (m *Withdraw) Reset()
- func (m *Withdraw) Size() (n int)
- func (m *Withdraw) String() string
- func (m *Withdraw) Unmarshal(dAtA []byte) error
- func (m *Withdraw) XXX_DiscardUnknown()
- func (m *Withdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Withdraw) XXX_Merge(src proto.Message)
- func (m *Withdraw) XXX_Size() int
- func (m *Withdraw) XXX_Unmarshal(b []byte) error
- type Withdraws
- func (*Withdraws) Descriptor() ([]byte, []int)
- func (m *Withdraws) GetWithdraws() []Withdraw
- func (m *Withdraws) Marshal() (dAtA []byte, err error)
- func (m *Withdraws) MarshalTo(dAtA []byte) (int, error)
- func (m *Withdraws) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Withdraws) ProtoMessage()
- func (m *Withdraws) Reset()
- func (m *Withdraws) Size() (n int)
- func (m *Withdraws) String() string
- func (m *Withdraws) Unmarshal(dAtA []byte) error
- func (m *Withdraws) XXX_DiscardUnknown()
- func (m *Withdraws) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Withdraws) XXX_Merge(src proto.Message)
- func (m *Withdraws) XXX_Size() int
- func (m *Withdraws) XXX_Unmarshal(b []byte) error
Constants ¶
const (
// ProposalTypeShieldClaim defines the type for a ShieldClaimProposal.
ProposalTypeShieldClaim = "ShieldClaim"
)
Variables ¶
Functions ¶
func NewUnbondingDelegation ¶
func NewUnbondingDelegation(delAddr, valAddr string, entry stakingTypes.UnbondingDelegationEntry) stakingTypes.UnbondingDelegation
NewUnbondingDelegation returns a new UnbondingDelegation instance.
Types ¶
type LastUpdateTime ¶
type LastUpdateTime struct {
Time *time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time,omitempty" yaml:"time"`
}
func (*LastUpdateTime) Descriptor ¶
func (*LastUpdateTime) Descriptor() ([]byte, []int)
func (*LastUpdateTime) Marshal ¶
func (m *LastUpdateTime) Marshal() (dAtA []byte, err error)
func (*LastUpdateTime) MarshalToSizedBuffer ¶
func (m *LastUpdateTime) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LastUpdateTime) ProtoMessage ¶
func (*LastUpdateTime) ProtoMessage()
func (*LastUpdateTime) Reset ¶
func (m *LastUpdateTime) Reset()
func (*LastUpdateTime) Size ¶
func (m *LastUpdateTime) Size() (n int)
func (*LastUpdateTime) String ¶
func (m *LastUpdateTime) String() string
func (*LastUpdateTime) Unmarshal ¶
func (m *LastUpdateTime) Unmarshal(dAtA []byte) error
func (*LastUpdateTime) XXX_DiscardUnknown ¶
func (m *LastUpdateTime) XXX_DiscardUnknown()
func (*LastUpdateTime) XXX_Marshal ¶
func (m *LastUpdateTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LastUpdateTime) XXX_Merge ¶
func (m *LastUpdateTime) XXX_Merge(src proto.Message)
func (*LastUpdateTime) XXX_Size ¶
func (m *LastUpdateTime) XXX_Size() int
func (*LastUpdateTime) XXX_Unmarshal ¶
func (m *LastUpdateTime) XXX_Unmarshal(b []byte) error
type LockedCollateral ¶
type LockedCollateral struct { ProposalID uint64 `json:"proposal_id" yaml:"proposal_id"` Amount sdk.Int `json:"locked_coins" yaml:"locked_coins"` }
LockedCollateral defines the data type of locked collateral for a claim proposal.
func NewLockedCollateral ¶
func NewLockedCollateral(proposalID uint64, lockedAmt sdk.Int) LockedCollateral
NewLockedCollateral returns a new LockedCollateral instance.
type MixedCoins ¶
type MixedCoins struct { Native github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=native,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"native"` Foreign github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=foreign,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"foreign"` }
MixedCoins defines the struct for mixed coins with native and foreign coins.
func (MixedCoins) Add ¶
func (mc MixedCoins) Add(a MixedCoins) MixedCoins
Add implements the add method of MixedCoins.
func (*MixedCoins) Descriptor ¶
func (*MixedCoins) Descriptor() ([]byte, []int)
func (*MixedCoins) Marshal ¶
func (m *MixedCoins) Marshal() (dAtA []byte, err error)
func (*MixedCoins) MarshalToSizedBuffer ¶
func (m *MixedCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MixedCoins) ProtoMessage ¶
func (*MixedCoins) ProtoMessage()
func (*MixedCoins) Reset ¶
func (m *MixedCoins) Reset()
func (*MixedCoins) Size ¶
func (m *MixedCoins) Size() (n int)
func (*MixedCoins) String ¶
func (m *MixedCoins) String() string
func (*MixedCoins) Unmarshal ¶
func (m *MixedCoins) Unmarshal(dAtA []byte) error
func (*MixedCoins) XXX_DiscardUnknown ¶
func (m *MixedCoins) XXX_DiscardUnknown()
func (*MixedCoins) XXX_Marshal ¶
func (m *MixedCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MixedCoins) XXX_Merge ¶
func (m *MixedCoins) XXX_Merge(src proto.Message)
func (*MixedCoins) XXX_Size ¶
func (m *MixedCoins) XXX_Size() int
func (*MixedCoins) XXX_Unmarshal ¶
func (m *MixedCoins) XXX_Unmarshal(b []byte) error
type MixedDecCoins ¶
type MixedDecCoins struct { Native github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=native,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"native"` Foreign github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=foreign,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"foreign"` }
MixedDecCoins defines the struct for mixed coins in decimal with native and foreign decimal coins.
func InitMixedDecCoins ¶
func InitMixedDecCoins() MixedDecCoins
InitMixedDecCoins initialize an empty mixed decimal coins instance.
func MixedDecCoinsFromMixedCoins ¶
func MixedDecCoinsFromMixedCoins(mc MixedCoins) MixedDecCoins
MixedDecCoinsFromMixedCoins converts MixedCoins to MixedDecCoins.
func NewMixedDecCoins ¶
func NewMixedDecCoins(native, foreign sdk.DecCoins) MixedDecCoins
NewMixedDecCoins returns a new mixed decimal coins instance.
func (MixedDecCoins) Add ¶
func (mdc MixedDecCoins) Add(a MixedDecCoins) MixedDecCoins
Add adds two MixedDecCoins type coins together.
func (*MixedDecCoins) Descriptor ¶
func (*MixedDecCoins) Descriptor() ([]byte, []int)
func (*MixedDecCoins) Marshal ¶
func (m *MixedDecCoins) Marshal() (dAtA []byte, err error)
func (*MixedDecCoins) MarshalToSizedBuffer ¶
func (m *MixedDecCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (MixedDecCoins) MulDec ¶
func (mdc MixedDecCoins) MulDec(d sdk.Dec) MixedDecCoins
MulDec multiplies native and foreign coins by a decimal.
func (*MixedDecCoins) ProtoMessage ¶
func (*MixedDecCoins) ProtoMessage()
func (MixedDecCoins) QuoDec ¶
func (mdc MixedDecCoins) QuoDec(d sdk.Dec) MixedDecCoins
QuoDec divides native and foreign coins by a decimal.
func (*MixedDecCoins) Reset ¶
func (m *MixedDecCoins) Reset()
func (*MixedDecCoins) Size ¶
func (m *MixedDecCoins) Size() (n int)
func (*MixedDecCoins) String ¶
func (m *MixedDecCoins) String() string
func (MixedDecCoins) Sub ¶
func (mdc MixedDecCoins) Sub(a MixedDecCoins) MixedDecCoins
Sub calculates the difference between two mixed dec coins.
func (*MixedDecCoins) Unmarshal ¶
func (m *MixedDecCoins) Unmarshal(dAtA []byte) error
func (*MixedDecCoins) XXX_DiscardUnknown ¶
func (m *MixedDecCoins) XXX_DiscardUnknown()
func (*MixedDecCoins) XXX_Marshal ¶
func (m *MixedDecCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MixedDecCoins) XXX_Merge ¶
func (m *MixedDecCoins) XXX_Merge(src proto.Message)
func (*MixedDecCoins) XXX_Size ¶
func (m *MixedDecCoins) XXX_Size() int
func (*MixedDecCoins) XXX_Unmarshal ¶
func (m *MixedDecCoins) XXX_Unmarshal(b []byte) error
type Pool ¶
type Pool struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Sponsor string `protobuf:"bytes,3,opt,name=sponsor,proto3" json:"sponsor,omitempty" yaml:"sponsor"` SponsorAddr string `protobuf:"bytes,4,opt,name=sponsor_addr,json=sponsorAddr,proto3" json:"sponsor_addr,omitempty" yaml:"sponsor_addr"` ShieldLimit github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */ Active bool `protobuf:"varint,6,opt,name=active,proto3" json:"active,omitempty" yaml:"active"` Shield github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=shield,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shield" yaml:"shield"` }
Pool contains a shield project pool's data.
func (*Pool) Descriptor ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) XXX_DiscardUnknown ¶
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Unmarshal ¶
type PoolPurchaser ¶
type PoolPurchaser struct { // PoolID is the id of the shield pool. PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"` // Purchaser is the chain address of the purchaser. Purchaser string `protobuf:"bytes,2,opt,name=purchaser,proto3" json:"purchaser,omitempty" yaml:"purchaser"` }
PoolPurchase is a pair of pool id and purchaser.
func (*PoolPurchaser) Descriptor ¶
func (*PoolPurchaser) Descriptor() ([]byte, []int)
func (*PoolPurchaser) Marshal ¶
func (m *PoolPurchaser) Marshal() (dAtA []byte, err error)
func (*PoolPurchaser) MarshalToSizedBuffer ¶
func (m *PoolPurchaser) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PoolPurchaser) ProtoMessage ¶
func (*PoolPurchaser) ProtoMessage()
func (*PoolPurchaser) Reset ¶
func (m *PoolPurchaser) Reset()
func (*PoolPurchaser) Size ¶
func (m *PoolPurchaser) Size() (n int)
func (*PoolPurchaser) String ¶
func (m *PoolPurchaser) String() string
func (*PoolPurchaser) Unmarshal ¶
func (m *PoolPurchaser) Unmarshal(dAtA []byte) error
func (*PoolPurchaser) XXX_DiscardUnknown ¶
func (m *PoolPurchaser) XXX_DiscardUnknown()
func (*PoolPurchaser) XXX_Marshal ¶
func (m *PoolPurchaser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PoolPurchaser) XXX_Merge ¶
func (m *PoolPurchaser) XXX_Merge(src proto.Message)
func (*PoolPurchaser) XXX_Size ¶
func (m *PoolPurchaser) XXX_Size() int
func (*PoolPurchaser) XXX_Unmarshal ¶
func (m *PoolPurchaser) XXX_Unmarshal(b []byte) error
type PoolPurchaserPairs ¶
type PoolPurchaserPairs struct {
Pairs []PoolPurchaser `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}
PoolPurchaserPairs defines an array of PoolPurchaser objects.
func (*PoolPurchaserPairs) Descriptor ¶
func (*PoolPurchaserPairs) Descriptor() ([]byte, []int)
func (*PoolPurchaserPairs) GetPairs ¶
func (m *PoolPurchaserPairs) GetPairs() []PoolPurchaser
func (*PoolPurchaserPairs) Marshal ¶
func (m *PoolPurchaserPairs) Marshal() (dAtA []byte, err error)
func (*PoolPurchaserPairs) MarshalTo ¶
func (m *PoolPurchaserPairs) MarshalTo(dAtA []byte) (int, error)
func (*PoolPurchaserPairs) MarshalToSizedBuffer ¶
func (m *PoolPurchaserPairs) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PoolPurchaserPairs) ProtoMessage ¶
func (*PoolPurchaserPairs) ProtoMessage()
func (*PoolPurchaserPairs) Reset ¶
func (m *PoolPurchaserPairs) Reset()
func (*PoolPurchaserPairs) Size ¶
func (m *PoolPurchaserPairs) Size() (n int)
func (*PoolPurchaserPairs) String ¶
func (m *PoolPurchaserPairs) String() string
func (*PoolPurchaserPairs) Unmarshal ¶
func (m *PoolPurchaserPairs) Unmarshal(dAtA []byte) error
func (*PoolPurchaserPairs) XXX_DiscardUnknown ¶
func (m *PoolPurchaserPairs) XXX_DiscardUnknown()
func (*PoolPurchaserPairs) XXX_Marshal ¶
func (m *PoolPurchaserPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PoolPurchaserPairs) XXX_Merge ¶
func (m *PoolPurchaserPairs) XXX_Merge(src proto.Message)
func (*PoolPurchaserPairs) XXX_Size ¶
func (m *PoolPurchaserPairs) XXX_Size() int
func (*PoolPurchaserPairs) XXX_Unmarshal ¶
func (m *PoolPurchaserPairs) XXX_Unmarshal(b []byte) error
type Provider ¶
type Provider struct { // Address is the address of the provider. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` // DelegationBonded is the amount of bonded delegation. DelegationBonded github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */ // Collateral is amount of all collaterals for the provider, including // those in withdraw queue but excluding those currently locked, in all // pools. Collateral github_com_cosmos_cosmos_sdk_types.Int `` /* 131-byte string literal not displayed */ // TotalLocked is the amount locked for pending claims. TotalLocked github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */ // Withdrawing is the amount of collateral in withdraw queues. Withdrawing github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */ // Rewards is the pooling rewards to be collected. Rewards MixedDecCoins `protobuf:"bytes,6,opt,name=rewards,proto3" json:"rewards" yaml:"rewards"` }
Provider tracks total delegation, total collateral, and rewards of a provider.
func (*Provider) Descriptor ¶
func (*Provider) MarshalToSizedBuffer ¶
func (*Provider) ProtoMessage ¶
func (*Provider) ProtoMessage()
func (*Provider) XXX_DiscardUnknown ¶
func (m *Provider) XXX_DiscardUnknown()
func (*Provider) XXX_Marshal ¶
func (*Provider) XXX_Unmarshal ¶
type Purchase ¶
type Purchase struct { // PurchaseID is the purchase_id. PurchaseId uint64 `protobuf:"varint,1,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty" yaml:"purchase_id"` // ProtectionEndTime is the time when the protection of the shield ends. ProtectionEndTime time.Time `` /* 139-byte string literal not displayed */ // DeletionTime is the time when the purchase should be deleted. DeletionTime time.Time `protobuf:"bytes,3,opt,name=deletion_time,json=deletionTime,proto3,stdtime" json:"deletion_time" yaml:"deletion_time"` // Description is the information about the protected asset. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // Shield is the unused amount of shield purchased. Shield github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=shield,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shield" yaml:"shield"` // ServiceFees is the service fees paid by this purchase. ServiceFees MixedDecCoins `protobuf:"bytes,6,opt,name=service_fees,json=serviceFees,proto3" json:"service_fees" yaml:"service_fees"` }
Purchase record an individual purchase.
func (*Purchase) Descriptor ¶
func (*Purchase) MarshalToSizedBuffer ¶
func (*Purchase) ProtoMessage ¶
func (*Purchase) ProtoMessage()
func (*Purchase) XXX_DiscardUnknown ¶
func (m *Purchase) XXX_DiscardUnknown()
func (*Purchase) XXX_Marshal ¶
func (*Purchase) XXX_Unmarshal ¶
type PurchaseList ¶
type PurchaseList struct { // PoolID is the id of the shield of the purchase. PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"` // Purchaser is the address making the purchase. Purchaser string `protobuf:"bytes,2,opt,name=purchaser,proto3" json:"purchaser,omitempty" yaml:"purchaser"` // Entries stores all purchases by the purchaser in the pool. Entries []Purchase `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries" yaml:"entries"` }
PurchaseList is a collection of purchase.
func (*PurchaseList) Descriptor ¶
func (*PurchaseList) Descriptor() ([]byte, []int)
func (*PurchaseList) Marshal ¶
func (m *PurchaseList) Marshal() (dAtA []byte, err error)
func (*PurchaseList) MarshalToSizedBuffer ¶
func (m *PurchaseList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PurchaseList) ProtoMessage ¶
func (*PurchaseList) ProtoMessage()
func (*PurchaseList) Reset ¶
func (m *PurchaseList) Reset()
func (*PurchaseList) Size ¶
func (m *PurchaseList) Size() (n int)
func (*PurchaseList) String ¶
func (m *PurchaseList) String() string
func (*PurchaseList) Unmarshal ¶
func (m *PurchaseList) Unmarshal(dAtA []byte) error
func (*PurchaseList) XXX_DiscardUnknown ¶
func (m *PurchaseList) XXX_DiscardUnknown()
func (*PurchaseList) XXX_Marshal ¶
func (m *PurchaseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PurchaseList) XXX_Merge ¶
func (m *PurchaseList) XXX_Merge(src proto.Message)
func (*PurchaseList) XXX_Size ¶
func (m *PurchaseList) XXX_Size() int
func (*PurchaseList) XXX_Unmarshal ¶
func (m *PurchaseList) XXX_Unmarshal(b []byte) error
type ShieldClaimProposal ¶
type ShieldClaimProposal struct { ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"` PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"` PurchaseId uint64 `protobuf:"varint,3,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty" yaml:"purchase_id"` Loss github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=loss,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"loss" yaml:"loss"` Evidence string `protobuf:"bytes,5,opt,name=evidence,proto3" json:"evidence,omitempty" yaml:"evidence"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Proposer string `protobuf:"bytes,7,opt,name=proposer,proto3" json:"proposer,omitempty" yaml:"proposer"` }
func NewShieldClaimProposal ¶
func NewShieldClaimProposal(poolID uint64, loss sdk.Coins, purchaseID uint64, evidence, description string, proposer sdk.AccAddress) *ShieldClaimProposal
NewShieldClaimProposal creates a new shield claim proposal.
func (*ShieldClaimProposal) Descriptor ¶
func (*ShieldClaimProposal) Descriptor() ([]byte, []int)
func (ShieldClaimProposal) GetDescription ¶
func (scp ShieldClaimProposal) GetDescription() string
GetDescription returns the description of a shield claim proposal.
func (ShieldClaimProposal) GetTitle ¶
func (scp ShieldClaimProposal) GetTitle() string
GetTitle returns the title of a shield claim proposal.
func (*ShieldClaimProposal) Marshal ¶
func (m *ShieldClaimProposal) Marshal() (dAtA []byte, err error)
func (*ShieldClaimProposal) MarshalTo ¶
func (m *ShieldClaimProposal) MarshalTo(dAtA []byte) (int, error)
func (*ShieldClaimProposal) MarshalToSizedBuffer ¶
func (m *ShieldClaimProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ShieldClaimProposal) ProposalRoute ¶
func (scp ShieldClaimProposal) ProposalRoute() string
GetDescription returns the routing key of a shield claim proposal.
func (ShieldClaimProposal) ProposalType ¶
func (scp ShieldClaimProposal) ProposalType() string
ProposalType returns the type of a shield claim proposal.
func (*ShieldClaimProposal) ProtoMessage ¶
func (*ShieldClaimProposal) ProtoMessage()
func (*ShieldClaimProposal) Reset ¶
func (m *ShieldClaimProposal) Reset()
func (*ShieldClaimProposal) Size ¶
func (m *ShieldClaimProposal) Size() (n int)
func (ShieldClaimProposal) String ¶
func (scp ShieldClaimProposal) String() string
String implements the Stringer interface.
func (*ShieldClaimProposal) Unmarshal ¶
func (m *ShieldClaimProposal) Unmarshal(dAtA []byte) error
func (ShieldClaimProposal) ValidateBasic ¶
func (scp ShieldClaimProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks.
func (*ShieldClaimProposal) XXX_DiscardUnknown ¶
func (m *ShieldClaimProposal) XXX_DiscardUnknown()
func (*ShieldClaimProposal) XXX_Marshal ¶
func (m *ShieldClaimProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShieldClaimProposal) XXX_Merge ¶
func (m *ShieldClaimProposal) XXX_Merge(src proto.Message)
func (*ShieldClaimProposal) XXX_Size ¶
func (m *ShieldClaimProposal) XXX_Size() int
func (*ShieldClaimProposal) XXX_Unmarshal ¶
func (m *ShieldClaimProposal) XXX_Unmarshal(b []byte) error
type ShieldStaking ¶
type ShieldStaking struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"` Purchaser string `protobuf:"bytes,2,opt,name=purchaser,proto3" json:"purchaser,omitempty" yaml:"purchaser"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` WithdrawRequested github_com_cosmos_cosmos_sdk_types.Int `` /* 178-byte string literal not displayed */ }
func (*ShieldStaking) Descriptor ¶
func (*ShieldStaking) Descriptor() ([]byte, []int)
func (*ShieldStaking) Marshal ¶
func (m *ShieldStaking) Marshal() (dAtA []byte, err error)
func (*ShieldStaking) MarshalToSizedBuffer ¶
func (m *ShieldStaking) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ShieldStaking) ProtoMessage ¶
func (*ShieldStaking) ProtoMessage()
func (*ShieldStaking) Reset ¶
func (m *ShieldStaking) Reset()
func (*ShieldStaking) Size ¶
func (m *ShieldStaking) Size() (n int)
func (*ShieldStaking) String ¶
func (m *ShieldStaking) String() string
func (*ShieldStaking) Unmarshal ¶
func (m *ShieldStaking) Unmarshal(dAtA []byte) error
func (*ShieldStaking) XXX_DiscardUnknown ¶
func (m *ShieldStaking) XXX_DiscardUnknown()
func (*ShieldStaking) XXX_Marshal ¶
func (m *ShieldStaking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShieldStaking) XXX_Merge ¶
func (m *ShieldStaking) XXX_Merge(src proto.Message)
func (*ShieldStaking) XXX_Size ¶
func (m *ShieldStaking) XXX_Size() int
func (*ShieldStaking) XXX_Unmarshal ¶
func (m *ShieldStaking) XXX_Unmarshal(b []byte) error
type Withdraw ¶
type Withdraw struct { // Address is the chain address of the provider withdrawing. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` // Amount is the amount of withdraw. 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" yaml:"amount"` // CompletionTime is the scheduled withdraw completion time. CompletionTime time.Time `protobuf:"bytes,3,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` }
Withdraw stores an ongoing withdraw of pool collateral.
func (*Withdraw) Descriptor ¶
func (*Withdraw) MarshalToSizedBuffer ¶
func (*Withdraw) ProtoMessage ¶
func (*Withdraw) ProtoMessage()
func (*Withdraw) XXX_DiscardUnknown ¶
func (m *Withdraw) XXX_DiscardUnknown()
func (*Withdraw) XXX_Marshal ¶
func (*Withdraw) XXX_Unmarshal ¶
type Withdraws ¶
type Withdraws struct {
Withdraws []Withdraw `protobuf:"bytes,1,rep,name=withdraws,proto3" json:"withdraws"`
}
Withdraws defines an array of Withdraw objects.
func (*Withdraws) Descriptor ¶
func (*Withdraws) GetWithdraws ¶
func (*Withdraws) MarshalToSizedBuffer ¶
func (*Withdraws) ProtoMessage ¶
func (*Withdraws) ProtoMessage()
func (*Withdraws) XXX_DiscardUnknown ¶
func (m *Withdraws) XXX_DiscardUnknown()