Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 v0.3.0 Feb 28, 2024 Changes in this version + var ErrNotFound = errors.New("not found") + func WeiToAlpha(wei *big.Int) uint64 + type CallAttributes struct + Data []byte + From []byte + Gas uint64 + To []byte + Value *big.Int + type EvmClient struct + func New(abAddr url.URL) *EvmClient + func (e *EvmClient) Call(ctx context.Context, callAttr *CallAttributes) (*ProcessingDetails, error) + func (e *EvmClient) GetBalance(ctx context.Context, ethAddr []byte) (string, []byte, error) + func (e *EvmClient) GetFeeCreditBill(ctx context.Context, unitID types.UnitID) (*sdk.Bill, error) + func (e *EvmClient) GetGasPrice(ctx context.Context) (string, error) + func (e *EvmClient) GetInfo(ctx context.Context) (*sdk.InfoResponse, error) + func (e *EvmClient) GetRoundNumber(ctx context.Context) (*sdk.RoundNumber, error) + func (e *EvmClient) GetTransactionCount(ctx context.Context, ethAddr []byte) (uint64, error) + func (e *EvmClient) GetTxProof(ctx context.Context, _ types.UnitID, txHash sdk.TxHash) (*sdk.Proof, error) + func (e *EvmClient) PostTransaction(ctx context.Context, tx *types.TransactionOrder) error + type ProcessingDetails struct + ContractAddr common.Address + ErrorDetails string + Logs []*statedb.LogEntry + ReturnData []byte + type Result struct + ActualFee uint64 + Details *ProcessingDetails + Success bool + type TxAttributes struct + Data []byte + From []byte + Gas uint64 + Nonce uint64 + To []byte + Value *big.Int