Merge branch 'main' into OP-5059-gas-limit-from-ob

# Conflicts:
#	package.json
This commit is contained in:
Mikhail Gladchenko
2024-03-06 09:40:08 +00:00
9 changed files with 111 additions and 8 deletions

4
package-lock.json generated
View File

@@ -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": {

View File

@@ -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",

View File

@@ -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": ""
}
} }
} }

View File

@@ -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/"
}
}
} }
} }
}, },

View File

@@ -17,4 +17,6 @@ export const productionChains = [
SupportedChainId.OKC, SupportedChainId.OKC,
SupportedChainId.ARBITRUM, SupportedChainId.ARBITRUM,
SupportedChainId.OPBNB, SupportedChainId.OPBNB,
SupportedChainId.INEVM,
SupportedChainId.LINEA,
]; ];

View File

@@ -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;

View File

@@ -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;

View File

@@ -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(),
}); });

View File

@@ -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',