-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: allow attesters to agree on the new targets & support eth #1015
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
✨ Next version based on commits since last releasev1.30.0-rc.0 |
🔎 Subalfred feature checks ✅ pallets/3vm ✅ pallets/account-manager ✅ pallets/attesters ✅ pallets/circuit ✅ pallets/clock ✅ pallets/contracts ✅ pallets/contracts-registry ✅ pallets/evm ✅ pallets/executors ✅ pallets/portal ✅ pallets/rewards ✅ pallets/xdns ✅ runtime/common-pallets ✅ runtime/common-types ✅ runtime/mini-mock ✅ runtime/standalone ✅ runtime/t0rn-parachain ✅ runtime/t3rn-parachain |
🤖 OpenAI High-level summaryThe changes involve modifications to the logic and functionality of the codebase, including adding new traits, functions, modules, and types, modifying existing types, and introducing new constants. The changes also impact the reward system and introduce a new benefit source. Some changes involve generating private keys for multiple blockchains and adding tests for functions that interact with the Polkadot blockchain API. Therefore, it is crucial to review the changes thoroughly to ensure that they are integrated correctly and do not introduce any bugs or security vulnerabilities. Table of files and their summaries
Chat with 🤖 OpenAI Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clippy found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
|
||
for target in AttestationTargets::<T>::get() { | ||
let mut new_next_batch = BatchMessage::default(); | ||
new_next_batch.created = n; |
Check warning
Code scanning / clippy
field assignment outside of initializer for an instance created with Default::default()
created: frame_system::Pallet::<T>::block_number(), | ||
}; | ||
let mut new_next_batch = BatchMessage::default(); | ||
new_next_batch.created = frame_system::Pallet::<T>::block_number(); |
Check warning
Code scanning / clippy
field assignment outside of initializer for an instance created with Default::default()
let slash_treasury_account = | ||
T::TreasuryAccounts::get_treasury_account(TreasuryAccount::Slash); | ||
let slash_treasury_balance = T::Currency::free_balance(&slash_treasury_account); | ||
let repatriation_percentage = Self::repatriation_percentage(); |
Check warning
Code scanning / clippy
unused variable: `repatriation_percentage`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @3h4x requested, I reviewed the Rust-related part of the PR. Just a couple of comments.
Summary of changes
@openai: ignore
Acceptance Checklist
What types of changes does your code introduce?
Put an
x
in the boxes that applyDependencies
Bug (non-breaking change which fixes an issue):
Feature (non-breaking change which adds functionality)
Substrate
If this change involves substrate, have you remembered:
Breaking change (a feature that would cause existing functionality not to work as expected)
CI/CD
Documentation Update
Further comments
Feel free to explain in further detail your choices if this is a significant change.
Screenshots (Please demonstrate this working in PolkadotJS)
Summary by OpenAI
Release Notes:
SlashTreasury
.RewardsWriteApi
trait with a function to repatriate executor from slash treasury.