types

package
v8.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCallbacks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCallbacks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthHostZone        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHostZone          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupHostZone = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthIcaAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIcaAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIcaAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ICAAccountType_name = map[int32]string{
	0: "DELEGATION",
	1: "FEE",
	2: "WITHDRAWAL",
	3: "REDEMPTION",
}
View Source
var ICAAccountType_value = map[string]int32{
	"DELEGATION": 0,
	"FEE":        1,
	"WITHDRAWAL": 2,
	"REDEMPTION": 3,
}
View Source
var Validator_ValidatorStatus_name = map[int32]string{
	0: "ACTIVE",
	1: "INACTIVE",
}
View Source
var Validator_ValidatorStatus_value = map[string]int32{
	"ACTIVE":   0,
	"INACTIVE": 1,
}

Functions

This section is empty.

Types

type ClaimCallback

type ClaimCallback struct {
	UserRedemptionRecordId string `` /* 131-byte string literal not displayed */
	ChainId                string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	EpochNumber            uint64 `protobuf:"varint,3,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"`
}

func (*ClaimCallback) Descriptor

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

func (*ClaimCallback) GetChainId

func (m *ClaimCallback) GetChainId() string

func (*ClaimCallback) GetEpochNumber

func (m *ClaimCallback) GetEpochNumber() uint64

func (*ClaimCallback) GetUserRedemptionRecordId

func (m *ClaimCallback) GetUserRedemptionRecordId() string

func (*ClaimCallback) Marshal

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

func (*ClaimCallback) MarshalTo

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

func (*ClaimCallback) MarshalToSizedBuffer

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

func (*ClaimCallback) ProtoMessage

func (*ClaimCallback) ProtoMessage()

func (*ClaimCallback) Reset

func (m *ClaimCallback) Reset()

func (*ClaimCallback) Size

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

func (*ClaimCallback) String

func (m *ClaimCallback) String() string

func (*ClaimCallback) Unmarshal

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

func (*ClaimCallback) XXX_DiscardUnknown

func (m *ClaimCallback) XXX_DiscardUnknown()

func (*ClaimCallback) XXX_Marshal

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

func (*ClaimCallback) XXX_Merge

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

func (*ClaimCallback) XXX_Size

func (m *ClaimCallback) XXX_Size() int

func (*ClaimCallback) XXX_Unmarshal

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

type DelegateCallback

type DelegateCallback struct {
	HostZoneId       string             `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"`
	DepositRecordId  uint64             `protobuf:"varint,2,opt,name=deposit_record_id,json=depositRecordId,proto3" json:"deposit_record_id,omitempty"`
	SplitDelegations []*SplitDelegation `protobuf:"bytes,3,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"`
}

func (*DelegateCallback) Descriptor

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

func (*DelegateCallback) GetDepositRecordId

func (m *DelegateCallback) GetDepositRecordId() uint64

func (*DelegateCallback) GetHostZoneId

func (m *DelegateCallback) GetHostZoneId() string

func (*DelegateCallback) GetSplitDelegations

func (m *DelegateCallback) GetSplitDelegations() []*SplitDelegation

func (*DelegateCallback) Marshal

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

func (*DelegateCallback) MarshalTo

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

func (*DelegateCallback) MarshalToSizedBuffer

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

func (*DelegateCallback) ProtoMessage

func (*DelegateCallback) ProtoMessage()

func (*DelegateCallback) Reset

func (m *DelegateCallback) Reset()

func (*DelegateCallback) Size

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

func (*DelegateCallback) String

func (m *DelegateCallback) String() string

func (*DelegateCallback) Unmarshal

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

func (*DelegateCallback) XXX_DiscardUnknown

func (m *DelegateCallback) XXX_DiscardUnknown()

func (*DelegateCallback) XXX_Marshal

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

func (*DelegateCallback) XXX_Merge

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

func (*DelegateCallback) XXX_Size

func (m *DelegateCallback) XXX_Size() int

func (*DelegateCallback) XXX_Unmarshal

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

type HostZone

