Skip to content

Releases: everx-labs/flex-sdk-js

Version: 0.11.0

02 Nov 21:36
@d3p d3p
981b7c8
Compare
Choose a tag to compare

New

  • all functions with the userId/traderId as an input now accepts:

    1. hex string with 0x prefix;
    2. hex string of 64 char length without 0x prefix;
    3. decimal string.
  • Trader.deployEverWallet accepts token parameters as TokenValue instead of number's.

  • Changed contract errors: " failed with exit code . .".

  • Replaced number with string and TokenValue in SDK parameters and results.

Version 0.10.1

14 Dec 08:44
a179d12
Compare
Choose a tag to compare

[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

05 Dec 12:01
3a556b7
Compare
Choose a tag to compare

[0.10.0] – 2022-12-05

New

  • Integration tests.
  • Trader.cancelAllOrders - cancels all orders for the specified trader.

Version 0.9.0

23 Nov 17:41
7dcb8f8
Compare
Choose a tag to compare

[0.9.0] – 2022-11-23

New

  • Client.getClientInfo - shows Flex Client contract's balance.
  • Trader.getIndexInfo - shows User Index contract's address and balance
  • Trader.topUp, Trader.getTopUpInfo - tops up and calculates the topup value for Trader's wallets and UserIndex contract

Version 0.8.0

18 Nov 15:11
5684873
Compare
Choose a tag to compare
Merge pull request #30 from tonlabs/0.8.0-rc

0.8.0 rc

Version 0.7.1

09 Nov 13:30
4765308
Compare
Choose a tag to compare

[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

08 Nov 21:03
d43fe8a
Compare
Choose a tag to compare

[0.7.0] – 2022-11-08

New

  • ABI 2.3 Flex Contracts version was supported.

  • makeOrder and cancelOrder now returns additional status field of type enum 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 and waitForCancelOrder functions. Just pass the result of makeOrder/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 in try 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

07 Oct 09:02
10444f0
Compare
Choose a tag to compare

[0.6.0] – 2022-10-07

New

  • Trader.cancelOrder and Trader.makeOrder now work in 2 modes, defined by waitForOrderbookUpdate flag. If false, the functions return only 1st transaction that initiated the operation. If true - return also the second transaction that actually processed the operation, after which the orderbook is updated.

Version 0.5.0

22 Sep 08:32
5a56f63
Compare
Choose a tag to compare

[0.5.0] – 2022-09-22

New

  • Trader.cancelOrder and Trader.makeOrder now accept price and amount also in units. See the documentation and tests for more info.

Version 0.4.0

21 Sep 13:46
dc8a4e5
Compare
Choose a tag to compare

[0.4.0] – 2022-09-21

New

  • Trader.cancelOrder now returnes transactionID