forked from cerc-io/laconic-sdk
Compare commits
17
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26fa48e9d8 | ||
|
|
df8d86a09c | ||
|
|
f7658fc743 | ||
|
|
c6d358d3e4 | ||
|
|
fa2dabfda9 | ||
|
|
fa74a656bd | ||
|
|
d82f9cf44c | ||
|
|
20369a5d14 | ||
|
|
4b2a1750cc | ||
|
|
dd99db7ad5 | ||
|
|
203cfe118b | ||
|
|
01d03bfe78 | ||
|
|
fc4738adcf | ||
|
|
cee2e53d3d | ||
|
|
31e1ccafcc | ||
|
|
fc61a32ea9 | ||
|
|
606586818c |
@@ -57,7 +57,7 @@ Follow these steps to run the tests:
|
||||
- In laconicd repo run:
|
||||
|
||||
```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:
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cerc-io/laconic-sdk",
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.5",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"repository": "git@github.com:cerc-io/laconic-sdk.git",
|
||||
|
||||
+7
-12
@@ -24,18 +24,13 @@ export const getBaseConfig = async (path: string) => {
|
||||
* Provision a bond for record registration.
|
||||
*/
|
||||
export const provisionBondId = async (registry: Registry, privateKey: string, fee: Fee) => {
|
||||
// let bonds = await registry.queryBonds();
|
||||
// console.log("found bonds: " + bonds.length)
|
||||
// if (!bonds.length) {
|
||||
// await registry.createBond({ denom: 'aphoton', amount: '1000000000' }, privateKey, fee);
|
||||
// bonds = await registry.queryBonds();
|
||||
// console.log("created bond and got back: " + bonds.length)
|
||||
// }
|
||||
let bondId: string;
|
||||
bondId = await registry.getNextBondId(privateKey);
|
||||
await registry.createBond({ denom: 'aphoton', amount: '1000000000' }, privateKey, fee);
|
||||
return bondId
|
||||
//return bonds[0].id;
|
||||
let bonds = await registry.queryBonds();
|
||||
if (!bonds.length) {
|
||||
await registry.createBond({ denom: 'aphoton', amount: '1000000000' }, privateKey, fee);
|
||||
bonds = await registry.queryBonds();
|
||||
}
|
||||
|
||||
return bonds[0].id;
|
||||
};
|
||||
|
||||
export const getConfig = () => {
|
||||
|
||||
Reference in New Issue
Block a user