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

docs: update ARCHITECTURE.md #197

Merged
merged 32 commits into from
Jun 11, 2024
Merged

docs: update ARCHITECTURE.md #197

merged 32 commits into from
Jun 11, 2024

Conversation

DefiCake
Copy link
Member

Closes #167

@DefiCake DefiCake self-assigned this May 30, 2024
Copy link
Contributor

github-actions bot commented May 30, 2024

This PR is published in NPM with version 0.6.0-pr-197-49

@DefiCake DefiCake requested review from luizstacio and a team June 4, 2024 10:07
@DefiCake DefiCake requested a review from BarneyChambers June 4, 2024 15:56
BarneyChambers
BarneyChambers previously approved these changes Jun 5, 2024
Copy link

@BarneyChambers BarneyChambers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from me, the diagrams makes sense and are clear.

Some amendments to consider for future iterations:

  • Some terms could use further explanation to help users with less context on the use-case of the bridge. For example, "sequencers" and "epochs" could be briefly defined.

  • The think this sentence could be elaborated on for more context: The system features sending messages in both directions (L1 to L2, and L2 to L1), though the mechanisms involved for each direction are different and almost independent.

  • It would be nice to add some bullet points in the Message Passing from L1 to L2 portion, to be able to understand the flow a little better, eg:

-- An entity on L1 calls sendMessage on the Message Portal.
-- The sendMessage function emits a MessageSent event.
-- Fuel's sequencers detect the event and include the message in the next L2 block as a UTXO.
-- The L2 block header's inbox reflects the message.

@DefiCake
Copy link
Member Author

DefiCake commented Jun 5, 2024

Added additional context around the raised points

+1 from me, the diagrams makes sense and are clear.

Some amendments to consider for future iterations:

  • Some terms could use further explanation to help users with less context on the use-case of the bridge. For example, "sequencers" and "epochs" could be briefly defined.
  • The think this sentence could be elaborated on for more context: The system features sending messages in both directions (L1 to L2, and L2 to L1), though the mechanisms involved for each direction are different and almost independent.
  • It would be nice to add some bullet points in the Message Passing from L1 to L2 portion, to be able to understand the flow a little better, eg:

-- An entity on L1 calls sendMessage on the Message Portal. -- The sendMessage function emits a MessageSent event. -- Fuel's sequencers detect the event and include the message in the next L2 block as a UTXO. -- The L2 block header's inbox reflects the message.

@K1-R1 K1-R1 requested a review from a team June 5, 2024 15:38
K1-R1
K1-R1 previously approved these changes Jun 5, 2024
Copy link
Member

@K1-R1 K1-R1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some docs nits

docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
DefiCake and others added 5 commits June 5, 2024 19:36
Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
@DefiCake
Copy link
Member Author

DefiCake commented Jun 5, 2024

LGTM, just some docs nits

I will refrain from using apostrophes on written text from here on. I think I have done enough harm already.

BarneyChambers
BarneyChambers previously approved these changes Jun 6, 2024
@DefiCake DefiCake requested review from BarneyChambers and K1-R1 June 6, 2024 13:00
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
participant portal as FuelMessagePortal.sol
end

box darkgreen FUEL

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changing this to lightgreen makes it much easier to read

docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
docs/ARCHITECTURE.md Outdated Show resolved Hide resolved
@DefiCake DefiCake requested a review from BarneyChambers June 7, 2024 10:20
@DefiCake DefiCake merged commit a89e9dc into main Jun 11, 2024
9 checks passed
@DefiCake DefiCake deleted the deficake/167-update-docs branch June 11, 2024 10:29
DefiCake pushed a commit that referenced this pull request Sep 6, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @fuel-bridge/fungible-token@0.6.0

### Minor Changes

