UNPKG

@vechain/vebetterdao-contracts

Version:

Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.

24 lines (23 loc) 1.23 kB
import { BaseContract, ContractTransactionReceipt } from "ethers"; import { B3TRGovernor, B3TRGovernorV2, Emissions, GalaxyMember, GalaxyMemberV2, Treasury, XAllocationVoting } from "../../typechain-types"; export declare const filterEventsByName: (events: any[], eventName: string) => any[]; export declare const decodeEvents: (contract: BaseContract, events: any[]) => (import("ethers").LogDescription | null)[]; export declare const decodeEvent: (event: any, contract: BaseContract) => import("ethers").LogDescription | null; export declare const getEventName: (receipt: ContractTransactionReceipt | null, contract: Emissions | GalaxyMemberV2 | GalaxyMember | Treasury | B3TRGovernor | B3TRGovernorV2) => string | undefined; export declare const parseRoundStartedEvent: (event: any, xAllocationVoting: XAllocationVoting) => { roundId: number; proposer: string; voteStart: BigInt; voteEnd: BigInt; appsIds: string[]; }; export declare const parseAllocationVoteCastEvent: (event: any, xAllocationVoting: XAllocationVoting) => { voter: any; roundId: any; apps: any; voteWeights: any; }; export declare const parseAppAddedEvent: (event: any) => Promise<{ id: any; address: any; }>;