Skip to content

Commit

Permalink
Adds ray on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Jan 7, 2025
1 parent a154cee commit 154caf5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions lang/en/mutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
'destroy_fuel_tank.description' => <<<'MD'
Destroys a fuel tank, returning the storage deposit and any remaining balance to the fuel tank owner.
**Prerequisites:**
Expand All @@ -25,15 +25,15 @@
'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
'insert_rule_set.description' => <<<'MD'
Inserts a new rule set into a fuel tank or replaces an existing one.
**Important Considerations:**
- If replacing a rule set, a rule that stores data on user accounts might cause the operation to fail. [Learn more](https://docs.enjin.io/docs/fuel-tank-pallet#insert_rule_set).
- 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
'remove_rule_set.description' => <<<'MD'
Removes a rule set from a fuel tank.
**Important Considerations:**
Expand Down
4 changes: 2 additions & 2 deletions lang/en/type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
'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:
Expand All @@ -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
'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:
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Processor/Substrate/Codec/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
}

Expand Down

0 comments on commit 154caf5

Please sign in to comment.