Râu Cao
92056517a6
Cache contribution vetos
...
Fixes potentially not marking contributions as vetoed if there's no
incoming event after loading the app. Also improves performance either
way.
2022-11-11 21:11:17 +01:00
Râu Cao
11f19c8344
Refactor adding new contributions from events
...
Fixes contributions not being added when not already in memory (from
creation). Simplifies the entire function.
2022-11-11 21:11:13 +01:00
Râu Cao
e4814923f9
Update contracts module branch
2022-10-31 12:48:49 +01:00
Râu Cao
ad015f1cee
Use required chain ID and network name
...
Use the chain ID when loading the web3 wallet/provider, and use the
network name for the localstorage namespace.
2022-10-24 16:45:02 +02:00
Râu Cao
0c5aebf7b4
WIP Migrate to RSK testnet
2022-10-24 16:30:38 +02:00
bumi
0732911e13
Cleanup
2022-10-06 11:03:50 +02:00
bumi
57934ae7a3
Fix for new Contribution#totalKreditsEarned type
...
totalKreditsEarned is no longer a Big number but now already a number.
I think this is due to the change of the denomination.
2022-10-06 10:52:22 +02:00
basti
e05449a7ff
Show wallet balance for BTC instead of Gnosis Safe
2022-05-24 16:19:26 +02:00
basti
44b631c688
Switch from ETH/WBTC to RBTC/BTC
2022-05-22 17:04:28 +02:00
basti
4c749bca35
Use integer for contributor ID everywhere
...
closes #145
2022-05-21 18:16:26 +02:00
basti
721c330f3c
WIP Rename contributorId to recipientId
2022-04-27 18:17:33 +02:00
basti
eef9fa1aba
Refactor kredits setup code a bit
2022-04-27 18:15:12 +02:00
basti
f3f158ff26
Update app/services/kredits.js
...
Co-authored-by: Garret Alfert <alfert@wevelop.de >
2020-11-17 13:38:47 +01:00
basti
7b1c3c813c
Finish reimbursement loading and sync
2020-10-30 15:26:32 +01:00
basti
93e2a23ac7
WIP reimbursement sync
2020-10-09 15:40:46 +02:00
basti
a41d1b1dbd
Handle incoming and vetoed reimbursements
2020-10-09 15:09:35 +02:00
basti
c0ccf83061
Don't allow form submission unless connected and core
2020-10-09 14:41:10 +02:00
basti
4ab5c3c372
Listen to tx status of submitted reimbursements
2020-10-09 14:29:53 +02:00
basti
5d4fb1c423
Fix reimbursement handling after creation
2020-10-01 17:23:22 +02:00
basti
2bf590886c
Fix newly created contributions not showing
...
It's trying to use a non-existing block number to calculate
confirmedAtBlock, which then fails the filter to be shown.
2020-10-01 12:50:18 +02:00
basti
c7b6f9e3e7
Submit reimbursements
2020-10-01 12:48:01 +02:00
basti
25b2a8b0e5
Create exchange rate service , use CORS proxy for requests
2020-09-30 15:03:55 +02:00
basti
e86541574d
Format and round the USD value of balances
2020-08-13 16:30:39 +02:00
basti
5f90bc23bc
Dynamically load all balances from Safe
2020-08-13 16:13:50 +02:00
basti
dec71c6f4f
Load community funds balances from mainnet Gnosis Safe
2020-08-13 00:27:40 +02:00
basti
f63d14d7b4
Move sorted contributors to kredits service
2020-08-12 22:51:52 +02:00
basti
95743330e4
WIP Generic data handling and caching
...
Add basic support for reimbursements via new, generic data handling
functions.
2020-06-27 16:35:45 +02:00
basti
4a9dd5ff09
Re-organize functions of kredits service
2020-06-27 14:01:05 +02:00
basti
c64a503546
Remove unused async from function
...
Throws a linter warning, now that it's not an RSVP promise anymore.
2020-05-31 12:46:51 +02:00
basti
302c3315a3
Update debug logs while fetching past contributions
2020-05-29 22:28:42 +02:00
basti
bac4c1c425
Load all past contributions once everything else is loaded
2020-05-29 22:04:03 +02:00
basti
c54d754c89
Only sync contributions if loaded from cache
2020-05-29 20:55:19 +02:00
basti
63dd5430bc
WIP Sync contributions
2020-05-29 18:56:05 +02:00
basti
eb2c613ac9
Extract data loading from fetch methods
2020-05-29 13:12:39 +02:00
basti
bf6d9dbc31
Remove RSVP from kredits service
...
Just native Promise will do.
2020-05-29 13:11:36 +02:00
basti
d4b546bfcd
Load contributions from cache if present
...
And then fetch more from network. Also, only load 30 from network before
first render (with nothing cached), then load more after the page has
rendered.
2020-05-28 13:59:10 +02:00
basti
69141a31c4
Process contribution data before loading models
2020-05-28 13:44:32 +02:00
basti
e7c9620bbe
Add network namespace for browser cache
...
We want to be able to cache data from multiple networks side-by-side,
without them interfering with each other.
2020-05-28 11:53:19 +02:00
basti
832de3c06f
Load contributors from cache if present
...
And then update from network later
2020-05-28 11:33:47 +02:00
basti
50e1fc728c
Cache contributors in IndexedDB
2020-05-27 17:33:36 +02:00
basti
871731110b
Process contributor data
...
Add util function for processing contributor data, and remove bignums,
etc.
2020-05-27 16:27:08 +02:00
basti
f996c89dfe
Add localforage, basic cache service
2020-05-27 12:59:37 +02:00
basti
12df28f7fd
Fix ESLint errors
2020-05-11 10:21:22 +02:00
basti
4946b3311d
Remove all proposal-related code
...
We're not using proposals at the moment, so it's just in the way.
2020-05-10 10:25:06 +02:00
basti
a7dd058d21
Remove obsolete parens
2019-10-18 09:52:38 +02:00
basti
1deecafee7
Handle pending changes for contributions
...
This adds the pending tx data to pending contributions (after adding or
vetoing, until the tx is mined). It also disables the veto button while
pending.
2019-09-20 15:43:34 +02:00
basti
8be18fc27c
Merge pull request #155 from 67P/feature/resubmit_vetoed_contribution
...
Re-submit vetoed contributions
2019-09-10 16:53:36 +02:00
basti
89391c1543
Update details of pending contribution when mined
...
Fetches complete details of new contributions and replaces any potential
pending, incomplete objects in the collection.
2019-09-10 15:21:50 +02:00
basti
05e3118a0c
Re-submit vetoed contributions
2019-09-10 11:47:07 +02:00
basti
5a5051bac6
Check required network before using user provider
...
closes #82
2019-09-04 18:51:49 +02:00