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

Script: map anima token and refactor factory scripts #49

Merged
merged 15 commits into from
Jul 24, 2024

Conversation

tringuyenskymavis
Copy link
Collaborator

@tringuyenskymavis tringuyenskymavis commented Jul 1, 2024

Description

This PR adds map anima token scripts and refactors factory scripts

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

Copy link
Contributor

@nxqbao nxqbao left a comment

Choose a reason for hiding this comment

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

minor fix then merge

function run() public virtual;
function _initCaller() internal virtual returns (address);
function _initTokenList() internal virtual returns (uint256 totalToken, MapTokenInfo[] memory infos);

function _proposeAndExecute(Proposal.ProposalDetail memory proposal) internal {
proposal.executor = _governors[0];
function _propose(Proposal.ProposalDetail memory proposal) internal virtual {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
function _propose(Proposal.ProposalDetail memory proposal) internal virtual {
function _propose(Proposal.ProposalDetail memory proposal) internal {

);
}

function _proposeAndExecuteProposal(Proposal.ProposalDetail memory proposal) internal {
Copy link
Contributor

Choose a reason for hiding this comment

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

bring to upper

_governorPKs.push(governorsPksM[i]);
for (uint256 i; i < mGovernors.length; ++i) {
_governors.push(mGovernors[i]);
_governorPKs.push(mGovernorsPk[i]);
Copy link
Contributor

Choose a reason for hiding this comment

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

create another PR to avoid load private keys

@tringuyenskymavis tringuyenskymavis merged commit 2449f18 into testnet Jul 24, 2024
1 check failed
@tringuyenskymavis tringuyenskymavis deleted the script/map-anima-token-testnet branch July 24, 2024 11:10
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