Skip to content

feat: add get_proxy_deposit_cost metadata constant extraction#198

Merged
lcovar merged 1 commit intomasterfrom
BTC-3062.dot-wasm-proxy-deposit-cost
Mar 9, 2026
Merged

feat: add get_proxy_deposit_cost metadata constant extraction#198
lcovar merged 1 commit intomasterfrom
BTC-3062.dot-wasm-proxy-deposit-cost

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Mar 9, 2026

Extract ProxyDepositBase + ProxyDepositFactor from runtime metadata via subxt-core, replacing the legacy polkadot-js account-lib approach. This is needed by the WASM path to compute input/output values when explaining unstaking batch transactions.

  • New metadata_constants module with get_proxy_deposit_cost()
  • WASM binding via ParserNamespace.getProxyDepositCost(metadataHex)
  • TS wrapper returning bigint in js/parser.ts
  • Rust tests with real Westend metadata fixture

Ticket: BTC-3118

Extract ProxyDepositBase + ProxyDepositFactor from runtime metadata via
subxt-core, replacing the legacy polkadot-js account-lib approach. This
is needed by the WASM path to compute input/output values when explaining
unstaking batch transactions.

- New metadata_constants module with get_proxy_deposit_cost()
- WASM binding via ParserNamespace.getProxyDepositCost(metadataHex)
- TS wrapper returning bigint in js/parser.ts
- Rust tests with real Westend metadata fixture

Ticket: BTC-3118
@lcovar lcovar requested a review from a team as a code owner March 9, 2026 23:39
@lcovar lcovar enabled auto-merge March 9, 2026 23:50
@lcovar lcovar merged commit 4e269eb into master Mar 9, 2026
13 checks passed
@lcovar lcovar deleted the BTC-3062.dot-wasm-proxy-deposit-cost branch March 9, 2026 23:57
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