-
Notifications
You must be signed in to change notification settings - Fork 7
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
[PLA-1734][PLA-1743] Fixes WhitelistedPallet, replaces IsFuelTankOwner by CanDispatch #42
Conversation
PR Description updated to latest commit (b03ce2a) |
PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
Signed-off-by: Leonardo Custodio <leonardo@enjin.io>
Signed-off-by: Leonardo Custodio <leonardo@enjin.io>
Type
enhancement, bug_fix
Description
IsFuelTankOwner
withCanDispatch
inDispatchMutation
to utilize new validation logic based on dynamic rule sets.CanDispatch
rule class that encapsulates complex validation logic for dispatch operations, enhancing security and flexibility.Changes walkthrough
11 files
DispatchMutation.php
Update DispatchMutation Validation Rules
src/GraphQL/Mutations/DispatchMutation.php
CanDispatch
rule.IsFuelTankOwner
withCanDispatch
in validation rules, passingruleSetId
as a parameter.MaxFuelBurnPerTransactionParams.php
Add Validate Method to MaxFuelBurnPerTransactionParams
src/Models/Substrate/MaxFuelBurnPerTransactionParams.php
validate
method that always returns true.PermittedCallsParams.php
Add Validate Method to PermittedCallsParams
src/Models/Substrate/PermittedCallsParams.php
validate
method that always returns true.PermittedExtrinsicsParams.php
Enhance PermittedExtrinsicsParams with Debugging and Validation
src/Models/Substrate/PermittedExtrinsicsParams.php
extrinsics
parameter.validate
method that always returns true.RequireTokenParams.php
Implement Token Validation in RequireTokenParams
src/Models/Substrate/RequireTokenParams.php
validate
method to check token ownershipand balance.
TankFuelBudgetParams.php
Add Validate Method to TankFuelBudgetParams
src/Models/Substrate/TankFuelBudgetParams.php
validate
method that always returns true.UserFuelBudgetParams.php
Add Validate Method to UserFuelBudgetParams
src/Models/Substrate/UserFuelBudgetParams.php
validate
method that always returns true.WhitelistedCallersParams.php
Add Validate Method to WhitelistedCallersParams
src/Models/Substrate/WhitelistedCallersParams.php
validate
method that checks if a caller is in the whitelistedcallers list.
WhitelistedCollectionsParams.php
Add Validate Method to WhitelistedCollectionsParams
src/Models/Substrate/WhitelistedCollectionsParams.php
validate
method that always returns true.WhitelistedPalletsParams.php
Update WhitelistedPalletsParams with Validation Logic
src/Models/Substrate/WhitelistedPalletsParams.php
fromEncodable
to handle arrays.validate
method to check if a pallet is whitelisted.CanDispatch.php
Implement CanDispatch Rule with Comprehensive Validation
src/Rules/CanDispatch.php
CanDispatch
implementingDataAwareRule
andValidationRule
.