Commit Graph

57 Commits

Author SHA1 Message Date
Kirill Litvinov
ed9fe7651e remove exactReceive 2024-05-13 15:19:31 +03:00
Alex Kraiz
c42e660867 fix: swapMarket and swapLimit 2024-01-04 17:47:53 +04:00
Steam Deck User
b38f0ba424 convert addresslike to string 2023-12-18 11:56:27 +04:00
Steam Deck User
bbf7f664c7 add useExchageBalance function, add balance and allowance validation 2023-12-08 15:08:56 +04:00
lomonoshka
e0acb78d4f swaps nativeToken => anyToken use exchangeBalance as a priority; generateSwapCalldata now also returns eth value for transaction 2023-11-30 14:15:49 +04:00
Dmitry
d38d8bd715 OP-4758: fix generateSwapCallData (#214) 2023-11-27 15:56:34 +03:00
lomonoshka
47e68cc7fa fix denormolized wallet balance error 2023-11-03 13:16:16 +04:00
lomonoshka
92d7e2028e export generateCalldata function without unit param 2023-10-27 15:41:22 +04:00
Alex Kraiz
902b5f3994 consistent imports 2023-10-03 16:54:40 +04:00
Oleg Nechiporenko
c2a4084158 feat: update ethers@6
fix: bigint errors

fix: TS errors

fix: gasLimit fetch

fix: review comments

fix: contracts errors

chore: bump rc version

fix: revert wrong fix

fix: ts config

fix: ts config

fix: ts config

feat: update signer
2023-09-28 11:43:27 +02:00
lomonoshka
0a47464132 merged with main 2023-08-24 10:33:05 +03:00
Aleksandr Kraiz
35713407a7 Added combineLocalAndExternalData to bridge 2023-08-23 17:46:43 +04:00
lomonoshka
ef18eb5b3b merged with develop 2023-08-10 15:18:55 +03:00
lomonoshka
f64738ec6a Removed conditional params, added exchange->factory record 2023-08-09 13:19:05 +03:00
Aleksandr Kraiz
cd0a0128d8 Price conversion iprovements 2023-08-08 10:21:54 +04:00
lomonoshka
994d766391 Add conditional paremeters 2023-08-07 12:10:55 +03:00
lomonoshka
8bac672bfd SafeArray from Arraylike 2023-08-06 13:18:14 +03:00
lomonoshka
d9ca7cba1a moved generateSwapCalldata to Exchange unit 2023-08-05 16:43:58 +03:00
lomonoshka
98bac7f86d Created array subclass with safeGetter 2023-08-05 16:42:51 +03:00
Aleksandr Kraiz
b6cb9ae1a1 Fix price conversion 2023-08-05 01:10:20 +04:00
lomonoshka
7ae44c930c Added support for single factory swaps in utils 2023-08-04 13:21:54 +03:00
Aleksandr Kraiz
230c399bdc Fix: convertPrice 2023-08-03 17:08:55 +04:00
Aleksandr Kraiz
f9605e3d1a Calculate fee 2023-08-01 21:27:17 +04:00
Kirill Litvinov
7eebb2bb9e fee calculation 2023-08-01 16:19:52 +03:00
Aleksandr Kraiz
45dcec651c Fix deps 2023-05-25 09:39:45 +04:00
Aleksandr Kraiz
6c928690b9 agg ws improvements 2023-05-25 00:15:05 +04:00
Aleksandr Kraiz
bd16030b80 laconic parse 2023-05-24 12:38:13 +04:00
Aleksandr Kraiz
ab36c0b26b Semantics improvements 2023-05-18 22:33:20 +04:00
Aleksandr Kraiz
1382243a01 fix: semantics 2023-05-16 23:54:33 +04:00
Aleksandr Kraiz
cd4eff76d3 Semantics improvements 2023-05-16 23:21:45 +04:00
Aleksandr Kraiz
e05dfe6695 fix 2023-05-09 22:48:28 +04:00
Aleksandr Kraiz
733d39804e bump: contracts 2023-05-09 14:33:08 +04:00
Aleksandr Kraiz
23234ae26e TSUP configs 2023-04-12 20:38:58 +04:00
Aleksandr Kraiz
438de9dba6 Minor fixes 2023-04-12 15:26:37 +04:00
Aleksandr Kraiz
8588b55725 ESM 2023-03-31 17:47:56 +04:00
Aleksandr Kraiz
56cd1356f0 Added array schema failover / PF onOpen / bridge test / deps bump 2023-03-06 20:47:34 +04:00
Aleksandr Kraiz
e8934b1698 Added isKnownEnv 2023-02-20 15:01:47 +04:00
Aleksandr Kraiz
2c24f71453 Strictest / tests / minor improvements 2023-02-17 17:31:35 +04:00
Aleksandr Kraiz
c12a4e8e7a Linter standard (#49)
* Impl

* Fix

* Fix

* Bump

* Bump

* Fix

* Bump
2023-02-14 00:34:37 +04:00
Aleksandr Kraiz
b2f3cdf5fb Orion, Orion Unit, Configuration (#40)
* Refactoring

* Better docs

* Bump

* ESLint standard

* Fix

* Bumo

* VerboseOrionUnitConfig to types

* Docs improvements

* Docs improvements. Orion default env
2023-02-08 14:51:58 +04:00
Aleksandr Kraiz
1e3cf57c87 CFD (#28)
* Added new pairs type: futures

* Added new pairs type: futures

* added market param to pairsConfig request

* OP-3268 [CFD] Deposit amount

Added CFDContracts endpoint
package.json version update

* OP-3268 [CFD] Deposit amount

CFDContractsSchema export

* OP-3268 [CFD] Deposit amount

CFDContractsSchema export
package.json update

* cfdContractsSchema rename
Add getCFDHistory method
package.json update

* Parameter of getCFDHistory method was updated

* cfdHistorySchema was updated

* WS subscribtion for CFD balances, CFD Order signing functionality

* cfdHistorySchema was updated
package.json version 0.16.0-rc.6 was updated

* package.json version 0.16.0-rc.7 was updated

* Exchange and CFD history schemas was transformed
package.json version 0.16.0-rc.8 was updated

* Added HistoryTransactionStatus
package.json version 0.16.0-rc.8 was updated

* cfdContractsSchema was updated
package.json version 0.16.0-rc.10 was updated

* Merge conflicts fix
package.json version was updated to 0.16.0-rc.12

* updated schemas, updated version

* Updated CFD balance schema, updated unsubscribe with passing extra details

* CFD balances schema update

* Added CFD prices request

* typing small fix

* fixed transformation of CFD init / update responses

* temporary added debug

* temporary added debug. changed ver

* debug, ver up

* Add currentPrice to cfdBalanceSchema

* Added maxAvailableLong maxAvailableShort to balances

* added leverage and position status

* Update isWithCode - allow string code

* version up

Co-authored-by: Mikhail Gladchenko <m@gladchenko.pw>
Co-authored-by: Demid <demidn@gmail.com>
Co-authored-by: Dmitry Leleko <lelekodmitry@gmail.com>
2023-01-27 15:45:10 +04:00
Aleksandr Kraiz
363dafc45c Added exchanges map 2022-12-14 18:37:50 +04:00
Aleksandr Kraiz
f6623f9bec isKeyOfObject fix 2022-11-28 18:26:34 +04:00
Aleksandr Kraiz
1a33c41993 New utils 2022-11-28 17:50:20 +04:00
Aleksandr Kraiz
1913a84f1e Types improvements 2022-11-28 13:43:55 +04:00
Aleksandr Kraiz
832dfcb731 Removed getSwapPair and getSwapSide 2022-09-05 13:29:13 +04:00
Aleksandr Kraiz
2cc19a33f3 Added parseExchangeTradeTransaction 2022-08-31 16:14:46 +04:00
Aleksandr Kraiz
48ae67c1a8 Exchanges / more error messages 2022-07-04 19:07:32 +04:00
Aleksandr Kraiz
da67332e5f Bump contracts 2022-05-29 19:17:56 +04:00
Aleksandr Kraiz
9e8b90e477 Webpack / contracts 2022-05-29 18:33:23 +04:00