From f1a87b88c7c4f675162e5161bacd92e366b4f986 Mon Sep 17 00:00:00 2001 From: Gas <86567384+gas1cent@users.noreply.github.com> Date: Wed, 12 Jul 2023 00:20:32 +0400 Subject: [PATCH] feat: deploy new modules (#42) --- ...tonModule.sol => ERC20ResolutionModule.sol} | 0 solidity/scripts/Deploy.sol | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) rename solidity/contracts/modules/{ERC20ResolutonModule.sol => ERC20ResolutionModule.sol} (100%) diff --git a/solidity/contracts/modules/ERC20ResolutonModule.sol b/solidity/contracts/modules/ERC20ResolutionModule.sol similarity index 100% rename from solidity/contracts/modules/ERC20ResolutonModule.sol rename to solidity/contracts/modules/ERC20ResolutionModule.sol diff --git a/solidity/scripts/Deploy.sol b/solidity/scripts/Deploy.sol index 856fc94c..b5a7c66c 100644 --- a/solidity/scripts/Deploy.sol +++ b/solidity/scripts/Deploy.sol @@ -12,6 +12,9 @@ import {BondedResponseModule} from '../contracts/modules/BondedResponseModule.so import {BondEscalationModule} from '../contracts/modules/BondEscalationModule.sol'; import {CallbackModule} from '../contracts/modules/CallbackModule.sol'; import {HttpRequestModule} from '../contracts/modules/HttpRequestModule.sol'; +import {ContractCallRequestModule} from '../contracts/modules/ContractCallRequestModule.sol'; +import {ERC20ResolutionModule} from '../contracts/modules/ERC20ResolutionModule.sol'; +import {MultipleCallbacksModule} from '../contracts/modules/MultipleCallbacksModule.sol'; import {AccountingExtension} from '../contracts/extensions/AccountingExtension.sol'; import {BondEscalationAccounting} from '../contracts/extensions/BondEscalationAccounting.sol'; @@ -31,6 +34,9 @@ contract Deploy is Script { BondEscalationModule bondEscalationModule; CallbackModule callbackModule; HttpRequestModule httpRequestModule; + ContractCallRequestModule contractCallRequestModule; + ERC20ResolutionModule erc20ResolutionModule; + MultipleCallbacksModule multipleCallbacksModule; AccountingExtension accountingExtension; BondEscalationAccounting bondEscalationAccounting; @@ -71,6 +77,18 @@ contract Deploy is Script { httpRequestModule = new HttpRequestModule(oracle); console.log('HTTP_REQUEST_MODULE:', address(httpRequestModule)); + // Deploy contract call module + contractCallRequestModule = new ContractCallRequestModule(oracle); + console.log('CONTRACT_CALL_MODULE:', address(contractCallRequestModule)); + + // Deploy ERC20 resolution module + erc20ResolutionModule = new ERC20ResolutionModule(oracle); + console.log('ERC20_RESOLUTION_MODULE:', address(erc20ResolutionModule)); + + // Deploy multiple callbacks module + multipleCallbacksModule = new MultipleCallbacksModule(oracle); + console.log('MULTIPLE_CALLBACKS_MODULE:', address(multipleCallbacksModule)); + // Deploy accounting extension accountingExtension = new AccountingExtension(oracle, WETH); console.log('ACCOUNTING_EXTENSION:', address(accountingExtension));