Update methods for set record, set and delete name for record
Update record tests with changes
Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811
- Update methods for set record, set and delete name for record
- Update record tests with changes
nabarun
self-assigned this 2024-03-11 08:47:08 +00:00
$ yarn test
yarn run v1.22.19
$ jest --runInBand --verbose --testPathPattern=src
PASS src/nameservice-expiry.test.ts
✓ skipping nameservice expiry tests (1 ms)
PASS src/naming.test.ts (70.099 s)
Naming
Authority tests
✓ Reserve authority. (3226 ms)
With authority reserved
✓ Lookup authority. (18 ms)
✓ Lookup non existing authority (6 ms)
✓ Reserve sub-authority. (3214 ms)
✓ Reserve sub-authority with different owner. (10176 ms)
✓ Set authority bond (3223 ms)
○ skipped Reserve already reserved authority
○ skipped Set name for unbonded authority
Naming tests
✓ Set name (6553 ms)
✓ Lookup non existing name (8 ms)
✓ Resolve non existing name (11 ms)
○ skipped Set name without reserving authority
○ skipped Set name for non-owned authority
○ skipped Delete name for non-owned authority.
With name set
✓ Lookup name (7 ms)
✓ Resolve name (11 ms)
✓ Lookup name with history(6719 ms)
✓ Delete name (3282 ms)
✓ Delete already deleted name (6497 ms)
PASS src/sdk.test.ts (7.603 s)
Querying
✓ Endpoint and chain ID. (3 ms)
✓ List records. (22 ms)
✓ Query records by reference. (12 ms)
✓ Query records by attributes. (6 ms)
✓ Query records by id. (5 ms)
✓ Query records passing refs true. (6 ms)
○ skipped Get status.
PASS src/util.test.ts (7.461 s)
Util
✓ Generate content id. (18 ms)
PASS src/index.test.ts
Registry
✓ Get account info. (138 ms)
✓ Get account balance. (3489 ms)
PASS src/auction.test.ts
✓ skipping auction tests (1 ms)
PASS src/bond.test.ts (17.039 s)
Bonds
✓ Create bond. (3369 ms)
○ skipped Associate/Dissociate bond.
○ skipped Reassociate/Dissociate records.
With bond created
✓ Get bond by ID. (7 ms)
✓ Query bonds. (7 ms)
✓ Query bonds by owner. (7 ms)
✓ Refill bond. (3208 ms)
✓ Withdraw bond. (3217 ms)
✓ Cancel bond. (3274 ms)
Test Suites: 7 passed, 7 total
Tests: 8 skipped, 32 passed, 40 total
Snapshots: 0 total
Time: 112.029 s, estimated 229 s
Ran all test suites matching /src/i.
Done in 112.82s.
```bash
$ yarn test
yarn run v1.22.19
$ jest --runInBand --verbose --testPathPattern=src
PASS src/nameservice-expiry.test.ts
✓ skipping nameservice expiry tests (1 ms)
PASS src/naming.test.ts (70.099 s)
Naming
Authority tests
✓ Reserve authority. (3226 ms)
With authority reserved
✓ Lookup authority. (18 ms)
✓ Lookup non existing authority (6 ms)
✓ Reserve sub-authority. (3214 ms)
✓ Reserve sub-authority with different owner. (10176 ms)
✓ Set authority bond (3223 ms)
○ skipped Reserve already reserved authority
○ skipped Set name for unbonded authority
Naming tests
✓ Set name (6553 ms)
✓ Lookup non existing name (8 ms)
✓ Resolve non existing name (11 ms)
○ skipped Set name without reserving authority
○ skipped Set name for non-owned authority
○ skipped Delete name for non-owned authority.
With name set
✓ Lookup name (7 ms)
✓ Resolve name (11 ms)
✓ Lookup name with history (6719 ms)
✓ Delete name (3282 ms)
✓ Delete already deleted name (6497 ms)
PASS src/sdk.test.ts (7.603 s)
Querying
✓ Endpoint and chain ID. (3 ms)
✓ List records. (22 ms)
✓ Query records by reference. (12 ms)
✓ Query records by attributes. (6 ms)
✓ Query records by id. (5 ms)
✓ Query records passing refs true. (6 ms)
○ skipped Get status.
PASS src/util.test.ts (7.461 s)
Util
✓ Generate content id. (18 ms)
PASS src/index.test.ts
Registry
✓ Get account info. (138 ms)
✓ Get account balance. (3489 ms)
PASS src/auction.test.ts
✓ skipping auction tests (1 ms)
PASS src/bond.test.ts (17.039 s)
Bonds
✓ Create bond. (3369 ms)
○ skipped Associate/Dissociate bond.
○ skipped Reassociate/Dissociate records.
With bond created
✓ Get bond by ID. (7 ms)
✓ Query bonds. (7 ms)
✓ Query bonds by owner. (7 ms)
✓ Refill bond. (3208 ms)
✓ Withdraw bond. (3217 ms)
✓ Cancel bond. (3274 ms)
Test Suites: 7 passed, 7 total
Tests: 8 skipped, 32 passed, 40 total
Snapshots: 0 total
Time: 112.029 s, estimated 229 s
Ran all test suites matching /src/i.
Done in 112.82s.
```
nabarun
changed title from Update registry SDK registry record methods to use cosmjs to Update registry SDK record methods to use cosmjs2024-03-11 08:48:32 +00:00
nabarun
merged commit 227cd3d318 into main2024-03-11 08:51:01 +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
Update registry SDK registry record methods to use cosmjsto Update registry SDK record methods to use cosmjs