planetarium / NineChronicles.Snapshot

1 stars 8 forks source link

Bump Libplanet from 0.37.0 to 0.40.0 #161

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps Libplanet from 0.37.0 to 0.40.0.

Release notes

Sourced from Libplanet's releases.

Libplanet 0.40.0

Released on Auguest 12th, 2022.

Deprecated APIs

  • Transaction<T>(long, Address, PublicKey, BlockHash?, IImmutableSet<Address>, DateTimeOffset, IEnumerable<T>, byte[]) constructor is now deprecated. Use Transaction<T>(ITxMetadata, IEnumerable<T>, byte[]) constructor or Transaction<T>.Create() static method instead. [#2175]
  • Transaction<T>.Actions property is now deprecated. Use Transaction<T>.SystemAction property or Transaction<T>.CustomActions property instead. [#2149, #2151, #2175]
  • IPreEvaluationBlockHeader.HashAlgorithm property and its implementations removed. [#2206, #2207]
  • IBlockPolicy.GetHashAlgorithm(long) method and its implementations removed. [#2206, #2207]
  • InvalidBlockHashAlgorithmTypeException class removed. [#2206, #2207]
  • HashAlgorithmGetter delegate removed. [#2206, #2207]

Backward-incompatible API changes

  • The type of Transaction<T>.Actions property became IImmutableList<IAction> (was IImmutableList<T> where T : IAction, new()). [#2149, #2151, #2175]
  • Renamed parameters named actions of many methods to customActions. [#2149, #2151, #2175]
    • Renamed Transaction<T>(ITxMetadata, IEnumerable<T>, byte[]) constructor's parameter actions to customActions.
    • Renamed Transaction<T>(long, Address, PublicKey, BlockHash?, IImmutableSet<Address>, DateTimeOffset, IEnumerable<T>, byte[]) constructor's parameter actions to customActions.
    • Renamed Transaction<T>.Create(long, PrivateKey, BlockHash?, IEnumerable<T>, IImmutableSet<Address>?, DateTimeOffset?) static method's parameter actions to customActions.
    • Renamed Transaction<T>.CreateUnsigned(long, PrivateKey, BlockHash?, IEnumerable<T>, IImmutableSet<Address>?, DateTimeOffset?) static method's parameter actions to customActions.
    • Renamed TxMetadata.ToBencodex(IEnumerable<IValue>, IImmutableArray<byte>?) method's parameter actions to customActions.
  • Added IBlockPolicy<T>.NativeTokens property. [#2149, #2150, #2175]
  • Added option IImmutableSet<Currency>? nativeTokens to BlockPolicy<T>() constructor as its last parameter. [#2149, #2150, #2175]
  • Added IActionContext.IsNativeToken(Currency) method. [#2149, #2150, #2175]
  • Added parameter Predicate<Currency> nativeTokenPredicate to all PreEvaluationBlock<T>.Evaluate() method as its second parameter (parameter IStateStore stateStore remains at the last). [#2149, #2150, #2175]
  • Added parameter Predicate<Currency> nativeTokenPredicate to all PreEvaluationBlock<T>.DetermineStateRootHash() overloads as their second parameter (existing second and rest parameters were shifted). [#2149, #2150, #2175]
  • Added parameter Predicate<Currency> nativeTokenPredicate to BlockChain<T>.MakeGenesisBlock() method as its last parameter. [#2149, #2150, #2175]
  • Added parameter Predicate<Currency> nativeTokenPredicate to ActionEvaluator<T>() constructor as its last parameter. [#2149, #2150, #2175]
  • Removed ChainIdNotFoundException class. [#2047, #2156]
  • Added IStore.GetCanonicalGenesisBlock(HashAlgorithmGetter) method. [#2162, #2171]
  • Parameter HashAlgorithmType hashAlgorithm removed from BlockChain<T>.MakeGenesisBlock() method. [#2206, #2207]
  • Parameter HashAlgorithmType hashAlgorithm removed from BlockContent<T>.Mine() method. [#2206, #2207]
  • Parameter HashAlgorithmType hashAlgorithm removed from PreEvaluationBlock<T>() constructors. [#2206, #2207]
  • Parameter HashAlgorithmType hashAlgorithm removed from PreEvaluationBlockHeader<T>() constructors. [#2206, #2207]
  • Parameter HashAlgorithmType hashAlgorithm removed from BlockMetadata<T>.DerivePreEvaluationHash() method. [#2206, #2207]
  • Parameter HashAlgorithmType hashAlgorithm removed from BlockMetadata<T>.MineNonce() methods. [#2206, #2207]
  • Return type for BlockMarshaler .UnmarshalPreEvaluationBlockHeader(Dictionary) changed from (BlockMetadata, Nonce, ImmutableArray<bytes>?) to PreEvaluationBlockHeader. Removed overload method BlockMarshaler .UnmarshalPreEvaluationBlockHeader(HashAlgorithm, Dictionary). [#2206, #2207]
  • Parameter HashAlgorithmGetter hashAlgorithmGetter removed from BlockMarshaler.UnmarshalBlockHeader() method. [#2206, #2207]
  • Parameter HashAlgorithmGetter hashAlgorithmGetter removed from IStore<T>.GetCanonicalGenesisBlock<T>() and IStore<T>.GetBlock<T>() interface methods and their implementations. [#2206, #2207]
  • Parameter HashAlgorithmGetter hashAlgorithmGetter removed from BlockSet<T>() constructor. [#2206, #2207]
  • Parameter HashAlgorithmGetter hashAlgorithmGetter removed from BlockDigest.GetHeader() method. [#2206, #2207]
  • Parameter HashAlgorithmGetter hashAlgorithmGetter removed from DelayedRenderer<T>() constructor. [#2206, #2207]
  • Parameter HashAlgorithmGetter hashAlgorithmGetter removed from DelayedActionRenderer<T>() constructor. [#2206, #2207]
  • (Libplanet.Node) Parameter HashAlgorithmGetter hashAlgorithm removed from UntypedBlock() constructor. [#2206, #2207]

Added APIs

  • (Libplanet.Explorer) Added TransactionMutation<T> class. [#2130]
  • (Libplanet.Explorer) Added unsignedTransaction, bindSignature and transactionResult GraphQL fields to TransactionQuery<T>. [#2130]
  • Added Transaction<T>.SystemAction property. [#2149, #2151, #2175]

... (truncated)

Changelog

Sourced from Libplanet's changelog.

Version 0.40.0

Released on Auguest 12th, 2022.

Deprecated APIs

  • Transaction<T>(long, Address, PublicKey, BlockHash?, IImmutableSet<Address>, DateTimeOffset, IEnumerable<T>, byte[]) constructor is now deprecated. Use Transaction<T>(ITxMetadata, IEnumerable<T>, byte[]) constructor or Transaction<T>.Create() static method instead. [#2175]
  • Transaction<T>.Actions property is now deprecated. Use Transaction<T>.SystemAction property or Transaction<T>.CustomActions property instead. [#2149, #2151, #2175]
  • IPreEvaluationBlockHeader.HashAlgorithm property and its implementations removed. [#2206, #2207]
  • IBlockPolicy.GetHashAlgorithm(long) method and its implementations removed. [#2206, #2207]
  • InvalidBlockHashAlgorithmTypeException class removed. [#2206, #2207]
  • HashAlgorithmGetter delegate removed. [#2206, #2207]

Backward-incompatible API changes

  • The type of Transaction<T>.Actions property became IImmutableList<IAction> (was IImmutableList<T> where T : IAction, new()). [#2149, #2151, #2175]
  • Renamed parameters named actions of many methods to customActions. [#2149, #2151, #2175]
    • Renamed Transaction<T>(ITxMetadata, IEnumerable<T>, byte[]) constructor's parameter actions to customActions.
    • Renamed Transaction<T>(long, Address, PublicKey, BlockHash?, IImmutableSet<Address>, DateTimeOffset, IEnumerable<T>, byte[]) constructor's parameter actions to customActions.
    • Renamed Transaction<T>.Create(long, PrivateKey, BlockHash?, IEnumerable<T>, IImmutableSet<Address>?, DateTimeOffset?) static method's parameter actions to customActions.
    • Renamed Transaction<T>.CreateUnsigned(long, PrivateKey, BlockHash?, IEnumerable<T>, IImmutableSet<Address>?, DateTimeOffset?) static method's parameter actions to customActions.
    • Renamed TxMetadata.ToBencodex(IEnumerable<IValue>, IImmutableArray<byte>?) method's parameter actions to customActions.
  • Added IBlockPolicy<T>.NativeTokens property. [#2149, #2150, #2175]
  • Added option IImmutableSet<Currency>? nativeTokens to BlockPolicy<T>() constructor as its last parameter. [#2149, #2150, #2175]
  • Added IActionContext.IsNativeToken(Currency) method. [#2149, #2150, #2175]
  • Added parameter Predicate<Currency> nativeTokenPredicate to all PreEvaluationBlock<T>.Evaluate() method as its second parameter

... (truncated)

Commits
  • 37ff465 Merge pull request #2211 from greymistcube/release/0.40.0
  • f0ce09b Release 0.40.0
  • 45ae090 Merge pull request #2210 from greymistcube/cleanup/changelog
  • f0a801a Changelog formatting
  • 13ca13c Merge pull request #2207 from greymistcube/refactor/remove-hash-algorithm-getter
  • 0d925ea Cleanup
  • 57aa9b1 Changelog
  • 1621e0e Remove HashAlgorithm from BlockPolicy
  • 974d667 Remove HashAlgorithm from UntypedBlock
  • aee5f14 Define HashAlgorithm to use at BlockMetadata level
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
pull-request-quantifier-deprecated[bot] commented 2 years ago

This PR has 2 quantified lines of changes. In general, a change size of upto 200 lines is ideal for the best PR experience!


Quantification details

``` Label : Extra Small Size : +1 -1 Percentile : 0.8% Total files changed: 1 Change summary by file extension: .csproj : +1 -1 ``` > Change counts above are quantified counts, based on the [PullRequestQuantifier customizations](https://github.com/microsoft/PullRequestQuantifier/blob/main/docs/prquantifier-yaml.md).

Why proper sizing of changes matters

Optimal pull request sizes drive a better predictable PR flow as they strike a balance between between PR complexity and PR review overhead. PRs within the optimal size (typical small, or medium sized PRs) mean: - Fast and predictable releases to production: - Optimal size changes are more likely to be reviewed faster with fewer iterations. - Similarity in low PR complexity drives similar review times. - Review quality is likely higher as complexity is lower: - Bugs are more likely to be detected. - Code inconsistencies are more likely to be detected. - Knowledge sharing is improved within the participants: - Small portions can be assimilated better. - Better engineering practices are exercised: - Solving big problems by dividing them in well contained, smaller problems. - Exercising separation of concerns within the code changes. #### What can I do to optimize my changes - Use the PullRequestQuantifier to quantify your PR accurately - Create a context profile for your repo using the [context generator](https://github.com/microsoft/PullRequestQuantifier/releases) - Exclude files that are not necessary to be reviewed or do not increase the review complexity. Example: Autogenerated code, docs, project IDE setting files, binaries, etc. Check out the `Excluded` section from your `prquantifier.yaml` context profile. - Understand your typical change complexity, drive towards the desired complexity by adjusting the label mapping in your `prquantifier.yaml` context profile. - Only use the labels that matter to you, [see context specification](./docs/prquantifier-yaml.md) to customize your `prquantifier.yaml` context profile. - Change your engineering behaviors - For PRs that fall outside of the desired spectrum, review the details and check if: - Your PR could be split in smaller, self-contained PRs instead - Your PR only solves one particular issue. (For example, don't refactor and code new features in the same PR). #### How to interpret the change counts in git diff output - One line was added: `+1 -0` - One line was deleted: `+0 -1` - One line was modified: `+1 -1` (git diff doesn't know about modified, it will interpret that line like one addition plus one deletion) - Change percentiles: Change characteristics (addition, deletion, modification) of this PR in relation to all other PRs within the repository.


Was this comment helpful? :thumbsup:  :ok_hand:  :thumbsdown: (Email) Customize PullRequestQuantifier for this repository.

dependabot[bot] commented 2 years ago

Looks like Libplanet is up-to-date now, so this is no longer needed.