@avalabs/vm-module-types 1.1.0 → 1.2.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.
@@ -1,7 +1,7 @@
1
1
  import { Network, Storage } from './common.cjs';
2
2
  import { Error } from './error.cjs';
3
3
  import { TokenType, NetworkContractToken, NetworkToken } from './token.cjs';
4
- import { PChainBalance, XChainBalances } from '@avalabs/glacier-sdk';
4
+ import { Erc20TokenBalance, PChainBalance, XChainBalances } from '@avalabs/glacier-sdk';
5
5
 
6
6
  type GetBalancesParams = {
7
7
  addresses: string[];
@@ -42,6 +42,7 @@ interface TokenBalanceDataWithDecimals extends TokenBalanceData {
42
42
  */
43
43
  type TokenWithBalanceERC20 = TokenBalanceDataWithDecimals & TokenMarketData & NetworkContractToken & {
44
44
  type: TokenType.ERC20;
45
+ reputation: Erc20TokenBalance.tokenReputation | null;
45
46
  };
46
47
  type TokenWithBalanceEVM = NetworkTokenWithBalance | TokenWithBalanceERC20 | NftTokenWithBalance;
47
48
  /**
package/dist/balance.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Network, Storage } from './common.js';
2
2
  import { Error } from './error.js';
3
3
  import { TokenType, NetworkContractToken, NetworkToken } from './token.js';
4
- import { PChainBalance, XChainBalances } from '@avalabs/glacier-sdk';
4
+ import { Erc20TokenBalance, PChainBalance, XChainBalances } from '@avalabs/glacier-sdk';
5
5
 
6
6
  type GetBalancesParams = {
7
7
  addresses: string[];
@@ -42,6 +42,7 @@ interface TokenBalanceDataWithDecimals extends TokenBalanceData {
42
42
  */
43
43
  type TokenWithBalanceERC20 = TokenBalanceDataWithDecimals & TokenMarketData & NetworkContractToken & {
44
44
  type: TokenType.ERC20;
45
+ reputation: Erc20TokenBalance.tokenReputation | null;
45
46
  };
46
47
  type TokenWithBalanceEVM = NetworkTokenWithBalance | TokenWithBalanceERC20 | NftTokenWithBalance;
47
48
  /**
@@ -6,15 +6,15 @@ declare const SimplePriceResponseSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
6
6
  marketCap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
7
7
  vol24: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- marketCap?: number | null | undefined;
9
+ price?: number | null | undefined;
10
10
  change24?: number | null | undefined;
11
+ marketCap?: number | null | undefined;
11
12
  vol24?: number | null | undefined;
12
- price?: number | null | undefined;
13
13
  }, {
14
- marketCap?: number | null | undefined;
14
+ price?: number | null | undefined;
15
15
  change24?: number | null | undefined;
16
+ marketCap?: number | null | undefined;
16
17
  vol24?: number | null | undefined;
17
- price?: number | null | undefined;
18
18
  }>>>;
19
19
  type SimplePriceResponse = z.infer<typeof SimplePriceResponseSchema>;
20
20
  declare const RawSimplePriceResponseSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodNumber>>>>;
@@ -6,15 +6,15 @@ declare const SimplePriceResponseSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
6
6
  marketCap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
7
7
  vol24: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- marketCap?: number | null | undefined;
9
+ price?: number | null | undefined;
10
10
  change24?: number | null | undefined;
11
+ marketCap?: number | null | undefined;
11
12
  vol24?: number | null | undefined;
12
- price?: number | null | undefined;
13
13
  }, {
14
- marketCap?: number | null | undefined;
14
+ price?: number | null | undefined;
15
15
  change24?: number | null | undefined;
16
+ marketCap?: number | null | undefined;
16
17
  vol24?: number | null | undefined;
17
- price?: number | null | undefined;
18
18
  }>>>;
19
19
  type SimplePriceResponse = z.infer<typeof SimplePriceResponseSchema>;
20
20
  declare const RawSimplePriceResponseSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodNumber>>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/vm-module-types",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -11,8 +11,8 @@
11
11
  ],
12
12
  "license": "Limited Ecosystem License",
13
13
  "dependencies": {
14
- "@avalabs/core-wallets-sdk": "3.1.0-alpha.30",
15
- "@avalabs/glacier-sdk": "3.1.0-alpha.30",
14
+ "@avalabs/core-wallets-sdk": "3.1.0-alpha.32",
15
+ "@avalabs/glacier-sdk": "3.1.0-alpha.32",
16
16
  "@metamask/rpc-errors": "6.3.0",
17
17
  "bitcoinjs-lib": "5.2.0",
18
18
  "zod": "3.23.8",