Documentation ¶
Index ¶
- func AddressToBytes32(address common.Address) []byte
- func ConstructGnosisSafeTx(request *types.SafeTx) *core.GnosisSafeTx
- func GetApprovedHashSafeTxn(safeTxn *core.GnosisSafeTx, owner common.Address) error
- func GetEncodedExecTransaction(safeTxn *core.GnosisSafeTx, abi *abi.ABI) ([]byte, error)
- func GetEncodedMultiSendTransaction(callData []byte, abi *abi.ABI) ([]byte, error)
- func GetEncodedSafeTx(safe common.Address, safeMultiSendAddress common.Address, ...) (*types.SafeTx, error)
- func GetModuleTransaction(callData []byte, to common.Address, value *big.Int, operation uint8) ([]byte, error)
- func GetSafeSignatureHash(safeTxn *core.GnosisSafeTx) ([]byte, error)
- func GetSignedSafeTxn(safeTxn *core.GnosisSafeTx, signatures [][]byte) error
- func PackTransactions(request *types.SafeMultiSendRequest) ([]byte, *big.Int, error)
- func PackTxn(operation uint8, toAddress common.Address, value *big.Int, callData []byte) ([]byte, error)
- type TightPack
- func (pack *TightPack) AddAddress(address common.Address) error
- func (pack *TightPack) AddBytes(data []byte) error
- func (pack *TightPack) AddUint256(data *big.Int) error
- func (pack *TightPack) AddUint32(data uint32) error
- func (pack *TightPack) AddUint8(data uint8) error
- func (pack *TightPack) Pack() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToBytes32 ¶
func ConstructGnosisSafeTx ¶
func ConstructGnosisSafeTx(request *types.SafeTx) *core.GnosisSafeTx
func GetApprovedHashSafeTxn ¶
func GetApprovedHashSafeTxn(safeTxn *core.GnosisSafeTx, owner common.Address) error
GetApprovedHashSafeTxn see https://github.com/safe-global/safe-contracts/blob/main/contracts/Safe.sol#L317
func GetEncodedSafeTx ¶
func GetModuleTransaction ¶
func GetSafeSignatureHash ¶
func GetSafeSignatureHash(safeTxn *core.GnosisSafeTx) ([]byte, error)
func GetSignedSafeTxn ¶
func GetSignedSafeTxn(safeTxn *core.GnosisSafeTx, signatures [][]byte) error
func PackTransactions ¶
Types ¶
type TightPack ¶
type TightPack struct {
// contains filtered or unexported fields
}
func NewPackBuilder ¶
func NewPackBuilder() *TightPack
Click to show internal directories.
Click to hide internal directories.