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
+49Lines changed: 49 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,54 @@ 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-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
+
12
60
## [2.3.0]
13
61
14
62
### Added
@@ -83,6 +131,7 @@ This new type permits to parse correctly the value `"00"` used for system blocks
Copy file name to clipboardExpand all lines: Docs/Articles/CondorMigrationGuide.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ version. That's not the case with Casper .NET SDK v3.
97
97
98
98
## Transfers
99
99
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.
101
101
102
102
If you need to recover the original format, cast an instance to a `TransferV1` or `TransferV2` object:
103
103
@@ -161,6 +161,11 @@ Similar to the `DeployTemplates` class, which provides deploy templates for most
161
161
162
162
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.
163
163
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
+
164
169
### Payments and costs
165
170
166
171
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