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
12 changes: 11 additions & 1 deletion docs/api/chain.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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