- Upgrade all dependencies to fuel-core 0.27, by
[@SwayStar123](https://github.com/SwayStar123) (See
[#201](#201))
- Bump ts-sdk to 0.94.4, by [@DefiCake](https://github.com/DefiCake)
(See [#277](#277))
- remove unused mapping, by [@viraj124](https://github.com/viraj124)
(See [#258](#258))
- Architecture revamp featuring single asset issuer on L2, by
[@DefiCake](https://github.com/DefiCake) (See
[#150](#150))
- Bump all packages to adhere to fuel-core 0.26, forc 0.56, fuel-rs
0.60, fuel-ts 0.85, by [@DefiCake](https://github.com/DefiCake) (See
[#180](#180))
- Update forc to 0.63.3, by [@DefiCake](https://github.com/DefiCake)
(See [#265](#265))
- Upgraded fuel dependencies to fuel-core 0.33, by
[@DefiCake](https://github.com/DefiCake) (See
[#237](#237))
- Implement SRC-7 and SRC-20, by
[@DefiCake](https://github.com/DefiCake) (See
[#240](#240))
- Added upgradability to bridge contracts, by
[@DefiCake](https://github.com/DefiCake) (See
[#164](#164))
- Add typegen for fuel ts sdk and a deploy script for the bridge. Bump
fuel-core to v0.31.0, by [@DefiCake](https://github.com/DefiCake) (See
[#222](#222))
- Upgraded ts-sdk to 0.94.3, by [@DefiCake](https://github.com/DefiCake)
(See [#271](#271))
- Use custom error for relay unknown error reverts, by
[@DefiCake](https://github.com/DefiCake) (See
[#178](#178))
- Update fuel-core to v0.26.0 and all sdk dependencies needed to track
it, by [@DefiCake](https://github.com/DefiCake) (See
[#161](#161))

### Patch Changes

- Update documentation, by [@DefiCake](https://github.com/DefiCake) (See
[#197](#197))
- Use L1 token decimals to determine L2 token decimals, by
[@DefiCake](https://github.com/DefiCake) (See
[#166](#166))
- Add reentrancy unit test for l2 proxy-bridge, by
[@DefiCake](https://github.com/DefiCake) (See
[#221](#221))
- Add comments to Hexens audit. Fix some other in-code commentary, by
[@DefiCake](https://github.com/DefiCake) (See
[#177](#177))
- Remove unused code in L2 bridge, by
[@DefiCake](https://github.com/DefiCake) (See
[#259](#259))
- Removed unused and vulnerable npm dependencies, by
[@DefiCake](https://github.com/DefiCake) (See
[#212](#212))
- Bump forc and ts version, by [@DefiCake](https://github.com/DefiCake)
(See [#162](#162))

## @fuel-bridge/message-predicates@0.6.0

### Minor Changes

- Upgrade all dependencies to fuel-core 0.27, by
[@SwayStar123](https://github.com/SwayStar123) (See
[#201](#201))
- Bump all packages to adhere to fuel-core 0.26, forc 0.56, fuel-rs
0.60, fuel-ts 0.85, by [@DefiCake](https://github.com/DefiCake) (See
[#180](#180))
- Upgraded fuel dependencies to fuel-core 0.33, by
[@DefiCake](https://github.com/DefiCake) (See
[#237](#237))
- Implement SRC-7 and SRC-20, by
[@DefiCake](https://github.com/DefiCake) (See
[#240](#240))
- Added upgradability to bridge contracts, by
[@DefiCake](https://github.com/DefiCake) (See
[#164](#164))
- Update fuel-core to v0.26.0 and all sdk dependencies needed to track
it, by [@DefiCake](https://github.com/DefiCake) (See
[#161](#161))

### Patch Changes

- Update documentation, by [@DefiCake](https://github.com/DefiCake) (See
[#197](#197))
- Removed unused and vulnerable npm dependencies, by
[@DefiCake](https://github.com/DefiCake) (See
[#212](#212))
- Bump forc and ts version, by [@DefiCake](https://github.com/DefiCake)
(See [#162](#162))

## @fuel-bridge/solidity-contracts@0.6.0

### Minor Changes

- add eth rate limiter, by [@viraj124](https://github.com/viraj124) (See
[#228](#228))
- Adds FuelMessagePortalV3 with increased granularity on withdrawals
control, by [@DefiCake](https://github.com/DefiCake) (See
[#148](#148))
- Adapted deployments for a full e2e environment, and minor util
adaptions to anvil quirks, by [@DefiCake](https://github.com/DefiCake)
(See [#229](#229))
- 🐞 fix pnpm audit findings, by
[@PraneshASP](https://github.com/PraneshASP) (See
[#247](#247))
- reset rate limit script, by [@viraj124](https://github.com/viraj124)
(See [#254](#254))
- Added FuelChainState setter to FuelMessagePortalV3, by
[@DefiCake](https://github.com/DefiCake) (See
[#234](#234))
- Deploy devnet and testnet contracts, by
[@DefiCake](https://github.com/DefiCake) (See
[#175](#175))
- 🐞 Fix depositToken naming, by [@DefiCake](https://github.com/DefiCake)
(See [#273](#273))
- 🐞 Fix ECDSA test flakiness, by
[@DefiCake](https://github.com/DefiCake) (See
[#144](#144))
- Add recommit protection in FuelChainState, by
[@DefiCake](https://github.com/DefiCake) (See
[#174](#174))
- remove unused mapping, by [@viraj124](https://github.com/viraj124)
(See [#258](#258))
- Architecture revamp featuring single asset issuer on L2, by
[@DefiCake](https://github.com/DefiCake) (See
[#150](#150))
- Ported @fuel-contracts/merkle-sol utils, by
[@DefiCake](https://github.com/DefiCake) (See
[#196](#196))
- FuelChainState is now configurable in deployment scripts, by
[@DefiCake](https://github.com/DefiCake) (See
[#204](#204))
- erc20 rate limit, by [@viraj124](https://github.com/viraj124) (See
[#239](#239))
- Bump all packages to adhere to fuel-core 0.26, forc 0.56, fuel-rs
0.60, fuel-ts 0.85, by [@DefiCake](https://github.com/DefiCake) (See
[#180](#180))
- add `_disableInitializers()` to FuelMessagePortal V2 and V3, by
[@PraneshASP](https://github.com/PraneshASP) (See
[#248](#248))
- Add relay deposit script, by [@DefiCake](https://github.com/DefiCake)
(See [#266](#266))
- add disable initializer in erc20 v4 gateway, by
[@viraj124](https://github.com/viraj124) (See
[#261](#261))
- Added upgradability to bridge contracts, by
[@DefiCake](https://github.com/DefiCake) (See
[#164](#164))
- Extract CommonPredicates lib into its own file, by
[@DefiCake](https://github.com/DefiCake) (See
[#142](#142))
- Use custom error for relay unknown error reverts, by
[@DefiCake](https://github.com/DefiCake) (See
[#178](#178))
- Update fuel-core to v0.26.0 and all sdk dependencies needed to track
it, by [@DefiCake](https://github.com/DefiCake) (See
[#161](#161))
- Added hardhat scripts, by [@DefiCake](https://github.com/DefiCake)
(See [#190](#190))
- add zero address check for asset issuer id, by
[@viraj124](https://github.com/viraj124) (See
[#250](#250))

### Patch Changes

- Deployment of new devnet, by [@DefiCake](https://github.com/DefiCake)
(See [#157](#157))
- Add deprecation notices and use better folder grouping, by
[@DefiCake](https://github.com/DefiCake) (See
[#171](#171))
- Update documentation, by [@DefiCake](https://github.com/DefiCake) (See
[#197](#197))
- Add nonce to FTI interface, by
[@DefiCake](https://github.com/DefiCake) (See
[#155](#155))
- Deploy new token bridge to devnet, by
[@DefiCake](https://github.com/DefiCake) (See
[#233](#233))
- 🐞 Fix encoding issue on FuelERC20GatewayV4.sendMetadata(), by
[@DefiCake](https://github.com/DefiCake) (See
[#169](#169))
- Add migration files of FuelChainState testnet upgrade - withdrawal
period extension, by [@DefiCake](https://github.com/DefiCake) (See
[#207](#207))
- Use L1 token decimals to determine L2 token decimals, by
[@DefiCake](https://github.com/DefiCake) (See
[#166](#166))
- 🐞 Fix CI on pnpm audit, by [@DefiCake](https://github.com/DefiCake)
(See [#217](#217))
- Add FTI interface, by [@DefiCake](https://github.com/DefiCake) (See
[#151](#151))
- Improve granularity of blacklisting permissions for messages in
FuelMessagePortal, by [@DefiCake](https://github.com/DefiCake) (See
[#168](#168))
- Add comments to Hexens audit. Fix some other in-code commentary, by
[@DefiCake](https://github.com/DefiCake) (See
[#177](#177))
- Added FuelChainState devnet and testnet redeploy artifacts, by
[@DefiCake](https://github.com/DefiCake) (See
[#235](#235))
- Reconfigured testnet and devnet contracts, by
[@DefiCake](https://github.com/DefiCake) (See
[#236](#236))
- Update testnet and devnet contracts, by
[@DefiCake](https://github.com/DefiCake) (See
[#185](#185))
- Removed unused and vulnerable npm dependencies, by
[@DefiCake](https://github.com/DefiCake) (See
[#212](#212))

## @fuel-bridge/test-utils@0.6.0

### Minor Changes

- Improve message relay utils, by
[@DefiCake](https://github.com/DefiCake) (See
[#275](#275))
- Adapted deployments for a full e2e environment, and minor util
adaptions to anvil quirks, by [@DefiCake](https://github.com/DefiCake)
(See [#229](#229))
- Upgrade all dependencies to fuel-core 0.27, by
[@SwayStar123](https://github.com/SwayStar123) (See
[#201](#201))
- Bump ts-sdk to 0.94.4, by [@DefiCake](https://github.com/DefiCake)
(See [#277](#277))
- 🐞 Fix depositToken naming, by [@DefiCake](https://github.com/DefiCake)
(See [#273](#273))
- Architecture revamp featuring single asset issuer on L2, by
[@DefiCake](https://github.com/DefiCake) (See
[#150](#150))
- Bump all packages to adhere to fuel-core 0.26, forc 0.56, fuel-rs
0.60, fuel-ts 0.85, by [@DefiCake](https://github.com/DefiCake) (See
[#180](#180))
- Add relay deposit script, by [@DefiCake](https://github.com/DefiCake)
(See [#266](#266))
- add disable initializer in erc20 v4 gateway, by
[@viraj124](https://github.com/viraj124) (See
[#261](#261))
- Upgraded fuel dependencies to fuel-core 0.33, by
[@DefiCake](https://github.com/DefiCake) (See
[#237](#237))
- Implement SRC-7 and SRC-20, by
[@DefiCake](https://github.com/DefiCake) (See
[#240](#240))
- Added upgradability to bridge contracts, by
[@DefiCake](https://github.com/DefiCake) (See
[#164](#164))
- Add typegen for fuel ts sdk and a deploy script for the bridge. Bump
fuel-core to v0.31.0, by [@DefiCake](https://github.com/DefiCake) (See
[#222](#222))
- Upgraded ts-sdk to 0.94.3, by [@DefiCake](https://github.com/DefiCake)
(See [#271](#271))
- Update fuel-core to v0.26.0 and all sdk dependencies needed to track
it, by [@DefiCake](https://github.com/DefiCake) (See
[#161](#161))

### Patch Changes

- Increase test coverage, by [@DefiCake](https://github.com/DefiCake)
(See [#226](#226))
- Update documentation, by [@DefiCake](https://github.com/DefiCake) (See
[#197](#197))
- Use ZeroBytes32 for witnesses at relayCommonMessage.ts, by
[@DefiCake](https://github.com/DefiCake) (See
[#193](#193))
- 🐞 Fix CI on pnpm audit, by [@DefiCake](https://github.com/DefiCake)
(See [#217](#217))
- Removed unused and vulnerable npm dependencies, by
[@DefiCake](https://github.com/DefiCake) (See
[#212](#212))
- Bump forc and ts version, by [@DefiCake](https://github.com/DefiCake)
(See [#162](#162))

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

(Documentation) Update documentation
4 participants