-
Notifications
You must be signed in to change notification settings - Fork 241
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
Showing
172 changed files
with
17,620 additions
and
2,980 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,53 @@ | ||
name: Reusable Workflow | Deploy Framework and Update Tokens on a Forked Network | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
network: | ||
required: true | ||
type: string | ||
network-id: | ||
required: true | ||
type: string | ||
provider-url: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
deploy-to-forked-network: | ||
name: Deploy Framework and Update Tokens on a Forked Network | ||
runs-on: ubuntu-latest | ||
env: | ||
ethereum-contracts-working-directory: ./packages/ethereum-contracts | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install and Build | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn build-for-contracts-dev | ||
- name: Start ganache | ||
run: npx ganache --port 47545 --mnemonic --fork.url ${{ github.event.inputs.provider-url }} --network-id ${{ github.event.inputs.network-id }} --chain.chainId ${{ github.event.inputs.network-id }} | ||
|
||
- name: Deploy framework | ||
run: | | ||
echo "${{ github.event.inputs.environments }}" | sed 's/;/\n/' > .env | ||
npx truffle exec --network ${{ github.event.inputs.network }} ops-scripts/deploy-test-environment.js | ||
working-directory: ${{ env.ethereum-contracts-working-directory }} | ||
|
||
- name: Validate deployment before token upgrade | ||
run: | | ||
npx hardhat run ops-scripts/validate-deployment.ts --network ${{ github.event.inputs.network }} | ||
working-directory: ${{ env.ethereum-contracts-working-directory }} | ||
|
||
- name: Update Super Token Logic for all tokens | ||
run: | | ||
npx truffle exec --network ${{ github.event.inputs.network }} ops-scripts/gov-upgrade-super-token-logic.js : ALL | ||
working-directory: ${{ env.ethereum-contracts-working-directory }} | ||
|
||
- name: Validate deployment post token upgrade | ||
run: | | ||
npx hardhat run ops-scripts/validate-deployment.ts --network ${{ github.event.inputs.network }} | ||
working-directory: ${{ env.ethereum-contracts-working-directory }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
packages/ethereum-contracts/audits/2023-12 Trail of Bits - Changes Since Audit.md
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,13 @@ | ||
# Changes Since ToB 2023 Audit | ||
|
||
Use `git diff 4ece1a3f4aff8b5a9cbf37118d261023960c0f0f.. packages/ethereum-contracts/contracts` to see the changes in the contract code since the audit commit hash. | ||
|
||
## High Level Summary of Changes | ||
|
||
### GeneralDistributionAgreementV1 | ||
- The representation of totalBuffer is modified to ensure proper data fitting in a 256-bit field. | ||
- `realtimeBalanceVectorAt` removed | ||
- `PoolConnectionUpdated` event only emitted if the connection was changed | ||
|
||
### SuperfluidPool | ||
The method for obtaining timestamps and checking member connections is updated to use Superfluid framework methods instead of Ethereum's native functionalities. |
Binary file added
BIN
+684 KB
...thereum-contracts/audits/2023-12 Trail of Bits - Comprehensive Report with Fix Review.pdf
Binary file not shown.
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
Oops, something went wrong.