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