Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811
- Update account info and balance test
- Update methods to commit and reveal bid
$ yarn --silent test:auctions
PASS src/auction.test.ts (442.052 s)
Auction (1 bidder)
✓ Setup bidder accounts (3465 ms)
✓ Reserve authority. (3181 ms)
✓ Authority should be under auction. (16 ms)
✓ Commit bids. (3176 ms)
✓ Check bids are committed (3 ms)
✓ Wait for reveal phase. (60002 ms)
✓ Reveal bids. (3185 ms)
✓ Check bids are revealed (3 ms)
✓ Wait for auction completion. (60001 ms)
✓ Check auction winner, authority owner and status. (7 ms)
Auction (2 bidders)
✓ Setup bidder accounts (6602 ms)
✓ Reserve authority. (3172 ms)
✓ Authority should be under auction. (3 ms)
✓ Commit bids. (6355 ms)
✓ Check bids are committed (4 ms)
✓ Wait for reveal phase. (60000 ms)
✓ Reveal bids. (6345 ms)
✓ Check bids are revealed (3 ms)
✓ Wait for auction completion. (60001 ms)
✓ Check auction winner, authority owner and status. (7 ms)
Auction (4 bidders)
✓ Setup bidder accounts (13218 ms)
✓ Reserve authority. (3166 ms)
✓ Authority should be under auction. (3 ms)
✓ Commit bids. (12748 ms)
✓ Check bids are committed (4 ms)
✓ Wait for reveal phase. (60002 ms)
✓ Reveal bids. (12693 ms)
✓ Check bids are revealed (3 ms)
✓ Wait for auction completion. (60001 ms)
✓ Check auction winner, authority owner and status. (5 ms)
Test Suites: 1 passed, 1 total
Tests: 30 passed, 30 total
Snapshots: 0 total
Time: 442.099 s
Account tests
$ yarn --silent jest --verbose src/index.test.ts
PASS src/index.test.ts (7.037 s)
Registry
✓ Get account info. (149 ms)
✓ Get account balance. (3374 ms)
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 7.08 s, estimated 8 s
Ran all test suites matching /src\/index.test.ts/i
Auction tests
```bash
$ yarn --silent test:auctions
PASS src/auction.test.ts (442.052 s)
Auction (1 bidder)
✓ Setup bidder accounts (3465 ms)
✓ Reserve authority. (3181 ms)
✓ Authority should be under auction. (16 ms)
✓ Commit bids. (3176 ms)
✓ Check bids are committed (3 ms)
✓ Wait for reveal phase. (60002 ms)
✓ Reveal bids. (3185 ms)
✓ Check bids are revealed (3 ms)
✓ Wait for auction completion. (60001 ms)
✓ Check auction winner, authority owner and status. (7 ms)
Auction (2 bidders)
✓ Setup bidder accounts (6602 ms)
✓ Reserve authority. (3172 ms)
✓ Authority should be under auction. (3 ms)
✓ Commit bids. (6355 ms)
✓ Check bids are committed (4 ms)
✓ Wait for reveal phase. (60000 ms)
✓ Reveal bids. (6345 ms)
✓ Check bids are revealed (3 ms)
✓ Wait for auction completion. (60001 ms)
✓ Check auction winner, authority owner and status. (7 ms)
Auction (4 bidders)
✓ Setup bidder accounts (13218 ms)
✓ Reserve authority. (3166 ms)
✓ Authority should be under auction. (3 ms)
✓ Commit bids. (12748 ms)
✓ Check bids are committed (4 ms)
✓ Wait for reveal phase. (60002 ms)
✓ Reveal bids. (12693 ms)
✓ Check bids are revealed (3 ms)
✓ Wait for auction completion. (60001 ms)
✓ Check auction winner, authority owner and status. (5 ms)
Test Suites: 1 passed, 1 total
Tests: 30 passed, 30 total
Snapshots: 0 total
Time: 442.099 s
```
Account tests
```bash
$ yarn --silent jest --verbose src/index.test.ts
PASS src/index.test.ts (7.037 s)
Registry
✓ Get account info. (149 ms)
✓ Get account balance. (3374 ms)
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 7.08 s, estimated 8 s
Ran all test suites matching /src\/index.test.ts/i
```
ashwin
merged commit d4c168f10c into main2024-03-07 13:15:52 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811
Auction tests
Account tests