forked from cerc-io/registry-sdk
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:
1 parent
3d103b5fca
commit
27a176fbad
5 files changed
+404
-3
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user