@avalabs/vm-module-types 0.0.13 → 0.0.16

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.
Files changed (117) hide show
  1. package/.turbo/turbo-build.log +107 -21
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/CHANGELOG.md +18 -0
  4. package/dist/balance.cjs +6 -0
  5. package/dist/balance.d.cts +103 -0
  6. package/dist/balance.d.ts +103 -0
  7. package/dist/balance.js +3 -0
  8. package/dist/chunk-4PGCXP4C.cjs +10 -0
  9. package/dist/chunk-4PGCXP4C.cjs.map +1 -0
  10. package/dist/chunk-74SNNWSF.cjs +9 -0
  11. package/dist/chunk-74SNNWSF.cjs.map +1 -0
  12. package/dist/chunk-7FBUAZNW.cjs +8 -0
  13. package/dist/chunk-7FBUAZNW.cjs.map +1 -0
  14. package/dist/chunk-7U2R34EQ.js +3 -0
  15. package/dist/chunk-7U2R34EQ.js.map +1 -0
  16. package/dist/chunk-A4YEBDMG.js +7 -0
  17. package/dist/chunk-A4YEBDMG.js.map +1 -0
  18. package/dist/chunk-AILYKQEY.cjs +4 -0
  19. package/dist/chunk-AILYKQEY.cjs.map +1 -0
  20. package/dist/chunk-BFBDZPL3.cjs +9 -0
  21. package/dist/chunk-BFBDZPL3.cjs.map +1 -0
  22. package/dist/chunk-BHB5UV3J.js +3 -0
  23. package/dist/chunk-BHB5UV3J.js.map +1 -0
  24. package/dist/chunk-CUVJNZP5.js +3 -0
  25. package/dist/chunk-CUVJNZP5.js.map +1 -0
  26. package/dist/chunk-H6ZZE5M7.js +5 -0
  27. package/dist/chunk-H6ZZE5M7.js.map +1 -0
  28. package/dist/chunk-JUV577XH.cjs +4 -0
  29. package/dist/chunk-JUV577XH.cjs.map +1 -0
  30. package/dist/chunk-KVTVJNN4.cjs +7 -0
  31. package/dist/chunk-KVTVJNN4.cjs.map +1 -0
  32. package/dist/chunk-OGQBQHLH.cjs +4 -0
  33. package/dist/chunk-OGQBQHLH.cjs.map +1 -0
  34. package/dist/chunk-TSO5BGJ4.js +5 -0
  35. package/dist/chunk-TSO5BGJ4.js.map +1 -0
  36. package/dist/chunk-WOO6UGSQ.js +7 -0
  37. package/dist/chunk-WOO6UGSQ.js.map +1 -0
  38. package/dist/chunk-XMGYJ4KK.js +5 -0
  39. package/dist/chunk-XMGYJ4KK.js.map +1 -0
  40. package/dist/chunk-XQGU7MZ4.cjs +7 -0
  41. package/dist/chunk-XQGU7MZ4.cjs.map +1 -0
  42. package/dist/chunk-YJHKZHST.js +5 -0
  43. package/dist/chunk-YJHKZHST.js.map +1 -0
  44. package/dist/coingecko.cjs +16 -0
  45. package/dist/coingecko.cjs.map +1 -0
  46. package/dist/coingecko.d.cts +23 -0
  47. package/dist/coingecko.d.ts +23 -0
  48. package/dist/coingecko.js +3 -0
  49. package/dist/coingecko.js.map +1 -0
  50. package/dist/common.cjs +12 -0
  51. package/dist/common.cjs.map +1 -0
  52. package/dist/common.d.cts +32 -0
  53. package/dist/common.d.ts +32 -0
  54. package/dist/common.js +3 -0
  55. package/dist/common.js.map +1 -0
  56. package/dist/index.cjs +31 -15
  57. package/dist/index.d.cts +11 -1
  58. package/dist/index.d.ts +11 -1
  59. package/dist/index.js +9 -1
  60. package/dist/manifest.cjs +12 -0
  61. package/dist/manifest.cjs.map +1 -0
  62. package/dist/manifest.d.cts +261 -0
  63. package/dist/manifest.d.ts +261 -0
  64. package/dist/manifest.js +3 -0
  65. package/dist/manifest.js.map +1 -0
  66. package/dist/module.cjs +6 -0
  67. package/dist/module.cjs.map +1 -0
  68. package/dist/module.d.cts +24 -0
  69. package/dist/module.d.ts +24 -0
  70. package/dist/module.js +3 -0
  71. package/dist/module.js.map +1 -0
  72. package/dist/network-fee.cjs +6 -0
  73. package/dist/network-fee.cjs.map +1 -0
  74. package/dist/network-fee.d.cts +18 -0
  75. package/dist/network-fee.d.ts +18 -0
  76. package/dist/network-fee.js +3 -0
  77. package/dist/network-fee.js.map +1 -0
  78. package/dist/rpc.cjs +16 -0
  79. package/dist/rpc.cjs.map +1 -0
  80. package/dist/rpc.d.cts +125 -0
  81. package/dist/rpc.d.ts +125 -0
  82. package/dist/rpc.js +3 -0
  83. package/dist/rpc.js.map +1 -0
  84. package/dist/token.cjs +12 -0
  85. package/dist/token.cjs.map +1 -0
  86. package/dist/token.d.cts +25 -0
  87. package/dist/token.d.ts +25 -0
  88. package/dist/token.js +3 -0
  89. package/dist/token.js.map +1 -0
  90. package/dist/transaction-history.cjs +20 -0
  91. package/dist/transaction-history.cjs.map +1 -0
  92. package/dist/transaction-history.d.cts +106 -0
  93. package/dist/transaction-history.d.ts +106 -0
  94. package/dist/transaction-history.js +3 -0
  95. package/dist/transaction-history.js.map +1 -0
  96. package/package.json +7 -2
  97. package/src/balance.ts +118 -0
  98. package/src/coingecko.ts +15 -0
  99. package/src/common.ts +34 -0
  100. package/src/index.ts +9 -1
  101. package/src/manifest.ts +40 -0
  102. package/src/module.ts +17 -0
  103. package/src/network-fee.ts +7 -0
  104. package/src/rpc.ts +144 -0
  105. package/src/token.ts +25 -0
  106. package/src/transaction-history.ts +113 -0
  107. package/dist/chunk-4RO2H63T.js +0 -7
  108. package/dist/chunk-4RO2H63T.js.map +0 -1
  109. package/dist/chunk-L7UO6W6T.cjs +0 -16
  110. package/dist/chunk-L7UO6W6T.cjs.map +0 -1
  111. package/dist/types.cjs +0 -40
  112. package/dist/types.d.cts +0 -516
  113. package/dist/types.d.ts +0 -516
  114. package/dist/types.js +0 -3
  115. package/src/types.ts +0 -328
  116. /package/dist/{types.cjs.map → balance.cjs.map} +0 -0
  117. /package/dist/{types.js.map → balance.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var t=(e=>(e.PRODUCTION="production",e.DEV="dev",e))(t||{});
4
+
5
+ exports.a = t;
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=chunk-XQGU7MZ4.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/common.ts"],"names":["Environment"],"mappings":"AA8BO,IAAKA,OACVA,EAAA,WAAa,aACbA,EAAA,IAAM,MAFIA,OAAA","sourcesContent":["import type { NetworkToken } from './token';\n\nexport type Network = {\n isTestnet?: boolean;\n chainId: number;\n chainName: string;\n rpcUrl: string;\n utilityAddresses?: {\n multicall: string;\n };\n networkToken: NetworkToken;\n pricingProviders?: {\n coingecko: {\n assetPlatformId?: string;\n nativeTokenId?: string;\n };\n };\n explorerUrl?: string;\n logoUri?: string;\n};\n\nexport type Storage = {\n get: <T>(id: string) => T | undefined;\n set: <T>(id: string, data: T) => void;\n};\n\nexport type Caip2ChainId = string;\n\nexport type Hex = `0x${string}`;\n\nexport enum Environment {\n PRODUCTION = 'production',\n DEV = 'dev',\n}\n"]}
@@ -0,0 +1,5 @@
1
+ var t=(e=>(e.PRODUCTION="production",e.DEV="dev",e))(t||{});
2
+
3
+ export { t as a };
4
+ //# sourceMappingURL=out.js.map
5
+ //# sourceMappingURL=chunk-YJHKZHST.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/common.ts"],"names":["Environment"],"mappings":"AA8BO,IAAKA,OACVA,EAAA,WAAa,aACbA,EAAA,IAAM,MAFIA,OAAA","sourcesContent":["import type { NetworkToken } from './token';\n\nexport type Network = {\n isTestnet?: boolean;\n chainId: number;\n chainName: string;\n rpcUrl: string;\n utilityAddresses?: {\n multicall: string;\n };\n networkToken: NetworkToken;\n pricingProviders?: {\n coingecko: {\n assetPlatformId?: string;\n nativeTokenId?: string;\n };\n };\n explorerUrl?: string;\n logoUri?: string;\n};\n\nexport type Storage = {\n get: <T>(id: string) => T | undefined;\n set: <T>(id: string, data: T) => void;\n};\n\nexport type Caip2ChainId = string;\n\nexport type Hex = `0x${string}`;\n\nexport enum Environment {\n PRODUCTION = 'production',\n DEV = 'dev',\n}\n"]}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunk4PGCXP4C_cjs = require('./chunk-4PGCXP4C.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, 'RawSimplePriceResponseSchema', {
8
+ enumerable: true,
9
+ get: function () { return chunk4PGCXP4C_cjs.b; }
10
+ });
11
+ Object.defineProperty(exports, 'SimplePriceResponseSchema', {
12
+ enumerable: true,
13
+ get: function () { return chunk4PGCXP4C_cjs.a; }
14
+ });
15
+ //# sourceMappingURL=out.js.map
16
+ //# sourceMappingURL=coingecko.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const SimplePriceResponseSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
4
+ price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
5
+ change24: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6
+ marketCap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
7
+ vol24: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ price?: number | null | undefined;
10
+ change24?: number | null | undefined;
11
+ marketCap?: number | null | undefined;
12
+ vol24?: number | null | undefined;
13
+ }, {
14
+ price?: number | null | undefined;
15
+ change24?: number | null | undefined;
16
+ marketCap?: number | null | undefined;
17
+ vol24?: number | null | undefined;
18
+ }>>>;
19
+ type SimplePriceResponse = z.infer<typeof SimplePriceResponseSchema>;
20
+ declare const RawSimplePriceResponseSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodNumber>>>>;
21
+ type RawSimplePriceResponse = z.infer<typeof RawSimplePriceResponseSchema>;
22
+
23
+ export { RawSimplePriceResponse, RawSimplePriceResponseSchema, SimplePriceResponse, SimplePriceResponseSchema };
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const SimplePriceResponseSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
4
+ price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
5
+ change24: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6
+ marketCap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
7
+ vol24: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ price?: number | null | undefined;
10
+ change24?: number | null | undefined;
11
+ marketCap?: number | null | undefined;
12
+ vol24?: number | null | undefined;
13
+ }, {
14
+ price?: number | null | undefined;
15
+ change24?: number | null | undefined;
16
+ marketCap?: number | null | undefined;
17
+ vol24?: number | null | undefined;
18
+ }>>>;
19
+ type SimplePriceResponse = z.infer<typeof SimplePriceResponseSchema>;
20
+ declare const RawSimplePriceResponseSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodNullable<z.ZodNumber>>>>;
21
+ type RawSimplePriceResponse = z.infer<typeof RawSimplePriceResponseSchema>;
22
+
23
+ export { RawSimplePriceResponse, RawSimplePriceResponseSchema, SimplePriceResponse, SimplePriceResponseSchema };
@@ -0,0 +1,3 @@
1
+ export { b as RawSimplePriceResponseSchema, a as SimplePriceResponseSchema } from './chunk-WOO6UGSQ.js';
2
+ //# sourceMappingURL=out.js.map
3
+ //# sourceMappingURL=coingecko.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkXQGU7MZ4_cjs = require('./chunk-XQGU7MZ4.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, 'Environment', {
8
+ enumerable: true,
9
+ get: function () { return chunkXQGU7MZ4_cjs.a; }
10
+ });
11
+ //# sourceMappingURL=out.js.map
12
+ //# sourceMappingURL=common.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { NetworkToken } from './token.cjs';
2
+
3
+ type Network = {
4
+ isTestnet?: boolean;
5
+ chainId: number;
6
+ chainName: string;
7
+ rpcUrl: string;
8
+ utilityAddresses?: {
9
+ multicall: string;
10
+ };
11
+ networkToken: NetworkToken;
12
+ pricingProviders?: {
13
+ coingecko: {
14
+ assetPlatformId?: string;
15
+ nativeTokenId?: string;
16
+ };
17
+ };
18
+ explorerUrl?: string;
19
+ logoUri?: string;
20
+ };
21
+ type Storage = {
22
+ get: <T>(id: string) => T | undefined;
23
+ set: <T>(id: string, data: T) => void;
24
+ };
25
+ type Caip2ChainId = string;
26
+ type Hex = `0x${string}`;
27
+ declare enum Environment {
28
+ PRODUCTION = "production",
29
+ DEV = "dev"
30
+ }
31
+
32
+ export { Caip2ChainId, Environment, Hex, Network, Storage };
@@ -0,0 +1,32 @@
1
+ import { NetworkToken } from './token.js';
2
+
3
+ type Network = {
4
+ isTestnet?: boolean;
5
+ chainId: number;
6
+ chainName: string;
7
+ rpcUrl: string;
8
+ utilityAddresses?: {
9
+ multicall: string;
10
+ };
11
+ networkToken: NetworkToken;
12
+ pricingProviders?: {
13
+ coingecko: {
14
+ assetPlatformId?: string;
15
+ nativeTokenId?: string;
16
+ };
17
+ };
18
+ explorerUrl?: string;
19
+ logoUri?: string;
20
+ };
21
+ type Storage = {
22
+ get: <T>(id: string) => T | undefined;
23
+ set: <T>(id: string, data: T) => void;
24
+ };
25
+ type Caip2ChainId = string;
26
+ type Hex = `0x${string}`;
27
+ declare enum Environment {
28
+ PRODUCTION = "production",
29
+ DEV = "dev"
30
+ }
31
+
32
+ export { Caip2ChainId, Environment, Hex, Network, Storage };
package/dist/common.js ADDED
@@ -0,0 +1,3 @@
1
+ export { a as Environment } from './chunk-YJHKZHST.js';
2
+ //# sourceMappingURL=out.js.map
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
package/dist/index.cjs CHANGED
@@ -1,40 +1,56 @@
1
1
  'use strict';
