/** * The base value for percentage ratios in the contract. * 100% = 10e6 (10,000,000), so 50% = 5e6 (5,000,000) */ export declare const RATIO_BASE: bigint; /** Minimum voting duration in seconds (1 minute) */ export declare const MINIMUM_VOTING_DURATION_SECONDS = 60; /** Minimum voting duration in seconds */ export declare const MINIMUM_VOTING_DURATION: bigint; /** Minimum voting duration in days */ export declare const MINIMUM_VOTING_DURATION_DAYS: number; /** * User-friendly voting settings input (using percentages and seconds) */ type VotingSettingsInputBase = { /** Percentage threshold for slow path (0-100) */ slowPathPercentageThreshold: number; /** Number of editors required for fast path approval */ fastPathFlatThreshold: number; /** Minimum number of editors required to vote */ quorum: number; }; export type VotingSettingsInput = VotingSettingsInputBase & ({ /** Voting duration in seconds (minimum 1 minute) */ durationInSeconds: number; durationInDays?: never; } | { /** @deprecated Use durationInSeconds for minute-level durations. */ durationInDays: number; durationInSeconds?: never; }); /** * Contract-level voting settings (using raw values) */ export interface VotingSettings { slowPathPercentageThreshold: bigint; fastPathFlatThreshold: bigint; quorum: bigint; duration: bigint; } /** * Convert a percentage (0-100) to the contract's ratio format. */ export declare function percentageToRatio(percentage: number): bigint; /** * Convert days to seconds. */ export declare function daysToSeconds(days: number): bigint; /** * Convert user-friendly voting settings to contract format. */ export declare function toContractVotingSettings(input: VotingSettingsInput): VotingSettings; /** * Validate an IPFS URI format. */ export declare function validateIpfsUri(uri: string): string | null; /** * Validate voting settings input. */ export declare function validateVotingSettingsInput(settings: VotingSettingsInput, totalEditors: number): string | null; export type CreateDaoSpaceCalldataParams = { /** Voting settings for the DAO space */ votingSettings: VotingSettingsInput; /** Space IDs of initial editors (at least one required). Must be bytes16 hex strings without dashes. */ initialEditorSpaceIds: `0x${string}`[]; /** Space IDs of initial members (can be empty). Must be bytes16 hex strings without dashes. */ initialMemberSpaceIds: `0x${string}`[]; /** Initial edits content URI, e.g. "ipfs://Qm..." (optional) */ initialEditsContentUri?: string; /** Initial topic ID as UUID string (optional - if provided, declares a topic on creation) */ initialTopicId?: string; }; /** * Get the calldata for creating a DAO space proxy. * * @deprecated Use `createGeoClient({ network: GeoTestnetConfig }).daoSpaces.create(...)` for the workflow, or keep * this helper temporarily for legacy calldata compatibility. */ export declare function getCreateDaoSpaceCalldata(args: CreateDaoSpaceCalldataParams): `0x${string}`; export {}; //# sourceMappingURL=get-create-dao-space-calldata.d.ts.map