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
refactor(experimental): graphql: token-2022 extensions: Reallocate Instruction #2611
base: master
Are you sure you want to change the base?
Conversation
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is close! Thanks for the continued work.
9f89023
to
ee5bd10
Compare
…ure-reallocate # Conflicts: # packages/rpc-graphql/src/__tests__/__setup__.ts # packages/rpc-graphql/src/__tests__/transaction-tests.ts # packages/rpc-graphql/src/resolvers/instruction.ts # packages/rpc-graphql/src/schema/instruction.ts
type SplTokenReallocate implements TransactionInstruction { | ||
programId: Address | ||
account: Account | ||
extensionTypes: [String] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just need to update this field and this one should be good to go.
@@ -86,4 +86,32 @@ export const typeTypeDefs = /* GraphQL */ ` | |||
BASE_58 | |||
BASE_64 | |||
} | |||
|
|||
enum ExtensionType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think you'll also need to define a resolver to go to and from string values here. You'll see the others under resolvers/types.ts
This PR adds support for Token-2022's Reallocate instruction in the GraphQL schema.
Continuing work on #2406.