wative-core 2.2.1 → 2.4.0

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +634 -13
  2. package/LICENSE +114 -0
  3. package/README.md +144 -5
  4. package/dist/artifacts/evm/index.cjs +1 -1
  5. package/dist/artifacts/evm/index.d.cts +2 -2
  6. package/dist/artifacts/evm/index.d.ts +2 -2
  7. package/dist/artifacts/evm/index.js +1 -1
  8. package/dist/artifacts/svm/index.cjs +1 -1
  9. package/dist/artifacts/svm/index.d.cts +3 -3
  10. package/dist/artifacts/svm/index.d.ts +3 -3
  11. package/dist/artifacts/svm/index.js +1 -1
  12. package/dist/{container-provider-C59yqd5Z.d.ts → container-provider-D2QluIe_.d.ts} +10 -3
  13. package/dist/{container-provider-i614LDE1.d.cts → container-provider-DAUXclw_.d.cts} +10 -3
  14. package/dist/{evm-BLml33LX.d.cts → evm-GxBuNjq7.d.ts} +2 -2
  15. package/dist/{evm-DTzqGlL6.d.ts → evm-qXdZWugm.d.cts} +2 -2
  16. package/dist/{file-sink-B73MuigK.d.cts → file-sink-B0EjCBvG.d.ts} +8 -5
  17. package/dist/{file-sink-LS4hyXXi.d.ts → file-sink-DSOZbsJM.d.cts} +8 -5
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.cts +25 -8
  20. package/dist/index.d.ts +25 -8
  21. package/dist/index.js +1 -1
  22. package/dist/index.node.cjs +1 -1
  23. package/dist/index.node.d.cts +6 -6
  24. package/dist/index.node.d.ts +6 -6
  25. package/dist/index.node.js +1 -1
  26. package/dist/node/index.cjs +1 -1
  27. package/dist/node/index.d.cts +3 -3
  28. package/dist/node/index.d.ts +3 -3
  29. package/dist/node/index.js +1 -1
  30. package/dist/{svm-DieFbh9k.d.ts → svm-B_c0L-rJ.d.cts} +2 -2
  31. package/dist/{svm-CCzqNAWM.d.cts → svm-Ca4Xyw0Y.d.ts} +2 -2
  32. package/dist/{workspace-CamTHxso.d.cts → workspace-DdaY7sWa.d.cts} +23 -4
  33. package/dist/{workspace-CamTHxso.d.ts → workspace-DdaY7sWa.d.ts} +23 -4
  34. package/examples/15-package-resolution.test.cjs +187 -1
  35. package/examples/18-envelope-v3.test.cjs +106 -0
  36. package/package.json +6 -3
@@ -1,4 +1,4 @@
1
- import { P as Provider, Y as ContainerState, w as RecordType, z as Slug, R as Record } from './workspace-CamTHxso.js';
1
+ import { P as Provider, B as Slug, k as ContainerState, x as RecordType, R as Record } from './workspace-DdaY7sWa.js';
2
2
 
