Skip to content

Commit 8dde59c

Browse files
authored
[ADHOC] Module Deployments (#428)
1 parent 049a3a1 commit 8dde59c

File tree

10 files changed

+1296
-249
lines changed

10 files changed

+1296
-249
lines changed

.changeset/orange-seahorses-chew.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@boostxyz/evm": patch
3+
---
4+
5+
deployments for ERC20PeggedVariableCriteriaIncentive, ERC20VariableCriteriaIncentive, ManagedBudgetWithFeesV2, and TransparentBudget

packages/evm/broadcast/Deploy_Modules.s.sol/11155111/run-1742318991.json

+206
Large diffs are not rendered by default.

packages/evm/broadcast/Deploy_Modules.s.sol/11155111/run-1742319884.json

+220
Large diffs are not rendered by default.

packages/evm/broadcast/Deploy_Modules.s.sol/11155111/run-latest.json

+159-41
Large diffs are not rendered by default.

packages/evm/broadcast/Deploy_Modules.s.sol/8453/run-latest.json

+318-100
Large diffs are not rendered by default.

packages/evm/broadcast/Deploy_Modules.s.sol/84532/run-latest.json

+314-96
Large diffs are not rendered by default.

packages/evm/deploys/11155111.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
"CGDAIncentive": "0x5706C507517c915CceD6528AB5C7f417bDaE5dD8",
66
"ERC20Incentive": "0x7856e771Dbaa54C68a152de58E8314bA3715E6B9",
77
"ERC20PeggedIncentive": "0xa556B15963EBFE06bB25067A865D43f56082A4d3",
8-
"ERC20PeggedVariableCriteriaIncentive": "0x15936a5F7413b902bff62A8bd0e10C1a04A43017",
8+
"ERC20PeggedVariableCriteriaIncentive": "0x27CEeCDFDFbC524d2753faAd0dA58b54f269bC69",
99
"ERC20PeggedVariableCriteriaIncentiveV2": "0x53bD3fE4F4f80E39B9a6C8a5EC67F4a33fe91E8f",
10-
"ERC20VariableCriteriaIncentive": "0x2564934f3cCFdD3320774bb3Fca32778c968B73b",
10+
"ERC20VariableCriteriaIncentive": "0x068D72D8058D65890bbcB7D65cd76740f2ED31e5",
1111
"ERC20VariableCriteriaIncentiveV2": "0x6d6B9f0a11Ac190E071c0A5A46702EC09306240f",
1212
"ERC20VariableIncentive": "0xBf307584B35d94067B2B75C9A11a74BFf84b2Ffd",
1313
"EventAction": "0xE2F3EFB000Cb5Fd912B931B92656E835b94ED70C",
1414
"LimitedSignerValidator": "0xCbfDeec39221D56398702dEe3309a88450633E52",
1515
"ManagedBudget": "0xb8a299905dC2d23Cd55E77AefC110b05F6165A49",
16-
"ManagedBudgetWithFees": "0x73159fcb61C8fDEe0A703368964C4C7AF5Bef86c",
16+
"ManagedBudgetWithFees": "0xe7E59DDB78E0544aB2f81519381736C0b8f27692",
1717
"OpenAllowList": "0x75F2370218D312E9072d8687812Eb647E087AE21",
1818
"PointsIncentive": "0x8EAF9538c6D1F171E7883df279010626C57fC2C1",
1919
"SignerValidator": "0x425EcbdB2f88bD40F9c9e88Fd0a38D8a295a6Ef6",
2020
"SimpleAllowList": "0xb8CD58c748EbC58D6C1C0128C8e0734f439A0a1B",
2121
"SimpleDenyList": "0xFE865b98C9892f77F07e3d971c4783CF3C02E92d",
22-
"TransparentBudget": "0x5a526AfFEf33dDA34D6D62aD5C8b16CA617ac0Ce"
22+
"TransparentBudget": "0x69E5D1Cf8BDcE70eC3604B9e26C3aC61eCf19A1F"
2323
}

