injectivejs 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,6 +37,7 @@ npm install injectivejs
|
|
|
37
37
|
- [Creating Signers](#creating-signers)
|
|
38
38
|
- [Broadcasting Messages](#broadcasting-messages)
|
|
39
39
|
- [Advanced Usage](#advanced-usage)
|
|
40
|
+
- [Developing](#developing)
|
|
40
41
|
- [Credits](#credits)
|
|
41
42
|
|
|
42
43
|
## Usage
|
|
@@ -343,6 +344,7 @@ const response = await stargateClient.signAndBroadcast(address, [msg], fee);
|
|
|
343
344
|
|
|
344
345
|
## Advanced Usage
|
|
345
346
|
|
|
347
|
+
|
|
346
348
|
If you want to manually construct a stargate client
|
|
347
349
|
|
|
348
350
|
```js
|
|
@@ -388,6 +390,24 @@ const stargateClient = await SigningStargateClient.connectWithSigner(rpcEndpoint
|
|
|
388
390
|
});
|
|
389
391
|
```
|
|
390
392
|
|
|
393
|
+
## Developing
|
|
394
|
+
|
|
395
|
+
When first cloning the repo, first `bootstrap` + `build`:
|
|
396
|
+
|
|
397
|
+
```
|
|
398
|
+
yarn
|
|
399
|
+
yarn bootstrap
|
|
400
|
+
yarn build
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### Codegen
|
|
404
|
+
|
|
405
|
+
Look inside of `scripts/codegen.js` and configure the settings for bundling your SDK and contracts into `injectivejs`:
|
|
406
|
+
|
|
407
|
+
```
|
|
408
|
+
yarn codegen
|
|
409
|
+
```
|
|
410
|
+
|
|
391
411
|
## Credits
|
|
392
412
|
|
|
393
413
|
🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.tech/validator)
|