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 dependencies #20

Closed
wants to merge 7 commits into from
Closed

fix dependencies #20

wants to merge 7 commits into from

Conversation

tlacloc
Copy link
Contributor

@tlacloc tlacloc commented Oct 18, 2023

PR summary so far:

  • Updated dependencies in 8 pallets to use the polkadot-v1.0.0 branch from the paritytech/substrate repository
  • Added optional flag to frame-benchmarking dependency
  • Fix format on Cargo.toml
  • Added resolver = "2" to the [workspace] section in Cargo.toml

🔀 chore(Cargo.toml): reformat members list for better readability and maintainability
…me and sp-core dependencies to allow for flexibility in using compatible versions

🔧 chore(Cargo.toml): remove specific version requirement for sp-runtime and sp-core dependencies to allow for flexibility in using compatible versions
🔧 chore(Cargo.toml): remove specific version requirement for sp-runtime and sp-core dependencies to allow for flexibility in using compatible versions
@tlacloc tlacloc self-assigned this Oct 18, 2023
@@ -14,20 +14,20 @@ dependencies = [

Choose a reason for hiding this comment

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

GPT summary of 7d770f - bd3e0c:
Error: couldn't generate summary

@@ -1,14 +1,16 @@
[workspace]

Choose a reason for hiding this comment

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

GPT summary of c2a02c - fe7e2a:

  • Added resolver = "2" to the [workspace] section
  • Added 8 pallets to the members list
  • Added panic = 'unwind' to the [profile.release] section

@@ -23,13 +23,13 @@ scale-info = { default-features = false, version = "2.0.1", features = [
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }

Choose a reason for hiding this comment

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

GPT summary of d76a5a - 2ee1e0:

  • Updated scale-info, frame-support, frame-system, frame-benchmarking, sp-runtime, pallet-uniques, pallet-balances, and pallet-rbac to use the polkadot-v1.0.0 branch from the paritytech/substrate repository.
  • Updated sp-core and sp-io in the dev-dependencies section to use the polkadot-v1.0.0 branch from the paritytech/substrate repository.

@@ -23,11 +23,11 @@ scale-info = { version = "2.0.1", default-features = false, features = [
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }

Choose a reason for hiding this comment

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

GPT summary of 03df82 - 30f219:

  • Updated the version numbers of scale-info, frame-support, frame-system, frame-benchmarking, sp-runtime, pallet-timestamp, sp-core, and sp-io to polkadot-v1.0.0.
  • Removed the version number from sp-runtime and sp-core.

@@ -23,13 +23,13 @@ scale-info = { version = "2.0.1", default-features = false, features = [
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }

Choose a reason for hiding this comment

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

GPT summary of e84e99 - e069df:

  • Updated scale-info, frame-support, frame-system, frame-benchmarking, sp-runtime, pallet-timestamp, pallet-rbac, and pallet-balances dependencies
  • Updated sp-core and sp-io dev-dependencies

@github-actions
Copy link

GPT summary of 50e8ae7:

Error: couldn't generate summary

@github-actions
Copy link

GPT summary of cfb660d:

PR summary so far:

  • Updated dependencies in 8 pallets to use the polkadot-v1.0.0 branch from the paritytech/substrate repository
  • Added optional flag to frame-benchmarking dependency
  • Added pallet-rbac dependency
  • Added resolver = "2" to the [workspace] section in Cargo.toml

…-info crates to improve compatibility and stability

🚀 chore(Cargo.toml): update dependencies versions for frame-benchmarking, frame-support, and frame-system crates to improve compatibility and stability

🚀 chore(Cargo.toml): update dependencies versions for sp-core, sp-io, and sp-runtime crates to improve compatibility and stability

🔨 refactor(lib.rs): remove unused imports and update documentation links

🔨 refactor(lib.rs): remove unused storage item MyBytesVal and associated dispatchable insert_my_bytes

🔨 refactor(lib.rs): remove unused migrations module

🔨 refactor(lib.rs): remove unused tests module

🔨 refactor(lib.rs): remove unused benchmarking module

🔨 refactor(lib.rs): remove unused STORAGE_VERSION constant

🔨 refactor(lib.rs): remove unused Pallet struct

🔨 refactor(lib.rs): remove unused SomethingStored event parameter names

🔨 refactor(lib.rs): remove unused MyBytes type

🔨 refactor(lib.rs): remove unused Error variant parameter names

🔨 refactor(lib.rs): remove unused cause_error dispatchable weight calculation

🔨 refactor(lib.rs): remove unused do_something dispatchable weight calculation

🔨 refactor(lib.rs): remove unused do_something dispatchable origin check

🔨 refactor(lib.rs): remove unused do_something dispatchable event emission

🔨 refactor(lib.rs): remove unused do_something dispatchable storage update

🔨 refactor(lib.rs): remove unused do_something dispatchable parameter names

🔨 refactor(lib.rs): remove unused do_something dispatchable return type

🔨 refactor(lib.rs): remove unused Config trait type WeightInfo

🔨 refactor(lib.rs): remove unused Config trait type RuntimeEvent

🔨 refactor(lib.rs): remove unused Config trait

🔨 refactor(lib.rs): remove unused pallet module

🔨 refactor(mock.rs): refactor mock runtime configuration to improve readability and remove unused code
🔧 chore(mock.rs): update SS58Prefix to 42 for consistency with the network configuration
@github-actions
Copy link

GPT summary of 93d00b7:

Error: couldn't generate summary

PR summary so far:

  • Updated version numbers of dependencies and dev-dependencies for 8 pallets
  • Added resolver = "2" to the [workspace] section
  • Updated link in the documentation and added weights module
  • Added getter for storage item, event and error enum
  • Added dispatchable functions to modify storage and emit events

@@ -64,7 +64,7 @@ impl<T: Config> Pallet<T> {
AfloatCollectionId::<T>::put(collection_id);

Choose a reason for hiding this comment

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

GPT summary of 037753 - 4c39a1:

  • Added an error return when trying to create a fruniques collection
  • Added an ensure check to make sure the user has enough afloat balance
  • Added a check to ensure the tax credit amount does not overflow
  • Added a check to ensure the tax credit amount does not underflow

@@ -33,7 +33,7 @@ impl<T: Config> Pallet<T> {
vault_members.clone().into_iter().try_for_each(|acc| {

Choose a reason for hiding this comment

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

GPT summary of 046dcc - a963f9:

  • Added a check for if a user has an xpub when creating a vault
  • Updated an error message when a signer does not have the permissions needed to sign a proposal
  • Updated the logic for when a xpub is available
  • Updated logic for when a proposal can be finalized
  • Updated logic for when a vault can be broadcasted
  • Updated the logic for when a proposal can be broadcasted
  • Updated the logic for when a proposal can be retrieved from the network

@@ -279,7 +279,7 @@ pub mod pallet {
// transactions without it

Choose a reason for hiding this comment

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

GPT summary of 67d442 - 632f22:

  • Changed the return type of if !signer.can_sign() from return; to return
  • Changed the return type of if tx_res.is_err() in do_insert_descriptors and do_insert_psbt from return Some(tx_res); to return Some(tx_res)
  • Added checks for signed payloads in ocw_insert_descriptors, ocw_insert_psbts, and ocw_finalize_psbts with return InvalidTransaction::BadProof.into() if the payloads are not verified

@@ -117,8 +117,8 @@ impl<T: Config> GroupMember<T> {
}

Choose a reason for hiding this comment

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

GPT summary of 84881f - 6735c9:

  • Changed the logic of the can_remove_group_member function to require that the group member to be removed is not an owner, and that either the caller is an owner, or the caller is an admin and the group member to be removed was added by the caller.

@@ -341,7 +341,7 @@ pub mod pallet {

Choose a reason for hiding this comment

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

GPT summary of 5c3480 - b862cf:

  • Fixed a bug in do_spawn() where the return type was incorrect
  • Updated the verify() function to prevent a frunique from being verified more than once

@@ -43,10 +43,10 @@ pub struct ParentInfo<T: Config> {

Choose a reason for hiding this comment

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

GPT summary of 27ab8f - 93a2ea:

  • Changed the logic for the PartialEq traits of the ParentInfo and ParentInfoCall structs to compare all fields with a single condition.

@@ -1606,8 +1606,8 @@ impl<T: Config> Pallet<T> {
DrawdownsInfo::<T>::get(drawdown_id).ok_or(Error::<T>::DrawdownNotFound)?;

Choose a reason for hiding this comment

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

GPT summary of 5ad228 - 5faf71:

  • Ensured that drawdown and revenue types are supported for bulk upload.
  • Checked that a user can only have one role and that an admin role cannot be added.
  • Ensured that investors can only be assigned to one project, developers to three, and contractors to five.
  • Ensured that administrators have global scope and cannot be assigned to a project.
  • Ensured that drawdowns, revenues, and revenue transactions are in the correct status for actions to be performed on them.
  • Transferred funds from admin to user.

@@ -376,8 +376,8 @@ fn get_drawdown_id(

Choose a reason for hiding this comment

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

GPT summary of 51ad5c - c9d233:

  • Modifications were made to the get_drawdown_id(), get_transaction_id(), get_revenue_transaction_id(), expenditures_add_a_hard_cost_budget_expenditure_for_a_given_project_works(), expenditures_add_a_softcost_budget_expenditure_for_a_given_project_works(), expenditures_add_an_operational_budget_expenditure_for_a_given_project_works(), expenditures_add_an_others_budget_expenditure_for_a_given_project_works(), expenditures_edit_a_given_expenditure_works(), expenditures_admnistrator_tries_to_update_a_non_existent_expenditure_should_fail(), and expenditures_delete_a_selected_expenditure_works() functions, which involved changes to the comparison logic and formatting of the code.

@@ -176,7 +176,7 @@ impl<T: Config> Pallet<T> {
AccountOrApplication::Application(application_id) => <ApplicationsByAccount<T>>::iter()

Choose a reason for hiding this comment

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

GPT summary of ee3073 - f6924d:

  • Fixed an issue with the AccountOrApplication::Application function to return the correct account
  • Fixed an issue with the MarketplaceRole::Owner and MarketplaceRole::Admin functions to prevent admins from deleting themselves
  • Fixed an issue with the create_offer function to ensure the price is valid
  • Fixed an issue with the create_offer function to ensure the holder of NFT is in the same marketplace as the caller making the offer
  • Fixed an issue with the approve_application function to prevent applications that are still pending or have already been approved from being approved again
  • Fixed an issue with the enlist_sell_offer function to ensure the owner is in the marketplace
  • Fixed an issue with the redeem_item function to ensure the collection exists

@@ -238,8 +238,8 @@ fn apply_to_marketplace_works() {
));

Choose a reason for hiding this comment

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

GPT summary of e159b7 - e88400:

  • Updated the logic for the apply_to_marketplace and apply_with_custodian functions
  • Updated the logic for the remove_marketplace function to delete the storage from the applicants_by_marketplace for all application statuses (Pending, Approved, and Rejected)
  • Updated the logic for the remove_marketplace function to delete the storage from the applications_by_account and applications

@@ -150,21 +150,21 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
None => return DepositConsequence::UnknownAsset,

Choose a reason for hiding this comment

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

GPT summary of e9ffaf - 98f0c4:

  • Added checks for overflow when increasing or decreasing the supply of an asset
  • Added checks for when the minimum balance of an asset is not met
  • Added checks for when an account does not have sufficient funds
  • Added checks for when an account is frozen
  • Added checks for when an asset is frozen
  • Added checks for when an account or asset is removed
  • Added checks for when an approval is destroyed
  • Added checks for when an admin does not have permission

@@ -42,7 +42,7 @@ impl<T: Config<I>, I: 'static> StoredMap<(T::AssetId, T::AccountId), T::Extra> f
if let Some(ref mut account) = maybe_account {

Choose a reason for hiding this comment

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

GPT summary of 9e9af9 - a4669c:

  • Modified the implementation of the StoredMap function to handle the case when there are no providers
  • Changed the return value of the function to return an error if there are no providers

@@ -1159,7 +1159,7 @@ pub mod pallet {
ensure!(details.status == AssetStatus::Live, Error::<T, I>::LiveAsset);

Choose a reason for hiding this comment

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

GPT summary of fe0d42 - 1225ee:

  • Changed an if statement to return Ok(()) instead of just Ok()

@@ -123,7 +123,7 @@ pub enum ExistenceReason<Balance> {
impl<Balance> ExistenceReason<Balance> {

Choose a reason for hiding this comment

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

GPT summary of 35bb14 - 722a1a:

  • Changed the return statement of the take_deposit method from return None; to return None

@github-actions
Copy link

GPT summary of c71011f:

Error: couldn't generate summary

@github-actions
Copy link

GPT summary of 90c5ad4:

  • Added a rust-toolchain.toml file with nightly channel, components, targets, and profile rust-toolchain.toml

PR summary so far:

  • Updated dependencies and dev-dependencies in multiple pallets
  • Added rust-toolchain.toml file
  • Fixed various bugs in functions and tests
  • Added checks for overflow and permission in multiple pallets
  • Updated comparison logic and formatting in multiple pallets

🔧 chore(mock.rs): remove unused code and update runtime configuration to improve code cleanliness and maintainability
…tion

✨ feat(functions.rs): add support for process.env.PORT environment variable to be able to run app on a configurable port
🔨 refactor(lib.rs): update Moment type to use BlockNumberFor<Self> instead of Self::BlockNumber to improve compatibility and scalability
🔥 chore(lib.rs): comment out unused type RemoveOrigin to improve code readability
@@ -9,7 +9,6 @@ use sp_runtime::{
testing::Header,

Choose a reason for hiding this comment

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

GPT summary of afee51 - eabfa5:

  • Removed type UncheckedExtrinsic
  • Changed type Block from Header to MockBlock
  • Changed type Block from Block to MockBlock
  • Changed type NodeBlock from Block to MockBlock
  • Changed type UncheckedExtrinsic from MockUncheckedExtrinsic to ()
  • Changed type Header from Header to Block

@@ -13,17 +13,13 @@ use sp_runtime::{
traits::{BlakeTwo256, Extrinsic as ExtrinsicT, IdentifyAccount, IdentityLookup, Verify},

Choose a reason for hiding this comment

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

GPT summary of 79c45d - 796819:

  • Removed the UncheckedExtrinsic type and replaced it with Block type.
  • Removed NodeBlock type.
  • Added ValidateUnsigned to the BitcoinVaults pallet.
  • Changed Header type to Block type in Config for Test.

@@ -8,15 +8,11 @@ use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},

Choose a reason for hiding this comment

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

GPT summary of 0cd5c6 - b355d3:

  • Removed definitions of UncheckedExtrinsic and NodeBlock
  • Changed Header to Block in system::Config

@@ -62,7 +62,7 @@ impl<T: Config> Pallet<T> {
) -> AttributeValue<T> {

Choose a reason for hiding this comment

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

GPT summary of 140932 - a8e637:

  • Changed the attribute function to convert the attribute to a BoundedVec and handle errors when converting
  • Changed the collection_exists and instance_exists functions to return true if the collection/instance exists
  • Changed the create_frunique function to convert the NextFrunique to an ItemId and handle errors when minting
  • Changed the do_nft_division function to clone the collection argument
  • Changed the redeem function to clone the collection argument

@@ -8,14 +8,10 @@ use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},

Choose a reason for hiding this comment

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

GPT summary of a6d2bc - 1d92b3:

  • Removed the UncheckedExtrinsic and NodeBlock types
  • Changed the Block type from Header to Block
  • Changed the Lookup type from AccountId to IdentityLookup

@@ -7,16 +7,12 @@ use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},

Choose a reason for hiding this comment

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

GPT summary of 0aff65 - 840e6d:

  • Removed UncheckedExtrinsic and NodeBlock from the Test enum
  • Changed the Header type to Block type in the Config impl
  • Updated the System and FundAdminRecords pallets to use the new Block type

@@ -7,16 +7,12 @@ use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},

Choose a reason for hiding this comment

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

GPT summary of 0b699c - 5a583e:

  • Changed the type of UncheckedExtrinsic from frame_system::mocking::MockUncheckedExtrinsic<Test> to frame_system::mocking::MockBlock<Test>
  • Changed the type of Block from frame_system::mocking::MockBlock<Test> to frame_system::mocking::MockBlock<Test>
  • Removed the type of NodeBlock
  • Changed the type of Header from Header to Block
  • Added a type of BlockHashCount

@@ -37,12 +37,20 @@ pub mod pallet {

Choose a reason for hiding this comment

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

GPT summary of c3f3fc - 5d7420:

  • Changed the type of Moment to include Default, Scale, Copy, MaxEncodedLen, and StaticTypeInfo
  • Added AtLeast32Bit to the type of Moment
  • Changed the way BlockUserArgs and RedeemArgs are handled

@@ -11,7 +11,6 @@ use sp_runtime::{
};

Choose a reason for hiding this comment

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

GPT summary of 788ebb - dc9351:

  • Changed the type of Balance to u128
  • Removed UncheckedExtrinsic type
  • Updated Block type to frame_system::mocking::MockBlock<Test>
  • Updated System pallet to include Config, Storage, and Event<T>
  • Updated GatedMarketplace pallet to include Storage and Event<T>
  • Updated Config to include Hashing, AccountId, Lookup, Block, RuntimeEvent, BlockHashCount, and Version

@@ -33,14 +33,10 @@ use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},

Choose a reason for hiding this comment

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

GPT summary of 47de16 - e3f0e0:

  • Removed UncheckedExtrinsic type from Test enum
  • Changed Block type from frame_system::mocking::MockBlock<Test> to frame_system::Config for Test enum
  • Changed Header type to Block type for Test enum
  • Added ConstU64<250> type for BlockHashCount field in Test enum

@@ -7,15 +7,11 @@ use sp_runtime::{
testing::Header,

Choose a reason for hiding this comment

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

GPT summary of 3815a6 - df8c09:

  • Removed Block, NodeBlock, and UncheckedExtrinsic from the Test enum.
  • Modified Config trait to use MockBlock instead of Header.

@github-actions
Copy link

GPT summary of d5a7d32:

Error: couldn't generate summary

@github-actions
Copy link

GPT summary of e5bfaa6:

  • Changed the type of Moment to be compatible with BlockNumberFor<Self> lib.rs
  • Updated try_get and insert calls to include a clone() functions.rs
  • Updated the origin type of RemoveOrigin lib.rs
  • Updated do_mint and set_metadata calls to include a clone() functions.rs
  • Inserted frunique_data into storage functions.rs
  • Updated try_mutate call to include a clone() functions.rs

PR summary so far:

  • Updated dependencies and dev-dependencies of multiple pallets
  • Added checks for signed payloads, overflows, insufficient funds, frozen accounts, and permissions
  • Changed return types and comparison logic in multiple functions
  • Updated the logic of multiple functions to include error handling and cloning of arguments

@tlacloc tlacloc closed this Oct 30, 2023
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.

1 participant