[PLA-1931] Fixes requireSignature in ingest #80
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Bug fix
Description
REQUIRE_SIGNATURE
case to theDispatchRule
enum and integrated it into thetoKind
method.RequireSignatureParams
to handle both array and string inputs forsignature
, with appropriate conversions usingSS58Address::getPublicKey
andHexConverter::prefix
.FuelTankCreated
service to remove unused variables and streamline parameter handling forreserves_account_creation_deposit
.Changes walkthrough 📝
DispatchRule.php
Add `REQUIRE_SIGNATURE` case to DispatchRule enum.
src/Enums/DispatchRule.php
REQUIRE_SIGNATURE
to theDispatchRule
enum.RequireSignatureParams
in thetoKind
method.RequireSignatureParams
import.RequireSignatureParams.php
Enhance `RequireSignatureParams` to support flexible signature input.
src/Models/Substrate/RequireSignatureParams.php
array|string
forsignature
and convertit using
SS58Address::getPublicKey
.toEncodable
method to useSS58Address::getPublicKey
.toArray
method to useHexConverter::prefix
.FuelTankCreated.php
Refactor `FuelTankCreated` to streamline parameter handling.
src/Services/Processor/Substrate/Events/Implementations/FuelTanks/FuelTankCreated.php
reservesAccountCreationDeposit
.reserves_account_creation_deposit
to fetch value directly fromdescriptor.user_account_management
.