@avalabs/core-wallets-sdk 3.1.0-alpha.4 → 3.1.0-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +302 -63
- package/dist/index.js +1 -1
- package/esm/Avalanche/index.d.ts +2 -3
- package/esm/Avalanche/index.js +1 -1
- package/esm/Avalanche/models.d.ts +44 -5
- package/esm/Avalanche/models.js +1 -1
- package/esm/Avalanche/providers/AbstractProvider.d.ts +2 -1
- package/esm/Avalanche/providers/AbstractProvider.js +1 -1
- package/esm/Avalanche/providers/JsonRpcProvider.d.ts +1 -0
- package/esm/Avalanche/providers/JsonRpcProvider.js +1 -1
- package/esm/Avalanche/providers/constants.d.ts +2 -1
- package/esm/Avalanche/providers/constants.js +1 -1
- package/esm/Avalanche/providers/platformFeeConfig.js +1 -0
- package/esm/Avalanche/utils/appendDisableAuthAddressMaps.js +1 -0
- package/esm/Avalanche/utils/convertGlacierUtxo.d.ts +3 -3
- package/esm/Avalanche/utils/createAvalancheUnsignedTx.js +1 -1
- package/esm/Avalanche/utils/getAssetBalance.js +1 -1
- package/esm/Avalanche/utils/getChainAliasByChainId.js +1 -1
- package/esm/Avalanche/utils/getPchainUnixNow.js +1 -1
- package/esm/Avalanche/utils/getUtxosByTxFromGlacier.d.ts +5 -2
- package/esm/Avalanche/utils/getUtxosByTxFromGlacier.js +1 -1
- package/esm/Avalanche/utils/handleSubnetAuth.js +1 -1
- package/esm/Avalanche/utils/orderBy.js +1 -0
- package/esm/Avalanche/utils/parseAvalancheTx.d.ts +7 -1
- package/esm/Avalanche/utils/parseAvalancheTx.js +1 -1
- package/esm/Avalanche/utils/parsers/index.js +1 -1
- package/esm/Avalanche/utils/parsers/parseAddPermissionlessDelegatorTx.js +1 -1
- package/esm/Avalanche/utils/parsers/parseAddPermissionlessValidatorTx.js +1 -1
- package/esm/Avalanche/utils/parsers/parseConvertSubnetToL1Tx.js +1 -0
- package/esm/Avalanche/utils/parsers/parseDisableL1ValidatorTx.js +1 -0
- package/esm/Avalanche/utils/parsers/parseIncreaseL1ValidatorBalanceTx.js +1 -0
- package/esm/Avalanche/utils/parsers/parseRegisterL1ValidatorTx.js +1 -0
- package/esm/Avalanche/utils/parsers/parseSetL1ValidatorWeightTx.js +1 -0
- package/esm/Avalanche/utils/parsers/utils/chainIdToVm.js +1 -1
- package/esm/Avalanche/utils/sortUTXOs.d.ts +6 -4
- package/esm/Avalanche/utils/sortUTXOs.js +1 -1
- package/esm/Avalanche/utils/txSizeLimits.d.ts +10 -3
- package/esm/Avalanche/utils/txSizeLimits.js +1 -1
- package/esm/Avalanche/wallets/AddressWallet.js +1 -1
- package/esm/Avalanche/wallets/SimpleSigner.js +1 -1
- package/esm/Avalanche/wallets/StaticSigner.js +1 -1
- package/esm/Avalanche/wallets/TxBuilderTypes.d.ts +179 -0
- package/esm/Avalanche/wallets/WalletAbstract.d.ts +21 -22
- package/esm/Avalanche/wallets/WalletAbstract.js +1 -1
- package/esm/Avalanche/wallets/WalletVoid.js +1 -1
- package/esm/Avalanche/wallets/ledger/LedgerSigner.js +1 -1
- package/esm/Avalanche/wallets/ledger/SimpleLedgerSigner.js +1 -1
- package/esm/BitcoinVM/providers/BitcoinProvider.d.ts +4 -3
- package/esm/BitcoinVM/providers/BitcoinProvider.js +1 -1
- package/esm/BitcoinVM/providers/BitcoinProviderAbstract.d.ts +1 -0
- package/esm/utils/assertFeeStateProvided.js +1 -0
- package/package.json +6 -6
- package/esm/Avalanche/utils/getUtxoInfo.d.ts +0 -13
- package/esm/Avalanche/utils/getUtxoInfo.js +0 -1
- package/esm/Avalanche/utils/parsers/parseAddDelegatorTx.js +0 -1
- package/esm/Avalanche/utils/parsers/parseAddValidatorTx.js +0 -1
- package/esm/Avalanche/utils/parsers/parseTransformSubnetTx.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ 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, avm, pvm, evm, info, 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';
|
|
17
|
-
import
|
|
16
|
+
import { Utxo as Utxo$1, PChainUtxo, Network as Network$2 } from '@avalabs/glacier-sdk';
|
|
17
|
+
import * as _avalabs_avalanchejs_dist_serializable_common_types from '@avalabs/avalanchejs/dist/serializable/common/types';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Custom Bitcoin UTXO interface.
|
|
@@ -147,6 +147,7 @@ declare abstract class BitcoinProviderAbstract {
|
|
|
147
147
|
medium: number;
|
|
148
148
|
low: number;
|
|
149
149
|
}>;
|
|
150
|
+
abstract getAddressFromScript(script: string): Promise<string>;
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
declare class BitcoinProvider extends BitcoinProviderAbstract {
|
|
@@ -155,11 +156,12 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
|
|
|
155
156
|
private readonly extraParams?;
|
|
156
157
|
constructor(isMainnet?: boolean, apiKey?: string, explorerUrl?: string, nodeUrl?: string, extraParams?: Record<string, string> | undefined);
|
|
157
158
|
getTxHex(txHash: string): Promise<string>;
|
|
158
|
-
getUTXOs(address: string, withScripts?: boolean): Promise<{
|
|
159
|
+
getUTXOs(address: string, withScripts?: boolean, skipBatch?: boolean): Promise<{
|
|
159
160
|
confirmed: BitcoinInputUTXOWithOptionalScript[];
|
|
160
161
|
unconfirmed: BitcoinInputUTXOWithOptionalScript[];
|
|
161
162
|
}>;
|
|
162
|
-
|
|
163
|
+
getAddressFromScript(script: string): Promise<string>;
|
|
164
|
+
getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[], skipBatch?: boolean): Promise<BitcoinInputUTXO[]>;
|
|
163
165
|
private _parseUtxo;
|
|
164
166
|
getBalances(address: string): Promise<{
|
|
165
167
|
available: bigint;
|
|
@@ -167,7 +169,7 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
|
|
|
167
169
|
final: bigint;
|
|
168
170
|
}>;
|
|
169
171
|
getChainHeight(): Promise<number>;
|
|
170
|
-
getFeeRates(): Promise<{
|
|
172
|
+
getFeeRates(skipBatch?: boolean): Promise<{
|
|
171
173
|
low: number;
|
|
172
174
|
medium: number;
|
|
173
175
|
high: number;
|
|
@@ -561,7 +563,7 @@ type ChainIDAlias = 'X' | 'P' | 'C';
|
|
|
561
563
|
/**
|
|
562
564
|
* Types for parsed transaction
|
|
563
565
|
*/
|
|
564
|
-
type Tx = AddValidatorTx | AddDelegatorTx | ExportTx | ImportTx | BaseTx | CreateSubnetTx | CreateChainTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddPermissionlessValidatorTx | AddPermissionlessDelegatorTx | TransformSubnetTx | TransferSubnetOwnershipTx | UnknownTx;
|
|
566
|
+
type Tx = AddValidatorTx | AddDelegatorTx | ExportTx | ImportTx | BaseTx$1 | CreateSubnetTx | CreateChainTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddPermissionlessValidatorTx | AddPermissionlessDelegatorTx | TransformSubnetTx | TransferSubnetOwnershipTx$1 | ConvertSubnetToL1Tx | RegisterL1ValidatorTx | SetL1ValidatorWeightTx | DisableL1ValidatorTx | IncreaseL1ValidatorBalanceTx | UnknownTx;
|
|
565
567
|
interface FeeData {
|
|
566
568
|
totalAvaxBurned: bigint;
|
|
567
569
|
totalAvaxOutput: bigint;
|
|
@@ -581,6 +583,11 @@ declare enum TxType {
|
|
|
581
583
|
Import = "import",
|
|
582
584
|
CreateSubnet = "create_subnet",
|
|
583
585
|
CreateChain = "create_chain",
|
|
586
|
+
ConvertSubnetToL1 = "convert_subnet_to_l1",
|
|
587
|
+
RegisterL1Validator = "register_l1_validator",
|
|
588
|
+
SetL1ValidatorWeight = "set_l1_validator_weight",
|
|
589
|
+
IncreaseL1ValidatorBalance = "increase_l1_validator_balance",
|
|
590
|
+
DisableL1Validator = "disable_l1_validator",
|
|
584
591
|
AddSubnetValidator = "add_subnet_validator",
|
|
585
592
|
RemoveSubnetValidator = "remove_subnet_validator",
|
|
586
593
|
AddPermissionlessValidator = "add_permissionless_validator",
|
|
@@ -589,7 +596,7 @@ declare enum TxType {
|
|
|
589
596
|
TransferSubnetOwnership = "transfer_subnet_ownership",
|
|
590
597
|
Unknown = "unknown"
|
|
591
598
|
}
|
|
592
|
-
interface BaseTx extends TxBase {
|
|
599
|
+
interface BaseTx$1 extends TxBase {
|
|
593
600
|
type: TxType.Base;
|
|
594
601
|
chain: VM;
|
|
595
602
|
outputs: {
|
|
@@ -659,6 +666,35 @@ interface RemoveSubnetValidatorTx extends TxBase {
|
|
|
659
666
|
nodeID: string;
|
|
660
667
|
subnetID: string;
|
|
661
668
|
}
|
|
669
|
+
interface ConvertSubnetToL1Tx extends TxBase {
|
|
670
|
+
type: TxType.ConvertSubnetToL1;
|
|
671
|
+
managerAddress: string;
|
|
672
|
+
validators: {
|
|
673
|
+
nodeId: string;
|
|
674
|
+
stake: bigint;
|
|
675
|
+
balance: bigint;
|
|
676
|
+
remainingBalanceOwners: string[];
|
|
677
|
+
deactivationOwners: string[];
|
|
678
|
+
}[];
|
|
679
|
+
subnetID: string;
|
|
680
|
+
chainID: string;
|
|
681
|
+
}
|
|
682
|
+
interface RegisterL1ValidatorTx extends TxBase {
|
|
683
|
+
type: TxType.RegisterL1Validator;
|
|
684
|
+
balance: bigint;
|
|
685
|
+
}
|
|
686
|
+
interface SetL1ValidatorWeightTx extends TxBase {
|
|
687
|
+
type: TxType.SetL1ValidatorWeight;
|
|
688
|
+
}
|
|
689
|
+
interface IncreaseL1ValidatorBalanceTx extends TxBase {
|
|
690
|
+
type: TxType.IncreaseL1ValidatorBalance;
|
|
691
|
+
balance: bigint;
|
|
692
|
+
validationId: string;
|
|
693
|
+
}
|
|
694
|
+
interface DisableL1ValidatorTx extends TxBase {
|
|
695
|
+
type: TxType.DisableL1Validator;
|
|
696
|
+
validationId: string;
|
|
697
|
+
}
|
|
662
698
|
interface AddPermissionlessValidatorTx extends TxBase {
|
|
663
699
|
type: TxType.AddPermissionlessValidator;
|
|
664
700
|
nodeID: string;
|
|
@@ -668,7 +704,7 @@ interface AddPermissionlessValidatorTx extends TxBase {
|
|
|
668
704
|
rewardOwner: OutputOwners;
|
|
669
705
|
delegationRewardOwner: OutputOwners;
|
|
670
706
|
stake: bigint;
|
|
671
|
-
stakeOuts: TransferableOutput[];
|
|
707
|
+
stakeOuts: readonly TransferableOutput[];
|
|
672
708
|
subnetID: string;
|
|
673
709
|
publicKey: undefined | string;
|
|
674
710
|
signature: undefined | string;
|
|
@@ -682,7 +718,7 @@ interface AddPermissionlessDelegatorTx extends TxBase {
|
|
|
682
718
|
stake: bigint;
|
|
683
719
|
subnetID: string;
|
|
684
720
|
delegatorRewardsOwner: OutputOwners;
|
|
685
|
-
stakeOuts: TransferableOutput[];
|
|
721
|
+
stakeOuts: readonly TransferableOutput[];
|
|
686
722
|
}
|
|
687
723
|
interface TransformSubnetTx extends TxBase {
|
|
688
724
|
type: TxType.TransformSubnet;
|
|
@@ -697,11 +733,11 @@ interface TransformSubnetTx extends TxBase {
|
|
|
697
733
|
minStakeDuration: number;
|
|
698
734
|
maxStakeDuration: number;
|
|
699
735
|
minDelegationFee: number;
|
|
700
|
-
minDelegatorStake:
|
|
736
|
+
minDelegatorStake: bigint;
|
|
701
737
|
maxValidatorWeightFactor: number;
|
|
702
738
|
uptimeRequirement: number;
|
|
703
739
|
}
|
|
704
|
-
interface TransferSubnetOwnershipTx extends TxBase {
|
|
740
|
+
interface TransferSubnetOwnershipTx$1 extends TxBase {
|
|
705
741
|
type: TxType.TransferSubnetOwnership;
|
|
706
742
|
subnetID: string;
|
|
707
743
|
threshold: number;
|
|
@@ -717,7 +753,12 @@ declare function isAddValidatorTx(tx: Tx): tx is AddValidatorTx;
|
|
|
717
753
|
declare function isAddDelegatorTx(tx: Tx): tx is AddDelegatorTx;
|
|
718
754
|
declare function isExportTx(tx: Tx): tx is ExportTx;
|
|
719
755
|
declare function isImportTx(tx: Tx): tx is ImportTx;
|
|
720
|
-
declare function isBaseTx(tx: Tx): tx is BaseTx;
|
|
756
|
+
declare function isBaseTx(tx: Tx): tx is BaseTx$1;
|
|
757
|
+
declare function isConvertSubnetToL1Tx(tx: Tx): tx is ConvertSubnetToL1Tx;
|
|
758
|
+
declare function isRegisterL1ValidatorTx(tx: Tx): tx is RegisterL1ValidatorTx;
|
|
759
|
+
declare function isSetL1ValidatorWeightTx(tx: Tx): tx is SetL1ValidatorWeightTx;
|
|
760
|
+
declare function isDisableL1ValidatorTx(tx: Tx): tx is DisableL1ValidatorTx;
|
|
761
|
+
declare function isIncreaseL1ValidatorBalance(tx: Tx): tx is IncreaseL1ValidatorBalanceTx;
|
|
721
762
|
declare function isCreateSubnetTx(tx: Tx): tx is CreateSubnetTx;
|
|
722
763
|
declare function isCreateChainTx(tx: Tx): tx is CreateChainTx;
|
|
723
764
|
declare function isAddSubnetValidatorTx(tx: Tx): tx is AddSubnetValidatorTx;
|
|
@@ -725,7 +766,7 @@ declare function isRemoveSubnetValidatorTx(tx: Tx): tx is RemoveSubnetValidatorT
|
|
|
725
766
|
declare function isAddPermissionlessValidatorTx(tx: Tx): tx is AddPermissionlessValidatorTx;
|
|
726
767
|
declare function isAddPermissionlessDelegatorTx(tx: Tx): tx is AddPermissionlessDelegatorTx;
|
|
727
768
|
declare function isTransformSubnetTx(tx: Tx): tx is TransformSubnetTx;
|
|
728
|
-
declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx;
|
|
769
|
+
declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx$1;
|
|
729
770
|
|
|
730
771
|
declare class AbstractProvider {
|
|
731
772
|
protected baseUrl: string;
|
|
@@ -743,6 +784,7 @@ declare class AbstractProvider {
|
|
|
743
784
|
getApiX(): avm.AVMApi;
|
|
744
785
|
getApiP(): pvm.PVMApi;
|
|
745
786
|
getApiC(): evm.EVMApi;
|
|
787
|
+
getInfo(): info.InfoApi;
|
|
746
788
|
getApi(chain: ChainIDAlias): avm.AVMApi | pvm.PVMApi | evm.EVMApi;
|
|
747
789
|
getAvaxID(): string;
|
|
748
790
|
getAddress(publicKey: Buffer, chain: ChainIDAlias): string;
|
|
@@ -767,6 +809,7 @@ declare class JsonRpcProvider extends AbstractProvider {
|
|
|
767
809
|
static fromBaseURL(url: string): Promise<JsonRpcProvider>;
|
|
768
810
|
static getDefaultMainnetProvider(): JsonRpcProvider;
|
|
769
811
|
static getDefaultFujiProvider(): JsonRpcProvider;
|
|
812
|
+
static getDefaultDevnetProvider(): JsonRpcProvider;
|
|
770
813
|
}
|
|
771
814
|
|
|
772
815
|
/**
|
|
@@ -777,6 +820,183 @@ declare const MainnetContext: Context.Context;
|
|
|
777
820
|
* Avalanche Fuji testnet context
|
|
778
821
|
*/
|
|
779
822
|
declare const FujiContext: Context.Context;
|
|
823
|
+
declare const DevnetContext: Context.Context;
|
|
824
|
+
|
|
825
|
+
type BaseTx = {
|
|
826
|
+
utxoSet: utils.UtxoSet;
|
|
827
|
+
chain: 'X' | 'P';
|
|
828
|
+
toAddress: string;
|
|
829
|
+
amountsPerAsset: Record<string, bigint>;
|
|
830
|
+
feeState?: pvm.FeeState;
|
|
831
|
+
options?: Common.SpendOptions;
|
|
832
|
+
fromAddresses?: string[];
|
|
833
|
+
};
|
|
834
|
+
type ImportP = {
|
|
835
|
+
utxoSet: utils.UtxoSet;
|
|
836
|
+
sourceChain: 'X' | 'C';
|
|
837
|
+
toAddress?: string;
|
|
838
|
+
threshold?: number;
|
|
839
|
+
feeState?: pvm.FeeState;
|
|
840
|
+
locktime?: bigint;
|
|
841
|
+
};
|
|
842
|
+
type ExportP = {
|
|
843
|
+
amount: bigint;
|
|
844
|
+
utxoSet: utils.UtxoSet;
|
|
845
|
+
destination: 'X' | 'C';
|
|
846
|
+
feeState?: pvm.FeeState;
|
|
847
|
+
toAddress?: string;
|
|
848
|
+
};
|
|
849
|
+
type ConsolidateP = {
|
|
850
|
+
utxoSet: utils.UtxoSet;
|
|
851
|
+
amount: bigint;
|
|
852
|
+
feeState?: pvm.FeeState;
|
|
853
|
+
toAddress?: string;
|
|
854
|
+
options?: Common.SpendOptions;
|
|
855
|
+
};
|
|
856
|
+
type CreateSubnet = {
|
|
857
|
+
utxoSet: utils.UtxoSet;
|
|
858
|
+
rewardAddresses: string[];
|
|
859
|
+
feeState?: pvm.FeeState;
|
|
860
|
+
fromAddresses?: string[];
|
|
861
|
+
options?: Common.SpendOptions;
|
|
862
|
+
threshold?: number;
|
|
863
|
+
locktime?: bigint;
|
|
864
|
+
};
|
|
865
|
+
type CreateChain = {
|
|
866
|
+
utxoSet: utils.UtxoSet;
|
|
867
|
+
subnetId: string;
|
|
868
|
+
chainName: string;
|
|
869
|
+
vmID: string;
|
|
870
|
+
fxIds: string[];
|
|
871
|
+
genesisData: Record<string, unknown>;
|
|
872
|
+
subnetAuth: number[];
|
|
873
|
+
feeState?: pvm.FeeState;
|
|
874
|
+
options?: Common.SpendOptions;
|
|
875
|
+
fromAddresses?: string[];
|
|
876
|
+
};
|
|
877
|
+
type ConvertSubnetToL1 = {
|
|
878
|
+
utxoSet: utils.UtxoSet;
|
|
879
|
+
address: string;
|
|
880
|
+
chainId: string;
|
|
881
|
+
subnetId: string;
|
|
882
|
+
subnetAuth: number[];
|
|
883
|
+
options?: Common.SpendOptions;
|
|
884
|
+
feeState: pvm.FeeState;
|
|
885
|
+
fromAddresses?: string[];
|
|
886
|
+
validators: {
|
|
887
|
+
nodeId: string;
|
|
888
|
+
weight: bigint;
|
|
889
|
+
balance: bigint;
|
|
890
|
+
pubKey: string;
|
|
891
|
+
signature: string;
|
|
892
|
+
remainingBalanceOwner: {
|
|
893
|
+
addresses: string[];
|
|
894
|
+
threshold?: number;
|
|
895
|
+
};
|
|
896
|
+
deactivationOwner: {
|
|
897
|
+
addresses: string[];
|
|
898
|
+
threshold?: number;
|
|
899
|
+
};
|
|
900
|
+
}[];
|
|
901
|
+
};
|
|
902
|
+
type RegisterL1Validator = {
|
|
903
|
+
utxoSet: utils.UtxoSet;
|
|
904
|
+
balance: bigint;
|
|
905
|
+
signature: string;
|
|
906
|
+
feeState: pvm.FeeState;
|
|
907
|
+
message: string;
|
|
908
|
+
options?: Common.SpendOptions;
|
|
909
|
+
fromAddresses?: string[];
|
|
910
|
+
};
|
|
911
|
+
type SetL1ValidatorWeight = {
|
|
912
|
+
utxoSet: utils.UtxoSet;
|
|
913
|
+
feeState: pvm.FeeState;
|
|
914
|
+
message: string;
|
|
915
|
+
options?: Common.SpendOptions;
|
|
916
|
+
fromAddresses?: string[];
|
|
917
|
+
};
|
|
918
|
+
type DisableL1Validator = {
|
|
919
|
+
utxoSet: utils.UtxoSet;
|
|
920
|
+
feeState: pvm.FeeState;
|
|
921
|
+
disableAuth: number[];
|
|
922
|
+
validationId: string;
|
|
923
|
+
options?: Common.SpendOptions;
|
|
924
|
+
fromAddresses?: string[];
|
|
925
|
+
};
|
|
926
|
+
type IncreaseL1ValidatorBalance = {
|
|
927
|
+
utxoSet: utils.UtxoSet;
|
|
928
|
+
feeState: pvm.FeeState;
|
|
929
|
+
balance: bigint;
|
|
930
|
+
validationId: string;
|
|
931
|
+
options?: Common.SpendOptions;
|
|
932
|
+
fromAddresses?: string[];
|
|
933
|
+
};
|
|
934
|
+
type AddSubnetValidator = {
|
|
935
|
+
utxoSet: utils.UtxoSet;
|
|
936
|
+
nodeId: string;
|
|
937
|
+
start: bigint;
|
|
938
|
+
end: bigint;
|
|
939
|
+
weight: bigint;
|
|
940
|
+
subnetId: string;
|
|
941
|
+
subnetAuth: number[];
|
|
942
|
+
feeState?: pvm.FeeState;
|
|
943
|
+
fromAddresses?: string[];
|
|
944
|
+
options?: Common.SpendOptions;
|
|
945
|
+
};
|
|
946
|
+
type AddPermissionlessValidator = {
|
|
947
|
+
utxoSet: utils.UtxoSet;
|
|
948
|
+
nodeId: string;
|
|
949
|
+
start: bigint;
|
|
950
|
+
end: bigint;
|
|
951
|
+
weight: bigint;
|
|
952
|
+
subnetId: string;
|
|
953
|
+
shares: number;
|
|
954
|
+
fromAddresses?: string[];
|
|
955
|
+
rewardAddresses?: string[];
|
|
956
|
+
delegatorRewardAddresses?: string[];
|
|
957
|
+
publicKey?: Buffer;
|
|
958
|
+
signature?: Buffer;
|
|
959
|
+
options?: Common.SpendOptions;
|
|
960
|
+
stakingAssetId?: string;
|
|
961
|
+
locktime?: bigint;
|
|
962
|
+
threshold?: number;
|
|
963
|
+
feeState?: pvm.FeeState;
|
|
964
|
+
};
|
|
965
|
+
type AddPermissionlessDelegator = {
|
|
966
|
+
utxoSet: utils.UtxoSet;
|
|
967
|
+
nodeId: string;
|
|
968
|
+
start: bigint;
|
|
969
|
+
end: bigint;
|
|
970
|
+
weight: bigint;
|
|
971
|
+
subnetId: string;
|
|
972
|
+
fromAddresses?: string[];
|
|
973
|
+
rewardAddresses?: string[];
|
|
974
|
+
options?: Common.SpendOptions;
|
|
975
|
+
locktime?: bigint;
|
|
976
|
+
feeState?: pvm.FeeState;
|
|
977
|
+
stakingAssetId?: string;
|
|
978
|
+
threshold?: number;
|
|
979
|
+
};
|
|
980
|
+
type RemoveSubnetValidator = {
|
|
981
|
+
utxoSet: utils.UtxoSet;
|
|
982
|
+
nodeId: string;
|
|
983
|
+
subnetId: string;
|
|
984
|
+
subnetAuth: number[];
|
|
985
|
+
feeState?: pvm.FeeState;
|
|
986
|
+
fromAddresses?: string[];
|
|
987
|
+
options?: Common.SpendOptions;
|
|
988
|
+
};
|
|
989
|
+
type TransferSubnetOwnershipTx = {
|
|
990
|
+
utxoSet: utils.UtxoSet;
|
|
991
|
+
subnetId: string;
|
|
992
|
+
subnetAuth: number[];
|
|
993
|
+
subnetOwners: string[];
|
|
994
|
+
feeState?: pvm.FeeState;
|
|
995
|
+
fromAddresses?: string[];
|
|
996
|
+
options?: Common.SpendOptions;
|
|
997
|
+
threshold?: number;
|
|
998
|
+
locktime?: bigint;
|
|
999
|
+
};
|
|
780
1000
|
|
|
781
1001
|
/**
|
|
782
1002
|
* An abstract class that that is shared by all wallet classes.
|
|
@@ -823,8 +1043,12 @@ declare abstract class WalletAbstract {
|
|
|
823
1043
|
* @param source What is the source chain of the atomic UTXOs
|
|
824
1044
|
*/
|
|
825
1045
|
getAtomicUTXOs(chain: ChainIDAlias, source: ChainIDAlias): Promise<utils.UtxoSet>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Get the nonce of this wallet's C chain address
|
|
1048
|
+
*/
|
|
1049
|
+
getNonce(): Promise<number>;
|
|
826
1050
|
exportX(amount: bigint, utxoSet: utils.UtxoSet, destination: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
|
|
827
|
-
importP(
|
|
1051
|
+
importP({ utxoSet, sourceChain, toAddress, threshold, feeState, locktime, }: ImportP): Common.UnsignedTx;
|
|
828
1052
|
importX(utxos: utils.UtxoSet, sourceChain: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
|
|
829
1053
|
/**
|
|
830
1054
|
*
|
|
@@ -844,10 +1068,6 @@ declare abstract class WalletAbstract {
|
|
|
844
1068
|
* @param toAddress
|
|
845
1069
|
*/
|
|
846
1070
|
exportC(amount: bigint, destination: 'X' | 'P', nonce: bigint, baseFee: bigint, toAddress?: string): _avalabs_avalanchejs.EVMUnsignedTx;
|
|
847
|
-
/**
|
|
848
|
-
* Get the nonce of this wallet's C chain address
|
|
849
|
-
*/
|
|
850
|
-
getNonce(): Promise<number>;
|
|
851
1071
|
/**
|
|
852
1072
|
* Export the given amount of AVAX from the P chain. Export fee is automatically added.
|
|
853
1073
|
* @param amount
|
|
@@ -855,18 +1075,17 @@ declare abstract class WalletAbstract {
|
|
|
855
1075
|
* @param destination
|
|
856
1076
|
* @param toAddress
|
|
857
1077
|
*/
|
|
858
|
-
exportP(amount
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
}): Common.UnsignedTx;
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
}): Common.UnsignedTx;
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
addSubnetValidator(utxoSet: utils.UtxoSet, nodeId: string, start: bigint, end: bigint, weight: bigint, subnetId: string, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
|
|
1078
|
+
exportP({ amount, utxoSet, destination, feeState, toAddress }: ExportP): Common.UnsignedTx;
|
|
1079
|
+
consolidateP({ utxoSet, amount, feeState, toAddress, options, }: ConsolidateP): Common.UnsignedTx;
|
|
1080
|
+
baseTX({ utxoSet, chain, toAddress, amountsPerAsset, feeState, options, fromAddresses, }: BaseTx): Common.UnsignedTx;
|
|
1081
|
+
convertSubnetToL1({ utxoSet, chainId, subnetId, subnetAuth, feeState, address, validators, options, fromAddresses, }: ConvertSubnetToL1): Common.UnsignedTx;
|
|
1082
|
+
registerL1Validator({ utxoSet, balance, signature, message, feeState, fromAddresses, options, }: RegisterL1Validator): Common.UnsignedTx;
|
|
1083
|
+
setL1ValidatorWeight({ utxoSet, feeState, message, options, fromAddresses, }: SetL1ValidatorWeight): Common.UnsignedTx;
|
|
1084
|
+
disableL1Validator({ utxoSet, feeState, options, fromAddresses, disableAuth, validationId, }: DisableL1Validator): Common.UnsignedTx;
|
|
1085
|
+
increaseL1ValidatorBalance({ utxoSet, feeState, options, fromAddresses, balance, validationId, }: IncreaseL1ValidatorBalance): Common.UnsignedTx;
|
|
1086
|
+
createBlockchain({ utxoSet, subnetId, chainName, vmID, fxIds, genesisData, subnetAuth, feeState, options, fromAddresses, }: CreateChain): Common.UnsignedTx;
|
|
1087
|
+
createSubnet({ utxoSet, rewardAddresses, feeState, fromAddresses, options, threshold, locktime, }: CreateSubnet): Common.UnsignedTx;
|
|
1088
|
+
addSubnetValidator({ utxoSet, nodeId, start, end, weight, subnetId, subnetAuth, feeState, fromAddresses, options, }: AddSubnetValidator): Common.UnsignedTx;
|
|
870
1089
|
/**
|
|
871
1090
|
*
|
|
872
1091
|
* @param utxoSet The transaction will be constructed from these UTXOs.
|
|
@@ -883,7 +1102,7 @@ declare abstract class WalletAbstract {
|
|
|
883
1102
|
* @param signature the BLS signature, If the subnet is the primary network. Can be found in the Node on startup.
|
|
884
1103
|
* @param options
|
|
885
1104
|
*/
|
|
886
|
-
addPermissionlessValidator(utxoSet
|
|
1105
|
+
addPermissionlessValidator({ utxoSet, nodeId, start, end, weight, subnetId, shares, feeState, fromAddresses, rewardAddresses, delegatorRewardAddresses, publicKey, signature, options, threshold, locktime, stakingAssetId, }: AddPermissionlessValidator): Common.UnsignedTx;
|
|
887
1106
|
/**
|
|
888
1107
|
*
|
|
889
1108
|
* @param utxoSet The transaction will be constructed from these UTXOs.
|
|
@@ -896,10 +1115,9 @@ declare abstract class WalletAbstract {
|
|
|
896
1115
|
* @param rewardAddresses Will use active address if not provided. Given addresses will share the reward UTXO.
|
|
897
1116
|
* @param options
|
|
898
1117
|
*/
|
|
899
|
-
addPermissionlessDelegator(utxoSet
|
|
900
|
-
removeSubnetValidator(utxoSet
|
|
901
|
-
transferSubnetOwnershipTx(utxoSet
|
|
902
|
-
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;
|
|
1118
|
+
addPermissionlessDelegator({ utxoSet, nodeId, start, end, weight, subnetId, fromAddresses, rewardAddresses, options, locktime, feeState, threshold, stakingAssetId, }: AddPermissionlessDelegator): Common.UnsignedTx;
|
|
1119
|
+
removeSubnetValidator({ utxoSet, nodeId, subnetId, subnetAuth, fromAddresses, feeState, options, }: RemoveSubnetValidator): Common.UnsignedTx;
|
|
1120
|
+
transferSubnetOwnershipTx({ utxoSet, subnetId, subnetAuth, subnetOwners, feeState, fromAddresses, options, threshold, locktime, }: TransferSubnetOwnershipTx): Common.UnsignedTx;
|
|
903
1121
|
protected constructor(provider: AbstractProvider);
|
|
904
1122
|
}
|
|
905
1123
|
|
|
@@ -1350,7 +1568,7 @@ declare const addSignaturesToAvalancheTx: ({ transactionHex, signatures, chainAl
|
|
|
1350
1568
|
}>;
|
|
1351
1569
|
|
|
1352
1570
|
type GlacierOutput = Utxo$1 | PChainUtxo;
|
|
1353
|
-
declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput,
|
|
1571
|
+
declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, network: Network$2) => Utxo<TransferOutput | pvmSerial.StakeableLockOut<TransferOutput>>;
|
|
1354
1572
|
|
|
1355
1573
|
type Params$2 = {
|
|
1356
1574
|
txBytes: Uint8Array;
|
|
@@ -1454,24 +1672,15 @@ declare function getStakeForAddresses(addresses: string[], api: pvm.PVMApi): Pro
|
|
|
1454
1672
|
*/
|
|
1455
1673
|
declare function getUnixNow(): bigint;
|
|
1456
1674
|
|
|
1457
|
-
type UtxoInfo = {
|
|
1458
|
-
utxoId: string;
|
|
1459
|
-
assetId: string;
|
|
1460
|
-
locktime: bigint;
|
|
1461
|
-
stakeableLocktime: bigint;
|
|
1462
|
-
threshold: number;
|
|
1463
|
-
amount: bigint;
|
|
1464
|
-
};
|
|
1465
|
-
declare const getUtxoInfo: (utxo: Utxo) => UtxoInfo;
|
|
1466
|
-
|
|
1467
1675
|
type Params = {
|
|
1468
1676
|
transactionHex: string;
|
|
1469
1677
|
chainAlias: ChainIDAlias;
|
|
1470
|
-
|
|
1678
|
+
network: Network$2;
|
|
1471
1679
|
url: string;
|
|
1472
1680
|
token?: string;
|
|
1681
|
+
headers?: Record<string, string>;
|
|
1473
1682
|
};
|
|
1474
|
-
declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias,
|
|
1683
|
+
declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, network, url, token, headers, }: Params) => Promise<Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[]>;
|
|
1475
1684
|
|
|
1476
1685
|
declare const getVmByChainAlias: (chainAlias: string) => "EVM" | "AVM" | "PVM";
|
|
1477
1686
|
|
|
@@ -1488,10 +1697,16 @@ declare function getXpubFromMnemonic(mnemonic: string): string;
|
|
|
1488
1697
|
*/
|
|
1489
1698
|
declare function isBech32Address(address: string, hasChainId?: boolean): boolean;
|
|
1490
1699
|
|
|
1700
|
+
type ParseOptions = {
|
|
1701
|
+
/**
|
|
1702
|
+
* Tolerance percentage range where the burned amount is considered valid.
|
|
1703
|
+
*/
|
|
1704
|
+
feeTolerance?: number;
|
|
1705
|
+
};
|
|
1491
1706
|
/**
|
|
1492
1707
|
* Returns human readable data from a given a transaction buffer,
|
|
1493
1708
|
*/
|
|
1494
|
-
declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string): Promise<Tx>;
|
|
1709
|
+
declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string, { feeTolerance }?: ParseOptions): Promise<Tx>;
|
|
1495
1710
|
|
|
1496
1711
|
declare const emptySignature: Signature;
|
|
1497
1712
|
declare const populateCredential: (indices: number[], existingCredentialData?: {
|
|
@@ -1503,14 +1718,15 @@ declare function signedTxToHex(signedTx: avaxSerial.SignedTx): string;
|
|
|
1503
1718
|
|
|
1504
1719
|
/**
|
|
1505
1720
|
* The UTXOs will be sorted in the following order.
|
|
1506
|
-
* 1-
|
|
1507
|
-
* 2-
|
|
1721
|
+
* 1- Highest value unlocked UTXO (for fees)
|
|
1722
|
+
* 2- LockedStakeable UTXOs with the highest locktime to lowest
|
|
1723
|
+
* 3- Rest of the unlocked UTXOs highest to lowest
|
|
1508
1724
|
* @remark Does not check for locked UTXOs
|
|
1509
1725
|
*/
|
|
1510
1726
|
declare function sortUTXOsStaking(utxos: Utxo[]): Utxo[];
|
|
1511
1727
|
declare function sortUTXOsByAmount(utxos: Utxo[], isDescending: boolean): Utxo[];
|
|
1512
|
-
declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo[];
|
|
1513
|
-
declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo[];
|
|
1728
|
+
declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
|
|
1729
|
+
declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
|
|
1514
1730
|
|
|
1515
1731
|
/**
|
|
1516
1732
|
* The list of transaction types supported by `getMaximumUtxoSet`.
|
|
@@ -1536,9 +1752,16 @@ declare const P_CHAIN_TX_SIZE_LIMIT = 65536;
|
|
|
1536
1752
|
* @param utxos - list of UTXOs to be consumed by the transaction.
|
|
1537
1753
|
* @param sizeSupportedTx - one of the supported transaction types
|
|
1538
1754
|
* @param limit - optional - byte size limit, defaults to 64kb.
|
|
1755
|
+
* @param feeState - current fee state on the chain
|
|
1539
1756
|
* @returns the largest prefix of sorted `utxos` before hitting the size limit. If no such prefix exists, then an empty array.
|
|
1540
1757
|
*/
|
|
1541
|
-
declare function getMaximumUtxoSet(wallet
|
|
1758
|
+
declare function getMaximumUtxoSet({ wallet, utxos, sizeSupportedTx, limit, feeState, }: {
|
|
1759
|
+
wallet: WalletAbstract;
|
|
1760
|
+
utxos: Utxo[];
|
|
1761
|
+
sizeSupportedTx: SizeSupportedTx;
|
|
1762
|
+
limit?: number;
|
|
1763
|
+
feeState?: pvm.FeeState;
|
|
1764
|
+
}): Utxo[];
|
|
1542
1765
|
|
|
1543
1766
|
/**
|
|
1544
1767
|
* Verifies the given derivation path is valid, starts with `m`, and of the right length
|
|
@@ -1555,10 +1778,12 @@ type index_AddSubnetValidatorTx = AddSubnetValidatorTx;
|
|
|
1555
1778
|
type index_AddValidatorTx = AddValidatorTx;
|
|
1556
1779
|
type index_AddressWallet = AddressWallet;
|
|
1557
1780
|
declare const index_AddressWallet: typeof AddressWallet;
|
|
1558
|
-
type index_BaseTx = BaseTx;
|
|
1559
1781
|
type index_ChainIDAlias = ChainIDAlias;
|
|
1782
|
+
type index_ConvertSubnetToL1Tx = ConvertSubnetToL1Tx;
|
|
1560
1783
|
type index_CreateChainTx = CreateChainTx;
|
|
1561
1784
|
type index_CreateSubnetTx = CreateSubnetTx;
|
|
1785
|
+
declare const index_DevnetContext: typeof DevnetContext;
|
|
1786
|
+
type index_DisableL1ValidatorTx = DisableL1ValidatorTx;
|
|
1562
1787
|
type index_ExportTx = ExportTx;
|
|
1563
1788
|
type index_FeeData = FeeData;
|
|
1564
1789
|
declare const index_FujiContext: typeof FujiContext;
|
|
@@ -1566,6 +1791,7 @@ type index_GetAvaxBalanceDict = GetAvaxBalanceDict;
|
|
|
1566
1791
|
type index_GetStakedAvaxBalanceDict = GetStakedAvaxBalanceDict;
|
|
1567
1792
|
type index_GlacierOutput = GlacierOutput;
|
|
1568
1793
|
type index_ImportTx = ImportTx;
|
|
1794
|
+
type index_IncreaseL1ValidatorBalanceTx = IncreaseL1ValidatorBalanceTx;
|
|
1569
1795
|
type index_JsonRpcProvider = JsonRpcProvider;
|
|
1570
1796
|
declare const index_JsonRpcProvider: typeof JsonRpcProvider;
|
|
1571
1797
|
type index_LedgerGetXpubResponse = LedgerGetXpubResponse;
|
|
@@ -1579,7 +1805,9 @@ declare const index_MnemonicWallet: typeof MnemonicWallet;
|
|
|
1579
1805
|
type index_MnemonicWalletVoid = MnemonicWalletVoid;
|
|
1580
1806
|
declare const index_MnemonicWalletVoid: typeof MnemonicWalletVoid;
|
|
1581
1807
|
declare const index_P_CHAIN_TX_SIZE_LIMIT: typeof P_CHAIN_TX_SIZE_LIMIT;
|
|
1808
|
+
type index_RegisterL1ValidatorTx = RegisterL1ValidatorTx;
|
|
1582
1809
|
type index_RemoveSubnetValidatorTx = RemoveSubnetValidatorTx;
|
|
1810
|
+
type index_SetL1ValidatorWeightTx = SetL1ValidatorWeightTx;
|
|
1583
1811
|
type index_SignMessageRequest = SignMessageRequest;
|
|
1584
1812
|
type index_SignTxBufferRequest = SignTxBufferRequest;
|
|
1585
1813
|
type index_SignTxRequest = SignTxRequest;
|
|
@@ -1592,14 +1820,12 @@ type index_SizeSupportedTx = SizeSupportedTx;
|
|
|
1592
1820
|
declare const index_SizeSupportedTx: typeof SizeSupportedTx;
|
|
1593
1821
|
type index_StaticSigner = StaticSigner;
|
|
1594
1822
|
declare const index_StaticSigner: typeof StaticSigner;
|
|
1595
|
-
type index_TransferSubnetOwnershipTx = TransferSubnetOwnershipTx;
|
|
1596
1823
|
type index_TransformSubnetTx = TransformSubnetTx;
|
|
1597
1824
|
type index_Tx = Tx;
|
|
1598
1825
|
type index_TxBase = TxBase;
|
|
1599
1826
|
type index_TxType = TxType;
|
|
1600
1827
|
declare const index_TxType: typeof TxType;
|
|
1601
1828
|
type index_UnknownTx = UnknownTx;
|
|
1602
|
-
type index_UtxoInfo = UtxoInfo;
|
|
1603
1829
|
type index_WalletAbstract = WalletAbstract;
|
|
1604
1830
|
declare const index_WalletAbstract: typeof WalletAbstract;
|
|
1605
1831
|
type index_WalletVoid = WalletVoid;
|
|
@@ -1621,7 +1847,6 @@ declare const index_getStakeForAddresses: typeof getStakeForAddresses;
|
|
|
1621
1847
|
declare const index_getStakedAssetBalance: typeof getStakedAssetBalance;
|
|
1622
1848
|
declare const index_getUTXOsForAddresses: typeof getUTXOsForAddresses;
|
|
1623
1849
|
declare const index_getUnixNow: typeof getUnixNow;
|
|
1624
|
-
declare const index_getUtxoInfo: typeof getUtxoInfo;
|
|
1625
1850
|
declare const index_getUtxosByTxFromGlacier: typeof getUtxosByTxFromGlacier;
|
|
1626
1851
|
declare const index_getVmByChainAlias: typeof getVmByChainAlias;
|
|
1627
1852
|
declare const index_getXpubFromMnemonic: typeof getXpubFromMnemonic;
|
|
@@ -1632,12 +1857,17 @@ declare const index_isAddSubnetValidatorTx: typeof isAddSubnetValidatorTx;
|
|
|
1632
1857
|
declare const index_isAddValidatorTx: typeof isAddValidatorTx;
|
|
1633
1858
|
declare const index_isBaseTx: typeof isBaseTx;
|
|
1634
1859
|
declare const index_isBech32Address: typeof isBech32Address;
|
|
1860
|
+
declare const index_isConvertSubnetToL1Tx: typeof isConvertSubnetToL1Tx;
|
|
1635
1861
|
declare const index_isCreateChainTx: typeof isCreateChainTx;
|
|
1636
1862
|
declare const index_isCreateSubnetTx: typeof isCreateSubnetTx;
|
|
1863
|
+
declare const index_isDisableL1ValidatorTx: typeof isDisableL1ValidatorTx;
|
|
1637
1864
|
declare const index_isExportTx: typeof isExportTx;
|
|
1638
1865
|
declare const index_isImportTx: typeof isImportTx;
|
|
1866
|
+
declare const index_isIncreaseL1ValidatorBalance: typeof isIncreaseL1ValidatorBalance;
|
|
1639
1867
|
declare const index_isObsidianApp: typeof isObsidianApp;
|
|
1868
|
+
declare const index_isRegisterL1ValidatorTx: typeof isRegisterL1ValidatorTx;
|
|
1640
1869
|
declare const index_isRemoveSubnetValidatorTx: typeof isRemoveSubnetValidatorTx;
|
|
1870
|
+
declare const index_isSetL1ValidatorWeightTx: typeof isSetL1ValidatorWeightTx;
|
|
1641
1871
|
declare const index_isTransferSubnetOwnershipTx: typeof isTransferSubnetOwnershipTx;
|
|
1642
1872
|
declare const index_isTransformSubnetTx: typeof isTransformSubnetTx;
|
|
1643
1873
|
declare const index_parseAvalancheTx: typeof parseAvalancheTx;
|
|
@@ -1657,10 +1887,13 @@ declare namespace index {
|
|
|
1657
1887
|
index_AddSubnetValidatorTx as AddSubnetValidatorTx,
|
|
1658
1888
|
index_AddValidatorTx as AddValidatorTx,
|
|
1659
1889
|
index_AddressWallet as AddressWallet,
|
|
1660
|
-
|
|
1890
|
+
BaseTx$1 as BaseTx,
|
|
1661
1891
|
index_ChainIDAlias as ChainIDAlias,
|
|
1892
|
+
index_ConvertSubnetToL1Tx as ConvertSubnetToL1Tx,
|
|
1662
1893
|
index_CreateChainTx as CreateChainTx,
|
|
1663
1894
|
index_CreateSubnetTx as CreateSubnetTx,
|
|
1895
|
+
index_DevnetContext as DevnetContext,
|
|
1896
|
+
index_DisableL1ValidatorTx as DisableL1ValidatorTx,
|
|
1664
1897
|
index_ExportTx as ExportTx,
|
|
1665
1898
|
index_FeeData as FeeData,
|
|
1666
1899
|
index_FujiContext as FujiContext,
|
|
@@ -1668,6 +1901,7 @@ declare namespace index {
|
|
|
1668
1901
|
index_GetStakedAvaxBalanceDict as GetStakedAvaxBalanceDict,
|
|
1669
1902
|
index_GlacierOutput as GlacierOutput,
|
|
1670
1903
|
index_ImportTx as ImportTx,
|
|
1904
|
+
index_IncreaseL1ValidatorBalanceTx as IncreaseL1ValidatorBalanceTx,
|
|
1671
1905
|
index_JsonRpcProvider as JsonRpcProvider,
|
|
1672
1906
|
index_LedgerGetXpubResponse as LedgerGetXpubResponse,
|
|
1673
1907
|
index_LedgerSigner as LedgerSigner,
|
|
@@ -1676,7 +1910,9 @@ declare namespace index {
|
|
|
1676
1910
|
index_MnemonicWallet as MnemonicWallet,
|
|
1677
1911
|
index_MnemonicWalletVoid as MnemonicWalletVoid,
|
|
1678
1912
|
index_P_CHAIN_TX_SIZE_LIMIT as P_CHAIN_TX_SIZE_LIMIT,
|
|
1913
|
+
index_RegisterL1ValidatorTx as RegisterL1ValidatorTx,
|
|
1679
1914
|
index_RemoveSubnetValidatorTx as RemoveSubnetValidatorTx,
|
|
1915
|
+
index_SetL1ValidatorWeightTx as SetL1ValidatorWeightTx,
|
|
1680
1916
|
index_SignMessageRequest as SignMessageRequest,
|
|
1681
1917
|
index_SignTxBufferRequest as SignTxBufferRequest,
|
|
1682
1918
|
index_SignTxRequest as SignTxRequest,
|
|
@@ -1685,13 +1921,12 @@ declare namespace index {
|
|
|
1685
1921
|
index_SimpleSigner as SimpleSigner,
|
|
1686
1922
|
index_SizeSupportedTx as SizeSupportedTx,
|
|
1687
1923
|
index_StaticSigner as StaticSigner,
|
|
1688
|
-
|
|
1924
|
+
TransferSubnetOwnershipTx$1 as TransferSubnetOwnershipTx,
|
|
1689
1925
|
index_TransformSubnetTx as TransformSubnetTx,
|
|
1690
1926
|
index_Tx as Tx,
|
|
1691
1927
|
index_TxBase as TxBase,
|
|
1692
1928
|
index_TxType as TxType,
|
|
1693
1929
|
index_UnknownTx as UnknownTx,
|
|
1694
|
-
index_UtxoInfo as UtxoInfo,
|
|
1695
1930
|
index_WalletAbstract as WalletAbstract,
|
|
1696
1931
|
index_WalletVoid as WalletVoid,
|
|
1697
1932
|
index_addSignaturesToAvalancheTx as addSignaturesToAvalancheTx,
|
|
@@ -1711,7 +1946,6 @@ declare namespace index {
|
|
|
1711
1946
|
index_getStakedAssetBalance as getStakedAssetBalance,
|
|
1712
1947
|
index_getUTXOsForAddresses as getUTXOsForAddresses,
|
|
1713
1948
|
index_getUnixNow as getUnixNow,
|
|
1714
|
-
index_getUtxoInfo as getUtxoInfo,
|
|
1715
1949
|
index_getUtxosByTxFromGlacier as getUtxosByTxFromGlacier,
|
|
1716
1950
|
index_getVmByChainAlias as getVmByChainAlias,
|
|
1717
1951
|
index_getXpubFromMnemonic as getXpubFromMnemonic,
|
|
@@ -1722,12 +1956,17 @@ declare namespace index {
|
|
|
1722
1956
|
index_isAddValidatorTx as isAddValidatorTx,
|
|
1723
1957
|
index_isBaseTx as isBaseTx,
|
|
1724
1958
|
index_isBech32Address as isBech32Address,
|
|
1959
|
+
index_isConvertSubnetToL1Tx as isConvertSubnetToL1Tx,
|
|
1725
1960
|
index_isCreateChainTx as isCreateChainTx,
|
|
1726
1961
|
index_isCreateSubnetTx as isCreateSubnetTx,
|
|
1962
|
+
index_isDisableL1ValidatorTx as isDisableL1ValidatorTx,
|
|
1727
1963
|
index_isExportTx as isExportTx,
|
|
1728
1964
|
index_isImportTx as isImportTx,
|
|
1965
|
+
index_isIncreaseL1ValidatorBalance as isIncreaseL1ValidatorBalance,
|
|
1729
1966
|
index_isObsidianApp as isObsidianApp,
|
|
1967
|
+
index_isRegisterL1ValidatorTx as isRegisterL1ValidatorTx,
|
|
1730
1968
|
index_isRemoveSubnetValidatorTx as isRemoveSubnetValidatorTx,
|
|
1969
|
+
index_isSetL1ValidatorWeightTx as isSetL1ValidatorWeightTx,
|
|
1731
1970
|
index_isTransferSubnetOwnershipTx as isTransferSubnetOwnershipTx,
|
|
1732
1971
|
index_isTransformSubnetTx as isTransformSubnetTx,
|
|
1733
1972
|
index_parseAvalancheTx as parseAvalancheTx,
|