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

Function deployVRTMAndVerifyed

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

Source from the content-addressed store, hash-verified

335}
336
337export async function deployVRTMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
338 I_VolumeRestrictionTMLogic = await VolumeRestrictionTM.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });
339
340 I_VolumeRestrictionTMFactory = await VolumeRestrictionTMFactory.new(setupCost, new BN(0), I_VolumeRestrictionTMLogic.address, I_PolymathRegistry.address, feeInPoly, { from: accountPolymath });
341
342 assert.notEqual(
343 I_VolumeRestrictionTMFactory.address.valueOf(),
344 "0x0000000000000000000000000000000000000000",
345 "VolumeRestrictionTMFactory contract was not deployed"
346 );
347
348 // (B) : Register the GeneralDelegateManagerFactory
349 await registerAndVerifyByMR(I_VolumeRestrictionTMFactory.address, accountPolymath, MRProxyInstance);
350 return new Array(I_VolumeRestrictionTMFactory);
351}
352
353export async function deployCountTMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
354 I_CountTransferManagerLogic = await CountTransferManager.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });

Calls 1

registerAndVerifyByMRFunction · 0.85

Tested by

no test coverage detected