Commit Graph

1239 Commits

Author SHA1 Message Date
Derrick Hammer 4f891e067c
refactor: rename pong to ping 2024-03-13 17:34:10 -04:00
Derrick Hammer 2e3ec1408e
refactor: add PingResponse and link to /api/auth/ping 2024-03-13 17:26:25 -04:00
Derrick Hammer 2f0a538033
fix: return user 2024-03-13 14:09:17 -04:00
Derrick Hammer 0efcd35d65
refactor: add EmptyAllowed to authMw2fa 2024-03-13 14:01:08 -04:00
Derrick Hammer bf8d909a3c
refactor: add option to allow jwt to be bypassed if there is no token 2024-03-13 14:00:19 -04:00
Derrick Hammer ca12b99438
fix: first/last name are snake case 2024-03-13 13:54:30 -04:00
Derrick Hammer 36c614c483
fix: correct swagger for ping 2024-03-13 12:30:31 -04:00
Derrick Hammer c416b40d00
feat: add ping endpoint to check auth status 2024-03-13 12:26:38 -04:00
Derrick Hammer 06f37bf3d8
refactor: add 415 response to /s5/metadata 2024-03-12 11:23:15 -04:00
Derrick Hammer a1014acf15
refactor: use StatusUnsupportedMediaType 2024-03-12 11:21:25 -04:00
Derrick Hammer d5782c7e86
fix: bad error message 2024-03-12 07:00:57 -04:00
Derrick Hammer 296f7b611e
dep: update libs5 2024-03-11 17:51:42 -04:00
Derrick Hammer 9529c71b3c
dep: update libs5 2024-03-11 17:49:54 -04:00
Derrick Hammer d5bed19c5d
dep: update libs5 2024-03-11 17:46:28 -04:00
Derrick Hammer f33b73b533
dep: update libs5 2024-03-11 17:40:58 -04:00
Derrick Hammer edfce8b181
dep: update libs5 2024-03-11 17:25:02 -04:00
Derrick Hammer 87fa117df3
dep: update libs5 2024-03-11 16:41:11 -04:00
Derrick Hammer d99b994175
dep: update libs5 2024-03-11 11:51:20 -04:00
Derrick Hammer 4941949f22
refactor: rewrite importPrices to track and import the last x days 2024-03-11 11:12:48 -04:00
Derrick Hammer c63f7ef50b
fix: use DailyJob 2024-03-11 11:00:34 -04:00
Derrick Hammer 96ec3b8501
fix: dont compute by rate the max rpc price 2024-03-11 08:01:56 -04:00
Derrick Hammer 944cb868b5
refactor: increase decimal to 30,20 2024-03-11 07:57:09 -04:00
Derrick Hammer 0d9d7d4d98
refactor: store to 20 decimal places 2024-03-11 07:54:52 -04:00
Derrick Hammer 973c40afb4
refactor: switch to using decimals in db, a fork of the siacentral api to return decimals, strings for currency settings, and rats to do big number math safety 2024-03-11 07:51:48 -04:00
Derrick Hammer a4bb3eadaa
fix: wrong debug output 2024-03-11 06:49:10 -04:00
Derrick Hammer e7caa50932
fix: don't store MaxRPCSCPrice as a float, and use big.Rat to compute it 2024-03-11 06:42:51 -04:00
Derrick Hammer 7f9887bdcc
fix: don't divide maxDownloadPrice by redundancy 2024-03-10 17:32:37 -04:00
Derrick Hammer 6edf872664
fix: need to divide by block time (blocks in a month) 2024-03-10 17:01:55 -04:00
Derrick Hammer 20a273a0dd
refactor: change maxStoragePrice math for readability 2024-03-10 14:50:25 -04:00
Derrick Hammer d628ede1ee
fix: use maxStoragePrice 2024-03-10 14:48:09 -04:00
Derrick Hammer 9d17ae1065
fix: don't compute maxRPCPrice based on usd rate 2024-03-10 14:42:00 -04:00
Derrick Hammer 01cd30b6f8
fix: divide maxRPCPrice by 1 million 2024-03-10 14:38:59 -04:00
Derrick Hammer 22a5c661bc
refactor: update max_rpc_sc_price default to 0.1 2024-03-10 14:36:45 -04:00
Derrick Hammer 51d74b6483
refactor: add max_contract_sc_price to defaults 2024-03-10 14:35:37 -04:00
Derrick Hammer 57c5088a1f
fix: max_rpc_price needs to be max_rpc_sc_price 2024-03-10 14:35:05 -04:00
Derrick Hammer 6eeed24707
fix: need to divide maxStoragePrice by a tib unit 2024-03-10 14:33:46 -04:00
Derrick Hammer af29081a3a
refactor: have rpc and contract prices be in SC as they are expected to change very rarely 2024-03-10 14:26:17 -04:00
Derrick Hammer 1568aa9007
fix: redundancy applies to storage not downloads, and add debug logging per rate computed 2024-03-10 14:14:36 -04:00
Derrick Hammer 5687e72a32
refactor: change SCPriceHistory table name 2024-03-10 13:58:45 -04:00
Derrick Hammer e425c038e1
fix: use config PriceHistoryDays 2024-03-10 13:56:41 -04:00
Derrick Hammer effb341418
refactor: don't block price updates, but do fatal on error 2024-03-10 13:52:49 -04:00
Derrick Hammer 8c05180703
refactor: move price tracker init to a lifecycle 2024-03-10 13:29:43 -04:00
Derrick Hammer 21ae6d093d
refactor: fetch redundancy settings and divide on it so price is always the total 2024-03-10 13:25:33 -04:00
Derrick Hammer c9683453c0
feat: add RedundancySettings getter 2024-03-10 13:13:25 -04:00
Derrick Hammer ae178f003f
refactor: put sia config under storage 2024-03-10 13:07:44 -04:00
Derrick Hammer b6683a5744
fix: default to debug if no config is passed, we will then error on config parsing after 2024-03-10 13:02:31 -04:00
Derrick Hammer 39a39b00b7
fix: need prefix on setDefaultsForObject for core to be core 2024-03-10 12:54:15 -04:00
Derrick Hammer dd296bd78a
feat: add initial price tracker 2024-03-10 12:43:18 -04:00
Derrick Hammer 736dc8aa9d
refactor: simplify sia upload to not try to parallel process as it corrupts data. We will come back to this optimization in the future. 2024-03-10 11:54:32 -04:00
Derrick Hammer 6c60dae743
fix: if the render end is 0, ensure the range header is valid syntax and skip it 2024-03-10 11:53:24 -04:00