@avalabs/vm-module-types 2.2.0 → 3.0.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/account.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkY465KEXP_cjs = require('./chunk-Y465KEXP.cjs');
3
+ var chunkLCSOMXO3_cjs = require('./chunk-LCSOMXO3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, 'WalletType', {
8
8
  enumerable: true,
9
- get: function () { return chunkY465KEXP_cjs.a; }
9
+ get: function () { return chunkLCSOMXO3_cjs.a; }
10
10
  });
11
11
  //# sourceMappingURL=out.js.map
12
12
  //# sourceMappingURL=account.cjs.map
@@ -34,6 +34,11 @@ type DetailedDeriveAddressParams = SimpleDeriveAddressParams & {
34
34
  * Useful when working with Ledger devices, which support BIP44 and Ledger Live derivation paths.
35
35
  */
36
36
  derivationPathType: DerivationPathType;
37
+ /**
38
+ * Address index for which the public key will be requested.
39
+ * This is NOT the same as {accountIndex}. Applicable mostly to X/P chain addresses.
40
+ */
41
+ addressIndex?: number;
37
42
  };
38
43
  type DeriveAddressParams = SimpleDeriveAddressParams | DetailedDeriveAddressParams;
39
44
  type DeriveAddressResponse = Partial<Record<NetworkVMType, string>>;
@@ -41,6 +46,7 @@ type DerivationPathType = 'bip44' | 'ledger_live';
41
46
  type BuildDerivationPathParams = {
42
47
  accountIndex: number;
43
48
  derivationPathType: DerivationPathType;
49
+ addressIndex?: number;
44
50
  };
45
51
  type BuildDerivationPathResponse = Partial<Record<NetworkVMType, string>>;
