Skip to content

Commit c24993b

Browse files
abarmatdavekay100
authored andcommitted
state-channels: compile and produce artifacts for the AttestationApp within the project
1 parent 0a51918 commit c24993b

File tree

7 files changed

+146
-2
lines changed

7 files changed

+146
-2
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ bin/
2121
.vscode
2222

2323
# Sliter
24-
/reports
24+
/reports
25+
26+
# Third-party
27+
contracts/statechannels/Attestation*.sol

.soliumignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ contracts/tests/ens
1010
contracts/curation/IGraphCurationToken.sol
1111
contracts/staking/libs/LibFixedMath.sol
1212
contracts/tests/testnet/GSRManager.sol
13+
contracts/statechannels

cli/commands/migrate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const allContracts = [
2929
'RewardsManager',
3030
'DisputeManager',
3131
'GRTAssetHolder',
32+
'AttestationApp',
3233
]
3334

3435
const logger = consola.create({})

graph.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ contracts:
8989
issuanceRate: "1000000023206889619" # 5% annual rate
9090
GRTAssetHolder:
9191
init:
92-
adjudicatorAddress: "0x0000000000000000000000000000000000000000"
92+
adjudicatorAddress: "0xaa94bed44fc8195b029628341f13a695f1348c04"
9393
tokenAddress: "${{GraphToken.address}}"
9494
controllerAddress: "${{Controller.address}}"
9595
calls:

package-lock.json

Lines changed: 134 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"devDependencies": {
1919
"@ethersproject/experimental": "^5.0.5",
2020
"@graphprotocol/common-ts": "^0.2.0",
21+
"@graphprotocol/statechannels": "^0.1.3",
2122
"@nomiclabs/hardhat-ethers": "^2.0.0",
2223
"@nomiclabs/hardhat-etherscan": "^2.0.0",
2324
"@nomiclabs/hardhat-waffle": "^2.0.0",

scripts/build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ set -eo pipefail
55
# Allow these interfaces to be used from 0.6.x and 0.7.x contracts
66
sed -i 's/pragma solidity ^0.7.0/pragma solidity >=0.6.0 <0.8.0/g' node_modules/@openzeppelin/contracts/math/SafeMath.sol
77
sed -i 's/pragma solidity ^0.7.0/pragma solidity >=0.6.0 <0.8.0/g' node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol
8+
sed -i 's/pragma solidity ^0.7.0/pragma solidity >=0.6.0 <0.8.0/g' node_modules/@openzeppelin/contracts/cryptography/ECDSA.sol
9+
10+
# Compile AttestationApp along with the rest of the contracts
11+
cp node_modules/@graphprotocol/statechannels/contracts/Attestation*.sol contracts/statechannels
812

913
# Build
1014
npm run compile

0 commit comments

Comments
 (0)