wative-core 2.4.4 → 2.4.6
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 +22 -0
- package/README.md +38 -12
- 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-BHHQ3D_6.d.cts → container-provider-CCBOKuHv.d.cts} +1 -1
- package/dist/{container-provider-BlCZxRdL.d.ts → container-provider-COf_p1JR.d.ts} +1 -1
- package/dist/{evm-aNe3xFxN.d.ts → evm-B5b_UPYy.d.ts} +1 -1
- package/dist/{evm-Budo2tT1.d.cts → evm-BMB0sT3U.d.cts} +1 -1
- package/dist/{file-sink-GGSUbddN.d.cts → file-sink-778TcqKz.d.cts} +2 -2
- package/dist/{file-sink-mJ2y6o7H.d.ts → file-sink-Bu1YeJSR.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +1 -1
- package/dist/index.node.cjs +1 -1
- package/dist/index.node.d.cts +6 -6
- package/dist/index.node.d.ts +6 -6
- 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-CXjYOYxt.d.cts → svm-BRKxogvC.d.cts} +1 -1
- package/dist/{svm-Cndg5tXR.d.ts → svm-CZ-D916M.d.ts} +1 -1
- package/dist/{workspace-bxOhg4wh.d.cts → workspace-Clmfomrc.d.cts} +24 -4
- package/dist/{workspace-bxOhg4wh.d.ts → workspace-Clmfomrc.d.ts} +24 -4
- package/package.json +1 -1
|
@@ -158,12 +158,19 @@ declare abstract class Provider {
|
|
|
158
158
|
abstract isContainerUnlocked(): boolean;
|
|
159
159
|
/** Structural inspection of the container BEFORE unlock. */
|
|
160
160
|
inspectContainer(): Promise<ContainerState>;
|
|
161
|
+
/** Load one record. */
|
|
161
162
|
abstract loadRecord<T>(type: RecordType, slug?: Slug): Promise<Record$1<T>>;
|
|
162
163
|
abstract loadRecords<T>(type: RecordType): Promise<ReadonlyArray<Record$1<T>>>;
|
|
163
164
|
abstract writeRecord<T>(type: RecordType, slug: Slug, value: T): Promise<void>;
|
|
164
165
|
abstract dropRecord(type: RecordType, slug: Slug): Promise<void>;
|
|
165
166
|
/** Initialize an empty container by writing the four root records (CONFIG, NETWORK, ASSET, LOG) from the bundled templat... */
|
|
166
167
|
initialize(): Promise<void>;
|
|
168
|
+
/** Does the STORE already hold an account record under this slug? */
|
|
169
|
+
accountRecordExists(slug: Slug): Promise<boolean>;
|
|
170
|
+
/** Slugs this provider knows are present but could not be opened. */
|
|
171
|
+
unreadableRecordSlugs(): ReadonlyArray<Slug>;
|
|
172
|
+
/** Name stems already occupied in the accounts namespace, lowercased. */
|
|
173
|
+
occupiedAccountStems(): ReadonlyArray<string>;
|
|
167
174
|
/** Any storage at all under the accounts area, however named. */
|
|
168
175
|
protected _hasRawAccountData(): Promise<boolean>;
|
|
169
176
|
abstract close(): Promise<void>;
|
|
@@ -245,6 +252,7 @@ interface TransactionStateChange {
|
|
|
245
252
|
readonly reason?: string;
|
|
246
253
|
readonly hash?: string;
|
|
247
254
|
readonly blockNumber?: number;
|
|
255
|
+
|
|
248
256
|
readonly confirmations?: number;
|
|
249
257
|
}
|
|
250
258
|
interface TransactionReceipt {
|
|
@@ -288,12 +296,15 @@ declare class EvmTransaction implements Transaction {
|
|
|
288
296
|
maxFeePerGas?: bigint;
|
|
289
297
|
maxPriorityFeePerGas?: bigint;
|
|
290
298
|
gasLimit?: bigint;
|
|
291
|
-
rpcUrl?: string;
|
|
292
299
|
accessList?: ReadonlyArray<{
|
|
293
300
|
address: string;
|
|
294
301
|
storageKeys: ReadonlyArray<string>;
|
|
295
302
|
}>;
|
|
296
303
|
|
|
304
|
+
|
|
305
|
+
get rpcUrl(): string | undefined;
|
|
306
|
+
set rpcUrl(next: string | undefined);
|
|
307
|
+
|
|
297
308
|
_address?: Address;
|
|
298
309
|
constructor(init: {
|
|
299
310
|
from: EvmAddress;
|
|
@@ -371,7 +382,10 @@ declare class SvmTransaction implements Transaction {
|
|
|
371
382
|
computeUnitPrice?: bigint;
|
|
372
383
|
recentBlockhash?: string;
|
|
373
384
|
feePayer?: string;
|
|
374
|
-
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
get rpcUrl(): string | undefined;
|
|
388
|
+
set rpcUrl(next: string | undefined);
|
|
375
389
|
instructions?: ReadonlyArray<unknown>;
|
|
376
390
|
addressLookupTables?: ReadonlyArray<string>;
|
|
377
391
|
memo?: string;
|
|
@@ -684,6 +698,7 @@ declare class Logger {
|
|
|
684
698
|
constructor(namespace: string, config: LoggerConfig, owner: LoggerOwner);
|
|
685
699
|
constructor(namespace: string, shared: LoggerSharedState);
|
|
686
700
|
get level(): LogLevel;
|
|
701
|
+
|
|
687
702
|
get sinks(): readonly LogSink[];
|
|
688
703
|
get config(): LoggerConfig;
|
|
689
704
|
setLevel(level: LogLevel): Promise<void>;
|
|
@@ -712,8 +727,9 @@ interface OpenOptions {
|
|
|
712
727
|
}
|
|
713
728
|
declare class Workspace {
|
|
714
729
|
#private;
|
|
715
|
-
|
|
716
|
-
|
|
730
|
+
|
|
731
|
+
get accounts(): AccountCollection;
|
|
732
|
+
get networks(): NetworkCollection;
|
|
717
733
|
|
|
718
734
|
_registerLiveAccount(account: Account): void;
|
|
719
735
|
|
|
@@ -723,6 +739,8 @@ declare class Workspace {
|
|
|
723
739
|
private constructor();
|
|
724
740
|
get locked(): boolean;
|
|
725
741
|
|
|
742
|
+
get closed(): boolean;
|
|
743
|
+
|
|
726
744
|
get damagedAccountSlugs(): ReadonlyArray<string>;
|
|
727
745
|
get rootDescriptor(): string;
|
|
728
746
|
|
|
@@ -731,6 +749,8 @@ declare class Workspace {
|
|
|
731
749
|
|
|
732
750
|
lock(): Promise<void>;
|
|
733
751
|
|
|
752
|
+
close(): Promise<void>;
|
|
753
|
+
|
|
734
754
|
_getPassword(): string;
|
|
735
755
|
get config(): WorkspaceConfig;
|
|
736
756
|
getConfig(): Promise<WorkspaceConfig>;
|
|
@@ -158,12 +158,19 @@ declare abstract class Provider {
|
|
|
158
158
|
abstract isContainerUnlocked(): boolean;
|
|
159
159
|
/** Structural inspection of the container BEFORE unlock. */
|
|
160
160
|
inspectContainer(): Promise<ContainerState>;
|
|
161
|
+
/** Load one record. */
|
|
161
162
|
abstract loadRecord<T>(type: RecordType, slug?: Slug): Promise<Record$1<T>>;
|
|
162
163
|
abstract loadRecords<T>(type: RecordType): Promise<ReadonlyArray<Record$1<T>>>;
|
|
163
164
|
abstract writeRecord<T>(type: RecordType, slug: Slug, value: T): Promise<void>;
|
|
164
165
|
abstract dropRecord(type: RecordType, slug: Slug): Promise<void>;
|
|
165
166
|
/** Initialize an empty container by writing the four root records (CONFIG, NETWORK, ASSET, LOG) from the bundled templat... */
|
|
166
167
|
initialize(): Promise<void>;
|
|
168
|
+
/** Does the STORE already hold an account record under this slug? */
|
|
169
|
+
accountRecordExists(slug: Slug): Promise<boolean>;
|
|
170
|
+
/** Slugs this provider knows are present but could not be opened. */
|
|
171
|
+
unreadableRecordSlugs(): ReadonlyArray<Slug>;
|
|
172
|
+
/** Name stems already occupied in the accounts namespace, lowercased. */
|
|
173
|
+
occupiedAccountStems(): ReadonlyArray<string>;
|
|
167
174
|
/** Any storage at all under the accounts area, however named. */
|
|
168
175
|
protected _hasRawAccountData(): Promise<boolean>;
|
|
169
176
|
abstract close(): Promise<void>;
|
|
@@ -245,6 +252,7 @@ interface TransactionStateChange {
|
|
|
245
252
|
readonly reason?: string;
|
|
246
253
|
readonly hash?: string;
|
|
247
254
|
readonly blockNumber?: number;
|
|
255
|
+
|
|
248
256
|
readonly confirmations?: number;
|
|
249
257
|
}
|
|
250
258
|
interface TransactionReceipt {
|
|
@@ -288,12 +296,15 @@ declare class EvmTransaction implements Transaction {
|
|
|
288
296
|
maxFeePerGas?: bigint;
|
|
289
297
|
maxPriorityFeePerGas?: bigint;
|
|
290
298
|
gasLimit?: bigint;
|
|
291
|
-
rpcUrl?: string;
|
|
292
299
|
accessList?: ReadonlyArray<{
|
|
293
300
|
address: string;
|
|
294
301
|
storageKeys: ReadonlyArray<string>;
|
|
295
302
|
}>;
|
|
296
303
|
|
|
304
|
+
|
|
305
|
+
get rpcUrl(): string | undefined;
|
|
306
|
+
set rpcUrl(next: string | undefined);
|
|
307
|
+
|
|
297
308
|
_address?: Address;
|
|
298
309
|
constructor(init: {
|
|
299
310
|
from: EvmAddress;
|
|
@@ -371,7 +382,10 @@ declare class SvmTransaction implements Transaction {
|
|
|
371
382
|
computeUnitPrice?: bigint;
|
|
372
383
|
recentBlockhash?: string;
|
|
373
384
|
feePayer?: string;
|
|
374
|
-
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
get rpcUrl(): string | undefined;
|
|
388
|
+
set rpcUrl(next: string | undefined);
|
|
375
389
|
instructions?: ReadonlyArray<unknown>;
|
|
376
390
|
addressLookupTables?: ReadonlyArray<string>;
|
|
377
391
|
memo?: string;
|
|
@@ -684,6 +698,7 @@ declare class Logger {
|
|
|
684
698
|
constructor(namespace: string, config: LoggerConfig, owner: LoggerOwner);
|
|
685
699
|
constructor(namespace: string, shared: LoggerSharedState);
|
|
686
700
|
get level(): LogLevel;
|
|
701
|
+
|
|
687
702
|
get sinks(): readonly LogSink[];
|
|
688
703
|
get config(): LoggerConfig;
|
|
689
704
|
setLevel(level: LogLevel): Promise<void>;
|
|
@@ -712,8 +727,9 @@ interface OpenOptions {
|
|
|
712
727
|
}
|
|
713
728
|
declare class Workspace {
|
|
714
729
|
#private;
|
|
715
|
-
|
|
716
|
-
|
|
730
|
+
|
|
731
|
+
get accounts(): AccountCollection;
|
|
732
|
+
get networks(): NetworkCollection;
|
|
717
733
|
|
|
718
734
|
_registerLiveAccount(account: Account): void;
|
|
719
735
|
|
|
@@ -723,6 +739,8 @@ declare class Workspace {
|
|
|
723
739
|
private constructor();
|
|
724
740
|
get locked(): boolean;
|
|
725
741
|
|
|
742
|
+
get closed(): boolean;
|
|
743
|
+
|
|
726
744
|
get damagedAccountSlugs(): ReadonlyArray<string>;
|
|
727
745
|
get rootDescriptor(): string;
|
|
728
746
|
|
|
@@ -731,6 +749,8 @@ declare class Workspace {
|
|
|
731
749
|
|
|
732
750
|
lock(): Promise<void>;
|
|
733
751
|
|
|
752
|
+
close(): Promise<void>;
|
|
753
|
+
|
|
734
754
|
_getPassword(): string;
|
|
735
755
|
get config(): WorkspaceConfig;
|
|
736
756
|
getConfig(): Promise<WorkspaceConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wative-core",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
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",
|