@avalabs/vm-module-types 0.0.0-getAddress-20240730175707 → 0.0.0-getAddress-20240730182651

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.
@@ -22,7 +22,7 @@ Generated an empty chunk: "chunk-7U2R34EQ".
22
22
  CJS dist/chunk-2KGTZTXY.cjs 219.00 B
23
23
  CJS dist/chunk-B6DAZDIA.cjs 1.21 KB
24
24
  CJS dist/chunk-47KTBBRA.cjs 90.00 B
25
- CJS dist/chunk-UG4T7OTF.cjs 240.00 B
25
+ CJS dist/chunk-TCBFAMPS.cjs 240.00 B
26
26
  CJS dist/chunk-JUV577XH.cjs 90.00 B
27
27
  CJS dist/chunk-VRQJHO4F.cjs 276.00 B
28
28
  CJS dist/chunk-OGQBQHLH.cjs 90.00 B
@@ -45,7 +45,7 @@ Generated an empty chunk: "chunk-7U2R34EQ".
45
45
  CJS dist/chunk-2KGTZTXY.cjs.map 1.18 KB
46
46
  CJS dist/chunk-B6DAZDIA.cjs.map 3.72 KB
47
47
  CJS dist/chunk-47KTBBRA.cjs.map 51.00 B
48
- CJS dist/chunk-UG4T7OTF.cjs.map 1.42 KB
48
+ CJS dist/chunk-TCBFAMPS.cjs.map 997.00 B
49
49
  CJS dist/chunk-JUV577XH.cjs.map 51.00 B
50
50
  CJS dist/chunk-VRQJHO4F.cjs.map 1.08 KB
51
51
  CJS dist/chunk-OGQBQHLH.cjs.map 51.00 B
@@ -64,12 +64,12 @@ Generated an empty chunk: "chunk-7U2R34EQ".
64
64
  CJS dist/chunk-74SNNWSF.cjs.map 1.65 KB
65
65
  CJS dist/module.cjs.map 51.00 B
66
66
  CJS dist/network-fee.cjs.map 51.00 B
67
- CJS ⚡️ Build success in 1287ms
67
+ CJS ⚡️ Build success in 1330ms
68
68
  ESM dist/chunk-RKFOXZ35.js 464.00 B
69
69
  ESM dist/chunk-7Y6UGMPZ.js 207.00 B
70
70
  ESM dist/chunk-7JLXTNPE.js 1.18 KB
71
71
  ESM dist/chunk-P6AM7I3B.js 75.00 B
72
- ESM dist/chunk-SCIT4N2H.js 228.00 B
72
+ ESM dist/chunk-RIBT5FN6.js 228.00 B
73
73
  ESM dist/chunk-BHB5UV3J.js 75.00 B
74
74
  ESM dist/chunk-4BNYMHOY.js 257.00 B
75
75
  ESM dist/chunk-CUVJNZP5.js 75.00 B
@@ -92,7 +92,7 @@ Generated an empty chunk: "chunk-7U2R34EQ".
92
92
  ESM dist/chunk-7Y6UGMPZ.js.map 1.18 KB
93
93
  ESM dist/chunk-7JLXTNPE.js.map 3.72 KB
94
94
  ESM dist/chunk-P6AM7I3B.js.map 51.00 B
95
- ESM dist/chunk-SCIT4N2H.js.map 1.42 KB
95
+ ESM dist/chunk-RIBT5FN6.js.map 997.00 B
96
96
  ESM dist/chunk-BHB5UV3J.js.map 51.00 B
97
97
  ESM dist/chunk-4BNYMHOY.js.map 1.08 KB
98
98
  ESM dist/chunk-CUVJNZP5.js.map 51.00 B
@@ -111,13 +111,13 @@ Generated an empty chunk: "chunk-7U2R34EQ".
111
111
  ESM dist/chunk-A4YEBDMG.js.map 1.65 KB
112
112
  ESM dist/module.js.map 51.00 B
113
113
  ESM dist/network-fee.js.map 51.00 B
114
- ESM ⚡️ Build success in 1326ms
114
+ ESM ⚡️ Build success in 1360ms
115
115
  DTS Build start
116
- DTS ⚡️ Build success in 10305ms
116
+ DTS ⚡️ Build success in 10522ms
117
117
  DTS dist/index.d.cts 1.54 KB
