wative-core 2.3.9 → 2.4.1
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 +197 -0
- package/README.md +127 -91
- 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-D_557LVN.d.ts → container-provider--npoeR2N.d.ts} +1 -1
- package/dist/{container-provider-CkKGyHis.d.cts → container-provider-Ca_5z1uQ.d.cts} +1 -1
- package/dist/{evm-Xw4zBLUH.d.ts → evm-EHpaW_sK.d.ts} +1 -1
- package/dist/{evm-gsdoVj16.d.cts → evm-hSJJOVG3.d.cts} +1 -1
- package/dist/{file-sink-C_SlT9IC.d.cts → file-sink-7ZAutH45.d.cts} +2 -2
- package/dist/{file-sink-D33jvque.d.ts → file-sink-Bk5zYHw-.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -8
- package/dist/index.d.ts +12 -8
- 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-CUuqpl1h.d.ts → svm-B5q8YaV9.d.ts} +1 -1
- package/dist/{svm-CTCJsYri.d.cts → svm-CXFwmeMo.d.cts} +1 -1
- package/dist/{workspace-Du_jy51u.d.cts → workspace-kq3QyAgm.d.cts} +51 -10
- package/dist/{workspace-Du_jy51u.d.ts → workspace-kq3QyAgm.d.ts} +51 -10
- package/examples/15-package-resolution.test.cjs +4 -4
- package/examples/19-simple-provider.test.cjs +134 -0
- package/examples/README.md +10 -11
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as Provider, x as RecordType, B as Slug, R as Record$1, i as ChainVM } from './workspace-
|
|
2
|
-
export { A as Account, a as AccountCollection, b as AccountOrgType, c as Address, d as Asset, e as AssetBalance, f as AssetCollection, g as AssetId, h as AssetInitObject, C as ChainId, j as ConsoleSink, k as ContainerState, E as EvmAddress, l as EvmRawTx, m as EvmTransaction, n as EvmTxBuildParams, o as EvmTxType, L as LogLevel, p as LogRecord, q as LogSink, r as Logger, s as LoggerConfig, N as Network, t as NetworkCollection, u as NetworkInit, v as NetworkLike, O as OpenOptions, w as RecordInit, S as Settling, y as SimulationResult, z as SinkConfig, D as SvmAddress, F as SvmTransaction, G as SvmTxBuildParams, T as Transaction, H as TransactionReceipt, I as TransactionStateChange, J as TransactionStatus, K as TransactionTracker, W as Wallet, M as WalletCollection, Q as WativeError, U as WativeErrorCode, V as WativeErrorOpts, X as Workspace, Y as WorkspaceConfig, Z as newMnemonic } from './workspace-
|
|
3
|
-
import { a as ContainerProvider } from './container-provider-
|
|
4
|
-
export { C as ContainerEntry } from './container-provider-
|
|
5
|
-
export { A as AbiItem, C as Contract } from './evm-
|
|
6
|
-
export { P as Program, S as SvmInstruction } from './svm-
|
|
1
|
+
import { P as Provider, x as RecordType, B as Slug, R as Record$1, i as ChainVM } from './workspace-kq3QyAgm.cjs';
|
|
2
|
+
export { A as Account, a as AccountCollection, b as AccountOrgType, c as Address, d as Asset, e as AssetBalance, f as AssetCollection, g as AssetId, h as AssetInitObject, C as ChainId, j as ConsoleSink, k as ContainerState, E as EvmAddress, l as EvmRawTx, m as EvmTransaction, n as EvmTxBuildParams, o as EvmTxType, L as LogLevel, p as LogRecord, q as LogSink, r as Logger, s as LoggerConfig, N as Network, t as NetworkCollection, u as NetworkInit, v as NetworkLike, O as OpenOptions, w as RecordInit, S as Settling, y as SimulationResult, z as SinkConfig, D as SvmAddress, F as SvmTransaction, G as SvmTxBuildParams, T as Transaction, H as TransactionReceipt, I as TransactionStateChange, J as TransactionStatus, K as TransactionTracker, W as Wallet, M as WalletCollection, Q as WativeError, U as WativeErrorCode, V as WativeErrorOpts, X as Workspace, Y as WorkspaceConfig, Z as newMnemonic } from './workspace-kq3QyAgm.cjs';
|
|
3
|
+
import { a as ContainerProvider } from './container-provider-Ca_5z1uQ.cjs';
|
|
4
|
+
export { C as ContainerEntry } from './container-provider-Ca_5z1uQ.cjs';
|
|
5
|
+
export { A as AbiItem, C as Contract } from './evm-hSJJOVG3.cjs';
|
|
6
|
+
export { P as Program, S as SvmInstruction } from './svm-CXFwmeMo.cjs';
|
|
7
7
|
|
|
8
8
|
type StorageDurability = "persistent" | "best-effort";
|
|
9
9
|
interface IdbProviderOptions {
|
|
@@ -14,6 +14,10 @@ interface IdbProviderOptions {
|
|
|
14
14
|
|
|
15
15
|
readonly storageManager?: Pick<StorageManager, "persist" | "persisted" | "estimate"> | null;
|
|
16
16
|
}
|
|
17
|
+
interface IdbDestroyOptions extends Pick<IdbProviderOptions, "indexedDB"> {
|
|
18
|
+
|
|
19
|
+
readonly blockedTimeoutMs?: number;
|
|
20
|
+
}
|
|
17
21
|
interface StorageQuota {
|
|
18
22
|
readonly usage?: number;
|
|
19
23
|
readonly quota?: number;
|
|
@@ -42,7 +46,7 @@ declare class IdbProvider extends ContainerProvider {
|
|
|
42
46
|
protected _ensureDir(_key: string): Promise<void>;
|
|
43
47
|
close(): Promise<void>;
|
|
44
48
|
|
|
45
|
-
static destroy(databaseName: string, opts?:
|
|
49
|
+
static destroy(databaseName: string, opts?: IdbDestroyOptions): Promise<void>;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
declare class FileProvider extends Provider {
|
|
@@ -204,4 +208,4 @@ interface AssetInit {
|
|
|
204
208
|
}
|
|
205
209
|
declare const BUILTIN_ASSETS: Record<string, ReadonlyArray<AssetInit>>;
|
|
206
210
|
|
|
207
|
-
export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, ChainVM, Cipher, ContainerProvider, DbProvider, FileProvider, IdbProvider, type IdbProviderOptions, type NetworkConfig, type PasswordCheckContext, type PasswordCheckResult, PasswordPolicy, type PasswordPolicyOptions, PasswordScore, type PasswordWeakness, type PasswordWeaknessCode, Provider, Record$1 as Record, RecordType, Slug, type StorageDurability, type StorageQuota, argon2BackendInfo };
|
|
211
|
+
export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, ChainVM, Cipher, ContainerProvider, DbProvider, FileProvider, type IdbDestroyOptions, IdbProvider, type IdbProviderOptions, type NetworkConfig, type PasswordCheckContext, type PasswordCheckResult, PasswordPolicy, type PasswordPolicyOptions, PasswordScore, type PasswordWeakness, type PasswordWeaknessCode, Provider, Record$1 as Record, RecordType, Slug, type StorageDurability, type StorageQuota, argon2BackendInfo };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as Provider, x as RecordType, B as Slug, R as Record$1, i as ChainVM } from './workspace-
|
|
2
|
-
export { A as Account, a as AccountCollection, b as AccountOrgType, c as Address, d as Asset, e as AssetBalance, f as AssetCollection, g as AssetId, h as AssetInitObject, C as ChainId, j as ConsoleSink, k as ContainerState, E as EvmAddress, l as EvmRawTx, m as EvmTransaction, n as EvmTxBuildParams, o as EvmTxType, L as LogLevel, p as LogRecord, q as LogSink, r as Logger, s as LoggerConfig, N as Network, t as NetworkCollection, u as NetworkInit, v as NetworkLike, O as OpenOptions, w as RecordInit, S as Settling, y as SimulationResult, z as SinkConfig, D as SvmAddress, F as SvmTransaction, G as SvmTxBuildParams, T as Transaction, H as TransactionReceipt, I as TransactionStateChange, J as TransactionStatus, K as TransactionTracker, W as Wallet, M as WalletCollection, Q as WativeError, U as WativeErrorCode, V as WativeErrorOpts, X as Workspace, Y as WorkspaceConfig, Z as newMnemonic } from './workspace-
|
|
3
|
-
import { a as ContainerProvider } from './container-provider
|
|
4
|
-
export { C as ContainerEntry } from './container-provider
|
|
5
|
-
export { A as AbiItem, C as Contract } from './evm-
|
|
6
|
-
export { P as Program, S as SvmInstruction } from './svm-
|
|
1
|
+
import { P as Provider, x as RecordType, B as Slug, R as Record$1, i as ChainVM } from './workspace-kq3QyAgm.js';
|
|
2
|
+
export { A as Account, a as AccountCollection, b as AccountOrgType, c as Address, d as Asset, e as AssetBalance, f as AssetCollection, g as AssetId, h as AssetInitObject, C as ChainId, j as ConsoleSink, k as ContainerState, E as EvmAddress, l as EvmRawTx, m as EvmTransaction, n as EvmTxBuildParams, o as EvmTxType, L as LogLevel, p as LogRecord, q as LogSink, r as Logger, s as LoggerConfig, N as Network, t as NetworkCollection, u as NetworkInit, v as NetworkLike, O as OpenOptions, w as RecordInit, S as Settling, y as SimulationResult, z as SinkConfig, D as SvmAddress, F as SvmTransaction, G as SvmTxBuildParams, T as Transaction, H as TransactionReceipt, I as TransactionStateChange, J as TransactionStatus, K as TransactionTracker, W as Wallet, M as WalletCollection, Q as WativeError, U as WativeErrorCode, V as WativeErrorOpts, X as Workspace, Y as WorkspaceConfig, Z as newMnemonic } from './workspace-kq3QyAgm.js';
|
|
3
|
+
import { a as ContainerProvider } from './container-provider--npoeR2N.js';
|
|
4
|
+
export { C as ContainerEntry } from './container-provider--npoeR2N.js';
|
|
5
|
+
export { A as AbiItem, C as Contract } from './evm-EHpaW_sK.js';
|
|
6
|
+
export { P as Program, S as SvmInstruction } from './svm-B5q8YaV9.js';
|
|
7
7
|
|
|
8
8
|
type StorageDurability = "persistent" | "best-effort";
|
|
9
9
|
interface IdbProviderOptions {
|
|
@@ -14,6 +14,10 @@ interface IdbProviderOptions {
|
|
|
14
14
|
|
|
15
15
|
readonly storageManager?: Pick<StorageManager, "persist" | "persisted" | "estimate"> | null;
|
|
16
16
|
}
|
|
17
|
+
interface IdbDestroyOptions extends Pick<IdbProviderOptions, "indexedDB"> {
|
|
18
|
+
|
|
19
|
+
readonly blockedTimeoutMs?: number;
|
|
20
|
+
}
|
|
17
21
|
interface StorageQuota {
|
|
18
22
|
readonly usage?: number;
|
|
19
23
|
readonly quota?: number;
|
|
@@ -42,7 +46,7 @@ declare class IdbProvider extends ContainerProvider {
|
|
|
42
46
|
protected _ensureDir(_key: string): Promise<void>;
|
|
43
47
|
close(): Promise<void>;
|
|
44
48
|
|
|
45
|
-
static destroy(databaseName: string, opts?:
|
|
49
|
+
static destroy(databaseName: string, opts?: IdbDestroyOptions): Promise<void>;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
declare class FileProvider extends Provider {
|
|
@@ -204,4 +208,4 @@ interface AssetInit {
|
|
|
204
208
|
}
|
|
205
209
|
declare const BUILTIN_ASSETS: Record<string, ReadonlyArray<AssetInit>>;
|
|
206
210
|
|
|
207
|
-
export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, ChainVM, Cipher, ContainerProvider, DbProvider, FileProvider, IdbProvider, type IdbProviderOptions, type NetworkConfig, type PasswordCheckContext, type PasswordCheckResult, PasswordPolicy, type PasswordPolicyOptions, PasswordScore, type PasswordWeakness, type PasswordWeaknessCode, Provider, Record$1 as Record, RecordType, Slug, type StorageDurability, type StorageQuota, argon2BackendInfo };
|
|
211
|
+
export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, ChainVM, Cipher, ContainerProvider, DbProvider, FileProvider, type IdbDestroyOptions, IdbProvider, type IdbProviderOptions, type NetworkConfig, type PasswordCheckContext, type PasswordCheckResult, PasswordPolicy, type PasswordPolicyOptions, PasswordScore, type PasswordWeakness, type PasswordWeaknessCode, Provider, Record$1 as Record, RecordType, Slug, type StorageDurability, type StorageQuota, argon2BackendInfo };
|