|
| 1 | +/* Autogenerated file. Do not edit manually. */ |
| 2 | +/* tslint:disable */ |
| 3 | +/* eslint-disable */ |
| 4 | +import type { |
| 5 | + BaseContract, |
| 6 | + BigNumberish, |
| 7 | + BytesLike, |
| 8 | + FunctionFragment, |
| 9 | + Result, |
| 10 | + Interface, |
| 11 | + EventFragment, |
| 12 | + AddressLike, |
| 13 | + ContractRunner, |
| 14 | + ContractMethod, |
| 15 | + Listener, |
| 16 | +} from "ethers"; |
| 17 | +import type { |
| 18 | + TypedContractEvent, |
| 19 | + TypedDeferredTopicFilter, |
| 20 | + TypedEventLog, |
| 21 | + TypedLogDescription, |
| 22 | + TypedListener, |
| 23 | + TypedContractMethod, |
| 24 | +} from "./common"; |
| 25 | + |
| 26 | +export interface VenusInterface extends Interface { |
| 27 | + getFunction( |
| 28 | + nameOrSignature: "prover" | "receiveEvent" | "receiveReceipt" |
| 29 | + ): FunctionFragment; |
| 30 | + |
| 31 | + getEvent( |
| 32 | + nameOrSignatureOrTopic: "SuccessfulEvent" | "SuccessfulReceipt" |
| 33 | + ): EventFragment; |
| 34 | + |
| 35 | + encodeFunctionData(functionFragment: "prover", values?: undefined): string; |
| 36 | + encodeFunctionData( |
| 37 | + functionFragment: "receiveEvent", |
| 38 | + values: [BytesLike, BytesLike, BigNumberish, BytesLike, BytesLike] |
| 39 | + ): string; |
| 40 | + encodeFunctionData( |
| 41 | + functionFragment: "receiveReceipt", |
| 42 | + values: [BytesLike, BytesLike, BytesLike] |
| 43 | + ): string; |
| 44 | + |
| 45 | + decodeFunctionResult(functionFragment: "prover", data: BytesLike): Result; |
| 46 | + decodeFunctionResult( |
| 47 | + functionFragment: "receiveEvent", |
| 48 | + data: BytesLike |
| 49 | + ): Result; |
| 50 | + decodeFunctionResult( |
| 51 | + functionFragment: "receiveReceipt", |
| 52 | + data: BytesLike |
| 53 | + ): Result; |
| 54 | +} |
| 55 | + |
| 56 | +export namespace SuccessfulEventEvent { |
| 57 | + export type InputTuple = [eventIndex: BigNumberish, sender: AddressLike]; |
| 58 | + export type OutputTuple = [eventIndex: bigint, sender: string]; |
| 59 | + export interface OutputObject { |
| 60 | + eventIndex: bigint; |
| 61 | + sender: string; |
| 62 | + } |
| 63 | + export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; |
| 64 | + export type Filter = TypedDeferredTopicFilter<Event>; |
| 65 | + export type Log = TypedEventLog<Event>; |
| 66 | + export type LogDescription = TypedLogDescription<Event>; |
| 67 | +} |
| 68 | + |
| 69 | +export namespace SuccessfulReceiptEvent { |
| 70 | + export type InputTuple = [receiptIndex: BytesLike, receiptRLP: BytesLike]; |
| 71 | + export type OutputTuple = [receiptIndex: string, receiptRLP: string]; |
| 72 | + export interface OutputObject { |
| 73 | + receiptIndex: string; |
| 74 | + receiptRLP: string; |
| 75 | + } |
| 76 | + export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; |
| 77 | + export type Filter = TypedDeferredTopicFilter<Event>; |
| 78 | + export type Log = TypedEventLog<Event>; |
| 79 | + export type LogDescription = TypedLogDescription<Event>; |
| 80 | +} |
| 81 | + |
| 82 | +export interface Venus extends BaseContract { |
| 83 | + connect(runner?: ContractRunner | null): Venus; |
| 84 | + waitForDeployment(): Promise<this>; |
| 85 | + |
| 86 | + interface: VenusInterface; |
| 87 | + |
| 88 | + queryFilter<TCEvent extends TypedContractEvent>( |
| 89 | + event: TCEvent, |
| 90 | + fromBlockOrBlockhash?: string | number | undefined, |
| 91 | + toBlock?: string | number | undefined |
| 92 | + ): Promise<Array<TypedEventLog<TCEvent>>>; |
| 93 | + queryFilter<TCEvent extends TypedContractEvent>( |
| 94 | + filter: TypedDeferredTopicFilter<TCEvent>, |
| 95 | + fromBlockOrBlockhash?: string | number | undefined, |
| 96 | + toBlock?: string | number | undefined |
| 97 | + ): Promise<Array<TypedEventLog<TCEvent>>>; |
| 98 | + |
| 99 | + on<TCEvent extends TypedContractEvent>( |
| 100 | + event: TCEvent, |
| 101 | + listener: TypedListener<TCEvent> |
| 102 | + ): Promise<this>; |
| 103 | + on<TCEvent extends TypedContractEvent>( |
| 104 | + filter: TypedDeferredTopicFilter<TCEvent>, |
| 105 | + listener: TypedListener<TCEvent> |
| 106 | + ): Promise<this>; |
| 107 | + |
| 108 | + once<TCEvent extends TypedContractEvent>( |
| 109 | + event: TCEvent, |
| 110 | + listener: TypedListener<TCEvent> |
| 111 | + ): Promise<this>; |
| 112 | + once<TCEvent extends TypedContractEvent>( |
| 113 | + filter: TypedDeferredTopicFilter<TCEvent>, |
| 114 | + listener: TypedListener<TCEvent> |
| 115 | + ): Promise<this>; |
| 116 | + |
| 117 | + listeners<TCEvent extends TypedContractEvent>( |
| 118 | + event: TCEvent |
| 119 | + ): Promise<Array<TypedListener<TCEvent>>>; |
| 120 | + listeners(eventName?: string): Promise<Array<Listener>>; |
| 121 | + removeAllListeners<TCEvent extends TypedContractEvent>( |
| 122 | + event?: TCEvent |
| 123 | + ): Promise<this>; |
| 124 | + |
| 125 | + prover: TypedContractMethod<[], [string], "view">; |
| 126 | + |
| 127 | + receiveEvent: TypedContractMethod< |
| 128 | + [ |
| 129 | + receiptIndex: BytesLike, |
| 130 | + receiptRLPEncodedBytes: BytesLike, |
| 131 | + logIndex: BigNumberish, |
| 132 | + logBytes: BytesLike, |
| 133 | + proof: BytesLike |
| 134 | + ], |
| 135 | + [void], |
| 136 | + "nonpayable" |
| 137 | + >; |
| 138 | + |
| 139 | + receiveReceipt: TypedContractMethod< |
| 140 | + [ |
| 141 | + receiptIndex: BytesLike, |
| 142 | + receiptRLPEncodedBytes: BytesLike, |
| 143 | + proof: BytesLike |
| 144 | + ], |
| 145 | + [void], |
| 146 | + "nonpayable" |
| 147 | + >; |
| 148 | + |
| 149 | + getFunction<T extends ContractMethod = ContractMethod>( |
| 150 | + key: string | FunctionFragment |
| 151 | + ): T; |
| 152 | + |
| 153 | + getFunction( |
| 154 | + nameOrSignature: "prover" |
| 155 | + ): TypedContractMethod<[], [string], "view">; |
| 156 | + getFunction( |
| 157 | + nameOrSignature: "receiveEvent" |
| 158 | + ): TypedContractMethod< |
| 159 | + [ |
| 160 | + receiptIndex: BytesLike, |
| 161 | + receiptRLPEncodedBytes: BytesLike, |
| 162 | + logIndex: BigNumberish, |
| 163 | + logBytes: BytesLike, |
| 164 | + proof: BytesLike |
| 165 | + ], |
| 166 | + [void], |
| 167 | + "nonpayable" |
| 168 | + >; |
| 169 | + getFunction( |
| 170 | + nameOrSignature: "receiveReceipt" |
| 171 | + ): TypedContractMethod< |
| 172 | + [ |
| 173 | + receiptIndex: BytesLike, |
| 174 | + receiptRLPEncodedBytes: BytesLike, |
| 175 | + proof: BytesLike |
| 176 | + ], |
| 177 | + [void], |
| 178 | + "nonpayable" |
| 179 | + >; |
| 180 | + |
| 181 | + getEvent( |
| 182 | + key: "SuccessfulEvent" |
| 183 | + ): TypedContractEvent< |
| 184 | + SuccessfulEventEvent.InputTuple, |
| 185 | + SuccessfulEventEvent.OutputTuple, |
| 186 | + SuccessfulEventEvent.OutputObject |
| 187 | + >; |
| 188 | + getEvent( |
| 189 | + key: "SuccessfulReceipt" |
| 190 | + ): TypedContractEvent< |
| 191 | + SuccessfulReceiptEvent.InputTuple, |
| 192 | + SuccessfulReceiptEvent.OutputTuple, |
| 193 | + SuccessfulReceiptEvent.OutputObject |
| 194 | + >; |
| 195 | + |
| 196 | + filters: { |
| 197 | + "SuccessfulEvent(uint256,address)": TypedContractEvent< |
| 198 | + SuccessfulEventEvent.InputTuple, |
| 199 | + SuccessfulEventEvent.OutputTuple, |
| 200 | + SuccessfulEventEvent.OutputObject |
| 201 | + >; |
| 202 | + SuccessfulEvent: TypedContractEvent< |
| 203 | + SuccessfulEventEvent.InputTuple, |
| 204 | + SuccessfulEventEvent.OutputTuple, |
| 205 | + SuccessfulEventEvent.OutputObject |
| 206 | + >; |
| 207 | + |
| 208 | + "SuccessfulReceipt(bytes,bytes)": TypedContractEvent< |
| 209 | + SuccessfulReceiptEvent.InputTuple, |
| 210 | + SuccessfulReceiptEvent.OutputTuple, |
| 211 | + SuccessfulReceiptEvent.OutputObject |
| 212 | + >; |
| 213 | + SuccessfulReceipt: TypedContractEvent< |
| 214 | + SuccessfulReceiptEvent.InputTuple, |
| 215 | + SuccessfulReceiptEvent.OutputTuple, |
| 216 | + SuccessfulReceiptEvent.OutputObject |
| 217 | + >; |
| 218 | + }; |
| 219 | +} |
0 commit comments