Skip to content

Commit

Permalink
upgrade to spago-next (#149)
Browse files Browse the repository at this point in the history
* remove dhall files

* fix example

* fix postinstall

* tidy and fix ci script
  • Loading branch information
martyall authored Jan 20, 2025
1 parent 67e6c67 commit 2fffa96
Show file tree
Hide file tree
Showing 18 changed files with 5,003 additions and 274 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- name: build
run: |
npm install
npm run chanterelle-build
npm run build
working-directory: example
- name: lint
Expand Down
1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/.spago
src/Contract
build
.spec-results
7 changes: 0 additions & 7 deletions example/bootstrap.dhall

This file was deleted.

8 changes: 8 additions & 0 deletions example/build-contracts/spago.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package:
dependencies:
- chanterelle
name: build-contracts
run:
main: ChanterelleMain
execArgs:
- "build"
12 changes: 5 additions & 7 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,26 @@
"description": "Chanterell demo project",
"license": "ISC",
"scripts": {
"postinstall": "spago -x bootstrap.dhall build",
"chanterelle-build": "spago -x bootstrap.dhall run -m ChanterelleMain --node-args=\"build\"",
"postinstall": "spago run -p build-contracts",
"build": "spago build",
"test": "spago test",
"deploy": "spago run",
"deploy": "spago run -p deploy",
"tidy": "purs-tidy format-in-place \"src/**/*.purs\" \"test/**/*.purs\"",
"tidy-check": "purs-tidy check \"src/**/*.purs\" \"test/**/*.purs\""

},
"dependencies": {
"ethjs-provider-http": "^0.1.6",
"keccak": "^1.0.2",
"keccak": "^3.0.0",
"rlp": "^2.0.0",
"secp256k1": "^3.0.1"
"secp256k1": "^5.0.0"
},
"devDependencies": {
"mkdirp": "^0.5.1",
"openzeppelin-contracts": "^4.0.0",
"purescript": "^0.15.8",
"purescript-psa": "^0.8.2",
"purs-tidy": "^0.10.0",
"solc": "^0.8",
"spago": "^0.21.0"
"spago": "next"
}
}
1 change: 0 additions & 1 deletion example/packages.dhall

This file was deleted.

24 changes: 0 additions & 24 deletions example/spago.dhall

This file was deleted.

Loading

0 comments on commit 2fffa96

Please sign in to comment.