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
+91Lines changed: 91 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,94 @@ All notable changes to this project will be documented in this file. The format
9
9
[comment]: <>(Fixed: any bug fixes)
10
10
[comment]: <>(Security: in case of vulnerabilities)
11
11
12
+
## [3.0.0-beta3]
13
+
14
+
### Added
15
+
16
+
* The `TransactionBuilder` now accepts amount as `ulong` type for the `Payment()` method.
17
+
* New `GlobalStateKey.FromValidatorKey()` to get the bid address key of a validator.
18
+
* New `GetNodeVersion()` in the main client class as a convenient method to check node version.
19
+
* New `GetValidatorBid()` method to recover the bid information of a validator.
20
+
21
+
### Changed
22
+
23
+
*`MessageKey` contains an `AddressableEntity` property instead of a `HashAddr` to represent the related contract entity.
24
+
*`GetAuctionInfo()` now uses the new `state_get_auction_info_v2` RPC method in Casper 2.0.
25
+
26
+
### Fixed
27
+
28
+
*[#99](https://github.com/make-software/casper-net-sdk/issues/99) SSE Listener emits the same event 3 times when listening to EventType.All
29
+
* Fixed the `TransactionV1.ValidateHashes()` method to properly verify the hashes.
30
+
31
+
## [3.0.0-beta2]
32
+
33
+
### Added
34
+
35
+
* Added `GetDelegatorReward` and `GetValidatorReward` methods to the RPC client. [PR#76](https://github.com/make-software/casper-net-sdk/pull/76) and [PR#80](https://github.com/make-software/casper-net-sdk/pull/80).
36
+
* Added `GetStatePackage` method to the RPC client. [PR#82](https://github.com/make-software/casper-net-sdk/pull/82).
37
+
* Added `ProtocolVersion` to Get Node Status RPC response. [PR#77](https://github.com/make-software/casper-net-sdk/pull/77).
38
+
* Added a `TransactionBuilder` to build `TransactionV1` transactions for the different type of invocations ( to mint/auction system contracts, user stored contracts) and session deployments. [PR#79](https://github.com/make-software/casper-net-sdk/pull/79).
39
+
40
+
### Changed
41
+
42
+
* The `Transaction` type is now an abstraction for `TransactionV1` and `Deploy` transaction models. [PR#79](https://github.com/make-software/casper-net-sdk/pull/79).
43
+
* Updated `TransactionV1` JSON and bytes serialization in alignment to `casper-node v2.0.0-rc5`. [PR-84](https://github.com/make-software/casper-net-sdk/pull/84) and [PR-85](https://github.com/make-software/casper-net-sdk/pull/85)
44
+
* Updated `MessageKey` key type in alignment to `casper-node v2.0.0-rc5`. [PR-86](https://github.com/make-software/casper-net-sdk/pull/86)
45
+
*`EntryPointPayment.SelfOnly` constant replaced with `EntryPointPayment.DirectInvocationOnly`.[PR#87](https://github.com/make-software/casper-net-sdk/pull/87).
46
+
47
+
### Fixed
48
+
49
+
* Fixed a multi-thread bug when using the RPCLoggingHandler in the RPC client class. [PR#81](https://github.com/make-software/casper-net-sdk/pull/81).
50
+
* v3.0.0-beta1 did not parse correctly `Step` event emmitted by nodes in Casper v1.x. [PR#78](https://github.com/make-software/casper-net-sdk/pull/78).
51
+
52
+
## [3.0.0-beta1]
53
+
54
+
This version is compatible with Casper node v2.0.0-rc3 and Casper node v1.5.6.
55
+
56
+
### Added
57
+
58
+
* New `GetEntity()` method added to the RPC client.
59
+
* New `QueryBalanceDetails()` method added to the RPC client.
60
+
* New `PutTransaction()` and `GetTransaction()` methods added to the RPC client.
61
+
* New `TransactionV1` class to model the new type of transactions in Condor.
62
+
* New global state keys added to the SDK: `AddressableEntityKey`, `BalanceHoldKey`, `BidAddrKey`, `BlockGlobalAddrKey`, `ByteCodeKey`, `EntryPointKey`, `MessageKey`, `NamedKeyKey` and `PackageKey`.
63
+
* New `AddressableEntity` class added. It may represent an account, a stored smart contract, or a system smart contract.
64
+
* New properties in the `StoredValue` class that can be retrieved with `QueryGlobalState()` method: `BidKind`, `Unbonding`, `AddressableEntity`, `Package`, `ByteCode`, `MessageTopicSummary`, `Message`, `NamedKey`, `Reservation`, and `EntryPoint`.
65
+
* New classes to represent data from the global state: `BidKind`, `UnbondingPurse`, `Package` and `ByteCode`.
66
+
* New `Message` class to contain data for native events included in the `TransactionAccepted` event from the SSE channel.
67
+
* Added `TransactionAccepted`, `TransactionProcessed`, and `TransactionExpired` events to the list of events emitted by a node through the SSE interface.
68
+
69
+
### Changed
70
+
71
+
* The `Block` class has changed to abstract the developer from the versioned block records returned from the network in Condor version. Refer to the migration guide for more information.
72
+
* For blocks produced in Casper 2.0, the `Block` instance contains the previous switch block hash in the `LastSwitchBlockHash` property.
73
+
* Ther `EraEnd` class has changed to abstract the developer from the versioned records returned from the network. More info in the migration guide.
74
+
* The `Transfer` class contained in the response for a `GetBlockTransfers()` call or in a `ExecutionResult` object has changed to abstract from the versioned transfer records returned from the network. Refer to the migration guide for more information.
75
+
* The input argument for the `QueryBalance()` method in the RPC client is any object from a class implementing the `IPurseIdentifier` interface. `PublicKey`, `AccountHashKey`, `URef`, and `AddressableEntity` classes implement this interface.
76
+
* The type to refer to block heights is now `ulong` across all the SDK. In previous version there was a mix of `ulong` and `int`.
77
+
* When using the `GetNodeStatus()` method with a Casper 2.0 node, the response contains the hash for the latest switch block in the `LatestSwitchBlockHash` property.
78
+
*`GetDeploy()` response has changed and now contains a `ExecutionInfo`object when the deploy has been processed instead a list of `ExecutionResult` objects. The execution info itself contains block information and a result object.
79
+
* Starting with this version of the SDK, only public keys are checksummed with the CEP-57 standard. The rest of the keys and hashes are not checksummed anymore.
80
+
* In the `StoredValue` class, `Transfer` has been renamed to `LegacyTransfer`.
81
+
*`DeployApproval` class has been renamed to `Approval` and is used for `Deploy` as well as for the new `TransactionV1` model.
82
+
*`ActionThresholds` class has now new `UpgradeManagement` property.
83
+
* The `EntryPoint` class has new entry point types and a new property `EntryPointPayment`. Both apply when working with Casper 2.0 only.
84
+
*`Step` event from SSE contains a list of `Transform` objects instead of a `ExecutionEffect` instance.
85
+
*`FinalitySignature` event contains `BlockHeight` and `ChainNameHash` value when connected to a Casper 2.0 node.
86
+
*`DeployProcessed` event from SSE contains a `ExecutionResultV1` object instead of a `ExecutionResult` object.
87
+
88
+
### Deprecated
89
+
90
+
*`Proposer.isSystem` property is marked as Obsolete. Use `IsSystem` with capital `I` instead.
91
+
92
+
### Removed
93
+
94
+
*`GetAccountBalance()` method in the RPC client has been removed. Use `QueryBalance()` instead. `GetBalance()` method exists to use `state_get_balance` from the RPC interface if needed.
95
+
96
+
### Security
97
+
98
+
* BouncyCastle package updated to 2.4.0 version.
99
+
12
100
## [2.4.0]
13
101
14
102
### Changed
@@ -94,6 +182,9 @@ This new type permits to parse correctly the value `"00"` used for system blocks
0 commit comments