feat(sdk-core): depositToVault with getVaultConfig and Concrete BTC support#9211
Conversation
61f2d24 to
e9261f7
Compare
|
CI is failing |
OttoAllmendinger
left a comment
There was a problem hiding this comment.
why are we still not using typed routes?
e9261f7 to
68c4ab7
Compare
68c4ab7 to
c298e1b
Compare
c298e1b to
cf025ce
Compare
|
Breaking change linter override approve. Re: Breaking change linter override approved. Re: None of the 98 findings is the removal of a required, client-facing, in-production response field. So the premise ("each was intentionally broken elsewhere and got a DevEx override") doesn't map 1:1 — most aren't breaks at all. But every real change traces to a deliberate, reviewed, released public-types PR with a Linear ticket, and several were explicitly coordinated with the owning service: Irys revert → #396 (SC-5765/6/7), owner-driven Recommendation Two things I can do next if useful: Pull the literal override/approval paper trail from wallet-platform (owner of these endpoints) to attach as corroboration — I'd need to add that repo to the session. |
- Add DefiVault class with depositToVault (Morpho + Concrete paths), resumeDeposit, getVaultConfig, getOperation, listOperations - getVaultConfig uses decodeWithCodec(GetVaultResponse) for runtime validation of the defi-service API response - VaultProtocol/GetVaultResponse imported from @bitgo/public-types; removes local VaultProvider/VaultConfig/ConcreteVaultConfig duplicates - Expose wallet.defi getter on Wallet class - Add defiParams to SendManyOptions and BuildParams whitelist - Add DEFI- to commitlint issuePrefixes TICKET: DEFI-279
cf025ce to
47e9153
Compare
|
Removed the bump commit ( |
Marzooqa
left a comment
There was a problem hiding this comment.
Codeowners should be updated
Summary
VaultProviderenum (Morpho,ConcreteBtccx) and named result typesConcreteDepositResult/MorphoDepositResult; updateDepositResultunion to use themgetVaultConfigtoDefiVaultandIDefiVault, proxyingGET /api/defi-service/v1/vaults/:iddepositToVault: routesConcreteBtccx→depositToConcreteVault,Morpho→depositToMorphoVault, else throws unsupported provider errordepositToConcreteVault: singlesendManywithtype: 'defi-deposit'anddefiParams; no recipients (WP resolves escrow destination server-side)defiParams: t.unknowntoBuildParamswhitelist and optionaldefiParamstoSendManyOptions; bump@bitgo/public-typesto^6.39.0getVaultConfighappy path + error cases, Concrete dispatch (single sendMany, pendingApproval extraction, passphrase forwarding), Morpho regression guardTest plan
yarn unit-test -- --grep "DefiVault"inmodules/sdk-core: all passingyarn buildinmodules/sdk-core: no TypeScript errorsdepositToVaultwith aconcrete_btccxvault returns{ pendingApprovalId, state }CLOSES TICKET: DEFI-279