From aa4edb1d2461f7ca890c4aaadbdd47e76c71fbbc Mon Sep 17 00:00:00 2001 From: alvrs Date: Fri, 2 Aug 2024 18:39:43 +0100 Subject: [PATCH 1/4] add Redstone BridgedUSDC --- README.md | 1 + data/BridgedUSDC/data.json | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index af8c0f361..837757170 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ We currently accept tokens on the following chains: - `pgn` - `lisk` - `lisk-sepolia` +- `redstone` #### Non-bridgable tokens diff --git a/data/BridgedUSDC/data.json b/data/BridgedUSDC/data.json index e45e61c03..96fd81823 100644 --- a/data/BridgedUSDC/data.json +++ b/data/BridgedUSDC/data.json @@ -22,6 +22,13 @@ "name": "Bridged USDC", "symbol": "USDC.e" } + }, + "redstone": { + "address": "0xD5d59fC063e7548b6015A36fEb10B875924A19be", + "overrides": { + "name": "Bridged USDC (Lattice)", + "symbol": "USDC.e" + } } } } From 1f199741d39244a7ad43796efeaa557f75e9bbd4 Mon Sep 17 00:00:00 2001 From: alvrs Date: Mon, 5 Aug 2024 19:18:23 +0100 Subject: [PATCH 2/4] configure redstone --- src/chains.ts | 18 +++++++++++++++++- src/schemas.ts | 2 ++ src/types.ts | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/chains.ts b/src/chains.ts index ebb94cf51..554b445cd 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -51,6 +51,14 @@ export const NETWORK_DATA: Record = { ), layer: 2, }, + 'redstone': { + id: 690, + name: 'Redstone', + provider: new ethers.providers.StaticJsonRpcProvider( + 'https://rpc.redstonechain.com' + ), + layer: 2 + }, sepolia: { id: 11155111, name: 'Sepolia', @@ -92,7 +100,7 @@ export const NETWORK_DATA: Record = { 'https://rpc.sepolia-api.lisk.com' ), layer: 2, - }, + } } interface L2BridgeInformation { @@ -123,6 +131,9 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record< lisk: { l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', }, + 'redstone': { + l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010' + }, 'optimism-sepolia': { l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', }, @@ -143,6 +154,7 @@ export const L2_TO_L1_PAIR: Partial> = { pgn: 'ethereum', mode: 'ethereum', lisk: 'ethereum', + redstone: 'ethereum', 'optimism-sepolia': 'sepolia', 'base-sepolia': 'sepolia', 'pgn-sepolia': 'sepolia', @@ -174,6 +186,10 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record< l2Chain: 'lisk', l1StandardBridgeAddress: '0x2658723Bf70c7667De6B25F99fcce13A16D25d08', }, + { + l2Chain: 'redstone', + l1StandardBridgeAddress: '0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69', + }, ], sepolia: [ { diff --git a/src/schemas.ts b/src/schemas.ts index 3e056cb69..885f043cc 100644 --- a/src/schemas.ts +++ b/src/schemas.ts @@ -65,6 +65,7 @@ export const TOKEN_DATA_SCHEMA = { lisk: TOKEN_SCHEMA, mode: TOKEN_SCHEMA, pgn: TOKEN_SCHEMA, + redstone: TOKEN_SCHEMA, sepolia: TOKEN_SCHEMA, 'base-sepolia': TOKEN_SCHEMA, 'optimism-sepolia': TOKEN_SCHEMA, @@ -78,6 +79,7 @@ export const TOKEN_DATA_SCHEMA = { { required: ['mode'] }, { required: ['pgn'] }, { required: ['lisk'] }, + { required: ['redstone'] }, { required: ['sepolia'] }, { required: ['base-sepolia'] }, { required: ['optimism-sepolia'] }, diff --git a/src/types.ts b/src/types.ts index b04942aad..38b61d127 100644 --- a/src/types.ts +++ b/src/types.ts @@ -31,6 +31,7 @@ export type Chain = | 'mode' | 'lisk' | 'lisk-sepolia' + | 'redstone' const l2Chains = [ 'optimism', @@ -42,6 +43,7 @@ const l2Chains = [ 'mode', 'lisk', 'lisk-sepolia', + 'redstone' ] as const export type L2Chain = typeof l2Chains[number] From 3d00bc6aafefb7ac5fa0826a100ea2fce26edff8 Mon Sep 17 00:00:00 2001 From: alvrs Date: Tue, 6 Aug 2024 12:44:34 +0100 Subject: [PATCH 3/4] override bridge due to missing ILegacyMintableERC20 support --- data/BridgedUSDC/data.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/BridgedUSDC/data.json b/data/BridgedUSDC/data.json index 96fd81823..fb807df53 100644 --- a/data/BridgedUSDC/data.json +++ b/data/BridgedUSDC/data.json @@ -27,7 +27,8 @@ "address": "0xD5d59fC063e7548b6015A36fEb10B875924A19be", "overrides": { "name": "Bridged USDC (Lattice)", - "symbol": "USDC.e" + "symbol": "USDC.e", + "bridge": "0x4200000000000000000000000000000000000010" } } } From d6edded4306fc7579f6d0a1f2b7498894ba71fb7 Mon Sep 17 00:00:00 2001 From: alvarius Date: Tue, 6 Aug 2024 12:45:36 +0100 Subject: [PATCH 4/4] Update src/chains.ts --- src/chains.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chains.ts b/src/chains.ts index 554b445cd..8e857a394 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -100,7 +100,7 @@ export const NETWORK_DATA: Record = { 'https://rpc.sepolia-api.lisk.com' ), layer: 2, - } + }, } interface L2BridgeInformation {