Documentation ¶
Index ¶
- Constants
- Variables
- func Build(ctx context.Context) error
- func Chain(ctx context.Context) error
- func Clean(ctx context.Context) error
- func CreateWallet(ctx context.Context, err error) (common.Address, *ecdsa.PrivateKey, *ecdsa.PublicKey, error)
- func DeployContract(ctx context.Context, rpc *ethclient.Client, privateKey *ecdsa.PrivateKey, ...) (*common.Address, error)
- func GetBalancePeriodically(ctx context.Context, address common.Address, client *ethclient.Client, ...)
- func GetBlockHeaderOrError(ctx context.Context, client *ethclient.Client) *types.Header
- func GetBlockOrError(ctx context.Context, client *ethclient.Client, header *types.Header) *types.Block
- func GetBlocksPeriodically(ctx context.Context, client *ethclient.Client)
- func Init(ctx context.Context) error
- func ListenForContractEvents(ctx context.Context, client *ethclient.Client, contactAddr string) error
- func LogBlock(block *types.Block)
- func Test(ctx context.Context) error
- type EthosConfig
Constants ¶
View Source
const EthosFile = "ethos.yaml"
Variables ¶
View Source
var Config = DefaultEthosConfig()
Functions ¶
func CreateWallet ¶
func DeployContract ¶
func GetBalancePeriodically ¶
func GetBlockHeaderOrError ¶
func GetBlockOrError ¶
func GetBlocksPeriodically ¶
func ListenForContractEvents ¶
Types ¶
type EthosConfig ¶
type EthosConfig struct { Compiler string `yaml:"compiler"` ContractsDir string `yaml:"contracts_dir"` ContractBindingsDir string `yaml:"contracts_bindings_dir"` ContractsBindingsPkg string `yaml:"contracts_bindings_pkg"` BuildDir string `yaml:"build_dir"` ChainID int64 `yaml:"chain_id"` EndpointJsonRPC string `yaml:"endpoint_json_rpc"` EndpointWebSocket string `yaml:"endpoint_web_socket"` }
func DefaultEthosConfig ¶
func DefaultEthosConfig() *EthosConfig
Click to show internal directories.
Click to hide internal directories.