MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / deployGPMAndVerifyed

Function deployGPMAndVerifyed

test/helpers/createInstances.js:435–448  ·  view source on GitHub ↗
(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false)

Source from the content-addressed store, hash-verified

433/// Deploy the Permission Manager
434
435export async function deployGPMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
436 I_GeneralPermissionManagerLogic = await GeneralPermissionManager.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });
437 I_GeneralPermissionManagerFactory = await GeneralPermissionManagerFactory.new(setupCost, new BN(0), I_GeneralPermissionManagerLogic.address, I_PolymathRegistry.address, feeInPoly, { from: accountPolymath });
438
439 assert.notEqual(
440 I_GeneralPermissionManagerFactory.address.valueOf(),
441 "0x0000000000000000000000000000000000000000",
442 "GeneralPermissionManagerFactory contract was not deployed"
443 );
444
445 // (B) : Register the GeneralDelegateManagerFactory
446 await registerAndVerifyByMR(I_GeneralPermissionManagerFactory.address, accountPolymath, MRProxyInstance);
447 return Promise.all(new Array(I_GeneralPermissionManagerFactory));
448}
449
450/// Deploy the STO Modules
451

Calls 1

registerAndVerifyByMRFunction · 0.85

Tested by

no test coverage detected