From 6b040af386749951e6c29e8b5e6afdc8ed1eb114 Mon Sep 17 00:00:00 2001 From: fewensa Date: Thu, 25 Jul 2024 08:52:34 +0000 Subject: [PATCH] move to outputs dir --- examples/{ => outputs}/configure/configure.mainnet.json | 0 examples/{ => outputs}/configure/configure.testnet.json | 0 .../lock/lnv2-default__usdc__sepolia_arbitrum-sepolia.lock.json | 0 .../lnv2-opposite__usdc__arbitrum-sepolia_sepolia.lock.json | 0 .../lock/lnv3__usdc__arbitrum-sepolia_sepolia.lock.json | 0 .../lock/lnv3__usdc__sepolia_arbitrum-sepolia.lock.json | 0 src/generator/generate_configure.js | 2 +- src/register/index.js | 2 +- 8 files changed, 2 insertions(+), 2 deletions(-) rename examples/{ => outputs}/configure/configure.mainnet.json (100%) rename examples/{ => outputs}/configure/configure.testnet.json (100%) rename examples/{ => outputs}/lock/lnv2-default__usdc__sepolia_arbitrum-sepolia.lock.json (100%) rename examples/{ => outputs}/lock/lnv2-opposite__usdc__arbitrum-sepolia_sepolia.lock.json (100%) rename examples/{ => outputs}/lock/lnv3__usdc__arbitrum-sepolia_sepolia.lock.json (100%) rename examples/{ => outputs}/lock/lnv3__usdc__sepolia_arbitrum-sepolia.lock.json (100%) diff --git a/examples/configure/configure.mainnet.json b/examples/outputs/configure/configure.mainnet.json similarity index 100% rename from examples/configure/configure.mainnet.json rename to examples/outputs/configure/configure.mainnet.json diff --git a/examples/configure/configure.testnet.json b/examples/outputs/configure/configure.testnet.json similarity index 100% rename from examples/configure/configure.testnet.json rename to examples/outputs/configure/configure.testnet.json diff --git a/examples/lock/lnv2-default__usdc__sepolia_arbitrum-sepolia.lock.json b/examples/outputs/lock/lnv2-default__usdc__sepolia_arbitrum-sepolia.lock.json similarity index 100% rename from examples/lock/lnv2-default__usdc__sepolia_arbitrum-sepolia.lock.json rename to examples/outputs/lock/lnv2-default__usdc__sepolia_arbitrum-sepolia.lock.json diff --git a/examples/lock/lnv2-opposite__usdc__arbitrum-sepolia_sepolia.lock.json b/examples/outputs/lock/lnv2-opposite__usdc__arbitrum-sepolia_sepolia.lock.json similarity index 100% rename from examples/lock/lnv2-opposite__usdc__arbitrum-sepolia_sepolia.lock.json rename to examples/outputs/lock/lnv2-opposite__usdc__arbitrum-sepolia_sepolia.lock.json diff --git a/examples/lock/lnv3__usdc__arbitrum-sepolia_sepolia.lock.json b/examples/outputs/lock/lnv3__usdc__arbitrum-sepolia_sepolia.lock.json similarity index 100% rename from examples/lock/lnv3__usdc__arbitrum-sepolia_sepolia.lock.json rename to examples/outputs/lock/lnv3__usdc__arbitrum-sepolia_sepolia.lock.json diff --git a/examples/lock/lnv3__usdc__sepolia_arbitrum-sepolia.lock.json b/examples/outputs/lock/lnv3__usdc__sepolia_arbitrum-sepolia.lock.json similarity index 100% rename from examples/lock/lnv3__usdc__sepolia_arbitrum-sepolia.lock.json rename to examples/outputs/lock/lnv3__usdc__sepolia_arbitrum-sepolia.lock.json diff --git a/src/generator/generate_configure.js b/src/generator/generate_configure.js index 0301674..da3a0e4 100644 --- a/src/generator/generate_configure.js +++ b/src/generator/generate_configure.js @@ -31,7 +31,7 @@ async function generateWithGroup(options, group) { const configure = bridgeConfig.configure; await refactorConfig({configure, group}); - const CONFIGURE_PATH = arg.datapath('/configure'); + const CONFIGURE_PATH = arg.datapath('/outputs/configure'); const storeFile = `${CONFIGURE_PATH}/configure.${group}.json`; await $`mkdir -p ${CONFIGURE_PATH}`.quiet(); diff --git a/src/register/index.js b/src/register/index.js index 2a911a1..f659b2c 100644 --- a/src/register/index.js +++ b/src/register/index.js @@ -192,7 +192,7 @@ async function hashRegister(register) { async function ensureLock(options, write = false) { const {register} = options; const irn = _identifyRegisterName(register); - const LOCK_PATH = arg.datapath('/lock'); + const LOCK_PATH = arg.datapath('/outputs/lock'); const lockName = `${LOCK_PATH}/${irn}.lock.json`; if (write) { await $`mkdir -p ${LOCK_PATH}`.quiet();