Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run wasm_executor from js #2

Merged
merged 12 commits into from
Oct 25, 2022
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'sort-imports-es6-autofix/sort-imports-es6': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
node-version: 18.x
cache: 'yarn'
- run: yarn --immutable
- run: yarn build-wasm
- run: yarn lint
- run: yarn build
- run: yarn test
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,5 @@ dist
!.yarn/plugins
!.yarn/sdks
!.yarn/versions

.idea
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ Make sure you have setup Rust environment.

- Install deps
- `yarn`
- Build wasm
- `yarn build-wasm`
- Run nodejs runner
- `yarn dev`
- `yarn start run-block --endpoint=wss://acala-rpc-2.aca-api.network/ws`

Connect to the rpc via localhost:8000 and you may be able to submit transaction and it will be executed in parallel reality.

Expand Down
2 changes: 1 addition & 1 deletion e2e/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const setupAll = async () => {

return {
async setup() {
const tasks = new TaskManager(executorCmd, 8000)
const tasks = new TaskManager(process.env.WASM_EXECUTOR === 'true' ? '' : executorCmd, 8000)

const chain = new Blockchain(api, tasks, { hash: blockHash, number: header.number.toNumber() })

Expand Down
Loading