Skip to content

feat: implement contract events, token auth, cross-contract calls and gallery filtering - #772

Merged
0xVida merged 1 commit into
0xVida:mainfrom
TeeYml:main
May 26, 2026
Merged

0xVida merged 1 commit into
0xVida:mainfrom
TeeYml:main

Conversation

@TeeYml

@TeeYml TeeYml commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR implements several Soroban sample contracts and adds a category filter to the frontend Community Templates Gallery. It also resolves compiler syntax issues and test-suite configurations so that all tests pass.

Features Implemented

  1. Hello World Event Emission

  2. Admin Auth in Token Example

    • Added Balance(Address) storage key mapping in TokenContract.
    • Implemented mint, set_admin, and balance methods enforcing proper admin signature validation (require_auth).
    • Added integration tests verifying standard admin initialization, minting, and robust error-handling/panic prevention when unauthorized accounts attempt admin actions. closes [Smart Contracts] Add Admin Auth to 'Token' Example #761
  3. Cross-Contract Call Example

    • Created a new sample contract folder cross_contract with lib.rs, test.rs, and Cargo.toml.
    • Implemented CalleeContract with an addition method and CallerContract which performs a cross-contract invocation via CalleeContractClient. Closes [Smart Contracts] Cross-Contract Call Example #762
  4. Community Templates Category Filter

    • Added category filters (DeFi, Utility, DAO) to the template schemas inside frontend/src/data/community-templates.json.
    • Updated frontend/src/components/templates/TemplateGallery.tsx with responsive, animated filtering buttons that instantaneously update the gallery selection state. Closes [Frontend] Community Templates Category Filter #763

Internal Fixes & Infrastructure

  • Compiler Fixes: Resolved a missing closing bracket in the children array of the increment folder in ide/src/lib/sample-contracts.ts.
  • XDR Serialization Adjustments: Updated the ide/src/utils/XdrUtils.ts helpers to specify standard 32-bit types (i32) and normalize parsed BigInt numbers inside unit test contexts.
  • Test Suite Mocks: Corrected dynamic require statements using path aliases inside Sidebar.test.tsx and mocked transaction base64 validation checks inside transactionExecution.test.ts.

Verification Results

  • TypeScript Compilation: ide/ and frontend/ typechecks compile successfully with 0 errors.
  • Vitest Suite: All 594 tests passed.

@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

@TeeYml is attempting to deploy a commit to the vidatg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented May 26, 2026

Copy link
Copy Markdown

@TeeYml Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@0xVida
0xVida merged commit 34c223f into 0xVida:main May 26, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants