Documentation
¶
Index ¶
- type Transactor
- type TransactorImplV1
- func (t *TransactorImplV1) GetAuth(chainID *big.Int) (*bind.TransactOpts, error)
- func (t *TransactorImplV1) GetChainAP(chainID *big.Int) (string, error)
- func (t *TransactorImplV1) SetTransactionOpts(chainID *big.Int, chainAP string, key []byte) error
- func (t *TransactorImplV1) Start() error
- func (t *TransactorImplV1) Stop()
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 ¶
SetTransactionOpts sets a key to given chain and chain AP.
func (*TransactorImplV1) Start ¶
func (t *TransactorImplV1) Start() error
Start starts the transactor's routine.
Click to show internal directories.
Click to hide internal directories.