From fdb417c84f3209c0a6e1aacc43a7b2a03ca57284 Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Mon, 21 Nov 2022 17:54:21 -0500 Subject: [PATCH 1/9] astar tokens and network details --- package.json | 2 +- resources/networks.json | 102 +++++++++++++++++++++---- resources/tokens.json | 162 +++++++++++++++++++++++++++++++++++----- 3 files changed, 234 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index 3767e96..f1b5366 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tokens-resource", - "version": "0.1.0", + "version": "1.1.1", "private": true, "scripts": { "dev": "next dev", diff --git a/resources/networks.json b/resources/networks.json index e56b29e..3b1a29e 100644 --- a/resources/networks.json +++ b/resources/networks.json @@ -1,11 +1,23 @@ { "acala": { "icon": "/networks/acala.png", - "name": "acala" + "name": "acala", + "relayChain": "polkadot", + "parachainId": 2000, + "endpoint": "wss://acala-rpc.dwellir.com", + "subscan": "https://acala.subscan.io", + "isEVMChain": true, + "isAstarNativeToken": true }, "astar": { "icon": "/networks/astar.png", - "name": "astar" + "name": "astar", + "relayChain": "polkadot", + "parachainId": 2006, + "endpoint": "wss://astar-rpc.dwellir.com", + "subscan": "https://astar.subscan.io", + "isEVMChain": true, + "isAstarNativeToken": false }, "basilisk": { "icon": "/networks/basilisk.png", @@ -49,7 +61,12 @@ }, "interlay": { "icon": "/networks/interlay.png", - "name": "interlay" + "name": "interlay", + "relayChain": "polkadot", + "parachainId": 2032, + "endpoint": "wss://api.interlay.io/parachain", + "subscan": "https://interlay.subscan.io", + "isAstarNativeToken": false }, "kabocha": { "icon": "/networks/kabocha.png", @@ -57,19 +74,40 @@ }, "karura": { "icon": "/networks/karura.png", - "name": "karura" + "name": "karura", + "relayChain": "kusama", + "parachainId": 2000, + "endpoint": "wss://karura-rpc.dwellir.com", + "subscan": "https://karura.subscan.io", + "isEVMChain": true, + "isAstarNativeToken": true }, "khala": { "icon": "/networks/khala.png", - "name": "khala" + "name": "khala", + "relayChain": "kusama", + "parachainId": 2004, + "endpoint": "wss://khala-rpc.dwellir.com", + "subscan": "https://khala.subscan.io", + "isAstarNativeToken": true }, "kintsugi": { "icon": "/networks/kintsugi.png", - "name": "kintsugi" + "name": "kintsugi", + "relayChain": "kusama", + "parachainId": 2092, + "endpoint": "wss://kintsugi-rpc.dwellir.com", + "subscan": "https://kintsugi.subscan.io", + "isAstarNativeToken": false }, "kusama": { "icon": "/networks/kusama.png", - "name": "kusama" + "name": "kusama", + "relayChain": "kusama", + "parachainId": 0, + "endpoint": "wss://kusama-rpc.polkadot.io", + "subscan": "https://kusama.subscan.io", + "isAstarNativeToken": false }, "kylin": { "icon": "/networks/kylin.png", @@ -105,7 +143,12 @@ }, "polkadot": { "icon": "/networks/polkadot.png", - "name": "polkadot" + "name": "polkadot", + "relayChain": "polkadot", + "parachainId": 0, + "endpoint": "wss://polkadot.api.onfinality.io/public-ws", + "subscan": "https://polkadot.subscan.io", + "isAstarNativeToken": false }, "rococo": { "icon": "/networks/rococo.png", @@ -113,12 +156,33 @@ }, "shiden": { "icon": "/networks/shiden.png", - "name": "shiden" + "name": "shiden", + "relayChain": "kusama", + "parachainId": 2007, + "endpoint": "wss://shiden-rpc.dwellir.com", + "subscan": "https://shiden.subscan.io", + "isEVMChain": true, + "isWASMChain": true, + "isAstarNativeToken": false }, "statemine": { "icon": "/networks/statemine.png", - "name": "statemine" - }, + "name": "statemine", + "relayChain": "kusama", + "parachainId": 1000, + "endpoint": "wss://statemine-rpc.polkadot.io", + "subscan": "https://statemine.subscan.io", + "isAstarNativeToken": false + }, + "statemint": { + "icon": "/networks/statemine.png", + "name": "statemint", + "relayChain": "polkadot", + "parachainId": 1000, + "endpoint": "wss://statemint-rpc.dwellir.com", + "subscan": "https://statemint.subscan.io", + "isAstarNativeToken": false +}, "turing": { "icon": "/networks/turing.png", "name": "turing" @@ -137,7 +201,13 @@ }, "moonriver": { "icon": "/networks/moonriver.png", - "name": "moonriver" + "name": "moonriver", + "relayChain": "kusama", + "parachainId": 2023, + "endpoint": "wss://wss.api.moonriver.moonbeam.network", + "subscan": "https://moonriver.subscan.io", + "isEVMChain": true, + "isAstarNativeToken": true }, "kico": { "icon": "/networks/kico.png", @@ -153,7 +223,13 @@ }, "moonbeam": { "icon": "/networks/moonbeam.png", - "name": "moonbeam" + "name": "moonbeam", + "relayChain": "polkadot", + "parachainId": 2004, + "endpoint": "wss://wss.api.moonbeam.network", + "subscan": "https://moonbeam.subscan.io", + "isEVMChain": true, + "isAstarNativeToken": true }, "integritee": { "icon": "/networks/integritee.png", diff --git a/resources/tokens.json b/resources/tokens.json index 05c58d7..70bf897 100644 --- a/resources/tokens.json +++ b/resources/tokens.json @@ -1,7 +1,14 @@ { "ACA": { "icon": "/tokens/ACA.png", - "symbol": "ACA" + "symbol": "ACA", + "name": "Acala", + "isNativeToken": true, + "astarAssetId": "18446744073709551616", + "originAssetId": "ACA", + "isXcmCompatible": true, + "originChain": "acala", + "minBridgeAmount": "0.4" }, "ARIS": { "icon": "/tokens/ARIS.png", @@ -9,11 +16,25 @@ }, "ASTR": { "icon": "/tokens/ASTR.png", - "symbol": "ASTR" + "symbol": "ASTR", + "name": "Astar", + "isNativeToken": true, + "astarAssetId": "0000000000000000000", + "originAssetId": "ASTR", + "isXcmCompatible": true, + "originChain": "astar", + "minBridgeAmount": "0.1" }, "AUSD": { "icon": "/tokens/AUSD.png", - "symbol": "AUSD" + "symbol": "AUSD", + "name": "Acala Dollar", + "isNativeToken": false, + "astarAssetId": "18446744073709551617", + "originAssetId": "AUSD", + "isXcmCompatible": true, + "originChain": "acala", + "minBridgeAmount": "0.1" }, "BNB": { "icon": "/tokens/BNB.png", @@ -49,7 +70,14 @@ }, "DOT": { "icon": "/tokens/DOT.png", - "symbol": "DOT" + "symbol": "DOT", + "name": "Polkadot", + "isNativeToken": true, + "assetId": "340282366920938463463374607431768211455", + "originAssetId": "", + "isXcmCompatible": true, + "originChain": "polkadot", + "minBridgeAmount": "1.1" }, "EQ": { "icon": "/tokens/EQ.png", @@ -77,7 +105,14 @@ }, "IBTC": { "icon": "/tokens/IBTC.png", - "symbol": "IBTC" + "symbol": "IBTC", + "name": "interBTC", + "isNativeToken": false, + "astarAssetId": "18446744073709551620", + "originAssetId": "IBTC", + "isXcmCompatible": true, + "originChain": "interlay", + "minBridgeAmount": "0.00000237" }, "IMBU": { "icon": "/tokens/IMBU.png", @@ -85,7 +120,14 @@ }, "INTR": { "icon": "/tokens/INTR.png", - "symbol": "INTR" + "symbol": "INTR", + "name": "Interlay", + "isNativeToken": true, + "astarAssetId": "18446744073709551621", + "originAssetId": "INTR", + "isXcmCompatible": true, + "originChain": "interlay", + "minBridgeAmount": "0.959" }, "KAB": { "icon": "/tokens/KAB.png", @@ -93,15 +135,36 @@ }, "KAR": { "icon": "/tokens/KAR.png", - "symbol": "KAR" + "symbol": "KAR", + "name": "Karura", + "isNativeToken": true, + "astarAssetId": "18446744073709551618", + "originAssetId": "KAR", + "isXcmCompatible": true, + "originChain": "karura", + "minBridgeAmount": "0.11" }, "KBTC": { "icon": "/tokens/KBTC.png", - "symbol": "KBTC" + "symbol": "KBTC", + "name": "kintsugiBTC", + "isNativeToken": false, + "astarAssetId": "18446744073709551621", + "originAssetId": "KBTC", + "isXcmCompatible": true, + "originChain": "kintsugi", + "minBridgeAmount": "0.00000237" }, "KINT": { "icon": "/tokens/KINT.png", - "symbol": "KINT" + "symbol": "KINT", + "name": "Kintsugi", + "isNativeToken": true, + "astarAssetId": "18446744073709551622", + "originAssetId": "KINT", + "isXcmCompatible": true, + "originChain": "kintsugi", + "minBridgeAmount": "0.345" }, "KMA": { "icon": "/tokens/KMA.png", @@ -109,11 +172,25 @@ }, "KSM": { "icon": "/tokens/KSM.png", - "symbol": "KSM" + "symbol": "KSM", + "name": "Kusama", + "isNativeToken": true, + "astarAssetId": "340282366920938463463374607431768211455", + "originAssetId": "", + "isXcmCompatible": true, + "originChain": "kusama", + "minBridgeAmount": "0.1" }, "KUSD": { "icon": "/tokens/KUSD.png", - "symbol": "KUSD" + "symbol": "KUSD", + "name": "Acala Dollar", + "isNativeToken": false, + "astarAssetId": "18446744073709551616", + "originAssetId": "KUSD", + "isXcmCompatible": true, + "originChain": "karura", + "minBridgeAmount": "0.1" }, "KYL": { "icon": "/tokens/KYL.png", @@ -125,7 +202,14 @@ }, "LDOT": { "icon": "/tokens/LDOT.png", - "symbol": "LDOT" + "symbol": "LDOT", + "name": "Liquid DOT", + "isNativeToken": false, + "astarAssetId": "18446744073709551618", + "originAssetId": "LDOT", + "isXcmCompatible": true, + "originChain": "acala", + "minBridgeAmount": "0.13" }, "LIKE": { "icon": "/tokens/LIKE.png", @@ -137,7 +221,14 @@ }, "LKSM": { "icon": "/tokens/LKSM.png", - "symbol": "LKSM" + "symbol": "LKSM", + "name": "Liquid KSM", + "isNativeToken": false, + "astarAssetId": "18446744073709551619", + "originAssetId": "LKSM", + "isXcmCompatible": true, + "originChain": "karura", + "minBridgeAmount": "0.0024" }, "LPT0": { "icon": "/tokens/LPT0.png", @@ -153,7 +244,14 @@ }, "MOVR": { "icon": "/tokens/MOVR.png", - "symbol": "MOVR" + "symbol": "MOVR", + "name": "Moonriver", + "isNativeToken": true, + "astarAssetId": "18446744073709551620", + "originAssetId": "MOVR", + "isXcmCompatible": true, + "originChain": "moonriver", + "minBridgeAmount": "0.007" }, "NEER": { "icon": "/tokens/NEER.png", @@ -165,7 +263,14 @@ }, "PHA": { "icon": "/tokens/PHA.png", - "symbol": "PHA" + "symbol": "PHA", + "name": "Phala", + "isNativeToken": true, + "astarAssetId": "18446744073709551623", + "originAssetId": "PHA", + "isXcmCompatible": true, + "originChain": "khala", + "minBridgeAmount": "0.2" }, "QTZ": { "icon": "/tokens/QTZ.png", @@ -181,7 +286,14 @@ }, "SDN": { "icon": "/tokens/SDN.png", - "symbol": "SDN" + "symbol": "SDN", + "name": "Shiden", + "isNativeToken": true, + "astarAssetId": "0000000000000000000", + "originAssetId": "SDN", + "isXcmCompatible": true, + "originChain": "shiden", + "minBridgeAmount": "0.1" }, "TAI": { "icon": "/tokens/TAI.png", @@ -201,7 +313,14 @@ }, "USDT": { "icon": "/tokens/USDT.png", - "symbol": "USDT" + "symbol": "USDT", + "name": "Tether USD", + "isNativeToken": false, + "astarAssetId": "4294969280", + "originAssetId": "1984", + "isXcmCompatible": true, + "originChain": "statemint, statemine", + "minBridgeAmount": "0.21" }, "WBNB": { "icon": "/tokens/WBNB.png", @@ -249,7 +368,14 @@ }, "GLMR": { "icon": "/tokens/GLMR.png", - "symbol": "GLMR" + "symbol": "GLMR", + "name": "Glimmer", + "isNativeToken": true, + "astarAssetId": "18446744073709551619", + "originAssetId": "GLMR", + "isXcmCompatible": true, + "originChain": "moonbeam", + "minBridgeAmount": "0.2" }, "tDOT": { "icon": "/tokens/tDOT.png", From 681b10a6bd299b4af94c769dc94d81f4f4973603 Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Mon, 21 Nov 2022 19:48:20 -0500 Subject: [PATCH 2/9] api endpoint for json --- pages/api/networks.js | 13 +++++++++++++ pages/api/tokens.js | 12 ++++++++++++ pages/index.js | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 pages/api/networks.js create mode 100644 pages/api/tokens.js diff --git a/pages/api/networks.js b/pages/api/networks.js new file mode 100644 index 0000000..59789da --- /dev/null +++ b/pages/api/networks.js @@ -0,0 +1,13 @@ +import networkList from "../../resources/networks.json"; +const PUBLIC_HOST = 'https://token-resources-chi.vercel.app'; + +Object.entries(networkList).forEach(([key, value]) => { + value.icon = PUBLIC_HOST + value.icon + console.log(`${key}: ${value.icon}`) +}) + +const networks = JSON.stringify(networkList) + +export default function handler(req, res) { + res.status(200).json(networks) +} \ No newline at end of file diff --git a/pages/api/tokens.js b/pages/api/tokens.js new file mode 100644 index 0000000..8bb8afe --- /dev/null +++ b/pages/api/tokens.js @@ -0,0 +1,12 @@ +import tokenList from "../../resources/tokens.json"; +const PUBLIC_HOST = 'https://token-resources-chi.vercel.app'; + +Object.entries(tokenList).forEach(([key, value]) => { + value.icon = PUBLIC_HOST + value.icon +}) + +const tokens = JSON.stringify(tokenList) + +export default function handler(req, res) { + res.status(200).json(tokens) +} \ No newline at end of file diff --git a/pages/index.js b/pages/index.js index 42f2d0a..ccbbe67 100644 --- a/pages/index.js +++ b/pages/index.js @@ -14,7 +14,7 @@ export default function Home() { return (
- Acala Resources + Polkadot Ecosystem Token Resources

