calldec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SPAM_SIGNATURES = map[string]bool{
		"join_tg_invmru_haha":          true,
		"CheckOutBoringSecurity":       true,
		"niceFunctionHerePlzClick":     true,
		"watch_tg_invmru":              true,
		"func_2093253501":              true,
		"many_msg_babbage":             true,
		"sign_szabo_bytecode":          true,
		"JunionYoutubeXD_dashhvetozhe": true,
		"cryethereum_":                 true,
		"check_out_my_new_website":     true,
		"please_fix_collisions":        true,
	}
)

Functions

func DecodeCalldata

func DecodeCalldata(m *types.MouseTx) (err error)

Convert ethereum calldata to a local data structure for easier handling

func NewMouseTx

func NewMouseTx(hash common.Hash, cost *big.Int, gasLimit uint64, gasPrice *big.Int, nonce uint64, to *common.Address, value *big.Int, txType uint8) *types.MouseTx

func ParseSignatures

func ParseSignatures(signatures []*types.Signature) (err error)

Parses signatures string for name and arguments into a local data structure for easier handling

func SigToText

func SigToText(sig string) (textSignatures []string, hexSignatures []string, err error)

Uses 4byte directory to convert a function signature (prefixed with 0x) to a human readable text signature

func SigToText2

func SigToText2(sig string) (signature string, err error)

Uses samczsun's endpoint to convert sig to name

Types

This section is empty.

Jump to

Keyboard shortcuts

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