Skip to content

Commit b173a4f

Browse files
authored
Merge pull request #20 from hyperweb-io/anmol/change-jsdjs-to-hyperwebjs
feature: change jsdjs to hyperwebjs
2 parents 3d7451a + 9ffaaef commit b173a4f

File tree

5 files changed

+121
-1984
lines changed

5 files changed

+121
-1984
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ The test suite deploys the contracts, interacts with them, and validates state t
9999

100100
### Creating JSD Client
101101

102-
Once the contract is bundled, you need to create a client using `jsdjs` to interact with the Hyperweb chain.
102+
Once the contract is bundled, you need to create a client using `hyperwebjs` to interact with the Hyperweb chain.
103103

104-
Example setup to create a `jsdjs` client:
104+
Example setup to create a `hyperwebjs` client:
105105

106106
```ts
107-
import { getSigningJsdClient, jsd } from 'jsdjs';
107+
import { getSigningJsdClient, jsd } from 'hyperwebjs';
108108

109109
async function setupClient() {
110110
const wallet = await DirectSecp256k1HdWallet.fromMnemonic("your-mnemonic");
@@ -121,7 +121,7 @@ async function setupClient() {
121121

122122
### Deploying and Interacting with the Contract
123123

124-
To deploy and instantiate the contract on the Hyperweb blockchain, read the bundled contract file and use the `jsdjs` client to broadcast it to the chain.
124+
To deploy and instantiate the contract on the Hyperweb blockchain, read the bundled contract file and use the `hyperwebjs` client to broadcast it to the chain.
125125

126126
Example deployment process:
127127

@@ -146,7 +146,7 @@ async function deployContract(signingClient, address) {
146146

147147
### Instantiating a Contract
148148

149-
To instantiate the contract, use the `instantiate` method of the `jsdjs` client. The contract index will be returned, which is used to interact with the contract.
149+
To instantiate the contract, use the `instantiate` method of the `hyperwebjs` client. The contract index will be returned, which is used to interact with the contract.
150150

151151
```ts
152152
const contractCode = fs.readFileSync('dist/contracts/bundle1.js', 'utf8');

__tests__/contract1.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { assertIsDeliverTxSuccess } from '@cosmjs/stargate';
44

55
import path from "path";
66
import fs from 'fs';
7-
import { getSigningJsdClient, jsd } from 'jsdjs'
7+
import { getSigningJsdClient, jsd } from 'hyperwebjs'
88
import { useChain, generateMnemonic } from 'starshipjs';
99
import { sleep } from '../test-utils/sleep';
1010
import './setup.test';

__tests__/contract2.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { assertIsDeliverTxSuccess } from '@cosmjs/stargate';
44

55
import path from "path";
66
import fs from 'fs';
7-
import { getSigningJsdClient, jsd } from 'jsdjs'
7+
import { getSigningJsdClient, jsd } from 'hyperwebjs'
88
import { useChain, generateMnemonic } from 'starshipjs';
99
import { sleep } from '../test-utils/sleep';
1010
import './setup.test';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"eslint-plugin-simple-import-sort": "^10.0.0",
3333
"eslint-plugin-unused-imports": "^3.0.0",
3434
"jest": "^29.6.2",
35-
"jsdjs": "1.5.0",
35+
"hyperwebjs": "0.0.4",
3636
"prettier": "^3.0.2",
3737
"rimraf": "4.4.1",
3838
"starshipjs": "^2.4.1",

0 commit comments

Comments
 (0)