Skip to content

Commit b14f5fc

Browse files
authored
Sync changes from hyperweb-boilerplate for commit 4359eec (#19)
1 parent f1129d9 commit b14f5fc

File tree

19 files changed

+248
-101
lines changed

19 files changed

+248
-101
lines changed

templates/hyperweb/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ git clone https://github.com/__USERNAME__/__REPONAME__.git
5252
yarn
5353
```
5454

55+
## Repository overview
56+
57+
* `src/`: Contains source code for each contract, with each sub-directory as a separate contract.
58+
* `simple-state`: A simple contract to demonstrate state transitions.
59+
* `amm-contract`: An automated market maker contract using the Bank module.
60+
* `scripts/`: Holds the build script to create contract bundles.
61+
* `__tests__/`: Includes test cases to validate contract functionality.
62+
* `dist/`: Output folder for bundled contracts ready for deployment.
63+
5564
## Quickstart
5665

5766
### Bundle Contracts

templates/hyperweb/__tests__/contract2.test.ts renamed to templates/hyperweb/__tests__/ammContract.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('Contract 2: AMM contract test', () => {
7373

7474
it('instantiate contract', async () => {
7575
// Read contract code from external file
76-
const contractPath = path.join(__dirname, '../dist/contracts/bundle2.js');
76+
const contractPath = path.join(__dirname, '../dist/contracts/ammContract.js');
7777
contractCode = fs.readFileSync(contractPath, 'utf8');
7878

7979
const msg = jsd.jsd.MessageComposer.fromPartial.instantiate({

templates/hyperweb/__tests__/first.test.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

templates/hyperweb/__tests__/contract1.test.ts renamed to templates/hyperweb/__tests__/simpleState.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('JSD tests', () => {
5757

5858
it('instantiate contract', async () => {
5959
// Read contract code from external file
60-
const contractPath = path.join(__dirname, '../dist/contracts/bundle1.js');
60+
const contractPath = path.join(__dirname, '../dist/contracts/simpleState.js');
6161
contractCode = fs.readFileSync(contractPath, 'utf8');
6262

6363
const msg = jsd.jsd.MessageComposer.fromPartial.instantiate({

templates/hyperweb/configs/ci.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ chains:
1313
faucet: 8000
1414
exposer: 8001
1515
resources:
16-
cpu: "0.3"
17-
memory: "300M"
16+
cpu: "0.4"
17+
memory: "400M"
1818
faucet:
1919
enabled: true
2020
type: starship
21+
concurrency: 2
2122
resources:
22-
cpu: "0.1"
23-
memory: "100M"
23+
cpu: "0.2"
24+
memory: "200M"
2425

2526
registry:
2627
enabled: true

templates/hyperweb/dist/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

templates/hyperweb/dist/contracts/bundle2.js renamed to templates/hyperweb/dist/contracts/ammContract.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/hyperweb/dist/contracts/bundle2.js.map renamed to templates/hyperweb/dist/contracts/ammContract.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/hyperweb/dist/contracts/bundle1.js renamed to templates/hyperweb/dist/contracts/simpleState.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)