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

Function deployGTMAndVerifyed

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

Source from the content-addressed store, hash-verified

319/// Deploy the TransferManagers
320
321export async function deployGTMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
322 I_GeneralTransferManagerFactory = await GeneralTransferManagerFactory.new(setupCost, new BN(0), I_GeneralTransferManagerLogic.address, I_PolymathRegistry.address, feeInPoly, {
323 from: accountPolymath
324 });
325
326 assert.notEqual(
327 I_GeneralTransferManagerFactory.address.valueOf(),
328 "0x0000000000000000000000000000000000000000",
329 "GeneralTransferManagerFactory contract was not deployed"
330 );
331
332 // (B) : Register the GeneralDelegateManagerFactory
333 await registerAndVerifyByMR(I_GeneralTransferManagerFactory.address, accountPolymath, MRProxyInstance);
334 return Promise.all(new Array(I_GeneralTransferManagerFactory));
335}
336
337export async function deployVRTMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
338 I_VolumeRestrictionTMLogic = await VolumeRestrictionTM.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });

Callers 1

Calls 1

registerAndVerifyByMRFunction · 0.85

Tested by

no test coverage detected