From 2c85935af41937346c44e6f499799eb200553c27 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 9 May 2024 11:56:57 +0530 Subject: [PATCH] Update record names --- demo/README.md | 12 +++++++----- ...Deployment.json => archive-lotus-deployment.json} | 0 ...thDeployment.json => gibbon-geth-deployment.json} | 0 ...hDeployment.json => kindred-geth-deployment.json} | 0 ...Deployment.json => sandman-lotus-deployment.json} | 0 demo/records/service/{Geth.json => geth.json} | 0 demo/records/service/{Lotus.json => lotus.json} | 0 ...son => sushiswap-blocks-subgraph-deployment.json} | 0 ...shiswap-route-processor-subgraph-deployment.json} | 0 ...yment.json => sushiswap-subgraph-deployment.json} | 0 ...nt.json => sushiswap-v2-subgraph-deployment.json} | 0 ...nt.json => sushiswap-v3-subgraph-deployment.json} | 0 ...sSubgraph.json => sushiswap-blocks-subgraph.json} | 0 ....json => sushiswap-route-processor-subgraph.json} | 0 ...ushiswapSubgraph.json => sushiswap-subgraph.json} | 0 ...wapV2Subgraph.json => sushiswap-v2-subgraph.json} | 0 ...wapV3Subgraph.json => sushiswap-v3-subgraph.json} | 0 .../watcher/{AjnaWatcher.json => ajna-watcher.json} | 0 .../{AzimuthWatcher.json => azimuth-watcher.json} | 0 ...rDeployment.json => ajna-watcher-deployment.json} | 0 ...ployment.json => azimuth-watcher-deployment.json} | 0 ...oyment.json => sushiswap-watcher-deployment.json} | 0 ...{SushiswapWatcher.json => sushiswap-watcher.json} | 0 demo/scripts/publish-records.ts | 2 +- {src => demo}/types/common/main.d.ts | 0 {src => demo}/types/common/package.json | 0 tsconfig.json | 4 ++-- 27 files changed, 10 insertions(+), 8 deletions(-) rename demo/records/service/deployments/{ArchiveLotusDeployment.json => archive-lotus-deployment.json} (100%) rename demo/records/service/deployments/{GibbonGethDeployment.json => gibbon-geth-deployment.json} (100%) rename demo/records/service/deployments/{KindredGethDeployment.json => kindred-geth-deployment.json} (100%) rename demo/records/service/deployments/{SandmanLotusDeployment.json => sandman-lotus-deployment.json} (100%) rename demo/records/service/{Geth.json => geth.json} (100%) rename demo/records/service/{Lotus.json => lotus.json} (100%) rename demo/records/subgraph/deployments/{SushiswapBlocksSubgraphDeployment.json => sushiswap-blocks-subgraph-deployment.json} (100%) rename demo/records/subgraph/deployments/{SushiswapRouteProcessorSubgraphDeployment.json => sushiswap-route-processor-subgraph-deployment.json} (100%) rename demo/records/subgraph/deployments/{SushiswapSubgraphDeployment.json => sushiswap-subgraph-deployment.json} (100%) rename demo/records/subgraph/deployments/{SushiswapV2SubgraphDeployment.json => sushiswap-v2-subgraph-deployment.json} (100%) rename demo/records/subgraph/deployments/{SushiswapV3SubgraphDeployment.json => sushiswap-v3-subgraph-deployment.json} (100%) rename demo/records/subgraph/{SushiswapBlocksSubgraph.json => sushiswap-blocks-subgraph.json} (100%) rename demo/records/subgraph/{SushiswapRouteProcessorSubgraph.json => sushiswap-route-processor-subgraph.json} (100%) rename demo/records/subgraph/{SushiswapSubgraph.json => sushiswap-subgraph.json} (100%) rename demo/records/subgraph/{SushiswapV2Subgraph.json => sushiswap-v2-subgraph.json} (100%) rename demo/records/subgraph/{SushiswapV3Subgraph.json => sushiswap-v3-subgraph.json} (100%) rename demo/records/watcher/{AjnaWatcher.json => ajna-watcher.json} (100%) rename demo/records/watcher/{AzimuthWatcher.json => azimuth-watcher.json} (100%) rename demo/records/watcher/deployments/{AjnaWatcherDeployment.json => ajna-watcher-deployment.json} (100%) rename demo/records/watcher/deployments/{AzimuthWatcherDeployment.json => azimuth-watcher-deployment.json} (100%) rename demo/records/watcher/deployments/{SushiswapWatcherDeployment.json => sushiswap-watcher-deployment.json} (100%) rename demo/records/watcher/{SushiswapWatcher.json => sushiswap-watcher.json} (100%) rename {src => demo}/types/common/main.d.ts (100%) rename {src => demo}/types/common/package.json (100%) diff --git a/demo/README.md b/demo/README.md index e78b1ae..87eac91 100644 --- a/demo/README.md +++ b/demo/README.md @@ -15,17 +15,17 @@ ```bash cp config.example.yml config.yml - # Get user key + # Change the gas value in config.yml + # gas: 500000 + + # Get user key and set it to userKey in config.yml laconicd keys export alice --unarmored-hex --unsafe --keyring-backend test --home ~/.laconicd # Create a bond laconicd tx bond create 100000000000photon --fees 100photon --from alice - # Get the bond id + # Get the bond id and set it to bondId in config.yml laconicd query bond list - - # Change the gas value - # gas: 500000 ``` * Install the CLI: @@ -41,7 +41,9 @@ ```bash # Publishes records and corresponding 'deployment' records + # In laconic-registry-cli + # Use records dir path for '--records' as required yarn ts-node demo/scripts/publish-records.ts --config config.yml --records demo/records ``` diff --git a/demo/records/service/deployments/ArchiveLotusDeployment.json b/demo/records/service/deployments/archive-lotus-deployment.json similarity index 100% rename from demo/records/service/deployments/ArchiveLotusDeployment.json rename to demo/records/service/deployments/archive-lotus-deployment.json diff --git a/demo/records/service/deployments/GibbonGethDeployment.json b/demo/records/service/deployments/gibbon-geth-deployment.json similarity index 100% rename from demo/records/service/deployments/GibbonGethDeployment.json rename to demo/records/service/deployments/gibbon-geth-deployment.json diff --git a/demo/records/service/deployments/KindredGethDeployment.json b/demo/records/service/deployments/kindred-geth-deployment.json similarity index 100% rename from demo/records/service/deployments/KindredGethDeployment.json rename to demo/records/service/deployments/kindred-geth-deployment.json diff --git a/demo/records/service/deployments/SandmanLotusDeployment.json b/demo/records/service/deployments/sandman-lotus-deployment.json similarity index 100% rename from demo/records/service/deployments/SandmanLotusDeployment.json rename to demo/records/service/deployments/sandman-lotus-deployment.json diff --git a/demo/records/service/Geth.json b/demo/records/service/geth.json similarity index 100% rename from demo/records/service/Geth.json rename to demo/records/service/geth.json diff --git a/demo/records/service/Lotus.json b/demo/records/service/lotus.json similarity index 100% rename from demo/records/service/Lotus.json rename to demo/records/service/lotus.json diff --git a/demo/records/subgraph/deployments/SushiswapBlocksSubgraphDeployment.json b/demo/records/subgraph/deployments/sushiswap-blocks-subgraph-deployment.json similarity index 100% rename from demo/records/subgraph/deployments/SushiswapBlocksSubgraphDeployment.json rename to demo/records/subgraph/deployments/sushiswap-blocks-subgraph-deployment.json diff --git a/demo/records/subgraph/deployments/SushiswapRouteProcessorSubgraphDeployment.json b/demo/records/subgraph/deployments/sushiswap-route-processor-subgraph-deployment.json similarity index 100% rename from demo/records/subgraph/deployments/SushiswapRouteProcessorSubgraphDeployment.json rename to demo/records/subgraph/deployments/sushiswap-route-processor-subgraph-deployment.json diff --git a/demo/records/subgraph/deployments/SushiswapSubgraphDeployment.json b/demo/records/subgraph/deployments/sushiswap-subgraph-deployment.json similarity index 100% rename from demo/records/subgraph/deployments/SushiswapSubgraphDeployment.json rename to demo/records/subgraph/deployments/sushiswap-subgraph-deployment.json diff --git a/demo/records/subgraph/deployments/SushiswapV2SubgraphDeployment.json b/demo/records/subgraph/deployments/sushiswap-v2-subgraph-deployment.json similarity index 100% rename from demo/records/subgraph/deployments/SushiswapV2SubgraphDeployment.json rename to demo/records/subgraph/deployments/sushiswap-v2-subgraph-deployment.json diff --git a/demo/records/subgraph/deployments/SushiswapV3SubgraphDeployment.json b/demo/records/subgraph/deployments/sushiswap-v3-subgraph-deployment.json similarity index 100% rename from demo/records/subgraph/deployments/SushiswapV3SubgraphDeployment.json rename to demo/records/subgraph/deployments/sushiswap-v3-subgraph-deployment.json diff --git a/demo/records/subgraph/SushiswapBlocksSubgraph.json b/demo/records/subgraph/sushiswap-blocks-subgraph.json similarity index 100% rename from demo/records/subgraph/SushiswapBlocksSubgraph.json rename to demo/records/subgraph/sushiswap-blocks-subgraph.json diff --git a/demo/records/subgraph/SushiswapRouteProcessorSubgraph.json b/demo/records/subgraph/sushiswap-route-processor-subgraph.json similarity index 100% rename from demo/records/subgraph/SushiswapRouteProcessorSubgraph.json rename to demo/records/subgraph/sushiswap-route-processor-subgraph.json diff --git a/demo/records/subgraph/SushiswapSubgraph.json b/demo/records/subgraph/sushiswap-subgraph.json similarity index 100% rename from demo/records/subgraph/SushiswapSubgraph.json rename to demo/records/subgraph/sushiswap-subgraph.json diff --git a/demo/records/subgraph/SushiswapV2Subgraph.json b/demo/records/subgraph/sushiswap-v2-subgraph.json similarity index 100% rename from demo/records/subgraph/SushiswapV2Subgraph.json rename to demo/records/subgraph/sushiswap-v2-subgraph.json diff --git a/demo/records/subgraph/SushiswapV3Subgraph.json b/demo/records/subgraph/sushiswap-v3-subgraph.json similarity index 100% rename from demo/records/subgraph/SushiswapV3Subgraph.json rename to demo/records/subgraph/sushiswap-v3-subgraph.json diff --git a/demo/records/watcher/AjnaWatcher.json b/demo/records/watcher/ajna-watcher.json similarity index 100% rename from demo/records/watcher/AjnaWatcher.json rename to demo/records/watcher/ajna-watcher.json diff --git a/demo/records/watcher/AzimuthWatcher.json b/demo/records/watcher/azimuth-watcher.json similarity index 100% rename from demo/records/watcher/AzimuthWatcher.json rename to demo/records/watcher/azimuth-watcher.json diff --git a/demo/records/watcher/deployments/AjnaWatcherDeployment.json b/demo/records/watcher/deployments/ajna-watcher-deployment.json similarity index 100% rename from demo/records/watcher/deployments/AjnaWatcherDeployment.json rename to demo/records/watcher/deployments/ajna-watcher-deployment.json diff --git a/demo/records/watcher/deployments/AzimuthWatcherDeployment.json b/demo/records/watcher/deployments/azimuth-watcher-deployment.json similarity index 100% rename from demo/records/watcher/deployments/AzimuthWatcherDeployment.json rename to demo/records/watcher/deployments/azimuth-watcher-deployment.json diff --git a/demo/records/watcher/deployments/SushiswapWatcherDeployment.json b/demo/records/watcher/deployments/sushiswap-watcher-deployment.json similarity index 100% rename from demo/records/watcher/deployments/SushiswapWatcherDeployment.json rename to demo/records/watcher/deployments/sushiswap-watcher-deployment.json diff --git a/demo/records/watcher/SushiswapWatcher.json b/demo/records/watcher/sushiswap-watcher.json similarity index 100% rename from demo/records/watcher/SushiswapWatcher.json rename to demo/records/watcher/sushiswap-watcher.json diff --git a/demo/scripts/publish-records.ts b/demo/scripts/publish-records.ts index aa4c1c6..efb2a72 100644 --- a/demo/scripts/publish-records.ts +++ b/demo/scripts/publish-records.ts @@ -154,7 +154,7 @@ function getArgs (): any { }) .option('records', { alias: 'r', - describe: 'Endpoint records', + describe: 'Records dir path', type: 'string', demandOption: true }) diff --git a/src/types/common/main.d.ts b/demo/types/common/main.d.ts similarity index 100% rename from src/types/common/main.d.ts rename to demo/types/common/main.d.ts diff --git a/src/types/common/package.json b/demo/types/common/package.json similarity index 100% rename from src/types/common/package.json rename to demo/types/common/package.json diff --git a/tsconfig.json b/tsconfig.json index 3641834..1f4d39c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,7 +31,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - "./src/types" + "./demo/types" ], // "types": [], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ @@ -100,6 +100,6 @@ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, - "include": ["src"], + "include": ["src", "demo"], "exclude": ["test"] }