UNPKG

@allo-team/allo-v2-sdk

Version:
45 lines (44 loc) 1.12 kB
import { Metadata } from "../../Common/types"; import { Status } from "../types"; export declare const StrategyType: { MicroGrants: string; Hats: string; Gov: string; }; export type Recipient = { useRegistryAnchor: boolean; recipientAddress: string; requestedAmount: string; recipientStatus: Status; metadata: Metadata; }; export type RegisterData = { registryAnchor?: `0x${string}`; recipientAddress: `0x${string}`; requestedAmount: bigint; metadata: Metadata; }; export type InitializeParams = { useRegistryAnchor: boolean; allocationStartTime: bigint; allocationEndTime: bigint; approvalThreshold: bigint; maxRequestedAmount: bigint; }; export type InitializeParamsHats = InitializeParams & { hats: `0x${string}`; hatId: bigint; }; export type InitializeParamsGov = InitializeParams & { gov: `0x${string}`; snapshotReference: bigint; minVotePower: bigint; }; export type Allocation = { recipientId: `0x${string}`; status: Status; }; export type SetAllocatorData = { allocatorAddress: `0x${string}`; flag: boolean; };