type HostZone struct {
	ChainId               string       `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ConnectionId          string       `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Bech32Prefix          string       `protobuf:"bytes,17,opt,name=bech32prefix,proto3" json:"bech32prefix,omitempty"`
	TransferChannelId     string       `protobuf:"bytes,12,opt,name=transfer_channel_id,json=transferChannelId,proto3" json:"transfer_channel_id,omitempty"`
	Validators            []*Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"`
	BlacklistedValidators []*Validator `protobuf:"bytes,4,rep,name=blacklisted_validators,json=blacklistedValidators,proto3" json:"blacklisted_validators,omitempty"`
	WithdrawalAccount     *ICAAccount  `protobuf:"bytes,5,opt,name=withdrawal_account,json=withdrawalAccount,proto3" json:"withdrawal_account,omitempty"`
	FeeAccount            *ICAAccount  `protobuf:"bytes,6,opt,name=fee_account,json=feeAccount,proto3" json:"fee_account,omitempty"`
	DelegationAccount     *ICAAccount  `protobuf:"bytes,7,opt,name=delegation_account,json=delegationAccount,proto3" json:"delegation_account,omitempty"`
	RedemptionAccount     *ICAAccount  `protobuf:"bytes,16,opt,name=redemption_account,json=redemptionAccount,proto3" json:"redemption_account,omitempty"`
	// ibc denom on stride
	IbcDenom string `protobuf:"bytes,8,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty"`
	// native denom on host zone
	HostDenom string `protobuf:"bytes,9,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"`
	// TODO(TEST-68): Should we make this an array and store the last n redemption
	// rates then calculate a TWARR?
	LastRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	RedemptionRate     github_com_cosmos_cosmos_sdk_types.Dec `` /* 144-byte string literal not displayed */
	// stores how many days we should wait before issuing unbondings
	UnbondingFrequency uint64 `protobuf:"varint,14,opt,name=unbonding_frequency,json=unbondingFrequency,proto3" json:"unbonding_frequency,omitempty"`
	// TODO(TEST-101) int to dec
	StakedBal uint64 `protobuf:"varint,13,opt,name=staked_bal,json=stakedBal,proto3" json:"staked_bal,omitempty"`
	Address   string `protobuf:"bytes,18,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}

next id: 19

func (*HostZone) Descriptor

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

func (*HostZone) GetAddress

func (m *HostZone) GetAddress() string

func (*HostZone) GetBech32Prefix

func (m *HostZone) GetBech32Prefix() string

func (*HostZone) GetBlacklistedValidators

func (m *HostZone) GetBlacklistedValidators() []*Validator

func (*HostZone) GetChainId

func (m *HostZone) GetChainId() string

func (*HostZone) GetConnectionId

func (m *HostZone) GetConnectionId() string

func (*HostZone) GetDelegationAccount

func (m *HostZone) GetDelegationAccount() *ICAAccount

func (*HostZone) GetFeeAccount

func (m *HostZone) GetFeeAccount() *ICAAccount

func (*HostZone) GetHostDenom

func (m *HostZone) GetHostDenom() string

func (*HostZone) GetIbcDenom

func (m *HostZone) GetIbcDenom() string

func (*HostZone) GetRedemptionAccount

func (m *HostZone) GetRedemptionAccount() *ICAAccount

func (*HostZone) GetStakedBal

func (m *HostZone) GetStakedBal() uint64

func (*HostZone) GetTransferChannelId

func (m *HostZone) GetTransferChannelId() string

func (*HostZone) GetUnbondingFrequency

func (m *HostZone) GetUnbondingFrequency() uint64

func (*HostZone) GetValidators

func (m *HostZone) GetValidators() []*Validator

func (*HostZone) GetWithdrawalAccount

func (m *HostZone) GetWithdrawalAccount() *ICAAccount

func (*HostZone) Marshal

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

func (*HostZone) MarshalTo

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

func (*HostZone) MarshalToSizedBuffer

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

func (*HostZone) ProtoMessage

func (*HostZone) ProtoMessage()

func (*HostZone) Reset

func (m *HostZone) Reset()

func (*HostZone) Size

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

func (*HostZone) String

func (m *HostZone) String() string

func (*HostZone) Unmarshal

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

func (*HostZone) XXX_DiscardUnknown

func (m *HostZone) XXX_DiscardUnknown()

func (*HostZone) XXX_Marshal

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

func (*HostZone) XXX_Merge

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

func (*HostZone) XXX_Size

func (m *HostZone) XXX_Size() int

func (*HostZone) XXX_Unmarshal

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

type ICAAccount

type ICAAccount struct {
	Address string         `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Target  ICAAccountType `protobuf:"varint,3,opt,name=target,proto3,enum=stride.stakeibc.ICAAccountType" json:"target,omitempty"`
}

TODO(TEST-XX): Update these fields to be more useful (e.g. balances should be coins, maybe store port name directly)

func (*ICAAccount) Descriptor

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

func (*ICAAccount) GetAddress

func (m *ICAAccount) GetAddress() string

func (*ICAAccount) GetTarget

func (m *ICAAccount) GetTarget() ICAAccountType

func (*ICAAccount) Marshal

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

func (*ICAAccount) MarshalTo

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

