Skip to content

Commit 00dcc49

Browse files
Merge pull request #175 from iExecBlockchainComputing/hotfix/fix-local-stack-for-dataprotector-subgraph-deployer
hotfix/fix-local-stack-for-dataprotector-subgraph-deployer
2 parents 3d26042 + 449ad34 commit 00dcc49

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

.drone.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ trigger:
99
- promote
1010
- pull_request
1111

12-
# required until dataprotector-subgraph-deployer is publicly available
13-
image_pull_secrets:
14-
- dockerconfigregis
15-
1612
steps:
1713
- name: install
1814
image: node:18.19
@@ -286,8 +282,7 @@ steps:
286282
- market-watcher
287283

288284
- name: dataprotector-subgraph-deployer
289-
# TODO replace image with iexechub/dataprotector-subgraph-deployer when available
290-
image: docker-regis.iex.ec/product/dataprotector-subgraph-deployer:3.0.0
285+
image: iexechub/dataprotector-subgraph-deployer:3.0.0
291286
environment:
292287
ENV: prod
293288
GRAPHNODE_URL: http://graphnode:8020

tests/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ services:
203203
start_period: 30s
204204

205205
dataprotector-subgraph-deployer:
206-
# TODO replace image with iexechub/dataprotector-subgraph-deployer when available
207-
image: docker-regis.iex.ec/product/dataprotector-subgraph-deployer:3.0.0
206+
image: iexechub/dataprotector-subgraph-deployer:3.0.0
208207
restart: 'no'
209208
depends_on:
210209
graphnode:

tests/scripts/prepare-bellecour-fork-for-tests.js

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import {
22
Contract,
3+
EnsPlugin,
34
JsonRpcProvider,
45
JsonRpcSigner,
6+
Network,
57
formatEther,
68
keccak256,
79
toBeHex,
@@ -17,15 +19,27 @@ const LEARN_WORKERPOOL_OWNER_WALLET =
1719
const PROD_WORKERPOOL_OWNER_WALLET =
1820
'0x1Ff6AfF580e8Ca738F76485E0914C2aCaDa7B462';
1921
const APP_OWNER_WALLET = '0x626D65C778fB98f813C25F84249E3012B80e8d91';
20-
const LEARN_WORKERPOOL = '0x0975bfce90f4748dab6d6729c96b33a2cd5491f5'; // 'prod-v8-learn.main.pools.iexec.eth';
21-
const PROD_WORKERPOOL = '0x0e7bc972c99187c191a17f3cae4a2711a4188c3f'; // 'prod-v8-bellecour.main.pools.iexec.eth';
22-
const WEB3_MAIL_DAPP_ADDRESS = '0x3d9d7600b6128c03b7ddbf050934e7ecfe0c61c8'; // 'web3mail.apps.iexec.eth';
22+
const LEARN_WORKERPOOL_ENS = 'prod-v8-learn.main.pools.iexec.eth';
23+
const PROD_WORKERPOOL_ENS = 'prod-v8-bellecour.main.pools.iexec.eth';
24+
const WEB3_MAIL_DAPP_ADDRESS_ENS = 'web3mail.apps.iexec.eth';
2325

2426
const rpcURL = DRONE ? 'http://bellecour-fork:8545' : 'http://127.0.0.1:8545';
2527

26-
const provider = new JsonRpcProvider(rpcURL, undefined, {
27-
pollingInterval: 1000, // speed up tests
28-
});
28+
const provider = new JsonRpcProvider(
29+
rpcURL,
30+
new Network('bellecour-fork', 134).attachPlugin(
31+
new EnsPlugin('0x5f5B93fca68c9C79318d1F3868A354EE67D8c006', 134)
32+
),
33+
{
34+
pollingInterval: 1000, // speed up tests
35+
}
36+
);
37+
38+
const LEARN_WORKERPOOL = await provider.resolveName(LEARN_WORKERPOOL_ENS);
39+
const PROD_WORKERPOOL = await provider.resolveName(PROD_WORKERPOOL_ENS);
40+
const WEB3_MAIL_DAPP_ADDRESS = await provider.resolveName(
41+
WEB3_MAIL_DAPP_ADDRESS_ENS
42+
);
2943

3044
const setBalance = async (address, weiAmount) => {
3145
fetch(rpcURL, {

0 commit comments

Comments
 (0)