-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/init-interchain-contracts
- Loading branch information
Showing
556 changed files
with
16,725 additions
and
41,497 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
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
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 |
---|---|---|
|
@@ -9,3 +9,6 @@ reviews: | |
- 'WIP' | ||
- 'DO NOT MERGE' | ||
drafts: true | ||
|
||
chat: | ||
auto_reply: true |
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
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
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
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 |
---|---|---|
|
@@ -7,11 +7,13 @@ on: | |
- 'packages/contracts-interchain/**' | ||
- 'packages/contracts-rfq/**' | ||
- '.github/workflows/solidity.yml' | ||
- 'packages/solidity-devops/**' | ||
push: | ||
paths: | ||
- 'packages/contracts-core/**' | ||
- 'packages/contracts-interchain/**' | ||
- 'packages/contracts-rfq/**' | ||
- 'packages/solidity-devops/**' | ||
- '.github/workflows/solidity.yml' | ||
|
||
jobs: | ||
|
@@ -37,6 +39,7 @@ jobs: | |
contracts-core: 'packages/contracts-core/**' | ||
contracts-interchain: 'packages/contracts-interchain/**' | ||
contracts-rfq: 'packages/contracts-rfq/**' | ||
solidity-devops: 'packages/solidity-devops/**' | ||
- id: length | ||
run: | | ||
export FILTER_LENGTH=$(echo $FILTERED_PATHS | jq '. | length') | ||
|
@@ -79,7 +82,8 @@ jobs: | |
PROJECT_IDS=$(cat <<END | ||
{ | ||
"contracts-core": "${{ secrets.VERCEL_CONTRACT_DOCS_PROJECT_ID}}", | ||
"contracts-rfq": "${{ secrets.VERCEL_CONTRACT_RFQ_DOCS_PROJECT_ID }}" | ||
"contracts-rfq": "${{ secrets.VERCEL_CONTRACT_RFQ_DOCS_PROJECT_ID }}", | ||
"solidity-devops": "${{ secrets.VERCEL_DEVOPS_DOCS_PROJECT_ID }}" | ||
} | ||
END | ||
) | ||
|
@@ -92,6 +96,7 @@ jobs: | |
run: | | ||
forge doc | ||
cp vercel.package.json docs/package.json | ||
- name: Deploy (Prod) | ||
if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} | ||
run: | | ||
|
@@ -136,31 +141,37 @@ jobs: | |
contents: read | ||
steps: | ||
- name: Checkout repository | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
submodules: 'recursive' | ||
|
||
- name: Setup NodeJS | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: ./.github/actions/setup-nodejs | ||
|
||
- name: Install Foundry | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
# TODO: find a flag for this | ||
- name: Delete Untested Files | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
working-directory: './packages/${{matrix.package}}' | ||
run: | | ||
rm -rf test/ || true | ||
rm -rf script/ || true | ||
- name: Build Contracts | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
run: | | ||
npx lerna exec npm run build:slither | ||
- name: Run Slither | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: crytic/[email protected] | ||
continue-on-error: true | ||
id: slither | ||
|
@@ -172,7 +183,7 @@ jobs: | |
solc-version: 0.8.17 | ||
|
||
- name: Upload SARIF file | ||
if: ${{!github.event.repository.private}} | ||
if: ${{!github.event.repository.private && matrix.package != 'solidity-devops'}} | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: ./results.sarif | ||
|
@@ -188,25 +199,31 @@ jobs: | |
package: ${{ fromJson(needs.changes.outputs.packages) }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Node JS | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: ./.github/actions/setup-nodejs | ||
|
||
- name: Installing dependencies | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
run: yarn install --immutable | ||
|
||
- name: Install Foundry | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Run Foundry Tests | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
working-directory: './packages/${{matrix.package}}' | ||
run: forge coverage -vvv --report lcov --report summary >> $GITHUB_STEP_SUMMARY | ||
|
||
- name: Send Coverage (Codecov) | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/codecov-action@v3 | ||
|
@@ -231,20 +248,25 @@ jobs: | |
package: ${{ fromJson(needs.changes.outputs.packages) }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Node JS | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: ./.github/actions/setup-nodejs | ||
|
||
- name: Installing dependencies | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
run: yarn install --immutable | ||
|
||
- name: Install Foundry | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Run snapshot | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
working-directory: './packages/${{matrix.package}}' | ||
run: forge snapshot >> $GITHUB_STEP_SUMMARY | ||
size-check: | ||
|
@@ -258,19 +280,23 @@ jobs: | |
package: ${{ fromJson(needs.changes.outputs.packages) }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Node JS | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: ./.github/actions/setup-nodejs | ||
|
||
- name: Install Foundry | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
# This will run https://book.getfoundry.sh/reference/forge/forge-build#build-options | ||
- name: Run forge build --sizes | ||
if: ${{ matrix.package != 'solidity-devops' }} | ||
run: | | ||
forge build --sizes | ||
working-directory: './packages/${{matrix.package}}' |
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
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
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 |
---|---|---|
@@ -1,17 +1,20 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
}, | ||
"eslint.workingDirectories": [ | ||
{"directory": "packages/contracts", "changeProcessCWD": true } | ||
], | ||
"eslint.nodePath": "./node_modules/eslint/bin/", | ||
"eslint.format.enable": true, | ||
"editorconfig.generateAuto": false, | ||
"files.trimTrailingWhitespace": true, | ||
"solidity.packageDefaultDependenciesContractsDirectory": "contracts", | ||
"solidity.packageDefaultDependenciesDirectory": "lib", | ||
"solidity.compileUsingRemoteVersion": "v0.8.17", | ||
"solidity.formatter": "prettier" | ||
} | ||
"editor.formatOnSave": true, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"eslint.workingDirectories": [ | ||
{ "directory": "packages/contracts", "changeProcessCWD": true } | ||
], | ||
"eslint.nodePath": "./node_modules/eslint/bin/", | ||
"eslint.format.enable": true, | ||
"editorconfig.generateAuto": false, | ||
"files.trimTrailingWhitespace": true, | ||
"solidity.packageDefaultDependenciesContractsDirectory": "contracts", | ||
"solidity.packageDefaultDependenciesDirectory": "lib", | ||
"solidity.compileUsingRemoteVersion": "v0.8.17", | ||
"solidity.formatter": "prettier" | ||
} |
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 |
---|---|---|
|
@@ -67,19 +67,24 @@ root | |
│ ├── <a href="./packages/coverage-aggregator">coverage-aggregator</a>: Javascript coverage aggregator based on <a href="https://www.npmjs.com/package/nyc">nyc</a> | ||
│ ├── <a href="./packages/docs">docs</a>: Docasaurus documentation. Note: this is not yet in use, and docs are still maintained on gitbook | ||
│ ├── <a href="./packages/explorer-ui">explorer-ui</a>: Explorer UI | ||
│ ├── <a href="./packages/rest-api">rest-api</a>: Rest API | ||
│ ├── <a href="./packages/sdk-router">sdk-router</a>: SDK router | ||
│ ├── <a href="./packages/solidity-devops">solidity-devops</a>: provides a set of tools and scripts to help with the development of Solidity smart contracts | ||
│ ├── <a href="./packages/synapse-constants">synapse constants</a>: Constants used across synapse | ||
│ ├── <a href="./packages/sdk-router">synapse-interface</a>: Synapse frontend code | ||
│ ├── <a href="./packages/widget">widget</a>: Bridge Widget | ||
├── <a href="./services">services</a> | ||
│ ├── <a href="./services/cctp-relayer">CCTP Relayer</a>: CCTP message relayer | ||
│ ├── <a href="./services/explorer">explorer</a>: Bridge/messaging explorer ba | ||
│ ├── <a href="./services/stiprelayer">stiprelayer</a>: STIP relayer for rewards. | ||
│ ├── <a href="./services/rfq">rfq</a>: RFQ contracts | ||
│ ├── <a href="./services/scribe">scribe</a>: Generalized ethereum event logger | ||
│ ├── <a href="./services/omnirpc">omnirpc</a>: Latency aware RPC Client used across multiple-chains at once | ||
│ ├── <a href="./services/sinner">sinner</a>: [Synapse Interchain Network](https://interchain.synapseprotocol.com/) indexer & query interface | ||
├── <a href="./tools">tools</a> | ||
│ ├── <a href="./tools/abigen">abigen</a>: Used to generate abigen bindings for go | ||
│ ├── <a href="./tools/bundle">bundle</a>: Modified version of <a href="https://pkg.go.dev/golang.org/x/[email protected]/cmd/bundle"> go bundler </a> with improved shadowing support | ||
│ ├── <a href="./tools/modulecopier">module copier</a>: Used to copy internal modules and export methods for testing | ||
│ ├── <a href="./tools/revertresolver">revertresolver</a>: Converts hexified solidity errors into their underlying errors. | ||
</pre> | ||
|
||
## Setup | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
agents/contracts/bondingmanager/bondingmanager.contractinfo.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.