From daebea4104802ee70f92eddc3172bdb564a319f3 Mon Sep 17 00:00:00 2001 From: Maura Wilder <560657+squdgy@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:28:32 -0400 Subject: [PATCH 01/14] feat: Add MetalL2 and MetalL2 testnet --- README.md | 2 ++ src/chains.ts | 32 ++++++++++++++++++++++++++++++++ src/schemas.ts | 4 ++++ src/types.ts | 6 +++++- 4 files changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 837757170..dbd4bd5d5 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,8 @@ We currently accept tokens on the following chains: - `lisk` - `lisk-sepolia` - `redstone` +- 'metall2' +- 'metall2-sepolia' #### Non-bridgable tokens diff --git a/src/chains.ts b/src/chains.ts index 8e857a394..54ccff951 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -59,6 +59,14 @@ export const NETWORK_DATA: Record = { ), layer: 2 }, + 'metall2': { + id: 1750, + name: 'Metal L2', + provider: new ethers.providers.StaticJsonRpcProvider( + 'https://rpc.metall2.com' + ), + layer: 2 + }, sepolia: { id: 11155111, name: 'Sepolia', @@ -101,6 +109,14 @@ export const NETWORK_DATA: Record = { ), layer: 2, }, + 'metall2-sepolia': { + id: 1740, + name: 'Metal L2 Sepolia', + provider: new ethers.providers.StaticJsonRpcProvider( + 'https://testnet.rpc.metall2.com' + ), + layer: 2, + }, } interface L2BridgeInformation { @@ -134,6 +150,9 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record< 'redstone': { l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010' }, + 'metall2': { + l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', + }, 'optimism-sepolia': { l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', }, @@ -146,6 +165,9 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record< 'lisk-sepolia': { l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', }, + 'metall2-sepolia': { + l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', + }, } export const L2_TO_L1_PAIR: Partial> = { @@ -155,10 +177,12 @@ export const L2_TO_L1_PAIR: Partial> = { mode: 'ethereum', lisk: 'ethereum', redstone: 'ethereum', + metall2: 'ethereum', 'optimism-sepolia': 'sepolia', 'base-sepolia': 'sepolia', 'pgn-sepolia': 'sepolia', 'lisk-sepolia': 'sepolia', + 'metall2-sepolia': 'ethereum', } export const L1_STANDARD_BRIDGE_INFORMATION: Record< @@ -190,6 +214,10 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record< l2Chain: 'redstone', l1StandardBridgeAddress: '0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69', }, + { + l2Chain: 'metall2', + l1StandardBridgeAddress: '0xAEb9E3dD0074A8dd19065f55235591c3Ac0c413E', + }, ], sepolia: [ { @@ -208,5 +236,9 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record< l2Chain: 'lisk-sepolia', l1StandardBridgeAddress: '0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5', }, + { + l2Chain: 'metall2-sepolia', + l1StandardBridgeAddress: '0xFA0EBa40F30338B50A08613Af2216f914Ae8a7B4', + }, ], } diff --git a/src/schemas.ts b/src/schemas.ts index 885f043cc..1d6c8fe69 100644 --- a/src/schemas.ts +++ b/src/schemas.ts @@ -66,10 +66,12 @@ export const TOKEN_DATA_SCHEMA = { mode: TOKEN_SCHEMA, pgn: TOKEN_SCHEMA, redstone: TOKEN_SCHEMA, + metall2: TOKEN_SCHEMA, sepolia: TOKEN_SCHEMA, 'base-sepolia': TOKEN_SCHEMA, 'optimism-sepolia': TOKEN_SCHEMA, 'lisk-sepolia': TOKEN_SCHEMA, + 'metall2-sepolia': TOKEN_SCHEMA, }, additionalProperties: false, anyOf: [ @@ -80,10 +82,12 @@ export const TOKEN_DATA_SCHEMA = { { required: ['pgn'] }, { required: ['lisk'] }, { required: ['redstone'] }, + { required: ['metall2'] }, { required: ['sepolia'] }, { required: ['base-sepolia'] }, { required: ['optimism-sepolia'] }, { required: ['lisk-sepolia'] }, + { required: ['metall2-sepolia'] }, ], }, }, diff --git a/src/types.ts b/src/types.ts index 38b61d127..dd00f8fbb 100644 --- a/src/types.ts +++ b/src/types.ts @@ -32,6 +32,8 @@ export type Chain = | 'lisk' | 'lisk-sepolia' | 'redstone' + | 'metall2' + | 'metall2-sepolia' const l2Chains = [ 'optimism', @@ -43,7 +45,9 @@ const l2Chains = [ 'mode', 'lisk', 'lisk-sepolia', - 'redstone' + 'redstone', + 'metall2', + 'metall2-sepolia' ] as const export type L2Chain = typeof l2Chains[number] From 4350b0b3369bca4aa40717d118a0c0559424b188 Mon Sep 17 00:00:00 2001 From: Maura Wilder <560657+squdgy@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:13:01 -0400 Subject: [PATCH 02/14] fix back ticks --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dbd4bd5d5..8e85b92f2 100644 --- a/README.md +++ b/README.md @@ -119,8 +119,8 @@ We currently accept tokens on the following chains: - `lisk` - `lisk-sepolia` - `redstone` -- 'metall2' -- 'metall2-sepolia' +- `metall2` +- `metall2-sepolia` #### Non-bridgable tokens From 59a754fbc9702eaef2d20fcfd0538bdbdeb4017f Mon Sep 17 00:00:00 2001 From: agent-dominatrix <128386379+agent-dominatrix@users.noreply.github.com> Date: Fri, 20 Sep 2024 01:19:27 +0530 Subject: [PATCH 03/14] feat: add support for ASI token (#936) * feat: add support for ASI * chore: add decimals and symbols * fix: add name and symbol overrides --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- data/ASI/data.json | 24 ++++++++++++++++++++++++ data/ASI/logo.svg | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 data/ASI/data.json create mode 100644 data/ASI/logo.svg diff --git a/data/ASI/data.json b/data/ASI/data.json new file mode 100644 index 000000000..16474f03e --- /dev/null +++ b/data/ASI/data.json @@ -0,0 +1,24 @@ +{ + "name": "ASI Alliance", + "decimals": 18, + "symbol": "ASI", + "description": "The ASI Alliance represents a significant shift toward a decentralized AI ecosystem, offering an alternative to AI development dominated by big tech. By pooling their resources and expertise, Fetch.ai, SingularityNET, and Ocean Protocol aim to foster innovation, transparency, and inclusivity in the development of advanced AI technologies.", + "website": "https://www.superintelligence.io/", + "twitter": "https://x.com/ASI_Alliance", + "tokens": { + "ethereum": { + "address": "0xaea46A60368A7bD060eec7DF8CBa43b7EF41Ad85", + "overrides": { + "name": "Fetch", + "symbol": "FET" + } + }, + "base": { + "address": "0x74F804B4140ee70830B3Eef4e690325841575F89", + "overrides": { + "name": "Fetch", + "symbol": "FET" + } + } + } +} \ No newline at end of file diff --git a/data/ASI/logo.svg b/data/ASI/logo.svg new file mode 100644 index 000000000..aa2070fd7 --- /dev/null +++ b/data/ASI/logo.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + From c3ade188eb6dc8c54ceaf6114be604afe2818221 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" Date: Thu, 19 Sep 2024 19:49:54 +0000 Subject: [PATCH 04/14] 10.0.127 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c781f4639..e26d722d8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eth-optimism/tokenlist", "description": "[Optimism] token list", - "version": "10.0.126", + "version": "10.0.127", "main": "dist/index.js", "module": "dist/index.mjs", "exports": { From 7e89dd85922d387610324db574e3b1d5fc2a004b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" Date: Thu, 19 Sep 2024 19:49:58 +0000 Subject: [PATCH 05/14] bot(ci): generate token list --- optimism.tokenlist.json | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/optimism.tokenlist.json b/optimism.tokenlist.json index fb8a55fd2..efc24db33 100644 --- a/optimism.tokenlist.json +++ b/optimism.tokenlist.json @@ -6,7 +6,7 @@ "layer2", "infrastructure" ], - "timestamp": "2024-09-18T02:40:07.859Z", + "timestamp": "2024-09-19T19:49:56.882Z", "tokens": [ { "chainId": 1, @@ -410,6 +410,32 @@ "opTokenId": "ARPA" } }, + { + "chainId": 1, + "address": "0xaea46A60368A7bD060eec7DF8CBa43b7EF41Ad85", + "name": "Fetch", + "symbol": "FET", + "decimals": 18, + "logoURI": "https://ethereum-optimism.github.io/data/ASI/logo.svg", + "extensions": { + "baseBridgeAddress": "0x3154Cf16ccdb4C6d922629664174b904d80F2C35", + "opListId": "extended", + "opTokenId": "ASI" + } + }, + { + "chainId": 8453, + "address": "0x74F804B4140ee70830B3Eef4e690325841575F89", + "name": "Fetch", + "symbol": "FET", + "decimals": 18, + "logoURI": "https://ethereum-optimism.github.io/data/ASI/logo.svg", + "extensions": { + "baseBridgeAddress": "0x4200000000000000000000000000000000000010", + "opListId": "extended", + "opTokenId": "ASI" + } + }, { "chainId": 1, "address": "0xA4fFdf3208F46898CE063e25c1C43056FA754739", @@ -9401,6 +9427,6 @@ "version": { "major": 10, "minor": 0, - "patch": 126 + "patch": 127 } } \ No newline at end of file From 0d7624af202b54b8f652a3934282e50b352b4a12 Mon Sep 17 00:00:00 2001 From: themandalore Date: Thu, 19 Sep 2024 15:57:23 -0400 Subject: [PATCH 06/14] add TRB networks for base (#923) * add base sepolia and base-sepolia * Update data.json * Update data.json - remove sepolia --------- Co-authored-by: Nicholas Fett Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- data/TRB/data.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/TRB/data.json b/data/TRB/data.json index fb7c0969f..4f6d03e02 100644 --- a/data/TRB/data.json +++ b/data/TRB/data.json @@ -8,6 +8,9 @@ }, "optimism": { "address": "0xaf8ca653fa2772d58f4368b0a71980e9e3ceb888" + }, + "base": { + "address": "0xF8e9E61FFB2b491f7DF29823a76009743671CD96" } } - } \ No newline at end of file + } From da14e401af84f98ebd791ec20952a6774abc2ff4 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" Date: Thu, 19 Sep 2024 19:57:46 +0000 Subject: [PATCH 07/14] 10.0.128 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e26d722d8..206507995 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eth-optimism/tokenlist", "description": "[Optimism] token list", - "version": "10.0.127", + "version": "10.0.128", "main": "dist/index.js", "module": "dist/index.mjs", "exports": { From 153678a2cd7ee4e3d686c4afb2376c2261b5320c Mon Sep 17 00:00:00 2001 From: "mergify[bot]" Date: Thu, 19 Sep 2024 19:57:51 +0000 Subject: [PATCH 08/14] bot(ci): generate token list --- optimism.tokenlist.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/optimism.tokenlist.json b/optimism.tokenlist.json index efc24db33..9acc80f24 100644 --- a/optimism.tokenlist.json +++ b/optimism.tokenlist.json @@ -6,7 +6,7 @@ "layer2", "infrastructure" ], - "timestamp": "2024-09-19T19:49:56.882Z", + "timestamp": "2024-09-19T19:57:49.657Z", "tokens": [ { "chainId": 1, @@ -7652,6 +7652,7 @@ "logoURI": "https://ethereum-optimism.github.io/data/TRB/logo.png", "extensions": { "optimismBridgeAddress": "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1", + "baseBridgeAddress": "0x3154Cf16ccdb4C6d922629664174b904d80F2C35", "opListId": "extended", "opTokenId": "TRB" } @@ -7669,6 +7670,19 @@ "opTokenId": "TRB" } }, + { + "chainId": 8453, + "address": "0xF8e9E61FFB2b491f7DF29823a76009743671CD96", + "name": "Tellor", + "symbol": "TRB", + "decimals": 18, + "logoURI": "https://ethereum-optimism.github.io/data/TRB/logo.png", + "extensions": { + "baseBridgeAddress": "0x4200000000000000000000000000000000000010", + "opListId": "extended", + "opTokenId": "TRB" + } + }, { "chainId": 1, "address": "0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5", @@ -9427,6 +9441,6 @@ "version": { "major": 10, "minor": 0, - "patch": 127 + "patch": 128 } } \ No newline at end of file From 00ea2bca8eee21f3acaef185c2c37107df3bd785 Mon Sep 17 00:00:00 2001 From: Abner Chen Date: Fri, 20 Sep 2024 04:01:38 +0800 Subject: [PATCH 09/14] Add TRUE token to base sepolia (#937) * Add TRUE token to base sepolia * Fix --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- data/TRUE/data.json | 15 +++++++++++++++ data/TRUE/logo.svg | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 data/TRUE/data.json create mode 100644 data/TRUE/logo.svg diff --git a/data/TRUE/data.json b/data/TRUE/data.json new file mode 100644 index 000000000..2eeb48976 --- /dev/null +++ b/data/TRUE/data.json @@ -0,0 +1,15 @@ +{ + "name": "True", + "symbol": "TRUE", + "decimals": 18, + "website": "https://truemarkets.org", + "twitter": "@TrueMarketsOrg", + "tokens": { + "sepolia": { + "address": "0x90C9155EC3c2C4aD624Db896864fC62eb3D62626" + }, + "base-sepolia": { + "address": "0xFe8b6A4586A67160D27962dC153Bf0E7e76fBf68" + } + } +} diff --git a/data/TRUE/logo.svg b/data/TRUE/logo.svg new file mode 100644 index 000000000..9e24925c9 --- /dev/null +++ b/data/TRUE/logo.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + From b07b25c5ff3a1fbdf45b41ca31f7f5e2e2e4cb35 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" Date: Thu, 19 Sep 2024 20:02:19 +0000 Subject: [PATCH 10/14] 10.0.129 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 206507995..7fe205b73 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eth-optimism/tokenlist", "description": "[Optimism] token list", - "version": "10.0.128", + "version": "10.0.129", "main": "dist/index.js", "module": "dist/index.mjs", "exports": { From 6c3ffcf0c1251f67a594891a7a6406c015dd7b1f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" Date: Thu, 19 Sep 2024 20:02:23 +0000 Subject: [PATCH 11/14] bot(ci): generate token list --- optimism.tokenlist.json | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/optimism.tokenlist.json b/optimism.tokenlist.json index 9acc80f24..20a1b5605 100644 --- a/optimism.tokenlist.json +++ b/optimism.tokenlist.json @@ -6,7 +6,7 @@ "layer2", "infrastructure" ], - "timestamp": "2024-09-19T19:57:49.657Z", + "timestamp": "2024-09-19T20:02:22.143Z", "tokens": [ { "chainId": 1, @@ -7683,6 +7683,32 @@ "opTokenId": "TRB" } }, + { + "chainId": 11155111, + "address": "0x90C9155EC3c2C4aD624Db896864fC62eb3D62626", + "name": "True", + "symbol": "TRUE", + "decimals": 18, + "logoURI": "https://ethereum-optimism.github.io/data/TRUE/logo.svg", + "extensions": { + "baseBridgeAddress": "0xfd0Bf71F60660E2f608ed56e1659C450eB113120", + "opListId": "extended", + "opTokenId": "TRUE" + } + }, + { + "chainId": 84532, + "address": "0xFe8b6A4586A67160D27962dC153Bf0E7e76fBf68", + "name": "True", + "symbol": "TRUE", + "decimals": 18, + "logoURI": "https://ethereum-optimism.github.io/data/TRUE/logo.svg", + "extensions": { + "baseBridgeAddress": "0x4200000000000000000000000000000000000010", + "opListId": "extended", + "opTokenId": "TRUE" + } + }, { "chainId": 1, "address": "0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5", @@ -9441,6 +9467,6 @@ "version": { "major": 10, "minor": 0, - "patch": 128 + "patch": 129 } } \ No newline at end of file From a73173f2ba682765a941ee05e28035105e577a13 Mon Sep 17 00:00:00 2001 From: Maura Wilder <560657+squdgy@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:44:15 -0400 Subject: [PATCH 12/14] fix bridge addresses --- src/chains.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chains.ts b/src/chains.ts index 54ccff951..7e40ee67b 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -182,7 +182,7 @@ export const L2_TO_L1_PAIR: Partial> = { 'base-sepolia': 'sepolia', 'pgn-sepolia': 'sepolia', 'lisk-sepolia': 'sepolia', - 'metall2-sepolia': 'ethereum', + 'metall2-sepolia': 'sepolia', } export const L1_STANDARD_BRIDGE_INFORMATION: Record< @@ -216,7 +216,7 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record< }, { l2Chain: 'metall2', - l1StandardBridgeAddress: '0xAEb9E3dD0074A8dd19065f55235591c3Ac0c413E', + l1StandardBridgeAddress: '0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3', }, ], sepolia: [ @@ -238,7 +238,7 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record< }, { l2Chain: 'metall2-sepolia', - l1StandardBridgeAddress: '0xFA0EBa40F30338B50A08613Af2216f914Ae8a7B4', + l1StandardBridgeAddress: '0x21530aAdF4DCFb9c477171400E40d4ef615868BE', }, ], } From 419254cd6c35b63a668912c0d2cf8104bb229ffd Mon Sep 17 00:00:00 2001 From: "mergify[bot]" Date: Fri, 20 Sep 2024 15:21:21 +0000 Subject: [PATCH 13/14] 10.0.130 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7fe205b73..9e6e2ae66 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eth-optimism/tokenlist", "description": "[Optimism] token list", - "version": "10.0.129", + "version": "10.0.130", "main": "dist/index.js", "module": "dist/index.mjs", "exports": { From 5d5a19f74af1e9f4417a83c873c7a1d188036e14 Mon Sep 17 00:00:00 2001 From: nitaliano Date: Fri, 20 Sep 2024 15:21:25 +0000 Subject: [PATCH 14/14] bot(ci): generate token list --- optimism.tokenlist.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optimism.tokenlist.json b/optimism.tokenlist.json index 20a1b5605..3eccc0ebf 100644 --- a/optimism.tokenlist.json +++ b/optimism.tokenlist.json @@ -6,7 +6,7 @@ "layer2", "infrastructure" ], - "timestamp": "2024-09-19T20:02:22.143Z", + "timestamp": "2024-09-20T15:21:24.190Z", "tokens": [ { "chainId": 1, @@ -9467,6 +9467,6 @@ "version": { "major": 10, "minor": 0, - "patch": 129 + "patch": 130 } } \ No newline at end of file