@dynamic-labs-sdk/client 1.26.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/core.cjs +5 -5
  2. package/dist/core.esm.js +5 -5
  3. package/dist/core.native.esm.js +5 -5
  4. package/dist/exports/index.d.ts +8 -0
  5. package/dist/exports/index.d.ts.map +1 -1
  6. package/dist/exports/waas.d.ts +1 -0
  7. package/dist/exports/waas.d.ts.map +1 -1
  8. package/dist/{getNetworkProviderFromNetworkId-D7lIOS6I.esm.js → getNetworkProviderFromNetworkId-CIKbNKdk.esm.js} +2 -2
  9. package/dist/{getNetworkProviderFromNetworkId-D7lIOS6I.esm.js.map → getNetworkProviderFromNetworkId-CIKbNKdk.esm.js.map} +1 -1
  10. package/dist/{getNetworkProviderFromNetworkId-C5GtE2ef.native.esm.js → getNetworkProviderFromNetworkId-CsZBSoWG.native.esm.js} +3 -3
  11. package/dist/{getNetworkProviderFromNetworkId-C5GtE2ef.native.esm.js.map → getNetworkProviderFromNetworkId-CsZBSoWG.native.esm.js.map} +1 -1
  12. package/dist/{getNetworkProviderFromNetworkId-CSxvdrc9.cjs → getNetworkProviderFromNetworkId-DmLtSJC9.cjs} +2 -2
  13. package/dist/{getNetworkProviderFromNetworkId-CSxvdrc9.cjs.map → getNetworkProviderFromNetworkId-DmLtSJC9.cjs.map} +1 -1
  14. package/dist/{getSignedSessionId-B5Dijw-8.native.esm.js → getSignedSessionId-BIz9qPIB.native.esm.js} +3 -3
  15. package/dist/{getSignedSessionId-B5Dijw-8.native.esm.js.map → getSignedSessionId-BIz9qPIB.native.esm.js.map} +1 -1
  16. package/dist/{getSignedSessionId-CpcQiZTF.cjs → getSignedSessionId-B_NkNNim.cjs} +3 -3
  17. package/dist/{getSignedSessionId-CpcQiZTF.cjs.map → getSignedSessionId-B_NkNNim.cjs.map} +1 -1
  18. package/dist/{getSignedSessionId-BiL9k0nE.esm.js → getSignedSessionId-CV4WePdo.esm.js} +3 -3
  19. package/dist/{getSignedSessionId-BiL9k0nE.esm.js.map → getSignedSessionId-CV4WePdo.esm.js.map} +1 -1
  20. package/dist/{getWalletProviderByKey-CBIrILYZ.native.esm.js → getWalletProviderByKey-B7eSVPP5.native.esm.js} +2 -2
  21. package/dist/{getWalletProviderByKey-CBIrILYZ.native.esm.js.map → getWalletProviderByKey-B7eSVPP5.native.esm.js.map} +1 -1
  22. package/dist/{getWalletProviderByKey-BMJ9TcjM.cjs → getWalletProviderByKey-CRTAETJR.cjs} +2 -2
  23. package/dist/{getWalletProviderByKey-BMJ9TcjM.cjs.map → getWalletProviderByKey-CRTAETJR.cjs.map} +1 -1
  24. package/dist/{getWalletProviderByKey-CU8zmrf2.esm.js → getWalletProviderByKey-W0eocsJF.esm.js} +2 -2
  25. package/dist/{getWalletProviderByKey-CU8zmrf2.esm.js.map → getWalletProviderByKey-W0eocsJF.esm.js.map} +1 -1
  26. package/dist/index.cjs +129 -8
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.esm.js +126 -9
  29. package/dist/index.esm.js.map +1 -1
  30. package/dist/index.native.esm.js +126 -9
  31. package/dist/index.native.esm.js.map +1 -1
  32. package/dist/{isDynamicWaasEnabled-CBvSRUgG.esm.js → isDynamicWaasEnabled-1CgDWfqH.esm.js} +2 -2
  33. package/dist/{isDynamicWaasEnabled-CBvSRUgG.esm.js.map → isDynamicWaasEnabled-1CgDWfqH.esm.js.map} +1 -1
  34. package/dist/{isDynamicWaasEnabled-idmeju9B.cjs → isDynamicWaasEnabled-CMhy_gpM.cjs} +2 -2
  35. package/dist/{isDynamicWaasEnabled-idmeju9B.cjs.map → isDynamicWaasEnabled-CMhy_gpM.cjs.map} +1 -1
  36. package/dist/{isDynamicWaasEnabled-d82cX7j9.native.esm.js → isDynamicWaasEnabled-DkcnybRZ.native.esm.js} +2 -2
  37. package/dist/{isDynamicWaasEnabled-d82cX7j9.native.esm.js.map → isDynamicWaasEnabled-DkcnybRZ.native.esm.js.map} +1 -1
  38. package/dist/{isMfaRequiredForAction-D1rhRlDu.esm.js → isMfaRequiredForAction-BOgi2PMg.esm.js} +2 -2
  39. package/dist/{isMfaRequiredForAction-D1rhRlDu.esm.js.map → isMfaRequiredForAction-BOgi2PMg.esm.js.map} +1 -1
  40. package/dist/{isMfaRequiredForAction-1O_rFiPN.native.esm.js → isMfaRequiredForAction-DGfi_fNE.native.esm.js} +2 -2
  41. package/dist/{isMfaRequiredForAction-1O_rFiPN.native.esm.js.map → isMfaRequiredForAction-DGfi_fNE.native.esm.js.map} +1 -1
  42. package/dist/{isMfaRequiredForAction-D5o4qznt.cjs → isMfaRequiredForAction-DnUUklVz.cjs} +2 -2
  43. package/dist/{isMfaRequiredForAction-D5o4qznt.cjs.map → isMfaRequiredForAction-DnUUklVz.cjs.map} +1 -1
  44. package/dist/{isUserOnboardingComplete-bR7jwdjO.native.esm.js → isUserOnboardingComplete-C-VfVV0L.native.esm.js} +3 -3
  45. package/dist/{isUserOnboardingComplete-bR7jwdjO.native.esm.js.map → isUserOnboardingComplete-C-VfVV0L.native.esm.js.map} +1 -1
  46. package/dist/{isUserOnboardingComplete-BfRUVwrT.cjs → isUserOnboardingComplete-CIOYKiII.cjs} +3 -3
  47. package/dist/{isUserOnboardingComplete-BfRUVwrT.cjs.map → isUserOnboardingComplete-CIOYKiII.cjs.map} +1 -1
  48. package/dist/{isUserOnboardingComplete-k3nlisFA.esm.js → isUserOnboardingComplete-Dg8M45Ba.esm.js} +3 -3
  49. package/dist/{isUserOnboardingComplete-k3nlisFA.esm.js.map → isUserOnboardingComplete-Dg8M45Ba.esm.js.map} +1 -1
  50. package/dist/{migrateFromFireblocks-Bm7eIfaa.esm.js → migrateFromFireblocks-Ch5R5fWp.esm.js} +3 -3
  51. package/dist/{migrateFromFireblocks-Bm7eIfaa.esm.js.map → migrateFromFireblocks-Ch5R5fWp.esm.js.map} +1 -1
  52. package/dist/{migrateFromFireblocks-BcYmEZ3_.cjs → migrateFromFireblocks-LZXyDEH6.cjs} +3 -3
  53. package/dist/{migrateFromFireblocks-BcYmEZ3_.cjs.map → migrateFromFireblocks-LZXyDEH6.cjs.map} +1 -1
  54. package/dist/{migrateFromFireblocks-DVP5tGv_.native.esm.js → migrateFromFireblocks-zHTABzLP.native.esm.js} +3 -3
  55. package/dist/{migrateFromFireblocks-DVP5tGv_.native.esm.js.map → migrateFromFireblocks-zHTABzLP.native.esm.js.map} +1 -1
  56. package/dist/modules/swap/utils/ensureCorrectActiveNetwork/ensureCorrectActiveNetwork.d.ts.map +1 -1
  57. package/dist/modules/waas/createWaasOfflineRecoveryShares/createWaasOfflineRecoveryShares.d.ts +31 -0
  58. package/dist/modules/waas/createWaasOfflineRecoveryShares/createWaasOfflineRecoveryShares.d.ts.map +1 -0
  59. package/dist/modules/waas/createWaasOfflineRecoveryShares/index.d.ts +2 -0
  60. package/dist/modules/waas/createWaasOfflineRecoveryShares/index.d.ts.map +1 -0
  61. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  62. package/dist/modules/waas/hasDelegatedAccess/hasDelegatedAccess.d.ts.map +1 -1
  63. package/dist/modules/waas/waas.types.d.ts +6 -0
  64. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  65. package/dist/modules/yield/getYieldDetails/getYieldDetails.d.ts +36 -0
  66. package/dist/modules/yield/getYieldDetails/getYieldDetails.d.ts.map +1 -0
  67. package/dist/modules/yield/getYieldDetails/index.d.ts +3 -0
  68. package/dist/modules/yield/getYieldDetails/index.d.ts.map +1 -0
  69. package/dist/modules/yield/getYieldPosition/getYieldPosition.d.ts +37 -0
  70. package/dist/modules/yield/getYieldPosition/getYieldPosition.d.ts.map +1 -0
  71. package/dist/modules/yield/getYieldPosition/index.d.ts +3 -0
  72. package/dist/modules/yield/getYieldPosition/index.d.ts.map +1 -0
  73. package/dist/modules/yield/getYieldRewards/getYieldRewards.d.ts +39 -0
  74. package/dist/modules/yield/getYieldRewards/getYieldRewards.d.ts.map +1 -0
  75. package/dist/modules/yield/getYieldRewards/index.d.ts +3 -0
  76. package/dist/modules/yield/getYieldRewards/index.d.ts.map +1 -0
  77. package/dist/modules/yield/listYieldVaults/index.d.ts +2 -0
  78. package/dist/modules/yield/listYieldVaults/index.d.ts.map +1 -0
  79. package/dist/modules/yield/listYieldVaults/listYieldVaults.d.ts +23 -0
  80. package/dist/modules/yield/listYieldVaults/listYieldVaults.d.ts.map +1 -0
  81. package/dist/modules/yield/yield.types.d.ts +60 -0
  82. package/dist/modules/yield/yield.types.d.ts.map +1 -0
  83. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  84. package/dist/{updateAuthFromVerifyResponse-CTfG6oZa.native.esm.js → updateAuthFromVerifyResponse-BIWu4Bis.native.esm.js} +3 -3
  85. package/dist/{updateAuthFromVerifyResponse-CTfG6oZa.native.esm.js.map → updateAuthFromVerifyResponse-BIWu4Bis.native.esm.js.map} +1 -1
  86. package/dist/{updateAuthFromVerifyResponse-CPOvKWih.cjs → updateAuthFromVerifyResponse-D1QJtRk1.cjs} +3 -3
  87. package/dist/{updateAuthFromVerifyResponse-CPOvKWih.cjs.map → updateAuthFromVerifyResponse-D1QJtRk1.cjs.map} +1 -1
  88. package/dist/{updateAuthFromVerifyResponse-CfqviWkz.esm.js → updateAuthFromVerifyResponse-DU4h_W6v.esm.js} +3 -3
  89. package/dist/{updateAuthFromVerifyResponse-CfqviWkz.esm.js.map → updateAuthFromVerifyResponse-DU4h_W6v.esm.js.map} +1 -1
  90. package/dist/waas.cjs +35 -5
  91. package/dist/waas.cjs.map +1 -1
  92. package/dist/waas.esm.js +36 -7
  93. package/dist/waas.esm.js.map +1 -1
  94. package/dist/waas.native.esm.js +36 -7
  95. package/dist/waas.native.esm.js.map +1 -1
  96. package/dist/waasCore.cjs +22 -6
  97. package/dist/waasCore.cjs.map +1 -1
  98. package/dist/waasCore.esm.js +22 -6
  99. package/dist/waasCore.esm.js.map +1 -1
  100. package/dist/waasCore.native.esm.js +22 -6
  101. package/dist/waasCore.native.esm.js.map +1 -1
  102. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"migrateFromFireblocks-BcYmEZ3_.cjs","names":["BaseError","getWalletProviderFromWalletAccount","isWaasWalletProvider","NotWaasWalletAccountError","getDefaultClient","getWalletProviders","NoWalletProviderFoundError","DYNAMIC_WAAS_METADATA","isWaasWalletProvider","refreshAuth"],"sources":["../src/errors/NotWaasWalletProviderError.ts","../src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts","../src/modules/waas/migrateFromFireblocks/migrateFromFireblocks.ts"],"sourcesContent":["import { BaseError } from './base';\n\ntype NotWaasWalletProviderErrorParams = {\n walletProviderKey: string;\n};\n\nexport class NotWaasWalletProviderError extends BaseError {\n constructor({ walletProviderKey }: NotWaasWalletProviderErrorParams) {\n super({\n cause: null,\n code: 'not_waas_wallet_provider_error',\n docsUrl: null,\n name: 'NotWaasWalletProviderError',\n shortMessage: `Wallet provider ${walletProviderKey} is not a Dynamic WaaS wallet provider`,\n });\n }\n}\n","import type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { NotWaasWalletAccountError } from '../../../errors/NotWaasWalletAccountError';\nimport { getWalletProviderFromWalletAccount } from '../../wallets/utils/getWalletProviderFromWalletAccount';\nimport type { WalletAccount } from '../../wallets/walletAccount';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\nimport type { WaasWalletProvider } from '../waas.types';\n\ntype GetWalletProviderFromWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getWaasWalletProviderFromWalletAccount = (\n { walletAccount }: GetWalletProviderFromWalletAccountParams,\n client: DynamicClient\n): WaasWalletProvider => {\n const walletProvider = getWalletProviderFromWalletAccount(\n { walletAccount },\n client\n );\n\n if (!isWaasWalletProvider(walletProvider)) {\n throw new NotWaasWalletAccountError({\n walletAddress: walletAccount.address,\n });\n }\n\n return walletProvider;\n};\n","import type { MigrateFromFireblocksResponse } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { NotWaasWalletProviderError } from '../../../errors/NotWaasWalletProviderError';\nimport { refreshAuth } from '../../user/refreshAuth';\nimport { getWalletProviders } from '../../wallets/getWalletProviders';\nimport { DYNAMIC_WAAS_METADATA } from '../constants';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\n\ntype MigrateFromFireblocksParams = {\n /**\n * Optional SLIP-0044 coin types per chain name for BIP44 derivation off the\n * Fireblocks takeover xprv (e.g. `{ EVM: 1 }` for Sepolia).\n */\n coinTypes?: Record<string, number>;\n /**\n * The Fireblocks NCW device id whose key material is being migrated.\n */\n deviceId: string;\n /**\n * Required per-chain expected wallet address (the address Fireblocks held). Its\n * keys are the chains migration runs on, and the migration iframe verifies each\n * imported Dynamic address matches the value, so a wrong derivation fails loudly\n * instead of producing an unusable wallet.\n */\n expectedAddresses: Record<string, string>;\n /**\n * The Fireblocks-issued JWT authorizing the takeover.\n */\n jwt: string;\n /**\n * The password that encrypted the legacy Fireblocks NCW device storage.\n */\n password: string;\n /**\n * The serialized Fireblocks NCW device storage (the local key share backup).\n */\n storage: Record<string, string>;\n};\n\n/**\n * Migrates an existing Fireblocks NCW wallet into Dynamic's WaaS infrastructure.\n *\n * Migration is a single cross-chain operation: one call takes over the Fireblocks\n * key material and provisions Dynamic WaaS wallet accounts for every supported\n * chain. Because it is not per-chain, this resolves a single WaaS wallet provider\n * (any registered chain) and delegates the takeover to it.\n *\n * @param params.deviceId - The Fireblocks NCW device id being migrated.\n * @param params.jwt - The Fireblocks-issued JWT authorizing the takeover.\n * @param params.storage - The serialized Fireblocks NCW device storage.\n * @param params.password - The password that encrypted the legacy device storage.\n * @param params.expectedAddresses - Required per-chain expected address; its keys are the chains migration runs on, and each imported address is verified against it.\n * @param [params.coinTypes] - Optional SLIP-0044 coin types per chain name.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise resolving to the per-chain migration results.\n * @notInstrumented\n */\nexport const migrateFromFireblocks = async (\n {\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n }: MigrateFromFireblocksParams,\n client = getDefaultClient()\n): Promise<MigrateFromFireblocksResponse> => {\n const providers = getWalletProviders(client);\n\n if (providers.length === 0) {\n throw new NoWalletProviderFoundError({\n walletProviderKey: DYNAMIC_WAAS_METADATA.displayName,\n });\n }\n\n // Migration is cross-chain, so any registered WaaS provider can drive the\n // takeover. Resolve the first one rather than iterating per chain.\n const waasProvider = providers.find(isWaasWalletProvider);\n\n if (!waasProvider) {\n throw new NotWaasWalletProviderError({\n walletProviderKey: providers[0].key,\n });\n }\n\n const result = await waasProvider.migrateFromFireblocks({\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n });\n\n await refreshAuth(client);\n\n return result;\n};\n"],"mappings":";;;;AAMA,IAAa,6BAAb,cAAgDA,+CAAU;CACxD,YAAY,EAAE,qBAAuD;AACnE,QAAM;GACJ,OAAO;GACP,MAAM;GACN,SAAS;GACT,MAAM;GACN,cAAc,mBAAmB,kBAAkB;GACpD,CAAC;;;;;;;ACFN,MAAa,0CACX,EAAE,iBACF,WACuB;CACvB,MAAM,iBAAiBC,wEACrB,EAAE,eAAe,EACjB,OACD;AAED,KAAI,CAACC,0DAAqB,eAAe,CACvC,OAAM,IAAIC,uDAA0B,EAClC,eAAe,cAAc,SAC9B,CAAC;AAGJ,QAAO;;;;;;;;;;;;;;;;;;;;;;;ACgCT,MAAa,wBAAwB,OACnC,EACE,WACA,UACA,mBACA,KACA,UACA,WAEF,SAASC,uDAAkB,KACgB;CAC3C,MAAM,YAAYC,wDAAmB,OAAO;AAE5C,KAAI,UAAU,WAAW,EACvB,OAAM,IAAIC,gEAA2B,EACnC,mBAAmBC,2DAAsB,aAC1C,CAAC;CAKJ,MAAM,eAAe,UAAU,KAAKC,0DAAqB;AAEzD,KAAI,CAAC,aACH,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,UAAU,GAAG,KACjC,CAAC;CAGJ,MAAM,SAAS,MAAM,aAAa,sBAAsB;EACtD;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,OAAMC,mDAAY,OAAO;AAEzB,QAAO"}
