From 9e3689bd1b7fafd57310475654bff49d35d92083 Mon Sep 17 00:00:00 2001 From: Andrew Saenkov Date: Tue, 21 Jan 2025 17:33:26 +0700 Subject: [PATCH] fix: changed rpc for eth to a public one (#268) * fix: changed rpc for eth to a public one * fix: version fix --- package.json | 2 +- src/config/chains.json | 2 +- src/crypt/signOrder.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9244276..cfbad59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.22.17", + "version": "0.22.18", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/config/chains.json b/src/config/chains.json index 4a3f0e9..0ee1874 100644 --- a/src/config/chains.json +++ b/src/config/chains.json @@ -5,7 +5,7 @@ "label": "Ethereum", "shortName": "ETH", "code": "eth", - "rpc": "https://trade.orion.xyz/eth-mainnet/rpc", + "rpc": "https://ethereum-rpc.publicnode.com", "baseCurrencyName": "ETH", "contracts": { "WETH": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", diff --git a/src/crypt/signOrder.ts b/src/crypt/signOrder.ts index 0187764..fca41a7 100644 --- a/src/crypt/signOrder.ts +++ b/src/crypt/signOrder.ts @@ -8,7 +8,7 @@ import normalizeNumber from '../utils/normalizeNumber.js'; import getDomainData from './getDomainData.js'; import hashOrder from './hashOrder.js'; -const DEFAULT_EXPIRATION = 365 * 24 * 60 * 60 * 1000; // 365 days +const DEFAULT_EXPIRATION = 29 * 24 * 60 * 60 * 1000; // 29 days type SignerWithTypedDataSign = ethers.Signer & TypedDataSigner;