Skip to content

Commit

Permalink
update package.json, fix ci.yaml for hyperweb, build new index fime
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Oct 2, 2024
1 parent 7595c97 commit 532164e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
19 changes: 10 additions & 9 deletions configs/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: starship-devnet
version: 0.2.14

chains:
- id: jsd
- id: hyperweb
name: custom
numValidators: 1
image: ghcr.io/cosmology-tech/jsd:latest@sha256:298d4b464039d8be430588960573f72a1dbdae2181cc562369952ab3ca220806
image: ghcr.io/cosmology-tech/jsd:latest
home: /root/.jsd
binary: jsdd
prefix: cosmos
denom: stake
coins: 100000000000000stake
prefix: hyper
denom: uhyper
coins: 100000000000000uhyper,100000000000000uweb
hdPath: m/44'/118'/0'/0/0
coinType: 118
repo: https://github.com/cosmology-tech/jsd
Expand All @@ -27,11 +27,12 @@ chains:
resources:
cpu: "0.1"
memory: "100M"
## test accounts, add more accounts as needed
balances:
- address: cosmos1e9ucjn5fjmetky5wezzcsccp7hqcwzrrhthpf5
amount: "2000000000000stake"
- address: cosmos10eykchznjdn8jdlwaj5v9wvlmdsp6kxx7u0hv9
amount: "2000000000000stake"
- address: hyper1e9ucjn5fjmetky5wezzcsccp7hqcwzrrhthpf5
amount: "2000000000000uhyper"
- address: hyper10eykchznjdn8jdlwaj5v9wvlmdsp6kxx7u0hv9
amount: "2000000000000uhyper"

registry:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions dist/contracts/bundle1.js.map

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/cosmology-tech/hyperweb/issues"
},
"scripts": {
"clean": "rimraf contracts/**",
"clean": "rimraf dist/contracts/**",
"build": "ts-node scripts/build.ts",
"test": "jest --verbose --bail",
"test:debug": "jest --runInBand --verbose --bail",
Expand Down
4 changes: 2 additions & 2 deletions src/contract1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export function reset(state: MyState) {
state.value = 0;
return newValue
}
export function inc(state: MyState, {x}) {
export function inc(state: MyState, { x }: { x: number }) {
const oldValue = state.value ?? 0;
const newValue = oldValue + x;
state.value = newValue;
return newValue
}
export function dec(state: MyState, {x}) {
export function dec(state: MyState, { x }: { x: number }) {
const oldValue = state.value ?? 0;
const newValue = oldValue - x;
state.value = newValue;
Expand Down

0 comments on commit 532164e

Please sign in to comment.