@croptop/core-v6 0.0.18 → 0.0.19

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.
Files changed (26) hide show
  1. package/CHANGE_LOG.md +2 -2
  2. package/package.json +1 -1
  3. package/deployments/croptop-core-v5/arbitrum/CTDeployer.json +0 -1896
  4. package/deployments/croptop-core-v5/arbitrum/CTProjectOwner.json +0 -186
  5. package/deployments/croptop-core-v5/arbitrum/CTPublisher.json +0 -738
  6. package/deployments/croptop-core-v5/arbitrum_sepolia/CTDeployer.json +0 -1883
  7. package/deployments/croptop-core-v5/arbitrum_sepolia/CTProjectOwner.json +0 -186
  8. package/deployments/croptop-core-v5/arbitrum_sepolia/CTPublisher.json +0 -738
  9. package/deployments/croptop-core-v5/base/CTDeployer.json +0 -1908
  10. package/deployments/croptop-core-v5/base/CTProjectOwner.json +0 -190
  11. package/deployments/croptop-core-v5/base/CTPublisher.json +0 -741
  12. package/deployments/croptop-core-v5/base_sepolia/CTDeployer.json +0 -1894
  13. package/deployments/croptop-core-v5/base_sepolia/CTProjectOwner.json +0 -190
  14. package/deployments/croptop-core-v5/base_sepolia/CTPublisher.json +0 -741
  15. package/deployments/croptop-core-v5/ethereum/CTDeployer.json +0 -1894
  16. package/deployments/croptop-core-v5/ethereum/CTProjectOwner.json +0 -190
  17. package/deployments/croptop-core-v5/ethereum/CTPublisher.json +0 -741
  18. package/deployments/croptop-core-v5/optimism/CTDeployer.json +0 -1894
  19. package/deployments/croptop-core-v5/optimism/CTProjectOwner.json +0 -190
  20. package/deployments/croptop-core-v5/optimism/CTPublisher.json +0 -741
  21. package/deployments/croptop-core-v5/optimism_sepolia/CTDeployer.json +0 -1894
  22. package/deployments/croptop-core-v5/optimism_sepolia/CTProjectOwner.json +0 -190
  23. package/deployments/croptop-core-v5/optimism_sepolia/CTPublisher.json +0 -741
  24. package/deployments/croptop-core-v5/sepolia/CTDeployer.json +0 -1894
  25. package/deployments/croptop-core-v5/sepolia/CTProjectOwner.json +0 -190
  26. package/deployments/croptop-core-v5/sepolia/CTPublisher.json +0 -741
package/CHANGE_LOG.md CHANGED
@@ -86,8 +86,8 @@ Posts can now include a `splitPercent` and an array of `splits` (JBSplit[]) that
86
86
  - **v5:** When minting from an existing tier, `totalPrice` was accumulated using `post.price` (user-supplied).
87
87
  - **v6:** When minting from an existing tier, `totalPrice` is accumulated using the actual tier price fetched from `store.tierOf()`. This prevents a caller from passing `price=0` for an existing tier to evade fees.
88
88
 
89
- ### CTDeployer as Data Hook Proxy
90
- - The CTDeployer now implements the data hook pattern directly, acting as a proxy that forwards `beforePayRecordedWith` and `beforeCashOutRecordedWith` to the stored `dataHookOf[projectId]`. For cash outs from suckers (verified via `SUCKER_REGISTRY.isSuckerOf`), it returns 0% tax rate, enabling sucker-based cross-chain operations without cash out taxes.
89
+ ### CTDeployer Data Hook Proxy Activated
90
+ - The CTDeployer implemented the data hook proxy pattern in v5 as well -- it had `beforePayRecordedWith`, `beforeCashOutRecordedWith`, `hasMintPermissionFor`, and the `dataHookOf` mapping -- but `deployProjectFor` set `metadata.dataHook = address(hook)` (the 721 hook directly), so the proxy methods were never called. In v6, `deployProjectFor` sets `metadata.dataHook = address(this)`, `cashOutTaxRate = MAX_CASH_OUT_TAX_RATE`, and `useDataHookForCashOut = true`, activating the proxy. This routes all pay and cash out data hook calls through CTDeployer, which forwards them to the stored `dataHookOf[projectId]` while intercepting sucker cash outs (verified via `SUCKER_REGISTRY.isSuckerOf`) to return a 0% tax rate for cross-chain operations.
91
91
 
92
92
  ---
93
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croptop/core-v6",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",