-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
HARRYPOTTER
committed
Aug 17, 2024
0 parents
commit ddd3b33
Showing
508 changed files
with
195,106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- | ||
Steps before creating an issue: | ||
1. I've read the documentation. | ||
2. I've tried googling or asking my question on stackoverflow. | ||
3. I've tried searching this repository for similar issues. | ||
--> | ||
|
||
#### Expected behavior | ||
|
||
#### Actual behavior | ||
|
||
#### Steps to reproduce the behavior | ||
|
||
1. [First step] | ||
2. [Second step] | ||
3. [and so on...] | ||
|
||
#### Logs | ||
|
||
<!-- Please share any relevant logs that may help us debug your issue. --> | ||
|
||
#### Environment | ||
|
||
<!-- e.g. Versions used of: npm, Node, web3.js, OS, device --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## Description | ||
|
||
Please include a summary of the changes and be sure to follow our [Contribution Guidelines](../CONTRIBUTIONS.md). | ||
|
||
<!-- | ||
Optional if an issue is fixed: | ||
Fixes #(issue) | ||
--> | ||
|
||
## Type of change | ||
|
||
<!-- Please delete options that are not relevant. --> | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
|
||
## Checklist: | ||
|
||
- [ ] I have selected the correct base branch. | ||
- [ ] I have performed a self-review of my own code. | ||
- [ ] I have commented my code, particularly in hard-to-understand areas. | ||
- [ ] I have made corresponding changes to the documentation. | ||
- [ ] My changes generate no new warnings. | ||
- [ ] Any dependent changes have been merged and published in downstream modules. | ||
- [ ] I ran `npm run dtslint` with success and extended the tests and types if necessary. | ||
- [ ] I ran `npm run test:unit` with success. | ||
- [ ] I ran `npm run test:cov` and my test cases cover all the lines and branches of the added code. | ||
- [ ] I ran `npm run build` and tested `dist/web3.min.js` in a browser. | ||
- [ ] I have tested my code on the live network. | ||
- [ ] I have checked the Deploy Preview and it looks correct. | ||
- [ ] I have updated the `CHANGELOG.md` file in the root folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
name: "Build" | ||
on: | ||
push: | ||
branches: | ||
- "1.x" | ||
tags: | ||
- v1* | ||
pull_request: | ||
branches: | ||
- "1.x" | ||
types: [opened, reopened, synchronize] | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
TEST: "build_and_lint" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-deps | ||
with: | ||
path: | | ||
node_modules | ||
*/*/node_modules | ||
key: ${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- run: npm ci | ||
if: steps.cache-deps.outputs.cache-hit != 'true' | ||
|
||
- run: bash ./scripts/ci.sh | ||
unit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [8, 10, 11, 12, 13] | ||
env: | ||
TEST: "unit" | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-deps | ||
with: | ||
path: | | ||
node_modules | ||
*/*/node_modules | ||
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- run: npm ci | ||
if: steps.cache-deps.outputs.cache-hit != 'true' | ||
|
||
- run: bash ./scripts/ci.sh | ||
e2e: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
testCmd: | ||
[ | ||
'unit_and_e2e_clients', | ||
'e2e_browsers', | ||
'e2e_ganache', | ||
'e2e_mosaic', | ||
'e2e_gnosis_dex', | ||
] | ||
env: | ||
TEST: ${{ matrix.testCmd }} | ||
INFURA_HTTP: ${{ secrets.INFURA_HTTP }} | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-deps | ||
if: env.TEST == 'unit_and_e2e_clients' || env.TEST == 'e2e_browsers' | ||
with: | ||
path: | | ||
node_modules | ||
*/*/node_modules | ||
key: ${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- run: npm ci | ||
if: (env.TEST == 'unit_and_e2e_clients' || env.TEST == 'e2e_browsers') && steps.cache-deps.outputs.cache-hit != 'true' | ||
|
||
- run: bash ./scripts/ci.sh | ||
|
||
- name: Send coverage reports to Coveralls | ||
if: env.TEST == 'unit_and_e2e_clients' | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
e2e_windows: | ||
runs-on: windows-latest | ||
env: | ||
TEST: "e2e_windows" | ||
INFURA_HTTP: ${{ secrets.INFURA_HTTP }} | ||
INFURA_WSS: ${{ secrets.INFURA_WSS }} | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/checkout@v2 | ||
- run: bash ./scripts/ci.sh | ||
eth2: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [10, 11, 12, 13] | ||
env: | ||
TEST: "eth2" | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-deps | ||
with: | ||
path: | | ||
node_modules | ||
*/*/node_modules | ||
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- run: npm ci | ||
if: steps.cache-deps.outputs.cache-hit != 'true' | ||
|
||
- run: bash ./scripts/ci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "Close stale issues" | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.' | ||
stale-pr-message: 'This PR has been automatically marked as stale beacause it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.' | ||
days-before-stale: 60 | ||
days-before-close: 14 | ||
operations-per-run: 100 | ||
exempt-pr-labels: 'work-in-progress' | ||
exempt-issue-labels: 'work-in-progress' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.DS_Store | ||
*.swp | ||
*/**/*un~ | ||
*un~ | ||
*/**/.DS_Store | ||
npm-debug.log | ||
.npm/ | ||
/coverage | ||
/tmp | ||
node_modules | ||
.idea/ | ||
.npm/ | ||
.history/ | ||
.vscode/ | ||
packages/web3/dist/ | ||
lerna-debug.log | ||
.nyc_output/ | ||
build/ | ||
contracts/ | ||
migrations/ | ||
truffle-config.js | ||
test/config/ensAddresses.json | ||
*/**/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
packages/**/node_modules/ | ||
karma.conf.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"browserify": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"eqeqeq": true, | ||
"esversion": 8, | ||
"freeze": true, | ||
"funcscope": false, | ||
"maxcomplexity": 15, | ||
"maxdepth": 4, | ||
"maxerr": 50, | ||
/*"maxlen": 80*/ /*this should be our goal*/ | ||
/*"maxparams": 3,*/ | ||
"nonew": true, | ||
"unused": true, | ||
"undef": true, | ||
"predef": [ | ||
"console" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*.idea | ||
test | ||
dist | ||
docs | ||
coverage | ||
scripts | ||
.gitignore | ||
.editorconfig | ||
.npmignore | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v14.15.1 |
Oops, something went wrong.