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

Feature/bump v1.3.0 #25

Merged
merged 36 commits into from
Dec 7, 2023
Merged

Feature/bump v1.3.0 #25

merged 36 commits into from
Dec 7, 2023

Conversation

tlacloc
Copy link
Contributor

@tlacloc tlacloc commented Dec 7, 2023

No description provided.

tlacloc and others added 30 commits October 18, 2023 12:35
…5-22 channel

🔧 fix(rust-toolchain.toml): specify the exact nightly channel version to ensure consistent build environment
…For<Self> instead of Self::BlockNumber for better compatibility and flexibility
🔺 chore(pallets/afloat): update codec version to 3.6.1
🔺 chore(pallets/bitcoin-vaults): update codec version to 3.6.1
🔺 chore(pallets/confidential-docs): update codec version to 3.6.1
🔺 chore(pallets/fruniques): update codec version to 3.6.1
🔺 chore(pallets/fund-admin-records): update codec version to 3.6.1
🔺 chore(pallets/fund-admin): update codec version to 3.6.1
🔺 chore(pallets/gated-marketplace): update codec version to 3.6.1
🔺 chore(pallets/mapped-assets): update codec version to 3.6.1 and log version to 0.4.17
🔺 chore(pallets/rbac): update codec version to 3.6.1

🔺 chore(pallets/afloat): update scale-info version to 2.5.0
🔺 chore(pallets/bitcoin-vaults): update scale-info version to 2.5.0
🔺 chore(pallets/confidential-docs): update scale-info version to 2.5.0
🔺 chore(pallets/fruniques): update scale-info version to 2.5.0
🔺 chore(pallets/fund-admin-records): update scale-info version to 2.5.0
🔺 chore(pallets/fund-admin): update scale-info version to 2.5.0
🔺 chore(pallets/gated-marketplace): update scale-info version to 2.5.0
🔺 chore(pallets/mapped-assets): update scale-info version to 2.5.0
🔺 chore(pallets/rbac): update scale-info version to 2.5.0

📦 chore(Cargo.toml): update dependencies versions

🔺 deps(Cargo.toml): update codec to version 3.6.1
🔺 deps(Cargo.toml): update log to version 0.4.14
🔺 deps(Cargo.toml): update scale-info to version 2.5.0
🔺 deps(Cargo.toml): update frame-support to use polkadot-v1.0.0 branch
…ersions

🐛 fix(mapped-assets): import missing sp_io::hashing::blake2_256 in functions.rs

✨ feat(mapped-assets): add AfloatRole enum and related functions in types.rs
…ility and performance

🐛 fix(functions.rs): fix cloning of class_id variable to prevent ownership issues
✨ feat(functions.rs): add support for creating frunique collections with configurable owner and admin roles
🐛 fix(functions.rs): fix cloning of collection variable to prevent ownership issues
…e-support, frame-system, sp-core, sp-io, sp-runtime, sp-std to improve compatibility and stability

🔧 fix(functions.rs): import BlockNumberFor from frame_system::pallet_prelude to fix compilation error
🔧 fix(lib.rs): update weight for ocw_insert_descriptors, ocw_insert_psbts, ocw_finalize_psbts to improve performance and resource usage
🔍 chore(.gitignore): add /pallets/fund-admin/scripts directory to be ignored by git
…n order to enable default values for its fields
* Mapped assets pallet DebitFlags struct is private to the crate, so the debitFlags parameter from the afloat_do_burn method was removed and the debitFlags created internally, finally updated the afloat pallet accordingly. AssetId type is no longer Copy, so called the clone method where necessary. CollectionId type is no longer Copy, so called the clone method where necessary. JSON NumberValue struct has a new negative field, so this field was added as necesary. GenesisBuild has been deprecated, so the BitcoinVaults and MappedAssets pallets to use the new BuildGenesisConfig trait. Updated the block_number parameter type to be BlockNumberFor. Added does_asset_exist method to the MappedAssets pallet. Updated the way of checking overflow in the MappedAssets pallet to use checked_add. Added back the Rbac type to the MappedAssets pallet.

* The where clause of the enum when contructing a mock runtime has been deprecated, so this clause was removed for all pallet mocks.Nonce and Block types have been added to the system::Config, and the Index, BlockNumber and Header types have been removed, so all pallet implementations for the Test runtime have been updated accordingly. FreezeIdentifier, MaxFreezes, RuntimeHoldReason and MaxHolds types have been added for the balances pallet, so the test runtimes for pallets that use the balances pallet have been added accordingly. The GenesisConfig is now generic over the runtime, so the test build_storage for all pallets have been updated accordingly, also this is now behind the BuildStorage trait so it has been imported where required. The UnknownAsset error of the mapped assets pallet has been updated to be Unknown, so updated some of the tests accordingly. The tokens BalanceConversion trait has been replaced by ConversionToAssetBalance, so updated the mapped assets test pallet accordingly.
… usage

