types

package
v20.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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 (
	KeySafetyMaxSlashPercent            = []byte("SafetyMaxSlashPercent")
	DefaultSafetyMaxSlashPercent uint64 = 0
)
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,
}

Functions

This section is empty.

Types

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         github_com_cosmos_cosmos_sdk_types.Int `` /* 129-byte string literal not displayed */
	Address           string                                 `protobuf:"bytes,18,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	Halted            bool                                   `protobuf:"varint,19,opt,name=halted,proto3" json:"halted,omitempty"`
	MinRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 155-byte string literal not displayed */
	MaxRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 155-byte string literal not displayed */
}

next id: 22

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

func (m *HostZone) GetHalted() bool

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) 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"`
}

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 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"`
	DelegationAmt        github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
	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) GetInternalExchangeRate

func (m *Validator) GetInternalExchangeRate() *ValidatorExchangeRate

func (*Validator) GetName

func (m *Validator) GetName() string

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

Jump to

Keyboard shortcuts

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