Snarling
19e8946d9a
fix Stock Initializer ( #137 )
...
* stock symbols initializer is called by stockmarket initializer
* remove redundant second initStockMarketFn function
2022-10-20 00:38:19 -04:00
omuretsu
7a384d53f4
typefix netscriptFunctions (see desc)
...
* Types for InternalFunction and ExternalFunction have been modified to actually typecheck ns functions against docs.
* Internal functions are required to use unknown for any params on the inner function.
* Return types for internal function inner-function must match the respective external function.
* Added new typecheck assertion function for asserting dynamic object types, to allow unknownifying params that were previously hardcoded objec structures.
* Because type assertion for parameter types and return types is enforced by InternalAPI, removed all duplicate type declarations on NetscriptFunction params and returns.
2022-10-12 08:49:27 -04:00
Snarling
aa80cf6451
See description
...
Reverted ToastVariant back to an enum internally. Still exposed to player as just possible strings.
Changed all 1-line documentation comments to actually be 1-line. Moved some because they were not providing documentation for the thing they were trying to.
2022-10-04 06:40:10 -04:00
Snarling
4001b4cbb0
refactor stock for ctx instead of workerScript
2022-08-19 19:32:30 -04:00
Snarling
931ea730a5
Move entire ns object to top-level
2022-08-09 18:09:26 -04:00
Snarling
01e63b10a1
move ctx.log to NetscriptHelpers
2022-08-09 18:09:26 -04:00
Snarling
208495e269
Initial commit
2022-08-09 18:09:24 -04:00
Olivier Gagnon
07c7f0641a
allbuild commit c8440ef2
2022-07-28 14:35:55 -04:00
Olivier Gagnon
4549b0d467
finish sleeve rework
2022-07-28 02:46:34 -04:00
Olivier Gagnon
ef42ee7232
few more api break
2022-07-20 17:03:08 -04:00
Olivier Gagnon
0848d2fdaa
fix 2 any
2022-07-19 19:08:22 -04:00
Olivier Gagnon
c6806caca2
Wrap most of the API
2022-05-07 19:08:07 -04:00
David Grinberg
d934bb88ad
Disable checkTixApiAccess for purchase4SMarketData
...
This restriction doesn't apply on UI. It doesn't make sense to apply it to singularity api
2022-04-17 22:35:31 -04:00
phyzical
909e5e964f
add call to missing stock market init when using the api
2022-04-10 18:19:45 +08:00
phyzical
18af3f8413
moved updateRam to first call to avoid lack of mocks for tests
...
* added wrapper funcs to simplify updateRam
* added static parser tests and skiped what isnt worker still for next person to try and fix
2022-03-31 21:41:19 +08:00
Olivier Gagnon
f801dc6d8a
allbuild commit /usr/bin/git
2022-03-19 12:58:18 -04:00
parax
458f02051f
Added functions to RamCostGenerator.ts
2022-03-18 23:52:13 -06:00
parax
ac38e715aa
Fixed Lint Errors
2022-03-18 22:52:09 -06:00
parax
daadecb4e6
Removed requirement to already have WSE access
2022-03-18 22:33:22 -06:00
parax
e46c67a78a
Added NS functions to buy WSE and TIX
2022-03-18 21:58:18 -06:00
Olivier Gagnon
8c9603d903
more unknown
2022-03-17 14:00:22 -04:00
nickofolas
ab841f7530
Refactor for ... in
loops
2022-01-15 18:45:03 -06:00
Olivier Gagnon
c59a267437
change sf4
2022-01-04 19:09:34 -05:00
Olivier Gagnon
6e71258a53
fix disable log for tix api
2021-11-26 18:43:50 -05:00
Olivier Gagnon
c05518e162
workerscript log takes a function now, hopefully this will increase performance.
2021-11-26 18:30:58 -05:00
Alain Bryden
6b8a91a23b
Return the price paid/recieved on short/sellShort
2021-11-22 11:19:23 -04:00
Olivier Gagnon
a4a931dad7
v1.0.2 part 1
2021-11-19 14:39:38 -05:00
Olivier Gagnon
0114c92829
fix decimal
2021-11-11 21:35:26 -05:00
hydroflame
70ffe25bb4
Revert "bunch of bugfixes"
2021-11-11 20:06:05 -05:00
Olivier Gagnon
d91d7c564e
bunch of bugfixes
2021-11-11 19:56:09 -05:00
Olivier Gagnon
9b0726ca9a
documentation
2021-10-30 16:03:34 -04:00
Olivier Gagnon
8f097ebb32
v0.58.0
2021-10-27 15:16:16 -04:00
Olivier Gagnon
48988e228e
track money more precisely.
2021-10-27 14:18:33 -04:00
Olivier Gagnon
d3fc6a9d48
split NetscriptFunctions
2021-10-14 03:22:02 -04:00