Update registry SDK auction methods to use cosmjs #1

Merged
ashwin merged 2 commits from nv-auction-methods into main 2024-03-07 13:15:52 +00:00
Member

Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811

  • Update account info and balance test
  • Update methods to commit and reveal bid
Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811 - Update account info and balance test - Update methods to commit and reveal bid
nabarun added 2 commits 2024-03-07 13:02:00 +00:00
Author
Member

Auction tests

$ 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 main 2024-03-07 13:15:52 +00:00
ashwin deleted branch nv-auction-methods 2024-03-07 13:15:52 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/registry-sdk#1
No description provided.