Commit Graph

1302 Commits

Author SHA1 Message Date
Derrick Hammer 7c6fec61b6
fix: remove tpl extension 2024-03-15 07:03:35 -04:00
Derrick Hammer fae98f3d52
refactor: fix gob paths and template prefix/suffixes 2024-03-15 07:01:22 -04:00
Derrick Hammer e11340ad2b
refactor: ensure we set a cookie, auth header and json response in both login and otp validate 2024-03-14 12:54:41 -04:00
Derrick Hammer e380dacced
fix: loop needs to start at 1 so it's not outside the history range, else it tries to always create a date on boot 2024-03-14 07:40:12 -04:00
Derrick Hammer 37708c91f2
fix: don't compute by usd the contract price 2024-03-14 07:20:11 -04:00
Derrick Hammer 7d87ed6ad7
refactor: switch to using newRat 2024-03-14 07:19:14 -04:00
Derrick Hammer 19afa09c4d
refactor: split computeByRate to newRat 2024-03-14 07:17:58 -04:00
Derrick Hammer cc63ff2c6e
dep: update libs5 2024-03-14 06:54:54 -04:00
Derrick Hammer 358d5fdf60
feat: add account info endpoint 2024-03-14 06:42:38 -04:00
Derrick Hammer d946e969bc
fix: update to check for ErrDuplicatedKey and return a more specific but generic error if so 2024-03-13 18:53:45 -04:00
Derrick Hammer 6ff84bbc1a
refactor: use dedicated auth mw for ping 2024-03-13 18:45:14 -04:00
Derrick Hammer d5118beb58
refactor: allow purpose to be none 2024-03-13 18:44:09 -04:00
Derrick Hammer 749a932663
fix: give login a dedicated authMiddleware instance 2024-03-13 17:35:26 -04:00
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