diff --git a/src/@types/File.ts b/src/@types/File.ts index 481606f7..5895b0b5 100644 --- a/src/@types/File.ts +++ b/src/@types/File.ts @@ -1,3 +1,4 @@ +import { AbiItem } from 'web3-utils' export interface UrlFile { type: 'url' @@ -41,8 +42,50 @@ export interface GraphqlQuery { query: string } +export interface Arweave { + type: 'arweave' + + /** + * transactionId + * @type {string} + */ + transactionId: string +} + +export interface Ipfs { + type: 'ipfs' + + /** + * hash + * @type {string} + */ + hash: string +} + +export interface Smartcontract { + type: 'smartcontract' + + /** + * Smartcontract address + * @type {string} + */ + address: string + + /** + * ChainId + * @type {number} + */ + chainId: number + + /** + * Function ABI (not the entire smartcontract abi) + * @type {AbiItem} + */ + abi: AbiItem +} + export interface Files { nftAddress: string datatokenAddress: string - files: UrlFile[] | GraphqlQuery[] + files: UrlFile[] | GraphqlQuery[] | Arweave[] | Smartcontract[] | Ipfs[] }