/** The OffsetHelper's purpose is to simplify the carbon offsetting process. Copyright (C) 2022 Toucan Labs This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ import { BigNumber } from "ethers"; import { BatchCommentSchema, BatchTokenSchema, PooledTCO2TokenSchema, ProjectSchema, ProjectVintageSchema, RedeemSchema, RetirementCertificateSchema, RetirementSchema, TCO2BalanceSchema, TCO2TokenSchema, UserSchema } from "./schemas"; export declare type RedeemAutoResponse = Array<{ address: string; amount: BigNumber; }>; /** * I have decided to separated the types for the subgraph methods here as using Pick to separate * the needed properties from the schemas can become verbose as you will see below. * * See types/schemas.ts for more information on why I decided to use Pick in the first place. */ export declare type UserBatchesResponse = Array & { comments: Array & { sender: Pick; }>; creator: Pick; }>; export declare type TCO2TokenResponse = Pick & { projectVintage: Pick & { project: Pick; }; }; export declare type BridgedBatchTokensResponse = Pick & { creator: Pick; }; export declare type UserRetirementsResponse = Pick & { token: Pick & { projectVintage: Pick & { project: Pick; }; }; certificate: Pick & { retiringEntity: Pick; beneficiary: Pick; }; }; export declare type RedeemsResponse = Pick & { creator: Pick; token: Pick & { projectVintage: Pick & { project: Pick; }; }; }; export declare type PoolContentsResponse = Pick & { token: Pick & { projectVintage: Pick & { project: Pick; }; }; }; export declare type ProjectResponse = Pick & { vintages: Pick; }; export declare type BalanceResponse = Pick & { token: Pick; };