Skip to content

Commit b8ef0b8

Browse files
committed
Revert "change jsdjs to hyperwebjs and interweb-build to hyperweb-build"
This reverts commit e45fc89.
1 parent e45fc89 commit b8ef0b8

File tree

7 files changed

+2143
-284
lines changed

7 files changed

+2143
-284
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
**/node_modules/
22
**/.DS_Store
33
**/yarn-error.log
4-
lerna-debug.log
5-
**/.idea/
4+
lerna-debug.log

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ Once the starship nodes are running, then you can interact with the chain using
8686
- RPC: http://localhost:26657
8787
- Faucet: http://localhost:8000
8888

89-
Chain registry is available at http://localhost:8081.
90-
For chain information, refer to the http://localhost:8081/chains/hyperweb.
91-
9289
### Run Tests
9390
Run tests:
9491
```bash
@@ -102,12 +99,12 @@ The test suite deploys the contracts, interacts with them, and validates state t
10299

103100
### Creating JSD Client
104101

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

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

109106
```ts
110-
import { getSigningJsdClient, jsd } from 'hyperwebjs';
107+
import { getSigningJsdClient, jsd } from 'jsdjs';
111108

112109
async function setupClient() {
113110
const wallet = await DirectSecp256k1HdWallet.fromMnemonic("your-mnemonic");
@@ -124,7 +121,7 @@ async function setupClient() {
124121

125122
### Deploying and Interacting with the Contract
126123

127-
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.
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.
128125

129126
Example deployment process:
130127

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

150147
### Instantiating a Contract
151148

152-
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.
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.
153150

154151
```ts
155152
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 'hyperwebjs'
7+
import { getSigningJsdClient, jsd } from 'jsdjs'
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 'hyperwebjs'
7+
import { getSigningJsdClient, jsd } from 'jsdjs'
88
import { useChain, generateMnemonic } from 'starshipjs';
99
import { sleep } from '../test-utils/sleep';
1010
import './setup.test';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"starship:ci": "starship --config configs/ci.yaml"
2222
},
2323
"devDependencies": {
24-
"@hyperweb/build": "^0.0.2",
24+
"@interweb/build": "^0.0.5",
2525
"@starship-ci/cli": "^2.10.1",
2626
"@types/jest": "^29.5.11",
2727
"@types/node": "^22.7.4",
@@ -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-
"hyperwebjs": "0.0.3",
35+
"jsdjs": "1.5.0",
3636
"prettier": "^3.0.2",
3737
"rimraf": "4.4.1",
3838
"starshipjs": "^2.4.1",

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InterwebBuild, InterwebBuildOptions } from '@hyperweb/build';
1+
import { InterwebBuild, InterwebBuildOptions } from '@interweb/build';
22
import { join } from 'path';
33

44
interface BuildConfig {

0 commit comments

Comments
 (0)