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

Near-plugins integration #178

Merged
merged 37 commits into from
Oct 5, 2023
Merged

Near-plugins integration #178

merged 37 commits into from
Oct 5, 2023

Conversation

karim-en
Copy link
Collaborator

@karim-en karim-en commented Nov 4, 2022

Integrate near plugins to the bridge token factory and ft token locker.

Details:

  • The near plugins weren't integrated into the bridge token because they are fully controlled by the factory contract.
  • Added upgrade_bridge_token(&self, address: String) to upgrade the bridge token from the factory.
  • Added set_paused_withdraw(&mut self, address: String, paused: bool) to pause the token from the factory.
  • Added upgrade_and_migrate to the bridge token contract, which applies the upgrade and calls migrate(from_version: u32) where the from_version is passed as an argument to be able to migrate from version A to C if the upgrade to B was missed by mistake.

@karim-en karim-en marked this pull request as ready for review November 8, 2022 03:05
@karim-en karim-en requested a review from sept-en as a code owner November 8, 2022 03:05
@sept-en sept-en requested a review from olga24912 November 18, 2022 13:35
@sept-en sept-en requested a review from olga24912 March 27, 2023 12:37
Copy link

@UrAvgDeveloper UrAvgDeveloper left a comment

Choose a reason for hiding this comment

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

Can we add access control plugin in bridge token contract as well? this way we don't need admin-controlled as well maybe and can configure access according to functions

@karim-en karim-en requested a review from olga24912 October 2, 2023 21:27
@karim-en karim-en merged commit 59f5fbe into master Oct 5, 2023
@karim-en karim-en deleted the add-near-plugins branch October 5, 2023 13:48
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.

4 participants