MultiDomainBounties API
Complete API reference for the MultiDomainBounties contract
Write Methods
addAdmin
Contract method
function addAdmin(address newAdmin) external
addRewardTokens
Contract method
function addRewardTokens(uint256 amount) external
cancelBounty
Contract method
function cancelBounty(string domainName, uint256 bountyId) external
claimAllRewards
Contract method
function claimAllRewards() external
claimRewards
Contract method
function claimRewards(string domainName, uint256 bountyId) external
completeBounty
Contract method
function completeBounty(string domainName, uint256 bountyId, address winner) external
createBounty
Create a new bounty in a domain
function createBounty(string domainName, address token, uint256 amount, uint256 deadline, string title, string description) payable external returns (uint256)
emergencyWithdraw
Contract method
function emergencyWithdraw() external
initialize
Contract method
function initialize(address admin, address _bountyData, address _fundAgentV4, address _adaoToken, uint256 _submissionReward, uint256 _bountyWinnerReward) external
removeAdmin
Contract method
function removeAdmin(address admin) external
renounceOwnership
Contract method
function renounceOwnership() external
setBountyData
Contract method
function setBountyData(address _bountyData) external
setFundAgent
Contract method
function setFundAgent(address _fundAgentV4) external
submitWork
Submit work for a bounty
function submitWork(string domainName, uint256 bountyId, string submission) external
transferOwnership
Contract method
function transferOwnership(address newOwner) external
updateRewardConfig
Contract method
function updateRewardConfig(uint256 _submissionReward, uint256 _bountyWinnerReward) external