@dynamic-labs/aleo 4.88.1 → 4.88.3

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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,21 @@
1
1
 
2
+ ### [4.88.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.2...v4.88.3) (2026-06-09)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **ethereum:** bump @walletconnect/ethereum-provider to 2.23.2 ([#11497](https://github.com/dynamic-labs/dynamic-auth/issues/11497)) ([fb42c38](https://github.com/dynamic-labs/dynamic-auth/commit/fb42c3877f55d2dfaa3a3a46f8178a6b4a0e55d0))
8
+ * persist OTP verification state in sessionStorage to survive webview remounts ([#11499](https://github.com/dynamic-labs/dynamic-auth/issues/11499)) ([aa330df](https://github.com/dynamic-labs/dynamic-auth/commit/aa330dfc41e8fc81b823cce08b7c9b93588fc52c))
9
+
10
+ ### [4.88.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.1...v4.88.2) (2026-06-06)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **aleo:** support sendBalance on WaaS wallets (add connector.requestTransaction) ([#11474](https://github.com/dynamic-labs/dynamic-auth/issues/11474)) ([c11d49d](https://github.com/dynamic-labs/dynamic-auth/commit/c11d49d2cd1aeafdc6d6713a5c711dbe28ecf17d))
16
+ * remove rerenders from useDynamicWaas and useCreateDynamicEmbeddedWalletWallets ([#11482](https://github.com/dynamic-labs/dynamic-auth/issues/11482)) ([9724bf6](https://github.com/dynamic-labs/dynamic-auth/commit/9724bf67db7abd09366985b15e9687802e6ad3b1))
17
+ * **sdk-react-core:** reconcile installed wallets after late provider injection (DYNT-1074) ([#11480](https://github.com/dynamic-labs/dynamic-auth/issues/11480)) ([4d833da](https://github.com/dynamic-labs/dynamic-auth/commit/4d833daa5ee2e09780ee612ae93c6c5fddea9fdf))
18
+
2
19
  ### [4.88.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.0...v4.88.1) (2026-06-04)
3
20
 
4
21
 
@@ -6459,156 +6476,4 @@ Enjoy!
6459
6476
  ### Bug Fixes
6460
6477
 
6461
6478
  * **view-context:** refactor view context to have initial view ([#2268](https://github.com/dynamic-labs/DynamicAuth/issues/2268)) ([0afe6ae](https://github.com/dynamic-labs/DynamicAuth/commit/0afe6ae469f62fd16fd8471322f9295957f607f6))
6462
- * **wcv2:** upgrade universal provider and refactor wcv2 ([#2163](https://github.com/dynamic-labs/DynamicAuth/issues/2163)) ([e69c67c](https://github.com/dynamic-labs/DynamicAuth/commit/e69c67c95dca0f694c4a554702be96c3f7d3d77e))
6463
-
6464
- ## [0.17.0-RC.29](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.28...v0.17.0-RC.29) (2023-06-07)
6465
-
6466
-
6467
- ### Bug Fixes
6468
-
6469
- * de-duplicate authSuccess call ([#2269](https://github.com/dynamic-labs/DynamicAuth/issues/2269)) ([00268d0](https://github.com/dynamic-labs/DynamicAuth/commit/00268d001355946c98d285d71d7f7acc96d4c9f7))
6470
- * hide search when filtered wallets equal to number of shown wallets ([#2221](https://github.com/dynamic-labs/DynamicAuth/issues/2221)) ([fb0f629](https://github.com/dynamic-labs/DynamicAuth/commit/fb0f629ae76240fe681db91b485139934026054e))
6471
-
6472
- ## [0.17.0-RC.28](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.27...v0.17.0-RC.28) (2023-06-06)
6473
-
6474
-
6475
- ### Features
6476
-
6477
- * lower username minimum length requirement ([#2265](https://github.com/dynamic-labs/DynamicAuth/issues/2265)) ([ed891ca](https://github.com/dynamic-labs/DynamicAuth/commit/ed891cac8cceaf9e0556b679eda7a3575725805d))
6478
-
6479
-
6480
- ### Bug Fixes
6481
-
6482
- * **send_balance:** add amount validation to form ([#2261](https://github.com/dynamic-labs/DynamicAuth/issues/2261)) ([9a57cfe](https://github.com/dynamic-labs/DynamicAuth/commit/9a57cfe0dd7f97aa16351b091ab385b2b5c7c5e4))
6483
- * shrink dynamic widget in smaller containers ([#2260](https://github.com/dynamic-labs/DynamicAuth/issues/2260)) ([353f447](https://github.com/dynamic-labs/DynamicAuth/commit/353f44724db83e9f1500c606fdea7d50a8067711))
6484
-
6485
- ## [0.17.0-RC.27](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.26...v0.17.0-RC.27) (2023-06-06)
6486
-
6487
-
6488
- ### Features
6489
-
6490
- * sync wagmi to first connected eth wallet ([#2253](https://github.com/dynamic-labs/DynamicAuth/issues/2253)) ([c00aed7](https://github.com/dynamic-labs/DynamicAuth/commit/c00aed73a1014c668311c8cb59e5a466b5ee6779))
6491
-
6492
-
6493
- ### Bug Fixes
6494
-
6495
- * include username in userFieldsSchema ([#2257](https://github.com/dynamic-labs/DynamicAuth/issues/2257)) ([6e5431d](https://github.com/dynamic-labs/DynamicAuth/commit/6e5431d08323d718b11accf3790ef56fc7325b5c))
6496
-
6497
- ## [0.17.0-RC.26](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.25...v0.17.0-RC.26) (2023-06-05)
6498
-
6499
-
6500
- ### Features
6501
-
6502
- * disable button on social unlink ([#2234](https://github.com/dynamic-labs/DynamicAuth/issues/2234)) ([7f148de](https://github.com/dynamic-labs/DynamicAuth/commit/7f148de76b0fca632e1b4d6ff71c18eb0207c02b))
6503
- * update magic + email icon in auth flow views ([#2224](https://github.com/dynamic-labs/DynamicAuth/issues/2224)) ([93f1ed6](https://github.com/dynamic-labs/DynamicAuth/commit/93f1ed644428701c2747565033d0ad113fa8eeb2))
6504
-
6505
-
6506
- ### Bug Fixes
6507
-
6508
- * **wallets:** keep magic social wallet connector on mobile ([#2242](https://github.com/dynamic-labs/DynamicAuth/issues/2242)) ([35c092d](https://github.com/dynamic-labs/DynamicAuth/commit/35c092da3b8a76c74ae25558489d663ce963d72f))
6509
- * wrong logger instance in UserProfileSocialAccount ([#2248](https://github.com/dynamic-labs/DynamicAuth/issues/2248)) ([814108d](https://github.com/dynamic-labs/DynamicAuth/commit/814108d416d9d730bed8976956bc7974c7fde2a8))
6510
-
6511
- ## [0.17.0-RC.25](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.24...v0.17.0-RC.25) (2023-06-05)
6512
-
6513
-
6514
- ### Bug Fixes
6515
-
6516
- * **EmailOTPMagicWalletConnector:** allow user to reconnect with email wallet ([#2230](https://github.com/dynamic-labs/DynamicAuth/issues/2230)) ([6059886](https://github.com/dynamic-labs/DynamicAuth/commit/605988650a783ae824bb8c45edc5533fecf8726a))
6517
- * only set wagmi connector if connected chain is evm ([#2237](https://github.com/dynamic-labs/DynamicAuth/issues/2237)) ([a7be7d3](https://github.com/dynamic-labs/DynamicAuth/commit/a7be7d302d1e74088b0aa2b6848c879079e6f963))
6518
- * Revert "fix(ViewContext): only set view when on wallet list" ([#2235](https://github.com/dynamic-labs/DynamicAuth/issues/2235)) ([e790315](https://github.com/dynamic-labs/DynamicAuth/commit/e79031577f640161cc5f0b9b2e695e22d9a98901)), closes [#2226](https://github.com/dynamic-labs/DynamicAuth/issues/2226)
6519
- * set view to social-redirect-view while waiting to process magic redirect ([#2229](https://github.com/dynamic-labs/DynamicAuth/issues/2229)) ([f50a29c](https://github.com/dynamic-labs/DynamicAuth/commit/f50a29c0b9623c703f1577c7a41fcc5aee58abb8))
6520
- * user profile does not extend on mobile ([#2236](https://github.com/dynamic-labs/DynamicAuth/issues/2236)) ([5bb7912](https://github.com/dynamic-labs/DynamicAuth/commit/5bb7912a865338fdf6eca1a19ff4b74a3fb18eeb))
6521
- * **ViewContext:** only set view when on wallet list ([#2226](https://github.com/dynamic-labs/DynamicAuth/issues/2226)) ([85e8fc1](https://github.com/dynamic-labs/DynamicAuth/commit/85e8fc140069cabff41f4067ac93ea0c5cfaa161))
6522
-
6523
- ## [0.17.0-RC.24](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.23...v0.17.0-RC.24) (2023-06-02)
6524
-
6525
- ## [0.17.0-RC.23](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.22...v0.17.0-RC.23) (2023-06-02)
6526
-
6527
-
6528
- ### Bug Fixes
6529
-
6530
- * flow connection status improvements ([#2212](https://github.com/dynamic-labs/DynamicAuth/issues/2212)) ([5225e9f](https://github.com/dynamic-labs/DynamicAuth/commit/5225e9f3f19705cdde3c1d860ddf4e69689a839b))
6531
- * **useSyncPrimaryWallet:** disables the hook while connect state is loaded ([#2193](https://github.com/dynamic-labs/DynamicAuth/issues/2193)) ([d2a69c8](https://github.com/dynamic-labs/DynamicAuth/commit/d2a69c8edfbb2a19305b0fd322e24d909bbf9b4f)), closes [#2155](https://github.com/dynamic-labs/DynamicAuth/issues/2155)
6532
-
6533
- ## [0.17.0-RC.22](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.21...v0.17.0-RC.22) (2023-06-02)
6534
-
6535
-
6536
- ### Features
6537
-
6538
- * social copy update ([#2215](https://github.com/dynamic-labs/DynamicAuth/issues/2215)) ([1fe7316](https://github.com/dynamic-labs/DynamicAuth/commit/1fe7316a94284db7227d5ab09026354269559752))
6539
-
6540
- ## [0.17.0-RC.21](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.20...v0.17.0-RC.21) (2023-06-02)
6541
-
6542
-
6543
- ### Bug Fixes
6544
-
6545
- * social icon is missing on some views ([#2211](https://github.com/dynamic-labs/DynamicAuth/issues/2211)) ([bddd255](https://github.com/dynamic-labs/DynamicAuth/commit/bddd255f0aa61aed4b767145c51624ac1eb9b963))
6546
-
6547
- ## [0.17.0-RC.20](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.19...v0.17.0-RC.20) (2023-06-01)
6548
-
6549
-
6550
- ### Features
6551
-
6552
- * add AccessDeniedContext to lift denied wallet state up ([#2180](https://github.com/dynamic-labs/DynamicAuth/issues/2180)) ([509519d](https://github.com/dynamic-labs/DynamicAuth/commit/509519d08496248545f1548f676b13e140473e41))
6553
- * **DYN-2338:** update magic icons to social icons ([#2176](https://github.com/dynamic-labs/DynamicAuth/issues/2176)) ([42a4f63](https://github.com/dynamic-labs/DynamicAuth/commit/42a4f6367e6fa4ad8736f9ac42f535c8a9c1d377))
6554
- * **DynamicWidget:** add send balance button ([#2183](https://github.com/dynamic-labs/DynamicAuth/issues/2183)) ([d76355e](https://github.com/dynamic-labs/DynamicAuth/commit/d76355e1f9c3a7b05cbb5b7b3144dad379586689))
6555
- * handle magic redirect error ([#2203](https://github.com/dynamic-labs/DynamicAuth/issues/2203)) ([9a088c6](https://github.com/dynamic-labs/DynamicAuth/commit/9a088c6aad2eb2c1045f544a784083d2732df440))
6556
- * **SendBalanceModal:** adds openSendBalanceModal in dynamic context ([#2159](https://github.com/dynamic-labs/DynamicAuth/issues/2159)) ([f89b21b](https://github.com/dynamic-labs/DynamicAuth/commit/f89b21bfcd65bb61ef33b17b460140404574b235))
6557
- * social error handling improvements ([#2146](https://github.com/dynamic-labs/DynamicAuth/issues/2146)) ([a64a26a](https://github.com/dynamic-labs/DynamicAuth/commit/a64a26aa42c228654cb135cd6c4778e8bd2bd0e6))
6558
-
6559
-
6560
- ### Bug Fixes
6561
-
6562
- * amendments to user profile ([#2201](https://github.com/dynamic-labs/DynamicAuth/issues/2201)) ([5d12c17](https://github.com/dynamic-labs/DynamicAuth/commit/5d12c1716cdcd8d843ef3ff941e163bad28573b1))
6563
- * **formatBigNumber:** display the ceil value when value is too low ([#2165](https://github.com/dynamic-labs/DynamicAuth/issues/2165)) ([ad56fe1](https://github.com/dynamic-labs/DynamicAuth/commit/ad56fe11d55ee038e08ef77dfa2bd6155fee7fe3))
6564
- * use wcv2 only if wallet supports it ([#2198](https://github.com/dynamic-labs/DynamicAuth/issues/2198)) ([3d5fea7](https://github.com/dynamic-labs/DynamicAuth/commit/3d5fea7743a18b47f33ef371ecc2652003accb4d))
6565
-
6566
- ## [0.17.0-RC.19](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.18...v0.17.0-RC.19) (2023-05-30)
6567
-
6568
-
6569
- ### Features
6570
-
6571
- * add SocialWrongAccountView ([#2153](https://github.com/dynamic-labs/DynamicAuth/issues/2153)) ([531a29d](https://github.com/dynamic-labs/DynamicAuth/commit/531a29d7d87739d974ecc35c57ef0d333a5e7451))
6572
- * do not show unlink button for embedded wallets ([#2169](https://github.com/dynamic-labs/DynamicAuth/issues/2169)) ([f813058](https://github.com/dynamic-labs/DynamicAuth/commit/f8130585c82c7ae73d1e32e107f67ec86b4edb89))
6573
- * **DYN-2402:** coinbase issues after disconnecting ([#2149](https://github.com/dynamic-labs/DynamicAuth/issues/2149)) ([91d49fb](https://github.com/dynamic-labs/DynamicAuth/commit/91d49fb7f8c6fca3ab03098f3fba53d277c836ad))
6574
- * handle user reconnecting with wrong social account ([#2157](https://github.com/dynamic-labs/DynamicAuth/issues/2157)) ([4f7c6df](https://github.com/dynamic-labs/DynamicAuth/commit/4f7c6dff7df9a7966a644bf2510cb3825b2c6408))
6575
- * **social:** handle reconnect ([#2131](https://github.com/dynamic-labs/DynamicAuth/issues/2131)) ([2b3e5fb](https://github.com/dynamic-labs/DynamicAuth/commit/2b3e5fbb72bb7dafee3bd0bbfa73fae444055410))
6576
-
6577
- ## [0.17.0-RC.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.17...v0.17.0-RC.18) (2023-05-19)
6578
-
6579
-
6580
- ### Features
6581
-
6582
- * add getReferencedAccount ([#2141](https://github.com/dynamic-labs/DynamicAuth/issues/2141)) ([ac170a6](https://github.com/dynamic-labs/DynamicAuth/commit/ac170a6dfac25ff9911feb390495974aa5dbede6))
6583
- * add reconnectSocialWallet ([#2142](https://github.com/dynamic-labs/DynamicAuth/issues/2142)) ([fefd759](https://github.com/dynamic-labs/DynamicAuth/commit/fefd759b816b286dd8a7673cf6c839fee59768ac))
6584
- * **DYN-2220:** add Transaction Successfully Sent view ([#2134](https://github.com/dynamic-labs/DynamicAuth/issues/2134)) ([7db96ad](https://github.com/dynamic-labs/DynamicAuth/commit/7db96adcd3b84aef29fbabe40a1e048ea629d2bb))
6585
- * **MagicSocialWalletConnector:** store public address from redirect result in local storage ([#2139](https://github.com/dynamic-labs/DynamicAuth/issues/2139)) ([90b60e4](https://github.com/dynamic-labs/DynamicAuth/commit/90b60e485a53ff29a0e52ef27a58383771490974))
6586
-
6587
-
6588
- ### Bug Fixes
6589
-
6590
- * issue when linking from detect_new_wallet ([#2148](https://github.com/dynamic-labs/DynamicAuth/issues/2148)) ([98feb7b](https://github.com/dynamic-labs/DynamicAuth/commit/98feb7bde081a8107577ac7ec70d0f9c4b611a2b))
6591
- * multi-wallet flows ([#2150](https://github.com/dynamic-labs/DynamicAuth/issues/2150)) ([c82ef4a](https://github.com/dynamic-labs/DynamicAuth/commit/c82ef4a5cc75c9f8edb30620e32dd64bbdb0eb7f))
6592
- * starknet getConnectedAccounts should return an empty array if there's no address to return ([#2140](https://github.com/dynamic-labs/DynamicAuth/issues/2140)) ([ce39641](https://github.com/dynamic-labs/DynamicAuth/commit/ce39641a6dbec1d05d8d5cc611a02de8bd756351))
6593
-
6594
- ## [0.17.0-RC.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.16...v0.17.0-RC.17) (2023-05-17)
6595
-
6596
-
6597
- ### Features
6598
-
6599
- * distinguish walletconnect deeplink types ([#2093](https://github.com/dynamic-labs/DynamicAuth/issues/2093)) ([dcd29f7](https://github.com/dynamic-labs/DynamicAuth/commit/dcd29f7cfc5e6481aaaae502b3fc4e4d225f1fc1))
6600
- * **social:** pass did token to verify request ([#2124](https://github.com/dynamic-labs/DynamicAuth/issues/2124)) ([60d73a5](https://github.com/dynamic-labs/DynamicAuth/commit/60d73a5f432d488979f33fe29666d1afa8fc0e8e))
6601
- * support optional priority and stalltimeout for customer provided rpc urls ([#2091](https://github.com/dynamic-labs/DynamicAuth/issues/2091)) ([eebacda](https://github.com/dynamic-labs/DynamicAuth/commit/eebacda6a9d6ba583eff4e4e5a38eb9945c4825e))
6602
-
6603
-
6604
- ### Bug Fixes
6605
-
6606
- * add and remove event listeners for Solflare ([#2127](https://github.com/dynamic-labs/DynamicAuth/issues/2127)) ([978c7ba](https://github.com/dynamic-labs/DynamicAuth/commit/978c7ba0e3745e26d9dfc9b7c46a24adc913f02f))
6607
- * get publicKey from provider if no address and publicKey are returned on connect ([#2126](https://github.com/dynamic-labs/DynamicAuth/issues/2126)) ([c9c9b2a](https://github.com/dynamic-labs/DynamicAuth/commit/c9c9b2af81f660aa651fc4b0e01cd3c823bb0229))
6608
- * remove detect known secondary wallet modal ([#2117](https://github.com/dynamic-labs/DynamicAuth/issues/2117)) ([0e8bbd8](https://github.com/dynamic-labs/DynamicAuth/commit/0e8bbd8c385fe528a7af3ccc037812df9d6e0c84))
6609
- * revert changes for select wallet to work with solflare ([#2120](https://github.com/dynamic-labs/DynamicAuth/issues/2120)) ([76cf228](https://github.com/dynamic-labs/DynamicAuth/commit/76cf228c495d6592da4c88b8a0d5a5fc480861ae))
6610
- * setIsVerifying to false when selecting a connector ([#2133](https://github.com/dynamic-labs/DynamicAuth/issues/2133)) ([8ddeba3](https://github.com/dynamic-labs/DynamicAuth/commit/8ddeba377f35dfb4a104cd6bd7ee6315d574710f))
6611
- * setPrimaryWallet and useSyncPrimaryWallet updates ([#2128](https://github.com/dynamic-labs/DynamicAuth/issues/2128)) ([fb47b17](https://github.com/dynamic-labs/DynamicAuth/commit/fb47b17ddc7f41c29f140a1a85a1e47dbf017fff))
6612
- * update text color and add close button on extension not installed prompt ([#2122](https://github.com/dynamic-labs/DynamicAuth/issues/2122)) ([b4848a0](https://github.com/dynamic-labs/DynamicAuth/commit/b4848a0a8094b4ceac67e2667d277a9aa5e2e137))
6613
-
6614
- ## [0.17.0-RC.16](https://github.com/dynamic-labs/Dyna
6479
+ * **wcv2:** upgrade universal p
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.88.1";
6
+ var version = "4.88.3";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.88.1";
2
+ var version = "4.88.3";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/aleo",
3
- "version": "4.88.1",
3
+ "version": "4.88.3",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -19,18 +19,18 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@dynamic-labs-sdk/client": "1.7.0",
22
- "@dynamic-labs/assert-package-version": "4.88.1",
22
+ "@dynamic-labs/assert-package-version": "4.88.3",
23
23
  "@dynamic-labs/sdk-api-core": "0.0.1015",
24
24
  "@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.3",
25
25
  "@provablehq/aleo-wallet-adaptor-shield": "0.3.0-alpha.3",
26
26
  "@provablehq/aleo-wallet-standard": "0.3.0-alpha.3",
27
27
  "@provablehq/aleo-types": "0.3.0-alpha.3",
28
- "@dynamic-labs/logger": "4.88.1",
29
- "@dynamic-labs/types": "4.88.1",
30
- "@dynamic-labs/utils": "4.88.1",
31
- "@dynamic-labs/waas": "4.88.1",
32
- "@dynamic-labs/wallet-book": "4.88.1",
33
- "@dynamic-labs/wallet-connector-core": "4.88.1"
28
+ "@dynamic-labs/logger": "4.88.3",
29
+ "@dynamic-labs/types": "4.88.3",
30
+ "@dynamic-labs/utils": "4.88.3",
31
+ "@dynamic-labs/waas": "4.88.3",
32
+ "@dynamic-labs/wallet-book": "4.88.3",
33
+ "@dynamic-labs/wallet-connector-core": "4.88.3"
34
34
  },
35
35
  "peerDependencies": {}
36
36
  }
@@ -56,6 +56,19 @@ const JOIN_PROGRAM_SHAPES = {
56
56
  },
57
57
  };
58
58
  const isJoinSupportedProgram = (programId) => programId in JOIN_PROGRAM_SHAPES;
59
+ /**
60
+ * Derive the `<type>.public` input-type literal the iframe's
61
+ * `proveTransaction` expects from a public input value produced by
62
+ * `AleoWallet.sendBalance` (`transfer_public`). Addresses → `address.public`;
63
+ * integer literals carry their own type tag (`123u64` → `u64.public`).
64
+ * Falls back to `field.public` for anything unrecognised.
65
+ */
66
+ const inferPublicInputType = (input) => {
67
+ if (input.startsWith('aleo1'))
68
+ return 'address.public';
69
+ const match = input.match(/(u8|u16|u32|u64|u128|i8|i16|i32|i64|i128)$/);
70
+ return match ? `${match[1]}.public` : 'field.public';
71
+ };
59
72
  /**
60
73
  * Builds the `(functionName, inputs, inputTypes)` triple for a Send
61
74
  * transition based on the picker-selected token's `programKind`. Lives
@@ -375,6 +388,43 @@ class DynamicWaasAleoConnector extends waas.withDynamicWaas(WaasAleoWalletConnec
375
388
  });
376
389
  });
377
390
  }
391
+ /**
392
+ * Wallet-Adapter-compatible entry point (`IAleoAdapter.requestTransaction`)
393
+ * used by `AleoWallet.sendBalance`. Maps the `AleoTransaction` struct's
394
+ * single transition onto the WaaS `proveTransaction` MPC flow and returns
395
+ * the broadcast txId.
396
+ *
397
+ * `sendBalance` builds a `transfer_public` transition whose inputs are all
398
+ * public — `[recipient, "<amount>u64|u128"]`. We derive matching
399
+ * `<type>.public` input-type literals from those input values because the
400
+ * iframe's `proveTransaction` requires explicit visibility-suffixed types.
401
+ * For arbitrary or private transitions, call `proveTransaction` directly
402
+ * with explicit `inputTypes` instead of routing through here.
403
+ */
404
+ requestTransaction(transaction) {
405
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
406
+ var _a;
407
+ if (!((_a = transaction.transitions) === null || _a === void 0 ? void 0 : _a.length)) {
408
+ throw new utils.DynamicError('AleoTransaction must have at least one transition');
409
+ }
410
+ if (transaction.transitions.length > 1) {
411
+ throw new utils.DynamicError('requestTransaction supports a single transition; use proveTransaction for multi-transition flows');
412
+ }
413
+ const [{ program, functionName, inputs }] = transaction.transitions;
414
+ const stringInputs = inputs.map(String);
415
+ const { txId } = yield this.proveTransaction({
416
+ broadcast: true,
417
+ functionName,
418
+ inputTypes: stringInputs.map(inferPublicInputType),
419
+ inputs: stringInputs,
420
+ programId: program,
421
+ });
422
+ if (!txId) {
423
+ throw new utils.DynamicError('Transaction broadcast did not return a transaction id.');
424
+ }
425
+ return txId;
426
+ });
427
+ }
378
428
  /**
379
429
  * List this wallet's Aleo records across all programs (credits + custom
380
430
  * tokens). Delegates into the iframe's DynamicAleoWalletClient.
@@ -6,6 +6,7 @@ import { Logger } from '@dynamic-labs/logger';
6
6
  import { WaasAleoWalletConnector, type WaasAleoWalletConnectorProps } from '../WaasAleoWalletConnector';
7
7
  import { AleoWallet } from '../../wallet/AleoWallet';
8
8
  import { AleoOwnedRecord } from '../../utils/aleoSendableTokens';
9
+ import type { AleoTransaction } from '../../types';
9
10
  export type DynamicWaasAleoConnectorProps = WaasAleoWalletConnectorProps & {
10
11
  walletUiUtils: WalletUiUtils<InternalWalletConnector>;
11
12
  };
@@ -216,6 +217,20 @@ export declare class DynamicWaasAleoConnector extends DynamicWaasAleoConnector_b
216
217
  txId?: string;
217
218
  provingResponse?: unknown;
218
219
  }>;
220
+ /**
221
+ * Wallet-Adapter-compatible entry point (`IAleoAdapter.requestTransaction`)
222
+ * used by `AleoWallet.sendBalance`. Maps the `AleoTransaction` struct's
223
+ * single transition onto the WaaS `proveTransaction` MPC flow and returns
224
+ * the broadcast txId.
225
+ *
226
+ * `sendBalance` builds a `transfer_public` transition whose inputs are all
227
+ * public — `[recipient, "<amount>u64|u128"]`. We derive matching
228
+ * `<type>.public` input-type literals from those input values because the
229
+ * iframe's `proveTransaction` requires explicit visibility-suffixed types.
230
+ * For arbitrary or private transitions, call `proveTransaction` directly
231
+ * with explicit `inputTypes` instead of routing through here.
232
+ */
233
+ requestTransaction(transaction: AleoTransaction): Promise<string>;
219
234
  /**
220
235
  * List this wallet's Aleo records across all programs (credits + custom
221
236
  * tokens). Delegates into the iframe's DynamicAleoWalletClient.
@@ -52,6 +52,19 @@ const JOIN_PROGRAM_SHAPES = {
52
52
  },
53
53
  };
54
54
  const isJoinSupportedProgram = (programId) => programId in JOIN_PROGRAM_SHAPES;
55
+ /**
56
+ * Derive the `<type>.public` input-type literal the iframe's
57
+ * `proveTransaction` expects from a public input value produced by
58
+ * `AleoWallet.sendBalance` (`transfer_public`). Addresses → `address.public`;
59
+ * integer literals carry their own type tag (`123u64` → `u64.public`).
60
+ * Falls back to `field.public` for anything unrecognised.
61
+ */
62
+ const inferPublicInputType = (input) => {
63
+ if (input.startsWith('aleo1'))
64
+ return 'address.public';
65
+ const match = input.match(/(u8|u16|u32|u64|u128|i8|i16|i32|i64|i128)$/);
66
+ return match ? `${match[1]}.public` : 'field.public';
67
+ };
55
68
  /**
56
69
  * Builds the `(functionName, inputs, inputTypes)` triple for a Send
57
70
  * transition based on the picker-selected token's `programKind`. Lives
@@ -371,6 +384,43 @@ class DynamicWaasAleoConnector extends withDynamicWaas(WaasAleoWalletConnector)
371
384
  });
372
385
  });
373
386
  }
387
+ /**
388
+ * Wallet-Adapter-compatible entry point (`IAleoAdapter.requestTransaction`)
389
+ * used by `AleoWallet.sendBalance`. Maps the `AleoTransaction` struct's
390
+ * single transition onto the WaaS `proveTransaction` MPC flow and returns
391
+ * the broadcast txId.
392
+ *
393
+ * `sendBalance` builds a `transfer_public` transition whose inputs are all
394
+ * public — `[recipient, "<amount>u64|u128"]`. We derive matching
395
+ * `<type>.public` input-type literals from those input values because the
396
+ * iframe's `proveTransaction` requires explicit visibility-suffixed types.
397
+ * For arbitrary or private transitions, call `proveTransaction` directly
398
+ * with explicit `inputTypes` instead of routing through here.
399
+ */
400
+ requestTransaction(transaction) {
401
+ return __awaiter(this, void 0, void 0, function* () {
402
+ var _a;
403
+ if (!((_a = transaction.transitions) === null || _a === void 0 ? void 0 : _a.length)) {
404
+ throw new DynamicError('AleoTransaction must have at least one transition');
405
+ }
406
+ if (transaction.transitions.length > 1) {
407
+ throw new DynamicError('requestTransaction supports a single transition; use proveTransaction for multi-transition flows');
408
+ }
409
+ const [{ program, functionName, inputs }] = transaction.transitions;
410
+ const stringInputs = inputs.map(String);
411
+ const { txId } = yield this.proveTransaction({
412
+ broadcast: true,
413
+ functionName,
414
+ inputTypes: stringInputs.map(inferPublicInputType),
415
+ inputs: stringInputs,
416
+ programId: program,
417
+ });
418
+ if (!txId) {
419
+ throw new DynamicError('Transaction broadcast did not return a transaction id.');
420
+ }
421
+ return txId;
422
+ });
423
+ }
374
424
  /**
375
425
  * List this wallet's Aleo records across all programs (credits + custom
376
426
  * tokens). Delegates into the iframe's DynamicAleoWalletClient.
@@ -16,6 +16,11 @@ class AleoWallet extends walletConnectorCore.Wallet {
16
16
  const decimals = (_c = token === null || token === void 0 ? void 0 : token.decimals) !== null && _c !== void 0 ? _c : 6;
17
17
  const microcredits = BigInt(Math.round(parseFloat(amount) * Math.pow(10, decimals)));
18
18
  const program = (_d = token === null || token === void 0 ? void 0 : token.address) !== null && _d !== void 0 ? _d : 'credits.aleo';
19
+ // credits.aleo's transfer_public takes u64; token programs (e.g. stablecoins)
20
+ // take u128. Key off the program, NOT merely whether a token was passed —
21
+ // passing token { address: 'credits.aleo' } must still produce u64.
22
+ const isCredits = program === 'credits.aleo';
23
+ const amountSuffix = isCredits ? 'u64' : 'u128';
19
24
  const transaction = {
20
25
  address: this.address,
21
26
  chainId,
@@ -24,10 +29,7 @@ class AleoWallet extends walletConnectorCore.Wallet {
24
29
  transitions: [
25
30
  {
26
31
  functionName: 'transfer_public',
27
- inputs: [
28
- toAddress,
29
- `${microcredits}${(token === null || token === void 0 ? void 0 : token.address) ? 'u128' : 'u64'}`,
30
- ],
32
+ inputs: [toAddress, `${microcredits}${amountSuffix}`],
31
33
  program,
32
34
  },
33
35
  ],
@@ -12,6 +12,11 @@ class AleoWallet extends Wallet {
12
12
  const decimals = (_c = token === null || token === void 0 ? void 0 : token.decimals) !== null && _c !== void 0 ? _c : 6;
13
13
  const microcredits = BigInt(Math.round(parseFloat(amount) * Math.pow(10, decimals)));
14
14
  const program = (_d = token === null || token === void 0 ? void 0 : token.address) !== null && _d !== void 0 ? _d : 'credits.aleo';
15
+ // credits.aleo's transfer_public takes u64; token programs (e.g. stablecoins)
16
+ // take u128. Key off the program, NOT merely whether a token was passed —
17
+ // passing token { address: 'credits.aleo' } must still produce u64.
18
+ const isCredits = program === 'credits.aleo';
19
+ const amountSuffix = isCredits ? 'u64' : 'u128';
15
20
  const transaction = {
16
21
  address: this.address,
17
22
  chainId,
@@ -20,10 +25,7 @@ class AleoWallet extends Wallet {
20
25
  transitions: [
21
26
  {
22
27
  functionName: 'transfer_public',
23
- inputs: [
24
- toAddress,
25
- `${microcredits}${(token === null || token === void 0 ? void 0 : token.address) ? 'u128' : 'u64'}`,
26
- ],
28
+ inputs: [toAddress, `${microcredits}${amountSuffix}`],
27
29
  program,
28
30
  },
29
31
  ],