packages/evm/deploys/8453.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
"CGDAIncentive": "0x5706C507517c915CceD6528AB5C7f417bDaE5dD8",
66
"ERC20Incentive": "0x7856e771Dbaa54C68a152de58E8314bA3715E6B9",
77
"ERC20PeggedIncentive": "0xa556B15963EBFE06bB25067A865D43f56082A4d3",
8-
"ERC20PeggedVariableCriteriaIncentive": "0x15936a5F7413b902bff62A8bd0e10C1a04A43017",
8+
"ERC20PeggedVariableCriteriaIncentive": "0x27CEeCDFDFbC524d2753faAd0dA58b54f269bC69",
99
"ERC20PeggedVariableCriteriaIncentiveV2": "0x53bD3fE4F4f80E39B9a6C8a5EC67F4a33fe91E8f",
10-
"ERC20VariableCriteriaIncentive": "0x2564934f3cCFdD3320774bb3Fca32778c968B73b",
10+
"ERC20VariableCriteriaIncentive": "0x068D72D8058D65890bbcB7D65cd76740f2ED31e5",
1111
"ERC20VariableCriteriaIncentiveV2": "0x6d6B9f0a11Ac190E071c0A5A46702EC09306240f",
1212
"ERC20VariableIncentive": "0xBf307584B35d94067B2B75C9A11a74BFf84b2Ffd",
1313
"EventAction": "0xE2F3EFB000Cb5Fd912B931B92656E835b94ED70C",
1414
"LimitedSignerValidator": "0xCbfDeec39221D56398702dEe3309a88450633E52",
1515
"ManagedBudget": "0xb8a299905dC2d23Cd55E77AefC110b05F6165A49",
16-
"ManagedBudgetWithFees": "0x73159fcb61C8fDEe0A703368964C4C7AF5Bef86c",
16+
"ManagedBudgetWithFees": "0xe7E59DDB78E0544aB2f81519381736C0b8f27692",
1717
"OpenAllowList": "0x75F2370218D312E9072d8687812Eb647E087AE21",
1818
"PointsIncentive": "0x8EAF9538c6D1F171E7883df279010626C57fC2C1",
1919
"SignerValidator": "0x425EcbdB2f88bD40F9c9e88Fd0a38D8a295a6Ef6",
2020
"SimpleAllowList": "0xb8CD58c748EbC58D6C1C0128C8e0734f439A0a1B",
2121
"SimpleDenyList": "0xFE865b98C9892f77F07e3d971c4783CF3C02E92d",
22-
"TransparentBudget": "0x5a526AfFEf33dDA34D6D62aD5C8b16CA617ac0Ce"
22+
"TransparentBudget": "0x69E5D1Cf8BDcE70eC3604B9e26C3aC61eCf19A1F"
2323
}

packages/evm/deploys/84532.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
"CGDAIncentive": "0x5706C507517c915CceD6528AB5C7f417bDaE5dD8",
66
"ERC20Incentive": "0x7856e771Dbaa54C68a152de58E8314bA3715E6B9",
77
"ERC20PeggedIncentive": "0xa556B15963EBFE06bB25067A865D43f56082A4d3",
8-
"ERC20PeggedVariableCriteriaIncentive": "0x15936a5F7413b902bff62A8bd0e10C1a04A43017",
8+
"ERC20PeggedVariableCriteriaIncentive": "0x27CEeCDFDFbC524d2753faAd0dA58b54f269bC69",
99
"ERC20PeggedVariableCriteriaIncentiveV2": "0x53bD3fE4F4f80E39B9a6C8a5EC67F4a33fe91E8f",
10-
"ERC20VariableCriteriaIncentive": "0x2564934f3cCFdD3320774bb3Fca32778c968B73b",
10+
"ERC20VariableCriteriaIncentive": "0x068D72D8058D65890bbcB7D65cd76740f2ED31e5",
1111
"ERC20VariableCriteriaIncentiveV2": "0x6d6B9f0a11Ac190E071c0A5A46702EC09306240f",
1212
"ERC20VariableIncentive": "0xBf307584B35d94067B2B75C9A11a74BFf84b2Ffd",
1313
"EventAction": "0xE2F3EFB000Cb5Fd912B931B92656E835b94ED70C",
1414
"LimitedSignerValidator": "0xCbfDeec39221D56398702dEe3309a88450633E52",
1515
"ManagedBudget": "0xb8a299905dC2d23Cd55E77AefC110b05F6165A49",
16-
"ManagedBudgetWithFees": "0x73159fcb61C8fDEe0A703368964C4C7AF5Bef86c",
16+
"ManagedBudgetWithFees": "0xe7E59DDB78E0544aB2f81519381736C0b8f27692",
1717
"OpenAllowList": "0x75F2370218D312E9072d8687812Eb647E087AE21",
1818
"PointsIncentive": "0x8EAF9538c6D1F171E7883df279010626C57fC2C1",
1919
"SignerValidator": "0x425EcbdB2f88bD40F9c9e88Fd0a38D8a295a6Ef6",
2020
"SimpleAllowList": "0xb8CD58c748EbC58D6C1C0128C8e0734f439A0a1B",
2121
"SimpleDenyList": "0xFE865b98C9892f77F07e3d971c4783CF3C02E92d",
22-
"TransparentBudget": "0x5a526AfFEf33dDA34D6D62aD5C8b16CA617ac0Ce"
22+
"TransparentBudget": "0x69E5D1Cf8BDcE70eC3604B9e26C3aC61eCf19A1F"
2323
}

packages/evm/script/solidity/Deploy_Modules.s.sol

