Documentation ¶
Index ¶
- Variables
- func LogAsTypedItem(event abi.Event, l ethtypes.Log) (types.Item, error)
- func PrintAmount(amount *big.Int, dec uint8, symbol string) string
- func PrintEthFromDecimal(dec decimal.Decimal) string
- func PrintGWei(wei *big.Int) string
- func PrintItem(item types.Item, format string) error
- func PrintRawLog(l ethtypes.Log)
- func PrintStruct(str interface{}, format string) error
- func PrintTransaction(tx *ethtypes.Transaction, receipt *ethtypes.Receipt)
- type Ceth
- func (c *Ceth) AccountClient() (types.Account, *chain.Eth, error)
- func (c *Ceth) AccountContractClient() (types.Account, types.Contract, *chain.Eth, error)
- func (c *Ceth) GetChainClient() (chain.ChainClient, error)
- func (c *Ceth) GetClient() (*chain.Eth, error)
- func (c *Ceth) GetCurrentContract() (types.Contract, error)
- func (c *Ceth) GetRpcClient(ctx context.Context) (*rpc.Client, error)
- func (c *Ceth) ResolveAddress(address string) (common.Address, error)
- func (c *Ceth) SetDefaultAccount(s string) error
- func (c *Ceth) SetDefaultChain(s string) error
- func (c *Ceth) SetDefaultContract(name string) error
- type CethSettings
- type EncryptionEnvelope
- type JsonRpcRequest
- type JsonRpcResponse
- type Message
- type UniPair
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAccountFileName = ".accounts.yaml"
View Source
var RootCmd = cobra.Command{
Use: "cethacea",
}
Functions ¶
func PrintEthFromDecimal ¶ added in v1.1.2
func PrintRawLog ¶
func PrintStruct ¶ added in v1.2.0
func PrintTransaction ¶
func PrintTransaction(tx *ethtypes.Transaction, receipt *ethtypes.Receipt)
Types ¶
type Ceth ¶
type Ceth struct { AccountRepo *config.AccountRepo ContractRepo *config.ContractRepo ChainManager *config.ChainRepo Settings *CethSettings }
func NewCethContext ¶
func NewCethContext(settings *CethSettings) (*Ceth, error)
func (*Ceth) AccountContractClient ¶
func (*Ceth) GetChainClient ¶
func (c *Ceth) GetChainClient() (chain.ChainClient, error)
func (*Ceth) SetDefaultAccount ¶
func (*Ceth) SetDefaultChain ¶
func (*Ceth) SetDefaultContract ¶
type CethSettings ¶
type CethSettings struct { Contract string Chain string Account string Abi string Format string All bool Debug bool Confirm bool GasTipCap string Gas uint64 }
var Settings CethSettings
type EncryptionEnvelope ¶
type JsonRpcRequest ¶
type JsonRpcResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.