Skip to content

Commit

Permalink
feat(pgn): Deprecate Public Goods Network (#1049)
Browse files Browse the repository at this point in the history
This PR deprecates Public Goods Network following it's shutdown last
year:
https://publicgoods.network/
https://gov.gitcoin.co/t/announcing-the-spin-down-of-pgn-eol-june-2024/17430

This change is necessary to avoid failing tests when working with assets
like USDT and DAI on the token list, as CI will complain because it
won't be able to reach the PGN RPC
  • Loading branch information
wbnns authored Jan 14, 2025
1 parent 8f79b36 commit c1ecc21
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 55 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ We currently accept tokens on the following chains:
- `base-sepolia`
- `optimism-sepolia`
- `mode`
- `pgn`
- `lisk`
- `lisk-sepolia`
- `redstone`
Expand Down
3 changes: 0 additions & 3 deletions data/DAI/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
"base": {
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb"
},
"pgn": {
"address": "0x6C121674ba6736644A7e73A8741407fE8a5eE5BA"
},
"mode": {
"address": "0xE7798f023fC62146e8Aa1b36Da45fb70855a77Ea"
}
Expand Down
3 changes: 0 additions & 3 deletions data/USDT/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"optimism": {
"address": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"
},
"pgn": {
"address": "0x6535b3db9B908a2bbA29F83c168a0e661C3fAbf7"
},
"mode": {
"address": "0xf0F161fDA2712DB8b566946122a5af183995e2eD"
},
Expand Down
12 changes: 2 additions & 10 deletions optimism.tokenlist.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"name": "Superchain Token List",
"logoURI": "https://ethereum-optimism.github.io/optimism.svg",
"keywords": [
"scaling",
"layer2",
"infrastructure"
],
"keywords": ["scaling", "layer2", "infrastructure"],
"timestamp": "2025-01-08T20:36:46.121Z",
"tokens": [
{
Expand Down Expand Up @@ -2173,7 +2169,6 @@
"extensions": {
"optimismBridgeAddress": "0x10E6593CDda8c58a1d0f14C5164B376352a55f2F",
"baseBridgeAddress": "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
"pgnBridgeAddress": "0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b",
"modeBridgeAddress": "0x735aDBbE72226BD52e818E7181953f42E3b0FF21",
"opListId": "default",
"opTokenId": "DAI"
Expand Down Expand Up @@ -2213,7 +2208,6 @@
"decimals": 18,
"logoURI": "https://ethereum-optimism.github.io/data/DAI/logo.svg",
"extensions": {
"pgnBridgeAddress": "0x4200000000000000000000000000000000000010",
"opListId": "default",
"opTokenId": "DAI"
}
Expand Down Expand Up @@ -9866,7 +9860,6 @@
"logoURI": "https://ethereum-optimism.github.io/data/USDT/logo.png",
"extensions": {
"optimismBridgeAddress": "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1",
"pgnBridgeAddress": "0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b",
"modeBridgeAddress": "0x735aDBbE72226BD52e818E7181953f42E3b0FF21",
"liskBridgeAddress": "0x2658723Bf70c7667De6B25F99fcce13A16D25d08",
"opListId": "default",
Expand Down Expand Up @@ -9894,7 +9887,6 @@
"decimals": 6,
"logoURI": "https://ethereum-optimism.github.io/data/USDT/logo.png",
"extensions": {
"pgnBridgeAddress": "0x4200000000000000000000000000000000000010",
"opListId": "default",
"opTokenId": "USDT"
}
Expand Down Expand Up @@ -11327,4 +11319,4 @@
"minor": 0,
"patch": 203
}
}
}
32 changes: 0 additions & 32 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ export const NETWORK_DATA: Record<Chain, Network> = {
),
layer: 2,
},
pgn: {
id: 424,
name: 'PGN - Public Goods Network',
provider: new ethers.providers.StaticJsonRpcProvider(
'https://rpc.publicgoods.network'
),
layer: 2,
},
mode: {
id: 34443,
name: 'Mode',
Expand Down Expand Up @@ -93,14 +85,6 @@ export const NETWORK_DATA: Record<Chain, Network> = {
),
layer: 2,
},
'pgn-sepolia': {
id: 58008,
name: 'PGN Sepolia',
provider: new ethers.providers.StaticJsonRpcProvider(
'https://rpc.sepolia.publicgoods.network'
),
layer: 2,
},
'lisk-sepolia': {
id: 4202,
name: 'Lisk Sepolia',
Expand Down Expand Up @@ -138,9 +122,6 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record<
base: {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
},
pgn: {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
},
mode: {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
},
Expand All @@ -159,9 +140,6 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record<
'base-sepolia': {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
},
'pgn-sepolia': {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
},
'lisk-sepolia': {
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
},
Expand All @@ -173,14 +151,12 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record<
export const L2_TO_L1_PAIR: Partial<Record<L2Chain, L1Chain>> = {
optimism: 'ethereum',
base: 'ethereum',
pgn: 'ethereum',
mode: 'ethereum',
lisk: 'ethereum',
redstone: 'ethereum',
metall2: 'ethereum',
'optimism-sepolia': 'sepolia',
'base-sepolia': 'sepolia',
'pgn-sepolia': 'sepolia',
'lisk-sepolia': 'sepolia',
'metall2-sepolia': 'sepolia',
}
Expand All @@ -198,10 +174,6 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record<
l2Chain: 'base',
l1StandardBridgeAddress: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35',
},
{
l2Chain: 'pgn',
l1StandardBridgeAddress: '0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b',
},
{
l2Chain: 'mode',
l1StandardBridgeAddress: '0x735aDBbE72226BD52e818E7181953f42E3b0FF21',
Expand All @@ -224,10 +196,6 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record<
l2Chain: 'optimism-sepolia',
l1StandardBridgeAddress: '0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1',
},
{
l2Chain: 'pgn-sepolia',
l1StandardBridgeAddress: '0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3',
},
{
l2Chain: 'base-sepolia',
l1StandardBridgeAddress: '0xfd0Bf71F60660E2f608ed56e1659C450eB113120',
Expand Down
2 changes: 0 additions & 2 deletions src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const TOKEN_DATA_SCHEMA = {
base: TOKEN_SCHEMA,
lisk: TOKEN_SCHEMA,
mode: TOKEN_SCHEMA,
pgn: TOKEN_SCHEMA,
redstone: TOKEN_SCHEMA,
metall2: TOKEN_SCHEMA,
sepolia: TOKEN_SCHEMA,
Expand All @@ -79,7 +78,6 @@ export const TOKEN_DATA_SCHEMA = {
{ required: ['optimism'] },
{ required: ['base'] },
{ required: ['mode'] },
{ required: ['pgn'] },
{ required: ['lisk'] },
{ required: ['redstone'] },
{ required: ['metall2'] },
Expand Down
4 changes: 0 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ export type Chain =
| 'base'
| 'optimism-sepolia'
| 'base-sepolia'
| 'pgn'
| 'pgn-sepolia'
| 'sepolia'
| 'mode'
| 'lisk'
Expand All @@ -40,8 +38,6 @@ const l2Chains = [
'optimism-sepolia',
'base',
'base-sepolia',
'pgn-sepolia',
'pgn',
'mode',
'lisk',
'lisk-sepolia',
Expand Down

0 comments on commit c1ecc21

Please sign in to comment.