Skip to content

Commit

Permalink
Merge pull request #13 from Ian-Bright/feat/biconomy
Browse files Browse the repository at this point in the history
Feat/biconomy
  • Loading branch information
jp4g authored Mar 19, 2022
2 parents 61229fb + 0b9dbf1 commit 43fbef0
Show file tree
Hide file tree
Showing 11 changed files with 65,935 additions and 75 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@biconomy/mexa": "^2.0.30",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^13.5.0",
Expand Down
10 changes: 7 additions & 3 deletions postinstall.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# Remove old minified bundles
rm public/snarkjs.min.js public/circomlibjs.min.js
rm public/snarkjs.min.js public/circomlibjs.min.js public/mexa.js
# Generate new SnarkJS minified bundle
cd node_modules/snarkjs
yarn && yarn buildiifemin
Expand All @@ -9,8 +9,12 @@ cd ..
# @notice uses custom fork @ github.com/jp4g/circomlibjs#browser-compatibility until fix pushed
cd circomlibjs
yarn && yarn build:min
cd ../..
cd ..
# generate new biconomy bundle
cd @biconomy/mexa
yarn && yarn build
cd ../../..
# Copy new bundles to public/
cp node_modules/snarkjs/build/snarkjs.min.js public/
cp node_modules/circomlibjs/build/circomlibjs.min.js public/
echo COMPLETE
cp node_modules/@biconomy/mexa/dist/mexa.js public/
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
-->
<script src="/snarkjs.min.js"></script>
<script src="/circomlibjs.min.js"></script>
<script src="/mexa.js"></script>
<title>Battlezips</title>
</head>
<body>
Expand Down
Loading

0 comments on commit 43fbef0

Please sign in to comment.