wative-core 2.5.5 → 2.5.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +43 -5
  3. package/dist/artifacts/evm/index.cjs +1 -1
  4. package/dist/artifacts/evm/index.d.cts +2 -2
  5. package/dist/artifacts/evm/index.d.ts +2 -2
  6. package/dist/artifacts/evm/index.js +1 -1
  7. package/dist/artifacts/svm/index.cjs +1 -1
  8. package/dist/artifacts/svm/index.d.cts +3 -3
  9. package/dist/artifacts/svm/index.d.ts +3 -3
  10. package/dist/artifacts/svm/index.js +1 -1
  11. package/dist/{container-provider-DeEiua4J.d.ts → container-provider-BOFF5wqv.d.ts} +1 -1
  12. package/dist/{container-provider-BGXrTnGa.d.cts → container-provider-QvO3JYFb.d.cts} +1 -1
  13. package/dist/{evm-D3zji6gT.d.ts → evm-BWORcsia.d.ts} +1 -1
  14. package/dist/{evm-TSU9rVlb.d.cts → evm-DaLCh_ce.d.cts} +1 -1
  15. package/dist/{file-sink-BsfIT5JJ.d.cts → file-sink-DJEWW4yu.d.cts} +2 -2
  16. package/dist/{file-sink-DAitYVxc.d.ts → file-sink-bJzTrooq.d.ts} +2 -2
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.d.cts +36 -7
  19. package/dist/index.d.ts +36 -7
  20. package/dist/index.js +1 -1
  21. package/dist/index.node.cjs +1 -1
  22. package/dist/index.node.d.cts +6 -6
  23. package/dist/index.node.d.ts +6 -6
  24. package/dist/index.node.js +1 -1
  25. package/dist/node/index.cjs +1 -1
  26. package/dist/node/index.d.cts +3 -3
  27. package/dist/node/index.d.ts +3 -3
  28. package/dist/node/index.js +1 -1
  29. package/dist/{svm-B66vNECq.d.ts → svm-5rQU53_9.d.ts} +1 -1
  30. package/dist/{svm-DuJBblmu.d.cts → svm-BYbTqW4J.d.cts} +1 -1
  31. package/dist/{workspace-_8Ed5yFS.d.cts → workspace-D7nb3-cO.d.cts} +6 -2
  32. package/dist/{workspace-_8Ed5yFS.d.ts → workspace-D7nb3-cO.d.ts} +6 -2
  33. package/examples/04-network-management.test.cjs +5 -5
  34. package/examples/07-custom-provider.test.cjs +1 -1
  35. package/examples/README.md +2 -2
  36. package/package.json +2 -2
