wative-core 2.5.3 → 2.5.4
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/CHANGELOG.md +13 -0
- package/dist/artifacts/evm/index.cjs +1 -1
- package/dist/artifacts/evm/index.d.cts +2 -2
- package/dist/artifacts/evm/index.d.ts +2 -2
- package/dist/artifacts/evm/index.js +1 -1
- package/dist/artifacts/svm/index.cjs +1 -1
- package/dist/artifacts/svm/index.d.cts +3 -3
- package/dist/artifacts/svm/index.d.ts +3 -3
- package/dist/artifacts/svm/index.js +1 -1
- package/dist/{container-provider-DObyv4EW.d.cts → container-provider-B_TXusVF.d.cts} +1 -1
- package/dist/{container-provider-D5bLhd__.d.ts → container-provider-C0dZf8jA.d.ts} +1 -1
- package/dist/{evm-Yd0NCJAL.d.ts → evm-CsdcpuSb.d.ts} +1 -1
- package/dist/{evm-CJqPjHHu.d.cts → evm-DjRcWpHv.d.cts} +1 -1
- package/dist/{file-sink-D8l-OwW9.d.cts → file-sink-B_Ng4V0f.d.cts} +2 -2
- package/dist/{file-sink-GrtMBpmU.d.ts → file-sink-gFMJnV3R.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index.node.cjs +1 -1
- package/dist/index.node.d.cts +5 -5
- package/dist/index.node.d.ts +5 -5
- package/dist/index.node.js +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +1 -1
- package/dist/{svm-qBfrN98x.d.cts → svm-B7qJlwaU.d.cts} +1 -1
- package/dist/{svm-DgxTJqrR.d.ts → svm-BZlfBFcJ.d.ts} +1 -1
- package/dist/{workspace-CZO-ANYP.d.cts → workspace-kmsiTC-d.d.cts} +26 -8
- package/dist/{workspace-CZO-ANYP.d.ts → workspace-kmsiTC-d.d.ts} +26 -8
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Address, a5 as SvmTxBuildParams, a4 as SvmTransaction, N as Network, a2 as SvmAddressLookupTable } from './workspace-
|
|
1
|
+
import { c as Address, a5 as SvmTxBuildParams, a4 as SvmTransaction, N as Network, a2 as SvmAddressLookupTable } from './workspace-kmsiTC-d.cjs';
|
|
2
2
|
|
|
3
3
|
declare function svmResolveAddressLookupTables(network: Network, addresses: readonly string[]): Promise<SvmAddressLookupTable[]>;
|
|
4
4
|
interface SvmInstruction {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Address, a5 as SvmTxBuildParams, a4 as SvmTransaction, N as Network, a2 as SvmAddressLookupTable } from './workspace-
|
|
1
|
+
import { c as Address, a5 as SvmTxBuildParams, a4 as SvmTransaction, N as Network, a2 as SvmAddressLookupTable } from './workspace-kmsiTC-d.js';
|
|
2
2
|
|
|
3
3
|
declare function svmResolveAddressLookupTables(network: Network, addresses: readonly string[]): Promise<SvmAddressLookupTable[]>;
|
|
4
4
|
interface SvmInstruction {
|
|
@@ -317,7 +317,9 @@ interface DestinationGuardOptions {
|
|
|
317
317
|
readonly screen?: DestinationScreener;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
type WativeErrorCode = "WORKSPACE_LOCKED" | "ACCOUNT_LOCKED"
|
|
320
|
+
type WativeErrorCode = "WORKSPACE_LOCKED" | "ACCOUNT_LOCKED"
|
|
321
|
+
|
|
322
|
+
| "WALLET_DISABLED" | "RECORD_LOCKED" | "BAD_PASSWORD" | "WEAK_PASSWORD" | "RECORD_NOT_FOUND" | "PROVIDER_IO" | "PERMISSION_DENIED" | "DISK_FULL" | "PARAMETER_ERROR"
|
|
321
323
|
|
|
322
324
|
| "IRREGULAR_DESTINATION" | "DECRYPT_FAILED" | "ENCRYPT_FAILED" | "ALGORITHM_IRREVERSIBLE" | "INVALID_MNEMONIC" | "INVALID_PRIVATE_KEY" | "UNSUPPORTED_NETWORK" | "TX_BUILD_FAILED" | "TX_SIGN_FAILED" | "TX_SUBMIT_FAILED" | "TX_TIMEOUT" | "TX_DROPPED" | "TX_ABORTED" | "RPC_UNREACHABLE"
|
|
323
325
|
|
|
@@ -769,6 +771,8 @@ declare class Wallet {
|
|
|
769
771
|
readonly id: number;
|
|
770
772
|
lastBalanceUpdateTime?: number;
|
|
771
773
|
constructor(init: WalletInit);
|
|
774
|
+
|
|
775
|
+
get disabled(): boolean;
|
|
772
776
|
get addresses(): ReadonlyArray<Address>;
|
|
773
777
|
|
|
774
778
|
_addAddress(address: Address): void;
|
|
@@ -837,10 +841,6 @@ declare class Account {
|
|
|
837
841
|
encryptionAlgorithm: string;
|
|
838
842
|
signature: string;
|
|
839
843
|
ppCiphertext?: string;
|
|
840
|
-
disabledSlots?: ReadonlyArray<{
|
|
841
|
-
from: number;
|
|
842
|
-
to: number;
|
|
843
|
-
}>;
|
|
844
844
|
readonly hasOwnPassword: boolean;
|
|
845
845
|
readonly _workspace: Workspace;
|
|
846
846
|
readonly wallets: WalletCollection;
|
|
@@ -852,8 +852,22 @@ declare class Account {
|
|
|
852
852
|
setDefaultNetwork(value: NetworkLike): Promise<void>;
|
|
853
853
|
rename(displayName: string): Promise<void>;
|
|
854
854
|
setDisplayName(displayName: string): Promise<void>;
|
|
855
|
-
|
|
856
|
-
|
|
855
|
+
|
|
856
|
+
getDisabledSlots(): {
|
|
857
|
+
from: number;
|
|
858
|
+
to: number;
|
|
859
|
+
}[];
|
|
860
|
+
|
|
861
|
+
disableAddressNos(addressNos: ReadonlyArray<number>): Promise<void>;
|
|
862
|
+
|
|
863
|
+
disableSlots(slots: ReadonlyArray<{
|
|
864
|
+
from: number;
|
|
865
|
+
to: number;
|
|
866
|
+
}>): Promise<void>;
|
|
867
|
+
|
|
868
|
+
enableAddressNos(addressNos: ReadonlyArray<number>): Promise<void>;
|
|
869
|
+
|
|
870
|
+
enableSlots(slots: ReadonlyArray<{
|
|
857
871
|
from: number;
|
|
858
872
|
to: number;
|
|
859
873
|
}>): Promise<void>;
|
|
@@ -868,6 +882,8 @@ declare class Account {
|
|
|
868
882
|
|
|
869
883
|
dumpMnemonic(): string;
|
|
870
884
|
|
|
885
|
+
getWalletList(force?: boolean): Wallet[];
|
|
886
|
+
|
|
871
887
|
deriveWallets(count: number): Promise<{
|
|
872
888
|
before: number;
|
|
873
889
|
after: number;
|
|
@@ -900,6 +916,8 @@ declare class Account {
|
|
|
900
916
|
|
|
901
917
|
_restoreUnlockPassword(pwd: string | null): void;
|
|
902
918
|
|
|
919
|
+
_isDisabledSlot(index: number): boolean;
|
|
920
|
+
|
|
903
921
|
|
|
904
922
|
_wipeWalletKeys(...wallets: Wallet[]): void;
|
|
905
923
|
}
|
|
@@ -918,7 +936,7 @@ interface WalletCollection extends ReadonlyArray<Wallet> {
|
|
|
918
936
|
byId(id: number): Wallet | null;
|
|
919
937
|
}
|
|
920
938
|
|
|
921
|
-
declare function newMnemonic(): string;
|
|
939
|
+
declare function newMnemonic(wordCount?: 12 | 15 | 18 | 21 | 24): string;
|
|
922
940
|
|
|
923
941
|
type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
924
942
|
type SinkConfig = {
|
|
@@ -317,7 +317,9 @@ interface DestinationGuardOptions {
|
|
|
317
317
|
readonly screen?: DestinationScreener;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
type WativeErrorCode = "WORKSPACE_LOCKED" | "ACCOUNT_LOCKED"
|
|
320
|
+
type WativeErrorCode = "WORKSPACE_LOCKED" | "ACCOUNT_LOCKED"
|
|
321
|
+
|
|
322
|
+
| "WALLET_DISABLED" | "RECORD_LOCKED" | "BAD_PASSWORD" | "WEAK_PASSWORD" | "RECORD_NOT_FOUND" | "PROVIDER_IO" | "PERMISSION_DENIED" | "DISK_FULL" | "PARAMETER_ERROR"
|
|
321
323
|
|
|
322
324
|
| "IRREGULAR_DESTINATION" | "DECRYPT_FAILED" | "ENCRYPT_FAILED" | "ALGORITHM_IRREVERSIBLE" | "INVALID_MNEMONIC" | "INVALID_PRIVATE_KEY" | "UNSUPPORTED_NETWORK" | "TX_BUILD_FAILED" | "TX_SIGN_FAILED" | "TX_SUBMIT_FAILED" | "TX_TIMEOUT" | "TX_DROPPED" | "TX_ABORTED" | "RPC_UNREACHABLE"
|
|
323
325
|
|
|
@@ -769,6 +771,8 @@ declare class Wallet {
|
|
|
769
771
|
readonly id: number;
|
|
770
772
|
lastBalanceUpdateTime?: number;
|
|
771
773
|
constructor(init: WalletInit);
|
|
774
|
+
|
|
775
|
+
get disabled(): boolean;
|
|
772
776
|
get addresses(): ReadonlyArray<Address>;
|
|
773
777
|
|
|
774
778
|
_addAddress(address: Address): void;
|
|
@@ -837,10 +841,6 @@ declare class Account {
|
|
|
837
841
|
encryptionAlgorithm: string;
|
|
838
842
|
signature: string;
|
|
839
843
|
ppCiphertext?: string;
|
|
840
|
-
disabledSlots?: ReadonlyArray<{
|
|
841
|
-
from: number;
|
|
842
|
-
to: number;
|
|
843
|
-
}>;
|
|
844
844
|
readonly hasOwnPassword: boolean;
|
|
845
845
|
readonly _workspace: Workspace;
|
|
846
846
|
readonly wallets: WalletCollection;
|
|
@@ -852,8 +852,22 @@ declare class Account {
|
|
|
852
852
|
setDefaultNetwork(value: NetworkLike): Promise<void>;
|
|
853
853
|
rename(displayName: string): Promise<void>;
|
|
854
854
|
setDisplayName(displayName: string): Promise<void>;
|
|
855
|
-
|
|
856
|
-
|
|
855
|
+
|
|
856
|
+
getDisabledSlots(): {
|
|
857
|
+
from: number;
|
|
858
|
+
to: number;
|
|
859
|
+
}[];
|
|
860
|
+
|
|
861
|
+
disableAddressNos(addressNos: ReadonlyArray<number>): Promise<void>;
|
|
862
|
+
|
|
863
|
+
disableSlots(slots: ReadonlyArray<{
|
|
864
|
+
from: number;
|
|
865
|
+
to: number;
|
|
866
|
+
}>): Promise<void>;
|
|
867
|
+
|
|
868
|
+
enableAddressNos(addressNos: ReadonlyArray<number>): Promise<void>;
|
|
869
|
+
|
|
870
|
+
enableSlots(slots: ReadonlyArray<{
|
|
857
871
|
from: number;
|
|
858
872
|
to: number;
|
|
859
873
|
}>): Promise<void>;
|
|
@@ -868,6 +882,8 @@ declare class Account {
|
|
|
868
882
|
|
|
869
883
|
dumpMnemonic(): string;
|
|
870
884
|
|
|
885
|
+
getWalletList(force?: boolean): Wallet[];
|
|
886
|
+
|
|
871
887
|
deriveWallets(count: number): Promise<{
|
|
872
888
|
before: number;
|
|
873
889
|
after: number;
|
|
@@ -900,6 +916,8 @@ declare class Account {
|
|
|
900
916
|
|
|
901
917
|
_restoreUnlockPassword(pwd: string | null): void;
|
|
902
918
|
|
|
919
|
+
_isDisabledSlot(index: number): boolean;
|
|
920
|
+
|
|
903
921
|
|
|
904
922
|
_wipeWalletKeys(...wallets: Wallet[]): void;
|
|
905
923
|
}
|
|
@@ -918,7 +936,7 @@ interface WalletCollection extends ReadonlyArray<Wallet> {
|
|
|
918
936
|
byId(id: number): Wallet | null;
|
|
919
937
|
}
|
|
920
938
|
|
|
921
|
-
declare function newMnemonic(): string;
|
|
939
|
+
declare function newMnemonic(wordCount?: 12 | 15 | 18 | 21 | 24): string;
|
|
922
940
|
|
|
923
941
|
type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
924
942
|
type SinkConfig = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wative-core",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "Hyperscale crypto wallet management library — multi-workspace, multi-chain, originally designed for on-chain market makers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.node.cjs",
|