v1

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthLegacyOracle        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLegacyOracle          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLegacyOracle = fmt.Errorf("proto: unexpected end of group")
)
View Source
var IbcSequenceHeightKey = []byte{0x34}

IbcSequenceHeightKey indexes the gravity -> ibc sequence block height

View Source
var OracleTotalDepositKey = []byte{0x11}
View Source
var ParamOracleDepositThreshold = []byte("OracleDepositThreshold")
View Source
var ParamStoreOracles = []byte("Oracles")

Functions

func GetIbcSequenceHeightKey

func GetIbcSequenceHeightKey(sourcePort, sourceChannel string, sequence uint64) []byte

GetIbcSequenceHeightKey returns the following key format

func GetParamSetPairs

func GetParamSetPairs(params *types.Params) paramtypes.ParamSetPairs

Types

type LegacyOracle

type LegacyOracle struct {
	OracleAddress       string     `protobuf:"bytes,1,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"`
	OrchestratorAddress string     `protobuf:"bytes,2,opt,name=orchestrator_address,json=orchestratorAddress,proto3" json:"orchestrator_address,omitempty"`
	ExternalAddress     string     `protobuf:"bytes,3,opt,name=external_address,json=externalAddress,proto3" json:"external_address,omitempty"`
	DepositAmount       types.Coin `protobuf:"bytes,4,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount"`
	// start oracle height
	StartHeight  int64 `protobuf:"varint,5,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	Jailed       bool  `protobuf:"varint,6,opt,name=jailed,proto3" json:"jailed,omitempty"`
	JailedHeight int64 `protobuf:"varint,7,opt,name=jailed_height,json=jailedHeight,proto3" json:"jailed_height,omitempty"`
}

func (*LegacyOracle) Descriptor

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

func (*LegacyOracle) GetDepositAmount

func (m *LegacyOracle) GetDepositAmount() types.Coin

func (*LegacyOracle) GetExternalAddress

func (m *LegacyOracle) GetExternalAddress() string

func (*LegacyOracle) GetJailed

func (m *LegacyOracle) GetJailed() bool

func (*LegacyOracle) GetJailedHeight

func (m *LegacyOracle) GetJailedHeight() int64

func (*LegacyOracle) GetOracleAddress

func (m *LegacyOracle) GetOracleAddress() string

func (*LegacyOracle) GetOrchestratorAddress

func (m *LegacyOracle) GetOrchestratorAddress() string

func (*LegacyOracle) GetStartHeight

func (m *LegacyOracle) GetStartHeight() int64

func (*LegacyOracle) Marshal

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

func (*LegacyOracle) MarshalTo

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

func (*LegacyOracle) MarshalToSizedBuffer

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

func (*LegacyOracle) ProtoMessage

func (*LegacyOracle) ProtoMessage()

func (*LegacyOracle) Reset

func (m *LegacyOracle) Reset()

func (*LegacyOracle) Size

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

func (*LegacyOracle) String

func (m *LegacyOracle) String() string

func (*LegacyOracle) Unmarshal

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

func (*LegacyOracle) XXX_DiscardUnknown

func (m *LegacyOracle) XXX_DiscardUnknown()

func (*LegacyOracle) XXX_Marshal

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

func (*LegacyOracle) XXX_Merge

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

func (*LegacyOracle) XXX_Size

func (m *LegacyOracle) XXX_Size() int

func (*LegacyOracle) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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