-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PLA-2019] Adds token struct to TokenType #259
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
The base branch was changed.
4be6f67
to
aa2fee8
Compare
PR Type
enhancement, tests
Description
tokens
table with new fields and constraints, includingrequires_deposit
andcreation_depositor
.TokenMetadataType
in the GraphQL schema to handle token metadata.TokenType
with new fields for deposits and metadata.TokenStorage.json
to align with the updated token data structure.Changes walkthrough 📝
8 files
2024_09_17_164605_upgrade_tokens_table.php
Enhance tokens table with new fields and constraints
database/migrations/2024_09_17_164605_upgrade_tokens_table.php
tokens
table.creation_depositor
.unit_price
andminimum_balance
.TokenMetadataType.php
Introduce TokenMetadataType for GraphQL schema
src/GraphQL/Types/Substrate/TokenMetadataType.php
TokenMetadataType
class.name
,symbol
, anddecimalCount
.TokenType.php
Extend TokenType with deposit and metadata fields
src/GraphQL/Types/Substrate/TokenType.php
requiresDeposit
,creationDeposit
, andtokenMetadata
.EagerLoadSelectFields.php
Update EagerLoadSelectFields for new token attributes
src/Models/Laravel/Traits/EagerLoadSelectFields.php
loadToken
method to include new fields.creationDepositor
andtokenMetadata
.Token.php
Add creationDepositor relationship to Token model
src/Models/Laravel/Traits/Token.php
creationDepositor
relationship method.Decoder.php
Update Decoder for new token storage data structure
src/Services/Processor/Substrate/Codec/Decoder.php
tokenStorageData
to process new fields.Parser.php
Enhance Parser to handle new token fields
src/Services/Processor/Substrate/Parser.php
creationDepositor
in token storage parsing.TokenStorage.json
Revise TokenStorage.json for updated token data structure
src/Services/Processor/Substrate/Codec/Types/TokenStorage.json
TokenStorageData
structure.7 files
GetTokenTest.php
Update GetTokenTest to reflect schema changes
tests/Feature/GraphQL/Queries/GetTokenTest.php
GetTokensTest.php
Update GetTokensTest to reflect schema changes
tests/Feature/GraphQL/Queries/GetTokensTest.php
GetWalletTest.php
Update GetWalletTest to reflect schema changes
tests/Feature/GraphQL/Queries/GetWalletTest.php
EncodingTest.php
Update EncodingTest with new sequence mode
tests/Unit/EncodingTest.php
mode
to the fake signature sequence.GetToken.graphql
Update GetToken GraphQL query with new fields
tests/Feature/GraphQL/Resources/GetToken.graphql
GetTokens.graphql
Update GetTokens GraphQL query with new fields
tests/Feature/GraphQL/Resources/GetTokens.graphql
GetWallet.graphql
Update GetWallet GraphQL query with new fields
tests/Feature/GraphQL/Resources/GetWallet.graphql