Skip to content

Releases: make-software/casper-go-sdk

v2.0.0

05 Sep 10:26
21fbc01

Choose a tag to compare

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:

v2.0.3-beta1

07 Feb 12:22
30f15cb

Choose a tag to compare

  • Actualize era_summary RPC response 137;
  • Added new get auction info v2 method support. 133;
  • Added transform parsing functions 128;

Number of fixes:

  • Fixed contract parsing from transform 129;
  • Update contract package parsing compatible 1.x 130;
  • Fixed compatible transforms parsing 131;
  • Fixed info_get_status response parsing 132;
  • Fixed parsing write account 136;
  • Fixed IsWriteAccount method 138

v2.0.2-beta1

22 Aug 09:18
5a338e7

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

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

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

Choose a tag to compare

What's Changed

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

v1.5.1

05 Feb 16:23
4781926

Choose a tag to compare

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

v1.5.0

01 Feb 11:58
4e71f20

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

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

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