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 function
  • safe: Boolean flag for triggering the SafeTransfer
  • tokenAddress: Address of the token to transfer
  • tokenId: 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 address
  • tokenAddress: 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 receiver
  • tokenAddress: Address of the token to transfer
  • value: 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 function
  • receiver: Address of the receiver
  • safe: Boolean flag for triggering the SafeTransfer
  • token: Address of the token to transfer
  • tokenId: ID of the ERC721 to transfer