Skip to content

Releases: make-software/casper-go-sdk

v2.0.0-beta2

20 Dec 14:28
a33bbd4
Compare
Choose a tag to compare
Merge pull request #127 from make-software/CSDK/update_message_serial…

v2.0.2-beta1

22 Aug 09:18
5a338e7
Compare
Choose a tag to compare
  • Add switch_block_hash to info_get_reward RPC 113
  • Fixed transfers parsing 112
  • Change block response parsing approach 111
  • Fixed bid parsing for V1 110
  • Added protocol_version to InfoGetStatusResult 108

v2.0.1-beta1

24 Jul 10:52
477d7e0
Compare
Choose a tag to compare

Change module path after major update to github.com/make-software/casper-go-sdk/v2/

v2.0.0-beta1

18 Jul 21:27
f75d256
Compare
Choose a tag to compare

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();
  • New TransactionV1 type to model the new type of transactions in Condor.

  • Introduced new type Transaction to abstract the developer from the Deploy and TransactionV1 records returned
    from the network in Condor version.

  • New global state keys added to the SDK: AddressableEntity, BalanceHold, BidAddr, BlockGlobalAddr,
    ByteCode, EntryPoint, Message, NamedKey and Package.

  • 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 with QueryGlobalState() method: BidKind, Unbonding,
    AddressableEntity, Package, ByteCode, MessageTopic, Message, NamedKey, Reservation and EntryPoint.

  • New types to represent data from the global
    state: BidKind, MessageTopicSummary, ReservationKind, EntryPointValue and ByteCode.

  • Added TransactionAccepted, TransactionProcessed, and TransactionExpired 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 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.
  • GetAuctionInfoLatest() RPC method was renamed to GetLatestAuctionInfo().
  • GetAccountBalance() RPC method was renamed to GetLatestBalance().
  • 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 the LatestSwitchBlockHash property.
  • ActionThresholds type has now new UpgradeManagement property.
  • In the StoredValue type, Transfer has been renamed to LegacyTransfer.
  • Method ValidateDeploy on Deploy entity was renamed to Validate.
  • Method SignDeploy on Deploy entity was renamed to Sign, also method signature was changed, it returns only error
    instead of (bool, error)
  • FinalitySignature event contains BlockHeight and ChainNameHash value when connected to a Casper 2.0 node.
  • DeployProcessed event from SSE contains a ExecutionResultV1 object instead of a ExecutionResult object.
  • The EntryPoint type has new entry point types and a new property EntryPointPayment. Both apply when working with
    Casper 2.0 only.
  • Step event from SSE was extended with list of TransformV2 objects under ExecutionEffects field.

Security
Upgraded golang.org/x/crypto lib to 0.23.0 version to address CVE-2023-42818 vulnerability.

v1.5.2

25 Apr 11:23
v1.5.2
cf263a3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.5.1...v1.5.2

v1.5.1

05 Feb 16:23
4781926
Compare
Choose a tag to compare

Updated dependencies.
Full Changelog: v1.5.0...v1.5.1

v1.5.0

01 Feb 11:58
4e71f20
Compare
Choose a tag to compare

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

05 Dec 11:46
e7cc1f3
Compare
Choose a tag to compare

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

01 Nov 18:39
1f295b5
Compare
Choose a tag to compare

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

19 Oct 11:49
8041afc
Compare
Choose a tag to compare

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