Documentation ¶
Index ¶
- Variables
- func CancunSenderPub(s ethTypes.Signer, tx *ethTypes.Transaction) ([]byte, error)
- func CloseOrLog(c io.Closer, logger *log.Logger)
- func EIP155SenderPub(s ethTypes.Signer, tx *ethTypes.Transaction) ([]byte, error)
- func Eip2930SenderPub(s ethTypes.Signer, tx *ethTypes.Transaction) ([]byte, error)
- func ExtractAddresses(accounts map[apiTypes.Address]bool) []string
- func HomesteadSenderPub(tx *ethTypes.Transaction) ([]byte, error)
- func Keccak256(data []byte) []byte
- func LondonSenderPub(s ethTypes.Signer, tx *ethTypes.Transaction) ([]byte, error)
- func OpenUtxNoVerify(utx *sdkTypes.UnverifiedTransaction) (*sdkTypes.Transaction, error)
- func QuantityFromBytes(value []byte) quantity.Quantity
- func RecoverPlainPub(sighash ethCommon.Hash, R, S, Vb *big.Int, homestead bool) ([]byte, error)
- func SliceEthAddress(b32 []byte) []byte
- func StringifyAddressSpec(as *sdkTypes.AddressSpec) (apiTypes.Address, error)
- func StringifyBytes(value []byte) string
- func StringifyEthAddress(ethAddr []byte) (apiTypes.Address, error)
- func StringifyNativeDenomination(amount *sdkTypes.BaseUnits) (string, error)
- func StringifyOcAddress(ocAddr address.Address) (apiTypes.Address, error)
- func StringifySdkAddress(sdkAddr *sdkTypes.Address) (apiTypes.Address, error)
- func WriteOrLog(w io.Writer, p []byte, logger *log.Logger)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TopicERC20Transfer = Keccak256([]byte("Transfer(address,address,uint256)")) TopicERC20Approval = Keccak256([]byte("Approval(address,address,uint256)")) )
View Source
var ZeroEthAddr = make([]byte, 20)
Functions ¶
func CancunSenderPub ¶ added in v0.1.17
CancunSenderPub is adapted from cancunSigner.Sender
func EIP155SenderPub ¶ added in v0.1.17
EIP155SenderPub is adapted from EIP155Signer.Sender
func Eip2930SenderPub ¶
Eip2930SenderPub is adapted from eip2930Signer.Sender
func HomesteadSenderPub ¶
func HomesteadSenderPub(tx *ethTypes.Transaction) ([]byte, error)
HomesteadSenderPub is adapted from HomesteadSigner.Sender
func LondonSenderPub ¶
LondonSenderPub is adapted from londonSigner.Sender
func OpenUtxNoVerify ¶
func OpenUtxNoVerify(utx *sdkTypes.UnverifiedTransaction) (*sdkTypes.Transaction, error)
OpenUtxNoVerify decodes the transaction inside an UnverifiedTransaction without verifying the authentication. And that's okay for our use case, where we obtain transactions that are known to be properly authenticated from a trusted node.
func QuantityFromBytes ¶
func RecoverPlainPub ¶
RecoverPlainPub is adapted from recoverPlain
func SliceEthAddress ¶
func StringifyAddressSpec ¶
func StringifyAddressSpec(as *sdkTypes.AddressSpec) (apiTypes.Address, error)
func StringifyBytes ¶
func StringifySdkAddress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.