@veridex/sdk 1.0.0-beta.10 → 1.0.0-beta.11
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/chains/aptos/index.js.map +1 -1
- package/dist/chains/aptos/index.mjs.map +1 -1
- package/dist/chains/evm/index.js +2 -2
- package/dist/chains/evm/index.js.map +1 -1
- package/dist/chains/evm/index.mjs +2 -2
- package/dist/chains/evm/index.mjs.map +1 -1
- package/dist/chains/solana/index.js.map +1 -1
- package/dist/chains/solana/index.mjs.map +1 -1
- package/dist/chains/starknet/index.js.map +1 -1
- package/dist/chains/starknet/index.mjs.map +1 -1
- package/dist/chains/sui/index.js.map +1 -1
- package/dist/chains/sui/index.mjs.map +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/constants.mjs.map +1 -1
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -6
- package/dist/index.mjs.map +1 -1
- package/dist/payload.js.map +1 -1
- package/dist/payload.mjs.map +1 -1
- package/dist/queries/index.js +8 -0
- package/dist/queries/index.js.map +1 -1
- package/dist/queries/index.mjs +8 -0
- package/dist/queries/index.mjs.map +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/utils.mjs.map +1 -1
- package/dist/wormhole.js.map +1 -1
- package/dist/wormhole.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -562,7 +562,7 @@ var WORMHOLE_API = {
|
|
|
562
562
|
var HUB_ABI = [
|
|
563
563
|
"function authenticateAndDispatch((bytes authenticatorData, string clientDataJSON, uint256 challengeIndex, uint256 typeIndex, uint256 r, uint256 s) auth, uint256 publicKeyX, uint256 publicKeyY, uint16 targetChain, bytes actionPayload) external payable returns (uint64 sequence)",
|
|
564
564
|
"function authenticateRawAndDispatch(uint256 r, uint256 s, bytes32 messageHash, uint256 publicKeyX, uint256 publicKeyY, uint16 targetChain, bytes actionPayload, uint256 nonce) external payable returns (uint64 sequence)",
|
|
565
|
-
"function
|
|
565
|
+
"function userNonces(bytes32 userKeyHash) external view returns (uint256)",
|
|
566
566
|
"function encodeTransferAction(address token, address recipient, uint256 amount) external pure returns (bytes)",
|
|
567
567
|
"function encodeExecuteAction(address target, uint256 value, bytes data) external pure returns (bytes)",
|
|
568
568
|
"function encodeBridgeAction(bytes32 token, uint256 amount, uint16 targetChain, bytes32 recipient) external pure returns (bytes)",
|
|
@@ -1713,6 +1713,14 @@ var OPTIMISM_SEPOLIA_TOKENS = {
|
|
|
1713
1713
|
address: "0x4200000000000000000000000000000000000006",
|
|
1714
1714
|
decimals: 18,
|
|
1715
1715
|
isNative: false
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
symbol: "WETH.base",
|
|
1719
|
+
name: "Wrapped WETH (Base via Wormhole)",
|
|
1720
|
+
address: "0xD408f6498f48aE11BcAb518dA39cF7940eE3271d",
|
|
1721
|
+
// Wormhole-wrapped Base WETH
|
|
1722
|
+
decimals: 18,
|
|
1723
|
+
isNative: false
|
|
1716
1724
|
}
|
|
1717
1725
|
]
|
|
1718
1726
|
};
|
|
@@ -1785,6 +1793,8 @@ var DEFAULT_RPC_URLS = {
|
|
|
1785
1793
|
var TESTNET_TOKEN_PRICES = {
|
|
1786
1794
|
ETH: 2500,
|
|
1787
1795
|
WETH: 2500,
|
|
1796
|
+
"WETH.BASE": 2500,
|
|
1797
|
+
// Wormhole-wrapped Base WETH
|
|
1788
1798
|
USDC: 1,
|
|
1789
1799
|
USDT: 1,
|
|
1790
1800
|
DAI: 1,
|
|
@@ -7695,7 +7705,8 @@ var TESTNET_CHAINS2 = [
|
|
|
7695
7705
|
chainId: 84532,
|
|
7696
7706
|
wormholeChainId: 10004,
|
|
7697
7707
|
rpcUrl: "https://sepolia.base.org",
|
|
7698
|
-
hubAddress: "
|
|
7708
|
+
hubAddress: "0x66D87dE68327f48A099c5B9bE97020Feab9a7c82",
|
|
7709
|
+
vaultFactory: "0xCFaEb5652aa2Ee60b2229dC8895B4159749C7e53",
|
|
7699
7710
|
isHub: true
|
|
7700
7711
|
},
|
|
7701
7712
|
{
|
|
@@ -7703,14 +7714,14 @@ var TESTNET_CHAINS2 = [
|
|
|
7703
7714
|
chainId: 11155420,
|
|
7704
7715
|
wormholeChainId: 10005,
|
|
7705
7716
|
rpcUrl: "https://sepolia.optimism.io",
|
|
7706
|
-
vaultFactory: "
|
|
7717
|
+
vaultFactory: "0xA5653d54079ABeCe780F8d9597B2bc4B09fe464A"
|
|
7707
7718
|
},
|
|
7708
7719
|
{
|
|
7709
7720
|
name: "Arbitrum Sepolia",
|
|
7710
7721
|
chainId: 421614,
|
|
7711
7722
|
wormholeChainId: 10003,
|
|
7712
7723
|
rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
|
|
7713
|
-
vaultFactory: "
|
|
7724
|
+
vaultFactory: "0xd36D3D5DB59d78f1E33813490F72DABC15C9B07c"
|
|
7714
7725
|
}
|
|
7715
7726
|
];
|
|
7716
7727
|
var MAINNET_CHAINS2 = [
|
|
@@ -10010,7 +10021,7 @@ var ERC20_ABI2 = [
|
|
|
10010
10021
|
];
|
|
10011
10022
|
var HUB_ABI2 = [
|
|
10012
10023
|
"function dispatch(tuple(bytes authenticatorData, string clientDataJSON, uint256 challengeIndex, uint256 typeIndex, uint256 r, uint256 s) signature, uint256 publicKeyX, uint256 publicKeyY, uint16 targetChain, bytes actionPayload, uint256 nonce) payable returns (uint64 sequence)",
|
|
10013
|
-
"function
|
|
10024
|
+
"function userNonces(bytes32 userKeyHash) view returns (uint256)",
|
|
10014
10025
|
"function getMessageFee() view returns (uint256)",
|
|
10015
10026
|
"function getVaultAddress(bytes32 userKeyHash) view returns (address)",
|
|
10016
10027
|
"function vaultExists(bytes32 userKeyHash) view returns (bool)",
|
|
@@ -10096,7 +10107,7 @@ var EVMClient = class {
|
|
|
10096
10107
|
return this.config;
|
|
10097
10108
|
}
|
|
10098
10109
|
async getNonce(userKeyHash) {
|
|
10099
|
-
const nonce = await this.hubContract.
|
|
10110
|
+
const nonce = await this.hubContract.userNonces(userKeyHash);
|
|
10100
10111
|
return BigInt(nonce.toString());
|
|
10101
10112
|
}
|
|
10102
10113
|
/**
|