TokenTransfer
Interface representing a generic token transfer associated with the DAO. Each entity implementing this interface can be queried as TokenTransfer (refer to Enum
TransferType
for a better understanding of transfers associated with the DAO meaning).
interface TokenTransfer {
createdAt: BigInt!
dao: Dao!
from: Bytes!
id: ID!
proposal: IProposal
to: Bytes!
txHash: Bytes!
type: TransferType!
}
Fields
TokenTransfer.createdAt
● BigInt!
non-null scalar
The timestamp of the block including transfer.
TokenTransfer.dao
● Dao!
non-null object
The DAO that manages the transfer.
TokenTransfer.from
● Bytes!
non-null scalar
The Ethereum address from which the tokens are being transferred.
TokenTransfer.id
● ID!
non-null scalar
The concatenation of the transfer transaction hash, the log index and the action index. Joined by '_'.
TokenTransfer.proposal
● IProposal
interface
The associated DAO proposal, if applicable. Using the DAO
deposit
function there's no need for proposal.
TokenTransfer.to
● Bytes!
non-null scalar
The Ethereum address receiving the transfer.
TokenTransfer.txHash
● Bytes!
non-null scalar
The hash of the transfer to track the transaction.
TokenTransfer.type
● TransferType!
non-null enum
The type of transfer (External, Withdraw, Deposit) from the DAO's POV.
Member Of
Dao
object
Implemented By
ERC1155Transfer
object ● ERC20Transfer
object ● ERC721Transfer
object ● NativeTransfer
object