Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AcalaNetwork/chopsticks
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.3.12
Choose a base ref
...
head repository: AcalaNetwork/chopsticks
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.4.0
Choose a head ref
  • 7 commits
  • 126 files changed
  • 4 contributors

Commits on Feb 20, 2023

  1. change to use the monorepo (#193)

    * move to package/core
    
    * fix
    
    * update
    
    * update
    
    * update
    
    * update
    
    * watch
    
    * start
    
    * rename
    
    * add core
    
    * fix lint
    
    * fix
    
    * fix ci
    
    * update
    
    * exclude lib
    
    * update port
    
    * fix
    
    * change script
    
    * fix
    
    * fixes
    
    * update script
    
    * update action
    
    ---------
    
    Co-authored-by: Ermal Kaleci <ermalkaleci@gmail.com>
    ntduan and ermalkaleci authored Feb 20, 2023
    Copy the full SHA
    62318df View commit details
  2. update vitest (#197)

    ermalkaleci authored Feb 20, 2023
    Copy the full SHA
    f57d89f View commit details

Commits on Feb 21, 2023

  1. Copy the full SHA
    f557879 View commit details

Commits on Feb 22, 2023

  1. fix script cwd (#201)

    xlc authored Feb 22, 2023
    Copy the full SHA
    809d528 View commit details

Commits on Feb 24, 2023

  1. Copy the full SHA
    eb5dfc2 View commit details

Commits on Feb 25, 2023

  1. bump blocks

    xlc committed Feb 25, 2023
    Copy the full SHA
    e52c087 View commit details
  2. 0.4.0

    xlc committed Feb 25, 2023
    Copy the full SHA
    bbee3a3 View commit details
Showing with 1,335 additions and 1,340 deletions.
  1. +0 −7 .eslintignore
  2. +0 −1 .eslintrc.js
  3. +2 −2 .github/workflows/ci.yml
  4. +5 −1 .github/workflows/publish.yml
  5. +2 −0 .gitignore
  6. +1 −1 .gitmodules
  7. +0 −1 .husky/.gitignore
  8. +0 −5 .husky/pre-commit
  9. +0 −2 .prettierignore
  10. +3 −0 .vscode/settings.json
  11. +28 −0 .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
  12. +2 −0 .yarnrc.yml
  13. 0 {e2e → }/blobs/acala-runtime-2101.txt
  14. +0 −2 chopsticks.js
  15. +1 −1 configs/karura.yml
  16. +54 −2 configs/kusama.yml
  17. +1 −0 e2e/.eslintignore
  18. +1 −0 e2e/.gitignore
  19. +30 −0 e2e/package.json
  20. +23 −0 e2e/scripts/sidecar-chopsticks.sh
  21. +0 −21 e2e/scripts/sidecard-chopsticks.sh
  22. 0 e2e/{ → src}/__snapshots__/author.test.ts.snap
  23. 0 e2e/{ → src}/__snapshots__/chain.test.ts.snap
  24. 0 e2e/{ → src}/__snapshots__/decoder.test.ts.snap
  25. 0 e2e/{ → src}/__snapshots__/dev.test.ts.snap
  26. 0 e2e/{ → src}/__snapshots__/dry-run-extrinsic.test.ts.snap
  27. 0 e2e/{ → src}/__snapshots__/genesis-provider.test.ts.snap
  28. 0 e2e/{ → src}/__snapshots__/state.test.ts.snap
  29. 0 e2e/{ → src}/__snapshots__/storage.test.ts.snap
  30. 0 e2e/{ → src}/__snapshots__/upgrade.test.ts.snap
  31. 0 e2e/{ → src}/__snapshots__/xcm.test.ts.snap
  32. 0 e2e/{ → src}/author.test.ts
  33. 0 e2e/{ → src}/block.test.ts
  34. 0 e2e/{ → src}/build-block.test.ts
  35. 0 e2e/{ → src}/chain.test.ts
  36. +1 −1 e2e/{ → src}/decoder.test.ts
  37. 0 e2e/{ → src}/dev.test.ts
  38. 0 e2e/{ → src}/dry-run-extrinsic.test.ts
  39. 0 e2e/{ → src}/genesis-provider.test.ts
  40. +8 −8 e2e/{ → src}/helper.ts
  41. +2 −2 e2e/{ → src}/import-storage/index.test.ts
  42. 0 e2e/{ → src}/import-storage/storage.error.pallet.yml
  43. 0 e2e/{ → src}/import-storage/storage.error.storage.yml
  44. +1 −2 e2e/{ → src}/import-storage/storage.ok.yml
  45. 0 e2e/{ → src}/metadata.test.ts
  46. 0 e2e/{ → src}/mock-signature.test.ts
  47. 0 e2e/{ → src}/relaychain.test.ts
  48. 0 e2e/{ → src}/state.test.ts
  49. 0 e2e/{ → src}/storage.test.ts
  50. 0 e2e/{ → src}/system.test.ts
  51. +1 −1 e2e/{ → src}/time-travel.test.ts
  52. +1 −1 e2e/{ → src}/upgrade.test.ts
  53. +4 −4 e2e/{ → src}/xcm.test.ts
  54. +3 −0 e2e/tsconfig.json
  55. +1 −1 executor/Cargo.lock
  56. +2 −3 executor/Cargo.toml
  57. +2 −2 executor/pkg/package.json
  58. +12 −4 executor/src/lib.rs
  59. +71 −92 executor/src/proof.rs
  60. +15 −66 package.json
  61. +4 −0 packages/chopsticks/.eslintignore
  62. +2 −0 packages/chopsticks/.prettierignore
  63. +2 −0 packages/chopsticks/chopsticks.js
  64. +68 −0 packages/chopsticks/package.json
  65. +104 −0 packages/chopsticks/src/__snapshots__/executor.test.ts.snap
  66. 0 { → packages/chopsticks}/src/api.ts
  67. 0 { → packages/chopsticks}/src/blockchain/block-builder.ts
  68. 0 { → packages/chopsticks}/src/blockchain/block.ts
  69. 0 { → packages/chopsticks}/src/blockchain/head-state.ts
  70. 0 { → packages/chopsticks}/src/blockchain/index.ts
  71. 0 { → packages/chopsticks}/src/blockchain/inherent/index.ts
  72. 0 { → packages/chopsticks}/src/blockchain/inherent/para-enter.ts
  73. +1 −1 { → packages/chopsticks}/src/blockchain/inherent/parachain/babe-randomness.ts
  74. +1 −1 { → packages/chopsticks}/src/blockchain/inherent/parachain/nimbus-author-inherent.ts
  75. +94 −55 { → packages/chopsticks}/src/blockchain/inherent/parachain/validation-data.ts
  76. 0 { → packages/chopsticks}/src/blockchain/storage-layer.ts
  77. 0 { → packages/chopsticks}/src/blockchain/txpool.ts
  78. 0 { → packages/chopsticks}/src/cli.ts
  79. 0 { → packages/chopsticks}/src/db/entities.ts
  80. 0 { → packages/chopsticks}/src/db/index.ts
  81. 0 { → packages/chopsticks}/src/dry-run-preimage.ts
  82. 0 { → packages/chopsticks}/src/dry-run.ts
  83. +144 −0 packages/chopsticks/src/executor.test.ts
  84. +3 −16 { → packages/chopsticks}/src/executor.ts
  85. 0 { → packages/chopsticks}/src/genesis-provider.ts
  86. 0 { → packages/chopsticks}/src/index.ts
  87. 0 { → packages/chopsticks}/src/logger.ts
  88. 0 { → packages/chopsticks}/src/rpc/dev.ts
  89. 0 { → packages/chopsticks}/src/rpc/index.ts
  90. 0 { → packages/chopsticks}/src/rpc/shared.ts
  91. +1 −1 { → packages/chopsticks}/src/rpc/substrate/author.ts
  92. 0 { → packages/chopsticks}/src/rpc/substrate/chain.ts
  93. 0 { → packages/chopsticks}/src/rpc/substrate/index.ts
  94. 0 { → packages/chopsticks}/src/rpc/substrate/payment.ts
  95. 0 { → packages/chopsticks}/src/rpc/substrate/state.ts
  96. 0 { → packages/chopsticks}/src/rpc/substrate/system.ts
  97. 0 { → packages/chopsticks}/src/run-block.ts
  98. 0 { → packages/chopsticks}/src/schema/index.ts
  99. 0 { → packages/chopsticks}/src/server.ts
  100. 0 { → packages/chopsticks}/src/setup-with-server.ts
  101. +3 −1 { → packages/chopsticks}/src/setup.ts
  102. 0 { → packages/chopsticks}/src/utils/decoder.ts
  103. 0 { → packages/chopsticks}/src/utils/generate-html-diff.ts
  104. 0 { → packages/chopsticks}/src/utils/import-storage.ts
  105. 0 { → packages/chopsticks}/src/utils/index.ts
  106. 0 { → packages/chopsticks}/src/utils/open-html.ts
  107. 0 { → packages/chopsticks}/src/utils/proof.ts
  108. 0 { → packages/chopsticks}/src/utils/set-storage.ts
  109. 0 { → packages/chopsticks}/src/utils/time-travel.ts
  110. 0 { → packages/chopsticks}/src/xcm/downward.ts
  111. 0 { → packages/chopsticks}/src/xcm/horizontal.ts
  112. 0 { → packages/chopsticks}/src/xcm/index.ts
  113. 0 { → packages/chopsticks}/src/xcm/upward.ts
  114. 0 { → packages/chopsticks}/template/diff.html
  115. +9 −0 packages/chopsticks/tsconfig.json
  116. +2 −0 packages/core/.eslintignore
  117. +1 −0 packages/core/.prettierignore
  118. +29 −0 packages/core/package.json
  119. +8 −0 packages/core/src/index.test.ts
  120. +1 −0 packages/core/src/index.ts
  121. +9 −0 packages/core/tsconfig.json
  122. +0 −123 src/__snapshots__/executor.test.ts.snap
  123. +0 −160 src/executor.test.ts
  124. +9 −5 tsconfig.json → tsconfig.base.json
  125. +0 −4 tsconfig.prod.json
  126. +563 −740 yarn.lock
7 changes: 0 additions & 7 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
vitest.config.ts
.eslintrc.js
node_modules/
executor/
vendor/
dist/
preview/
chopsticks.js
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ 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',
{
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ jobs:
- run: yarn check
- run: yarn build-wasm
- run: yarn lint
- run: yarn test
- run: yarn build
- run: yarn test
- name: Test substrate-api-sidecard with chopsticks node
run: sh e2e/scripts/sidecard-chopsticks.sh
run: yarn workspace @acala-network/chopsticks-e2e run sidecar
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -36,14 +36,18 @@ jobs:
- run: yarn check
- run: yarn build-wasm
- run: yarn build
- run: node -e "assert(require('./package.json').version === require('./executor/pkg/package.json').version, 'Chopsticks and executor version not the same. Please update Cargo.toml version')"
- run: node -e "assert(require('./packages/chopsticks/package.json').version === require('./executor/pkg/package.json').version, 'Chopsticks and executor version not the same. Please update Cargo.toml version')"
# Writes token to .yarnrc.yml. If written directly in .yarnrc.yml, it will cause an error
- run: |
echo npmAuthToken: "\${NPM_AUTH_TOKEN}" >> ./.yarnrc.yml
- name: Publish @acala-network/chopsticks
run: yarn workspace @acala-network/chopsticks npm publish --tolerate-republish --access public
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
# - name: Publish @acala-network/chopsticks-core
# run: yarn workspace @acala-network/chopsticks-core npm publish --tolerate-republish --access public
# env:
# NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish @acala-network/chopsticks-executor
run: yarn workspace @acala-network/chopsticks-executor npm publish --tolerate-republish --access public
env:
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -125,3 +125,5 @@ dist
.DS_store

preview/

lib
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "vendor/smoldot"]
path = vendor/smoldot
url = https://github.com/paritytech/smoldot
url = https://github.com/smol-dot/smoldot.git
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -5,5 +5,3 @@ executor/
vendor/
.pnp.cjs
.pnp.loader.mjs
dist/
preview/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading