@ballkidz/defifa 0.0.42 → 0.0.44
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.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "25.9.0"
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"lib/typeface/contracts/interfaces/ITypeface.sol"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@bananapus/721-hook-v6": "^0.0.
|
|
25
|
+
"@bananapus/721-hook-v6": "^0.0.55",
|
|
26
26
|
"@bananapus/address-registry-v6": "^0.0.26",
|
|
27
|
-
"@bananapus/core-v6": "^0.0.
|
|
28
|
-
"@bananapus/permission-ids-v6": "^0.0.
|
|
27
|
+
"@bananapus/core-v6": "^0.0.60",
|
|
28
|
+
"@bananapus/permission-ids-v6": "^0.0.27",
|
|
29
29
|
"@openzeppelin/contracts": "5.6.1",
|
|
30
30
|
"@prb/math": "4.1.1",
|
|
31
31
|
"scripty.sol": "2.1.1"
|
package/src/DefifaDeployer.sol
CHANGED
|
@@ -382,7 +382,7 @@ contract DefifaDeployer is IDefifaDeployer, IDefifaGamePhaseReporter, IDefifaGam
|
|
|
382
382
|
// Payout failed — fee stays in pot. Reset to 0 so currentGamePotOf
|
|
383
383
|
// doesn't double-count the fee.
|
|
384
384
|
fulfilledCommitmentsOf[gameId] = 0;
|
|
385
|
-
emit CommitmentPayoutFailed({gameId: gameId, amount: feeAmount, reason: reason});
|
|
385
|
+
emit CommitmentPayoutFailed({gameId: gameId, amount: feeAmount, reason: reason, caller: msg.sender});
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
// Queue the final ruleset and emit.
|
package/src/DefifaGovernor.sol
CHANGED
|
@@ -264,7 +264,9 @@ contract DefifaGovernor is Ownable, IDefifaGovernor {
|
|
|
264
264
|
_quorumReachedAtOf[gameId][scorecardId] = 0;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
emit AttestationRevoked({
|
|
267
|
+
emit AttestationRevoked({
|
|
268
|
+
gameId: gameId, scorecardId: scorecardId, account: msg.sender, weight: weight, caller: msg.sender
|
|
269
|
+
});
|
|
268
270
|
}
|
|
269
271
|
|
|
270
272
|
/// @notice Submits a scorecard to be attested to.
|
package/src/DefifaHook.sol
CHANGED
|
@@ -889,7 +889,7 @@ contract DefifaHook is JB721Hook, Ownable, IDefifaHook {
|
|
|
889
889
|
// Store the new delegatee
|
|
890
890
|
_tierDelegation[account][tierId] = delegatee;
|
|
891
891
|
|
|
892
|
-
emit DelegateChanged({delegator: account, fromDelegate: oldDelegate, toDelegate: delegatee});
|
|
892
|
+
emit DelegateChanged({delegator: account, fromDelegate: oldDelegate, toDelegate: delegatee, caller: msg.sender});
|
|
893
893
|
|
|
894
894
|
// Move the attestations.
|
|
895
895
|
_moveTierDelegateAttestations({
|
|
@@ -1119,7 +1119,7 @@ contract DefifaHook is JB721Hook, Ownable, IDefifaHook {
|
|
|
1119
1119
|
if (toDelegate == address(0) && to != address(0)) {
|
|
1120
1120
|
toDelegate = to;
|
|
1121
1121
|
_tierDelegation[to][tierId] = to;
|
|
1122
|
-
emit DelegateChanged({delegator: to, fromDelegate: address(0), toDelegate: to});
|
|
1122
|
+
emit DelegateChanged({delegator: to, fromDelegate: address(0), toDelegate: to, caller: msg.sender});
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
1125
|
// Move delegated attestations.
|
|
@@ -18,7 +18,8 @@ interface IDefifaDeployer {
|
|
|
18
18
|
/// @param gameId The ID of the game that was fulfilled.
|
|
19
19
|
/// @param amount The amount that failed to pay out.
|
|
20
20
|
/// @param reason The revert reason bytes from the failed payout.
|
|
21
|
-
|
|
21
|
+
/// @param caller The address that triggered fulfillment.
|
|
22
|
+
event CommitmentPayoutFailed(uint256 indexed gameId, uint256 amount, bytes reason, address caller);
|
|
22
23
|
|
|
23
24
|
/// @notice Emitted when a game's commitments have been fulfilled.
|
|
24
25
|
/// @param gameId The ID of the fulfilled game.
|
|
@@ -54,7 +54,10 @@ interface IDefifaGovernor {
|
|
|
54
54
|
/// @param scorecardId The ID of the scorecard.
|
|
55
55
|
/// @param account The address whose attestation was revoked.
|
|
56
56
|
/// @param weight The revoked attestation weight.
|
|
57
|
-
|
|
57
|
+
/// @param caller The address that revoked the attestation.
|
|
58
|
+
event AttestationRevoked(
|
|
59
|
+
uint256 indexed gameId, uint256 indexed scorecardId, address account, uint256 weight, address caller
|
|
60
|
+
);
|
|
58
61
|
|
|
59
62
|
/// @notice The number of attestations for a scorecard.
|
|
60
63
|
/// @param gameId The ID of the game.
|
|
@@ -54,7 +54,10 @@ interface IDefifaHook is IJB721Hook {
|
|
|
54
54
|
/// @param delegator The address changing its delegate.
|
|
55
55
|
/// @param fromDelegate The previous delegate.
|
|
56
56
|
/// @param toDelegate The new delegate.
|
|
57
|
-
|
|
57
|
+
/// @param caller The address that triggered the delegate change.
|
|
58
|
+
event DelegateChanged(
|
|
59
|
+
address indexed delegator, address indexed fromDelegate, address indexed toDelegate, address caller
|
|
60
|
+
);
|
|
58
61
|
|
|
59
62
|
/// @notice Emitted when claimable game tokens are claimed.
|
|
60
63
|
/// @param beneficiary The address receiving the claimed tokens.
|