types

package
v12.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 (
	ParamsKey                          = []byte("Params")
	ParamStoreKeyEnableRecovery        = []byte("EnableRecovery")
	ParamStoreKeyPacketTimeoutDuration = []byte("PacketTimeoutDuration")
)

Parameter store key

View Source
var (
	DefaultEnableRecovery        = true
	DefaultPacketTimeoutDuration = 4 * time.Hour
)

DefaultPacketTimeoutDuration defines the default packet timeout for outgoing IBC transfers

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

Types

type V2GenesisState

type V2GenesisState struct {
	// V2Params defines all the paramaters of the module.
	V2Params V2Params `protobuf:"bytes,1,opt,name=V2Params,proto3" json:"V2Params"`
}

V2GenesisState defines the recovery module's genesis state.

func (*V2GenesisState) Descriptor

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

func (*V2GenesisState) GetV2Params

func (m *V2GenesisState) GetV2Params() V2Params

func (*V2GenesisState) Marshal

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

func (*V2GenesisState) MarshalTo

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

func (*V2GenesisState) MarshalToSizedBuffer

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

func (*V2GenesisState) ProtoMessage

func (*V2GenesisState) ProtoMessage()

func (*V2GenesisState) Reset

func (m *V2GenesisState) Reset()

func (*V2GenesisState) Size

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

func (*V2GenesisState) String

func (m *V2GenesisState) String() string

func (*V2GenesisState) Unmarshal

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

func (*V2GenesisState) XXX_DiscardUnknown

func (m *V2GenesisState) XXX_DiscardUnknown()

func (*V2GenesisState) XXX_Marshal

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

func (*V2GenesisState) XXX_Merge

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

func (*V2GenesisState) XXX_Size

func (m *V2GenesisState) XXX_Size() int

func (*V2GenesisState) XXX_Unmarshal

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

type V2Params

type V2Params struct {
	// enable_recovery IBC middleware
	EnableRecovery bool `protobuf:"varint,1,opt,name=enable_recovery,json=enableRecovery,proto3" json:"enable_recovery,omitempty"`
	// packet_timeout_duration is the duration added to timeout timestamp for balances recovered via IBC packets
	PacketTimeoutDuration time.Duration `` /* 128-byte string literal not displayed */
}

V2Params holds parameters for the recovery module

func DefaultParams

func DefaultParams() V2Params

DefaultParams defines the default params for the recovery module

func NewParams

func NewParams(
	enableRecovery bool, timeoutDuration time.Duration,
) V2Params

NewParams creates a new Params instance

func (*V2Params) Descriptor

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

func (*V2Params) GetEnableRecovery

func (m *V2Params) GetEnableRecovery() bool

func (*V2Params) GetPacketTimeoutDuration

func (m *V2Params) GetPacketTimeoutDuration() time.Duration

func (*V2Params) Marshal

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

func (*V2Params) MarshalTo

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

func (*V2Params) MarshalToSizedBuffer

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

func (*V2Params) ParamSetPairs

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

ParamSetPairs returns the parameter set pairs.

func (*V2Params) ProtoMessage

func (*V2Params) ProtoMessage()

func (*V2Params) Reset

func (m *V2Params) Reset()

func (*V2Params) Size

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

func (*V2Params) String

func (m *V2Params) String() string

func (*V2Params) Unmarshal

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

func (V2Params) Validate

func (p V2Params) Validate() error

Validate checks that the fields have valid values

func (*V2Params) XXX_DiscardUnknown

func (m *V2Params) XXX_DiscardUnknown()

func (*V2Params) XXX_Marshal

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

func (*V2Params) XXX_Merge

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

func (*V2Params) XXX_Size

func (m *V2Params) XXX_Size() int

func (*V2Params) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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