2
2
 
3
- var chunkL7UO6W6T_cjs = require('./chunk-L7UO6W6T.cjs');
3
+ var chunkKVTVJNN4_cjs = require('./chunk-KVTVJNN4.cjs');
4
+ var chunkBFBDZPL3_cjs = require('./chunk-BFBDZPL3.cjs');
5
+ require('./chunk-JUV577XH.cjs');
6
+ var chunk4PGCXP4C_cjs = require('./chunk-4PGCXP4C.cjs');
7
+ var chunkXQGU7MZ4_cjs = require('./chunk-XQGU7MZ4.cjs');
8
+ var chunk74SNNWSF_cjs = require('./chunk-74SNNWSF.cjs');
9
+ require('./chunk-OGQBQHLH.cjs');
10
+ require('./chunk-AILYKQEY.cjs');
11
+ var chunk7FBUAZNW_cjs = require('./chunk-7FBUAZNW.cjs');
4
12
 
5
13
 
6
14
 
7
- Object.defineProperty(exports, 'Environment', {
15
+ Object.defineProperty(exports, 'TokenType', {
8
16
  enumerable: true,
9
- get: function () { return chunkL7UO6W6T_cjs.g; }
17
+ get: function () { return chunkKVTVJNN4_cjs.a; }
10
18
  });
11
19
  Object.defineProperty(exports, 'PChainTransactionType', {
12
20
  enumerable: true,
13
- get: function () { return chunkL7UO6W6T_cjs.b; }
21
+ get: function () { return chunkBFBDZPL3_cjs.b; }
14
22
  });
15
- Object.defineProperty(exports, 'RpcMethod', {
23
+ Object.defineProperty(exports, 'TransactionType', {
16
24
  enumerable: true,
17
- get: function () { return chunkL7UO6W6T_cjs.e; }
25
+ get: function () { return chunkBFBDZPL3_cjs.a; }
18
26
  });
19
- Object.defineProperty(exports, 'SigningDataType', {
27
+ Object.defineProperty(exports, 'XChainTransactionType', {
20
28
  enumerable: true,
21
- get: function () { return chunkL7UO6W6T_cjs.h; }
29
+ get: function () { return chunkBFBDZPL3_cjs.c; }
22
30
  });
23
- Object.defineProperty(exports, 'TokenType', {
31
+ Object.defineProperty(exports, 'RawSimplePriceResponseSchema', {
24
32
  enumerable: true,
25
- get: function () { return chunkL7UO6W6T_cjs.d; }
33
+ get: function () { return chunk4PGCXP4C_cjs.b; }
26
34
  });
27
- Object.defineProperty(exports, 'TransactionType', {
35
+ Object.defineProperty(exports, 'SimplePriceResponseSchema', {
28
36
  enumerable: true,
29
- get: function () { return chunkL7UO6W6T_cjs.a; }
37
+ get: function () { return chunk4PGCXP4C_cjs.a; }
30
38
  });
31
- Object.defineProperty(exports, 'XChainTransactionType', {
39
+ Object.defineProperty(exports, 'Environment', {
32
40
  enumerable: true,
33
- get: function () { return chunkL7UO6W6T_cjs.c; }
41
+ get: function () { return chunkXQGU7MZ4_cjs.a; }
34
42
  });
35
43
  Object.defineProperty(exports, 'parseManifest', {
36
44
  enumerable: true,
37
- get: function () { return chunkL7UO6W6T_cjs.f; }
45
+ get: function () { return chunk74SNNWSF_cjs.a; }
46
+ });
47
+ Object.defineProperty(exports, 'BannerType', {
48
+ enumerable: true,
49
+ get: function () { return chunk7FBUAZNW_cjs.b; }
50
+ });
51
+ Object.defineProperty(exports, 'RpcMethod', {
52
+ enumerable: true,
53
+ get: function () { return chunk7FBUAZNW_cjs.a; }
38
54
  });
39
55
  //# sourceMappingURL=out.js.map
40
56
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,4 +1,14 @@
1
- export { ApprovalController, ApprovalParams, ApprovalResponse, Caip2ChainId, DappInfo, DisplayData, Environment, GetTransactionHistory, Hex, Manifest, Module, Network, NetworkContractToken, NetworkFees, NetworkToken, PChainTransactionType, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData, SigningDataType, TokenType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType, parseManifest } from './types.cjs';
1
+ export { Caip2ChainId, Environment, Hex, Network, Storage } from './common.cjs';
2
+ export { RawSimplePriceResponse, RawSimplePriceResponseSchema, SimplePriceResponse, SimplePriceResponseSchema } from './coingecko.cjs';
3
+ export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, TokenBalanceData, TokenWithBalance, TokenWithBalanceAVM, TokenWithBalanceBTC, TokenWithBalanceERC20, TokenWithBalanceEVM, TokenWithBalancePVM } from './balance.cjs';
4
+ export { Manifest, parseManifest } from './manifest.cjs';
5
+ export { Module } from './module.cjs';
6
+ export { NetworkFees } from './network-fee.cjs';
7
+ export { ApprovalController, ApprovalParams, ApprovalResponse, Banner, BannerType, DappInfo, DisplayData, MessageTypeProperty, MessageTypes, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData, TypedData, TypedDataV1 } from './rpc.cjs';
8
+ export { NetworkContractToken, NetworkToken, TokenType } from './token.cjs';
9
+ export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.cjs';
2
10
  import 'zod';
11
+ import 'bn.js';
12
+ import '@avalabs/glacier-sdk';
3
13
  import 'ethers';
4
14
  import '@metamask/rpc-errors';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,14 @@
1
- export { ApprovalController, ApprovalParams, ApprovalResponse, Caip2ChainId, DappInfo, DisplayData, Environment, GetTransactionHistory, Hex, Manifest, Module, Network, NetworkContractToken, NetworkFees, NetworkToken, PChainTransactionType, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData, SigningDataType, TokenType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType, parseManifest } from './types.js';
1
+ export { Caip2ChainId, Environment, Hex, Network, Storage } from './common.js';
2
+ export { RawSimplePriceResponse, RawSimplePriceResponseSchema, SimplePriceResponse, SimplePriceResponseSchema } from './coingecko.js';
3
+ export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, TokenBalanceData, TokenWithBalance, TokenWithBalanceAVM, TokenWithBalanceBTC, TokenWithBalanceERC20, TokenWithBalanceEVM, TokenWithBalancePVM } from './balance.js';
4
+ export { Manifest, parseManifest } from './manifest.js';
5
+ export { Module } from './module.js';
6
+ export { NetworkFees } from './network-fee.js';
7
+ export { ApprovalController, ApprovalParams, ApprovalResponse, Banner, BannerType, DappInfo, DisplayData, MessageTypeProperty, MessageTypes, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData, TypedData, TypedDataV1 } from './rpc.js';
8
+ export { NetworkContractToken, NetworkToken, TokenType } from './token.js';
9
+ export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.js';
2
10
  import 'zod';
11
+ import 'bn.js';
12
+ import '@avalabs/glacier-sdk';
3
13
  import 'ethers';
4
14
  import '@metamask/rpc-errors';
package/dist/index.js CHANGED
@@ -1,3 +1,11 @@
1
- export { g as Environment, b as PChainTransactionType, e as RpcMethod, h as SigningDataType, d as TokenType, a as TransactionType, c as XChainTransactionType, f as parseManifest } from './chunk-4RO2H63T.js';
1
+ export { a as TokenType } from './chunk-TSO5BGJ4.js';
2
+ export { b as PChainTransactionType, a as TransactionType, c as XChainTransactionType } from './chunk-H6ZZE5M7.js';
3
+ import './chunk-BHB5UV3J.js';
4
+ export { b as RawSimplePriceResponseSchema, a as SimplePriceResponseSchema } from './chunk-WOO6UGSQ.js';
5
+ export { a as Environment } from './chunk-YJHKZHST.js';
6
+ export { a as parseManifest } from './chunk-A4YEBDMG.js';
7
+ import './chunk-CUVJNZP5.js';
8
+ import './chunk-7U2R34EQ.js';
9
+ export { b as BannerType, a as RpcMethod } from './chunk-XMGYJ4KK.js';
2
10
  //# sourceMappingURL=out.js.map
3
11
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunk74SNNWSF_cjs = require('./chunk-74SNNWSF.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, 'parseManifest', {
8
+ enumerable: true,
9
+ get: function () { return chunk74SNNWSF_cjs.a; }
10
+ });
11
+ //# sourceMappingURL=out.js.map
12
+ //# sourceMappingURL=manifest.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,261 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const manifestSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ version: z.ZodString;
6
+ description: z.ZodString;
7
+ sources: z.ZodObject<{
8
+ module: z.ZodObject<{
9
+ checksum: z.ZodString;
10
+ location: z.ZodObject<{
11
+ npm: z.ZodObject<{
12
+ filePath: z.ZodString;
13
+ packageName: z.ZodString;
14
+ registry: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ filePath: string;
17
+ packageName: string;
18
+ registry: string;
19
+ }, {
20
+ filePath: string;
21
+ packageName: string;
22
+ registry: string;
23
+ }>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ npm: {
26
+ filePath: string;
27
+ packageName: string;
28
+ registry: string;
29
+ };
30
+ }, {
31
+ npm: {
32
+ filePath: string;
33
+ packageName: string;
34
+ registry: string;
35
+ };
36
+ }>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ checksum: string;
39
+ location: {
40
+ npm: {
41
+ filePath: string;
42
+ packageName: string;
43
+ registry: string;
44
+ };
45
+ };
46
+ }, {
47
+ checksum: string;
48
+ location: {
49
+ npm: {
50
+ filePath: string;
51
+ packageName: string;
52
+ registry: string;
53
+ };
54
+ };
55
+ }>;
56
+ provider: z.ZodOptional<z.ZodObject<{
57
+ checksum: z.ZodString;
58
+ location: z.ZodObject<{
59
+ npm: z.ZodObject<{
60
+ filePath: z.ZodString;
61
+ packageName: z.ZodString;
62
+ registry: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ filePath: string;
65
+ packageName: string;
66
+ registry: string;
67
+ }, {
68
+ filePath: string;
69
+ packageName: string;
70
+ registry: string;
71
+ }>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ npm: {
74
+ filePath: string;
75
+ packageName: string;
76
+ registry: string;
77
+ };
78
+ }, {
79
+ npm: {
80
+ filePath: string;
81
+ packageName: string;
82
+ registry: string;
83
+ };
84
+ }>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ checksum: string;
87
+ location: {
88
+ npm: {
89
+ filePath: string;
90
+ packageName: string;
91
+ registry: string;
92
+ };
93
+ };
94
+ }, {
95
+ checksum: string;
96
+ location: {
97
+ npm: {
98
+ filePath: string;
99
+ packageName: string;
100
+ registry: string;
101
+ };
102
+ };
103
+ }>>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ module: {
106
+ checksum: string;
107
+ location: {
108
+ npm: {
109
+ filePath: string;
110
+ packageName: string;
111
+ registry: string;
112
+ };
113
+ };
114
+ };
115
+ provider?: {
116
+ checksum: string;
117
+ location: {
118
+ npm: {
119
+ filePath: string;
120
+ packageName: string;
121
+ registry: string;
122
+ };
123
+ };
124
+ } | undefined;
125
+ }, {
126
+ module: {
127
+ checksum: string;
128
+ location: {
129
+ npm: {
130
+ filePath: string;
131
+ packageName: string;
132
+ registry: string;
133
+ };
134
+ };
135
+ };
136
+ provider?: {
137
+ checksum: string;
138
+ location: {
139
+ npm: {
140
+ filePath: string;
141
+ packageName: string;
142
+ registry: string;
143
+ };
144
+ };
145
+ } | undefined;
146
+ }>;
147
+ network: z.ZodObject<{
148
+ chainIds: z.ZodArray<z.ZodString, "many">;
149
+ namespaces: z.ZodArray<z.ZodString, "many">;
150
+ }, "strip", z.ZodTypeAny, {
151
+ chainIds: string[];
152
+ namespaces: string[];
153
+ }, {
154
+ chainIds: string[];
155
+ namespaces: string[];
156
+ }>;
157
+ cointype: z.ZodString;
158
+ permissions: z.ZodObject<{
159
+ rpc: z.ZodObject<{
160
+ dapps: z.ZodBoolean;
161
+ methods: z.ZodArray<z.ZodString, "many">;
162
+ }, "strip", z.ZodTypeAny, {
163
+ dapps: boolean;
164
+ methods: string[];
165
+ }, {
166
+ dapps: boolean;
167
+ methods: string[];
168
+ }>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ rpc: {
171
+ dapps: boolean;
172
+ methods: string[];
173
+ };
174
+ }, {
175
+ rpc: {
176
+ dapps: boolean;
177
+ methods: string[];
178
+ };
179
+ }>;
180
+ manifestVersion: z.ZodString;
181
+ }, "strip", z.ZodTypeAny, {
182
+ name: string;
183
+ version: string;
184
+ description: string;
185
+ sources: {
186
+ module: {
187
+ checksum: string;
188
+ location: {
189
+ npm: {
190
+ filePath: string;
191
+ packageName: string;
192
+ registry: string;
193
+ };
194
+ };
195
+ };
196
+ provider?: {
197
+ checksum: string;
198
+ location: {
199
+ npm: {
200
+ filePath: string;
201
+ packageName: string;
202
+ registry: string;
203
+ };
204
+ };
205
+ } | undefined;
206
+ };
207
+ network: {
208
+ chainIds: string[];
209
+ namespaces: string[];
210
+ };
211
+ cointype: string;
212
+ permissions: {
213
+ rpc: {
214
+ dapps: boolean;
215
+ methods: string[];
216
+ };
217
+ };
218
+ manifestVersion: string;
219
+ }, {
220
+ name: string;
221
+ version: string;
222
+ description: string;
223
+ sources: {
224
+ module: {
225
+ checksum: string;
226
+ location: {
227
+ npm: {
228
+ filePath: string;
229
+ packageName: string;
230
+ registry: string;
231
+ };
232
+ };
233
+ };
234
+ provider?: {
235
+ checksum: string;
236
+ location: {
237
+ npm: {
238
+ filePath: string;
239
+ packageName: string;
240
+ registry: string;
241
+ };
242
+ };
243
+ } | undefined;
244
+ };
245
+ network: {
246
+ chainIds: string[];
247
+ namespaces: string[];
248
+ };
249
+ cointype: string;
250
+ permissions: {
251
+ rpc: {
252
+ dapps: boolean;
253
+ methods: string[];
254
+ };
255
+ };
256
+ manifestVersion: string;
257
+ }>;
258
+ type Manifest = z.infer<typeof manifestSchema>;
259
+ declare const parseManifest: (params: unknown) => z.SafeParseReturnType<unknown, Manifest>;
260
+
261
+ export { Manifest, parseManifest };