mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 13:54:05 -06:00
18 lines
683 B
TypeScript
18 lines
683 B
TypeScript
import { Snapshot } from "../types/snapshots";
|
|
export default interface IThirdwebSdk {
|
|
/**
|
|
* Creates a snapshot from a list of leafs. The leafs could be addresses,
|
|
* hashes, etc.
|
|
*
|
|
* @beta - This method is still in beta and the API is subject to change.
|
|
*
|
|
* @param leafs - The list of leafs to create a snapshot from (e.g. addresses)
|
|
* @returns - An object containing the snapshot URI (which is uploaded to storage) and the merkle root (which can be used in a Claim Condition)
|
|
*/
|
|
createSnapshot(leafs: string[]): Promise<{
|
|
merkleRoot: string;
|
|
snapshotUri: string;
|
|
snapshot: Snapshot;
|
|
}>;
|
|
}
|