desmos-labs / mooncake

The first decentralized social app based on Desmos
MIT License
46 stars 14 forks source link

Automatic funding fix #85

Closed RiccardoM closed 4 years ago

RiccardoM commented 4 years ago

Description

This PR moves the check and request for funding from the sync use case to the remote chain source. In this way, each transaction will trigger the faucet to send the user more funds if needed (fixes #84).

Checklist

codecov[bot] commented 4 years ago

Codecov Report

Merging #85 into master will increase coverage by 0.24%. The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
+ Coverage   17.54%   17.78%   +0.24%     
==========================================
  Files         258      258              
  Lines        6252     6268      +16     
==========================================
+ Hits         1097     1115      +18     
+ Misses       5155     5153       -2     
Impacted Files Coverage Δ
lib/usecases/posts/usecase_sync.dart 0.00% <0.00%> (ø)
lib/sources/chain/chain_source_impl.dart 83.60% <88.46%> (+2.52%) :arrow_up:
...b/sources/user/remote/remote_user_source_impl.dart 29.03% <100.00%> (-5.26%) :arrow_down:

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 21051e6...a4e59b0. Read the comment docs.