@ballkidz/defifa 0.0.30 → 0.0.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ballkidz/defifa",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "25.9.0"
@@ -31,7 +31,7 @@
31
31
  "remappings.txt"
32
32
  ],
33
33
  "dependencies": {
34
- "@bananapus/721-hook-v6": "0.0.43",
34
+ "@bananapus/721-hook-v6": "0.0.46",
35
35
  "@bananapus/address-registry-v6": "0.0.25",
36
36
  "@bananapus/core-v6": "0.0.44",
37
37
  "@bananapus/permission-ids-v6": "0.0.22",
@@ -285,7 +285,7 @@ contract DefifaHook is JB721Hook, Ownable, IDefifaHook {
285
285
  )
286
286
  {
287
287
  // Make sure (fungible) project tokens aren't also being cashed out.
288
- if (context.cashOutCount > 0) revert JB721Hook_UnexpectedTokenCashedOut();
288
+ if (context.cashOutCount > 0) revert JB721Hook_UnexpectedTokenCashedOut({cashOutCount: context.cashOutCount});
289
289
 
290
290
  // Fetch the cash out hook metadata using the corresponding metadata ID.
291
291
  (bool metadataExists, bytes memory metadata) = JBMetadataResolver.getDataFor({
@@ -466,7 +466,7 @@ contract DefifaHook is JB721Hook, Ownable, IDefifaHook {
466
466
  // Make sure the caller is a terminal of the project, and that the call is being made on behalf of an
467
467
  // interaction with the correct project.
468
468
  if (msg.value != 0 || !_isProjectTerminal(projectId) || context.projectId != projectId) {
469
- revert JB721Hook_InvalidPay();
469
+ revert JB721Hook_InvalidPay({caller: msg.sender, contextProjectId: context.projectId, projectId: projectId});
470
470
  }
471
471
 
472
472
  // Process the payment.
@@ -645,7 +645,9 @@ contract DefifaHook is JB721Hook, Ownable, IDefifaHook {
645
645
  // Make sure the caller is a terminal of the project, and that the call is being made on behalf of an
646
646
  // interaction with the correct project.
647
647
  if (msg.value != 0 || !_isProjectTerminal(PROJECT_ID) || context.projectId != PROJECT_ID) {
648
- revert JB721Hook_InvalidCashOut();
648
+ revert JB721Hook_InvalidCashOut({
649
+ caller: msg.sender, contextProjectId: context.projectId, projectId: PROJECT_ID, msgValue: msg.value
650
+ });
649
651
  }
650
652
 
651
653
  // Fetch the cash out hook metadata using the corresponding metadata ID.