Implement methods and tests for associate/dissociate bonds and records (#4)

* Implement methods for bond associate and dissociate

* Uncomment test for getStatus GQL query
This commit is contained in:
nabarun authored and GitHub committed 2022-04-27 15:30:21 +05:30
1 parent 3d103b5fca
commit 27a176fbad
5 files changed
+404 -3

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export const getBaseConfig = async (path: string) => {
export const provisionBondId = async (registry: Registry, privateKey: string, fee: Fee) => {
let bonds = await registry.queryBonds();
if (!bonds.length) {
await registry.createBond({ denom: 'uwire', amount: '1000000000' }, privateKey, fee);
await registry.createBond({ denom: 'aphoton', amount: '1000000000' }, privateKey, fee);
bonds = await registry.queryBonds();
}