Skip to content

Commit

Permalink
Alpha fixes (#1229)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

---------

Co-authored-by: Satyam <[email protected]>
Co-authored-by: KlausMikhaelson <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* fix: exported the theme (#623)

* fix: exported the theme

* fix: fixed issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

---------

Co-authored-by: Satyam <[email protected]>
Co-authored-by: KlausMikhaelson <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* fix: exported the theme (#623)

* fix: exported the theme

* fix: fixed issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* Typebar component (#631)

* feat: added typebar UI

* feat: added functions to typebar

* fix: added icon

* fix: fixed theme issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* fix: QA fixes (#654)

---------

Co-authored-by: Monalisha Mishra <[email protected]>
Co-authored-by: Monalisha Mishra <[email protected]>
Co-authored-by: Satyam <[email protected]>
Co-authored-by: KlausMikhaelson <[email protected]>
Co-authored-by: Kolade <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* fix: exported the theme (#623)

* fix: exported the theme

* fix: fixed issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* Typebar component (#631)

* feat: added typebar UI

* feat: added functions to typebar

* fix: added icon

* fix: fixed theme issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* Typebar UI issue (#666)

* fix: fixed typebar space not working and theme

* fix: fixed gif and emoji

---------

Co-authored-by: KlausMikhaelson <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* refactor(spaces): use local state instead of get from server while meta message fire (#676)

---------

Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* feat: added verification option to show only on token gated groups

* fix: fixing group access control

---------

Co-authored-by: Monalisha Mishra <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* fix: fixed build

---------

Co-authored-by: Satyam <[email protected]>
Co-authored-by: KlausMikhaelson <[email protected]>
Co-authored-by: Kolade <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* fix: exported the theme (#623)

* fix: exported the theme

* fix: fixed issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* Typebar component (#631)

* feat: added typebar UI

* feat: added functions to typebar

* fix: added icon

* fix: fixed theme issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* Typebar UI issue (#666)

* fix: fixed typebar space not working and theme

* fix: fixed gif and emoji

---------

Co-authored-by: KlausMikhaelson <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* refactor(spaces): use local state instead of get from server while meta message fire (#676)

---------

Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* feat: added verification option to show only on token gated groups

* fix: fixing group access control

---------

Co-authored-by: Monalisha Mishra <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* 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 <[email protected]>
Co-authored-by: Monalisha Mishra <[email protected]>
Co-authored-by: Kolade <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Aman Gupta <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* fix: exported the theme (#623)

* fix: exported the theme

* fix: fixed issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* Typebar component (#631)

* feat: added typebar UI

* feat: added functions to typebar

* fix: added icon

* fix: fixed theme issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* Typebar UI issue (#666)

* fix: fixed typebar space not working and theme

* fix: fixed gif and emoji

---------

Co-authored-by: KlausMikhaelson <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* refactor(spaces): use local state instead of get from server while meta message fire (#676)

---------

Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* feat: added verification option to show only on token gated groups

* fix: fixing group access control

---------

Co-authored-by: Monalisha Mishra <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* 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 <[email protected]>
Co-authored-by: KlausMikhaelson <[email protected]>
Co-authored-by: Kolade <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Aman Gupta <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* fix: exported the theme (#623)

* fix: exported the theme

* fix: fixed issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* Typebar component (#631)

* feat: added typebar UI

* feat: added functions to typebar

* fix: added icon

* fix: fixed theme issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* Typebar UI issue (#666)

* fix: fixed typebar space not working and theme

* fix: fixed gif and emoji

---------

Co-authored-by: KlausMikhaelson <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* refactor(spaces): use local state instead of get from server while meta message fire (#676)

---------

Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* feat: added verification option to show only on token gated groups

* fix: fixing group access control

---------

Co-authored-by: Monalisha Mishra <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* 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 <[email protected]>
Co-authored-by: KlausMikhaelson <[email protected]>
Co-authored-by: Kolade <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Aman Gupta <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: aman035 <[email protected]>
Co-authored-by: Harsh | Push <[email protected]>
Co-authored-by: akp111 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

---------

Co-authored-by: Aman Gupta <[email protected]>
Co-authored-by: Mohammed S <[email protected]>

* 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 <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Monalisha Mishra <[email protected]>
Co-authored-by: Satyam <[email protected]>
Co-authored-…
  • Loading branch information
19 people authored Apr 15, 2024
1 parent d30e095 commit 524f137
Show file tree
Hide file tree
Showing 29 changed files with 341 additions and 201 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
],
});
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/sdk-frontend-react/src/app/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
},
{
Expand Down
3 changes: 2 additions & 1 deletion packages/restapi/src/lib/chat/getChatInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export interface ChatInfoResponse {
};
list: string;
participants: string[];
chatId: string
chatId: string;
receipient: string;
}

/**
Expand Down
61 changes: 42 additions & 19 deletions packages/restapi/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { tokenABI } from './abis/token';
import {
mainnet,
polygon,
polygonMumbai,
bsc,
bscTestnet,
optimism,
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
},
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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',
},
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
4 changes: 2 additions & 2 deletions packages/restapi/src/lib/payloads/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/payloads/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) {
Expand Down
7 changes: 4 additions & 3 deletions packages/restapi/src/lib/pushapi/PushAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 }[];

Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down
28 changes: 23 additions & 5 deletions packages/restapi/src/lib/pushapi/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,33 @@ export class Chat {
});
}

async info(receipient: string): Promise<ChatInfoResponse> {
const options: PUSH_CHAT.GetChatInfoType = {
async info(
receipient: string,
options?: {
overrideAccount?: string;
}
): Promise<ChatInfoResponse> {
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);
Expand Down
6 changes: 4 additions & 2 deletions packages/restapi/src/lib/pushstream/PushStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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[],
Expand All @@ -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,
Expand Down Expand Up @@ -101,6 +102,7 @@ export class PushStream extends EventEmitter {
listen: STREAM[],
newOptions: PushStreamInitializeProps
): Promise<void> {
this.uid = uuidv4();
this.listen = listen;
this.options = { ...this.options, ...newOptions };
await this.disconnect();
Expand Down
1 change: 1 addition & 0 deletions packages/restapi/tests/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 524f137

Please sign in to comment.