-
Notifications
You must be signed in to change notification settings - Fork 7
/
domain-migration.ts
35 lines (31 loc) · 1.1 KB
/
domain-migration.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// import { VOLTA_CHAIN_ID } from '@energyweb/iam-contracts';
// import { providers } from 'ethers';
// import { Wallet } from 'ethers';
// import { updateLegacyIssuers } from '../../src/utils/updateLegacyIssuers';
// import util from 'util';
// const { JsonRpcProvider } = providers;
// describe.skip('Domains migration', () => {
// let rootOwner: Wallet;
// const root = 'spotify.apps.dmitryfesenko.iam.ewc';
// const ganacheUrl = 'http://localhost:8544';
// beforeAll(async () => {
// rootOwner = Wallet.createRandom().connect(new JsonRpcProvider(ganacheUrl));
// });
// test(
// 'Role definitions should be migrated',
// async () => {
// const updatedDomains = await updateLegacyIssuers(
// root,
// rootOwner,
// VOLTA_CHAIN_ID
// );
// updatedDomains.forEach((d) => {
// console.group(d.domain);
// console.log('def:', util.inspect(d.legacyDef, { depth: 5 }));
// console.log('updated def:', util.inspect(d.updatedDef, { depth: 5 }));
// console.groupEnd();
// });
// },
// 10 * 60 * 1000
// );
// });