Skip to content

Commit

Permalink
Merge to master from develop (#38)
Browse files Browse the repository at this point in the history
* added the list of test accounts to chain.md and usage.md

* updated description of timeAdded in time.md

* bumped to version 0.3.0
  • Loading branch information
rdewilder committed Aug 22, 2022
1 parent 225df35 commit 4adddeb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
12 changes: 11 additions & 1 deletion docs/api/chain.md
Expand Up @@ -22,7 +22,17 @@ Local port number the RPC api is bound to

## Methods
### static async setupChain(chainName: string): Promise<Chain>
Setup new testing chain, setup chain docker instance, initialize api client, create 10 test accounts
Setup new testing chain, setup chain docker instance, initialize api client, creates the following 10 test accounts:
- acc11.test
- acc12.test
- acc13.test
- acc14.test
- acc15.test
- acc21.test
- acc22.test
- acc23.test
- acc24.test
- acc25.test

Valid chainName values: WAX, EOS and TLOS

Expand Down
4 changes: 2 additions & 2 deletions docs/api/time.md
Expand Up @@ -6,7 +6,7 @@ The Time class allows the manipulation of blocktime. These functions only add t
### chain: Chain
Reference to the chain instance
### timeAdded: number
Record of time added to chain
The total number of seconds that have been skipped in the chain

## Constructor
**constructor(chain: Chain): Time**
Expand All @@ -18,4 +18,4 @@ Incrementally increase time of chain.

### async increaseTo(time: number): Promise<number>

Increase time of chain to specific time point. T
Increase time of chain to specific time point T
11 changes: 11 additions & 0 deletions docs/tutorial/usage.md
Expand Up @@ -20,6 +20,17 @@ const account2 = chain.accounts[2];
// create account
let newAccount = await chain.system.createAccount("newaccount");
```
The following test accounts are created automatically:
- acc11.test
- acc12.test
- acc13.test
- acc14.test
- acc15.test
- acc21.test
- acc22.test
- acc23.test
- acc24.test
- acc25.test

## Contracts

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "qtest-js",
"version": "0.2.2",
"version": "0.3.0",
"description": "eosio testing library",
"main": "dist/index.js",
"license": "MIT",
Expand Down

0 comments on commit 4adddeb

Please sign in to comment.