Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions templates/hyperweb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ git clone https://github.com/__USERNAME__/__REPONAME__.git
yarn
```

## Repository overview

* `src/`: Contains source code for each contract, with each sub-directory as a separate contract.
* `simple-state`: A simple contract to demonstrate state transitions.
* `amm-contract`: An automated market maker contract using the Bank module.
* `scripts/`: Holds the build script to create contract bundles.
* `__tests__/`: Includes test cases to validate contract functionality.
* `dist/`: Output folder for bundled contracts ready for deployment.

## Quickstart

### Bundle Contracts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('Contract 2: AMM contract test', () => {

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

const msg = jsd.jsd.MessageComposer.fromPartial.instantiate({
Expand Down
5 changes: 0 additions & 5 deletions templates/hyperweb/__tests__/first.test.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('JSD tests', () => {

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

const msg = jsd.jsd.MessageComposer.fromPartial.instantiate({
Expand Down
9 changes: 5 additions & 4 deletions templates/hyperweb/configs/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ chains:
faucet: 8000
exposer: 8001
resources:
cpu: "0.3"
memory: "300M"
cpu: "0.4"
memory: "400M"
faucet:
enabled: true
type: starship
concurrency: 2
resources:
cpu: "0.1"
memory: "100M"
cpu: "0.2"
memory: "200M"

registry:
enabled: true
Expand Down
21 changes: 0 additions & 21 deletions templates/hyperweb/dist/LICENSE

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading