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

update: separated plug from gaugedUniERC20 #12

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

shreykeny
Copy link
Contributor

Changes

  • Created MultiGaugeUniERC20, ConnectionPlug & MultiGauge

MultiGaugeUniERC20

  • Removed PlugBase from MultiGaugeUniERC20
  • uniTransfer : Instead of calling Socket outbound directly, MultiGaugeERC20 calls a specific ConnectionPlug contract which is connected to a specific switchboard.
  • uniReceive called by respective ConnectionPlug to mint tokens instead of Socket directly

ConnectionPlug

  • Each MultiGaugeUniERC20 will have multiple ConnectionPlug, each configured to desired switchboard
  • MultiGaugeUniERC20 calls connection plug to send burn message to destinationChain via configured outboundSwitchboard
  • ConnectionPlug calls receiveInbound to mint tokens on destinationChain via configured inboundSwitchboard

MultiGauge

  • Changed mapping from mapping(uint32 => Limits) public bridgeLimits to mapping(address => Limits) public bridgeLimits
  • Changed _siblingChainSlug to _bridgeType for all methods

@shreykeny shreykeny requested a review from vaibhavchellani July 3, 2023 11:43
Base automatically changed from update/uniERC20 to main September 14, 2023 08:15
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