You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,36 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
7
7
## Unreleased
8
8
- TBD
9
9
10
+
## [10.0.0]
11
+
-[Breaking changes: improve contract interactions and interpretation of contract results](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/159)
12
+
13
+
**Breaking changes**
14
+
15
+
-`ExecutionResultsBundle` and `QueryResponseBundle` have been removed, and replaced by `TypedOutcomeBundle` (and its untyped counterpart, `UntypedOutcomeBundle`).
16
+
-`SmartContractResults` has been changed to not use the concepts `immediate result` and `resulting calls` anymore. Instead, interpreting `SmartContractResults.items` is now the responsibility of the `ResultsParser` (on which the contract controllers depend).
17
+
- Redesigned `QueryResponse`, changed most of its public interface. Results interpretation is now the responsibility of the results parser, called by the smart contract controllers.
18
+
-`interpretQueryResponse()` and `interpretExecutionResults()` do not exist on the `Interaction` object anymore. Now, querying / executing an interaction against the controller will return the interpreted results.
19
+
-`TokenIdentifierValue` is constructed using a `string`, not a `buffer`. Its `valueOf()` is now a string, as well.
20
+
- The `Interaction` constructor does not receive the `interpretingFunction` parameter anymore.
21
+
-`Interaction.getInterpretingFunction()` and `Interaction.getExecutingFunction()` have been removed, replaced by `Interaction.getFunction()`.
22
+
-`DefaultInteractionRunner` has been removed, and replaced by **smart contract controllers**.
23
+
-`StrictChecker` has been renamed to `InteractionChecker`. It's public interface - the function `checkInteraction()` - has changed as well (it also requires the endpoint definition now, as a second parameter).
24
+
- The functions `getReceipt()`, `getSmartContractResults()` and `getLogs()` of `TransactionOnNetwork` have been removed. The underlying properties are now public.
25
+
- Renamed `OptionValue.newMissingType()` to `OptionValue.newMissingTyped()`
26
+
- Queries with a return code different than `Ok` do not automatically throw an exception anymore (`assertSuccess()` has to be called explicitly in order to throw).
27
+
28
+
**Other changes**
29
+
30
+
-`SmartContract`, in addition to `methods`, now also has a `methodAuto` object that allows one to create interactions without explicitly specifying the types of the arguments. Automatic type inference (within erdjs' typesystem) is leveraged. The type inference system was implemented in the past, in the `nativeSerializer` component - PR https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/9 by @claudiu725.
31
+
- Added utility function `getFieldValue()` on `Struct` and `EnumValue`.
32
+
- Refactoring in the `networkProvider` package (under development, in order to merge the provider interfaces under a single one)
33
+
- Added utility function `Interaction.useThenIncrementNonceOf()`
34
+
- Fixed `nativeSerializer` to not depend on `SmartContract`, `ContractWrapper` and `TestWallet` anymore (gathered under an interface).
35
+
- Replaced the old `lottery-egld` with the new `lottery-esdt` in integration tests.
36
+
- Added missing tests for some components: `nativeSerializer`, `struct`, `enum`.
37
+
- Added utility function `OptionalValue.newMissing()`. Added "fake" covariance wrt. "null type parameter" (when value is missing) on `OptionalType`.
38
+
- Added utility functions (typed value factories): `createListOfAddresses`, `createListOfTokenIdentifiers`.
39
+
10
40
## [9.2.3]
11
41
-[Fix log level in transaction watcher.](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/160)
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,17 @@ Elrond SDK for JavaScript and TypeScript (written in TypeScript).
18
18
19
19
The most comprehensive usage examples are captured within the unit and the integration tests. Specifically, in the `*.spec.ts` files of the source code. For example:
0 commit comments