From 7b34e20285fbcf037ba04b8c7d0b4975566c1baa Mon Sep 17 00:00:00 2001 From: Jay Pavlina Date: Mon, 13 Jul 2026 14:19:43 -0300 Subject: [PATCH] Regenerate and set version to v3.0.3 --- CONTRIBUTING.md | 12 +- .../Enjin.Platform.Sdk.Tests.csproj | 2 +- .../Enjin.Platform.Sdk.csproj | 2 +- .../Schema/Enums/BatchTransactionModeEnum.cs | 24 +++ .../Schema/Enums/CoveragePolicy.cs | 23 +++ .../Schema/Enums/FuelTankPermittedMethod.cs | 67 +++++++ .../Schema/Enums/FuelTankWhitelistedPallet.cs | 25 +++ .../Enums/ManagedWalletSweepStatusEnum.cs | 23 +++ .../Schema/Enums/ShouldMutateAction.cs | 24 +++ .../Schema/Infrastructure/GraphQlTypes.cs | 64 ++++++- .../Schema/Inputs/AccountRuleInput.cs | 53 ++++++ .../Schema/Inputs/AddAccountInput.cs | 53 ++++++ .../Schema/Inputs/AddAccountsInput.cs | 53 ++++++ .../Schema/Inputs/AnswerCounterOfferInput.cs | 8 +- .../Schema/Inputs/ApproveCollectionInput.cs | 67 +++++++ .../Schema/Inputs/CreateFuelTankInput.cs | 109 +++++++++++ .../Schema/Inputs/CreateListingInput.cs | 8 +- .../Schema/Inputs/CreateRuleSetInput.cs | 81 ++++++++ .../Schema/Inputs/DispatchRuleInput.cs | 179 ++++++++++++++++++ .../Schema/Inputs/FreezeCollectionInput.cs | 10 +- .../Schema/Inputs/FuelBudgetRuleInput.cs | 53 ++++++ .../Schema/Inputs/InfuseTokenEntryInput.cs | 8 +- .../Schema/Inputs/InfuseTokenInput.cs | 8 +- .../Schema/Inputs/MutateCollectionInput.cs | 10 +- .../Schema/Inputs/MutateFreezeStateInput.cs | 67 +++++++ .../Schema/Inputs/MutateFuelTankInput.cs | 123 ++++++++++++ .../Schema/Inputs/NominationPoolsBondInput.cs | 8 +- .../Schema/Inputs/PlaceBidInput.cs | 8 +- .../Schema/Inputs/PlaceCounterOfferInput.cs | 8 +- .../Schema/Inputs/RemoveAccountInput.cs | 53 ++++++ .../Schema/Inputs/RemoveAccountsInput.cs | 53 ++++++ .../Schema/Inputs/RemoveFuelTankInput.cs | 39 ++++ .../Schema/Inputs/RemoveRuleSetInput.cs | 53 ++++++ .../Schema/Inputs/RequireTokenInput.cs | 53 ++++++ .../Schema/Inputs/RuleSetEntryInput.cs | 67 +++++++ .../Inputs/SetCollectionAttributeInput.cs | 10 +- .../ShouldMutateAccountExpirationInput.cs | 53 ++++++ .../ShouldMutateUserAccountManagementInput.cs | 53 ++++++ .../Schema/Inputs/ThawCollectionInput.cs | 10 +- .../Schema/Inputs/TransactionInput.cs | 168 ++++++++++++++++ .../Schema/Inputs/TransferEnjInput.cs | 8 +- .../Schema/Inputs/TransferTokenEntryInput.cs | 28 +++ .../Schema/Inputs/TransferTokenInput.cs | 28 +++ .../Schema/Inputs/UnapproveCollectionInput.cs | 53 ++++++ .../Inputs/UserAccountManagementInput.cs | 53 ++++++ .../Schema/Model/Account.cs | 4 +- .../Schema/Model/AccountPool.cs | 12 +- .../Enjin.Platform.Sdk/Schema/Model/Block.cs | 8 +- .../Schema/Model/CompatibleFuelTank.cs | 57 ++++++ .../Schema/Model/CompatibleFuelTankRuleSet.cs | 29 +++ .../Enjin.Platform.Sdk/Schema/Model/Event.cs | 6 +- .../Schema/Model/Extrinsic.cs | 4 + .../Schema/Model/FuelBudget.cs | 29 +++ .../Schema/Model/FuelTank.cs | 61 ++++++ .../Schema/Model/FuelTankAccount.cs | 25 +++ .../Schema/Model/FuelTankAccountRule.cs | 29 +++ .../Model/FuelTankPermittedExtrinsic.cs | 29 +++ .../Schema/Model/FuelTankRuleSet.cs | 77 ++++++++ .../Model/FuelTankUserAccountManagement.cs | 29 +++ .../Schema/Model/LinkedWallet.cs | 29 +++ .../Schema/Model/LinkingCode.cs | 41 ++++ .../Schema/Model/Listing.cs | 12 +- .../Schema/Model/ManagedWalletSweepStatus.cs | 29 +++ .../Schema/Model/Mutation.cs | 8 + .../Schema/Model/NominationPool.cs | 4 +- .../Schema/Model/PoolBalance.cs | 12 +- .../Schema/Model/PoolMember.cs | 8 +- .../Enjin.Platform.Sdk/Schema/Model/Query.cs | 24 +++ .../Schema/Model/RequireToken.cs | 29 +++ .../Schema/Model/SweepManagedWalletResult.cs | 29 +++ .../Enjin.Platform.Sdk/Schema/Model/Token.cs | 4 +- .../Schema/Model/TokenGroupToken.cs | 4 + .../Schema/Model/Transaction.cs | 8 +- .../Schema/QueryBuilders/BlockQueryBuilder.cs | 9 +- .../CompatibleFuelTankQueryBuilder.cs | 70 +++++++ .../CompatibleFuelTankRuleSetQueryBuilder.cs | 35 ++++ .../Schema/QueryBuilders/EventQueryBuilder.cs | 7 +- .../QueryBuilders/ExtrinsicQueryBuilder.cs | 7 +- .../QueryBuilders/FuelBudgetQueryBuilder.cs | 35 ++++ .../FuelTankAccountQueryBuilder.cs | 30 +++ .../FuelTankAccountRuleQueryBuilder.cs | 35 ++++ .../FuelTankPermittedExtrinsicQueryBuilder.cs | 35 ++++ .../QueryBuilders/FuelTankQueryBuilder.cs | 75 ++++++++ .../FuelTankRuleSetQueryBuilder.cs | 95 ++++++++++ ...elTankUserAccountManagementQueryBuilder.cs | 35 ++++ .../QueryBuilders/LinkedWalletQueryBuilder.cs | 35 ++++ .../QueryBuilders/LinkingCodeQueryBuilder.cs | 50 +++++ .../ManagedWalletSweepStatusQueryBuilder.cs | 35 ++++ .../QueryBuilders/MutationQueryBuilder.cs | 60 +++++- .../Schema/QueryBuilders/QueryQueryBuilder.cs | 140 ++++++++++++-- .../QueryBuilders/RequireTokenQueryBuilder.cs | 35 ++++ .../SweepManagedWalletResultQueryBuilder.cs | 35 ++++ .../TokenGroupTokenQueryBuilder.cs | 5 + .../QueryBuilders/TransactionQueryBuilder.cs | 11 +- tools/SdkSmoke/Program.cs | 25 +-- 95 files changed, 3356 insertions(+), 145 deletions(-) create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/BatchTransactionModeEnum.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/CoveragePolicy.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/FuelTankPermittedMethod.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/FuelTankWhitelistedPallet.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/ManagedWalletSweepStatusEnum.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/ShouldMutateAction.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AccountRuleInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AddAccountInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AddAccountsInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ApproveCollectionInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateFuelTankInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateRuleSetInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/DispatchRuleInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/FuelBudgetRuleInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateFreezeStateInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateFuelTankInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveAccountInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveAccountsInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveFuelTankInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveRuleSetInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RequireTokenInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RuleSetEntryInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ShouldMutateAccountExpirationInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ShouldMutateUserAccountManagementInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/UnapproveCollectionInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/UserAccountManagementInput.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTank.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTankRuleSet.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelBudget.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTank.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankAccount.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankAccountRule.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankPermittedExtrinsic.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankRuleSet.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankUserAccountManagement.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/LinkedWallet.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/LinkingCode.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/ManagedWalletSweepStatus.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/RequireToken.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/SweepManagedWalletResult.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankRuleSetQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelBudgetQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankAccountQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankAccountRuleQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankPermittedExtrinsicQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankRuleSetQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankUserAccountManagementQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/LinkedWalletQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/LinkingCodeQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/ManagedWalletSweepStatusQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/RequireTokenQueryBuilder.cs create mode 100644 src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/SweepManagedWalletResultQueryBuilder.cs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0a5b614..eace1a3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -87,10 +87,8 @@ To regenerate the schema after a Platform API change: git clone git@github.com:enjin/platform-sdk-generators.git ``` -2. Drop the latest `v3.json` schema (downloadable via introspection from the target Platform deployment) into - `platform-sdk-generators/CSharpSchemaGenerator/CSharpSchemaGenerator/schema/v3.json`. - -3. Run the generator: +2. Run the generator. It fetches the live GraphQL schema via introspection directly from the Platform, + so there is no schema file to download or drop in: ```sh cd platform-sdk-generators/CSharpSchemaGenerator/CSharpSchemaGenerator @@ -100,7 +98,7 @@ To regenerate the schema after a Platform API change: This produces `generated/v3/Schema/{Infrastructure,Enums,Model,Inputs,QueryBuilders}/*.cs` in the same folder. The generator wipes `generated/v3/` before writing, so renamed or removed types do not leave orphan files. -4. Replace the SDK's `Schema/` tree with the generator output: +3. Replace the SDK's `Schema/` tree with the generator output: ```sh rm -rf ../../../platform-csharp-sdk/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema @@ -108,13 +106,13 @@ To regenerate the schema after a Platform API change: ../../../platform-csharp-sdk/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema ``` -5. Build and run the tests: +4. Build and run the tests: ```sh dotnet test src/Enjin.Platform.Sdk/Enjin.Platform.Sdk.sln ``` -6. (Recommended) Run the live smoke runner against a real Platform deployment to confirm the regenerated +5. (Recommended) Run the live smoke runner against a real Platform deployment to confirm the regenerated client still round-trips real data over the wire: ```sh diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk.Tests/Enjin.Platform.Sdk.Tests.csproj b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk.Tests/Enjin.Platform.Sdk.Tests.csproj index 0cca0bd..4feb682 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk.Tests/Enjin.Platform.Sdk.Tests.csproj +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk.Tests/Enjin.Platform.Sdk.Tests.csproj @@ -6,7 +6,7 @@ false - 3.0.2 + 3.0.3 diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Enjin.Platform.Sdk.csproj b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Enjin.Platform.Sdk.csproj index f408763..c0604bf 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Enjin.Platform.Sdk.csproj +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Enjin.Platform.Sdk.csproj @@ -5,7 +5,7 @@ Open source SDK for connecting to and interacting with the Enjin Platform. Enjin Pte. Ltd. Enjin Pte. Ltd. - 3.0.2 + 3.0.3 netstandard2.1 12 Enjin.Platform.Sdk diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/BatchTransactionModeEnum.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/BatchTransactionModeEnum.cs new file mode 100644 index 0000000..8b12b0d --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/BatchTransactionModeEnum.cs @@ -0,0 +1,24 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Determines how a batch transaction handles failed calls. +/// +public enum BatchTransactionModeEnum +{ + [EnumMember(Value = "HALT_ON_ERROR")] HaltOnError, + [EnumMember(Value = "CONTINUE_ON_ERROR")] ContinueOnError, + [EnumMember(Value = "ALL_OR_NOTHING")] AllOrNothing +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/CoveragePolicy.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/CoveragePolicy.cs new file mode 100644 index 0000000..0dc0923 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/CoveragePolicy.cs @@ -0,0 +1,23 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Whether the fuel tank covers only transaction fees (FEES) or fees and the storage deposit (FEES_AND_DEPOSIT). +/// +public enum CoveragePolicy +{ + [EnumMember(Value = "FEES")] Fees, + [EnumMember(Value = "FEES_AND_DEPOSIT")] FeesAndDeposit +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/FuelTankPermittedMethod.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/FuelTankPermittedMethod.cs new file mode 100644 index 0000000..34fc688 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/FuelTankPermittedMethod.cs @@ -0,0 +1,67 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A transaction method that a fuel tank rule set may permit. Identifies the pallet and extrinsic; the call arguments are irrelevant on-chain. +/// +public enum FuelTankPermittedMethod +{ + [EnumMember(Value = "CREATE_COLLECTION")] CreateCollection, + [EnumMember(Value = "DESTROY_COLLECTION")] DestroyCollection, + [EnumMember(Value = "MUTATE_COLLECTION")] MutateCollection, + [EnumMember(Value = "MUTATE_TOKEN")] MutateToken, + [EnumMember(Value = "CREATE_TOKEN")] CreateToken, + [EnumMember(Value = "MINT_TOKEN")] MintToken, + [EnumMember(Value = "TRANSFER_TOKEN")] TransferToken, + [EnumMember(Value = "CREATE_TOKENS")] CreateTokens, + [EnumMember(Value = "MINT_TOKENS")] MintTokens, + [EnumMember(Value = "BATCH_TRANSFER")] BatchTransfer, + [EnumMember(Value = "FREEZE_COLLECTION")] FreezeCollection, + [EnumMember(Value = "THAW_COLLECTION")] ThawCollection, + [EnumMember(Value = "FREEZE_TOKEN")] FreezeToken, + [EnumMember(Value = "THAW_TOKEN")] ThawToken, + [EnumMember(Value = "BURN_TOKEN")] BurnToken, + [EnumMember(Value = "INFUSE_TOKEN")] InfuseToken, + [EnumMember(Value = "INFUSE_TOKENS")] InfuseTokens, + [EnumMember(Value = "TRANSFER_ENJ")] TransferEnj, + [EnumMember(Value = "CREATE_LISTING")] CreateListing, + [EnumMember(Value = "CANCEL_LISTING")] CancelListing, + [EnumMember(Value = "FILL_LISTING")] FillListing, + [EnumMember(Value = "FINALIZE_AUCTION")] FinalizeAuction, + [EnumMember(Value = "ADD_WHITELISTED_ACCOUNTS")] AddWhitelistedAccounts, + [EnumMember(Value = "REMOVE_WHITELISTED_ACCOUNTS")] RemoveWhitelistedAccounts, + [EnumMember(Value = "PLACE_BID")] PlaceBid, + [EnumMember(Value = "PLACE_COUNTER_OFFER")] PlaceCounterOffer, + [EnumMember(Value = "ANSWER_COUNTER_OFFER")] AnswerCounterOffer, + [EnumMember(Value = "CREATE_TOKEN_GROUP")] CreateTokenGroup, + [EnumMember(Value = "DESTROY_TOKEN_GROUP")] DestroyTokenGroup, + [EnumMember(Value = "ADD_TOKEN_TO_GROUP")] AddTokenToGroup, + [EnumMember(Value = "REMOVE_TOKEN_FROM_GROUP")] RemoveTokenFromGroup, + [EnumMember(Value = "SET_TOKEN_GROUPS")] SetTokenGroups, + [EnumMember(Value = "SET_TOKEN_GROUP_ATTRIBUTE")] SetTokenGroupAttribute, + [EnumMember(Value = "REMOVE_TOKEN_GROUP_ATTRIBUTE")] RemoveTokenGroupAttribute, + [EnumMember(Value = "SET_TOKEN_ATTRIBUTE")] SetTokenAttribute, + [EnumMember(Value = "SET_COLLECTION_ATTRIBUTE")] SetCollectionAttribute, + [EnumMember(Value = "REMOVE_TOKEN_ATTRIBUTE")] RemoveTokenAttribute, + [EnumMember(Value = "REMOVE_COLLECTION_ATTRIBUTE")] RemoveCollectionAttribute, + [EnumMember(Value = "BATCH_SET_COLLECTION_ATTRIBUTE")] BatchSetCollectionAttribute, + [EnumMember(Value = "BATCH_SET_TOKEN_ATTRIBUTE")] BatchSetTokenAttribute, + [EnumMember(Value = "REMOVE_ALL_COLLECTION_ATTRIBUTES")] RemoveAllCollectionAttributes, + [EnumMember(Value = "REMOVE_ALL_TOKEN_ATTRIBUTES")] RemoveAllTokenAttributes, + [EnumMember(Value = "ACCEPT_COLLECTION_TRANSFER")] AcceptCollectionTransfer, + [EnumMember(Value = "CANCEL_COLLECTION_TRANSFER")] CancelCollectionTransfer, + [EnumMember(Value = "APPROVE_COLLECTION")] ApproveCollection, + [EnumMember(Value = "UNAPPROVE_COLLECTION")] UnapproveCollection +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/FuelTankWhitelistedPallet.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/FuelTankWhitelistedPallet.cs new file mode 100644 index 0000000..64bae03 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/FuelTankWhitelistedPallet.cs @@ -0,0 +1,25 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A pallet that a fuel tank rule set may whitelist, allowing any of its calls. +/// +public enum FuelTankWhitelistedPallet +{ + [EnumMember(Value = "MULTI_TOKENS")] MultiTokens, + [EnumMember(Value = "BALANCES")] Balances, + [EnumMember(Value = "MARKETPLACE")] Marketplace, + [EnumMember(Value = "UTILITY")] Utility +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/ManagedWalletSweepStatusEnum.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/ManagedWalletSweepStatusEnum.cs new file mode 100644 index 0000000..0e9d6a6 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/ManagedWalletSweepStatusEnum.cs @@ -0,0 +1,23 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// The sweep status of a managed wallet: SWEPT once emptied of transferable tokens, PENDING while any remain. +/// +public enum ManagedWalletSweepStatusEnum +{ + [EnumMember(Value = "PENDING")] Pending, + [EnumMember(Value = "SWEPT")] Swept +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/ShouldMutateAction.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/ShouldMutateAction.cs new file mode 100644 index 0000000..74664fa --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Enums/ShouldMutateAction.cs @@ -0,0 +1,24 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// How to apply an optional mutation field on the fuel tank. NO_MUTATION keeps the existing value; CLEAR sets it to None; SET requires a value and applies it. +/// +public enum ShouldMutateAction +{ + [EnumMember(Value = "NO_MUTATION")] NoMutation, + [EnumMember(Value = "CLEAR")] Clear, + [EnumMember(Value = "SET")] Set +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Infrastructure/GraphQlTypes.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Infrastructure/GraphQlTypes.cs index a455ba3..9ae61ef 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Infrastructure/GraphQlTypes.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Infrastructure/GraphQlTypes.cs @@ -14,19 +14,27 @@ namespace Enjin.Platform.Sdk; public static class GraphQlTypes { + public const string BigDecimal = "BigDecimal"; public const string BigInt = "BigInt"; public const string Boolean = "Boolean"; + public const string Enj = "ENJ"; public const string Float = "Float"; public const string Int = "Int"; public const string Json = "JSON"; public const string String = "String"; + public const string BatchTransactionModeEnum = "BatchTransactionModeEnum"; public const string Chain = "Chain"; public const string CounterOfferResponseEnum = "CounterOfferResponseEnum"; + public const string CoveragePolicy = "CoveragePolicy"; public const string FreezeState = "FreezeState"; + public const string FuelTankPermittedMethod = "FuelTankPermittedMethod"; + public const string FuelTankWhitelistedPallet = "FuelTankWhitelistedPallet"; public const string ListingTypeEnum = "ListingTypeEnum"; + public const string ManagedWalletSweepStatusEnum = "ManagedWalletSweepStatusEnum"; public const string Network = "Network"; public const string PoolStateEnum = "PoolStateEnum"; + public const string ShouldMutateAction = "ShouldMutateAction"; public const string TokenBehaviorType = "TokenBehaviorType"; public const string TokenCapType = "TokenCapType"; public const string TransactionStateEnum = "TransactionStateEnum"; @@ -38,11 +46,23 @@ public static class GraphQlTypes public const string Block = "Block"; public const string Collection = "Collection"; public const string CollectionHolder = "CollectionHolder"; + public const string CompatibleFuelTank = "CompatibleFuelTank"; + public const string CompatibleFuelTankRuleSet = "CompatibleFuelTankRuleSet"; public const string Event = "Event"; public const string Extrinsic = "Extrinsic"; + public const string FuelBudget = "FuelBudget"; + public const string FuelTank = "FuelTank"; + public const string FuelTankAccount = "FuelTankAccount"; + public const string FuelTankAccountRule = "FuelTankAccountRule"; + public const string FuelTankPermittedExtrinsic = "FuelTankPermittedExtrinsic"; + public const string FuelTankRuleSet = "FuelTankRuleSet"; + public const string FuelTankUserAccountManagement = "FuelTankUserAccountManagement"; + public const string LinkedWallet = "LinkedWallet"; + public const string LinkingCode = "LinkingCode"; public const string Listing = "Listing"; public const string ManagedWallet = "ManagedWallet"; public const string ManagedWalletCursorPagination = "ManagedWalletCursorPagination"; + public const string ManagedWalletSweepStatus = "ManagedWalletSweepStatus"; public const string MarketPolicy = "MarketPolicy"; public const string Metadata = "Metadata"; public const string MetadataMedia = "MetadataMedia"; @@ -54,8 +74,10 @@ public static class GraphQlTypes public const string PoolBalance = "PoolBalance"; public const string PoolMember = "PoolMember"; public const string Query = "Query"; + public const string RequireToken = "RequireToken"; public const string RoyaltyBeneficiary = "RoyaltyBeneficiary"; public const string RoyaltyCurrency = "RoyaltyCurrency"; + public const string SweepManagedWalletResult = "SweepManagedWalletResult"; public const string Token = "Token"; public const string TokenBehavior = "TokenBehavior"; public const string TokenCap = "TokenCap"; @@ -67,9 +89,13 @@ public static class GraphQlTypes public const string TransferPolicy = "TransferPolicy"; public const string AcceptCollectionTransferInput = "AcceptCollectionTransferInput"; + public const string AccountRuleInput = "AccountRuleInput"; + public const string AddAccountInput = "AddAccountInput"; + public const string AddAccountsInput = "AddAccountsInput"; public const string AddTokenToGroupInput = "AddTokenToGroupInput"; public const string AddWhitelistedAccountsInput = "AddWhitelistedAccountsInput"; public const string AnswerCounterOfferInput = "AnswerCounterOfferInput"; + public const string ApproveCollectionInput = "ApproveCollectionInput"; public const string AssetIdInput = "AssetIdInput"; public const string AttributeInput = "AttributeInput"; public const string BatchSetCollectionAttributeInput = "BatchSetCollectionAttributeInput"; @@ -79,17 +105,21 @@ public static class GraphQlTypes public const string CancelCollectionTransferInput = "CancelCollectionTransferInput"; public const string CancelListingInput = "CancelListingInput"; public const string CreateCollectionInput = "CreateCollectionInput"; + public const string CreateFuelTankInput = "CreateFuelTankInput"; public const string CreateListingInput = "CreateListingInput"; + public const string CreateRuleSetInput = "CreateRuleSetInput"; public const string CreateTokenEntryInput = "CreateTokenEntryInput"; public const string CreateTokenGroupInput = "CreateTokenGroupInput"; public const string CreateTokenInput = "CreateTokenInput"; public const string CreateTokensInput = "CreateTokensInput"; public const string DestroyCollectionInput = "DestroyCollectionInput"; public const string DestroyTokenGroupInput = "DestroyTokenGroupInput"; + public const string DispatchRuleInput = "DispatchRuleInput"; public const string FillListingInput = "FillListingInput"; public const string FinalizeAuctionInput = "FinalizeAuctionInput"; public const string FreezeCollectionInput = "FreezeCollectionInput"; public const string FreezeTokenInput = "FreezeTokenInput"; + public const string FuelBudgetRuleInput = "FuelBudgetRuleInput"; public const string InfuseTokenEntryInput = "InfuseTokenEntryInput"; public const string InfuseTokenInput = "InfuseTokenInput"; public const string InfuseTokensInput = "InfuseTokensInput"; @@ -98,24 +128,34 @@ public static class GraphQlTypes public const string MintTokenInput = "MintTokenInput"; public const string MintTokensInput = "MintTokensInput"; public const string MutateCollectionInput = "MutateCollectionInput"; + public const string MutateFreezeStateInput = "MutateFreezeStateInput"; + public const string MutateFuelTankInput = "MutateFuelTankInput"; public const string MutateTokenInput = "MutateTokenInput"; public const string NominationPoolsBondInput = "NominationPoolsBondInput"; public const string NominationPoolsUnbondInput = "NominationPoolsUnbondInput"; public const string PlaceBidInput = "PlaceBidInput"; public const string PlaceCounterOfferInput = "PlaceCounterOfferInput"; + public const string RemoveAccountInput = "RemoveAccountInput"; + public const string RemoveAccountsInput = "RemoveAccountsInput"; public const string RemoveAllCollectionAttributesInput = "RemoveAllCollectionAttributesInput"; public const string RemoveAllTokenAttributesInput = "RemoveAllTokenAttributesInput"; public const string RemoveCollectionAttributeInput = "RemoveCollectionAttributeInput"; + public const string RemoveFuelTankInput = "RemoveFuelTankInput"; + public const string RemoveRuleSetInput = "RemoveRuleSetInput"; public const string RemoveTokenAttributeInput = "RemoveTokenAttributeInput"; public const string RemoveTokenFromGroupInput = "RemoveTokenFromGroupInput"; public const string RemoveTokenGroupAttributeInput = "RemoveTokenGroupAttributeInput"; public const string RemoveWhitelistedAccountsInput = "RemoveWhitelistedAccountsInput"; + public const string RequireTokenInput = "RequireTokenInput"; public const string RoyaltyCurrencyInput = "RoyaltyCurrencyInput"; public const string RoyaltyInput = "RoyaltyInput"; + public const string RuleSetEntryInput = "RuleSetEntryInput"; public const string SetCollectionAttributeInput = "SetCollectionAttributeInput"; public const string SetTokenAttributeInput = "SetTokenAttributeInput"; public const string SetTokenGroupAttributeInput = "SetTokenGroupAttributeInput"; public const string SetTokenGroupsInput = "SetTokenGroupsInput"; + public const string ShouldMutateAccountExpirationInput = "ShouldMutateAccountExpirationInput"; + public const string ShouldMutateUserAccountManagementInput = "ShouldMutateUserAccountManagementInput"; public const string ThawCollectionInput = "ThawCollectionInput"; public const string ThawTokenInput = "ThawTokenInput"; public const string TokenBehaviorInput = "TokenBehaviorInput"; @@ -124,6 +164,8 @@ public static class GraphQlTypes public const string TransferEnjInput = "TransferEnjInput"; public const string TransferTokenEntryInput = "TransferTokenEntryInput"; public const string TransferTokenInput = "TransferTokenInput"; + public const string UnapproveCollectionInput = "UnapproveCollectionInput"; + public const string UserAccountManagementInput = "UserAccountManagementInput"; public const string WhitelistedAccountInput = "WhitelistedAccountInput"; public static readonly IReadOnlyDictionary ReverseMapping = @@ -131,14 +173,18 @@ public static class GraphQlTypes { { typeof(string), "String" }, { typeof(int), "Int" }, - { typeof(global::System.Numerics.BigInteger), "BigInt" }, { typeof(decimal), "Float" }, + { typeof(global::System.Numerics.BigInteger), "BigInt" }, { typeof(DateTimeOffset), "String" }, { typeof(bool), "Boolean" }, { typeof(AcceptCollectionTransferInput), "AcceptCollectionTransferInput" }, + { typeof(AccountRuleInput), "AccountRuleInput" }, + { typeof(AddAccountInput), "AddAccountInput" }, + { typeof(AddAccountsInput), "AddAccountsInput" }, { typeof(AddTokenToGroupInput), "AddTokenToGroupInput" }, { typeof(AddWhitelistedAccountsInput), "AddWhitelistedAccountsInput" }, { typeof(AnswerCounterOfferInput), "AnswerCounterOfferInput" }, + { typeof(ApproveCollectionInput), "ApproveCollectionInput" }, { typeof(AssetIdInput), "AssetIdInput" }, { typeof(AttributeInput), "AttributeInput" }, { typeof(BatchSetCollectionAttributeInput), "BatchSetCollectionAttributeInput" }, @@ -148,17 +194,21 @@ public static class GraphQlTypes { typeof(CancelCollectionTransferInput), "CancelCollectionTransferInput" }, { typeof(CancelListingInput), "CancelListingInput" }, { typeof(CreateCollectionInput), "CreateCollectionInput" }, + { typeof(CreateFuelTankInput), "CreateFuelTankInput" }, { typeof(CreateListingInput), "CreateListingInput" }, + { typeof(CreateRuleSetInput), "CreateRuleSetInput" }, { typeof(CreateTokenEntryInput), "CreateTokenEntryInput" }, { typeof(CreateTokenGroupInput), "CreateTokenGroupInput" }, { typeof(CreateTokenInput), "CreateTokenInput" }, { typeof(CreateTokensInput), "CreateTokensInput" }, { typeof(DestroyCollectionInput), "DestroyCollectionInput" }, { typeof(DestroyTokenGroupInput), "DestroyTokenGroupInput" }, + { typeof(DispatchRuleInput), "DispatchRuleInput" }, { typeof(FillListingInput), "FillListingInput" }, { typeof(FinalizeAuctionInput), "FinalizeAuctionInput" }, { typeof(FreezeCollectionInput), "FreezeCollectionInput" }, { typeof(FreezeTokenInput), "FreezeTokenInput" }, + { typeof(FuelBudgetRuleInput), "FuelBudgetRuleInput" }, { typeof(InfuseTokenEntryInput), "InfuseTokenEntryInput" }, { typeof(InfuseTokenInput), "InfuseTokenInput" }, { typeof(InfuseTokensInput), "InfuseTokensInput" }, @@ -167,24 +217,34 @@ public static class GraphQlTypes { typeof(MintTokenInput), "MintTokenInput" }, { typeof(MintTokensInput), "MintTokensInput" }, { typeof(MutateCollectionInput), "MutateCollectionInput" }, + { typeof(MutateFreezeStateInput), "MutateFreezeStateInput" }, + { typeof(MutateFuelTankInput), "MutateFuelTankInput" }, { typeof(MutateTokenInput), "MutateTokenInput" }, { typeof(NominationPoolsBondInput), "NominationPoolsBondInput" }, { typeof(NominationPoolsUnbondInput), "NominationPoolsUnbondInput" }, { typeof(PlaceBidInput), "PlaceBidInput" }, { typeof(PlaceCounterOfferInput), "PlaceCounterOfferInput" }, + { typeof(RemoveAccountInput), "RemoveAccountInput" }, + { typeof(RemoveAccountsInput), "RemoveAccountsInput" }, { typeof(RemoveAllCollectionAttributesInput), "RemoveAllCollectionAttributesInput" }, { typeof(RemoveAllTokenAttributesInput), "RemoveAllTokenAttributesInput" }, { typeof(RemoveCollectionAttributeInput), "RemoveCollectionAttributeInput" }, + { typeof(RemoveFuelTankInput), "RemoveFuelTankInput" }, + { typeof(RemoveRuleSetInput), "RemoveRuleSetInput" }, { typeof(RemoveTokenAttributeInput), "RemoveTokenAttributeInput" }, { typeof(RemoveTokenFromGroupInput), "RemoveTokenFromGroupInput" }, { typeof(RemoveTokenGroupAttributeInput), "RemoveTokenGroupAttributeInput" }, { typeof(RemoveWhitelistedAccountsInput), "RemoveWhitelistedAccountsInput" }, + { typeof(RequireTokenInput), "RequireTokenInput" }, { typeof(RoyaltyCurrencyInput), "RoyaltyCurrencyInput" }, { typeof(RoyaltyInput), "RoyaltyInput" }, + { typeof(RuleSetEntryInput), "RuleSetEntryInput" }, { typeof(SetCollectionAttributeInput), "SetCollectionAttributeInput" }, { typeof(SetTokenAttributeInput), "SetTokenAttributeInput" }, { typeof(SetTokenGroupAttributeInput), "SetTokenGroupAttributeInput" }, { typeof(SetTokenGroupsInput), "SetTokenGroupsInput" }, + { typeof(ShouldMutateAccountExpirationInput), "ShouldMutateAccountExpirationInput" }, + { typeof(ShouldMutateUserAccountManagementInput), "ShouldMutateUserAccountManagementInput" }, { typeof(ThawCollectionInput), "ThawCollectionInput" }, { typeof(ThawTokenInput), "ThawTokenInput" }, { typeof(TokenBehaviorInput), "TokenBehaviorInput" }, @@ -193,6 +253,8 @@ public static class GraphQlTypes { typeof(TransferEnjInput), "TransferEnjInput" }, { typeof(TransferTokenEntryInput), "TransferTokenEntryInput" }, { typeof(TransferTokenInput), "TransferTokenInput" }, + { typeof(UnapproveCollectionInput), "UnapproveCollectionInput" }, + { typeof(UserAccountManagementInput), "UserAccountManagementInput" }, { typeof(WhitelistedAccountInput), "WhitelistedAccountInput" } }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AccountRuleInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AccountRuleInput.cs new file mode 100644 index 0000000..d63fe01 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AccountRuleInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A single account rule applied when a user account is added. Provide exactly one of the variant fields per object. +/// +public partial class AccountRuleInput : IGraphQlInputObject +{ + private InputPropertyInfo _whitelistedCallers; + private InputPropertyInfo _requireToken; + + /// + /// Only these caller addresses may be added as user accounts. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? WhitelistedCallers + { + get => (QueryBuilderParameter?>?)_whitelistedCallers.Value; + set => _whitelistedCallers = new() { Name = "whitelistedCallers", Value = value }; + } + + /// + /// Caller must hold the referenced token to be added as a user account. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RequireToken + { + get => (QueryBuilderParameter?)_requireToken.Value; + set => _requireToken = new() { Name = "requireToken", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_whitelistedCallers.Name != null) yield return _whitelistedCallers; + if (_requireToken.Name != null) yield return _requireToken; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AddAccountInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AddAccountInput.cs new file mode 100644 index 0000000..14e1a20 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AddAccountInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for adding a user account to a fuel tank (FuelTanks.add_account). +/// +public partial class AddAccountInput : IGraphQlInputObject +{ + private InputPropertyInfo _tankId; + private InputPropertyInfo _address; + + /// + /// The fuel tank address. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankId + { + get => (QueryBuilderParameter?)_tankId.Value; + set => _tankId = new() { Name = "tankId", Value = value }; + } + + /// + /// The user account address to add. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Address + { + get => (QueryBuilderParameter?)_address.Value; + set => _address = new() { Name = "address", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_tankId.Name != null) yield return _tankId; + if (_address.Name != null) yield return _address; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AddAccountsInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AddAccountsInput.cs new file mode 100644 index 0000000..4131f2f --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AddAccountsInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for adding multiple user accounts in one call (FuelTanks.batch_add_account). +/// +public partial class AddAccountsInput : IGraphQlInputObject +{ + private InputPropertyInfo _tankId; + private InputPropertyInfo _addresses; + + /// + /// The fuel tank address. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankId + { + get => (QueryBuilderParameter?)_tankId.Value; + set => _tankId = new() { Name = "tankId", Value = value }; + } + + /// + /// List of user account addresses to add. 1–100 entries. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? Addresses + { + get => (QueryBuilderParameter?>?)_addresses.Value; + set => _addresses = new() { Name = "addresses", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_tankId.Name != null) yield return _tankId; + if (_addresses.Name != null) yield return _addresses; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AnswerCounterOfferInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AnswerCounterOfferInput.cs index 132fc68..c650e69 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AnswerCounterOfferInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/AnswerCounterOfferInput.cs @@ -59,14 +59,14 @@ public QueryBuilderParameter? Response } /// - /// Required when response is Counter — the new counter price. + /// Required when response is Counter — the new counter price, expressed as a decimal or integer ENJ (e.g. "1.5"); converted to base units on-chain. /// #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON - [JsonConverter(typeof(QueryBuilderParameterConverter))] + [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? CounterPrice + public QueryBuilderParameter? CounterPrice { - get => (QueryBuilderParameter?)_counterPrice.Value; + get => (QueryBuilderParameter?)_counterPrice.Value; set => _counterPrice = new() { Name = "counterPrice", Value = value }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ApproveCollectionInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ApproveCollectionInput.cs new file mode 100644 index 0000000..d2920a9 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ApproveCollectionInput.cs @@ -0,0 +1,67 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for approving an operator to transfer tokens of a collection (MultiTokens.approve_collection). +/// +public partial class ApproveCollectionInput : IGraphQlInputObject +{ + private InputPropertyInfo _id; + private InputPropertyInfo _operator; + private InputPropertyInfo _expiration; + + /// + /// The collection to approve the operator on. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Id + { + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; + } + + /// + /// The SS58 address or public key of the account being approved as operator. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Operator + { + get => (QueryBuilderParameter?)_operator.Value; + set => _operator = new() { Name = "operator", Value = value }; + } + + /// + /// Optional block number at which the approval expires. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Expiration + { + get => (QueryBuilderParameter?)_expiration.Value; + set => _expiration = new() { Name = "expiration", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_id.Name != null) yield return _id; + if (_operator.Name != null) yield return _operator; + if (_expiration.Name != null) yield return _expiration; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateFuelTankInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateFuelTankInput.cs new file mode 100644 index 0000000..2a48a5b --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateFuelTankInput.cs @@ -0,0 +1,109 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for creating a fuel tank (FuelTanks.create_fuel_tank). +/// +public partial class CreateFuelTankInput : IGraphQlInputObject +{ + private InputPropertyInfo _name; + private InputPropertyInfo _coveragePolicy; + private InputPropertyInfo _userAccountManagement; + private InputPropertyInfo _ruleSets; + private InputPropertyInfo _accountRules; + private InputPropertyInfo _accountExpiration; + + /// + /// The fuel tank display name. Up to 32 bytes after UTF-8 encoding. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Name + { + get => (QueryBuilderParameter?)_name.Value; + set => _name = new() { Name = "name", Value = value }; + } + + /// + /// Whether the tank covers transaction fees only (FEES) or also the storage deposit (FEES_AND_DEPOSIT). + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? CoveragePolicy + { + get => (QueryBuilderParameter?)_coveragePolicy.Value; + set => _coveragePolicy = new() { Name = "coveragePolicy", Value = value }; + } + + /// + /// Optional user account deposit settings. Omit if the tank should not manage user deposits. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? UserAccountManagement + { + get => (QueryBuilderParameter?)_userAccountManagement.Value; + set => _userAccountManagement = new() { Name = "userAccountManagement", Value = value }; + } + + /// + /// Rule sets to create with the tank, each paired with its numeric id. Omit for an empty tank. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? RuleSets + { + get => (QueryBuilderParameter?>?)_ruleSets.Value; + set => _ruleSets = new() { Name = "ruleSets", Value = value }; + } + + /// + /// Account rules applied to all user accounts on this tank. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? AccountRules + { + get => (QueryBuilderParameter?>?)_accountRules.Value; + set => _accountRules = new() { Name = "accountRules", Value = value }; + } + + /// + /// Optional number of blocks after which idle user accounts expire and can be cleared. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? AccountExpiration + { + get => (QueryBuilderParameter?)_accountExpiration.Value; + set => _accountExpiration = new() { Name = "accountExpiration", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_name.Name != null) yield return _name; + if (_coveragePolicy.Name != null) yield return _coveragePolicy; + if (_userAccountManagement.Name != null) yield return _userAccountManagement; + if (_ruleSets.Name != null) yield return _ruleSets; + if (_accountRules.Name != null) yield return _accountRules; + if (_accountExpiration.Name != null) yield return _accountExpiration; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateListingInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateListingInput.cs index df4e21e..9160a9b 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateListingInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateListingInput.cs @@ -62,14 +62,14 @@ public QueryBuilderParameter? TakeAssetId } /// - /// The requested price per unit of the make asset. + /// The requested price per unit of the make asset, expressed as a decimal or integer ENJ (e.g. "1.5"); converted to base units on-chain. /// #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON - [JsonConverter(typeof(QueryBuilderParameterConverter))] + [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? Price + public QueryBuilderParameter? Price { - get => (QueryBuilderParameter?)_price.Value; + get => (QueryBuilderParameter?)_price.Value; set => _price = new() { Name = "price", Value = value }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateRuleSetInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateRuleSetInput.cs new file mode 100644 index 0000000..431dcf5 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateRuleSetInput.cs @@ -0,0 +1,81 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for inserting or replacing a rule set (FuelTanks.insert_rule_set). Upsert semantics: if a rule set with the given id exists, it is replaced. +/// +public partial class CreateRuleSetInput : IGraphQlInputObject +{ + private InputPropertyInfo _tankId; + private InputPropertyInfo _id; + private InputPropertyInfo _rules; + private InputPropertyInfo _requireAccount; + + /// + /// The fuel tank address. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankId + { + get => (QueryBuilderParameter?)_tankId.Value; + set => _tankId = new() { Name = "tankId", Value = value }; + } + + /// + /// The rule set id to insert or replace. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Id + { + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; + } + + /// + /// The dispatch rules that apply to this rule set. At least one is required. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? Rules + { + get => (QueryBuilderParameter?>?)_rules.Value; + set => _rules = new() { Name = "rules", Value = value }; + } + + /// + /// If true, only registered user accounts may use this rule set. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RequireAccount + { + get => (QueryBuilderParameter?)_requireAccount.Value; + set => _requireAccount = new() { Name = "requireAccount", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_tankId.Name != null) yield return _tankId; + if (_id.Name != null) yield return _id; + if (_rules.Name != null) yield return _rules; + if (_requireAccount.Name != null) yield return _requireAccount; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/DispatchRuleInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/DispatchRuleInput.cs new file mode 100644 index 0000000..523ca20 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/DispatchRuleInput.cs @@ -0,0 +1,179 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A single dispatch rule for a rule set. Provide exactly one of the variant fields per object. +/// +public partial class DispatchRuleInput : IGraphQlInputObject +{ + private InputPropertyInfo _whitelistedCallers; + private InputPropertyInfo _whitelistedCollections; + private InputPropertyInfo _whitelistedPallets; + private InputPropertyInfo _maxFuelBurnPerTransaction; + private InputPropertyInfo _minimumInfusion; + private InputPropertyInfo _userFuelBudget; + private InputPropertyInfo _tankFuelBudget; + private InputPropertyInfo _requireToken; + private InputPropertyInfo _permittedCalls; + private InputPropertyInfo _permittedExtrinsics; + private InputPropertyInfo _requireSignature; + + /// + /// Only these caller addresses may use this rule set. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? WhitelistedCallers + { + get => (QueryBuilderParameter?>?)_whitelistedCallers.Value; + set => _whitelistedCallers = new() { Name = "whitelistedCallers", Value = value }; + } + + /// + /// Only calls targeting these collection ids are permitted. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? WhitelistedCollections + { + get => (QueryBuilderParameter?>?)_whitelistedCollections.Value; + set => _whitelistedCollections = new() { Name = "whitelistedCollections", Value = value }; + } + + /// + /// Only calls targeting these pallets are permitted. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? WhitelistedPallets + { + get => (QueryBuilderParameter?>?)_whitelistedPallets.Value; + set => _whitelistedPallets = new() { Name = "whitelistedPallets", Value = value }; + } + + /// + /// Maximum fuel that any single transaction under this rule set may burn, expressed as ENJ (e.g. "1.5" for 1.5 ENJ; converted to base units on-chain). + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? MaxFuelBurnPerTransaction + { + get => (QueryBuilderParameter?)_maxFuelBurnPerTransaction.Value; + set => _maxFuelBurnPerTransaction = new() { Name = "maxFuelBurnPerTransaction", Value = value }; + } + + /// + /// Minimum amount that must be infused into the fuel tank for this rule set to take effect, expressed as ENJ (e.g. "1.5" for 1.5 ENJ; converted to base units on-chain). + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? MinimumInfusion + { + get => (QueryBuilderParameter?)_minimumInfusion.Value; + set => _minimumInfusion = new() { Name = "minimumInfusion", Value = value }; + } + + /// + /// Per-user fuel budget that resets every resetPeriod blocks. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? UserFuelBudget + { + get => (QueryBuilderParameter?)_userFuelBudget.Value; + set => _userFuelBudget = new() { Name = "userFuelBudget", Value = value }; + } + + /// + /// Tank-wide fuel budget that resets every resetPeriod blocks. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankFuelBudget + { + get => (QueryBuilderParameter?)_tankFuelBudget.Value; + set => _tankFuelBudget = new() { Name = "tankFuelBudget", Value = value }; + } + + /// + /// Callers must hold the referenced token to use this rule set. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RequireToken + { + get => (QueryBuilderParameter?)_requireToken.Value; + set => _requireToken = new() { Name = "requireToken", Value = value }; + } + + /// + /// Permitted call hashes — list of 0x-prefixed 64-character blake2_256 hex digests. Compute the hash client-side from the SCALE-encoded call. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? PermittedCalls + { + get => (QueryBuilderParameter?>?)_permittedCalls.Value; + set => _permittedCalls = new() { Name = "permittedCalls", Value = value }; + } + + /// + /// Only these specific extrinsics (pallet + method) are permitted. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? PermittedExtrinsics + { + get => (QueryBuilderParameter?>?)_permittedExtrinsics.Value; + set => _permittedExtrinsics = new() { Name = "permittedExtrinsics", Value = value }; + } + + /// + /// Calls under this rule set must include a signature from this signer address. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RequireSignature + { + get => (QueryBuilderParameter?)_requireSignature.Value; + set => _requireSignature = new() { Name = "requireSignature", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_whitelistedCallers.Name != null) yield return _whitelistedCallers; + if (_whitelistedCollections.Name != null) yield return _whitelistedCollections; + if (_whitelistedPallets.Name != null) yield return _whitelistedPallets; + if (_maxFuelBurnPerTransaction.Name != null) yield return _maxFuelBurnPerTransaction; + if (_minimumInfusion.Name != null) yield return _minimumInfusion; + if (_userFuelBudget.Name != null) yield return _userFuelBudget; + if (_tankFuelBudget.Name != null) yield return _tankFuelBudget; + if (_requireToken.Name != null) yield return _requireToken; + if (_permittedCalls.Name != null) yield return _permittedCalls; + if (_permittedExtrinsics.Name != null) yield return _permittedExtrinsics; + if (_requireSignature.Name != null) yield return _requireSignature; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/FreezeCollectionInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/FreezeCollectionInput.cs index c555894..6ce8317 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/FreezeCollectionInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/FreezeCollectionInput.cs @@ -17,7 +17,7 @@ namespace Enjin.Platform.Sdk; /// public partial class FreezeCollectionInput : IGraphQlInputObject { - private InputPropertyInfo _collectionId; + private InputPropertyInfo _id; /// /// The collection to freeze. @@ -25,15 +25,15 @@ public partial class FreezeCollectionInput : IGraphQlInputObject #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? CollectionId + public QueryBuilderParameter? Id { - get => (QueryBuilderParameter?)_collectionId.Value; - set => _collectionId = new() { Name = "collectionId", Value = value }; + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; } IEnumerable IGraphQlInputObject.GetPropertyValues() { - if (_collectionId.Name != null) yield return _collectionId; + if (_id.Name != null) yield return _id; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/FuelBudgetRuleInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/FuelBudgetRuleInput.cs new file mode 100644 index 0000000..3e444dc --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/FuelBudgetRuleInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A capped amount of fuel that resets every resetPeriod blocks. Used by userFuelBudget and tankFuelBudget rules. +/// +public partial class FuelBudgetRuleInput : IGraphQlInputObject +{ + private InputPropertyInfo _amount; + private InputPropertyInfo _resetPeriod; + + /// + /// The maximum fuel spend per reset period, expressed as ENJ (e.g. "1.5" for 1.5 ENJ; converted to base units on-chain). + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Amount + { + get => (QueryBuilderParameter?)_amount.Value; + set => _amount = new() { Name = "amount", Value = value }; + } + + /// + /// The number of blocks after which the budget refills. Must be at most 4294967295 (MAX_UINT32). + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? ResetPeriod + { + get => (QueryBuilderParameter?)_resetPeriod.Value; + set => _resetPeriod = new() { Name = "resetPeriod", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_amount.Name != null) yield return _amount; + if (_resetPeriod.Name != null) yield return _resetPeriod; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/InfuseTokenEntryInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/InfuseTokenEntryInput.cs index 88d67d9..67662cb 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/InfuseTokenEntryInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/InfuseTokenEntryInput.cs @@ -33,14 +33,14 @@ public partial class InfuseTokenEntryInput : IGraphQlInputObject } /// - /// The amount of currency to infuse into the token. + /// The amount of ENJ currency to infuse into the token, expressed as a decimal or integer ENJ (e.g. "1.5"); converted to base units on-chain. /// #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON - [JsonConverter(typeof(QueryBuilderParameterConverter))] + [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? Amount + public QueryBuilderParameter? Amount { - get => (QueryBuilderParameter?)_amount.Value; + get => (QueryBuilderParameter?)_amount.Value; set => _amount = new() { Name = "amount", Value = value }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/InfuseTokenInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/InfuseTokenInput.cs index 62f3288..fea1695 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/InfuseTokenInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/InfuseTokenInput.cs @@ -46,14 +46,14 @@ public partial class InfuseTokenInput : IGraphQlInputObject } /// - /// The amount of currency to infuse into the token. + /// The amount of ENJ currency to infuse into the token, expressed as a decimal or integer ENJ (e.g. "1.5"); converted to base units on-chain. /// #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON - [JsonConverter(typeof(QueryBuilderParameterConverter))] + [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? Amount + public QueryBuilderParameter? Amount { - get => (QueryBuilderParameter?)_amount.Value; + get => (QueryBuilderParameter?)_amount.Value; set => _amount = new() { Name = "amount", Value = value }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateCollectionInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateCollectionInput.cs index 519c43c..c6724bb 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateCollectionInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateCollectionInput.cs @@ -17,7 +17,7 @@ namespace Enjin.Platform.Sdk; /// public partial class MutateCollectionInput : IGraphQlInputObject { - private InputPropertyInfo _collectionId; + private InputPropertyInfo _id; private InputPropertyInfo _owner; private InputPropertyInfo _royalties; private InputPropertyInfo _explicitRoyaltyCurrencies; @@ -29,10 +29,10 @@ public partial class MutateCollectionInput : IGraphQlInputObject #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? CollectionId + public QueryBuilderParameter? Id { - get => (QueryBuilderParameter?)_collectionId.Value; - set => _collectionId = new() { Name = "collectionId", Value = value }; + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; } /// @@ -85,7 +85,7 @@ public QueryBuilderParameter?>? Attributes IEnumerable IGraphQlInputObject.GetPropertyValues() { - if (_collectionId.Name != null) yield return _collectionId; + if (_id.Name != null) yield return _id; if (_owner.Name != null) yield return _owner; if (_royalties.Name != null) yield return _royalties; if (_explicitRoyaltyCurrencies.Name != null) yield return _explicitRoyaltyCurrencies; diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateFreezeStateInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateFreezeStateInput.cs new file mode 100644 index 0000000..6816ad9 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateFreezeStateInput.cs @@ -0,0 +1,67 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for freezing or unfreezing a fuel tank or a specific rule set (FuelTanks.mutate_freeze_state). +/// +public partial class MutateFreezeStateInput : IGraphQlInputObject +{ + private InputPropertyInfo _tankId; + private InputPropertyInfo _ruleSetId; + private InputPropertyInfo _isFrozen; + + /// + /// The fuel tank address. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankId + { + get => (QueryBuilderParameter?)_tankId.Value; + set => _tankId = new() { Name = "tankId", Value = value }; + } + + /// + /// Optional rule set id. Omit to freeze/unfreeze the whole tank; provide to target a specific rule set. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RuleSetId + { + get => (QueryBuilderParameter?)_ruleSetId.Value; + set => _ruleSetId = new() { Name = "ruleSetId", Value = value }; + } + + /// + /// True to freeze, false to unfreeze. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? IsFrozen + { + get => (QueryBuilderParameter?)_isFrozen.Value; + set => _isFrozen = new() { Name = "isFrozen", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_tankId.Name != null) yield return _tankId; + if (_ruleSetId.Name != null) yield return _ruleSetId; + if (_isFrozen.Name != null) yield return _isFrozen; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateFuelTankInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateFuelTankInput.cs new file mode 100644 index 0000000..f987615 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MutateFuelTankInput.cs @@ -0,0 +1,123 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for mutating an existing fuel tank (FuelTanks.mutate_fuel_tank). +/// +public partial class MutateFuelTankInput : IGraphQlInputObject +{ + private InputPropertyInfo _id; + private InputPropertyInfo _name; + private InputPropertyInfo _coveragePolicy; + private InputPropertyInfo _userAccountManagement; + private InputPropertyInfo _accountRules; + private InputPropertyInfo _owner; + private InputPropertyInfo _accountExpiration; + + /// + /// The fuel tank address to mutate. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Id + { + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; + } + + /// + /// Optional new display name (up to 32 bytes). Omit to keep unchanged. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Name + { + get => (QueryBuilderParameter?)_name.Value; + set => _name = new() { Name = "name", Value = value }; + } + + /// + /// Optional new coverage policy. Omit to keep unchanged. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? CoveragePolicy + { + get => (QueryBuilderParameter?)_coveragePolicy.Value; + set => _coveragePolicy = new() { Name = "coveragePolicy", Value = value }; + } + + /// + /// Three-state mutation envelope for user account management settings. Omit to keep unchanged. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? UserAccountManagement + { + get => (QueryBuilderParameter?)_userAccountManagement.Value; + set => _userAccountManagement = new() { Name = "userAccountManagement", Value = value }; + } + + /// + /// Optional replacement account rules. Omit to keep unchanged; provide [] to clear all account rules. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? AccountRules + { + get => (QueryBuilderParameter?>?)_accountRules.Value; + set => _accountRules = new() { Name = "accountRules", Value = value }; + } + + /// + /// Optional new tank owner address. Omit to keep unchanged. Cannot be cleared. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Owner + { + get => (QueryBuilderParameter?)_owner.Value; + set => _owner = new() { Name = "owner", Value = value }; + } + + /// + /// Three-state mutation envelope for account expiration (in blocks). Omit to keep unchanged. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? AccountExpiration + { + get => (QueryBuilderParameter?)_accountExpiration.Value; + set => _accountExpiration = new() { Name = "accountExpiration", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_id.Name != null) yield return _id; + if (_name.Name != null) yield return _name; + if (_coveragePolicy.Name != null) yield return _coveragePolicy; + if (_userAccountManagement.Name != null) yield return _userAccountManagement; + if (_accountRules.Name != null) yield return _accountRules; + if (_owner.Name != null) yield return _owner; + if (_accountExpiration.Name != null) yield return _accountExpiration; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/NominationPoolsBondInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/NominationPoolsBondInput.cs index e2218fc..d23d6fe 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/NominationPoolsBondInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/NominationPoolsBondInput.cs @@ -34,14 +34,14 @@ public QueryBuilderParameter? Id } /// - /// The specific amount to bond. Mutually exclusive with fill. + /// The specific amount to bond, expressed as ENJ (e.g. "1.5" for 1.5 ENJ; converted to base units on-chain). Mutually exclusive with fill. /// #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON - [JsonConverter(typeof(QueryBuilderParameterConverter))] + [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? Amount + public QueryBuilderParameter? Amount { - get => (QueryBuilderParameter?)_amount.Value; + get => (QueryBuilderParameter?)_amount.Value; set => _amount = new() { Name = "amount", Value = value }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/PlaceBidInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/PlaceBidInput.cs index 98d61c9..654a8f7 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/PlaceBidInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/PlaceBidInput.cs @@ -33,14 +33,14 @@ public QueryBuilderParameter? Id } /// - /// The bid price. + /// The bid price, expressed as a decimal or integer ENJ (e.g. "1.5"); converted to base units on-chain. /// #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON - [JsonConverter(typeof(QueryBuilderParameterConverter))] + [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? Price + public QueryBuilderParameter? Price { - get => (QueryBuilderParameter?)_price.Value; + get => (QueryBuilderParameter?)_price.Value; set => _price = new() { Name = "price", Value = value }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/PlaceCounterOfferInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/PlaceCounterOfferInput.cs index 06dd0e4..4cba448 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/PlaceCounterOfferInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/PlaceCounterOfferInput.cs @@ -33,14 +33,14 @@ public QueryBuilderParameter? Id } /// - /// The counter offer price. + /// The counter offer price, expressed as a decimal or integer ENJ (e.g. "1.5"); converted to base units on-chain. /// #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON - [JsonConverter(typeof(QueryBuilderParameterConverter))] + [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? Price + public QueryBuilderParameter? Price { - get => (QueryBuilderParameter?)_price.Value; + get => (QueryBuilderParameter?)_price.Value; set => _price = new() { Name = "price", Value = value }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveAccountInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveAccountInput.cs new file mode 100644 index 0000000..2c5e3ca --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveAccountInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for removing a user account from a fuel tank (FuelTanks.remove_account). +/// +public partial class RemoveAccountInput : IGraphQlInputObject +{ + private InputPropertyInfo _tankId; + private InputPropertyInfo _address; + + /// + /// The fuel tank address. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankId + { + get => (QueryBuilderParameter?)_tankId.Value; + set => _tankId = new() { Name = "tankId", Value = value }; + } + + /// + /// The user account address to remove. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Address + { + get => (QueryBuilderParameter?)_address.Value; + set => _address = new() { Name = "address", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_tankId.Name != null) yield return _tankId; + if (_address.Name != null) yield return _address; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveAccountsInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveAccountsInput.cs new file mode 100644 index 0000000..2e40948 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveAccountsInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for removing multiple user accounts in one call (FuelTanks.batch_remove_account). +/// +public partial class RemoveAccountsInput : IGraphQlInputObject +{ + private InputPropertyInfo _tankId; + private InputPropertyInfo _addresses; + + /// + /// The fuel tank address. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankId + { + get => (QueryBuilderParameter?)_tankId.Value; + set => _tankId = new() { Name = "tankId", Value = value }; + } + + /// + /// List of user account addresses to remove. 1–100 entries. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? Addresses + { + get => (QueryBuilderParameter?>?)_addresses.Value; + set => _addresses = new() { Name = "addresses", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_tankId.Name != null) yield return _tankId; + if (_addresses.Name != null) yield return _addresses; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveFuelTankInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveFuelTankInput.cs new file mode 100644 index 0000000..a2fb817 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveFuelTankInput.cs @@ -0,0 +1,39 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for destroying a fuel tank (FuelTanks.destroy_fuel_tank). The tank must be frozen and have no user accounts. +/// +public partial class RemoveFuelTankInput : IGraphQlInputObject +{ + private InputPropertyInfo _id; + + /// + /// The fuel tank address to destroy. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Id + { + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_id.Name != null) yield return _id; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveRuleSetInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveRuleSetInput.cs new file mode 100644 index 0000000..9b8fd75 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RemoveRuleSetInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for removing a rule set (FuelTanks.remove_rule_set). The tank or the rule set must be frozen first. +/// +public partial class RemoveRuleSetInput : IGraphQlInputObject +{ + private InputPropertyInfo _tankId; + private InputPropertyInfo _id; + + /// + /// The fuel tank address. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankId + { + get => (QueryBuilderParameter?)_tankId.Value; + set => _tankId = new() { Name = "tankId", Value = value }; + } + + /// + /// The rule set id to remove. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Id + { + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_tankId.Name != null) yield return _tankId; + if (_id.Name != null) yield return _id; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RequireTokenInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RequireTokenInput.cs new file mode 100644 index 0000000..5b02609 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RequireTokenInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Reference to a single multi-token (collectionId + tokenId) required to use a rule set or account rule. +/// +public partial class RequireTokenInput : IGraphQlInputObject +{ + private InputPropertyInfo _collectionId; + private InputPropertyInfo _tokenId; + + /// + /// The collection id of the required token. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? CollectionId + { + get => (QueryBuilderParameter?)_collectionId.Value; + set => _collectionId = new() { Name = "collectionId", Value = value }; + } + + /// + /// The token id within the collection. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TokenId + { + get => (QueryBuilderParameter?)_tokenId.Value; + set => _tokenId = new() { Name = "tokenId", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_collectionId.Name != null) yield return _collectionId; + if (_tokenId.Name != null) yield return _tokenId; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RuleSetEntryInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RuleSetEntryInput.cs new file mode 100644 index 0000000..d502f12 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/RuleSetEntryInput.cs @@ -0,0 +1,67 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A rule set definition included in createFuelTank or createRuleSet, paired with its numeric rule set id. +/// +public partial class RuleSetEntryInput : IGraphQlInputObject +{ + private InputPropertyInfo _id; + private InputPropertyInfo _rules; + private InputPropertyInfo _requireAccount; + + /// + /// The numeric id of this rule set on the fuel tank. Must be unique within the tank. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Id + { + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; + } + + /// + /// The dispatch rules that apply to calls made under this rule set. Provide at least one. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter?>))] + #endif + public QueryBuilderParameter?>? Rules + { + get => (QueryBuilderParameter?>?)_rules.Value; + set => _rules = new() { Name = "rules", Value = value }; + } + + /// + /// If true, only registered user accounts may use this rule set. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RequireAccount + { + get => (QueryBuilderParameter?)_requireAccount.Value; + set => _requireAccount = new() { Name = "requireAccount", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_id.Name != null) yield return _id; + if (_rules.Name != null) yield return _rules; + if (_requireAccount.Name != null) yield return _requireAccount; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/SetCollectionAttributeInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/SetCollectionAttributeInput.cs index 5a1facd..8b5c253 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/SetCollectionAttributeInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/SetCollectionAttributeInput.cs @@ -17,7 +17,7 @@ namespace Enjin.Platform.Sdk; /// public partial class SetCollectionAttributeInput : IGraphQlInputObject { - private InputPropertyInfo _collectionId; + private InputPropertyInfo _id; private InputPropertyInfo _key; private InputPropertyInfo _value; @@ -27,10 +27,10 @@ public partial class SetCollectionAttributeInput : IGraphQlInputObject #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? CollectionId + public QueryBuilderParameter? Id { - get => (QueryBuilderParameter?)_collectionId.Value; - set => _collectionId = new() { Name = "collectionId", Value = value }; + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; } /// @@ -59,7 +59,7 @@ public QueryBuilderParameter? Value IEnumerable IGraphQlInputObject.GetPropertyValues() { - if (_collectionId.Name != null) yield return _collectionId; + if (_id.Name != null) yield return _id; if (_key.Name != null) yield return _key; if (_value.Name != null) yield return _value; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ShouldMutateAccountExpirationInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ShouldMutateAccountExpirationInput.cs new file mode 100644 index 0000000..c8b06a8 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ShouldMutateAccountExpirationInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Three-state mutation envelope for accountExpiration. action: NO_MUTATION keeps the existing value; CLEAR removes the expiration; SET applies value (in blocks). +/// +public partial class ShouldMutateAccountExpirationInput : IGraphQlInputObject +{ + private InputPropertyInfo _action; + private InputPropertyInfo _value; + + /// + /// Which mutation to apply. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Action + { + get => (QueryBuilderParameter?)_action.Value; + set => _action = new() { Name = "action", Value = value }; + } + + /// + /// New account expiration in blocks. Required when action is SET; must be omitted otherwise. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Value + { + get => (QueryBuilderParameter?)_value.Value; + set => _value = new() { Name = "value", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_action.Name != null) yield return _action; + if (_value.Name != null) yield return _value; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ShouldMutateUserAccountManagementInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ShouldMutateUserAccountManagementInput.cs new file mode 100644 index 0000000..c27feb7 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ShouldMutateUserAccountManagementInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Three-state mutation envelope for userAccountManagement. action: NO_MUTATION keeps the existing value; CLEAR removes it; SET applies value. +/// +public partial class ShouldMutateUserAccountManagementInput : IGraphQlInputObject +{ + private InputPropertyInfo _action; + private InputPropertyInfo _value; + + /// + /// Which mutation to apply. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Action + { + get => (QueryBuilderParameter?)_action.Value; + set => _action = new() { Name = "action", Value = value }; + } + + /// + /// The new value to set. Required when action is SET; must be omitted otherwise. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Value + { + get => (QueryBuilderParameter?)_value.Value; + set => _value = new() { Name = "value", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_action.Name != null) yield return _action; + if (_value.Name != null) yield return _value; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ThawCollectionInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ThawCollectionInput.cs index 8cba128..d475426 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ThawCollectionInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/ThawCollectionInput.cs @@ -17,7 +17,7 @@ namespace Enjin.Platform.Sdk; /// public partial class ThawCollectionInput : IGraphQlInputObject { - private InputPropertyInfo _collectionId; + private InputPropertyInfo _id; /// /// The collection to thaw. @@ -25,15 +25,15 @@ public partial class ThawCollectionInput : IGraphQlInputObject #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? CollectionId + public QueryBuilderParameter? Id { - get => (QueryBuilderParameter?)_collectionId.Value; - set => _collectionId = new() { Name = "collectionId", Value = value }; + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; } IEnumerable IGraphQlInputObject.GetPropertyValues() { - if (_collectionId.Name != null) yield return _collectionId; + if (_id.Name != null) yield return _id; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransactionInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransactionInput.cs index 261a6f7..b5de03c 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransactionInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransactionInput.cs @@ -63,6 +63,18 @@ public partial class TransactionInput : IGraphQlInputObject private InputPropertyInfo _nominationPoolsUnbond; private InputPropertyInfo _acceptCollectionTransfer; private InputPropertyInfo _cancelCollectionTransfer; + private InputPropertyInfo _approveCollection; + private InputPropertyInfo _unapproveCollection; + private InputPropertyInfo _createFuelTank; + private InputPropertyInfo _mutateFuelTank; + private InputPropertyInfo _removeFuelTank; + private InputPropertyInfo _createRuleSet; + private InputPropertyInfo _removeRuleSet; + private InputPropertyInfo _addAccount; + private InputPropertyInfo _addAccounts; + private InputPropertyInfo _removeAccount; + private InputPropertyInfo _removeAccounts; + private InputPropertyInfo _mutateFreezeState; /// /// Arguments for CREATE_COLLECTION method. Provide only one specific input object per transaction. @@ -616,6 +628,150 @@ public QueryBuilderParameter? CancelCollectionTr set => _cancelCollectionTransfer = new() { Name = "cancelCollectionTransfer", Value = value }; } + /// + /// Arguments for APPROVE_COLLECTION method (MultiTokens.approve_collection). Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? ApproveCollection + { + get => (QueryBuilderParameter?)_approveCollection.Value; + set => _approveCollection = new() { Name = "approveCollection", Value = value }; + } + + /// + /// Arguments for UNAPPROVE_COLLECTION method (MultiTokens.unapprove_collection). Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? UnapproveCollection + { + get => (QueryBuilderParameter?)_unapproveCollection.Value; + set => _unapproveCollection = new() { Name = "unapproveCollection", Value = value }; + } + + /// + /// Arguments for CREATE_FUEL_TANK method (FuelTanks.create_fuel_tank). Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? CreateFuelTank + { + get => (QueryBuilderParameter?)_createFuelTank.Value; + set => _createFuelTank = new() { Name = "createFuelTank", Value = value }; + } + + /// + /// Arguments for MUTATE_FUEL_TANK method (FuelTanks.mutate_fuel_tank). Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? MutateFuelTank + { + get => (QueryBuilderParameter?)_mutateFuelTank.Value; + set => _mutateFuelTank = new() { Name = "mutateFuelTank", Value = value }; + } + + /// + /// Arguments for REMOVE_FUEL_TANK method (FuelTanks.destroy_fuel_tank). Tank must be frozen and empty. Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RemoveFuelTank + { + get => (QueryBuilderParameter?)_removeFuelTank.Value; + set => _removeFuelTank = new() { Name = "removeFuelTank", Value = value }; + } + + /// + /// Arguments for CREATE_RULE_SET method (FuelTanks.insert_rule_set). Upsert semantics. Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? CreateRuleSet + { + get => (QueryBuilderParameter?)_createRuleSet.Value; + set => _createRuleSet = new() { Name = "createRuleSet", Value = value }; + } + + /// + /// Arguments for REMOVE_RULE_SET method (FuelTanks.remove_rule_set). Tank or rule set must be frozen. Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RemoveRuleSet + { + get => (QueryBuilderParameter?)_removeRuleSet.Value; + set => _removeRuleSet = new() { Name = "removeRuleSet", Value = value }; + } + + /// + /// Arguments for ADD_ACCOUNT method (FuelTanks.add_account). Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? AddAccount + { + get => (QueryBuilderParameter?)_addAccount.Value; + set => _addAccount = new() { Name = "addAccount", Value = value }; + } + + /// + /// Arguments for ADD_ACCOUNTS method (FuelTanks.batch_add_account). Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? AddAccounts + { + get => (QueryBuilderParameter?)_addAccounts.Value; + set => _addAccounts = new() { Name = "addAccounts", Value = value }; + } + + /// + /// Arguments for REMOVE_ACCOUNT method (FuelTanks.remove_account). Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RemoveAccount + { + get => (QueryBuilderParameter?)_removeAccount.Value; + set => _removeAccount = new() { Name = "removeAccount", Value = value }; + } + + /// + /// Arguments for REMOVE_ACCOUNTS method (FuelTanks.batch_remove_account). Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? RemoveAccounts + { + get => (QueryBuilderParameter?)_removeAccounts.Value; + set => _removeAccounts = new() { Name = "removeAccounts", Value = value }; + } + + /// + /// Arguments for MUTATE_FREEZE_STATE method (FuelTanks.mutate_freeze_state). Matrix chain only. Provide only one specific input object per transaction. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? MutateFreezeState + { + get => (QueryBuilderParameter?)_mutateFreezeState.Value; + set => _mutateFreezeState = new() { Name = "mutateFreezeState", Value = value }; + } + IEnumerable IGraphQlInputObject.GetPropertyValues() { if (_createCollection.Name != null) yield return _createCollection; @@ -664,6 +820,18 @@ IEnumerable IGraphQlInputObject.GetPropertyValues() if (_nominationPoolsUnbond.Name != null) yield return _nominationPoolsUnbond; if (_acceptCollectionTransfer.Name != null) yield return _acceptCollectionTransfer; if (_cancelCollectionTransfer.Name != null) yield return _cancelCollectionTransfer; + if (_approveCollection.Name != null) yield return _approveCollection; + if (_unapproveCollection.Name != null) yield return _unapproveCollection; + if (_createFuelTank.Name != null) yield return _createFuelTank; + if (_mutateFuelTank.Name != null) yield return _mutateFuelTank; + if (_removeFuelTank.Name != null) yield return _removeFuelTank; + if (_createRuleSet.Name != null) yield return _createRuleSet; + if (_removeRuleSet.Name != null) yield return _removeRuleSet; + if (_addAccount.Name != null) yield return _addAccount; + if (_addAccounts.Name != null) yield return _addAccounts; + if (_removeAccount.Name != null) yield return _removeAccount; + if (_removeAccounts.Name != null) yield return _removeAccounts; + if (_mutateFreezeState.Name != null) yield return _mutateFreezeState; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferEnjInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferEnjInput.cs index 6748cce..2e75407 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferEnjInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferEnjInput.cs @@ -33,14 +33,14 @@ public QueryBuilderParameter? Recipient } /// - /// The amount of ENJ to transfer, expressed as whole ENJ (integer; converted to base units on-chain). + /// The amount of ENJ to transfer, expressed as a decimal or integer ENJ (e.g. "1.5" for 1.5 ENJ; converted to base units on-chain). /// #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON - [JsonConverter(typeof(QueryBuilderParameterConverter))] + [JsonConverter(typeof(QueryBuilderParameterConverter))] #endif - public QueryBuilderParameter? Amount + public QueryBuilderParameter? Amount { - get => (QueryBuilderParameter?)_amount.Value; + get => (QueryBuilderParameter?)_amount.Value; set => _amount = new() { Name = "amount", Value = value }; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferTokenEntryInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferTokenEntryInput.cs index e9b5a29..9aa3f4c 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferTokenEntryInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferTokenEntryInput.cs @@ -20,6 +20,8 @@ public partial class TransferTokenEntryInput : IGraphQlInputObject private InputPropertyInfo _address; private InputPropertyInfo _tokenId; private InputPropertyInfo _amount; + private InputPropertyInfo _sourceAddress; + private InputPropertyInfo _operatorPaysDeposit; /// /// The SS58 address or public key of the token recipient. @@ -57,11 +59,37 @@ public QueryBuilderParameter? Address set => _amount = new() { Name = "amount", Value = value }; } + /// + /// Optional token owner's address. When set, the signer transfers on the owner's behalf as an approved collection operator (MultiTokens TransferParams::Operator); otherwise the signer's own balance is moved (Simple). + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? SourceAddress + { + get => (QueryBuilderParameter?)_sourceAddress.Value; + set => _sourceAddress = new() { Name = "sourceAddress", Value = value }; + } + + /// + /// When transferring on behalf of a sourceAddress, whether the operator (signer) pays the token account deposit instead of the owner. Ignored without a sourceAddress. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? OperatorPaysDeposit + { + get => (QueryBuilderParameter?)_operatorPaysDeposit.Value; + set => _operatorPaysDeposit = new() { Name = "operatorPaysDeposit", Value = value }; + } + IEnumerable IGraphQlInputObject.GetPropertyValues() { if (_address.Name != null) yield return _address; if (_tokenId.Name != null) yield return _tokenId; if (_amount.Name != null) yield return _amount; + if (_sourceAddress.Name != null) yield return _sourceAddress; + if (_operatorPaysDeposit.Name != null) yield return _operatorPaysDeposit; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferTokenInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferTokenInput.cs index 9a35d0a..254821f 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferTokenInput.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/TransferTokenInput.cs @@ -21,6 +21,8 @@ public partial class TransferTokenInput : IGraphQlInputObject private InputPropertyInfo _collectionId; private InputPropertyInfo _tokenId; private InputPropertyInfo _amount; + private InputPropertyInfo _sourceAddress; + private InputPropertyInfo _operatorPaysDeposit; /// /// The SS58 address or public key of the token recipient. @@ -70,12 +72,38 @@ public QueryBuilderParameter? Recipient set => _amount = new() { Name = "amount", Value = value }; } + /// + /// Optional token owner's address. When set, the signer transfers on the owner's behalf as an approved collection operator (MultiTokens TransferParams::Operator); otherwise the signer's own balance is moved (Simple). + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? SourceAddress + { + get => (QueryBuilderParameter?)_sourceAddress.Value; + set => _sourceAddress = new() { Name = "sourceAddress", Value = value }; + } + + /// + /// When transferring on behalf of a sourceAddress, whether the operator (signer) pays the token account deposit instead of the owner. Ignored without a sourceAddress. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? OperatorPaysDeposit + { + get => (QueryBuilderParameter?)_operatorPaysDeposit.Value; + set => _operatorPaysDeposit = new() { Name = "operatorPaysDeposit", Value = value }; + } + IEnumerable IGraphQlInputObject.GetPropertyValues() { if (_recipient.Name != null) yield return _recipient; if (_collectionId.Name != null) yield return _collectionId; if (_tokenId.Name != null) yield return _tokenId; if (_amount.Name != null) yield return _amount; + if (_sourceAddress.Name != null) yield return _sourceAddress; + if (_operatorPaysDeposit.Name != null) yield return _operatorPaysDeposit; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/UnapproveCollectionInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/UnapproveCollectionInput.cs new file mode 100644 index 0000000..fc6f7d3 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/UnapproveCollectionInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Input data for revoking an operator approval on a collection (MultiTokens.unapprove_collection). +/// +public partial class UnapproveCollectionInput : IGraphQlInputObject +{ + private InputPropertyInfo _id; + private InputPropertyInfo _operator; + + /// + /// The collection to revoke the operator approval on. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Id + { + get => (QueryBuilderParameter?)_id.Value; + set => _id = new() { Name = "id", Value = value }; + } + + /// + /// The SS58 address or public key of the operator whose approval is being revoked. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? Operator + { + get => (QueryBuilderParameter?)_operator.Value; + set => _operator = new() { Name = "operator", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_id.Name != null) yield return _id; + if (_operator.Name != null) yield return _operator; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/UserAccountManagementInput.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/UserAccountManagementInput.cs new file mode 100644 index 0000000..449657d --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/UserAccountManagementInput.cs @@ -0,0 +1,53 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Controls whether the fuel tank reserves account-creation deposits and existential deposits on behalf of users. +/// +public partial class UserAccountManagementInput : IGraphQlInputObject +{ + private InputPropertyInfo _tankReservesAccountCreationDeposit; + private InputPropertyInfo _tankReservesExistentialDeposit; + + /// + /// If true, the fuel tank pays the account-creation deposit for new user accounts. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankReservesAccountCreationDeposit + { + get => (QueryBuilderParameter?)_tankReservesAccountCreationDeposit.Value; + set => _tankReservesAccountCreationDeposit = new() { Name = "tankReservesAccountCreationDeposit", Value = value }; + } + + /// + /// If true, the fuel tank pays the existential deposit for new user accounts. + /// + #if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON + [JsonConverter(typeof(QueryBuilderParameterConverter))] + #endif + public QueryBuilderParameter? TankReservesExistentialDeposit + { + get => (QueryBuilderParameter?)_tankReservesExistentialDeposit.Value; + set => _tankReservesExistentialDeposit = new() { Name = "tankReservesExistentialDeposit", Value = value }; + } + + IEnumerable IGraphQlInputObject.GetPropertyValues() + { + if (_tankReservesAccountCreationDeposit.Name != null) yield return _tankReservesAccountCreationDeposit; + if (_tankReservesExistentialDeposit.Name != null) yield return _tankReservesExistentialDeposit; + } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Account.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Account.cs index 2ac4eff..c1be3c4 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Account.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Account.cs @@ -30,9 +30,9 @@ public partial class Account /// public int? Nonce { get; set; } /// - /// The account transferable balance. + /// The account transferable balance, expressed as ENJ. /// - public global::System.Numerics.BigInteger Balance { get; set; } + public string Balance { get; set; } /// /// The tokens held by this account, each paired with the account's balance. /// diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/AccountPool.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/AccountPool.cs index 1401d08..0cf9515 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/AccountPool.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/AccountPool.cs @@ -30,17 +30,17 @@ public partial class AccountPool /// public PoolStateEnum? State { get; set; } /// - /// Amount of sENJ bonded. + /// Amount of sENJ bonded, expressed as ENJ. /// - public global::System.Numerics.BigInteger Bonded { get; set; } + public string Bonded { get; set; } /// - /// Accumulated unrealised ENJ rewards. + /// Accumulated unrealised ENJ rewards, expressed as ENJ. /// - public global::System.Numerics.BigInteger UnrealisedEnj { get; set; } + public string UnrealisedEnj { get; set; } /// - /// Total ENJ currently being unbonded (sum of all unbonding eras). + /// Total ENJ currently being unbonded (sum of all unbonding eras), expressed as ENJ. /// - public global::System.Numerics.BigInteger TotalUnbonding { get; set; } + public string TotalUnbonding { get; set; } /// /// Pool annual percentage yield. /// diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Block.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Block.cs index 10b9473..79176d1 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Block.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Block.cs @@ -26,18 +26,14 @@ public partial class Block /// public string? Hash { get; set; } /// - /// The block validator account. + /// The block validator public key. /// - public Account? Validator { get; set; } + public string? Validator { get; set; } /// /// The extrinsics in this block. /// public ICollection? Extrinsics { get; set; } /// - /// The events in this block. - /// - public ICollection? Events { get; set; } - /// /// The block creation time. /// public DateTimeOffset? CreatedAt { get; set; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTank.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTank.cs new file mode 100644 index 0000000..49cb796 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTank.cs @@ -0,0 +1,57 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A fuel tank that is compatible with a given account, pallet, and method. +/// +public partial class CompatibleFuelTank +{ + /// + /// The fuel tank address (public key). + /// + public string? Id { get; set; } + /// + /// The fuel tank display name. + /// + public string? Name { get; set; } + /// + /// Whether the tank covers the storage deposit in addition to fees. + /// + public bool? ProvidesDeposit { get; set; } + /// + /// Whether the tank covers fees only (FEES) or also the storage deposit (FEES_AND_DEPOSIT). + /// + public CoveragePolicy? CoveragePolicy { get; set; } + /// + /// The rule set that makes this tank compatible. + /// + public CompatibleFuelTankRuleSet? RuleSet { get; set; } + /// + /// Remaining per-user fuel budget expressed as ENJ, or null if no budget rule applies. + /// + public string? RemainingBudget { get; set; } + /// + /// Maximum per-user fuel budget expressed as ENJ, or null if no budget rule applies. + /// + public string? MaxBudget { get; set; } + /// + /// Amount of per-user fuel budget already consumed, expressed as ENJ, or null if no budget rule applies. + /// + public string? ConsumedBudget { get; set; } + /// + /// Free balance of the tank account, expressed as ENJ. + /// + public string? TankBalance { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTankRuleSet.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTankRuleSet.cs new file mode 100644 index 0000000..133c310 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTankRuleSet.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// The rule set matched for a compatible fuel tank. +/// +public partial class CompatibleFuelTankRuleSet +{ + /// + /// The opaque rule set id. + /// + public string? Id { get; set; } + /// + /// The numeric index of the rule set on the tank. + /// + public int? Index { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Event.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Event.cs index 630db52..e8858d9 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Event.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Event.cs @@ -22,7 +22,7 @@ public partial class Event /// public string? Id { get; set; } /// - /// The event name. + /// The human-readable event name (pallet and method with spaces). /// public string? Name { get; set; } /// @@ -33,5 +33,9 @@ public partial class Event /// The related token ID. /// public string? TokenId { get; set; } + /// + /// The raw event data payload. + /// + public string? Data { get; set; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Extrinsic.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Extrinsic.cs index 7792ff5..9146f54 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Extrinsic.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Extrinsic.cs @@ -53,5 +53,9 @@ public partial class Extrinsic /// The error message if failed. /// public string? Error { get; set; } + /// + /// The events in this extrinsic. + /// + public ICollection? Events { get; set; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelBudget.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelBudget.cs new file mode 100644 index 0000000..cb87df5 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelBudget.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A capped amount of fuel that resets every resetPeriod blocks. +/// +public partial class FuelBudget +{ + /// + /// The maximum fuel spend per reset period, expressed as ENJ. + /// + public string? Amount { get; set; } + /// + /// The number of blocks after which the budget refills. + /// + public global::System.Numerics.BigInteger? ResetPeriod { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTank.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTank.cs new file mode 100644 index 0000000..9cdb569 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTank.cs @@ -0,0 +1,61 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A fuel tank on the FuelTanks pallet, including its rule sets and account rules. +/// +public partial class FuelTank +{ + /// + /// The fuel tank address (public key). + /// + public string? Id { get; set; } + /// + /// The fuel tank display name. + /// + public string? Name { get; set; } + /// + /// The address of the fuel tank owner. + /// + public string? Owner { get; set; } + /// + /// Whether the tank covers transaction fees only (FEES) or also the storage deposit (FEES_AND_DEPOSIT). + /// + public CoveragePolicy? CoveragePolicy { get; set; } + /// + /// Whether the fuel tank is frozen (no calls can be dispatched). + /// + public bool? IsFrozen { get; set; } + /// + /// The number of user accounts currently registered on the tank. + /// + public int? AccountCount { get; set; } + /// + /// The on-chain account holding ENJ funds for this fuel tank. + /// + public Account? TankAccount { get; set; } + /// + /// User-account deposit settings, or null if the tank does not manage user deposits. + /// + public FuelTankUserAccountManagement? UserAccountManagement { get; set; } + /// + /// Account rules applied to all user accounts on this tank. + /// + public ICollection? AccountRules { get; set; } + /// + /// Rule sets defined on this tank, each with a numeric id and a list of dispatch rules. + /// + public ICollection? RuleSets { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankAccount.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankAccount.cs new file mode 100644 index 0000000..2815808 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankAccount.cs @@ -0,0 +1,25 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A user account registered on a fuel tank. +/// +public partial class FuelTankAccount +{ + /// + /// The address of the account registered on the tank (public key). + /// + public string? Address { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankAccountRule.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankAccountRule.cs new file mode 100644 index 0000000..5f2c0c0 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankAccountRule.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// An account rule applied when a user account is added to the tank. Exactly one of the variant fields is populated per row. +/// +public partial class FuelTankAccountRule +{ + /// + /// Only these caller addresses may be added as user accounts. + /// + public ICollection? WhitelistedCallers { get; set; } + /// + /// Caller must hold the referenced token to be added as a user account. + /// + public RequireToken? RequireToken { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankPermittedExtrinsic.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankPermittedExtrinsic.cs new file mode 100644 index 0000000..f32ff7f --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankPermittedExtrinsic.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A specific permitted extrinsic on a fuel tank rule set, identified by pallet and extrinsic name. +/// +public partial class FuelTankPermittedExtrinsic +{ + /// + /// The pallet name of the permitted extrinsic. + /// + public string? PalletName { get; set; } + /// + /// The extrinsic name within the pallet. + /// + public string? ExtrinsicName { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankRuleSet.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankRuleSet.cs new file mode 100644 index 0000000..32a8494 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankRuleSet.cs @@ -0,0 +1,77 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A rule set on a fuel tank, with its numeric id and the dispatch rules that apply to calls made under it. +/// +public partial class FuelTankRuleSet +{ + /// + /// The numeric id of this rule set on the fuel tank. + /// + public int? Id { get; set; } + /// + /// Whether the rule set is frozen (cannot be used). + /// + public bool? IsFrozen { get; set; } + /// + /// If true, only registered user accounts may use this rule set. + /// + public bool? RequireAccount { get; set; } + /// + /// If set, calls under this rule set must include a signature from this signer address. + /// + public string? RequireSignature { get; set; } + /// + /// Only these caller addresses may use this rule set. + /// + public ICollection? WhitelistedCallers { get; set; } + /// + /// Only calls targeting these collection ids are permitted. + /// + public ICollection? WhitelistedCollections { get; set; } + /// + /// Only calls targeting these pallet names are permitted. + /// + public ICollection? WhitelistedPallets { get; set; } + /// + /// Maximum fuel that any single transaction under this rule set may burn, expressed as ENJ. + /// + public string? MaxFuelBurnPerTransaction { get; set; } + /// + /// Minimum amount that must be infused into the fuel tank for this rule set to take effect, expressed as ENJ. + /// + public string? MinimumInfusion { get; set; } + /// + /// Per-user fuel budget that resets every resetPeriod blocks. + /// + public FuelBudget? UserFuelBudget { get; set; } + /// + /// Tank-wide fuel budget that resets every resetPeriod blocks. + /// + public FuelBudget? TankFuelBudget { get; set; } + /// + /// Callers must hold the referenced token to use this rule set. + /// + public RequireToken? RequireToken { get; set; } + /// + /// Permitted call hashes (0x-prefixed blake2_256 hex digests). + /// + public ICollection? PermittedCalls { get; set; } + /// + /// Only these specific extrinsics are permitted under this rule set. + /// + public ICollection? PermittedExtrinsics { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankUserAccountManagement.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankUserAccountManagement.cs new file mode 100644 index 0000000..d35cd39 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankUserAccountManagement.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Whether the fuel tank reserves account-creation and existential deposits on behalf of users. +/// +public partial class FuelTankUserAccountManagement +{ + /// + /// If true, the fuel tank pays the account-creation deposit for new user accounts. + /// + public bool? TankReservesAccountCreationDeposit { get; set; } + /// + /// If true, the fuel tank pays the existential deposit for new user accounts. + /// + public bool? TankReservesExistentialDeposit { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/LinkedWallet.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/LinkedWallet.cs new file mode 100644 index 0000000..cebcc66 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/LinkedWallet.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A linked wallet. +/// +public partial class LinkedWallet +{ + /// + /// The public key of the wallet. Null if the wallet is pending creation. + /// + public string? PublicKey { get; set; } + /// + /// The idempotency key of the linking code that was either defined by the user or automatically generated. + /// + public string? IdempotencyKey { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/LinkingCode.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/LinkingCode.cs new file mode 100644 index 0000000..95c4a84 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/LinkingCode.cs @@ -0,0 +1,41 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// A code to be used by an Enjin Wallet user to link their wallet with the Platform. +/// +public partial class LinkingCode +{ + /// + /// An idempotency key of the linking code, either defined by the user or automatically generated. + /// + public string? IdempotencyKey { get; set; } + /// + /// The temporary linking code to be inputted by the user in Enjin Wallet. + /// + public string? Code { get; set; } + /// + /// The link to a renderable image that can be scanned by the user to begin the linking process within the Enjin Wallet. + /// + public string? Qr { get; set; } + /// + /// The link to be used by the user to begin the linking process within the Enjin Wallet. + /// + public string? Url { get; set; } + /// + /// The date and time for when the linking code expires. + /// + public string? Expires { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Listing.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Listing.cs index 9c347e3..0d5aede 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Listing.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Listing.cs @@ -38,13 +38,13 @@ public partial class Listing /// public global::System.Numerics.BigInteger Amount { get; set; } /// - /// The price of the take asset requested. + /// The price of the take asset requested, expressed as ENJ. /// - public global::System.Numerics.BigInteger Price { get; set; } + public string Price { get; set; } /// - /// The minimum take value. + /// The minimum take value, expressed as ENJ. /// - public global::System.Numerics.BigInteger MinTakeValue { get; set; } + public string MinTakeValue { get; set; } /// /// The listing type. /// @@ -54,8 +54,8 @@ public partial class Listing /// public bool? IsActive { get; set; } /// - /// The highest price bid so far (if applicable). + /// The highest price bid so far, expressed as ENJ (if applicable). /// - public global::System.Numerics.BigInteger? HighestPrice { get; set; } + public string? HighestPrice { get; set; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/ManagedWalletSweepStatus.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/ManagedWalletSweepStatus.cs new file mode 100644 index 0000000..e7ef3a2 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/ManagedWalletSweepStatus.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// The sweep status of a managed wallet, derived from its transferable token balance. +/// +public partial class ManagedWalletSweepStatus +{ + /// + /// SWEPT when the wallet holds no transferable tokens, PENDING otherwise. + /// + public ManagedWalletSweepStatusEnum? Status { get; set; } + /// + /// The number of transferable token accounts with a positive balance held by the wallet (excludes frozen tokens and tokens in frozen collections). + /// + public int? TransferableTokenCount { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Mutation.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Mutation.cs index c3a67b2..cf1babf 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Mutation.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Mutation.cs @@ -23,6 +23,10 @@ public partial class Mutation /// public Transaction? CreateBatchTransaction { get; set; } /// + /// Creates a new, short-lived, linking code. The user must either enter the code or scan the QR to authorize you to submit signing requests. + /// + public LinkingCode? CreateLinkingCode { get; set; } + /// /// Prepares the creation of a new managed wallet. /// public bool? CreateManagedWallet { get; set; } @@ -34,5 +38,9 @@ public partial class Mutation /// Signs a pending transaction. /// public Transaction? SignTransaction { get; set; } + /// + /// Sweep all transferable tokens and ENJ from a managed wallet to a recipient. The work is performed asynchronously and rate-limited to once per hour per wallet. + /// + public SweepManagedWalletResult? SweepManagedWallet { get; set; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/NominationPool.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/NominationPool.cs index 8f7e263..c465ab8 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/NominationPool.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/NominationPool.cs @@ -30,9 +30,9 @@ public partial class NominationPool /// public PoolStateEnum? State { get; set; } /// - /// Maximum bonding capacity in sENJ. + /// Maximum bonding capacity in sENJ, expressed as ENJ. /// - public global::System.Numerics.BigInteger Capacity { get; set; } + public string Capacity { get; set; } /// /// Stash, reward and active balances. /// diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PoolBalance.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PoolBalance.cs index 6b99061..891cf98 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PoolBalance.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PoolBalance.cs @@ -18,16 +18,16 @@ namespace Enjin.Platform.Sdk; public partial class PoolBalance { /// - /// Total stash balance. + /// Total stash balance, expressed as ENJ. /// - public global::System.Numerics.BigInteger Stash { get; set; } + public string Stash { get; set; } /// - /// Reward account balance. + /// Reward account balance, expressed as ENJ. /// - public global::System.Numerics.BigInteger Reward { get; set; } + public string Reward { get; set; } /// - /// Active bonded amount. + /// Active bonded amount, expressed as ENJ. /// - public global::System.Numerics.BigInteger Active { get; set; } + public string Active { get; set; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PoolMember.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PoolMember.cs index 2077b80..d847238 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PoolMember.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PoolMember.cs @@ -22,12 +22,12 @@ public partial class PoolMember /// public string? PublicKey { get; set; } /// - /// Amount of sENJ bonded. + /// Amount of sENJ bonded, expressed as ENJ. /// - public global::System.Numerics.BigInteger Bonded { get; set; } + public string Bonded { get; set; } /// - /// Accumulated unrealised ENJ rewards. + /// Accumulated unrealised ENJ rewards, expressed as ENJ. /// - public global::System.Numerics.BigInteger UnrealisedEnj { get; set; } + public string UnrealisedEnj { get; set; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Query.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Query.cs index 8686d3e..bfb13a0 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Query.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Query.cs @@ -47,6 +47,10 @@ public partial class Query /// public ManagedWalletCursorPagination? GetManagedWallets { get; set; } /// + /// Reports whether a managed wallet has been swept, based on its transferable token balance from the indexer. + /// + public ManagedWalletSweepStatus? ManagedWalletSweepStatus { get; set; } + /// /// Get a single token by ID, or by collectionId + tokenId. /// public Token? GetToken { get; set; } @@ -83,6 +87,10 @@ public partial class Query /// public ICollection? GetExtrinsics { get; set; } /// + /// Returns a linked wallet. Requires at least address or idempotencyKey to be provided. + /// + public LinkedWallet? GetLinkedWallet { get; set; } + /// /// Verify a signed message against a public key. /// public bool? VerifyMessage { get; set; } @@ -98,5 +106,21 @@ public partial class Query /// Get a paginated list of nomination pools. /// public ICollection? GetNominationPools { get; set; } + /// + /// Get a single fuel tank by its address. + /// + public FuelTank? GetFuelTank { get; set; } + /// + /// Get a paginated list of fuel tanks, optionally filtered by tank address and/or name. + /// + public ICollection? GetFuelTanks { get; set; } + /// + /// Get a paginated list of accounts registered on a fuel tank, optionally filtered by address. + /// + public ICollection? GetFuelTankAccounts { get; set; } + /// + /// Get fuel tanks that are compatible with a given account, pallet, and method. + /// + public ICollection? GetCompatibleFuelTanks { get; set; } } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/RequireToken.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/RequireToken.cs new file mode 100644 index 0000000..b1ecf46 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/RequireToken.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// Reference to a single multi-token (collectionId + tokenId) required to use a rule set or account rule. +/// +public partial class RequireToken +{ + /// + /// The collection id of the required token. + /// + public global::System.Numerics.BigInteger CollectionId { get; set; } + /// + /// The token id within the collection. + /// + public global::System.Numerics.BigInteger? TokenId { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/SweepManagedWalletResult.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/SweepManagedWalletResult.cs new file mode 100644 index 0000000..09525f5 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/SweepManagedWalletResult.cs @@ -0,0 +1,29 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +/// +/// The result of enqueueing a managed wallet sweep, including the idempotency prefix used to key the resulting batch transactions. +/// +public partial class SweepManagedWalletResult +{ + /// + /// True when the sweep was accepted and the job dispatched. + /// + public bool? Accepted { get; set; } + /// + /// The prefix used to build per-batch idempotency keys (sprintf("%s-%d", prefix, batchNumber)) for the transactions this sweep creates, where batchNumber starts at 1. Use it to correlate the resulting transactions. + /// + public string? IdempotencyPrefix { get; set; } +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Token.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Token.cs index dd3410c..915fa0d 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Token.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Token.cs @@ -42,9 +42,9 @@ public partial class Token /// public bool? IsListingForbidden { get; set; } /// - /// The infusion amount. + /// The infusion amount, expressed as ENJ. /// - public global::System.Numerics.BigInteger? Infusion { get; set; } + public string? Infusion { get; set; } /// /// Whether anyone can infuse this token. /// diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/TokenGroupToken.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/TokenGroupToken.cs index 7741a80..6546e02 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/TokenGroupToken.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/TokenGroupToken.cs @@ -22,6 +22,10 @@ public partial class TokenGroupToken /// public global::System.Numerics.BigInteger TokenGroupId { get; set; } /// + /// The collection ID. + /// + public global::System.Numerics.BigInteger CollectionId { get; set; } + /// /// The token ID. /// public string? TokenId { get; set; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Transaction.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Transaction.cs index 0df7dea..73878b7 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Transaction.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Transaction.cs @@ -34,14 +34,18 @@ public partial class Transaction /// public string? EncodedData { get; set; } /// - /// The on-chain extrinsic hash. + /// The on-chain extrinsic, resolved from the indexer. /// - public string? ExtrinsicHash { get; set; } + public Extrinsic? Extrinsic { get; set; } /// /// The state of the transaction. /// public TransactionStateEnum? State { get; set; } /// + /// The on-chain failure reason when the transaction failed, including partial batch failures where the extrinsic finalized but one or more wrapped items did not dispatch. + /// + public string? Error { get; set; } + /// /// When the transaction was created. /// public DateTimeOffset? CreatedAt { get; set; } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/BlockQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/BlockQueryBuilder.cs index 70cdeb3..0ab0549 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/BlockQueryBuilder.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/BlockQueryBuilder.cs @@ -18,9 +18,8 @@ public partial class BlockQueryBuilder : GraphQlQueryBuilder { new() { Name = "number" }, new() { Name = "hash" }, - new() { Name = "validator", IsComplex = true, QueryBuilderType = typeof(AccountQueryBuilder) }, + new() { Name = "validator" }, new() { Name = "extrinsics", IsComplex = true, QueryBuilderType = typeof(ExtrinsicQueryBuilder) }, - new() { Name = "events", IsComplex = true, QueryBuilderType = typeof(EventQueryBuilder) }, new() { Name = "createdAt" } }; @@ -36,7 +35,7 @@ public partial class BlockQueryBuilder : GraphQlQueryBuilder public BlockQueryBuilder ExceptHash() => ExceptField("hash"); - public BlockQueryBuilder WithValidator(AccountQueryBuilder accountQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("validator", alias, accountQueryBuilder, [include, skip]); + public BlockQueryBuilder WithValidator(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("validator", alias, [include, skip]); public BlockQueryBuilder ExceptValidator() => ExceptField("validator"); @@ -44,10 +43,6 @@ public partial class BlockQueryBuilder : GraphQlQueryBuilder public BlockQueryBuilder ExceptExtrinsics() => ExceptField("extrinsics"); - public BlockQueryBuilder WithEvents(EventQueryBuilder eventQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("events", alias, eventQueryBuilder, [include, skip]); - - public BlockQueryBuilder ExceptEvents() => ExceptField("events"); - public BlockQueryBuilder WithCreatedAt(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("createdAt", alias, [include, skip]); public BlockQueryBuilder ExceptCreatedAt() => ExceptField("createdAt"); diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankQueryBuilder.cs new file mode 100644 index 0000000..ad9cff8 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankQueryBuilder.cs @@ -0,0 +1,70 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class CompatibleFuelTankQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "id" }, + new() { Name = "name" }, + new() { Name = "providesDeposit" }, + new() { Name = "coveragePolicy" }, + new() { Name = "ruleSet", IsComplex = true, QueryBuilderType = typeof(CompatibleFuelTankRuleSetQueryBuilder) }, + new() { Name = "remainingBudget" }, + new() { Name = "maxBudget" }, + new() { Name = "consumedBudget" }, + new() { Name = "tankBalance" } + }; + + protected override string TypeName => "CompatibleFuelTank"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public CompatibleFuelTankQueryBuilder WithId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("id", alias, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptId() => ExceptField("id"); + + public CompatibleFuelTankQueryBuilder WithName(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("name", alias, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptName() => ExceptField("name"); + + public CompatibleFuelTankQueryBuilder WithProvidesDeposit(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("providesDeposit", alias, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptProvidesDeposit() => ExceptField("providesDeposit"); + + public CompatibleFuelTankQueryBuilder WithCoveragePolicy(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("coveragePolicy", alias, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptCoveragePolicy() => ExceptField("coveragePolicy"); + + public CompatibleFuelTankQueryBuilder WithRuleSet(CompatibleFuelTankRuleSetQueryBuilder compatibleFuelTankRuleSetQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("ruleSet", alias, compatibleFuelTankRuleSetQueryBuilder, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptRuleSet() => ExceptField("ruleSet"); + + public CompatibleFuelTankQueryBuilder WithRemainingBudget(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("remainingBudget", alias, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptRemainingBudget() => ExceptField("remainingBudget"); + + public CompatibleFuelTankQueryBuilder WithMaxBudget(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("maxBudget", alias, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptMaxBudget() => ExceptField("maxBudget"); + + public CompatibleFuelTankQueryBuilder WithConsumedBudget(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("consumedBudget", alias, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptConsumedBudget() => ExceptField("consumedBudget"); + + public CompatibleFuelTankQueryBuilder WithTankBalance(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("tankBalance", alias, [include, skip]); + + public CompatibleFuelTankQueryBuilder ExceptTankBalance() => ExceptField("tankBalance"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankRuleSetQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankRuleSetQueryBuilder.cs new file mode 100644 index 0000000..a6d0fc8 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankRuleSetQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class CompatibleFuelTankRuleSetQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "id" }, + new() { Name = "index" } + }; + + protected override string TypeName => "CompatibleFuelTankRuleSet"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public CompatibleFuelTankRuleSetQueryBuilder WithId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("id", alias, [include, skip]); + + public CompatibleFuelTankRuleSetQueryBuilder ExceptId() => ExceptField("id"); + + public CompatibleFuelTankRuleSetQueryBuilder WithIndex(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("index", alias, [include, skip]); + + public CompatibleFuelTankRuleSetQueryBuilder ExceptIndex() => ExceptField("index"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/EventQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/EventQueryBuilder.cs index 6daca5f..d8f8dd6 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/EventQueryBuilder.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/EventQueryBuilder.cs @@ -19,7 +19,8 @@ public partial class EventQueryBuilder : GraphQlQueryBuilder new() { Name = "id" }, new() { Name = "name" }, new() { Name = "collectionId" }, - new() { Name = "tokenId" } + new() { Name = "tokenId" }, + new() { Name = "data" } }; protected override string TypeName => "Event"; @@ -41,5 +42,9 @@ public partial class EventQueryBuilder : GraphQlQueryBuilder public EventQueryBuilder WithTokenId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("tokenId", alias, [include, skip]); public EventQueryBuilder ExceptTokenId() => ExceptField("tokenId"); + + public EventQueryBuilder WithData(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("data", alias, [include, skip]); + + public EventQueryBuilder ExceptData() => ExceptField("data"); } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/ExtrinsicQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/ExtrinsicQueryBuilder.cs index 81f379e..28c8554 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/ExtrinsicQueryBuilder.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/ExtrinsicQueryBuilder.cs @@ -24,7 +24,8 @@ public partial class ExtrinsicQueryBuilder : GraphQlQueryBuilder "Extrinsic"; @@ -66,5 +67,9 @@ public partial class ExtrinsicQueryBuilder : GraphQlQueryBuilder WithScalarField("error", alias, [include, skip]); public ExtrinsicQueryBuilder ExceptError() => ExceptField("error"); + + public ExtrinsicQueryBuilder WithEvents(EventQueryBuilder eventQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("events", alias, eventQueryBuilder, [include, skip]); + + public ExtrinsicQueryBuilder ExceptEvents() => ExceptField("events"); } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelBudgetQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelBudgetQueryBuilder.cs new file mode 100644 index 0000000..99769b7 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelBudgetQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class FuelBudgetQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "amount" }, + new() { Name = "resetPeriod" } + }; + + protected override string TypeName => "FuelBudget"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public FuelBudgetQueryBuilder WithAmount(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("amount", alias, [include, skip]); + + public FuelBudgetQueryBuilder ExceptAmount() => ExceptField("amount"); + + public FuelBudgetQueryBuilder WithResetPeriod(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("resetPeriod", alias, [include, skip]); + + public FuelBudgetQueryBuilder ExceptResetPeriod() => ExceptField("resetPeriod"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankAccountQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankAccountQueryBuilder.cs new file mode 100644 index 0000000..6123d4f --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankAccountQueryBuilder.cs @@ -0,0 +1,30 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class FuelTankAccountQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "address" } + }; + + protected override string TypeName => "FuelTankAccount"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public FuelTankAccountQueryBuilder WithAddress(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("address", alias, [include, skip]); + + public FuelTankAccountQueryBuilder ExceptAddress() => ExceptField("address"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankAccountRuleQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankAccountRuleQueryBuilder.cs new file mode 100644 index 0000000..c1f301e --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankAccountRuleQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class FuelTankAccountRuleQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "whitelistedCallers", IsComplex = true }, + new() { Name = "requireToken", IsComplex = true, QueryBuilderType = typeof(RequireTokenQueryBuilder) } + }; + + protected override string TypeName => "FuelTankAccountRule"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public FuelTankAccountRuleQueryBuilder WithWhitelistedCallers(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("whitelistedCallers", alias, [include, skip]); + + public FuelTankAccountRuleQueryBuilder ExceptWhitelistedCallers() => ExceptField("whitelistedCallers"); + + public FuelTankAccountRuleQueryBuilder WithRequireToken(RequireTokenQueryBuilder requireTokenQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("requireToken", alias, requireTokenQueryBuilder, [include, skip]); + + public FuelTankAccountRuleQueryBuilder ExceptRequireToken() => ExceptField("requireToken"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankPermittedExtrinsicQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankPermittedExtrinsicQueryBuilder.cs new file mode 100644 index 0000000..86a3c7e --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankPermittedExtrinsicQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class FuelTankPermittedExtrinsicQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "palletName" }, + new() { Name = "extrinsicName" } + }; + + protected override string TypeName => "FuelTankPermittedExtrinsic"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public FuelTankPermittedExtrinsicQueryBuilder WithPalletName(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("palletName", alias, [include, skip]); + + public FuelTankPermittedExtrinsicQueryBuilder ExceptPalletName() => ExceptField("palletName"); + + public FuelTankPermittedExtrinsicQueryBuilder WithExtrinsicName(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("extrinsicName", alias, [include, skip]); + + public FuelTankPermittedExtrinsicQueryBuilder ExceptExtrinsicName() => ExceptField("extrinsicName"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankQueryBuilder.cs new file mode 100644 index 0000000..49bcedd --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankQueryBuilder.cs @@ -0,0 +1,75 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class FuelTankQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "id" }, + new() { Name = "name" }, + new() { Name = "owner" }, + new() { Name = "coveragePolicy" }, + new() { Name = "isFrozen" }, + new() { Name = "accountCount" }, + new() { Name = "tankAccount", IsComplex = true, QueryBuilderType = typeof(AccountQueryBuilder) }, + new() { Name = "userAccountManagement", IsComplex = true, QueryBuilderType = typeof(FuelTankUserAccountManagementQueryBuilder) }, + new() { Name = "accountRules", IsComplex = true, QueryBuilderType = typeof(FuelTankAccountRuleQueryBuilder) }, + new() { Name = "ruleSets", IsComplex = true, QueryBuilderType = typeof(FuelTankRuleSetQueryBuilder) } + }; + + protected override string TypeName => "FuelTank"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public FuelTankQueryBuilder WithId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("id", alias, [include, skip]); + + public FuelTankQueryBuilder ExceptId() => ExceptField("id"); + + public FuelTankQueryBuilder WithName(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("name", alias, [include, skip]); + + public FuelTankQueryBuilder ExceptName() => ExceptField("name"); + + public FuelTankQueryBuilder WithOwner(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("owner", alias, [include, skip]); + + public FuelTankQueryBuilder ExceptOwner() => ExceptField("owner"); + + public FuelTankQueryBuilder WithCoveragePolicy(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("coveragePolicy", alias, [include, skip]); + + public FuelTankQueryBuilder ExceptCoveragePolicy() => ExceptField("coveragePolicy"); + + public FuelTankQueryBuilder WithIsFrozen(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("isFrozen", alias, [include, skip]); + + public FuelTankQueryBuilder ExceptIsFrozen() => ExceptField("isFrozen"); + + public FuelTankQueryBuilder WithAccountCount(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("accountCount", alias, [include, skip]); + + public FuelTankQueryBuilder ExceptAccountCount() => ExceptField("accountCount"); + + public FuelTankQueryBuilder WithTankAccount(AccountQueryBuilder accountQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("tankAccount", alias, accountQueryBuilder, [include, skip]); + + public FuelTankQueryBuilder ExceptTankAccount() => ExceptField("tankAccount"); + + public FuelTankQueryBuilder WithUserAccountManagement(FuelTankUserAccountManagementQueryBuilder fuelTankUserAccountManagementQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("userAccountManagement", alias, fuelTankUserAccountManagementQueryBuilder, [include, skip]); + + public FuelTankQueryBuilder ExceptUserAccountManagement() => ExceptField("userAccountManagement"); + + public FuelTankQueryBuilder WithAccountRules(FuelTankAccountRuleQueryBuilder fuelTankAccountRuleQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("accountRules", alias, fuelTankAccountRuleQueryBuilder, [include, skip]); + + public FuelTankQueryBuilder ExceptAccountRules() => ExceptField("accountRules"); + + public FuelTankQueryBuilder WithRuleSets(FuelTankRuleSetQueryBuilder fuelTankRuleSetQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("ruleSets", alias, fuelTankRuleSetQueryBuilder, [include, skip]); + + public FuelTankQueryBuilder ExceptRuleSets() => ExceptField("ruleSets"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankRuleSetQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankRuleSetQueryBuilder.cs new file mode 100644 index 0000000..4dfc843 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankRuleSetQueryBuilder.cs @@ -0,0 +1,95 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class FuelTankRuleSetQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "id" }, + new() { Name = "isFrozen" }, + new() { Name = "requireAccount" }, + new() { Name = "requireSignature" }, + new() { Name = "whitelistedCallers", IsComplex = true }, + new() { Name = "whitelistedCollections", IsComplex = true }, + new() { Name = "whitelistedPallets", IsComplex = true }, + new() { Name = "maxFuelBurnPerTransaction" }, + new() { Name = "minimumInfusion" }, + new() { Name = "userFuelBudget", IsComplex = true, QueryBuilderType = typeof(FuelBudgetQueryBuilder) }, + new() { Name = "tankFuelBudget", IsComplex = true, QueryBuilderType = typeof(FuelBudgetQueryBuilder) }, + new() { Name = "requireToken", IsComplex = true, QueryBuilderType = typeof(RequireTokenQueryBuilder) }, + new() { Name = "permittedCalls", IsComplex = true }, + new() { Name = "permittedExtrinsics", IsComplex = true, QueryBuilderType = typeof(FuelTankPermittedExtrinsicQueryBuilder) } + }; + + protected override string TypeName => "FuelTankRuleSet"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public FuelTankRuleSetQueryBuilder WithId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("id", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptId() => ExceptField("id"); + + public FuelTankRuleSetQueryBuilder WithIsFrozen(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("isFrozen", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptIsFrozen() => ExceptField("isFrozen"); + + public FuelTankRuleSetQueryBuilder WithRequireAccount(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("requireAccount", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptRequireAccount() => ExceptField("requireAccount"); + + public FuelTankRuleSetQueryBuilder WithRequireSignature(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("requireSignature", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptRequireSignature() => ExceptField("requireSignature"); + + public FuelTankRuleSetQueryBuilder WithWhitelistedCallers(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("whitelistedCallers", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptWhitelistedCallers() => ExceptField("whitelistedCallers"); + + public FuelTankRuleSetQueryBuilder WithWhitelistedCollections(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("whitelistedCollections", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptWhitelistedCollections() => ExceptField("whitelistedCollections"); + + public FuelTankRuleSetQueryBuilder WithWhitelistedPallets(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("whitelistedPallets", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptWhitelistedPallets() => ExceptField("whitelistedPallets"); + + public FuelTankRuleSetQueryBuilder WithMaxFuelBurnPerTransaction(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("maxFuelBurnPerTransaction", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptMaxFuelBurnPerTransaction() => ExceptField("maxFuelBurnPerTransaction"); + + public FuelTankRuleSetQueryBuilder WithMinimumInfusion(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("minimumInfusion", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptMinimumInfusion() => ExceptField("minimumInfusion"); + + public FuelTankRuleSetQueryBuilder WithUserFuelBudget(FuelBudgetQueryBuilder fuelBudgetQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("userFuelBudget", alias, fuelBudgetQueryBuilder, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptUserFuelBudget() => ExceptField("userFuelBudget"); + + public FuelTankRuleSetQueryBuilder WithTankFuelBudget(FuelBudgetQueryBuilder fuelBudgetQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("tankFuelBudget", alias, fuelBudgetQueryBuilder, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptTankFuelBudget() => ExceptField("tankFuelBudget"); + + public FuelTankRuleSetQueryBuilder WithRequireToken(RequireTokenQueryBuilder requireTokenQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("requireToken", alias, requireTokenQueryBuilder, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptRequireToken() => ExceptField("requireToken"); + + public FuelTankRuleSetQueryBuilder WithPermittedCalls(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("permittedCalls", alias, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptPermittedCalls() => ExceptField("permittedCalls"); + + public FuelTankRuleSetQueryBuilder WithPermittedExtrinsics(FuelTankPermittedExtrinsicQueryBuilder fuelTankPermittedExtrinsicQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("permittedExtrinsics", alias, fuelTankPermittedExtrinsicQueryBuilder, [include, skip]); + + public FuelTankRuleSetQueryBuilder ExceptPermittedExtrinsics() => ExceptField("permittedExtrinsics"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankUserAccountManagementQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankUserAccountManagementQueryBuilder.cs new file mode 100644 index 0000000..056ea1e --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/FuelTankUserAccountManagementQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class FuelTankUserAccountManagementQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "tankReservesAccountCreationDeposit" }, + new() { Name = "tankReservesExistentialDeposit" } + }; + + protected override string TypeName => "FuelTankUserAccountManagement"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public FuelTankUserAccountManagementQueryBuilder WithTankReservesAccountCreationDeposit(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("tankReservesAccountCreationDeposit", alias, [include, skip]); + + public FuelTankUserAccountManagementQueryBuilder ExceptTankReservesAccountCreationDeposit() => ExceptField("tankReservesAccountCreationDeposit"); + + public FuelTankUserAccountManagementQueryBuilder WithTankReservesExistentialDeposit(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("tankReservesExistentialDeposit", alias, [include, skip]); + + public FuelTankUserAccountManagementQueryBuilder ExceptTankReservesExistentialDeposit() => ExceptField("tankReservesExistentialDeposit"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/LinkedWalletQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/LinkedWalletQueryBuilder.cs new file mode 100644 index 0000000..35dd893 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/LinkedWalletQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class LinkedWalletQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "publicKey" }, + new() { Name = "idempotencyKey" } + }; + + protected override string TypeName => "LinkedWallet"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public LinkedWalletQueryBuilder WithPublicKey(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("publicKey", alias, [include, skip]); + + public LinkedWalletQueryBuilder ExceptPublicKey() => ExceptField("publicKey"); + + public LinkedWalletQueryBuilder WithIdempotencyKey(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("idempotencyKey", alias, [include, skip]); + + public LinkedWalletQueryBuilder ExceptIdempotencyKey() => ExceptField("idempotencyKey"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/LinkingCodeQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/LinkingCodeQueryBuilder.cs new file mode 100644 index 0000000..8877ac1 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/LinkingCodeQueryBuilder.cs @@ -0,0 +1,50 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class LinkingCodeQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "idempotencyKey" }, + new() { Name = "code" }, + new() { Name = "qr" }, + new() { Name = "url" }, + new() { Name = "expires" } + }; + + protected override string TypeName => "LinkingCode"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public LinkingCodeQueryBuilder WithIdempotencyKey(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("idempotencyKey", alias, [include, skip]); + + public LinkingCodeQueryBuilder ExceptIdempotencyKey() => ExceptField("idempotencyKey"); + + public LinkingCodeQueryBuilder WithCode(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("code", alias, [include, skip]); + + public LinkingCodeQueryBuilder ExceptCode() => ExceptField("code"); + + public LinkingCodeQueryBuilder WithQr(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("qr", alias, [include, skip]); + + public LinkingCodeQueryBuilder ExceptQr() => ExceptField("qr"); + + public LinkingCodeQueryBuilder WithUrl(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("url", alias, [include, skip]); + + public LinkingCodeQueryBuilder ExceptUrl() => ExceptField("url"); + + public LinkingCodeQueryBuilder WithExpires(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("expires", alias, [include, skip]); + + public LinkingCodeQueryBuilder ExceptExpires() => ExceptField("expires"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/ManagedWalletSweepStatusQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/ManagedWalletSweepStatusQueryBuilder.cs new file mode 100644 index 0000000..2b8340d --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/ManagedWalletSweepStatusQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class ManagedWalletSweepStatusQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "status" }, + new() { Name = "transferableTokenCount" } + }; + + protected override string TypeName => "ManagedWalletSweepStatus"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public ManagedWalletSweepStatusQueryBuilder WithStatus(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("status", alias, [include, skip]); + + public ManagedWalletSweepStatusQueryBuilder ExceptStatus() => ExceptField("status"); + + public ManagedWalletSweepStatusQueryBuilder WithTransferableTokenCount(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("transferableTokenCount", alias, [include, skip]); + + public ManagedWalletSweepStatusQueryBuilder ExceptTransferableTokenCount() => ExceptField("transferableTokenCount"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/MutationQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/MutationQueryBuilder.cs index fa6469a..9022d31 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/MutationQueryBuilder.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/MutationQueryBuilder.cs @@ -18,9 +18,11 @@ public partial class MutationQueryBuilder : GraphQlQueryBuilder "Mutation"; @@ -40,8 +42,9 @@ public MutationQueryBuilder(string? operationName = null) : base("mutation", ope /// An optional idempotency key. A validation error will occur if the key already exists. /// Wrap the call in Proxy.proxy with this address as the real origin. /// Wrap the call in FuelTanks.dispatch_and_touch using this tank address. + /// The fuel tank rule set id to dispatch against. Defaults to 0. Only used when fuelTank is provided. /// The transaction details including the underlying method and required attributes. - public MutationQueryBuilder WithCreateTransaction(TransactionQueryBuilder transactionQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter transaction, QueryBuilderParameter? signerAddress = null, QueryBuilderParameter? signerExternalId = null, QueryBuilderParameter? idempotencyKey = null, QueryBuilderParameter? proxyAddress = null, QueryBuilderParameter? fuelTank = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + public MutationQueryBuilder WithCreateTransaction(TransactionQueryBuilder transactionQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter transaction, QueryBuilderParameter? signerAddress = null, QueryBuilderParameter? signerExternalId = null, QueryBuilderParameter? idempotencyKey = null, QueryBuilderParameter? proxyAddress = null, QueryBuilderParameter? fuelTank = null, QueryBuilderParameter? fuelTankRuleSetId = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) { var args = new List(); args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); @@ -61,6 +64,9 @@ public MutationQueryBuilder WithCreateTransaction(TransactionQueryBuilder transa if (fuelTank != null) args.Add(new() { ArgumentName = "fuelTank", ArgumentValue = fuelTank} ); + if (fuelTankRuleSetId != null) + args.Add(new() { ArgumentName = "fuelTankRuleSetId", ArgumentValue = fuelTankRuleSetId} ); + args.Add(new() { ArgumentName = "transaction", ArgumentValue = transaction} ); return WithObjectField("CreateTransaction", alias, transactionQueryBuilder, [include, skip], args); } @@ -74,8 +80,10 @@ public MutationQueryBuilder WithCreateTransaction(TransactionQueryBuilder transa /// An optional idempotency key. A validation error will occur if the key already exists. /// Wrap the call in Proxy.proxy with this address as the real origin. /// Wrap the call in FuelTanks.dispatch_and_touch using this tank address. + /// The fuel tank rule set id to dispatch against. Defaults to 0. Only used when fuelTank is provided. /// The list of transactions to encode. - public MutationQueryBuilder WithCreateBatchTransaction(TransactionQueryBuilder transactionQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter> transactions, QueryBuilderParameter? signerAddress = null, QueryBuilderParameter? signerExternalId = null, QueryBuilderParameter? idempotencyKey = null, QueryBuilderParameter? proxyAddress = null, QueryBuilderParameter? fuelTank = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + /// Determines whether the batch halts, continues, or reverts when a call fails. + public MutationQueryBuilder WithCreateBatchTransaction(TransactionQueryBuilder transactionQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter> transactions, QueryBuilderParameter batchMode, QueryBuilderParameter? signerAddress = null, QueryBuilderParameter? signerExternalId = null, QueryBuilderParameter? idempotencyKey = null, QueryBuilderParameter? proxyAddress = null, QueryBuilderParameter? fuelTank = null, QueryBuilderParameter? fuelTankRuleSetId = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) { var args = new List(); args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); @@ -95,12 +103,28 @@ public MutationQueryBuilder WithCreateBatchTransaction(TransactionQueryBuilder t if (fuelTank != null) args.Add(new() { ArgumentName = "fuelTank", ArgumentValue = fuelTank} ); + if (fuelTankRuleSetId != null) + args.Add(new() { ArgumentName = "fuelTankRuleSetId", ArgumentValue = fuelTankRuleSetId} ); + args.Add(new() { ArgumentName = "transactions", ArgumentValue = transactions} ); + args.Add(new() { ArgumentName = "batchMode", ArgumentValue = batchMode} ); return WithObjectField("CreateBatchTransaction", alias, transactionQueryBuilder, [include, skip], args); } public MutationQueryBuilder ExceptCreateBatchTransaction() => ExceptField("CreateBatchTransaction"); + /// An optional idempotency key. A validation error will occur if the key already exists. + public MutationQueryBuilder WithCreateLinkingCode(LinkingCodeQueryBuilder linkingCodeQueryBuilder, QueryBuilderParameter? idempotencyKey = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + { + var args = new List(); + if (idempotencyKey != null) + args.Add(new() { ArgumentName = "idempotencyKey", ArgumentValue = idempotencyKey} ); + + return WithObjectField("CreateLinkingCode", alias, linkingCodeQueryBuilder, [include, skip], args); + } + + public MutationQueryBuilder ExceptCreateLinkingCode() => ExceptField("CreateLinkingCode"); + /// A user-defined external identifier. public MutationQueryBuilder WithCreateManagedWallet(QueryBuilderParameter externalId, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) { @@ -150,5 +174,35 @@ public MutationQueryBuilder WithSignTransaction(TransactionQueryBuilder transact } public MutationQueryBuilder ExceptSignTransaction() => ExceptField("SignTransaction"); + + /// The network to mutate. + /// The chain to mutate. + /// The SS58 address or public key of the signer. (mutually exclusive with signerExternalId) + /// A user-defined external identifier, used with the daemon, to be used to sign the transaction. (mutually exclusive with signerAddress) + /// The address to which all swept funds and tokens will be sent. + /// Optional fuel tank to sponsor the sweep fee. When set, the sweep is dispatched via FuelTanks.dispatch_and_touch. + /// The fuel tank rule set id to dispatch against. Defaults to 0. Only used when fuelTank is provided. + public MutationQueryBuilder WithSweepManagedWallet(SweepManagedWalletResultQueryBuilder sweepManagedWalletResultQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter recipient, QueryBuilderParameter? signerAddress = null, QueryBuilderParameter? signerExternalId = null, QueryBuilderParameter? fuelTank = null, QueryBuilderParameter? fuelTankRuleSetId = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + { + var args = new List(); + args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); + args.Add(new() { ArgumentName = "chain", ArgumentValue = chain} ); + if (signerAddress != null) + args.Add(new() { ArgumentName = "signerAddress", ArgumentValue = signerAddress} ); + + if (signerExternalId != null) + args.Add(new() { ArgumentName = "signerExternalId", ArgumentValue = signerExternalId} ); + + args.Add(new() { ArgumentName = "recipient", ArgumentValue = recipient} ); + if (fuelTank != null) + args.Add(new() { ArgumentName = "fuelTank", ArgumentValue = fuelTank} ); + + if (fuelTankRuleSetId != null) + args.Add(new() { ArgumentName = "fuelTankRuleSetId", ArgumentValue = fuelTankRuleSetId} ); + + return WithObjectField("SweepManagedWallet", alias, sweepManagedWalletResultQueryBuilder, [include, skip], args); + } + + public MutationQueryBuilder ExceptSweepManagedWallet() => ExceptField("SweepManagedWallet"); } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/QueryQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/QueryQueryBuilder.cs index 8f0b157..a6bfc5b 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/QueryQueryBuilder.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/QueryQueryBuilder.cs @@ -22,8 +22,9 @@ public partial class QueryQueryBuilder : GraphQlQueryBuilder new() { Name = "GetBlocks", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(BlockQueryBuilder) }, new() { Name = "GetListing", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(ListingQueryBuilder) }, new() { Name = "GetListings", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(ListingQueryBuilder) }, - new() { Name = "GetManagedWallet", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(ManagedWalletQueryBuilder) }, + new() { Name = "GetManagedWallet", IsComplex = true, QueryBuilderType = typeof(ManagedWalletQueryBuilder) }, new() { Name = "GetManagedWallets", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(ManagedWalletCursorPaginationQueryBuilder) }, + new() { Name = "ManagedWalletSweepStatus", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(ManagedWalletSweepStatusQueryBuilder) }, new() { Name = "GetToken", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(TokenQueryBuilder) }, new() { Name = "GetTokens", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(TokenQueryBuilder) }, new() { Name = "GetTransaction", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(TransactionQueryBuilder) }, @@ -33,10 +34,15 @@ public partial class QueryQueryBuilder : GraphQlQueryBuilder new() { Name = "GetPendingCollectionTransfers", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(PendingCollectionQueryBuilder) }, new() { Name = "GetExtrinsic", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(ExtrinsicQueryBuilder) }, new() { Name = "GetExtrinsics", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(ExtrinsicQueryBuilder) }, + new() { Name = "GetLinkedWallet", IsComplex = true, QueryBuilderType = typeof(LinkedWalletQueryBuilder) }, new() { Name = "VerifyMessage", RequiresParameters = true }, new() { Name = "GetAccountPools", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(AccountPoolQueryBuilder) }, new() { Name = "GetNominationPool", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(NominationPoolQueryBuilder) }, - new() { Name = "GetNominationPools", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(NominationPoolQueryBuilder) } + new() { Name = "GetNominationPools", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(NominationPoolQueryBuilder) }, + new() { Name = "GetFuelTank", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(FuelTankQueryBuilder) }, + new() { Name = "GetFuelTanks", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(FuelTankQueryBuilder) }, + new() { Name = "GetFuelTankAccounts", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(FuelTankAccountQueryBuilder) }, + new() { Name = "GetCompatibleFuelTanks", RequiresParameters = true, IsComplex = true, QueryBuilderType = typeof(CompatibleFuelTankQueryBuilder) } }; protected override string TypeName => "Query"; @@ -153,15 +159,11 @@ public QueryQueryBuilder WithGetListings(ListingQueryBuilder listingQueryBuilder public QueryQueryBuilder ExceptGetListings() => ExceptField("GetListings"); - /// The network to query. - /// The chain to query. /// A list of public keys. (mutually exclusive with externalId) /// A list of user-defined external identifiers. (mutually exclusive with publicKey) - public QueryQueryBuilder WithGetManagedWallet(ManagedWalletQueryBuilder managedWalletQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter? publicKey = null, QueryBuilderParameter? externalId = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + public QueryQueryBuilder WithGetManagedWallet(ManagedWalletQueryBuilder managedWalletQueryBuilder, QueryBuilderParameter? publicKey = null, QueryBuilderParameter? externalId = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) { var args = new List(); - args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); - args.Add(new() { ArgumentName = "chain", ArgumentValue = chain} ); if (publicKey != null) args.Add(new() { ArgumentName = "publicKey", ArgumentValue = publicKey} ); @@ -173,17 +175,13 @@ public QueryQueryBuilder WithGetManagedWallet(ManagedWalletQueryBuilder managedW public QueryQueryBuilder ExceptGetManagedWallet() => ExceptField("GetManagedWallet"); - /// The network to query. - /// The chain to query. /// A list of public keys. (mutually exclusive with externalIds) /// A list of user-defined external identifiers. (mutually exclusive with publicKeys) /// The number of results to return per page. /// The cursor for which to paginate using. - public QueryQueryBuilder WithGetManagedWallets(ManagedWalletCursorPaginationQueryBuilder managedWalletCursorPaginationQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter limit, QueryBuilderParameter>? publicKeys = null, QueryBuilderParameter>? externalIds = null, QueryBuilderParameter? cursor = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + public QueryQueryBuilder WithGetManagedWallets(ManagedWalletCursorPaginationQueryBuilder managedWalletCursorPaginationQueryBuilder, QueryBuilderParameter limit, QueryBuilderParameter>? publicKeys = null, QueryBuilderParameter>? externalIds = null, QueryBuilderParameter? cursor = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) { var args = new List(); - args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); - args.Add(new() { ArgumentName = "chain", ArgumentValue = chain} ); if (publicKeys != null) args.Add(new() { ArgumentName = "publicKeys", ArgumentValue = publicKeys} ); @@ -199,6 +197,20 @@ public QueryQueryBuilder WithGetManagedWallets(ManagedWalletCursorPaginationQuer public QueryQueryBuilder ExceptGetManagedWallets() => ExceptField("GetManagedWallets"); + /// The network to query. + /// The chain to query. + /// The user-defined external identifier of the managed wallet to inspect. + public QueryQueryBuilder WithManagedWalletSweepStatus(ManagedWalletSweepStatusQueryBuilder managedWalletSweepStatusQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter externalId, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + { + var args = new List(); + args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); + args.Add(new() { ArgumentName = "chain", ArgumentValue = chain} ); + args.Add(new() { ArgumentName = "externalId", ArgumentValue = externalId} ); + return WithObjectField("ManagedWalletSweepStatus", alias, managedWalletSweepStatusQueryBuilder, [include, skip], args); + } + + public QueryQueryBuilder ExceptManagedWalletSweepStatus() => ExceptField("ManagedWalletSweepStatus"); + /// The network to query. /// The chain to query. /// The full token ID, e.g. "2100-1" (mutually exclusive with collectionId + tokenId). @@ -227,9 +239,10 @@ public QueryQueryBuilder WithGetToken(TokenQueryBuilder tokenQueryBuilder, Query /// The chain to query. /// The collection ID. /// Optional token IDs within the collection (max 100). Can be combined with pagination. + /// Optional token metadata name substring to search for (case-insensitive). /// Number of tokens to return per page (max 100, default 25). /// Page number (max 500, default 1). - public QueryQueryBuilder WithGetTokens(TokenQueryBuilder tokenQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter collectionId, QueryBuilderParameter limit, QueryBuilderParameter page, QueryBuilderParameter>? tokenIds = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + public QueryQueryBuilder WithGetTokens(TokenQueryBuilder tokenQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter collectionId, QueryBuilderParameter limit, QueryBuilderParameter page, QueryBuilderParameter>? tokenIds = null, QueryBuilderParameter? name = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) { var args = new List(); args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); @@ -238,6 +251,9 @@ public QueryQueryBuilder WithGetTokens(TokenQueryBuilder tokenQueryBuilder, Quer if (tokenIds != null) args.Add(new() { ArgumentName = "tokenIds", ArgumentValue = tokenIds} ); + if (name != null) + args.Add(new() { ArgumentName = "name", ArgumentValue = name} ); + args.Add(new() { ArgumentName = "limit", ArgumentValue = limit} ); args.Add(new() { ArgumentName = "page", ArgumentValue = page} ); return WithObjectField("GetTokens", alias, tokenQueryBuilder, [include, skip], args); @@ -381,6 +397,22 @@ public QueryQueryBuilder WithGetExtrinsics(ExtrinsicQueryBuilder extrinsicQueryB public QueryQueryBuilder ExceptGetExtrinsics() => ExceptField("GetExtrinsics"); + /// The address of the account (either a public key or SS58 address). (mutually exclusive with idempotencyKey) + /// The idempotency key assigned when creating a linking code. (mutually exclusive with address) + public QueryQueryBuilder WithGetLinkedWallet(LinkedWalletQueryBuilder linkedWalletQueryBuilder, QueryBuilderParameter? address = null, QueryBuilderParameter? idempotencyKey = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + { + var args = new List(); + if (address != null) + args.Add(new() { ArgumentName = "address", ArgumentValue = address} ); + + if (idempotencyKey != null) + args.Add(new() { ArgumentName = "idempotencyKey", ArgumentValue = idempotencyKey} ); + + return WithObjectField("GetLinkedWallet", alias, linkedWalletQueryBuilder, [include, skip], args); + } + + public QueryQueryBuilder ExceptGetLinkedWallet() => ExceptField("GetLinkedWallet"); + /// The network to query. /// The chain to query. /// The public key that allegedly signed the message. @@ -442,5 +474,87 @@ public QueryQueryBuilder WithGetNominationPools(NominationPoolQueryBuilder nomin } public QueryQueryBuilder ExceptGetNominationPools() => ExceptField("GetNominationPools"); + + /// The network to query. + /// The chain to query. + /// The fuel tank address. Accepts either a 0x-prefixed public key or an SS58 address. + public QueryQueryBuilder WithGetFuelTank(FuelTankQueryBuilder fuelTankQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter id, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + { + var args = new List(); + args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); + args.Add(new() { ArgumentName = "chain", ArgumentValue = chain} ); + args.Add(new() { ArgumentName = "id", ArgumentValue = id} ); + return WithObjectField("GetFuelTank", alias, fuelTankQueryBuilder, [include, skip], args); + } + + public QueryQueryBuilder ExceptGetFuelTank() => ExceptField("GetFuelTank"); + + /// The network to query. + /// The chain to query. + /// Filter to the fuel tank with this address. Accepts either a 0x-prefixed public key or an SS58 address. When combined with name, the two are OR-ed (matches either). + /// Filter to fuel tanks whose name contains this term (case-insensitive). When combined with id, the two are OR-ed (matches either). + /// Filter fuel tanks by owner address (public key or SS58). If combined with id and/or name, the owner filter is AND-ed with the other criteria. + /// Number of fuel tanks to return (default 25, max 100). + /// Page number for pagination (default 1). + public QueryQueryBuilder WithGetFuelTanks(FuelTankQueryBuilder fuelTankQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter limit, QueryBuilderParameter page, QueryBuilderParameter? id = null, QueryBuilderParameter? name = null, QueryBuilderParameter? address = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + { + var args = new List(); + args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); + args.Add(new() { ArgumentName = "chain", ArgumentValue = chain} ); + if (id != null) + args.Add(new() { ArgumentName = "id", ArgumentValue = id} ); + + if (name != null) + args.Add(new() { ArgumentName = "name", ArgumentValue = name} ); + + if (address != null) + args.Add(new() { ArgumentName = "address", ArgumentValue = address} ); + + args.Add(new() { ArgumentName = "limit", ArgumentValue = limit} ); + args.Add(new() { ArgumentName = "page", ArgumentValue = page} ); + return WithObjectField("GetFuelTanks", alias, fuelTankQueryBuilder, [include, skip], args); + } + + public QueryQueryBuilder ExceptGetFuelTanks() => ExceptField("GetFuelTanks"); + + /// The network to query. + /// The chain to query. + /// The fuel tank address. Accepts either a 0x-prefixed public key or an SS58 address. + /// Filter to a single account address. Accepts either a 0x-prefixed public key or an SS58 address. + /// Number of accounts to return (default 25, max 100). + /// Page number for pagination (default 1). + public QueryQueryBuilder WithGetFuelTankAccounts(FuelTankAccountQueryBuilder fuelTankAccountQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter tankId, QueryBuilderParameter limit, QueryBuilderParameter page, QueryBuilderParameter? address = null, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + { + var args = new List(); + args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); + args.Add(new() { ArgumentName = "chain", ArgumentValue = chain} ); + args.Add(new() { ArgumentName = "tankId", ArgumentValue = tankId} ); + if (address != null) + args.Add(new() { ArgumentName = "address", ArgumentValue = address} ); + + args.Add(new() { ArgumentName = "limit", ArgumentValue = limit} ); + args.Add(new() { ArgumentName = "page", ArgumentValue = page} ); + return WithObjectField("GetFuelTankAccounts", alias, fuelTankAccountQueryBuilder, [include, skip], args); + } + + public QueryQueryBuilder ExceptGetFuelTankAccounts() => ExceptField("GetFuelTankAccounts"); + + /// The network to query. + /// The chain to query. + /// The account address that will dispatch the call. Accepts either a 0x-prefixed public key or an SS58 address. + /// The pallet name, e.g. MULTI_TOKENS. + /// The extrinsic / method name, e.g. CREATE_TOKEN. + public QueryQueryBuilder WithGetCompatibleFuelTanks(CompatibleFuelTankQueryBuilder compatibleFuelTankQueryBuilder, QueryBuilderParameter network, QueryBuilderParameter chain, QueryBuilderParameter account, QueryBuilderParameter pallet, QueryBuilderParameter method, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) + { + var args = new List(); + args.Add(new() { ArgumentName = "network", ArgumentValue = network} ); + args.Add(new() { ArgumentName = "chain", ArgumentValue = chain} ); + args.Add(new() { ArgumentName = "account", ArgumentValue = account} ); + args.Add(new() { ArgumentName = "pallet", ArgumentValue = pallet} ); + args.Add(new() { ArgumentName = "method", ArgumentValue = method} ); + return WithObjectField("GetCompatibleFuelTanks", alias, compatibleFuelTankQueryBuilder, [include, skip], args); + } + + public QueryQueryBuilder ExceptGetCompatibleFuelTanks() => ExceptField("GetCompatibleFuelTanks"); } diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/RequireTokenQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/RequireTokenQueryBuilder.cs new file mode 100644 index 0000000..8ffd213 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/RequireTokenQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class RequireTokenQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "collectionId" }, + new() { Name = "tokenId" } + }; + + protected override string TypeName => "RequireToken"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public RequireTokenQueryBuilder WithCollectionId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("collectionId", alias, [include, skip]); + + public RequireTokenQueryBuilder ExceptCollectionId() => ExceptField("collectionId"); + + public RequireTokenQueryBuilder WithTokenId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("tokenId", alias, [include, skip]); + + public RequireTokenQueryBuilder ExceptTokenId() => ExceptField("tokenId"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/SweepManagedWalletResultQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/SweepManagedWalletResultQueryBuilder.cs new file mode 100644 index 0000000..5166826 --- /dev/null +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/SweepManagedWalletResultQueryBuilder.cs @@ -0,0 +1,35 @@ +// This file has been auto generated. +#nullable enable annotations + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Serialization; +#if !GRAPHQL_GENERATOR_DISABLE_NEWTONSOFT_JSON +using Newtonsoft.Json; +#endif + +namespace Enjin.Platform.Sdk; + +public partial class SweepManagedWalletResultQueryBuilder : GraphQlQueryBuilder +{ + private static readonly GraphQlFieldMetadata[] AllFieldMetadata = + { + new() { Name = "accepted" }, + new() { Name = "idempotencyPrefix" } + }; + + protected override string TypeName => "SweepManagedWalletResult"; + + public override IReadOnlyList AllFields => AllFieldMetadata; + + public SweepManagedWalletResultQueryBuilder WithAccepted(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("accepted", alias, [include, skip]); + + public SweepManagedWalletResultQueryBuilder ExceptAccepted() => ExceptField("accepted"); + + public SweepManagedWalletResultQueryBuilder WithIdempotencyPrefix(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("idempotencyPrefix", alias, [include, skip]); + + public SweepManagedWalletResultQueryBuilder ExceptIdempotencyPrefix() => ExceptField("idempotencyPrefix"); +} + diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TokenGroupTokenQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TokenGroupTokenQueryBuilder.cs index 5c0d75c..648d08f 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TokenGroupTokenQueryBuilder.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TokenGroupTokenQueryBuilder.cs @@ -17,6 +17,7 @@ public partial class TokenGroupTokenQueryBuilder : GraphQlQueryBuilder ExceptField("tokenGroupId"); + public TokenGroupTokenQueryBuilder WithCollectionId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("collectionId", alias, [include, skip]); + + public TokenGroupTokenQueryBuilder ExceptCollectionId() => ExceptField("collectionId"); + public TokenGroupTokenQueryBuilder WithTokenId(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("tokenId", alias, [include, skip]); public TokenGroupTokenQueryBuilder ExceptTokenId() => ExceptField("tokenId"); diff --git a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TransactionQueryBuilder.cs b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TransactionQueryBuilder.cs index 386dd0b..3b8d32d 100644 --- a/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TransactionQueryBuilder.cs +++ b/src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TransactionQueryBuilder.cs @@ -20,8 +20,9 @@ public partial class TransactionQueryBuilder : GraphQlQueryBuilder ExceptField("encodedData"); - public TransactionQueryBuilder WithExtrinsicHash(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("extrinsicHash", alias, [include, skip]); + public TransactionQueryBuilder WithExtrinsic(ExtrinsicQueryBuilder extrinsicQueryBuilder, string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithObjectField("extrinsic", alias, extrinsicQueryBuilder, [include, skip]); - public TransactionQueryBuilder ExceptExtrinsicHash() => ExceptField("extrinsicHash"); + public TransactionQueryBuilder ExceptExtrinsic() => ExceptField("extrinsic"); public TransactionQueryBuilder WithState(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("state", alias, [include, skip]); public TransactionQueryBuilder ExceptState() => ExceptField("state"); + public TransactionQueryBuilder WithError(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("error", alias, [include, skip]); + + public TransactionQueryBuilder ExceptError() => ExceptField("error"); + public TransactionQueryBuilder WithCreatedAt(string? alias = null, IncludeDirective? include = null, SkipDirective? skip = null) => WithScalarField("createdAt", alias, [include, skip]); public TransactionQueryBuilder ExceptCreatedAt() => ExceptField("createdAt"); diff --git a/tools/SdkSmoke/Program.cs b/tools/SdkSmoke/Program.cs index 58f3004..e341224 100644 --- a/tools/SdkSmoke/Program.cs +++ b/tools/SdkSmoke/Program.cs @@ -47,38 +47,27 @@ await RunQuery(client, "3. GetBlocks(ids: [recent, recent-1, recent-2]) - list o return $"{blocks.Count} blocks: " + string.Join(", ", blocks.Select(b => b?.Number?.ToString() ?? "?")); }); -await RunQuery(client, "4. GetBlock with Events - Event type + nullable BigInteger", - new QueryQueryBuilder() - .WithGetBlock( - new BlockQueryBuilder() - .WithNumber() - .WithEvents(new EventQueryBuilder().WithId().WithName().WithCollectionId()), - Network.Canary, Chain.Matrix, id: recentBlockId), - r => - { - var evs = r.Data?.GetBlock?.Events; - if (evs is null) return "no events field"; - var sample = string.Join(", ", evs.Take(3).Select(e => $"{e?.Name}(coll={e?.CollectionId?.ToString() ?? "null"})")); - return $"{evs.Count} events, sample=[{sample}]"; - }); +// NOTE: the former "GetBlock with Events" check was removed — the Platform v3 +// schema no longer exposes `Block.events` (and there is no top-level events +// query), so that check no longer compiles. See the regeneration notes. -await RunQuery(client, "5. GetBlock with Validator + Extrinsics - nested complex types", +await RunQuery(client, "4. GetBlock with Validator + Extrinsics - scalar validator + nested extrinsics", new QueryQueryBuilder() .WithGetBlock( new BlockQueryBuilder() .WithNumber() - .WithValidator(new AccountQueryBuilder().WithAddress().WithBalance()) + .WithValidator() .WithExtrinsics(new ExtrinsicQueryBuilder().WithHash().WithSuccess().WithPallet().WithMethod()), Network.Canary, Chain.Matrix, id: recentBlockId), r => { var b = r.Data?.GetBlock; if (b is null) return "null"; - return $"#{b.Number} validator={b.Validator?.Address} extrinsics={b.Extrinsics?.Count ?? 0}"; + return $"#{b.Number} validator={b.Validator} extrinsics={b.Extrinsics?.Count ?? 0}"; }); string externalId = $"sdk-smoke-{DateTimeOffset.UtcNow:yyyyMMddHHmmss}-{Guid.NewGuid():N}".Substring(0, 40); -await RunMutation(client, $"6. CreateManagedWallet(externalId={externalId}) - non-destructive mutation", +await RunMutation(client, $"5. CreateManagedWallet(externalId={externalId}) - non-destructive mutation", new MutationQueryBuilder() .WithCreateManagedWallet(externalId), r => $"created={r.Data?.CreateManagedWallet}");