-
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-1931] Add dispatch with require signature #79
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
Do we need to update/add any tests for this?
done |
PR Type
Enhancement, Bug fix
Description
DispatchSettingsInputType
to encapsulate dispatch settings, includingpaysRemainingFee
andsignature
.DispatchMutation
to support new dispatch settings and added validation rules fordispatch.settings.signature
.RequireSignatureParams
to useSS58Address::getPublicKey
for encoding.RequireSignatureInputType
toExpirableSignatureInputType
and added anexpiryBlock
field.requireSignature
in Substrate implementation.Changes walkthrough 📝
2 files
deprecated.php
Add deprecation message for dispatch argument
lang/en/deprecated.php
dispatch.args.paysRemainingFee
.input_type.php
Update input type descriptions for dispatch and signature
lang/en/input_type.php
require_signature
fields.dispatch_settings
andexpirable_signature
fields.
6 files
DispatchMutation.php
Enhance DispatchMutation with dispatch settings and validation
src/GraphQL/Mutations/DispatchMutation.php
dispatch.settings.paysRemainingFee
anddispatch.settings.signature
.dispatch.settings.signature
.dispatch.settings
.HasFuelTankValidationRules.php
Add validation for requireSignature in fuel tank rules
src/GraphQL/Traits/HasFuelTankValidationRules.php
requireSignature
in common rules.DispatchInputType.php
Add settings field to DispatchInputType
src/GraphQL/Types/Input/DispatchInputType.php
settings
field to DispatchInputType.DispatchRuleInputType.php
Update requireSignature field type in DispatchRuleInputType
src/GraphQL/Types/Input/DispatchRuleInputType.php
requireSignature
field type toString
.DispatchSettingsInputType.php
Add DispatchSettingsInputType for dispatch settings
src/GraphQL/Types/Input/DispatchSettingsInputType.php
paysRemainingFee
andsignature
fields.ExpirableSignatureInputType.php
Rename and extend ExpirableSignatureInputType
src/GraphQL/Types/Input/ExpirableSignatureInputType.php
RequireSignatureInputType
toExpirableSignatureInputType
.expiryBlock
field to the input type.2 files
RequireSignatureParams.php
Update RequireSignatureParams encoding logic
src/Models/Substrate/RequireSignatureParams.php
toEncodable
method to useSS58Address::getPublicKey
.Substrate.php
Fix handling of requireSignature in Substrate implementation
src/Services/Blockchain/Implemetations/Substrate.php
requireSignature
directly instead of itssignature
field.