Skip to content

Commit

Permalink
Merge pull request #42 from subquery/fix-dictionary-registry
Browse files Browse the repository at this point in the history
Fix dictionary registry using code instead of chain id
  • Loading branch information
stwiname authored Mar 18, 2024
2 parents 87b0a58 + 62283bf commit 9d043a7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
72 changes: 36 additions & 36 deletions dist/dictionary.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
]
},
"algorand": {
"algorand": [
"wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8": [
"https://api.subquery.network/sq/subquery/Algorand-Dictionary",
"https://gateway.subquery.network/query/QmYNRtrcD2QKftkff2UpjV3fr3ubPZuYahTNDAct4Ad2NW"
]
Expand Down Expand Up @@ -94,124 +94,124 @@
},
"concordium": {},
"near": {
"near": [
"mainnet": [
"https://api.subquery.network/sq/subquery/near-dictionary",
"https://gateway.subquery.network/query/QmSKrk3BpzjWzKfS8sZRS5vyjmtXvkJnK8nHUVBhiCmz41"
]
},
"polkadot": {
"acala": [
"0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c": [
"https://gateway.subquery.network/query/QmUj8yYCE1YU5UNdtm4q4di4GBDEAmL8vprSRWVGrYeEFm"
],
"astar": [
"0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6": [
"https://gateway.subquery.network/query/QmapQ6cNKPtZE1jkeUp5V6xy7sPSiJiZpoqZcRRtyc4Stq",
"https://dict-tyk.subquery.network/query/astar"
],
"bifrost-kusama": [
"0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed": [
"https://gateway.subquery.network/query/QmcvcN4gZkiB2JkmK6BdHh7Wzy8Gfp8R7ZHSgGajbGv6Wy",
"https://api.subquery.network/sq/subquery/bifrost-parachain-dictionary"
],
"calamari": [
"0x4ac80c99289841dd946ef92765bf659a307d39189b3ce374a92b5f0415ee17a1": [
"https://gateway.subquery.network/query/QmdrqzazvSmrr6rgfxJEssJH9jqhYCZARm92UxNXMv5f86",
"https://api.subquery.network/sq/subquery/calamari-dictionary"
],
"karura": [
"0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b": [
"https://gateway.subquery.network/query/QmPQQA28fxR1hePk25MHNS1vEYRs4Gbz3PXry8G4dfC76N"
],
"khala": [
"0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d": [
"https://gateway.subquery.network/query/QmP2KRbGx4vLaL8HqugVXrNPMyziFL6aM9NAd4NbFqsPA9"
],
"kilt-spiritnet": [
"0x411f057b9107718c9624d6aa4a3f23c1653898297f3d4d529d9bb6511a39dd21": [
"https://gateway.subquery.network/query/QmeBTNuhahUo2EhTRxV3qVAVf5bC8zVQRrrHd3SUDXgtbF"
],
"kusama": [
"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe": [
"https://gateway.subquery.network/query/Qmbe5g5vbEJYYAfpjcwNDzuhjeyaEQPQbxKyKx6PveYnR8"
],
"moonbeam": [
"0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d": [
"https://gateway.subquery.network/query/QmUHAsweQYXYrY5Swbt1eHkUwnE5iLc7w9Fh62JY6guXEK"
],
"moonriver": [
"0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b": [
"https://gateway.subquery.network/query/QmWhwLQA4P6iZv6bmQxUqG5zumNK8KDBwcq8wxN4G213dq"
],
"nodle": [
"0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21": [
"https://gateway.subquery.network/query/QmZpj5wYpUbGqJDg6KWgbkK5bmeuCqYX6kwk317jdJ9DZ4"
],
"parallel": [
"0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97": [
"https://api.subquery.network/sq/subquery/parallel-dictionary"
],
"polkadot": [
"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3": [
"https://gateway.subquery.network/query/QmUGBdhQKnzE8q6x6MPqP6LNZGa8gzXf5gkdmhzWjdFGfL"
],
"shiden-kusama": [
"0xf1cf9022c7ebb34b162d5b5e34e705a5a740b2d0ecc1009fb89023e62a488108": [
"https://gateway.subquery.network/query/QmPiTswpMTeipwnmJkAcwkcg5Se8XfrucGYVKbwuAxQgJ6",
"https://api.subquery.network/sq/subquery/shiden-dictionary"
],
"kusama-asset-hub": [
"0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a": [
"https://api.subquery.network/sq/subquery/statemint-dictionary"
],
"polkadot-asset-hub": [
"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f": [
"https://gateway.subquery.network/query/Qme1iQvwLoeh1ZLZVL4zDGZBK1hnMG3xZz1oaLBRvZxT7X"
],
"westend": [
"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e": [
"https://gateway.subquery.network/query/QmP1BMJoyJ5iFq6XLSfTJ3D23iWuTG1tnsEffJpNieQnwN"
]
},
"stellar": {},
"multi": {},
"substrate": {
"acala": [
"0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c": [
"https://gateway.subquery.network/query/QmUj8yYCE1YU5UNdtm4q4di4GBDEAmL8vprSRWVGrYeEFm"
],
"astar": [
"0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6": [
"https://gateway.subquery.network/query/QmapQ6cNKPtZE1jkeUp5V6xy7sPSiJiZpoqZcRRtyc4Stq",
"https://dict-tyk.subquery.network/query/astar"
],
"bifrost-kusama": [
"0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed": [
"https://gateway.subquery.network/query/QmcvcN4gZkiB2JkmK6BdHh7Wzy8Gfp8R7ZHSgGajbGv6Wy",
"https://api.subquery.network/sq/subquery/bifrost-parachain-dictionary"
],
"calamari": [
"0x4ac80c99289841dd946ef92765bf659a307d39189b3ce374a92b5f0415ee17a1": [
"https://gateway.subquery.network/query/QmdrqzazvSmrr6rgfxJEssJH9jqhYCZARm92UxNXMv5f86",
"https://api.subquery.network/sq/subquery/calamari-dictionary"
],
"karura": [
"0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b": [
"https://gateway.subquery.network/query/QmPQQA28fxR1hePk25MHNS1vEYRs4Gbz3PXry8G4dfC76N"
],
"khala": [
"0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d": [
"https://gateway.subquery.network/query/QmP2KRbGx4vLaL8HqugVXrNPMyziFL6aM9NAd4NbFqsPA9"
],
"kilt-spiritnet": [
"0x411f057b9107718c9624d6aa4a3f23c1653898297f3d4d529d9bb6511a39dd21": [
"https://gateway.subquery.network/query/QmeBTNuhahUo2EhTRxV3qVAVf5bC8zVQRrrHd3SUDXgtbF"
],
"kusama": [
"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe": [
"https://gateway.subquery.network/query/Qmbe5g5vbEJYYAfpjcwNDzuhjeyaEQPQbxKyKx6PveYnR8"
],
"moonbeam": [
"0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d": [
"https://gateway.subquery.network/query/QmUHAsweQYXYrY5Swbt1eHkUwnE5iLc7w9Fh62JY6guXEK"
],
"moonriver": [
"0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b": [
"https://gateway.subquery.network/query/QmWhwLQA4P6iZv6bmQxUqG5zumNK8KDBwcq8wxN4G213dq"
],
"nodle": [
"0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21": [
"https://gateway.subquery.network/query/QmZpj5wYpUbGqJDg6KWgbkK5bmeuCqYX6kwk317jdJ9DZ4"
],
"parallel": [
"0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97": [
"https://api.subquery.network/sq/subquery/parallel-dictionary"
],
"polkadot": [
"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3": [
"https://gateway.subquery.network/query/QmUGBdhQKnzE8q6x6MPqP6LNZGa8gzXf5gkdmhzWjdFGfL"
],
"shiden-kusama": [
"0xf1cf9022c7ebb34b162d5b5e34e705a5a740b2d0ecc1009fb89023e62a488108": [
"https://gateway.subquery.network/query/QmPiTswpMTeipwnmJkAcwkcg5Se8XfrucGYVKbwuAxQgJ6",
"https://api.subquery.network/sq/subquery/shiden-dictionary"
],
"kusama-asset-hub": [
"0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a": [
"https://api.subquery.network/sq/subquery/statemint-dictionary"
],
"polkadot-asset-hub": [
"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f": [
"https://gateway.subquery.network/query/Qme1iQvwLoeh1ZLZVL4zDGZBK1hnMG3xZz1oaLBRvZxT7X"
],
"westend": [
"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e": [
"https://gateway.subquery.network/query/QmP1BMJoyJ5iFq6XLSfTJ3D23iWuTG1tnsEffJpNieQnwN"
]
}
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3959,7 +3959,7 @@ const dictionaryString = Object.fromEntries(
Object.fromEntries(
f.networks
.filter((n) => !!n.dictionaries && n.dictionaries.length > 0)
.map((network) => [network.code, network.dictionaries])
.map((network) => [network.chain_id, network.dictionaries])
),
])
);
Expand Down

0 comments on commit 9d043a7

Please sign in to comment.