Releases: everx-labs/ever-sdk
Version: 1.16.1
[1.16.1] – 2021-06-16
New
timeout
option toquery_transaction_tree
– timeout used to limit waiting time for the next
message and transaction in the transaction tree.
Improved
- Improved error messages regarding ABI and JSON interface. SDK now shows additional tips for the user in cases of
errors.
Fixed
- Warnings in Rust 1.52+. Little fixes in the documentation.
total_output
field in fees was always 0.query_transaction_tree
didn't wait for messages.
Version: 1.16.0
[1.16.0] – 2021-05-25
New
query_transaction_tree
function that returns messages and transactions tree produced
by the specified message was added toquery
module. See the documentation
Fixed
AbiData.key
type changed to u32.- attempt to use
orderBy
instead oforder
inquery_collection
will raise error.
Version: 1.15.0
[1.15.0] – 2021-05-18
New
-
Sync latency detection increases connection reliability. Library will change the current endpoint
when it detects data sync latency on it. -
Configuration parameters:
latency_detection_interval
,
max_latency
. See client documentation for details. -
Debot module:
- signing messages with signing box handles returned from debots.
- return any sdk errors to debot in case of external calls.
- defining signing box handle used to sign message in approve callback.
Version: 1.14.1
[1.14.1] – 2021-04-29
Fixed
- Fixed building under Rust versions older than 1.51.
Version: 1.14.0
[1.14.0] – 2021-04-28
New
- Debot module:
- implementation of Network DeBot interface in DEngine.
- implementation of
signHash
function in Sdk interface.
Fixed
- Debot module:
- fixed bug in Json interface with supporting nested structures and arrays of structures.
- fixed bug in Json interface with keys containing hyphens.
Version: 1.13.0
[1.13.0] – 2021-04-23
New
-
net.query_counterparties
- allows to query and paginate through the list of accounts that the specified account
has interacted with, sorted by the time of the last internal message between accounts.
Subscription to counterparties collection is available vianet.subscribe_collection
function. -
Blockchain interaction reliability improvement (broadcast): library sends external inbound messages simultaneously
to the N randomly chosen endpoints. If all N endpoints failed to responce then library repeats
sending to another random N endpoints (except the failed one).
If all the available endpoints fail to respond then library throws error.
The N parameter is taken fromconfig.network.sending_endpoint_count
(default is 2). -
Blockchain interaction reliability improvement (bad delivery list): library tracks endpoints
with bad message delivery (expired messages). These endpoints have lower priority when library chooses endpoints
to send message. -
Debot module:
- Implementation of
Json
DeBot interface in DEngine.
- Implementation of
Fixed
BuilderOp::Integer.size
type has changed fromu8
tou32
.- Debot Module:
Sdk
interface functiongetAccountsDataByHash
didn't find accounts bycode_hash
with leading zero.
Version: 1.12.0
[1.12.0] – 2021-04-01
New
utils.compress_zstd
compresses data using Facebook's Zstandard algorithm.utils.decompress_zstd
decompresses data using Facebook's Zstandard algorithm.- Debot module:
init
function that creates an instance of DeBot and returns DeBot metadata.- Dengine fetches metadata form DeBot by calling 2 mandatory functions:
getRequiredInterfaces
andgetDebotInfo
. This data is returned byfetch
andinit
functions. approve
DeBot Browser callback which is called by DEngine to request permission for DeBot activities.
Changed
- Debot Module:
- [breaking]
fetch
function does't create an instance of debot. It returns DeBot metadata (DebotInfo
). - [breaking]
start
function does't create an instance of debot. It accepts DeBot handle created ininit
function.
- [breaking]
Version: 1.11.1
[1.11.1] – 2021-03-15
New
- Giver address in tests is calculated from secret key. Default values are provided for TON OS SE giver
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.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