46
52
  type PubKeyType = {
package/dist/account.d.ts CHANGED
@@ -34,6 +34,11 @@ type DetailedDeriveAddressParams = SimpleDeriveAddressParams & {
34
34
  * Useful when working with Ledger devices, which support BIP44 and Ledger Live derivation paths.
35
35
  */
36
36
  derivationPathType: DerivationPathType;
37
+ /**
38
+ * Address index for which the public key will be requested.
39
+ * This is NOT the same as {accountIndex}. Applicable mostly to X/P chain addresses.
40
+ */
41
+ addressIndex?: number;
37
42
  };
38
43
  type DeriveAddressParams = SimpleDeriveAddressParams | DetailedDeriveAddressParams;
39
44
  type DeriveAddressResponse = Partial<Record<NetworkVMType, string>>;
@@ -41,6 +46,7 @@ type DerivationPathType = 'bip44' | 'ledger_live';
41
46
  type BuildDerivationPathParams = {
42
47
  accountIndex: number;
43
48
  derivationPathType: DerivationPathType;
49
+ addressIndex?: number;
44
50
  };
45
51
  type BuildDerivationPathResponse = Partial<Record<NetworkVMType, string>>;
46
52
  type PubKeyType = {
package/dist/account.js CHANGED
@@ -1,3 +1,3 @@
1
- export { a as WalletType } from './chunk-E4CYP2GV.js';
1
+ export { a as WalletType } from './chunk-WMOCBIRL.js';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=account.js.map
@@ -4,4 +4,4 @@ var r=(e=>(e.Mnemonic="mnemonic",e.Ledger="ledger",e.LedgerLive="ledger-live",e.
4
4
 
5
5
  exports.a = r;
6
6
  //# sourceMappingURL=out.js.map
7
- //# sourceMappingURL=chunk-Y465KEXP.cjs.map
7
+ //# sourceMappingURL=chunk-LCSOMXO3.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAEO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["import type { Network, NetworkVMType } from './common';\n\nexport 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 network?: Network;\n xpubXP?: string;\n};\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type SimpleDeriveAddressParams = {\n network: Omit<Network, 'tokens'>;\n /**\n * ID of the secret key to use for derivation.\n */\n secretId: string;\n};\nexport type DetailedDeriveAddressParams = SimpleDeriveAddressParams & {\n /**\n * Account index for which the public key is requested.\n * Leave empty if requesting a public key for a single-account private key.\n */\n accountIndex: number;\n /**\n * Type of the derivation path to use.\n * Useful when working with Ledger devices, which support BIP44 and Ledger Live derivation paths.\n */\n derivationPathType: DerivationPathType;\n};\n\nexport type DeriveAddressParams = SimpleDeriveAddressParams | DetailedDeriveAddressParams;\n\nexport type DeriveAddressResponse = Partial<Record<NetworkVMType, string>>;\n\nexport type DerivationPathType = 'bip44' | 'ledger_live';\nexport type BuildDerivationPathParams = { accountIndex: number; derivationPathType: DerivationPathType };\nexport type BuildDerivationPathResponse = Partial<Record<NetworkVMType, 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
+ {"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAEO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["import type { Network, NetworkVMType } from './common';\n\nexport 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 network?: Network;\n xpubXP?: string;\n};\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type SimpleDeriveAddressParams = {\n network: Omit<Network, 'tokens'>;\n /**\n * ID of the secret key to use for derivation.\n */\n secretId: string;\n};\nexport type DetailedDeriveAddressParams = SimpleDeriveAddressParams & {\n /**\n * Account index for which the public key is requested.\n * Leave empty if requesting a public key for a single-account private key.\n */\n accountIndex: number;\n /**\n * Type of the derivation path to use.\n * Useful when working with Ledger devices, which support BIP44 and Ledger Live derivation paths.\n */\n derivationPathType: DerivationPathType;\n\n /**\n * Address index for which the public key will be requested.\n * This is NOT the same as {accountIndex}. Applicable mostly to X/P chain addresses.\n */\n addressIndex?: number;\n};\n\nexport type DeriveAddressParams = SimpleDeriveAddressParams | DetailedDeriveAddressParams;\n\nexport type DeriveAddressResponse = Partial<Record<NetworkVMType, string>>;\n\nexport type DerivationPathType = 'bip44' | 'ledger_live';\nexport type BuildDerivationPathParams = {\n accountIndex: number;\n derivationPathType: DerivationPathType;\n addressIndex?: number;\n};\nexport type BuildDerivationPathResponse = Partial<Record<NetworkVMType, 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"]}
@@ -2,4 +2,4 @@ var r=(e=>(e.Mnemonic="mnemonic",e.Ledger="ledger",e.LedgerLive="ledger-live",e.
2
2
 
3
3
  export { r as a };
4
4
  //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chunk-E4CYP2GV.js.map
5
+ //# sourceMappingURL=chunk-WMOCBIRL.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAEO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["import type { Network, NetworkVMType } from './common';\n\nexport 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 network?: Network;\n xpubXP?: string;\n};\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type SimpleDeriveAddressParams = {\n network: Omit<Network, 'tokens'>;\n /**\n * ID of the secret key to use for derivation.\n */\n secretId: string;\n};\nexport type DetailedDeriveAddressParams = SimpleDeriveAddressParams & {\n /**\n * Account index for which the public key is requested.\n * Leave empty if requesting a public key for a single-account private key.\n */\n accountIndex: number;\n /**\n * Type of the derivation path to use.\n * Useful when working with Ledger devices, which support BIP44 and Ledger Live derivation paths.\n */\n derivationPathType: DerivationPathType;\n};\n\nexport type DeriveAddressParams = SimpleDeriveAddressParams | DetailedDeriveAddressParams;\n\nexport type DeriveAddressResponse = Partial<Record<NetworkVMType, string>>;\n\nexport type DerivationPathType = 'bip44' | 'ledger_live';\nexport type BuildDerivationPathParams = { accountIndex: number; derivationPathType: DerivationPathType };\nexport type BuildDerivationPathResponse = Partial<Record<NetworkVMType, 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
+ {"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAEO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["import type { Network, NetworkVMType } from './common';\n\nexport 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 network?: Network;\n xpubXP?: string;\n};\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type SimpleDeriveAddressParams = {\n network: Omit<Network, 'tokens'>;\n /**\n * ID of the secret key to use for derivation.\n */\n secretId: string;\n};\nexport type DetailedDeriveAddressParams = SimpleDeriveAddressParams & {\n /**\n * Account index for which the public key is requested.\n * Leave empty if requesting a public key for a single-account private key.\n */\n accountIndex: number;\n /**\n * Type of the derivation path to use.\n * Useful when working with Ledger devices, which support BIP44 and Ledger Live derivation paths.\n */\n derivationPathType: DerivationPathType;\n\n /**\n * Address index for which the public key will be requested.\n * This is NOT the same as {accountIndex}. Applicable mostly to X/P chain addresses.\n */\n addressIndex?: number;\n};\n\nexport type DeriveAddressParams = SimpleDeriveAddressParams | DetailedDeriveAddressParams;\n\nexport type DeriveAddressResponse = Partial<Record<NetworkVMType, string>>;\n\nexport type DerivationPathType = 'bip44' | 'ledger_live';\nexport type BuildDerivationPathParams = {\n accountIndex: number;\n derivationPathType: DerivationPathType;\n addressIndex?: number;\n};\nexport type BuildDerivationPathResponse = Partial<Record<NetworkVMType, 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"]}
@@ -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/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@ var chunkPX3B6TJZ_cjs = require('./chunk-PX3B6TJZ.cjs');
7
7
  var chunkN7PCIGVW_cjs = require('./chunk-N7PCIGVW.cjs');
8
8
  var chunkB6DAZDIA_cjs = require('./chunk-B6DAZDIA.cjs');
9
9
  require('./chunk-47KTBBRA.cjs');
10
- var chunkY465KEXP_cjs = require('./chunk-Y465KEXP.cjs');
10
+ var chunkLCSOMXO3_cjs = require('./chunk-LCSOMXO3.cjs');
11
11
  require('./chunk-JUV577XH.cjs');
12
12
  var chunk4PGCXP4C_cjs = require('./chunk-4PGCXP4C.cjs');
13
13
  require('./chunk-SYVNOFCV.cjs');
@@ -55,7 +55,7 @@ Object.defineProperty(exports, 'XChainTransactionType', {
55
55
  });
56
56
  Object.defineProperty(exports, 'WalletType', {
57
57
  enumerable: true,
58
- get: function () { return chunkY465KEXP_cjs.a; }
58
+ get: function () { return chunkLCSOMXO3_cjs.a; }
59
59
  });
60
60
  Object.defineProperty(exports, 'RawSimplePriceResponseSchema', {
61
61
  enumerable: true,
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ export { a as TxType } from './chunk-FGMDBV23.js';
5
5
  export { a as TokenType } from './chunk-GMF7R4KJ.js';
6
6
  export { b as PChainTransactionType, a as TransactionType, c as XChainTransactionType } from './chunk-7JLXTNPE.js';
7
7
  import './chunk-P6AM7I3B.js';
8
- export { a as WalletType } from './chunk-E4CYP2GV.js';
8
+ export { a as WalletType } from './chunk-WMOCBIRL.js';
9
9
  import './chunk-BHB5UV3J.js';
10
10
  export { b as RawSimplePriceResponseSchema, a as SimplePriceResponseSchema } from './chunk-WOO6UGSQ.js';
11
11
  import './chunk-REHORWPH.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/vm-module-types",
3
- "version": "2.2.0",
3
+ "version": "3.0.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",