package/dist/index.d.cts CHANGED
@@ -1,9 +1,38 @@
1
- import { P as Provider, T as RecordType, a0 as Slug, Q as Record$1, N as Network, a2 as SvmAddressLookupTable, R as RawTx, E as EvmAddress, _ as SimulationResult, o as DestinationGuardOptions, p as DestinationReport, V as SendRoute, a1 as SvmAddress, ar as SuiAddress, ad as VmToken, f as AssetCollection, x as EvmTxBuildParams, a5 as SvmTxBuildParams, a6 as Transaction, ac as TransferRequest, ab as TransferPayload, j as ChainVM } from './workspace-_8Ed5yFS.cjs';
2
- export { A as Account, a as AccountCollection, b as AccountOrgType, c as Address, d as Asset, e as AssetBalance, g as AssetId, h as AssetInitObject, i as AssetRef, C as ChainId, k as Commitment, l as ConsoleSink, m as ContainerState, D as DecodedTx, n as DestinationCode, q as DestinationScreenResult, r as DestinationScreener, s as DestinationSeverity, t as DestinationWarning, u as EvmRawTx, v as EvmSigner, w as EvmTransaction, y as EvmTxType, L as LogLevel, z as LogRecord, B as LogSink, F as Logger, G as LoggerConfig, H as NetworkCollection, I as NetworkInit, J as NetworkLike, K as NetworkRoutes, M as NormalizedTx, O as OpenOptions, S as RecordInit, U as SendOptions, W as Settling, X as SignInParams, Y as SignInResult, Z as SignRawOptions, $ as SinkConfig, a3 as SvmSigner, a4 as SvmTransaction, a7 as TransactionReceipt, a8 as TransactionStateChange, a9 as TransactionStatus, aa as TransactionTracker, ae as Wallet, af as WalletCollection, ag as WativeError, ah as WativeErrorCode, ai as WativeErrorOpts, aj as Workspace, ak as WorkspaceConfig, al as deserializeEvmTx, am as deserializeSvmTx, an as deserializeTx, ao as isRawTx, ap as newMnemonic, aq as normalizeTxInput } from './workspace-_8Ed5yFS.cjs';
3
- import { a as ContainerProvider } from './container-provider-BGXrTnGa.cjs';
4
- export { C as ContainerEntry } from './container-provider-BGXrTnGa.cjs';
5
- export { A as AbiItem, C as Contract } from './evm-TSU9rVlb.cjs';
6
- export { P as Program, S as SvmInstruction, s as svmResolveAddressLookupTables } from './svm-DuJBblmu.cjs';
1
+ import { a0 as Slug, P as Provider, T as RecordType, Q as Record$1, N as Network, a2 as SvmAddressLookupTable, R as RawTx, E as EvmAddress, _ as SimulationResult, o as DestinationGuardOptions, p as DestinationReport, V as SendRoute, a1 as SvmAddress, ar as SuiAddress, ad as VmToken, f as AssetCollection, x as EvmTxBuildParams, a5 as SvmTxBuildParams, a6 as Transaction, ac as TransferRequest, ab as TransferPayload, j as ChainVM } from './workspace-D7nb3-cO.cjs';
2
+ export { A as Account, a as AccountCollection, b as AccountOrgType, c as Address, d as Asset, e as AssetBalance, g as AssetId, h as AssetInitObject, i as AssetRef, C as ChainId, k as Commitment, l as ConsoleSink, m as ContainerState, D as DecodedTx, n as DestinationCode, q as DestinationScreenResult, r as DestinationScreener, s as DestinationSeverity, t as DestinationWarning, u as EvmRawTx, v as EvmSigner, w as EvmTransaction, y as EvmTxType, L as LogLevel, z as LogRecord, B as LogSink, F as Logger, G as LoggerConfig, H as NetworkCollection, I as NetworkInit, J as NetworkLike, K as NetworkRoutes, M as NormalizedTx, O as OpenOptions, S as RecordInit, U as SendOptions, W as Settling, X as SignInParams, Y as SignInResult, Z as SignRawOptions, $ as SinkConfig, a3 as SvmSigner, a4 as SvmTransaction, a7 as TransactionReceipt, a8 as TransactionStateChange, a9 as TransactionStatus, aa as TransactionTracker, ae as Wallet, af as WalletCollection, ag as WativeError, ah as WativeErrorCode, ai as WativeErrorOpts, aj as Workspace, ak as WorkspaceConfig, al as deserializeEvmTx, am as deserializeSvmTx, an as deserializeTx, ao as isRawTx, ap as newMnemonic, aq as normalizeTxInput } from './workspace-D7nb3-cO.cjs';
3
+ import { a as ContainerProvider } from './container-provider-QvO3JYFb.cjs';
4
+ export { C as ContainerEntry } from './container-provider-QvO3JYFb.cjs';
5
+ export { A as AbiItem, C as Contract } from './evm-DaLCh_ce.cjs';
6
+ export { P as Program, S as SvmInstruction, s as svmResolveAddressLookupTables } from './svm-BYbTqW4J.cjs';
7
+
8
+ interface Argon2BackendParams {
9
+ t: number;
10
+ m: number;
11
+ p: number;
12
+ dkLen: number;
13
+ }
14
+
15
+ interface Argon2Backend {
16
+
17
+ readonly id: string;
18
+
19
+ argon2id(password: Uint8Array, salt: Uint8Array, params: Argon2BackendParams): Uint8Array;
20
+ }
21
+
22
+ interface RecoveryEnvelope {
23
+ readonly accountSlug: Slug;
24
+ readonly sealedMnemonic: Uint8Array;
25
+ readonly createdAt: number;
26
+ }
27
+
28
+ declare function sealMnemonic(accountSlug: Slug, mnemonic: string, workspacePassword: string, opts?: {
29
+ kdf?: Argon2Backend;
30
+ }): RecoveryEnvelope;
31
+
32
+ declare function openMnemonic(envelope: RecoveryEnvelope, workspacePassword: string, opts?: {
33
+ expectedSlug?: Slug;
34
+ kdf?: Argon2Backend;
35
+ }): string;
7
36
 
