Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatewayAddr ¶
func GatewayAddr() string
GatewayAddr returns the IP address of the Docker gateway. This is, the IP address to access the host machine.
func RandomString ¶
Types ¶
type Artifact ¶
func ReadArtifact ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func (*Chain) DeployContract ¶
type Config ¶
type Config struct {
KettleRPC string `env:"KETTLE_RPC, default=http://localhost:8545"`
// This account is funded in your local SUAVE devnet
// address: 0xBE69d72ca5f88aCba033a063dF5DBe43a4148De0
FundedAccount *PrivKey `env:"KETTLE_PRIVKEY, default=91ab9a7e53c220e6210460b65a7a3bb2ca181412a8a7b43ff336b3df1737ce12"`
L1RPC string `env:"L1_RPC, default=http://localhost:8555"`
// This account is funded in your local L1 devnet
// address: 0xB5fEAfbDD752ad52Afb7e1bD2E40432A485bBB7F
FundedAccountL1 *PrivKey `env:"L1_PRIVKEY, default=6c45335a22461ccdb978b78ab61b238bad2fae4544fb55c14eb096c875ccfc52"`
// Whether to enable L1 or not
L1Enabled bool
}
type Framework ¶
type Framework struct {
KettleAddress common.Address
Suave *Chain
L1 *Chain
// contains filtered or unexported fields
}
func New ¶
func New(opts ...ConfigOption) *Framework
type PrivKey ¶
type PrivKey struct {
Priv *ecdsa.PrivateKey
}
func GeneratePrivKey ¶
func GeneratePrivKey() *PrivKey
func NewPrivKeyFromHex ¶
func (*PrivKey) MarshalPrivKey ¶
func (*PrivKey) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.