Documentation ¶
Overview ¶
Package abi details abis
Index ¶
- Variables
- func ExtractSigs(code string) []types.Function
- func LoadAbi(conn *rpc.Connection, address base.Address, abiMap *SelectorSyncMap) error
- type AddressSyncMap
- type SelectorSyncMap
- func (abiMap *SelectorSyncMap) Count() int64
- func (abiMap *SelectorSyncMap) GetValue(encoding string) *types.Function
- func (abiMap *SelectorSyncMap) Keys() []string
- func (abiMap *SelectorSyncMap) LoadKnownAbis(chain string) (err error)
- func (abiMap *SelectorSyncMap) SetValue(encoding string, function *types.Function)
- func (abiMap *SelectorSyncMap) Values() []types.Function
Constants ¶
This section is empty.
Variables ¶
View Source
var AbiNotFound = `[{"name":"AbiNotFound","type":"function"}]`
Functions ¶
func ExtractSigs ¶
func LoadAbi ¶
func LoadAbi(conn *rpc.Connection, address base.Address, abiMap *SelectorSyncMap) error
LoadAbi tries to load ABI from any source (local file, cache, download from 3rd party)
Types ¶
type AddressSyncMap ¶
func (*AddressSyncMap) Count ¶
func (addrMap *AddressSyncMap) Count() int64
func (*AddressSyncMap) Keys ¶
func (addrMap *AddressSyncMap) Keys() []base.Address
func (*AddressSyncMap) SetValue ¶
func (addrMap *AddressSyncMap) SetValue(addr base.Address, set bool)
func (*AddressSyncMap) Values ¶
func (addrMap *AddressSyncMap) Values() []bool
type SelectorSyncMap ¶
func (*SelectorSyncMap) Count ¶
func (abiMap *SelectorSyncMap) Count() int64
func (*SelectorSyncMap) GetValue ¶
func (abiMap *SelectorSyncMap) GetValue(encoding string) *types.Function
func (*SelectorSyncMap) Keys ¶
func (abiMap *SelectorSyncMap) Keys() []string
func (*SelectorSyncMap) LoadKnownAbis ¶
func (abiMap *SelectorSyncMap) LoadKnownAbis(chain string) (err error)
LoadKnownAbis loads known ABI files into abiMap, refreshing binary cache if needed
func (*SelectorSyncMap) SetValue ¶
func (abiMap *SelectorSyncMap) SetValue(encoding string, function *types.Function)
func (*SelectorSyncMap) Values ¶
func (abiMap *SelectorSyncMap) Values() []types.Function
Click to show internal directories.
Click to hide internal directories.