-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee9ec3b
commit 3672b1b
Showing
12 changed files
with
15,656 additions
and
5,175 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
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 |
---|---|---|
|
@@ -3,3 +3,6 @@ build | |
generated | ||
yarn.lock | ||
test/.bin | ||
subgraph.yaml | ||
subgraph.test.yaml | ||
.graphclient |
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,6 @@ | ||
# For testing purposes | ||
sources: | ||
- name: poco | ||
handler: | ||
graphql: | ||
endpoint: http://localhost:8000/subgraphs/name/test/poco |
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,13 @@ | ||
FROM node:22 | ||
|
||
WORKDIR /iexec-poco-subgraph | ||
|
||
COPY package*.json . | ||
COPY schema.graphql . | ||
COPY subgraph.template.yaml . | ||
COPY networks.json . | ||
COPY src src | ||
|
||
RUN npm ci | ||
|
||
ENTRYPOINT [ "npm", "run", "deploy:all" ] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
DATA=/home/tmp/graph-test | ||
DB_USER=graphnode | ||
DB_PASSWORD=somerandompasswordthatishardtoguess | ||
DB_NAME=graphnode | ||
DB_NAME=graphnode-db | ||
NETWORK_NAME=test |
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,25 @@ | ||
import { strictEqual } from 'assert'; | ||
import { execute } from '../.graphclient'; | ||
|
||
async function main() { | ||
console.log('Running integration tests..'); | ||
const result = await execute( | ||
` | ||
query { | ||
protocol(id: "iExec") { | ||
tvl | ||
id | ||
} | ||
} | ||
`, | ||
{}, | ||
); | ||
console.log(result); | ||
strictEqual( | ||
JSON.stringify(result.data), | ||
JSON.stringify({ protocol: { tvl: '0.02025', id: 'iExec' } }), | ||
); | ||
console.log('integration tests completed ✔️'); | ||
} | ||
|
||
main(); |
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,46 @@ | ||
{ | ||
"test": { | ||
"ERC1538": { | ||
"address": "0xc4b11f41746D3Ad8504da5B383E1aB9aa969AbC7", | ||
"startBlock": 0 | ||
}, | ||
"Core": { | ||
"address": "0xc4b11f41746D3Ad8504da5B383E1aB9aa969AbC7", | ||
"startBlock": 0 | ||
}, | ||
"AppRegistry": { | ||
"address": "0xd5Fe43e3cDD29812949dc9b368345537D7B73001", | ||
"startBlock": 0 | ||
}, | ||
"DatasetRegistry": { | ||
"address": "0xf3bd0602fA481230271c5396f146e5695D3750A6", | ||
"startBlock": 0 | ||
}, | ||
"WorkerpoolRegistry": { | ||
"address": "0x6Cb57fA761812c34645C945cA89AAe3602D42eD3", | ||
"startBlock": 0 | ||
} | ||
}, | ||
"bellecour": { | ||
"ERC1538": { | ||
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f", | ||
"startBlock": 4543300 | ||
}, | ||
"Core": { | ||
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f", | ||
"startBlock": 4543300 | ||
}, | ||
"AppRegistry": { | ||
"address": "0xB1C52075b276f87b1834919167312221d50c9D16", | ||
"startBlock": 4543300 | ||
}, | ||
"DatasetRegistry": { | ||
"address": "0x799DAa22654128d0C64d5b79eac9283008158730", | ||
"startBlock": 4543300 | ||
}, | ||
"WorkerpoolRegistry": { | ||
"address": "0xC76A18c78B7e530A165c5683CB1aB134E21938B4", | ||
"startBlock": 4543300 | ||
} | ||
} | ||
} |
Oops, something went wrong.