118
118
  DTS dist/coingecko.d.cts 1.09 KB
119
119
  DTS dist/module.d.cts 1.15 KB
120
- DTS dist/account.d.cts 1.23 KB
120
+ DTS dist/account.d.cts 841.00 B
121
121
  DTS dist/balance.d.cts 3.81 KB
122
122
  DTS dist/manifest.d.cts 6.95 KB
123
123
  DTS dist/network-fee.d.cts 361.00 B
@@ -129,7 +129,7 @@ Generated an empty chunk: "chunk-7U2R34EQ".
129
129
  DTS dist/index.d.ts 1.53 KB
130
130
  DTS dist/coingecko.d.ts 1.09 KB
131
131
  DTS dist/module.d.ts 1.14 KB
132
- DTS dist/account.d.ts 1.23 KB
132
+ DTS dist/account.d.ts 841.00 B
133
133
  DTS dist/balance.d.ts 3.80 KB
134
134
  DTS dist/manifest.d.ts 6.95 KB
135
135
  DTS dist/network-fee.d.ts 361.00 B
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @avalabs/vm-module-types
2
2
 
3
- ## 0.0.0-getAddress-20240730175707
3
+ ## 0.0.0-getAddress-20240730182651
4
4
 
5
5
  ## 0.0.22
6
6
 
package/dist/account.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkUG4T7OTF_cjs = require('./chunk-UG4T7OTF.cjs');
3
+ var chunkTCBFAMPS_cjs = require('./chunk-TCBFAMPS.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, 'WalletType', {
8
8
  enumerable: true,
9
- get: function () { return chunkUG4T7OTF_cjs.a; }
9
+ get: function () { return chunkTCBFAMPS_cjs.a; }
10
10
  });
11
11
  //# sourceMappingURL=out.js.map
12
12
  //# sourceMappingURL=account.cjs.map
@@ -5,20 +5,13 @@ declare enum WalletType {
5
5
  Keystone = "keystone",
6
6
  Seedless = "seedless"
7
7
  }
8
- type ParamsByWalletType<T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger | WalletType.LedgerLive | WalletType.Seedless> = T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger ? {
9
- walletType: T;
10
- accountIndex: number;
11
- xpub: string;
12
- xpubXP: string;
13
- isTestnet?: boolean;
14
- } : T extends WalletType.LedgerLive | WalletType.Seedless ? {
15
- walletType: T;
8
+ type GetAddressParams = {
9
+ walletType: WalletType;
16
10
  accountIndex: number;
17
11
  xpub: string;
18
12
  xpubXP?: string;
19
13
  isTestnet?: boolean;
20
- } : never;
21
- type GetAddressParams = ParamsByWalletType<WalletType>;
14
+ };
22
15
  type GetAddressResponse = Record<string, string>;
