@@ -28,7 +28,8 @@ const MockOracle = artifacts.require("./MockOracle.sol");
2828const TokenLib = artifacts . require ( "./TokenLib.sol" ) ;
2929const SecurityToken = artifacts . require ( "./tokens/SecurityToken.sol" ) ;
3030const STRGetter = artifacts . require ( './STRGetter.sol' ) ;
31-
31+ const DataStoreLogic = artifacts . require ( './DataStore.sol' ) ;
32+ const DataStoreFactory = artifacts . require ( './DataStoreFactory.sol' ) ;
3233
3334const Web3 = require ( "web3" ) ;
3435let BN = Web3 . utils . BN ;
@@ -246,6 +247,14 @@ module.exports = function(deployer, network, accounts) {
246247 // manager attach with the securityToken contract at the time of deployment)
247248 return deployer . deploy ( CappedSTOLogic , nullAddress , nullAddress , { from : PolymathAccount } ) ;
248249 } )
250+ . then ( ( ) => {
251+ // B) Deploy the DataStoreLogic Contract
252+ return deployer . deploy ( DataStoreLogic , { from : PolymathAccount } ) ;
253+ } )
254+ . then ( ( ) => {
255+ // B) Deploy the DataStoreFactory Contract
256+ return deployer . deploy ( DataStoreFactory , DataStoreLogic . address , { from : PolymathAccount } ) ;
257+ } )
249258 . then ( ( ) => {
250259 // B) Deploy the GeneralTransferManagerFactory Contract (Factory used to generate the GeneralTransferManager contract and this
251260 // manager attach with the securityToken contract at the time of deployment)
@@ -297,7 +306,7 @@ module.exports = function(deployer, network, accounts) {
297306 } )
298307 . then ( ( ) => {
299308 // H) Deploy the STVersionProxy001 Contract which contains the logic of deployment of securityToken.
300- return deployer . deploy ( STFactory , GeneralTransferManagerFactory . address , { from : PolymathAccount } ) ;
309+ return deployer . deploy ( STFactory , GeneralTransferManagerFactory . address , DataStoreFactory . address , { from : PolymathAccount } ) ;
301310 } )
302311 . then ( ( ) => {
303312 // K) Deploy the FeatureRegistry contract to control feature switches
0 commit comments