func (*ICAAccount) MarshalToSizedBuffer

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

func (*ICAAccount) ProtoMessage

func (*ICAAccount) ProtoMessage()

func (*ICAAccount) Reset

func (m *ICAAccount) Reset()

func (*ICAAccount) Size

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

func (*ICAAccount) String

func (m *ICAAccount) String() string

func (*ICAAccount) Unmarshal

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

func (*ICAAccount) XXX_DiscardUnknown

func (m *ICAAccount) XXX_DiscardUnknown()

func (*ICAAccount) XXX_Marshal

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

func (*ICAAccount) XXX_Merge

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

func (*ICAAccount) XXX_Size

func (m *ICAAccount) XXX_Size() int

func (*ICAAccount) XXX_Unmarshal

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

type ICAAccountType

type ICAAccountType int32
const (
	ICAAccountType_DELEGATION ICAAccountType = 0
	ICAAccountType_FEE        ICAAccountType = 1
	ICAAccountType_WITHDRAWAL ICAAccountType = 2
	ICAAccountType_REDEMPTION ICAAccountType = 3
)

func (ICAAccountType) EnumDescriptor

func (ICAAccountType) EnumDescriptor() ([]byte, []int)

func (ICAAccountType) String

func (x ICAAccountType) String() string

type RebalanceCallback

type RebalanceCallback struct {
	HostZoneId   string         `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"`
	Rebalancings []*Rebalancing `protobuf:"bytes,2,rep,name=rebalancings,proto3" json:"rebalancings,omitempty"`
}

func (*RebalanceCallback) Descriptor

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

func (*RebalanceCallback) GetHostZoneId

func (m *RebalanceCallback) GetHostZoneId() string

func (*RebalanceCallback) GetRebalancings

func (m *RebalanceCallback) GetRebalancings() []*Rebalancing

func (*RebalanceCallback) Marshal

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

func (*RebalanceCallback) MarshalTo

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

func (*RebalanceCallback) MarshalToSizedBuffer

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

func (*RebalanceCallback) ProtoMessage

func (*RebalanceCallback) ProtoMessage()

func (*RebalanceCallback) Reset

func (m *RebalanceCallback) Reset()

func (*RebalanceCallback) Size

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

func (*RebalanceCallback) String

func (m *RebalanceCallback) String() string

func (*RebalanceCallback) Unmarshal

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

func (*RebalanceCallback) XXX_DiscardUnknown

func (m *RebalanceCallback) XXX_DiscardUnknown()

func (*RebalanceCallback) XXX_Marshal

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

func (*RebalanceCallback) XXX_Merge

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

func (*RebalanceCallback) XXX_Size

func (m *RebalanceCallback) XXX_Size() int

func (*RebalanceCallback) XXX_Unmarshal

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

type Rebalancing

type Rebalancing struct {
	SrcValidator string `protobuf:"bytes,1,opt,name=src_validator,json=srcValidator,proto3" json:"src_validator,omitempty"`
	DstValidator string `protobuf:"bytes,2,opt,name=dst_validator,json=dstValidator,proto3" json:"dst_validator,omitempty"`
	Amt          uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
}

func (*Rebalancing) Descriptor

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

func (*Rebalancing) GetAmt

func (m *Rebalancing) GetAmt() uint64

func (*Rebalancing) GetDstValidator

func (m *Rebalancing) GetDstValidator() string

func (*Rebalancing) GetSrcValidator

func (m *Rebalancing) GetSrcValidator() string

func (*Rebalancing) Marshal

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

func (*Rebalancing) MarshalTo

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

func (*Rebalancing) MarshalToSizedBuffer

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

func (*Rebalancing) ProtoMessage

func (*Rebalancing) ProtoMessage()

func (*Rebalancing) Reset

func (m *Rebalancing) Reset()

func (*Rebalancing) Size

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

func (*Rebalancing) String

func (m *Rebalancing) String() string

func (*Rebalancing) Unmarshal

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

func (*Rebalancing) XXX_DiscardUnknown

func (m *Rebalancing) XXX_DiscardUnknown()

func (*Rebalancing) XXX_Marshal

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

func (*Rebalancing) XXX_Merge

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

func (*Rebalancing) XXX_Size

func (m *Rebalancing) XXX_Size() int

func (*Rebalancing) XXX_Unmarshal

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

type RedemptionCallback

type RedemptionCallback struct {
	HostZoneId              string   `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"`
	EpochUnbondingRecordIds []uint64 `` /* 142-byte string literal not displayed */
}

---------------------- Redemption Callbacks ---------------------- //

func (*RedemptionCallback) Descriptor

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

