@avalabs/vm-module-types 4.0.0 → 4.0.1

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.
@@ -4,4 +4,4 @@ var t=(e=>(e.Base="base",e.AddValidator="add_validator",e.AddDelegator="add_dele
4
4
 
5
5
  exports.a = t;
6
6
  //# sourceMappingURL=out.js.map
7
- //# sourceMappingURL=chunk-UYEUO5B3.cjs.map
7
+ //# sourceMappingURL=chunk-GK2KQ7WE.cjs.map
@@ -1 +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
+ {"version":3,"sources":["../src/staking.ts"],"names":["TxType"],"mappings":"AAmMO,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 // 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"]}
@@ -2,4 +2,4 @@ var t=(e=>(e.Base="base",e.AddValidator="add_validator",e.AddDelegator="add_dele
2
2
 
3
3
  export { t as a };
4
4
  //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chunk-KPOQBGHJ.js.map
5
+ //# sourceMappingURL=chunk-LU4BRIVO.js.map
@@ -1 +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
+ {"version":3,"sources":["../src/staking.ts"],"names":["TxType"],"mappings":"AAmMO,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 // 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"]}
package/dist/index.cjs CHANGED
@@ -4,7 +4,7 @@ require('./chunk-YB5EN6FL.cjs');
4
4
  require('./chunk-AILYKQEY.cjs');
5
5
  var chunk4NMX4VK7_cjs = require('./chunk-4NMX4VK7.cjs');
6
6
  var chunkD3RUEILB_cjs = require('./chunk-D3RUEILB.cjs');
7
- var chunkUYEUO5B3_cjs = require('./chunk-UYEUO5B3.cjs');
7
+ var chunkGK2KQ7WE_cjs = require('./chunk-GK2KQ7WE.cjs');
8
8
  var chunkEC2O5ECQ_cjs = require('./chunk-EC2O5ECQ.cjs');
9
9
  var chunkDTK5YHAN_cjs = require('./chunk-DTK5YHAN.cjs');
10
10
  require('./chunk-47KTBBRA.cjs');
@@ -37,7 +37,7 @@ Object.defineProperty(exports, 'RpcMethod', {
37
37
  });
38
38
  Object.defineProperty(exports, 'TxType', {
39
39
  enumerable: true,
40
- get: function () { return chunkUYEUO5B3_cjs.a; }
40
+ get: function () { return chunkGK2KQ7WE_cjs.a; }
41
41
  });
42
42
  Object.defineProperty(exports, 'TokenType', {
43
43
  enumerable: true,
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import './chunk-GF7C4PA6.js';
2
2
  import './chunk-7U2R34EQ.js';
3
3
  export { a as EventNames } from './chunk-6ZLXXGIV.js';
4
4
  export { c as AlertType, b as DetailItemType, a as RpcMethod } from './chunk-NV2X67GI.js';
5
- export { a as TxType } from './chunk-KPOQBGHJ.js';
5
+ export { a as TxType } from './chunk-LU4BRIVO.js';
6
6
  export { a as TokenType } from './chunk-GNNCJP76.js';
7
7
  export { b as PChainTransactionType, a as TransactionType, c as XChainTransactionType } from './chunk-4NLGTKVT.js';
8
8
  import './chunk-P6AM7I3B.js';
package/dist/staking.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkUYEUO5B3_cjs = require('./chunk-UYEUO5B3.cjs');
3
+ var chunkGK2KQ7WE_cjs = require('./chunk-GK2KQ7WE.cjs');
4
4
  require('./chunk-IQLAM2UJ.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, 'TxType', {
9
9
  enumerable: true,
10
- get: function () { return chunkUYEUO5B3_cjs.a; }
10
+ get: function () { return chunkGK2KQ7WE_cjs.a; }
11
11
  });
12
12
  //# sourceMappingURL=out.js.map
13
13
  //# sourceMappingURL=staking.cjs.map
@@ -98,7 +98,6 @@ type AddAutoRenewedValidatorTx = {
98
98
  nodeID: string;
99
99
  stake: bigint;
100
100
  delegationFee: number;
101
- weight: bigint;
102
101
  autoCompoundRewardShares: number;
103
102
  period: bigint;
104
103
  publicKey?: string;
package/dist/staking.d.ts CHANGED
@@ -98,7 +98,6 @@ type AddAutoRenewedValidatorTx = {
98
98
  nodeID: string;
99
99
  stake: bigint;
100
100
  delegationFee: number;
101
- weight: bigint;
102
101
  autoCompoundRewardShares: number;
103
102
  period: bigint;
104
103
  publicKey?: string;
package/dist/staking.js CHANGED
@@ -1,4 +1,4 @@
1
- export { a as TxType } from './chunk-KPOQBGHJ.js';
1
+ export { a as TxType } from './chunk-LU4BRIVO.js';
2
2
  import './chunk-DYCPFO4Y.js';
3
3
  //# sourceMappingURL=out.js.map
4
4
  //# sourceMappingURL=staking.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/vm-module-types",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
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.87",
20
- "@avalabs/glacier-sdk": "3.1.0-alpha.87",
19
+ "@avalabs/core-wallets-sdk": "3.1.0-alpha.94",
20
+ "@avalabs/glacier-sdk": "3.1.0-alpha.94",
21
21
  "@metamask/rpc-errors": "6.3.0",
22
22
  "bitcoinjs-lib": "5.2.0",
23
23
  "zod": "3.23.8",