1
+ {"version":3,"file":"migrateFromFireblocks-LZXyDEH6.cjs","names":["BaseError","getWalletProviderFromWalletAccount","isWaasWalletProvider","NotWaasWalletAccountError","getDefaultClient","getWalletProviders","NoWalletProviderFoundError","DYNAMIC_WAAS_METADATA","isWaasWalletProvider","refreshAuth"],"sources":["../src/errors/NotWaasWalletProviderError.ts","../src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts","../src/modules/waas/migrateFromFireblocks/migrateFromFireblocks.ts"],"sourcesContent":["import { BaseError } from './base';\n\ntype NotWaasWalletProviderErrorParams = {\n walletProviderKey: string;\n};\n\nexport class NotWaasWalletProviderError extends BaseError {\n constructor({ walletProviderKey }: NotWaasWalletProviderErrorParams) {\n super({\n cause: null,\n code: 'not_waas_wallet_provider_error',\n docsUrl: null,\n name: 'NotWaasWalletProviderError',\n shortMessage: `Wallet provider ${walletProviderKey} is not a Dynamic WaaS wallet provider`,\n });\n }\n}\n","import type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { NotWaasWalletAccountError } from '../../../errors/NotWaasWalletAccountError';\nimport { getWalletProviderFromWalletAccount } from '../../wallets/utils/getWalletProviderFromWalletAccount';\nimport type { WalletAccount } from '../../wallets/walletAccount';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\nimport type { WaasWalletProvider } from '../waas.types';\n\ntype GetWalletProviderFromWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getWaasWalletProviderFromWalletAccount = (\n { walletAccount }: GetWalletProviderFromWalletAccountParams,\n client: DynamicClient\n): WaasWalletProvider => {\n const walletProvider = getWalletProviderFromWalletAccount(\n { walletAccount },\n client\n );\n\n if (!isWaasWalletProvider(walletProvider)) {\n throw new NotWaasWalletAccountError({\n walletAddress: walletAccount.address,\n });\n }\n\n return walletProvider;\n};\n","import type { MigrateFromFireblocksResponse } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { NotWaasWalletProviderError } from '../../../errors/NotWaasWalletProviderError';\nimport { refreshAuth } from '../../user/refreshAuth';\nimport { getWalletProviders } from '../../wallets/getWalletProviders';\nimport { DYNAMIC_WAAS_METADATA } from '../constants';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\n\ntype MigrateFromFireblocksParams = {\n /**\n * Optional SLIP-0044 coin types per chain name for BIP44 derivation off the\n * Fireblocks takeover xprv (e.g. `{ EVM: 1 }` for Sepolia).\n */\n coinTypes?: Record<string, number>;\n /**\n * The Fireblocks NCW device id whose key material is being migrated.\n */\n deviceId: string;\n /**\n * Required per-chain expected wallet address (the address Fireblocks held). Its\n * keys are the chains migration runs on, and the migration iframe verifies each\n * imported Dynamic address matches the value, so a wrong derivation fails loudly\n * instead of producing an unusable wallet.\n */\n expectedAddresses: Record<string, string>;\n /**\n * The Fireblocks-issued JWT authorizing the takeover.\n */\n jwt: string;\n /**\n * The password that encrypted the legacy Fireblocks NCW device storage.\n */\n password: string;\n /**\n * The serialized Fireblocks NCW device storage (the local key share backup).\n */\n storage: Record<string, string>;\n};\n\n/**\n * Migrates an existing Fireblocks NCW wallet into Dynamic's WaaS infrastructure.\n *\n * Migration is a single cross-chain operation: one call takes over the Fireblocks\n * key material and provisions Dynamic WaaS wallet accounts for every supported\n * chain. Because it is not per-chain, this resolves a single WaaS wallet provider\n * (any registered chain) and delegates the takeover to it.\n *\n * @param params.deviceId - The Fireblocks NCW device id being migrated.\n * @param params.jwt - The Fireblocks-issued JWT authorizing the takeover.\n * @param params.storage - The serialized Fireblocks NCW device storage.\n * @param params.password - The password that encrypted the legacy device storage.\n * @param params.expectedAddresses - Required per-chain expected address; its keys are the chains migration runs on, and each imported address is verified against it.\n * @param [params.coinTypes] - Optional SLIP-0044 coin types per chain name.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise resolving to the per-chain migration results.\n * @notInstrumented\n */\nexport const migrateFromFireblocks = async (\n {\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n }: MigrateFromFireblocksParams,\n client = getDefaultClient()\n): Promise<MigrateFromFireblocksResponse> => {\n const providers = getWalletProviders(client);\n\n if (providers.length === 0) {\n throw new NoWalletProviderFoundError({\n walletProviderKey: DYNAMIC_WAAS_METADATA.displayName,\n });\n }\n\n // Migration is cross-chain, so any registered WaaS provider can drive the\n // takeover. Resolve the first one rather than iterating per chain.\n const waasProvider = providers.find(isWaasWalletProvider);\n\n if (!waasProvider) {\n throw new NotWaasWalletProviderError({\n walletProviderKey: providers[0].key,\n });\n }\n\n const result = await waasProvider.migrateFromFireblocks({\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n });\n\n await refreshAuth(client);\n\n return result;\n};\n"],"mappings":";;;;AAMA,IAAa,6BAAb,cAAgDA,+CAAU;CACxD,YAAY,EAAE,qBAAuD;AACnE,QAAM;GACJ,OAAO;GACP,MAAM;GACN,SAAS;GACT,MAAM;GACN,cAAc,mBAAmB,kBAAkB;GACpD,CAAC;;;;;;;ACFN,MAAa,0CACX,EAAE,iBACF,WACuB;CACvB,MAAM,iBAAiBC,wEACrB,EAAE,eAAe,EACjB,OACD;AAED,KAAI,CAACC,0DAAqB,eAAe,CACvC,OAAM,IAAIC,uDAA0B,EAClC,eAAe,cAAc,SAC9B,CAAC;AAGJ,QAAO;;;;;;;;;;;;;;;;;;;;;;;ACgCT,MAAa,wBAAwB,OACnC,EACE,WACA,UACA,mBACA,KACA,UACA,WAEF,SAASC,uDAAkB,KACgB;CAC3C,MAAM,YAAYC,wDAAmB,OAAO;AAE5C,KAAI,UAAU,WAAW,EACvB,OAAM,IAAIC,gEAA2B,EACnC,mBAAmBC,2DAAsB,aAC1C,CAAC;CAKJ,MAAM,eAAe,UAAU,KAAKC,0DAAqB;AAEzD,KAAI,CAAC,aACH,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,UAAU,GAAG,KACjC,CAAC;CAGJ,MAAM,SAAS,MAAM,aAAa,sBAAsB;EACtD;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,OAAMC,mDAAY,OAAO;AAEzB,QAAO"}
@@ -1,5 +1,5 @@
1
- import { C as getWalletProviderFromWalletAccount, D as NoWalletProviderFoundError, _t as getDefaultClient, bt as BaseError, c as isWaasWalletProvider, d as DYNAMIC_WAAS_METADATA, f as getWalletProviders } from "./updateAuthFromVerifyResponse-CTfG6oZa.native.esm.js";
2
- import { i as __refreshAuth_wrapped, r as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-d82cX7j9.native.esm.js";
1
+ import { C as getWalletProviderFromWalletAccount, D as NoWalletProviderFoundError, _t as getDefaultClient, bt as BaseError, c as isWaasWalletProvider, d as DYNAMIC_WAAS_METADATA, f as getWalletProviders } from "./updateAuthFromVerifyResponse-BIWu4Bis.native.esm.js";
2
+ import { i as __refreshAuth_wrapped, r as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-DkcnybRZ.native.esm.js";
3
3
 
4
4
  //#region src/errors/NotWaasWalletProviderError.ts
5
5
  var NotWaasWalletProviderError = class extends BaseError {
@@ -62,4 +62,4 @@ const migrateFromFireblocks = async ({ coinTypes, deviceId, expectedAddresses, j
62
62
 
63
63
  //#endregion
64
64
  export { getWaasWalletProviderFromWalletAccount as n, NotWaasWalletProviderError as r, migrateFromFireblocks as t };
65
- //# sourceMappingURL=migrateFromFireblocks-DVP5tGv_.native.esm.js.map
65
+ //# sourceMappingURL=migrateFromFireblocks-zHTABzLP.native.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrateFromFireblocks-DVP5tGv_.native.esm.js","names":["refreshAuth"],"sources":["../src/errors/NotWaasWalletProviderError.ts","../src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts","../src/modules/waas/migrateFromFireblocks/migrateFromFireblocks.ts"],"sourcesContent":["import { BaseError } from './base';\n\ntype NotWaasWalletProviderErrorParams = {\n walletProviderKey: string;\n};\n\nexport class NotWaasWalletProviderError extends BaseError {\n constructor({ walletProviderKey }: NotWaasWalletProviderErrorParams) {\n super({\n cause: null,\n code: 'not_waas_wallet_provider_error',\n docsUrl: null,\n name: 'NotWaasWalletProviderError',\n shortMessage: `Wallet provider ${walletProviderKey} is not a Dynamic WaaS wallet provider`,\n });\n }\n}\n","import type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { NotWaasWalletAccountError } from '../../../errors/NotWaasWalletAccountError';\nimport { getWalletProviderFromWalletAccount } from '../../wallets/utils/getWalletProviderFromWalletAccount';\nimport type { WalletAccount } from '../../wallets/walletAccount';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\nimport type { WaasWalletProvider } from '../waas.types';\n\ntype GetWalletProviderFromWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getWaasWalletProviderFromWalletAccount = (\n { walletAccount }: GetWalletProviderFromWalletAccountParams,\n client: DynamicClient\n): WaasWalletProvider => {\n const walletProvider = getWalletProviderFromWalletAccount(\n { walletAccount },\n client\n );\n\n if (!isWaasWalletProvider(walletProvider)) {\n throw new NotWaasWalletAccountError({\n walletAddress: walletAccount.address,\n });\n }\n\n return walletProvider;\n};\n","import type { MigrateFromFireblocksResponse } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { NotWaasWalletProviderError } from '../../../errors/NotWaasWalletProviderError';\nimport { refreshAuth } from '../../user/refreshAuth';\nimport { getWalletProviders } from '../../wallets/getWalletProviders';\nimport { DYNAMIC_WAAS_METADATA } from '../constants';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\n\ntype MigrateFromFireblocksParams = {\n /**\n * Optional SLIP-0044 coin types per chain name for BIP44 derivation off the\n * Fireblocks takeover xprv (e.g. `{ EVM: 1 }` for Sepolia).\n */\n coinTypes?: Record<string, number>;\n /**\n * The Fireblocks NCW device id whose key material is being migrated.\n */\n deviceId: string;\n /**\n * Required per-chain expected wallet address (the address Fireblocks held). Its\n * keys are the chains migration runs on, and the migration iframe verifies each\n * imported Dynamic address matches the value, so a wrong derivation fails loudly\n * instead of producing an unusable wallet.\n */\n expectedAddresses: Record<string, string>;\n /**\n * The Fireblocks-issued JWT authorizing the takeover.\n */\n jwt: string;\n /**\n * The password that encrypted the legacy Fireblocks NCW device storage.\n */\n password: string;\n /**\n * The serialized Fireblocks NCW device storage (the local key share backup).\n */\n storage: Record<string, string>;\n};\n\n/**\n * Migrates an existing Fireblocks NCW wallet into Dynamic's WaaS infrastructure.\n *\n * Migration is a single cross-chain operation: one call takes over the Fireblocks\n * key material and provisions Dynamic WaaS wallet accounts for every supported\n * chain. Because it is not per-chain, this resolves a single WaaS wallet provider\n * (any registered chain) and delegates the takeover to it.\n *\n * @param params.deviceId - The Fireblocks NCW device id being migrated.\n * @param params.jwt - The Fireblocks-issued JWT authorizing the takeover.\n * @param params.storage - The serialized Fireblocks NCW device storage.\n * @param params.password - The password that encrypted the legacy device storage.\n * @param params.expectedAddresses - Required per-chain expected address; its keys are the chains migration runs on, and each imported address is verified against it.\n * @param [params.coinTypes] - Optional SLIP-0044 coin types per chain name.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise resolving to the per-chain migration results.\n * @notInstrumented\n */\nexport const migrateFromFireblocks = async (\n {\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n }: MigrateFromFireblocksParams,\n client = getDefaultClient()\n): Promise<MigrateFromFireblocksResponse> => {\n const providers = getWalletProviders(client);\n\n if (providers.length === 0) {\n throw new NoWalletProviderFoundError({\n walletProviderKey: DYNAMIC_WAAS_METADATA.displayName,\n });\n }\n\n // Migration is cross-chain, so any registered WaaS provider can drive the\n // takeover. Resolve the first one rather than iterating per chain.\n const waasProvider = providers.find(isWaasWalletProvider);\n\n if (!waasProvider) {\n throw new NotWaasWalletProviderError({\n walletProviderKey: providers[0].key,\n });\n }\n\n const result = await waasProvider.migrateFromFireblocks({\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n });\n\n await refreshAuth(client);\n\n return result;\n};\n"],"mappings":";;;;AAMA,IAAa,6BAAb,cAAgD,UAAU;CACxD,YAAY,EAAE,qBAAuD;AACnE,QAAM;GACJ,OAAO;GACP,MAAM;GACN,SAAS;GACT,MAAM;GACN,cAAc,mBAAmB,kBAAkB;GACpD,CAAC;;;;;;;ACFN,MAAa,0CACX,EAAE,iBACF,WACuB;CACvB,MAAM,iBAAiB,mCACrB,EAAE,eAAe,EACjB,OACD;AAED,KAAI,CAAC,qBAAqB,eAAe,CACvC,OAAM,IAAI,0BAA0B,EAClC,eAAe,cAAc,SAC9B,CAAC;AAGJ,QAAO;;;;;;;;;;;;;;;;;;;;;;;ACgCT,MAAa,wBAAwB,OACnC,EACE,WACA,UACA,mBACA,KACA,UACA,WAEF,SAAS,kBAAkB,KACgB;CAC3C,MAAM,YAAY,mBAAmB,OAAO;AAE5C,KAAI,UAAU,WAAW,EACvB,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,sBAAsB,aAC1C,CAAC;CAKJ,MAAM,eAAe,UAAU,KAAK,qBAAqB;AAEzD,KAAI,CAAC,aACH,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,UAAU,GAAG,KACjC,CAAC;CAGJ,MAAM,SAAS,MAAM,aAAa,sBAAsB;EACtD;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,OAAMA,sBAAY,OAAO;AAEzB,QAAO"}
1
+ {"version":3,"file":"migrateFromFireblocks-zHTABzLP.native.esm.js","names":["refreshAuth"],"sources":["../src/errors/NotWaasWalletProviderError.ts","../src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts","../src/modules/waas/migrateFromFireblocks/migrateFromFireblocks.ts"],"sourcesContent":["import { BaseError } from './base';\n\ntype NotWaasWalletProviderErrorParams = {\n walletProviderKey: string;\n};\n\nexport class NotWaasWalletProviderError extends BaseError {\n constructor({ walletProviderKey }: NotWaasWalletProviderErrorParams) {\n super({\n cause: null,\n code: 'not_waas_wallet_provider_error',\n docsUrl: null,\n name: 'NotWaasWalletProviderError',\n shortMessage: `Wallet provider ${walletProviderKey} is not a Dynamic WaaS wallet provider`,\n });\n }\n}\n","import type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { NotWaasWalletAccountError } from '../../../errors/NotWaasWalletAccountError';\nimport { getWalletProviderFromWalletAccount } from '../../wallets/utils/getWalletProviderFromWalletAccount';\nimport type { WalletAccount } from '../../wallets/walletAccount';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\nimport type { WaasWalletProvider } from '../waas.types';\n\ntype GetWalletProviderFromWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getWaasWalletProviderFromWalletAccount = (\n { walletAccount }: GetWalletProviderFromWalletAccountParams,\n client: DynamicClient\n): WaasWalletProvider => {\n const walletProvider = getWalletProviderFromWalletAccount(\n { walletAccount },\n client\n );\n\n if (!isWaasWalletProvider(walletProvider)) {\n throw new NotWaasWalletAccountError({\n walletAddress: walletAccount.address,\n });\n }\n\n return walletProvider;\n};\n","import type { MigrateFromFireblocksResponse } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { NotWaasWalletProviderError } from '../../../errors/NotWaasWalletProviderError';\nimport { refreshAuth } from '../../user/refreshAuth';\nimport { getWalletProviders } from '../../wallets/getWalletProviders';\nimport { DYNAMIC_WAAS_METADATA } from '../constants';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\n\ntype MigrateFromFireblocksParams = {\n /**\n * Optional SLIP-0044 coin types per chain name for BIP44 derivation off the\n * Fireblocks takeover xprv (e.g. `{ EVM: 1 }` for Sepolia).\n */\n coinTypes?: Record<string, number>;\n /**\n * The Fireblocks NCW device id whose key material is being migrated.\n */\n deviceId: string;\n /**\n * Required per-chain expected wallet address (the address Fireblocks held). Its\n * keys are the chains migration runs on, and the migration iframe verifies each\n * imported Dynamic address matches the value, so a wrong derivation fails loudly\n * instead of producing an unusable wallet.\n */\n expectedAddresses: Record<string, string>;\n /**\n * The Fireblocks-issued JWT authorizing the takeover.\n */\n jwt: string;\n /**\n * The password that encrypted the legacy Fireblocks NCW device storage.\n */\n password: string;\n /**\n * The serialized Fireblocks NCW device storage (the local key share backup).\n */\n storage: Record<string, string>;\n};\n\n/**\n * Migrates an existing Fireblocks NCW wallet into Dynamic's WaaS infrastructure.\n *\n * Migration is a single cross-chain operation: one call takes over the Fireblocks\n * key material and provisions Dynamic WaaS wallet accounts for every supported\n * chain. Because it is not per-chain, this resolves a single WaaS wallet provider\n * (any registered chain) and delegates the takeover to it.\n *\n * @param params.deviceId - The Fireblocks NCW device id being migrated.\n * @param params.jwt - The Fireblocks-issued JWT authorizing the takeover.\n * @param params.storage - The serialized Fireblocks NCW device storage.\n * @param params.password - The password that encrypted the legacy device storage.\n * @param params.expectedAddresses - Required per-chain expected address; its keys are the chains migration runs on, and each imported address is verified against it.\n * @param [params.coinTypes] - Optional SLIP-0044 coin types per chain name.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise resolving to the per-chain migration results.\n * @notInstrumented\n */\nexport const migrateFromFireblocks = async (\n {\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n }: MigrateFromFireblocksParams,\n client = getDefaultClient()\n): Promise<MigrateFromFireblocksResponse> => {\n const providers = getWalletProviders(client);\n\n if (providers.length === 0) {\n throw new NoWalletProviderFoundError({\n walletProviderKey: DYNAMIC_WAAS_METADATA.displayName,\n });\n }\n\n // Migration is cross-chain, so any registered WaaS provider can drive the\n // takeover. Resolve the first one rather than iterating per chain.\n const waasProvider = providers.find(isWaasWalletProvider);\n\n if (!waasProvider) {\n throw new NotWaasWalletProviderError({\n walletProviderKey: providers[0].key,\n });\n }\n\n const result = await waasProvider.migrateFromFireblocks({\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n });\n\n await refreshAuth(client);\n\n return result;\n};\n"],"mappings":";;;;AAMA,IAAa,6BAAb,cAAgD,UAAU;CACxD,YAAY,EAAE,qBAAuD;AACnE,QAAM;GACJ,OAAO;GACP,MAAM;GACN,SAAS;GACT,MAAM;GACN,cAAc,mBAAmB,kBAAkB;GACpD,CAAC;;;;;;;ACFN,MAAa,0CACX,EAAE,iBACF,WACuB;CACvB,MAAM,iBAAiB,mCACrB,EAAE,eAAe,EACjB,OACD;AAED,KAAI,CAAC,qBAAqB,eAAe,CACvC,OAAM,IAAI,0BAA0B,EAClC,eAAe,cAAc,SAC9B,CAAC;AAGJ,QAAO;;;;;;;;;;;;;;;;;;;;;;;ACgCT,MAAa,wBAAwB,OACnC,EACE,WACA,UACA,mBACA,KACA,UACA,WAEF,SAAS,kBAAkB,KACgB;CAC3C,MAAM,YAAY,mBAAmB,OAAO;AAE5C,KAAI,UAAU,WAAW,EACvB,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,sBAAsB,aAC1C,CAAC;CAKJ,MAAM,eAAe,UAAU,KAAK,qBAAqB;AAEzD,KAAI,CAAC,aACH,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,UAAU,GAAG,KACjC,CAAC;CAGJ,MAAM,SAAS,MAAM,aAAa,sBAAsB;EACtD;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,OAAMA,sBAAY,OAAO;AAEzB,QAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"ensureCorrectActiveNetwork.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/utils/ensureCorrectActiveNetwork/ensureCorrectActiveNetwork.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,0CACE,gCAAgC,UAC/D,aAAa,kBA4CtB,CAAC"}
1
+ {"version":3,"file":"ensureCorrectActiveNetwork.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/utils/ensureCorrectActiveNetwork/ensureCorrectActiveNetwork.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,0CACE,gCAAgC,UAC/D,aAAa,kBAmDtB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { WalletAccount } from '../../wallets/walletAccount';
2
+ type CreateWaasOfflineRecoverySharesParams = {
3
+ /**
4
+ * Optional consumer-supplied Drive access token. When provided (and already
5
+ * granted Drive scopes), the SDK uses it directly instead of falling back
6
+ * to the stored OAuth token — avoiding a second Google consent prompt.
7
+ */
8
+ cloudProviderAccessToken?: string;
9
+ mfaToken?: string;
10
+ password?: string;
11
+ walletAccount: WalletAccount;
12
+ };
13
+ /**
14
+ * Mints an offline-recovery share set for a WaaS wallet account.
15
+ *
16
+ * This mints a second, independent 2-of-2 share set: the client's share is
17
+ * uploaded to Google Drive, and the server's share is delivered to the
18
+ * developer's webhook. Dynamic never retains its half, so recovery works even
19
+ * if Dynamic is fully offline.
20
+ *
21
+ * @param params.walletAccount - The WaaS wallet account to create offline-recovery shares for.
22
+ * @param [params.password] - Optional password to encrypt the client share.
23
+ * @param [params.cloudProviderAccessToken] - Optional consumer-supplied Drive-scoped access token; used directly instead of the stored OAuth token (avoids a second Google consent). Useful for external-auth setups.
24
+ * @param [params.mfaToken] - Optional MFA token proving step-up verification, when required for this action.
25
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
26
+ * @returns A promise that resolves when the offline-recovery share set has been minted.
27
+ * @notInstrumented
28
+ */
29
+ export declare const createWaasOfflineRecoveryShares: ({ cloudProviderAccessToken, mfaToken, password, walletAccount, }: CreateWaasOfflineRecoverySharesParams, client?: import("../../../exports").DynamicClient) => Promise<void>;
30
+ export {};
31
+ //# sourceMappingURL=createWaasOfflineRecoveryShares.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWaasOfflineRecoveryShares.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasOfflineRecoveryShares/createWaasOfflineRecoveryShares.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,KAAK,qCAAqC,GAAG;IAC3C;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,qEAMvC,qCAAqC,qEAczC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createWaasOfflineRecoveryShares } from './createWaasOfflineRecoveryShares';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasOfflineRecoveryShares/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAMzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAOzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKlD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,uBAAuB;AACvB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YA2nB7B,CAAC"}
1
+ {"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAMzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAOzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKlD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,uBAAuB;AACvB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YA6pB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hasDelegatedAccess.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/hasDelegatedAccess/hasDelegatedAccess.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,KAAK,wBAAwB,GAAG;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,sBACV,wBAAwB,wDAE1C,OAiBF,CAAC"}
1
+ {"version":3,"file":"hasDelegatedAccess.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/hasDelegatedAccess/hasDelegatedAccess.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,KAAK,wBAAwB,GAAG;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,sBACV,wBAAwB,wDAE1C,OAsBF,CAAC"}
@@ -39,6 +39,12 @@ export type WaasProvider = {
39
39
  skipPreflight?: boolean;
40
40
  walletAccount: WalletAccount;
41
41
  }) => Promise<WaasTransactionBroadcastResult>;
42
+ createOfflineRecoveryShares: (args: {
43
+ cloudProviderAccessToken?: string;
44
+ mfaToken?: string;
45
+ password?: string;
46
+ walletAccount: WalletAccount;
47
+ }) => Promise<void>;
42
48
  createWalletAccount(args?: {
43
49
  bitcoinConfig?: WalletCreationBitcoinConfig;
44
50
  businessAccountId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"waas.types.d.ts","sourceRoot":"","sources":["../../../src/modules/waas/waas.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACpB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,C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C;QACxB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAC7C,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ import type { YieldVaultDetails } from '../yield.types';
2
+ /**
3
+ * Parameters for {@link getYieldDetails}: the vault to look up.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * const params: GetYieldDetailsParams = { vaultId };
8
+ * ```
9
+ * @see getYieldDetails
10
+ * @see listYieldVaults
11
+ */
12
+ export type GetYieldDetailsParams = {
13
+ /** Opaque vault identifier, from {@link listYieldVaults}. */
14
+ vaultId: string;
15
+ };
16
+ /**
17
+ * Gets full details for one yield vault. Registry data merged with live
18
+ * data from the underlying protocol (`netApy`, `netApyExcludingRewards`,
19
+ * `tvlUsd`) on a best-effort basis — these fields may be omitted if that
20
+ * data is temporarily unavailable.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const details = await getYieldDetails({ vaultId });
25
+ * console.log(details.netApy);
26
+ * ```
27
+ *
28
+ * @param params GetYieldDetailsParams - The vault to look up.
29
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
30
+ * @returns The vault's full details.
31
+ * @see listYieldVaults
32
+ * @see getYieldPosition
33
+ * @notInstrumented
34
+ */
35
+ export declare const getYieldDetails: ({ vaultId }: GetYieldDetailsParams, client?: import("../../../exports").DynamicClient) => Promise<YieldVaultDetails>;
36
+ //# sourceMappingURL=getYieldDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getYieldDetails.d.ts","sourceRoot":"","sources":["../../../../src/modules/yield/getYieldDetails/getYieldDetails.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,gBACb,qBAAqB,wDAEjC,OAAO,CAAC,iBAAiB,CAQ3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getYieldDetails } from './getYieldDetails';
2
+ export type { GetYieldDetailsParams } from './getYieldDetails';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/yield/getYieldDetails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import type { WalletAccount } from '../../wallets/walletAccount';
2
+ import type { YieldVaultPosition } from '../yield.types';
3
+ /**
4
+ * Parameters for {@link getYieldPosition}: the vault and wallet account to read.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const params: GetYieldPositionParams = { vaultId, walletAccount };
9
+ * ```
10
+ * @see getYieldPosition
11
+ * @see listYieldVaults
12
+ */
13
+ export type GetYieldPositionParams = {
14
+ /** Opaque vault identifier, from {@link listYieldVaults}. */
15
+ vaultId: string;
16
+ /** The wallet account whose position in the vault is being read. */
17
+ walletAccount: WalletAccount;
18
+ };
19
+ /**
20
+ * Gets a wallet's share balance and asset value in a yield vault. Reads
21
+ * on-chain via the underlying protocol.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const position = await getYieldPosition({ vaultId, walletAccount });
26
+ * console.log(position.shares);
27
+ * ```
28
+ *
29
+ * @param params GetYieldPositionParams - The vault and wallet account to read.
30
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
31
+ * @returns The wallet's share balance and asset value in the vault.
32
+ * @see listYieldVaults
33
+ * @see getYieldDetails
34
+ * @notInstrumented
35
+ */
36
+ export declare const getYieldPosition: ({ vaultId, walletAccount }: GetYieldPositionParams, client?: import("../../../exports").DynamicClient) => Promise<YieldVaultPosition>;
37
+ //# sourceMappingURL=getYieldPosition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getYieldPosition.d.ts","sourceRoot":"","sources":["../../../../src/modules/yield/getYieldPosition/getYieldPosition.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,+BACC,sBAAsB,wDAEjD,OAAO,CAAC,kBAAkB,CAS5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getYieldPosition } from './getYieldPosition';
2
+ export type { GetYieldPositionParams } from './getYieldPosition';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/yield/getYieldPosition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { WalletAccount } from '../../wallets/walletAccount';
2
+ import type { YieldVaultReward } from '../yield.types';
3
+ /**
4
+ * Parameters for {@link getYieldRewards}: the vault and wallet account to read.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const params: GetYieldRewardsParams = { vaultId, walletAccount };
9
+ * ```
10
+ * @see getYieldRewards
11
+ * @see listYieldVaults
12
+ */
13
+ export type GetYieldRewardsParams = {
14
+ /** Opaque vault identifier, from {@link listYieldVaults}. */
15
+ vaultId: string;
16
+ /** The wallet account whose accrued rewards are being read. */
17
+ walletAccount: WalletAccount;
18
+ };
19
+ /**
20
+ * Gets accrued rewards for a wallet in a yield vault. Returns an empty
21
+ * array when the wallet has no accrued rewards in this vault. A vault can
22
+ * have more than one concurrent reward campaign paying out in different
23
+ * tokens, so each entry carries its own token address/symbol/decimals.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const rewards = await getYieldRewards({ vaultId, walletAccount });
28
+ * console.log(rewards[0]?.accrued);
29
+ * ```
30
+ *
31
+ * @param params GetYieldRewardsParams - The vault and wallet account to read.
32
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
33
+ * @returns The wallet's accrued rewards in the vault.
34
+ * @see listYieldVaults
35
+ * @see getYieldPosition
36
+ * @notInstrumented
37
+ */
38
+ export declare const getYieldRewards: ({ vaultId, walletAccount }: GetYieldRewardsParams, client?: import("../../../exports").DynamicClient) => Promise<YieldVaultReward[]>;
39
+ //# sourceMappingURL=getYieldRewards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getYieldRewards.d.ts","sourceRoot":"","sources":["../../../../src/modules/yield/getYieldRewards/getYieldRewards.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,+BACE,qBAAqB,wDAEhD,OAAO,CAAC,gBAAgB,EAAE,CAW5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getYieldRewards } from './getYieldRewards';
2
+ export type { GetYieldRewardsParams } from './getYieldRewards';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/yield/getYieldRewards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { listYieldVaults } from './listYieldVaults';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/yield/listYieldVaults/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { YieldVaultSummary } from '../yield.types';
2
+ /**
3
+ * Lists the yield vaults available to the current environment. Public
4
+ * vaults are returned for every caller; private vaults are included only
5
+ * when they're scoped to this environment. Each vault is enriched with
6
+ * live `netApy`/`tvlUsd` from the underlying protocol on a best-effort
7
+ * basis — either field may be omitted if that data is temporarily
8
+ * unavailable.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const vaults = await listYieldVaults();
13
+ * console.log(vaults[0].vaultId);
14
+ * ```
15
+ *
16
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
17
+ * @returns The yield vaults accessible to this environment.
18
+ * @see getYieldDetails
19
+ * @see getYieldPosition
20
+ * @notInstrumented
21
+ */
22
+ export declare const listYieldVaults: (client?: import("../../../exports").DynamicClient) => Promise<YieldVaultSummary[]>;
23
+ //# sourceMappingURL=listYieldVaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listYieldVaults.d.ts","sourceRoot":"","sources":["../../../../src/modules/yield/listYieldVaults/listYieldVaults.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,yDAEzB,OAAO,CAAC,iBAAiB,EAAE,CAS7B,CAAC"}
@@ -0,0 +1,60 @@
1
+ import type { YieldVaultDetails as SdkYieldVaultDetails, YieldVaultPosition as SdkYieldVaultPosition, YieldVaultReward as SdkYieldVaultReward, YieldVaultSummary as SdkYieldVaultSummary } from '@dynamic-labs/sdk-api-core';
2
+ /**
3
+ * A yield vault as returned by {@link listYieldVaults}: the identifiers,
4
+ * curator, and underlying asset needed to display it, plus best-effort live
5
+ * `netApy`/`tvlUsd` (either field may be omitted if that data is
6
+ * temporarily unavailable).
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const [vault] = await listYieldVaults();
11
+ * console.log(vault.vaultId, vault.netApy);
12
+ * ```
13
+ * @see listYieldVaults
14
+ * @see getYieldDetails
15
+ */
16
+ export type YieldVaultSummary = SdkYieldVaultSummary;
17
+ /**
18
+ * Full details for one yield vault, as returned by {@link getYieldDetails}:
19
+ * registry data merged with live protocol data (`netApy`,
20
+ * `netApyExcludingRewards`, `tvlUsd`) on a best-effort basis — these fields
21
+ * may be omitted if that data is temporarily unavailable.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const details = await getYieldDetails({ vaultId });
26
+ * console.log(details.contractAddress, details.netApy);
27
+ * ```
28
+ * @see getYieldDetails
29
+ * @see listYieldVaults
30
+ */
31
+ export type YieldVaultDetails = SdkYieldVaultDetails;
32
+ /**
33
+ * A wallet's share balance and asset value in a yield vault, as returned by
34
+ * {@link getYieldPosition}.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const position = await getYieldPosition({ vaultId, walletAccount });
39
+ * console.log(position.shares, position.assets);
40
+ * ```
41
+ * @see getYieldPosition
42
+ * @see listYieldVaults
43
+ */
44
+ export type YieldVaultPosition = SdkYieldVaultPosition;
45
+ /**
46
+ * An accrued reward entry for a wallet in a yield vault, as returned by
47
+ * {@link getYieldRewards}. A vault can have more than one concurrent reward
48
+ * campaign paying out in different tokens, so each entry carries its own
49
+ * token address/symbol/decimals.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const [reward] = await getYieldRewards({ vaultId, walletAccount });
54
+ * console.log(reward.accrued, reward.tokenSymbol);
55
+ * ```
56
+ * @see getYieldRewards
57
+ * @see listYieldVaults
58
+ */
59
+ export type YieldVaultReward = SdkYieldVaultReward;
60
+ //# sourceMappingURL=yield.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yield.types.d.ts","sourceRoot":"","sources":["../../../src/modules/yield/yield.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,IAAI,oBAAoB,EACzC,kBAAkB,IAAI,qBAAqB,EAC3C,gBAAgB,IAAI,mBAAmB,EACvC,iBAAiB,IAAI,oBAAoB,EAC1C,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAErD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAEvD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC"}