Commit 3af5a902 authored by tom's avatar tom

rollback changes related to storing config in the repo

parent eb082a4c
......@@ -2,4 +2,3 @@ node_modules
node_modules_linux
playwright/envs.js
\ No newline at end of file
tools/marketplace-config-validator/schema.*
\ No newline at end of file
......@@ -6,39 +6,6 @@ on:
- main
jobs:
marketplace_config_check:
name: Validate marketplace config
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Find out if config files are changed
id: changes
uses: dorny/paths-filter@v2
with:
filters: |
config:
- 'configs/marketplace/**'
- 'types/**'
- name: Setup node
if: steps.changes.outputs.config == 'true'
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Install dependencies
if: steps.changes.outputs.config == 'true'
uses: bahmutov/npm-install@v1
with:
useRollingCache: true
- name: Validate configs
if: steps.changes.outputs.config == 'true'
run: './deploy/scripts/validate_marketplace_config.sh'
lint:
name: ESLint
runs-on: ubuntu-latest
......
......@@ -48,6 +48,3 @@ yarn-error.log*
/playwright/envs.js
**.dec**
# tools
tools/marketplace-config-validator/schema.*
[
{
"author": "Uniswap",
"id": "uniswap",
"title": "Uniswap",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FT8RR0UqqvH6wAVfaaM4f%252FUniswap.png%3Falt%3Dmedia%26token%3D797851a0-2d80-4f7b-8d80-f9ba664c0b3d",
"categories": [
"tools"
],
"shortDescription": "Uniswap is a cryptocurrency exchange which uses a decentralized network protocol.",
"site": "https://docs.uniswap.org/",
"description": "Uniswap is a cryptocurrency exchange which uses a decentralized network protocol.",
"url": "https://app.uniswap.org/swap"
},
{
"author": "Aave",
"id": "aave",
"title": "Aave",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FaNQY8jHNue30P2caV79v%252FAave.png%3Falt%3Dmedia%26token%3Dda9ea09b-a5d8-4bf1-bdfe-41837eebdd03",
"categories": [
"tools"
],
"shortDescription": "Aave is a decentralised non-custodial liquidity market protocol where users can participate as suppliers or borrowers. Suppliers provide liquidity to the market to earn a passive income, while borrowers are able to borrow in an overcollateralised (perpetually) or undercollateralised (one-block liquidity) fashion.",
"site": "https://docs.aave.com/faq/",
"description": "Aave is a decentralised non-custodial liquidity market protocol where users can participate as suppliers or borrowers. Suppliers provide liquidity to the market to earn a passive income, while borrowers are able to borrow in an overcollateralised (perpetually) or undercollateralised (one-block liquidity) fashion.",
"url": "https://staging.aave.com/"
},
{
"author": "Blockscout",
"id": "token-approval-tracker",
"title": "Token Approval Tracker",
"logo": "https://approval-tracker.apps.blockscout.com/icon-192.png",
"categories": [
"security",
"tools"
],
"shortDescription": "Token Approval Tracker shows all approvals for any ERC20-compliant tokens and NFTs and lets to revoke them or adjust the approved amount.",
"site": "https://docs.blockscout.com/for-users/blockscout-apps/token-approval-tracker",
"description": "Token Approval Tracker shows all approvals for any ERC20-compliant tokens and NFTs and lets to revoke them or adjust the approved amount.",
"url": "https://approval-tracker.apps.blockscout.com/"
}
]
\ No newline at end of file
[
{
"author": "Hop",
"id": "hop-exchange",
"title": "Hop",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FfhJJGsR3RSfFmRoxfvqk%252FHop.png%3Falt%3Dmedia%26token%3D8107e45c-546c-4771-bbfe-e86bb0fe8c1a",
"categories": [
"tools"
],
"shortDescription": "Hop is a scalable rollup-to-rollup general token bridge. It allows users to send tokens from one rollup or sidechain to another almost immediately without having to wait for the networks challenge period.",
"site": "https://help.hop.exchange/hc/en-us/articles/4405172445197-What-is-Hop-Protocol-",
"description": "Hop is a scalable rollup-to-rollup general token bridge. It allows users to send tokens from one rollup or sidechain to another almost immediately without having to wait for the networks challenge period.",
"external": true,
"url":"https://goerli.hop.exchange/send?token=ETH&sourceNetwork=ethereum"
},
{
"author": "Blockscout",
"id": "token-approval-tracker",
"title": "Token Approval Tracker",
"logo": "https://approval-tracker.apps.blockscout.com/icon-192.png",
"categories": [
"security",
"tools"
],
"shortDescription": "Token Approval Tracker shows all approvals for any ERC20-compliant tokens and NFTs and lets to revoke them or adjust the approved amount.",
"site": "https://docs.blockscout.com/for-users/blockscout-apps/token-approval-tracker",
"description": "Token Approval Tracker shows all approvals for any ERC20-compliant tokens and NFTs and lets to revoke them or adjust the approved amount.",
"url": "https://approval-tracker.apps.blockscout.com/"
},
{
"author": "Revoke",
"id": "revoke.cash",
"title": "Revoke.cash",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252Fdt8jSgtmNeJjzRt7tRZO%252Frevoke_sing.png%3Falt%3Dmedia%26token%3D9cb9ada6-4773-4eec-8bd0-cbb172d2c558",
"categories": [
"security",
"tools"
],
"shortDescription": "Revoke.cash comes in as a preventative tool to manage your token allowances and practice proper wallet hygiene. By regularly revoking active allowances you reduce the chances of becoming the victim of allowance exploits.",
"site": "https://revoke.cash/about",
"description": "Revoke.cash comes in as a preventative tool to manage your token allowances and practice proper wallet hygiene. By regularly revoking active allowances you reduce the chances of becoming the victim of allowance exploits.",
"url": "https://revoke.cash/"
},
{
"author": "Aave",
"id": "aave",
"title": "Aave",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FaNQY8jHNue30P2caV79v%252FAave.png%3Falt%3Dmedia%26token%3Dda9ea09b-a5d8-4bf1-bdfe-41837eebdd03",
"categories": [
"tools"
],
"shortDescription": "Aave is a decentralised non-custodial liquidity market protocol where users can participate as suppliers or borrowers. Suppliers provide liquidity to the market to earn a passive income, while borrowers are able to borrow in an overcollateralised (perpetually) or undercollateralised (one-block liquidity) fashion.",
"site": "https://docs.aave.com/faq/",
"description": "Aave is a decentralised non-custodial liquidity market protocol where users can participate as suppliers or borrowers. Suppliers provide liquidity to the market to earn a passive income, while borrowers are able to borrow in an overcollateralised (perpetually) or undercollateralised (one-block liquidity) fashion.",
"url": "https://staging.aave.com/"
},
{
"author": "LooksRare",
"id": "looksrare",
"title": "LooksRare",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252Frc5vMd2JW7eXuf0qlLc4%252FLooksRare.png%3Falt%3Dmedia%26token%3D7680741b-023a-41fa-bc28-e561b50d63cf",
"categories": [
"tools"
],
"shortDescription": "LooksRare is the web3 NFT Marketplace where traders and collectors have earned over $1.3 Billion in rewards.",
"external": true,
"site": "https://docs.looksrare.org/about/welcome-to-looksrare",
"description": "LooksRare is the web3 NFT Marketplace where traders and collectors have earned over $1.3 Billion in rewards.",
"url": "https://goerli.looksrare.org/"
},
{
"author": "zkSync Bridge",
"id": "zksync-bridge",
"title": "zkSync Bridge",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FAuAx8pzSEfj0MfQnaO8h%252FzkSync.png%3Falt%3Dmedia%26token%3D3f63476b-24b4-4aac-b03e-4114630429b2",
"categories": [
"security",
"tools"
],
"shortDescription": "zkSync 2.0 Goerli Bridge",
"external": true,
"site": "https://v2-docs.zksync.io/dev/",
"description": "zkSync 2.0 Goerli Bridge",
"url": "https://portal.zksync.io/bridge"
},
{
"author": "dYdX",
"id": "dydx",
"title": "dYdX",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FPWEYjmrEsWYoahu7pRZh%252Fdxdy.png%3Falt%3Dmedia%26token%3D34439e25-98f5-4992-9773-19d49efda86c",
"categories": [
"security",
"tools"
],
"external": true,
"shortDescription": "dYdX is a leading decentralized exchange that currently supports perpetual trading. dYdX runs on smart contracts on the Ethereum blockchain, and allows users to trade with no intermediaries.",
"site": "https://help.dydx.exchange/en/articles/3047379-introduction-and-overview",
"description": "dYdX is a leading decentralized exchange that currently supports perpetual trading. dYdX runs on smart contracts on the Ethereum blockchain, and allows users to trade with no intermediaries.",
"url": "https://trade.stage.dydx.exchange/portfolio/overview"
},
{
"author": "MetalSwap",
"id": "metalswap",
"title": "MetalSwap",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FEbbjO5pLETxpzJjyJo2G%252FMetalSwap.png%3Falt%3Dmedia%26token%3D149015e8-e65b-4b12-ac24-e512973912c4",
"categories": [
"security",
"tools"
],
"shortDescription": "MetalSwap is a decentralised platform that enables hedging swaps in financial markets with the aim of providing a hedge for commodity traders and an investment opportunity for those who contribute to the shared liquidity of the project.",
"site": "https://docs.metalswap.finance/",
"description": "MetalSwap is a decentralised platform that enables hedging swaps in financial markets with the aim of providing a hedge for commodity traders and an investment opportunity for those who contribute to the shared liquidity of the project.",
"url": "https://demo.metalswap.finance/"
},
{
"author": "FaucetDao",
"id": "faucetdao",
"title": "FaucetDao",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FpRYQQ2eCoFtGaiYnIXx3%252Ffaucet.png%3Falt%3Dmedia%26token%3Df1c7ddfc-055e-4710-8f23-5392d06738b9",
"categories": [
"tools"
],
"shortDescription": "FaucetDao is a decentralised community fund providing liquidity and support to early-stage well vetted blockchain projects.",
"site": "https://linktr.ee/faucet_dao",
"description": "FaucetDao is a decentralised community fund providing liquidity and support to early-stage well vetted blockchain projects.",
"url": "https://www.faucetdao.shop/swap?chain=goerli"
},
{
"author": "Uniswap",
"id": "uniswap",
"title": "Uniswap",
"logo": "https://www.gitbook.com/cdn-cgi/image/width=288,dpr=2.200000047683716,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lq1XoWGmy8zggj_u2fM%252Fuploads%252FT8RR0UqqvH6wAVfaaM4f%252FUniswap.png%3Falt%3Dmedia%26token%3D797851a0-2d80-4f7b-8d80-f9ba664c0b3d",
"categories": [
"tools"
],
"shortDescription": "Uniswap is a cryptocurrency exchange which uses a decentralized network protocol.",
"site": "https://docs.uniswap.org/",
"description": "Uniswap is a cryptocurrency exchange which uses a decentralized network protocol.",
"url": "https://app.uniswap.org/swap"
}
]
\ No newline at end of file
yarn ts-to-zod ./types/client/apps.ts ./tools/marketplace-config-validator/schema.ts
yarn tsc -p ./tools/marketplace-config-validator/tsconfig.json
node ./tools/marketplace-config-validator/index.js
\ No newline at end of file
......@@ -115,12 +115,10 @@
"svgo": "^2.8.0",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"ts-to-zod": "^3.0.0",
"typescript": "4.9.5",
"vite-plugin-svgr": "^2.2.2",
"vite-tsconfig-paths": "^3.5.2",
"ws": "^8.11.0",
"zod": "^3.21.4"
"ws": "^8.11.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --cache --fix"
......
/* eslint-disable no-console */
const baseGoerliConfig = require('../../configs/marketplace/base-goerli.json') ;
const ethGoerliConfig = require('../../configs/marketplace/eth-goerli.json') ;
const { appItemOverviewSchema } = require('./schema.js');
console.log('Checking eth-goerli.json...');
appItemOverviewSchema.array().parse(ethGoerliConfig);
console.log('All good!');
console.log('Checking base-goerli.json...');
appItemOverviewSchema.array().parse(baseGoerliConfig);
console.log('All good!');
{
"compilerOptions": {
"target": "es6",
"skipLibCheck": true,
"strict": true,
"esModuleInterop": true,
"module": "CommonJS",
"moduleResolution": "node",
"isolatedModules": true,
"incremental": true,
"baseUrl": ".",
},
"include": ["./**.ts"],
"exclude": ["node_modules", "node_modules_linux"],
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment