Closed ponderingdemocritus closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
eternum | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 15, 2024 1:49am |
[!CAUTION]
Review failed
The pull request is closed.
This pull request introduces significant changes across multiple files, primarily focusing on the restructuring of contract definitions, environment configurations, and UI components. Key updates include modifications to the manifest_dev.json
file, which enhances contract functionality by adding new identifiers and updating existing fields. The torii.toml
file sees the addition and removal of ERC721 contract entries. Environment variables in the .env
file are updated, and several UI components are refactored for improved structure and styling. Additionally, the integration of the sonner
library replaces react-toastify
for notifications, indicating a shift in dependency management.
File | Change Summary |
---|---|
contracts/manifest_dev.json |
Updated class_hash , address , and added entrypoints in the world section; modified multiple contracts with new identifiers and expanded abi sections. |
contracts/torii.toml |
Removed two ERC721 entries and added two new ERC721 contract entries. |
landing/.env |
Updated VITE_SEASON_PASS_ADDRESS , VITE_REALMS_ADDRESS , and VITE_LORDS_ADDRESS with new values. |
landing/dojoConfig.ts |
Simplified import paths for manifest files. |
landing/index.html |
Changed document title from "Vite + React + TS" to "Eternum Center". |
landing/package.json |
Updated multiple package versions and added next-themes ; removed react-toastify and added sonner . |
landing/src/components/layouts/dashboard-layout.tsx |
Modified JSX structure and CSS classes for the dashboard layout. |
landing/src/components/modules/app-sidebar.tsx |
Removed unused import and modified items array, renaming "Mint" to "Create". |
landing/src/components/modules/filters.tsx |
Replaced static framework options with dynamic list from ResourcesIds . |
landing/src/components/modules/sidebar.tsx |
Removed Sidebar component. |
landing/src/components/modules/top-navigation.tsx |
Updated account management logic and modified rendering logic. |
landing/src/components/providers/Starknet.tsx |
Enhanced StarknetProvider with new configuration options and updated import statements. |
landing/src/components/ui/button.tsx |
Modified cta variant background gradient. |
landing/src/components/ui/sonner.tsx |
Introduced new Toaster component for notifications. |
landing/src/dojo/createSystemCalls.ts |
Updated error handling and task management logic, replacing react-toastify with sonner . |
landing/src/hooks/context/DojoContext.tsx |
Enhanced account management logic and updated context exports. |
landing/src/hooks/useAccountOrBurner.tsx |
Integrated DojoContext and updated account management logic. |
landing/src/hooks/useMintSeasonPass.tsx |
Simplified account management logic and replaced react-toastify with sonner . |
landing/src/hooks/useMintTestRealm.tsx |
Streamlined account management and removed unused imports. |
landing/src/main.tsx |
Added new imports for providers and updated rendering logic. |
landing/src/routes/__root.tsx |
Replaced ToastContainer from react-toastify with Toaster component. |
landing/src/routes/mint.lazy.tsx |
Updated account management logic and query keys for clarity. |
readme.md |
Added command for indexer setup process. |
scripts/indexer.sh |
Modified to include --external argument and updated logic for deploying contracts. |
sdk/packages/eternum/src/config/index.ts |
Commented out setProductionConfig(config) in setup method. |
sequenceDiagram
participant User
participant App
participant DojoContext
participant StarknetProvider
User->>App: Initialize application
App->>DojoContext: Access account information
DojoContext->>User: Provide account details
App->>StarknetProvider: Set up provider with account
StarknetProvider->>User: Connect to StarkNet
.env
file, which are also reflected in this PR.DojoContext.tsx
related to environment handling and account selection logic, relevant to changes made in this PR.🐇 In the land of code where rabbits play,
New contracts bloom and old ones sway.
With a hop and a skip, the sidebar's light,
The Toaster now glows, bringing joy and delight.
From ERC721 to themes anew,
A magical update, just for you! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Failed to generate code suggestions for PR
Summary by CodeRabbit
Release Notes
New Features
Toaster
component for enhanced toast notifications.Mint
component to utilize dynamic account information and improved data handling.entrypoints
in contract definitions for expanded functionality.RealmMintDialog
component with loading state management during minting.Passes
component, improving responsiveness.EternumProvider
.Bug Fixes
Documentation
Style
DashboardLayout
andAppSidebar
components.Chores