chore: migrate off deprecated perspective APIs (SDK 2.0 / euler-sdks#93) - #800
kasperpawlowski wants to merge 1 commit into
Conversation
Tracks euler-sdks#93: fetchVerifiedVaultAddresses/fetchVerifiedVaults rename to fetchPerspectiveVaultAddresses/fetchPerspectiveVaults (escrow discovery call sites in the server caches, labels view, vault categories, and the registry meta-stub), and the deployment-type fields removed there (perspective addresses plus eUSD/seUSD/externalVaultRegistry/irmRegistry/oracleAdapterRegistry) drop out of the address mappings — all were mapped but consumed nowhere. No behavior change: lite only uses the structural ESCROW perspective, which survives the rename.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: euler-xyz/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
🚅 Deployed to the euler-lite-pr-800 environment in euler-lite(dev,PR previews)
|
|
Closing — after euler-xyz/euler-sdks#93 dropped the
Master only references the surviving SDK surface — three |
|
Correction of the earlier status note: the rename portion of euler-xyz/euler-sdks#93 was deliberately reverted before merge — published 2.0.0 matches the SDK's |
Summary
Prepares euler-lite for the SDK release containing euler-xyz/euler-sdks#93 (LITE-324). Draft — do not merge until that release publishes and the version-bump commit is added. CI typecheck will fail on this PR until then: the renamed APIs don't exist in the pinned 1.2.5.
Changes
Method renames (behavior identical — the
ESCROWenum member survives; #93 only retiresGOVERNED/EDGE):server/utils/labels-view.ts,server/utils/vaults-cache.ts,utils/vault/categories.ts— the three real escrow-discovery call sites:fetchVerifiedVaultAddresses→fetchPerspectiveVaultAddressesutils/sdk-vault-meta-stub.ts—IVaultMetaServicethrow-stubs renamed to match the new interfacetests/server/vaults-cache.test.tsandtests/composables/useVaults.test.tsDead mapping removal — #93 also deletes these from the SDK deployment types; lite mapped them into its address objects but nothing consumed them (verified by repo-wide trace):
eulerEarnGovernedPerspective,eulerUngoverned0xPerspective,eulerUngovernedNzxPerspective,governedPerspectiveeUSD,seUSD(incl. lite'sEulerTokenAddressestype),externalVaultRegistry,irmRegistry,oracleAdapterRegistryConceptually lite is already aligned with #93's rationale: trust comes from euler-labels + governor verification, and lite only uses the structural ESCROW perspective.
Verification
Validated against an SDK built locally from the #93 branch head (installed as a tarball, not committed):
nuxt typecheckcleanpackage.json/lockfile bump commit, re-run CI (note.npmrcmin-release-age=7— install the fresh version from outside the repo or wait out the window)Merge dependency
Blocked on euler-xyz/euler-sdks#93 publishing (planned as the 2.0.0 breaking release, separate from the additive 1.3.0 carrying safeAccountService from euler-xyz/euler-sdks#94).