@venusprotocol/chains 0.11.0 → 0.12.0
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/build/index.d.mts +2 -1
- package/build/index.mjs +8 -5
- package/package.json +1 -1
package/build/index.d.mts
CHANGED
|
@@ -74,6 +74,7 @@ declare const IMAGES_DIR_PATH = "src/images";
|
|
|
74
74
|
declare const viemChains: Record<ChainId, Chain$1>;
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/chains/chainMetadata/index.d.ts
|
|
77
|
+
declare const opBnbTestnetFourierForkTimestamp: Date;
|
|
77
78
|
declare const chains: { [chainId in ChainId]: Chain };
|
|
78
79
|
//#endregion
|
|
79
80
|
//#region src/tokens/underlyingTokens/index.d.ts
|
|
@@ -105,4 +106,4 @@ declare const getRpcUrls: ({
|
|
|
105
106
|
alchemyApiKey: string;
|
|
106
107
|
}) => { [chainId in ChainId]: string[] };
|
|
107
108
|
//#endregion
|
|
108
|
-
export { Chain, ChainId, GetTokenInput, IMAGES_DIR_NAME, IMAGES_DIR_PATH, MainnetChainId, NATIVE_TOKEN_ADDRESS, TestnetChainId, Token, VToken, bnb, chains, eth, getRpcUrls, getToken, tokens, vTokens, viemChains };
|
|
109
|
+
export { Chain, ChainId, GetTokenInput, IMAGES_DIR_NAME, IMAGES_DIR_PATH, MainnetChainId, NATIVE_TOKEN_ADDRESS, TestnetChainId, Token, VToken, bnb, chains, eth, getRpcUrls, getToken, opBnbTestnetFourierForkTimestamp, tokens, vTokens, viemChains };
|
package/build/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ function defineChain(chain) {
|
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region ../../node_modules/viem/_esm/errors/version.js
|
|
63
|
-
const version = "2.38.
|
|
63
|
+
const version = "2.38.4";
|
|
64
64
|
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region ../../node_modules/viem/_esm/errors/base.js
|
|
@@ -804,6 +804,7 @@ function formatTransactionRequest(request, _) {
|
|
|
804
804
|
if (typeof request.blobs !== "undefined") if (typeof request.blobs[0] !== "string") rpcRequest.blobs = request.blobs.map((x) => bytesToHex(x));
|
|
805
805
|
else rpcRequest.blobs = request.blobs;
|
|
806
806
|
if (typeof request.data !== "undefined") rpcRequest.data = request.data;
|
|
807
|
+
if (request.account) rpcRequest.from = request.account.address;
|
|
807
808
|
if (typeof request.from !== "undefined") rpcRequest.from = request.from;
|
|
808
809
|
if (typeof request.gas !== "undefined") rpcRequest.gas = numberToHex(request.gas);
|
|
809
810
|
if (typeof request.gasPrice !== "undefined") rpcRequest.gasPrice = numberToHex(request.gasPrice);
|
|
@@ -3451,7 +3452,7 @@ const sepolia$2 = /* @__PURE__ */ defineChain({
|
|
|
3451
3452
|
symbol: "ETH",
|
|
3452
3453
|
decimals: 18
|
|
3453
3454
|
},
|
|
3454
|
-
rpcUrls: { default: { http: ["https://
|
|
3455
|
+
rpcUrls: { default: { http: ["https://11155111.rpc.thirdweb.com"] } },
|
|
3455
3456
|
blockExplorers: { default: {
|
|
3456
3457
|
name: "Etherscan",
|
|
3457
3458
|
url: "https://sepolia.etherscan.io",
|
|
@@ -4220,6 +4221,8 @@ const bnb = {
|
|
|
4220
4221
|
|
|
4221
4222
|
//#endregion
|
|
4222
4223
|
//#region src/chains/chainMetadata/index.ts
|
|
4224
|
+
const opBnbTestnetFourierForkTimestamp = /* @__PURE__ */ new Date("2025-10-06 03:00:00 AM UTC");
|
|
4225
|
+
const isPassedOpBnbTestnetFourierFork = /* @__PURE__ */ new Date() >= opBnbTestnetFourierForkTimestamp;
|
|
4223
4226
|
const chains = {
|
|
4224
4227
|
[ChainId.BSC_MAINNET]: {
|
|
4225
4228
|
name: "BNB Chain",
|
|
@@ -4257,8 +4260,8 @@ const chains = {
|
|
|
4257
4260
|
iconSrc: iconSrcs$1.opBnb,
|
|
4258
4261
|
explorerUrl: "https://testnet.opbnbscan.com",
|
|
4259
4262
|
layerZeroScanUrl: "https://testnet.layerzeroscan.com",
|
|
4260
|
-
blockTimeMs: 500,
|
|
4261
|
-
blocksPerDay: 172800,
|
|
4263
|
+
blockTimeMs: isPassedOpBnbTestnetFourierFork ? 250 : 500,
|
|
4264
|
+
blocksPerDay: isPassedOpBnbTestnetFourierFork ? 345600 : 172800,
|
|
4262
4265
|
corePoolComptrollerContractAddress: "0x2FCABb31E57F010D623D8d68e1E18Aed11d5A388",
|
|
4263
4266
|
nativeToken: bnb
|
|
4264
4267
|
},
|
|
@@ -8337,4 +8340,4 @@ const getRpcUrls = ({ nodeRealApiKey, alchemyApiKey }) => {
|
|
|
8337
8340
|
};
|
|
8338
8341
|
|
|
8339
8342
|
//#endregion
|
|
8340
|
-
export { ChainId, IMAGES_DIR_NAME, IMAGES_DIR_PATH, MainnetChainId, NATIVE_TOKEN_ADDRESS, TestnetChainId, bnb, chains, eth, getRpcUrls, getToken, tokens, vTokens, viemChains };
|
|
8343
|
+
export { ChainId, IMAGES_DIR_NAME, IMAGES_DIR_PATH, MainnetChainId, NATIVE_TOKEN_ADDRESS, TestnetChainId, bnb, chains, eth, getRpcUrls, getToken, opBnbTestnetFourierForkTimestamp, tokens, vTokens, viemChains };
|