From 1c4e05c9d1ae3585e28fed6c531c838e5dfff849 Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Mon, 15 Jul 2024 15:23:14 +0100 Subject: [PATCH 1/4] feat: added Lumia Testnet network --- src/config/chains.json | 13 +++++++++++++ src/config/envs.json | 18 ++++++++++++++++++ src/constants/chains.ts | 1 + src/constants/networkCodes.ts | 2 +- src/constants/uppercasedNetworkCodes.ts | 2 +- src/types.ts | 1 + 6 files changed, 35 insertions(+), 2 deletions(-) diff --git a/src/config/chains.json b/src/config/chains.json index 5d2b030..3b673ed 100644 --- a/src/config/chains.json +++ b/src/config/chains.json @@ -77,6 +77,19 @@ "curveRegistry": "" } }, + "1952959480": { + "chainId": "1952959480", + "explorer": "https://testnet-explorer.lumia.org/", + "label": "Lumia Testnet", + "shortName": "Lumia Testnet", + "code": "lumia", + "rpc": "https://testnet-rpc.lumia.org", + "baseCurrencyName": "LUMIA", + "contracts": { + "WETH": "0x1a1aF9C78704D3a0Ab9e031C92E7bd808711A582", + "curveRegistry": "" + } + }, "42161": { "chainId": "42161", "explorer": "https://arbiscan.io/", diff --git a/src/config/envs.json b/src/config/envs.json index 112577e..789cb5c 100644 --- a/src/config/envs.json +++ b/src/config/envs.json @@ -262,6 +262,24 @@ "http": "/orion-indexer/" } } + }, + "1952959480": { + "api": "https://testing.orion.xyz/lumia-testnet", + "services": { + "aggregator": { + "http": "/backend", + "ws": "/v1" + }, + "blockchain": { + "http": "" + }, + "priceFeed": { + "all": "/price-feed" + }, + "indexer": { + "http": "/orion-indexer/" + } + } } } }, diff --git a/src/constants/chains.ts b/src/constants/chains.ts index 969f15d..0219047 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -4,6 +4,7 @@ export const developmentChains = [ SupportedChainId.BSC_TESTNET, SupportedChainId.SEPOLIA, SupportedChainId.EVENT_HORIZON_TESTNET, + SupportedChainId.LUMIA_TESTNET, ]; export const productionChains = [ SupportedChainId.MAINNET, diff --git a/src/constants/networkCodes.ts b/src/constants/networkCodes.ts index 498e149..76e0d93 100644 --- a/src/constants/networkCodes.ts +++ b/src/constants/networkCodes.ts @@ -1 +1 @@ -export default ['ftm', 'bsc', 'eth', 'polygon', 'okc', 'arb', 'drip', 'opbnb', 'inevm', 'linea', 'avax', 'base'] as const; +export default ['ftm', 'bsc', 'eth', 'polygon', 'okc', 'arb', 'drip', 'opbnb', 'inevm', 'linea', 'avax', 'base', 'lumia'] as const; diff --git a/src/constants/uppercasedNetworkCodes.ts b/src/constants/uppercasedNetworkCodes.ts index e69605f..9c8e9f2 100644 --- a/src/constants/uppercasedNetworkCodes.ts +++ b/src/constants/uppercasedNetworkCodes.ts @@ -1 +1 @@ -export default ['FTM', 'BSC', 'ETH', 'POLYGON', 'OKC', 'ARB', 'OPBNB', 'INEVM', 'LINEA', 'AVAX', 'BASE'] as const; +export default ['FTM', 'BSC', 'ETH', 'POLYGON', 'OKC', 'ARB', 'OPBNB', 'INEVM', 'LINEA', 'AVAX', 'BASE', 'LUMIA'] as const; diff --git a/src/types.ts b/src/types.ts index f9639e6..602f593 100644 --- a/src/types.ts +++ b/src/types.ts @@ -96,6 +96,7 @@ export enum SupportedChainId { BSC_TESTNET = '97', SEPOLIA = '11155111', EVENT_HORIZON_TESTNET = '123420000034', + LUMIA_TESTNET = '1952959480', // For testing and debug purpose // BROKEN = '0', From 6728e104d399296947b1bd06c0712a8d54daca91 Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Mon, 15 Jul 2024 15:24:18 +0100 Subject: [PATCH 2/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2286c17..8588ce6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.22.12", + "version": "0.22.13", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", From d6848864ee19ebf7357f9768e6c2f03799f62601 Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Tue, 16 Jul 2024 09:52:06 +0100 Subject: [PATCH 3/4] feat: removed Drip network --- src/constants/networkCodes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants/networkCodes.ts b/src/constants/networkCodes.ts index 76e0d93..74a3dae 100644 --- a/src/constants/networkCodes.ts +++ b/src/constants/networkCodes.ts @@ -1 +1 @@ -export default ['ftm', 'bsc', 'eth', 'polygon', 'okc', 'arb', 'drip', 'opbnb', 'inevm', 'linea', 'avax', 'base', 'lumia'] as const; +export default ['ftm', 'bsc', 'eth', 'polygon', 'okc', 'arb', 'opbnb', 'inevm', 'linea', 'avax', 'base', 'lumia'] as const; From 0fa1c2552bd6ca1e67aef9569d68b75c69a49b65 Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Tue, 16 Jul 2024 09:53:10 +0100 Subject: [PATCH 4/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8588ce6..bd57f9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.22.13", + "version": "0.22.14", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js",