fix(explorer): add sync native to token program decode (#23874)

This commit is contained in:
Josh
2022-03-23 09:31:58 -07:00
committed by GitHub
parent 6962a667e5
commit 6b76391ed2

View File

@ -166,6 +166,10 @@ const BurnChecked = type({
tokenAmount: TokenAmountUi, tokenAmount: TokenAmountUi,
}); });
const SyncNative = type({
account: PublicKeyFromString,
});
export type TokenInstructionType = Infer<typeof TokenInstructionType>; export type TokenInstructionType = Infer<typeof TokenInstructionType>;
export const TokenInstructionType = enums([ export const TokenInstructionType = enums([
"initializeMint", "initializeMint",
@ -188,6 +192,7 @@ export const TokenInstructionType = enums([
"approveChecked", "approveChecked",
"mintToChecked", "mintToChecked",
"burnChecked", "burnChecked",
"syncNative",
]); ]);
export const IX_STRUCTS = { export const IX_STRUCTS = {
@ -211,6 +216,7 @@ export const IX_STRUCTS = {
approveChecked: ApproveChecked, approveChecked: ApproveChecked,
mintToChecked: MintToChecked, mintToChecked: MintToChecked,
burnChecked: BurnChecked, burnChecked: BurnChecked,
syncNative: SyncNative,
}; };
export const IX_TITLES = { export const IX_TITLES = {
@ -234,4 +240,5 @@ export const IX_TITLES = {
approveChecked: "Approve (Checked)", approveChecked: "Approve (Checked)",
mintToChecked: "Mint To (Checked)", mintToChecked: "Mint To (Checked)",
burnChecked: "Burn (Checked)", burnChecked: "Burn (Checked)",
syncNative: "Sync Native",
}; };