Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultRpcURL = "http://localhost:8545"
Variables ¶
This section is empty.
Functions ¶
func ValidateContractInfos ¶
func ValidateContractInfos(cis []ContractInfo) error
func WriteConfig ¶
func WriteContractInfos ¶
func WriteContractInfos(path string, infos []ContractInfo) error
WriteContractInfos writes the contract information to a file
Types ¶
type Config ¶
type Config struct { RpcURL string `toml:"rpc_url"` PrivateKey string `toml:"private_key"` ChainId uint64 `toml:"chain_id"` WaitTime string `toml:"wait_time"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func ReadConfig ¶
type ContractInfo ¶
func ReadContractInfos ¶
func ReadContractInfos(path string) ([]ContractInfo, error)
func (ContractInfo) Validate ¶
func (ci ContractInfo) Validate() error
Click to show internal directories.
Click to hide internal directories.