func (*RedemptionCallback) GetEpochUnbondingRecordIds

func (m *RedemptionCallback) GetEpochUnbondingRecordIds() []uint64

func (*RedemptionCallback) GetHostZoneId

func (m *RedemptionCallback) GetHostZoneId() string

func (*RedemptionCallback) Marshal

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

func (*RedemptionCallback) MarshalTo

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

func (*RedemptionCallback) MarshalToSizedBuffer

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

func (*RedemptionCallback) ProtoMessage

func (*RedemptionCallback) ProtoMessage()

func (*RedemptionCallback) Reset

func (m *RedemptionCallback) Reset()

func (*RedemptionCallback) Size

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

func (*RedemptionCallback) String

func (m *RedemptionCallback) String() string

func (*RedemptionCallback) Unmarshal

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

func (*RedemptionCallback) XXX_DiscardUnknown

func (m *RedemptionCallback) XXX_DiscardUnknown()

func (*RedemptionCallback) XXX_Marshal

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

func (*RedemptionCallback) XXX_Merge

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

func (*RedemptionCallback) XXX_Size

func (m *RedemptionCallback) XXX_Size() int

func (*RedemptionCallback) XXX_Unmarshal

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

type ReinvestCallback

type ReinvestCallback struct {
	ReinvestAmount types.Coin `` /* 146-byte string literal not displayed */
	HostZoneId     string     `protobuf:"bytes,3,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"`
}

---------------------- Reinvest Callback ---------------------- //

func (*ReinvestCallback) Descriptor

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

func (*ReinvestCallback) GetHostZoneId

func (m *ReinvestCallback) GetHostZoneId() string

func (*ReinvestCallback) GetReinvestAmount

func (m *ReinvestCallback) GetReinvestAmount() types.Coin

func (*ReinvestCallback) Marshal

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

func (*ReinvestCallback) MarshalTo

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

func (*ReinvestCallback) MarshalToSizedBuffer

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

func (*ReinvestCallback) ProtoMessage

func (*ReinvestCallback) ProtoMessage()

func (*ReinvestCallback) Reset

func (m *ReinvestCallback) Reset()

func (*ReinvestCallback) Size

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

func (*ReinvestCallback) String

func (m *ReinvestCallback) String() string

func (*ReinvestCallback) Unmarshal

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

func (*ReinvestCallback) XXX_DiscardUnknown

func (m *ReinvestCallback) XXX_DiscardUnknown()

func (*ReinvestCallback) XXX_Marshal

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

func (*ReinvestCallback) XXX_Merge

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

func (*ReinvestCallback) XXX_Size

func (m *ReinvestCallback) XXX_Size() int

func (*ReinvestCallback) XXX_Unmarshal

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

type SplitDelegation

type SplitDelegation struct {
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	Amount    uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
}

---------------------- Delegation Callbacks ---------------------- //

func (*SplitDelegation) Descriptor

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

func (*SplitDelegation) GetAmount

func (m *SplitDelegation) GetAmount() uint64

func (*SplitDelegation) GetValidator

func (m *SplitDelegation) GetValidator() string

func (*SplitDelegation) Marshal

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

func (*SplitDelegation) MarshalTo

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

func (*SplitDelegation) MarshalToSizedBuffer

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

func (*SplitDelegation) ProtoMessage

func (*SplitDelegation) ProtoMessage()

func (*SplitDelegation) Reset

func (m *SplitDelegation) Reset()

func (*SplitDelegation) Size

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

func (*SplitDelegation) String

func (m *SplitDelegation) String() string

func (*SplitDelegation) Unmarshal

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

func (*SplitDelegation) XXX_DiscardUnknown

func (m *SplitDelegation) XXX_DiscardUnknown()

func (*SplitDelegation) XXX_Marshal

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

func (*SplitDelegation) XXX_Merge

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

func (*SplitDelegation) XXX_Size

func (m *SplitDelegation) XXX_Size() int

func (*SplitDelegation) XXX_Unmarshal

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

type UndelegateCallback

type UndelegateCallback struct {
	HostZoneId              string             `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"`
	SplitDelegations        []*SplitDelegation `protobuf:"bytes,2,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"`
	EpochUnbondingRecordIds []uint64           `` /* 142-byte string literal not displayed */
}

---------------------- Undelegation Callbacks ---------------------- //

func (*UndelegateCallback) Descriptor

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

func (*UndelegateCallback) GetEpochUnbondingRecordIds

func (m *UndelegateCallback) GetEpochUnbondingRecordIds() []uint64

func (*UndelegateCallback) GetHostZoneId

func (m *UndelegateCallback) GetHostZoneId() string

