@avalabs/vm-module-types 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/balance.d.cts +9 -4
- package/dist/balance.d.ts +9 -4
- package/package.json +1 -1
package/dist/balance.d.cts
CHANGED
|
@@ -42,7 +42,7 @@ interface TokenBalanceDataWithDecimals extends TokenBalanceData {
|
|
|
42
42
|
type TokenWithBalanceERC20 = TokenBalanceDataWithDecimals & TokenMarketData & NetworkContractToken & {
|
|
43
43
|
type: TokenType.ERC20;
|
|
44
44
|
};
|
|
45
|
-
type TokenWithBalanceEVM = NetworkTokenWithBalance | TokenWithBalanceERC20;
|
|
45
|
+
type TokenWithBalanceEVM = NetworkTokenWithBalance | TokenWithBalanceERC20 | NftTokenWithBalance;
|
|
46
46
|
/**
|
|
47
47
|
* Bitcoin TokenWithBalance interface.
|
|
48
48
|
*/
|
|
@@ -101,7 +101,7 @@ interface TokenWithBalanceAVM extends NetworkTokenWithBalance {
|
|
|
101
101
|
atomicMemoryLocked: number;
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
interface NftTokenWithBalance extends Omit<NetworkTokenWithBalance, 'type'> {
|
|
104
|
+
interface NftTokenWithBalance extends Omit<NetworkTokenWithBalance, 'type' | 'decimals' | 'coingeckoId'> {
|
|
105
105
|
type: TokenType.ERC721 | TokenType.ERC1155;
|
|
106
106
|
address: string;
|
|
107
107
|
description: string;
|
|
@@ -110,15 +110,20 @@ interface NftTokenWithBalance extends Omit<NetworkTokenWithBalance, 'type'> {
|
|
|
110
110
|
name: string;
|
|
111
111
|
symbol: string;
|
|
112
112
|
tokenId: string;
|
|
113
|
-
|
|
113
|
+
tokenUri: string;
|
|
114
114
|
collectionName: string;
|
|
115
115
|
updatedAt?: number;
|
|
116
|
+
metadata?: {
|
|
117
|
+
description?: string;
|
|
118
|
+
lastUpdatedTimestamp?: number;
|
|
119
|
+
properties?: string;
|
|
120
|
+
};
|
|
116
121
|
}
|
|
117
122
|
interface TokenAttribute {
|
|
118
123
|
name: string;
|
|
119
124
|
value: string;
|
|
120
125
|
}
|
|
121
|
-
type TokenWithBalance = TokenWithBalanceEVM | TokenWithBalanceBTC | TokenWithBalancePVM | TokenWithBalanceAVM
|
|
126
|
+
type TokenWithBalance = TokenWithBalanceEVM | TokenWithBalanceBTC | TokenWithBalancePVM | TokenWithBalanceAVM;
|
|
122
127
|
type GetBalancesResponse = Record<string, Record<string, TokenWithBalance | Error> | Error>;
|
|
123
128
|
|
|
124
129
|
export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, NftTokenWithBalance, TokenAttribute, TokenBalanceData, TokenMarketData, TokenWithBalance, TokenWithBalanceAVM, TokenWithBalanceBTC, TokenWithBalanceERC20, TokenWithBalanceEVM, TokenWithBalancePVM };
|
package/dist/balance.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ interface TokenBalanceDataWithDecimals extends TokenBalanceData {
|
|
|
42
42
|
type TokenWithBalanceERC20 = TokenBalanceDataWithDecimals & TokenMarketData & NetworkContractToken & {
|
|
43
43
|
type: TokenType.ERC20;
|
|
44
44
|
};
|
|
45
|
-
type TokenWithBalanceEVM = NetworkTokenWithBalance | TokenWithBalanceERC20;
|
|
45
|
+
type TokenWithBalanceEVM = NetworkTokenWithBalance | TokenWithBalanceERC20 | NftTokenWithBalance;
|
|
46
46
|
/**
|
|
47
47
|
* Bitcoin TokenWithBalance interface.
|
|
48
48
|
*/
|
|
@@ -101,7 +101,7 @@ interface TokenWithBalanceAVM extends NetworkTokenWithBalance {
|
|
|
101
101
|
atomicMemoryLocked: number;
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
interface NftTokenWithBalance extends Omit<NetworkTokenWithBalance, 'type'> {
|
|
104
|
+
interface NftTokenWithBalance extends Omit<NetworkTokenWithBalance, 'type' | 'decimals' | 'coingeckoId'> {
|
|
105
105
|
type: TokenType.ERC721 | TokenType.ERC1155;
|
|
106
106
|
address: string;
|
|
107
107
|
description: string;
|
|
@@ -110,15 +110,20 @@ interface NftTokenWithBalance extends Omit<NetworkTokenWithBalance, 'type'> {
|
|
|
110
110
|
name: string;
|
|
111
111
|
symbol: string;
|
|
112
112
|
tokenId: string;
|
|
113
|
-
|
|
113
|
+
tokenUri: string;
|
|
114
114
|
collectionName: string;
|
|
115
115
|
updatedAt?: number;
|
|
116
|
+
metadata?: {
|
|
117
|
+
description?: string;
|
|
118
|
+
lastUpdatedTimestamp?: number;
|
|
119
|
+
properties?: string;
|
|
120
|
+
};
|
|
116
121
|
}
|
|
117
122
|
interface TokenAttribute {
|
|
118
123
|
name: string;
|
|
119
124
|
value: string;
|
|
120
125
|
}
|
|
121
|
-
type TokenWithBalance = TokenWithBalanceEVM | TokenWithBalanceBTC | TokenWithBalancePVM | TokenWithBalanceAVM
|
|
126
|
+
type TokenWithBalance = TokenWithBalanceEVM | TokenWithBalanceBTC | TokenWithBalancePVM | TokenWithBalanceAVM;
|
|
122
127
|
type GetBalancesResponse = Record<string, Record<string, TokenWithBalance | Error> | Error>;
|
|
123
128
|
|
|
124
129
|
export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, NftTokenWithBalance, TokenAttribute, TokenBalanceData, TokenMarketData, TokenWithBalance, TokenWithBalanceAVM, TokenWithBalanceBTC, TokenWithBalanceERC20, TokenWithBalanceEVM, TokenWithBalancePVM };
|