Skip to content

Commit

Permalink
Merge pull request #1 from BHIIKTOR/tokn2
Browse files Browse the repository at this point in the history
fixing token addresses
  • Loading branch information
BHIIKTOR authored Oct 25, 2024
2 parents 7e3dbc4 + 239261f commit 288c771
Show file tree
Hide file tree
Showing 1,041 changed files with 37,501 additions and 5,851 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

name: Lint PR

jobs:
lint-json:
name: Lint JSON files
runs-on: ubuntu-latest
steps:
- name: Checkout Repository 📥
uses: actions/checkout@v4

- name: Setup Node.js 🌐
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install ESLint
run: npm install

- name: Lint JSON files
run: npx eslint ./
54 changes: 0 additions & 54 deletions .github/workflows/update_chainjson.yml

This file was deleted.

23 changes: 17 additions & 6 deletions .github/workflows/utility/chain_registry.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ export let chainNameToDirectoryMap = new Map();

export const chainRegistryRoot = "../../../chain-registry";

const networkTypeToDirectoryNameMap = new Map();
export const networkTypeToDirectoryNameMap = new Map();
networkTypeToDirectoryNameMap.set("mainnet", "");
networkTypeToDirectoryNameMap.set("testnet", "testnets");
const networkTypes = Array.from(networkTypeToDirectoryNameMap.keys());

const domainToDirectoryNameMap = new Map();
export const domainToDirectoryNameMap = new Map();
domainToDirectoryNameMap.set("cosmos", "");
domainToDirectoryNameMap.set("non-cosmos", "_non-cosmos");
const domains = Array.from(domainToDirectoryNameMap.keys());

const fileToFileNameMap = new Map();
export const fileToFileNameMap = new Map();
fileToFileNameMap.set("chain", "chain.json");
fileToFileNameMap.set("assetlist", "assetlist.json");
fileToFileNameMap.set("versions", "versions.json");
const files = Array.from(domainToDirectoryNameMap.keys());

export const nonChainDirectories = [
Expand All @@ -46,7 +47,10 @@ export const nonChainDirectories = [
"versions.schema.json",
"README.md",
"LICENSE",
"package.json"
"package.json",
"package-lock.json",
"eslint.config.mjs",
"primary_colors.py"
]

export const assetSchema = {
Expand All @@ -67,6 +71,13 @@ export const assetSchema = {
keywords: []
}

export const schemas = new Map([
["ibc", "ibc_data.schema.json"],
["chain", "chain.schema.json"],
["assetlist", "assetlist.schema.json"],
["versions", "versions.schema.json"],
]);

export const bech32ConfigSuffixMap = new Map([
["bech32PrefixAccAddr", ""],
["bech32PrefixAccPub", "pub"],
Expand All @@ -77,7 +88,7 @@ export const bech32ConfigSuffixMap = new Map([
]);


const networkTypeToDirectoryMap = new Map();
export const networkTypeToDirectoryMap = new Map();
networkTypeToDirectoryMap.set("mainnet", "");
networkTypeToDirectoryMap.set("testnet", "testnets");
for (const [networkType, directory] of networkTypeToDirectoryMap.entries()) {
Expand All @@ -86,7 +97,7 @@ for (const [networkType, directory] of networkTypeToDirectoryMap.entries()) {

const fileNames = {
chain: "chain.json",
assetlist: "assetlist.json",
assetlist: "assetlist.json"
};

let paths = {};
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/utility/chain_registry_local.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ export let chainNameToDirectoryMap = new Map();

export const chainRegistryRoot = "../../..";

const networkTypeToDirectoryNameMap = new Map();
export const networkTypeToDirectoryNameMap = new Map();
networkTypeToDirectoryNameMap.set("mainnet", "");
networkTypeToDirectoryNameMap.set("testnet", "testnets");
const networkTypes = Array.from(networkTypeToDirectoryNameMap.keys());

const domainToDirectoryNameMap = new Map();
export const domainToDirectoryNameMap = new Map();
domainToDirectoryNameMap.set("cosmos", "");
domainToDirectoryNameMap.set("non-cosmos", "_non-cosmos");
const domains = Array.from(domainToDirectoryNameMap.keys());

const fileToFileNameMap = new Map();
export const fileToFileNameMap = new Map();
fileToFileNameMap.set("chain", "chain.json");
fileToFileNameMap.set("assetlist", "assetlist.json");
fileToFileNameMap.set("versions", "versions.json");
const files = Array.from(domainToDirectoryNameMap.keys());

export const nonChainDirectories = [
Expand All @@ -46,7 +47,10 @@ export const nonChainDirectories = [
"versions.schema.json",
"README.md",
"LICENSE",
"package.json"
"package.json",
"package-lock.json",
"eslint.config.mjs",
"primary_colors.py"
]

export const assetSchema = {
Expand All @@ -67,6 +71,13 @@ export const assetSchema = {
keywords: []
}

export const schemas = new Map([
["ibc", "ibc_data.schema.json"],
["chain", "chain.schema.json"],
["assetlist", "assetlist.schema.json"],
["versions", "versions.schema.json"],
]);

export const bech32ConfigSuffixMap = new Map([
["bech32PrefixAccAddr", ""],
["bech32PrefixAccPub", "pub"],
Expand All @@ -77,7 +88,7 @@ export const bech32ConfigSuffixMap = new Map([
]);


const networkTypeToDirectoryMap = new Map();
export const networkTypeToDirectoryMap = new Map();
networkTypeToDirectoryMap.set("mainnet", "");
networkTypeToDirectoryMap.set("testnet", "testnets");
for (const [networkType, directory] of networkTypeToDirectoryMap.entries()) {
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/utility/update_chaindata.py

This file was deleted.

Loading

0 comments on commit 288c771

Please sign in to comment.