UNPKG

@allo-team/allo-v2-sdk

Version:
55 lines (45 loc) 1.17 kB
import { Metadata } from "../../Common/types"; import { Status } from "../types"; // export type TStrategyType = keyof typeof StrategyType; export const StrategyType = { MicroGrants: "MicroGrantsv1", Hats: "MicroGrantsHatsv1", Gov: "MicroGrantsGovv1", }; 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; };