@dynamic-labs/aleo 4.88.0 → 4.88.2
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 +17 -153
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/connectors/DynamicWaasAleoConnector/DynamicWaasAleoConnector.cjs +50 -0
- package/src/connectors/DynamicWaasAleoConnector/DynamicWaasAleoConnector.d.ts +15 -0
- package/src/connectors/DynamicWaasAleoConnector/DynamicWaasAleoConnector.js +50 -0
- package/src/wallet/AleoWallet/AleoWallet.cjs +6 -4
- package/src/wallet/AleoWallet/AleoWallet.js +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.88.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.1...v4.88.2) (2026-06-06)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **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))
|
|
8
|
+
* 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))
|
|
9
|
+
* **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))
|
|
10
|
+
|
|
11
|
+
### [4.88.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.0...v4.88.1) (2026-06-04)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **solana:** poll wallet-standard registry to catch late-injecting wallets ([#11464](https://github.com/dynamic-labs/dynamic-auth/issues/11464)) ([afa8ae7](https://github.com/dynamic-labs/dynamic-auth/commit/afa8ae785d7be58775addc4bb2db3dc1b5500f87))
|
|
17
|
+
|
|
2
18
|
## [4.88.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.2...v4.88.0) (2026-06-04)
|
|
3
19
|
|
|
4
20
|
|
|
@@ -6452,156 +6468,4 @@ Enjoy!
|
|
|
6452
6468
|
### Bug Fixes
|
|
6453
6469
|
|
|
6454
6470
|
* **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))
|
|
6455
|
-
* **wcv2:** upgrade universal
|
|
6456
|
-
|
|
6457
|
-
## [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)
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
### Bug Fixes
|
|
6461
|
-
|
|
6462
|
-
* de-duplicate authSuccess call ([#2269](https://github.com/dynamic-labs/DynamicAuth/issues/2269)) ([00268d0](https://github.com/dynamic-labs/DynamicAuth/commit/00268d001355946c98d285d71d7f7acc96d4c9f7))
|
|
6463
|
-
* 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))
|
|
6464
|
-
|
|
6465
|
-
## [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)
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
### Features
|
|
6469
|
-
|
|
6470
|
-
* lower username minimum length requirement ([#2265](https://github.com/dynamic-labs/DynamicAuth/issues/2265)) ([ed891ca](https://github.com/dynamic-labs/DynamicAuth/commit/ed891cac8cceaf9e0556b679eda7a3575725805d))
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
### Bug Fixes
|
|
6474
|
-
|
|
6475
|
-
* **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))
|
|
6476
|
-
* shrink dynamic widget in smaller containers ([#2260](https://github.com/dynamic-labs/DynamicAuth/issues/2260)) ([353f447](https://github.com/dynamic-labs/DynamicAuth/commit/353f44724db83e9f1500c606fdea7d50a8067711))
|
|
6477
|
-
|
|
6478
|
-
## [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)
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
### Features
|
|
6482
|
-
|
|
6483
|
-
* 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))
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
### Bug Fixes
|
|
6487
|
-
|
|
6488
|
-
* include username in userFieldsSchema ([#2257](https://github.com/dynamic-labs/DynamicAuth/issues/2257)) ([6e5431d](https://github.com/dynamic-labs/DynamicAuth/commit/6e5431d08323d718b11accf3790ef56fc7325b5c))
|
|
6489
|
-
|
|
6490
|
-
## [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)
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
### Features
|
|
6494
|
-
|
|
6495
|
-
* disable button on social unlink ([#2234](https://github.com/dynamic-labs/DynamicAuth/issues/2234)) ([7f148de](https://github.com/dynamic-labs/DynamicAuth/commit/7f148de76b0fca632e1b4d6ff71c18eb0207c02b))
|
|
6496
|
-
* 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))
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
### Bug Fixes
|
|
6500
|
-
|
|
6501
|
-
* **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))
|
|
6502
|
-
* wrong logger instance in UserProfileSocialAccount ([#2248](https://github.com/dynamic-labs/DynamicAuth/issues/2248)) ([814108d](https://github.com/dynamic-labs/DynamicAuth/commit/814108d416d9d730bed8976956bc7974c7fde2a8))
|
|
6503
|
-
|
|
6504
|
-
## [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)
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
### Bug Fixes
|
|
6508
|
-
|
|
6509
|
-
* **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))
|
|
6510
|
-
* 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))
|
|
6511
|
-
* 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)
|
|
6512
|
-
* 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))
|
|
6513
|
-
* 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))
|
|
6514
|
-
* **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))
|
|
6515
|
-
|
|
6516
|
-
## [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)
|
|
6517
|
-
|
|
6518
|
-
## [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)
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
### Bug Fixes
|
|
6522
|
-
|
|
6523
|
-
* flow connection status improvements ([#2212](https://github.com/dynamic-labs/DynamicAuth/issues/2212)) ([5225e9f](https://github.com/dynamic-labs/DynamicAuth/commit/5225e9f3f19705cdde3c1d860ddf4e69689a839b))
|
|
6524
|
-
* **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)
|
|
6525
|
-
|
|
6526
|
-
## [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)
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
### Features
|
|
6530
|
-
|
|
6531
|
-
* social copy update ([#2215](https://github.com/dynamic-labs/DynamicAuth/issues/2215)) ([1fe7316](https://github.com/dynamic-labs/DynamicAuth/commit/1fe7316a94284db7227d5ab09026354269559752))
|
|
6532
|
-
|
|
6533
|
-
## [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)
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
### Bug Fixes
|
|
6537
|
-
|
|
6538
|
-
* 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))
|
|
6539
|
-
|
|
6540
|
-
## [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)
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
### Features
|
|
6544
|
-
|
|
6545
|
-
* 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))
|
|
6546
|
-
* **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))
|
|
6547
|
-
* **DynamicWidget:** add send balance button ([#2183](https://github.com/dynamic-labs/DynamicAuth/issues/2183)) ([d76355e](https://github.com/dynamic-labs/DynamicAuth/commit/d76355e1f9c3a7b05cbb5b7b3144dad379586689))
|
|
6548
|
-
* handle magic redirect error ([#2203](https://github.com/dynamic-labs/DynamicAuth/issues/2203)) ([9a088c6](https://github.com/dynamic-labs/DynamicAuth/commit/9a088c6aad2eb2c1045f544a784083d2732df440))
|
|
6549
|
-
* **SendBalanceModal:** adds openSendBalanceModal in dynamic context ([#2159](https://github.com/dynamic-labs/DynamicAuth/issues/2159)) ([f89b21b](https://github.com/dynamic-labs/DynamicAuth/commit/f89b21bfcd65bb61ef33b17b460140404574b235))
|
|
6550
|
-
* social error handling improvements ([#2146](https://github.com/dynamic-labs/DynamicAuth/issues/2146)) ([a64a26a](https://github.com/dynamic-labs/DynamicAuth/commit/a64a26aa42c228654cb135cd6c4778e8bd2bd0e6))
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
### Bug Fixes
|
|
6554
|
-
|
|
6555
|
-
* amendments to user profile ([#2201](https://github.com/dynamic-labs/DynamicAuth/issues/2201)) ([5d12c17](https://github.com/dynamic-labs/DynamicAuth/commit/5d12c1716cdcd8d843ef3ff941e163bad28573b1))
|
|
6556
|
-
* **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))
|
|
6557
|
-
* 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))
|
|
6558
|
-
|
|
6559
|
-
## [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)
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
### Features
|
|
6563
|
-
|
|
6564
|
-
* add SocialWrongAccountView ([#2153](https://github.com/dynamic-labs/DynamicAuth/issues/2153)) ([531a29d](https://github.com/dynamic-labs/DynamicAuth/commit/531a29d7d87739d974ecc35c57ef0d333a5e7451))
|
|
6565
|
-
* 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))
|
|
6566
|
-
* **DYN-2402:** coinbase issues after disconnecting ([#2149](https://github.com/dynamic-labs/DynamicAuth/issues/2149)) ([91d49fb](https://github.com/dynamic-labs/DynamicAuth/commit/91d49fb7f8c6fca3ab03098f3fba53d277c836ad))
|
|
6567
|
-
* 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))
|
|
6568
|
-
* **social:** handle reconnect ([#2131](https://github.com/dynamic-labs/DynamicAuth/issues/2131)) ([2b3e5fb](https://github.com/dynamic-labs/DynamicAuth/commit/2b3e5fbb72bb7dafee3bd0bbfa73fae444055410))
|
|
6569
|
-
|
|
6570
|
-
## [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)
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
### Features
|
|
6574
|
-
|
|
6575
|
-
* add getReferencedAccount ([#2141](https://github.com/dynamic-labs/DynamicAuth/issues/2141)) ([ac170a6](https://github.com/dynamic-labs/DynamicAuth/commit/ac170a6dfac25ff9911feb390495974aa5dbede6))
|
|
6576
|
-
* add reconnectSocialWallet ([#2142](https://github.com/dynamic-labs/DynamicAuth/issues/2142)) ([fefd759](https://github.com/dynamic-labs/DynamicAuth/commit/fefd759b816b286dd8a7673cf6c839fee59768ac))
|
|
6577
|
-
* **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))
|
|
6578
|
-
* **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))
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
### Bug Fixes
|
|
6582
|
-
|
|
6583
|
-
* 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))
|
|
6584
|
-
* multi-wallet flows ([#2150](https://github.com/dynamic-labs/DynamicAuth/issues/2150)) ([c82ef4a](https://github.com/dynamic-labs/DynamicAuth/commit/c82ef4a5cc75c9f8edb30620e32dd64bbdb0eb7f))
|
|
6585
|
-
* 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))
|
|
6586
|
-
|
|
6587
|
-
## [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)
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
### Features
|
|
6591
|
-
|
|
6592
|
-
* distinguish walletconnect deeplink types ([#2093](https://github.com/dynamic-labs/DynamicAuth/issues/2093)) ([dcd29f7](https://github.com/dynamic-labs/DynamicAuth/commit/dcd29f7cfc5e6481aaaae502b3fc4e4d225f1fc1))
|
|
6593
|
-
* **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))
|
|
6594
|
-
* 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))
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
### Bug Fixes
|
|
6598
|
-
|
|
6599
|
-
* 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))
|
|
6600
|
-
* 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))
|
|
6601
|
-
* remove detect known secondary wallet modal ([#2117](https://github.com/dynamic-labs/DynamicAuth/issues/2117)) ([0e8bbd8](https://github.com/dynamic-labs/DynamicAuth/commit/0e8bbd8c385fe528a7af3ccc037812df9d6e0c84))
|
|
6602
|
-
* 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))
|
|
6603
|
-
* 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))
|
|
6604
|
-
* setPrimaryWallet and useSyncPrimaryWallet updates ([#2128](https://github.com/dynamic-labs/DynamicAuth/issues/2128)) ([fb47b17](https://github.com/dynamic-labs/DynamicAuth/commit/fb47b17ddc7f41c29f140a1a85a1e47dbf017fff))
|
|
6605
|
-
* 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))
|
|
6606
|
-
|
|
6607
|
-
## [0.17.0-RC.16](https://github.com/dynamic-labs/Dyna
|
|
6471
|
+
* **wcv2:** upgrade universal p
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/aleo",
|
|
3
|
-
"version": "4.88.
|
|
3
|
+
"version": "4.88.2",
|
|
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.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.88.2",
|
|
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.
|
|
29
|
-
"@dynamic-labs/types": "4.88.
|
|
30
|
-
"@dynamic-labs/utils": "4.88.
|
|
31
|
-
"@dynamic-labs/waas": "4.88.
|
|
32
|
-
"@dynamic-labs/wallet-book": "4.88.
|
|
33
|
-
"@dynamic-labs/wallet-connector-core": "4.88.
|
|
28
|
+
"@dynamic-labs/logger": "4.88.2",
|
|
29
|
+
"@dynamic-labs/types": "4.88.2",
|
|
30
|
+
"@dynamic-labs/utils": "4.88.2",
|
|
31
|
+
"@dynamic-labs/waas": "4.88.2",
|
|
32
|
+
"@dynamic-labs/wallet-book": "4.88.2",
|
|
33
|
+
"@dynamic-labs/wallet-connector-core": "4.88.2"
|
|
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
|
],
|