Interface Network_v2Methods
Methods
cancelBounty
- cancelBounty(id: number): ContractSendMethod
Parameters
Returns ContractSendMethod
cancelFundRequest
- cancelFundRequest(id: number): ContractSendMethod
Parameters
Returns ContractSendMethod
cancelPullRequest
- cancelPullRequest(ofBounty: number, prId: number): ContractSendMethod
Parameters
ofBounty: number
prId: number
Returns ContractSendMethod
changeNetworkParameter
- changeNetworkParameter(_parameter: number, _value: string | number): ContractSendMethod
Parameters
_parameter: number
_value: string | number
Returns ContractSendMethod
claimGovernor
- claimGovernor(): ContractSendMethod
Returns ContractSendMethod
closeBounty
- closeBounty(id: number, proposalId: number, ipfsUri: string): ContractSendMethod
Parameters
id: number
proposalId: number
ipfsUri: string
Returns ContractSendMethod
createBountyProposal
- createBountyProposal(id: number, prId: number, recipients: string[], percentages: number[]): ContractSendMethod
Parameters
id: number
prId: number
recipients: string[]
percentages: number[]
Returns ContractSendMethod
createPullRequest
- createPullRequest(forBountyId: number, originRepo: string, originBranch: string, originCID: string, userRepo: string, userBranch: string, cid: number): ContractSendMethod
Parameters
forBountyId: number
originRepo: string
originBranch: string
originCID: string
userRepo: string
userBranch: string
cid: number
Returns ContractSendMethod
delegateOracles
- delegateOracles(amount: string | number, toAddress: string): ContractSendMethod
Parameters
amount: string | number
toAddress: string
Returns ContractSendMethod
disputeBountyProposal
- disputeBountyProposal(bountyId: number, proposalId: number): ContractSendMethod
Parameters
bountyId: number
proposalId: number
Returns ContractSendMethod
disputes
- disputes(address: string, bountyAndProposalIds: string): ContractCallMethod<number>
- disputes(address: string, bountyId: string | number, proposalId: string | number): ContractCallMethod<number>
Parameters
address: string
bountyAndProposalIds: string
Parameters
address: string
bountyId: string | number
proposalId: string | number
fundBounty
- fundBounty(id: number, fundingAmount: string | number): ContractSendMethod
Parameters
id: number
fundingAmount: string | number
Returns ContractSendMethod
getBounty
- getBounty(id: number): ContractCallMethod<{ branch: string; canceled: boolean; cid: string; closed: boolean; closedDate: number; creationDate: number; creator: string; funded: boolean; funding: { amount: number; benefactor: string; creationDate: number }[]; fundingAmount: number; githubUser: string; id: number; proposals: { creationDate: number; creator: string; details: { percentage: number; recipient: string }[]; disputeWeight: number; id: number; oracles: number; prId: number; refusedByBountyOwner: boolean }[]; pullRequests: { canceled: boolean; cid: number; creator: string; id: number; originBranch: string; originCID: string; originRepo: string; ready: boolean; userBranch: string; userRepo: string }[]; repoPath: string; rewardAmount: number; rewardToken: string; title: string; tokenAmount: number; transactional: string }>
Parameters
Returns ContractCallMethod<{ branch: string; canceled: boolean; cid: string; closed: boolean; closedDate: number; creationDate: number; creator: string; funded: boolean; funding: { amount: number; benefactor: string; creationDate: number }[]; fundingAmount: number; githubUser: string; id: number; proposals: { creationDate: number; creator: string; details: { percentage: number; recipient: string }[]; disputeWeight: number; id: number; oracles: number; prId: number; refusedByBountyOwner: boolean }[]; pullRequests: { canceled: boolean; cid: number; creator: string; id: number; originBranch: string; originCID: string; originRepo: string; ready: boolean; userBranch: string; userRepo: string }[]; repoPath: string; rewardAmount: number; rewardToken: string; title: string; tokenAmount: number; transactional: string }>
getDelegationsFor
- getDelegationsFor(_address: string): ContractCallMethod<{ amount: number; from: string; id: number; to: string }[]>
Parameters
Returns ContractCallMethod<{ amount: number; from: string; id: number; to: string }[]>
hardCancel
- hardCancel(id: number): ContractSendMethod
Parameters
Returns ContractSendMethod
manageOracles
- manageOracles(lock: boolean, amount: string | number): ContractSendMethod
Parameters
lock: boolean
amount: string | number
Returns ContractSendMethod
markPullRequestReadyForReview
- markPullRequestReadyForReview(bountyId: number, pullRequestId: number): ContractSendMethod
Parameters
bountyId: number
pullRequestId: number
Returns ContractSendMethod
openBounty
- openBounty(tokenAmount: string | number, transactional: string, rewardToken: string, rewardAmount: string | number, fundingAmount: string | number, cid: string, title: string, repoPath: string, branch: string, githubUser: string): ContractSendMethod
Parameters
tokenAmount: string | number
transactional: string
rewardToken: string
rewardAmount: string | number
fundingAmount: string | number
cid: string
title: string
repoPath: string
branch: string
githubUser: string
Returns ContractSendMethod
oracles
- oracles(v1: string): ContractCallMethod<{ byOthers: number; locked: number; toOthers: number }>
Parameters
Returns ContractCallMethod<{ byOthers: number; locked: number; toOthers: number }>
percentageNeededForDispute
proposeGovernor
- proposeGovernor(proposedGovernor: string): ContractSendMethod
Parameters
Returns ContractSendMethod
refuseBountyProposal
- refuseBountyProposal(bountyId: number, proposalId: number): ContractSendMethod
Parameters
bountyId: number
proposalId: number
Returns ContractSendMethod
retractFunds
- retractFunds(id: number, fundingId: number): ContractSendMethod
Parameters
id: number
fundingId: number
Returns ContractSendMethod
takeBackOracles
- takeBackOracles(entryId: number): ContractSendMethod
Parameters
Returns ContractSendMethod
updateBountyAmount
- updateBountyAmount(id: number, newTokenAmount: string | number): ContractSendMethod
Parameters
id: number
newTokenAmount: string | number
Returns ContractSendMethod
updateTresuryAddress
- updateTresuryAddress(_address: string): ContractSendMethod
Parameters
Returns ContractSendMethod
withdrawFundingReward
- withdrawFundingReward(id: number, fundingId: number): ContractSendMethod
Parameters
id: number
fundingId: number
Returns ContractSendMethod