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

Add utils #3

Merged
merged 35 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
61f6dc8
add ABI files and some types and do few naming and formatting
Muhammad-Altabba May 25, 2024
9279e2e
add .history to .gitignore
Muhammad-Altabba May 25, 2024
758df6f
add some util functions
Muhammad-Altabba May 27, 2024
5c999a7
update a test
Muhammad-Altabba May 28, 2024
5c57acf
fix spelling
Muhammad-Altabba May 28, 2024
c55f043
tiny renaming
Muhammad-Altabba May 28, 2024
3ba6c10
add unit test and apply padding fixes + organize test files
Muhammad-Altabba May 28, 2024
a343063
move constants to a separate file
Muhammad-Altabba May 28, 2024
fcb8734
add some utils constants and types
Muhammad-Altabba May 29, 2024
6fb6fdd
update web3js version
avkos Jun 4, 2024
5232165
Merge branch 'main' into add-utils
avkos Jun 4, 2024
1f7abb7
Merge branch 'add-utils' into ok/eip-712
avkos Jun 4, 2024
3dcaa3d
fix and test the signature validation function
Muhammad-Altabba Jun 3, 2024
1610afa
fix and add a test case but still need investigation
Muhammad-Altabba Jun 6, 2024
8798d6e
add contracts inside the plugin instance
Muhammad-Altabba Jun 6, 2024
9cf4a60
tiny fix
Muhammad-Altabba Jun 6, 2024
4f34c20
eip712 class
avkos Jun 6, 2024
f8e3ce5
Merge branch 'add-utils' into ok/eip-712
avkos Jun 6, 2024
b0d67dc
eip712
avkos Jun 11, 2024
93b28a5
remove tx type
avkos Jun 11, 2024
7c00ed8
fix tests
avkos Jun 12, 2024
a874af9
all tests covered
avkos Jun 13, 2024
0c5918f
fixes
avkos Jun 13, 2024
03252b3
remove unnecessary things
avkos Jun 13, 2024
7a2e1ea
fix
avkos Jun 13, 2024
7fcf12d
use baseTransaction for signing
avkos Jun 14, 2024
48c2cf4
Merge pull request #7 from ChainSafe/ok/eip-712
avkos Jun 14, 2024
90d3a05
latest version web3js
avkos Jun 18, 2024
7d5bd65
test
avkos Jun 18, 2024
2328840
fix tests
avkos Jun 18, 2024
167f04e
test
avkos Jun 18, 2024
c5c4098
fix tests
avkos Jun 18, 2024
51e36d2
fix to test network
avkos Jun 18, 2024
12db0da
[DRAFT] MS2 (#11)
Muhammad-Altabba Jul 10, 2024
08ece70
Merge branch 'main' into add-utils
avkos Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
test:
strategy:
matrix:
node: [18, 20]
node: [20]
name: Install and test
runs-on: ubuntu-latest
steps:
Expand All @@ -17,4 +17,5 @@ jobs:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install
- run: yarn test
- run: yarn build
- run: export PRIVATE_KEY=${{secrets.PRIVATE_KEY}} && yarn test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
lib
lib
.history
.idea
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
.prettierrc.json
.prettierignore
*.log
.idea

coverage/
benchmark/
Expand Down
92 changes: 49 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,50 @@
{
"name": "web3-plugin-zksync",
"version": "0.1.5",
"description": "web3.js plugin for ZkSync",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"homepage": "https://github.com/web3/web3-plugin-zksync#readme",
"bugs": {
"url": "https://github.com/web3/web3-plugin-zksync/issues"
},
"scripts": {
"lint": "eslint '{src,test}/**/*.ts'",
"build": "tsc --project tsconfig.build.json",
"test": "jest --config=./test/jest.config.js"
},
"contributors": [
"ChainSafe <[email protected]>"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/web3/web3-plugin-zksync.git"
},
"dependencies": {
"hardhat": "^2.19.4",
"web3-utils": "^4.1.1"
},
"devDependencies": {
"@chainsafe/eslint-config": "^2.1.1",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.10",
"eslint": "8.56.0",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typedoc": "^0.25.13",
"typescript": "^5.3.3",
"web3": "^4.4.0"
},
"peerDependencies": {
"web3": ">= 4.0.3"
}
}
"name": "web3-plugin-zksync",
"version": "1.0.0-alpha.0",
"description": "web3.js plugin for ZkSync",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"homepage": "https://github.com/web3/web3-plugin-zksync#readme",
"bugs": {
"url": "https://github.com/web3/web3-plugin-zksync/issues"
},
"scripts": {
"lint": "eslint '{src,test}/**/*.ts'",
"lint:fix": "eslint '{src,test}/**/*.ts' --fix",
"build": "tsc --project tsconfig.build.json",
"test": "jest --config=./test/jest.config.js"
},
"contributors": [
"ChainSafe <[email protected]>"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/web3/web3-plugin-zksync.git"
},
"dependencies": {
"ethereum-cryptography": "^2.1.3",
"hardhat": "^2.19.4",
"web3": "4.10.1-dev.1436228.0",
"web3-core": "4.5.1-dev.1436228.0",
"web3-eth-abi": "^4.2.2",
"web3-eth-accounts": "^4.1.2",
"web3-eth-contract": "4.5.1-dev.1436228.0",
"web3-types": "1.7.1-dev.1436228.0",
"web3-utils": "4.3.1-dev.1436228.0"
},
"devDependencies": {
"@chainsafe/eslint-config": "^2.1.1",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.10",
"eslint": "8.56.0",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"peerDependencies": {
"web3": ">= 4.0.3"
}
}
Loading
Loading