Skip to content

Feat/1444 space token purchase proposal#1995

Draft
DSanich wants to merge 21 commits intomainfrom
feat/1444-space-token-purchase-proposal
Draft

Feat/1444 space token purchase proposal#1995
DSanich wants to merge 21 commits intomainfrom
feat/1444-space-token-purchase-proposal

Conversation

@DSanich
Copy link
Copy Markdown
Member

@DSanich DSanich commented Mar 11, 2026

No description provided.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 11, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3d95bee9-0ae1-46ba-9247-d103a2cdee1f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/1444-space-token-purchase-proposal

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@DSanich DSanich force-pushed the feat/1444-space-token-purchase-proposal branch 4 times, most recently from c27b08f to 5e08178 Compare March 24, 2026 11:13
@DSanich DSanich linked an issue Mar 24, 2026 that may be closed by this pull request
13 tasks
DSanich added 11 commits March 24, 2026 17:28
Create and link on-chain token purchase proposals, decode configureTokenSale transactions, and render proposal badges/details for Token Purchase in governance views.

Made-with: Cursor
Filter buyable profile tokens by active sale and canAccountPurchase checks, add approve-buy orchestration, and compute purchase limits with treasury balance to match product requirements.

Made-with: Cursor
Show token symbol with icon in Token Purchase details and keep
purchase price value on a single line for consistent UI.

Made-with: Cursor
Include ERC20 approve transaction before configureTokenSale so the token contract has allowance to transfer sale inventory on execution.

Made-with: Cursor
Fix token purchase action ordering, route resubmit to the correct template, gate setup sections by activation, and align currency behavior with treasury token settings. Add i18n keys for the new Space Token Purchase UI copy in English and German.

Made-with: Cursor
Clean up Buy Space Tokens profile UI by removing debug details, reusing standard recipient sections, and placing the Space Token purchase action above Buy HYPHA in profile assets.

Made-with: Cursor
@DSanich DSanich force-pushed the feat/1444-space-token-purchase-proposal branch from cf849b7 to 3ca0116 Compare March 24, 2026 14:28
cursoragent and others added 10 commits March 28, 2026 18:45
Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
…perience-66eb

fix: token purchase resubmit persistence and one-click buy UX
…hain

Re-apply resubmit session data even when marked applied so returning to
the create flow keeps title and token purchase fields. When purchase is
active, fill price, currency, and available amount from getTokenSaleDetails.

Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
Read getTokenSaleDetails whenever a token is selected and set
activatePurchase from the non-zero payment token rule. Hydrate price
fields when USDC/EURC; keep toggle accurate for inactive sales.

Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
The decaying space token has no saleEnabled bool; activation is stored
as the payment token address. Read paymentToken() for the toggle and
getTokenSaleDetails for price and inventory.

Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
…rns 0

Allow tokens available >= 0 in schema; require price, currency, and amount
when purchase is active via superRefine. Re-validate on invalid submit so
errors surface when Publish is clicked.

Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
schemaSpaceTokenPurchase became ZodEffects after superRefine, which broke
.build extend in SpaceTokenPurchaseForm and failed web CI typecheck.
Export schemaSpaceTokenPurchaseObject and refineSpaceTokenPurchaseWhenActive
so the form extends label then applies the same refine.

Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
…-data-f0de

fix: restore space token purchase resubmit data and hydrate active sale from chain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Space token purchase proposal

3 participants