+62
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import {EventAction} from "contracts/actions/EventAction.sol";
1717
import {ERC20Incentive} from "contracts/incentives/ERC20Incentive.sol";
1818
import {ERC20PeggedIncentive} from "contracts/incentives/ERC20PeggedIncentive.sol";
1919
import {ERC20VariableIncentive} from "contracts/incentives/ERC20VariableIncentive.sol";
20+
import {ERC20VariableCriteriaIncentive} from "contracts/incentives/ERC20VariableCriteriaIncentive.sol";
2021
import {ERC20VariableCriteriaIncentiveV2} from "contracts/incentives/ERC20VariableCriteriaIncentiveV2.sol";
22+
import {ERC20PeggedVariableCriteriaIncentive} from "contracts/incentives/ERC20PeggedVariableCriteriaIncentive.sol";
2123
import {ERC20PeggedVariableCriteriaIncentiveV2} from "contracts/incentives/ERC20PeggedVariableCriteriaIncentiveV2.sol";
2224
import {CGDAIncentive} from "contracts/incentives/CGDAIncentive.sol";
2325
import {PointsIncentive} from "contracts/incentives/PointsIncentive.sol";
@@ -58,8 +60,10 @@ contract ModuleBaseDeployer is ScriptUtils {
5860

5961
_deployERC20Incentive(registry);
6062
_deployERC20VariableIncentive(registry);
63+
_deployERC20VariableCriteriaIncentive(registry);
6164
_deployERC20VariableCriteriaIncentiveV2(registry);
6265
_deployERC20PeggedIncentive(registry);
66+
_deployERC20PeggedVariableCriteriaIncentive(registry);
6367
_deployERC20PeggedVariableCriteriaIncentiveV2(registry);
6468
_deployCGDAIncentive(registry);
6569
_deployPointsIncentive(registry);
@@ -207,6 +211,35 @@ contract ModuleBaseDeployer is ScriptUtils {
207211
);
208212
}
209213

214+
function _deployERC20PeggedVariableCriteriaIncentive(
215+
BoostRegistry registry
216+
) internal returns (address erc20PeggedVariableCriteriaIncentive) {
217+
bytes memory initCode = type(ERC20PeggedVariableCriteriaIncentive)
218+
.creationCode;
219+
erc20PeggedVariableCriteriaIncentive = _getCreate2Address(initCode, "");
220+
console.log(
221+
"ERC20PeggedVariableCriteriaIncentive: ",
222+
erc20PeggedVariableCriteriaIncentive
223+
);
224+
deployJson = deployJsonKey.serialize(
225+
"ERC20PeggedVariableCriteriaIncentive",
226+
erc20PeggedVariableCriteriaIncentive
227+
);
228+
bool newDeploy = _deploy2(initCode, "");
229+
_registerIfNew(
230+
newDeploy,
231+
string(
232+
abi.encodePacked(
233+
"ERC20PeggedVariableCriteriaIncentive",
234+
erc20PeggedVariableCriteriaIncentive
235+
)
236+
),
237+
erc20PeggedVariableCriteriaIncentive,
238+
registry,
239+
ABoostRegistry.RegistryType.INCENTIVE
240+
);
241+
}
242+
210243
function _deployERC20PeggedVariableCriteriaIncentiveV2(
211244
BoostRegistry registry
212245
) internal returns (address erc20PeggedVariableCriteriaIncentiveV2) {
@@ -264,6 +297,35 @@ contract ModuleBaseDeployer is ScriptUtils {
264297
);
265298
}
266299

300+
function _deployERC20VariableCriteriaIncentive(
301+
BoostRegistry registry
302+
) internal returns (address erc20VariableCriteriaIncentive) {
303+
bytes memory initCode = type(ERC20VariableCriteriaIncentive)
304+
.creationCode;
305+
erc20VariableCriteriaIncentive = _getCreate2Address(initCode, "");
306+
console.log(
307+
"ERC20VariableCriteriaIncentive: ",
308+
erc20VariableCriteriaIncentive
309+
);
310+
deployJson = deployJsonKey.serialize(
311+
"ERC20VariableCriteriaIncentive",
312+
erc20VariableCriteriaIncentive
313+
);
314+
bool newDeploy = _deploy2(initCode, "");
315+
_registerIfNew(
316+
newDeploy,
317+
string(
318+
abi.encodePacked(
319+
"ERC20VariableCriteriaIncentive",
320+
erc20VariableCriteriaIncentive
321+
)
322+
),
323+
erc20VariableCriteriaIncentive,
324+
registry,
325+
ABoostRegistry.RegistryType.INCENTIVE
326+
);
327+
}
328+
267329
function _deployERC20VariableCriteriaIncentiveV2(
268330
BoostRegistry registry
269331
) internal returns (address erc20VariableCriteriaIncentiveV2) {

0 commit comments

Comments
 (0)