web3-proxy/scripts/manual-tests
David 63499c1564
David/66 downgrade balance logic (#89)
* tried to make the balance_entry atomic, asking for feedback

* added locked select everywhere and inside the txn, it should be atomic now

* forgot about overwrite (referee vs sender entities were the same, overwriting each other), fixed it

* will now trigger refreshing cache when balance thresholds are met

* will also invalidate cache if balance gets too low (to out of funds)

* added separate balance cache with shorter TTL. need to know if i should modify it (rn its not atomic), or if low TTL is good enough, and we just fetch the value every now and then from the Database

* removed UserTier struct bcs duplicate with database

* removed subuser premium requirement (which would have lead to a merge conflict later on)

* removed user_tier artefact

* replaced cache to use AtomicF64

* a bunch of small changes

* some changes

* will merge with devel

* changed AtomicF64 to RwLock<Decimal>

* changed AtomicF64 to RwLock<Decimal>

* downgrading user when at 0.1$ or if sum_credits_used is very low

* changed caches to be more aggressive in being non-empty

* replaced Arc::clone() by reference
2023-06-07 09:39:30 -07:00
..
12-subusers-premium-account.sh User Balance + Referral Logic (#44) 2023-05-12 09:45:15 -07:00
16-change-user-tier.sh User Balance + Referral Logic (#44) 2023-05-12 09:45:15 -07:00
19-admin-imitate-user.sh currently also have to specify the admin user calling the request. also added a tiny manual test to imitate user. will add trails next 2023-02-19 21:34:42 +01:00
21-sql-migration-make-backup.sh migration seems to work for the most part 2023-03-30 12:54:01 +01:00
21-sql-migration-verify-test-queries.sql migration seems to work for the most part 2023-03-30 12:54:01 +01:00
24-simple-referral-program.sh User Balance + Referral Logic (#44) 2023-05-12 09:45:15 -07:00
42-simple-balance.sh David/devel/debug graph (#82) 2023-05-22 17:08:35 -07:00
45-admin-add-balance.sh Added admin balance increase, and also test (#72) 2023-05-22 17:07:17 -07:00
48-balance-downgrade.sh David/66 downgrade balance logic (#89) 2023-06-07 09:39:30 -07:00
52-simple-get-deposits.sh User Balance + Referral Logic (#44) 2023-05-12 09:45:15 -07:00