Skip to content

Commit bed3df4

Browse files
Merge pull request #197 from ElrondNetwork/prepare-release-v10
Fix exports and prepare release of erdjs 10
2 parents a9b33e9 + 0d6b644 commit bed3df4

File tree

5 files changed

+43
-55
lines changed

5 files changed

+43
-55
lines changed

CHANGELOG.md

Lines changed: 38 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,41 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
77
## Unreleased
88
- TBD
99

10-
## 10.0.1-beta.2
10+
## 10.1.0
11+
- [Fix exports and prepare release of erdjs 10](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/197)
1112
- [Bit of cleanup prior release (breaking changes), update readme & docs. Add payload builders for token transfers](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/196)
12-
13-
## 10.0.1-beta.1
14-
- [TokenPayment instead of Balance, where applicable](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/193)
13+
- [Breaking change: Deprecate EsdtHelpers in favor of @elrondnetwork/transaction-decoder](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/195)
1514
- [Breaking change: Deprecate / remove balance & balance builder](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/194)
16-
- [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)
21-
- [Fix / improve results parser (better heuristics)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/177)
22-
- [Breaking change: preparatory refactoring for decoupling core objects from IProvider](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/178)
23-
- [Breaking change: decouple networkStake, networkStatus and stats from IProvider & IApiProvider](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/179)
24-
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 1](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/180)
25-
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 2](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/181)
26-
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 3](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/182)
27-
- [Breaking change: SmartContract does not depend on IProvider anymore](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/183).
28-
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 4](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/184)
29-
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 5](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/185)
30-
- [Breaking change: extractions (network providers and contract wrappers)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/186)
31-
- [Breaking change: rename "methods" to "methodsExplicit". Rename "methodsAuto" to "methods" (default choice)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/187)
32-
- [Remove SmartContractController (downgraded to a mere test utility)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/188)
33-
- [Breaking changes: cleanup and minor improvements prior release (step 1)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/190)
15+
- [TokenPayment instead of Balance, where applicable](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/193)
3416
- [Breaking changes: cleanup and minor improvements prior release (step 2)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/191)
17+
- [Breaking changes: cleanup and minor improvements prior release (step 1)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/190)
18+
- [Remove SmartContractController (downgraded to a mere test utility)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/188)
19+
- [Breaking change: rename "methods" to "methodsExplicit". Rename "methodsAuto" to "methods" (default choice)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/187)
20+
- [Breaking change: extractions (network providers and contract wrappers)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/186)
21+
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 5](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/185)
22+
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 4](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/184)
23+
- [Breaking change: SmartContract does not depend on IProvider anymore](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/183)
24+
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 3](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/182)
25+
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 2](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/181)
26+
- [Breaking change: unifying provider interfaces, preparing network providers for extraction - step 1](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/180)
27+
- [Breaking change: decouple networkStake, networkStatus and stats from IProvider & IApiProvider](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/179)
28+
- [Breaking change: preparatory refactoring for decoupling core objects from IProvider](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/178)
29+
- [Fix / improve results parser (better heuristics)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/177)
30+
- [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)
3535

3636
**Breaking changes**
37+
- Moved network providers and contract wrappers to separate repositories:
38+
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-network-providers
39+
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-contract-wrappers
40+
- The dapp / signing providers have been extracted to separate repositories:
41+
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-hw-provider
42+
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-web-wallet-provider
43+
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-wallet-connect-provider
44+
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-extension-provider
3745
- Removed utility functions: `transaction.awaitExecuted()`, `transaction.awaitPending()`. `TransactionWatcher` should be used directly, instead.
3846
- Changed interface of `TransactionWatcher`. The constructor does not expect a transaction hash anymore, but the functions `await*` do.
3947
- Introduced new functions on `TransactionWatcher`: `awaitCompleted()`, `awaitAllEvents()`, `awaitAnyEvent()` etc.
@@ -48,11 +56,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
4856
- Removed `transaction.send()`. `Provider.sendTransaction()` has to be used instead.
4957
- Removed the static functions `getDefault()` and `sync()` from `networkStake`, `networkStatus` and `stats`.
5058
- 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:
52-
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-network-providers
53-
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-contract-wrappers
54-
- 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.
5660
- erdjs does not depend on `axios` and `fs` anymore. Changed the way an `AbiRegistry` is created. Removed function `Code.fromFile()` (was relying on `fs`).
5761
- Removed `smartContract.getOwner()` (surprising behavior of function, usage not recommended).
5862
- Removed `transaction.awaitHashed()` (lacks use-case).
@@ -69,41 +73,23 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
6973
- Breaking change: removed `ChainID` in favor of the interface `IChainID`.
7074
- Breaking change: deprecate `scArgumentsParser` in favor of `@elrondnetwork/transaction-decoder`.
7175

72-
## [10.0.0-beta.3]
73-
- [Extract dapp / signing providers to separate repositories](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/170)
74-
- [Remove trackOfTransactions (private field, not actually used)](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/172)
75-
76-
**Breaking changes**
77-
- The dapp / signing providers have been extracted to separate repositories:
78-
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-hw-provider
79-
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-web-wallet-provider
80-
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-wallet-connect-provider
81-
- https://github.com/ElrondNetwork/elrond-sdk-erdjs-extension-provider
82-
83-
## [10.0.0-beta.2]
84-
- [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-
9176
- `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.
9580
- `TokenIdentifierValue` is constructed using a `string`, not a `buffer`. Its `valueOf()` is now a string, as well.
9681
- The `Interaction` constructor does not receive the `interpretingFunction` parameter anymore.
9782
- `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.
9984
- `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).
10085
- The functions `getReceipt()`, `getSmartContractResults()` and `getLogs()` of `TransactionOnNetwork` have been removed. The underlying properties are now public.
10186
- Renamed `OptionValue.newMissingType()` to `OptionValue.newMissingTyped()`
10287
- 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).
10388

10489
**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.
10793
- Added utility function `getFieldValue()` on `Struct` and `EnumValue`.
10894
- Refactoring in the `networkProvider` package (under development, in order to merge the provider interfaces under a single one)
10995
- Added utility function `Interaction.useThenIncrementNonceOf()`

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elrondnetwork/erdjs",
3-
"version": "10.0.1-beta.2",
3+
"version": "10.1.0",
44
"description": "Smart Contracts interaction framework",
55
"main": "out/index.js",
66
"types": "out/index.d.js",

src/_docs/basic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
export * from "../account";
88
export * from "../address";
99
export * from "../interface";
10+
export * from "../interfaceOfNetwork";
1011
export * from "../transaction";
1112
export * from "../transactionPayload";
1213
export * from "../transactionWatcher";

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require('./globals');
22

33
export * from "./interface";
4+
export * from "./interfaceOfNetwork";
45
export * from "./errors";
56
export * from "./account";
67
export * from "./address";

0 commit comments

Comments
 (0)