[PLA-2500] Regenerate SDK and set version to v3.0.4 - #43
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR regenerates the Enjin Platform C# SDK against the latest schema and bumps the package/test project version to v3.0.4, introducing new GraphQL fields/mutations and several breaking type/signature changes that align with updated platform behavior.
Changes:
- Adds Pusher private-channel authorization support via
AuthenticatePusherSocketplusPusherSocketAuthmodel/query builder. - Updates fuel-tank compatibility querying to evaluate encoded transaction calls (breaking signature change), and refreshes related fuel-tank models/fields.
- Expands transaction batch-failure reporting (
FailedItemIndexes) and updates ENJ-valued input fields to usestring(breaking type change), plus adds tokenfreezeStateand sweepidempotencyPrefix.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/TransactionQueryBuilder.cs | Adds query-builder support for failedItemIndexes on transactions. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/QueryQueryBuilder.cs | Breakingly updates GetCompatibleFuelTanks arguments to transactions + batchMode. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/PusherSocketAuthQueryBuilder.cs | New query builder for PusherSocketAuth. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/MutationQueryBuilder.cs | Adds AuthenticatePusherSocket; extends SweepManagedWallet with idempotencyPrefix. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/QueryBuilders/CompatibleFuelTankQueryBuilder.cs | Updates compatible fuel-tank selectable fields (adds address, replaces budget fields). |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Transaction.cs | Adds FailedItemIndexes and clarifies Error semantics. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Query.cs | Updates GetCompatibleFuelTanks documentation to match new call-based compatibility. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/PusherSocketAuth.cs | New model representing Pusher channel auth response payload. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Mutation.cs | Adds AuthenticatePusherSocket to the mutation root model. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/FuelTankRuleSet.cs | Retypes WhitelistedPallets to FuelTankWhitelistedPallet enum collection and updates docs. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/Event.cs | Clarifies Event.Id format in documentation. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Model/CompatibleFuelTank.cs | Adds Address, replaces per-user budget fields with AvailableBudget. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MintTokenInput.cs | Retypes unitPrice from BigInteger? to string? with updated documentation. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/MintTokenEntryInput.cs | Same unitPrice retype/documentation update as MintTokenInput. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateTokenInput.cs | Adds freezeState; retypes infusion from BigInteger to string with updated docs. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateTokenEntryInput.cs | Adds freezeState; retypes infusion from BigInteger to string with updated docs. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Inputs/CreateFuelTankInput.cs | Corrects docs to state at least one rule set is required. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Schema/Infrastructure/GraphQlTypes.cs | Registers the new PusherSocketAuth GraphQL type constant. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk/Enjin.Platform.Sdk.csproj | Bumps SDK package version to 3.0.4. |
| src/Enjin.Platform.Sdk/Enjin.Platform.Sdk.Tests/Enjin.Platform.Sdk.Tests.csproj | Bumps test project version to 3.0.4. |
| CHANGELOG.md | Adds v3.0.4 release notes, including breaking changes and new features. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces version 3.0.4 of the Enjin Platform SDK, adding new features, making several breaking changes to the API, and deprecating some fields. The main focus is on improved fuel tank support, enhancements to token creation and minting, and expanded event and transaction details. Please review the breaking changes carefully, as they may require updates to your integration.
New Features and Additions:
AuthenticatePusherSocket(id)mutation,PusherSocketAuthmodel, andPusherSocketAuthQueryBuilderto support authorizing users for private Pusher channels. [1] [2]freezeStatetoCreateTokenInputandCreateTokenEntryInputfor initializing tokens as frozen. [1] [2] [3] [4] [5] [6] [7]Transaction.FailedItemIndexesto report failed batch item positions forCONTINUE_ON_ERRORmode.CompatibleFuelTank.AddressandCompatibleFuelTank.AvailableBudgetto provide more detailed fuel tank information. [1] [2] [3]idempotencyPrefixtoSweepManagedWalletand clarified event and transaction error documentation. [1] [2]Breaking Changes and Removals:
GetCompatibleFuelTanksnow takestransactionsandbatchModeinstead ofpalletandmethod, and compatibility is evaluated against encoded calls. [1] [2]string(accepting decimal or integer ENJ, e.g.,"1.5"), instead ofSystem.Numerics.BigInteger:infusiononCreateTokenInput/CreateTokenEntryInput[1] [2] [3]unitPriceonMintTokenInput/MintTokenEntryInput[1] [2] [3]CompatibleFuelTank, replaced byAvailableBudget:RemainingBudget,MaxBudget, andConsumedBudget[1] [2]Documentation and Metadata Updates:
CHANGELOG.mdfor v3.0.4 and added comparison links for new versions.Summary of Most Important Changes:
API Additions:
freezeStateto token creation inputs. [1] [2] [3] [4]Breaking Changes:
infusion,unitPrice) fromBigIntegertostringfor decimal support. [1] [2] [3] [4]GetCompatibleFuelTanksinput and removed severalCompatibleFuelTankfields, replacing them withAvailableBudget. [1] [2]Documentation and Versioning:
Please review these changes for breaking API updates and new features you may want to adopt.