@avalabs/vm-module-types 3.7.2 → 3.8.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.
Files changed (59) hide show
  1. package/dist/account.cjs +1 -0
  2. package/dist/account.js +1 -0
  3. package/dist/chunk-AV7F5SDR.js +8 -0
  4. package/dist/chunk-AV7F5SDR.js.map +1 -0
  5. package/dist/chunk-DYCPFO4Y.js +5 -0
  6. package/dist/chunk-DYCPFO4Y.js.map +1 -0
  7. package/dist/chunk-EWK3W2OZ.js +5 -0
  8. package/dist/chunk-EWK3W2OZ.js.map +1 -0
  9. package/dist/chunk-IQLAM2UJ.cjs +7 -0
  10. package/dist/chunk-IQLAM2UJ.cjs.map +1 -0
  11. package/dist/chunk-KPOQBGHJ.js +5 -0
  12. package/dist/chunk-KPOQBGHJ.js.map +1 -0
  13. package/dist/chunk-QU4TRHXG.cjs +10 -0
  14. package/dist/chunk-QU4TRHXG.cjs.map +1 -0
  15. package/dist/chunk-SNPLCK6A.cjs +9 -0
  16. package/dist/chunk-SNPLCK6A.cjs.map +1 -0
  17. package/dist/chunk-UYEUO5B3.cjs +7 -0
  18. package/dist/chunk-UYEUO5B3.cjs.map +1 -0
  19. package/dist/coingecko.cjs +1 -0
  20. package/dist/coingecko.d.cts +4 -4
  21. package/dist/coingecko.d.ts +4 -4
  22. package/dist/coingecko.js +1 -0
  23. package/dist/common.cjs +5 -4
  24. package/dist/common.d.cts +1 -0
  25. package/dist/common.d.ts +1 -0
  26. package/dist/common.js +2 -1
  27. package/dist/index.cjs +9 -8
  28. package/dist/index.d.cts +1 -1
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.js +4 -3
  31. package/dist/manifest.cjs +3 -2
  32. package/dist/manifest.js +2 -1
  33. package/dist/module.cjs +2 -1
  34. package/dist/module.js +2 -1
  35. package/dist/provider.cjs +1 -0
  36. package/dist/provider.js +1 -0
  37. package/dist/rpc.cjs +1 -0
  38. package/dist/rpc.js +1 -0
  39. package/dist/staking.cjs +3 -2
  40. package/dist/staking.d.cts +23 -2
  41. package/dist/staking.d.ts +23 -2
  42. package/dist/staking.js +2 -1
  43. package/dist/token.cjs +1 -0
  44. package/dist/token.js +1 -0
  45. package/dist/transaction-history.cjs +1 -0
  46. package/dist/transaction-history.js +1 -0
  47. package/package.json +4 -4
  48. package/dist/chunk-5WG65A3C.js +0 -5
  49. package/dist/chunk-5WG65A3C.js.map +0 -1
  50. package/dist/chunk-FGMDBV23.js +0 -5
  51. package/dist/chunk-FGMDBV23.js.map +0 -1
  52. package/dist/chunk-PX3B6TJZ.cjs +0 -7
  53. package/dist/chunk-PX3B6TJZ.cjs.map +0 -1
  54. package/dist/chunk-R3AACGNJ.cjs +0 -9
  55. package/dist/chunk-R3AACGNJ.cjs.map +0 -1
  56. package/dist/chunk-RINP3JFP.js +0 -7
  57. package/dist/chunk-RINP3JFP.js.map +0 -1
  58. package/dist/chunk-SYE3TX4L.cjs +0 -9
  59. package/dist/chunk-SYE3TX4L.cjs.map +0 -1
