wative-core 2.5.7 → 2.5.8
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 +11 -0
- package/README.md +6 -1
- 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-sRxvigzk.d.cts → container-provider-CZ8KFTjR.d.cts} +1 -1
- package/dist/{container-provider-CqpIaus8.d.ts → container-provider-MsxU8Fv_.d.ts} +1 -1
- package/dist/{evm-hYUvjm9n.d.cts → evm-CUET-BZi.d.cts} +1 -1
- package/dist/{evm-KpZ3cLDe.d.ts → evm-CsE3-oyu.d.ts} +1 -1
- package/dist/{file-sink-B94nIe1u.d.cts → file-sink-jxjpuv0b.d.cts} +2 -2
- package/dist/{file-sink-Di2hJA5x.d.ts → file-sink-m_9jqKTY.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- 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-DYpcdzPR.d.ts → svm-Cc8p6lK7.d.ts} +1 -1
- package/dist/{svm-B88JqNxb.d.cts → svm-DtTozGHY.d.cts} +1 -1
- package/dist/{workspace-g-1DGOHJ.d.cts → workspace-Bln1maQ9.d.cts} +12 -6
- package/dist/{workspace-g-1DGOHJ.d.ts → workspace-Bln1maQ9.d.ts} +12 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Address, a8 as SvmTxBuildParams, a7 as SvmTransaction, N as Network, a5 as SvmAddressLookupTable } from './workspace-
|
|
1
|
+
import { c as Address, a8 as SvmTxBuildParams, a7 as SvmTransaction, N as Network, a5 as SvmAddressLookupTable } from './workspace-Bln1maQ9.js';
|
|
2
2
|
|
|
3
3
|
declare function svmResolveAddressLookupTables(network: Network, addresses: readonly string[]): Promise<SvmAddressLookupTable[]>;
|
|
4
4
|
interface SvmInstruction {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Address, a8 as SvmTxBuildParams, a7 as SvmTransaction, N as Network, a5 as SvmAddressLookupTable } from './workspace-
|
|
1
|
+
import { c as Address, a8 as SvmTxBuildParams, a7 as SvmTransaction, N as Network, a5 as SvmAddressLookupTable } from './workspace-Bln1maQ9.cjs';
|
|
2
2
|
|
|
3
3
|
declare function svmResolveAddressLookupTables(network: Network, addresses: readonly string[]): Promise<SvmAddressLookupTable[]>;
|
|
4
4
|
interface SvmInstruction {
|
|
@@ -121,6 +121,8 @@ declare class Network {
|
|
|
121
121
|
|
|
122
122
|
get symbol(): string;
|
|
123
123
|
|
|
124
|
+
get defaultRpcUrl(): string;
|
|
125
|
+
|
|
124
126
|
get assets(): NetworkAssetCollection;
|
|
125
127
|
|
|
126
128
|
save(): Promise<void>;
|
|
@@ -169,10 +171,9 @@ type Brand<T, B extends string> = T & {
|
|
|
169
171
|
type Slug = Brand<string, "Slug">;
|
|
170
172
|
type EvmAddress = Brand<string, "EvmAddress">;
|
|
171
173
|
type SvmAddress = Brand<string, "SvmAddress">;
|
|
172
|
-
type SuiAddress = Brand<string, "SuiAddress">;
|
|
173
174
|
type ChainId = Brand<number, "ChainId">;
|
|
174
175
|
type AssetId = Brand<number, "AssetId">;
|
|
175
|
-
type ChainVM = "evm" | "svm"
|
|
176
|
+
type ChainVM = "evm" | "svm";
|
|
176
177
|
type VmToken = ChainVM | (string & {});
|
|
177
178
|
|
|
178
179
|
type NetworkLike = Network | ChainId | string;
|
|
@@ -678,7 +679,7 @@ declare class SvmTransaction implements Transaction {
|
|
|
678
679
|
}
|
|
679
680
|
|
|
680
681
|
interface AddressInit {
|
|
681
|
-
publicKey: EvmAddress | SvmAddress
|
|
682
|
+
publicKey: EvmAddress | SvmAddress;
|
|
682
683
|
vm: VmToken;
|
|
683
684
|
network: Network;
|
|
684
685
|
ciphertext: string;
|
|
@@ -722,7 +723,7 @@ interface SignRawOptions {
|
|
|
722
723
|
}
|
|
723
724
|
declare class Address {
|
|
724
725
|
#private;
|
|
725
|
-
readonly publicKey: EvmAddress | SvmAddress
|
|
726
|
+
readonly publicKey: EvmAddress | SvmAddress;
|
|
726
727
|
readonly vm: VmToken;
|
|
727
728
|
readonly network: Network;
|
|
728
729
|
readonly assets: AssetCollection;
|
|
@@ -811,7 +812,10 @@ declare class Wallet {
|
|
|
811
812
|
_setAddresses(addresses: Address[]): void;
|
|
812
813
|
get evm(): EvmSigner | null;
|
|
813
814
|
get svm(): SvmSigner | null;
|
|
814
|
-
|
|
815
|
+
|
|
816
|
+
get vm(): VmToken;
|
|
817
|
+
|
|
818
|
+
get address(): Address | null;
|
|
815
819
|
|
|
816
820
|
toJson(): ReadonlyArray<{
|
|
817
821
|
vm: VmToken;
|
|
@@ -950,6 +954,8 @@ declare class Account {
|
|
|
950
954
|
|
|
951
955
|
_enqueueMutation<T>(fn: () => Promise<T>): Promise<T>;
|
|
952
956
|
|
|
957
|
+
_resolveNetworkForVm(vm: VmToken, explicit?: NetworkLike): Network;
|
|
958
|
+
|
|
953
959
|
_restoreUnlockPassword(pwd: string | null): void;
|
|
954
960
|
|
|
955
961
|
_isDisabledSlot(index: number): boolean;
|
|
@@ -1123,4 +1129,4 @@ declare class Workspace {
|
|
|
1123
1129
|
}>;
|
|
1124
1130
|
}
|
|
1125
1131
|
|
|
1126
|
-
export { type SignInResult as $, Account as A, EvmTxType as B, type ChainId as C, type DecodedTx as D, type EvmAddress as E, type LogRecord as F, type LogSink as G, Logger as H, type LoggerConfig as I, type NetworkAssetCollection as J, type NetworkCollection as K, type LogLevel as L, type NetworkInit as M, Network as N, type NetworkLike as O, type NetworkRoutes as P, type NormalizedTx as Q, type OpenOptions as R, Provider as S, type RawTx as T, Record$1 as U, type RecordInit as V, type RecordType as W, type SendOptions as X, type SendRoute as Y, type Settling as Z, type SignInParams as _, type AccountCollection as a, type SignRawOptions as a0, type SimulationResult as a1, type SinkConfig as a2, type Slug as a3, type SvmAddress as a4, type SvmAddressLookupTable as a5, SvmSigner as a6, SvmTransaction as a7, type SvmTxBuildParams as a8, type Transaction as a9, type TransactionReceipt as aa, type TransactionStateChange as ab, type TransactionStatus as ac, type TransactionTracker as ad, type TransferPayload as ae, type TransferRequest as af, type VmToken as ag, Wallet as ah, type WalletCollection as ai, WativeError as aj, type WativeErrorCode as ak, type WativeErrorOpts as al, Workspace as am, type WorkspaceConfig as an, deserializeEvmTx as ao, deserializeSvmTx as ap, deserializeTx as aq, isRawTx as ar, newMnemonic as as, normalizeTxInput as at, type
|
|
1132
|
+
export { type SignInResult as $, Account as A, EvmTxType as B, type ChainId as C, type DecodedTx as D, type EvmAddress as E, type LogRecord as F, type LogSink as G, Logger as H, type LoggerConfig as I, type NetworkAssetCollection as J, type NetworkCollection as K, type LogLevel as L, type NetworkInit as M, Network as N, type NetworkLike as O, type NetworkRoutes as P, type NormalizedTx as Q, type OpenOptions as R, Provider as S, type RawTx as T, Record$1 as U, type RecordInit as V, type RecordType as W, type SendOptions as X, type SendRoute as Y, type Settling as Z, type SignInParams as _, type AccountCollection as a, type SignRawOptions as a0, type SimulationResult as a1, type SinkConfig as a2, type Slug as a3, type SvmAddress as a4, type SvmAddressLookupTable as a5, SvmSigner as a6, SvmTransaction as a7, type SvmTxBuildParams as a8, type Transaction as a9, type TransactionReceipt as aa, type TransactionStateChange as ab, type TransactionStatus as ac, type TransactionTracker as ad, type TransferPayload as ae, type TransferRequest as af, type VmToken as ag, Wallet as ah, type WalletCollection as ai, WativeError as aj, type WativeErrorCode as ak, type WativeErrorOpts as al, Workspace as am, type WorkspaceConfig as an, deserializeEvmTx as ao, deserializeSvmTx as ap, deserializeTx as aq, isRawTx as ar, newMnemonic as as, normalizeTxInput as at, type AccountOrgType as b, Address as c, Asset as d, type AssetAddInit as e, type AssetBalance as f, type AssetCollection as g, type AssetId as h, type AssetInitObject as i, type AssetRef as j, type AssetUpdate as k, type ChainVM as l, type Commitment as m, ConsoleSink as n, type ContainerState as o, type DestinationCode as p, type DestinationGuardOptions as q, type DestinationReport as r, type DestinationScreenResult as s, type DestinationScreener as t, type DestinationSeverity as u, type DestinationWarning as v, type EvmRawTx as w, EvmSigner as x, EvmTransaction as y, type EvmTxBuildParams as z };
|
|
@@ -121,6 +121,8 @@ declare class Network {
|
|
|
121
121
|
|
|
122
122
|
get symbol(): string;
|
|
123
123
|
|
|
124
|
+
get defaultRpcUrl(): string;
|
|
125
|
+
|
|
124
126
|
get assets(): NetworkAssetCollection;
|
|
125
127
|
|
|
126
128
|
save(): Promise<void>;
|
|
@@ -169,10 +171,9 @@ type Brand<T, B extends string> = T & {
|
|
|
169
171
|
type Slug = Brand<string, "Slug">;
|
|
170
172
|
type EvmAddress = Brand<string, "EvmAddress">;
|
|
171
173
|
type SvmAddress = Brand<string, "SvmAddress">;
|
|
172
|
-
type SuiAddress = Brand<string, "SuiAddress">;
|
|
173
174
|
type ChainId = Brand<number, "ChainId">;
|
|
174
175
|
type AssetId = Brand<number, "AssetId">;
|
|
175
|
-
type ChainVM = "evm" | "svm"
|
|
176
|
+
type ChainVM = "evm" | "svm";
|
|
176
177
|
type VmToken = ChainVM | (string & {});
|
|
177
178
|
|
|
178
179
|
type NetworkLike = Network | ChainId | string;
|
|
@@ -678,7 +679,7 @@ declare class SvmTransaction implements Transaction {
|
|
|
678
679
|
}
|
|
679
680
|
|
|
680
681
|
interface AddressInit {
|
|
681
|
-
publicKey: EvmAddress | SvmAddress
|
|
682
|
+
publicKey: EvmAddress | SvmAddress;
|
|
682
683
|
vm: VmToken;
|
|
683
684
|
network: Network;
|
|
684
685
|
ciphertext: string;
|
|
@@ -722,7 +723,7 @@ interface SignRawOptions {
|
|
|
722
723
|
}
|
|
723
724
|
declare class Address {
|
|
724
725
|
#private;
|
|
725
|
-
readonly publicKey: EvmAddress | SvmAddress
|
|
726
|
+
readonly publicKey: EvmAddress | SvmAddress;
|
|
726
727
|
readonly vm: VmToken;
|
|
727
728
|
readonly network: Network;
|
|
728
729
|
readonly assets: AssetCollection;
|
|
@@ -811,7 +812,10 @@ declare class Wallet {
|
|
|
811
812
|
_setAddresses(addresses: Address[]): void;
|
|
812
813
|
get evm(): EvmSigner | null;
|
|
813
814
|
get svm(): SvmSigner | null;
|
|
814
|
-
|
|
815
|
+
|
|
816
|
+
get vm(): VmToken;
|
|
817
|
+
|
|
818
|
+
get address(): Address | null;
|
|
815
819
|
|
|
816
820
|
toJson(): ReadonlyArray<{
|
|
817
821
|
vm: VmToken;
|
|
@@ -950,6 +954,8 @@ declare class Account {
|
|
|
950
954
|
|
|
951
955
|
_enqueueMutation<T>(fn: () => Promise<T>): Promise<T>;
|
|
952
956
|
|
|
957
|
+
_resolveNetworkForVm(vm: VmToken, explicit?: NetworkLike): Network;
|
|
958
|
+
|
|
953
959
|
_restoreUnlockPassword(pwd: string | null): void;
|
|
954
960
|
|
|
955
961
|
_isDisabledSlot(index: number): boolean;
|
|
@@ -1123,4 +1129,4 @@ declare class Workspace {
|
|
|
1123
1129
|
}>;
|
|
1124
1130
|
}
|
|
1125
1131
|
|
|
1126
|
-
export { type SignInResult as $, Account as A, EvmTxType as B, type ChainId as C, type DecodedTx as D, type EvmAddress as E, type LogRecord as F, type LogSink as G, Logger as H, type LoggerConfig as I, type NetworkAssetCollection as J, type NetworkCollection as K, type LogLevel as L, type NetworkInit as M, Network as N, type NetworkLike as O, type NetworkRoutes as P, type NormalizedTx as Q, type OpenOptions as R, Provider as S, type RawTx as T, Record$1 as U, type RecordInit as V, type RecordType as W, type SendOptions as X, type SendRoute as Y, type Settling as Z, type SignInParams as _, type AccountCollection as a, type SignRawOptions as a0, type SimulationResult as a1, type SinkConfig as a2, type Slug as a3, type SvmAddress as a4, type SvmAddressLookupTable as a5, SvmSigner as a6, SvmTransaction as a7, type SvmTxBuildParams as a8, type Transaction as a9, type TransactionReceipt as aa, type TransactionStateChange as ab, type TransactionStatus as ac, type TransactionTracker as ad, type TransferPayload as ae, type TransferRequest as af, type VmToken as ag, Wallet as ah, type WalletCollection as ai, WativeError as aj, type WativeErrorCode as ak, type WativeErrorOpts as al, Workspace as am, type WorkspaceConfig as an, deserializeEvmTx as ao, deserializeSvmTx as ap, deserializeTx as aq, isRawTx as ar, newMnemonic as as, normalizeTxInput as at, type
|
|
1132
|
+
export { type SignInResult as $, Account as A, EvmTxType as B, type ChainId as C, type DecodedTx as D, type EvmAddress as E, type LogRecord as F, type LogSink as G, Logger as H, type LoggerConfig as I, type NetworkAssetCollection as J, type NetworkCollection as K, type LogLevel as L, type NetworkInit as M, Network as N, type NetworkLike as O, type NetworkRoutes as P, type NormalizedTx as Q, type OpenOptions as R, Provider as S, type RawTx as T, Record$1 as U, type RecordInit as V, type RecordType as W, type SendOptions as X, type SendRoute as Y, type Settling as Z, type SignInParams as _, type AccountCollection as a, type SignRawOptions as a0, type SimulationResult as a1, type SinkConfig as a2, type Slug as a3, type SvmAddress as a4, type SvmAddressLookupTable as a5, SvmSigner as a6, SvmTransaction as a7, type SvmTxBuildParams as a8, type Transaction as a9, type TransactionReceipt as aa, type TransactionStateChange as ab, type TransactionStatus as ac, type TransactionTracker as ad, type TransferPayload as ae, type TransferRequest as af, type VmToken as ag, Wallet as ah, type WalletCollection as ai, WativeError as aj, type WativeErrorCode as ak, type WativeErrorOpts as al, Workspace as am, type WorkspaceConfig as an, deserializeEvmTx as ao, deserializeSvmTx as ap, deserializeTx as aq, isRawTx as ar, newMnemonic as as, normalizeTxInput as at, type AccountOrgType as b, Address as c, Asset as d, type AssetAddInit as e, type AssetBalance as f, type AssetCollection as g, type AssetId as h, type AssetInitObject as i, type AssetRef as j, type AssetUpdate as k, type ChainVM as l, type Commitment as m, ConsoleSink as n, type ContainerState as o, type DestinationCode as p, type DestinationGuardOptions as q, type DestinationReport as r, type DestinationScreenResult as s, type DestinationScreener as t, type DestinationSeverity as u, type DestinationWarning as v, type EvmRawTx as w, EvmSigner as x, EvmTransaction as y, type EvmTxBuildParams as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wative-core",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.8",
|
|
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",
|