Skip to content

[lint] Add TokenList Version Lint

Ursa (9R) requested to merge ursa/lint-tokenlist into develop

This adds a linter to prevent the consensus failure from a bad tokenlist change (#1890 (closed) / !3455 (merged)).

Example output:

Linting versioned functions...
Linting versioned tokenlists...
--- /tmp/versioned-tokenlists-develop   2024-02-28 10:40:50.908969492 -0500
+++ /tmp/versioned-tokenlists-current   2024-02-28 10:40:47.724942726 -0500
@@ -275705,6 +275705,12 @@ Check: ETH 1.126.0
       "symbol": "vTHOR",
       "name": "vTHOR",
       "decimals": 18
+    },
+    {
+      "address": "0x826180541412D574cf1336d22c0C0a287822678A",
+      "symbol": "FLIP",
+      "name": "Chainflip",
+      "decimals": 18
     }
   ],
   "keywords": [
@@ -281760,6 +281766,12 @@ Check: ETH 1.127.0
       "symbol": "vTHOR",
       "name": "vTHOR",
       "decimals": 18
+    },
+    {
+      "address": "0x826180541412D574cf1336d22c0C0a287822678A",
+      "symbol": "FLIP",
+      "name": "Chainflip",
+      "decimals": 18
     }
   ],
   "keywords": [
Detected change in versioned tokenlist.
Lint failed.

Merge request reports