Releases: everx-labs/ever-sdk-js
Releases · everx-labs/ever-sdk-js
Version: 1.11.0
[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
- Added unstable functions to
Version: 1.10.2
[1.10.2] – 2021-03-11
Fixed
index.d.ts
files inlib-
packages are refined to be more typed.- export of the
account.ts
added tocore/index
.
Version: 1.10.1
[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 contractrun
- executes a contract on-chainrunLocal
- executes a contract off-chain (on client side, contract state does not change) (execution is syncronized with the previously calleddeploy
orrun
so that it is performed on the updated account state)getAddress
- returns account addressgetAccount
- returns all the data about the account in json formatboc
- returns the account boc.
GiverContract
object is introduced that is ititialized with TON OS SE Giver address and keys. - (static)
Version: 1.10.0
[1.10.0] – 2021-03-04
New
- Add optional field
src_address
toParamsOfEncodeInternalMessage
. - Field
abi
inParamsOfEncodeInternalMessage
is optional and can beNone
ifcall_set
anddeploy_set
areNone
. 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 ifnet
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
andfetch
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.
- Support for debot invoking in Debot Engine.
Changed
- Both
call_set
anddeploy_set
inParamsOfEncodeInternalMessage
can be omitted. In this caseencode_internal_message
generates internal message with empty body. - Debot Module:
send
function accepts one argument - serialized internal message as string encoded into base64.
Documentation
- Debot browser app object and signing box app object descriptions added
- functions-helpers for enum type variable creation for Signer, Abi, ParamsOfAppDebotBrowser
Fixed
- doc generator: app object interface description, constructor functions-helpers for enum type variable creation, added new line in the end if api.json
- library libsecp256k1 upgraded to fix https://rustsec.org/advisories/RUSTSEC-2019-0027
Version: 1.9.0
1.9.0 Feb 19, 2021
New
tuple_list_as_array
parameter intvm.run_get
function which controls lists representation.
Default is stack-like based on nested tuples. If set totrue
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 ofCallSet
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 parametertuple_list_as_array = true
. See the documentation. This may happen, for example, when elector contract contains too many participants
Version: 1.8.0
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.
- Added new built-in interface
Fixed
crypto.hdkey_public_from_xprv
used compressed 33-byte form instead of normal 32-byte.
Version: 1.7.0
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 ofrun_tvm
andrun_executor
expecially in case of numerous calls on the same data. boc_cache
parameter intvm.run_tvm
andtvm.run_executor
functions to save resulting messages and account BOCs into cache.return_updated_account
flag parameter introduced intvm.run_tvm
andtvm.run_executor
functions to return updated account state. Important: by default this flag isfalse
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 onlystart
function.
- Support for get-methods and external calls in debots.
Version: 1.6.3
1.6.3 Feb 4, 2021
Fixed
- Expired message wasn't retried if local execution succeeded.
Version 1.6.1
Version: 1.6.0
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 inDeploySet
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