Skip to content

Commit

Permalink
Adds langs
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Oct 15, 2024
1 parent 64ddf8f commit d429674
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
6 changes: 6 additions & 0 deletions lang/en/deprecated.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'fuel_tank.field.reservesExistentialDeposit' => 'This field doesn\'t exist on-chain anymore',
'fuel_tank.field.providesDeposit' => 'This field has been replaced by the new CoveragePolicy',
];
1 change: 1 addition & 0 deletions lang/en/enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
return [
'dispatch_rule.description' => 'The dispatch rule options.',
'dispatch_call.description' => 'The dispatch call options.',
'coverage_policy.description' => 'The coverage policy options.',
];
5 changes: 3 additions & 2 deletions lang/en/type.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
'fuel_tank.field.wallet' => 'The wallet account for the fuel tank.',
'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' => 'The flag for existential deposit.',
'fuel_tank.field.reservesExistentialDeposit' => '(DEPRECATED) The flag for existential deposit.',
'fuel_tank.field.reservesAccountCreationDeposit' => 'The flag for account creation deposit.',
'fuel_tank.field.providesDeposit' => 'The flag for deposit.',
'fuel_tank.field.providesDeposit' => '(DEPRECATED) The flag for deposit.',
'fuel_tank.field.isFrozen' => 'The flag for frozen state.',
'fuel_tank.field.accountCount' => 'The number of accounts.',
'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' => 'The fuel tank coverage policy.',
'fuel_tank_rule.description' => 'The fuel tank rules.',
'fuel_tank_rule.field.rule' => 'The fuel tank rule.',
'fuel_tank_rule.field.value' => 'The rule values.',
Expand Down
6 changes: 3 additions & 3 deletions src/GraphQL/Mutations/CreateFuelTankMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ public function args(): array
...$this->getIdempotencyField(),
...$this->getSimulateField(),
...$this->getSkipValidationField(),
// Deprecated fields, they don't exists on-chain anymore, should be removed at 2.1.0
// Deprecated fields, they don't exist on-chain anymore, should be removed at 2.1.0
'reservesExistentialDeposit' => [
'type' => GraphQL::type('Boolean'),
'description' => __('enjin-platform-fuel-tanks::type.fuel_tank.field.reservesExistentialDeposit'),
'deprecationReason' => '',
'deprecationReason' => __('enjin-platform-fuel-tanks::deprecated.fuel_tank.field.reservesExistentialDeposit'),
],
'providesDeposit' => [
'type' => GraphQL::type('Boolean'),
'description' => __('enjin-platform-fuel-tanks::type.fuel_tank.field.providesDeposit'),
'deprecationReason' => '',
'deprecationReason' => __('enjin-platform-fuel-tanks::deprecated.fuel_tank.field.providesDeposit'),
],
];
}
Expand Down
10 changes: 5 additions & 5 deletions src/GraphQL/Types/FuelTankType.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ public function fields(): array
'reservesExistentialDeposit' => [
'type' => GraphQL::type('Boolean'),
'description' => __('enjin-platform-fuel-tanks::type.fuel_tank.field.reservesExistentialDeposit'),
'deprecationReason' => '',
'deprecationReason' => __('enjin-platform-fuel-tanks::deprecated.fuel_tank.field.reservesExistentialDeposit'),
'selectable' => false,
'resolve' => fn () => false,
'resolve' => fn () => null,
],
'providesDeposit' => [
'type' => GraphQL::type('Boolean!'),
'type' => GraphQL::type('Boolean'),
'description' => __('enjin-platform-fuel-tanks::type.fuel_tank.field.providesDeposit'),
'deprecationReason' => '',
'deprecationReason' => __('enjin-platform-fuel-tanks::deprecated.fuel_tank.field.providesDeposit'),
'selectable' => false,
'resolve' => fn () => false,
'resolve' => fn () => null,
],
];
}
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQL/Types/Input/FuelTankMutationInputType.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ public function fields(): array
'reservesExistentialDeposit' => [
'type' => GraphQL::type('Boolean'),
'description' => __('enjin-platform-fuel-tanks::type.fuel_tank.field.reservesExistentialDeposit'),
'deprecationReason' => '',
'deprecationReason' => __('enjin-platform-fuel-tanks::deprecated.fuel_tank.field.reservesExistentialDeposit'),
],
'providesDeposit' => [
'type' => GraphQL::type('Boolean'),
'description' => __('enjin-platform-fuel-tanks::type.fuel_tank.field.providesDeposit'),
'deprecationReason' => '',
'deprecationReason' => __('enjin-platform-fuel-tanks::deprecated.fuel_tank.field.providesDeposit'),
],
];
}
Expand Down

0 comments on commit d429674

Please sign in to comment.