From 524f137dc8fafb4ba8a71bf691c82024c5fdb0f2 Mon Sep 17 00:00:00 2001 From: Mohammed S Date: Mon, 15 Apr 2024 20:49:43 +0530 Subject: [PATCH] Alpha fixes (#1229) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add: ethers support (#952) * fix: fix viem support, add ethers support * fix: remove @pushprotocol/socket dependency from restapi * fix: changed ethers fn * fix: fix ether changes * fix: fix subscribev2 * chore: readme changes * fix: fix ethers provider issue * fix: fix channel.update * feat(video-v2): add video v2 class and stream (#930) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * feat(video): update param names for video.initialize() * feat(video): add internal event handlers for stream in video SDK --------- Co-authored-by: Mohammed S * Chat Preview List workable PoC (#987) * fix: revert space changes * fix: merge main * fix: signer compatibility with viem and ethers (#567) * fix: signer compatibility with viem and ethers * fix: revert space changes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.26 * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.3 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.27 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.4 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.5 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.6 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.7 * fix: add: scw sig verification (#593) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.28 * fix: url correction * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.29 * ci(socket): šŸŽ‰ cut release to socket-v0.5.2 * fix: fixed subscribe and unsubscribe * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.5 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.8 * Feat/chat components (#621) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson * fix: add alpha support to UI web * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.0 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.6 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.9 * Feat/chat components (#625) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.1 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.7 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.8 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.10 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.9 * 632 group access control sdk changes (#640) * fix: group access control changes * fix: get group access SDK fix * fix: removed unnecessary param * Update README.md * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.30 * Reduce profile creation signature to 2 (#639) * fix: reduced signatures * fix: fixed examples * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.31 * fix: Read me fixes * fix: Space rules * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.32 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.10 * Feat/chat components (#658) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) --------- Co-authored-by: Monalisha Mishra Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.11 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.12 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.11 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.13 * fix: update read me file * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.14 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.15 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.12 * Feat/chat components (#679) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.2 * fix: dummy change * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.13 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.16 * Join group option (#681) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr --------- Co-authored-by: Monalisha Mishra Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.3 * Join group option (#687) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr * fix: fixed minor issues rules * fix: fixed * fix: fixed --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.4 * Join group option (#688) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr * fix: fixed minor issues rules * fix: fixed * fix: fixed * fix: fixed socket issue * fix: fixed --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.5 * fix: fixed (#689) * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.6 * chat Load issue fixed (#690) * fix: fixed * fix: fixed minor issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.7 * fix: fixed msg bubble width (#691) * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.8 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.17 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.18 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.19 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.9 * Onboarding blocknative (#702) * fix: added reusable folder * fix: fixed theme for modal * fix: removed reusables from export * fix: fixed fallback for message input * feat: replaced rainbowkit with blocknative * fix: removed unused code --------- Co-authored-by: Monalisha Mishra * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.10 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * Fix connect button issue (#710) * fix: fixed connect button blocknative * fix: fixed message fetching * fix: removed console * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.11 * fix: added condition while showing tokengatedIcon (#715) * fix: added disconnect for wallet (#721) * fix: added disconnect for wallet * fix: added autoConnect * Wallet disconnect (#722) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * Wallet disconnect (#723) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.12 * Changed messageInput params Case (#725) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.13 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.20 * Wallet disconnect (#728) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * fix: added coinbase wallet * fix: img added * fix: fixed metamask not showing if not present in it --------- Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.14 * Wallet disconnect (#732) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * fix: added coinbase wallet * fix: img added * fix: fixed metamask not showing if not present in it * fix: fixed injected wallets --------- Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.15 * fix: added class based implementation for notification (#699) * fix: added class based implementation for notification * fix: class based implementation for notification * fix: small fixes * fix: minor fixes and testcases * fix: fixes for testcases * fix: updated core abi and minor fixes * fix: removed comment * fix: minor fixes and additional checks * fix: minor fixes * fix: viem support for contract and new folder structure * fix: changed typescript 5.0.2 and configured eslint * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.34 * 720 pushstream class implementation (#729) * chore: added an example of automated chat using the new class based initialization * fix: fixed usecases * chore: added an example of automated chat using the new class based iā€¦ (#712) * chore: added an example of automated chat using the new class based initialization * fix: fixed usecases --------- Co-authored-by: aman035 * chore(automated chat example): tweaked automated chat example * fix: stream changes * fix: stream changes * fix: added chat.decrypt (#726) * fix: added chat.decrypt * fix: fix examples * fix: stream changes * fix: PUSH Stream Changes * fix: chat classes split * fix: Notification socket initialisations and rules backward compatibility * fix: added message decrypt * fix: review comments * fix: socket events * fix: test case fix and UserInfo to user * fix: rip PushNotification class * fix: additional check --------- Co-authored-by: harshrajat Co-authored-by: aman035 Co-authored-by: Harsh | Push Co-authored-by: akp111 * fix: remove only from test * fix: error fixed * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.35 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.35 * fix: stream cases * 720 pushstream class implementation (#737) * fix: stream changes * fix: stream changes * fix: stream changes * fix: PUSH Stream Changes * fix: chat classes split * fix: Notification socket initialisations and rules backward compatibility * fix: added message decrypt * fix: review comments * fix: socket events * fix: test case fix and UserInfo to user * fix: rip PushNotification class * fix: additional check * fix: minor fixes --------- Co-authored-by: Mohammed S * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.21 * fix: corrected example * fix: some changes on stream * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.36 * fix: minor fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.37 * fix: error handling in socket events * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.38 * fix: more fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.39 * fix: minor fixes * fix: socket enabled * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.40 * fix: minor fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.41 * Add counter for update channel (#740) * fix: added counter to update group * fix: added counter logic, moved delegate and alias function to channel class * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.42 * Add counter for update channel (#741) * fix: added counter to update group * fix: added counter logic, moved delegate and alias function to channel class * fix: added readme for notification * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.43 * fix: minor fix * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.14 * fix: log removed * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.44 * docs: fix tests * Feat/space backup (#746) * refactor: added code for joining livekit room for listeners (#731) * feat: drop in livekit inplace of livepeer (#736) * feat: drop in livekit inplace of livepeer * feat: added microphone * feat: added mic * feat: added access control --------- Co-authored-by: Nilesh Gupta * fix: Notification event mutation * Notification setting changes (#752) * Arbitrum changes (#735) * fix: inital implementation for arbitrum changes * fix: more changes * fix: added final changes * fix: minor fixes * fix: fixed typo * fix: notification settings related changes * fix: added index parameter for notification * fix: restored config * Arnab/livekit fixes (#754) * refactor: added code for joining livekit room for listeners (#731) * feat: drop in livekit inplace of livepeer * feat: added microphone * feat: added mic * feat: added access control * feat: fixes for livekit API call --------- Co-authored-by: Nilesh Gupta * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.22 * fix: added settings * fix: added settings (#762) * fix: build fix * fix: minor fix * fix: minor fix * Added initial chat sidebar * fix: pagination done * fix: added fuse network * Working stream with hacks, working badges, working loading, partial loading, not working accept stream * fix: focus back to message input after sending the message (#1014) * fix: added support for ens (#1008) * feat: add video SDK v2 and video stream (#1017) * add: ethers support (#952) * fix: fix viem support, add ethers support * fix: remove @pushprotocol/socket dependency from restapi * fix: changed ethers fn * fix: fix ether changes * fix: fix subscribev2 * chore: readme changes * fix: fix ethers provider issue * fix: fix channel.update * feat(video-v2): add video v2 class and stream (#930) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * feat(video): update param names for video.initialize() * feat(video): add internal event handlers for stream in video SDK --------- Co-authored-by: Mohammed S --------- Co-authored-by: Aman Gupta Co-authored-by: Mohammed S * fix: Added ethersV6SignerType in uiweb signer types (#1018) * fix: added pushUser and stream (#1023) * fix: case sensative file inclusion (#1024) * fix: added themisation and ens resolve * fix: fixed a bug * 963 improvement proposal support for fuse network (#1026) * fix: case sensative file inclusion * fix: changed icon dimesnion * streaming tweaks * streaming tweaks with connected in restapi * fix(video stream): add video event type enum in CONSTANTS (#1032) * fix: added search for chatPreviewList * fix: added error codes * frontend react demo adjustment and rebasing * duplicate import fix * fix: refatored code * fix: changed chatSender to chatParticipant * adding onChatSelected and onUnreadCountChange * fix: name change fix --------- Co-authored-by: aman035 Co-authored-by: Mohammed S Co-authored-by: Mohammed S Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta Co-authored-by: Monalisha Mishra Co-authored-by: Kolade Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Ashis Kumar Pradhan <38760485+akp111@users.noreply.github.com> Co-authored-by: akp111 Co-authored-by: Pritipriya Singh * fix: changed stream type to any * fix: fixed issues on chatpreviewlist (#1044) * fix: added a dynamic component for no chatId (#1042) * fix: changed pushUser to user (#1058) * Chatpreview bug (#1063) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * fix: fixed pagination bug and added functions for preload * fix: added review comments --------- Co-authored-by: Mohammed S * fix: fixed minor limit bug (#1065) * Bug fix (#1068) * fix: fixed minor limit bug * fix: exposed chatParticipant * Chatprofile (#1040) * Added initial chat sidebar * fix: pagination done * Working stream with hacks, working badges, working loading, partial loading, not working accept stream * fix: added themisation and ens resolve * fix: fixed a bug * streaming tweaks * streaming tweaks with connected in restapi * fix: added search for chatPreviewList * fix: added error codes * frontend react demo adjustment and rebasing * duplicate import fix * fix: refatored code * fix: addec chat profile and create group changes * fix: changed chatSender to chatParticipant * fix: fixed scroll when not needed * fix: changed group size * fix: stream not getting connected * fix: tested socket events * fix: fixed bugs --------- Co-authored-by: harshrajat Co-authored-by: Pritipriya Singh Co-authored-by: KlausMikhaelson * fix: fixed preview bugs (#1078) * Userprofile (#1084) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * add: useStream.ts video-v2-example-app * add: videoV2.tsx in video-v2-example-app * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(videov2-example): refactor react example component & remove useStream hook * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * fix(video stream): call connect() for ApproveVideo event * feat(example-video-1.5): video v2 example app implementation * feat(sdk-frontend): few ui changes * fix(video-v2-example-app): initialisevdeo call after a call ends * feat(video stream): add request, deny evennt handlers * feat(sdk-frontend and sdk-frontend-react): added video-v2 example implementation * fix: few fixes * refactor: refator and remove console logs * fix: fix import error * feat(video): update param names for video.initialize() * fix: param name changes * chore: added few comments * chore: ui toast added * fix(video example): remove pushprotocol sdk direct dir reference for initVideoCallData * fix(video example): import React in examples & update SDK version in sdk-frontend * feat(video example): replace video events from CONSTANTS obj * Edited video example to make it more versatile * Update index.js * fix: added layout for userProfile * fix: added modal * fix: added modal * fix: added modal content * fix: added theme for userprofile * fix: fixed bugs in profile --------- Co-authored-by: Madhur Gupta Co-authored-by: Siddesh Sankhya <79219618+Siddesh7@users.noreply.github.com> Co-authored-by: Siddesh Co-authored-by: harshrajat Co-authored-by: Harsh | Push * fix: removed console * fix: fixed length issue in test * fix: fixed pagination bug * fix: the messages disappearing on scroll (#1077) Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: fixed chat preview stream issues (#1085) * 897 improvement proposal spaces high level functions (#898) * fix: spaces high level * fix: spaces high level function * fix: spaces test cases * fix: spaces stream changes * fix: removed unnecessary logs * Add spaces high level audio methods (#993) * feat(spaces): add high level audio methods * fix: socket url fix (#995) * feat(spaces-highlevel-audio-methods): add media function in Spaces class --------- Co-authored-by: Mohammed S * feat(space stream): add 'start', 'stop' events (#1027) * fix(high level spaces sdk): fix list() method to uses spaces(), requests() methods (#1061) --------- Co-authored-by: Madhur Gupta * fix(restapi): build errors from spaces (#1098) * feat(spaces v2): update space.initialize() param name, rename media() in SpacesV2 (#1101) * fix: media emoji added * fix: sending first message now shows in the inbox * fix: for requests for receivers * fix: added notification widget layout (#1076) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * add: useStream.ts video-v2-example-app * add: videoV2.tsx in video-v2-example-app * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(videov2-example): refactor react example component & remove useStream hook * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * fix(video stream): call connect() for ApproveVideo event * feat(example-video-1.5): video v2 example app implementation * feat(sdk-frontend): few ui changes * fix(video-v2-example-app): initialisevdeo call after a call ends * feat(video stream): add request, deny evennt handlers * feat(sdk-frontend and sdk-frontend-react): added video-v2 example implementation * fix: few fixes * refactor: refator and remove console logs * fix: fix import error * feat(video): update param names for video.initialize() * fix: param name changes * chore: added few comments * chore: ui toast added * fix(video example): remove pushprotocol sdk direct dir reference for initVideoCallData * fix(video example): import React in examples & update SDK version in sdk-frontend * feat(video example): replace video events from CONSTANTS obj * Edited video example to make it more versatile * Update index.js * fix: fixed message parsing (#1051) * Minor fixes and improvements in video v2 (#1062) * feat(video v2): add VIDEO constants and types * feat(video v2): modify approve, deny to use internally stored peerInfo * fix(video constants): rename DEFAULT_DATA to INITIAL_DATA * 1050 update video example implementation in sdk-frontend (#1070) * fix: use latest imports in example app * feat: use latest rainbowkit library * chore: use latest restapi package * chore: remove unnecessary libs * fix: fixed signer bug (#1073) * fix: send intent in history and latest. (#1069) * fix: send intent in history and latest. * fix: get chat info API sdk changes * fix: stream helper functions * fix: caching implementation on user profile API (#1053) * fix: caching implementation on user profile API * fix: cache code review comments * fix: fix public key in read mode (#1074) * fix: added notification widget layout * fix: fixed naming convention * fix: added layout for hyperlink * Pub key cache to speed up chat messages verification (#1081) * fix: minor fixes * fix: cache implementation for public keys * fix: fix encV1 key decryption (#1088) * fix: add benchamark tests, fix reference msgs' (#1089) * fix: added resuables * bolierplate examples * bolierplate examples * bolierplate examples * fix: added connect button * fix: fixed lint * fix: v2 user creation / upgrades / downgrades (#1099) * fix: fix v2 user * test: remove only * Add filter for subscription (#1102) * fix: added parsing for settings * fix: minor fixes * fix: added manage notifiction * fix: added channel setting parse logic (#1107) * fix: fixed css * added user downgrade example * fix: fixed lint * fix: fixed connect modal * fix: added readmode * fix: fixed readMode --------- Co-authored-by: Madhur Gupta Co-authored-by: Siddesh Sankhya <79219618+Siddesh7@users.noreply.github.com> Co-authored-by: Siddesh Co-authored-by: harshrajat Co-authored-by: Harsh | Push Co-authored-by: Aman Gupta Co-authored-by: Mohammed S Co-authored-by: Ashis Kumar Pradhan <38760485+akp111@users.noreply.github.com> Co-authored-by: Mohammed S * Alpha deployment (#1112) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues --------- Co-authored-by: Mohammed S * Alpha deployment (#1114) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs --------- Co-authored-by: Mohammed S * Alpha deployment (#1116) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues --------- Co-authored-by: Mohammed S * 1119 read only mode bug fix (#1120) * fix: optimize chat.list (#1115) * fix: read only guest mode * fix: review comments --------- Co-authored-by: Aman Gupta * Alpha deployment (#1121) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode --------- Co-authored-by: Mohammed S * Mark ethers optional (#1124) * fix: optimize chat.list (#1115) * fix: allow groupImage and groupDesc to be updated to null (#1118) * fix: mark ethers as optional peer dependency * fix: change typeDataDomain * fix: update readme * fix: added prefillChatList (#1122) * fix: fixed minor issue * Alpha deployment (#1132) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 --------- Co-authored-by: Mohammed S * Minor changes in spaces v2 SDK (#1136) * refactor(spaces v2): call createUserAudio internally before start, join as speaker * fix(spaces v2): add a check before creating stream in start, join as speaker * fix(spaces v2): make 'private' param in space.create() as optional * feat(spaces v2): export space types, constants from TYPES, CONSTANTS * Alpha deployment (#1134) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * fix: troubleshoot * fix: fixed gues mode user profile * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 --------- Co-authored-by: Mohammed S * fix: stream connection support chat + pushUser to user fix (#1066) * fix: stream connection support chat + pushUser to user fix * fix: change console messages * fix: ens added * fix: z-index re added --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * Alpha deployment (#1146) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * fix: troubleshoot * fix: fixed gues mode user profile * fix: fixed subscription error * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 --------- Co-authored-by: Mohammed S * fix: z-index modal (#1152) * Revert "fix: z-index modal (#1152)" (#1153) This reverts commit 4e40221385750a240afde708c73d7b1221e5db0c. * Fix role change stream event (#1157) * fix: fix roleChange stream * fix: fix testcases * Added channel.list API (#1160) * Added channel.list API * Added channel.list API * fix: horizontal scroll (#1156) * fix: horizontal scroll * fix: z-index of prodile modal * fix: remove chat profile z-index * fix: remove chat profile z-index * fix: modal overlay z-index inc * fix: added word break to parent * fix: revert z-index profile * Alpha deployment (#1178) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * fix: troubleshoot * fix: fixed gues mode user profile * fix: fixed subscription error * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.45 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.73 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.74 * fix: fixed span --------- Co-authored-by: Mohammed S * fix: support chat scroll (#1184) * fix: support chat scroll * fix: when the scroll touches the last message it does fluctuate * Group fixes (#1182) * fix: fixed group minor issues * fix: fixed group fiex * fix: fixed user giving undefined for info (#1194) * Chatviewlist migration (#1164) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: added fetch chT * fix: fix * fix: added fetching chat * fix: fixed lint issues * fix: fixed * fix: converted send to class based * fix: fixed * fix: debugging stream issue * fix: debugging stream issue * fix: hack for stream fix * fix: removed event listeners * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.15 * fix: fixed chat bugs * fix: fixing stream issue * fix: fixed lint * fix: temp fix for stream * fix: fixed --------- Co-authored-by: Mohammed S * Alpha deployment (#1200) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * fix: troubleshoot * fix: fixed gues mode user profile * fix: fixed subscription error * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.45 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.73 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.74 * fix: fixed span --------- Co-authored-by: Mohammed S * Revert "Alpha deployment (#1200)" (#1201) This reverts commit 029e34d3a51a0ce4e0bc6adbad168e71b5c6129b. * Chatviewlist migration (#1202) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: added fetch chT * fix: fix * fix: added fetching chat * fix: fixed lint issues * fix: fixed * fix: converted send to class based * fix: fixed * fix: debugging stream issue * fix: debugging stream issue * fix: hack for stream fix * fix: removed event listeners * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.15 * fix: fixed chat bugs * fix: fixing stream issue * fix: fixed lint * fix: temp fix for stream * fix: fixed * fix: fixed copy --------- Co-authored-by: Mohammed S * feat(uiweb): return response in createGroupModal (#1198) * feat(uiweb): return response in createGroupModal return group information when group is successfully created in uiweb createGroupModal * fix: fixed build issue --------- Co-authored-by: Monalisha Mishra Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * Add Polygon Amoy Support (#1221) * feat: add Polygon Amoy Support * test: added amoy test cases --------- Co-authored-by: Pratham Bhatnagar Co-authored-by: aman035 * 1220 add polygon amoy support (#1222) * feat: add Polygon Amoy Support * test: added amoy test cases * fix: fix minor changes --------- Co-authored-by: Pratham Bhatnagar Co-authored-by: aman035 * fix: added instanceids for push user and stream (#1224) * 1223 return id for push api and stream init (#1226) * fix: added instanceids for push user and stream * fix: review comments * fix: chat info changes --------- Co-authored-by: Aman Gupta Co-authored-by: Madhur Gupta Co-authored-by: Harsh | Push Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta Co-authored-by: Monalisha Mishra Co-authored-by: Kolade Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Ashis Kumar Pradhan <38760485+akp111@users.noreply.github.com> Co-authored-by: akp111 Co-authored-by: Pritipriya Singh Co-authored-by: harshrajat Co-authored-by: Siddesh Sankhya <79219618+Siddesh7@users.noreply.github.com> Co-authored-by: Siddesh Co-authored-by: Pratham Bhatnagar <84272138+pratham-bhatnagar@users.noreply.github.com> Co-authored-by: Pratham Bhatnagar --- .../src/app/components/Connect.tsx | 4 +- .../sdk-frontend-react/src/app/helpers.ts | 2 +- .../src/screens/NotificationScreen.tsx | 2 +- packages/restapi/src/lib/chat/getChatInfo.ts | 3 +- packages/restapi/src/lib/config.ts | 61 +++++++++----- packages/restapi/src/lib/constants.ts | 2 +- .../restapi/src/lib/payloads/constants.ts | 4 +- packages/restapi/src/lib/payloads/helpers.ts | 2 +- packages/restapi/src/lib/pushapi/PushAPI.ts | 7 +- packages/restapi/src/lib/pushapi/chat.ts | 28 +++++-- .../restapi/src/lib/pushstream/PushStream.ts | 6 +- packages/restapi/tests/.env.sample | 1 + .../restapi/tests/lib/alias/polygon.test.ts | 84 +++++++++++++++++++ .../notification/NotificationItem.tsx | 2 +- packages/uireactnative/src/lib/constants.ts | 4 +- packages/uiweb/README.md | 2 +- .../components/chat/ConnectButton/index.tsx | 64 +++++++------- .../chat/CreateGroup/AddCriteria.tsx | 1 + .../chat/CreateGroup/CreateGroupModal.tsx | 37 ++++---- .../chat/constants/chainDetails.tsx | 6 +- .../src/lib/components/chat/exportedTypes.ts | 77 +++++++++-------- .../chat/helpers/tokenHelpers/chain.ts | 26 +++--- .../chat/reusables/ProfileContainer.tsx | 4 +- .../components/notification/chainDetails.tsx | 6 +- .../src/lib/components/notification/index.tsx | 2 +- .../components/widget/ConnectButton/index.tsx | 74 ++++++++-------- packages/uiweb/src/lib/config/constants.ts | 12 +-- packages/uiweb/src/lib/helpers/udResolver.ts | 2 +- .../src/lib/hooks/chat/useCreateGatedGroup.ts | 17 ++-- 29 files changed, 341 insertions(+), 201 deletions(-) create mode 100644 packages/restapi/tests/lib/alias/polygon.test.ts diff --git a/packages/examples/sdk-frontend-react/src/app/components/Connect.tsx b/packages/examples/sdk-frontend-react/src/app/components/Connect.tsx index c792f7ebe..bb86a0764 100644 --- a/packages/examples/sdk-frontend-react/src/app/components/Connect.tsx +++ b/packages/examples/sdk-frontend-react/src/app/components/Connect.tsx @@ -12,7 +12,7 @@ const NETWORK_MAPPING: NwMappingType = { 11155111: 'ETH_SEPOLIA', 3: 'ETH_ROPSTEN', 137: 'POLYGON_MAINNET', - 80001: 'POLYGON_MUMBAI', + 80002: 'POLYGON_AMOY', 56: 'BSC_MAINNET', 97: 'BSC_TESTNET', 11155420: 'OPTIMISM_TESTNET', @@ -28,7 +28,7 @@ const NETWORK_MAPPING: NwMappingType = { const injected = new InjectedConnector({ supportedChainIds: [ - 1, 3, 4, 11155111, 42, 137, 80001, 56, 97, 10, 11155420, 1442, 1101, 421614, + 1, 3, 4, 11155111, 42, 137, 80002, 56, 97, 10, 11155420, 1442, 1101, 421614, 42161, 122, 123, 80085, ], }); diff --git a/packages/examples/sdk-frontend-react/src/app/helpers.ts b/packages/examples/sdk-frontend-react/src/app/helpers.ts index f4b43cd0d..f7a467193 100644 --- a/packages/examples/sdk-frontend-react/src/app/helpers.ts +++ b/packages/examples/sdk-frontend-react/src/app/helpers.ts @@ -19,7 +19,7 @@ const Constants = { DEFAULT_CHAIN_ID: 11155111, DEV_CHAIN_ID: 99999, NON_ETH_CHAINS: [ - 137, 80001, 56, 97, 10, 11155420, 1442, 1101, 421614, 42161, 122, 123, + 137, 80002, 56, 97, 10, 11155420, 1442, 1101, 421614, 42161, 122, 123, 80085, ], ETH_CHAINS: [1, 11155111], diff --git a/packages/examples/sdk-react-native/src/screens/NotificationScreen.tsx b/packages/examples/sdk-react-native/src/screens/NotificationScreen.tsx index c8fdd5533..d7b36bbc4 100644 --- a/packages/examples/sdk-react-native/src/screens/NotificationScreen.tsx +++ b/packages/examples/sdk-react-native/src/screens/NotificationScreen.tsx @@ -16,7 +16,7 @@ export const NotificationScreen = () => { image: undefined, url: 'https://push.org/', theme: 'light', - chainName: 'POLYGON_TEST_MUMBAI', + chainName: 'POLYGON_TEST_AMOY', cta: 'https://github.com/ethereum-push-notification-service/', }, { diff --git a/packages/restapi/src/lib/chat/getChatInfo.ts b/packages/restapi/src/lib/chat/getChatInfo.ts index 55cdbe5a0..907e39303 100644 --- a/packages/restapi/src/lib/chat/getChatInfo.ts +++ b/packages/restapi/src/lib/chat/getChatInfo.ts @@ -13,7 +13,8 @@ export interface ChatInfoResponse { }; list: string; participants: string[]; - chatId: string + chatId: string; + receipient: string; } /** diff --git a/packages/restapi/src/lib/config.ts b/packages/restapi/src/lib/config.ts index 4b79cb2de..c70c38087 100644 --- a/packages/restapi/src/lib/config.ts +++ b/packages/restapi/src/lib/config.ts @@ -5,7 +5,6 @@ import { tokenABI } from './abis/token'; import { mainnet, polygon, - polygonMumbai, bsc, bscTestnet, optimism, @@ -20,6 +19,30 @@ import { } from 'viem/chains'; import { defineChain } from 'viem'; +const polygonAmoy = defineChain({ + id: 80002, + name: 'Polygon Amoy Testnet', + network: 'polygon-amoy', + nativeCurrency: { + decimals: 18, + name: 'MATIC', + symbol: 'MATIC', + }, + rpcUrls: { + default: { http: ['https://rpc-amoy.polygon.technology/'] }, + public: { http: ['https://rpc-amoy.polygon.technology/'] }, + }, + blockExplorers: { + default: { + name: 'Polygon Amoy', + url: 'https://www.oklink.com/amoy', + }, + }, + testnet: true, +}); + + + const berachainTestnet = defineChain({ id: 80085, name: 'Berachain Artio', @@ -58,7 +81,7 @@ const BLOCKCHAIN_NETWORK = { ETH_MAINNET: 'eip155:1', ETH_SEPOLIA: 'eip155:11155111', POLYGON_MAINNET: 'eip155:137', - POLYGON_MUMBAI: 'eip155:80001', + POLYGON_AMOY: 'eip155:80002', BSC_MAINNET: 'eip155:56', BSC_TESTNET: 'eip155:97', OPTIMISM_TESTNET: 'eip155:11155420', @@ -92,9 +115,9 @@ export const ALIAS_CHAIN_ID: { } = { POLYGON: { [ENV.PROD]: 137, - [ENV.STAGING]: 80001, - [ENV.DEV]: 80001, - [ENV.LOCAL]: 80001, + [ENV.STAGING]: 80002, + [ENV.DEV]: 80002, + [ENV.LOCAL]: 80002, }, BSC: { [ENV.PROD]: 56, @@ -145,7 +168,7 @@ export const CHAIN_NAME: { [key: number]: string } = { 11155111: 'ETHEREUM', // polygon 137: 'POLYGON', - 80001: 'POLYGON', + 80002: 'POLYGON', // bsc 56: 'BSC', 97: 'BSC', @@ -247,7 +270,7 @@ const CONFIG = { API_BASE_URL: API_BASE_URL[ENV.STAGING], EPNS_COMMUNICATOR_CONTRACT: '0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7', }, - [BLOCKCHAIN_NETWORK.POLYGON_MUMBAI]: { + [BLOCKCHAIN_NETWORK.POLYGON_AMOY]: { API_BASE_URL: API_BASE_URL[ENV.STAGING], EPNS_COMMUNICATOR_CONTRACT: '0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa', }, @@ -281,9 +304,9 @@ const CONFIG = { API_BASE_URL: API_BASE_URL[ENV.DEV], EPNS_COMMUNICATOR_CONTRACT: '0x9dDCD7ed7151afab43044E4D694FA064742C428c', }, - [BLOCKCHAIN_NETWORK.POLYGON_MUMBAI]: { + [BLOCKCHAIN_NETWORK.POLYGON_AMOY]: { API_BASE_URL: API_BASE_URL[ENV.DEV], - EPNS_COMMUNICATOR_CONTRACT: '0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504', + EPNS_COMMUNICATOR_CONTRACT: '0x9cb3bd7550b5c92baa056fc0f08132f49508145f', }, [BLOCKCHAIN_NETWORK.BSC_TESTNET]: { API_BASE_URL: API_BASE_URL[ENV.DEV], @@ -315,9 +338,9 @@ const CONFIG = { API_BASE_URL: API_BASE_URL[ENV.LOCAL], EPNS_COMMUNICATOR_CONTRACT: '0x9dDCD7ed7151afab43044E4D694FA064742C428c', }, - [BLOCKCHAIN_NETWORK.POLYGON_MUMBAI]: { + [BLOCKCHAIN_NETWORK.POLYGON_AMOY]: { API_BASE_URL: API_BASE_URL[ENV.LOCAL], - EPNS_COMMUNICATOR_CONTRACT: '0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504', + EPNS_COMMUNICATOR_CONTRACT: '0x9cb3bd7550b5c92baa056fc0f08132f49508145f', }, [BLOCKCHAIN_NETWORK.BSC_TESTNET]: { API_BASE_URL: API_BASE_URL[ENV.LOCAL], @@ -422,8 +445,8 @@ export const VIEM_CONFIG = { API_BASE_URL: API_BASE_URL[ENV.STAGING], EPNS_COMMUNICATOR_CONTRACT: '0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7', }, - [BLOCKCHAIN_NETWORK.POLYGON_MUMBAI]: { - NETWORK: polygonMumbai, + [BLOCKCHAIN_NETWORK.POLYGON_AMOY]: { + NETWORK: polygonAmoy, API_BASE_URL: API_BASE_URL[ENV.STAGING], EPNS_COMMUNICATOR_CONTRACT: '0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa', }, @@ -464,10 +487,10 @@ export const VIEM_CONFIG = { API_BASE_URL: API_BASE_URL[ENV.DEV], EPNS_COMMUNICATOR_CONTRACT: '0x9dDCD7ed7151afab43044E4D694FA064742C428c', }, - [BLOCKCHAIN_NETWORK.POLYGON_MUMBAI]: { - NETWORK: polygonMumbai, + [BLOCKCHAIN_NETWORK.POLYGON_AMOY]: { + NETWORK: polygonAmoy, API_BASE_URL: API_BASE_URL[ENV.DEV], - EPNS_COMMUNICATOR_CONTRACT: '0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504', + EPNS_COMMUNICATOR_CONTRACT: '0x9cb3bd7550b5c92baa056fc0f08132f49508145f', }, [BLOCKCHAIN_NETWORK.BSC_TESTNET]: { NETWORK: bscTestnet, @@ -506,10 +529,10 @@ export const VIEM_CONFIG = { API_BASE_URL: API_BASE_URL[ENV.DEV], EPNS_COMMUNICATOR_CONTRACT: '0x9dDCD7ed7151afab43044E4D694FA064742C428c', }, - [BLOCKCHAIN_NETWORK.POLYGON_MUMBAI]: { - NETWORK: polygonMumbai, + [BLOCKCHAIN_NETWORK.POLYGON_AMOY]: { + NETWORK: polygonAmoy, API_BASE_URL: API_BASE_URL[ENV.DEV], - EPNS_COMMUNICATOR_CONTRACT: '0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504', + EPNS_COMMUNICATOR_CONTRACT: '0x9cb3bd7550b5c92baa056fc0f08132f49508145f', }, [BLOCKCHAIN_NETWORK.BSC_TESTNET]: { NETWORK: bscTestnet, diff --git a/packages/restapi/src/lib/constants.ts b/packages/restapi/src/lib/constants.ts index 1b10f7460..e31535276 100644 --- a/packages/restapi/src/lib/constants.ts +++ b/packages/restapi/src/lib/constants.ts @@ -66,7 +66,7 @@ const Constants = { DEFAULT_CHAIN_ID: 11155111, DEV_CHAIN_ID: 99999, NON_ETH_CHAINS: [ - 137, 80001, 56, 97, 10, 11155420, 1442, 1101, 421614, 42161, 122, 123, + 137, 80002, 56, 97, 10, 11155420, 1442, 1101, 421614, 42161, 122, 123, 80085, ], ETH_CHAINS: [1, 11155111], diff --git a/packages/restapi/src/lib/payloads/constants.ts b/packages/restapi/src/lib/payloads/constants.ts index 18f4bee0b..4dc57268d 100644 --- a/packages/restapi/src/lib/payloads/constants.ts +++ b/packages/restapi/src/lib/payloads/constants.ts @@ -6,7 +6,7 @@ export const CHAIN_ID_TO_SOURCE: ChainIdToSourceType = { 1: 'ETH_MAINNET', 11155111: 'ETH_TEST_SEPOLIA', 137: 'POLYGON_MAINNET', - 80001: 'POLYGON_TEST_MUMBAI', + 80002: 'POLYGON_TEST_AMOY', 56: 'BSC_MAINNET', 97: 'BSC_TESTNET', 10: 'OPTIMISM_MAINNET', @@ -24,7 +24,7 @@ export const SOURCE_TYPES = { ETH_MAINNET: 'ETH_MAINNET', ETH_TEST_SEPOLIA: 'ETH_TEST_SEPOLIA', POLYGON_MAINNET: 'POLYGON_MAINNET', - POLYGON_TEST_MUMBAI: 'POLYGON_TEST_MUMBAI', + POLYGON_TEST_AMOY: 'POLYGON_TEST_AMOY', BSC_MAINNET: 'BSC_MAINNET', BSC_TESTNET: 'BSC_TESTNET', OPTIMISM_MAINNET: 'OPTIMISM_MAINNET', diff --git a/packages/restapi/src/lib/payloads/helpers.ts b/packages/restapi/src/lib/payloads/helpers.ts index ca26b2a03..228cbb77b 100644 --- a/packages/restapi/src/lib/payloads/helpers.ts +++ b/packages/restapi/src/lib/payloads/helpers.ts @@ -329,7 +329,7 @@ export function getCAIPFormat(chainId: number, address: string) { // EVM based chains if ( [ - 1, 11155111, 42, 137, 80001, 56, 97, 10, 11155420, 1442, 1101, 421614, + 1, 11155111, 42, 137, 80002, 56, 97, 10, 11155420, 1442, 1101, 421614, 42161, 122, 123, 80085, ].includes(chainId) ) { diff --git a/packages/restapi/src/lib/pushapi/PushAPI.ts b/packages/restapi/src/lib/pushapi/PushAPI.ts index 577754196..6165b77fb 100644 --- a/packages/restapi/src/lib/pushapi/PushAPI.ts +++ b/packages/restapi/src/lib/pushapi/PushAPI.ts @@ -21,6 +21,7 @@ import { Video } from './video'; import { isValidCAIP10NFTAddress } from '../helpers'; import { LRUCache } from 'lru-cache'; import { cache } from '../helpers/cache'; +import { v4 as uuidv4 } from 'uuid'; export class PushAPI { private signer?: SignerType; @@ -44,7 +45,7 @@ export class PushAPI { // Notification public channel!: Channel; public notification!: Notification; - + public uid: string; // error object to maintain errors and warnings public errors: { type: 'WARN' | 'ERROR'; message: string }[]; @@ -70,7 +71,7 @@ export class PushAPI { // Instantiate the notification classes this.channel = new Channel(this.signer, this.env, this.account); this.notification = new Notification(this.signer, this.env, this.account); - + this.uid = uuidv4(); this.cache = cache; // Initialize the instances of the four classes @@ -314,7 +315,7 @@ export class PushAPI { this.pgpPublicKey = newUser.publicKey; this.readMode = false; this.errors = []; - + this.uid = uuidv4(); // Initialize the instances of the four classes this.chat = new Chat( this.account, diff --git a/packages/restapi/src/lib/pushapi/chat.ts b/packages/restapi/src/lib/pushapi/chat.ts index 074bc6dfb..ad5ffcb37 100644 --- a/packages/restapi/src/lib/pushapi/chat.ts +++ b/packages/restapi/src/lib/pushapi/chat.ts @@ -283,15 +283,33 @@ export class Chat { }); } - async info(receipient: string): Promise { - const options: PUSH_CHAT.GetChatInfoType = { + async info( + receipient: string, + options?: { + overrideAccount?: string; + } + ): Promise { + const accountToUse = options?.overrideAccount || this.account; + const request: PUSH_CHAT.GetChatInfoType = { receipient: receipient, - sender: this.account, + sender: accountToUse, env: this.env, }; - try { - const chatInfo = await PUSH_CHAT.getChatInfo(options); + const chatInfo = await PUSH_CHAT.getChatInfo(request); + const finalRecipient = chatInfo.meta.group + ? chatInfo.chatId + : receipient; + + const response: ChatInfoResponse = { + meta: chatInfo.meta, + list: chatInfo.list, + participants: chatInfo.participants, + chatId: chatInfo.chatId, + receipient: finalRecipient, + }; + + return response; return chatInfo; } catch (error) { console.error(`Error in Chat.info: `, error); diff --git a/packages/restapi/src/lib/pushstream/PushStream.ts b/packages/restapi/src/lib/pushstream/PushStream.ts index 92edcff5e..7f2863d2d 100644 --- a/packages/restapi/src/lib/pushstream/PushStream.ts +++ b/packages/restapi/src/lib/pushstream/PushStream.ts @@ -17,7 +17,7 @@ import { Chat } from '../pushapi/chat'; import { ProgressHookType, SignerType } from '../types'; import { ALPHA_FEATURE_CONFIG } from '../config'; import { ADDITIONAL_META_TYPE } from '../payloads'; - +import { v4 as uuidv4 } from 'uuid'; export class PushStream extends EventEmitter { private pushChatSocket: any; private pushNotificationSocket: any; @@ -28,7 +28,7 @@ export class PushStream extends EventEmitter { private chatInstance: Chat; private listen: STREAM[]; private disconnected: boolean; - + public uid: string; constructor( account: string, private _listen: STREAM[], @@ -45,6 +45,7 @@ export class PushStream extends EventEmitter { this.options = options; this.listen = _listen; this.disconnected = false; + this.uid = uuidv4(); this.chatInstance = new Chat( this.account, this.options.env as ENV, @@ -101,6 +102,7 @@ export class PushStream extends EventEmitter { listen: STREAM[], newOptions: PushStreamInitializeProps ): Promise { + this.uid = uuidv4(); this.listen = listen; this.options = { ...this.options, ...newOptions }; await this.disconnect(); diff --git a/packages/restapi/tests/.env.sample b/packages/restapi/tests/.env.sample index 4c4067f9a..fbfbf384a 100644 --- a/packages/restapi/tests/.env.sample +++ b/packages/restapi/tests/.env.sample @@ -7,6 +7,7 @@ ENV=env_name BERACHAIN_CHANNEL_PRIVATE_KEY=your_berachain_channel_private_key ARBITRUM_CHANNEL_PRIVATE_KEY=your_arbitrum_channel_private_key OPTIMISM_CHANNEL_PRIVATE_KEY=your_optimism_channel_private_key +POLYGON_CHANNEL_PRIVATE_KEY=your_polygon_channel_private_key WALLET_PRIVATE_KEY=your_wallet_private_key WALLET_PRIVATE_KEY_2=your_wallet_private_key_2 diff --git a/packages/restapi/tests/lib/alias/polygon.test.ts b/packages/restapi/tests/lib/alias/polygon.test.ts new file mode 100644 index 000000000..5aa2cfc2e --- /dev/null +++ b/packages/restapi/tests/lib/alias/polygon.test.ts @@ -0,0 +1,84 @@ +import { ethers } from 'ethers'; +import { PushAPI } from '../../../src'; +import { ENV } from '../../../src/lib/constants'; + +describe('POLYGON ALIAS functionality', () => { + let userAlice: PushAPI; + let userBob: PushAPI; + let account: string; + let account2: string; + + // accessing env dynamically using process.env + type EnvStrings = keyof typeof ENV; + const envMode = process.env.ENV as EnvStrings; + const _env = ENV[envMode]; + + before(async () => { + const provider = new ethers.providers.JsonRpcProvider( + 'https://rpc-amoy.polygon.technology/' + ); + const signer = new ethers.Wallet( + `0x${process.env['POLYGON_CHANNEL_PRIVATE_KEY']}`, + provider + ); + account = signer.address; + userAlice = await PushAPI.initialize(signer, { + env: _env, + }); + + const signer2 = new ethers.Wallet(ethers.Wallet.createRandom().privateKey); + account2 = signer2.address; + userBob = await PushAPI.initialize(signer2, { env: _env }); + }); + + it.skip('Should be able to create channel', async () => { + const res = await userAlice.channel.create({ + name: 'SDK Alias Test', + description: 'Testing using sdk', + url: 'https://push.org', + icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAz0lEQVR4AcXBsU0EQQyG0e+saWJ7oACiKYDMEZVs6GgSpC2BIhzRwAS0sgk9HKn3gpFOAv3v3V4/3+4U4Z1q5KTy42Ql940qvFONnFSGmCFmiN2+fj7uCBlihpgh1ngwcvKfwjuVIWaIGWKNB+GdauSk8uNkJfeNKryzYogZYoZY40m5b/wlQ8wQM8TayMlKeKcaOVkJ71QjJyuGmCFmiDUe+HFy4VyEd57hx0mV+0ZliBlihlgL71w4FyMnVXhnZeSkiu93qheuDDFDzBD7BcCyMAOfy204AAAAAElFTkSuQmCC', + alias: `eip155:80002:${account}`, + progressHook: (progress: any) => console.log(progress), + }); + }); + + it('Should be able to send notifications', async () => { + await userAlice.channel.send(['*'], { + notification: { + title: 'hi', + body: 'test-broadcast', + }, + payload: { + title: 'testing broadcast notification', + body: 'testing with random body', + cta: 'https://google.com/', + embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', + }, + channel: `eip155:80002:${account}`, + }); + }); + + it('Should be able to add delegatee', async () => { + await userAlice.channel.delegate.add(account2); + }); + + it('Should be able to send notifications from delegate', async () => { + await userBob.channel.send(['*'], { + notification: { + title: 'hi', + body: 'test-broadcast', + }, + payload: { + title: 'testing broadcast notification', + body: 'testing with random body', + cta: 'https://google.com/', + embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', + }, + channel: `eip155:80002:${account}`, + }); + }); + + it('Should be able to remove delegatee', async () => { + await userAlice.channel.delegate.remove(account2); + }); +}); diff --git a/packages/uireactnative/src/lib/components/notification/NotificationItem.tsx b/packages/uireactnative/src/lib/components/notification/NotificationItem.tsx index 5ba18de4d..6cb29da2c 100644 --- a/packages/uireactnative/src/lib/components/notification/NotificationItem.tsx +++ b/packages/uireactnative/src/lib/components/notification/NotificationItem.tsx @@ -43,7 +43,7 @@ function extractTimeStamp(notificationBody: string): { type chainNameType = | 'ETH_TEST_SEPOLIA' - | 'POLYGON_TEST_MUMBAI' + | 'POLYGON_TEST_AMOY' | 'ETH_MAINNET' | 'POLYGON_MAINNET' | 'BSC_MAINNET' diff --git a/packages/uireactnative/src/lib/constants.ts b/packages/uireactnative/src/lib/constants.ts index cb7a6425c..ea82aed95 100644 --- a/packages/uireactnative/src/lib/constants.ts +++ b/packages/uireactnative/src/lib/constants.ts @@ -70,8 +70,8 @@ export const GLOBALS = { label: 'ETHEREUM MAINNET', icon: EthereumSVG, }, - POLYGON_TEST_MUMBAI: { - label: 'POLYGON MUMBAI', + POLYGON_TEST_AMOY: { + label: 'POLYGON AMOY', icon: PolygonSVG, }, POLYGON_MAINNET: { diff --git a/packages/uiweb/README.md b/packages/uiweb/README.md index 13c496fe5..a1406b96f 100644 --- a/packages/uiweb/README.md +++ b/packages/uiweb/README.md @@ -149,7 +149,7 @@ where | cta | string | Call To Action Link (given during notification creation) | | image | string | Any media link (given during notification creation) | | url | string | Channel Link (given during channel setup) | -| chainName | string | Can be anyone of the following blockchain networks on which the notification was sent - "ETH_MAINNET", "ETH_TEST_SEPOLIA", "POLYGON_MAINNET", "POLYGON_TEST_MUMBAI", "BSC_MAINNET, "BSC_TESTNET", "OPTIMISM_MAINNET", "OPTIMISM_TESTNET", "POLYGON_ZK_EVM_TESTNET", "POLYGON_ZK_EVM_MAINNET", "ARBITRUM_TESTNET", "ARBITRUMONE_MAINNET", "FUSE_TESTNET", "FUSE_MAINNET", "BERACHIAN_TESTNET", "THE_GRAPH" | +| chainName | string | Can be anyone of the following blockchain networks on which the notification was sent - "ETH_MAINNET", "ETH_TEST_SEPOLIA", "POLYGON_MAINNET", "POLYGON_TEST_AMOY", "BSC_MAINNET, "BSC_TESTNET", "OPTIMISM_MAINNET", "OPTIMISM_TESTNET", "POLYGON_ZK_EVM_TESTNET", "POLYGON_ZK_EVM_MAINNET", "ARBITRUM_TESTNET", "ARBITRUMONE_MAINNET", "FUSE_TESTNET", "FUSE_MAINNET", "BERACHIAN_TESTNET", "THE_GRAPH" | | theme | string | 'light' or 'dark' (customization to be given by the dApp) | | customTheme | INotificationItemTheme | custom theme object for the component | | isSpam | boolean | whether a spam notification or not | diff --git a/packages/uiweb/src/lib/components/chat/ConnectButton/index.tsx b/packages/uiweb/src/lib/components/chat/ConnectButton/index.tsx index ca758fb37..a339765e3 100644 --- a/packages/uiweb/src/lib/components/chat/ConnectButton/index.tsx +++ b/packages/uiweb/src/lib/components/chat/ConnectButton/index.tsx @@ -1,13 +1,13 @@ import { IChatTheme } from '../theme'; -import coinbaseWalletModule from '@web3-onboard/coinbase' +import coinbaseWalletModule from '@web3-onboard/coinbase'; import { ConnectButtonSub } from './ConnectButton'; import { BLOCKNATIVE_PROJECT_ID, InfuraAPIKey } from '../../../config'; import { Web3OnboardProvider } from '@web3-onboard/react'; import injectedModule, { ProviderLabel } from '@web3-onboard/injected-wallets'; -import walletConnectModule from '@web3-onboard/walletconnect' +import walletConnectModule from '@web3-onboard/walletconnect'; import init from '@web3-onboard/core'; -import PushIcon from "../../../icons/Bell.svg" +import PushIcon from '../../../icons/Bell.svg'; const APP_META_DATA = { name: 'Push Protocol', @@ -17,86 +17,84 @@ const APP_META_DATA = { recommendedInjectedWallets: [ { name: 'MetaMask', url: 'https://metamask.io' }, - ] -} + ], +}; const wcv2InitOptions = { projectId: BLOCKNATIVE_PROJECT_ID, - requiredChains: [1, 56] -} + requiredChains: [1, 56], +}; -const walletConnect = walletConnectModule(wcv2InitOptions) -const coinbaseWalletSdk = coinbaseWalletModule({ darkMode: true }) +const walletConnect = walletConnectModule(wcv2InitOptions); +const coinbaseWalletSdk = coinbaseWalletModule({ darkMode: true }); const CHAINS = [ { id: '0x1', token: 'ETH', label: 'Ethereum Mainnet', - rpcUrl: `https://mainnet.infura.io/v3/${InfuraAPIKey}` + rpcUrl: `https://mainnet.infura.io/v3/${InfuraAPIKey}`, }, { id: '0xAA36A7', token: 'ETH', label: 'Sepolia', - rpcUrl: `https://sepolia.infura.io/v3/${InfuraAPIKey}` + rpcUrl: `https://sepolia.infura.io/v3/${InfuraAPIKey}`, }, { - id: '0x13881', + id: '0x13882', token: 'MATIC', - label: 'Polygon - Mumbai', - rpcUrl: 'https://matic-mumbai.chainstacklabs.com' + label: 'Polygon - Amoy', + rpcUrl: 'https://rpc-amoy.polygon.technology', }, { id: '0x38', token: 'BNB', label: 'Binance', - rpcUrl: 'https://bsc-dataseed.binance.org/' + rpcUrl: 'https://bsc-dataseed.binance.org/', }, { id: '0xA', token: 'OETH', label: 'Optimism', - rpcUrl: 'https://mainnet.optimism.io' + rpcUrl: 'https://mainnet.optimism.io', }, { id: '0xA4B1', token: 'ARB-ETH', label: 'Arbitrum', - rpcUrl: 'https://rpc.ankr.com/arbitrum' - } -] - - -const wallets = [injectedModule(), walletConnect, coinbaseWalletSdk] - - + rpcUrl: 'https://rpc.ankr.com/arbitrum', + }, +]; +const wallets = [injectedModule(), walletConnect, coinbaseWalletSdk]; const web3OnBoard = init({ wallets, - chains:CHAINS, - appMetadata:APP_META_DATA, + chains: CHAINS, + appMetadata: APP_META_DATA, accountCenter: { desktop: { - enabled: false + enabled: false, }, mobile: { - enabled: false - } + enabled: false, + }, }, connect: { autoConnectLastWallet: true, - } -}) + }, +}); interface IConnectButtonCompProps { autoConnect?: boolean; } -export const ConnectButtonComp: React.FC = ({ autoConnect }) => { +export const ConnectButtonComp: React.FC = ({ + autoConnect, +}) => { return ( ); -}; \ No newline at end of file +}; diff --git a/packages/uiweb/src/lib/components/chat/CreateGroup/AddCriteria.tsx b/packages/uiweb/src/lib/components/chat/CreateGroup/AddCriteria.tsx index f99fa58b2..1c893821f 100644 --- a/packages/uiweb/src/lib/components/chat/CreateGroup/AddCriteria.tsx +++ b/packages/uiweb/src/lib/components/chat/CreateGroup/AddCriteria.tsx @@ -266,6 +266,7 @@ const AddCriteria = ({ } as DropdownValueType) } + const onQuantityChange = (e: any) => { setQuantity({ ...quantity, value: e.target.value }); }; diff --git a/packages/uiweb/src/lib/components/chat/CreateGroup/CreateGroupModal.tsx b/packages/uiweb/src/lib/components/chat/CreateGroup/CreateGroupModal.tsx index 7534d0a13..4114e71f5 100644 --- a/packages/uiweb/src/lib/components/chat/CreateGroup/CreateGroupModal.tsx +++ b/packages/uiweb/src/lib/components/chat/CreateGroup/CreateGroupModal.tsx @@ -29,15 +29,9 @@ import { ProfilePicture, device } from '../../../config'; import { CriteriaValidationErrorType } from '../types'; import { MODAL_BACKGROUND_TYPE, MODAL_POSITION_TYPE } from '../../../types'; -import { - CreateGroupModalProps, - IChatTheme, - -} from '../exportedTypes'; +import { CreateGroupModalProps, IChatTheme } from '../exportedTypes'; import AutoImageClipper from '../reusables/AutoImageClipper'; - - export const CREATE_GROUP_STEP_KEYS = { INPUT_DETAILS: 1, GROUP_TYPE: 2, @@ -61,6 +55,7 @@ export const CreateGroupModal: React.FC = ({ onClose, modalBackground = MODAL_BACKGROUND_TYPE.OVERLAY, modalPositionType = MODAL_POSITION_TYPE.GLOBAL, + onSuccess, }) => { const [activeComponent, setActiveComponent] = useState( // replace it with info one @@ -107,7 +102,6 @@ export const CreateGroupModal: React.FC = ({ }); const [isImageUploaded, setIsImageUploaded] = useState(false); - const showError = (errorMessage: string) => { groupInfoToast.showMessageToast({ toastTitle: 'Error', @@ -118,7 +112,7 @@ export const CreateGroupModal: React.FC = ({ }; const getEncryptionType = () => { - console.debug(groupInputDetails.groupEncryptionType, "encryptionTypeee"); + console.debug(groupInputDetails.groupEncryptionType, 'encryptionTypeee'); if (groupInputDetails.groupEncryptionType === 'encrypted') { return false; } @@ -139,8 +133,10 @@ export const CreateGroupModal: React.FC = ({ .map((member: any) => member.wallets), }; const rules: any = checked ? criteriaStateManager.generateRule() : {}; - const isSuccess = await createGatedGroup(groupInfo, rules); - if (isSuccess === true) { + const { success: isGroupCreated, data: APIResponse } = + await createGatedGroup(groupInfo, rules); + if (isGroupCreated === true) { + onSuccess && onSuccess(APIResponse); groupInfoToast.showMessageToast({ toastTitle: 'Success', toastMessage: 'Group created successfully', @@ -211,7 +207,7 @@ export const CreateGroupModal: React.FC = ({ onClose={onClose} /> ); - + case CREATE_GROUP_STEP_KEYS.ADD_MEMBERS: return ( = ({ onClose={onClose} handlePrevious={handlePreviousfromAddWallets} memberList={groupInputDetails.groupMembers} - handleMemberList={(members: any)=>{ - setGroupInputDetails( - (prev: GroupInputDetailsType) => ({ ...prev, groupMembers: members}) - )}} + handleMemberList={(members: any) => { + setGroupInputDetails((prev: GroupInputDetailsType) => ({ + ...prev, + groupMembers: members, + })); + }} isLoading={loading} isPublic={getEncryptionType()} /> - ); default: return ( @@ -264,7 +261,9 @@ export interface ModalHeaderProps { handleAddWallets?: () => void; isImageUploaded?: boolean; setIsImageUploaded?: React.Dispatch>; - setGroupInputDetails?: React.Dispatch>; + setGroupInputDetails?: React.Dispatch< + React.SetStateAction + >; groupInputDetails?: GroupInputDetailsType; } @@ -494,4 +493,4 @@ const ErrorSpan = styled(Span)` font-size: 12px; font-weight: 500; color: #ed5858; -`; \ No newline at end of file +`; diff --git a/packages/uiweb/src/lib/components/chat/constants/chainDetails.tsx b/packages/uiweb/src/lib/components/chat/constants/chainDetails.tsx index 71df6f491..cd6e2d67f 100644 --- a/packages/uiweb/src/lib/components/chat/constants/chainDetails.tsx +++ b/packages/uiweb/src/lib/components/chat/constants/chainDetails.tsx @@ -28,9 +28,9 @@ export const NETWORK_ICON_DETAILS = { label: 'ETHEREUM MAINNET', icon: createSVGIcon(, 'Ethereum Mainnet'), }, - 80001: { - label: 'POLYGON MUMBAI', - icon: createSVGIcon(, 'Polygon Mumbai'), + 80002: { + label: 'POLYGON AMOY', + icon: createSVGIcon(, 'Polygon Amoy'), }, 137: { label: 'POLYGON MAINNET', diff --git a/packages/uiweb/src/lib/components/chat/exportedTypes.ts b/packages/uiweb/src/lib/components/chat/exportedTypes.ts index e389a3f80..cccffd782 100644 --- a/packages/uiweb/src/lib/components/chat/exportedTypes.ts +++ b/packages/uiweb/src/lib/components/chat/exportedTypes.ts @@ -1,7 +1,11 @@ -import type { CONSTANTS, GroupDTO, GroupInfoDTO, IMessageIPFS } from '@pushprotocol/restapi'; -import { IChatTheme } from "./theme"; -import { IGroup, ModalBackgroundType, ModalPositionType } from '../../types' - +import type { + CONSTANTS, + GroupDTO, + GroupInfoDTO, + IMessageIPFS, +} from '@pushprotocol/restapi'; +import { IChatTheme } from './theme'; +import { IGroup, ModalBackgroundType, ModalPositionType } from '../../types'; export interface IChatPreviewPayload { chatId: string | undefined; @@ -12,29 +16,34 @@ export interface IChatPreviewPayload { chatMsg?: { messageType: string; messageContent: string | object; - } + }; } export interface IChatPreviewProps { chatPreviewPayload: IChatPreviewPayload; selected?: boolean; - setSelected?: (chatId: string,chatParticipant: string) => void; + setSelected?: (chatId: string, chatParticipant: string) => void; badge?: { count?: number; }; } -export type Group = GroupInfoDTO| GroupDTO | undefined; +export type Group = GroupInfoDTO | GroupDTO | undefined; export interface IChatPreviewListProps { overrideAccount?: string; listType?: 'CHATS' | 'REQUESTS' | 'SEARCH'; prefillChatPreviewList?: Array; searchParamter?: string; - onChatSelected?: (chatId: string,chatParticipant: string) => void; + onChatSelected?: (chatId: string, chatParticipant: string) => void; onUnreadCountChange?: (count: number) => void; onPreload?: (chats: Array) => void; onPaging?: (chats: Array) => void; - onLoading?: (loadingData:{loading:boolean,preload:boolean,paging:boolean,finished:boolean}) => void; + onLoading?: (loadingData: { + loading: boolean; + preload: boolean; + paging: boolean; + finished: boolean; + }) => void; } export interface IChatViewListProps { @@ -43,7 +52,6 @@ export interface IChatViewListProps { limit?: number; } - export interface IChatViewComponentProps { messageInput?: boolean; chatViewList?: boolean; @@ -55,7 +63,7 @@ export interface IChatViewComponentProps { gif?: boolean; file?: boolean; isConnected?: boolean; - autoConnect?:boolean; + autoConnect?: boolean; groupInfoModalBackground?: ModalBackgroundType; groupInfoModalPositionType?: ModalPositionType; verificationFailModalBackground?: ModalBackgroundType; @@ -63,7 +71,7 @@ export interface IChatViewComponentProps { onVerificationFail?: () => void; chatProfileRightHelperComponent?: React.ReactNode; chatProfileLeftHelperComponent?: React.ReactNode; - welcomeComponent?:React.ReactNode; + welcomeComponent?: React.ReactNode; } export interface IChatProfile { @@ -103,28 +111,25 @@ export interface MessageInputProps { gif?: boolean; file?: boolean; isConnected?: boolean; - autoConnect?:boolean; + autoConnect?: boolean; verificationFailModalBackground?: ModalBackgroundType; verificationFailModalPosition?: ModalPositionType; onVerificationFail?: () => void; } - - - export interface MessageIPFS { - fromCAIP10: string - toCAIP10: string - fromDID: string - toDID: string - messageType: string - messageContent: string - signature: string - sigType: string - link: string | null - timestamp?: number - encType: string - encryptedSecret: string + fromCAIP10: string; + toCAIP10: string; + fromDID: string; + toDID: string; + messageType: string; + messageContent: string; + signature: string; + sigType: string; + link: string | null; + timestamp?: number; + encType: string; + encryptedSecret: string; } export interface Feeds { @@ -141,7 +146,7 @@ export interface Feeds { intentTimestamp: Date; combinedDID: string; cid?: string; - groupInformation?: IGroup + groupInformation?: IGroup; } export interface User { @@ -158,26 +163,26 @@ export interface User { numMsg: number; allowedNumMsg: number; linkedListHash?: string | null; - isAdmin?:boolean; + isAdmin?: boolean; } export interface CreateGroupModalProps { - onClose: ()=>void; + onClose: () => void; modalBackground?: ModalBackgroundType; modalPositionType?: ModalPositionType; -}; + onSuccess?: (group: GroupInfoDTO | GroupDTO | undefined) => void; +} export interface UserProfileProps { updateUserProfileModalBackground?: ModalBackgroundType; updateUserProfileModalPositionType?: ModalPositionType; -}; +} export interface ModalButtonProps { memberListCount?: boolean; theme?: IChatTheme; isLoading?: boolean; -}; - +} export { IChatTheme } from './theme'; @@ -201,4 +206,4 @@ export enum ChatPreviewListErrorCodes { export interface IChatPreviewListError { code: ChatPreviewListErrorCodes; message: string; -} \ No newline at end of file +} diff --git a/packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/chain.ts b/packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/chain.ts index 1f15f8058..e53db5b32 100644 --- a/packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/chain.ts +++ b/packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/chain.ts @@ -1,4 +1,4 @@ -import { InfuraAPIKey } from "../../../../config"; +import { InfuraAPIKey } from '../../../../config'; const getInfuraUrlFor = (network: string, key: string) => `https://${network}.infura.io/v3/${key}`; @@ -8,26 +8,26 @@ const getRpcURL = (network: string, key: string) => { }; export const getChainRPC = (chainId: number): string => { - const key = InfuraAPIKey; - + const key = InfuraAPIKey; + switch (chainId) { case 1: - return getRpcURL("mainnet", key); + return getRpcURL('mainnet', key); case 137: - return getRpcURL("polygon-mainnet", key); + return getRpcURL('polygon-mainnet', key); case 10: - return getRpcURL("optimism-mainnet", key); + return getRpcURL('optimism-mainnet', key); case 56: - return "https://bsc-dataseed.binance.org/"; + return 'https://bsc-dataseed.binance.org/'; case 11155111: - return getRpcURL("sepolia", key); + return getRpcURL('sepolia', key); case 11155420: - return getRpcURL("optimism-sepolia", key); - case 80001: - return getRpcURL("polygon-mumbai", key); + return getRpcURL('optimism-sepolia', key); + case 80002: + return getRpcURL('polygon-amoy', key); case 97: - return "https://data-seed-prebsc-1-s1.binance.org:8545"; + return 'https://data-seed-prebsc-1-s1.binance.org:8545'; default: - return getRpcURL("mainnet", key); + return getRpcURL('mainnet', key); } }; diff --git a/packages/uiweb/src/lib/components/chat/reusables/ProfileContainer.tsx b/packages/uiweb/src/lib/components/chat/reusables/ProfileContainer.tsx index 27a8cb1ea..02af5aebc 100644 --- a/packages/uiweb/src/lib/components/chat/reusables/ProfileContainer.tsx +++ b/packages/uiweb/src/lib/components/chat/reusables/ProfileContainer.tsx @@ -1,5 +1,5 @@ import { useState } from 'react'; -import { copyToClipboard } from '../../../helpers'; +import { copyToClipboard, pCAIP10ToWallet } from '../../../helpers'; import { CopySvg2 } from '../../../icons/CopySvg2'; import { Section, Span, Image, Div, Tooltip } from '../../reusables'; import { IChatTheme } from '../theme'; @@ -74,7 +74,7 @@ export const ProfileContainer = ({ setCopyText(''); }} onClick={() => { - copyToClipboard(member?.completeWallet || ''); + copyToClipboard(pCAIP10ToWallet(member?.completeWallet || '')); setCopyText('copied'); }} > diff --git a/packages/uiweb/src/lib/components/notification/chainDetails.tsx b/packages/uiweb/src/lib/components/notification/chainDetails.tsx index f4a3ebf6b..6c3ed2827 100644 --- a/packages/uiweb/src/lib/components/notification/chainDetails.tsx +++ b/packages/uiweb/src/lib/components/notification/chainDetails.tsx @@ -24,9 +24,9 @@ export default { label: 'ETHEREUM MAINNET', icon: createSVGIcon(, 'Ethereum Mainnet'), }, - POLYGON_TEST_MUMBAI: { - label: 'POLYGON MUMBAI', - icon: createSVGIcon(, 'Polygon Mumbai'), + POLYGON_TEST_AMOY: { + label: 'POLYGON AMOY', + icon: createSVGIcon(, 'Polygon Amoy'), }, POLYGON_MAINNET: { label: 'POLYGON MAINNET', diff --git a/packages/uiweb/src/lib/components/notification/index.tsx b/packages/uiweb/src/lib/components/notification/index.tsx index 7db49a5fa..0a4922a03 100644 --- a/packages/uiweb/src/lib/components/notification/index.tsx +++ b/packages/uiweb/src/lib/components/notification/index.tsx @@ -25,7 +25,7 @@ export {lightTheme as notificationLightTheme,darkTheme as notificationDarkTheme, // ================= Define types export type chainNameType = | 'ETH_TEST_SEPOLIA' - | 'POLYGON_TEST_MUMBAI' + | 'POLYGON_TEST_AMOY' | 'ETH_MAINNET' | 'POLYGON_MAINNET' | 'BSC_MAINNET' diff --git a/packages/uiweb/src/lib/components/widget/ConnectButton/index.tsx b/packages/uiweb/src/lib/components/widget/ConnectButton/index.tsx index 25c631a52..9e50b9aca 100644 --- a/packages/uiweb/src/lib/components/widget/ConnectButton/index.tsx +++ b/packages/uiweb/src/lib/components/widget/ConnectButton/index.tsx @@ -1,12 +1,11 @@ - -import coinbaseWalletModule from '@web3-onboard/coinbase' +import coinbaseWalletModule from '@web3-onboard/coinbase'; import { ConnectButtonSub } from './ConnectButton'; import { BLOCKNATIVE_PROJECT_ID, InfuraAPIKey } from '../../../config'; import { Web3OnboardProvider } from '@web3-onboard/react'; import injectedModule from '@web3-onboard/injected-wallets'; -import walletConnectModule from '@web3-onboard/walletconnect' +import walletConnectModule from '@web3-onboard/walletconnect'; import init from '@web3-onboard/core'; -import PushIcon from "../../../icons/Bell.svg" +import PushIcon from '../../../icons/Bell.svg'; import { SignerType } from '@pushprotocol/restapi'; const APP_META_DATA = { @@ -17,90 +16,95 @@ const APP_META_DATA = { recommendedInjectedWallets: [ { name: 'MetaMask', url: 'https://metamask.io' }, - ] -} + ], +}; const wcv2InitOptions = { projectId: BLOCKNATIVE_PROJECT_ID, - requiredChains: [1, 56] -} + requiredChains: [1, 56], +}; -const walletConnect = walletConnectModule(wcv2InitOptions) -const coinbaseWalletSdk = coinbaseWalletModule({ darkMode: true }) +const walletConnect = walletConnectModule(wcv2InitOptions); +const coinbaseWalletSdk = coinbaseWalletModule({ darkMode: true }); const CHAINS = [ { id: '0x1', token: 'ETH', label: 'Ethereum Mainnet', - rpcUrl: `https://mainnet.infura.io/v3/${InfuraAPIKey}` + rpcUrl: `https://mainnet.infura.io/v3/${InfuraAPIKey}`, }, { id: '0xAA36A7', token: 'ETH', label: 'Sepolia', - rpcUrl: `https://sepolia.infura.io/v3/${InfuraAPIKey}` + rpcUrl: `https://sepolia.infura.io/v3/${InfuraAPIKey}`, }, { id: '0x13881', token: 'MATIC', - label: 'Polygon - Mumbai', - rpcUrl: 'https://matic-mumbai.chainstacklabs.com' + label: 'Polygon - Amoy', + rpcUrl: 'https://rpc-amoy.polygon.technology', }, { id: '0x38', token: 'BNB', label: 'Binance', - rpcUrl: 'https://bsc-dataseed.binance.org/' + rpcUrl: 'https://bsc-dataseed.binance.org/', }, { id: '0xA', token: 'OETH', label: 'Optimism', - rpcUrl: 'https://mainnet.optimism.io' + rpcUrl: 'https://mainnet.optimism.io', }, { id: '0xA4B1', token: 'ARB-ETH', label: 'Arbitrum', - rpcUrl: 'https://rpc.ankr.com/arbitrum' - } -] - - -const wallets = [injectedModule(), walletConnect, coinbaseWalletSdk] - - + rpcUrl: 'https://rpc.ankr.com/arbitrum', + }, +]; +const wallets = [injectedModule(), walletConnect, coinbaseWalletSdk]; const web3OnBoard = init({ wallets, - chains:CHAINS, - appMetadata:APP_META_DATA, + chains: CHAINS, + appMetadata: APP_META_DATA, accountCenter: { desktop: { - enabled: false + enabled: false, }, mobile: { - enabled: false - } + enabled: false, + }, }, connect: { autoConnectLastWallet: true, }, -}) +}); interface IConnectButtonCompProps { autoconnect?: boolean; - setAccount: React.Dispatch>; + setAccount: React.Dispatch>; signer: SignerType | undefined; setSigner: React.Dispatch>; - } -export const ConnectButtonComp: React.FC = ({ autoconnect,setAccount,setSigner,signer }) => { +export const ConnectButtonComp: React.FC = ({ + autoconnect, + setAccount, + setSigner, + signer, +}) => { return ( - + ); -}; \ No newline at end of file +}; diff --git a/packages/uiweb/src/lib/config/constants.ts b/packages/uiweb/src/lib/config/constants.ts index 4381fb23e..6084e97a5 100644 --- a/packages/uiweb/src/lib/config/constants.ts +++ b/packages/uiweb/src/lib/config/constants.ts @@ -22,8 +22,8 @@ export const NETWORK_DETAILS = { 11155111: { network: 'sepolia', }, - 80001: { - network: 'polygon-mumbai', + 80002: { + network: 'polygon-amoy', }, 1: { network: 'mainnet', @@ -53,7 +53,7 @@ export const CoreRPC = { const TESTNET_NETWORK = { ETHEREUM: 'eip155:11155111', - POLYGON: 'eip155:80001', + POLYGON: 'eip155:80002', BSC: 'eip155:97', OPTIMISM: 'eip155:11155420', POLYGON_ZK_EVM: 'eip155:1442', @@ -89,7 +89,7 @@ export const allowedNetworks = { ], dev: [ 11155111, // for eth sepolia - 80001, //for mumbai polygon + 80002, //for polygon amoy 97, // bnb testnet 11155420, // optimism sepolia testnet 421614, // for arbitrum testnet @@ -99,7 +99,7 @@ export const allowedNetworks = { staging: [ // 42, //for kovan 11155111, // for sepolia - 80001, //for mumbai polygon + 80002, //for polygon amoy 97, // bnb testnet 11155420, // optimism sepolia testnet 421614, // for arbitrum testnet @@ -108,7 +108,7 @@ export const allowedNetworks = { ], local: [ 11155111, // for eth sepolia - 80001, //for mumbai polygon + 80002, //for polygon amoy 97, // bnb testnet 11155420, // optimism sepolia testnet 421614, // for arbitrum testnet diff --git a/packages/uiweb/src/lib/helpers/udResolver.ts b/packages/uiweb/src/lib/helpers/udResolver.ts index 3391a09d4..b2ea60086 100644 --- a/packages/uiweb/src/lib/helpers/udResolver.ts +++ b/packages/uiweb/src/lib/helpers/udResolver.ts @@ -5,7 +5,7 @@ import type { Env } from '@pushprotocol/restapi'; export const getUdResolver = (env:Env): Resolution => { const l1ChainId = allowedNetworks[env].includes(1) ? 1 : 5; - const l2ChainId = allowedNetworks[env].includes(137) ? 137 : 80001; + const l2ChainId = allowedNetworks[env].includes(137) ? 137 : 80002; // ToDo: Enable for sepolia chainId once UD supports it // const l1ChainId = appConfig.allowedNetworks.includes(1) ? 1 : 11155111; return Resolution.fromEthersProvider({ diff --git a/packages/uiweb/src/lib/hooks/chat/useCreateGatedGroup.ts b/packages/uiweb/src/lib/hooks/chat/useCreateGatedGroup.ts index 25ff2253f..48b8dd16b 100644 --- a/packages/uiweb/src/lib/hooks/chat/useCreateGatedGroup.ts +++ b/packages/uiweb/src/lib/hooks/chat/useCreateGatedGroup.ts @@ -9,24 +9,27 @@ export const useCreateGatedGroup = () => { const { env, account, user } = useChatData(); const createGatedGroup = useCallback( - async (groupInfoType:GrouInfoType,rules: any) => { + async (groupInfoType: GrouInfoType, rules: any) => { setLoading(true); console.debug('user in create group ',user) try { const payload = { - description:groupInfoType.groupDescription, - image:groupInfoType.groupImage, + description: groupInfoType.groupDescription, + image: groupInfoType.groupImage, private: !groupInfoType.isPublic, members: groupInfoType.members, admins: groupInfoType.admins, rules: rules, }; - const response = await user?.chat.group.create(groupInfoType.groupName, payload); + const response = await user?.chat.group.create( + groupInfoType.groupName, + payload + ); setLoading(false); if (!response) { - return false; + return { success: false, data: 'Something went wrong' }; } - return true; + return { success: true, data: response }; } catch (error: Error | any) { setLoading(false); setError(error.message); @@ -37,4 +40,4 @@ export const useCreateGatedGroup = () => { ); return { createGatedGroup, error, loading }; -}; \ No newline at end of file +};