Skip to content

Commit

Permalink
fix: add metadata type for CompressedNftEvent (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
atharmohammad authored Mar 10, 2024
1 parent 71ae537 commit cb24cf0
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions src/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Cluster, Keypair, TransactionError } from '@solana/web3.js'
import type { Cluster, Keypair, TransactionError } from "@solana/web3.js";

import type {
WebhookType,
Expand All @@ -11,7 +11,7 @@ import type {
AccountWebhookEncoding,
} from "./enums";

export type HeliusCluster = Omit<Cluster, 'testnet'>
export type HeliusCluster = Omit<Cluster, "testnet">;

export interface HeliusEndpoints {
api: string;
Expand Down Expand Up @@ -149,6 +149,28 @@ export interface SwapEvent {
innerSwaps: TokenSwap[];
}

export interface CompressedNftCreator {
address: string;
share: number;
verified: boolean;
}

export interface CompressedNftMetadata {
collection: {
key: string;
verified: boolean;
};
creators: CompressedNftCreator[];
isMutable: boolean;
name: string;
primarySaleHappened: boolean;
sellerFeeBasisPoints: number;
symbol: string;
tokenProgramVersion: string;
tokenStandard: TokenStandard;
uri: string;
}

export interface CompressedNftEvent {
type: TransactionType;
treeId: string;
Expand All @@ -162,6 +184,7 @@ export interface CompressedNftEvent {
newLeafDelegate: string | null;
oldLeafDelegate: string | null;
treeDelegate: string | null;
metadata: CompressedNftMetadata | null;
}

export interface Token {
Expand Down

0 comments on commit cb24cf0

Please sign in to comment.