Update test steps description
@@ -108,11 +108,11 @@ You should see `Client started.` output message.
**Repository**: [keep-network/tbtc-maintainers](https://github.com/keep-network/tbtc-maintainers)
**Prerequisite**: tBTC Maintainer can be started only after deploying
-`TBTCSystemStub` contract for `tBTC`.
+`TBTCSystem` contract for `tBTC`.
#### Prepare
-1. Update `config.toml` with `TBTCSystemStub` contract address.
+1. Update `config.toml` with `TBTCSystem` contract address.
2. Build:
```sh
@@ -136,23 +136,28 @@ Start difficulty monitor
### Step by step way
-1. Execute the `1_create_new_deposit.js` script with truffle:
+1. Execute the `1_create_new_deposit.js` script with truffle. This will output a
+ new deposit address (`new deposit deployed`) - use it in next steps.
```sh
truffle exec demo/1_create_new_deposit.js
```
-2. Execute the `2_fetch_public_key.js` script with truffle:
+2. Execute `2_fetch_public_key.js` script with truffle. Provide deposit address
+ created in step 1. as an argument.
```sh
- truffle exec demo/2_fetch_public_key.js
+ truffle exec demo/2_fetch_public_key.js <DEPOSIT_ADDRESS>
```
3. Send a funding bitcoin witness transaction to the address generated by the keep.
-4. Execute the `3_provide_funding_proof.js` script with truffle with funding
-transaction ID (e.g. `4e3388fad9732d3c099fa95a98c9d2dd062e4a8cf7ad03f647eaccc478a79068`)
-and required headers length (`0`):
+4. Execute `3_provide_funding_proof.js` script with truffle. Provide following
+ arguments:
+ - DEPOSIT_ADDRESS - deposit created in step 1 (e.g. `0xA2E639DB88C103A028a4B8073c5559Ab97c72862`)
+ - TX_ID - funding transaction ID (e.g. `4e3388fad9732d3c099fa95a98c9d2dd062e4a8cf7ad03f647eaccc478a79068`)
+ - HEADERS_COUNT - number of headers required for the proof (e.g. `6`):
+ -
```sh
- truffle exec demo/3_provide_funding_proof.js <TX_ID> <HEADERS_LENGTH>
+ truffle exec demo/3_provide_funding_proof.js <DEPOSIT_ADDRESS> <TX_ID> <HEADERS_COUNT>
```
@@ -171,6 +176,7 @@ results:
- From running `1_create_new_deposit.js` script:
```
Using network 'development'.
+ new deposit deployed: 0xA2E639DB88C103A028a4B8073c5559Ab97c72862
createNewDeposit transaction: 0x0997970c596eacafaaf88682ae22e76bee01103cc513e5784d7d53ade3908a39
```