func (*UndelegateCallback) GetSplitDelegations

func (m *UndelegateCallback) GetSplitDelegations() []*SplitDelegation

func (*UndelegateCallback) Marshal

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

func (*UndelegateCallback) MarshalTo

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

func (*UndelegateCallback) MarshalToSizedBuffer

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

func (*UndelegateCallback) ProtoMessage

func (*UndelegateCallback) ProtoMessage()

func (*UndelegateCallback) Reset

func (m *UndelegateCallback) Reset()

func (*UndelegateCallback) Size

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

func (*UndelegateCallback) String

func (m *UndelegateCallback) String() string

func (*UndelegateCallback) Unmarshal

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

func (*UndelegateCallback) XXX_DiscardUnknown

func (m *UndelegateCallback) XXX_DiscardUnknown()

func (*UndelegateCallback) XXX_Marshal

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

func (*UndelegateCallback) XXX_Merge

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

func (*UndelegateCallback) XXX_Size

func (m *UndelegateCallback) XXX_Size() int

func (*UndelegateCallback) XXX_Unmarshal

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

type Validator

type Validator struct {
	Name                 string                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address              string                    `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Status               Validator_ValidatorStatus `protobuf:"varint,3,opt,name=status,proto3,enum=stride.stakeibc.Validator_ValidatorStatus" json:"status,omitempty"`
	CommissionRate       uint64                    `protobuf:"varint,4,opt,name=commission_rate,json=commissionRate,proto3" json:"commission_rate,omitempty"`
	DelegationAmt        uint64                    `protobuf:"varint,5,opt,name=delegation_amt,json=delegationAmt,proto3" json:"delegation_amt,omitempty"`
	Weight               uint64                    `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
	InternalExchangeRate *ValidatorExchangeRate    `protobuf:"bytes,7,opt,name=internal_exchange_rate,json=internalExchangeRate,proto3" json:"internal_exchange_rate,omitempty"`
}

func (*Validator) Descriptor

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

func (*Validator) GetAddress

func (m *Validator) GetAddress() string

func (*Validator) GetCommissionRate

func (m *Validator) GetCommissionRate() uint64

func (*Validator) GetDelegationAmt

func (m *Validator) GetDelegationAmt() uint64

func (*Validator) GetInternalExchangeRate

func (m *Validator) GetInternalExchangeRate() *ValidatorExchangeRate

func (*Validator) GetName

func (m *Validator) GetName() string

func (*Validator) GetStatus

func (m *Validator) GetStatus() Validator_ValidatorStatus

func (*Validator) GetWeight

func (m *Validator) GetWeight() uint64

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

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

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

type ValidatorExchangeRate

type ValidatorExchangeRate struct {
	InternalTokensToSharesRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 185-byte string literal not displayed */
	EpochNumber                uint64                                 `protobuf:"varint,2,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"`
}

func (*ValidatorExchangeRate) Descriptor

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

func (*ValidatorExchangeRate) GetEpochNumber

func (m *ValidatorExchangeRate) GetEpochNumber() uint64

func (*ValidatorExchangeRate) Marshal

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

func (*ValidatorExchangeRate) MarshalTo

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

func (*ValidatorExchangeRate) MarshalToSizedBuffer

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

func (*ValidatorExchangeRate) ProtoMessage

func (*ValidatorExchangeRate) ProtoMessage()

func (*ValidatorExchangeRate) Reset

func (m *ValidatorExchangeRate) Reset()

func (*ValidatorExchangeRate) Size

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

func (*ValidatorExchangeRate) String

func (m *ValidatorExchangeRate) String() string

func (*ValidatorExchangeRate) Unmarshal

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

func (*ValidatorExchangeRate) XXX_DiscardUnknown

func (m *ValidatorExchangeRate) XXX_DiscardUnknown()

func (*ValidatorExchangeRate) XXX_Marshal

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

func (*ValidatorExchangeRate) XXX_Merge

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

func (*ValidatorExchangeRate) XXX_Size

func (m *ValidatorExchangeRate) XXX_Size() int

func (*ValidatorExchangeRate) XXX_Unmarshal

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

type Validator_ValidatorStatus

type Validator_ValidatorStatus int32
const (
	Validator_ACTIVE   Validator_ValidatorStatus = 0
	Validator_INACTIVE Validator_ValidatorStatus = 1
)

func (Validator_ValidatorStatus) EnumDescriptor

func (Validator_ValidatorStatus) EnumDescriptor() ([]byte, []int)

func (Validator_ValidatorStatus) String

func (x Validator_ValidatorStatus) String() string

Jump to

Keyboard shortcuts

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