8
37
  type StorageDurability = "persistent" | "best-effort";
9
38
  interface IdbProviderOptions {
@@ -318,4 +347,4 @@ interface AssetInit {
318
347
  }
319
348
  declare const BUILTIN_ASSETS: Record<string, ReadonlyArray<AssetInit>>;
320
349
 
321
- export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, AssetCollection, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, ChainClient, type ChainClientBroadcastOpts, type ChainClientOpts, type ChainClientSimulateOpts, type ChainCtx, ChainDialect, ChainVM, Cipher, ContainerProvider, type CurveName, DbProvider, DestinationGuardOptions, DestinationReport, type DigestSigner, EvmAddress, EvmTxBuildParams, FileProvider, type IdbDestroyOptions, IdbProvider, type IdbProviderOptions, type MessageEncoding, Network, type NetworkConfig, type PasswordCheckContext, type PasswordCheckResult, PasswordPolicy, type PasswordPolicyOptions, PasswordScore, type PasswordWeakness, type PasswordWeaknessCode, Provider, RawTx, Record$1 as Record, RecordType, type RecoveredSecpSig, SendRoute, SimulationResult, Slug, type StorageDurability, type StorageQuota, SvmAddress, SvmAddressLookupTable, SvmTxBuildParams, Transaction, TransferPayload, TransferRequest, VmToken, argon2BackendInfo, closeAllRpcClients, registerDialect };
350
+ export { AesGcmCipher, type AesGcmCipherOptions, type Argon2Backend, type Argon2BackendInfo, type Argon2BackendParams, Argon2Kdf, type Argon2KdfOptions, AssetCollection, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, ChainClient, type ChainClientBroadcastOpts, type ChainClientOpts, type ChainClientSimulateOpts, type ChainCtx, ChainDialect, ChainVM, Cipher, ContainerProvider, type CurveName, DbProvider, DestinationGuardOptions, DestinationReport, type DigestSigner, EvmAddress, EvmTxBuildParams, FileProvider, type IdbDestroyOptions, IdbProvider, type IdbProviderOptions, type MessageEncoding, Network, type NetworkConfig, type PasswordCheckContext, type PasswordCheckResult, PasswordPolicy, type PasswordPolicyOptions, PasswordScore, type PasswordWeakness, type PasswordWeaknessCode, Provider, RawTx, Record$1 as Record, RecordType, type RecoveredSecpSig, type RecoveryEnvelope, SendRoute, SimulationResult, Slug, type StorageDurability, type StorageQuota, SvmAddress, SvmAddressLookupTable, SvmTxBuildParams, Transaction, TransferPayload, TransferRequest, VmToken, argon2BackendInfo, closeAllRpcClients, openMnemonic, registerDialect, sealMnemonic };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,38 @@
1
- import { P as Provider, T as RecordType, a0 as Slug, Q as Record$1, N as Network, a2 as SvmAddressLookupTable, R as RawTx, E as EvmAddress, _ as SimulationResult, o as DestinationGuardOptions, p as DestinationReport, V as SendRoute, a1 as SvmAddress, ar as SuiAddress, ad as VmToken, f as AssetCollection, x as EvmTxBuildParams, a5 as SvmTxBuildParams, a6 as Transaction, ac as TransferRequest, ab as TransferPayload, j as ChainVM } from './workspace-_8Ed5yFS.js';
2
- export { A as Account, a as AccountCollection, b as AccountOrgType, c as Address, d as Asset, e as AssetBalance, g as AssetId, h as AssetInitObject, i as AssetRef, C as ChainId, k as Commitment, l as ConsoleSink, m as ContainerState, D as DecodedTx, n as DestinationCode, q as DestinationScreenResult, r as DestinationScreener, s as DestinationSeverity, t as DestinationWarning, u as EvmRawTx, v as EvmSigner, w as EvmTransaction, y as EvmTxType, L as LogLevel, z as LogRecord, B as LogSink, F as Logger, G as LoggerConfig, H as NetworkCollection, I as NetworkInit, J as NetworkLike, K as NetworkRoutes, M as NormalizedTx, O as OpenOptions, S as RecordInit, U as SendOptions, W as Settling, X as SignInParams, Y as SignInResult, Z as SignRawOptions, $ as SinkConfig, a3 as SvmSigner, a4 as SvmTransaction, a7 as TransactionReceipt, a8 as TransactionStateChange, a9 as TransactionStatus, aa as TransactionTracker, ae as Wallet, af as WalletCollection, ag as WativeError, ah as WativeErrorCode, ai as WativeErrorOpts, aj as Workspace, ak as WorkspaceConfig, al as deserializeEvmTx, am as deserializeSvmTx, an as deserializeTx, ao as isRawTx, ap as newMnemonic, aq as normalizeTxInput } from './workspace-_8Ed5yFS.js';
3
- import { a as ContainerProvider } from './container-provider-DeEiua4J.js';
4
- export { C as ContainerEntry } from './container-provider-DeEiua4J.js';
5
- export { A as AbiItem, C as Contract } from './evm-D3zji6gT.js';
6
- export { P as Program, S as SvmInstruction, s as svmResolveAddressLookupTables } from './svm-B66vNECq.js';
1
+ import { a0 as Slug, P as Provider, T as RecordType, Q as Record$1, N as Network, a2 as SvmAddressLookupTable, R as RawTx, E as EvmAddress, _ as SimulationResult, o as DestinationGuardOptions, p as DestinationReport, V as SendRoute, a1 as SvmAddress, ar as SuiAddress, ad as VmToken, f as AssetCollection, x as EvmTxBuildParams, a5 as SvmTxBuildParams, a6 as Transaction, ac as TransferRequest, ab as TransferPayload, j as ChainVM } from './workspace-D7nb3-cO.js';
2
+ export { A as Account, a as AccountCollection, b as AccountOrgType, c as Address, d as Asset, e as AssetBalance, g as AssetId, h as AssetInitObject, i as AssetRef, C as ChainId, k as Commitment, l as ConsoleSink, m as ContainerState, D as DecodedTx, n as DestinationCode, q as DestinationScreenResult, r as DestinationScreener, s as DestinationSeverity, t as DestinationWarning, u as EvmRawTx, v as EvmSigner, w as EvmTransaction, y as EvmTxType, L as LogLevel, z as LogRecord, B as LogSink, F as Logger, G as LoggerConfig, H as NetworkCollection, I as NetworkInit, J as NetworkLike, K as NetworkRoutes, M as NormalizedTx, O as OpenOptions, S as RecordInit, U as SendOptions, W as Settling, X as SignInParams, Y as SignInResult, Z as SignRawOptions, $ as SinkConfig, a3 as SvmSigner, a4 as SvmTransaction, a7 as TransactionReceipt, a8 as TransactionStateChange, a9 as TransactionStatus, aa as TransactionTracker, ae as Wallet, af as WalletCollection, ag as WativeError, ah as WativeErrorCode, ai as WativeErrorOpts, aj as Workspace, ak as WorkspaceConfig, al as deserializeEvmTx, am as deserializeSvmTx, an as deserializeTx, ao as isRawTx, ap as newMnemonic, aq as normalizeTxInput } from './workspace-D7nb3-cO.js';
3
+ import { a as ContainerProvider } from './container-provider-BOFF5wqv.js';
4
+ export { C as ContainerEntry } from './container-provider-BOFF5wqv.js';
5
+ export { A as AbiItem, C as Contract } from './evm-BWORcsia.js';
6
+ export { P as Program, S as SvmInstruction, s as svmResolveAddressLookupTables } from './svm-5rQU53_9.js';
7
+
8
+ interface Argon2BackendParams {
9
+ t: number;
10
+ m: number;
11
+ p: number;
12
+ dkLen: number;
13
+ }
14
+
15
+ interface Argon2Backend {
16
+
17
+ readonly id: string;
18
+
19
+ argon2id(password: Uint8Array, salt: Uint8Array, params: Argon2BackendParams): Uint8Array;
20
+ }
21
+
22
+ interface RecoveryEnvelope {
23
+ readonly accountSlug: Slug;
24
+ readonly sealedMnemonic: Uint8Array;
25
+ readonly createdAt: number;
26
+ }
27
+
28
+ declare function sealMnemonic(accountSlug: Slug, mnemonic: string, workspacePassword: string, opts?: {
29
+ kdf?: Argon2Backend;
30
+ }): RecoveryEnvelope;
31
+
32
+ declare function openMnemonic(envelope: RecoveryEnvelope, workspacePassword: string, opts?: {
33
+ expectedSlug?: Slug;
34
+ kdf?: Argon2Backend;
35
+ }): string;
7
36
 
