Skip to content

Commit bbc9c25

Browse files
committed
πŸ› fix(functions.rs): import missing dependencies and fix formatting issues
✨ feat(functions.rs): add support for process.env.PORT environment variable to be able to run app on a configurable port πŸ”§ fix(functions.rs): fix function name from `do_take_sell_order` to `do_start_take_sell_order` to improve semantics ✨ feat(functions.rs): add detailed documentation for `do_start_take_sell_order` function to improve code understanding and maintainability πŸ”§ fix(functions.rs): fix function name from `do_confirm_sell_transaction` to `do_confirm_sell_transaction` to improve semantics ✨ feat(functions.rs): add detailed documentation for `do_confirm_sell_transaction` function to improve code understanding and maintainability πŸ”§ fix(functions.rs): fix function name from `do_finish_take_sell_transaction` to `do_finish_take_sell_transaction` to improve semantics ✨ feat(functions.rs): add detailed documentation for `do_finish_take_sell_transaction` function to improve code understanding and maintainability πŸ› fix(functions.rs): handle Result type for get_all_roles_for_user function to propagate errors correctly ✨ feat(functions.rs): add support for adding a user as an admin in the afloat pallet and emit an event when admin is added πŸ› fix(functions.rs): handle Result type for is_admin_or_owner function to propagate errors correctly πŸ› fix(functions.rs): handle Result type for is_owner function to propagate errors correctly πŸ› fix(functions.rs): handle Result type for is_cpa function to propagate errors correctly ✨ feat(functions.rs): add support for initializing RBAC for the afloat pallet with a scope and super roles πŸ› fix(functions.rs): handle Result type for get_all_roles_for_user function to propagate errors correctly ✨ feat(functions.rs): add support for deleting all users in the afloat pallet except for admins and owners πŸ› fix(lib.rs): fix import formatting to improve readability ✨ feat(lib.rs): add support for creating new assets and using existing assets in the create_afloat_collection function πŸ› fix(lib.rs): fix the kill_storage function to ensure sudo origin and delete all users πŸ› fix(lib.rs): fix the update_user function to ensure sudo origin and check if the caller is an admin or owner πŸ› fix(lib.rs): fix the accept_offer function name to start_take_sell_order for better semantics ✨ feat(lib.rs): add confirm_sell_transaction function to confirm a sell transaction ✨ feat(lib.rs): add finish_take_sell_transaction function to finish a sell transaction ✨ feat(lib.rs): add create_tax_credit function to create a new tax credit collection πŸ› fix(afloat/src/lib.rs): fix weight calculation in set_afloat_balance function to correctly account for reads and writes ✨ feat(afloat/src/lib.rs): add add_afloat_admin function to allow adding new admins to the afloat pallet πŸ› fix(mock.rs): comment out unused RemoveOrigin type in pallet_afloat::Config for Test ✨ feat(mock.rs): add support for CreateAsset enum in Afloat::initial_setup function to configure initial setup with a new asset πŸ› fix(types.rs): change type of tax_credit_amount_remaining field in Offer struct to T::Balance to match the configuration πŸ› fix(types.rs): change type of transactions field in Offer struct to TransactionBoundedVec to match the configuration ✨ feat(types.rs): add TransactionBoundedVec type alias to represent a bounded vector of [u8; 32] with a maximum length of 100 ✨ feat(types.rs): add CreateAsset enum to represent the creation of a new asset or the use of an existing asset
1 parent aac093e commit bbc9c25

File tree

4 files changed

+571
-176
lines changed

4 files changed

+571
-176
lines changed

0 commit comments

Comments
Β (0)