abiutil

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BRIDGE_ABI = "" /* 3173-byte string literal not displayed */
View Source
const GNOSIS_ABI = "" /* 14415-byte string literal not displayed */
View Source
const ZERO_ADDR = "0x0000000000000000000000000000000000000000"

Variables

This section is empty.

Functions

func GenerateExecTransaction

func GenerateExecTransaction(to string, txdata string, signatures string) ([]byte, error)

GenerateExecTransaction generates gnosis safe execTransaction input data

func GenerateMintTxData

func GenerateMintTxData(tokenAddress string, recipientAddress string, amount *big.Int) ([]byte, error)

GenerateMintTx generates hex-encoded string, containing the instruction for gnosis safe to mint token via bridge

func NewABI

func NewABI(abiBytes []byte) (*abi.ABI, error)

NewABI construct ABI from []byte

Types

type BurnData

type BurnData struct {
	Token       common.Address
	Destination string
	Amount      *big.Int
}

func UnpackBurnTxInputData

func UnpackBurnTxInputData(data string) (*BurnData, error)

UnpackBurnTxInputData unpacks bridge tx input data in hex format (without 0x)

Jump to

Keyboard shortcuts

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