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: script to manage ownership #34

Merged
merged 5 commits into from
Aug 29, 2023
Merged

feat: script to manage ownership #34

merged 5 commits into from
Aug 29, 2023

Conversation

deanamiel
Copy link
Contributor

Script to manage ownership for all contracts that inherit the SDK Ownable.sol as per AXE-1594:
https://axelarnetwork.atlassian.net/browse/AXE-1594

evm/ownership.js Outdated Show resolved Hide resolved
evm/ownership.js Outdated Show resolved Hide resolved
evm/ownership.js Outdated Show resolved Hide resolved
evm/ownership.js Outdated Show resolved Hide resolved
evm/ownership.js Outdated Show resolved Hide resolved
evm/ownership.js Show resolved Hide resolved
evm/ownership.js Outdated Show resolved Hide resolved
evm/ownership.js Outdated Show resolved Hide resolved
@blockchainguyy
Copy link
Contributor

https://github.com/axelarnetwork/axelar-gmp-sdk-solidity/blob/main/contracts/interfaces/IOwnable.sol

This interface implements both:

  • transfer ownership in a single tx
  • 2 step transfer: Propose and accept

Why have we implemented both options?

@deanamiel
Copy link
Contributor Author

https://github.com/axelarnetwork/axelar-gmp-sdk-solidity/blob/main/contracts/interfaces/IOwnable.sol

This interface implements both:

  • transfer ownership in a single tx
  • 2 step transfer: Propose and accept

Why have we implemented both options?

My understanding is that it provides more flexibility. There may be some circumstances where we want to perform a single step ownership transfer, but other instances where it would be more secure to perform a 2-step transfer where the proposed owner has to accept the ownership role. Not only for us, but also for developers using our SDK.

@milapsheth milapsheth merged commit cda4039 into main Aug 29, 2023
@milapsheth milapsheth deleted the feat/ownership-script branch August 29, 2023 07:35
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.

3 participants