flow-go icon indicating copy to clipboard operation
flow-go copied to clipboard

Alter chainIDs to comply with the CAIP-2 standard

Open justinbarry opened this issue 2 years ago • 3 comments

Problem

WalletConnect expects network IDs to be in a certain standardized format. I am hoping this PR will spark off a conversation on the downstream effects of this change.

See: https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-2.md

justinbarry avatar Sep 20 '22 23:09 justinbarry

Codecov Report

Merging #3262 (9f766db) into master (6ce6e97) will decrease coverage by 2.60%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3262      +/-   ##
==========================================
- Coverage   53.81%   51.20%   -2.61%     
==========================================
  Files         741      501     -240     
  Lines       68515    42265   -26250     
==========================================
- Hits        36868    21640   -15228     
+ Misses      28605    18934    -9671     
+ Partials     3042     1691    -1351     
Flag Coverage Δ
unittests 51.20% <ø> (-2.61%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
model/flow/chain.go 57.42% <ø> (ø)
network/p2p/dns/resolver.go 91.51% <0.00%> (-4.85%) :arrow_down:
cmd/scaffold.go 17.30% <0.00%> (ø)
cmd/node_builder.go 97.72% <0.00%> (ø)
cmd/execution_builder.go 0.00% <0.00%> (ø)
network/test/testUtil.go 94.83% <0.00%> (ø)
...onsensus/approvals/caching_assignment_collector.go
...ne/verification/assigner/blockconsumer/consumer.go
ledger/complete/wal/checksum.go
engine/access/rpc/backend/retry.go
... and 264 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov-commenter avatar Sep 20 '22 23:09 codecov-commenter

Also see

—- CAIP-10 Extension specifies chain-agnostic account identifiers

gregsantos avatar Sep 21 '22 22:09 gregsantos

Is there any network (chain) using this standard? Or we will be the first ?

This seems WalletConnect standard tbh.

bluesign avatar Sep 22 '22 11:09 bluesign

no movement here for a while, so going to assume there is no longer interest, feel free to re-open if there is renewed interest.

Kay-Zee avatar Jan 12 '23 18:01 Kay-Zee