From 3302f43a17444c44eaaa83ec11e30def8ef64b44 Mon Sep 17 00:00:00 2001 From: mei Date: Fri, 23 Feb 2024 11:45:47 -0500 Subject: [PATCH 1/4] switch logoUri to aws address and add tests --- .github/workflows/aws.yaml | 4 +- src/gauges/devnet/defaultGaugeList.json | 18 +++--- src/gauges/testnet/defaultGaugeList.json | 18 +++--- src/tokens/devnet/defaultTokenList.json | 16 ++--- src/tokens/staging/defaultTokenList.json | 57 +++++++++--------- src/tokens/testnet/defaultTokenList.json | 28 ++++----- .../devnet/defaultValidatorList.json | 58 +++++++++---------- .../testnet/defaultValidatorList.json | 4 +- test/berachain-default-gauges.test.js | 8 +++ test/berachain-default-tokens.test.js | 9 +++ 10 files changed, 118 insertions(+), 102 deletions(-) diff --git a/.github/workflows/aws.yaml b/.github/workflows/aws.yaml index 4e5b76e10..7bfe2b6e0 100644 --- a/.github/workflows/aws.yaml +++ b/.github/workflows/aws.yaml @@ -2,8 +2,8 @@ name: Deploy to AWS S3 on: push: - tags: - - "*" + branches: + - main jobs: deploy: diff --git a/src/gauges/devnet/defaultGaugeList.json b/src/gauges/devnet/defaultGaugeList.json index 3ac3cfc49..835e0e438 100644 --- a/src/gauges/devnet/defaultGaugeList.json +++ b/src/gauges/devnet/defaultGaugeList.json @@ -4,47 +4,47 @@ { "address": "0x0000746573745F5f5f5f5f726563656976657232", "name": "DEFAULT GAUGE 1", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, { "address": "0x0000746573745F5F5F5F5f726563656976657231", "name": "DEFAULT GAUGE 2", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, { "address": "0xa88572F08f79D28b8f864350f122c1CC0AbB0d96", "name": "BERA-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, { "address": "0x751524E7bAdd31d018A4CAF4e4924a21b0c13CD0", "name": "WBTC-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/btc.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png" }, { "address": "0x101f52c804C1C02c0A1D33442ecA30ecb6fB2434", "name": "WETH-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/eth.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png" }, { "address": "0xAF569D6049651Cf8bF804d28b7cD2f29dE7f9Cb0", "name": "aHONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, { "address": "0x605fD73B339b82413B862966428eD8Ac52eC4227", "name": "aWBTC", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, { "address": "0xd4D3d26A30718090d523BD10c05F566837026cd7", "name": "aWETH", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, { "address": "0xC510A3c994f93e28395f4E371B6a9D4bcEF1663a", "name": "bHONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/berps.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/berps.png" } ], "version": { diff --git a/src/gauges/testnet/defaultGaugeList.json b/src/gauges/testnet/defaultGaugeList.json index 3ac3cfc49..835e0e438 100644 --- a/src/gauges/testnet/defaultGaugeList.json +++ b/src/gauges/testnet/defaultGaugeList.json @@ -4,47 +4,47 @@ { "address": "0x0000746573745F5f5f5f5f726563656976657232", "name": "DEFAULT GAUGE 1", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, { "address": "0x0000746573745F5F5F5F5f726563656976657231", "name": "DEFAULT GAUGE 2", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, { "address": "0xa88572F08f79D28b8f864350f122c1CC0AbB0d96", "name": "BERA-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, { "address": "0x751524E7bAdd31d018A4CAF4e4924a21b0c13CD0", "name": "WBTC-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/btc.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png" }, { "address": "0x101f52c804C1C02c0A1D33442ecA30ecb6fB2434", "name": "WETH-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/eth.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png" }, { "address": "0xAF569D6049651Cf8bF804d28b7cD2f29dE7f9Cb0", "name": "aHONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, { "address": "0x605fD73B339b82413B862966428eD8Ac52eC4227", "name": "aWBTC", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, { "address": "0xd4D3d26A30718090d523BD10c05F566837026cd7", "name": "aWETH", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, { "address": "0xC510A3c994f93e28395f4E371B6a9D4bcEF1663a", "name": "bHONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/berps.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/berps.png" } ], "version": { diff --git a/src/tokens/devnet/defaultTokenList.json b/src/tokens/devnet/defaultTokenList.json index 2f8c6176e..8468edb08 100644 --- a/src/tokens/devnet/defaultTokenList.json +++ b/src/tokens/devnet/defaultTokenList.json @@ -28,7 +28,7 @@ "symbol": "WBERA", "name": "Wrapped Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/wbera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/wbera.png", "tags": ["featured"] }, { @@ -37,7 +37,7 @@ "symbol": "BERA", "name": "Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", "tags": ["featured"] }, { @@ -46,7 +46,7 @@ "symbol": "HONEY", "name": "Honey", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["stablecoin", "featured"] } ], @@ -57,7 +57,7 @@ "symbol": "WBERA", "name": "Wrapped Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", "tags": ["featured"] }, "0xF4959c2346AA29F9682d9E698A60Ebab6356d0De": { @@ -66,7 +66,7 @@ "symbol": "HONEY", "name": "Honey", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["stablecoin", "featured"] } }, @@ -74,17 +74,17 @@ "0x0000746573745F5f5f5f5f726563656976657232": { "address": "0x0000746573745F5f5f5f5f726563656976657232", "name": "DEFAULT GAUGE 1", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, "0x0000746573745F5F5F5F5f726563656976657231": { "address": "0x0000746573745F5F5F5F5f726563656976657231", "name": "DEFAULT GAUGE 2", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, "0x24A1d1aDB141cAC4Cd85e72FC16513891554Aaf8": { "address": "0x24A1d1aDB141cAC4Cd85e72FC16513891554Aaf8", "name": "BERPS GAUGE", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, "0x101f52c804C1C02c0A1D33442ecA30ecb6fB2434": { "address": "0x101f52c804C1C02c0A1D33442ecA30ecb6fB2434", diff --git a/src/tokens/staging/defaultTokenList.json b/src/tokens/staging/defaultTokenList.json index e9b6a1081..12656bc4c 100644 --- a/src/tokens/staging/defaultTokenList.json +++ b/src/tokens/staging/defaultTokenList.json @@ -1,4 +1,3 @@ - { "name": "Devnet Default Token List", "logoURI": "ipfs://QmUSNbwUxUYNMvMksKypkgWs8unSm8dX2GjCPBVGZ7GGMr", @@ -29,7 +28,7 @@ "symbol": "WBERA", "name": "Wrapped Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/wbera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/wbera.png", "tags": ["featured"] }, { @@ -38,7 +37,7 @@ "symbol": "BERA", "name": "Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", "tags": ["featured"] }, { @@ -47,7 +46,7 @@ "symbol": "BGT", "name": "Bera Governance Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bgt.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bgt.png", "tags": ["featured"] }, { @@ -65,7 +64,7 @@ "symbol": "HONEY", "name": "Honey", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["stablecoin", "featured"] }, { @@ -74,7 +73,7 @@ "symbol": "WBTC", "name": "WBTC", "decimals": 8, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/btc.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png", "tags": ["featured"] }, { @@ -83,7 +82,7 @@ "symbol": "WETH", "name": "WETH", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/eth.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png", "tags": ["featured"] } ], @@ -94,7 +93,7 @@ "symbol": "WBERA", "name": "Wrapped Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", "tags": ["featured"] }, "0x1d0f659fF50d1830e449dD88E533cb11FB7a25E4": { @@ -112,7 +111,7 @@ "symbol": "HONEY", "name": "Honey", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["stablecoin", "featured"] }, "0xB64D1c4E2EC0ae631869c731b733bf9D49B9AbE1": { @@ -121,7 +120,7 @@ "symbol": "WBTC", "name": "WBTC", "decimals": 8, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/btc.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png", "tags": ["featured"] }, "0x43B1db7F1C8d2bbE6290F44Bef3A0B1FbcEEcaf1": { @@ -130,55 +129,55 @@ "symbol": "WETH", "name": "WETH", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/eth.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png", "tags": ["featured"] } }, "gaugeMap": { "0x0000746573745F5f5f5f5f726563656976657232": { - "address":"0x0000746573745F5f5f5f5f726563656976657232", + "address": "0x0000746573745F5f5f5f5f726563656976657232", "name": "DEFAULT GAUGE 1", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, "0x0000746573745F5F5F5F5f726563656976657231": { - "address":"0x0000746573745F5F5F5F5f726563656976657231", + "address": "0x0000746573745F5F5F5F5f726563656976657231", "name": "DEFAULT GAUGE 2", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, "0xa88572F08f79D28b8f864350f122c1CC0AbB0d96": { - "address":"0xa88572F08f79D28b8f864350f122c1CC0AbB0d96", + "address": "0xa88572F08f79D28b8f864350f122c1CC0AbB0d96", "name": "BERA-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" }, "0x751524E7bAdd31d018A4CAF4e4924a21b0c13CD0": { - "address":"0x751524E7bAdd31d018A4CAF4e4924a21b0c13CD0", + "address": "0x751524E7bAdd31d018A4CAF4e4924a21b0c13CD0", "name": "WBTC-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/btc.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png" }, "0x101f52c804C1C02c0A1D33442ecA30ecb6fB2434": { - "address":"0x101f52c804C1C02c0A1D33442ecA30ecb6fB2434", + "address": "0x101f52c804C1C02c0A1D33442ecA30ecb6fB2434", "name": "WETH-HONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/eth.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png" }, "0xAF569D6049651Cf8bF804d28b7cD2f29dE7f9Cb0": { - "address":"0xAF569D6049651Cf8bF804d28b7cD2f29dE7f9Cb0", + "address": "0xAF569D6049651Cf8bF804d28b7cD2f29dE7f9Cb0", "name": "aHONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, "0x605fD73B339b82413B862966428eD8Ac52eC4227": { - "address":"0x605fD73B339b82413B862966428eD8Ac52eC4227", + "address": "0x605fD73B339b82413B862966428eD8Ac52eC4227", "name": "aWBTC", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, "0xd4D3d26A30718090d523BD10c05F566837026cd7": { - "address":"0xd4D3d26A30718090d523BD10c05F566837026cd7", + "address": "0xd4D3d26A30718090d523BD10c05F566837026cd7", "name": "aWETH", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bend.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bend.png" }, "0xC510A3c994f93e28395f4E371B6a9D4bcEF1663a": { - "address":"0xC510A3c994f93e28395f4E371B6a9D4bcEF1663a", + "address": "0xC510A3c994f93e28395f4E371B6a9D4bcEF1663a", "name": "bHONEY", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/berps.png" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/berps.png" } }, "version": { diff --git a/src/tokens/testnet/defaultTokenList.json b/src/tokens/testnet/defaultTokenList.json index 15c1b8516..bcef82f67 100644 --- a/src/tokens/testnet/defaultTokenList.json +++ b/src/tokens/testnet/defaultTokenList.json @@ -36,7 +36,7 @@ "symbol": "WBERA", "name": "Wrapped Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/wbera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/wbera.png", "tags": ["featured"] }, { @@ -45,7 +45,7 @@ "symbol": "BERA", "name": "Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", "tags": ["featured"] }, { @@ -54,7 +54,7 @@ "symbol": "BGT", "name": "Bera Governance Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bgt.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bgt.png", "tags": ["featured"] }, { @@ -72,7 +72,7 @@ "symbol": "HONEY", "name": "Honey", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["stablecoin", "featured"] }, { @@ -81,7 +81,7 @@ "symbol": "WBTC", "name": "WBTC", "decimals": 8, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/btc.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png", "tags": ["featured"] }, { @@ -90,7 +90,7 @@ "symbol": "WETH", "name": "WETH", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/eth.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png", "tags": ["featured"] }, { @@ -99,7 +99,7 @@ "symbol": "vdHONEY", "name": "Honey Variable Debt Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["debt"] }, { @@ -108,7 +108,7 @@ "symbol": "aHONEY", "name": "Honey aToken", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["aToken"] } ], @@ -119,7 +119,7 @@ "symbol": "WBERA", "name": "Wrapped Berachain Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", "tags": ["featured"] }, "0x6581e59A1C8dA66eD0D313a0d4029DcE2F746Cc5": { @@ -137,7 +137,7 @@ "symbol": "HONEY", "name": "Honey", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["stablecoin", "featured"] }, "0x9DAD8A1F64692adeB74ACa26129e0F16897fF4BB": { @@ -146,7 +146,7 @@ "symbol": "WBTC", "name": "WBTC", "decimals": 8, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/btc.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png", "tags": ["featured"] }, "0x8239FBb3e3D0C2cDFd7888D8aF7701240Ac4DcA4": { @@ -155,7 +155,7 @@ "symbol": "WETH", "name": "WETH", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/eth.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png", "tags": ["featured"] }, "0x7f8E75356015fECfafF66e2B34F181A093Dc4519": { @@ -164,7 +164,7 @@ "symbol": "vdHONEY", "name": "Honey Variable Debt Token", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["debt"] }, "0xc63FAb87Cb00249190577937Ab6E04dA0AE69633": { @@ -173,7 +173,7 @@ "symbol": "aHONEY", "name": "Honey aToken", "decimals": 18, - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/honey.png", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", "tags": ["aToken"] } }, diff --git a/src/validators/devnet/defaultValidatorList.json b/src/validators/devnet/defaultValidatorList.json index 576a83098..96eac58f2 100644 --- a/src/validators/devnet/defaultValidatorList.json +++ b/src/validators/devnet/defaultValidatorList.json @@ -1,31 +1,31 @@ { - "name": "Devnet Default Validator List", - "validators": [ - { - "address": "0x6B7C3B5c0928cf8D0B516b358a1e3aecf5E9AFBe", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" - }, - { - "address": "0x82Cf147a9aC43A84D30f71f8a627492D08e485Ef", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" - }, - { - "address": "0xE7E474C22Ea47EbD5212B310F2E7Ae8c7ce70b4b", - "logoURI": "" - } - ], - "validatorMap": { - "0x6B7C3B5c0928cf8D0B516b358a1e3aecf5E9AFBe": { - "address": "0x6B7C3B5c0928cf8D0B516b358a1e3aecf5E9AFBe", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" - }, - "0x82Cf147a9aC43A84D30f71f8a627492D08e485Ef": { - "address": "0x82Cf147a9aC43A84D30f71f8a627492D08e485Ef", - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/assets/bera.png" - }, - "0xE7E474C22Ea47EbD5212B310F2E7Ae8c7ce70b4b": { - "address": "0xE7E474C22Ea47EbD5212B310F2E7Ae8c7ce70b4b", - "logoURI": "" - } + "name": "Devnet Default Validator List", + "validators": [ + { + "address": "0x6B7C3B5c0928cf8D0B516b358a1e3aecf5E9AFBe", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" + }, + { + "address": "0x82Cf147a9aC43A84D30f71f8a627492D08e485Ef", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" + }, + { + "address": "0xE7E474C22Ea47EbD5212B310F2E7Ae8c7ce70b4b", + "logoURI": "" } -} \ No newline at end of file + ], + "validatorMap": { + "0x6B7C3B5c0928cf8D0B516b358a1e3aecf5E9AFBe": { + "address": "0x6B7C3B5c0928cf8D0B516b358a1e3aecf5E9AFBe", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" + }, + "0x82Cf147a9aC43A84D30f71f8a627492D08e485Ef": { + "address": "0x82Cf147a9aC43A84D30f71f8a627492D08e485Ef", + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png" + }, + "0xE7E474C22Ea47EbD5212B310F2E7Ae8c7ce70b4b": { + "address": "0xE7E474C22Ea47EbD5212B310F2E7Ae8c7ce70b4b", + "logoURI": "" + } + } +} diff --git a/src/validators/testnet/defaultValidatorList.json b/src/validators/testnet/defaultValidatorList.json index d92e3b1fc..e4414027b 100644 --- a/src/validators/testnet/defaultValidatorList.json +++ b/src/validators/testnet/defaultValidatorList.json @@ -2,10 +2,10 @@ "name": "Testnet Default Validator List", "validatorMap": { "0x0cf633F3a7478EAAbd73B7287B997D609B12A11a": { - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/validator-assets/infrared.jpg" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/validator-assets/infrared.jpg" }, "0x7BC2D01C25d0d53b79Cba0B286FF685DDDA3c01c": { - "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/src/validator-assets/thj.jpg" + "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/validator-assets/thj.jpg" } } } diff --git a/test/berachain-default-gauges.test.js b/test/berachain-default-gauges.test.js index 17cd211ef..4eed01eda 100644 --- a/test/berachain-default-gauges.test.js +++ b/test/berachain-default-gauges.test.js @@ -35,6 +35,14 @@ describe("gauge list test suite", () => { } }); + it("all logo links are valid", async () => { + await defaultGaugeList.gauges.map((gauge) => + fetch(gauge.logoURI).then((response) => { + expect(response.status).to.equal(200); + }) + ); + }, 30000); + it("version matches package.json", () => { expect(packageJson.version).to.match(/^\d+\.\d+\.\d+$/); expect(packageJson.version).to.equal( diff --git a/test/berachain-default-tokens.test.js b/test/berachain-default-tokens.test.js index 4492928db..68a70a234 100644 --- a/test/berachain-default-tokens.test.js +++ b/test/berachain-default-tokens.test.js @@ -1,5 +1,6 @@ const packageJson = require("../package.json"); const { expect } = require("chai"); +const fetch = require("node-fetch"); const { getAddress } = require("@ethersproject/address"); const defaultTokenList = require("../src/tokens/testnet/defaultTokenList.json"); @@ -55,6 +56,14 @@ describe("token list test suite", () => { } }); + it("all logo links are valid", async () => { + await defaultTokenList.tokens.map((token) => + fetch(token.logoURI).then((response) => { + expect(response.status).to.equal(200); + }) + ); + }, 30000); + it("version matches package.json", () => { expect(packageJson.version).to.match(/^\d+\.\d+\.\d+$/); expect(packageJson.version).to.equal( From 02e582f97723415c117ba0f121428b5b398627e4 Mon Sep 17 00:00:00 2001 From: mei Date: Fri, 23 Feb 2024 11:49:47 -0500 Subject: [PATCH 2/4] remove fetch --- test/berachain-default-tokens.test.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/berachain-default-tokens.test.js b/test/berachain-default-tokens.test.js index 68a70a234..8cfdaaad0 100644 --- a/test/berachain-default-tokens.test.js +++ b/test/berachain-default-tokens.test.js @@ -1,6 +1,5 @@ const packageJson = require("../package.json"); const { expect } = require("chai"); -const fetch = require("node-fetch"); const { getAddress } = require("@ethersproject/address"); const defaultTokenList = require("../src/tokens/testnet/defaultTokenList.json"); From 02c7a95e966cfa4b90ea0a0e26c9559d7d253e21 Mon Sep 17 00:00:00 2001 From: mei Date: Fri, 23 Feb 2024 11:51:29 -0500 Subject: [PATCH 3/4] add fetch --- test/berachain-default-gauges.test.js | 1 + test/berachain-default-tokens.test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/test/berachain-default-gauges.test.js b/test/berachain-default-gauges.test.js index 4eed01eda..e4ceae379 100644 --- a/test/berachain-default-gauges.test.js +++ b/test/berachain-default-gauges.test.js @@ -1,5 +1,6 @@ const packageJson = require("../package.json"); const { expect } = require("chai"); +const fetch = require("node-fetch"); const { getAddress } = require("@ethersproject/address"); const defaultGaugeList = require("../src/gauges/testnet/defaultGaugeList.json"); diff --git a/test/berachain-default-tokens.test.js b/test/berachain-default-tokens.test.js index 8cfdaaad0..68a70a234 100644 --- a/test/berachain-default-tokens.test.js +++ b/test/berachain-default-tokens.test.js @@ -1,5 +1,6 @@ const packageJson = require("../package.json"); const { expect } = require("chai"); +const fetch = require("node-fetch"); const { getAddress } = require("@ethersproject/address"); const defaultTokenList = require("../src/tokens/testnet/defaultTokenList.json"); From f04a3cc9ff99fd7bb8cb934da326c5d2d32e75cb Mon Sep 17 00:00:00 2001 From: mei Date: Fri, 23 Feb 2024 13:41:41 -0500 Subject: [PATCH 4/4] remove tokenMap --- src/tokens/devnet/defaultTokenList.json | 20 -------- src/tokens/staging/defaultTokenList.json | 47 ----------------- src/tokens/testnet/defaultTokenList.json | 65 ------------------------ 3 files changed, 132 deletions(-) diff --git a/src/tokens/devnet/defaultTokenList.json b/src/tokens/devnet/defaultTokenList.json index 8468edb08..cf308e52f 100644 --- a/src/tokens/devnet/defaultTokenList.json +++ b/src/tokens/devnet/defaultTokenList.json @@ -50,26 +50,6 @@ "tags": ["stablecoin", "featured"] } ], - "tokenMap": { - "0xD57E9ed47952eaF08eaFc4853AED350cEBf63A10": { - "chainId": 2061, - "address": "0xD57E9ed47952eaF08eaFc4853AED350cEBf63A10", - "symbol": "WBERA", - "name": "Wrapped Berachain Token", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", - "tags": ["featured"] - }, - "0xF4959c2346AA29F9682d9E698A60Ebab6356d0De": { - "chainId": 2061, - "address": "0xF4959c2346AA29F9682d9E698A60Ebab6356d0De", - "symbol": "HONEY", - "name": "Honey", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", - "tags": ["stablecoin", "featured"] - } - }, "gaugeMap": { "0x0000746573745F5f5f5f5f726563656976657232": { "address": "0x0000746573745F5f5f5f5f726563656976657232", diff --git a/src/tokens/staging/defaultTokenList.json b/src/tokens/staging/defaultTokenList.json index 12656bc4c..8ccd194a9 100644 --- a/src/tokens/staging/defaultTokenList.json +++ b/src/tokens/staging/defaultTokenList.json @@ -86,53 +86,6 @@ "tags": ["featured"] } ], - "tokenMap": { - "0x5806E416dA447b267cEA759358cF22Cc41FAE80F": { - "chainId": 2061, - "address": "0x5806E416dA447b267cEA759358cF22Cc41FAE80F", - "symbol": "WBERA", - "name": "Wrapped Berachain Token", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", - "tags": ["featured"] - }, - "0x1d0f659fF50d1830e449dD88E533cb11FB7a25E4": { - "chainId": 2061, - "address": "0x1d0f659fF50d1830e449dD88E533cb11FB7a25E4", - "symbol": "STGUSDC", - "name": "Stable Collateral USD Coin", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389", - "tags": ["stablecoin", "collateral", "featured"] - }, - "0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B": { - "chainId": 2061, - "address": "0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B", - "symbol": "HONEY", - "name": "Honey", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", - "tags": ["stablecoin", "featured"] - }, - "0xB64D1c4E2EC0ae631869c731b733bf9D49B9AbE1": { - "chainId": 2061, - "address": "0xB64D1c4E2EC0ae631869c731b733bf9D49B9AbE1", - "symbol": "WBTC", - "name": "WBTC", - "decimals": 8, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png", - "tags": ["featured"] - }, - "0x43B1db7F1C8d2bbE6290F44Bef3A0B1FbcEEcaf1": { - "chainId": 2061, - "address": "0x43B1db7F1C8d2bbE6290F44Bef3A0B1FbcEEcaf1", - "symbol": "WETH", - "name": "WETH", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png", - "tags": ["featured"] - } - }, "gaugeMap": { "0x0000746573745F5f5f5f5f726563656976657232": { "address": "0x0000746573745F5f5f5f5f726563656976657232", diff --git a/src/tokens/testnet/defaultTokenList.json b/src/tokens/testnet/defaultTokenList.json index bcef82f67..761f7ccb8 100644 --- a/src/tokens/testnet/defaultTokenList.json +++ b/src/tokens/testnet/defaultTokenList.json @@ -112,71 +112,6 @@ "tags": ["aToken"] } ], - "tokenMap": { - "0x5806E416dA447b267cEA759358cF22Cc41FAE80F": { - "chainId": 2061, - "address": "0x5806E416dA447b267cEA759358cF22Cc41FAE80F", - "symbol": "WBERA", - "name": "Wrapped Berachain Token", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", - "tags": ["featured"] - }, - "0x6581e59A1C8dA66eD0D313a0d4029DcE2F746Cc5": { - "chainId": 2061, - "address": "0x6581e59A1C8dA66eD0D313a0d4029DcE2F746Cc5", - "symbol": "STGUSDC", - "name": "Stable Collateral USD Coin", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389", - "tags": ["stablecoin", "collateral", "featured", "defaultCollateral"] - }, - "0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B": { - "chainId": 2061, - "address": "0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B", - "symbol": "HONEY", - "name": "Honey", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", - "tags": ["stablecoin", "featured"] - }, - "0x9DAD8A1F64692adeB74ACa26129e0F16897fF4BB": { - "chainId": 2061, - "address": "0x9DAD8A1F64692adeB74ACa26129e0F16897fF4BB", - "symbol": "WBTC", - "name": "WBTC", - "decimals": 8, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/btc.png", - "tags": ["featured"] - }, - "0x8239FBb3e3D0C2cDFd7888D8aF7701240Ac4DcA4": { - "chainId": 2061, - "address": "0x8239FBb3e3D0C2cDFd7888D8aF7701240Ac4DcA4", - "symbol": "WETH", - "name": "WETH", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png", - "tags": ["featured"] - }, - "0x7f8E75356015fECfafF66e2B34F181A093Dc4519": { - "chainId": 2061, - "address": "0x7f8E75356015fECfafF66e2B34F181A093Dc4519", - "symbol": "vdHONEY", - "name": "Honey Variable Debt Token", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", - "tags": ["debt"] - }, - "0xc63FAb87Cb00249190577937Ab6E04dA0AE69633": { - "chainId": 2061, - "address": "0xc63FAb87Cb00249190577937Ab6E04dA0AE69633", - "symbol": "aHONEY", - "name": "Honey aToken", - "decimals": 18, - "logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png", - "tags": ["aToken"] - } - }, "gaugeMap": {}, "version": { "major": 1,