Contract IMVDWallet
- Path: contracts/IMVDWallet.sol
- Version: 1
- Title: Wallet
The wallet is used to store all the assets of a DFO (ethers, ERC20 Tokens, ERC721 NFTs). All the functions to transfer assets can be called by the Proxy only.
Methods
flush721ToNewWallet(uint256,bytes,bool,address)
Transfer an ERC721 to the NewWallet
Params
data
: The optional payload passed in the safeTransferFrom functionsafe
: Boolean flag for triggering the SafeTransfertokenAddress
: Address of the token to transfertokenId
: ID of the ERC721 to transfer
flushToNewWallet(address)
Send all of the specified tokens to the NewWallet
Params
token
: Address of the token to send
getProxy()
GET the proxy address
setNewWallet(address,address)
SET new wallet
Params
newWallet
: New wallet addresstokenAddress
: The voting token, used to flush balance to new wallet
setProxy()
SET the proxy address
transfer(address,uint256,address)
Transfer a token to an address
Params
receiver
: Address of the receivertokenAddress
: Address of the token to transfervalue
: Amount of token to transfer
transfer(address,uint256,bytes,bool,address)
Transfer an ERC721 to an address
Params
data
: The optional payload to pass in the safeTransferFrom functionreceiver
: Address of the receiversafe
: Boolean flag for triggering the SafeTransfertoken
: Address of the token to transfertokenId
: ID of the ERC721 to transfer