@avalabs/core-wallets-sdk 3.1.0-alpha.3 → 3.1.0-alpha.30

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 (54) hide show
  1. package/dist/index.d.ts +334 -62
  2. package/dist/index.js +1 -1
  3. package/esm/Avalanche/index.d.ts +2 -3
  4. package/esm/Avalanche/index.js +1 -1
  5. package/esm/Avalanche/models.d.ts +44 -5
  6. package/esm/Avalanche/models.js +1 -1
  7. package/esm/Avalanche/providers/AbstractProvider.d.ts +9 -2
  8. package/esm/Avalanche/providers/AbstractProvider.js +1 -1
  9. package/esm/Avalanche/providers/JsonRpcProvider.d.ts +5 -3
  10. package/esm/Avalanche/providers/JsonRpcProvider.js +1 -1
  11. package/esm/Avalanche/providers/constants.d.ts +20 -1
  12. package/esm/Avalanche/providers/constants.js +1 -1
  13. package/esm/Avalanche/providers/platformFeeConfig.js +1 -0
  14. package/esm/Avalanche/utils/appendDisableAuthAddressMaps.js +1 -0
  15. package/esm/Avalanche/utils/convertGlacierUtxo.d.ts +3 -3
  16. package/esm/Avalanche/utils/createAvalancheUnsignedTx.js +1 -1
  17. package/esm/Avalanche/utils/getAssetBalance.js +1 -1
  18. package/esm/Avalanche/utils/getChainAliasByChainId.js +1 -1
  19. package/esm/Avalanche/utils/getPchainUnixNow.js +1 -1
  20. package/esm/Avalanche/utils/getUtxosByTxFromGlacier.d.ts +5 -2
  21. package/esm/Avalanche/utils/getUtxosByTxFromGlacier.js +1 -1
  22. package/esm/Avalanche/utils/handleSubnetAuth.js +1 -1
  23. package/esm/Avalanche/utils/orderBy.js +1 -0
  24. package/esm/Avalanche/utils/parseAvalancheTx.d.ts +7 -1
  25. package/esm/Avalanche/utils/parseAvalancheTx.js +1 -1
  26. package/esm/Avalanche/utils/parsers/index.js +1 -1
  27. package/esm/Avalanche/utils/parsers/parseAddPermissionlessDelegatorTx.js +1 -1
  28. package/esm/Avalanche/utils/parsers/parseAddPermissionlessValidatorTx.js +1 -1
  29. package/esm/Avalanche/utils/parsers/parseConvertSubnetToL1Tx.js +1 -0
  30. package/esm/Avalanche/utils/parsers/parseDisableL1ValidatorTx.js +1 -0
  31. package/esm/Avalanche/utils/parsers/parseIncreaseL1ValidatorBalanceTx.js +1 -0
  32. package/esm/Avalanche/utils/parsers/parseRegisterL1ValidatorTx.js +1 -0
  33. package/esm/Avalanche/utils/parsers/parseSetL1ValidatorWeightTx.js +1 -0
  34. package/esm/Avalanche/utils/parsers/utils/chainIdToVm.js +1 -1
  35. package/esm/Avalanche/utils/sortUTXOs.d.ts +6 -4
  36. package/esm/Avalanche/utils/sortUTXOs.js +1 -1
  37. package/esm/Avalanche/utils/txSizeLimits.d.ts +9 -2
  38. package/esm/Avalanche/utils/txSizeLimits.js +1 -1
  39. package/esm/Avalanche/wallets/AddressWallet.js +1 -1
  40. package/esm/Avalanche/wallets/SimpleSigner.js +1 -1
  41. package/esm/Avalanche/wallets/StaticSigner.js +1 -1
  42. package/esm/Avalanche/wallets/TxBuilderTypes.d.ts +179 -0
  43. package/esm/Avalanche/wallets/WalletAbstract.d.ts +24 -18
  44. package/esm/Avalanche/wallets/WalletAbstract.js +1 -1
  45. package/esm/Avalanche/wallets/WalletVoid.js +1 -1
  46. package/esm/Avalanche/wallets/ledger/LedgerSigner.js +1 -1
  47. package/esm/Avalanche/wallets/ledger/SimpleLedgerSigner.js +1 -1
  48. package/esm/BitcoinVM/providers/BitcoinProvider.d.ts +4 -3
  49. package/esm/BitcoinVM/providers/BitcoinProvider.js +1 -1
  50. package/esm/BitcoinVM/providers/BitcoinProviderAbstract.d.ts +1 -0
  51. package/esm/utils/assertFeeStateProvided.js +1 -0
  52. package/package.json +6 -6
  53. package/esm/Avalanche/utils/getUtxoInfo.d.ts +0 -13
  54. package/esm/Avalanche/utils/getUtxoInfo.js +0 -1
