Skip to content

Commit

Permalink
Merge branch 'main' into chore/make-versions-a-mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
blockchainguyy authored Jan 24, 2025
2 parents 3e8ede3 + d7e8dee commit 278ff07
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test-evm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ jobs:
- name: InterchainTokenFactory register custom token
run: node evm/interchainTokenFactory.js --action registerCustomToken --tokenAddress 0x49c06259B42540a025A73a32eF2Fd183c0FDB1D2 --tokenManagerType 4 --operator 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --salt "salt" -y

- name: Transfer mintership of token to token manager
run: node evm/its.js --action transferMintership --tokenAddress 0x49c06259B42540a025A73a32eF2Fd183c0FDB1D2 --minter 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -y

- name: InterchainTokenFactory link token
run: node evm/interchainTokenFactory.js --action linkToken --destinationChain remote --destinationTokenAddress "0x1234" --tokenManagerType 4 --linkParams "0x5678" --salt "salt" -y

Expand Down
15 changes: 15 additions & 0 deletions evm/its.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const {
} = require('./utils');
const { getWallet } = require('./sign-utils');
const IInterchainTokenService = getContractJSON('IInterchainTokenService');
const IMinter = getContractJSON('IMinter');
const InterchainTokenService = getContractJSON('InterchainTokenService');
const InterchainTokenFactory = getContractJSON('InterchainTokenFactory');
const IInterchainTokenDeployer = getContractJSON('IInterchainTokenDeployer');
Expand Down Expand Up @@ -620,6 +621,19 @@ async function processCommand(config, chain, options) {
break;
}

case 'transferMintership': {
const { tokenAddress, minter } = options;

validateParameters({ isValidAddress: { tokenAddress, minter } });

const token = new Contract(tokenAddress, IMinter.abi, wallet);
const tx = await token.transferMintership(minter);

await handleTx(tx, chain, token, options.action, 'RolesRemoved', 'RolesAdded');

break;
}

default: {
throw new Error(`Unknown action ${action}`);
}
Expand Down Expand Up @@ -662,6 +676,7 @@ if (require.main === module) {
'checks',
'migrateInterchainToken',
'registerTokenMetadata',
'transferMintership',
])
.makeOptionMandatory(true),
);
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@axelar-network/axelar-cgp-solidity": "6.4.0",
"@axelar-network/axelar-cgp-sui": "1.0.3",
"@axelar-network/axelar-gmp-sdk-solidity": "6.0.4",
"@axelar-network/interchain-token-service": "0.0.0-snapshot.d61ef1b",
"@axelar-network/interchain-token-service": "2.1.0",
"@cosmjs/cosmwasm-stargate": "^0.32.1",
"@ledgerhq/hw-app-eth": "6.32.2",
"@mysten/ledgerjs-hw-app-sui": "^0.4.1",
Expand Down

0 comments on commit 278ff07

Please sign in to comment.