package/dist/account.cjs CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkLCSOMXO3_cjs = require('./chunk-LCSOMXO3.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
package/dist/account.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export { a as WalletType } from './chunk-WMOCBIRL.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=account.js.map
@@ -0,0 +1,8 @@
1
+ import { a } from './chunk-DYCPFO4Y.js';
2
+ import { object, string, boolean } from 'zod';
3
+
4
+ var r=object({checksum:string(),location:object({npm:object({filePath:string(),packageName:string(),registry:string()})})}),t=object({name:string(),version:string(),description:string(),sources:object({module:r,provider:r.optional()}),network:object({chainIds:string().array(),namespaces:string().array()}),cointype:string(),permissions:object({rpc:object({dapps:boolean(),methods:string().array(),nonRestrictedMethods:string().array()})}),manifestVersion:string()}),p=a(s=>t.safeParse(s),"parseManifest");
5
+
6
+ export { p as a };
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=chunk-AV7F5SDR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/manifest.ts"],"names":["boolean","object","string","sourceSchema","manifestSchema","parseManifest","__name","params"],"mappings":"wCAAA,OAAS,WAAAA,EAAS,UAAAC,EAAQ,UAAAC,MAAiB,MAE3C,IAAMC,EAAeF,EAAO,CAC1B,SAAUC,EAAO,EACjB,SAAUD,EAAO,CACf,IAAKA,EAAO,CACV,SAAUC,EAAO,EACjB,YAAaA,EAAO,EACpB,SAAUA,EAAO,CACnB,CAAC,CACH,CAAC,CACH,CAAC,EAEKE,EAAiBH,EAAO,CAC5B,KAAMC,EAAO,EACb,QAASA,EAAO,EAChB,YAAaA,EAAO,EACpB,QAASD,EAAO,CACd,OAAQE,EACR,SAAUA,EAAa,SAAS,CAClC,CAAC,EACD,QAASF,EAAO,CACd,SAAUC,EAAO,EAAE,MAAM,EACzB,WAAYA,EAAO,EAAE,MAAM,CAC7B,CAAC,EACD,SAAUA,EAAO,EACjB,YAAaD,EAAO,CAClB,IAAKA,EAAO,CACV,MAAOD,EAAQ,EACf,QAASE,EAAO,EAAE,MAAM,EACxB,qBAAsBA,EAAO,EAAE,MAAM,CACvC,CAAC,CACH,CAAC,EACD,gBAAiBA,EAAO,CAC1B,CAAC,EAIYG,EAAgBC,EAACC,GACrBH,EAAe,UAAUG,CAAM,EADX","sourcesContent":["import { boolean, object, string, z } from 'zod';\n\nconst sourceSchema = object({\n checksum: string(),\n location: object({\n npm: object({\n filePath: string(),\n packageName: string(),\n registry: string(),\n }),\n }),\n});\n\nconst manifestSchema = object({\n name: string(),\n version: string(),\n description: string(),\n sources: object({\n module: sourceSchema,\n provider: sourceSchema.optional(),\n }),\n network: object({\n chainIds: string().array(),\n namespaces: string().array(),\n }),\n cointype: string(),\n permissions: object({\n rpc: object({\n dapps: boolean(),\n methods: string().array(),\n nonRestrictedMethods: string().array(),\n }),\n }),\n manifestVersion: string(),\n});\n\nexport type Manifest = z.infer<typeof manifestSchema>;\n\nexport const parseManifest = (params: unknown): z.SafeParseReturnType<unknown, Manifest> => {\n return manifestSchema.safeParse(params);\n};\n"]}
@@ -0,0 +1,5 @@
1
+ var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:!0});
2
+
3
+ export { d as a };
4
+ //# sourceMappingURL=out.js.map
5
+ //# sourceMappingURL=chunk-DYCPFO4Y.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,5 @@
1
+ var o=(e=>(e.EVM="EVM",e.BITCOIN="BITCOIN",e.AVM="AVM",e.PVM="PVM",e.CoreEth="CoreEth",e.HVM="HVM",e.SVM="SVM",e))(o||{}),i=(t=>(t.PRODUCTION="production",t.DEV="dev",t))(i||{}),n=(r=>(r.CORE_MOBILE_IOS="core-mobile-ios",r.CORE_MOBILE_ANDROID="core-mobile-android",r.CORE_WEB="core-web",r.CORE_EXTENSION="core-extension",r.EXPLORER="explorer",r.OTHER="other",r))(n||{});
2
+
3
+ export { o as a, i as b, n as c };
4
+ //# sourceMappingURL=out.js.map
5
+ //# sourceMappingURL=chunk-EWK3W2OZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/common.ts"],"names":["NetworkVMType","Environment","AppName"],"mappings":"AA2BO,IAAKA,OACVA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MAPIA,OAAA,IAmBAC,OACVA,EAAA,WAAa,aACbA,EAAA,IAAM,MAFIA,OAAA,IAKAC,OACVA,EAAA,gBAAkB,kBAClBA,EAAA,oBAAsB,sBACtBA,EAAA,SAAW,WACXA,EAAA,eAAiB,iBACjBA,EAAA,SAAW,WACXA,EAAA,MAAQ,QANEA,OAAA","sourcesContent":["import type { NetworkContractToken, NetworkToken } from './token';\n\nexport type Network = {\n isTestnet?: boolean;\n isDevnet?: boolean;\n chainId: number;\n caipId?: string;\n chainName: string;\n rpcUrl: string;\n customRpcHeaders?: Record<string, string>;\n utilityAddresses?: {\n multicall: string;\n };\n networkToken: NetworkToken;\n pricingProviders?: {\n coingecko: {\n assetPlatformId?: string;\n nativeTokenId?: string;\n };\n };\n tokens?: NetworkContractToken[];\n explorerUrl?: string;\n logoUri?: string;\n vmName: NetworkVMType;\n vmRpcPrefix?: string;\n};\n\nexport enum NetworkVMType {\n EVM = 'EVM',\n BITCOIN = 'BITCOIN',\n AVM = 'AVM',\n PVM = 'PVM',\n CoreEth = 'CoreEth',\n HVM = 'HVM',\n SVM = 'SVM',\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\nexport enum AppName {\n CORE_MOBILE_IOS = 'core-mobile-ios',\n CORE_MOBILE_ANDROID = 'core-mobile-android',\n CORE_WEB = 'core-web',\n CORE_EXTENSION = 'core-extension',\n EXPLORER = 'explorer',\n OTHER = 'other',\n}\n"]}
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:!0});
4
+
5
+ exports.a = d;
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=chunk-IQLAM2UJ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,5 @@
1
+ var t=(e=>(e.Base="base",e.AddValidator="add_validator",e.AddDelegator="add_delegator",e.Export="export",e.Import="import",e.CreateSubnet="create_subnet",e.CreateChain="create_chain",e.AddSubnetValidator="add_subnet_validator",e.RemoveSubnetValidator="remove_subnet_validator",e.AddPermissionlessValidator="add_permissionless_validator",e.AddPermissionlessDelegator="add_permissionless_delegator",e.TransformSubnet="transform_subnet",e.TransferSubnetOwnership="transfer_subnet_ownership",e.ConvertSubnetToL1="convert_subnet_to_l1",e.RegisterL1Validator="register_l1_validator",e.SetL1ValidatorWeight="set_l1_validator_weight",e.IncreaseL1ValidatorBalance="increase_l1_validator_balance",e.DisableL1Validator="disable_l1_validator",e.AddAutoRenewedValidator="add_auto_renewed_validator",e.SetAutoRenewedValidatorConfig="set_auto_renewed_validator_config",e.Unknown="unknown",e))(t||{});
2
+
3
+ export { t as a };
4
+ //# sourceMappingURL=out.js.map
5
+ //# sourceMappingURL=chunk-KPOQBGHJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/staking.ts"],"names":["TxType"],"mappings":"AAoMO,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,wBAA0B,6BAC1BA,EAAA,8BAAgC,oCAChCA,EAAA,QAAU,UArBAA,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\n | AddAutoRenewedValidatorTx\n | SetAutoRenewedValidatorConfigTx;\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 AddAutoRenewedValidatorTx = {\n type: TxType.AddAutoRenewedValidator;\n nodeID: string;\n stake: bigint;\n delegationFee: number;\n weight: bigint;\n // Share of staking rewards reinvested as additional stake on each auto-renewal cycle (ACP-236).\n // Expressed in millionths (percentage × 10,000), range [0..1_000_000]: 1_000_000 = 100%, 300_000 = 30%.\n autoCompoundRewardShares: number;\n // Auto-renewal cycle duration in seconds (ACP-236)\n period: bigint;\n publicKey?: string;\n signature?: string;\n txFee: bigint;\n};\n\nexport type SetAutoRenewedValidatorConfigTx = {\n type: TxType.SetAutoRenewedValidatorConfig;\n // ID of the AddAutoRenewedValidator tx whose config is being updated (ACP-236)\n txId: string;\n // Same scale as `AddAutoRenewedValidatorTx.autoCompoundRewardShares`:\n // millionths (percentage × 10,000), range [0..1_000_000].\n autoCompoundRewardShares: number;\n period: bigint;\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 AddAutoRenewedValidator = 'add_auto_renewed_validator',\n SetAutoRenewedValidatorConfig = 'set_auto_renewed_validator_config',\n Unknown = 'unknown',\n}\n"]}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var chunkIQLAM2UJ_cjs = require('./chunk-IQLAM2UJ.cjs');
4
+ var zod = require('zod');
5
+
6
+ var r=zod.object({checksum:zod.string(),location:zod.object({npm:zod.object({filePath:zod.string(),packageName:zod.string(),registry:zod.string()})})}),t=zod.object({name:zod.string(),version:zod.string(),description:zod.string(),sources:zod.object({module:r,provider:r.optional()}),network:zod.object({chainIds:zod.string().array(),namespaces:zod.string().array()}),cointype:zod.string(),permissions:zod.object({rpc:zod.object({dapps:zod.boolean(),methods:zod.string().array(),nonRestrictedMethods:zod.string().array()})}),manifestVersion:zod.string()}),p=chunkIQLAM2UJ_cjs.a(s=>t.safeParse(s),"parseManifest");
7
+
8
+ exports.a = p;
9
+ //# sourceMappingURL=out.js.map
10
+ //# sourceMappingURL=chunk-QU4TRHXG.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/manifest.ts"],"names":["boolean","object","string","sourceSchema","manifestSchema","parseManifest","__name","params"],"mappings":"yCAAA,OAAS,WAAAA,EAAS,UAAAC,EAAQ,UAAAC,MAAiB,MAE3C,IAAMC,EAAeF,EAAO,CAC1B,SAAUC,EAAO,EACjB,SAAUD,EAAO,CACf,IAAKA,EAAO,CACV,SAAUC,EAAO,EACjB,YAAaA,EAAO,EACpB,SAAUA,EAAO,CACnB,CAAC,CACH,CAAC,CACH,CAAC,EAEKE,EAAiBH,EAAO,CAC5B,KAAMC,EAAO,EACb,QAASA,EAAO,EAChB,YAAaA,EAAO,EACpB,QAASD,EAAO,CACd,OAAQE,EACR,SAAUA,EAAa,SAAS,CAClC,CAAC,EACD,QAASF,EAAO,CACd,SAAUC,EAAO,EAAE,MAAM,EACzB,WAAYA,EAAO,EAAE,MAAM,CAC7B,CAAC,EACD,SAAUA,EAAO,EACjB,YAAaD,EAAO,CAClB,IAAKA,EAAO,CACV,MAAOD,EAAQ,EACf,QAASE,EAAO,EAAE,MAAM,EACxB,qBAAsBA,EAAO,EAAE,MAAM,CACvC,CAAC,CACH,CAAC,EACD,gBAAiBA,EAAO,CAC1B,CAAC,EAIYG,EAAgBC,EAACC,GACrBH,EAAe,UAAUG,CAAM,EADX","sourcesContent":["import { boolean, object, string, z } from 'zod';\n\nconst sourceSchema = object({\n checksum: string(),\n location: object({\n npm: object({\n filePath: string(),\n packageName: string(),\n registry: string(),\n }),\n }),\n});\n\nconst manifestSchema = object({\n name: string(),\n version: string(),\n description: string(),\n sources: object({\n module: sourceSchema,\n provider: sourceSchema.optional(),\n }),\n network: object({\n chainIds: string().array(),\n namespaces: string().array(),\n }),\n cointype: string(),\n permissions: object({\n rpc: object({\n dapps: boolean(),\n methods: string().array(),\n nonRestrictedMethods: string().array(),\n }),\n }),\n manifestVersion: string(),\n});\n\nexport type Manifest = z.infer<typeof manifestSchema>;\n\nexport const parseManifest = (params: unknown): z.SafeParseReturnType<unknown, Manifest> => {\n return manifestSchema.safeParse(params);\n};\n"]}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var o=(e=>(e.EVM="EVM",e.BITCOIN="BITCOIN",e.AVM="AVM",e.PVM="PVM",e.CoreEth="CoreEth",e.HVM="HVM",e.SVM="SVM",e))(o||{}),i=(t=>(t.PRODUCTION="production",t.DEV="dev",t))(i||{}),n=(r=>(r.CORE_MOBILE_IOS="core-mobile-ios",r.CORE_MOBILE_ANDROID="core-mobile-android",r.CORE_WEB="core-web",r.CORE_EXTENSION="core-extension",r.EXPLORER="explorer",r.OTHER="other",r))(n||{});
4
+
5
+ exports.a = o;
6
+ exports.b = i;
7
+ exports.c = n;
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=chunk-SNPLCK6A.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/common.ts"],"names":["NetworkVMType","Environment","AppName"],"mappings":"AA2BO,IAAKA,OACVA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MAPIA,OAAA,IAmBAC,OACVA,EAAA,WAAa,aACbA,EAAA,IAAM,MAFIA,OAAA,IAKAC,OACVA,EAAA,gBAAkB,kBAClBA,EAAA,oBAAsB,sBACtBA,EAAA,SAAW,WACXA,EAAA,eAAiB,iBACjBA,EAAA,SAAW,WACXA,EAAA,MAAQ,QANEA,OAAA","sourcesContent":["import type { NetworkContractToken, NetworkToken } from './token';\n\nexport type Network = {\n isTestnet?: boolean;\n isDevnet?: boolean;\n chainId: number;\n caipId?: string;\n chainName: string;\n rpcUrl: string;\n customRpcHeaders?: Record<string, string>;\n utilityAddresses?: {\n multicall: string;\n };\n networkToken: NetworkToken;\n pricingProviders?: {\n coingecko: {\n assetPlatformId?: string;\n nativeTokenId?: string;\n };\n };\n tokens?: NetworkContractToken[];\n explorerUrl?: string;\n logoUri?: string;\n vmName: NetworkVMType;\n vmRpcPrefix?: string;\n};\n\nexport enum NetworkVMType {\n EVM = 'EVM',\n BITCOIN = 'BITCOIN',\n AVM = 'AVM',\n PVM = 'PVM',\n CoreEth = 'CoreEth',\n HVM = 'HVM',\n SVM = 'SVM',\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\nexport enum AppName {\n CORE_MOBILE_IOS = 'core-mobile-ios',\n CORE_MOBILE_ANDROID = 'core-mobile-android',\n CORE_WEB = 'core-web',\n CORE_EXTENSION = 'core-extension',\n EXPLORER = 'explorer',\n OTHER = 'other',\n}\n"]}
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var t=(e=>(e.Base="base",e.AddValidator="add_validator",e.AddDelegator="add_delegator",e.Export="export",e.Import="import",e.CreateSubnet="create_subnet",e.CreateChain="create_chain",e.AddSubnetValidator="add_subnet_validator",e.RemoveSubnetValidator="remove_subnet_validator",e.AddPermissionlessValidator="add_permissionless_validator",e.AddPermissionlessDelegator="add_permissionless_delegator",e.TransformSubnet="transform_subnet",e.TransferSubnetOwnership="transfer_subnet_ownership",e.ConvertSubnetToL1="convert_subnet_to_l1",e.RegisterL1Validator="register_l1_validator",e.SetL1ValidatorWeight="set_l1_validator_weight",e.IncreaseL1ValidatorBalance="increase_l1_validator_balance",e.DisableL1Validator="disable_l1_validator",e.AddAutoRenewedValidator="add_auto_renewed_validator",e.SetAutoRenewedValidatorConfig="set_auto_renewed_validator_config",e.Unknown="unknown",e))(t||{});
4
+
5
+ exports.a = t;
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=chunk-UYEUO5B3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/staking.ts"],"names":["TxType"],"mappings":"AAoMO,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,wBAA0B,6BAC1BA,EAAA,8BAAgC,oCAChCA,EAAA,QAAU,UArBAA,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\n | AddAutoRenewedValidatorTx\n | SetAutoRenewedValidatorConfigTx;\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 AddAutoRenewedValidatorTx = {\n type: TxType.AddAutoRenewedValidator;\n nodeID: string;\n stake: bigint;\n delegationFee: number;\n weight: bigint;\n // Share of staking rewards reinvested as additional stake on each auto-renewal cycle (ACP-236).\n // Expressed in millionths (percentage × 10,000), range [0..1_000_000]: 1_000_000 = 100%, 300_000 = 30%.\n autoCompoundRewardShares: number;\n // Auto-renewal cycle duration in seconds (ACP-236)\n period: bigint;\n publicKey?: string;\n signature?: string;\n txFee: bigint;\n};\n\nexport type SetAutoRenewedValidatorConfigTx = {\n type: TxType.SetAutoRenewedValidatorConfig;\n // ID of the AddAutoRenewedValidator tx whose config is being updated (ACP-236)\n txId: string;\n // Same scale as `AddAutoRenewedValidatorTx.autoCompoundRewardShares`:\n // millionths (percentage × 10,000), range [0..1_000_000].\n autoCompoundRewardShares: number;\n period: bigint;\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 AddAutoRenewedValidator = 'add_auto_renewed_validator',\n SetAutoRenewedValidatorConfig = 'set_auto_renewed_validator_config',\n Unknown = 'unknown',\n}\n"]}
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk4PGCXP4C_cjs = require('./chunk-4PGCXP4C.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
@@ -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/coingecko.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export { b as RawSimplePriceResponseSchema, a as SimplePriceResponseSchema } from './chunk-WOO6UGSQ.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=coingecko.js.map
package/dist/common.cjs CHANGED
@@ -1,20 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var chunkR3AACGNJ_cjs = require('./chunk-R3AACGNJ.cjs');
3
+ var chunkSNPLCK6A_cjs = require('./chunk-SNPLCK6A.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
7
8
  Object.defineProperty(exports, 'AppName', {
8
9
  enumerable: true,
9
- get: function () { return chunkR3AACGNJ_cjs.c; }
10
+ get: function () { return chunkSNPLCK6A_cjs.c; }
10
11
  });
11
12
  Object.defineProperty(exports, 'Environment', {
12
13
  enumerable: true,
13
- get: function () { return chunkR3AACGNJ_cjs.b; }
14
+ get: function () { return chunkSNPLCK6A_cjs.b; }
14
15
  });
15
16
  Object.defineProperty(exports, 'NetworkVMType', {
16
17
  enumerable: true,
17
- get: function () { return chunkR3AACGNJ_cjs.a; }
18
+ get: function () { return chunkSNPLCK6A_cjs.a; }
18
19
  });
19
20
  //# sourceMappingURL=out.js.map
20
21
  //# sourceMappingURL=common.cjs.map
package/dist/common.d.cts CHANGED
@@ -2,6 +2,7 @@ import { NetworkToken, NetworkContractToken } from './token.cjs';
2
2
 
3
3
  type Network = {
4
4
  isTestnet?: boolean;
5
+ isDevnet?: boolean;
5
6
  chainId: number;
6
7
  caipId?: string;
7
8
  chainName: string;
package/dist/common.d.ts CHANGED
@@ -2,6 +2,7 @@ import { NetworkToken, NetworkContractToken } from './token.js';
2
2
 
3
3
  type Network = {
4
4
  isTestnet?: boolean;
5
+ isDevnet?: boolean;
5
6
  chainId: number;
6
7
  caipId?: string;
7
8
  chainName: string;
package/dist/common.js CHANGED
@@ -1,3 +1,4 @@
1
- export { c as AppName, b as Environment, a as NetworkVMType } from './chunk-5WG65A3C.js';
1
+ export { c as AppName, b as Environment, a as NetworkVMType } from './chunk-EWK3W2OZ.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=common.js.map
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  require('./chunk-AILYKQEY.cjs');
4
4
  var chunk4NMX4VK7_cjs = require('./chunk-4NMX4VK7.cjs');
5
5
  var chunkPKPUCHVR_cjs = require('./chunk-PKPUCHVR.cjs');
6
- var chunkPX3B6TJZ_cjs = require('./chunk-PX3B6TJZ.cjs');
6
+ var chunkUYEUO5B3_cjs = require('./chunk-UYEUO5B3.cjs');
7
7
  var chunkN7PCIGVW_cjs = require('./chunk-N7PCIGVW.cjs');
8
8
  var chunkYLE2VFJX_cjs = require('./chunk-YLE2VFJX.cjs');
9
9
  require('./chunk-47KTBBRA.cjs');
@@ -11,9 +11,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');
14
- var chunkSYE3TX4L_cjs = require('./chunk-SYE3TX4L.cjs');
14
+ var chunkQU4TRHXG_cjs = require('./chunk-QU4TRHXG.cjs');
15
15
  require('./chunk-YB5EN6FL.cjs');
16
- var chunkR3AACGNJ_cjs = require('./chunk-R3AACGNJ.cjs');
16
+ var chunkSNPLCK6A_cjs = require('./chunk-SNPLCK6A.cjs');
17
+ require('./chunk-IQLAM2UJ.cjs');
17
18
 
18
19
 
19
20
 
@@ -35,7 +36,7 @@ Object.defineProperty(exports, 'RpcMethod', {
35
36
  });
36
37
  Object.defineProperty(exports, 'TxType', {
37
38
  enumerable: true,
38
- get: function () { return chunkPX3B6TJZ_cjs.a; }
39
+ get: function () { return chunkUYEUO5B3_cjs.a; }
39
40
  });
40
41
  Object.defineProperty(exports, 'TokenType', {
41
42
  enumerable: true,
@@ -67,19 +68,19 @@ Object.defineProperty(exports, 'SimplePriceResponseSchema', {
67
68
  });
68
69
  Object.defineProperty(exports, 'parseManifest', {
69
70
  enumerable: true,
70
- get: function () { return chunkSYE3TX4L_cjs.a; }
71
+ get: function () { return chunkQU4TRHXG_cjs.a; }
71
72
  });
72
73
  Object.defineProperty(exports, 'AppName', {
73
74
  enumerable: true,
74
- get: function () { return chunkR3AACGNJ_cjs.c; }
75
+ get: function () { return chunkSNPLCK6A_cjs.c; }
75
76
  });
76
77
  Object.defineProperty(exports, 'Environment', {
77
78
  enumerable: true,
78
- get: function () { return chunkR3AACGNJ_cjs.b; }
79
+ get: function () { return chunkSNPLCK6A_cjs.b; }
79
80
  });
80
81
  Object.defineProperty(exports, 'NetworkVMType', {
81
82
  enumerable: true,
82
- get: function () { return chunkR3AACGNJ_cjs.a; }
83
+ get: function () { return chunkSNPLCK6A_cjs.a; }
83
84
  });
84
85
  //# sourceMappingURL=out.js.map
85
86
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -9,7 +9,7 @@ export { A as AddressItem, i as AddressListItem, s as Alert, r as AlertDetails,
9
9
  export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, SPLToken, TokenType } from './token.cjs';
10
10
  export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.cjs';
11
11
  export { BtcWalletPolicyDetails, BuildDerivationPathParams, BuildDerivationPathResponse, DerivationPathType, DeriveAddressParams, DeriveAddressResponse, DetailedDeriveAddressParams, GetAddressParams, GetAddressResponse, PubKeyType, SimpleDeriveAddressParams, WalletType } from './account.cjs';
12
- 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';
12
+ export { AddAutoRenewedValidatorTx, AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetAutoRenewedValidatorConfigTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM } from './staking.cjs';
13
13
  export { AccountsChangedEventData, ChainAgnosticProvider, ChainChangedEventData, DomainMetadata, EIP6963ProviderDetail, EIP6963ProviderInfo, EventNames, JsonRpcRequestPayload, PartialBy, UnlockStateChangedEventData } from './provider.cjs';
14
14
  import 'zod';
15
15
  import '@avalabs/glacier-sdk';
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { A as AddressItem, i as AddressListItem, s as Alert, r as AlertDetails,
9
9
  export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, SPLToken, TokenType } from './token.js';
10
10
  export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.js';
11
11
  export { BtcWalletPolicyDetails, BuildDerivationPathParams, BuildDerivationPathResponse, DerivationPathType, DeriveAddressParams, DeriveAddressResponse, DetailedDeriveAddressParams, GetAddressParams, GetAddressResponse, PubKeyType, SimpleDeriveAddressParams, WalletType } from './account.js';
12
- 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';
12
+ export { AddAutoRenewedValidatorTx, AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetAutoRenewedValidatorConfigTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM } from './staking.js';
13
13
  export { AccountsChangedEventData, ChainAgnosticProvider, ChainChangedEventData, DomainMetadata, EIP6963ProviderDetail, EIP6963ProviderInfo, EventNames, JsonRpcRequestPayload, PartialBy, UnlockStateChangedEventData } from './provider.js';
14
14
  import 'zod';
15
15
  import '@avalabs/glacier-sdk';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './chunk-7U2R34EQ.js';
2
2
  export { a as EventNames } from './chunk-6ZLXXGIV.js';
3
3
  export { c as AlertType, b as DetailItemType, a as RpcMethod } from './chunk-H475FSAQ.js';
4
- export { a as TxType } from './chunk-FGMDBV23.js';
4
+ export { a as TxType } from './chunk-KPOQBGHJ.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-V2MZKRLY.js';
7
7
  import './chunk-P6AM7I3B.js';
@@ -9,8 +9,9 @@ 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';
12
- export { a as parseManifest } from './chunk-RINP3JFP.js';
12
+ export { a as parseManifest } from './chunk-AV7F5SDR.js';
13
13
  import './chunk-GF7C4PA6.js';
14
- export { c as AppName, b as Environment, a as NetworkVMType } from './chunk-5WG65A3C.js';
14
+ export { c as AppName, b as Environment, a as NetworkVMType } from './chunk-EWK3W2OZ.js';
15
+ import './chunk-DYCPFO4Y.js';
15
16
  //# sourceMappingURL=out.js.map
16
17
  //# sourceMappingURL=index.js.map
package/dist/manifest.cjs CHANGED
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkSYE3TX4L_cjs = require('./chunk-SYE3TX4L.cjs');
3
+ var chunkQU4TRHXG_cjs = require('./chunk-QU4TRHXG.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
7
8
  Object.defineProperty(exports, 'parseManifest', {
8
9
  enumerable: true,
9
- get: function () { return chunkSYE3TX4L_cjs.a; }
10
+ get: function () { return chunkQU4TRHXG_cjs.a; }
10
11
  });
11
12
  //# sourceMappingURL=out.js.map
12
13
  //# sourceMappingURL=manifest.cjs.map
package/dist/manifest.js CHANGED
@@ -1,3 +1,4 @@
1
- export { a as parseManifest } from './chunk-RINP3JFP.js';
1
+ export { a as parseManifest } from './chunk-AV7F5SDR.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=manifest.js.map
package/dist/module.cjs CHANGED
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-YB5EN6FL.cjs');
4
- require('./chunk-R3AACGNJ.cjs');
4
+ require('./chunk-SNPLCK6A.cjs');
5
+ require('./chunk-IQLAM2UJ.cjs');
5
6
 
6
7
  //# sourceMappingURL=out.js.map
7
8
  //# sourceMappingURL=module.cjs.map
package/dist/module.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import './chunk-GF7C4PA6.js';
2
- import './chunk-5WG65A3C.js';
2
+ import './chunk-EWK3W2OZ.js';
3
+ import './chunk-DYCPFO4Y.js';
3
4
  //# sourceMappingURL=out.js.map
4
5
  //# sourceMappingURL=module.js.map
package/dist/provider.cjs CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk4NMX4VK7_cjs = require('./chunk-4NMX4VK7.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
package/dist/provider.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export { a as EventNames } from './chunk-6ZLXXGIV.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=provider.js.map
package/dist/rpc.cjs CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkPKPUCHVR_cjs = require('./chunk-PKPUCHVR.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
package/dist/rpc.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export { c as AlertType, b as DetailItemType, a as RpcMethod } from './chunk-H475FSAQ.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=rpc.js.map
package/dist/staking.cjs CHANGED
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkPX3B6TJZ_cjs = require('./chunk-PX3B6TJZ.cjs');
3
+ var chunkUYEUO5B3_cjs = require('./chunk-UYEUO5B3.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
7
8
  Object.defineProperty(exports, 'TxType', {
8
9
  enumerable: true,
9
- get: function () { return chunkPX3B6TJZ_cjs.a; }
10
+ get: function () { return chunkUYEUO5B3_cjs.a; }
10
11
  });
11
12
  //# sourceMappingURL=out.js.map
12
13
  //# sourceMappingURL=staking.cjs.map
@@ -2,7 +2,7 @@ import { NetworkVMType } from './common.cjs';
2
2
  import './token.cjs';
3
3
 
4
4
  type TxDetails = StakingDetails | ExportImportTxDetails | ChainDetails | BlockchainDetails | SubnetDetails | L1Details;
5
- type StakingDetails = AddPermissionlessDelegatorTx | AddPermissionlessValidatorTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx;
5
+ type StakingDetails = AddPermissionlessDelegatorTx | AddPermissionlessValidatorTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddAutoRenewedValidatorTx | SetAutoRenewedValidatorConfigTx;
6
6
  type ExportImportTxDetails = ExportTx | ImportTx;
7
7
  type ChainDetails = BaseTx;
8
8
  type BlockchainDetails = CreateChainTx;
@@ -93,6 +93,25 @@ type RemoveSubnetValidatorTx = {
93
93
  subnetID: string;
94
94
  txFee: bigint;
95
95
  };
96
+ type AddAutoRenewedValidatorTx = {
97
+ type: TxType.AddAutoRenewedValidator;
98
+ nodeID: string;
99
+ stake: bigint;
100
+ delegationFee: number;
101
+ weight: bigint;
102
+ autoCompoundRewardShares: number;
103
+ period: bigint;
104
+ publicKey?: string;
105
+ signature?: string;
106
+ txFee: bigint;
107
+ };
108
+ type SetAutoRenewedValidatorConfigTx = {
109
+ type: TxType.SetAutoRenewedValidatorConfig;
110
+ txId: string;
111
+ autoCompoundRewardShares: number;
112
+ period: bigint;
113
+ txFee: bigint;
114
+ };
96
115
  type FeeData = {
97
116
  totalAvaxBurned: bigint;
98
117
  totalAvaxOutput: bigint;
@@ -151,7 +170,9 @@ declare enum TxType {
151
170
  SetL1ValidatorWeight = "set_l1_validator_weight",
152
171
  IncreaseL1ValidatorBalance = "increase_l1_validator_balance",
153
172
  DisableL1Validator = "disable_l1_validator",
173
+ AddAutoRenewedValidator = "add_auto_renewed_validator",
174
+ SetAutoRenewedValidatorConfig = "set_auto_renewed_validator_config",
154
175
  Unknown = "unknown"
155
176
  }
156
177
 
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 };
178
+ export { AddAutoRenewedValidatorTx, AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetAutoRenewedValidatorConfigTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM };
package/dist/staking.d.ts CHANGED
@@ -2,7 +2,7 @@ import { NetworkVMType } from './common.js';
2
2
  import './token.js';
3
3
 
4
4
  type TxDetails = StakingDetails | ExportImportTxDetails | ChainDetails | BlockchainDetails | SubnetDetails | L1Details;
5
- type StakingDetails = AddPermissionlessDelegatorTx | AddPermissionlessValidatorTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx;
5
+ type StakingDetails = AddPermissionlessDelegatorTx | AddPermissionlessValidatorTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddAutoRenewedValidatorTx | SetAutoRenewedValidatorConfigTx;
6
6
  type ExportImportTxDetails = ExportTx | ImportTx;
7
7
  type ChainDetails = BaseTx;
8
8
  type BlockchainDetails = CreateChainTx;
@@ -93,6 +93,25 @@ type RemoveSubnetValidatorTx = {
93
93
  subnetID: string;
94
94
  txFee: bigint;
95
95
  };
96
+ type AddAutoRenewedValidatorTx = {
97
+ type: TxType.AddAutoRenewedValidator;
98
+ nodeID: string;
99
+ stake: bigint;
100
+ delegationFee: number;
101
+ weight: bigint;
102
+ autoCompoundRewardShares: number;
103
+ period: bigint;
104
+ publicKey?: string;
105
+ signature?: string;
106
+ txFee: bigint;
107
+ };
108
+ type SetAutoRenewedValidatorConfigTx = {
109
+ type: TxType.SetAutoRenewedValidatorConfig;
110
+ txId: string;
111
+ autoCompoundRewardShares: number;
112
+ period: bigint;
113
+ txFee: bigint;
114
+ };
96
115
  type FeeData = {
97
116
  totalAvaxBurned: bigint;
98
117
  totalAvaxOutput: bigint;
@@ -151,7 +170,9 @@ declare enum TxType {
151
170
  SetL1ValidatorWeight = "set_l1_validator_weight",
152
171
  IncreaseL1ValidatorBalance = "increase_l1_validator_balance",
153
172
  DisableL1Validator = "disable_l1_validator",
173
+ AddAutoRenewedValidator = "add_auto_renewed_validator",
174
+ SetAutoRenewedValidatorConfig = "set_auto_renewed_validator_config",
154
175
  Unknown = "unknown"
155
176
  }
156
177
 
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 };
178
+ export { AddAutoRenewedValidatorTx, AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetAutoRenewedValidatorConfigTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM };
package/dist/staking.js CHANGED
@@ -1,3 +1,4 @@
1
- export { a as TxType } from './chunk-FGMDBV23.js';
1
+ export { a as TxType } from './chunk-KPOQBGHJ.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=staking.js.map
package/dist/token.cjs CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkN7PCIGVW_cjs = require('./chunk-N7PCIGVW.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
package/dist/token.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export { a as TokenType } from './chunk-GMF7R4KJ.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=token.js.map
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYLE2VFJX_cjs = require('./chunk-YLE2VFJX.cjs');
4
+ require('./chunk-IQLAM2UJ.cjs');
4
5
 
5
6
 
6
7
 
@@ -1,3 +1,4 @@
1
1
  export { b as PChainTransactionType, a as TransactionType, c as XChainTransactionType } from './chunk-V2MZKRLY.js';
2
+ import './chunk-DYCPFO4Y.js';
2
3
  //# sourceMappingURL=out.js.map
3
4
  //# sourceMappingURL=transaction-history.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/vm-module-types",
3
- "version": "3.7.2",
3
+ "version": "3.8.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ava-labs/core-vm-modules",
@@ -16,8 +16,8 @@
16
16
  ],
17
17
  "license": "Limited Ecosystem License",
18
18
  "dependencies": {
19
- "@avalabs/core-wallets-sdk": "3.1.0-alpha.85",
20
- "@avalabs/glacier-sdk": "3.1.0-alpha.85",
19
+ "@avalabs/core-wallets-sdk": "3.1.0-alpha.87",
20
+ "@avalabs/glacier-sdk": "3.1.0-alpha.87",
21
21
  "@metamask/rpc-errors": "6.3.0",
22
22
  "bitcoinjs-lib": "5.2.0",
23
23
  "zod": "3.23.8",
@@ -29,7 +29,7 @@
29
29
  "bn.js": "5.2.1",
30
30
  "ethers": "6.13.5",
31
31
  "tsup": "7.2.0",
32
- "@internal/tsup-config": "0.1.0",
32
+ "@internal/tsup-config": "0.1.1",
33
33
  "eslint-config-custom": "0.1.0"
34
34
  },
35
35
  "peerDependencies": {
@@ -1,5 +0,0 @@
1
- var o=(r=>(r.EVM="EVM",r.BITCOIN="BITCOIN",r.AVM="AVM",r.PVM="PVM",r.CoreEth="CoreEth",r.HVM="HVM",r.SVM="SVM",r))(o||{}),i=(e=>(e.PRODUCTION="production",e.DEV="dev",e))(i||{}),n=(t=>(t.CORE_MOBILE_IOS="core-mobile-ios",t.CORE_MOBILE_ANDROID="core-mobile-android",t.CORE_WEB="core-web",t.CORE_EXTENSION="core-extension",t.EXPLORER="explorer",t.OTHER="other",t))(n||{});
2
-
3
- export { o as a, i as b, n as c };
4
- //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chunk-5WG65A3C.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/common.ts"],"names":["NetworkVMType","Environment","AppName"],"mappings":"AA0BO,IAAKA,OACVA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MAPIA,OAAA,IAmBAC,OACVA,EAAA,WAAa,aACbA,EAAA,IAAM,MAFIA,OAAA,IAKAC,OACVA,EAAA,gBAAkB,kBAClBA,EAAA,oBAAsB,sBACtBA,EAAA,SAAW,WACXA,EAAA,eAAiB,iBACjBA,EAAA,SAAW,WACXA,EAAA,MAAQ,QANEA,OAAA","sourcesContent":["import type { NetworkContractToken, NetworkToken } from './token';\n\nexport type Network = {\n isTestnet?: boolean;\n chainId: number;\n caipId?: string;\n chainName: string;\n rpcUrl: string;\n customRpcHeaders?: Record<string, string>;\n utilityAddresses?: {\n multicall: string;\n };\n networkToken: NetworkToken;\n pricingProviders?: {\n coingecko: {\n assetPlatformId?: string;\n nativeTokenId?: string;\n };\n };\n tokens?: NetworkContractToken[];\n explorerUrl?: string;\n logoUri?: string;\n vmName: NetworkVMType;\n vmRpcPrefix?: string;\n};\n\nexport enum NetworkVMType {\n EVM = 'EVM',\n BITCOIN = 'BITCOIN',\n AVM = 'AVM',\n PVM = 'PVM',\n CoreEth = 'CoreEth',\n HVM = 'HVM',\n SVM = 'SVM',\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\nexport enum AppName {\n CORE_MOBILE_IOS = 'core-mobile-ios',\n CORE_MOBILE_ANDROID = 'core-mobile-android',\n CORE_WEB = 'core-web',\n CORE_EXTENSION = 'core-extension',\n EXPLORER = 'explorer',\n OTHER = 'other',\n}\n"]}
@@ -1,5 +0,0 @@
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
-
3
- export { e as a };
4
- //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chunk-FGMDBV23.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,7 +0,0 @@
1
- 'use strict';
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.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
-
5
- exports.a = e;
6
- //# sourceMappingURL=out.js.map
7
- //# sourceMappingURL=chunk-PX3B6TJZ.cjs.map
@@ -1 +0,0 @@
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"]}
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var o=(r=>(r.EVM="EVM",r.BITCOIN="BITCOIN",r.AVM="AVM",r.PVM="PVM",r.CoreEth="CoreEth",r.HVM="HVM",r.SVM="SVM",r))(o||{}),i=(e=>(e.PRODUCTION="production",e.DEV="dev",e))(i||{}),n=(t=>(t.CORE_MOBILE_IOS="core-mobile-ios",t.CORE_MOBILE_ANDROID="core-mobile-android",t.CORE_WEB="core-web",t.CORE_EXTENSION="core-extension",t.EXPLORER="explorer",t.OTHER="other",t))(n||{});
4
-
5
- exports.a = o;
6
- exports.b = i;
7
- exports.c = n;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-R3AACGNJ.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/common.ts"],"names":["NetworkVMType","Environment","AppName"],"mappings":"AA0BO,IAAKA,OACVA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MAPIA,OAAA,IAmBAC,OACVA,EAAA,WAAa,aACbA,EAAA,IAAM,MAFIA,OAAA,IAKAC,OACVA,EAAA,gBAAkB,kBAClBA,EAAA,oBAAsB,sBACtBA,EAAA,SAAW,WACXA,EAAA,eAAiB,iBACjBA,EAAA,SAAW,WACXA,EAAA,MAAQ,QANEA,OAAA","sourcesContent":["import type { NetworkContractToken, NetworkToken } from './token';\n\nexport type Network = {\n isTestnet?: boolean;\n chainId: number;\n caipId?: string;\n chainName: string;\n rpcUrl: string;\n customRpcHeaders?: Record<string, string>;\n utilityAddresses?: {\n multicall: string;\n };\n networkToken: NetworkToken;\n pricingProviders?: {\n coingecko: {\n assetPlatformId?: string;\n nativeTokenId?: string;\n };\n };\n tokens?: NetworkContractToken[];\n explorerUrl?: string;\n logoUri?: string;\n vmName: NetworkVMType;\n vmRpcPrefix?: string;\n};\n\nexport enum NetworkVMType {\n EVM = 'EVM',\n BITCOIN = 'BITCOIN',\n AVM = 'AVM',\n PVM = 'PVM',\n CoreEth = 'CoreEth',\n HVM = 'HVM',\n SVM = 'SVM',\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\nexport enum AppName {\n CORE_MOBILE_IOS = 'core-mobile-ios',\n CORE_MOBILE_ANDROID = 'core-mobile-android',\n CORE_WEB = 'core-web',\n CORE_EXTENSION = 'core-extension',\n EXPLORER = 'explorer',\n OTHER = 'other',\n}\n"]}
@@ -1,7 +0,0 @@
1
- import { object, string, boolean } from 'zod';
2
-
3
- var n=object({checksum:string(),location:object({npm:object({filePath:string(),packageName:string(),registry:string()})})}),o=object({name:string(),version:string(),description:string(),sources:object({module:n,provider:n.optional()}),network:object({chainIds:string().array(),namespaces:string().array()}),cointype:string(),permissions:object({rpc:object({dapps:boolean(),methods:string().array(),nonRestrictedMethods:string().array()})}),manifestVersion:string()}),c=r=>o.safeParse(r);
4
-
5
- export { c as a };
6
- //# sourceMappingURL=out.js.map
7
- //# sourceMappingURL=chunk-RINP3JFP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/manifest.ts"],"names":["boolean","object","string","sourceSchema","manifestSchema","parseManifest","params"],"mappings":"AAAA,OAAS,WAAAA,EAAS,UAAAC,EAAQ,UAAAC,MAAiB,MAE3C,IAAMC,EAAeF,EAAO,CAC1B,SAAUC,EAAO,EACjB,SAAUD,EAAO,CACf,IAAKA,EAAO,CACV,SAAUC,EAAO,EACjB,YAAaA,EAAO,EACpB,SAAUA,EAAO,CACnB,CAAC,CACH,CAAC,CACH,CAAC,EAEKE,EAAiBH,EAAO,CAC5B,KAAMC,EAAO,EACb,QAASA,EAAO,EAChB,YAAaA,EAAO,EACpB,QAASD,EAAO,CACd,OAAQE,EACR,SAAUA,EAAa,SAAS,CAClC,CAAC,EACD,QAASF,EAAO,CACd,SAAUC,EAAO,EAAE,MAAM,EACzB,WAAYA,EAAO,EAAE,MAAM,CAC7B,CAAC,EACD,SAAUA,EAAO,EACjB,YAAaD,EAAO,CAClB,IAAKA,EAAO,CACV,MAAOD,EAAQ,EACf,QAASE,EAAO,EAAE,MAAM,EACxB,qBAAsBA,EAAO,EAAE,MAAM,CACvC,CAAC,CACH,CAAC,EACD,gBAAiBA,EAAO,CAC1B,CAAC,EAIYG,EAAiBC,GACrBF,EAAe,UAAUE,CAAM","sourcesContent":["import { boolean, object, string, z } from 'zod';\n\nconst sourceSchema = object({\n checksum: string(),\n location: object({\n npm: object({\n filePath: string(),\n packageName: string(),\n registry: string(),\n }),\n }),\n});\n\nconst manifestSchema = object({\n name: string(),\n version: string(),\n description: string(),\n sources: object({\n module: sourceSchema,\n provider: sourceSchema.optional(),\n }),\n network: object({\n chainIds: string().array(),\n namespaces: string().array(),\n }),\n cointype: string(),\n permissions: object({\n rpc: object({\n dapps: boolean(),\n methods: string().array(),\n nonRestrictedMethods: string().array(),\n }),\n }),\n manifestVersion: string(),\n});\n\nexport type Manifest = z.infer<typeof manifestSchema>;\n\nexport const parseManifest = (params: unknown): z.SafeParseReturnType<unknown, Manifest> => {\n return manifestSchema.safeParse(params);\n};\n"]}
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var zod = require('zod');
4
-
5
- var n=zod.object({checksum:zod.string(),location:zod.object({npm:zod.object({filePath:zod.string(),packageName:zod.string(),registry:zod.string()})})}),o=zod.object({name:zod.string(),version:zod.string(),description:zod.string(),sources:zod.object({module:n,provider:n.optional()}),network:zod.object({chainIds:zod.string().array(),namespaces:zod.string().array()}),cointype:zod.string(),permissions:zod.object({rpc:zod.object({dapps:zod.boolean(),methods:zod.string().array(),nonRestrictedMethods:zod.string().array()})}),manifestVersion:zod.string()}),c=r=>o.safeParse(r);
6
-
7
- exports.a = c;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-SYE3TX4L.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/manifest.ts"],"names":["boolean","object","string","sourceSchema","manifestSchema","parseManifest","params"],"mappings":"AAAA,OAAS,WAAAA,EAAS,UAAAC,EAAQ,UAAAC,MAAiB,MAE3C,IAAMC,EAAeF,EAAO,CAC1B,SAAUC,EAAO,EACjB,SAAUD,EAAO,CACf,IAAKA,EAAO,CACV,SAAUC,EAAO,EACjB,YAAaA,EAAO,EACpB,SAAUA,EAAO,CACnB,CAAC,CACH,CAAC,CACH,CAAC,EAEKE,EAAiBH,EAAO,CAC5B,KAAMC,EAAO,EACb,QAASA,EAAO,EAChB,YAAaA,EAAO,EACpB,QAASD,EAAO,CACd,OAAQE,EACR,SAAUA,EAAa,SAAS,CAClC,CAAC,EACD,QAASF,EAAO,CACd,SAAUC,EAAO,EAAE,MAAM,EACzB,WAAYA,EAAO,EAAE,MAAM,CAC7B,CAAC,EACD,SAAUA,EAAO,EACjB,YAAaD,EAAO,CAClB,IAAKA,EAAO,CACV,MAAOD,EAAQ,EACf,QAASE,EAAO,EAAE,MAAM,EACxB,qBAAsBA,EAAO,EAAE,MAAM,CACvC,CAAC,CACH,CAAC,EACD,gBAAiBA,EAAO,CAC1B,CAAC,EAIYG,EAAiBC,GACrBF,EAAe,UAAUE,CAAM","sourcesContent":["import { boolean, object, string, z } from 'zod';\n\nconst sourceSchema = object({\n checksum: string(),\n location: object({\n npm: object({\n filePath: string(),\n packageName: string(),\n registry: string(),\n }),\n }),\n});\n\nconst manifestSchema = object({\n name: string(),\n version: string(),\n description: string(),\n sources: object({\n module: sourceSchema,\n provider: sourceSchema.optional(),\n }),\n network: object({\n chainIds: string().array(),\n namespaces: string().array(),\n }),\n cointype: string(),\n permissions: object({\n rpc: object({\n dapps: boolean(),\n methods: string().array(),\n nonRestrictedMethods: string().array(),\n }),\n }),\n manifestVersion: string(),\n});\n\nexport type Manifest = z.infer<typeof manifestSchema>;\n\nexport const parseManifest = (params: unknown): z.SafeParseReturnType<unknown, Manifest> => {\n return manifestSchema.safeParse(params);\n};\n"]}