feat(client): support Perps internal transfers - #330
Conversation
|
One recovery detail worth making explicit for callers: the one-attempt/unknown-outcome contract is safe, but after a timeout the action cannot return the new A practical recipe using the surface in this PR would be:
This matters because amount + counterparty alone are not unique for treasury/rebalancing workloads, while the timestamp-only pagination ceiling noted here makes an unbounded history scan unreliable. If labels are not guaranteed unique server-side, the docs should say that clearly and present the tuple match as reconciliation rather than idempotency. A short example/TSDoc block would make the otherwise good “never retry unknown outcomes” guidance actionable. |
Summary
SecureClient.transferPerpsCollateralwith one-attempt unknown-outcome semanticsPerpsSession.listInternalTransferspagination and forward-compatible transfer typesContract notes
"100.00"is signed and sent without base-unit conversionVerification
pnpm buildpnpm test(528 tests passed; client type tests clean)pnpm lintpnpm typecheckLinear: DEV-628
Upstream: perpetuals#1270