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

Feat/TokenBridge implementation (#240) #242

Merged
merged 2 commits into from
Sep 18, 2024
Merged

Feat/TokenBridge implementation (#240) #242

merged 2 commits into from
Sep 18, 2024

Conversation

0xinsi
Copy link
Collaborator

@0xinsi 0xinsi commented Sep 9, 2024

  • 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


giovannifranchi and others added 2 commits September 9, 2024 16:22
* 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]>
@0xinsi 0xinsi merged commit 1dddeb3 into v0.1.0 Sep 18, 2024
2 checks passed
@0xinsi 0xinsi deleted the proxy-main branch September 18, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants