Releases: everx-labs/flex-sdk-js
Releases · everx-labs/flex-sdk-js
Version: 0.11.0
New
-
all functions with the userId/traderId as an input now accepts:
- hex string with
0x
prefix; - hex string of 64 char length without
0x
prefix; - decimal string.
- hex string with
-
Trader.deployEverWallet
accepts token parameters asTokenValue
instead ofnumber
's. -
Changed contract errors: " failed with exit code . .".
-
Replaced
number
withstring
andTokenValue
in SDK parameters and results.
Version 0.10.1
[0.10.1] – 2022-12-14
Fixed
-
Waiting for derivative transaction was stopped: account **** has inactive state 3." STDERR: "TypeError: Cannot read properties of null (reading 'toString') at errorFromExitCode (node_modules/flex-sdk-js/dist/contracts/errors.js:9:90) at findTransactionError (node_modules/flex-sdk-js/dist/contracts/errors.js:42:19) at resolveDerivativeTransaction (node_modules/flex-sdk-js/dist/flex/trader/processing.js:19:60) at node_modules/flex-sdk-js/dist/flex/trader/cancel-order.js:177:80```
Version 0.10.0
[0.10.0] – 2022-12-05
New
- Integration tests.
Trader.cancelAllOrders
- cancels all orders for the specified trader.
Version 0.9.0
[0.9.0] – 2022-11-23
New
Client.getClientInfo
- shows Flex Client contract's balance.Trader.getIndexInfo
- shows User Index contract's address and balanceTrader.topUp
,Trader.getTopUpInfo
- tops up and calculates the topup value for Trader's wallets and UserIndex contract
Version 0.8.0
Merge pull request #30 from tonlabs/0.8.0-rc 0.8.0 rc
Version 0.7.1
[0.7.1] – 2022-11-09
New
- additional logic to detect errors during making/canceling of orders
Fixed
- optimization for first step of the makeOrder and cancelOrder
Version 0.7.0
[0.7.0] – 2022-11-08
New
-
ABI 2.3 Flex Contracts version was supported.
-
makeOrder
andcancelOrder
now returns additionalstatus
field of typeenum MakeOrderStatus
representing the processing stage of the request.
Can be of [STARTING
,FINALIZING
,SUCCESS
,ERROR
]. -
In case of
FINALIZING
status returned can be proceeded to the final result with
waitForMakeOrder
andwaitForCancelOrder
functions. Just pass the result ofmakeOrder
/cancelOrder
as the input parameter.Attention!!!!
ERROR
status means the error occured in the contract system, which means you SHOULD NOT perform retries until you solve the error reason.- Network errors are not resolved by
makeOrder
/cancelOrder
methods. Wrap your code intry catch
for network errors. In case of network error we suggest you to query trader info from the api to understand your state. See/examples/trader-info.ts
sample
Improved
- Added flex client balance check before trader Index Contract deploy to the
deployTrader
.
Fixed
- If non-existing signer was specified then empty error message was printed.
- make-order did not finish process in case of a full order closure.
Version 0.6.0
[0.6.0] – 2022-10-07
New
Trader.cancelOrder
andTrader.makeOrder
now work in 2 modes, defined bywaitForOrderbookUpdate
flag. Iffalse
, the functions return only 1st transaction that initiated the operation. Iftrue
- return also the second transaction that actually processed the operation, after which the orderbook is updated.
Version 0.5.0
[0.5.0] – 2022-09-22
New
Trader.cancelOrder
andTrader.makeOrder
now accept price and amount also in units. See the documentation and tests for more info.
Version 0.4.0
[0.4.0] – 2022-09-21
New
Trader.cancelOrder
now returnes transactionID