🐛 fix(mock.rs): change ExistentialDeposit type from ConstU128<100> to ConstU64<1> to set a lower minimum balance requirement
🐛 fix(mock.rs): remove MaxReserves configuration to use default value
🐛 fix(mock.rs): remove MaxFreezes configuration to use default value
✨ feat(mock.rs): add Result return type to created and destroyed functions in AssetsCallback trait implementation
…ser_info_edit_works, update_other_user_info_by_not_admin_fails, update_other_user_info_by_admin_works, update_user_info_delete_works, set_afloat_balance_works, set_balance_by_other_than_owner_fails to match changes in the struct definition

✨ feat(tests.rs): add support for new struct field names in sign_up_works, update_user_info_edit_works, update_other_user_info_by_not_admin_fails, update_other_user_info_by_admin_works, update_user_info_delete_works, set_afloat_balance_works, set_balance_by_other_than_owner_fails to improve code readability and maintainability

🔨 refactor(tests.rs): update test functions to use new struct field names for SignUpArgs
…adability

🔧 chore(lib.rs): refactor default value for bdk_services_url in GenesisConfig to use a hardcoded value instead of cloning the input value
…dk_services_url.clone() for improved code readability and maintainability
…from frame support, so had to add it directly as a dependency on the pallets, and update all imports accordingly. sp-std is no longer exported from frame support, so had to add it directly as a dependency on the pallets, and update all imports accordingly. The balance transfer method is exposed through the token Mutate trait so had to import it, and update the call to transfer with the correct parameters. DispatchError is no longer exported from frame support so had to import it directly from sp_runtime. The https://github.com/paritytech/substrate repository has been archived, so updated all dependencies to use the new repo https://github.com/paritytech/substrate
…o be 0. Removed the migration from the mapped assets pallet as the pallet was created after the migration code.
@@ -27,7 +27,7 @@ version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
Copy link

Choose a reason for hiding this comment

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

GPT summary of 3eef89 - 4d949c:
Error: couldn't generate summary

@@ -25,7 +25,7 @@ frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", tag =
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", tag = "v1.3.0-rc1", default-features = false }
Copy link

Choose a reason for hiding this comment

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

GPT summary of e344d4 - a36bc6:

  • The version of the pallet-timestamp dependency was updated from v1.3.0-rc1 to 4.0.0-dev
  • The version of the pallet-fruniques dependency was updated from 0.1.0-dev
  • The version of the pallet-rbac dependency was updated from 4.0.0-dev
  • The version of the pallet-gated-marketplace dependency was updated from 4.0.0-dev

@@ -1,6 +1,6 @@
use super::*;
Copy link

Choose a reason for hiding this comment

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

GPT summary of d4b906 - 6a0c05:

  • Updated the imports to use the pallet_prelude crate
  • Replaced the usage of the UnixTime trait with the get_timestamp_in_milliseconds method from the pallet_gated_marketplace pallet
  • Added the cid_creator, group, created_by, created_date, last_modified_by, and last_modified_date fields to the UserInfo struct
  • Updated the give_role_to_user method to take in the cid_creator and group fields
  • Updated the cancel_offer method to set the cancellation_date field to the current timestamp and set the status to cancelled

@@ -15,11 +15,12 @@ pub mod types;
pub mod pallet {
Copy link

Choose a reason for hiding this comment

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

GPT summary of 68e901 - 7bbf98:

