@avalabs/vm-module-types 0.11.11 → 0.11.12

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 chunkTCBFAMPS_cjs = require('./chunk-TCBFAMPS.cjs');
3
+ var chunk6JAA7W6A_cjs = require('./chunk-6JAA7W6A.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, 'WalletType', {
8
8
  enumerable: true,
9
- get: function () { return chunkTCBFAMPS_cjs.a; }
9
+ get: function () { return chunk6JAA7W6A_cjs.a; }
10
10
  });
11
11
  //# sourceMappingURL=out.js.map
12
12
  //# sourceMappingURL=account.cjs.map
@@ -1,3 +1,6 @@
1
+ import { Network } from './common.cjs';
2
+ import './token.cjs';
3
+
1
4
  declare enum WalletType {
2
5
  Mnemonic = "mnemonic",
3
6
  Ledger = "ledger",
@@ -9,8 +12,8 @@ type GetAddressParams = {
9
12
  walletType: WalletType;
10
13
  accountIndex: number;
11
14
  xpub: string;
15
+ network?: Network;
12
16
  xpubXP?: string;
13
- isTestnet?: boolean;
14
17
  };
15
18
  type GetAddressResponse = Record<string, string>;
16
19
  type PubKeyType = {
package/dist/account.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import { Network } from './common.js';
2
+ import './token.js';
3
+
1
4
  declare enum WalletType {
2
5
  Mnemonic = "mnemonic",
3
6
  Ledger = "ledger",
@@ -9,8 +12,8 @@ type GetAddressParams = {
9
12
  walletType: WalletType;
10
13
  accountIndex: number;
11
14
  xpub: string;
15
+ network?: Network;
12
16
  xpubXP?: string;
13
- isTestnet?: boolean;
14
17
  };
15
18
  type GetAddressResponse = Record<string, string>;
16
19
  type PubKeyType = {
package/dist/account.js CHANGED
@@ -1,3 +1,3 @@
1
- export { a as WalletType } from './chunk-RIBT5FN6.js';
1
+ export { a as WalletType } from './chunk-I5OST5LZ.js';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=account.js.map
@@ -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-TCBFAMPS.cjs.map
7
+ //# sourceMappingURL=chunk-6JAA7W6A.cjs.map
@@ -0,0 +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 } 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 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,5 +1,5 @@
1
- var e=(t=>(t.Base="base",t.AddValidator="add_validator",t.AddDelegator="add_delegator",t.Export="export",t.Import="import",t.CreateSubnet="create_subnet",t.CreateChain="create_chain",t.AddSubnetValidator="add_subnet_validator",t.RemoveSubnetValidator="remove_subnet_validator",t.AddPermissionlessValidator="add_permissionless_validator",t.AddPermissionlessDelegator="add_permissionless_delegator",t.TransformSubnet="transform_subnet",t.TransferSubnetOwnership="transfer_subnet_ownership",t.Unknown="unknown",t))(e||{});
1
+ var e=(t=>(t.Base="base",t.AddValidator="add_validator",t.AddDelegator="add_delegator",t.Export="export",t.Import="import",t.CreateSubnet="create_subnet",t.CreateChain="create_chain",t.AddSubnetValidator="add_subnet_validator",t.RemoveSubnetValidator="remove_subnet_validator",t.AddPermissionlessValidator="add_permissionless_validator",t.AddPermissionlessDelegator="add_permissionless_delegator",t.TransformSubnet="transform_subnet",t.TransferSubnetOwnership="transfer_subnet_ownership",t.ConvertSubnetToL1="convert_subnet_to_l1",t.RegisterL1Validator="register_l1_validator",t.SetL1ValidatorWeight="set_l1_validator_weight",t.IncreaseL1ValidatorBalance="increase_l1_validator_balance",t.DisableL1Validator="disable_l1_validator",t.Unknown="unknown",t))(e||{});
2
2
 
3
3
  export { e as a };
4
4
  //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chunk-2SJQLDBB.js.map
5
+ //# sourceMappingURL=chunk-FGMDBV23.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/staking.ts"],"names":["TxType"],"mappings":"AAuKO,IAAKA,OACVA,EAAA,KAAO,OACPA,EAAA,aAAe,gBACfA,EAAA,aAAe,gBACfA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,aAAe,gBACfA,EAAA,YAAc,eACdA,EAAA,mBAAqB,uBACrBA,EAAA,sBAAwB,0BACxBA,EAAA,2BAA6B,+BAC7BA,EAAA,2BAA6B,+BAC7BA,EAAA,gBAAkB,mBAClBA,EAAA,wBAA0B,4BAC1BA,EAAA,kBAAoB,uBACpBA,EAAA,oBAAsB,wBACtBA,EAAA,qBAAuB,0BACvBA,EAAA,2BAA6B,gCAC7BA,EAAA,mBAAqB,uBACrBA,EAAA,QAAU,UAnBAA,OAAA","sourcesContent":["import type { NetworkVMType } from './common';\n\nexport type TxDetails =\n | StakingDetails\n | ExportImportTxDetails\n | ChainDetails\n | BlockchainDetails\n | SubnetDetails\n | L1Details;\n\nexport type StakingDetails =\n | AddPermissionlessDelegatorTx\n | AddPermissionlessValidatorTx\n | AddSubnetValidatorTx\n | RemoveSubnetValidatorTx;\nexport type ExportImportTxDetails = ExportTx | ImportTx;\nexport type ChainDetails = BaseTx;\nexport type BlockchainDetails = CreateChainTx;\nexport type SubnetDetails = CreateSubnetTx;\nexport type L1Details =\n | ConvertSubnetToL1Tx\n | RegisterL1ValidatorTx\n | SetL1ValidatorWeightTx\n | IncreaseL1ValidatorBalanceTx\n | DisableL1ValidatorTx;\n\nexport type VM = NetworkVMType.AVM | NetworkVMType.EVM | NetworkVMType.PVM;\n\nexport type AddPermissionlessDelegatorTx = {\n type: TxType.AddPermissionlessDelegator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n start: string;\n end: string;\n txFee: bigint;\n};\n\nexport type AddPermissionlessValidatorTx = {\n type: TxType.AddPermissionlessValidator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n delegationFee: number;\n start: string;\n end: string;\n txFee: bigint;\n publicKey?: string;\n signature?: string;\n};\n\nexport interface ExportTx {\n type: TxType.Export;\n destination: VM;\n amount: bigint;\n chain: VM;\n txFee: bigint;\n}\n\nexport interface ImportTx {\n type: TxType.Import;\n source: VM;\n amount: bigint;\n chain: VM;\n txFee: bigint;\n}\n\nexport interface BaseTx {\n type: TxType.Base;\n chain: VM;\n outputs: {\n assetId: string;\n locktime: bigint;\n threshold: bigint;\n amount: bigint;\n assetDescription?: {\n assetID: string;\n name: string;\n symbol: string;\n denomination: number;\n };\n owners: string[];\n isAvax: boolean;\n }[];\n memo?: string;\n txFee: bigint;\n}\n\nexport type AddSubnetValidatorTx = {\n type: TxType.AddSubnetValidator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n start: string;\n end: string;\n txFee: bigint;\n};\n\nexport type CreateChainTx = {\n type: TxType.CreateChain;\n chainName: string;\n chainID: string;\n vmID: string;\n genesisData: string;\n txFee: bigint;\n};\n\nexport type CreateSubnetTx = {\n type: TxType.CreateSubnet;\n threshold: number;\n controlKeys: string[];\n txFee: bigint;\n};\n\nexport type RemoveSubnetValidatorTx = {\n type: TxType.RemoveSubnetValidator;\n nodeID: string;\n subnetID: string;\n txFee: bigint;\n};\n\nexport type FeeData = {\n totalAvaxBurned: bigint;\n totalAvaxOutput: bigint;\n totalAvaxInput: bigint;\n isValidAvaxBurnedAmount: boolean;\n txFee: bigint;\n};\n\nexport type TxBase = FeeData & {\n chain: VM;\n};\n\nexport type ConvertSubnetToL1Tx = TxBase & {\n type: TxType.ConvertSubnetToL1;\n managerAddress: string;\n validators: {\n nodeId: string;\n stake: bigint;\n balance: bigint;\n remainingBalanceOwners: string[];\n deactivationOwners: string[];\n }[];\n subnetID: string;\n chainID: string;\n};\n\nexport type RegisterL1ValidatorTx = TxBase & {\n type: TxType.RegisterL1Validator;\n balance: bigint;\n};\n\nexport type SetL1ValidatorWeightTx = TxBase & {\n type: TxType.SetL1ValidatorWeight;\n};\n\nexport type IncreaseL1ValidatorBalanceTx = TxBase & {\n type: TxType.IncreaseL1ValidatorBalance;\n balance: bigint;\n validationId: string;\n};\n\nexport type DisableL1ValidatorTx = TxBase & {\n type: TxType.DisableL1Validator;\n validationId: string;\n};\n\nexport enum TxType {\n Base = 'base',\n AddValidator = 'add_validator',\n AddDelegator = 'add_delegator',\n Export = 'export',\n Import = 'import',\n CreateSubnet = 'create_subnet',\n CreateChain = 'create_chain',\n AddSubnetValidator = 'add_subnet_validator',\n RemoveSubnetValidator = 'remove_subnet_validator',\n AddPermissionlessValidator = 'add_permissionless_validator',\n AddPermissionlessDelegator = 'add_permissionless_delegator',\n TransformSubnet = 'transform_subnet',\n TransferSubnetOwnership = 'transfer_subnet_ownership',\n ConvertSubnetToL1 = 'convert_subnet_to_l1',\n RegisterL1Validator = 'register_l1_validator',\n SetL1ValidatorWeight = 'set_l1_validator_weight',\n IncreaseL1ValidatorBalance = 'increase_l1_validator_balance',\n DisableL1Validator = 'disable_l1_validator',\n Unknown = 'unknown',\n}\n"]}
@@ -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-RIBT5FN6.js.map
5
+ //# sourceMappingURL=chunk-I5OST5LZ.js.map
@@ -0,0 +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 } 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 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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var e=(t=>(t.Base="base",t.AddValidator="add_validator",t.AddDelegator="add_delegator",t.Export="export",t.Import="import",t.CreateSubnet="create_subnet",t.CreateChain="create_chain",t.AddSubnetValidator="add_subnet_validator",t.RemoveSubnetValidator="remove_subnet_validator",t.AddPermissionlessValidator="add_permissionless_validator",t.AddPermissionlessDelegator="add_permissionless_delegator",t.TransformSubnet="transform_subnet",t.TransferSubnetOwnership="transfer_subnet_ownership",t.Unknown="unknown",t))(e||{});
3
+ var e=(t=>(t.Base="base",t.AddValidator="add_validator",t.AddDelegator="add_delegator",t.Export="export",t.Import="import",t.CreateSubnet="create_subnet",t.CreateChain="create_chain",t.AddSubnetValidator="add_subnet_validator",t.RemoveSubnetValidator="remove_subnet_validator",t.AddPermissionlessValidator="add_permissionless_validator",t.AddPermissionlessDelegator="add_permissionless_delegator",t.TransformSubnet="transform_subnet",t.TransferSubnetOwnership="transfer_subnet_ownership",t.ConvertSubnetToL1="convert_subnet_to_l1",t.RegisterL1Validator="register_l1_validator",t.SetL1ValidatorWeight="set_l1_validator_weight",t.IncreaseL1ValidatorBalance="increase_l1_validator_balance",t.DisableL1Validator="disable_l1_validator",t.Unknown="unknown",t))(e||{});
4
4
 
5
5
  exports.a = e;
6
6
  //# sourceMappingURL=out.js.map
7
- //# sourceMappingURL=chunk-IQNJXPS3.cjs.map
7
+ //# sourceMappingURL=chunk-PX3B6TJZ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/staking.ts"],"names":["TxType"],"mappings":"AAuKO,IAAKA,OACVA,EAAA,KAAO,OACPA,EAAA,aAAe,gBACfA,EAAA,aAAe,gBACfA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,aAAe,gBACfA,EAAA,YAAc,eACdA,EAAA,mBAAqB,uBACrBA,EAAA,sBAAwB,0BACxBA,EAAA,2BAA6B,+BAC7BA,EAAA,2BAA6B,+BAC7BA,EAAA,gBAAkB,mBAClBA,EAAA,wBAA0B,4BAC1BA,EAAA,kBAAoB,uBACpBA,EAAA,oBAAsB,wBACtBA,EAAA,qBAAuB,0BACvBA,EAAA,2BAA6B,gCAC7BA,EAAA,mBAAqB,uBACrBA,EAAA,QAAU,UAnBAA,OAAA","sourcesContent":["import type { NetworkVMType } from './common';\n\nexport type TxDetails =\n | StakingDetails\n | ExportImportTxDetails\n | ChainDetails\n | BlockchainDetails\n | SubnetDetails\n | L1Details;\n\nexport type StakingDetails =\n | AddPermissionlessDelegatorTx\n | AddPermissionlessValidatorTx\n | AddSubnetValidatorTx\n | RemoveSubnetValidatorTx;\nexport type ExportImportTxDetails = ExportTx | ImportTx;\nexport type ChainDetails = BaseTx;\nexport type BlockchainDetails = CreateChainTx;\nexport type SubnetDetails = CreateSubnetTx;\nexport type L1Details =\n | ConvertSubnetToL1Tx\n | RegisterL1ValidatorTx\n | SetL1ValidatorWeightTx\n | IncreaseL1ValidatorBalanceTx\n | DisableL1ValidatorTx;\n\nexport type VM = NetworkVMType.AVM | NetworkVMType.EVM | NetworkVMType.PVM;\n\nexport type AddPermissionlessDelegatorTx = {\n type: TxType.AddPermissionlessDelegator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n start: string;\n end: string;\n txFee: bigint;\n};\n\nexport type AddPermissionlessValidatorTx = {\n type: TxType.AddPermissionlessValidator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n delegationFee: number;\n start: string;\n end: string;\n txFee: bigint;\n publicKey?: string;\n signature?: string;\n};\n\nexport interface ExportTx {\n type: TxType.Export;\n destination: VM;\n amount: bigint;\n chain: VM;\n txFee: bigint;\n}\n\nexport interface ImportTx {\n type: TxType.Import;\n source: VM;\n amount: bigint;\n chain: VM;\n txFee: bigint;\n}\n\nexport interface BaseTx {\n type: TxType.Base;\n chain: VM;\n outputs: {\n assetId: string;\n locktime: bigint;\n threshold: bigint;\n amount: bigint;\n assetDescription?: {\n assetID: string;\n name: string;\n symbol: string;\n denomination: number;\n };\n owners: string[];\n isAvax: boolean;\n }[];\n memo?: string;\n txFee: bigint;\n}\n\nexport type AddSubnetValidatorTx = {\n type: TxType.AddSubnetValidator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n start: string;\n end: string;\n txFee: bigint;\n};\n\nexport type CreateChainTx = {\n type: TxType.CreateChain;\n chainName: string;\n chainID: string;\n vmID: string;\n genesisData: string;\n txFee: bigint;\n};\n\nexport type CreateSubnetTx = {\n type: TxType.CreateSubnet;\n threshold: number;\n controlKeys: string[];\n txFee: bigint;\n};\n\nexport type RemoveSubnetValidatorTx = {\n type: TxType.RemoveSubnetValidator;\n nodeID: string;\n subnetID: string;\n txFee: bigint;\n};\n\nexport type FeeData = {\n totalAvaxBurned: bigint;\n totalAvaxOutput: bigint;\n totalAvaxInput: bigint;\n isValidAvaxBurnedAmount: boolean;\n txFee: bigint;\n};\n\nexport type TxBase = FeeData & {\n chain: VM;\n};\n\nexport type ConvertSubnetToL1Tx = TxBase & {\n type: TxType.ConvertSubnetToL1;\n managerAddress: string;\n validators: {\n nodeId: string;\n stake: bigint;\n balance: bigint;\n remainingBalanceOwners: string[];\n deactivationOwners: string[];\n }[];\n subnetID: string;\n chainID: string;\n};\n\nexport type RegisterL1ValidatorTx = TxBase & {\n type: TxType.RegisterL1Validator;\n balance: bigint;\n};\n\nexport type SetL1ValidatorWeightTx = TxBase & {\n type: TxType.SetL1ValidatorWeight;\n};\n\nexport type IncreaseL1ValidatorBalanceTx = TxBase & {\n type: TxType.IncreaseL1ValidatorBalance;\n balance: bigint;\n validationId: string;\n};\n\nexport type DisableL1ValidatorTx = TxBase & {\n type: TxType.DisableL1Validator;\n validationId: string;\n};\n\nexport enum TxType {\n Base = 'base',\n AddValidator = 'add_validator',\n AddDelegator = 'add_delegator',\n Export = 'export',\n Import = 'import',\n CreateSubnet = 'create_subnet',\n CreateChain = 'create_chain',\n AddSubnetValidator = 'add_subnet_validator',\n RemoveSubnetValidator = 'remove_subnet_validator',\n AddPermissionlessValidator = 'add_permissionless_validator',\n AddPermissionlessDelegator = 'add_permissionless_delegator',\n TransformSubnet = 'transform_subnet',\n TransferSubnetOwnership = 'transfer_subnet_ownership',\n ConvertSubnetToL1 = 'convert_subnet_to_l1',\n RegisterL1Validator = 'register_l1_validator',\n SetL1ValidatorWeight = 'set_l1_validator_weight',\n IncreaseL1ValidatorBalance = 'increase_l1_validator_balance',\n DisableL1Validator = 'disable_l1_validator',\n Unknown = 'unknown',\n}\n"]}
package/dist/index.cjs CHANGED
@@ -3,11 +3,11 @@
3
3
  require('./chunk-AILYKQEY.cjs');
4
4
  var chunkJQSZ7QKK_cjs = require('./chunk-JQSZ7QKK.cjs');
5
5
  var chunk6I6K3HIC_cjs = require('./chunk-6I6K3HIC.cjs');
6
- var chunkIQNJXPS3_cjs = require('./chunk-IQNJXPS3.cjs');
6
+ var chunkPX3B6TJZ_cjs = require('./chunk-PX3B6TJZ.cjs');
7
7
  var chunk2KGTZTXY_cjs = require('./chunk-2KGTZTXY.cjs');
8
8
  var chunkB6DAZDIA_cjs = require('./chunk-B6DAZDIA.cjs');
9
9
  require('./chunk-47KTBBRA.cjs');
10
- var chunkTCBFAMPS_cjs = require('./chunk-TCBFAMPS.cjs');
10
+ var chunk6JAA7W6A_cjs = require('./chunk-6JAA7W6A.cjs');
11
11
  require('./chunk-JUV577XH.cjs');
12
12
  var chunk4PGCXP4C_cjs = require('./chunk-4PGCXP4C.cjs');
13
13
  require('./chunk-SYVNOFCV.cjs');
@@ -35,7 +35,7 @@ Object.defineProperty(exports, 'RpcMethod', {
35
35
  });
36
36
  Object.defineProperty(exports, 'TxType', {
37
37
  enumerable: true,
38
- get: function () { return chunkIQNJXPS3_cjs.a; }
38
+ get: function () { return chunkPX3B6TJZ_cjs.a; }
39
39
  });
40
40
  Object.defineProperty(exports, 'TokenType', {
41
41
  enumerable: true,
@@ -55,7 +55,7 @@ Object.defineProperty(exports, 'XChainTransactionType', {
55
55
  });
56
56
  Object.defineProperty(exports, 'WalletType', {
57
57
  enumerable: true,
58
- get: function () { return chunkTCBFAMPS_cjs.a; }
58
+ get: function () { return chunk6JAA7W6A_cjs.a; }
59
59
  });
60
60
  Object.defineProperty(exports, 'RawSimplePriceResponseSchema', {
61
61
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -10,7 +10,7 @@ export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToke
10
10
  export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.cjs';
11
11
  export { BalanceChange, TokenApproval, TokenApprovals, TokenDiff, TokenDiffItem } from './transaction-simulation.cjs';
12
12
  export { BtcWalletPolicyDetails, GetAddressParams, GetAddressResponse, PubKeyType, WalletType } from './account.cjs';
13
- export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, CreateChainTx, CreateSubnetTx, ExportImportTxDetails, ExportTx, ImportTx, RemoveSubnetValidatorTx, StakingDetails, SubnetDetails, TxDetails, TxType, VM } from './staking.cjs';
13
+ export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM } from './staking.cjs';
14
14
  export { AccountsChangedEventData, ChainAgnosticProvider, ChainChangedEventData, DomainMetadata, EIP6963ProviderDetail, EIP6963ProviderInfo, EventNames, JsonRpcRequestPayload, PartialBy, UnlockStateChangedEventData } from './provider.cjs';
15
15
  import 'zod';
16
16
  import '@avalabs/glacier-sdk';
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToke
10
10
  export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.js';
11
11
  export { BalanceChange, TokenApproval, TokenApprovals, TokenDiff, TokenDiffItem } from './transaction-simulation.js';
12
12
  export { BtcWalletPolicyDetails, GetAddressParams, GetAddressResponse, PubKeyType, WalletType } from './account.js';
13
- export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, CreateChainTx, CreateSubnetTx, ExportImportTxDetails, ExportTx, ImportTx, RemoveSubnetValidatorTx, StakingDetails, SubnetDetails, TxDetails, TxType, VM } from './staking.js';
13
+ export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM } from './staking.js';
14
14
  export { AccountsChangedEventData, ChainAgnosticProvider, ChainChangedEventData, DomainMetadata, EIP6963ProviderDetail, EIP6963ProviderInfo, EventNames, JsonRpcRequestPayload, PartialBy, UnlockStateChangedEventData } from './provider.js';
15
15
  import 'zod';
16
16
  import '@avalabs/glacier-sdk';
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import './chunk-7U2R34EQ.js';
2
2
  export { a as EventNames } from './chunk-4ZJ3LCH6.js';
3
3
  export { c as AlertType, b as DetailItemType, a as RpcMethod } from './chunk-4OOCVJIU.js';
4
- export { a as TxType } from './chunk-2SJQLDBB.js';
4
+ export { a as TxType } from './chunk-FGMDBV23.js';
5
5
  export { a as TokenType } from './chunk-7Y6UGMPZ.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-RIBT5FN6.js';
8
+ export { a as WalletType } from './chunk-I5OST5LZ.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/dist/staking.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkIQNJXPS3_cjs = require('./chunk-IQNJXPS3.cjs');
3
+ var chunkPX3B6TJZ_cjs = require('./chunk-PX3B6TJZ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, 'TxType', {
8
8
  enumerable: true,
9
- get: function () { return chunkIQNJXPS3_cjs.a; }
9
+ get: function () { return chunkPX3B6TJZ_cjs.a; }
10
10
  });
11
11
  //# sourceMappingURL=out.js.map
12
12
  //# sourceMappingURL=staking.cjs.map
@@ -1,12 +1,13 @@
1
1
  import { NetworkVMType } from './common.cjs';
2
2
  import './token.cjs';
3
3
 
4
- type TxDetails = StakingDetails | ExportImportTxDetails | ChainDetails | BlockchainDetails | SubnetDetails;
4
+ type TxDetails = StakingDetails | ExportImportTxDetails | ChainDetails | BlockchainDetails | SubnetDetails | L1Details;
5
5
  type StakingDetails = AddPermissionlessDelegatorTx | AddPermissionlessValidatorTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx;
6
6
  type ExportImportTxDetails = ExportTx | ImportTx;
7
7
  type ChainDetails = BaseTx;
8
8
  type BlockchainDetails = CreateChainTx;
9
9
  type SubnetDetails = CreateSubnetTx;
10
+ type L1Details = ConvertSubnetToL1Tx | RegisterL1ValidatorTx | SetL1ValidatorWeightTx | IncreaseL1ValidatorBalanceTx | DisableL1ValidatorTx;
10
11
  type VM = NetworkVMType.AVM | NetworkVMType.EVM | NetworkVMType.PVM;
11
12
  type AddPermissionlessDelegatorTx = {
12
13
  type: TxType.AddPermissionlessDelegator;
@@ -92,6 +93,45 @@ type RemoveSubnetValidatorTx = {
92
93
  subnetID: string;
93
94
  txFee: bigint;
94
95
  };
96
+ type FeeData = {
97
+ totalAvaxBurned: bigint;
98
+ totalAvaxOutput: bigint;
99
+ totalAvaxInput: bigint;
100
+ isValidAvaxBurnedAmount: boolean;
101
+ txFee: bigint;
102
+ };
103
+ type TxBase = FeeData & {
104
+ chain: VM;
105
+ };
106
+ type ConvertSubnetToL1Tx = TxBase & {
107
+ type: TxType.ConvertSubnetToL1;
108
+ managerAddress: string;
109
+ validators: {
110
+ nodeId: string;
111
+ stake: bigint;
112
+ balance: bigint;
113
+ remainingBalanceOwners: string[];
114
+ deactivationOwners: string[];
115
+ }[];
116
+ subnetID: string;
117
+ chainID: string;
118
+ };
119
+ type RegisterL1ValidatorTx = TxBase & {
120
+ type: TxType.RegisterL1Validator;
121
+ balance: bigint;
122
+ };
123
+ type SetL1ValidatorWeightTx = TxBase & {
124
+ type: TxType.SetL1ValidatorWeight;
125
+ };
126
+ type IncreaseL1ValidatorBalanceTx = TxBase & {
127
+ type: TxType.IncreaseL1ValidatorBalance;
128
+ balance: bigint;
129
+ validationId: string;
130
+ };
131
+ type DisableL1ValidatorTx = TxBase & {
132
+ type: TxType.DisableL1Validator;
133
+ validationId: string;
134
+ };
95
135
  declare enum TxType {
96
136
  Base = "base",
97
137
  AddValidator = "add_validator",
@@ -106,7 +146,12 @@ declare enum TxType {
106
146
  AddPermissionlessDelegator = "add_permissionless_delegator",
107
147
  TransformSubnet = "transform_subnet",
108
148
  TransferSubnetOwnership = "transfer_subnet_ownership",
149
+ ConvertSubnetToL1 = "convert_subnet_to_l1",
150
+ RegisterL1Validator = "register_l1_validator",
151
+ SetL1ValidatorWeight = "set_l1_validator_weight",
152
+ IncreaseL1ValidatorBalance = "increase_l1_validator_balance",
153
+ DisableL1Validator = "disable_l1_validator",
109
154
  Unknown = "unknown"
110
155
  }
111
156
 
112
- export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, CreateChainTx, CreateSubnetTx, ExportImportTxDetails, ExportTx, ImportTx, RemoveSubnetValidatorTx, StakingDetails, SubnetDetails, TxDetails, TxType, VM };
157
+ export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM };
package/dist/staking.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  import { NetworkVMType } from './common.js';
2
2
  import './token.js';
3
3
 
4
- type TxDetails = StakingDetails | ExportImportTxDetails | ChainDetails | BlockchainDetails | SubnetDetails;
4
+ type TxDetails = StakingDetails | ExportImportTxDetails | ChainDetails | BlockchainDetails | SubnetDetails | L1Details;
5
5
  type StakingDetails = AddPermissionlessDelegatorTx | AddPermissionlessValidatorTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx;
6
6
  type ExportImportTxDetails = ExportTx | ImportTx;
7
7
  type ChainDetails = BaseTx;
8
8
  type BlockchainDetails = CreateChainTx;
9
9
  type SubnetDetails = CreateSubnetTx;
10
+ type L1Details = ConvertSubnetToL1Tx | RegisterL1ValidatorTx | SetL1ValidatorWeightTx | IncreaseL1ValidatorBalanceTx | DisableL1ValidatorTx;
10
11
  type VM = NetworkVMType.AVM | NetworkVMType.EVM | NetworkVMType.PVM;
11
12
  type AddPermissionlessDelegatorTx = {
12
13
  type: TxType.AddPermissionlessDelegator;
@@ -92,6 +93,45 @@ type RemoveSubnetValidatorTx = {
92
93
  subnetID: string;
93
94
  txFee: bigint;
94
95
  };
96
+ type FeeData = {
97
+ totalAvaxBurned: bigint;
98
+ totalAvaxOutput: bigint;
99
+ totalAvaxInput: bigint;
100
+ isValidAvaxBurnedAmount: boolean;
101
+ txFee: bigint;
102
+ };
103
+ type TxBase = FeeData & {
104
+ chain: VM;
105
+ };
106
+ type ConvertSubnetToL1Tx = TxBase & {
107
+ type: TxType.ConvertSubnetToL1;
108
+ managerAddress: string;
109
+ validators: {
110
+ nodeId: string;
111
+ stake: bigint;
112
+ balance: bigint;
113
+ remainingBalanceOwners: string[];
114
+ deactivationOwners: string[];
115
+ }[];
116
+ subnetID: string;
117
+ chainID: string;
118
+ };
119
+ type RegisterL1ValidatorTx = TxBase & {
120
+ type: TxType.RegisterL1Validator;
121
+ balance: bigint;
122
+ };
123
+ type SetL1ValidatorWeightTx = TxBase & {
124
+ type: TxType.SetL1ValidatorWeight;
125
+ };
126
+ type IncreaseL1ValidatorBalanceTx = TxBase & {
127
+ type: TxType.IncreaseL1ValidatorBalance;
128
+ balance: bigint;
129
+ validationId: string;
130
+ };
131
+ type DisableL1ValidatorTx = TxBase & {
132
+ type: TxType.DisableL1Validator;
133
+ validationId: string;
134
+ };
95
135
  declare enum TxType {
96
136
  Base = "base",
97
137
  AddValidator = "add_validator",
@@ -106,7 +146,12 @@ declare enum TxType {
106
146
  AddPermissionlessDelegator = "add_permissionless_delegator",
107
147
  TransformSubnet = "transform_subnet",
108
148
  TransferSubnetOwnership = "transfer_subnet_ownership",
149
+ ConvertSubnetToL1 = "convert_subnet_to_l1",
150
+ RegisterL1Validator = "register_l1_validator",
151
+ SetL1ValidatorWeight = "set_l1_validator_weight",
152
+ IncreaseL1ValidatorBalance = "increase_l1_validator_balance",
153
+ DisableL1Validator = "disable_l1_validator",
109
154
  Unknown = "unknown"
110
155
  }
111
156
 
112
- export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, CreateChainTx, CreateSubnetTx, ExportImportTxDetails, ExportTx, ImportTx, RemoveSubnetValidatorTx, StakingDetails, SubnetDetails, TxDetails, TxType, VM };
157
+ export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM };
package/dist/staking.js CHANGED
@@ -1,3 +1,3 @@
1
- export { a as TxType } from './chunk-2SJQLDBB.js';
1
+ export { a as TxType } from './chunk-FGMDBV23.js';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=staking.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/vm-module-types",
3
- "version": "0.11.11",
3
+ "version": "0.11.12",
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.13",
15
- "@avalabs/glacier-sdk": "3.1.0-alpha.13",
14
+ "@avalabs/core-wallets-sdk": "3.1.0-alpha.19",
15
+ "@avalabs/glacier-sdk": "3.1.0-alpha.19",
16
16
  "@metamask/rpc-errors": "6.3.0",
17
17
  "bitcoinjs-lib": "5.2.0",
18
18
  "zod": "3.23.8"
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/staking.ts"],"names":["TxType"],"mappings":"AA6GO,IAAKA,OACVA,EAAA,KAAO,OACPA,EAAA,aAAe,gBACfA,EAAA,aAAe,gBACfA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,aAAe,gBACfA,EAAA,YAAc,eACdA,EAAA,mBAAqB,uBACrBA,EAAA,sBAAwB,0BACxBA,EAAA,2BAA6B,+BAC7BA,EAAA,2BAA6B,+BAC7BA,EAAA,gBAAkB,mBAClBA,EAAA,wBAA0B,4BAC1BA,EAAA,QAAU,UAdAA,OAAA","sourcesContent":["import type { NetworkVMType } from './common';\n\nexport type TxDetails = StakingDetails | ExportImportTxDetails | ChainDetails | BlockchainDetails | SubnetDetails;\n\nexport type StakingDetails =\n | AddPermissionlessDelegatorTx\n | AddPermissionlessValidatorTx\n | AddSubnetValidatorTx\n | RemoveSubnetValidatorTx;\nexport type ExportImportTxDetails = ExportTx | ImportTx;\nexport type ChainDetails = BaseTx;\nexport type BlockchainDetails = CreateChainTx;\nexport type SubnetDetails = CreateSubnetTx;\n\nexport type VM = NetworkVMType.AVM | NetworkVMType.EVM | NetworkVMType.PVM;\n\nexport type AddPermissionlessDelegatorTx = {\n type: TxType.AddPermissionlessDelegator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n start: string;\n end: string;\n txFee: bigint;\n};\n\nexport type AddPermissionlessValidatorTx = {\n type: TxType.AddPermissionlessValidator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n delegationFee: number;\n start: string;\n end: string;\n txFee: bigint;\n publicKey?: string;\n signature?: string;\n};\n\nexport interface ExportTx {\n type: TxType.Export;\n destination: VM;\n amount: bigint;\n chain: VM;\n txFee: bigint;\n}\n\nexport interface ImportTx {\n type: TxType.Import;\n source: VM;\n amount: bigint;\n chain: VM;\n txFee: bigint;\n}\n\nexport interface BaseTx {\n type: TxType.Base;\n chain: VM;\n outputs: {\n assetId: string;\n locktime: bigint;\n threshold: bigint;\n amount: bigint;\n assetDescription?: {\n assetID: string;\n name: string;\n symbol: string;\n denomination: number;\n };\n owners: string[];\n isAvax: boolean;\n }[];\n memo?: string;\n txFee: bigint;\n}\n\nexport type AddSubnetValidatorTx = {\n type: TxType.AddSubnetValidator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n start: string;\n end: string;\n txFee: bigint;\n};\n\nexport type CreateChainTx = {\n type: TxType.CreateChain;\n chainName: string;\n chainID: string;\n vmID: string;\n genesisData: string;\n txFee: bigint;\n};\n\nexport type CreateSubnetTx = {\n type: TxType.CreateSubnet;\n threshold: number;\n controlKeys: string[];\n txFee: bigint;\n};\n\nexport type RemoveSubnetValidatorTx = {\n type: TxType.RemoveSubnetValidator;\n nodeID: string;\n subnetID: string;\n txFee: bigint;\n};\n\nexport enum TxType {\n Base = 'base',\n AddValidator = 'add_validator',\n AddDelegator = 'add_delegator',\n Export = 'export',\n Import = 'import',\n CreateSubnet = 'create_subnet',\n CreateChain = 'create_chain',\n AddSubnetValidator = 'add_subnet_validator',\n RemoveSubnetValidator = 'remove_subnet_validator',\n AddPermissionlessValidator = 'add_permissionless_validator',\n AddPermissionlessDelegator = 'add_permissionless_delegator',\n TransformSubnet = 'transform_subnet',\n TransferSubnetOwnership = 'transfer_subnet_ownership',\n Unknown = 'unknown',\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/staking.ts"],"names":["TxType"],"mappings":"AA6GO,IAAKA,OACVA,EAAA,KAAO,OACPA,EAAA,aAAe,gBACfA,EAAA,aAAe,gBACfA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,aAAe,gBACfA,EAAA,YAAc,eACdA,EAAA,mBAAqB,uBACrBA,EAAA,sBAAwB,0BACxBA,EAAA,2BAA6B,+BAC7BA,EAAA,2BAA6B,+BAC7BA,EAAA,gBAAkB,mBAClBA,EAAA,wBAA0B,4BAC1BA,EAAA,QAAU,UAdAA,OAAA","sourcesContent":["import type { NetworkVMType } from './common';\n\nexport type TxDetails = StakingDetails | ExportImportTxDetails | ChainDetails | BlockchainDetails | SubnetDetails;\n\nexport type StakingDetails =\n | AddPermissionlessDelegatorTx\n | AddPermissionlessValidatorTx\n | AddSubnetValidatorTx\n | RemoveSubnetValidatorTx;\nexport type ExportImportTxDetails = ExportTx | ImportTx;\nexport type ChainDetails = BaseTx;\nexport type BlockchainDetails = CreateChainTx;\nexport type SubnetDetails = CreateSubnetTx;\n\nexport type VM = NetworkVMType.AVM | NetworkVMType.EVM | NetworkVMType.PVM;\n\nexport type AddPermissionlessDelegatorTx = {\n type: TxType.AddPermissionlessDelegator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n start: string;\n end: string;\n txFee: bigint;\n};\n\nexport type AddPermissionlessValidatorTx = {\n type: TxType.AddPermissionlessValidator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n delegationFee: number;\n start: string;\n end: string;\n txFee: bigint;\n publicKey?: string;\n signature?: string;\n};\n\nexport interface ExportTx {\n type: TxType.Export;\n destination: VM;\n amount: bigint;\n chain: VM;\n txFee: bigint;\n}\n\nexport interface ImportTx {\n type: TxType.Import;\n source: VM;\n amount: bigint;\n chain: VM;\n txFee: bigint;\n}\n\nexport interface BaseTx {\n type: TxType.Base;\n chain: VM;\n outputs: {\n assetId: string;\n locktime: bigint;\n threshold: bigint;\n amount: bigint;\n assetDescription?: {\n assetID: string;\n name: string;\n symbol: string;\n denomination: number;\n };\n owners: string[];\n isAvax: boolean;\n }[];\n memo?: string;\n txFee: bigint;\n}\n\nexport type AddSubnetValidatorTx = {\n type: TxType.AddSubnetValidator;\n nodeID: string;\n subnetID: string;\n stake: bigint;\n start: string;\n end: string;\n txFee: bigint;\n};\n\nexport type CreateChainTx = {\n type: TxType.CreateChain;\n chainName: string;\n chainID: string;\n vmID: string;\n genesisData: string;\n txFee: bigint;\n};\n\nexport type CreateSubnetTx = {\n type: TxType.CreateSubnet;\n threshold: number;\n controlKeys: string[];\n txFee: bigint;\n};\n\nexport type RemoveSubnetValidatorTx = {\n type: TxType.RemoveSubnetValidator;\n nodeID: string;\n subnetID: string;\n txFee: bigint;\n};\n\nexport enum TxType {\n Base = 'base',\n AddValidator = 'add_validator',\n AddDelegator = 'add_delegator',\n Export = 'export',\n Import = 'import',\n CreateSubnet = 'create_subnet',\n CreateChain = 'create_chain',\n AddSubnetValidator = 'add_subnet_validator',\n RemoveSubnetValidator = 'remove_subnet_validator',\n AddPermissionlessValidator = 'add_permissionless_validator',\n AddPermissionlessDelegator = 'add_permissionless_delegator',\n TransformSubnet = 'transform_subnet',\n TransferSubnetOwnership = 'transfer_subnet_ownership',\n Unknown = 'unknown',\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\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"]}
@@ -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\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"]}