@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
19 lines (18 loc) • 688 B
TypeScript
import { ContractsConfig } from "@repo/config/contracts";
/**
* Interface for the token allocations.
* Each allocation represents the distribution of tokens for a given cycle.
* Note: BigInt is not directly JSON serializable, conversion required before saving.
*/
interface Allocation {
cycle: number;
xAllocation: bigint;
vote2EarnAllocation: bigint;
treasuryAllocation: bigint;
}
/**
* Generates token allocations based on predetermined decay cycles and percentages.
* @returns A Promise that resolves to an array of Allocation objects.
*/
export declare function generateB3trAllocations(config: ContractsConfig, path?: string): Promise<Allocation[]>;
export {};