@ballkidz/defifa 0.0.40 → 0.0.42
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 +7 -16
- package/references/operations.md +32 -0
- package/references/runtime.md +43 -0
- package/script/Deploy.s.sol +2 -1
- package/src/DefifaDeployer.sol +58 -15
- package/src/interfaces/IDefifaDeployer.sol +22 -0
- package/ADMINISTRATION.md +0 -79
- package/ARCHITECTURE.md +0 -131
- package/AUDIT_INSTRUCTIONS.md +0 -100
- package/CHANGELOG.md +0 -40
- package/CRYPTO_ECON.md +0 -1190
- package/RISKS.md +0 -116
- package/SKILLS.md +0 -46
- package/STYLE_GUIDE.md +0 -565
- package/USER_JOURNEYS.md +0 -169
package/CHANGELOG.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 0.0.35 — Bump v6 deps to nana-core-v6 0.0.53 cohort
|
|
4
|
-
|
|
5
|
-
- `@bananapus/core-v6`: `^0.0.48 → ^0.0.53` ([PR #145](https://github.com/Bananapus/nana-core-v6/pull/145)).
|
|
6
|
-
- `@bananapus/721-hook-v6`: `^0.0.46 → ^0.0.50`.
|
|
7
|
-
- `@bananapus/permission-ids-v6`: `^0.0.22 → ^0.0.25`.
|
|
8
|
-
- All `JBRulesetMetadata` literals (src + test) patched to include `pauseCrossProjectFeeFreeInflows: false`.
|
|
9
|
-
|
|
10
|
-
## Scope
|
|
11
|
-
|
|
12
|
-
This repo was not part of the deployed v5 ecosystem that the top-level changelog measures, so it is excluded from the ecosystem delta.
|
|
13
|
-
|
|
14
|
-
This file instead describes the current v6 repo at a high level and the broad migration direction from the older `defifa-v5` codebase.
|
|
15
|
-
|
|
16
|
-
## Current v6 surface
|
|
17
|
-
|
|
18
|
-
- `DefifaDeployer`
|
|
19
|
-
- `DefifaHook`
|
|
20
|
-
- `DefifaGovernor`
|
|
21
|
-
- `DefifaProjectOwner`
|
|
22
|
-
- `DefifaTokenUriResolver`
|
|
23
|
-
|
|
24
|
-
## Summary
|
|
25
|
-
|
|
26
|
-
- The repo is now built directly on the v6 Juicebox stack, including the v6 core and 721-hook packages.
|
|
27
|
-
- The v6 surface is split across dedicated deployer, hook, governor, project-owner, and token-uri contracts, with dedicated regression and review test coverage around governance, fee accounting, attestations, and lifecycle edge cases.
|
|
28
|
-
- Solidity and tooling were upgraded to the v6 baseline around `0.8.28`.
|
|
29
|
-
|
|
30
|
-
## Local review remediations
|
|
31
|
-
|
|
32
|
-
- Reserve-minted NFTs are now excluded from refund calculations during MINT, REFUND, and NO_CONTEST phases. A public `isReserveMint` mapping tracks which tokens were created via tier reserve frequency rather than paid for. `beforeCashOutRecordedWith` subtracts their tier price from `cumulativeMintPrice`, preventing reserve beneficiaries from withdrawing funds they never contributed.
|
|
33
|
-
- Reserve minting now caps `count` by `adjustedPendingReservesFor(tierId)` inside `DefifaHook.mintReservesFor`. Without the cap, a caller could request more reserves than the refund-adjusted pending balance, inflating `totalMintCost` from already-refunded mints and breaking the supply-vs-pending-reserves invariant that fee-token claims rely on.
|
|
34
|
-
- One-tier games now revert at launch with `DefifaDeployer_InvalidGameConfiguration` if `scorecardTimeout == 0`. A one-tier game cannot reach quorum (the BWA multiplier reduces the sole tier's power to zero), so a zero timeout would leave funds permanently locked with no exit path. Enforcement moves this from a launcher-side responsibility (previously documented in `RISKS.md §8.6`) to a contract-level guarantee.
|
|
35
|
-
- `DefifaHook.mintReservesFor` now reverts with `DefifaHook_ReservedTokenMintingBlockedInNoContest` while the game is in `NO_CONTEST`. Reserve mints inflate `totalMintCost` so reserved recipients can claim fee tokens; without the block, a game that failed `minParticipation` could be revived back to SCORING via free notional face value before `triggerNoContestFor` latches the failure.
|
|
36
|
-
|
|
37
|
-
## Migration notes
|
|
38
|
-
|
|
39
|
-
- Do not treat this repo as part of the deployed v5-to-v6 ecosystem delta.
|
|
40
|
-
- If you need a Defifa-specific migration, rebuild from the current v6 ABIs and current contract set instead of relying on the ecosystem summary.
|