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

Function deployLockUpTMAndVerified

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

Source from the content-addressed store, hash-verified

404}
405
406export async function deployLockUpTMAndVerified(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
407 I_LockUpTransferManagerLogic = await LockUpTransferManager.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });
408 I_LockUpTransferManagerFactory = await LockUpTransferManagerFactory.new(setupCost, new BN(0), I_LockUpTransferManagerLogic.address, I_PolymathRegistry.address, feeInPoly, {
409 from: accountPolymath
410 });
411 assert.notEqual(
412 I_LockUpTransferManagerFactory.address.valueOf(),
413 "0x0000000000000000000000000000000000000000",
414 "LockUpTransferManagerFactory contract was not deployed"
415 );
416
417 await registerAndVerifyByMR(I_LockUpTransferManagerFactory.address, accountPolymath, MRProxyInstance);
418 return Promise.all(new Array(I_LockUpTransferManagerFactory));
419}
420
421export async function deployScheduleCheckpointAndVerified(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
422 I_ScheduledCheckpointFactory = await ScheduledCheckpointFactory.new(setupCost, new BN(0), I_PolymathRegistry.address, feeInPoly, { from: accountPolymath });

Calls 1

registerAndVerifyByMRFunction · 0.85

Tested by

no test coverage detected