From 9c2faae2e728dd1570606df5b2e0a0aa034a9925 Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Mon, 21 Nov 2022 20:01:27 -0500 Subject: [PATCH 3/9] readme update with api --- README.md | 13 +++++++++---- pages/api/networks.js | 1 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ad7daab..28ddb3a 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,14 @@ ### 2. How to Get The Token's Resource Link The token URL will be created with the rule **https://resources.acala.network/{TYPE}/{NAME}.png** - eg. - token dot: https://resources.acala.network/tokens/DOT.png - polkadot network: https://resources.acala.network/networks/polkadot.png + + - token dot: https://resources.acala.network/tokens/DOT.png + - polkadot network: https://resources.acala.network/networks/polkadot.png ### 3. Preview All Token and Network - visit [acala-resource](https://resources.acala.network) page to preview all token and network icons. + visit [token-resource](https://resources.acala.network) page to preview all token and network icons. + +### 4. Get JSON Results from the API for all Tokens and Networks + + - tokens: https://resources.acala.network/api/tokens + - networks: https://resources.acala.network/api/networks \ No newline at end of file diff --git a/pages/api/networks.js b/pages/api/networks.js index 59789da..5d30098 100644 --- a/pages/api/networks.js +++ b/pages/api/networks.js @@ -3,7 +3,6 @@ const PUBLIC_HOST = 'https://token-resources-chi.vercel.app'; Object.entries(networkList).forEach(([key, value]) => { value.icon = PUBLIC_HOST + value.icon - console.log(`${key}: ${value.icon}`) }) const networks = JSON.stringify(networkList) From c4e22f416f49539db89586524ce9c4e67ab7177f Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Mon, 21 Nov 2022 21:33:38 -0500 Subject: [PATCH 4/9] bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f1b5366..617efa4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tokens-resource", - "version": "1.1.1", + "version": "1.1.2", "private": true, "scripts": { "dev": "next dev", From 26607ebd65e0b977f4053c631e3894c441e7a6c8 Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Fri, 16 Dec 2022 20:09:55 -0500 Subject: [PATCH 5/9] targetChain array, new chains, cors headers --- resources/networks.json | 14 ++++++++++++-- resources/tokens.json | 20 ++++++++++++++++++-- vercel.json | 4 ++++ 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/resources/networks.json b/resources/networks.json index 3b1a29e..578f740 100644 --- a/resources/networks.json +++ b/resources/networks.json @@ -131,7 +131,12 @@ }, "phala": { "icon": "/networks/phala.png", - "name": "phala" + "name": "phala", + "relayChain": "polkadot", + "parachainId": 2035, + "endpoint": "wss://api.phala.network/ws", + "subscan": "https://phala.subscan.io", + "isAstarNativeToken": true }, "pichiu": { "icon": "/networks/pichiu.png", @@ -215,7 +220,12 @@ }, "crust shadow": { "icon": "/networks/crust shadow.png", - "name": "crust shadow" + "name": "crust shadow", + "relayChain": "kusama", + "parachainId": 2012, + "endpoint": "wss://rpc2-shadow.crust.network", + "subscan": "https://crust.subscan.io", + "isAstarNativeToken": true }, "altair": { "icon": "/networks/altair.png", diff --git a/resources/tokens.json b/resources/tokens.json index 70bf897..a2a1b86 100644 --- a/resources/tokens.json +++ b/resources/tokens.json @@ -8,6 +8,7 @@ "originAssetId": "ACA", "isXcmCompatible": true, "originChain": "acala", + "targetChain": ["astar"], "minBridgeAmount": "0.4" }, "ARIS": { @@ -34,6 +35,7 @@ "originAssetId": "AUSD", "isXcmCompatible": true, "originChain": "acala", + "targetChain": ["astar"], "minBridgeAmount": "0.1" }, "BNB": { @@ -73,10 +75,11 @@ "symbol": "DOT", "name": "Polkadot", "isNativeToken": true, - "assetId": "340282366920938463463374607431768211455", + "astarAssetId": "340282366920938463463374607431768211455", "originAssetId": "", "isXcmCompatible": true, "originChain": "polkadot", + "targetChain": ["astar","acala"], "minBridgeAmount": "1.1" }, "EQ": { @@ -112,6 +115,7 @@ "originAssetId": "IBTC", "isXcmCompatible": true, "originChain": "interlay", + "targetChain": ["astar","acala"], "minBridgeAmount": "0.00000237" }, "IMBU": { @@ -127,6 +131,7 @@ "originAssetId": "INTR", "isXcmCompatible": true, "originChain": "interlay", + "targetChain": ["astar","acala"], "minBridgeAmount": "0.959" }, "KAB": { @@ -142,6 +147,7 @@ "originAssetId": "KAR", "isXcmCompatible": true, "originChain": "karura", + "targetChain": ["shiden"], "minBridgeAmount": "0.11" }, "KBTC": { @@ -153,6 +159,7 @@ "originAssetId": "KBTC", "isXcmCompatible": true, "originChain": "kintsugi", + "targetChain": ["shiden"], "minBridgeAmount": "0.00000237" }, "KINT": { @@ -164,6 +171,7 @@ "originAssetId": "KINT", "isXcmCompatible": true, "originChain": "kintsugi", + "targetChain": ["shiden"], "minBridgeAmount": "0.345" }, "KMA": { @@ -179,6 +187,7 @@ "originAssetId": "", "isXcmCompatible": true, "originChain": "kusama", + "targetChain": ["shiden","karura"], "minBridgeAmount": "0.1" }, "KUSD": { @@ -190,6 +199,7 @@ "originAssetId": "KUSD", "isXcmCompatible": true, "originChain": "karura", + "targetChain": ["shiden"], "minBridgeAmount": "0.1" }, "KYL": { @@ -209,6 +219,7 @@ "originAssetId": "LDOT", "isXcmCompatible": true, "originChain": "acala", + "targetChain": ["astar"], "minBridgeAmount": "0.13" }, "LIKE": { @@ -228,6 +239,7 @@ "originAssetId": "LKSM", "isXcmCompatible": true, "originChain": "karura", + "targetChain": ["shiden"], "minBridgeAmount": "0.0024" }, "LPT0": { @@ -251,6 +263,7 @@ "originAssetId": "MOVR", "isXcmCompatible": true, "originChain": "moonriver", + "targetChain": ["shiden","karura"], "minBridgeAmount": "0.007" }, "NEER": { @@ -270,6 +283,7 @@ "originAssetId": "PHA", "isXcmCompatible": true, "originChain": "khala", + "targetChain": ["shiden","karura"], "minBridgeAmount": "0.2" }, "QTZ": { @@ -293,6 +307,7 @@ "originAssetId": "SDN", "isXcmCompatible": true, "originChain": "shiden", + "targetChain": ["karura"], "minBridgeAmount": "0.1" }, "TAI": { @@ -319,7 +334,7 @@ "astarAssetId": "4294969280", "originAssetId": "1984", "isXcmCompatible": true, - "originChain": "statemint, statemine", + "originChain": ["statemint","statemine"], "minBridgeAmount": "0.21" }, "WBNB": { @@ -375,6 +390,7 @@ "originAssetId": "GLMR", "isXcmCompatible": true, "originChain": "moonbeam", + "targetChain": ["astar"], "minBridgeAmount": "0.2" }, "tDOT": { diff --git a/vercel.json b/vercel.json index 687c515..fb41178 100644 --- a/vercel.json +++ b/vercel.json @@ -3,6 +3,10 @@ { "source": "/(tokens|networks)/(.*)", "headers" : [ + { "key": "Access-Control-Allow-Credentials", "value": "true" }, + { "key": "Access-Control-Allow-Origin", "value": "*" }, + { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" }, + { "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" }, { "key" : "Cache-Control", "value" : "public, max-age=604800, stale-while-revalidate=2678400" From 340098024b21c9900e3802e3f6c5dac3181f8dad Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Fri, 16 Dec 2022 20:17:39 -0500 Subject: [PATCH 6/9] cors for api --- package.json | 2 +- vercel.json | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 617efa4..d182f3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tokens-resource", - "version": "1.1.2", + "version": "1.1.3", "private": true, "scripts": { "dev": "next dev", diff --git a/vercel.json b/vercel.json index fb41178..bb023a6 100644 --- a/vercel.json +++ b/vercel.json @@ -3,15 +3,20 @@ { "source": "/(tokens|networks)/(.*)", "headers" : [ - { "key": "Access-Control-Allow-Credentials", "value": "true" }, - { "key": "Access-Control-Allow-Origin", "value": "*" }, - { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" }, - { "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" }, { "key" : "Cache-Control", "value" : "public, max-age=604800, stale-while-revalidate=2678400" } ] + }, + { + "source": "/api/(.*)", + "headers": [ + { "key": "Access-Control-Allow-Credentials", "value": "true" }, + { "key": "Access-Control-Allow-Origin", "value": "*" }, + { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" }, + { "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" } + ] } ] } From 23ff872f5240a8cceb51bf4a9791d9c73e6df809 Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Fri, 16 Dec 2022 21:12:59 -0500 Subject: [PATCH 7/9] token adjustments --- resources/tokens.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/tokens.json b/resources/tokens.json index a2a1b86..b64096e 100644 --- a/resources/tokens.json +++ b/resources/tokens.json @@ -24,6 +24,7 @@ "originAssetId": "ASTR", "isXcmCompatible": true, "originChain": "astar", + "targetChain": ["acala","moonbeam","phala"], "minBridgeAmount": "0.1" }, "AUSD": { @@ -159,7 +160,7 @@ "originAssetId": "KBTC", "isXcmCompatible": true, "originChain": "kintsugi", - "targetChain": ["shiden"], + "targetChain": ["karura"], "minBridgeAmount": "0.00000237" }, "KINT": { @@ -171,7 +172,7 @@ "originAssetId": "KINT", "isXcmCompatible": true, "originChain": "kintsugi", - "targetChain": ["shiden"], + "targetChain": ["karura"], "minBridgeAmount": "0.345" }, "KMA": { @@ -279,11 +280,11 @@ "symbol": "PHA", "name": "Phala", "isNativeToken": true, - "astarAssetId": "18446744073709551623", + "astarAssetId": ["18446744073709551623","18446744073709551622"], "originAssetId": "PHA", "isXcmCompatible": true, - "originChain": "khala", - "targetChain": ["shiden","karura"], + "originChain": ["khala","phala"], + "targetChain": ["shiden","karura","astar"], "minBridgeAmount": "0.2" }, "QTZ": { @@ -335,6 +336,7 @@ "originAssetId": "1984", "isXcmCompatible": true, "originChain": ["statemint","statemine"], + "targetChain": ["shiden","astar"], "minBridgeAmount": "0.21" }, "WBNB": { From dca0c4694a7d4f15d9b1751a2435f7e61b86d84a Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Mon, 19 Dec 2022 16:10:20 -0500 Subject: [PATCH 8/9] order to reflect enum --- resources/tokens.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/tokens.json b/resources/tokens.json index b64096e..659eacc 100644 --- a/resources/tokens.json +++ b/resources/tokens.json @@ -280,11 +280,11 @@ "symbol": "PHA", "name": "Phala", "isNativeToken": true, - "astarAssetId": ["18446744073709551623","18446744073709551622"], + "astarAssetId": ["18446744073709551622","18446744073709551623"], "originAssetId": "PHA", "isXcmCompatible": true, - "originChain": ["khala","phala"], - "targetChain": ["shiden","karura","astar"], + "originChain": ["phala","khala"], + "targetChain": ["astar","shiden","karura"], "minBridgeAmount": "0.2" }, "QTZ": { @@ -336,7 +336,7 @@ "originAssetId": "1984", "isXcmCompatible": true, "originChain": ["statemint","statemine"], - "targetChain": ["shiden","astar"], + "targetChain": ["astar","shiden"], "minBridgeAmount": "0.21" }, "WBNB": { From c01de21be49e5727652e3294d43972ea1fae3b3a Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Mon, 19 Dec 2022 16:43:07 -0500 Subject: [PATCH 9/9] add csm token metadata --- resources/tokens.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/tokens.json b/resources/tokens.json index 659eacc..f8820b0 100644 --- a/resources/tokens.json +++ b/resources/tokens.json @@ -365,7 +365,14 @@ }, "CSM": { "icon": "/tokens/CSM.png", - "symbol": "CSM" + "symbol": "CSM", + "isNativeToken": true, + "astarAssetId": "18446744073709551624", + "originAssetId": "CSM", + "isXcmCompatible": true, + "originChain": "crust shadow", + "targetChain": ["shiden"], + "minBridgeAmount": "0.5" }, "KICO": { "icon": "/tokens/KICO.png",