Documentation ¶
Overview ¶
Package gnosis provides helper functionality to work with gnosis multisig wallets and apps therein.
Index ¶
- type EmptyAddress
- type GnosisCSVTransfer
- func NewERC1155Transfer(collection common.Address, id uint64, amount uint32, receiver common.Address) *GnosisCSVTransfer
- func NewERC20Transfer(coin common.Address, amount decimal.Decimal, receiver common.Address) *GnosisCSVTransfer
- func NewERC721Transfer(collection common.Address, id uint64, receiver common.Address) *GnosisCSVTransfer
- func NewETHTransfer(amount decimal.Decimal, receiver common.Address) *GnosisCSVTransfer
- type TokenType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyAddress ¶
EmptyAddress is a wrapper around `common.Address` that marshals as empty string if the address is the ZeroAddress
func (EmptyAddress) String ¶
func (a EmptyAddress) String() string
type GnosisCSVTransfer ¶
type GnosisCSVTransfer struct { TokenType TokenType `csv:"token_type"` TokenAddress EmptyAddress `csv:"token_address"` Receiver common.Address `csv:"receiver"` Amount decimal.Decimal `csv:"amount"` ID uint64 `csv:"id"` }
GnosisCSVTransfer encodes a transfer with Gnosis' CSV app (https://github.com/bh2smith/safe-airdrop). Slices of this struct are intended to be converted into CSV format using `gocarina/gocsv` to be consumed by Gnosis' CSV app.
func NewERC1155Transfer ¶
func NewERC1155Transfer(collection common.Address, id uint64, amount uint32, receiver common.Address) *GnosisCSVTransfer
NewERC1155Transfer creates a new ERC1155 transfer for Gnosis' CSV app.
func NewERC20Transfer ¶
func NewERC20Transfer(coin common.Address, amount decimal.Decimal, receiver common.Address) *GnosisCSVTransfer
NewERC20Transfer creates a new ERC20 transfer for Gnosis' CSV app.
func NewERC721Transfer ¶
func NewERC721Transfer(collection common.Address, id uint64, receiver common.Address) *GnosisCSVTransfer
NewERC721Transfer creates a new ERC721 transfer for Gnosis' CSV app.
func NewETHTransfer ¶
func NewETHTransfer(amount decimal.Decimal, receiver common.Address) *GnosisCSVTransfer
NewETHTransfer creates a new ETH transfer for Gnosis' CSV app.