mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Merge branch 'main' into OP-5059-gas-limit-from-ob
# Conflicts: # package.json
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@orionprotocol/sdk",
|
"name": "@orionprotocol/sdk",
|
||||||
"version": "0.20.60",
|
"version": "0.20.64",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@orionprotocol/sdk",
|
"name": "@orionprotocol/sdk",
|
||||||
"version": "0.20.60",
|
"version": "0.20.64",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@orionprotocol/sdk",
|
"name": "@orionprotocol/sdk",
|
||||||
"version": "0.20.61-rc101",
|
"version": "0.20.61-rc102",
|
||||||
"description": "Orion Protocol SDK",
|
"description": "Orion Protocol SDK",
|
||||||
"main": "./lib/index.cjs",
|
"main": "./lib/index.cjs",
|
||||||
"module": "./lib/index.js",
|
"module": "./lib/index.js",
|
||||||
|
|||||||
@@ -47,7 +47,8 @@
|
|||||||
"rpc": "https://opbnb-mainnet-rpc.bnbchain.org",
|
"rpc": "https://opbnb-mainnet-rpc.bnbchain.org",
|
||||||
"baseCurrencyName": "BNB",
|
"baseCurrencyName": "BNB",
|
||||||
"contracts": {
|
"contracts": {
|
||||||
"WETH": "0x4200000000000000000000000000000000000006"
|
"WETH": "0x4200000000000000000000000000000000000006",
|
||||||
|
"curveRegistry": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"3": {
|
"3": {
|
||||||
@@ -192,5 +193,31 @@
|
|||||||
"WETH": "",
|
"WETH": "",
|
||||||
"curveRegistry": ""
|
"curveRegistry": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"2525": {
|
||||||
|
"chainId": "2525",
|
||||||
|
"label": "inEVM",
|
||||||
|
"shortName": "inEVM",
|
||||||
|
"code": "inevm",
|
||||||
|
"baseCurrencyName": "INJ",
|
||||||
|
"rpc": "https://inevm.calderachain.xyz/http/",
|
||||||
|
"explorer": "https://explorer.injective.network/",
|
||||||
|
"contracts": {
|
||||||
|
"WETH": "0x4C3A213bd5e8c4BD70a8396d6F3C8302571598Cd",
|
||||||
|
"curveRegistry": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"59144": {
|
||||||
|
"chainId": "59144",
|
||||||
|
"label": "Linea",
|
||||||
|
"shortName": "Linea",
|
||||||
|
"code": "linea",
|
||||||
|
"baseCurrencyName": "ETH",
|
||||||
|
"rpc": "https://rpc.linea.build/",
|
||||||
|
"explorer": "https://lineascan.build/",
|
||||||
|
"contracts": {
|
||||||
|
"WETH": "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f",
|
||||||
|
"curveRegistry": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,6 +129,42 @@
|
|||||||
"http": "/orion-indexer/"
|
"http": "/orion-indexer/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"2525": {
|
||||||
|
"api": "https://trade.orion.xyz/inevm-mainnet",
|
||||||
|
"services": {
|
||||||
|
"aggregator": {
|
||||||
|
"http": "/backend",
|
||||||
|
"ws": "/v1"
|
||||||
|
},
|
||||||
|
"blockchain": {
|
||||||
|
"http": ""
|
||||||
|
},
|
||||||
|
"priceFeed": {
|
||||||
|
"all": "/price-feed"
|
||||||
|
},
|
||||||
|
"indexer": {
|
||||||
|
"http": "/orion-indexer/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"59144": {
|
||||||
|
"api": "https://trade.orion.xyz/linea-mainnet",
|
||||||
|
"services": {
|
||||||
|
"aggregator": {
|
||||||
|
"http": "/backend",
|
||||||
|
"ws": "/v1"
|
||||||
|
},
|
||||||
|
"blockchain": {
|
||||||
|
"http": ""
|
||||||
|
},
|
||||||
|
"priceFeed": {
|
||||||
|
"all": "/price-feed"
|
||||||
|
},
|
||||||
|
"indexer": {
|
||||||
|
"http": "/orion-indexer/"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -376,6 +412,42 @@
|
|||||||
"http": "/orion-indexer/"
|
"http": "/orion-indexer/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"2525": {
|
||||||
|
"api": "https://trade.orion.xyz/inevm-mainnet",
|
||||||
|
"services": {
|
||||||
|
"aggregator": {
|
||||||
|
"http": "/backend",
|
||||||
|
"ws": "/v1"
|
||||||
|
},
|
||||||
|
"blockchain": {
|
||||||
|
"http": ""
|
||||||
|
},
|
||||||
|
"priceFeed": {
|
||||||
|
"all": "/price-feed"
|
||||||
|
},
|
||||||
|
"indexer": {
|
||||||
|
"http": "/orion-indexer/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"59144": {
|
||||||
|
"api": "https://trade.orion.xyz/linea-mainnet",
|
||||||
|
"services": {
|
||||||
|
"aggregator": {
|
||||||
|
"http": "/backend",
|
||||||
|
"ws": "/v1"
|
||||||
|
},
|
||||||
|
"blockchain": {
|
||||||
|
"http": ""
|
||||||
|
},
|
||||||
|
"priceFeed": {
|
||||||
|
"all": "/price-feed"
|
||||||
|
},
|
||||||
|
"indexer": {
|
||||||
|
"http": "/orion-indexer/"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,4 +17,6 @@ export const productionChains = [
|
|||||||
SupportedChainId.OKC,
|
SupportedChainId.OKC,
|
||||||
SupportedChainId.ARBITRUM,
|
SupportedChainId.ARBITRUM,
|
||||||
SupportedChainId.OPBNB,
|
SupportedChainId.OPBNB,
|
||||||
|
SupportedChainId.INEVM,
|
||||||
|
SupportedChainId.LINEA,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export default ['ftm', 'bsc', 'eth', 'polygon', 'okc', 'arb', 'drip', 'opbnb'] as const;
|
export default ['ftm', 'bsc', 'eth', 'polygon', 'okc', 'arb', 'drip', 'opbnb', 'inevm', 'linea'] as const;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export default ['FTM', 'BSC', 'ETH', 'POLYGON', 'OKC', 'ARB'] as const;
|
export default ['FTM', 'BSC', 'ETH', 'POLYGON', 'OKC', 'ARB', 'OPBNB', 'INEVM', 'LINEA'] as const;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { z } from "zod";
|
import { z } from 'zod';
|
||||||
|
|
||||||
export const referralDataSchema = z.object({
|
export const referralDataSchema = z.object({
|
||||||
referer: z.string(),
|
referer: z.string().nullable(),
|
||||||
isReferral: z.boolean(),
|
isReferral: z.boolean(),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -88,6 +88,8 @@ export enum SupportedChainId {
|
|||||||
POLYGON = '137',
|
POLYGON = '137',
|
||||||
OKC = '66',
|
OKC = '66',
|
||||||
OPBNB = '204',
|
OPBNB = '204',
|
||||||
|
INEVM = '2525',
|
||||||
|
LINEA = '59144',
|
||||||
|
|
||||||
POLYGON_TESTNET = '80001',
|
POLYGON_TESTNET = '80001',
|
||||||
FANTOM_TESTNET = '4002',
|
FANTOM_TESTNET = '4002',
|
||||||
|
|||||||
Reference in New Issue
Block a user