From db8c88477b293b84e269d8b2f5a19482d8ef6e99 Mon Sep 17 00:00:00 2001 From: Mick de Graaf Date: Tue, 6 Oct 2020 11:39:06 +0200 Subject: [PATCH] Deployment fixes (#63) * 1 too many zeros removed from deploy script * WIP deployment * Update packages * Delete flat.sol * Implementation deploy fixes * add frame * Use http frame --- buidler.config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/buidler.config.ts b/buidler.config.ts index 0f6635d..885235d 100644 --- a/buidler.config.ts +++ b/buidler.config.ts @@ -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: { @@ -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") @@ -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, @@ -209,6 +216,8 @@ task("deploy-smart-pool-implementation-complete") symbol: taskArgs.implName, initialSupply: "1337" }); + + return implementation; }); task("deploy-smart-pool-complete")