3
3
  interface ContainerEntry {
4
4
  readonly key: string;
@@ -15,6 +15,15 @@ declare abstract class ContainerProvider extends Provider {
15
15
  protected _prepareUnlock(): Promise<void>;
16
16
 
17
17
  unlockContainer(password: string): Promise<boolean>;
18
+
19
+ initialize(): Promise<void>;
20
+
21
+
22
+ accountRecordExists(slug: Slug): Promise<boolean>;
23
+ unreadableRecordSlugs(): ReadonlyArray<Slug>;
24
+
25
+ occupiedAccountStems(): ReadonlyArray<string>;
26
+ protected _hasRawAccountData(): Promise<boolean>;
18
27
  lockContainer(): Promise<void>;
19
28
  isContainerUnlocked(): boolean;
20
29
 
@@ -41,8 +50,6 @@ declare abstract class ContainerProvider extends Provider {
41
50
  protected _encryptBlob(plaintext: Uint8Array, password: string, type: RecordType, slug: string): Uint8Array;
42
51
 
43
52
  protected _decryptBlob(blob: Uint8Array, password: string, type: RecordType, slug: string): Uint8Array;
44
-
45
- passwordTanren(userInputPassword: string, salt: Uint8Array): Uint8Array;
46
53
  }
47
54
 
48
55
  export { type ContainerEntry as C, ContainerProvider as a };
@@ -1,4 +1,4 @@
1
- import { P as Provider, Y as ContainerState, w as RecordType, z as Slug, R as Record } from './workspace-CamTHxso.cjs';
1
+ import { P as Provider, B as Slug, k as ContainerState, x as RecordType, R as Record } from './workspace-DdaY7sWa.cjs';
2
2
 
3
3
  interface ContainerEntry {
4
4
  readonly key: string;
@@ -15,6 +15,15 @@ declare abstract class ContainerProvider extends Provider {
15
15
  protected _prepareUnlock(): Promise<void>;
16
16
 
17
17
  unlockContainer(password: string): Promise<boolean>;
18
+
19
+ initialize(): Promise<void>;
20
+
21
+
22
+ accountRecordExists(slug: Slug): Promise<boolean>;
23
+ unreadableRecordSlugs(): ReadonlyArray<Slug>;
24
+
25
+ occupiedAccountStems(): ReadonlyArray<string>;
26
+ protected _hasRawAccountData(): Promise<boolean>;
18
27
  lockContainer(): Promise<void>;
19
28
  isContainerUnlocked(): boolean;
20
29
 
@@ -41,8 +50,6 @@ declare abstract class ContainerProvider extends Provider {
41
50
  protected _encryptBlob(plaintext: Uint8Array, password: string, type: RecordType, slug: string): Uint8Array;
42
51
 
43
52
  protected _decryptBlob(blob: Uint8Array, password: string, type: RecordType, slug: string): Uint8Array;
44
-
45
- passwordTanren(userInputPassword: string, salt: Uint8Array): Uint8Array;
46
53
  }
47
54
 
48
55
  export { type ContainerEntry as C, ContainerProvider as a };
@@ -1,4 +1,4 @@
1
- import { c as Address, m as EvmTxBuildParams, l as EvmTransaction } from './workspace-CamTHxso.cjs';
1
+ import { c as Address, n as EvmTxBuildParams, m as EvmTransaction } from './workspace-DdaY7sWa.js';
2
2
 
3
3
  interface AbiItem {
4
4
  type?: string;
@@ -31,4 +31,4 @@ declare class Contract {
31
31
  call(from: Address, contractAddress: string, functionName: string, args: ReadonlyArray<unknown>, opts?: Partial<EvmTxBuildParams>): EvmTransaction;
32
32
  }
33
33
 
34
- export { Contract as C };
34
+ export { type AbiItem as A, Contract as C };
@@ -1,4 +1,4 @@
1
- import { c as Address, m as EvmTxBuildParams, l as EvmTransaction } from './workspace-CamTHxso.js';
1
+ import { c as Address, n as EvmTxBuildParams, m as EvmTransaction } from './workspace-DdaY7sWa.cjs';
2
2
 
3
3
  interface AbiItem {
4
4
  type?: string;
@@ -31,4 +31,4 @@ declare class Contract {
31
31
  call(from: Address, contractAddress: string, functionName: string, args: ReadonlyArray<unknown>, opts?: Partial<EvmTxBuildParams>): EvmTransaction;
32
32
  }
33
33
 
34
- export { Contract as C };
34
+ export { type AbiItem as A, Contract as C };
@@ -1,5 +1,5 @@
1
- import { Y as ContainerState, p as LogSink, L as LogLevel, o as LogRecord } from './workspace-CamTHxso.cjs';
2
- import { a as ContainerProvider } from './container-provider-i614LDE1.cjs';
1
+ import { k as ContainerState, q as LogSink, L as LogLevel, p as LogRecord } from './workspace-DdaY7sWa.js';
2
+ import { a as ContainerProvider } from './container-provider-D2QluIe_.js';
3
3
 
4
4
  declare class HybridProvider extends ContainerProvider {
5
5
  #private;
@@ -22,8 +22,10 @@ declare class HybridProvider extends ContainerProvider {
22
22
  static probe(rootPath: string): Promise<boolean>;
23
23
 
24
24
  inspectContainer(): Promise<ContainerState>;
25
-
26
- static get kdfIterations(): number;
25
+ }
26
+
27
+ declare class HybridProviderV3 extends HybridProvider {
28
+ constructor(rootPath: string);
27
29
  }
28
30
 
29
31
  interface FileSinkOptions {
@@ -37,8 +39,9 @@ declare class FileSink implements LogSink {
37
39
  #private;
38
40
  constructor(opts: FileSinkOptions);
39
41
  write(record: LogRecord): void;
42
+
40
43
  flush(): Promise<void>;
41
44
  close(): Promise<void>;
42
45
  }
43
46
 
44
- export { FileSink as F, HybridProvider as H, type FileSinkOptions as a };
47
+ export { FileSink as F, HybridProvider as H, type FileSinkOptions as a, HybridProviderV3 as b };
@@ -1,5 +1,5 @@
1
- import { Y as ContainerState, p as LogSink, L as LogLevel, o as LogRecord } from './workspace-CamTHxso.js';
2
- import { a as ContainerProvider } from './container-provider-C59yqd5Z.js';
1
+ import { k as ContainerState, q as LogSink, L as LogLevel, p as LogRecord } from './workspace-DdaY7sWa.cjs';
2
+ import { a as ContainerProvider } from './container-provider-DAUXclw_.cjs';
3
3
 
4
4
  declare class HybridProvider extends ContainerProvider {
5
5
  #private;
@@ -22,8 +22,10 @@ declare class HybridProvider extends ContainerProvider {
22
22
  static probe(rootPath: string): Promise<boolean>;
23
23
 
24
24
  inspectContainer(): Promise<ContainerState>;
25
-
26
- static get kdfIterations(): number;
25
+ }
26
+
27
+ declare class HybridProviderV3 extends HybridProvider {
28
+ constructor(rootPath: string);
27
29
  }
28
30
 
29
31
  interface FileSinkOptions {
@@ -37,8 +39,9 @@ declare class FileSink implements LogSink {
37
39
  #private;
38
40
  constructor(opts: FileSinkOptions);
39
41
  write(record: LogRecord): void;
42
+
40
43
  flush(): Promise<void>;
41
44
  close(): Promise<void>;
42
45
  }
43
46
 
44
- export { FileSink as F, HybridProvider as H, type FileSinkOptions as a };
47
+ export { FileSink as F, HybridProvider as H, type FileSinkOptions as a, HybridProviderV3 as b };