(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false)
| 319 | /// Deploy the TransferManagers |
| 320 | |
| 321 | export 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 | |
| 337 | export async function deployVRTMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) { |
| 338 | I_VolumeRestrictionTMLogic = await VolumeRestrictionTM.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath }); |
no test coverage detected