Commit Graph

41 Commits

Author SHA1 Message Date
7fe256e714 Update transaction response parsing (#4)
Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811

- Handle errors in the tx response
- Move response parsing to client class
- Run previously skipped naming tests

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Reviewed-on: deep-stack/registry-sdk#4
Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
2024-03-12 04:55:59 +00:00
8d3c35b22e Update bond-record association methods to use cosmjs (#3)
Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811

- Update methods to
  - associate and dissociate a bond from a record
  - dissociate all records from a bond
  - reassociate all record from a bond to another bond
- Update bond tests with changes

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Reviewed-on: deep-stack/registry-sdk#3
Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
2024-03-11 11:27:27 +00:00
227cd3d318 Update registry SDK record methods to use cosmjs (#2)
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

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Reviewed-on: deep-stack/registry-sdk#2
2024-03-11 08:51:00 +00:00
d4c168f10c Update registry SDK auction methods to use cosmjs (#1)
Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811

- Update account info and balance test
- Update methods to commit and reveal bid

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Reviewed-on: deep-stack/registry-sdk#1
Co-authored-by: nabarun <nabarun@noreply.git.vdb.to>
Co-committed-by: nabarun <nabarun@noreply.git.vdb.to>
2024-03-07 13:15:50 +00:00
2589aacdb4
Update authority method for registry module to use cosmjs (#4)
* Update methods to send coins and reserve authority

* Make owner as mandatory param of reserve authority method

* Update method to set authority bond

* Add todo for skipping tests

* Decode message response

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
2024-03-07 16:06:52 +05:30
de0ac597a1
Setup eslint and husky pre-commit (#3)
* Set up eslint and husky

* Fix eslint errors

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
2024-03-07 09:47:05 +05:30
prathamesh0
f2401e6953
Update registry SDK bond methods to use cosmjs (#2)
* Update method to create bond using cosmjs

* Fix method get next bond id

* Update method to refill bond

* Update methods to withdraw and cancel bond

* Add wallet and address fields to Account class

* Rename bond amount constant

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
2024-03-06 19:48:45 +05:30
fedf35d702 Tests cleanup (#53)
General test improvements.
- Simplifies Dockerfile
- Refactors tests so they can be run independently

Co-authored-by: Roy Crihfield <roy@manteia.ltd>
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Reviewed-on: cerc-io/laconic-sdk#53
Reviewed-by: Thomas E Lackey <telackey@noreply.git.vdb.to>
Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
2024-01-22 08:30:35 +00:00
0xmuralik
49ebd1ab65 chain-id 2023-01-11 10:46:03 +05:30
Murali Krishna Komatireddy
3fca7c7844
Merge pull request #15 from cerc-io/murali/fix-tests
fix: Test fail after PR#40
2023-01-09 12:17:08 +05:30
ebe628d082 Remove broken is-url dependency 2022-12-21 13:08:09 -07:00
0xmuralik
eaafeb9107 rename to registry 2022-12-19 11:44:18 +05:30
0xmuralik
43593c15b2 attributes to any 2022-12-19 11:25:28 +05:30
ee0443b5fa
Changes to use laconic-sdk with console-app (#10)
* Use older version of tiny-secp256k1 to work in browser

* Make REST endpoint optional
2022-12-09 14:25:13 +05:30
b07df23804 Blind attempt to re-brand 2022-09-28 13:20:15 -06:00
27a176fbad
Implement methods and tests for associate/dissociate bonds and records (#4)
* Implement methods for bond associate and dissociate

* Uncomment test for getStatus GQL query
2022-04-27 15:30:21 +05:30
3d103b5fca
Add getRecordsByIds method and sdk tests (#3)
* Implement getRecordsByIds method

* Add tests for sdk
2022-04-25 15:12:46 +05:30
003cfcbf5c Use GQL query getAccounts instead of REST API 2022-04-22 16:01:04 +05:30
28c8099b16 Get record id from setRecord message response 2022-04-21 09:44:24 +05:30
79b55b73da Replace wrn with crn 2022-04-21 09:44:24 +05:30
e563cfe6b1 Add tests for record and authority expiry 2022-04-21 09:44:24 +05:30
6ca9f4041a Fixes from review 2022-04-21 09:44:24 +05:30
c3066db987 Add test for util getContentId 2022-04-21 09:44:24 +05:30
0bc619cad2 Send messages from secondary accounts 2022-04-21 09:44:24 +05:30
838edaa9a6 Add auction tests for commitBid and revealBid 2022-04-21 09:44:24 +05:30
837d9691ec Check if error contains expected message for failing transactions 2022-04-21 09:44:24 +05:30
394f015a5e Add tests for nameservice deleteName 2022-04-21 09:44:24 +05:30
f207be4838 Add tests for querying names and deleteName 2022-04-21 09:44:24 +05:30
9de3c59c19 Implement setRecord and add test for setAutorityBond 2022-04-21 09:44:24 +05:30
48507ca46a Rename ethermint to chibaclonk 2022-04-21 09:44:24 +05:30
58227b68be Changes from review 2022-04-21 09:44:24 +05:30
252665512d Add tests for reserving authority with different owner 2022-04-21 09:44:24 +05:30
65e90e7af0 Add nameservice tests for reserve and lookup authority 2022-04-21 09:44:24 +05:30
df5619932d Add tests for bond refill, withdraw and cancel 2022-04-21 09:44:24 +05:30
7fe5bcda83 Add tests for querying bond 2022-04-21 09:44:24 +05:30
19d5405087 Implement pattern from dxns-registry-client 2022-04-21 09:44:24 +05:30
6bb264d69c Fix create bond message 2022-04-21 09:44:24 +05:30
4c3a3558d3 Message for creating bond 2022-04-21 09:44:24 +05:30
3f2bdd34f8 Send vote message in gov module 2022-04-21 09:44:24 +05:30
72ab467d9b Send tokens using evmosjs and eth-sig-util 2022-04-21 09:44:24 +05:30
6871e35964 Add failing test case for sending tokens 2022-04-21 09:44:24 +05:30