@croptop/core-v6 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/foundry.toml +1 -1
- package/package.json +9 -9
- package/script/ConfigureFeeProject.s.sol +18 -16
- package/script/Deploy.s.sol +1 -1
- package/script/helpers/CroptopDeploymentLib.sol +1 -1
- package/src/CTDeployer.sol +1 -1
- package/src/CTProjectOwner.sol +1 -1
- package/src/CTPublisher.sol +1 -1
- package/test/CTPublisher.t.sol +1 -1
- package/test/CroptopAttacks.t.sol +1 -1
package/foundry.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@croptop/core-v6",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"artifacts": "source ./.env && npx sphinx artifacts --org-id 'ea165b21-7cdc-4d7b-be59-ecdd4c26bee4' --project-name 'croptop-core-v5'"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@bananapus/721-hook-v6": "^0.0.
|
|
20
|
-
"@bananapus/buyback-hook-v6": "^0.0.
|
|
21
|
-
"@bananapus/core-v6": "^0.0.
|
|
22
|
-
"@bananapus/ownable-v6": "^0.0.
|
|
23
|
-
"@bananapus/permission-ids-v6": "^0.0.
|
|
24
|
-
"@bananapus/suckers-v6": "^0.0.
|
|
25
|
-
"@bananapus/
|
|
19
|
+
"@bananapus/721-hook-v6": "^0.0.7",
|
|
20
|
+
"@bananapus/buyback-hook-v6": "^0.0.4",
|
|
21
|
+
"@bananapus/core-v6": "^0.0.5",
|
|
22
|
+
"@bananapus/ownable-v6": "^0.0.4",
|
|
23
|
+
"@bananapus/permission-ids-v6": "^0.0.3",
|
|
24
|
+
"@bananapus/suckers-v6": "^0.0.4",
|
|
25
|
+
"@bananapus/router-terminal-v6": "^0.0.6",
|
|
26
26
|
"@openzeppelin/contracts": "^5.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@rev-net/core-v6": "^0.0.
|
|
29
|
+
"@rev-net/core-v6": "^0.0.3",
|
|
30
30
|
"@sphinx-labs/plugins": "^0.33.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.26;
|
|
3
3
|
|
|
4
4
|
import "@bananapus/721-hook-v6/script/helpers/Hook721DeploymentLib.sol";
|
|
5
5
|
import "@bananapus/core-v6/script/helpers/CoreDeploymentLib.sol";
|
|
6
6
|
import "@bananapus/suckers-v6/script/helpers/SuckerDeploymentLib.sol";
|
|
7
|
-
import "@bananapus/
|
|
7
|
+
import "@bananapus/router-terminal-v6/script/helpers/RouterTerminalDeploymentLib.sol";
|
|
8
8
|
import "@rev-net/core-v6/script/helpers/RevnetCoreDeploymentLib.sol";
|
|
9
9
|
import "./helpers/CroptopDeploymentLib.sol";
|
|
10
10
|
|
|
@@ -53,8 +53,8 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
|
|
|
53
53
|
RevnetCoreDeployment revnet;
|
|
54
54
|
/// @notice tracks the deployment of the sucker contracts for the chain we are deploying to.
|
|
55
55
|
SuckerDeployment suckers;
|
|
56
|
-
/// @notice tracks the deployment of the
|
|
57
|
-
|
|
56
|
+
/// @notice tracks the deployment of the router terminal.
|
|
57
|
+
RouterTerminalDeployment routerTerminal;
|
|
58
58
|
|
|
59
59
|
// @notice set this to a non-zero value to re-use an existing projectID. Having it set to 0 will deploy a new
|
|
60
60
|
// fee_project.
|
|
@@ -105,10 +105,11 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
|
|
|
105
105
|
suckers = SuckerDeploymentLib.getDeployment(
|
|
106
106
|
vm.envOr("NANA_SUCKERS_DEPLOYMENT_PATH", string("node_modules/@bananapus/suckers-v6/deployments/"))
|
|
107
107
|
);
|
|
108
|
-
// Get the deployment addresses for the
|
|
109
|
-
|
|
108
|
+
// Get the deployment addresses for the router terminal contracts for this chain.
|
|
109
|
+
routerTerminal = RouterTerminalDeploymentLib.getDeployment(
|
|
110
110
|
vm.envOr(
|
|
111
|
-
"
|
|
111
|
+
"NANA_ROUTER_TERMINAL_DEPLOYMENT_PATH",
|
|
112
|
+
string("node_modules/@bananapus/router-terminal-v6/deployments/")
|
|
112
113
|
)
|
|
113
114
|
);
|
|
114
115
|
|
|
@@ -140,7 +141,7 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
|
|
|
140
141
|
terminalConfigurations[0] =
|
|
141
142
|
JBTerminalConfig({terminal: core.terminal, accountingContextsToAccept: accountingContextsToAccept});
|
|
142
143
|
terminalConfigurations[1] = JBTerminalConfig({
|
|
143
|
-
terminal: IJBTerminal(address(
|
|
144
|
+
terminal: IJBTerminal(address(routerTerminal.registry)),
|
|
144
145
|
accountingContextsToAccept: new JBAccountingContext[](0)
|
|
145
146
|
});
|
|
146
147
|
|
|
@@ -325,14 +326,15 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
|
|
|
325
326
|
core.projects.approve(address(revnet.basic_deployer), FEE_PROJECT_ID);
|
|
326
327
|
|
|
327
328
|
// Deploy the NANA fee project.
|
|
328
|
-
revnet.basic_deployer
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
329
|
+
revnet.basic_deployer
|
|
330
|
+
.deployWith721sFor({
|
|
331
|
+
revnetId: FEE_PROJECT_ID,
|
|
332
|
+
configuration: feeProjectConfig.configuration,
|
|
333
|
+
terminalConfigurations: feeProjectConfig.terminalConfigurations,
|
|
334
|
+
suckerDeploymentConfiguration: feeProjectConfig.suckerDeploymentConfiguration,
|
|
335
|
+
tiered721HookConfiguration: feeProjectConfig.hookConfiguration,
|
|
336
|
+
allowedPosts: feeProjectConfig.allowedPosts
|
|
337
|
+
});
|
|
336
338
|
}
|
|
337
339
|
|
|
338
340
|
function _isDeployed(
|
package/script/Deploy.s.sol
CHANGED
package/src/CTDeployer.sol
CHANGED
package/src/CTProjectOwner.sol
CHANGED
package/src/CTPublisher.sol
CHANGED
package/test/CTPublisher.t.sol
CHANGED