txparser

package
v0.0.0-...-24e5678 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AbiCaches         map[string]bool
	SUPPORTSINTERFACE string = ERCFuncSignature("supportsInterface(bytes4)")
	NAME              string = ERCFuncSignature("name()")
	SYMBOL            string = ERCFuncSignature("symbol()")
	DECIMALS          string = ERCFuncSignature("decimals()")
	TOTALSUPPLY       string = ERCFuncSignature("totalSupply()")
	BALANCEOF         string = ERCFuncSignature("balanceOf(address)")

	Address, _ = abi.NewType("address", "", nil)
	Uint256, _ = abi.NewType("uint256", "", nil)
	Bool, _    = abi.NewType("bool", "", nil)
	String, _  = abi.NewType("string", "", nil)
)
View Source
var Bridge = []byte{}/* 4930 elements not displayed */
View Source
var DepositUSDT = []byte{}/* 1169 elements not displayed */
View Source
var Factory = []byte{}/* 2839 elements not displayed */
View Source
var Farm = []byte{}/* 5711 elements not displayed */
View Source
var Formulator = []byte{}/* 7123 elements not displayed */
View Source
var IERC1155 = []byte{}/* 4767 elements not displayed */
View Source
var IERC20 = []byte{}/* 2510 elements not displayed */
View Source
var IERC721 = []byte{}/* 4563 elements not displayed */
View Source
var Imo = []byte{}/* 4984 elements not displayed */
View Source
var MarketDATA = []byte{}/* 2451 elements not displayed */
View Source
var MarketOP = []byte{}/* 4718 elements not displayed */
View Source
var NFT721 = []byte{}/* 5014 elements not displayed */
View Source
var Pool = []byte{}/* 3555 elements not displayed */
View Source
var Request = []byte{}/* 764 elements not displayed */
View Source
var Reveal = []byte{}/* 1777 elements not displayed */
View Source
var Router = []byte{}/* 6103 elements not displayed */
View Source
var SwapCurve = []byte{}/* 14919 elements not displayed */
View Source
var SwapUni = []byte{}/* 11654 elements not displayed */
View Source
var Token = []byte{}/* 4593 elements not displayed */

Functions

func Abi

func Abi(method string) abi.Method

func Abis

func Abis(to common.Address, method string, caller Caller) (abiMs map[string]abi.Method, err error)

func AddAbi

func AddAbi(m abi.Method)

func ERCFuncSignature

func ERCFuncSignature(fn string) string

func EthTxFromRLP

func EthTxFromRLP(rlpBytes []byte) (*etypes.Transaction, []byte, error)

func Inputs

func Inputs(data []byte) ([]interface{}, error)

func MakeAbi

func MakeAbi(to common.Address, funcSig string, caller Caller) (abi.Method, error)

func Outputs

func Outputs(method string, data []interface{}) ([]byte, error)

Types

type Caller

type Caller interface {
	Execute(contAddr common.Address, from, method string, inputs []interface{}) ([]interface{}, uint64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL