Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha to main #768

Merged
merged 466 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
466 commits
Select commit Hold shift + click to select a range
d66202d
fix: Merge branch 'main' into alpha
mohammeds1992 Jul 11, 2023
54c5721
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jul 11, 2023
15cb912
Spaces backend examples (#522)
mohammeds1992 Jul 11, 2023
e7f2d30
Spaces SDK alpha publish (#520)
madhur-push Jul 11, 2023
7b316ec
fix: Merge branch 'main' into alpha
mohammeds1992 Jul 11, 2023
b120e30
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jul 12, 2023
7893196
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.23
mohammeds1992 Jul 12, 2023
7255aed
Update README.md
mohammeds1992 Jul 12, 2023
899eb21
fix: rename chats to spaces
mohammeds1992 Jul 14, 2023
89b72a7
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 14, 2023
0581d15
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.24
mohammeds1992 Jul 14, 2023
fc7a9dc
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 14, 2023
ff840b1
ci(uiweb): 🎉 cut release to uiweb-v1.1.0
mohammeds1992 Jul 14, 2023
27c42b9
fix: spaces examples fixes
mohammeds1992 Jul 15, 2023
3519d39
fix: renamed spaces variables and removed some unused variables
mohammeds1992 Jul 16, 2023
d7e2cde
Update README.md
mohammeds1992 Jul 17, 2023
dfab492
fix: fixed merge conflicts
mishramonalisha76 Jul 17, 2023
2e2c904
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 17, 2023
9ed0b0f
ci(uiweb): 🎉 cut release to uiweb-v1.1.1
mohammeds1992 Jul 17, 2023
769b7a4
ci(restapi): 🎉 cut release to restapi-v1.4.0
mohammeds1992 Jul 17, 2023
e6fcac1
fix: merge main
mohammeds1992 Jul 17, 2023
011d308
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 18, 2023
6f97b99
ci(restapi): 🎉 cut release to restapi-v1.4.1
mohammeds1992 Jul 18, 2023
7a16f32
fix: corrections
mohammeds1992 Jul 18, 2023
8bc14a7
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 18, 2023
71d80b6
ci(uiweb): 🎉 cut release to uiweb-v1.1.2
mohammeds1992 Jul 18, 2023
064e10d
fix: space api
mohammeds1992 Jul 19, 2023
a71302b
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jul 19, 2023
fe93d43
fix: Merge branch 'main' into alpha-deployment
mohammeds1992 Jul 19, 2023
1b77f5f
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.25
mohammeds1992 Jul 19, 2023
5b7f2fc
fix: use SpaceIFeeds
mohammeds1992 Jul 20, 2023
1edea43
fix: signer compatibility with viem and ethers
Aman035 Jul 20, 2023
9f77f39
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 20, 2023
8c1a148
ci(uiweb): 🎉 cut release to uiweb-v1.1.3
mohammeds1992 Jul 20, 2023
00d91b1
fix: space feed API path fix
mohammeds1992 Jul 20, 2023
24784e9
fix: merge main
mohammeds1992 Jul 20, 2023
fa7acd2
ci(uiweb): 🎉 cut release to uiweb-v1.1.4
mohammeds1992 Jul 20, 2023
7661701
ci(restapi): 🎉 cut release to restapi-v1.4.2
mohammeds1992 Jul 20, 2023
526c886
fix: revert space changes
Aman035 Jul 21, 2023
c07ce16
fix: merge main
mohammeds1992 Jul 21, 2023
c07c3fa
fix: signer compatibility with viem and ethers (#567)
Aman035 Jul 21, 2023
3f3369a
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jul 21, 2023
74da5f1
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.26
mohammeds1992 Jul 21, 2023
8972cea
Update README.md
mohammeds1992 Jul 22, 2023
bfeee5f
Update README.md
mohammeds1992 Jul 22, 2023
110fca5
ci(restapi): 🎉 cut release to restapi-v1.4.3
mohammeds1992 Jul 22, 2023
1bdc675
fix: merge main
mohammeds1992 Jul 22, 2023
3df201c
fix: signer compatibility with viem
Aman035 Jul 24, 2023
6ea669a
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jul 24, 2023
16a55af
fix: merge alpha
mohammeds1992 Jul 24, 2023
599f04d
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.27
mohammeds1992 Jul 24, 2023
90f51b9
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 27, 2023
9e691d8
ci(restapi): 🎉 cut release to restapi-v1.4.4
mohammeds1992 Jul 27, 2023
3e8e7d8
ci(uiweb): 🎉 cut release to uiweb-v1.1.5
mohammeds1992 Jul 27, 2023
e33017a
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 28, 2023
ebddf3a
ci(uiweb): 🎉 cut release to uiweb-v1.1.6
mohammeds1992 Jul 28, 2023
9755baf
fix: Merge branch 'main' into deployment
mohammeds1992 Jul 31, 2023
f9c5178
ci(uiweb): 🎉 cut release to uiweb-v1.1.7
mohammeds1992 Jul 31, 2023
c5533f8
fix: merged main
Aman035 Aug 1, 2023
6768065
fix: add: scw sig verification (#593)
Aman035 Aug 2, 2023
6c19940
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 2, 2023
e7a0c34
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.28
mohammeds1992 Aug 2, 2023
26b6b73
fix: url correction
mohammeds1992 Aug 2, 2023
ed365ed
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.29
mohammeds1992 Aug 2, 2023
8b97fa0
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 3, 2023
e5790a2
ci(socket): 🎉 cut release to socket-v0.5.2
mohammeds1992 Aug 3, 2023
3f908a0
fix: fixed subscribe and unsubscribe
Aman035 Aug 4, 2023
bb71789
fix(merged): merged
Aman035 Aug 4, 2023
b9e4440
fix: merge main
mohammeds1992 Aug 4, 2023
b0dcc26
ci(restapi): 🎉 cut release to restapi-v1.4.5
mohammeds1992 Aug 4, 2023
6fc57f4
ci(uiweb): 🎉 cut release to uiweb-v1.1.8
mohammeds1992 Aug 4, 2023
7c1f3cd
fix: Merge branch 'main' into alpha
mohammeds1992 Aug 9, 2023
db49939
Feat/chat components (#621)
mishramonalisha76 Aug 9, 2023
984a80f
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 9, 2023
8ecf5d9
fix: add alpha support to UI web
mohammeds1992 Aug 9, 2023
9a6eab1
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.0
mohammeds1992 Aug 9, 2023
75fbda5
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 9, 2023
79cd374
ci(restapi): 🎉 cut release to restapi-v1.4.6
mohammeds1992 Aug 9, 2023
843cd01
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 9, 2023
0142fb7
ci(uiweb): 🎉 cut release to uiweb-v1.1.9
mohammeds1992 Aug 10, 2023
dd97e3d
Feat/chat components (#625)
mishramonalisha76 Aug 10, 2023
b74a40d
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.1
mohammeds1992 Aug 10, 2023
2af8d12
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 10, 2023
04c7de2
ci(restapi): 🎉 cut release to restapi-v1.4.7
mohammeds1992 Aug 10, 2023
e504703
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 10, 2023
a50488c
ci(restapi): 🎉 cut release to restapi-v1.4.8
mohammeds1992 Aug 10, 2023
ae25b69
ci(uiweb): 🎉 cut release to uiweb-v1.1.10
mohammeds1992 Aug 10, 2023
cd9f1e0
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 11, 2023
4f690df
ci(restapi): 🎉 cut release to restapi-v1.4.9
mohammeds1992 Aug 11, 2023
f338fd4
fix: merge main
mohammeds1992 Aug 14, 2023
31a453e
632 group access control sdk changes (#640)
mohammeds1992 Aug 15, 2023
8b50b53
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 15, 2023
d338a22
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.30
mohammeds1992 Aug 15, 2023
1bde1e2
Reduce profile creation signature to 2 (#639)
Aman035 Aug 16, 2023
a4c170e
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 16, 2023
a9d3b63
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.31
mohammeds1992 Aug 16, 2023
7c02c3a
fix: Read me fixes
mohammeds1992 Aug 16, 2023
2181074
fix: Space rules
mohammeds1992 Aug 17, 2023
98fd921
Update README.md
mohammeds1992 Aug 17, 2023
b5919eb
Update README.md
mohammeds1992 Aug 17, 2023
8dd925c
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 17, 2023
dd708ca
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.32
mohammeds1992 Aug 17, 2023
171c51c
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 18, 2023
66bce15
ci(restapi): 🎉 cut release to restapi-v1.4.10
mohammeds1992 Aug 18, 2023
93e3106
fix: merge main
mohammeds1992 Aug 18, 2023
84aaadf
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 18, 2023
ed10f3f
Feat/chat components (#658)
0xNilesh Aug 18, 2023
f53a5e2
fix: merge main
mohammeds1992 Aug 18, 2023
b7bc27d
ci(restapi): 🎉 cut release to restapi-v1.4.11
mohammeds1992 Aug 18, 2023
cc9b21a
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 18, 2023
674d316
ci(restapi): 🎉 cut release to restapi-v1.4.12
mohammeds1992 Aug 18, 2023
4cf5d67
ci(uiweb): 🎉 cut release to uiweb-v1.1.11
mohammeds1992 Aug 18, 2023
5769701
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 23, 2023
0f6df72
ci(restapi): 🎉 cut release to restapi-v1.4.13
mohammeds1992 Aug 23, 2023
c1ca05d
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 23, 2023
a6d5e75
fix: update read me file
mohammeds1992 Aug 23, 2023
8cf6d2b
ci(restapi): 🎉 cut release to restapi-v1.4.14
mohammeds1992 Aug 23, 2023
64278ec
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 23, 2023
aee7a33
ci(restapi): 🎉 cut release to restapi-v1.4.15
mohammeds1992 Aug 23, 2023
29f0572
ci(uiweb): 🎉 cut release to uiweb-v1.1.12
mohammeds1992 Aug 23, 2023
9efdbe8
fix: merge main
mohammeds1992 Aug 23, 2023
332f920
Feat/chat components (#679)
mishramonalisha76 Aug 23, 2023
1783d45
fix: merge alpha
mohammeds1992 Aug 23, 2023
e1fc403
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.2
mohammeds1992 Aug 23, 2023
d5da240
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 24, 2023
cbfbec0
fix: dummy change
mohammeds1992 Aug 24, 2023
c76c01c
ci(uiweb): 🎉 cut release to uiweb-v1.1.13
mohammeds1992 Aug 24, 2023
5d959cc
fix: Merge branch 'main' into deployment
mohammeds1992 Aug 24, 2023
8f3eaf3
ci(restapi): 🎉 cut release to restapi-v1.4.16
mohammeds1992 Aug 24, 2023
2e178db
Join group option (#681)
KlausMikhaelson Aug 25, 2023
1a19561
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.3
mohammeds1992 Aug 25, 2023
4a149d8
Join group option (#687)
mishramonalisha76 Aug 25, 2023
7a0d87e
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 25, 2023
87149fd
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.4
mohammeds1992 Aug 25, 2023
fcecb0c
Join group option (#688)
mishramonalisha76 Aug 25, 2023
292a8f9
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 25, 2023
d93193f
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.5
mohammeds1992 Aug 25, 2023
a7ed3c0
fix: fixed (#689)
mishramonalisha76 Aug 25, 2023
af5a4a7
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 25, 2023
d2e43a5
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.6
mohammeds1992 Aug 25, 2023
5368855
chat Load issue fixed (#690)
mishramonalisha76 Aug 26, 2023
45e6489
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 26, 2023
478308b
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.7
mohammeds1992 Aug 26, 2023
c24a9e1
fix: fixed msg bubble width (#691)
KlausMikhaelson Aug 28, 2023
a825667
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Aug 29, 2023
476e864
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.8
mohammeds1992 Aug 29, 2023
7f424d5
fix: Merge branch 'main' into deployment
mohammeds1992 Sep 1, 2023
44e0d32
fix: merge main
mohammeds1992 Sep 1, 2023
1a703ae
fix: Merge branch 'main' into deployment
mohammeds1992 Sep 1, 2023
99a09ea
fix: Merge branch 'main' into alpha
mohammeds1992 Sep 1, 2023
7ca84a6
ci(restapi): 🎉 cut release to restapi-v1.4.17
mohammeds1992 Sep 1, 2023
b8212e3
fix: Merge branch 'main' into deployment
mohammeds1992 Sep 4, 2023
eeefd3d
ci(restapi): 🎉 cut release to restapi-v1.4.18
mohammeds1992 Sep 4, 2023
0dcf00f
fix: merge main
mohammeds1992 Sep 6, 2023
33616bc
ci(restapi): 🎉 cut release to restapi-v1.4.19
mohammeds1992 Sep 6, 2023
5f37942
fix: merge main
mohammeds1992 Sep 7, 2023
699706b
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 7, 2023
8c4582d
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.33
mohammeds1992 Sep 7, 2023
92e8283
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.33
mohammeds1992 Sep 7, 2023
aff911b
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.9
mohammeds1992 Sep 8, 2023
6742caf
Onboarding blocknative (#702)
KlausMikhaelson Sep 9, 2023
f410046
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 9, 2023
17b82f3
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.10
mohammeds1992 Sep 9, 2023
1f23464
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.33
mohammeds1992 Sep 9, 2023
5021ca5
Fix connect button issue (#710)
mishramonalisha76 Sep 14, 2023
02994fa
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.11
mohammeds1992 Sep 15, 2023
8ae0f49
fix: added condition while showing tokengatedIcon (#715)
KlausMikhaelson Sep 20, 2023
4e30c36
fix: added disconnect for wallet (#721)
mishramonalisha76 Sep 20, 2023
1a4c5ac
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 20, 2023
3a864ce
Wallet disconnect (#722)
mishramonalisha76 Sep 20, 2023
a356f4b
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 20, 2023
cf9e610
Wallet disconnect (#723)
mishramonalisha76 Sep 20, 2023
a3b4ead
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 20, 2023
71b6e97
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.12
mohammeds1992 Sep 20, 2023
1653126
Changed messageInput params Case (#725)
mishramonalisha76 Sep 21, 2023
fed5d89
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 21, 2023
236f166
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.13
mohammeds1992 Sep 21, 2023
2462c8b
fix: Merge branch 'main' into deployment
mohammeds1992 Sep 22, 2023
ccdabb8
ci(restapi): 🎉 cut release to restapi-v1.4.20
mohammeds1992 Sep 22, 2023
986f0b0
Wallet disconnect (#728)
mishramonalisha76 Sep 25, 2023
7efc3ab
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 25, 2023
24448b0
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.14
mohammeds1992 Sep 25, 2023
5617655
Wallet disconnect (#732)
mishramonalisha76 Sep 25, 2023
eef6b18
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 25, 2023
50bfe43
ci(uiweb): 🎉 cut beta release to uiweb-v0.0.1-alpha.15
mohammeds1992 Sep 25, 2023
44f0b7b
fix: added class based implementation for notification (#699)
akp111 Sep 26, 2023
d9b7d14
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 26, 2023
8ca7e42
fix: changed typescript 5.0.2 and configured eslint
akp111 Sep 27, 2023
3074058
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 27, 2023
312631c
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.34
mohammeds1992 Sep 27, 2023
b6887db
fix: Merge branch 'main' into alpha
mohammeds1992 Sep 27, 2023
8d56ee8
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 27, 2023
7ccc775
720 pushstream class implementation (#729)
mohammeds1992 Sep 28, 2023
ec8c4de
fix: merge
mohammeds1992 Sep 28, 2023
be03539
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 28, 2023
09524c7
fix: remove only from test
mohammeds1992 Sep 28, 2023
99163b3
fix: error fixed
mohammeds1992 Sep 28, 2023
58f05eb
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.35
mohammeds1992 Sep 28, 2023
78d3df2
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.35
mohammeds1992 Sep 29, 2023
3ca0496
fix: stream cases
mohammeds1992 Sep 29, 2023
edee24a
720 pushstream class implementation (#737)
akp111 Sep 29, 2023
f9bb113
fix: Merge branch 'main' into deployment
mohammeds1992 Sep 29, 2023
629d02f
ci(restapi): 🎉 cut release to restapi-v1.4.21
mohammeds1992 Sep 29, 2023
e93f876
fix: corrected example
mohammeds1992 Sep 29, 2023
c4d2cff
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 29, 2023
92a2202
fix: some changes on stream
mohammeds1992 Sep 29, 2023
aa93fea
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.36
mohammeds1992 Sep 29, 2023
12e3ca5
fix: minor fixes
mohammeds1992 Sep 29, 2023
f855ce9
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.37
mohammeds1992 Sep 29, 2023
399d1fe
fix: error handling in socket events
mohammeds1992 Sep 29, 2023
e5c8743
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.38
mohammeds1992 Sep 29, 2023
fe0ad48
fix: more fixes
mohammeds1992 Sep 29, 2023
24e938e
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.39
mohammeds1992 Sep 29, 2023
be3e90a
fix: minor fixes
mohammeds1992 Sep 29, 2023
fa4fc0a
fix: socket enabled
mohammeds1992 Sep 29, 2023
786789a
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.40
mohammeds1992 Sep 29, 2023
4338d18
fix: minor fixes
mohammeds1992 Sep 29, 2023
313a46e
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.41
mohammeds1992 Sep 29, 2023
5e6e905
Add counter for update channel (#740)
akp111 Sep 29, 2023
6c3b91d
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 29, 2023
806b487
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.42
mohammeds1992 Sep 29, 2023
bb487a6
Add counter for update channel (#741)
akp111 Sep 29, 2023
0bf9a2d
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Sep 29, 2023
6954ab9
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.43
mohammeds1992 Sep 29, 2023
c73b6cc
fix: minor fix
mohammeds1992 Oct 3, 2023
afdc6f8
fix: Merge branch 'main' into deployment
mohammeds1992 Oct 3, 2023
8cdf4a3
ci(uiweb): 🎉 cut release to uiweb-v1.1.14
mohammeds1992 Oct 3, 2023
68b38e9
fix: log removed
mohammeds1992 Oct 3, 2023
7135091
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.44
mohammeds1992 Oct 3, 2023
ec08686
docs: fix tests
Aman035 Oct 3, 2023
fdb3925
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Oct 3, 2023
f64b275
Feat/space backup (#746)
arn4b Oct 3, 2023
522814d
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Oct 3, 2023
ec2aedb
fix: Notification event mutation
mohammeds1992 Oct 4, 2023
76a8d84
fix: alpha to main
mohammeds1992 Oct 5, 2023
da7bb68
Notification setting changes (#752)
akp111 Oct 5, 2023
098beac
fix: restored config
akp111 Oct 5, 2023
b031789
Arnab/livekit fixes (#754)
arn4b Oct 5, 2023
902194c
fix: merge main
mohammeds1992 Oct 6, 2023
a02ca33
ci(restapi): 🎉 cut release to restapi-v1.4.22
mohammeds1992 Oct 6, 2023
8f34995
fix: added settings
akp111 Oct 8, 2023
75604d7
fix: added settings (#762)
akp111 Oct 8, 2023
299a3be
fix: build fix
mohammeds1992 Oct 8, 2023
16dd007
fix: merge main
mohammeds1992 Oct 8, 2023
a1caeaf
fix: latest pull
akp111 Oct 9, 2023
15d5856
fix: minor fix
akp111 Oct 9, 2023
9750680
fix: minor fix
akp111 Oct 10, 2023
67abf8b
Create group chat comp (#766)
mishramonalisha76 Oct 10, 2023
7d67d5b
Sub response (#767)
akp111 Oct 11, 2023
21b61dc
Sub response (#770)
akp111 Oct 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 192 additions & 0 deletions packages/examples/sdk-backend-node/pushAPI/channel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
import { PushAPI } from '@pushprotocol/restapi';
import { config } from '../config';
import { ethers } from 'ethers';

// CONFIGS
const { env, showAPIResponse } = config;

export const runPushAPIChannelCases = async (): Promise<void> => {
if (!process.env.WALLET_PRIVATE_KEY) {
console.log(
'skipping PushAPI.channel examples, no private key passed in .env'
);
return;
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// Signer Generation
const provider = new ethers.providers.JsonRpcProvider(
'https://goerli.blockpi.network/v1/rpc/public' // Goerli Provider
);
const signer = new ethers.Wallet(
`0x${process.env.WALLET_PRIVATE_KEY}`,
provider
);
const randomWallet1 = ethers.Wallet.createRandom().address;
const randomWallet2 = ethers.Wallet.createRandom().address;
// -------------------------------------------------------------------
// -------------------------------------------------------------------
const userAlice = await PushAPI.initialize(signer, { env });
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.info');
const channelInfo = await userAlice.channel.info();
if (showAPIResponse) {
console.log(channelInfo);
}
console.log('PushAPI.channel.info | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.search');
const searchedChannels = await userAlice.channel.search(
'push' // search by name or address
);
if (showAPIResponse) {
console.log(searchedChannels);
}
console.log('PushAPI.channel.search | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.subscribers');
const channelSubscribers = await userAlice.channel.subscribers();
if (showAPIResponse) {
console.log(channelSubscribers);
}
console.log('PushAPI.channel.subscribers | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.send');
if (channelInfo) {
const broadcastNotif = await userAlice.channel.send(['*'], {
notification: {
title: 'test',
body: 'test',
},
});
const targetedNotif = await userAlice.channel.send([randomWallet1], {
notification: {
title: 'test',
body: 'test',
},
});
const subsetNotif = await userAlice.channel.send(
[randomWallet1, randomWallet2],
{
notification: {
title: 'test',
body: 'test',
},
}
);
if (showAPIResponse) {
console.log(broadcastNotif, targetedNotif, subsetNotif);
}
console.log('PushAPI.channel.send | Response - 200 OK\n\n');
} else {
console.log(
'skipping PushAPI.channel.send as no channel exists with the signer\n\n'
);
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// These Examples requires wallet to hold some ETH & PUSH
const balance = await provider.getBalance(signer.address);
if (parseFloat(ethers.utils.formatEther(balance)) < 0.001) {
console.log(
'skipping PushAPI.channel examples, wallet does not have enough balance to pay fee'
);
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.create');
if (channelInfo) {
console.log('skipping PushAPI.channel.create as it already exists\n\n');
} else {
const createdChannel = await userAlice.channel.create({
name: 'Test Channel',
description: 'Test Description',
icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAz0lEQVR4AcXBsU0EQQyG0e+saWJ7oACiKYDMEZVs6GgSpC2BIhzRwAS0sgk9HKn3gpFOAv3v3V4/3+4U4Z1q5KTy42Ql940qvFONnFSGmCFmiN2+fj7uCBlihpgh1ngwcvKfwjuVIWaIGWKNB+GdauSk8uNkJfeNKryzYogZYoZY40m5b/wlQ8wQM8TayMlKeKcaOVkJ71QjJyuGmCFmiDUe+HFy4VyEd57hx0mV+0ZliBlihlgL71w4FyMnVXhnZeSkiu93qheuDDFDzBD7BcCyMAOfy204AAAAAElFTkSuQmCC',
url: 'https://push.org',
});
if (showAPIResponse) {
console.log(createdChannel);
}
console.log('PushAPI.channel.create | Response - 200 OK\n\n');
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.update');
const updatedChannel = await userAlice.channel.update({
name: 'Updated Name',
description: 'Testing new description',
url: 'https://google.com',
icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAz0lEQVR4AcXBsU0EQQyG0e+saWJ7oACiKYDMEZVs6GgSpC2BIhzRwAS0sgk9HKn3gpFOAv3v3V4/3+4U4Z1q5KTy42Ql940qvFONnFSGmCFmiN2+fj7uCBlihpgh1ngwcvKfwjuVIWaIGWKNB+GdauSk8uNkJfeNKryzYogZYoZY40m5b/wlQ8wQM8TayMlKeKcaOVkJ71QjJyuGmCFmiDUe+HFy4VyEd57hx0mV+0ZliBlihlgL71w4FyMnVXhnZeSkiu93qheuDDFDzBD7BcCyMAOfy204AAAAAElFTkSuQmCC',
});
if (showAPIResponse) {
console.log(updatedChannel);
}
console.log('PushAPI.channel.update | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.verify');
// only verified channels can verify other channels (otherwise this action is skipped by sdk)
if (channelInfo.verified_status) {
const verifiedTrx = await userAlice.channel.verify(
'0x35B84d6848D16415177c64D64504663b998A6ab4'
);
if (showAPIResponse) {
console.log(verifiedTrx);
}
}
console.log('PushAPI.channel.verify | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.setting');
const channelSettingTrx = await userAlice.channel.setting([
{ type: 0, default: 1, description: 'My Notif Settings' },
]);
if (showAPIResponse) {
console.log(channelSettingTrx);
}
console.log('PushAPI.channel.setting | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.delegate.add');
const addedDelegate = await userAlice.channel.delegate.add(
`eip155:5:${randomWallet1}`
);

if (showAPIResponse) {
console.log(addedDelegate);
}
console.log('PushAPI.channel.delegate.add | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.delegate.get');
const delegates = await userAlice.channel.delegate.get();
if (showAPIResponse) {
console.log(delegates);
}
console.log('PushAPI.channel.delegate.get | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.delegate.remove');
const removedDelegate = await userAlice.channel.delegate.remove(
`eip155:5:${randomWallet1}`
);
if (showAPIResponse) {
console.log(removedDelegate);
}
console.log('PushAPI.channel.delegate.remove | Response - 200 OK\n\n');
// -------------------------------------------------------------------
// -------------------------------------------------------------------
console.log('PushAPI.channel.alias.info');
const aliasInfo = await userAlice.channel.alias.info({
alias: '0x35B84d6848D16415177c64D64504663b998A6ab4',
aliasChain: 'POLYGON',
});
if (showAPIResponse) {
console.log(aliasInfo);
}
console.log('PushAPI.channel.alias.info | Response - 200 OK\n\n');
};
Loading
Loading