Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: orionprotocol/sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.22.18
Choose a base ref
...
head repository: orionprotocol/sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Jan 21, 2025

  1. fix: changed rpc for eth to a public one (#268)

    * fix: changed rpc for eth to a public one
    
    * fix: version fix
    mikrowelt authored Jan 21, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9e3689b View commit details
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +1 −1 src/config/chains.json
  3. +1 −1 src/crypt/signOrder.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
2 changes: 1 addition & 1 deletion src/config/chains.json
Original file line number Diff line number Diff line change
@@ -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",
2 changes: 1 addition & 1 deletion src/crypt/signOrder.ts
Original file line number Diff line number Diff line change
@@ -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;