Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension UI #7

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Extension UI #7

wants to merge 17 commits into from

Conversation

satyambnsal
Copy link
Contributor

Description

Please include a summary of the changes and which issue is fixed. Include relevant motivation and context.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Security Considerations

  • This change doesn't expose any sensitive information
  • This change doesn't introduce new attack vectors
  • This change maintains TEE integrity
  • Smart contract changes have been audited (if applicable)

Copy link

vercel bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
teeception ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 9:06am

In order to allow users to switch between different Starknet networks (Mainnet
and Sepolia), the following changes were made:
- Updated agentRegistryAddress default value in starknet.ts for Mainnet
- Renamed STORAGE_KEY to STORAGE_KEY_PREFIX in useAgentRegistry.ts
- Added useState to manage network selection in useAgentRegistry.ts
- Implemented getStorageKey function to generate storage key based on network
- Refactored address retrieval and storage based on selected network
- Modified updateAddress function to include network parameter
- Updated dependencies in useEffect to trigger re-render on network change

Affected files: 
- extension/src/content-script/config/starknet.ts
- extension/src/content-script/hooks/useAgentRegistry.ts
This commit adds sorting agents by balance in ActiveAgents.tsx and formats
the balance display with 18 decimals. It also updates the display of active
agents count and their details. Additionally, it handles loading and error
states, and displays appropriate messages. Finally, it removes redundant
comment in config.ts.
- Update the default Sepolia agent registry address in starknet.ts to '0x07876b81F61434381A970eC1ab3D451B400Ff216187Ba216Fa5d88BF3c115dE6'.
- The change ensures that the correct default address is used for Sepolia.
- Affected file: extension/src/content-script/config/starknet.ts
- Refactor AgentView component structure and add conditional rendering
- Update Header component styles based on isShowAgentView prop

Affected files:
- extension/src/content-script/components/AgentView.tsx
- extension/src/content-script/components/ConnectButton.tsx
- extension/src/content-script/components/Header.tsx
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.

2 participants