8
37
  type StorageDurability = "persistent" | "best-effort";
9
38
  interface IdbProviderOptions {
@@ -318,4 +347,4 @@ interface AssetInit {
318
347
  }
319
348
  declare const BUILTIN_ASSETS: Record<string, ReadonlyArray<AssetInit>>;
320
349
 
321
- export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, AssetCollection, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, ChainClient, type ChainClientBroadcastOpts, type ChainClientOpts, type ChainClientSimulateOpts, type ChainCtx, ChainDialect, ChainVM, Cipher, ContainerProvider, type CurveName, DbProvider, DestinationGuardOptions, DestinationReport, type DigestSigner, EvmAddress, EvmTxBuildParams, FileProvider, type IdbDestroyOptions, IdbProvider, type IdbProviderOptions, type MessageEncoding, Network, type NetworkConfig, type PasswordCheckContext, type PasswordCheckResult, PasswordPolicy, type PasswordPolicyOptions, PasswordScore, type PasswordWeakness, type PasswordWeaknessCode, Provider, RawTx, Record$1 as Record, RecordType, type RecoveredSecpSig, SendRoute, SimulationResult, Slug, type StorageDurability, type StorageQuota, SvmAddress, SvmAddressLookupTable, SvmTxBuildParams, Transaction, TransferPayload, TransferRequest, VmToken, argon2BackendInfo, closeAllRpcClients, registerDialect };
350
+ export { AesGcmCipher, type AesGcmCipherOptions, type Argon2Backend, type Argon2BackendInfo, type Argon2BackendParams, Argon2Kdf, type Argon2KdfOptions, AssetCollection, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, ChainClient, type ChainClientBroadcastOpts, type ChainClientOpts, type ChainClientSimulateOpts, type ChainCtx, ChainDialect, ChainVM, Cipher, ContainerProvider, type CurveName, DbProvider, DestinationGuardOptions, DestinationReport, type DigestSigner, EvmAddress, EvmTxBuildParams, FileProvider, type IdbDestroyOptions, IdbProvider, type IdbProviderOptions, type MessageEncoding, Network, type NetworkConfig, type PasswordCheckContext, type PasswordCheckResult, PasswordPolicy, type PasswordPolicyOptions, PasswordScore, type PasswordWeakness, type PasswordWeaknessCode, Provider, RawTx, Record$1 as Record, RecordType, type RecoveredSecpSig, type RecoveryEnvelope, SendRoute, SimulationResult, Slug, type StorageDurability, type StorageQuota, SvmAddress, SvmAddressLookupTable, SvmTxBuildParams, Transaction, TransferPayload, TransferRequest, VmToken, argon2BackendInfo, closeAllRpcClients, openMnemonic, registerDialect, sealMnemonic };