Compare commits

..
3 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ Follow these steps to run the tests:
- In laconicd repo run: - In laconicd repo run:
```bash ```bash
TEST_REGISTRY_EXPIRY=true ./init.sh TEST_NAMESERVICE_EXPIRY=true ./init.sh
``` ```
- Export the private key and change it in `.env` file again using: - Export the private key and change it in `.env` file again using:
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@cerc-io/laconic-sdk", "name": "@cerc-io/laconic-sdk",
"version": "0.1.6", "version": "0.1.5",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"repository": "git@github.com:cerc-io/laconic-sdk.git", "repository": "git@github.com:cerc-io/laconic-sdk.git",
+7 -12
View File
@@ -24,18 +24,13 @@ export const getBaseConfig = async (path: string) => {
* Provision a bond for record registration. * Provision a bond for record registration.
*/ */
export const provisionBondId = async (registry: Registry, privateKey: string, fee: Fee) => { export const provisionBondId = async (registry: Registry, privateKey: string, fee: Fee) => {
// let bonds = await registry.queryBonds(); let bonds = await registry.queryBonds();
// console.log("found bonds: " + bonds.length) if (!bonds.length) {
// if (!bonds.length) { await registry.createBond({ denom: 'aphoton', amount: '1000000000' }, privateKey, fee);
// await registry.createBond({ denom: 'aphoton', amount: '1000000000' }, privateKey, fee); bonds = await registry.queryBonds();
// bonds = await registry.queryBonds(); }
// console.log("created bond and got back: " + bonds.length)
// } return bonds[0].id;
let bondId: string;
bondId = await registry.getNextBondId(privateKey);
await registry.createBond({ denom: 'aphoton', amount: '1000000000' }, privateKey, fee);
return bondId
//return bonds[0].id;
}; };
export const getConfig = () => { export const getConfig = () => {