-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from Params10/master
Added hardhat-deploy support and updated few packages.
- Loading branch information
Showing
17 changed files
with
10,471 additions
and
5,958 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#for deployment | ||
PRIVATE_KEY_GOVERNOR=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 | ||
PRIVATE_KEY_REQUESTER=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 | ||
|
||
#for deployment + testing add these keys as well | ||
PRIVATE_KEY_CHALLENGER=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 | ||
PRIVATE_KEY_GOVERNOR2=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 | ||
PRIVATE_KEY_OTHER=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 | ||
PRIVATE_KEY_DEPLOYER=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 | ||
|
||
#for verification of contracts | ||
ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 | ||
INFURA_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 | ||
|
||
#For polygon add | ||
POLYGONSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
module.exports = async ({ getNamedAccounts, deployments }) => { | ||
const { deploy } = deployments; | ||
const { deployer, governor } = await getNamedAccounts(); | ||
const arbitratorExtraData = "0x85"; | ||
const arbitrationCost = 1000; | ||
const appealTimeOut = 180; | ||
|
||
// the following will deploy "EnhancedAppealableArbitrator" if the contract was never deployed or if the code changed since last deployment | ||
const EnhancedArbitrator = await deploy("EnhancedAppealableArbitrator", { | ||
from: governor, | ||
args: [arbitrationCost, governor, arbitratorExtraData, appealTimeOut], | ||
}); | ||
console.log(EnhancedArbitrator.address, "EnhancedAppealableArbitrator"); | ||
const GTCRFactory = await deploy("GTCRFactory", { | ||
from: deployer, | ||
args: [], | ||
}); | ||
|
||
console.log(GTCRFactory.address, "GTCRFactory address"); | ||
const LGTCR = await deploy("LightGeneralizedTCR", { | ||
from: deployer, | ||
args: [], | ||
}); | ||
console.log(LGTCR.address, "address of LGTCR"); | ||
const LGTCRFactory = await deploy("LightGTCRFactory", { | ||
from: deployer, | ||
args: [LGTCR.address], | ||
}); | ||
const RelayMock = await deploy("RelayMock", { | ||
from: governor, | ||
args: [], | ||
}); | ||
console.log(RelayMock.address, "address of RelayMock"); | ||
console.log(LGTCRFactory.address, "address of LGTCR factory"); | ||
const LightGeneralizedTCRView = await deploy("LightGeneralizedTCRView", { | ||
from: governor, | ||
args: [], | ||
}); | ||
console.log(LightGeneralizedTCRView.address, "address of LightGeneralizedTCRView"); | ||
|
||
const GeneralizedTCRView = await deploy("GeneralizedTCRView", { | ||
from: governor, | ||
args: [], | ||
}); | ||
console.log(GeneralizedTCRView.address, "address of GeneralizedTCRView"); | ||
|
||
const BatchWithdraw = await deploy("BatchWithdraw", { | ||
from: governor, | ||
args: [], | ||
}); | ||
console.log(BatchWithdraw.address, "address of BatchWithdraw"); | ||
const LBatchWithdraw = await deploy("LightBatchWithdraw", { | ||
from: governor, | ||
args: [], | ||
}); | ||
console.log(LBatchWithdraw.address, "address of LightBatchWithdraw"); | ||
}; | ||
module.exports.tags = ["gtcrContracts"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"address": "0x38aA214Dc986d0bAB53E5861071f3d5a56066b4D", | ||
"abi": [ | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_address", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address payable", | ||
"name": "_contributor", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_itemID", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_cursor", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_count", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_roundCursor", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_roundCount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "batchRequestWithdraw", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_address", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address payable", | ||
"name": "_contributor", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_itemID", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_request", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_cursor", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_count", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "batchRoundWithdraw", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] | ||
} |
Oops, something went wrong.