Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: scale types for pending ceremonies #5286

Merged
merged 5 commits into from
Oct 18, 2024

Conversation

martin-chainflip
Copy link
Contributor

Pull Request

Closes: PRO-1676

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have written sufficient tests.
  • I have written and tested required migrations.
  • I have updated documentation where appropriate.

Summary

This change renames the types returned by the ThresholdSignature -> pendingCeremonies call so that different types have different names.

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71%. Comparing base (a17fd16) to head (ad98754).
Report is 34 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5286     +/-   ##
=======================================
+ Coverage     70%     71%     +1%     
=======================================
  Files        487     491      +4     
  Lines      87295   85245   -2050     
  Branches   87295   85245   -2050     
=======================================
- Hits       61312   60640    -672     
+ Misses     22703   21891    -812     
+ Partials    3280    2714    -566     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

state-chain/pallets/cf-threshold-signature/src/lib.rs Outdated Show resolved Hide resolved
state-chain/runtime/src/lib.rs Outdated Show resolved Hide resolved
state-chain/pallets/cf-threshold-signature/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@dandanlen dandanlen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TLDR - I think we should add a name to the ChainCrypto trait instead of just using Arbitrum.

@dandanlen
Copy link
Collaborator

In fact it doesn't even have to be a NAME string, it just has to be something we can match on.

@dandanlen dandanlen changed the title Fix/scale types for pending ceremonies fix: scale types for pending ceremonies Oct 18, 2024
@dandanlen dandanlen added this pull request to the merge queue Oct 18, 2024
Merged via the queue into main with commit 4115ff3 Oct 18, 2024
48 of 49 checks passed
@dandanlen dandanlen deleted the fix/scale_types_for_pending_ceremonies branch October 18, 2024 15:06
syan095 added a commit that referenced this pull request Oct 23, 2024
* origin/main:
  feat: broker can encode btc smart contract call (#5329)
  chore: localnet recreate script can use defaults (#5338)
  feat: witnessing btc smart contract swaps (#5331)
  feat: Solana CCM fallback (#5316)
  fix: scale types for pending ceremonies (#5286)
  chore: Prune historical values in Validator pallet (#5292)
  feat: expose deposit transaction hash from ingress-egress-tracker (#5320)

# Conflicts:
#	Cargo.lock
#	engine/src/witness/btc/smart_contract.rs
syan095 added a commit that referenced this pull request Oct 29, 2024
…waps-close-accounts

* origin/main: (44 commits)
  fix: expire all previous epochs (#5279)
  feat: add/update contract swaps parameters (#5343)
  chore: add address to solana logging (#5353)
  fix: ignore dust underflows in order fills rpc (#5352)
  chore: consistent naming prewitnessed (#5351)
  feat: engine-runner verifies gpg signature of old dylib when downloaded (#5339)
  feat: tainted transaction reporting (#5310)
  bug: change_utxo not always present (#5340)
  feat: structured error return types for rpcs (#5346)
  chore: unify dependencies to root cargo.toml (#5333)
  feat: Submit a slot number alongside nonce (#5297)
  chore: use node version from `.nvmrc` 📌 (#5336)
  chore: add engine account_info logging (#5347)
  chore: replace manual scale encoding for ts-scale (#5335)
  chore: more consistent params in Broker API (#5342)
  feat: broker can encode btc smart contract call (#5329)
  chore: localnet recreate script can use defaults (#5338)
  feat: witnessing btc smart contract swaps (#5331)
  feat: Solana CCM fallback (#5316)
  fix: scale types for pending ceremonies (#5286)
  ...

# Conflicts:
#	Cargo.lock
#	state-chain/chains/src/sol/api.rs
#	state-chain/pallets/cf-broadcast/src/migrations.rs
#	state-chain/pallets/cf-environment/Cargo.toml
dandanlen pushed a commit that referenced this pull request Oct 30, 2024
* Ensure correct decoding of pending ceremonies using substrates reference code for SCALE types

* added type check

* identify implementation via ChainCrypto instead of Chain

* name fields and types
dandanlen pushed a commit that referenced this pull request Oct 31, 2024
* Ensure correct decoding of pending ceremonies using substrates reference code for SCALE types

* added type check

* identify implementation via ChainCrypto instead of Chain

* name fields and types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants