Skip to content

Commit

Permalink
Merge branch 'condor' into feat-more-options-clkey
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmannjan committed Jun 24, 2024
2 parents af70352 + 21deef7 commit 3ce1cc7
Show file tree
Hide file tree
Showing 15 changed files with 565 additions and 129 deletions.
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ This release candidate is compatible with [#node RC2](https://github.com/casper-
### Added

- `CLAccountHash` now has `toFormattedStr()` and `fromFormattedStr(hexStr: string)` methods
- Changed `enum KeyVariant` to `enum KeyTag`, backfilled all the variants that were missing, added condor-specifin ones
- `StoredValue` has new fields which represent enum variants and are reuqired for 2.x compatibility:
- Changed `enum KeyVariant` to `enum KeyTag`, backfilled all the variants that were missing, added Condor-specific ones
- `StoredValue` has new fields which represent `enum` variants and are required for `Condor` compatibility:
- `NamedKey`
- `AddressableEntity`
- `BidKind`
Expand All @@ -37,7 +37,7 @@ This release candidate is compatible with [#node RC2](https://github.com/casper-
- `merkleProof` field to `EraSummary` class
- optional `latest_switch_block_hash` added to `GetStatusResult`
- field `execution_info` of type `ExecutionInfo` was added. This affects `CasperServiceByJsonRPC.getDeployInfo` method return types.
- `block_with_signatures` was added of type `JsonBlockWithSignatures` was added. `JsonBlockWithSignatures.block` is a union type of either `Version1` or `Version2`. `Version1` variant should be returned for blocks cretaed prior to 2.x migration, `Version2` for blocks created after 2.x migration. This change affects `CasperServiceByJsonRPC.getBlockInfo` method return type.
- `block_with_signatures` with type `JsonBlockWithSignatures` was added. `JsonBlockWithSignatures.block` is a union type of either `Version1` or `Version2`. `Version1` variant should be returned for blocks created prior to `Condor` migration, `Version2` for blocks created after `Condor` migration. This change affects the `CasperServiceByJsonRPC.getBlockInfo` method return type.
- static `build` function to the following classes:
- UniqAddress
- DeployHeader
Expand All @@ -51,15 +51,16 @@ This release candidate is compatible with [#node RC2](https://github.com/casper-
- `delegators` entry field from `Bid` class changed structure
- `CasperServiceByJsonRPC.getEraInfoBySwitchBlock` argument changed from `string` to `BlockIdentifier`
- `CasperServiceByJsonRPC.getEraSummary` argument changed from `string` to `BlockIdentifier`
- `ExecutionResult` class changed to a type union of either `Version1` or `Version2`. For deploys created pre-2.x `ExecutionResult` should contain `Version1`, for post `2.x` they will be `Version2` variants.
- `ExecutionResult` class changed to a type union of either `Version1` or `Version2`. For deploys created pre-Condor `ExecutionResult` should contain `Version1`, for post `Condor` they will be `Version2` variants.
- `getAccountInfo` function will only work before `Condor` node release

### Removed

- Constructors for following classes (please use static `build` functions that were provided):
- UniqAddress
- DeployHeader
- Deploy
- `getEraInfoBySwitchBlockHeight`, `getEraSummaryByBlockHeight`, `getAccountBalanceUrefByPublicKeyHash`, `getAccountBalanceUrefByPublicKey` methods from `CasperServiceByJsonRPC` class
- `getEraInfoBySwitchBlockHeight`, `getEraSummaryByBlockHeight` methods from `CasperServiceByJsonRPC` class
- `BalanceServiceByJsonRPC` class
- `execution_results` field in `GetDeployResult` was removed. This affects `CasperServiceByJsonRPC.getDeployInfo` method return types.
- field `block` of `GetBlockResult`. This change affects `CasperServiceByJsonRPC.getBlockInfo` method return type
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ Basic library usage can be found below files:
- [ByteConverters](https://github.com/casper-ecosystem/casper-js-sdk/tree/dev/src/lib/ByteConverters.test.ts)
- [ChecksummedHex](https://github.com/casper-ecosystem/casper-js-sdk/tree/dev/src/lib/ChecksummedHex.test.ts)
- [Serialization](https://github.com/casper-ecosystem/casper-js-sdk/tree/dev/src/lib/Serialization.test.ts)

## Migration guides

### v2 to v3

Please see [v2-v3 migration guide](./resources/migration-guide_v2-v3.md).
Loading

0 comments on commit 3ce1cc7

Please sign in to comment.