Documentation ¶
Index ¶
- Variables
- func DataDir(operatingSystem, userDataDir, homeDir string) string
- func DefaultDataDir() (string, error)
- func Flatten[T any](slices ...[]T) []T
- func Gzip64Decode(data string) ([]byte, error)
- func Gzip64Encode(data []byte) (string, error)
- func HexToFelt(t testing.TB, hex string) *felt.Felt
- type LogLevel
- type Logger
- type Network
- func (n Network) ChainID() *felt.Felt
- func (n Network) ChainIDString() string
- func (n Network) CoreContractAddress() (common.Address, error)
- func (n Network) DefaultL1ChainID() *big.Int
- func (n Network) FeederURL() string
- func (n Network) GatewayURL() string
- func (n *Network) Set(s string) error
- func (n Network) String() string
- func (n *Network) Type() string
- func (n *Network) UnmarshalText(text []byte) error
- type SimpleLogger
- type ZapLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownLogLevel = errors.New("unknown log level (known: debug, info, warn, error)")
View Source
var ErrUnknownNetwork = errors.New("unknown network (known: mainnet, goerli, goerli2, integration)")
Functions ¶
func DefaultDataDir ¶
func Gzip64Decode ¶ added in v0.4.0
func Gzip64Encode ¶ added in v0.4.0
Types ¶
type Logger ¶
type Logger interface { SimpleLogger pebble.Logger }
type Network ¶
type Network int
func (Network) ChainIDString ¶ added in v0.4.0
func (Network) CoreContractAddress ¶ added in v0.4.0
func (Network) DefaultL1ChainID ¶ added in v0.4.0
func (Network) GatewayURL ¶ added in v0.4.0
GatewayURL returns URL for write commands
func (*Network) UnmarshalText ¶ added in v0.2.1
type SimpleLogger ¶
Click to show internal directories.
Click to hide internal directories.