afc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	RpcClients []rpc.Client
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(providers []string, network types.ChainNetwork, cfg *util.Config) (*Executor, error)

NewExecutor returns the AFC executor instance

func (*Executor) Claim

func (e *Executor) Claim(chainId uint16, sequence uint64, payload []byte) (string, error)

Claim sends claim to Axim Chain

func (*Executor) GetAddress

func (e *Executor) GetAddress() types.ValAddress

GetAddress returns validator address of the oracle relayer

func (*Executor) GetCurrentSequence

func (e *Executor) GetCurrentSequence(chainId uint16) (int64, error)

GetCurrentSequence return the current oracle sequence of Axim Chain

func (*Executor) GetProphecy

func (e *Executor) GetProphecy(chainId uint16, sequence int64) (*msg.Prophecy, error)

GetProphecy returns the prophecy of the given sequence

Jump to

Keyboard shortcuts

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