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(*): reduce gas by clone operators to MainchainGateway #6

Merged
merged 29 commits into from
Mar 25, 2024

Conversation

nxqbao
Copy link
Contributor

@nxqbao nxqbao commented Mar 6, 2024

Description

  • Clone operators to MainchainGateway
  • Rework the custom slot

Checklist

  • I have clearly commented on all the main functions following the NatSpec Format
  • The box that allows repo maintainers to update this PR is checked
  • I tested locally to make sure this feature/fix works

@nxqbao nxqbao mentioned this pull request Mar 6, 2024
3 tasks
@nxqbao nxqbao changed the title feat: reduce gas feat: reduce gas by clone operators to MainchainGateway Mar 6, 2024
@nxqbao nxqbao marked this pull request as ready for review March 6, 2024 08:22
@nxqbao nxqbao changed the title feat: reduce gas by clone operators to MainchainGateway feat(*): reduce gas by clone operators to MainchainGateway Mar 7, 2024
src/mainchain/MainchainGatewayV3.sol Show resolved Hide resolved
///////////////////////////////////////////////
// CALLBACKS
///////////////////////////////////////////////

Choose a reason for hiding this comment

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

Do we need to implement supportsInterface?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the supportsInterface, but cannot use this interface to generalize in the callee, where calls to multiple registers simultaneously.

src/mainchain/MainchainGatewayV3.sol Outdated Show resolved Hide resolved
src/mainchain/MainchainGatewayV3.sol Outdated Show resolved Hide resolved
@nxqbao nxqbao merged commit f91962c into release/v3.1.0 Mar 25, 2024
@nxqbao nxqbao deleted the feat/reduce-gas-rework branch March 25, 2024 03:32
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