Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrivKeyFromKeyStore ¶
func NewPrivKeyFromKeyStore(keystoreFile, passwordFile string, needPass bool) (*ecdsa.PrivateKey, error)
Types ¶
type Config ¶
type Config struct { ChainId *big.Int `yaml:"chain_id" mapstructure:"chain_id"` RpcUrl string `yaml:"rpc_url" mapstructure:"rpc_url"` EnabledRequestLog bool `yaml:"enabled_request_log" mapstructure:"enabled_request_log"` Timeout time.Duration `yaml:"timeout" mapstructure:"timeout"` }
func NewDefConfig ¶
func NewDefConfig() Config
type LoggerTransport ¶
type LoggerTransport struct { http.RoundTripper // contains filtered or unexported fields }
type RPCClient ¶
type RPCClient interface { ChainID(ctx context.Context) (*big.Int, error) BlockNumber(ctx context.Context) (uint64, error) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) bind.ContractCaller bind.PendingContractCaller bind.ContractTransactor bind.ContractFilterer bind.DeployBackend bind.ContractBackend ethereum.ChainStateReader Close() }
Click to show internal directories.
Click to hide internal directories.