encoders

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressToBytes32

func AddressToBytes32(address common.Address) []byte

func ConstructGnosisSafeTx

func ConstructGnosisSafeTx(request *types.SafeTx) *core.GnosisSafeTx

func GetEncodedExecTransaction

func GetEncodedExecTransaction(safeTxn *core.GnosisSafeTx, abi *abi.ABI) ([]byte, error)

func GetEncodedMultiSendTransaction

func GetEncodedMultiSendTransaction(callData []byte, abi *abi.ABI) ([]byte, error)

func GetEncodedSafeTx

func GetEncodedSafeTx(
	safe common.Address,
	safeMultiSendAddress common.Address,
	safeMultiSendAbi *abi.ABI,
	transactions []types.Transaction,
	chainId int64,
) (*types.SafeTx, error)

func GetModuleTransaction

func GetModuleTransaction(callData []byte, to common.Address, value *big.Int, operation uint8) ([]byte, error)

func GetSafeSignatureHash

func GetSafeSignatureHash(safeTxn *core.GnosisSafeTx) ([]byte, error)

func GetSignedSafeTxn

func GetSignedSafeTxn(safeTxn *core.GnosisSafeTx, signatures [][]byte) error

func PackTransactions

func PackTransactions(request *types.SafeMultiSendRequest) ([]byte, *big.Int, error)

func PackTxn

func PackTxn(operation uint8, toAddress common.Address, value *big.Int, callData []byte) ([]byte, error)

Types

type TightPack

type TightPack struct {
	// contains filtered or unexported fields
}

func NewPackBuilder

func NewPackBuilder() *TightPack

func (*TightPack) AddAddress

func (pack *TightPack) AddAddress(address common.Address) error

func (*TightPack) AddBytes

func (pack *TightPack) AddBytes(data []byte) error

func (*TightPack) AddUint256

func (pack *TightPack) AddUint256(data *big.Int) error

func (*TightPack) AddUint32

func (pack *TightPack) AddUint32(data uint32) error

func (*TightPack) AddUint8

func (pack *TightPack) AddUint8(data uint8) error

func (*TightPack) Pack

func (pack *TightPack) Pack() ([]byte, error)

Jump to

Keyboard shortcuts

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