import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common"; export interface SDaiInterface extends Interface { getFunction(nameOrSignature: "DOMAIN_SEPARATOR" | "PERMIT_TYPEHASH" | "allowance" | "approve" | "asset" | "balanceOf" | "convertToAssets" | "convertToShares" | "dai" | "daiJoin" | "decimals" | "decreaseAllowance" | "deploymentChainId" | "deposit" | "increaseAllowance" | "maxDeposit" | "maxMint" | "maxRedeem" | "maxWithdraw" | "mint" | "name" | "nonces" | "permit(address,address,uint256,uint256,bytes)" | "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)" | "pot" | "previewDeposit" | "previewMint" | "previewRedeem" | "previewWithdraw" | "redeem" | "symbol" | "totalAssets" | "totalSupply" | "transfer" | "transferFrom" | "vat" | "version" | "withdraw"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Approval" | "Deposit" | "Transfer" | "Withdraw"): EventFragment; encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR", values?: undefined): string; encodeFunctionData(functionFragment: "PERMIT_TYPEHASH", values?: undefined): string; encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string; encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "asset", values?: undefined): string; encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string; encodeFunctionData(functionFragment: "convertToAssets", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "convertToShares", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "dai", values?: undefined): string; encodeFunctionData(functionFragment: "daiJoin", values?: undefined): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData(functionFragment: "decreaseAllowance", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "deploymentChainId", values?: undefined): string; encodeFunctionData(functionFragment: "deposit", values: [BigNumberish, AddressLike]): string; encodeFunctionData(functionFragment: "increaseAllowance", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "maxDeposit", values: [AddressLike]): string; encodeFunctionData(functionFragment: "maxMint", values: [AddressLike]): string; encodeFunctionData(functionFragment: "maxRedeem", values: [AddressLike]): string; encodeFunctionData(functionFragment: "maxWithdraw", values: [AddressLike]): string; encodeFunctionData(functionFragment: "mint", values: [BigNumberish, AddressLike]): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string; encodeFunctionData(functionFragment: "permit(address,address,uint256,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike]): string; encodeFunctionData(functionFragment: "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)", values: [ AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike ]): string; encodeFunctionData(functionFragment: "pot", values?: undefined): string; encodeFunctionData(functionFragment: "previewDeposit", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "previewMint", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "previewRedeem", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "previewWithdraw", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "redeem", values: [BigNumberish, AddressLike, AddressLike]): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData(functionFragment: "totalAssets", values?: undefined): string; encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string; encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "vat", values?: undefined): string; encodeFunctionData(functionFragment: "version", values?: undefined): string; encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish, AddressLike, AddressLike]): string; decodeFunctionResult(functionFragment: "DOMAIN_SEPARATOR", data: BytesLike): Result; decodeFunctionResult(functionFragment: "PERMIT_TYPEHASH", data: BytesLike): Result; decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "asset", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "convertToAssets", data: BytesLike): Result; decodeFunctionResult(functionFragment: "convertToShares", data: BytesLike): Result; decodeFunctionResult(functionFragment: "dai", data: BytesLike): Result; decodeFunctionResult(functionFragment: "daiJoin", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decreaseAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deploymentChainId", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "increaseAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "maxDeposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "maxMint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "maxRedeem", data: BytesLike): Result; decodeFunctionResult(functionFragment: "maxWithdraw", data: BytesLike): Result; decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result; decodeFunctionResult(functionFragment: "permit(address,address,uint256,uint256,bytes)", data: BytesLike): Result; decodeFunctionResult(functionFragment: "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)", data: BytesLike): Result; decodeFunctionResult(functionFragment: "pot", data: BytesLike): Result; decodeFunctionResult(functionFragment: "previewDeposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "previewMint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "previewRedeem", data: BytesLike): Result; decodeFunctionResult(functionFragment: "previewWithdraw", data: BytesLike): Result; decodeFunctionResult(functionFragment: "redeem", data: BytesLike): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "totalAssets", data: BytesLike): Result; decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result; decodeFunctionResult(functionFragment: "vat", data: BytesLike): Result; decodeFunctionResult(functionFragment: "version", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; } export declare namespace ApprovalEvent { type InputTuple = [ owner: AddressLike, spender: AddressLike, value: BigNumberish ]; type OutputTuple = [owner: string, spender: string, value: bigint]; interface OutputObject { owner: string; spender: string; value: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DepositEvent { type InputTuple = [ sender: AddressLike, owner: AddressLike, assets: BigNumberish, shares: BigNumberish ]; type OutputTuple = [ sender: string, owner: string, assets: bigint, shares: bigint ]; interface OutputObject { sender: string; owner: string; assets: bigint; shares: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace TransferEvent { type InputTuple = [ from: AddressLike, to: AddressLike, value: BigNumberish ]; type OutputTuple = [from: string, to: string, value: bigint]; interface OutputObject { from: string; to: string; value: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace WithdrawEvent { type InputTuple = [ sender: AddressLike, receiver: AddressLike, owner: AddressLike, assets: BigNumberish, shares: BigNumberish ]; type OutputTuple = [ sender: string, receiver: string, owner: string, assets: bigint, shares: bigint ]; interface OutputObject { sender: string; receiver: string; owner: string; assets: bigint; shares: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface SDai extends BaseContract { connect(runner?: ContractRunner | null): SDai; waitForDeployment(): Promise; interface: SDaiInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; DOMAIN_SEPARATOR: TypedContractMethod<[], [string], "view">; PERMIT_TYPEHASH: TypedContractMethod<[], [string], "view">; allowance: TypedContractMethod<[ arg0: AddressLike, arg1: AddressLike ], [ bigint ], "view">; approve: TypedContractMethod<[ spender: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; asset: TypedContractMethod<[], [string], "view">; balanceOf: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; convertToAssets: TypedContractMethod<[ shares: BigNumberish ], [ bigint ], "view">; convertToShares: TypedContractMethod<[ assets: BigNumberish ], [ bigint ], "view">; dai: TypedContractMethod<[], [string], "view">; daiJoin: TypedContractMethod<[], [string], "view">; decimals: TypedContractMethod<[], [bigint], "view">; decreaseAllowance: TypedContractMethod<[ spender: AddressLike, subtractedValue: BigNumberish ], [ boolean ], "nonpayable">; deploymentChainId: TypedContractMethod<[], [bigint], "view">; deposit: TypedContractMethod<[ assets: BigNumberish, receiver: AddressLike ], [ bigint ], "nonpayable">; increaseAllowance: TypedContractMethod<[ spender: AddressLike, addedValue: BigNumberish ], [ boolean ], "nonpayable">; maxDeposit: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; maxMint: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; maxRedeem: TypedContractMethod<[owner: AddressLike], [bigint], "view">; maxWithdraw: TypedContractMethod<[owner: AddressLike], [bigint], "view">; mint: TypedContractMethod<[ shares: BigNumberish, receiver: AddressLike ], [ bigint ], "nonpayable">; name: TypedContractMethod<[], [string], "view">; nonces: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; "permit(address,address,uint256,uint256,bytes)": TypedContractMethod<[ owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, signature: BytesLike ], [ void ], "nonpayable">; "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": TypedContractMethod<[ owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike ], [ void ], "nonpayable">; pot: TypedContractMethod<[], [string], "view">; previewDeposit: TypedContractMethod<[assets: BigNumberish], [bigint], "view">; previewMint: TypedContractMethod<[shares: BigNumberish], [bigint], "view">; previewRedeem: TypedContractMethod<[shares: BigNumberish], [bigint], "view">; previewWithdraw: TypedContractMethod<[ assets: BigNumberish ], [ bigint ], "view">; redeem: TypedContractMethod<[ shares: BigNumberish, receiver: AddressLike, owner: AddressLike ], [ bigint ], "nonpayable">; symbol: TypedContractMethod<[], [string], "view">; totalAssets: TypedContractMethod<[], [bigint], "view">; totalSupply: TypedContractMethod<[], [bigint], "view">; transfer: TypedContractMethod<[ to: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; transferFrom: TypedContractMethod<[ from: AddressLike, to: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; vat: TypedContractMethod<[], [string], "view">; version: TypedContractMethod<[], [string], "view">; withdraw: TypedContractMethod<[ assets: BigNumberish, receiver: AddressLike, owner: AddressLike ], [ bigint ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "DOMAIN_SEPARATOR"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "PERMIT_TYPEHASH"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "allowance"): TypedContractMethod<[ arg0: AddressLike, arg1: AddressLike ], [ bigint ], "view">; getFunction(nameOrSignature: "approve"): TypedContractMethod<[ spender: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "asset"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "convertToAssets"): TypedContractMethod<[shares: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "convertToShares"): TypedContractMethod<[assets: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "dai"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "daiJoin"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "decreaseAllowance"): TypedContractMethod<[ spender: AddressLike, subtractedValue: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "deploymentChainId"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "deposit"): TypedContractMethod<[ assets: BigNumberish, receiver: AddressLike ], [ bigint ], "nonpayable">; getFunction(nameOrSignature: "increaseAllowance"): TypedContractMethod<[ spender: AddressLike, addedValue: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "maxDeposit"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "maxMint"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "maxRedeem"): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "maxWithdraw"): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "mint"): TypedContractMethod<[ shares: BigNumberish, receiver: AddressLike ], [ bigint ], "nonpayable">; getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "nonces"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "permit(address,address,uint256,uint256,bytes)"): TypedContractMethod<[ owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, signature: BytesLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)"): TypedContractMethod<[ owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "pot"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "previewDeposit"): TypedContractMethod<[assets: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "previewMint"): TypedContractMethod<[shares: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "previewRedeem"): TypedContractMethod<[shares: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "previewWithdraw"): TypedContractMethod<[assets: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "redeem"): TypedContractMethod<[ shares: BigNumberish, receiver: AddressLike, owner: AddressLike ], [ bigint ], "nonpayable">; getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "totalAssets"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "transfer"): TypedContractMethod<[ to: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[ from: AddressLike, to: AddressLike, value: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "vat"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "version"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[ assets: BigNumberish, receiver: AddressLike, owner: AddressLike ], [ bigint ], "nonpayable">; getEvent(key: "Approval"): TypedContractEvent; getEvent(key: "Deposit"): TypedContractEvent; getEvent(key: "Transfer"): TypedContractEvent; getEvent(key: "Withdraw"): TypedContractEvent; filters: { "Approval(address,address,uint256)": TypedContractEvent; Approval: TypedContractEvent; "Deposit(address,address,uint256,uint256)": TypedContractEvent; Deposit: TypedContractEvent; "Transfer(address,address,uint256)": TypedContractEvent; Transfer: TypedContractEvent; "Withdraw(address,address,address,uint256,uint256)": TypedContractEvent; Withdraw: TypedContractEvent; }; }