Skip to content

feat: add staking constants and implement staking agents#4

Merged
Raj-RR1 merged 2 commits into
edgeware-network:feature/polkadot-ai-agentfrom
Raj-RR1:polkadot-ai-agent-staking
Aug 3, 2025
Merged

feat: add staking constants and implement staking agents#4
Raj-RR1 merged 2 commits into
edgeware-network:feature/polkadot-ai-agentfrom
Raj-RR1:polkadot-ai-agent-staking

Conversation

@Raj-RR1
Copy link
Copy Markdown
Member

@Raj-RR1 Raj-RR1 commented Aug 3, 2025

  1. Add staking constants like max nominations, unbonding period, and minimum pool bond.
  2. Add staking agent - bondAgent, nominateAgent, and UnbondAgent.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 3, 2025

@Raj-RR1 is attempting to deploy a commit to the Edgeware DAO Community Team on Vercel.

A member of the Team first needs to authorize it.

@Raj-RR1 Raj-RR1 requested a review from pranavcpawar August 3, 2025 14:23
@Raj-RR1 Raj-RR1 merged commit 3aeaabf into edgeware-network:feature/polkadot-ai-agent Aug 3, 2025
1 check failed
@Raj-RR1 Raj-RR1 deleted the polkadot-ai-agent-staking branch August 3, 2025 14:30
ShankarWarang pushed a commit that referenced this pull request Nov 9, 2025
…#9)

* feat(setup): configure ai

* refactor(providers): add default chain

* feat(components): add memoized markdown to avoid re-renders

* feat(agent): add get balance tool

* feat(agent): wire up get-balance to openai model

* feat(agent): handle client side execution of get-balance tool

* feat(agent): implement get connected accounts tool

* feat(agent): implement get and set active account tools

* feat(agent): implement available networks tool

* feat(agent): implement get and set active networks

* feat(agent): implement send tokens agent

* feat(agent): implement get available relay and system chains

* feat(agent): implement teleport to system chains

* chore(deps): bump vercel ai sdk to v5

* chore(deps): bump next to 15.4.5

* feat(agent): implement teleport to relay chains and parachains

* fix(agent): temp fix for all assethubs

* feat(agent): implement send xcm transactions

* feat(agent): implement send xcm stablecoin transactions

* feat(constants): add staking constants

* feat(agent): implement staking agent

* refactor(agent): move onToolCall to its own module

* refactor(agent): move all refs const to a hook

* refactor(ui): move form to its own module

* feat(agent): add nominationPools agent

* refactor(components): improve markdown component

* fix(ui): ui improvements

* feat(ui): add auto scroll to chat history

* fix(ui): improve hydration err

* feat(agent): show transaction msg for transfer agent

* ux(ui): enable copy and paste in chat

* fix(agent): add None as payee(Reward destination) for staking bondAgent

* refactor(ai): improve the prompt for xcmAgent, stakingAgent and nominationPools Agent

* feat(agent): show transaction msg for xcm agent

* fix(ui): convert amount in floating point

* refactor(agent): try to fetch current acc addr as sender

* refactor(hooks): set src to lowercase for subscan

* feat(agent): integrate bond agent with api staking.bond

* feat(agent): connect unbond agent with api staking.unbond

* feat(agent): integrate join nomination pool agent with papi

* feat(agent): wire up bond extra to pool with papi

* feat(agent): connect unbond from pool agent with papi

* feat(agent): fetch validators based on total staked

* feat(agent): wire up nominate agent with staking.nominate

* chore(deps): bump next to 15.4.6

* fix(agent): set active chain on switch

* docs(readme): beautify and lint markdown with table of contents

* fix(agent): resolve error in xcm transaction

* fix(agent): dispatch error msg on failed extrinsic

* fix(agent): block system chains and mismatched relay chains

* fix(agent): resolve teleport-related errors

* fix(agent): fix typos

* fix(agent): retain last connected chain

* fix(build): resolve eslint configuration issues

* fix(ui): correct capitalization of Polkadot in greeting

* fix(components): correct wallet identifiers

* feat(components): add auto-refresh and improve account selection

* feat(providers): persist selected chain and improve client stability

* fix(ui): resolve hydration errors and improve performance

* fix(web3): correct XCM recipient address and update dependencies

* refactor(agent): use tool for deterministic teleport routing

* fix(hooks): generate correct subscan URLs for transactions

* feat(web3): introduce asset hub client for staking information (#1)

* feat: major wallet/provider refactor with @reactive-dot migration and staking improvements (#3)

* feat: add bondExtra, update staking to AssetHub, block PAssetHub teleports,fix chat interrupt

* feat(api): add bondExtra, balance query, fix loops & chain validation, support bun/pnpm

* feat: migrate to @reactive-dot for wallet and RPC management with persistence

* feat: align balance/name with UI account; add stuck-RPC fallback overlay

* refactor(providers): overhaul wallet and chain provider logic (#2)

* fix: avoid provider remount on chain switch to preserve connections and chat

* docs(agent): strengthen identity tool descriptions; add few-shot examples; fix lint

* fix(agent): migrate all networks to AssetHub for staking operations

* refactor(providers): simplify provider setup

---------

Co-authored-by: abhiraj-mengade <abhiraj.mengade@outlook.com>

* fix(build): resolve SSR issues, build errors, and restore toast notifications (#4)

* fix(providers): resolve SSR hydration mismatches and make chat client-only

* fix(providers): add build-time checks for static generation and fix image preload warning

* fix(providers): resolve build errors from React context access during static generation

* fix(lint): resolve unused @ts-expect-error warnings in agent tools

* feat(layout): add Toaster component for improved user notifications

---------

Co-authored-by: pranavcpawar <pranavcpawar@outlook.com>
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