-
Notifications
You must be signed in to change notification settings - Fork 1
/
global.d.ts
59 lines (52 loc) · 1.09 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
interface Window {
ethereum: any;
}
interface IMetadata {
name: string;
description: string;
attributes: IAttribute[];
image: string;
}
interface EazyVideoContextInterface {
account: string;
walletConnected: boolean;
web3: string;
SubsNFTContract: Contract;
accountType: number;
}
interface ServiceMetadata {
name: string;
ImageUri: string;
description: string;
planDuration: number;
price: number;
serviceProvider: string;
serviceid: number;
}
interface IPFSMetadata {
name: string;
description: string;
perDayPrice: string;
duration: string;
image: string;
}
interface NFTMetadata {
serviceid: number;
serviceName: string;
ImageUri: string;
description: string;
duration: number;
endTime: string;
price: number;
owner: string;
serviceProvider: string;
}
interface LendMetadata {
tokenId: number;
price: number;
duration: number;
renter: string;
NFT: NFTMetadata;
}
//IPFSMetadata
//{"name":"net","description":"sdfg","perDayPrice":"1","duration":"90","image":"https://ipfs.infura.io/ipfs/QmUr2JP3nAF6E4Q12mgC5M1geFt7F4y6QHUqZFE9wgMZt7"}