types

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalTxn

type InternalTxn struct {
	Operation uint8          `json:"operation"`
	To        common.Address `json:"to"`
	Value     *big.Int       `json:"value"`
	Data      hexutil.Bytes  `json:"data"`
}

type Metadata

type Metadata struct {
	Version               string           `json:"version"`
	SafeAddress           common.Address   `json:"safeAddress"`
	Owners                []common.Address `json:"owners"`
	Threshold             uint64           `json:"threshold"`
	Nonce                 uint64           `json:"nonce"`
	IsConsole             bool             `json:"isConsole"`
	ModeratedAccountOwner common.Address   `json:"ModeratedAccountOwner"`
	GuardAddress          common.Address   `json:"-"`
}

type SafeMultiSendRequest

type SafeMultiSendRequest struct {
	Transactions []Transaction  `json:"transactions"`
	ChainId      int64          `json:"chain_id"`
	From         common.Address `json:"from"`
}

type SafeMultiSigEvent

type SafeMultiSigEvent struct {
	InternalTxn
	SafeMultiSigInput
	AdditionalInfo hexutil.Bytes `json:"additionalInfo"`
}

type SafeMultiSigInput

type SafeMultiSigInput struct {
	InternalTxn    `mapstructure:",squash"`
	SafeTxGas      *big.Int       `json:"safeTxGas"`
	BaseGas        *big.Int       `json:"baseGas"`
	GasPrice       *big.Int       `json:"gasPrice"`
	GasToken       common.Address `json:"gasToken"`
	RefundReceiver common.Address `json:"refundReceiver"`
	Signatures     hexutil.Bytes  `json:"signatures"`
}

type SafeTx

type SafeTx struct {
	// These fields are used both on input and output
	Safe           common.MixedcaseAddress `json:"safe"`
	To             common.MixedcaseAddress `json:"to"`
	Value          math.Decimal256         `json:"value"`
	GasPrice       math.Decimal256         `json:"gasPrice"`
	Data           *hexutil.Bytes          `json:"data"`
	Operation      uint8                   `json:"operation"`
	GasToken       common.Address          `json:"gasToken"`
	RefundReceiver common.Address          `json:"refundReceiver"`
	BaseGas        big.Int                 `json:"baseGas"`
	SafeTxGas      big.Int                 `json:"safeTxGas"`
	Nonce          big.Int                 `json:"nonce"`
	InputExpHash   common.Hash             `json:"safeTxHash,omitempty"`
	ChainId        *math.HexOrDecimal256   `json:"chainId,omitempty"`
}

SafeTx is derived from the core.GnosisSafeTx type and does not include the output fields which makes easy for the marshalling and unmarshalling

type Transaction

type Transaction interface {
	From() common.Address
	To() common.Address
	CallData() string
	Value() *big.Int
	Operation() uint8
}

Jump to

Keyboard shortcuts

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