@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  [profile.default]
2
- solc = '0.8.23'
2
+ solc = '0.8.26'
3
3
  evm_version = 'paris'
4
4
  optimizer_runs = 100000000
5
5
  libs = ["node_modules", "lib"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croptop/core-v6",
3
- "version": "0.0.4",
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.3",
20
- "@bananapus/buyback-hook-v6": "^0.0.2",
21
- "@bananapus/core-v6": "^0.0.4",
22
- "@bananapus/ownable-v6": "^0.0.2",
23
- "@bananapus/permission-ids-v6": "^0.0.2",
24
- "@bananapus/suckers-v6": "^0.0.2",
25
- "@bananapus/swap-terminal-v6": "^0.0.2",
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.2",
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.23;
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/swap-terminal-v6/script/helpers/SwapTerminalDeploymentLib.sol";
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 swap terminal.
57
- SwapTerminalDeployment swapTerminal;
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 swap terminal contracts for this chain.
109
- swapTerminal = SwapTerminalDeploymentLib.getDeployment(
108
+ // Get the deployment addresses for the router terminal contracts for this chain.
109
+ routerTerminal = RouterTerminalDeploymentLib.getDeployment(
110
110
  vm.envOr(
111
- "NANA_SWAP_TERMINAL_DEPLOYMENT_PATH", string("node_modules/@bananapus/swap-terminal-v6/deployments/")
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(swapTerminal.registry)),
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.deployWith721sFor({
329
- revnetId: FEE_PROJECT_ID,
330
- configuration: feeProjectConfig.configuration,
331
- terminalConfigurations: feeProjectConfig.terminalConfigurations,
332
- suckerDeploymentConfiguration: feeProjectConfig.suckerDeploymentConfiguration,
333
- tiered721HookConfiguration: feeProjectConfig.hookConfiguration,
334
- allowedPosts: feeProjectConfig.allowedPosts
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(
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: MIT
2
- pragma solidity 0.8.23;
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";
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: MIT
2
- pragma solidity 0.8.23;
2
+ pragma solidity 0.8.26;
3
3
 
4
4
  import {stdJson} from "forge-std/Script.sol";
5
5
  import {Vm} from "forge-std/Vm.sol";
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: MIT
2
- pragma solidity 0.8.23;
2
+ pragma solidity 0.8.26;
3
3
 
4
4
  import {JBPermissioned} from "@bananapus/core-v6/src/abstract/JBPermissioned.sol";
5
5
  import {IJBRulesetDataHook} from "@bananapus/core-v6/src/interfaces/IJBRulesetDataHook.sol";
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: MIT
2
- pragma solidity 0.8.23;
2
+ pragma solidity 0.8.26;
3
3
 
4
4
  import {IJBPermissions} from "@bananapus/core-v6/src/interfaces/IJBPermissions.sol";
5
5
  import {IJBProjects} from "@bananapus/core-v6/src/interfaces/IJBProjects.sol";
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: MIT
2
- pragma solidity 0.8.23;
2
+ pragma solidity 0.8.26;
3
3
 
4
4
  import {IJB721TiersHook} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHook.sol";
5
5
  import {JB721Tier} from "@bananapus/721-hook-v6/src/structs/JB721Tier.sol";
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: MIT
2
- pragma solidity 0.8.23;
2
+ pragma solidity 0.8.26;
3
3
 
4
4
  import "forge-std/Test.sol";
5
5
 
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: MIT
2
- pragma solidity 0.8.23;
2
+ pragma solidity 0.8.26;
3
3
 
4
4
  import "forge-std/Test.sol";
5
5