23
16
  type PubKeyType = {
24
17
  evm: string;
package/dist/account.d.ts CHANGED
@@ -5,20 +5,13 @@ declare enum WalletType {
5
5
  Keystone = "keystone",
6
6
  Seedless = "seedless"
7
7
  }
8
- type ParamsByWalletType<T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger | WalletType.LedgerLive | WalletType.Seedless> = T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger ? {
9
- walletType: T;
10
- accountIndex: number;
11
- xpub: string;
12
- xpubXP: string;
13
- isTestnet?: boolean;
14
- } : T extends WalletType.LedgerLive | WalletType.Seedless ? {
15
- walletType: T;
8
+ type GetAddressParams = {
9
+ walletType: WalletType;
16
10
  accountIndex: number;
17
11
  xpub: string;
18
12
  xpubXP?: string;
19
13
  isTestnet?: boolean;
20
- } : never;
21
- type GetAddressParams = ParamsByWalletType<WalletType>;
14
+ };
22
15
  type GetAddressResponse = Record<string, string>;
23
16
  type PubKeyType = {
24
17
  evm: string;
package/dist/account.js CHANGED
@@ -1,3 +1,3 @@
1
- export { a as WalletType } from './chunk-SCIT4N2H.js';
1
+ export { a as WalletType } from './chunk-RIBT5FN6.js';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=account.js.map
@@ -2,4 +2,4 @@ var t=(e=>(e.Mnemonic="mnemonic",e.Ledger="ledger",e.LedgerLive="ledger-live",e.
2
2
 
3
3
  export { t as a };
4
4
  //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chunk-SCIT4N2H.js.map
5
+ //# sourceMappingURL=chunk-RIBT5FN6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAAO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["export enum WalletType {\n // Primary wallet types\n Mnemonic = 'mnemonic',\n Ledger = 'ledger',\n LedgerLive = 'ledger-live',\n Keystone = 'keystone',\n Seedless = 'seedless',\n}\n\nexport type GetAddressParams = {\n walletType: WalletType;\n accountIndex: number;\n xpub: string;\n xpubXP?: string;\n isTestnet?: boolean;\n};\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type PubKeyType = {\n evm: string;\n /**\n * Public keys used for X/P chain are from a different derivation path.\n */\n xp?: string;\n btcWalletPolicyDetails?: BtcWalletPolicyDetails;\n};\n\nexport type BtcWalletPolicyDetails = {\n hmacHex: string;\n /**\n * Extended public key of m/44'/60'/n\n */\n xpub: string;\n masterFingerprint: string;\n name: string;\n};\n"]}
@@ -4,4 +4,4 @@ var t=(e=>(e.Mnemonic="mnemonic",e.Ledger="ledger",e.LedgerLive="ledger-live",e.
4
4
 
5
5
  exports.a = t;
6
6
  //# sourceMappingURL=out.js.map
7
- //# sourceMappingURL=chunk-UG4T7OTF.cjs.map
7
+ //# sourceMappingURL=chunk-TCBFAMPS.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAAO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["export enum WalletType {\n // Primary wallet types\n Mnemonic = 'mnemonic',\n Ledger = 'ledger',\n LedgerLive = 'ledger-live',\n Keystone = 'keystone',\n Seedless = 'seedless',\n}\n\nexport type GetAddressParams = {\n walletType: WalletType;\n accountIndex: number;\n xpub: string;\n xpubXP?: string;\n isTestnet?: boolean;\n};\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type PubKeyType = {\n evm: string;\n /**\n * Public keys used for X/P chain are from a different derivation path.\n */\n xp?: string;\n btcWalletPolicyDetails?: BtcWalletPolicyDetails;\n};\n\nexport type BtcWalletPolicyDetails = {\n hmacHex: string;\n /**\n * Extended public key of m/44'/60'/n\n */\n xpub: string;\n masterFingerprint: string;\n name: string;\n};\n"]}
package/dist/index.cjs CHANGED
@@ -4,7 +4,7 @@ var chunkYVYCETG2_cjs = require('./chunk-YVYCETG2.cjs');
4
4
  var chunk2KGTZTXY_cjs = require('./chunk-2KGTZTXY.cjs');
5
5
  var chunkB6DAZDIA_cjs = require('./chunk-B6DAZDIA.cjs');
6
6
  require('./chunk-47KTBBRA.cjs');
7
- var chunkUG4T7OTF_cjs = require('./chunk-UG4T7OTF.cjs');
7
+ var chunkTCBFAMPS_cjs = require('./chunk-TCBFAMPS.cjs');
8
8
  require('./chunk-JUV577XH.cjs');
9
9
  var chunk4PGCXP4C_cjs = require('./chunk-4PGCXP4C.cjs');
10
10
  var chunkVRQJHO4F_cjs = require('./chunk-VRQJHO4F.cjs');
@@ -40,7 +40,7 @@ Object.defineProperty(exports, 'XChainTransactionType', {
40
40
  });
41
41
  Object.defineProperty(exports, 'WalletType', {
42
42
  enumerable: true,
43
- get: function () { return chunkUG4T7OTF_cjs.a; }
43
+ get: function () { return chunkTCBFAMPS_cjs.a; }
44
44
  });
45
45
  Object.defineProperty(exports, 'RawSimplePriceResponseSchema', {
46
46
  enumerable: true,
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ export { b as AlertType, a as RpcMethod } from './chunk-RKFOXZ35.js';
2
2
  export { a as TokenType } from './chunk-7Y6UGMPZ.js';
3
3
  export { b as PChainTransactionType, a as TransactionType, c as XChainTransactionType } from './chunk-7JLXTNPE.js';
4
4
  import './chunk-P6AM7I3B.js';
5
- export { a as WalletType } from './chunk-SCIT4N2H.js';
5
+ export { a as WalletType } from './chunk-RIBT5FN6.js';
6
6
  import './chunk-BHB5UV3J.js';
7
7
  export { b as RawSimplePriceResponseSchema, a as SimplePriceResponseSchema } from './chunk-WOO6UGSQ.js';
8
8
  export { b as Environment, a as NetworkVMType } from './chunk-4BNYMHOY.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/vm-module-types",
3
- "version": "0.0.0-getAddress-20240730175707",
3
+ "version": "0.0.0-getAddress-20240730182651",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
package/src/account.ts CHANGED
@@ -7,16 +7,13 @@ export enum WalletType {
7
7
  Seedless = 'seedless',
8
8
  }
9
9
 
10
- type ParamsByWalletType<
11
- T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger | WalletType.LedgerLive | WalletType.Seedless,
12
- > = T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger
13
- ? { walletType: T; accountIndex: number; xpub: string; xpubXP: string; isTestnet?: boolean }
14
- : T extends WalletType.LedgerLive | WalletType.Seedless
15
- ? // xpubXP is optional for LedgerLive and Seedless
16
- { walletType: T; accountIndex: number; xpub: string; xpubXP?: string; isTestnet?: boolean }
17
- : never;
18
-
19
- export type GetAddressParams = ParamsByWalletType<WalletType>;
10
+ export type GetAddressParams = {
11
+ walletType: WalletType;
12
+ accountIndex: number;
13
+ xpub: string;
14
+ xpubXP?: string;
15
+ isTestnet?: boolean;
16
+ };
20
17
 
21
18
  export type GetAddressResponse = Record<string, string>;
22
19
 
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAAO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["export enum WalletType {\n // Primary wallet types\n Mnemonic = 'mnemonic',\n Ledger = 'ledger',\n LedgerLive = 'ledger-live',\n Keystone = 'keystone',\n Seedless = 'seedless',\n}\n\ntype ParamsByWalletType<\n T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger | WalletType.LedgerLive | WalletType.Seedless,\n> = T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger\n ? { walletType: T; accountIndex: number; xpub: string; xpubXP: string; isTestnet?: boolean }\n : T extends WalletType.LedgerLive | WalletType.Seedless\n ? // xpubXP is optional for LedgerLive and Seedless\n { walletType: T; accountIndex: number; xpub: string; xpubXP?: string; isTestnet?: boolean }\n : never;\n\nexport type GetAddressParams = ParamsByWalletType<WalletType>;\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type PubKeyType = {\n evm: string;\n /**\n * Public keys used for X/P chain are from a different derivation path.\n */\n xp?: string;\n btcWalletPolicyDetails?: BtcWalletPolicyDetails;\n};\n\nexport type BtcWalletPolicyDetails = {\n hmacHex: string;\n /**\n * Extended public key of m/44'/60'/n\n */\n xpub: string;\n masterFingerprint: string;\n name: string;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAAO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["export enum WalletType {\n // Primary wallet types\n Mnemonic = 'mnemonic',\n Ledger = 'ledger',\n LedgerLive = 'ledger-live',\n Keystone = 'keystone',\n Seedless = 'seedless',\n}\n\ntype ParamsByWalletType<\n T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger | WalletType.LedgerLive | WalletType.Seedless,\n> = T extends WalletType.Mnemonic | WalletType.Keystone | WalletType.Ledger\n ? { walletType: T; accountIndex: number; xpub: string; xpubXP: string; isTestnet?: boolean }\n : T extends WalletType.LedgerLive | WalletType.Seedless\n ? // xpubXP is optional for LedgerLive and Seedless\n { walletType: T; accountIndex: number; xpub: string; xpubXP?: string; isTestnet?: boolean }\n : never;\n\nexport type GetAddressParams = ParamsByWalletType<WalletType>;\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type PubKeyType = {\n evm: string;\n /**\n * Public keys used for X/P chain are from a different derivation path.\n */\n xp?: string;\n btcWalletPolicyDetails?: BtcWalletPolicyDetails;\n};\n\nexport type BtcWalletPolicyDetails = {\n hmacHex: string;\n /**\n * Extended public key of m/44'/60'/n\n */\n xpub: string;\n masterFingerprint: string;\n name: string;\n};\n"]}