Skip to content

Commit

Permalink
Hyperclient Improvements (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege authored Mar 11, 2024
1 parent 4d663a1 commit 0a7c624
Show file tree
Hide file tree
Showing 34 changed files with 1,359 additions and 2,620 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ jobs:
hyperclient-tests:
name: Hyperclient Integration Tests
runs-on: ubuntu-latest
if: false

steps:
- uses: actions/[email protected]
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/hyperclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
scope: '@polytope-labs'
- run: |
cd modules/client/pkg
npm publish --access public

- name: Install wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
rustup target add wasm32-unknown-unknown
- name: Build and Publish
working-directory: modules/client
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
wasm-pack build --release --no-default-features --features=wasm
cd pkg
npx --yes change-package-name @polytope-labs/hyperclient
npm publish --access public
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ evm/cache/
evm/broadcast/
evm/integration-tests/target/

.uuid*
.uuid*

modules/client/pkg
32 changes: 16 additions & 16 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions evm/abi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ fn main() -> anyhow::Result<()> {
("Beefy", format!("{base_dir}/out/BeefyV1.sol/BeefyV1.json")),
("PingModule", format!("{base_dir}/out/PingModule.sol/PingModule.json")),
("HostManager", format!("{base_dir}/out/HostManager.sol/HostManager.json")),
("ERC20", format!("{base_dir}/out/ERC20.sol/ERC20.json")),
];

MultiAbigen::new(sources)
Expand Down
Loading

0 comments on commit 0a7c624

Please sign in to comment.