starknet

package
v2.5.1-automation-2023... Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChain added in v2.6.0

func NewChain(cfg *StarknetConfig, opts ChainOpts) (starkchain.Chain, error)

Types

type ChainOpts added in v2.6.0

type ChainOpts struct {
	Logger logger.Logger
	// the implementation used here needs to be co-ordinated with the starknet transaction manager keystore adapter
	KeyStore loop.Keystore
}

func (*ChainOpts) Name added in v2.6.0

func (o *ChainOpts) Name() string

func (*ChainOpts) Validate added in v2.6.0

func (o *ChainOpts) Validate() (err error)

type StarknetConfig

type StarknetConfig struct {
	ChainID *string
	// Do not access directly. Use [IsEnabled]
	Enabled *bool
	stkcfg.Chain
	Nodes StarknetNodes
}

func (*StarknetConfig) ConfirmationPoll added in v2.2.0

func (c *StarknetConfig) ConfirmationPoll() time.Duration

func (*StarknetConfig) IsEnabled

func (c *StarknetConfig) IsEnabled() bool

func (*StarknetConfig) ListNodes added in v2.6.0

func (c *StarknetConfig) ListNodes() ([]db.Node, error)

func (*StarknetConfig) OCR2CachePollPeriod

func (c *StarknetConfig) OCR2CachePollPeriod() time.Duration

func (*StarknetConfig) OCR2CacheTTL

func (c *StarknetConfig) OCR2CacheTTL() time.Duration

func (*StarknetConfig) RequestTimeout

func (c *StarknetConfig) RequestTimeout() time.Duration

func (*StarknetConfig) SetFrom

func (c *StarknetConfig) SetFrom(f *StarknetConfig)

func (*StarknetConfig) TOMLString

func (c *StarknetConfig) TOMLString() (string, error)

func (*StarknetConfig) TxTimeout

func (c *StarknetConfig) TxTimeout() time.Duration

func (*StarknetConfig) ValidateConfig

func (c *StarknetConfig) ValidateConfig() (err error)

type StarknetConfigs

type StarknetConfigs []*StarknetConfig

func (*StarknetConfigs) SetFrom

func (cs *StarknetConfigs) SetFrom(fs *StarknetConfigs) (err error)

func (StarknetConfigs) ValidateConfig

func (cs StarknetConfigs) ValidateConfig() (err error)

type StarknetNodes

type StarknetNodes []*stkcfg.Node

func (*StarknetNodes) SetFrom

func (ns *StarknetNodes) SetFrom(fs *StarknetNodes)

Jump to

Keyboard shortcuts

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