Skip to content

Commit 0a7c624

Browse files
authored
Hyperclient Improvements (#120)
1 parent 4d663a1 commit 0a7c624

34 files changed

+1359
-2620
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ jobs:
268268
hyperclient-tests:
269269
name: Hyperclient Integration Tests
270270
runs-on: ubuntu-latest
271+
if: false
271272

272273
steps:
273274
- uses: actions/checkout@v4.1.1

.github/workflows/hyperclient.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,18 @@ jobs:
1818
node-version: '20.x'
1919
registry-url: 'https://registry.npmjs.org'
2020
scope: '@polytope-labs'
21-
- run: |
22-
cd modules/client/pkg
23-
npm publish --access public
21+
22+
- name: Install wasm-pack
23+
run: |
24+
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
25+
rustup target add wasm32-unknown-unknown
26+
27+
- name: Build and Publish
28+
working-directory: modules/client
2429
env:
2530
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: |
32+
wasm-pack build --release --no-default-features --features=wasm
33+
cd pkg
34+
npx --yes change-package-name @polytope-labs/hyperclient
35+
npm publish --access public

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ evm/cache/
1616
evm/broadcast/
1717
evm/integration-tests/target/
1818

19-
.uuid*
19+
.uuid*
20+
21+
modules/client/pkg

Cargo.lock

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

evm/abi/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn main() -> anyhow::Result<()> {
1818
("Beefy", format!("{base_dir}/out/BeefyV1.sol/BeefyV1.json")),
1919
("PingModule", format!("{base_dir}/out/PingModule.sol/PingModule.json")),
2020
("HostManager", format!("{base_dir}/out/HostManager.sol/HostManager.json")),
21+
("ERC20", format!("{base_dir}/out/ERC20.sol/ERC20.json")),
2122
];
2223

2324
MultiAbigen::new(sources)

0 commit comments

Comments
 (0)