Skip to content

Commit

Permalink
Deploy token on testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
SigismundSchlomo committed Oct 11, 2024
1 parent aeffdb8 commit d52044b
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 2 deletions.
72 changes: 72 additions & 0 deletions deployments/22040.json
Original file line number Diff line number Diff line change
Expand Up @@ -1716,5 +1716,77 @@
],
"deployTx": "0x1c7a3ff3e00b95e2e01212a0078613ee807a28591b9a2024060e6c6d68fadfe9",
"fullyQualifiedName": "contracts/staking/token/HBRToken.sol:HBRToken"
},
"Ecosystem_LimitedTokenPoolsManager_Multisig": {
"address": "0x40d0634d0D34f8da1D8A68010EBEFEE63cB2324d",
"abi": [
"constructor(address[] _signers, bool[] isInitiatorFlags, uint256 _threshold, address owner)",
"event Confirmation(address indexed sender, uint256 indexed txId)",
"event Execution(uint256 indexed txId)",
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
"event Revocation(address indexed sender, uint256 indexed txId)",
"event SignerAddition(address indexed signer, bool isInitiator)",
"event SignerRemoval(address indexed signer)",
"event Submission(uint256 indexed txId)",
"event ThresholdChange(uint256 required)",
"function changeSigners(address[] signersToRemove, address[] signersToAdd, bool[] isInitiatorFlags)",
"function changeThreshold(uint256 _threshold)",
"function checkBeforeSubmitTransaction(address destination, uint256 value, bytes data) payable",
"function confirmTransaction(uint256 txId)",
"function confirmations(uint256, address) view returns (bool)",
"function getConfirmations(uint256 txId) view returns (address[])",
"function getInitiatorsCount() view returns (uint256)",
"function getRequiredSignersCount() view returns (uint256)",
"function getSigners() view returns (address[], bool[])",
"function getTransactionData(uint256 txId) view returns (tuple(address destination, uint256 value, bytes data, bool executed), address[])",
"function getTransactionIds(uint256 from, uint256 to, bool pending, bool executed) view returns (uint256[] result)",
"function isConfirmed(uint256 txId) view returns (bool)",
"function isInitiator(address) view returns (bool)",
"function isSigner(address) view returns (bool)",
"function owner() view returns (address)",
"function renounceOwnership()",
"function revokeConfirmation(uint256 txId)",
"function signers(uint256) view returns (address)",
"function submitTransaction(address destination, uint256 value, bytes data) payable returns (uint256 txId)",
"function threshold() view returns (uint256)",
"function transactionCount() view returns (uint256)",
"function transactions(uint256) view returns (address destination, uint256 value, bytes data, bool executed)",
"function transferOwnership(address newOwner)",
"function withdraw(address to, uint256 amount)"
],
"deployTx": "0x26d52d9719cdc18b9e934b03c4b998dd528a8320acd010560892582c10793959",
"fullyQualifiedName": "contracts/multisig/Multisig.sol:Multisig"
},
"Ecosystem_HBRToken": {
"address": "0x7B58Cbb7c4Ff2E53F8c4405606D0A7AF707ab00b",
"abi": [
"constructor(address admin)",
"event Approval(address indexed owner, address indexed spender, uint256 value)",
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
"event Paused(address account)",
"event Transfer(address indexed from, address indexed to, uint256 value)",
"event Unpaused(address account)",
"function allowance(address owner, address spender) view returns (uint256)",
"function approve(address spender, uint256 amount) returns (bool)",
"function balanceOf(address account) view returns (uint256)",
"function burn(address account, uint256 amount)",
"function decimals() view returns (uint8)",
"function decreaseAllowance(address spender, uint256 subtractedValue) returns (bool)",
"function increaseAllowance(address spender, uint256 addedValue) returns (bool)",
"function mint(address account, uint256 amount)",
"function name() view returns (string)",
"function owner() view returns (address)",
"function pause()",
"function paused() view returns (bool)",
"function renounceOwnership()",
"function symbol() view returns (string)",
"function totalSupply() view returns (uint256)",
"function transfer(address to, uint256 amount) returns (bool)",
"function transferFrom(address from, address to, uint256 amount) returns (bool)",
"function transferOwnership(address newOwner)",
"function unpause()"
],
"deployTx": "0x29bc4a78e3c19ca922cfc90d4346815b146ec271c41b95b7334d0050d7b3081d",
"fullyQualifiedName": "contracts/staking/token/HBRToken.sol:HBRToken"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"deploy_astradex_fee_collector": "hardhat run scripts/ecosystem/astradex/deployFeeCollector.ts --network dev",
"deploy_government": "hardhat run scripts/ecosystem/government/deploy.ts --network dev",
"deploy_liquid_staking": "hardhat run scripts/ecosystem/liquid_staking/deploy.ts --network dev",
"deploy_limited_token_staking_multisig": "hardhat run scripts/multisig/deploy_multisig.ts --network dev",
"deploy_limited_token_staking": "hardhat run scripts/ecosystem/token_staking/deploy_limited_manager.ts --network dev",
"deploy_token_staking": "hardhat run scripts/ecosystem/token_staking/deploy_token_manager.ts --network dev",
"deploy_hbr_token": "hardhat run scripts/ecosystem/token_staking/deploy_hbr.ts --network dev",
"create_hbr_amb_pool": "hardhat run scripts/ecosystem/token_staking/create_hbr_amb.ts --network dev",

"sourcify:dev": "hardhat sourcify --network dev",
"sourcify:test": "hardhat sourcify --network test",
Expand Down
2 changes: 1 addition & 1 deletion scripts/ecosystem/token_staking/deploy_hbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function main() {
loadIfAlreadyDeployed: true,
});

console.log("Granting roles to multisig (mainnet only)");
console.log("Transfering ownership of HBR token to multisig...");
const multisig = await deployMultisig(ContractNames.Ecosystem_LimitedTokenPoolsManagerMultisig, deployer);
await token.transferOwnership(multisig.address);
}
Expand Down

0 comments on commit d52044b

Please sign in to comment.