Documentation ¶
Index ¶
- Variables
- type HostZone
- func (*HostZone) Descriptor() ([]byte, []int)
- func (m *HostZone) GetAddress() string
- func (m *HostZone) GetBech32Prefix() string
- func (m *HostZone) GetBlacklistedValidators() []*Validator
- func (m *HostZone) GetChainId() string
- func (m *HostZone) GetConnectionId() string
- func (m *HostZone) GetDelegationAccount() *ICAAccount
- func (m *HostZone) GetFeeAccount() *ICAAccount
- func (m *HostZone) GetHalted() bool
- func (m *HostZone) GetHostDenom() string
- func (m *HostZone) GetIbcDenom() string
- func (m *HostZone) GetRedemptionAccount() *ICAAccount
- func (m *HostZone) GetTransferChannelId() string
- func (m *HostZone) GetUnbondingFrequency() uint64
- func (m *HostZone) GetValidators() []*Validator
- func (m *HostZone) GetWithdrawalAccount() *ICAAccount
- func (m *HostZone) Marshal() (dAtA []byte, err error)
- func (m *HostZone) MarshalTo(dAtA []byte) (int, error)
- func (m *HostZone) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostZone) ProtoMessage()
- func (m *HostZone) Reset()
- func (m *HostZone) Size() (n int)
- func (m *HostZone) String() string
- func (m *HostZone) Unmarshal(dAtA []byte) error
- func (m *HostZone) XXX_DiscardUnknown()
- func (m *HostZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostZone) XXX_Merge(src proto.Message)
- func (m *HostZone) XXX_Size() int
- func (m *HostZone) XXX_Unmarshal(b []byte) error
- type ICAAccount
- func (*ICAAccount) Descriptor() ([]byte, []int)
- func (m *ICAAccount) GetAddress() string
- func (m *ICAAccount) GetTarget() ICAAccountType
- func (m *ICAAccount) Marshal() (dAtA []byte, err error)
- func (m *ICAAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *ICAAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ICAAccount) ProtoMessage()
- func (m *ICAAccount) Reset()
- func (m *ICAAccount) Size() (n int)
- func (m *ICAAccount) String() string
- func (m *ICAAccount) Unmarshal(dAtA []byte) error
- func (m *ICAAccount) XXX_DiscardUnknown()
- func (m *ICAAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ICAAccount) XXX_Merge(src proto.Message)
- func (m *ICAAccount) XXX_Size() int
- func (m *ICAAccount) XXX_Unmarshal(b []byte) error
- type ICAAccountType
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetAddress() string
- func (m *Validator) GetInternalExchangeRate() *ValidatorExchangeRate
- func (m *Validator) GetName() string
- func (m *Validator) GetWeight() uint64
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type ValidatorExchangeRate
- func (*ValidatorExchangeRate) Descriptor() ([]byte, []int)
- func (m *ValidatorExchangeRate) GetEpochNumber() uint64
- func (m *ValidatorExchangeRate) Marshal() (dAtA []byte, err error)
- func (m *ValidatorExchangeRate) MarshalTo(dAtA []byte) (int, error)
- func (m *ValidatorExchangeRate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValidatorExchangeRate) ProtoMessage()
- func (m *ValidatorExchangeRate) Reset()
- func (m *ValidatorExchangeRate) Size() (n int)
- func (m *ValidatorExchangeRate) String() string
- func (m *ValidatorExchangeRate) Unmarshal(dAtA []byte) error
- func (m *ValidatorExchangeRate) XXX_DiscardUnknown()
- func (m *ValidatorExchangeRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorExchangeRate) XXX_Merge(src proto.Message)
- func (m *ValidatorExchangeRate) XXX_Size() int
- func (m *ValidatorExchangeRate) XXX_Unmarshal(b []byte) error
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) GetAddress ¶
func (*HostZone) GetBech32Prefix ¶
func (*HostZone) GetBlacklistedValidators ¶
func (*HostZone) GetChainId ¶
func (*HostZone) GetConnectionId ¶
func (*HostZone) GetDelegationAccount ¶
func (m *HostZone) GetDelegationAccount() *ICAAccount
func (*HostZone) GetFeeAccount ¶
func (m *HostZone) GetFeeAccount() *ICAAccount
func (*HostZone) GetHostDenom ¶
func (*HostZone) GetIbcDenom ¶
func (*HostZone) GetRedemptionAccount ¶
func (m *HostZone) GetRedemptionAccount() *ICAAccount
func (*HostZone) GetTransferChannelId ¶
func (*HostZone) GetUnbondingFrequency ¶
func (*HostZone) GetValidators ¶
func (*HostZone) GetWithdrawalAccount ¶
func (m *HostZone) GetWithdrawalAccount() *ICAAccount
func (*HostZone) MarshalToSizedBuffer ¶
func (*HostZone) ProtoMessage ¶
func (*HostZone) ProtoMessage()
func (*HostZone) XXX_DiscardUnknown ¶
func (m *HostZone) XXX_DiscardUnknown()
func (*HostZone) XXX_Marshal ¶
func (*HostZone) XXX_Unmarshal ¶
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) 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) GetAddress ¶
func (*Validator) GetInternalExchangeRate ¶
func (m *Validator) GetInternalExchangeRate() *ValidatorExchangeRate
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
type ValidatorExchangeRate ¶
type ValidatorExchangeRate struct { 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
Click to show internal directories.
Click to hide internal directories.