Boilertalk / Web3.swift

A pure swift Ethereum Web3 library
MIT License
636 stars 187 forks source link

feat: bidirectional provider support and subscriptions for websockets #137

Closed koraykoska closed 1 year ago

koraykoska commented 1 year ago

Basically Events.

codecov-commenter commented 1 year ago

Codecov Report

Merging #137 (6d57b5c) into master (a668020) will decrease coverage by 0.70%. The diff coverage is 57.99%.

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
- Coverage   74.31%   73.61%   -0.71%     
==========================================
  Files          67       68       +1     
  Lines        4723     5041     +318     
==========================================
+ Hits         3510     3711     +201     
- Misses       1213     1330     +117     
Impacted Files Coverage Δ
Sources/Core/Json/EthereumBlockObject.swift 95.23% <ø> (ø)
Sources/Core/Json/RPCResponse.swift 0.00% <0.00%> (ø)
Sources/PromiseKit/ContractPromiseExtensions.swift 100.00% <ø> (ø)
Sources/Core/Toolbox/SynchronizedArray.swift 15.82% <15.82%> (ø)
Sources/FoundationHTTP/Web3WebSocketProvider.swift 81.46% <85.22%> (+2.15%) :arrow_up:
Sources/Core/Providers/Web3Provider.swift 67.10% <88.88%> (+14.86%) :arrow_up:
Sources/Core/Web3/Web3.swift 76.68% <100.00%> (+6.75%) :arrow_up:
Sources/Core/Toolbox/SynchronizedDictionary.swift 44.70% <0.00%> (+10.58%) :arrow_up:

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