From 154caf534fdf4b9c6e1b0600167b085dbccdcdb9 Mon Sep 17 00:00:00 2001 From: Leonardo Custodio Date: Tue, 7 Jan 2025 09:27:02 -0300 Subject: [PATCH] Adds ray on dev --- composer.json | 1 + lang/en/mutation.php | 6 +++--- lang/en/type.php | 4 ++-- src/Services/Processor/Substrate/Codec/Decoder.php | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 5002891..0ccc674 100644 --- a/composer.json +++ b/composer.json @@ -38,6 +38,7 @@ "phpunit/php-code-coverage": "^11.0", "phpunit/phpunit": "^11.5", "rector/rector": "^2.0", + "spatie/laravel-ray": "^1.30", "roave/security-advisories": "dev-latest" }, "autoload": { diff --git a/lang/en/mutation.php b/lang/en/mutation.php index 2be54a7..7a3952f 100644 --- a/lang/en/mutation.php +++ b/lang/en/mutation.php @@ -3,7 +3,7 @@ return [ 'create_fuel_tank.description' => 'Creates a fuel tank, a pool of Enjin Coins (ENJ) used to cover transaction fees for eligible users. Fuel tanks are customizable and operate based on defined rules to target specific actions or accounts that meet certain criteria. For more details, refer to the [Fuel Tanks documentation](https://docs.enjin.io/docs/using-fuel-tanks).', 'create_fuel_tank.args.account' => 'The fuel tank will be created from this wallet account.', - 'destroy_fuel_tank.description' => << <<<'MD' Destroys a fuel tank, returning the storage deposit and any remaining balance to the fuel tank owner. **Prerequisites:** @@ -25,7 +25,7 @@ 'batch_remove_account.args.userIds' => 'List of wallet account addresses that will be removed from the fuel tank.', 'schedule_mutate_freeze_state.description' => 'Freezes or thaws a fuel tank or a rule set. If `ruleSetId` is provided, the specified rule set is targeted; otherwise, the fuel tank is targeted.', 'schedule_mutate_freeze_state.args.isFrozen' => 'Determines the state of the target. Set to `true` to freeze or `false` to thaw the fuel tank or rule set.', - 'insert_rule_set.description' => << <<<'MD' Inserts a new rule set into a fuel tank or replaces an existing one. **Important Considerations:** @@ -33,7 +33,7 @@ - Adding a rule set requires the fuel tank to be frozen; otherwise, the operation will fail. MD, 'insert_rule_set.args.requireAccount' => 'Specifies if the caller must have a Tank User Account to dispatch transactions. If `true`, the caller must have an account, or the dispatch will fail. If `false`, the caller can dispatch without an account. [Learn more](https://docs.enjin.io/docs/fuel-tank-pallet#require-account).', - 'remove_rule_set.description' => << <<<'MD' Removes a rule set from a fuel tank. **Important Considerations:** diff --git a/lang/en/type.php b/lang/en/type.php index 061ea03..cfc1e54 100644 --- a/lang/en/type.php +++ b/lang/en/type.php @@ -6,7 +6,7 @@ 'fuel_tank.field.owner_wallet' => 'The wallet account that owns the fuel tank.', 'fuel_tank.field.name' => 'The fuel tank name.', 'fuel_tank.field.reservesExistentialDeposit' => '(DEPRECATED) The flag for existential deposit.', - 'fuel_tank.field.reservesAccountCreationDeposit' => << <<<'MD' Determines how accounts are added to the Fuel Tank User Accounts and whether the Fuel Tank covers the storage deposit costs. [Learn more](https://docs.enjin.io/docs/using-fuel-tanks#user-account-management). Options: @@ -25,7 +25,7 @@ 'fuel_tank.field.accounts' => 'The fuel tank accounts.', 'fuel_tank.field.accountRules' => 'The fuel tank account rules.', 'fuel_tank.field.dispatchRules' => 'The fuel tank dispatch rules.', - 'fuel_tank.field.coveragePolicy' => << <<<'MD' Defines the coverage scope for the Fuel Tank. [Learn more](https://docs.enjin.io/docs/using-fuel-tanks#coverage-policy). Options: diff --git a/src/Services/Processor/Substrate/Codec/Decoder.php b/src/Services/Processor/Substrate/Codec/Decoder.php index 2a883db..0d84d69 100644 --- a/src/Services/Processor/Substrate/Codec/Decoder.php +++ b/src/Services/Processor/Substrate/Codec/Decoder.php @@ -68,7 +68,7 @@ public function fuelTankAccountStorageData(string $data): array 'tankDeposit' => gmp_strval(Arr::get($decoded, 'tankDeposit')), 'userDeposit' => gmp_strval(Arr::get($decoded, 'userDeposit')), 'totalReceived' => gmp_strval(Arr::get($decoded, 'totalReceived')), - 'ruleDataSets' => '', //TODO: Implement + 'ruleDataSets' => '', // TODO: Implement ]; }