MCPcopy Index your code
hub / github.com/PolymathNetwork/polymath-core / deployModuleRegistry

Function deployModuleRegistry

test/helpers/createInstances.js:208–217  ·  view source on GitHub ↗
(account_polymath)

Source from the content-addressed store, hash-verified

206}
207
208async function deployModuleRegistry(account_polymath) {
209 I_ModuleRegistry = await ModuleRegistry.new({ from: account_polymath });
210 // Step 3 (b): Deploy the proxy and attach the implementation contract to it
211 I_ModuleRegistryProxy = await ModuleRegistryProxy.new({ from: account_polymath });
212 let bytesMRProxy = encodeProxyCall(MRProxyParameters, [I_PolymathRegistry.address, account_polymath]);
213 await I_ModuleRegistryProxy.upgradeToAndCall("1.0.0", I_ModuleRegistry.address, bytesMRProxy, { from: account_polymath });
214 I_MRProxied = await ModuleRegistry.at(I_ModuleRegistryProxy.address);
215
216 return new Array(I_ModuleRegistry, I_ModuleRegistryProxy, I_MRProxied);
217}
218
219async function deployGTMLogic(account_polymath) {
220 I_GeneralTransferManagerLogic = await GeneralTransferManager.new(

Callers 1

setUpPolymathNetworkFunction · 0.85

Calls 1

encodeProxyCallFunction · 0.90

Tested by

no test coverage detected