-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feat/TokenBridge implementation (#240) #242
Merged
Merged
Conversation
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
* feat: main implementation, scripts & tests * Add: address(this) as minter in scripts * Add tests and fix scripts * scripts working * Fix: distributionFractionBP 0 check * Add zero check in setDistributionFractionBP * Fix: general styling * Fix: Styling completely fixed * refactor: tests * Feat: execute test working * Add: security check and last tests * Add: secrets * remove secrets * Add: .gitignore * Fix: CI file * new CI * new trial * newer trial * Remove temp file * Fix: CI * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Fix: natspec * Add: test for distribution fraction BP * fix: editor formatter * Fix: execute test * Fix: repristinate original CI * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/bridgeToken.t.sol Co-authored-by: 0xinsi <[email protected]> * Add: execute comment * Fix: add return value names * Update test/facets/Token/behaviors/bridgeToken.t.sol Co-authored-by: 0xinsi <[email protected]> * Rename: getDestinationAddress * Remove: payable comment * Fix:deploy script * Remove: error from tests * Fix: add constant for bridge amount * Add: Test with expect call to bridgeToken function * Fix: tests styling * Fix: semantic styling in tests * Add: test to setup in bridgeToken * Add: supported addresses length * Refactor: batchEnables and tests * Add: all tests for new functions * Fix: executable inherited from external contract * Fix: mint entire amount when bridging * Fix: _execute style * Fix: CI forge coverage * Update contracts/facets/Token/ITokenBridge.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/ITokenBridge.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/ITokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Add: params in natspec for events * Fix: make uint8 more explicit * Fix: make immutable capital * Fix: move utility function at the bottom of the file * Fix: modify natspec related to address length enabling * Update test/facets/Token/behaviors/batchDisableAddressLength.t.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/getDestinationAddress.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/execute.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/execute.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/execute.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/execute.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/bridgeToken.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/batchDisableAddressLength.t.sol Co-authored-by: 0xinsi <[email protected]> * Fix: revert style * fix: style revert * Fix: typos * Fix: token bridge natspec * Fix: token script after deployment * Add: basic asserts after setup --------- Co-authored-by: 0xinsi <[email protected]>
* feat: main implementation, scripts & tests * Add: address(this) as minter in scripts * Add tests and fix scripts * scripts working * Fix: distributionFractionBP 0 check * Add zero check in setDistributionFractionBP * Fix: general styling * Fix: Styling completely fixed * refactor: tests * Feat: execute test working * Add: security check and last tests * Add: secrets * remove secrets * Add: .gitignore * Fix: CI file * new CI * new trial * newer trial * Remove temp file * Fix: CI * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Fix: natspec * Add: test for distribution fraction BP * fix: editor formatter * Fix: execute test * Fix: repristinate original CI * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/bridgeToken.t.sol Co-authored-by: 0xinsi <[email protected]> * Add: execute comment * Fix: add return value names * Update test/facets/Token/behaviors/bridgeToken.t.sol Co-authored-by: 0xinsi <[email protected]> * Rename: getDestinationAddress * Remove: payable comment * Fix:deploy script * Remove: error from tests * Fix: add constant for bridge amount * Add: Test with expect call to bridgeToken function * Fix: tests styling * Fix: semantic styling in tests * Add: test to setup in bridgeToken * Add: supported addresses length * Refactor: batchEnables and tests * Add: all tests for new functions * Fix: executable inherited from external contract * Fix: mint entire amount when bridging * Fix: _execute style * Fix: CI forge coverage * Update contracts/facets/Token/ITokenBridge.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/ITokenBridge.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/ITokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Add: params in natspec for events * Fix: make uint8 more explicit * Fix: make immutable capital * Fix: move utility function at the bottom of the file * Fix: modify natspec related to address length enabling * Update test/facets/Token/behaviors/batchDisableAddressLength.t.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Update contracts/facets/Token/TokenBridgeInternal.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/getDestinationAddress.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/execute.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/execute.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/execute.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/execute.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/bridgeToken.t.sol Co-authored-by: 0xinsi <[email protected]> * Update test/facets/Token/behaviors/batchDisableAddressLength.t.sol Co-authored-by: 0xinsi <[email protected]> * Fix: revert style * fix: style revert * Fix: typos * Fix: token bridge natspec * Fix: token script after deployment * Add: basic asserts after setup * Add: upgrade scripts * Fix: arb bash * Fix: scripts and bash --------- Co-authored-by: 0xinsi <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: main implementation, scripts & tests
Add: address(this) as minter in scripts
Add tests and fix scripts
scripts working
Fix: distributionFractionBP 0 check
Add zero check in setDistributionFractionBP
Fix: general styling
Fix: Styling completely fixed
refactor: tests
Feat: execute test working
Add: security check and last tests
Add: secrets
remove secrets
Add: .gitignore
Fix: CI file
new CI
new trial
newer trial
Remove temp file
Fix: CI
Update contracts/facets/Token/TokenBridgeInternal.sol
Fix: natspec
Add: test for distribution fraction BP
fix: editor formatter
Fix: execute test
Fix: repristinate original CI
Update contracts/facets/Token/TokenBridgeInternal.sol
Update contracts/facets/Token/TokenBridgeInternal.sol
Update test/facets/Token/behaviors/bridgeToken.t.sol
Add: execute comment
Fix: add return value names
Update test/facets/Token/behaviors/bridgeToken.t.sol
Rename: getDestinationAddress
Remove: payable comment
Fix:deploy script
Remove: error from tests
Fix: add constant for bridge amount
Add: Test with expect call to bridgeToken function
Fix: tests styling
Fix: semantic styling in tests
Add: test to setup in bridgeToken
Add: supported addresses length
Refactor: batchEnables and tests
Add: all tests for new functions
Fix: executable inherited from external contract
Fix: mint entire amount when bridging
Fix: _execute style
Fix: CI forge coverage
Update contracts/facets/Token/ITokenBridge.sol
Update contracts/facets/Token/ITokenBridge.sol
Update contracts/facets/Token/ITokenBridgeInternal.sol
Add: params in natspec for events
Fix: make uint8 more explicit
Fix: make immutable capital
Fix: move utility function at the bottom of the file
Fix: modify natspec related to address length enabling
Update test/facets/Token/behaviors/batchDisableAddressLength.t.sol
Update contracts/facets/Token/TokenBridgeInternal.sol
Update contracts/facets/Token/TokenBridgeInternal.sol
Update test/facets/Token/behaviors/getDestinationAddress.t.sol
Update test/facets/Token/behaviors/execute.t.sol
Update test/facets/Token/behaviors/execute.t.sol
Update test/facets/Token/behaviors/execute.t.sol
Update test/facets/Token/behaviors/execute.t.sol
Update test/facets/Token/behaviors/bridgeToken.t.sol
Update test/facets/Token/behaviors/batchDisableAddressLength.t.sol
Fix: revert style
fix: style revert
Fix: typos
Fix: token bridge natspec
Fix: token script after deployment
Add: basic asserts after setup