Skip to content

Releases: everx-labs/ever-sdk-js

Version: 1.11.0

15 Mar 04:52
@d3p d3p
4a13bbe
Compare
Choose a tag to compare

[1.11.0] – 2021-03-05

New

  • utils.calc_storage_fee function to calculate account storage fee over a some time period.
  • Debot Module:
    • Added unstable functions to Sdk interface: getAccountsDataByHash

Version: 1.10.2

11 Mar 06:58
@d3p d3p
c00b42e
Compare
Choose a tag to compare

[1.10.2] – 2021-03-11

Fixed

  • index.d.ts files in lib- packages are refined to be more typed.
  • export of the account.ts added to core/index.

Version: 1.10.1

10 Mar 20:43
@d3p d3p
35af51f
Compare
Choose a tag to compare

[1.10.1] – 2021-03-10

New

  • New high-level wrapper Account.ts that simplifies work with accounts:

    Account class is introduced that supports these high-level methods:

    • (static) giver - allows to specify a giver to be used in all deploy operations
    • deploy - deploys a contract
    • run - executes a contract on-chain
    • runLocal - executes a contract off-chain (on client side, contract state does not change) (execution is syncronized with the previously called deploy or run so that it is performed on the updated account state)
    • getAddress - returns account address
    • getAccount- returns all the data about the account in json format
    • boc - returns the account boc.

    GiverContract object is introduced that is ititialized with TON OS SE Giver address and keys.

Version: 1.10.0

06 Mar 15:36
@d3p d3p
d020990
Compare
Choose a tag to compare

[1.10.0] – 2021-03-04

New

  • Add optional field src_address to ParamsOfEncodeInternalMessage.
  • Field abi in ParamsOfEncodeInternalMessage is optional and can be None if call_set and deploy_set are None.
  • boc.encode_boc function provides ability to build and serialize any custom tree of cells.
    Application can use several base Builder serialization primitives like integers, bitstrings
    and nested cells.
  • boc.get_blockchain_config function can extract blockchain configuration from key block and also
    from zerostate.
  • tvm module functions download current blockchain configuration if net is initialized with
    DApp Server endpoints. Otherwise default configuration is used.
  • Debot Module:
    • Support for debot invoking in Debot Engine. send browser callback is used not only for interface calls but to invoke debots.
    • start and fetch functions returns debot ABI.
    • Added new built-in interface Hex which implements hexadecimal encoding and decoding.
    • Added unstable functions to Sdk interface: naclBox, naclBoxOpen, naclKeypairFromSecret, getAccountCodeHash.

Changed

  • Both call_set and deploy_set in ParamsOfEncodeInternalMessage can be omitted. In this case encode_internal_message generates internal message with empty body.
  • Debot Module:
    • send function accepts one argument - serialized internal message as string encoded into base64.

Documentation

Fixed

Version: 1.9.0

26 Feb 05:34
@d3p d3p
Compare
Choose a tag to compare

1.9.0 Feb 19, 2021

New

  • tuple_list_as_array parameter in tvm.run_get function which controls lists representation.
    Default is stack-like based on nested tuples. If set to true then returned lists are encoded as plain arrays. Use this option if you receive this error on Web: "Runtime error. Unreachable code should not be executed..."
    This reduces stack size requirements for long lists.
  • function_name field of CallSet structure can be the name or id (as string in hex starting with 0x) of the called function.
  • Fields config_servers, query_url, account_address, gas_used added into specific errors' ClientError.data object.

Fixed

  • Binaries download links are now under https protocol
  • If you receive this error on Web: "Runtime error. Unreachable code should not be executed..." in run_get, use the new parameter tuple_list_as_array = true. See the documentation. This may happen, for example, when elector contract contains too many participants

Version: 1.8.0

12 Feb 22:15
@d3p d3p
a61ce98
Compare
Choose a tag to compare

1.8.0 Feb 11, 2021

New

  • Debot Module:
    • Added new built-in interface Msg which allows to send external message to blockchain and sign it with supplied keypair.

Fixed

  • crypto.hdkey_public_from_xprv used compressed 33-byte form instead of normal 32-byte.

Version: 1.7.0

09 Feb 19:20
@d3p d3p
6b8415c
Compare
Choose a tag to compare

1.7.0 Feb 9, 2021

New

  • BOC cache management functions were introduced:
    • boc.cache_set,
    • boc.cache_get
    • boc.cache_unpin
  • Now functions that take boc as a parameter can also take a reference to boc cash instead so that it deсreases the number of boc serialization
    and deserializations which drastically improves performance of run_tvm and run_executor expecially in case of numerous calls on the same data.
  • boc_cache parameter in tvm.run_tvm and tvm.run_executor functions to save resulting messages and account BOCs into cache.
  • return_updated_account flag parameter introduced in tvm.run_tvm and tvm.run_executor functions to return updated account state. Important: by default this flag is false and account data is not returned.
  • abi.encode_internal_message function to encode an internal ABI-compatible message.
  • Debot Module:
    • Support for get-methods and external calls in debots.
      Debots can send external inbound messages to destination contracts (signed - for external calls and unsigned - for get-methods) using native language syntax without actions.
    • Built-in debot interfaces (interfaces implemented by DEngine).
      Added two built-in interfaces: base64 and Sdk.
    • Added DebotInterfaceExecutor to automatically route messages to destination interfaces.
    • Debot's fetch function is optional now. New debots can implement only start function.

Version: 1.6.3

05 Feb 09:21
@d3p d3p
d41b5c0
Compare
Choose a tag to compare

1.6.3 Feb 4, 2021

Fixed

  • Expired message wasn't retried if local execution succeeded.

Version 1.6.1

01 Feb 20:30
@d3p d3p
6f99fd5
Compare
Choose a tag to compare

Version: 1.6.0

01 Feb 19:24
@d3p d3p
4f14485
Compare
Choose a tag to compare

1.6.0 Jan 29, 2021

New

  • nacl_sign_detached_verify function to verify detached signature.
  • aggregate_collection function as a wrapper for GraphQL aggregation queries.
  • batch_query function performs multiple queries per single fetch.
  • Active endpoint invalidation in case of network error occuring.
  • network.network_retries_count config parameter is deprecated. network.max_reconnect_timeout is introduced that allows to specify maximum network resolving timeout. Default value is 2 mins.
  • initial_pubkey field in DeploySet to specify public key instead of one from TVC file or provided by signer.
  • Support for debot interfaces:
    • send Browser Callback to send messages with interface calls to Browser.
    • new variant ParamsOfAppDebotBrowser::Send.
    • send API function to send messages from Browser to Debot.
    • run_output.rs - internal structure RunOutput to filter messages generated by debot to 4 categories: interface calls, external calls, get-method calls and invoke calls.

Fixed

  • Device time synchronization is checked only in send_message. Data querying does not require proper time now