@avalabs/core-wallets-sdk 3.1.0-alpha.2 → 3.1.0-alpha.21
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 +333 -48
- package/dist/index.js +1 -1
- package/esm/Avalanche/index.d.ts +2 -2
- 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 +9 -2
- package/esm/Avalanche/providers/AbstractProvider.js +1 -1
- package/esm/Avalanche/providers/JsonRpcProvider.d.ts +5 -3
- package/esm/Avalanche/providers/JsonRpcProvider.js +1 -1
- package/esm/Avalanche/providers/constants.d.ts +20 -1
- package/esm/Avalanche/providers/constants.js +1 -1
- package/esm/Avalanche/providers/platformFeeConfig.js +1 -0
- package/esm/Avalanche/utils/convertGlacierUtxo.d.ts +3 -3
- package/esm/Avalanche/utils/createAvalancheUnsignedTx.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/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 +5 -4
- package/esm/Avalanche/utils/txSizeLimits.d.ts +9 -2
- 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 +24 -18
- 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 +5 -5
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 {
|
|
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
|
-
|
|
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:
|
|
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(
|
|
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
|
|
856
|
-
addValidator(utxos: utils.UtxoSet,
|
|
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,
|
|
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
|
|
863
|
-
baseTX(utxoSet
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
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
|
|
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
|
|
897
|
-
removeSubnetValidator(utxoSet
|
|
898
|
-
transferSubnetOwnershipTx(utxoSet
|
|
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:
|
|
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,
|
|
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;
|
|
@@ -1464,11 +1715,12 @@ declare const getUtxoInfo: (utxo: Utxo) => UtxoInfo;
|
|
|
1464
1715
|
type Params = {
|
|
1465
1716
|
transactionHex: string;
|
|
1466
1717
|
chainAlias: ChainIDAlias;
|
|
1467
|
-
|
|
1718
|
+
network: Network$2;
|
|
1468
1719
|
url: string;
|
|
1469
1720
|
token?: string;
|
|
1721
|
+
headers?: Record<string, string>;
|
|
1470
1722
|
};
|
|
1471
|
-
declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias,
|
|
1723
|
+
declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, network, url, token, headers, }: Params) => Promise<Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[]>;
|
|
1472
1724
|
|
|
1473
1725
|
declare const getVmByChainAlias: (chainAlias: string) => "EVM" | "AVM" | "PVM";
|
|
1474
1726
|
|
|
@@ -1485,10 +1737,16 @@ declare function getXpubFromMnemonic(mnemonic: string): string;
|
|
|
1485
1737
|
*/
|
|
1486
1738
|
declare function isBech32Address(address: string, hasChainId?: boolean): boolean;
|
|
1487
1739
|
|
|
1740
|
+
type ParseOptions = {
|
|
1741
|
+
/**
|
|
1742
|
+
* Tolerance percentage range where the burned amount is considered valid.
|
|
1743
|
+
*/
|
|
1744
|
+
feeTolerance?: number;
|
|
1745
|
+
};
|
|
1488
1746
|
/**
|
|
1489
1747
|
* Returns human readable data from a given a transaction buffer,
|
|
1490
1748
|
*/
|
|
1491
|
-
declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string): Promise<Tx>;
|
|
1749
|
+
declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string, { feeTolerance }?: ParseOptions): Promise<Tx>;
|
|
1492
1750
|
|
|
1493
1751
|
declare const emptySignature: Signature;
|
|
1494
1752
|
declare const populateCredential: (indices: number[], existingCredentialData?: {
|
|
@@ -1504,10 +1762,10 @@ declare function signedTxToHex(signedTx: avaxSerial.SignedTx): string;
|
|
|
1504
1762
|
* 2- Highest value UTXOs to lowest
|
|
1505
1763
|
* @remark Does not check for locked UTXOs
|
|
1506
1764
|
*/
|
|
1507
|
-
declare function sortUTXOsStaking(utxos: Utxo[]): Utxo[];
|
|
1508
|
-
declare function sortUTXOsByAmount(utxos: Utxo[], isDescending: boolean): Utxo[];
|
|
1509
|
-
declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo[];
|
|
1510
|
-
declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo[];
|
|
1765
|
+
declare function sortUTXOsStaking(utxos: Utxo[]): Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
|
|
1766
|
+
declare function sortUTXOsByAmount(utxos: Utxo[], isDescending: boolean): Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
|
|
1767
|
+
declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
|
|
1768
|
+
declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
|
|
1511
1769
|
|
|
1512
1770
|
/**
|
|
1513
1771
|
* The list of transaction types supported by `getMaximumUtxoSet`.
|
|
@@ -1533,9 +1791,16 @@ declare const P_CHAIN_TX_SIZE_LIMIT = 65536;
|
|
|
1533
1791
|
* @param utxos - list of UTXOs to be consumed by the transaction.
|
|
1534
1792
|
* @param sizeSupportedTx - one of the supported transaction types
|
|
1535
1793
|
* @param limit - optional - byte size limit, defaults to 64kb.
|
|
1794
|
+
* @param feeState - current fee state on the chain
|
|
1536
1795
|
* @returns the largest prefix of sorted `utxos` before hitting the size limit. If no such prefix exists, then an empty array.
|
|
1537
1796
|
*/
|
|
1538
|
-
declare function getMaximumUtxoSet(wallet
|
|
1797
|
+
declare function getMaximumUtxoSet({ wallet, utxos, sizeSupportedTx, limit, feeState, }: {
|
|
1798
|
+
wallet: WalletAbstract$1;
|
|
1799
|
+
utxos: Utxo[];
|
|
1800
|
+
sizeSupportedTx: SizeSupportedTx;
|
|
1801
|
+
limit?: number;
|
|
1802
|
+
feeState?: pvm.FeeState;
|
|
1803
|
+
}): Utxo[];
|
|
1539
1804
|
|
|
1540
1805
|
/**
|
|
1541
1806
|
* Verifies the given derivation path is valid, starts with `m`, and of the right length
|
|
@@ -1552,10 +1817,12 @@ type index_AddSubnetValidatorTx = AddSubnetValidatorTx;
|
|
|
1552
1817
|
type index_AddValidatorTx = AddValidatorTx;
|
|
1553
1818
|
type index_AddressWallet = AddressWallet;
|
|
1554
1819
|
declare const index_AddressWallet: typeof AddressWallet;
|
|
1555
|
-
type index_BaseTx = BaseTx;
|
|
1556
1820
|
type index_ChainIDAlias = ChainIDAlias;
|
|
1821
|
+
type index_ConvertSubnetToL1Tx = ConvertSubnetToL1Tx;
|
|
1557
1822
|
type index_CreateChainTx = CreateChainTx;
|
|
1558
1823
|
type index_CreateSubnetTx = CreateSubnetTx;
|
|
1824
|
+
declare const index_DevnetContext: typeof DevnetContext;
|
|
1825
|
+
type index_DisableL1ValidatorTx = DisableL1ValidatorTx;
|
|
1559
1826
|
type index_ExportTx = ExportTx;
|
|
1560
1827
|
type index_FeeData = FeeData;
|
|
1561
1828
|
declare const index_FujiContext: typeof FujiContext;
|
|
@@ -1563,6 +1830,7 @@ type index_GetAvaxBalanceDict = GetAvaxBalanceDict;
|
|
|
1563
1830
|
type index_GetStakedAvaxBalanceDict = GetStakedAvaxBalanceDict;
|
|
1564
1831
|
type index_GlacierOutput = GlacierOutput;
|
|
1565
1832
|
type index_ImportTx = ImportTx;
|
|
1833
|
+
type index_IncreaseL1ValidatorBalanceTx = IncreaseL1ValidatorBalanceTx;
|
|
1566
1834
|
type index_JsonRpcProvider = JsonRpcProvider;
|
|
1567
1835
|
declare const index_JsonRpcProvider: typeof JsonRpcProvider;
|
|
1568
1836
|
type index_LedgerGetXpubResponse = LedgerGetXpubResponse;
|
|
@@ -1576,7 +1844,9 @@ declare const index_MnemonicWallet: typeof MnemonicWallet;
|
|
|
1576
1844
|
type index_MnemonicWalletVoid = MnemonicWalletVoid;
|
|
1577
1845
|
declare const index_MnemonicWalletVoid: typeof MnemonicWalletVoid;
|
|
1578
1846
|
declare const index_P_CHAIN_TX_SIZE_LIMIT: typeof P_CHAIN_TX_SIZE_LIMIT;
|
|
1847
|
+
type index_RegisterL1ValidatorTx = RegisterL1ValidatorTx;
|
|
1579
1848
|
type index_RemoveSubnetValidatorTx = RemoveSubnetValidatorTx;
|
|
1849
|
+
type index_SetL1ValidatorWeightTx = SetL1ValidatorWeightTx;
|
|
1580
1850
|
type index_SignMessageRequest = SignMessageRequest;
|
|
1581
1851
|
type index_SignTxBufferRequest = SignTxBufferRequest;
|
|
1582
1852
|
type index_SignTxRequest = SignTxRequest;
|
|
@@ -1589,7 +1859,6 @@ type index_SizeSupportedTx = SizeSupportedTx;
|
|
|
1589
1859
|
declare const index_SizeSupportedTx: typeof SizeSupportedTx;
|
|
1590
1860
|
type index_StaticSigner = StaticSigner;
|
|
1591
1861
|
declare const index_StaticSigner: typeof StaticSigner;
|
|
1592
|
-
type index_TransferSubnetOwnershipTx = TransferSubnetOwnershipTx;
|
|
1593
1862
|
type index_TransformSubnetTx = TransformSubnetTx;
|
|
1594
1863
|
type index_Tx = Tx;
|
|
1595
1864
|
type index_TxBase = TxBase;
|
|
@@ -1629,12 +1898,17 @@ declare const index_isAddSubnetValidatorTx: typeof isAddSubnetValidatorTx;
|
|
|
1629
1898
|
declare const index_isAddValidatorTx: typeof isAddValidatorTx;
|
|
1630
1899
|
declare const index_isBaseTx: typeof isBaseTx;
|
|
1631
1900
|
declare const index_isBech32Address: typeof isBech32Address;
|
|
1901
|
+
declare const index_isConvertSubnetToL1Tx: typeof isConvertSubnetToL1Tx;
|
|
1632
1902
|
declare const index_isCreateChainTx: typeof isCreateChainTx;
|
|
1633
1903
|
declare const index_isCreateSubnetTx: typeof isCreateSubnetTx;
|
|
1904
|
+
declare const index_isDisableL1ValidatorTx: typeof isDisableL1ValidatorTx;
|
|
1634
1905
|
declare const index_isExportTx: typeof isExportTx;
|
|
1635
1906
|
declare const index_isImportTx: typeof isImportTx;
|
|
1907
|
+
declare const index_isIncreaseL1ValidatorBalance: typeof isIncreaseL1ValidatorBalance;
|
|
1636
1908
|
declare const index_isObsidianApp: typeof isObsidianApp;
|
|
1909
|
+
declare const index_isRegisterL1ValidatorTx: typeof isRegisterL1ValidatorTx;
|
|
1637
1910
|
declare const index_isRemoveSubnetValidatorTx: typeof isRemoveSubnetValidatorTx;
|
|
1911
|
+
declare const index_isSetL1ValidatorWeightTx: typeof isSetL1ValidatorWeightTx;
|
|
1638
1912
|
declare const index_isTransferSubnetOwnershipTx: typeof isTransferSubnetOwnershipTx;
|
|
1639
1913
|
declare const index_isTransformSubnetTx: typeof isTransformSubnetTx;
|
|
1640
1914
|
declare const index_parseAvalancheTx: typeof parseAvalancheTx;
|
|
@@ -1654,10 +1928,13 @@ declare namespace index {
|
|
|
1654
1928
|
index_AddSubnetValidatorTx as AddSubnetValidatorTx,
|
|
1655
1929
|
index_AddValidatorTx as AddValidatorTx,
|
|
1656
1930
|
index_AddressWallet as AddressWallet,
|
|
1657
|
-
|
|
1931
|
+
BaseTx$1 as BaseTx,
|
|
1658
1932
|
index_ChainIDAlias as ChainIDAlias,
|
|
1933
|
+
index_ConvertSubnetToL1Tx as ConvertSubnetToL1Tx,
|
|
1659
1934
|
index_CreateChainTx as CreateChainTx,
|
|
1660
1935
|
index_CreateSubnetTx as CreateSubnetTx,
|
|
1936
|
+
index_DevnetContext as DevnetContext,
|
|
1937
|
+
index_DisableL1ValidatorTx as DisableL1ValidatorTx,
|
|
1661
1938
|
index_ExportTx as ExportTx,
|
|
1662
1939
|
index_FeeData as FeeData,
|
|
1663
1940
|
index_FujiContext as FujiContext,
|
|
@@ -1665,6 +1942,7 @@ declare namespace index {
|
|
|
1665
1942
|
index_GetStakedAvaxBalanceDict as GetStakedAvaxBalanceDict,
|
|
1666
1943
|
index_GlacierOutput as GlacierOutput,
|
|
1667
1944
|
index_ImportTx as ImportTx,
|
|
1945
|
+
index_IncreaseL1ValidatorBalanceTx as IncreaseL1ValidatorBalanceTx,
|
|
1668
1946
|
index_JsonRpcProvider as JsonRpcProvider,
|
|
1669
1947
|
index_LedgerGetXpubResponse as LedgerGetXpubResponse,
|
|
1670
1948
|
index_LedgerSigner as LedgerSigner,
|
|
@@ -1673,7 +1951,9 @@ declare namespace index {
|
|
|
1673
1951
|
index_MnemonicWallet as MnemonicWallet,
|
|
1674
1952
|
index_MnemonicWalletVoid as MnemonicWalletVoid,
|
|
1675
1953
|
index_P_CHAIN_TX_SIZE_LIMIT as P_CHAIN_TX_SIZE_LIMIT,
|
|
1954
|
+
index_RegisterL1ValidatorTx as RegisterL1ValidatorTx,
|
|
1676
1955
|
index_RemoveSubnetValidatorTx as RemoveSubnetValidatorTx,
|
|
1956
|
+
index_SetL1ValidatorWeightTx as SetL1ValidatorWeightTx,
|
|
1677
1957
|
index_SignMessageRequest as SignMessageRequest,
|
|
1678
1958
|
index_SignTxBufferRequest as SignTxBufferRequest,
|
|
1679
1959
|
index_SignTxRequest as SignTxRequest,
|
|
@@ -1682,7 +1962,7 @@ declare namespace index {
|
|
|
1682
1962
|
index_SimpleSigner as SimpleSigner,
|
|
1683
1963
|
index_SizeSupportedTx as SizeSupportedTx,
|
|
1684
1964
|
index_StaticSigner as StaticSigner,
|
|
1685
|
-
|
|
1965
|
+
TransferSubnetOwnershipTx$1 as TransferSubnetOwnershipTx,
|
|
1686
1966
|
index_TransformSubnetTx as TransformSubnetTx,
|
|
1687
1967
|
index_Tx as Tx,
|
|
1688
1968
|
index_TxBase as TxBase,
|
|
@@ -1719,12 +1999,17 @@ declare namespace index {
|
|
|
1719
1999
|
index_isAddValidatorTx as isAddValidatorTx,
|
|
1720
2000
|
index_isBaseTx as isBaseTx,
|
|
1721
2001
|
index_isBech32Address as isBech32Address,
|
|
2002
|
+
index_isConvertSubnetToL1Tx as isConvertSubnetToL1Tx,
|
|
1722
2003
|
index_isCreateChainTx as isCreateChainTx,
|
|
1723
2004
|
index_isCreateSubnetTx as isCreateSubnetTx,
|
|
2005
|
+
index_isDisableL1ValidatorTx as isDisableL1ValidatorTx,
|
|
1724
2006
|
index_isExportTx as isExportTx,
|
|
1725
2007
|
index_isImportTx as isImportTx,
|
|
2008
|
+
index_isIncreaseL1ValidatorBalance as isIncreaseL1ValidatorBalance,
|
|
1726
2009
|
index_isObsidianApp as isObsidianApp,
|
|
2010
|
+
index_isRegisterL1ValidatorTx as isRegisterL1ValidatorTx,
|
|
1727
2011
|
index_isRemoveSubnetValidatorTx as isRemoveSubnetValidatorTx,
|
|
2012
|
+
index_isSetL1ValidatorWeightTx as isSetL1ValidatorWeightTx,
|
|
1728
2013
|
index_isTransferSubnetOwnershipTx as isTransferSubnetOwnershipTx,
|
|
1729
2014
|
index_isTransformSubnetTx as isTransformSubnetTx,
|
|
1730
2015
|
index_parseAvalancheTx as parseAvalancheTx,
|