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

[tss] support query signature #6

Draft
wants to merge 43 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f447207
fix getResult and add getSigning
nkitlabs May 15, 2024
22f119a
fix requester to support new oracleResult
nkitlabs May 15, 2024
b71f23d
fix example to support new oracleResult
nkitlabs May 15, 2024
9a644d6
fix SigningResult object
nkitlabs May 16, 2024
c1c60ed
add getSigningResult
nkitlabs May 16, 2024
5d91a1e
fix example
nkitlabs May 16, 2024
482d19e
fix wording
nkitlabs May 16, 2024
0f0f568
rename variables & functions
nkitlabs May 17, 2024
71e3a7a
fix example
nkitlabs May 17, 2024
a4cdd74
fix from comments
nkitlabs May 18, 2024
ef81145
remove unused param
nkitlabs May 18, 2024
bcdbad7
add logic redefine error types
nkitlabs May 18, 2024
cbeb30d
fix SendRequest
nkitlabs May 21, 2024
c8a8258
add getProof in client
nkitlabs May 22, 2024
33f7a33
add middleware to expose errOut channel
nkitlabs May 22, 2024
2ef93aa
add InsufficientExecuteGasHandler
nkitlabs May 22, 2024
bbea8c2
add new type handler and fix log
nkitlabs May 22, 2024
c5bb7e9
remove sizeCh params
nkitlabs May 22, 2024
66bb2c2
fix example
nkitlabs May 22, 2024
dacd4e5
fix types and changelog
nkitlabs May 23, 2024
700ced6
fix struct
nkitlabs May 23, 2024
fb2d675
fix type on client and fix test
nkitlabs May 27, 2024
7a4d5c9
fix go mod on example
nkitlabs May 27, 2024
b4248d1
change msg type to sdk.msg
May 27, 2024
88c5478
fix format
nkitlabs May 28, 2024
6f70e0b
add signing retry
May 28, 2024
21f6e79
add comment
May 28, 2024
85966f3
update feed type
May 28, 2024
1fc446d
fix getRequestProofByID
nkitlabs May 28, 2024
4058560
add msg
Jun 4, 2024
bfe3d5a
add event subscription
nkitlabs Jun 5, 2024
95a4b53
fix lint
nkitlabs Jun 5, 2024
e568920
add print signature msg
Jun 5, 2024
7d44d93
fix format
nkitlabs May 28, 2024
4cb031e
fix getRequestProofByID
nkitlabs May 28, 2024
f60c0c8
add event subscription
nkitlabs Jun 5, 2024
6710d89
fix lint
nkitlabs Jun 5, 2024
6b8c11a
Merge branch 'tss-support-signature' into tss-support-request-feeds-s…
nkitlabs Jun 6, 2024
0c13e34
fix lint and move helper function from client to requester
nkitlabs Jun 6, 2024
ab69a60
fix log and example
nkitlabs Jun 6, 2024
9a612c1
Merge pull request #7 from bandprotocol/tss-support-request-feeds-sig…
nkitlabs Jun 6, 2024
bd52970
add
Jun 7, 2024
3440bdc
fix example
nkitlabs Jun 10, 2024
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
Prev Previous commit
Next Next commit
fix lint
nkitlabs committed Jun 6, 2024
commit 6710d892ac0d8f483b0bd7860ec741fde99d0b7d
9 changes: 8 additions & 1 deletion subscriber/subscriber.go
Original file line number Diff line number Diff line change
@@ -107,7 +107,14 @@ func (s *Subscriber) listenEvents(
}

s.logger.Debug("New event", "uid: %s", uid)
s.cache.Add(key, struct{}{}, cache.DefaultExpiration)

// Add the event to the cache, it should never return error due to a new item
// but we log it just in case.
if err := s.cache.Add(key, struct{}{}, cache.DefaultExpiration); err != nil {
s.logger.Error("Failed to add event to cache", "error", err)
continue
}

out <- msg
case <-stopCh:
break