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
-[Breaking change: Deprecate EsdtHelpers in favor of @elrondnetwork/transaction-decoder](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/195/files)
17
-
18
-
## 10.0.0-alpha.5
19
-
-[Breaking change: adjustements to transaction awaitening and completion, transaction watcher](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/173)
20
-
-[Breaking change: simplify network config / improve design - not a singleton anymore](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/176)
-[Breaking change: simplify network config / improve design - not a singleton anymore](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/176)
31
+
-[Breaking change: adjustements to transaction awaitening and completion, transaction watcher](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/173)
32
+
-[Remove trackOfTransactions (private field, not actually used)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/172)
33
+
-[Extract dapp / signing providers to separate repositories](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/170)
34
+
-[Breaking changes: improve contract interactions and interpretation of contract results](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/159)
35
35
36
36
**Breaking changes**
37
+
- Moved network providers and contract wrappers to separate repositories:
- Removed utility functions: `transaction.awaitExecuted()`, `transaction.awaitPending()`. `TransactionWatcher` should be used directly, instead.
38
46
- Changed interface of `TransactionWatcher`. The constructor does not expect a transaction hash anymore, but the functions `await*` do.
39
47
- Introduced new functions on `TransactionWatcher`: `awaitCompleted()`, `awaitAllEvents()`, `awaitAnyEvent()` etc.
@@ -48,11 +56,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
48
56
- Removed `transaction.send()`. `Provider.sendTransaction()` has to be used instead.
49
57
- Removed the static functions `getDefault()` and `sync()` from `networkStake`, `networkStatus` and `stats`.
50
58
- Removed `smartContract.runQuery()` in order to decouple the contract class from the network provider. `smartContract.createQuery()` + `provider.queryContract()` have to be used, instead.
51
-
- Moved network providers and contract wrappers to separate repositories:
- Renamed `methods` to `methodsExplicit`. Rename `methodsAuto` (only added in erdjs 10 beta) to `methods` (default choice). Therefore, by default, interactions are created without having to pass `TypedValue` objects as parameters. Automatic type inference is applied.
55
-
- Removed `SmartContractController` (downgraded to a mere test utility).
59
+
- Renamed `methods` to `methodsExplicit` (explicitly typed values). Added a new `contract.methods` object, which performs automatic type inference. Therefore, by default, interactions are created without having to pass `TypedValue` objects as parameters. 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.
56
60
- erdjs does not depend on `axios` and `fs` anymore. Changed the way an `AbiRegistry` is created. Removed function `Code.fromFile()` (was relying on `fs`).
57
61
- Removed `smartContract.getOwner()` (surprising behavior of function, usage not recommended).
-[Hardcode class names for classes within erdjs' typesystem.](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/165)
85
-
86
-
## [10.0.0-beta.1]
87
-
-[Breaking changes: improve contract interactions and interpretation of contract results](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/159)
88
-
89
-
**Breaking changes**
90
-
91
76
-`ExecutionResultsBundle` and `QueryResponseBundle` have been removed, and replaced by `TypedOutcomeBundle` (and its untyped counterpart, `UntypedOutcomeBundle`).
92
-
-`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).
93
-
- Redesigned `QueryResponse`, changed most of its public interface. Results interpretation is now the responsibility of the results parser, called by the smart contract controllers.
94
-
-`interpretQueryResponse()` and `interpretExecutionResults()` do not exist on the `Interaction` object anymore. Now, querying / executing an interaction against the controller will return the interpreted results.
77
+
-`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`.
78
+
- Redesigned `QueryResponse`, changed most of its public interface. Results interpretation is now the responsibility of the results parser.
79
+
-`interpretQueryResponse()` and `interpretExecutionResults()` do not exist on the `Interaction` object anymore.
95
80
-`TokenIdentifierValue` is constructed using a `string`, not a `buffer`. Its `valueOf()` is now a string, as well.
96
81
- The `Interaction` constructor does not receive the `interpretingFunction` parameter anymore.
97
82
-`Interaction.getInterpretingFunction()` and `Interaction.getExecutingFunction()` have been removed, replaced by `Interaction.getFunction()`.
98
-
-`DefaultInteractionRunner` has been removed, and replaced by **smart contract controllers**.
83
+
-`DefaultInteractionRunner` has been removed.
99
84
-`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).
100
85
- The functions `getReceipt()`, `getSmartContractResults()` and `getLogs()` of `TransactionOnNetwork` have been removed. The underlying properties are now public.
101
86
- Renamed `OptionValue.newMissingType()` to `OptionValue.newMissingTyped()`
102
87
- 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).
103
88
104
89
**Other changes**
105
-
106
-
-`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.
90
+
- Implement the `ResultsParser` for parsing query responses and contract results.
91
+
- Improved transaction completion detection, via the `TransactionWatcher`.
92
+
- Added new transaction payload builders, for token transfers.
107
93
- Added utility function `getFieldValue()` on `Struct` and `EnumValue`.
108
94
- Refactoring in the `networkProvider` package (under development, in order to merge the provider interfaces under a single one)
109
95
- Added utility function `Interaction.useThenIncrementNonceOf()`
0 commit comments