Documentation ¶
Overview ¶
Package abi implements a Solidity ABI lexer and parser.
Index ¶
- Variables
- func Copy(dst, src any) error
- type Arguments
- func (a Arguments) Decode(data []byte, args ...any) error
- func (a Arguments) Encode(args ...any) ([]byte, error)
- func (a Arguments) EncodeWithSelector(selector [4]byte, args ...any) ([]byte, error)
- func (a Arguments) EncodeWithSignature(signature string, args ...any) ([]byte, error)
- func (a Arguments) Signature() string
- func (a Arguments) SignatureWithName(name string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSyntax = errors.New("syntax error")
Functions ¶
Types ¶
type Arguments ¶
Arguments represents a slice of abi.Argument's.
func ParseWithName ¶
ParseWithName parses the given Solidity function/event signature and returns its name and arguments.
func (Arguments) EncodeWithSelector ¶
EncodeWithSelector ABI-encodes the given arguments args prepended by the given selector.
func (Arguments) EncodeWithSignature ¶
EncodeWithSignature ABI-encodes the given arguments args prepended by the first 4 bytes of the hash of the given signature.
func (Arguments) SignatureWithName ¶
Click to show internal directories.
Click to hide internal directories.