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

Function deployPLCRVoteCheckpoint

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

Source from the content-addressed store, hash-verified

619// Deploy voting modules
620
621export async function deployPLCRVoteCheckpoint(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
622 I_PLCRVotingCheckpointLogic = await PLCRVotingCheckpoint.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });
623 I_PLCRVotingCheckpointFactory = await PLCRVotingCheckpointFactory.new(setupCost, new BN(0), I_PLCRVotingCheckpointLogic.address, I_PolymathRegistry.address, feeInPoly, { from: accountPolymath });
624 assert.notEqual(
625 I_PLCRVotingCheckpointFactory.address.valueOf(),
626 "0x0000000000000000000000000000000000000000",
627 "PLCRVotingCheckpointFactory contract was not deployed"
628 );
629
630 await registerAndVerifyByMR(I_PLCRVotingCheckpointFactory.address, accountPolymath, MRProxyInstance);
631 return new Array(I_PLCRVotingCheckpointFactory);
632}
633// Deploy the voting modules
634
635export async function deployWeightedVoteCheckpoint(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {

Callers 1

Calls 1

registerAndVerifyByMRFunction · 0.85

Tested by

no test coverage detected