(account_polymath)
| 271 | } |
| 272 | |
| 273 | async function deploySTR(account_polymath) { |
| 274 | I_SecurityTokenRegistry = await SecurityTokenRegistry.new({ from: account_polymath }); |
| 275 | |
| 276 | assert.notEqual( |
| 277 | I_SecurityTokenRegistry.address.valueOf(), |
| 278 | "0x0000000000000000000000000000000000000000", |
| 279 | "SecurityTokenRegistry contract was not deployed" |
| 280 | ); |
| 281 | |
| 282 | // Step 9 (a): Deploy the proxy |
| 283 | I_SecurityTokenRegistryProxy = await SecurityTokenRegistryProxy.new({ from: account_polymath }); |
| 284 | I_STRGetter = await STRGetter.new({from: account_polymath}); |
| 285 | |
| 286 | let bytesProxy = encodeProxyCall(STRProxyParameters, [ |
| 287 | I_PolymathRegistry.address, |
| 288 | initRegFee, |
| 289 | initRegFee, |
| 290 | account_polymath, |
| 291 | I_STRGetter.address |
| 292 | ]); |
| 293 | await I_SecurityTokenRegistryProxy.upgradeToAndCall("1.0.0", I_SecurityTokenRegistry.address, bytesProxy, { from: account_polymath }); |
| 294 | I_STRProxied = await SecurityTokenRegistry.at(I_SecurityTokenRegistryProxy.address); |
| 295 | await I_STRProxied.setProtocolFactory(I_STFactory.address, 3, 0, 0); |
| 296 | await I_STRProxied.setLatestVersion(3, 0, 0); |
| 297 | I_STRGetter = await STRGetter.at(I_SecurityTokenRegistryProxy.address); |
| 298 | return new Array(I_SecurityTokenRegistry, I_SecurityTokenRegistryProxy, I_STRProxied, I_STRGetter); |
| 299 | } |
| 300 | |
| 301 | async function setInPolymathRegistry(account_polymath) { |
| 302 | await I_PolymathRegistry.changeAddress("PolyToken", I_PolyToken.address, { from: account_polymath }); |
no test coverage detected