Skip to content

Conversation

@awrichar
Copy link
Contributor

@awrichar awrichar commented Mar 16, 2022

No description provided.

Can store contract-specific data that does not map to a top-level
token pool field - such as the contract address, name, etc.

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
If an input "symbol" was specified, the returned one must match.
If no input "symbol" was specified, the connector may specify anything.

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
@awrichar awrichar changed the title Add "info" field to token pools Add "info" field to token pools, consume "symbol" from connectors Mar 16, 2022
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2022

Codecov Report

Merging #606 (d1e442b) into main (96415da) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##              main     #606      +/-   ##
===========================================
- Coverage   100.00%   99.98%   -0.02%     
===========================================
  Files          305      305              
  Lines        18181    18196      +15     
===========================================
+ Hits         18181    18193      +12     
- Misses           0        2       +2     
- Partials         0        1       +1     
Impacted Files Coverage Δ
internal/apiserver/route_post_token_pool.go 100.00% <ø> (ø)
pkg/fftypes/tokenpool.go 100.00% <ø> (ø)
internal/events/token_pool_created.go 100.00% <100.00%> (ø)
internal/tokens/fftokens/fftokens.go 100.00% <100.00%> (ø)
pkg/wsclient/wsclient.go 98.36% <0.00%> (-1.64%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96415da...d1e442b. Read the comment docs.

if ffPool.Symbol == "" {
ffPool.Symbol = pluginPool.Symbol
} else if ffPool.Symbol != pluginPool.Symbol {
return fmt.Errorf("received symbol '%s' does not match requested '%s'", pluginPool.Symbol, ffPool.Symbol)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is returned (and probably bubbled up to the user), should this be in the translations file? Also, maybe some wording that indicates that what was actually on the blockchain didn't match the API request. Rather than "received" vs "requested"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the processing in the events module is asynchronous on the event loop, so won't be easily visible to a user except in logs. I can tweak the wording though.

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
@awrichar awrichar merged commit 2e464e7 into hyperledger:main Mar 18, 2022
@awrichar awrichar deleted the tokeninfo branch March 18, 2022 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants