Skip to content

Commit

Permalink
Deployment fixes (#63)
Browse files Browse the repository at this point in the history
* 1 too many zeros removed from deploy script

* WIP deployment

* Update packages

* Delete flat.sol

* Implementation deploy fixes

* add frame

* Use http frame
  • Loading branch information
MickdeGraaf authored Oct 6, 2020
1 parent 5fcb15d commit db8c884
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion buidler.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ const config: ExtendedBuidlerConfig = {
url: 'http://127.0.0.1:8555', // Coverage launches its own ganache-cli client
gasPrice: 0,
blockGasLimit: 100000000,
},
frame: {
url: "http://localhost:1248"
}
},
etherscan: {
Expand Down Expand Up @@ -173,10 +176,12 @@ task("deploy-pie-smart-pool", "deploys a pie smart pool")
const linkedArtifact = linkArtifact(Pv2SmartPoolArtifact, libraries);

const smartpool = (await deployContract(signers[0] as Wallet, linkedArtifact, [], {
gasLimit: 12000000,
gasLimit: 10000000,
})) as Pv2SmartPool;

console.log(`Pv2SmartPool deployed at: ${smartpool.address}`);

return smartpool;
});

task("init-smart-pool", "initialises a smart pool")
Expand All @@ -201,6 +206,8 @@ task("deploy-smart-pool-implementation-complete")

// Deploy capped pool
const implementation = await run("deploy-pie-smart-pool");

console.log(`Implementation deployed at: ${implementation.address}`);
// Init capped smart pool
await run("init-smart-pool", {
smartPool: implementation.address,
Expand All @@ -209,6 +216,8 @@ task("deploy-smart-pool-implementation-complete")
symbol: taskArgs.implName,
initialSupply: "1337"
});

return implementation;
});

task("deploy-smart-pool-complete")
Expand Down

0 comments on commit db8c884

Please sign in to comment.