Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/faucet/.npmignore

This file was deleted.

46 changes: 0 additions & 46 deletions apps/faucet/README.md

This file was deleted.

58 changes: 0 additions & 58 deletions apps/faucet/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions apps/faucet/src/index.ts

This file was deleted.

107 changes: 0 additions & 107 deletions apps/faucet/src/main.ts

This file was deleted.

11 changes: 0 additions & 11 deletions apps/faucet/tsconfig.json

This file was deleted.

10 changes: 0 additions & 10 deletions apps/faucet/vitest.config.mts

This file was deleted.

9 changes: 2 additions & 7 deletions apps/interface/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,8 @@ <h2 class="items-center justify-center pt-8 pb-4 text-3xl font-medium">
</script>
<p>
Feel free to give feedback for how you would like to see it improved.
Also visit the
<a
href="https://faucet.nervos.org/"
class="underline decoration-amber-400 decoration-wavy underline-offset-4"
>Nervos Testnet Faucet</a
>
if you need some free testnet CKB to test with.
If you need testnet CKB to try the app, fund the account before
starting the flow.
</p>
<h2 class="items-center justify-center pt-8 pb-4 text-3xl font-medium">
What is NervosDAO?
Expand Down
58 changes: 30 additions & 28 deletions apps/tester/README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
# iCKB Tester

## Run the simulation of iCKB limit order creation on testnet
The tester is now CCC-native. It cancels the tester's own active orders, then places randomized iCKB limit orders against the live testnet exchange ratio using the shared `@ickb/sdk`, `@ickb/core`, and `@ickb/order` packages.

1. Download this repo in a folder of your choice:
## Environment

```bash
git clone https://github.com/ickb/stack.git
Required variables:

```text
CHAIN=testnet
TESTER_PRIVATE_KEY=0x...
TESTER_SLEEP_INTERVAL=10
```

2. Enter into the repo folder:
Optional variable:

```bash
cd stack/apps/tester
```text
RPC_URL=http://127.0.0.1:8114/
```

3. Install dependencies:
Current network support:

- `CHAIN=testnet`
- `CHAIN=mainnet`

## Run

```bash
pnpm install
pnpm --filter ./apps/tester build
mkdir -p apps/tester/env/testnet
$EDITOR apps/tester/env/testnet/.env
export CHAIN=testnet
pnpm --filter ./apps/tester start
```

4. Build project:
Or from `apps/tester`:

```bash
pnpm install
pnpm build
mkdir -p env/testnet
$EDITOR env/testnet/.env
export CHAIN=testnet
pnpm run start
```

5. Inside `apps/tester` define a `env/testnet/.env` file, for example:

```
CHAIN=testnet
TESTER_PRIVATE_KEY=0x-YOUR-SECP256K1-BLAKE160-PRIVATE-KEY
TESTER_SLEEP_INTERVAL=10
```

Optionally the property `RPC_URL` can also be specified:
`CHAIN` selects `env/${CHAIN}/.env`, which must contain the remaining runtime variables such as `TESTER_PRIVATE_KEY` and `TESTER_SLEEP_INTERVAL`.

```
RPC_URL=http://127.0.0.1:8114/
```

6. Start simulation of user interactions:

```bash
export CHAIN=testnet;
pnpm run start;
```
The start script keeps the existing JSON log format and writes one log file per run.

## Licensing

Expand Down
11 changes: 4 additions & 7 deletions apps/tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,9 @@
"@types/node": "catalog:"
},
"dependencies": {
"@ckb-lumos/base": "^0.23.0",
"@ckb-lumos/common-scripts": "^0.23.0",
"@ckb-lumos/config-manager": "^0.23.0",
"@ckb-lumos/hd": "^0.23.0",
"@ckb-lumos/helpers": "^0.23.0",
"@ickb/lumos-utils": "1.4.2",
"@ickb/v1-core": "1.4.2"
"@ckb-ccc/core": "catalog:",
"@ickb/core": "workspace:*",
"@ickb/order": "workspace:*",
"@ickb/sdk": "workspace:*"
}
}
Loading
Loading