@veridex/sdk 1.1.3 → 1.1.4
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/dist/auth/prepareAuth.js +25 -25
- package/dist/auth/prepareAuth.js.map +1 -1
- package/dist/auth/prepareAuth.mjs +6 -6
- package/dist/chains/aptos/index.js.map +1 -1
- package/dist/chains/aptos/index.mjs +3 -3
- package/dist/chains/avalanche/index.js.map +1 -1
- package/dist/chains/avalanche/index.mjs +4 -4
- package/dist/chains/evm/index.js.map +1 -1
- package/dist/chains/evm/index.mjs +3 -3
- package/dist/chains/solana/index.js.map +1 -1
- package/dist/chains/solana/index.mjs +3 -3
- package/dist/chains/stacks/index.js.map +1 -1
- package/dist/chains/stacks/index.mjs +3 -3
- package/dist/chains/starknet/index.d.mts +1 -1
- package/dist/chains/starknet/index.js.map +1 -1
- package/dist/chains/starknet/index.mjs +3 -3
- package/dist/chains/stellar/index.mjs +2 -2
- package/dist/chains/sui/index.js.map +1 -1
- package/dist/chains/sui/index.mjs +3 -3
- package/dist/{chunk-6JULIESG.mjs → chunk-5FH67KLG.mjs} +2 -2
- package/dist/{chunk-UPO55SBK.mjs → chunk-6QYJKK4L.mjs} +2 -2
- package/dist/{chunk-CSU4IV2F.mjs → chunk-7KN6Y4GX.mjs} +2 -2
- package/dist/{chunk-CTYDGO6E.mjs → chunk-BJH5HJL5.mjs} +2 -2
- package/dist/{chunk-E3SU36C2.mjs → chunk-D57UJ4L5.mjs} +2 -2
- package/dist/{chunk-TPEP6XUA.mjs → chunk-DQOW3G7M.mjs} +2 -2
- package/dist/{chunk-YYT3V7CI.mjs → chunk-GEVTBQH2.mjs} +2 -2
- package/dist/{chunk-5FDOTI5G.mjs → chunk-GXJUY2SC.mjs} +2 -2
- package/dist/{chunk-RD6ZYUVG.mjs → chunk-KYOOTSRA.mjs} +8 -8
- package/dist/{chunk-RD6ZYUVG.mjs.map → chunk-KYOOTSRA.mjs.map} +1 -1
- package/dist/{chunk-GOWXQPTW.mjs → chunk-NVRAQPSF.mjs} +3 -3
- package/dist/{chunk-2TS375ET.mjs → chunk-QVTADARB.mjs} +2 -2
- package/dist/{chunk-E5HHE7IW.mjs → chunk-USVZH4QC.mjs} +2 -2
- package/dist/{chunk-EFIXFA6V.mjs → chunk-VABK3ID3.mjs} +2 -2
- package/dist/{chunk-ICGB3AHI.mjs → chunk-XDIIFIW6.mjs} +2 -2
- package/dist/{chunk-GM5DKEHD.mjs → chunk-ZNIVNPGF.mjs} +2 -2
- package/dist/{chunk-GM5DKEHD.mjs.map → chunk-ZNIVNPGF.mjs.map} +1 -1
- package/dist/{chunk-M3GUNREX.mjs → chunk-ZXMTPBSP.mjs} +19 -19
- package/dist/{chunk-M3GUNREX.mjs.map → chunk-ZXMTPBSP.mjs.map} +1 -1
- package/dist/constants.js +7 -7
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -20
- package/dist/index.mjs.map +1 -1
- package/dist/passkey.mjs +3 -3
- package/dist/payload.js.map +1 -1
- package/dist/payload.mjs +2 -2
- package/dist/portfolio-W2FQ2G3O.mjs +13 -0
- package/dist/queries/index.js +7 -7
- package/dist/queries/index.js.map +1 -1
- package/dist/queries/index.mjs +5 -5
- package/dist/utils.js +7 -7
- package/dist/utils.js.map +1 -1
- package/dist/utils.mjs +2 -2
- package/dist/wormhole.js.map +1 -1
- package/dist/wormhole.mjs +2 -2
- package/package.json +4 -4
- package/dist/portfolio-JA4OTF7Y.mjs +0 -13
- /package/dist/{chunk-6JULIESG.mjs.map → chunk-5FH67KLG.mjs.map} +0 -0
- /package/dist/{chunk-UPO55SBK.mjs.map → chunk-6QYJKK4L.mjs.map} +0 -0
- /package/dist/{chunk-CSU4IV2F.mjs.map → chunk-7KN6Y4GX.mjs.map} +0 -0
- /package/dist/{chunk-CTYDGO6E.mjs.map → chunk-BJH5HJL5.mjs.map} +0 -0
- /package/dist/{chunk-E3SU36C2.mjs.map → chunk-D57UJ4L5.mjs.map} +0 -0
- /package/dist/{chunk-TPEP6XUA.mjs.map → chunk-DQOW3G7M.mjs.map} +0 -0
- /package/dist/{chunk-YYT3V7CI.mjs.map → chunk-GEVTBQH2.mjs.map} +0 -0
- /package/dist/{chunk-5FDOTI5G.mjs.map → chunk-GXJUY2SC.mjs.map} +0 -0
- /package/dist/{chunk-GOWXQPTW.mjs.map → chunk-NVRAQPSF.mjs.map} +0 -0
- /package/dist/{chunk-2TS375ET.mjs.map → chunk-QVTADARB.mjs.map} +0 -0
- /package/dist/{chunk-E5HHE7IW.mjs.map → chunk-USVZH4QC.mjs.map} +0 -0
- /package/dist/{chunk-EFIXFA6V.mjs.map → chunk-VABK3ID3.mjs.map} +0 -0
- /package/dist/{chunk-ICGB3AHI.mjs.map → chunk-XDIIFIW6.mjs.map} +0 -0
- /package/dist/{portfolio-JA4OTF7Y.mjs.map → portfolio-W2FQ2G3O.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -15,22 +15,22 @@ import {
|
|
|
15
15
|
isMultiHubEnabled,
|
|
16
16
|
resetFeatureFlags,
|
|
17
17
|
setFeatureFlags
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZXMTPBSP.mjs";
|
|
19
19
|
import {
|
|
20
20
|
EVMHubClientAdapter
|
|
21
21
|
} from "./chunk-V636MIV3.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SolanaClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QVTADARB.mjs";
|
|
25
25
|
import {
|
|
26
26
|
AptosClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GXJUY2SC.mjs";
|
|
28
28
|
import {
|
|
29
29
|
SuiClient
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-D57UJ4L5.mjs";
|
|
31
31
|
import {
|
|
32
32
|
StarknetClient
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZNIVNPGF.mjs";
|
|
34
34
|
import {
|
|
35
35
|
STACKS_ACTION_TYPES,
|
|
36
36
|
StacksClient,
|
|
@@ -58,13 +58,13 @@ import {
|
|
|
58
58
|
parseContractPrincipal,
|
|
59
59
|
rsToCompactSignature,
|
|
60
60
|
validatePostConditions
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-7KN6Y4GX.mjs";
|
|
62
62
|
import {
|
|
63
63
|
AvalancheClient
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-5FH67KLG.mjs";
|
|
65
65
|
import {
|
|
66
66
|
EVMClient
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-USVZH4QC.mjs";
|
|
68
68
|
import {
|
|
69
69
|
CONSISTENCY_LEVELS,
|
|
70
70
|
GUARDIAN_CONFIG,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
supportsRelayer,
|
|
88
88
|
validateEmitter,
|
|
89
89
|
waitForGuardianSignatures
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-6QYJKK4L.mjs";
|
|
91
91
|
import {
|
|
92
92
|
buildChallenge,
|
|
93
93
|
buildGaslessChallenge,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
parseAmount,
|
|
112
112
|
solanaAddressToBytes32,
|
|
113
113
|
trimTo20Bytes
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-DQOW3G7M.mjs";
|
|
115
115
|
import {
|
|
116
116
|
ARBITRUM_SEPOLIA_TOKENS,
|
|
117
117
|
BASE_SEPOLIA_TOKENS,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
getTokenBySymbol,
|
|
130
130
|
getTokenList,
|
|
131
131
|
isNativeToken
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-GEVTBQH2.mjs";
|
|
133
133
|
import {
|
|
134
134
|
PasskeyManager,
|
|
135
135
|
VERIDEX_RP_ID,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
detectRpId,
|
|
138
138
|
normalizeRelayerOrigin,
|
|
139
139
|
supportsRelatedOrigins
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-BJH5HJL5.mjs";
|
|
141
141
|
import {
|
|
142
142
|
base64URLDecode,
|
|
143
143
|
base64URLEncode,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
isValidWormholeChainId,
|
|
154
154
|
parseDERSignature,
|
|
155
155
|
retryWithBackoff
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-VABK3ID3.mjs";
|
|
157
157
|
import {
|
|
158
158
|
ACTION_BRIDGE,
|
|
159
159
|
ACTION_CONFIG,
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
WORMHOLE_API,
|
|
170
170
|
WORMHOLE_CHAIN_IDS,
|
|
171
171
|
WORMHOLE_CHAIN_IDS_FLAT
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-KYOOTSRA.mjs";
|
|
173
173
|
|
|
174
174
|
// src/core/BalanceManager.ts
|
|
175
175
|
import { ethers } from "ethers";
|
|
@@ -3822,8 +3822,8 @@ var TESTNET_CHAINS2 = [
|
|
|
3822
3822
|
chainId: 84532,
|
|
3823
3823
|
wormholeChainId: 10004,
|
|
3824
3824
|
rpcUrl: "https://sepolia.base.org",
|
|
3825
|
-
hubAddress: "
|
|
3826
|
-
vaultFactory: "
|
|
3825
|
+
hubAddress: "0xD5D29b6EaeE6FF4b765e704298a7e48D22607059",
|
|
3826
|
+
vaultFactory: "0xb25b73D5FeD5693dcd1Bb78f8e33387B59A022EC",
|
|
3827
3827
|
isHub: true
|
|
3828
3828
|
},
|
|
3829
3829
|
{
|
|
@@ -3831,14 +3831,14 @@ var TESTNET_CHAINS2 = [
|
|
|
3831
3831
|
chainId: 11155420,
|
|
3832
3832
|
wormholeChainId: 10005,
|
|
3833
3833
|
rpcUrl: "https://sepolia.optimism.io",
|
|
3834
|
-
vaultFactory: "
|
|
3834
|
+
vaultFactory: "0x3c5e4aCdC8Cd53ae5ae603B4c511885191fBb868"
|
|
3835
3835
|
},
|
|
3836
3836
|
{
|
|
3837
3837
|
name: "Arbitrum Sepolia",
|
|
3838
3838
|
chainId: 421614,
|
|
3839
3839
|
wormholeChainId: 10003,
|
|
3840
3840
|
rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
|
|
3841
|
-
vaultFactory: "
|
|
3841
|
+
vaultFactory: "0xB9C3e6bad3c6f26956be4a4bb5a366376Fd3045D"
|
|
3842
3842
|
}
|
|
3843
3843
|
];
|
|
3844
3844
|
var MAINNET_CHAINS2 = [
|
|
@@ -5305,7 +5305,7 @@ var VeridexSDK = class {
|
|
|
5305
5305
|
const wormholeChainId = chainConfig.wormholeChainId;
|
|
5306
5306
|
const tokenList = getAllTokens(wormholeChainId);
|
|
5307
5307
|
const erc20Tokens = tokenList.filter((t) => !isNativeToken(t.address)).map((t) => t.address);
|
|
5308
|
-
const { queryPortfolio } = await import("./portfolio-
|
|
5308
|
+
const { queryPortfolio } = await import("./portfolio-W2FQ2G3O.mjs");
|
|
5309
5309
|
const result = await queryPortfolio(credential.keyHash, this.queryApiKey, {
|
|
5310
5310
|
network: this.testnet ? "testnet" : "mainnet",
|
|
5311
5311
|
vaultAddresses: { [wormholeChainId]: vaultAddress },
|
|
@@ -5668,7 +5668,7 @@ var VeridexSDK = class {
|
|
|
5668
5668
|
const tokenList = getAllTokens(wormholeChainId);
|
|
5669
5669
|
const erc20Tokens = tokenList.filter((t) => !isNativeToken(t.address)).map((t) => t.address);
|
|
5670
5670
|
const rpcUrl = this.chainRpcUrls?.[wormholeChainId] ?? chainConfig.rpcUrl;
|
|
5671
|
-
const { queryPortfolio } = await import("./portfolio-
|
|
5671
|
+
const { queryPortfolio } = await import("./portfolio-W2FQ2G3O.mjs");
|
|
5672
5672
|
const result = await queryPortfolio(credential.keyHash, this.queryApiKey, {
|
|
5673
5673
|
network: this.testnet ? "testnet" : "mainnet",
|
|
5674
5674
|
vaultAddresses: { [wormholeChainId]: vaultAddress },
|