Skip to content

Commit

Permalink
Merge branch 'master' into Add-UP-token
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Sep 21, 2024
2 parents 483d077 + 5d5a19f commit 66eb795
Show file tree
Hide file tree
Showing 11 changed files with 187 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ We currently accept tokens on the following chains:
- `lisk`
- `lisk-sepolia`
- `redstone`
- `metall2`
- `metall2-sepolia`

#### Non-bridgable tokens

Expand Down
24 changes: 24 additions & 0 deletions data/ASI/data.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
21 changes: 21 additions & 0 deletions data/ASI/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion data/TRB/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
},
"optimism": {
"address": "0xaf8ca653fa2772d58f4368b0a71980e9e3ceb888"
},
"base": {
"address": "0xF8e9E61FFB2b491f7DF29823a76009743671CD96"
}
}
}
}
15 changes: 15 additions & 0 deletions data/TRUE/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "True",
"symbol": "TRUE",
"decimals": 18,
"website": "https://truemarkets.org",
"twitter": "@TrueMarketsOrg",
"tokens": {
"sepolia": {
"address": "0x90C9155EC3c2C4aD624Db896864fC62eb3D62626"
},
"base-sepolia": {
"address": "0xFe8b6A4586A67160D27962dC153Bf0E7e76fBf68"
}
}
}
11 changes: 11 additions & 0 deletions data/TRUE/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 68 additions & 2 deletions optimism.tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"layer2",
"infrastructure"
],
"timestamp": "2024-09-18T02:40:07.859Z",
"timestamp": "2024-09-20T15:21:24.190Z",
"tokens": [
{
"chainId": 1,
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -7626,6 +7652,7 @@
"logoURI": "https://ethereum-optimism.github.io/data/TRB/logo.png",
"extensions": {
"optimismBridgeAddress": "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1",
"baseBridgeAddress": "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
"opListId": "extended",
"opTokenId": "TRB"
}
Expand All @@ -7643,6 +7670,45 @@
"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": 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",
Expand Down Expand Up @@ -9401,6 +9467,6 @@
"version": {
"major": 10,
"minor": 0,
"patch": 126
"patch": 130
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@eth-optimism/tokenlist",
"description": "[Optimism] token list",
"version": "10.0.126",
"version": "10.0.130",
"main": "dist/index.js",
"module": "dist/index.mjs",
"exports": {
Expand Down
32 changes: 32 additions & 0 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ export const NETWORK_DATA: Record<Chain, Network> = {
),
layer: 2
},
'metall2': {
id: 1750,
name: 'Metal L2',
provider: new ethers.providers.StaticJsonRpcProvider(
'https://rpc.metall2.com'
),
layer: 2
},
sepolia: {
id: 11155111,
name: 'Sepolia',
Expand Down Expand Up @@ -101,6 +109,14 @@ export const NETWORK_DATA: Record<Chain, Network> = {
),
layer: 2,
},
'metall2-sepolia': {
id: 1740,
name: 'Metal L2 Sepolia',
provider: new ethers.providers.StaticJsonRpcProvider(
'https://testnet.rpc.metall2.com'
),
layer: 2,
},
}

interface L2BridgeInformation {
Expand Down Expand Up @@ -134,6 +150,9 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record<
'redstone': {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010'
},
'metall2': {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
},
'optimism-sepolia': {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
},
Expand All @@ -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<Record<L2Chain, L1Chain>> = {
Expand All @@ -155,10 +177,12 @@ export const L2_TO_L1_PAIR: Partial<Record<L2Chain, L1Chain>> = {
mode: 'ethereum',
lisk: 'ethereum',
redstone: 'ethereum',
metall2: 'ethereum',
'optimism-sepolia': 'sepolia',
'base-sepolia': 'sepolia',
'pgn-sepolia': 'sepolia',
'lisk-sepolia': 'sepolia',
'metall2-sepolia': 'sepolia',
}

export const L1_STANDARD_BRIDGE_INFORMATION: Record<
Expand Down Expand Up @@ -190,6 +214,10 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record<
l2Chain: 'redstone',
l1StandardBridgeAddress: '0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69',
},
{
l2Chain: 'metall2',
l1StandardBridgeAddress: '0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3',
},
],
sepolia: [
{
Expand All @@ -208,5 +236,9 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record<
l2Chain: 'lisk-sepolia',
l1StandardBridgeAddress: '0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5',
},
{
l2Chain: 'metall2-sepolia',
l1StandardBridgeAddress: '0x21530aAdF4DCFb9c477171400E40d4ef615868BE',
},
],
}
4 changes: 4 additions & 0 deletions src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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'] },
],
},
},
Expand Down
6 changes: 5 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export type Chain =
| 'lisk'
| 'lisk-sepolia'
| 'redstone'
| 'metall2'
| 'metall2-sepolia'

const l2Chains = [
'optimism',
Expand All @@ -43,7 +45,9 @@ const l2Chains = [
'mode',
'lisk',
'lisk-sepolia',
'redstone'
'redstone',
'metall2',
'metall2-sepolia'
] as const
export type L2Chain = typeof l2Chains[number]

Expand Down

0 comments on commit 66eb795

Please sign in to comment.