wative-core 2.5.0 → 2.5.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 +9 -0
- package/README.md +9 -7
- 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-DMZGR5MP.d.ts → container-provider-CBBJbpUn.d.ts} +1 -1
- package/dist/{container-provider-BCG7wTYx.d.cts → container-provider-COvXmCLM.d.cts} +1 -1
- package/dist/{evm-BZoe2IFx.d.ts → evm-Dk4ceFz0.d.ts} +1 -1
- package/dist/{evm-BeI4m7M5.d.cts → evm-V5Fn53uW.d.cts} +1 -1
- package/dist/{file-sink-CuPr45EN.d.ts → file-sink-Bf9mpegF.d.ts} +2 -2
- package/dist/{file-sink-BLqWAqHB.d.cts → file-sink-BjbtAHUL.d.cts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- 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-Bi74PhrA.d.cts → svm-CjNIJZ4l.d.cts} +1 -1
- package/dist/{svm-BQMaUXEA.d.ts → svm-D8zsWS64.d.ts} +1 -1
- package/dist/{workspace-ZNpsa6W7.d.cts → workspace-DqUdScht.d.cts} +14 -2
- package/dist/{workspace-ZNpsa6W7.d.ts → workspace-DqUdScht.d.ts} +14 -2
- package/examples/20-custom-chain-dialect.test.cjs +6 -6
- package/examples/21-token-transfer.test.cjs +13 -13
- package/examples/README.md +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as Provider, z as RecordType, F as Slug, R as Record$1, E as EvmAddress, G as SvmAddress,
|
|
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 ConsoleSink, l as ContainerState, m as EvmRawTx, n as EvmSigner, o as EvmTransaction, q as EvmTxType, L as LogLevel, r as LogRecord, s as LogSink, t as Logger, u as LoggerConfig, v as NetworkCollection, w as NetworkInit, x as NetworkLike, O as OpenOptions, y as RecordInit, S as Settling, B as SimulationResult, D as SinkConfig, H as SvmSigner, I as SvmTransaction, K as TransactionReceipt, M as TransactionStateChange, Q as TransactionStatus, U as TransactionTracker,
|
|
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, z as RecordType, F as Slug, R as Record$1, E as EvmAddress, G as SvmAddress, a4 as SuiAddress, X as VmToken, N as Network, f as AssetCollection, p as EvmTxBuildParams, J as SvmTxBuildParams, T as Transaction, W as TransferRequest, V as TransferPayload, j as ChainVM } from './workspace-DqUdScht.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 ConsoleSink, l as ContainerState, m as EvmRawTx, n as EvmSigner, o as EvmTransaction, q as EvmTxType, L as LogLevel, r as LogRecord, s as LogSink, t as Logger, u as LoggerConfig, v as NetworkCollection, w as NetworkInit, x as NetworkLike, O as OpenOptions, y as RecordInit, S as Settling, B as SimulationResult, D as SinkConfig, H as SvmSigner, I as SvmTransaction, K as TransactionReceipt, M as TransactionStateChange, Q as TransactionStatus, U as TransactionTracker, Y as Wallet, Z as WalletCollection, _ as WativeError, $ as WativeErrorCode, a0 as WativeErrorOpts, a1 as Workspace, a2 as WorkspaceConfig, a3 as newMnemonic } from './workspace-DqUdScht.cjs';
|
|
3
|
+
import { a as ContainerProvider } from './container-provider-COvXmCLM.cjs';
|
|
4
|
+
export { C as ContainerEntry } from './container-provider-COvXmCLM.cjs';
|
|
5
|
+
export { A as AbiItem, C as Contract } from './evm-V5Fn53uW.cjs';
|
|
6
|
+
export { P as Program, S as SvmInstruction } from './svm-CjNIJZ4l.cjs';
|
|
7
7
|
|
|
8
8
|
type StorageDurability = "persistent" | "best-effort";
|
|
9
9
|
interface IdbProviderOptions {
|
|
@@ -220,7 +220,7 @@ declare abstract class ChainDialect {
|
|
|
220
220
|
structHash: string;
|
|
221
221
|
};
|
|
222
222
|
abstract buildTransaction(ctx: ChainCtx, params: EvmTxBuildParams | SvmTxBuildParams): Transaction;
|
|
223
|
-
abstract
|
|
223
|
+
abstract buildTransferPayload(ctx: ChainCtx, req: TransferRequest): TransferPayload;
|
|
224
224
|
|
|
225
225
|
abstract derive(seed: Uint8Array, index: number): {
|
|
226
226
|
publicKey: string;
|
|
@@ -258,4 +258,4 @@ interface AssetInit {
|
|
|
258
258
|
}
|
|
259
259
|
declare const BUILTIN_ASSETS: Record<string, ReadonlyArray<AssetInit>>;
|
|
260
260
|
|
|
261
|
-
export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, AssetCollection, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, type ChainCtx, ChainDialect, ChainVM, Cipher, ContainerProvider, type CurveName, DbProvider, 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, Record$1 as Record, RecordType, type RecoveredSecpSig, Slug, type StorageDurability, type StorageQuota, SvmAddress, SvmTxBuildParams, Transaction, TransferRequest, VmToken, argon2BackendInfo, closeAllRpcClients, registerDialect };
|
|
261
|
+
export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, AssetCollection, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, type ChainCtx, ChainDialect, ChainVM, Cipher, ContainerProvider, type CurveName, DbProvider, 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, Record$1 as Record, RecordType, type RecoveredSecpSig, Slug, type StorageDurability, type StorageQuota, SvmAddress, SvmTxBuildParams, Transaction, TransferPayload, TransferRequest, VmToken, argon2BackendInfo, closeAllRpcClients, registerDialect };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as Provider, z as RecordType, F as Slug, R as Record$1, E as EvmAddress, G as SvmAddress,
|
|
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 ConsoleSink, l as ContainerState, m as EvmRawTx, n as EvmSigner, o as EvmTransaction, q as EvmTxType, L as LogLevel, r as LogRecord, s as LogSink, t as Logger, u as LoggerConfig, v as NetworkCollection, w as NetworkInit, x as NetworkLike, O as OpenOptions, y as RecordInit, S as Settling, B as SimulationResult, D as SinkConfig, H as SvmSigner, I as SvmTransaction, K as TransactionReceipt, M as TransactionStateChange, Q as TransactionStatus, U as TransactionTracker,
|
|
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, z as RecordType, F as Slug, R as Record$1, E as EvmAddress, G as SvmAddress, a4 as SuiAddress, X as VmToken, N as Network, f as AssetCollection, p as EvmTxBuildParams, J as SvmTxBuildParams, T as Transaction, W as TransferRequest, V as TransferPayload, j as ChainVM } from './workspace-DqUdScht.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 ConsoleSink, l as ContainerState, m as EvmRawTx, n as EvmSigner, o as EvmTransaction, q as EvmTxType, L as LogLevel, r as LogRecord, s as LogSink, t as Logger, u as LoggerConfig, v as NetworkCollection, w as NetworkInit, x as NetworkLike, O as OpenOptions, y as RecordInit, S as Settling, B as SimulationResult, D as SinkConfig, H as SvmSigner, I as SvmTransaction, K as TransactionReceipt, M as TransactionStateChange, Q as TransactionStatus, U as TransactionTracker, Y as Wallet, Z as WalletCollection, _ as WativeError, $ as WativeErrorCode, a0 as WativeErrorOpts, a1 as Workspace, a2 as WorkspaceConfig, a3 as newMnemonic } from './workspace-DqUdScht.js';
|
|
3
|
+
import { a as ContainerProvider } from './container-provider-CBBJbpUn.js';
|
|
4
|
+
export { C as ContainerEntry } from './container-provider-CBBJbpUn.js';
|
|
5
|
+
export { A as AbiItem, C as Contract } from './evm-Dk4ceFz0.js';
|
|
6
|
+
export { P as Program, S as SvmInstruction } from './svm-D8zsWS64.js';
|
|
7
7
|
|
|
8
8
|
type StorageDurability = "persistent" | "best-effort";
|
|
9
9
|
interface IdbProviderOptions {
|
|
@@ -220,7 +220,7 @@ declare abstract class ChainDialect {
|
|
|
220
220
|
structHash: string;
|
|
221
221
|
};
|
|
222
222
|
abstract buildTransaction(ctx: ChainCtx, params: EvmTxBuildParams | SvmTxBuildParams): Transaction;
|
|
223
|
-
abstract
|
|
223
|
+
abstract buildTransferPayload(ctx: ChainCtx, req: TransferRequest): TransferPayload;
|
|
224
224
|
|
|
225
225
|
abstract derive(seed: Uint8Array, index: number): {
|
|
226
226
|
publicKey: string;
|
|
@@ -258,4 +258,4 @@ interface AssetInit {
|
|
|
258
258
|
}
|
|
259
259
|
declare const BUILTIN_ASSETS: Record<string, ReadonlyArray<AssetInit>>;
|
|
260
260
|
|
|
261
|
-
export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, AssetCollection, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, type ChainCtx, ChainDialect, ChainVM, Cipher, ContainerProvider, type CurveName, DbProvider, 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, Record$1 as Record, RecordType, type RecoveredSecpSig, Slug, type StorageDurability, type StorageQuota, SvmAddress, SvmTxBuildParams, Transaction, TransferRequest, VmToken, argon2BackendInfo, closeAllRpcClients, registerDialect };
|
|
261
|
+
export { AesGcmCipher, type AesGcmCipherOptions, type Argon2BackendInfo, Argon2Kdf, type Argon2KdfOptions, AssetCollection, type AssetInit, BUILTIN_ASSETS, BUILTIN_NETWORKS, type ChainCtx, ChainDialect, ChainVM, Cipher, ContainerProvider, type CurveName, DbProvider, 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, Record$1 as Record, RecordType, type RecoveredSecpSig, Slug, type StorageDurability, type StorageQuota, SvmAddress, SvmTxBuildParams, Transaction, TransferPayload, TransferRequest, VmToken, argon2BackendInfo, closeAllRpcClients, registerDialect };
|