package/dist/index.d.ts CHANGED
@@ -8,12 +8,15 @@ import { Provider, VoidSigner, HDNodeWallet, TransactionResponse, JsonRpcProvide
8
8
  import Transport from '@ledgerhq/hw-transport';
9
9
  import Eth from '@ledgerhq/hw-app-eth';
10
10
  import * as _avalabs_avalanchejs from '@avalabs/avalanchejs';
11
- import { VM, Common, OutputOwners, TransferableOutput, pvmSerial, Context, avm, pvm, evm, avaxSerial, utils, UnsignedTx, EVMUnsignedTx, Utxo, Credential, Signature } from '@avalabs/avalanchejs';
11
+ import { VM, Common, OutputOwners, TransferableOutput, pvmSerial, Context, info, avm, pvm, evm, avaxSerial, utils, UnsignedTx, EVMUnsignedTx, Utxo, TransferOutput, Credential, Signature } from '@avalabs/avalanchejs';
12
12
  import * as _avalabs_avalanchejs_dist_vms_common from '@avalabs/avalanchejs/dist/vms/common';
13
13
  import { Bip32Path } from 'bip32-path';
14
14
  import AppZondax, { ResponseBase } from '@avalabs/hw-app-avalanche';
15
15
  import { BIP32Interface } from 'bip32';
16
- import { Utxo as Utxo$1, PChainUtxo } from '@avalabs/glacier-sdk';
16
+ import { GetUpgradesInfoResponse } from '@avalabs/avalanchejs/dist/info/model';
17
+ import * as _avalabs_avalanchejs_dist_vms_pvm from '@avalabs/avalanchejs/dist/vms/pvm';
18
+ import { Utxo as Utxo$1, PChainUtxo, Network as Network$2 } from '@avalabs/glacier-sdk';
19
+ import * as _avalabs_avalanchejs_dist_serializable_common_types from '@avalabs/avalanchejs/dist/serializable/common/types';
17
20
  import { WalletAbstract as WalletAbstract$1 } from 'Avalanche/wallets';
18
21
 
19
22
  /**
@@ -147,6 +150,7 @@ declare abstract class BitcoinProviderAbstract {
147
150
  medium: number;
148
151
  low: number;
149
152
  }>;
153
+ abstract getAddressFromScript(script: string): Promise<string>;
150
154
  }
151
155
 
152
156
  declare class BitcoinProvider extends BitcoinProviderAbstract {
@@ -155,11 +159,12 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
155
159
  private readonly extraParams?;
156
160
  constructor(isMainnet?: boolean, apiKey?: string, explorerUrl?: string, nodeUrl?: string, extraParams?: Record<string, string> | undefined);
157
161
  getTxHex(txHash: string): Promise<string>;
158
- getUTXOs(address: string, withScripts?: boolean): Promise<{
162
+ getUTXOs(address: string, withScripts?: boolean, skipBatch?: boolean): Promise<{
159
163
  confirmed: BitcoinInputUTXOWithOptionalScript[];
160
164
  unconfirmed: BitcoinInputUTXOWithOptionalScript[];
161
165
  }>;
162
- getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[]): Promise<BitcoinInputUTXO[]>;
166
+ getAddressFromScript(script: string): Promise<string>;
167
+ getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[], skipBatch?: boolean): Promise<BitcoinInputUTXO[]>;
163
168
  private _parseUtxo;
164
169
  getBalances(address: string): Promise<{
165
170
  available: bigint;
@@ -167,7 +172,7 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
167
172
  final: bigint;
168
173
  }>;
169
174
  getChainHeight(): Promise<number>;
170
- getFeeRates(): Promise<{
175
+ getFeeRates(skipBatch?: boolean): Promise<{
171
176
  low: number;
172
177
  medium: number;
173
178
  high: number;
@@ -561,7 +566,7 @@ type ChainIDAlias = 'X' | 'P' | 'C';
561
566
  /**
562
567
  * Types for parsed transaction
563
568
  */
564
- type Tx = AddValidatorTx | AddDelegatorTx | ExportTx | ImportTx | BaseTx | CreateSubnetTx | CreateChainTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddPermissionlessValidatorTx | AddPermissionlessDelegatorTx | TransformSubnetTx | TransferSubnetOwnershipTx | UnknownTx;
569
+ type Tx = AddValidatorTx | AddDelegatorTx | ExportTx | ImportTx | BaseTx$1 | CreateSubnetTx | CreateChainTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddPermissionlessValidatorTx | AddPermissionlessDelegatorTx | TransformSubnetTx | TransferSubnetOwnershipTx$1 | ConvertSubnetToL1Tx | RegisterL1ValidatorTx | SetL1ValidatorWeightTx | DisableL1ValidatorTx | IncreaseL1ValidatorBalanceTx | UnknownTx;
565
570
  interface FeeData {
566
571
  totalAvaxBurned: bigint;
567
572
  totalAvaxOutput: bigint;
@@ -581,6 +586,11 @@ declare enum TxType {
581
586
  Import = "import",
582
587
  CreateSubnet = "create_subnet",
583
588
  CreateChain = "create_chain",
589
+ ConvertSubnetToL1 = "convert_subnet_to_l1",
590
+ RegisterL1Validator = "register_l1_validator",
591
+ SetL1ValidatorWeight = "set_l1_validator_weight",
592
+ IncreaseL1ValidatorBalance = "increase_l1_validator_balance",
593
+ DisableL1Validator = "disable_l1_validator",
584
594
  AddSubnetValidator = "add_subnet_validator",
585
595
  RemoveSubnetValidator = "remove_subnet_validator",
586
596
  AddPermissionlessValidator = "add_permissionless_validator",
@@ -589,7 +599,7 @@ declare enum TxType {
589
599
  TransferSubnetOwnership = "transfer_subnet_ownership",
590
600
  Unknown = "unknown"
591
601
  }
592
- interface BaseTx extends TxBase {
602
+ interface BaseTx$1 extends TxBase {
593
603
  type: TxType.Base;
594
604
  chain: VM;
595
605
  outputs: {
@@ -659,6 +669,35 @@ interface RemoveSubnetValidatorTx extends TxBase {
659
669
  nodeID: string;
660
670
  subnetID: string;
661
671
  }
672
+ interface ConvertSubnetToL1Tx extends TxBase {
673
+ type: TxType.ConvertSubnetToL1;
674
+ managerAddress: string;
675
+ validators: {
676
+ nodeId: string;
677
+ stake: bigint;
678
+ balance: bigint;
679
+ remainingBalanceOwners: string[];
680
+ deactivationOwners: string[];
681
+ }[];
682
+ subnetID: string;
683
+ chainID: string;
684
+ }
685
+ interface RegisterL1ValidatorTx extends TxBase {
686
+ type: TxType.RegisterL1Validator;
687
+ balance: bigint;
688
+ }
689
+ interface SetL1ValidatorWeightTx extends TxBase {
690
+ type: TxType.SetL1ValidatorWeight;
691
+ }
692
+ interface IncreaseL1ValidatorBalanceTx extends TxBase {
693
+ type: TxType.IncreaseL1ValidatorBalance;
694
+ balance: bigint;
695
+ validationId: string;
696
+ }
697
+ interface DisableL1ValidatorTx extends TxBase {
698
+ type: TxType.DisableL1Validator;
699
+ validationId: string;
700
+ }
662
701
  interface AddPermissionlessValidatorTx extends TxBase {
663
702
  type: TxType.AddPermissionlessValidator;
664
703
  nodeID: string;
@@ -668,7 +707,7 @@ interface AddPermissionlessValidatorTx extends TxBase {
668
707
  rewardOwner: OutputOwners;
669
708
  delegationRewardOwner: OutputOwners;
670
709
  stake: bigint;
671
- stakeOuts: TransferableOutput[];
710
+ stakeOuts: readonly TransferableOutput[];
672
711
  subnetID: string;
673
712
  publicKey: undefined | string;
674
713
  signature: undefined | string;
@@ -682,7 +721,7 @@ interface AddPermissionlessDelegatorTx extends TxBase {
682
721
  stake: bigint;
683
722
  subnetID: string;
684
723
  delegatorRewardsOwner: OutputOwners;
685
- stakeOuts: TransferableOutput[];
724
+ stakeOuts: readonly TransferableOutput[];
686
725
  }
687
726
  interface TransformSubnetTx extends TxBase {
688
727
  type: TxType.TransformSubnet;
@@ -697,11 +736,11 @@ interface TransformSubnetTx extends TxBase {
697
736
  minStakeDuration: number;
698
737
  maxStakeDuration: number;
699
738
  minDelegationFee: number;
700
- minDelegatorStake: number;
739
+ minDelegatorStake: bigint;
701
740
  maxValidatorWeightFactor: number;
702
741
  uptimeRequirement: number;
703
742
  }
704
- interface TransferSubnetOwnershipTx extends TxBase {
743
+ interface TransferSubnetOwnershipTx$1 extends TxBase {
705
744
  type: TxType.TransferSubnetOwnership;
706
745
  subnetID: string;
707
746
  threshold: number;
@@ -717,7 +756,12 @@ declare function isAddValidatorTx(tx: Tx): tx is AddValidatorTx;
717
756
  declare function isAddDelegatorTx(tx: Tx): tx is AddDelegatorTx;
718
757
  declare function isExportTx(tx: Tx): tx is ExportTx;
719
758
  declare function isImportTx(tx: Tx): tx is ImportTx;
720
- declare function isBaseTx(tx: Tx): tx is BaseTx;
759
+ declare function isBaseTx(tx: Tx): tx is BaseTx$1;
760
+ declare function isConvertSubnetToL1Tx(tx: Tx): tx is ConvertSubnetToL1Tx;
761
+ declare function isRegisterL1ValidatorTx(tx: Tx): tx is RegisterL1ValidatorTx;
762
+ declare function isSetL1ValidatorWeightTx(tx: Tx): tx is SetL1ValidatorWeightTx;
763
+ declare function isDisableL1ValidatorTx(tx: Tx): tx is DisableL1ValidatorTx;
764
+ declare function isIncreaseL1ValidatorBalance(tx: Tx): tx is IncreaseL1ValidatorBalanceTx;
721
765
  declare function isCreateSubnetTx(tx: Tx): tx is CreateSubnetTx;
722
766
  declare function isCreateChainTx(tx: Tx): tx is CreateChainTx;
723
767
  declare function isAddSubnetValidatorTx(tx: Tx): tx is AddSubnetValidatorTx;
@@ -725,24 +769,28 @@ declare function isRemoveSubnetValidatorTx(tx: Tx): tx is RemoveSubnetValidatorT
725
769
  declare function isAddPermissionlessValidatorTx(tx: Tx): tx is AddPermissionlessValidatorTx;
726
770
  declare function isAddPermissionlessDelegatorTx(tx: Tx): tx is AddPermissionlessDelegatorTx;
727
771
  declare function isTransformSubnetTx(tx: Tx): tx is TransformSubnetTx;
728
- declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx;
772
+ declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx$1;
729
773
 
730
774
  declare class AbstractProvider {
731
775
  protected baseUrl: string;
732
776
  protected context: Context.Context;
777
+ protected upgradesInfo?: info.GetUpgradesInfoResponse | undefined;
733
778
  evmRpc: JsonRpcProvider$1;
734
- constructor(baseUrl: string, context: Context.Context);
779
+ constructor(baseUrl: string, context: Context.Context, upgradesInfo?: info.GetUpgradesInfoResponse | undefined);
735
780
  /**
736
781
  * @link https://docs.ethers.io/v5/api/providers/provider/#Provider-getFeeData
737
782
  */
738
783
  getEvmFeeData(): Promise<ethers.FeeData>;
739
784
  getContext(): Context.Context;
785
+ isEtnaEnabled(): boolean;
786
+ getUpgradesInfo(): info.GetUpgradesInfoResponse | undefined;
740
787
  getChainID(chainAlias: ChainIDAlias): string;
741
788
  getNetworkID(): number;
742
789
  getHrp(): string;
743
790
  getApiX(): avm.AVMApi;
744
791
  getApiP(): pvm.PVMApi;
745
792
  getApiC(): evm.EVMApi;
793
+ getInfo(): info.InfoApi;
746
794
  getApi(chain: ChainIDAlias): avm.AVMApi | pvm.PVMApi | evm.EVMApi;
747
795
  getAvaxID(): string;
748
796
  getAddress(publicKey: Buffer, chain: ChainIDAlias): string;
@@ -757,13 +805,17 @@ declare class AbstractProvider {
757
805
  getApiByChainID(chainID: string): avm.AVMApi | pvm.PVMApi | evm.EVMApi | undefined;
758
806
  issueTx(tx: avaxSerial.SignedTx): Promise<_avalabs_avalanchejs_dist_vms_common.IssueTxResponse>;
759
807
  issueTxHex(txHex: string, vm: VM): Promise<_avalabs_avalanchejs_dist_vms_common.IssueTxResponse>;
808
+ waitForTransaction(txHex: string, vm: VM, timeout?: number): Promise<{
809
+ success: boolean;
810
+ }>;
760
811
  }
761
812
 
762
813
  declare class JsonRpcProvider extends AbstractProvider {
763
- constructor(baseUrl: string, context: Context.Context);
814
+ constructor(baseUrl: string, context: Context.Context, upgradesInfo?: GetUpgradesInfoResponse);
764
815
  static fromBaseURL(url: string): Promise<JsonRpcProvider>;
765
- static getDefaultMainnetProvider(): JsonRpcProvider;
766
- static getDefaultFujiProvider(): JsonRpcProvider;
816
+ static getDefaultMainnetProvider(upgradesInfo?: GetUpgradesInfoResponse): JsonRpcProvider;
817
+ static getDefaultFujiProvider(upgradesInfo?: GetUpgradesInfoResponse): JsonRpcProvider;
818
+ static getDefaultDevnetProvider(upgradesInfo?: GetUpgradesInfoResponse): JsonRpcProvider;
767
819
  }
768
820
 
769
821
  /**
@@ -774,6 +826,200 @@ declare const MainnetContext: Context.Context;
774
826
  * Avalanche Fuji testnet context
775
827
  */
776
828
  declare const FujiContext: Context.Context;
829
+ declare const DevnetContext: {
830
+ addPrimaryNetworkDelegatorFee: bigint;
831
+ addPrimaryNetworkValidatorFee: bigint;
832
+ addSubnetDelegatorFee: bigint;
833
+ addSubnetValidatorFee: bigint;
834
+ avaxAssetID: string;
835
+ baseTxFee: bigint;
836
+ cBlockchainID: string;
837
+ createAssetTxFee: bigint;
838
+ createBlockchainTxFee: bigint;
839
+ createSubnetTxFee: bigint;
840
+ hrp: string;
841
+ networkID: number;
842
+ pBlockchainID: string;
843
+ transformSubnetTxFee: bigint;
844
+ xBlockchainID: string;
845
+ platformFeeConfig: _avalabs_avalanchejs_dist_vms_pvm.FeeConfig;
846
+ };
847
+
848
+ type BaseTx = {
849
+ utxoSet: utils.UtxoSet;
850
+ chain: 'X' | 'P';
851
+ toAddress: string;
852
+ amountsPerAsset: Record<string, bigint>;
853
+ feeState?: pvm.FeeState;
854
+ options?: Common.SpendOptions;
855
+ fromAddresses?: string[];
856
+ };
857
+ type ImportP = {
858
+ utxoSet: utils.UtxoSet;
859
+ sourceChain: 'X' | 'C';
860
+ toAddress?: string;
861
+ threshold?: number;
862
+ feeState?: pvm.FeeState;
863
+ locktime?: bigint;
864
+ };
865
+ type ExportP = {
866
+ amount: bigint;
867
+ utxoSet: utils.UtxoSet;
868
+ destination: 'X' | 'C';
869
+ feeState?: pvm.FeeState;
870
+ toAddress?: string;
871
+ };
872
+ type ConsolidateP = {
873
+ utxoSet: utils.UtxoSet;
874
+ amount: bigint;
875
+ feeState?: pvm.FeeState;
876
+ toAddress?: string;
877
+ options?: Common.SpendOptions;
878
+ };
879
+ type CreateSubnet = {
880
+ utxoSet: utils.UtxoSet;
881
+ rewardAddresses: string[];
882
+ feeState?: pvm.FeeState;
883
+ fromAddresses?: string[];
884
+ options?: Common.SpendOptions;
885
+ threshold?: number;
886
+ locktime?: bigint;
887
+ };
888
+ type CreateChain = {
889
+ utxoSet: utils.UtxoSet;
890
+ subnetId: string;
891
+ chainName: string;
892
+ vmID: string;
893
+ fxIds: string[];
894
+ genesisData: Record<string, unknown>;
895
+ subnetAuth: number[];
896
+ feeState?: pvm.FeeState;
897
+ options?: Common.SpendOptions;
898
+ fromAddresses?: string[];
899
+ };
900
+ type ConvertSubnetToL1 = {
901
+ utxoSet: utils.UtxoSet;
902
+ address: string;
903
+ chainId: string;
904
+ subnetId: string;
905
+ subnetAuth: number[];
906
+ options?: Common.SpendOptions;
907
+ feeState: pvm.FeeState;
908
+ fromAddresses?: string[];
909
+ validators: {
910
+ nodeId: string;
911
+ weight: bigint;
912
+ balance: bigint;
913
+ pubKey: string;
914
+ signature: string;
915
+ remainingBalanceOwner: {
916
+ addresses: string[];
917
+ threshold?: number;
918
+ };
919
+ deactivationOwner: {
920
+ addresses: string[];
921
+ threshold?: number;
922
+ };
923
+ }[];
924
+ };
925
+ type RegisterL1Validator = {
926
+ utxoSet: utils.UtxoSet;
927
+ balance: bigint;
928
+ signature: string;
929
+ feeState: pvm.FeeState;
930
+ message: string;
931
+ options?: Common.SpendOptions;
932
+ fromAddresses?: string[];
933
+ };
934
+ type SetL1ValidatorWeight = {
935
+ utxoSet: utils.UtxoSet;
936
+ feeState: pvm.FeeState;
937
+ message: string;
938
+ options?: Common.SpendOptions;
939
+ fromAddresses?: string[];
940
+ };
941
+ type DisableL1Validator = {
942
+ utxoSet: utils.UtxoSet;
943
+ feeState: pvm.FeeState;
944
+ disableAuth: number[];
945
+ validationId: string;
946
+ options?: Common.SpendOptions;
947
+ fromAddresses?: string[];
948
+ };
949
+ type IncreaseL1ValidatorBalance = {
950
+ utxoSet: utils.UtxoSet;
951
+ feeState: pvm.FeeState;
952
+ balance: bigint;
953
+ validationId: string;
954
+ options?: Common.SpendOptions;
955
+ fromAddresses?: string[];
956
+ };
957
+ type AddSubnetValidator = {
958
+ utxoSet: utils.UtxoSet;
959
+ nodeId: string;
960
+ start: bigint;
961
+ end: bigint;
962
+ weight: bigint;
963
+ subnetId: string;
964
+ subnetAuth: number[];
965
+ feeState?: pvm.FeeState;
966
+ fromAddresses?: string[];
967
+ options?: Common.SpendOptions;
968
+ };
969
+ type AddPermissionlessValidator = {
970
+ utxoSet: utils.UtxoSet;
971
+ nodeId: string;
972
+ start: bigint;
973
+ end: bigint;
974
+ weight: bigint;
975
+ subnetId: string;
976
+ shares: number;
977
+ fromAddresses?: string[];
978
+ rewardAddresses?: string[];
979
+ delegatorRewardAddresses?: string[];
980
+ publicKey?: Buffer;
981
+ signature?: Buffer;
982
+ options?: Common.SpendOptions;
983
+ stakingAssetId?: string;
984
+ locktime?: bigint;
985
+ threshold?: number;
986
+ feeState?: pvm.FeeState;
987
+ };
988
+ type AddPermissionlessDelegator = {
989
+ utxoSet: utils.UtxoSet;
990
+ nodeId: string;
991
+ start: bigint;
992
+ end: bigint;
993
+ weight: bigint;
994
+ subnetId: string;
995
+ fromAddresses?: string[];
996
+ rewardAddresses?: string[];
997
+ options?: Common.SpendOptions;
998
+ locktime?: bigint;
999
+ feeState?: pvm.FeeState;
1000
+ stakingAssetId?: string;
1001
+ threshold?: number;
1002
+ };
1003
+ type RemoveSubnetValidator = {
1004
+ utxoSet: utils.UtxoSet;
1005
+ nodeId: string;
1006
+ subnetId: string;
1007
+ subnetAuth: number[];
1008
+ feeState?: pvm.FeeState;
1009
+ fromAddresses?: string[];
1010
+ options?: Common.SpendOptions;
1011
+ };
1012
+ type TransferSubnetOwnershipTx = {
1013
+ utxoSet: utils.UtxoSet;
1014
+ subnetId: string;
1015
+ subnetAuth: number[];
1016
+ subnetOwners: string[];
1017
+ feeState?: pvm.FeeState;
1018
+ fromAddresses?: string[];
1019
+ options?: Common.SpendOptions;
1020
+ threshold?: number;
1021
+ locktime?: bigint;
1022
+ };
777
1023
 
778
1024
  /**
779
1025
  * An abstract class that that is shared by all wallet classes.
@@ -820,8 +1066,12 @@ declare abstract class WalletAbstract {
820
1066
  * @param source What is the source chain of the atomic UTXOs
821
1067
  */
822
1068
  getAtomicUTXOs(chain: ChainIDAlias, source: ChainIDAlias): Promise<utils.UtxoSet>;
1069
+ /**
1070
+ * Get the nonce of this wallet's C chain address
1071
+ */
1072
+ getNonce(): Promise<number>;
823
1073
  exportX(amount: bigint, utxoSet: utils.UtxoSet, destination: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
824
- importP(utxos: utils.UtxoSet, sourceChain: 'X' | 'C', toAddress?: string): Common.UnsignedTx;
1074
+ importP({ utxoSet, sourceChain, toAddress, threshold, feeState, locktime, }: ImportP): Common.UnsignedTx;
825
1075
  importX(utxos: utils.UtxoSet, sourceChain: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
826
1076
  /**
827
1077
  *
@@ -841,10 +1091,6 @@ declare abstract class WalletAbstract {
841
1091
  * @param toAddress
842
1092
  */
843
1093
  exportC(amount: bigint, destination: 'X' | 'P', nonce: bigint, baseFee: bigint, toAddress?: string): _avalabs_avalanchejs.EVMUnsignedTx;
844
- /**
845
- * Get the nonce of this wallet's C chain address
846
- */
847
- getNonce(): Promise<number>;
848
1094
  /**
849
1095
  * Export the given amount of AVAX from the P chain. Export fee is automatically added.
850
1096
  * @param amount
@@ -852,18 +1098,23 @@ declare abstract class WalletAbstract {
852
1098
  * @param destination
853
1099
  * @param toAddress
854
1100
  */
855
- exportP(amount: bigint, utxoSet: utils.UtxoSet, destination: 'X' | 'C', toAddress?: string): Common.UnsignedTx;
856
- addValidator(utxos: utils.UtxoSet, nodeID: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, delegationFee: number, config?: {
1101
+ exportP({ amount, utxoSet, destination, feeState, toAddress }: ExportP): Common.UnsignedTx;
1102
+ addValidator(utxos: utils.UtxoSet, nodeId: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, delegationFee: number, config?: {
857
1103
  rewardAddress?: string;
858
1104
  }): Common.UnsignedTx;
859
- addDelegator(utxos: utils.UtxoSet, nodeID: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, config?: {
1105
+ addDelegator(utxos: utils.UtxoSet, nodeId: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, config?: {
860
1106
  rewardAddress?: string;
861
1107
  }): Common.UnsignedTx;
862
- consolidateP(utxoSet: utils.UtxoSet, amount: bigint, toAddress?: string, options?: Common.SpendOptions): Common.UnsignedTx;
863
- baseTX(utxoSet: utils.UtxoSet, chain: 'X' | 'P', toAddress: string, amountsPerAsset: Record<string, bigint>, options?: Common.SpendOptions, fromAddresses?: string[]): Common.UnsignedTx;
864
- createBlockchain(utxoSet: utils.UtxoSet, subnetId: string, chainName: string, vmID: string, fxIds: string[], genesisData: Record<string, unknown>, subnetAuth: number[], options?: Common.SpendOptions, fromAddresses?: string[]): Common.UnsignedTx;
865
- createSubnet(utxoSet: utils.UtxoSet, rewardAddresses: string[], fromAddresses?: string[], options?: Common.SpendOptions, threshold?: number, locktime?: bigint): Common.UnsignedTx;
866
- addSubnetValidator(utxoSet: utils.UtxoSet, nodeId: string, start: bigint, end: bigint, weight: bigint, subnetId: string, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
1108
+ consolidateP({ utxoSet, amount, feeState, toAddress, options, }: ConsolidateP): Common.UnsignedTx;
1109
+ baseTX({ utxoSet, chain, toAddress, amountsPerAsset, feeState, options, fromAddresses, }: BaseTx): Common.UnsignedTx;
1110
+ convertSubnetToL1({ utxoSet, chainId, subnetId, subnetAuth, feeState, address, validators, options, fromAddresses, }: ConvertSubnetToL1): Common.UnsignedTx;
1111
+ registerL1Validator({ utxoSet, balance, signature, message, feeState, fromAddresses, options, }: RegisterL1Validator): Common.UnsignedTx;
1112
+ setL1ValidatorWeight({ utxoSet, feeState, message, options, fromAddresses, }: SetL1ValidatorWeight): Common.UnsignedTx;
1113
+ disableL1Validator({ utxoSet, feeState, options, fromAddresses, disableAuth, validationId, }: DisableL1Validator): Common.UnsignedTx;
1114
+ increaseL1ValidatorBalance({ utxoSet, feeState, options, fromAddresses, balance, validationId, }: IncreaseL1ValidatorBalance): Common.UnsignedTx;
1115
+ createBlockchain({ utxoSet, subnetId, chainName, vmID, fxIds, genesisData, subnetAuth, feeState, options, fromAddresses, }: CreateChain): Common.UnsignedTx;
1116
+ createSubnet({ utxoSet, rewardAddresses, feeState, fromAddresses, options, threshold, locktime, }: CreateSubnet): Common.UnsignedTx;
1117
+ addSubnetValidator({ utxoSet, nodeId, start, end, weight, subnetId, subnetAuth, feeState, fromAddresses, options, }: AddSubnetValidator): Common.UnsignedTx;
867
1118
  /**
868
1119
  *
869
1120
  * @param utxoSet The transaction will be constructed from these UTXOs.
@@ -880,7 +1131,7 @@ declare abstract class WalletAbstract {
880
1131
  * @param signature the BLS signature, If the subnet is the primary network. Can be found in the Node on startup.
881
1132
  * @param options
882
1133
  */
883
- addPermissionlessValidator(utxoSet: utils.UtxoSet, nodeId: string, start: bigint, end: bigint, weight: bigint, subnetId: string, shares: number, fromAddresses?: string[], rewardAddresses?: string[], delegatorRewardAddresses?: string[], publicKey?: Buffer, signature?: Buffer, options?: Common.SpendOptions): Common.UnsignedTx;
1134
+ addPermissionlessValidator({ utxoSet, nodeId, start, end, weight, subnetId, shares, feeState, fromAddresses, rewardAddresses, delegatorRewardAddresses, publicKey, signature, options, threshold, locktime, stakingAssetId, }: AddPermissionlessValidator): Common.UnsignedTx;
884
1135
  /**
885
1136
  *
886
1137
  * @param utxoSet The transaction will be constructed from these UTXOs.
@@ -893,10 +1144,10 @@ declare abstract class WalletAbstract {
893
1144
  * @param rewardAddresses Will use active address if not provided. Given addresses will share the reward UTXO.
894
1145
  * @param options
895
1146
  */
896
- addPermissionlessDelegator(utxoSet: utils.UtxoSet, nodeId: string, start: bigint, end: bigint, weight: bigint, subnetId: string, fromAddresses?: string[], rewardAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
897
- removeSubnetValidator(utxoSet: utils.UtxoSet, nodeId: string, subnetId: string, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
898
- transferSubnetOwnershipTx(utxoSet: utils.UtxoSet, subnetId: string, subnetAuth: number[], subnetOwners: string[], fromAddresses?: string[], options?: Common.SpendOptions, threshold?: number, locktime?: bigint): Common.UnsignedTx;
899
- transformSubnetTx(utxoSet: utils.UtxoSet, subnetId: string, assetId: string, initialSupply: bigint, maximumSupply: bigint, minConsumptionRate: bigint, maxConsumptionRate: bigint, minValidatorStake: bigint, maxValidatorStake: bigint, minStakeDuration: number, maxStakeDuration: number, minDelegationFee: number, minDelegatorStake: number, maxValidatorWeightFactor: number, uptimeRequirement: number, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
1147
+ addPermissionlessDelegator({ utxoSet, nodeId, start, end, weight, subnetId, fromAddresses, rewardAddresses, options, locktime, feeState, threshold, stakingAssetId, }: AddPermissionlessDelegator): Common.UnsignedTx;
1148
+ removeSubnetValidator({ utxoSet, nodeId, subnetId, subnetAuth, fromAddresses, feeState, options, }: RemoveSubnetValidator): Common.UnsignedTx;
1149
+ transferSubnetOwnershipTx({ utxoSet, subnetId, subnetAuth, subnetOwners, feeState, fromAddresses, options, threshold, locktime, }: TransferSubnetOwnershipTx): Common.UnsignedTx;
1150
+ transformSubnetTx(utxoSet: utils.UtxoSet, subnetId: string, assetId: string, initialSupply: bigint, maximumSupply: bigint, minConsumptionRate: bigint, maxConsumptionRate: bigint, minValidatorStake: bigint, maxValidatorStake: bigint, minStakeDuration: number, maxStakeDuration: number, minDelegationFee: number, minDelegatorStake: bigint, maxValidatorWeightFactor: number, uptimeRequirement: number, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
900
1151
  protected constructor(provider: AbstractProvider);
901
1152
  }
902
1153
 
@@ -1347,7 +1598,7 @@ declare const addSignaturesToAvalancheTx: ({ transactionHex, signatures, chainAl
1347
1598
  }>;
1348
1599
 
1349
1600
  type GlacierOutput = Utxo$1 | PChainUtxo;
1350
- declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, isTestnet: boolean) => Utxo;
1601
+ declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, network: Network$2) => Utxo<TransferOutput | pvmSerial.StakeableLockOut<TransferOutput>>;
1351
1602
 
1352
1603
  type Params$2 = {
1353
1604
  txBytes: Uint8Array;
@@ -1451,24 +1702,15 @@ declare function getStakeForAddresses(addresses: string[], api: pvm.PVMApi): Pro
1451
1702
  */
1452
1703
  declare function getUnixNow(): bigint;
1453
1704
 
1454
- type UtxoInfo = {
1455
- utxoId: string;
1456
- assetId: string;
1457
- locktime: bigint;
1458
- stakeableLocktime: bigint;
1459
- threshold: number;
1460
- amount: bigint;
1461
- };
1462
- declare const getUtxoInfo: (utxo: Utxo) => UtxoInfo;
1463
-
1464
1705
  type Params = {
1465
1706
  transactionHex: string;
1466
1707
  chainAlias: ChainIDAlias;
1467
- isTestnet: boolean;
1708
+ network: Network$2;
1468
1709
  url: string;
1469
1710
  token?: string;
1711
+ headers?: Record<string, string>;
1470
1712
  };
1471
- declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, isTestnet, url, token, }: Params) => Promise<Utxo[]>;
1713
+ declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, network, url, token, headers, }: Params) => Promise<Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[]>;
1472
1714
 
1473
1715
  declare const getVmByChainAlias: (chainAlias: string) => "EVM" | "AVM" | "PVM";
1474
1716
 
@@ -1485,10 +1727,16 @@ declare function getXpubFromMnemonic(mnemonic: string): string;
1485
1727
  */
1486
1728
  declare function isBech32Address(address: string, hasChainId?: boolean): boolean;
1487
1729
 
1730
+ type ParseOptions = {
1731
+ /**
1732
+ * Tolerance percentage range where the burned amount is considered valid.
1733
+ */
1734
+ feeTolerance?: number;
1735
+ };
1488
1736
  /**
1489
1737
  * Returns human readable data from a given a transaction buffer,
1490
1738
  */
1491
- declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string): Promise<Tx>;
1739
+ declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string, { feeTolerance }?: ParseOptions): Promise<Tx>;
1492
1740
 
1493
1741
  declare const emptySignature: Signature;
1494
1742
  declare const populateCredential: (indices: number[], existingCredentialData?: {
@@ -1500,14 +1748,15 @@ declare function signedTxToHex(signedTx: avaxSerial.SignedTx): string;
1500
1748
 
1501
1749
  /**
1502
1750
  * The UTXOs will be sorted in the following order.
1503
- * 1- LockedStakeable UTXOs with the highest locktime to lowest
1504
- * 2- Highest value UTXOs to lowest
1751
+ * 1- Highest value unlocked UTXO (for fees)
1752
+ * 2- LockedStakeable UTXOs with the highest locktime to lowest
1753
+ * 3- Rest of the unlocked UTXOs highest to lowest
1505
1754
  * @remark Does not check for locked UTXOs
1506
1755
  */
1507
1756
  declare function sortUTXOsStaking(utxos: Utxo[]): Utxo[];
1508
1757
  declare function sortUTXOsByAmount(utxos: Utxo[], isDescending: boolean): Utxo[];
1509
- declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo[];
1510
- declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo[];
1758
+ declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1759
+ declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1511
1760
 
1512
1761
  /**
1513
1762
  * The list of transaction types supported by `getMaximumUtxoSet`.
@@ -1533,9 +1782,16 @@ declare const P_CHAIN_TX_SIZE_LIMIT = 65536;
1533
1782
  * @param utxos - list of UTXOs to be consumed by the transaction.
1534
1783
  * @param sizeSupportedTx - one of the supported transaction types
1535
1784
  * @param limit - optional - byte size limit, defaults to 64kb.
1785
+ * @param feeState - current fee state on the chain
1536
1786
  * @returns the largest prefix of sorted `utxos` before hitting the size limit. If no such prefix exists, then an empty array.
1537
1787
  */
1538
- declare function getMaximumUtxoSet(wallet: WalletAbstract$1, utxos: Utxo[], sizeSupportedTx: SizeSupportedTx, limit?: number): Utxo[];
1788
+ declare function getMaximumUtxoSet({ wallet, utxos, sizeSupportedTx, limit, feeState, }: {
1789
+ wallet: WalletAbstract$1;
1790
+ utxos: Utxo[];
1791
+ sizeSupportedTx: SizeSupportedTx;
1792
+ limit?: number;
1793
+ feeState?: pvm.FeeState;
1794
+ }): Utxo[];
1539
1795
 
1540
1796
  /**
1541
1797
  * Verifies the given derivation path is valid, starts with `m`, and of the right length
@@ -1552,10 +1808,12 @@ type index_AddSubnetValidatorTx = AddSubnetValidatorTx;
1552
1808
  type index_AddValidatorTx = AddValidatorTx;
1553
1809
  type index_AddressWallet = AddressWallet;
1554
1810
  declare const index_AddressWallet: typeof AddressWallet;
1555
- type index_BaseTx = BaseTx;
1556
1811
  type index_ChainIDAlias = ChainIDAlias;
1812
+ type index_ConvertSubnetToL1Tx = ConvertSubnetToL1Tx;
1557
1813
  type index_CreateChainTx = CreateChainTx;
1558
1814
  type index_CreateSubnetTx = CreateSubnetTx;
1815
+ declare const index_DevnetContext: typeof DevnetContext;
1816
+ type index_DisableL1ValidatorTx = DisableL1ValidatorTx;
1559
1817
  type index_ExportTx = ExportTx;
1560
1818
  type index_FeeData = FeeData;
1561
1819
  declare const index_FujiContext: typeof FujiContext;
@@ -1563,6 +1821,7 @@ type index_GetAvaxBalanceDict = GetAvaxBalanceDict;
1563
1821
  type index_GetStakedAvaxBalanceDict = GetStakedAvaxBalanceDict;
1564
1822
  type index_GlacierOutput = GlacierOutput;
1565
1823
  type index_ImportTx = ImportTx;
1824
+ type index_IncreaseL1ValidatorBalanceTx = IncreaseL1ValidatorBalanceTx;
1566
1825
  type index_JsonRpcProvider = JsonRpcProvider;
1567
1826
  declare const index_JsonRpcProvider: typeof JsonRpcProvider;
1568
1827
  type index_LedgerGetXpubResponse = LedgerGetXpubResponse;
@@ -1576,7 +1835,9 @@ declare const index_MnemonicWallet: typeof MnemonicWallet;
1576
1835
  type index_MnemonicWalletVoid = MnemonicWalletVoid;
1577
1836
  declare const index_MnemonicWalletVoid: typeof MnemonicWalletVoid;
1578
1837
  declare const index_P_CHAIN_TX_SIZE_LIMIT: typeof P_CHAIN_TX_SIZE_LIMIT;
1838
+ type index_RegisterL1ValidatorTx = RegisterL1ValidatorTx;
1579
1839
  type index_RemoveSubnetValidatorTx = RemoveSubnetValidatorTx;
1840
+ type index_SetL1ValidatorWeightTx = SetL1ValidatorWeightTx;
1580
1841
  type index_SignMessageRequest = SignMessageRequest;
1581
1842
  type index_SignTxBufferRequest = SignTxBufferRequest;
1582
1843
  type index_SignTxRequest = SignTxRequest;
@@ -1589,14 +1850,12 @@ type index_SizeSupportedTx = SizeSupportedTx;
1589
1850
  declare const index_SizeSupportedTx: typeof SizeSupportedTx;
1590
1851
  type index_StaticSigner = StaticSigner;
1591
1852
  declare const index_StaticSigner: typeof StaticSigner;
1592
- type index_TransferSubnetOwnershipTx = TransferSubnetOwnershipTx;
1593
1853
  type index_TransformSubnetTx = TransformSubnetTx;
1594
1854
  type index_Tx = Tx;
1595
1855
  type index_TxBase = TxBase;
1596
1856
  type index_TxType = TxType;
1597
1857
  declare const index_TxType: typeof TxType;
1598
1858
  type index_UnknownTx = UnknownTx;
1599
- type index_UtxoInfo = UtxoInfo;
1600
1859
  type index_WalletAbstract = WalletAbstract;
1601
1860
  declare const index_WalletAbstract: typeof WalletAbstract;
1602
1861
  type index_WalletVoid = WalletVoid;
@@ -1618,7 +1877,6 @@ declare const index_getStakeForAddresses: typeof getStakeForAddresses;
1618
1877
  declare const index_getStakedAssetBalance: typeof getStakedAssetBalance;
1619
1878
  declare const index_getUTXOsForAddresses: typeof getUTXOsForAddresses;
1620
1879
  declare const index_getUnixNow: typeof getUnixNow;
1621
- declare const index_getUtxoInfo: typeof getUtxoInfo;
1622
1880
  declare const index_getUtxosByTxFromGlacier: typeof getUtxosByTxFromGlacier;
1623
1881
  declare const index_getVmByChainAlias: typeof getVmByChainAlias;
1624
1882
  declare const index_getXpubFromMnemonic: typeof getXpubFromMnemonic;
@@ -1629,12 +1887,17 @@ declare const index_isAddSubnetValidatorTx: typeof isAddSubnetValidatorTx;
1629
1887
  declare const index_isAddValidatorTx: typeof isAddValidatorTx;
1630
1888
  declare const index_isBaseTx: typeof isBaseTx;
1631
1889
  declare const index_isBech32Address: typeof isBech32Address;
1890
+ declare const index_isConvertSubnetToL1Tx: typeof isConvertSubnetToL1Tx;
1632
1891
  declare const index_isCreateChainTx: typeof isCreateChainTx;
1633
1892
  declare const index_isCreateSubnetTx: typeof isCreateSubnetTx;
1893
+ declare const index_isDisableL1ValidatorTx: typeof isDisableL1ValidatorTx;
1634
1894
  declare const index_isExportTx: typeof isExportTx;
1635
1895
  declare const index_isImportTx: typeof isImportTx;
1896
+ declare const index_isIncreaseL1ValidatorBalance: typeof isIncreaseL1ValidatorBalance;
1636
1897
  declare const index_isObsidianApp: typeof isObsidianApp;
1898
+ declare const index_isRegisterL1ValidatorTx: typeof isRegisterL1ValidatorTx;
1637
1899
  declare const index_isRemoveSubnetValidatorTx: typeof isRemoveSubnetValidatorTx;
1900
+ declare const index_isSetL1ValidatorWeightTx: typeof isSetL1ValidatorWeightTx;
1638
1901
  declare const index_isTransferSubnetOwnershipTx: typeof isTransferSubnetOwnershipTx;
1639
1902
  declare const index_isTransformSubnetTx: typeof isTransformSubnetTx;
1640
1903
  declare const index_parseAvalancheTx: typeof parseAvalancheTx;
@@ -1654,10 +1917,13 @@ declare namespace index {
1654
1917
  index_AddSubnetValidatorTx as AddSubnetValidatorTx,
1655
1918
  index_AddValidatorTx as AddValidatorTx,
1656
1919
  index_AddressWallet as AddressWallet,
1657
- index_BaseTx as BaseTx,
1920
+ BaseTx$1 as BaseTx,
1658
1921
  index_ChainIDAlias as ChainIDAlias,
1922
+ index_ConvertSubnetToL1Tx as ConvertSubnetToL1Tx,
1659
1923
  index_CreateChainTx as CreateChainTx,
1660
1924
  index_CreateSubnetTx as CreateSubnetTx,
1925
+ index_DevnetContext as DevnetContext,
1926
+ index_DisableL1ValidatorTx as DisableL1ValidatorTx,
1661
1927
  index_ExportTx as ExportTx,
1662
1928
  index_FeeData as FeeData,
1663
1929
  index_FujiContext as FujiContext,
@@ -1665,6 +1931,7 @@ declare namespace index {
1665
1931
  index_GetStakedAvaxBalanceDict as GetStakedAvaxBalanceDict,
1666
1932
  index_GlacierOutput as GlacierOutput,
1667
1933
  index_ImportTx as ImportTx,
1934
+ index_IncreaseL1ValidatorBalanceTx as IncreaseL1ValidatorBalanceTx,
1668
1935
  index_JsonRpcProvider as JsonRpcProvider,
1669
1936
  index_LedgerGetXpubResponse as LedgerGetXpubResponse,
1670
1937
  index_LedgerSigner as LedgerSigner,
@@ -1673,7 +1940,9 @@ declare namespace index {
1673
1940
  index_MnemonicWallet as MnemonicWallet,
1674
1941
  index_MnemonicWalletVoid as MnemonicWalletVoid,
1675
1942
  index_P_CHAIN_TX_SIZE_LIMIT as P_CHAIN_TX_SIZE_LIMIT,
1943
+ index_RegisterL1ValidatorTx as RegisterL1ValidatorTx,
1676
1944
  index_RemoveSubnetValidatorTx as RemoveSubnetValidatorTx,
1945
+ index_SetL1ValidatorWeightTx as SetL1ValidatorWeightTx,
1677
1946
  index_SignMessageRequest as SignMessageRequest,
1678
1947
  index_SignTxBufferRequest as SignTxBufferRequest,
1679
1948
  index_SignTxRequest as SignTxRequest,
@@ -1682,13 +1951,12 @@ declare namespace index {
1682
1951
  index_SimpleSigner as SimpleSigner,
1683
1952
  index_SizeSupportedTx as SizeSupportedTx,
1684
1953
  index_StaticSigner as StaticSigner,
1685
- index_TransferSubnetOwnershipTx as TransferSubnetOwnershipTx,
1954
+ TransferSubnetOwnershipTx$1 as TransferSubnetOwnershipTx,
1686
1955
  index_TransformSubnetTx as TransformSubnetTx,
1687
1956
  index_Tx as Tx,
1688
1957
  index_TxBase as TxBase,
1689
1958
  index_TxType as TxType,
1690
1959
  index_UnknownTx as UnknownTx,
1691
- index_UtxoInfo as UtxoInfo,
1692
1960
  index_WalletAbstract as WalletAbstract,
1693
1961
  index_WalletVoid as WalletVoid,
1694
1962
  index_addSignaturesToAvalancheTx as addSignaturesToAvalancheTx,
@@ -1708,7 +1976,6 @@ declare namespace index {
1708
1976
  index_getStakedAssetBalance as getStakedAssetBalance,
1709
1977
  index_getUTXOsForAddresses as getUTXOsForAddresses,
1710
1978
  index_getUnixNow as getUnixNow,
1711
- index_getUtxoInfo as getUtxoInfo,
1712
1979
  index_getUtxosByTxFromGlacier as getUtxosByTxFromGlacier,
1713
1980
  index_getVmByChainAlias as getVmByChainAlias,
1714
1981
  index_getXpubFromMnemonic as getXpubFromMnemonic,
@@ -1719,12 +1986,17 @@ declare namespace index {
1719
1986
  index_isAddValidatorTx as isAddValidatorTx,
1720
1987
  index_isBaseTx as isBaseTx,
1721
1988
  index_isBech32Address as isBech32Address,
1989
+ index_isConvertSubnetToL1Tx as isConvertSubnetToL1Tx,
1722
1990
  index_isCreateChainTx as isCreateChainTx,
1723
1991
  index_isCreateSubnetTx as isCreateSubnetTx,
1992
+ index_isDisableL1ValidatorTx as isDisableL1ValidatorTx,
1724
1993
  index_isExportTx as isExportTx,
1725
1994
  index_isImportTx as isImportTx,
1995
+ index_isIncreaseL1ValidatorBalance as isIncreaseL1ValidatorBalance,
1726
1996
  index_isObsidianApp as isObsidianApp,
1997
+ index_isRegisterL1ValidatorTx as isRegisterL1ValidatorTx,
1727
1998
  index_isRemoveSubnetValidatorTx as isRemoveSubnetValidatorTx,
1999
+ index_isSetL1ValidatorWeightTx as isSetL1ValidatorWeightTx,
1728
2000
  index_isTransferSubnetOwnershipTx as isTransferSubnetOwnershipTx,
1729
2001
  index_isTransformSubnetTx as isTransformSubnetTx,
1730
2002
  index_parseAvalancheTx as parseAvalancheTx,