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

Function deployCappedSTOAndVerifyed

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

Source from the content-addressed store, hash-verified

463}
464
465export async function deployCappedSTOAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
466 I_CappedSTOLogic = await CappedSTO.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });
467 I_CappedSTOFactory = await CappedSTOFactory.new(setupCost, new BN(0), I_CappedSTOLogic.address, I_PolymathRegistry.address, feeInPoly, { from: accountPolymath });
468 assert.notEqual(
469 I_CappedSTOFactory.address.valueOf(),
470 "0x0000000000000000000000000000000000000000",
471 "CappedSTOFactory contract was not deployed"
472 );
473
474 await registerAndVerifyByMR(I_CappedSTOFactory.address, accountPolymath, MRProxyInstance);
475 return Promise.all(new Array(I_CappedSTOFactory));
476}
477
478export async function deployPresaleSTOAndVerified(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
479 I_PreSaleSTOLogic = await PreSaleSTO.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });

Callers 4

b_capped_sto.jsFile · 0.90
i_Issuance.jsFile · 0.90

Calls 1

registerAndVerifyByMRFunction · 0.85

Tested by

no test coverage detected