-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99b62a4
commit 3a63ee2
Showing
8 changed files
with
125 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {DeployBase} from "script/DeployBase.sol"; | ||
import {DonationVotingMerkleDistribution} from | ||
"contracts/strategies/examples/donation-voting/DonationVotingMerkleDistribution.sol"; | ||
|
||
contract DeployDonationVotingMerkleDistribution is DeployBase { | ||
function setUp() public { | ||
// Mainnet | ||
address _allo = 0x0000000000000000000000000000000000000000; | ||
bool _directTransfer = false; | ||
_deploymentParams[1] = abi.encode(_allo, _directTransfer); | ||
} | ||
|
||
function _deploy(uint256, bytes memory _data) internal override returns (address _contract) { | ||
(address _allo, bool _directTransfer) = abi.decode(_data, (address, bool)); | ||
return address(new DonationVotingMerkleDistribution(_allo, _directTransfer)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {DeployBase} from "script/DeployBase.sol"; | ||
import {DonationVotingOffchain} from "contracts/strategies/examples/donation-voting/DonationVotingOffchain.sol"; | ||
|
||
contract DeployDonationVotingOffchain is DeployBase { | ||
function setUp() public { | ||
// Mainnet | ||
address _allo = 0x0000000000000000000000000000000000000000; | ||
bool _directTransfer = false; | ||
_deploymentParams[1] = abi.encode(_allo, _directTransfer); | ||
} | ||
|
||
function _deploy(uint256, bytes memory _data) internal override returns (address _contract) { | ||
(address _allo, bool _directTransfer) = abi.decode(_data, (address, bool)); | ||
return address(new DonationVotingOffchain(_allo, _directTransfer)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {DeployBase} from "script/DeployBase.sol"; | ||
import {DonationVotingOnchain} from "contracts/strategies/examples/donation-voting/DonationVotingOnchain.sol"; | ||
|
||
contract DeployDonationVotingOnchain is DeployBase { | ||
function setUp() public { | ||
// Mainnet | ||
address _allo = 0x0000000000000000000000000000000000000000; | ||
_deploymentParams[1] = abi.encode(_allo); | ||
} | ||
|
||
function _deploy(uint256, bytes memory _data) internal override returns (address _contract) { | ||
return address(new DonationVotingOnchain(abi.decode(_data, (address)))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {DeployBase} from "script/DeployBase.sol"; | ||
import {EasyRPGF} from "contracts/strategies/examples/easy-rpgf/EasyRPGF.sol"; | ||
|
||
contract DeployEasyRPGF is DeployBase { | ||
function setUp() public { | ||
// Mainnet | ||
address _allo = 0x0000000000000000000000000000000000000000; | ||
_deploymentParams[1] = abi.encode(_allo); | ||
} | ||
|
||
function _deploy(uint256, bytes memory _data) internal override returns (address _contract) { | ||
return address(new EasyRPGF(abi.decode(_data, (address)))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {DeployBase} from "script/DeployBase.sol"; | ||
import {QVImpactStream} from "contracts/strategies/examples/impact-stream/QVImpactStream.sol"; | ||
|
||
contract DeployQVImpactStream is DeployBase { | ||
function setUp() public { | ||
// Mainnet | ||
address _allo = 0x0000000000000000000000000000000000000000; | ||
_deploymentParams[1] = abi.encode(_allo); | ||
} | ||
|
||
function _deploy(uint256, bytes memory _data) internal override returns (address _contract) { | ||
return address(new QVImpactStream(abi.decode(_data, (address)))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {DeployBase} from "script/DeployBase.sol"; | ||
import {QVSimple} from "contracts/strategies/examples/quadratic-voting/QVSimple.sol"; | ||
|
||
contract DeployQVSimple is DeployBase { | ||
function setUp() public { | ||
// Mainnet | ||
address _allo = 0x0000000000000000000000000000000000000000; | ||
_deploymentParams[1] = abi.encode(_allo); | ||
} | ||
|
||
function _deploy(uint256, bytes memory _data) internal override returns (address _contract) { | ||
return address(new QVSimple(abi.decode(_data, (address)))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {DeployBase} from "script/DeployBase.sol"; | ||
import {RFPSimple} from "contracts/strategies/examples/rfp/RFPSimple.sol"; | ||
|
||
contract DeployRFPSimple is DeployBase { | ||
function setUp() public { | ||
// Mainnet | ||
address _allo = 0x0000000000000000000000000000000000000000; | ||
_deploymentParams[1] = abi.encode(_allo); | ||
} | ||
|
||
function _deploy(uint256, bytes memory _data) internal override returns (address _contract) { | ||
return address(new RFPSimple(abi.decode(_data, (address)))); | ||
} | ||
} |