Skip to content

Commit 8ce1bba

Browse files
Added changelog for v3.0.0-beta1.
Added info about changes in GetDeploy() response. Signed-off-by: David Hernando <[email protected]>
1 parent 205f95c commit 8ce1bba

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,54 @@ All notable changes to this project will be documented in this file. The format
99
[comment]: <> (Fixed: any bug fixes)
1010
[comment]: <> (Security: in case of vulnerabilities)
1111

12+
## [3.0.0-beta1]
13+
14+
This version is compatible with Casper node v2.0.0-rc3 and Casper node v1.5.6.
15+
16+
### Added
17+
18+
* New `GetEntity()` method added to the RPC client.
19+
* New `QueryBalanceDetails()` method added to the RPC client.
20+
* New `PutTransaction()` and `GetTransaction()` methods added to the RPC client.
21+
* New `TransactionV1` class to model the new type of transactions in Condor.
22+
* New global state keys added to the SDK: `AddressableEntityKey`, `BalanceHoldKey`, `BidAddrKey`, `BlockGlobalAddrKey`, `ByteCodeKey`, `EntryPointKey`, `MessageKey`, `NamedKeyKey` and `PackageKey`.
23+
* New `AddressableEntity` class added. It may represent an account, a stored smart contract, or a system smart contract.
24+
* New properties in the `StoredValue` class that can be retrieved with `QueryGlobalState()` method: `BidKind`, `Unbonding`, `AddressableEntity`, `Package`, `ByteCode`, `MessageTopicSummary`, `Message`, `NamedKey`, `Reservation`, and `EntryPoint`.
25+
* New classes to represent data from the global state: `BidKind`, `UnbondingPurse`, `Package` and `ByteCode`.
26+
* New `Message` class to contain data for native events included in the `TransactionAccepted` event from the SSE channel.
27+
* Added `TransactionAccepted`, `TransactionProcessed`, and `TransactionExpired` events to the list of events emitted by a node through the SSE interface.
28+
29+
### Changed
30+
31+
* 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.
32+
* For blocks produced in Casper 2.0, the `Block` instance contains the previous switch block hash in the `LastSwitchBlockHash` property.
33+
* Ther `EraEnd` class has changed to abstract the developer from the versioned records returned from the network. More info in the migration guide.
34+
* 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.
35+
* 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.
36+
* 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`.
37+
* 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.
38+
* `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.
39+
* 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.
40+
* In the `StoredValue` class, `Transfer` has been renamed to `LegacyTransfer`.
41+
* `DeployApproval` class has been renamed to `Approval` and is used for `Deploy` as well as for the new `TransactionV1` model.
42+
* `ActionThresholds` class has now new `UpgradeManagement` property.
43+
* The `EntryPoint` class has new entry point types and a new property `EntryPointPayment`. Both apply when working with Casper 2.0 only.
44+
* `Step` event from SSE contains a list of `Transform` objects instead of a `ExecutionEffect` instance.
45+
* `FinalitySignature` event contains `BlockHeight` and `ChainNameHash` value when connected to a Casper 2.0 node.
46+
* `DeployProcessed` event from SSE contains a `ExecutionResultV1` object instead of a `ExecutionResult` object.
47+
48+
### Deprecated
49+
50+
* `Proposer.isSystem` property is marked as Obsolete. Use `IsSystem` with capital `I` instead.
51+
52+
### Removed
53+
54+
* `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.
55+
56+
### Security
57+
58+
* BouncyCastle package updated to 2.4.0 version.
59+
1260
## [2.3.0]
1361

1462
### Added
@@ -83,6 +131,7 @@ This new type permits to parse correctly the value `"00"` used for system blocks
83131
### Added
84132
* Initial release of Casper .NET SDK.
85133

134+
[3.0.0-beta1]: https://github.com/make-software/casper-net-sdk/releases/tag/v3.0.0-beta1
86135
[2.3.0]: https://github.com/make-software/casper-net-sdk/releases/tag/v2.3.0
87136
[2.2.0]: https://github.com/make-software/casper-net-sdk/releases/tag/v2.2.0
88137
[2.1.0]: https://github.com/make-software/casper-net-sdk/releases/tag/v2.1.0

Docs/Articles/CondorMigrationGuide.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ version. That's not the case with Casper .NET SDK v3.
9797

9898
## Transfers
9999

100-
The response in `GetBlockTransfers()` method contains a list of `Transfer` objects. This is also a versioned object. It contains all the information related to the information.
100+
The `Transfer` class contained in the response for a `GetBlockTransfers()` call or in a `ExecutionResult` object is also a versioned object. It contains all the information related to the transfer.
101101

102102
If you need to recover the original format, cast an instance to a `TransferV1` or `TransferV2` object:
103103

@@ -161,6 +161,11 @@ Similar to the `DeployTemplates` class, which provides deploy templates for most
161161

162162
Use the new method `PutTransaction` to send a `TransactionV1` to the network. Use the new `GetTransaction` method to retrieve an accepted transaction. Both methods can also be used to send and retrieve a Deploy. For unprocessed transactions, the ExecutionInfo in the response is `null`. Upon processing, this property contains all information about the execution, including cost, payments, errors (if any), and execution effects.
163163

164+
165+
### GetDeploy()
166+
167+
Response from the `GetDeploy()` method has changed. Instead of a list of `ExecutionResult` objects, it now returns an instance of `ExecutionInfo` for a processed deploy. This instance contains block information and a results object.
168+
164169
### Payments and costs
165170

166171
For a transaction (old and new versions) processed in Condor, the execution results object contains three properties related to the gas consumed and the CSPR tokens paid:

0 commit comments

Comments
 (0)