Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions contracts/contracts/ExampleTxAllowList.sol

This file was deleted.

303 changes: 0 additions & 303 deletions contracts/contracts/test/ExampleTxAllowListTest.sol

This file was deleted.

16 changes: 0 additions & 16 deletions contracts/scripts/deployExampleTxAllowList.ts

This file was deleted.

36 changes: 0 additions & 36 deletions contracts/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,42 +45,6 @@ task("balance", "get the balance")
console.log(`balance: ${balanceInCoin} Coin`)
})

// npx hardhat allowList:readRole --network local --address [address]
task("txAllowList:readRole", "Gets the network transaction allow list")
.addParam("address", "the address you want to know the allowlist role for")
.setAction(async (args, hre) => {
const allowList = await hre.ethers.getContractAt("IAllowList", TX_ALLOW_LIST_ADDRESS)
await getRole(allowList, args.address)
})

// npx hardhat allowList:addDeployer --network local --address [address]
task("txAllowList:addDeployer", "Adds an address to the transaction allow list")
.addParam("address", "the address you want to add as a deployer")
.setAction(async (args, hre) => {
const allowList = await hre.ethers.getContractAt("IAllowList", TX_ALLOW_LIST_ADDRESS)
// ADD CODE BELOW
await allowList.setEnabled(args.address)
await getRole(allowList, args.address)
})

// npx hardhat allowList:addAdmin --network local --address [address]
task("txAllowList:addAdmin", "Adds an admin on the transaction allow list")
.addParam("address", "the address you want to add as a admin")
.setAction(async (args, hre) => {
const allowList = await hre.ethers.getContractAt("IAllowList", TX_ALLOW_LIST_ADDRESS)
await allowList.setAdmin(args.address)
await getRole(allowList, args.address)
})

// npx hardhat allowList:revoke --network local --address [address]
task("txAllowList:revoke", "Removes the address from the transaction allow list")
.addParam("address", "the address you want to revoke all permission")
.setAction(async (args, hre) => {
const allowList = await hre.ethers.getContractAt("IAllowList", TX_ALLOW_LIST_ADDRESS)
await allowList.setNone(args.address)
await getRole(allowList, args.address)
})

// npx hardhat rewardManager:currentRewardAddress --network local
task("rewardManager:currentRewardAddress", "Gets the current configured rewarding address")
.setAction(async (_, hre) => {
Expand Down
Loading
Loading