injectivejs 0.7.0 → 1.0.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 +27 -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,31 @@ 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 build
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Codegen
|
|
403
|
+
|
|
404
|
+
Contract schemas live in `./contracts`, and protos in `./protos`. Look inside of `scripts/codegen.js` and configure the settings for bundling your SDK and contracts into `injectivejs`:
|
|
405
|
+
|
|
406
|
+
```
|
|
407
|
+
yarn codegen
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### Publishing
|
|
411
|
+
|
|
412
|
+
Build the types and then publish:
|
|
413
|
+
|
|
414
|
+
```
|
|
415
|
+
yarn build:ts
|
|
416
|
+
yarn publish
|
|
417
|
+
```
|
|
391
418
|
## Credits
|
|
392
419
|
|
|
393
420
|
🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.tech/validator)
|