Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(claims): remove deprecated 'fields' property
BREAKING CHANGE: backward compatible 'fields' props have been removed. Use 'requestorFields' instead
- Loading branch information
Showing
4 changed files
with
34 additions
and
45 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 |
---|---|---|
@@ -1,35 +1,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'; | ||
// 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; | ||
// const { JsonRpcProvider } = providers; | ||
|
||
describe.skip('Domains migration', () => { | ||
let rootOwner: Wallet; | ||
const root = 'spotify.apps.dmitryfesenko.iam.ewc'; | ||
const ganacheUrl = 'http://localhost:8544'; | ||
// 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)); | ||
}); | ||
// 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 | ||
); | ||
}); | ||
// 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 | ||
// ); | ||
// }); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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