  • Added Time trait from frame_support::traits
  • Added Scale trait from sp_runtime::traits
  • Added TimestampError event
  • Changed UnixTime trait to Time trait in RuntimeEvent type
  • Added NewUser event
  • Added deposit_event fn for NewUser event
  • Added UserEdited event

@@ -68,7 +68,6 @@ impl system::Config for Test {

Copy link

Choose a reason for hiding this comment

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

GPT summary of 8b1eec - b3edb9:

  • Removed type TimeProvider from the pallet_afloat::Config implementation for Test.
  • Added type Currency to the pallet_afloat::Config implementation for Test.
  • Added type Rbac to the pallet_afloat::Config implementation for Test.

@@ -12,6 +12,7 @@ mod tests;
// mod benchmarking;
Copy link

Choose a reason for hiding this comment

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

GPT summary of 30b1c3 - 9b50e9:

  • Added a new module called migration

@@ -0,0 +1,68 @@
use crate::{
Copy link

Choose a reason for hiding this comment

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

GPT summary of None - 032f12:

  • Added use statements for crate, frame_support, and sp_runtime.
  • Added storage aliases for FruniqueCnt, FruniqueParent, and FruniqueChild.
  • Added MigrateToV1 struct and OnRuntimeUpgrade implementation.
  • If version is < 1, clear FruniqueParent and FruniqueChild storage items, set version to 1, and log.
  • Otherwise log that upgrade wasn't run.

@@ -1162,7 +1162,7 @@ impl<T: Config> Pallet<T> {
Ok(())
Copy link

Choose a reason for hiding this comment

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

GPT summary of fffca8 - f3ad44:

  • Changed the get_timestamp_in_milliseconds function from private to public.

@@ -246,7 +246,7 @@ pub(crate) fn new_test_ext() -> sp_io::TestExternalities {
config.assimilate_storage(&mut storage).unwrap();
Copy link

Choose a reason for hiding this comment

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

GPT summary of 27e096 - f32c52:

  • Changed the link in the comment from https://github.com/paritytech/substrate/issues/10479 to https://github.com/paritytech/polkadot-sdk/issues/10479

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 21370f5:

Error: couldn't generate summary

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of de38b35:

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

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of c796692:

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 6ac39b0:

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of d53eb3e:

  • Changed the type of Moment from Scale<Self::BlockNumber, Output = Self::Moment> to Scale<BlockNumberFor<Self>, Output = Self::Moment> in 3 files lib.rs, lib.rs, lib.rs

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 9dfef1d:

Error: couldn't generate summary

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of d384a53:

Error: couldn't generate summary

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 17d6130:

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 5e443de:

Error: couldn't generate summary

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 711e290:

  • Updated version of log, codec, scale-info, frame-support, frame-system, frame-benchmarking, sp-runtime, pallet-uniques, pallet-balances, sp-core, sp-io, and pallet-rbac dependencies in Cargo.toml Cargo.toml
  • Changed class_id from a reference to a clone in set_attribute functions.rs
  • Changed nex_item from a reference to a clone in do_mint functions.rs
  • Changed collection from a reference to a clone in set_collection_metadata and set_attribute functions.rs
  • Changed collection from a reference to a clone in do_create_collection functions.rs
  • Changed collection from a reference to a clone in do_nft_division functions.rs
  • Changed collection from a reference to a clone in do_mint functions.rs
  • Changed collection from a reference to a clone in insert_auth_in_frunique_collection functions.rs
  • Changed collection from a reference to a clone in do_mint_with_parent functions.rs
  • Changed collection from a reference to a clone in redeem functions.rs

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 8dc111c:

  • Updated dependencies versions Cargo.toml
  • Added BlockNumberFor type for BlockNumberProvider functions.rs
  • Updated weights for offchain worker functions lib.rs

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 64f1f0d:

  • Added *log to .gitignore
  • Moved /pallets/fund-admin/scripts from the end of the file to a new line .gitignore

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 0187673:

  • Added #[derive(Default)] annotation to the GenesisConfig struct lib.rs

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of b05e7bf:

Error: couldn't generate summary

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of ddc4779:

Error: couldn't generate summary

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of d61dc78:

  • Changed the type of Balance from u128 to u64 in pallet_balances::Config mock.rs
  • Lowered ExistentialDeposit from ConstU128<100> to ConstU64<1> in pallet_balances::Config mock.rs
  • Removed MaxReserves from pallet_balances::Config mock.rs
  • Added FreezeIdentifier to pallet_balances::Config mock.rs
  • Added MaxFreezes to pallet_balances::Config mock.rs
  • Added Result<(), ()> return type to created and destroyed functions in AssetsCallbackHandle mock.rs
  • Changed the argument of Afloat::initial_setup from separate arguments to one InitialSetupArgs struct mock.rs

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 1970cf8:

Error: couldn't generate summary

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of 13d45c2:

Error: couldn't generate summary

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of d19802d:

  • Changed the mutability of the transaction variable functions.rs
  • Set the seller confirmation date and confirmed status for the transaction functions.rs
  • Set the completed status of the transaction to true functions.rs

Copy link

github-actions bot commented Dec 7, 2023

GPT summary of cb14366:

  • Changed the bdk_services_url genesis config to https://bdk.hashed.systems lib.rs
  • Removed the #[cfg(feature = "std")] from the GenesisConfig impl lib.rs

@tlacloc tlacloc merged commit 2e4eae7 into main Dec 7, 2023
2 checks passed
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