Releases: make-software/casper-go-sdk
v2.0.0
Changes:
- Extend ByPackageTarget with protocol_major_version #160
- Extend ByNameTarget with protocol major #161
Bug fixes: - Fix transaction serialization
- Update cost/consumed for executions result V1 #143
- Fixed stored version by hash and stored version by name serialization #144
- Fixed auction info deserialization reserved_slots #145
- Fixed args to bytes conversion #146
- Added reservations entrypoints parsing #147
- Fixed standard_payment parsing for deploy transactions #148
- Fix args conversion to bytes #149
- Fix MessageAddr parsing #151
- Fix parsing nil transaction execution results #153
- Add support for prefix entity-contract- for contract hashes #155
- Fixed parsing message addr #156
- Fixed era key parsing from bytes #157
- Fixed delegator public key serialization for state_get_auction_info_v2 #158
- Fixed message topic parsing #159
v2.0.0 stable release will include:
- Main changes:
- Bug fixes:
v2.0.3-beta1
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
TransactionV1type to model the new type of transactions in Condor. -
Introduced new type
Transactionto abstract the developer from theDeployandTransactionV1records returned
from the network in Condor version. -
New global state keys added to the SDK:
AddressableEntity,BalanceHold,BidAddr,BlockGlobalAddr,
ByteCode,EntryPoint,Message,NamedKeyandPackage. -
New
AddressableEntityentity was added. It may represent an account, a stored smart contract, or a system smart
contract. -
New properties in the
StoredValuecan be retrieved withQueryGlobalState()method:BidKind,Unbonding,
AddressableEntity,Package,ByteCode,MessageTopic,Message,NamedKey,ReservationandEntryPoint. -
New types to represent data from the global
state:BidKind,MessageTopicSummary,ReservationKind,EntryPointValueandByteCode. -
Added
TransactionAccepted,TransactionProcessed, andTransactionExpiredevents to the list of events emitted by
a node
through the SSE interface. -
New
GetBalanceByStateRootHash()method was added to the RPC client.
Changed
- The
Blocktype 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
LastSwitchBlockHashfield.
property. - The
EraEndtype has changed to abstract the developer from the versioned records returned from the network. GetDeploy()response has changed and now contains aExecutionInfoobject 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
Transfertype 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 theLatestSwitchBlockHashproperty. ActionThresholdstype has now newUpgradeManagementproperty.- In the
StoredValuetype, Transfer has been renamed toLegacyTransfer. - Method
ValidateDeployonDeployentity was renamed toValidate. - Method
SignDeployonDeployentity was renamed toSign, also method signature was changed, it returns only error
instead of (bool, error) FinalitySignatureevent containsBlockHeightandChainNameHashvalue when connected to a Casper 2.0 node.DeployProcessedevent from SSE contains aExecutionResultV1object instead of aExecutionResultobject.- The
EntryPointtype 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
TransformV2objects underExecutionEffectsfield.
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