Releases: make-software/casper-go-sdk
v2.0.0-beta2
Merge pull request #127 from make-software/CSDK/update_message_serial…
v2.0.2-beta1
v2.0.1-beta1
Change module path after major update to github.com/make-software/casper-go-sdk/v2/
v2.0.0-beta1
This is a beta version of the GO SDK v2.0.0
. It is compatible with Casper node v2.0.0-rc3
and Casper node v1.5.6
. This
new version introduces some breaking changes. Read the changelog below in detail.
Added
-
New methods were added to the RPC client:
- RPC state_get_entity :
GetLatestEntity()
,GetEntityByBlockHash()
,GetEntityByBlockHeight()
; - RPC query_balance_details :
QueryLatestBalanceDetails()
,QueryBalanceDetailsByBlockHeight()
,QueryBalanceDetailsByBlockHash()
,QueryBalanceDetailsByStateRootHash()
; - RPC query_balance :
QueryLatestBalance()
,QueryBalanceByBlockHeight()
,QueryBalanceByBlockHash()
,QueryBalanceByStateRootHash()
; - RPC info_get_reward :
GetLatestValidatorReward()
,GetValidatorRewardByEraID()
,GetValidatorRewardByBlockHash()
,GetValidatorRewardByBlockHeight()
,
GetLatestDelegatorReward()
,GetDelegatorRewardByEraID()
,GetDelegatorRewardByBlockHash()
,GetDelegatorRewardByBlockHeight()
; - RPC info_get_transaction :
GetTransactionByTransactionHash()
,GetTransactionByDeployHash()
,GetTransactionFinalizedApprovalByTransactionHash()
GetTransactionFinalizedApprovalByDeployHash()
; - RPC account_put_transaction :
PutTransactionV1()
;
- RPC state_get_entity :
-
New
TransactionV1
type to model the new type of transactions in Condor. -
Introduced new type
Transaction
to abstract the developer from theDeploy
andTransactionV1
records returned
from the network in Condor version. -
New global state keys added to the SDK:
AddressableEntity
,BalanceHold
,BidAddr
,BlockGlobalAddr
,
ByteCode
,EntryPoint
,Message
,NamedKey
andPackage
. -
New
AddressableEntity
entity was added. It may represent an account, a stored smart contract, or a system smart
contract. -
New properties in the
StoredValue
can be retrieved withQueryGlobalState()
method:BidKind
,Unbonding
,
AddressableEntity
,Package
,ByteCode
,MessageTopic
,Message
,NamedKey
,Reservation
andEntryPoint
. -
New types to represent data from the global
state:BidKind
,MessageTopicSummary
,ReservationKind
,EntryPointValue
andByteCode
. -
Added
TransactionAccepted
,TransactionProcessed
, andTransactionExpired
events to the list of events emitted by
a node
through the SSE interface. -
New
GetBalanceByStateRootHash()
method was added to the RPC client.
Changed
- The
Block
type has changed to abstract the developer from the versioned block records returned from the network in
Condor version. - For blocks produced in Casper 2.0, the Block instance contains the previous switch block hash in the
LastSwitchBlockHash
field.
property. - The
EraEnd
type has changed to abstract the developer from the versioned records returned from the network. GetDeploy()
response has changed and now contains aExecutionInfo
object when the deploy has been processed
instead a
list of ExecutionResult objects. The execution info itself contains block information and a result object.GetAuctionInfoLatest()
RPC method was renamed toGetLatestAuctionInfo()
.GetAccountBalance()
RPC method was renamed toGetLatestBalance()
.GetRawJSON()
method was added for all types used as RPC result.- The
Transfer
type 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. - When using the
GetStatus()
method with a Casper 2.0 node, the response contains the hash for the latest switch block
in theLatestSwitchBlockHash
property. ActionThresholds
type has now newUpgradeManagement
property.- In the
StoredValue
type, Transfer has been renamed toLegacyTransfer
. - Method
ValidateDeploy
onDeploy
entity was renamed toValidate
. - Method
SignDeploy
onDeploy
entity was renamed toSign
, also method signature was changed, it returns only error
instead of (bool, error) FinalitySignature
event containsBlockHeight
andChainNameHash
value when connected to a Casper 2.0 node.DeployProcessed
event from SSE contains aExecutionResultV1
object instead of aExecutionResult
object.- The
EntryPoint
type has new entry point types and a new propertyEntryPointPayment
. Both apply when working with
Casper 2.0 only. - Step event from SSE was extended with list of
TransformV2
objects underExecutionEffects
field.
Security
Upgraded golang.org/x/crypto lib to 0.23.0 version to address CVE-2023-42818 vulnerability.
v1.5.2
What's Changed
- Fixed interaction with public key API by @Volodymyr-Kuchinskyi in #78
- Fixed NewUref constructor by @ZhmakAS in #82
- Fix Tuple3 constructor (CMW-1060) by @koltsov-iv in #84
Full Changelog: v1.5.1...v1.5.2
v1.5.1
Updated dependencies.
Full Changelog: v1.5.0...v1.5.1
v1.5.0
What's Changed
- fix: Change pointer to value receiver for Motes type ToCSPR method by @Vladimir-Kuchinskiy in #72
- feat(uref): Add ability to set access for a Uref (CMW-767) by @Vladimir-Kuchinskiy in #73
- feat: add WriteAccount transform parsing logic by @Vladimir-Kuchinskiy in #74
- Fixed write account transform by @Vladimir-Kuchinskiy in #75
- Fix Map CLType json encode issue (CMW-809) by @koltsov-iv in #77
- Feature/cmw 810/add support node v1.5.5 by @koltsov-iv in #76
Full Changelog: v1.4.4...v1.5.0
v1.4.4
What's Changed
- Add the ability to provide custom headers to the RPC client (CMW-706) by @koltsov-iv in #71
Full Changelog: v1.4.3...v1.4.4
v1.4.3
What's Changed
- feat: Add method for parsing WriteUnbonding for transfer (CMW-612) by @Vladimir-Kuchinskiy in #63
- Fix speculative result block_hash field (CMW-610) by @koltsov-iv in #67
- Feature/cmw 608/parsing transform by @koltsov-iv in #65
- Fix amount data type (CMW-609) by @koltsov-iv in #66
- Fix ommited fields for step event (CMW-595) by @koltsov-iv in #64
- Add priv keys import/export interfaces (CMW-611) by @koltsov-iv in #68
- Release/v1.4.3 by @koltsov-iv in #69
Full Changelog: v1.4.2...v1.4.3
v1.4.2
What's Changed
- fix(types): Change NewValidator to be optional for UnbondingPurse (CMW-586) by @Vladimir-Kuchinskiy in #60
- Feature/cmw 587/resolve vulnerabilities by @koltsov-iv in #61
- Release/v1.4.2 by @koltsov-iv in #62
New Contributors
- @Vladimir-Kuchinskiy made their first contribution in #60
Full Changelog: v1.4.1...v1.4.2