/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { PaymentPlanV2, PaymentPlanV2Interface } from "../PaymentPlanV2"; const _abi = [ { inputs: [], name: "InvalidAddress", type: "error", }, { inputs: [], name: "InvalidAmount", type: "error", }, { inputs: [], name: "InvalidAutoRepaymentDate", type: "error", }, { inputs: [], name: "InvalidAutoRepaymentStatus", type: "error", }, { inputs: [], name: "InvalidBaseDiscountRate", type: "error", }, { inputs: [], name: "InvalidBlockNumber", type: "error", }, { inputs: [], name: "InvalidDownPayment", type: "error", }, { inputs: [], name: "InvalidDownPaymentPercent", type: "error", }, { inputs: [], name: "InvalidInterestRate", type: "error", }, { inputs: [], name: "InvalidItem", type: "error", }, { inputs: [], name: "InvalidPaidCount", type: "error", }, { inputs: [], name: "InvalidReviveDate", type: "error", }, { inputs: [], name: "InvalidSender", type: "error", }, { inputs: [], name: "InvalidServiceFeeRate", type: "error", }, { inputs: [], name: "InvalidSignature", type: "error", }, { inputs: [], name: "InvalidStage", type: "error", }, { inputs: [], name: "InvalidTerm", type: "error", }, { inputs: [], name: "InvalidTokenPrice", type: "error", }, { inputs: [], name: "InvalidTotalNumberOfPayments", type: "error", }, { inputs: [], name: "PaymentPlanAlreadyExists", type: "error", }, { inputs: [], name: "PaymentPlanNotFound", type: "error", }, { inputs: [ { components: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, { internalType: "address", name: "contractAddress", type: "address", }, { internalType: "address", name: "cyanVaultAddress", type: "address", }, { internalType: "uint8", name: "itemType", type: "uint8", }, ], internalType: "struct CyanPaymentPlanV2.Item", name: "item", type: "tuple", }, { components: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint32", name: "downPaymentPercent", type: "uint32", }, { internalType: "uint32", name: "interestRate", type: "uint32", }, { internalType: "uint32", name: "serviceFeeRate", type: "uint32", }, { internalType: "uint32", name: "term", type: "uint32", }, { internalType: "uint8", name: "totalNumberOfPayments", type: "uint8", }, { internalType: "uint8", name: "counterPaidPayments", type: "uint8", }, { internalType: "uint8", name: "autoRepayStatus", type: "uint8", }, ], internalType: "struct CyanPaymentPlanV2.Plan", name: "plan", type: "tuple", }, { internalType: "uint256", name: "planId", type: "uint256", }, { internalType: "uint256", name: "signedBlockNum", type: "uint256", }, { internalType: "bytes", name: "signature", type: "bytes", }, ], name: "createPawn", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, { internalType: "address", name: "contractAddress", type: "address", }, { internalType: "address", name: "cyanVaultAddress", type: "address", }, { internalType: "uint8", name: "itemType", type: "uint8", }, ], internalType: "struct CyanPaymentPlanV2.Item", name: "item", type: "tuple", }, { components: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint32", name: "downPaymentPercent", type: "uint32", }, { internalType: "uint32", name: "interestRate", type: "uint32", }, { internalType: "uint32", name: "serviceFeeRate", type: "uint32", }, { internalType: "uint32", name: "term", type: "uint32", }, { internalType: "uint8", name: "totalNumberOfPayments", type: "uint8", }, { internalType: "uint8", name: "counterPaidPayments", type: "uint8", }, { internalType: "uint8", name: "autoRepayStatus", type: "uint8", }, ], internalType: "struct CyanPaymentPlanV2.Plan", name: "plan", type: "tuple", }, { internalType: "uint256", name: "planId", type: "uint256", }, { internalType: "uint256", name: "signedBlockNum", type: "uint256", }, { internalType: "bytes", name: "signature", type: "bytes", }, ], name: "createBNPL", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "uint256", name: "planId", type: "uint256", }, { internalType: "bool", name: "isEarlyPayment", type: "bool", }, ], name: "pay", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { components: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint32", name: "downPaymentPercent", type: "uint32", }, { internalType: "uint32", name: "interestRate", type: "uint32", }, { internalType: "uint32", name: "serviceFeeRate", type: "uint32", }, { internalType: "uint32", name: "term", type: "uint32", }, { internalType: "uint8", name: "totalNumberOfPayments", type: "uint8", }, { internalType: "uint8", name: "counterPaidPayments", type: "uint8", }, { internalType: "uint8", name: "autoRepayStatus", type: "uint8", }, ], internalType: "struct CyanPaymentPlanV2.Plan", name: "plan", type: "tuple", }, ], name: "getExpectedPlan", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "uint256", name: "planId", type: "uint256", }, { internalType: "bool", name: "isEarlyPayment", type: "bool", }, ], name: "getPaymentInfoByPlanId", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "planId", type: "uint256", }, ], name: "getCurrencyAddressByPlanId", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "planId", type: "uint256", }, { internalType: "uint256", name: "sellPrice", type: "uint256", }, { components: [ { components: [ { components: [ { internalType: "address", name: "offerer", type: "address", }, { internalType: "address", name: "zone", type: "address", }, { components: [ { internalType: "enum ISeaport.ItemType", name: "itemType", type: "uint8", }, { internalType: "address", name: "token", type: "address", }, { internalType: "uint256", name: "identifierOrCriteria", type: "uint256", }, { internalType: "uint256", name: "startAmount", type: "uint256", }, { internalType: "uint256", name: "endAmount", type: "uint256", }, ], internalType: "struct ISeaport.OfferItem[]", name: "offer", type: "tuple[]", }, { components: [ { internalType: "enum ISeaport.ItemType", name: "itemType", type: "uint8", }, { internalType: "address", name: "token", type: "address", }, { internalType: "uint256", name: "identifierOrCriteria", type: "uint256", }, { internalType: "uint256", name: "startAmount", type: "uint256", }, { internalType: "uint256", name: "endAmount", type: "uint256", }, { internalType: "address payable", name: "recipient", type: "address", }, ], internalType: "struct ISeaport.ConsiderationItem[]", name: "consideration", type: "tuple[]", }, { internalType: "enum ISeaport.OrderType", name: "orderType", type: "uint8", }, { internalType: "uint256", name: "startTime", type: "uint256", }, { internalType: "uint256", name: "endTime", type: "uint256", }, { internalType: "bytes32", name: "zoneHash", type: "bytes32", }, { internalType: "uint256", name: "salt", type: "uint256", }, { internalType: "bytes32", name: "conduitKey", type: "bytes32", }, { internalType: "uint256", name: "totalOriginalConsiderationItems", type: "uint256", }, ], internalType: "struct ISeaport.OrderParameters", name: "parameters", type: "tuple", }, { internalType: "uint120", name: "numerator", type: "uint120", }, { internalType: "uint120", name: "denominator", type: "uint120", }, { internalType: "bytes", name: "signature", type: "bytes", }, { internalType: "bytes", name: "extraData", type: "bytes", }, ], internalType: "struct ISeaport.AdvancedOrder[]", name: "orders", type: "tuple[]", }, { components: [ { internalType: "uint256", name: "orderIndex", type: "uint256", }, { internalType: "enum ISeaport.Side", name: "side", type: "uint8", }, { internalType: "uint256", name: "index", type: "uint256", }, { internalType: "uint256", name: "identifier", type: "uint256", }, { internalType: "bytes32[]", name: "criteriaProof", type: "bytes32[]", }, ], internalType: "struct ISeaport.CriteriaResolver[]", name: "criteriaResolvers", type: "tuple[]", }, { components: [ { components: [ { internalType: "uint256", name: "orderIndex", type: "uint256", }, { internalType: "uint256", name: "itemIndex", type: "uint256", }, ], internalType: "struct ISeaport.FulfillmentComponent[]", name: "offerComponents", type: "tuple[]", }, { components: [ { internalType: "uint256", name: "orderIndex", type: "uint256", }, { internalType: "uint256", name: "itemIndex", type: "uint256", }, ], internalType: "struct ISeaport.FulfillmentComponent[]", name: "considerationComponents", type: "tuple[]", }, ], internalType: "struct ISeaport.Fulfillment[]", name: "fulfillments", type: "tuple[]", }, { internalType: "address", name: "recipient", type: "address", }, ], internalType: "struct ISeaport.OfferData", name: "offer", type: "tuple", }, ], name: "earlyUnwind", outputs: [], stateMutability: "nonpayable", type: "function", }, ] as const; export class PaymentPlanV2__factory { static readonly abi = _abi; static createInterface(): PaymentPlanV2Interface { return new utils.Interface(_abi) as PaymentPlanV2Interface; } static connect( address: string, signerOrProvider: Signer | Provider ): PaymentPlanV2 { return new Contract(address, _abi, signerOrProvider) as PaymentPlanV2; } }