transactor

package
v0.0.0-...-7c2dc49 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transactor

type Transactor interface {
	// Start starts the transactor's routine.
	Start() error

	// Stop safely stops the transactor.
	Stop()

	// SetTransactionOpts sets a key to given chain and chain AP.
	SetTransactionOpts(chainID *big.Int, chainAP string, key []byte) error

	// GetChainAP gets a chain ap associated given chain id.
	GetChainAP(chainID *big.Int) (string, error)

	// GetAuth gets the auth for given chain id.
	GetAuth(chainID *big.Int) (*bind.TransactOpts, error)
}

Transactor is an interface for a chain transactor.

func NewTransactorImplV1

func NewTransactorImplV1(path string) Transactor

NewTransactorImplV1 creates a new transactor.

type TransactorImplV1

type TransactorImplV1 struct {
	// contains filtered or unexported fields
}

TransactorImplV1 implements the Transactor interface.

func (*TransactorImplV1) GetAuth

func (t *TransactorImplV1) GetAuth(chainID *big.Int) (*bind.TransactOpts, error)

GetAuth gets the auth for given chain id.

func (*TransactorImplV1) GetChainAP

func (t *TransactorImplV1) GetChainAP(chainID *big.Int) (string, error)

GetChainAP gets a chain ap associated given chain id.

func (*TransactorImplV1) SetTransactionOpts

func (t *TransactorImplV1) SetTransactionOpts(chainID *big.Int, chainAP string, key []byte) error

SetTransactionOpts sets a key to given chain and chain AP.

func (*TransactorImplV1) Start

func (t *TransactorImplV1) Start() error

Start starts the transactor's routine.

func (*TransactorImplV1) Stop

func (t *TransactorImplV1) Stop()

Stop safely stops the transactor.

Jump to

Keyboard shortcuts

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