feat: add staking constants and implement staking agents#4
Merged
Raj-RR1 merged 2 commits intoAug 3, 2025
Merged
Conversation
Member
Raj-RR1
commented
Aug 3, 2025
- Add staking constants like max nominations, unbonding period, and minimum pool bond.
- Add staking agent - bondAgent, nominateAgent, and UnbondAgent.
|
@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. |
pranavcpawar
approved these changes
Aug 3, 2025
3aeaabf
into
edgeware-network:feature/polkadot-ai-agent
1 check failed
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.