Skip to content

Commit

Permalink
feat: deploy new modules (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent authored Jul 11, 2023
1 parent 88e224d commit f1a87b8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions solidity/scripts/Deploy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -31,6 +34,9 @@ contract Deploy is Script {
BondEscalationModule bondEscalationModule;
CallbackModule callbackModule;
HttpRequestModule httpRequestModule;
ContractCallRequestModule contractCallRequestModule;
ERC20ResolutionModule erc20ResolutionModule;
MultipleCallbacksModule multipleCallbacksModule;

AccountingExtension accountingExtension;
BondEscalationAccounting bondEscalationAccounting;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit f1a87b8

Please sign in to comment.