@coset-dev/contracts 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IERC20Extended.d.ts +311 -0
- package/dist/Oracle.d.ts +2 -2
- package/dist/{OracleUtils.d.ts → OracleErrors.d.ts} +4 -4
- package/dist/OracleFactory.d.ts +54 -16
- package/dist/cjs/ethers-contracts/IERC20Extended.js +2 -0
- package/dist/cjs/ethers-contracts/IERC20Extended.js.map +7 -0
- package/dist/cjs/ethers-contracts/Oracle.js.map +1 -1
- package/dist/cjs/ethers-contracts/OracleErrors.js +2 -0
- package/dist/cjs/ethers-contracts/OracleErrors.js.map +7 -0
- package/dist/cjs/ethers-contracts/OracleFactory.js +1 -1
- package/dist/cjs/ethers-contracts/OracleFactory.js.map +2 -2
- package/dist/cjs/ethers-contracts/factories/IERC20Extended__factory.js +2 -0
- package/dist/cjs/ethers-contracts/factories/IERC20Extended__factory.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/OracleErrors__factory.js +2 -0
- package/dist/cjs/ethers-contracts/factories/OracleErrors__factory.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/OracleFactory__factory.js +1 -1
- package/dist/cjs/ethers-contracts/factories/OracleFactory__factory.js.map +3 -3
- package/dist/cjs/ethers-contracts/factories/Oracle__factory.js +1 -1
- package/dist/cjs/ethers-contracts/factories/Oracle__factory.js.map +2 -2
- package/dist/cjs/ethers-contracts/factories/index.js +1 -1
- package/dist/cjs/ethers-contracts/factories/index.js.map +3 -3
- package/dist/cjs/ethers-contracts/index.js +1 -1
- package/dist/cjs/ethers-contracts/index.js.map +3 -3
- package/dist/esm/ethers-contracts/IERC20Extended.js +2 -0
- package/dist/esm/ethers-contracts/IERC20Extended.js.map +7 -0
- package/dist/esm/ethers-contracts/Oracle.js.map +1 -1
- package/dist/esm/ethers-contracts/OracleErrors.js +1 -0
- package/dist/esm/ethers-contracts/OracleFactory.js.map +2 -2
- package/dist/esm/ethers-contracts/factories/IERC20Extended__factory.js +2 -0
- package/dist/esm/ethers-contracts/factories/IERC20Extended__factory.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/OracleErrors__factory.js +2 -0
- package/dist/esm/ethers-contracts/factories/OracleErrors__factory.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/OracleFactory__factory.js +1 -1
- package/dist/esm/ethers-contracts/factories/OracleFactory__factory.js.map +3 -3
- package/dist/esm/ethers-contracts/factories/Oracle__factory.js +1 -1
- package/dist/esm/ethers-contracts/factories/Oracle__factory.js.map +2 -2
- package/dist/esm/ethers-contracts/factories/index.js +1 -1
- package/dist/esm/ethers-contracts/factories/index.js.map +3 -3
- package/dist/esm/ethers-contracts/index.js +1 -1
- package/dist/esm/ethers-contracts/index.js.map +3 -3
- package/dist/factories/IERC20Extended__factory.d.ts +373 -0
- package/dist/factories/{OracleUtils__factory.d.ts → OracleErrors__factory.d.ts} +11 -23
- package/dist/factories/OracleFactory__factory.d.ts +77 -34
- package/dist/factories/Oracle__factory.d.ts +2 -34
- package/dist/factories/index.d.ts +2 -1
- package/dist/hardhat.d.ts +12 -8
- package/dist/index.d.ts +4 -2
- package/package.json +1 -1
- package/dist/cjs/ethers-contracts/OracleUtils.js +0 -2
- package/dist/cjs/ethers-contracts/OracleUtils.js.map +0 -7
- package/dist/cjs/ethers-contracts/factories/OracleUtils__factory.js +0 -2
- package/dist/cjs/ethers-contracts/factories/OracleUtils__factory.js.map +0 -7
- package/dist/esm/ethers-contracts/OracleUtils.js +0 -1
- package/dist/esm/ethers-contracts/factories/OracleUtils__factory.js +0 -2
- package/dist/esm/ethers-contracts/factories/OracleUtils__factory.js.map +0 -7
- /package/dist/esm/ethers-contracts/{OracleUtils.js.map → OracleErrors.js.map} +0 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common.js";
|
|
3
|
+
export interface IERC20ExtendedInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "DOMAIN_SEPARATOR" | "allowance" | "approve" | "authorizationState" | "balanceOf" | "cancelAuthorization" | "decimals" | "name" | "nonces" | "permit" | "receiveWithAuthorization" | "symbol" | "totalSupply" | "transfer" | "transferFrom" | "transferWithAuthorization" | "version"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: 'DOMAIN_SEPARATOR', values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: 'allowance', values: [AddressLike, AddressLike]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: 'approve', values: [AddressLike, BigNumberish]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: 'authorizationState', values: [AddressLike, BytesLike]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: 'balanceOf', values: [AddressLike]): string;
|
|
11
|
+
encodeFunctionData(functionFragment: 'cancelAuthorization', values: [AddressLike, BytesLike, BigNumberish, BytesLike, BytesLike]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: 'decimals', values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: 'name', values?: undefined): string;
|
|
14
|
+
encodeFunctionData(functionFragment: 'nonces', values: [AddressLike]): string;
|
|
15
|
+
encodeFunctionData(functionFragment: 'permit', values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: 'receiveWithAuthorization', values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BigNumberish, BytesLike, BytesLike]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: 'symbol', values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string;
|
|
19
|
+
encodeFunctionData(functionFragment: 'transfer', values: [AddressLike, BigNumberish]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: 'transferFrom', values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: 'transferWithAuthorization', values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BigNumberish, BytesLike, BytesLike]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: 'version', values?: undefined): string;
|
|
23
|
+
decodeFunctionResult(functionFragment: 'DOMAIN_SEPARATOR', data: BytesLike): Result;
|
|
24
|
+
decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: 'authorizationState', data: BytesLike): Result;
|
|
27
|
+
decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: 'cancelAuthorization', data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result;
|
|
30
|
+
decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: 'nonces', data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: 'permit', data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: 'receiveWithAuthorization', data: BytesLike): Result;
|
|
34
|
+
decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(functionFragment: 'transferWithAuthorization', data: BytesLike): Result;
|
|
39
|
+
decodeFunctionResult(functionFragment: 'version', data: BytesLike): Result;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace ApprovalEvent {
|
|
42
|
+
type InputTuple = [owner: AddressLike, spender: AddressLike, value: BigNumberish];
|
|
43
|
+
type OutputTuple = [owner: string, spender: string, value: bigint];
|
|
44
|
+
interface OutputObject {
|
|
45
|
+
owner: string;
|
|
46
|
+
spender: string;
|
|
47
|
+
value: bigint;
|
|
48
|
+
}
|
|
49
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
50
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
51
|
+
type Log = TypedEventLog<Event>;
|
|
52
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace TransferEvent {
|
|
55
|
+
type InputTuple = [from: AddressLike, to: AddressLike, value: BigNumberish];
|
|
56
|
+
type OutputTuple = [from: string, to: string, value: bigint];
|
|
57
|
+
interface OutputObject {
|
|
58
|
+
from: string;
|
|
59
|
+
to: string;
|
|
60
|
+
value: bigint;
|
|
61
|
+
}
|
|
62
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
63
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
64
|
+
type Log = TypedEventLog<Event>;
|
|
65
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
66
|
+
}
|
|
67
|
+
export interface IERC20Extended extends BaseContract {
|
|
68
|
+
connect(runner?: ContractRunner | null): IERC20Extended;
|
|
69
|
+
waitForDeployment(): Promise<this>;
|
|
70
|
+
interface: IERC20ExtendedInterface;
|
|
71
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
72
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
73
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
74
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
75
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
76
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
77
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
78
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
79
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
80
|
+
DOMAIN_SEPARATOR: TypedContractMethod<[
|
|
81
|
+
], [
|
|
82
|
+
string
|
|
83
|
+
], 'view'>;
|
|
84
|
+
allowance: TypedContractMethod<[
|
|
85
|
+
owner: AddressLike,
|
|
86
|
+
spender: AddressLike
|
|
87
|
+
], [
|
|
88
|
+
bigint
|
|
89
|
+
], 'view'>;
|
|
90
|
+
approve: TypedContractMethod<[
|
|
91
|
+
spender: AddressLike,
|
|
92
|
+
value: BigNumberish
|
|
93
|
+
], [
|
|
94
|
+
boolean
|
|
95
|
+
], 'nonpayable'>;
|
|
96
|
+
authorizationState: TypedContractMethod<[
|
|
97
|
+
authorizer: AddressLike,
|
|
98
|
+
nonce: BytesLike
|
|
99
|
+
], [
|
|
100
|
+
boolean
|
|
101
|
+
], 'view'>;
|
|
102
|
+
balanceOf: TypedContractMethod<[
|
|
103
|
+
account: AddressLike
|
|
104
|
+
], [
|
|
105
|
+
bigint
|
|
106
|
+
], 'view'>;
|
|
107
|
+
cancelAuthorization: TypedContractMethod<[
|
|
108
|
+
authorizer: AddressLike,
|
|
109
|
+
nonce: BytesLike,
|
|
110
|
+
v: BigNumberish,
|
|
111
|
+
r: BytesLike,
|
|
112
|
+
s: BytesLike
|
|
113
|
+
], [
|
|
114
|
+
void
|
|
115
|
+
], 'nonpayable'>;
|
|
116
|
+
decimals: TypedContractMethod<[
|
|
117
|
+
], [
|
|
118
|
+
bigint
|
|
119
|
+
], 'view'>;
|
|
120
|
+
name: TypedContractMethod<[
|
|
121
|
+
], [
|
|
122
|
+
string
|
|
123
|
+
], 'view'>;
|
|
124
|
+
nonces: TypedContractMethod<[
|
|
125
|
+
owner: AddressLike
|
|
126
|
+
], [
|
|
127
|
+
bigint
|
|
128
|
+
], 'view'>;
|
|
129
|
+
permit: TypedContractMethod<[
|
|
130
|
+
owner: AddressLike,
|
|
131
|
+
spender: AddressLike,
|
|
132
|
+
value: BigNumberish,
|
|
133
|
+
deadline: BigNumberish,
|
|
134
|
+
v: BigNumberish,
|
|
135
|
+
r: BytesLike,
|
|
136
|
+
s: BytesLike
|
|
137
|
+
], [
|
|
138
|
+
void
|
|
139
|
+
], 'nonpayable'>;
|
|
140
|
+
receiveWithAuthorization: TypedContractMethod<[
|
|
141
|
+
from: AddressLike,
|
|
142
|
+
to: AddressLike,
|
|
143
|
+
value: BigNumberish,
|
|
144
|
+
validAfter: BigNumberish,
|
|
145
|
+
validBefore: BigNumberish,
|
|
146
|
+
nonce: BytesLike,
|
|
147
|
+
v: BigNumberish,
|
|
148
|
+
r: BytesLike,
|
|
149
|
+
s: BytesLike
|
|
150
|
+
], [
|
|
151
|
+
void
|
|
152
|
+
], 'nonpayable'>;
|
|
153
|
+
symbol: TypedContractMethod<[
|
|
154
|
+
], [
|
|
155
|
+
string
|
|
156
|
+
], 'view'>;
|
|
157
|
+
totalSupply: TypedContractMethod<[
|
|
158
|
+
], [
|
|
159
|
+
bigint
|
|
160
|
+
], 'view'>;
|
|
161
|
+
transfer: TypedContractMethod<[
|
|
162
|
+
to: AddressLike,
|
|
163
|
+
value: BigNumberish
|
|
164
|
+
], [
|
|
165
|
+
boolean
|
|
166
|
+
], 'nonpayable'>;
|
|
167
|
+
transferFrom: TypedContractMethod<[
|
|
168
|
+
from: AddressLike,
|
|
169
|
+
to: AddressLike,
|
|
170
|
+
value: BigNumberish
|
|
171
|
+
], [
|
|
172
|
+
boolean
|
|
173
|
+
], 'nonpayable'>;
|
|
174
|
+
transferWithAuthorization: TypedContractMethod<[
|
|
175
|
+
from: AddressLike,
|
|
176
|
+
to: AddressLike,
|
|
177
|
+
value: BigNumberish,
|
|
178
|
+
validAfter: BigNumberish,
|
|
179
|
+
validBefore: BigNumberish,
|
|
180
|
+
nonce: BytesLike,
|
|
181
|
+
v: BigNumberish,
|
|
182
|
+
r: BytesLike,
|
|
183
|
+
s: BytesLike
|
|
184
|
+
], [
|
|
185
|
+
void
|
|
186
|
+
], 'nonpayable'>;
|
|
187
|
+
version: TypedContractMethod<[
|
|
188
|
+
], [
|
|
189
|
+
string
|
|
190
|
+
], 'view'>;
|
|
191
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
192
|
+
getFunction(nameOrSignature: 'DOMAIN_SEPARATOR'): TypedContractMethod<[
|
|
193
|
+
], [
|
|
194
|
+
string
|
|
195
|
+
], 'view'>;
|
|
196
|
+
getFunction(nameOrSignature: 'allowance'): TypedContractMethod<[
|
|
197
|
+
owner: AddressLike,
|
|
198
|
+
spender: AddressLike
|
|
199
|
+
], [
|
|
200
|
+
bigint
|
|
201
|
+
], 'view'>;
|
|
202
|
+
getFunction(nameOrSignature: 'approve'): TypedContractMethod<[
|
|
203
|
+
spender: AddressLike,
|
|
204
|
+
value: BigNumberish
|
|
205
|
+
], [
|
|
206
|
+
boolean
|
|
207
|
+
], 'nonpayable'>;
|
|
208
|
+
getFunction(nameOrSignature: 'authorizationState'): TypedContractMethod<[
|
|
209
|
+
authorizer: AddressLike,
|
|
210
|
+
nonce: BytesLike
|
|
211
|
+
], [
|
|
212
|
+
boolean
|
|
213
|
+
], 'view'>;
|
|
214
|
+
getFunction(nameOrSignature: 'balanceOf'): TypedContractMethod<[
|
|
215
|
+
account: AddressLike
|
|
216
|
+
], [
|
|
217
|
+
bigint
|
|
218
|
+
], 'view'>;
|
|
219
|
+
getFunction(nameOrSignature: 'cancelAuthorization'): TypedContractMethod<[
|
|
220
|
+
authorizer: AddressLike,
|
|
221
|
+
nonce: BytesLike,
|
|
222
|
+
v: BigNumberish,
|
|
223
|
+
r: BytesLike,
|
|
224
|
+
s: BytesLike
|
|
225
|
+
], [
|
|
226
|
+
void
|
|
227
|
+
], 'nonpayable'>;
|
|
228
|
+
getFunction(nameOrSignature: 'decimals'): TypedContractMethod<[
|
|
229
|
+
], [
|
|
230
|
+
bigint
|
|
231
|
+
], 'view'>;
|
|
232
|
+
getFunction(nameOrSignature: 'name'): TypedContractMethod<[
|
|
233
|
+
], [
|
|
234
|
+
string
|
|
235
|
+
], 'view'>;
|
|
236
|
+
getFunction(nameOrSignature: 'nonces'): TypedContractMethod<[
|
|
237
|
+
owner: AddressLike
|
|
238
|
+
], [
|
|
239
|
+
bigint
|
|
240
|
+
], 'view'>;
|
|
241
|
+
getFunction(nameOrSignature: 'permit'): TypedContractMethod<[
|
|
242
|
+
owner: AddressLike,
|
|
243
|
+
spender: AddressLike,
|
|
244
|
+
value: BigNumberish,
|
|
245
|
+
deadline: BigNumberish,
|
|
246
|
+
v: BigNumberish,
|
|
247
|
+
r: BytesLike,
|
|
248
|
+
s: BytesLike
|
|
249
|
+
], [
|
|
250
|
+
void
|
|
251
|
+
], 'nonpayable'>;
|
|
252
|
+
getFunction(nameOrSignature: 'receiveWithAuthorization'): TypedContractMethod<[
|
|
253
|
+
from: AddressLike,
|
|
254
|
+
to: AddressLike,
|
|
255
|
+
value: BigNumberish,
|
|
256
|
+
validAfter: BigNumberish,
|
|
257
|
+
validBefore: BigNumberish,
|
|
258
|
+
nonce: BytesLike,
|
|
259
|
+
v: BigNumberish,
|
|
260
|
+
r: BytesLike,
|
|
261
|
+
s: BytesLike
|
|
262
|
+
], [
|
|
263
|
+
void
|
|
264
|
+
], 'nonpayable'>;
|
|
265
|
+
getFunction(nameOrSignature: 'symbol'): TypedContractMethod<[
|
|
266
|
+
], [
|
|
267
|
+
string
|
|
268
|
+
], 'view'>;
|
|
269
|
+
getFunction(nameOrSignature: 'totalSupply'): TypedContractMethod<[
|
|
270
|
+
], [
|
|
271
|
+
bigint
|
|
272
|
+
], 'view'>;
|
|
273
|
+
getFunction(nameOrSignature: 'transfer'): TypedContractMethod<[
|
|
274
|
+
to: AddressLike,
|
|
275
|
+
value: BigNumberish
|
|
276
|
+
], [
|
|
277
|
+
boolean
|
|
278
|
+
], 'nonpayable'>;
|
|
279
|
+
getFunction(nameOrSignature: 'transferFrom'): TypedContractMethod<[
|
|
280
|
+
from: AddressLike,
|
|
281
|
+
to: AddressLike,
|
|
282
|
+
value: BigNumberish
|
|
283
|
+
], [
|
|
284
|
+
boolean
|
|
285
|
+
], 'nonpayable'>;
|
|
286
|
+
getFunction(nameOrSignature: 'transferWithAuthorization'): TypedContractMethod<[
|
|
287
|
+
from: AddressLike,
|
|
288
|
+
to: AddressLike,
|
|
289
|
+
value: BigNumberish,
|
|
290
|
+
validAfter: BigNumberish,
|
|
291
|
+
validBefore: BigNumberish,
|
|
292
|
+
nonce: BytesLike,
|
|
293
|
+
v: BigNumberish,
|
|
294
|
+
r: BytesLike,
|
|
295
|
+
s: BytesLike
|
|
296
|
+
], [
|
|
297
|
+
void
|
|
298
|
+
], 'nonpayable'>;
|
|
299
|
+
getFunction(nameOrSignature: 'version'): TypedContractMethod<[
|
|
300
|
+
], [
|
|
301
|
+
string
|
|
302
|
+
], 'view'>;
|
|
303
|
+
getEvent(key: 'Approval'): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
304
|
+
getEvent(key: 'Transfer'): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
305
|
+
filters: {
|
|
306
|
+
'Approval(address,address,uint256)': TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
307
|
+
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
308
|
+
'Transfer(address,address,uint256)': TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
309
|
+
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
310
|
+
};
|
|
311
|
+
}
|
package/dist/Oracle.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ export interface Oracle extends BaseContract {
|
|
|
128
128
|
_data: BytesLike
|
|
129
129
|
], [
|
|
130
130
|
void
|
|
131
|
-
], '
|
|
131
|
+
], 'nonpayable'>;
|
|
132
132
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
133
133
|
getFunction(nameOrSignature: 'MAX_DATA_SIZE'): TypedContractMethod<[
|
|
134
134
|
], [
|
|
@@ -201,7 +201,7 @@ export interface Oracle extends BaseContract {
|
|
|
201
201
|
_data: BytesLike
|
|
202
202
|
], [
|
|
203
203
|
void
|
|
204
|
-
], '
|
|
204
|
+
], 'nonpayable'>;
|
|
205
205
|
getEvent(key: 'DataUpdated'): TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
|
|
206
206
|
filters: {
|
|
207
207
|
'DataUpdated(bytes,uint256)': TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "./common.js";
|
|
3
|
-
export interface
|
|
3
|
+
export interface OracleErrorsInterface extends Interface {
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
6
|
-
connect(runner?: ContractRunner | null):
|
|
5
|
+
export interface OracleErrors extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): OracleErrors;
|
|
7
7
|
waitForDeployment(): Promise<this>;
|
|
8
|
-
interface:
|
|
8
|
+
interface: OracleErrorsInterface;
|
|
9
9
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
10
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
11
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
package/dist/OracleFactory.d.ts
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common.js";
|
|
3
3
|
export interface OracleFactoryInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "activeOracleCount" | "config" | "deployOracle" | "getAllOracles" | "getOracleInfo" | "getProviderOracles" | "oracleList" | "oracles" | "owner" | "providerOracles" | "renounceOwnership" | "setOracleDataUpdatePrice" | "setOracleStatus" | "transferOwnership" | "updateConfig" | "updateOracleData"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "activeOracleCount" | "config" | "deployOracle" | "getAllOracles" | "getOracleInfo" | "getProviderOracles" | "oracleList" | "oracles" | "owner" | "paymentToken" | "providerOracles" | "renounceOwnership" | "setOracleDataUpdatePrice" | "setOracleStatus" | "transferOwnership" | "updateConfig" | "updateOracleData"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "OracleDeployed" | "OracleStatusChanged" | "OwnershipTransferred"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: 'activeOracleCount', values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: 'config', values?: undefined): string;
|
|
8
|
-
encodeFunctionData(functionFragment: 'deployOracle', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: 'deployOracle', values: [BigNumberish, BigNumberish, BytesLike, BigNumberish, BigNumberish, BytesLike, BigNumberish, BytesLike, BytesLike]): string;
|
|
9
9
|
encodeFunctionData(functionFragment: 'getAllOracles', values: [BigNumberish, BigNumberish]): string;
|
|
10
10
|
encodeFunctionData(functionFragment: 'getOracleInfo', values: [AddressLike]): string;
|
|
11
11
|
encodeFunctionData(functionFragment: 'getProviderOracles', values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
12
12
|
encodeFunctionData(functionFragment: 'oracleList', values: [BigNumberish]): string;
|
|
13
13
|
encodeFunctionData(functionFragment: 'oracles', values: [AddressLike]): string;
|
|
14
14
|
encodeFunctionData(functionFragment: 'owner', values?: undefined): string;
|
|
15
|
+
encodeFunctionData(functionFragment: 'paymentToken', values?: undefined): string;
|
|
15
16
|
encodeFunctionData(functionFragment: 'providerOracles', values: [AddressLike, BigNumberish]): string;
|
|
16
17
|
encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string;
|
|
17
18
|
encodeFunctionData(functionFragment: 'setOracleDataUpdatePrice', values: [AddressLike, BigNumberish]): string;
|
|
18
19
|
encodeFunctionData(functionFragment: 'setOracleStatus', values: [AddressLike, boolean]): string;
|
|
19
20
|
encodeFunctionData(functionFragment: 'transferOwnership', values: [AddressLike]): string;
|
|
20
|
-
encodeFunctionData(functionFragment: 'updateConfig', values: [BigNumberish, BigNumberish]): string;
|
|
21
|
-
encodeFunctionData(functionFragment: 'updateOracleData', values: [AddressLike, BytesLike]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: 'updateConfig', values: [BigNumberish, BigNumberish, AddressLike]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: 'updateOracleData', values: [AddressLike, BytesLike, BigNumberish, BigNumberish, BytesLike, BigNumberish, BytesLike, BytesLike]): string;
|
|
22
23
|
decodeFunctionResult(functionFragment: 'activeOracleCount', data: BytesLike): Result;
|
|
23
24
|
decodeFunctionResult(functionFragment: 'config', data: BytesLike): Result;
|
|
24
25
|
decodeFunctionResult(functionFragment: 'deployOracle', data: BytesLike): Result;
|
|
@@ -28,6 +29,7 @@ export interface OracleFactoryInterface extends Interface {
|
|
|
28
29
|
decodeFunctionResult(functionFragment: 'oracleList', data: BytesLike): Result;
|
|
29
30
|
decodeFunctionResult(functionFragment: 'oracles', data: BytesLike): Result;
|
|
30
31
|
decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: 'paymentToken', data: BytesLike): Result;
|
|
31
33
|
decodeFunctionResult(functionFragment: 'providerOracles', data: BytesLike): Result;
|
|
32
34
|
decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result;
|
|
33
35
|
decodeFunctionResult(functionFragment: 'setOracleDataUpdatePrice', data: BytesLike): Result;
|
|
@@ -94,18 +96,25 @@ export interface OracleFactory extends BaseContract {
|
|
|
94
96
|
], 'view'>;
|
|
95
97
|
config: TypedContractMethod<[
|
|
96
98
|
], [
|
|
97
|
-
[bigint, bigint] & {
|
|
99
|
+
[bigint, bigint, string] & {
|
|
98
100
|
oracleDeployPrice: bigint;
|
|
99
101
|
oracleFactoryShare: bigint;
|
|
102
|
+
paymentTokenAddress: string;
|
|
100
103
|
}
|
|
101
104
|
], 'view'>;
|
|
102
105
|
deployOracle: TypedContractMethod<[
|
|
103
106
|
_recommendedUpdateDuration: BigNumberish,
|
|
104
107
|
_dataUpdatePrice: BigNumberish,
|
|
105
|
-
_initialData: BytesLike
|
|
108
|
+
_initialData: BytesLike,
|
|
109
|
+
validAfter: BigNumberish,
|
|
110
|
+
validBefore: BigNumberish,
|
|
111
|
+
nonce: BytesLike,
|
|
112
|
+
v: BigNumberish,
|
|
113
|
+
r: BytesLike,
|
|
114
|
+
s: BytesLike
|
|
106
115
|
], [
|
|
107
116
|
void
|
|
108
|
-
], '
|
|
117
|
+
], 'nonpayable'>;
|
|
109
118
|
getAllOracles: TypedContractMethod<[
|
|
110
119
|
offset: BigNumberish,
|
|
111
120
|
limit: BigNumberish
|
|
@@ -150,6 +159,10 @@ export interface OracleFactory extends BaseContract {
|
|
|
150
159
|
], [
|
|
151
160
|
string
|
|
152
161
|
], 'view'>;
|
|
162
|
+
paymentToken: TypedContractMethod<[
|
|
163
|
+
], [
|
|
164
|
+
string
|
|
165
|
+
], 'view'>;
|
|
153
166
|
providerOracles: TypedContractMethod<[
|
|
154
167
|
arg0: AddressLike,
|
|
155
168
|
arg1: BigNumberish
|
|
@@ -179,16 +192,23 @@ export interface OracleFactory extends BaseContract {
|
|
|
179
192
|
], 'nonpayable'>;
|
|
180
193
|
updateConfig: TypedContractMethod<[
|
|
181
194
|
_oracleDeployPrice: BigNumberish,
|
|
182
|
-
_oracleFactoryShare: BigNumberish
|
|
195
|
+
_oracleFactoryShare: BigNumberish,
|
|
196
|
+
_paymentTokenAddress: AddressLike
|
|
183
197
|
], [
|
|
184
198
|
void
|
|
185
199
|
], 'nonpayable'>;
|
|
186
200
|
updateOracleData: TypedContractMethod<[
|
|
187
201
|
oracleAddress: AddressLike,
|
|
188
|
-
_data: BytesLike
|
|
202
|
+
_data: BytesLike,
|
|
203
|
+
validAfter: BigNumberish,
|
|
204
|
+
validBefore: BigNumberish,
|
|
205
|
+
nonce: BytesLike,
|
|
206
|
+
v: BigNumberish,
|
|
207
|
+
r: BytesLike,
|
|
208
|
+
s: BytesLike
|
|
189
209
|
], [
|
|
190
210
|
void
|
|
191
|
-
], '
|
|
211
|
+
], 'nonpayable'>;
|
|
192
212
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
193
213
|
getFunction(nameOrSignature: 'activeOracleCount'): TypedContractMethod<[
|
|
194
214
|
], [
|
|
@@ -196,18 +216,25 @@ export interface OracleFactory extends BaseContract {
|
|
|
196
216
|
], 'view'>;
|
|
197
217
|
getFunction(nameOrSignature: 'config'): TypedContractMethod<[
|
|
198
218
|
], [
|
|
199
|
-
[bigint, bigint] & {
|
|
219
|
+
[bigint, bigint, string] & {
|
|
200
220
|
oracleDeployPrice: bigint;
|
|
201
221
|
oracleFactoryShare: bigint;
|
|
222
|
+
paymentTokenAddress: string;
|
|
202
223
|
}
|
|
203
224
|
], 'view'>;
|
|
204
225
|
getFunction(nameOrSignature: 'deployOracle'): TypedContractMethod<[
|
|
205
226
|
_recommendedUpdateDuration: BigNumberish,
|
|
206
227
|
_dataUpdatePrice: BigNumberish,
|
|
207
|
-
_initialData: BytesLike
|
|
228
|
+
_initialData: BytesLike,
|
|
229
|
+
validAfter: BigNumberish,
|
|
230
|
+
validBefore: BigNumberish,
|
|
231
|
+
nonce: BytesLike,
|
|
232
|
+
v: BigNumberish,
|
|
233
|
+
r: BytesLike,
|
|
234
|
+
s: BytesLike
|
|
208
235
|
], [
|
|
209
236
|
void
|
|
210
|
-
], '
|
|
237
|
+
], 'nonpayable'>;
|
|
211
238
|
getFunction(nameOrSignature: 'getAllOracles'): TypedContractMethod<[
|
|
212
239
|
offset: BigNumberish,
|
|
213
240
|
limit: BigNumberish
|
|
@@ -252,6 +279,10 @@ export interface OracleFactory extends BaseContract {
|
|
|
252
279
|
], [
|
|
253
280
|
string
|
|
254
281
|
], 'view'>;
|
|
282
|
+
getFunction(nameOrSignature: 'paymentToken'): TypedContractMethod<[
|
|
283
|
+
], [
|
|
284
|
+
string
|
|
285
|
+
], 'view'>;
|
|
255
286
|
getFunction(nameOrSignature: 'providerOracles'): TypedContractMethod<[
|
|
256
287
|
arg0: AddressLike,
|
|
257
288
|
arg1: BigNumberish
|
|
@@ -281,16 +312,23 @@ export interface OracleFactory extends BaseContract {
|
|
|
281
312
|
], 'nonpayable'>;
|
|
282
313
|
getFunction(nameOrSignature: 'updateConfig'): TypedContractMethod<[
|
|
283
314
|
_oracleDeployPrice: BigNumberish,
|
|
284
|
-
_oracleFactoryShare: BigNumberish
|
|
315
|
+
_oracleFactoryShare: BigNumberish,
|
|
316
|
+
_paymentTokenAddress: AddressLike
|
|
285
317
|
], [
|
|
286
318
|
void
|
|
287
319
|
], 'nonpayable'>;
|
|
288
320
|
getFunction(nameOrSignature: 'updateOracleData'): TypedContractMethod<[
|
|
289
321
|
oracleAddress: AddressLike,
|
|
290
|
-
_data: BytesLike
|
|
322
|
+
_data: BytesLike,
|
|
323
|
+
validAfter: BigNumberish,
|
|
324
|
+
validBefore: BigNumberish,
|
|
325
|
+
nonce: BytesLike,
|
|
326
|
+
v: BigNumberish,
|
|
327
|
+
r: BytesLike,
|
|
328
|
+
s: BytesLike
|
|
291
329
|
], [
|
|
292
330
|
void
|
|
293
|
-
], '
|
|
331
|
+
], 'nonpayable'>;
|
|
294
332
|
getEvent(key: 'OracleDeployed'): TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;
|
|
295
333
|
getEvent(key: 'OracleStatusChanged'): TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;
|
|
296
334
|
getEvent(key: 'OwnershipTransferred'): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var p=(e,t)=>{for(var i in t)r(e,i,{get:t[i],enumerable:!0})},l=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!c.call(e,n)&&n!==i&&r(e,n,{get:()=>t[n],enumerable:!(o=d(t,n))||o.enumerable});return e};var g=e=>l(r({},"__esModule",{value:!0}),e);var v={};p(v,{ApprovalEvent:()=>a,TransferEvent:()=>s});module.exports=g(v);var a;(e=>{})(a||={});var s;(e=>{})(s||={});0&&(module.exports={ApprovalEvent,TransferEvent});
|
|
2
|
+
//# sourceMappingURL=IERC20Extended.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../types/ethers-contracts/IERC20Extended.ts"],
|
|
4
|
+
"sourcesContent": ["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from \"ethers\"\nimport type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from \"./common.js\"\n \n\n export interface IERC20ExtendedInterface extends Interface {\n getFunction(nameOrSignature: \"DOMAIN_SEPARATOR\" | \"allowance\" | \"approve\" | \"authorizationState\" | \"balanceOf\" | \"cancelAuthorization\" | \"decimals\" | \"name\" | \"nonces\" | \"permit\" | \"receiveWithAuthorization\" | \"symbol\" | \"totalSupply\" | \"transfer\" | \"transferFrom\" | \"transferWithAuthorization\" | \"version\"): FunctionFragment;\n\n getEvent(nameOrSignatureOrTopic: \"Approval\" | \"Transfer\"): EventFragment;\n\n encodeFunctionData(functionFragment: 'DOMAIN_SEPARATOR', values?: undefined): string;\nencodeFunctionData(functionFragment: 'allowance', values: [AddressLike, AddressLike]): string;\nencodeFunctionData(functionFragment: 'approve', values: [AddressLike, BigNumberish]): string;\nencodeFunctionData(functionFragment: 'authorizationState', values: [AddressLike, BytesLike]): string;\nencodeFunctionData(functionFragment: 'balanceOf', values: [AddressLike]): string;\nencodeFunctionData(functionFragment: 'cancelAuthorization', values: [AddressLike, BytesLike, BigNumberish, BytesLike, BytesLike]): string;\nencodeFunctionData(functionFragment: 'decimals', values?: undefined): string;\nencodeFunctionData(functionFragment: 'name', values?: undefined): string;\nencodeFunctionData(functionFragment: 'nonces', values: [AddressLike]): string;\nencodeFunctionData(functionFragment: 'permit', values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike]): string;\nencodeFunctionData(functionFragment: 'receiveWithAuthorization', values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BigNumberish, BytesLike, BytesLike]): string;\nencodeFunctionData(functionFragment: 'symbol', values?: undefined): string;\nencodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string;\nencodeFunctionData(functionFragment: 'transfer', values: [AddressLike, BigNumberish]): string;\nencodeFunctionData(functionFragment: 'transferFrom', values: [AddressLike, AddressLike, BigNumberish]): string;\nencodeFunctionData(functionFragment: 'transferWithAuthorization', values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BigNumberish, BytesLike, BytesLike]): string;\nencodeFunctionData(functionFragment: 'version', values?: undefined): string;\n\n decodeFunctionResult(functionFragment: 'DOMAIN_SEPARATOR', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'authorizationState', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'cancelAuthorization', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'name', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'nonces', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'permit', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'receiveWithAuthorization', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'transferWithAuthorization', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'version', data: BytesLike): Result;\n }\n\n \n export namespace ApprovalEvent {\n export type InputTuple = [owner: AddressLike, spender: AddressLike, value: BigNumberish];\n export type OutputTuple = [owner: string, spender: string, value: bigint];\n export interface OutputObject {owner: string, spender: string, value: bigint };\n export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>\n export type Filter = TypedDeferredTopicFilter<Event>\n export type Log = TypedEventLog<Event>\n export type LogDescription = TypedLogDescription<Event>\n }\n\n \n\n export namespace TransferEvent {\n export type InputTuple = [from: AddressLike, to: AddressLike, value: BigNumberish];\n export type OutputTuple = [from: string, to: string, value: bigint];\n export interface OutputObject {from: string, to: string, value: bigint };\n export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>\n export type Filter = TypedDeferredTopicFilter<Event>\n export type Log = TypedEventLog<Event>\n export type LogDescription = TypedLogDescription<Event>\n }\n\n \n\n export interface IERC20Extended extends BaseContract {\n \n connect(runner?: ContractRunner | null): IERC20Extended;\n waitForDeployment(): Promise<this>;\n\n interface: IERC20ExtendedInterface;\n\n \n queryFilter<TCEvent extends TypedContractEvent>(\n event: TCEvent,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined,\n ): Promise<Array<TypedEventLog<TCEvent>>>\n queryFilter<TCEvent extends TypedContractEvent>(\n filter: TypedDeferredTopicFilter<TCEvent>,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined\n ): Promise<Array<TypedEventLog<TCEvent>>>;\n\n on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n \n once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n\n listeners<TCEvent extends TypedContractEvent>(\n event: TCEvent\n ): Promise<Array<TypedListener<TCEvent>>>;\n listeners(eventName?: string): Promise<Array<Listener>>\n removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>\n\n\n \n \n DOMAIN_SEPARATOR: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n allowance: TypedContractMethod<\n [owner: AddressLike, spender: AddressLike, ],\n [bigint],\n 'view'\n >\n \n\n \n approve: TypedContractMethod<\n [spender: AddressLike, value: BigNumberish, ],\n [boolean],\n 'nonpayable'\n >\n \n\n \n authorizationState: TypedContractMethod<\n [authorizer: AddressLike, nonce: BytesLike, ],\n [boolean],\n 'view'\n >\n \n\n \n balanceOf: TypedContractMethod<\n [account: AddressLike, ],\n [bigint],\n 'view'\n >\n \n\n \n cancelAuthorization: TypedContractMethod<\n [authorizer: AddressLike, nonce: BytesLike, v: BigNumberish, r: BytesLike, s: BytesLike, ],\n [void],\n 'nonpayable'\n >\n \n\n \n decimals: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n name: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n nonces: TypedContractMethod<\n [owner: AddressLike, ],\n [bigint],\n 'view'\n >\n \n\n \n permit: TypedContractMethod<\n [owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, ],\n [void],\n 'nonpayable'\n >\n \n\n \n receiveWithAuthorization: TypedContractMethod<\n [from: AddressLike, to: AddressLike, value: BigNumberish, validAfter: BigNumberish, validBefore: BigNumberish, nonce: BytesLike, v: BigNumberish, r: BytesLike, s: BytesLike, ],\n [void],\n 'nonpayable'\n >\n \n\n \n symbol: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n totalSupply: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n transfer: TypedContractMethod<\n [to: AddressLike, value: BigNumberish, ],\n [boolean],\n 'nonpayable'\n >\n \n\n \n transferFrom: TypedContractMethod<\n [from: AddressLike, to: AddressLike, value: BigNumberish, ],\n [boolean],\n 'nonpayable'\n >\n \n\n \n transferWithAuthorization: TypedContractMethod<\n [from: AddressLike, to: AddressLike, value: BigNumberish, validAfter: BigNumberish, validBefore: BigNumberish, nonce: BytesLike, v: BigNumberish, r: BytesLike, s: BytesLike, ],\n [void],\n 'nonpayable'\n >\n \n\n \n version: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n\n getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;\n\n getFunction(nameOrSignature: 'DOMAIN_SEPARATOR'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'allowance'): TypedContractMethod<\n [owner: AddressLike, spender: AddressLike, ],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'approve'): TypedContractMethod<\n [spender: AddressLike, value: BigNumberish, ],\n [boolean],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'authorizationState'): TypedContractMethod<\n [authorizer: AddressLike, nonce: BytesLike, ],\n [boolean],\n 'view'\n >;\ngetFunction(nameOrSignature: 'balanceOf'): TypedContractMethod<\n [account: AddressLike, ],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'cancelAuthorization'): TypedContractMethod<\n [authorizer: AddressLike, nonce: BytesLike, v: BigNumberish, r: BytesLike, s: BytesLike, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'decimals'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'name'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'nonces'): TypedContractMethod<\n [owner: AddressLike, ],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'permit'): TypedContractMethod<\n [owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'receiveWithAuthorization'): TypedContractMethod<\n [from: AddressLike, to: AddressLike, value: BigNumberish, validAfter: BigNumberish, validBefore: BigNumberish, nonce: BytesLike, v: BigNumberish, r: BytesLike, s: BytesLike, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'symbol'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'totalSupply'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'transfer'): TypedContractMethod<\n [to: AddressLike, value: BigNumberish, ],\n [boolean],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'transferFrom'): TypedContractMethod<\n [from: AddressLike, to: AddressLike, value: BigNumberish, ],\n [boolean],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'transferWithAuthorization'): TypedContractMethod<\n [from: AddressLike, to: AddressLike, value: BigNumberish, validAfter: BigNumberish, validBefore: BigNumberish, nonce: BytesLike, v: BigNumberish, r: BytesLike, s: BytesLike, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'version'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\n\n getEvent(key: 'Approval'): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;\ngetEvent(key: 'Transfer'): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;\n\n filters: {\n \n 'Approval(address,address,uint256)': TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;\n Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;\n \n\n 'Transfer(address,address,uint256)': TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;\n Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;\n \n };\n }"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,EAAA,kBAAAC,IAAA,eAAAC,EAAAJ,GAkDW,IAAUE,MAAV,IAAUA,IAAA,IAYV,IAAUC,MAAV,IAAUA,IAAA",
|
|
6
|
+
"names": ["IERC20Extended_exports", "__export", "ApprovalEvent", "TransferEvent", "__toCommonJS"]
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../types/ethers-contracts/Oracle.ts"],
|
|
4
|
-
"sourcesContent": ["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from \"ethers\"\nimport type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from \"./common.js\"\n \n\n export interface OracleInterface extends Interface {\n getFunction(nameOrSignature: \"MAX_DATA_SIZE\" | \"dataUpdatePrice\" | \"factory\" | \"getData\" | \"getDataWithoutCheck\" | \"getProvider\" | \"history\" | \"historyCount\" | \"isActive\" | \"lastUpdateTimestamp\" | \"provider\" | \"recommendedUpdateDuration\" | \"setDataUpdatePrice\" | \"setOracleStatus\" | \"setRecommendedUpdateDuration\" | \"updateData\"): FunctionFragment;\n\n getEvent(nameOrSignatureOrTopic: \"DataUpdated\"): EventFragment;\n\n encodeFunctionData(functionFragment: 'MAX_DATA_SIZE', values?: undefined): string;\nencodeFunctionData(functionFragment: 'dataUpdatePrice', values?: undefined): string;\nencodeFunctionData(functionFragment: 'factory', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getData', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getDataWithoutCheck', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getProvider', values?: undefined): string;\nencodeFunctionData(functionFragment: 'history', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'historyCount', values?: undefined): string;\nencodeFunctionData(functionFragment: 'isActive', values?: undefined): string;\nencodeFunctionData(functionFragment: 'lastUpdateTimestamp', values?: undefined): string;\nencodeFunctionData(functionFragment: 'provider', values?: undefined): string;\nencodeFunctionData(functionFragment: 'recommendedUpdateDuration', values?: undefined): string;\nencodeFunctionData(functionFragment: 'setDataUpdatePrice', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'setOracleStatus', values: [boolean]): string;\nencodeFunctionData(functionFragment: 'setRecommendedUpdateDuration', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'updateData', values: [BytesLike]): string;\n\n decodeFunctionResult(functionFragment: 'MAX_DATA_SIZE', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'dataUpdatePrice', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'factory', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getData', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getDataWithoutCheck', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getProvider', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'history', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'historyCount', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'isActive', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'lastUpdateTimestamp', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'provider', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'recommendedUpdateDuration', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setDataUpdatePrice', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setRecommendedUpdateDuration', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'updateData', data: BytesLike): Result;\n }\n\n \n export namespace DataUpdatedEvent {\n export type InputTuple = [data: BytesLike, timestamp: BigNumberish];\n export type OutputTuple = [data: string, timestamp: bigint];\n export interface OutputObject {data: string, timestamp: bigint };\n export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>\n export type Filter = TypedDeferredTopicFilter<Event>\n export type Log = TypedEventLog<Event>\n export type LogDescription = TypedLogDescription<Event>\n }\n\n \n\n export interface Oracle extends BaseContract {\n \n connect(runner?: ContractRunner | null): Oracle;\n waitForDeployment(): Promise<this>;\n\n interface: OracleInterface;\n\n \n queryFilter<TCEvent extends TypedContractEvent>(\n event: TCEvent,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined,\n ): Promise<Array<TypedEventLog<TCEvent>>>\n queryFilter<TCEvent extends TypedContractEvent>(\n filter: TypedDeferredTopicFilter<TCEvent>,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined\n ): Promise<Array<TypedEventLog<TCEvent>>>;\n\n on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n \n once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n\n listeners<TCEvent extends TypedContractEvent>(\n event: TCEvent\n ): Promise<Array<TypedListener<TCEvent>>>;\n listeners(eventName?: string): Promise<Array<Listener>>\n removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>\n\n\n \n \n MAX_DATA_SIZE: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n dataUpdatePrice: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n factory: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getData: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getDataWithoutCheck: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getProvider: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n history: TypedContractMethod<\n [arg0: BigNumberish, ],\n [[string, bigint] & {data: string, timestamp: bigint }],\n 'view'\n >\n \n\n \n historyCount: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n isActive: TypedContractMethod<\n [],\n [boolean],\n 'view'\n >\n \n\n \n lastUpdateTimestamp: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n recommendedUpdateDuration: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n setDataUpdatePrice: TypedContractMethod<\n [_price: BigNumberish, ],\n [void],\n 'nonpayable'\n >\n \n\n \n setOracleStatus: TypedContractMethod<\n [_isActive: boolean, ],\n [void],\n 'nonpayable'\n >\n \n\n \n setRecommendedUpdateDuration: TypedContractMethod<\n [_duration: BigNumberish, ],\n [void],\n 'nonpayable'\n >\n \n\n \n updateData: TypedContractMethod<\n [_data: BytesLike, ],\n [void],\n 'payable'\n >\n \n\n\n getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;\n\n getFunction(nameOrSignature: 'MAX_DATA_SIZE'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'dataUpdatePrice'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'factory'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getData'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getDataWithoutCheck'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getProvider'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'history'): TypedContractMethod<\n [arg0: BigNumberish, ],\n [[string, bigint] & {data: string, timestamp: bigint }],\n 'view'\n >;\ngetFunction(nameOrSignature: 'historyCount'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'isActive'): TypedContractMethod<\n [],\n [boolean],\n 'view'\n >;\ngetFunction(nameOrSignature: 'lastUpdateTimestamp'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'provider'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'recommendedUpdateDuration'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'setDataUpdatePrice'): TypedContractMethod<\n [_price: BigNumberish, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<\n [_isActive: boolean, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'setRecommendedUpdateDuration'): TypedContractMethod<\n [_duration: BigNumberish, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'updateData'): TypedContractMethod<\n [_data: BytesLike, ],\n [void],\n 'payable'\n >;\n\n getEvent(key: 'DataUpdated'): TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n\n filters: {\n \n 'DataUpdated(bytes,uint256)': TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n DataUpdated: TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n \n };\n }"],
|
|
4
|
+
"sourcesContent": ["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from \"ethers\"\nimport type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from \"./common.js\"\n \n\n export interface OracleInterface extends Interface {\n getFunction(nameOrSignature: \"MAX_DATA_SIZE\" | \"dataUpdatePrice\" | \"factory\" | \"getData\" | \"getDataWithoutCheck\" | \"getProvider\" | \"history\" | \"historyCount\" | \"isActive\" | \"lastUpdateTimestamp\" | \"provider\" | \"recommendedUpdateDuration\" | \"setDataUpdatePrice\" | \"setOracleStatus\" | \"setRecommendedUpdateDuration\" | \"updateData\"): FunctionFragment;\n\n getEvent(nameOrSignatureOrTopic: \"DataUpdated\"): EventFragment;\n\n encodeFunctionData(functionFragment: 'MAX_DATA_SIZE', values?: undefined): string;\nencodeFunctionData(functionFragment: 'dataUpdatePrice', values?: undefined): string;\nencodeFunctionData(functionFragment: 'factory', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getData', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getDataWithoutCheck', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getProvider', values?: undefined): string;\nencodeFunctionData(functionFragment: 'history', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'historyCount', values?: undefined): string;\nencodeFunctionData(functionFragment: 'isActive', values?: undefined): string;\nencodeFunctionData(functionFragment: 'lastUpdateTimestamp', values?: undefined): string;\nencodeFunctionData(functionFragment: 'provider', values?: undefined): string;\nencodeFunctionData(functionFragment: 'recommendedUpdateDuration', values?: undefined): string;\nencodeFunctionData(functionFragment: 'setDataUpdatePrice', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'setOracleStatus', values: [boolean]): string;\nencodeFunctionData(functionFragment: 'setRecommendedUpdateDuration', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'updateData', values: [BytesLike]): string;\n\n decodeFunctionResult(functionFragment: 'MAX_DATA_SIZE', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'dataUpdatePrice', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'factory', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getData', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getDataWithoutCheck', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getProvider', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'history', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'historyCount', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'isActive', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'lastUpdateTimestamp', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'provider', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'recommendedUpdateDuration', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setDataUpdatePrice', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setRecommendedUpdateDuration', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'updateData', data: BytesLike): Result;\n }\n\n \n export namespace DataUpdatedEvent {\n export type InputTuple = [data: BytesLike, timestamp: BigNumberish];\n export type OutputTuple = [data: string, timestamp: bigint];\n export interface OutputObject {data: string, timestamp: bigint };\n export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>\n export type Filter = TypedDeferredTopicFilter<Event>\n export type Log = TypedEventLog<Event>\n export type LogDescription = TypedLogDescription<Event>\n }\n\n \n\n export interface Oracle extends BaseContract {\n \n connect(runner?: ContractRunner | null): Oracle;\n waitForDeployment(): Promise<this>;\n\n interface: OracleInterface;\n\n \n queryFilter<TCEvent extends TypedContractEvent>(\n event: TCEvent,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined,\n ): Promise<Array<TypedEventLog<TCEvent>>>\n queryFilter<TCEvent extends TypedContractEvent>(\n filter: TypedDeferredTopicFilter<TCEvent>,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined\n ): Promise<Array<TypedEventLog<TCEvent>>>;\n\n on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n \n once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n\n listeners<TCEvent extends TypedContractEvent>(\n event: TCEvent\n ): Promise<Array<TypedListener<TCEvent>>>;\n listeners(eventName?: string): Promise<Array<Listener>>\n removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>\n\n\n \n \n MAX_DATA_SIZE: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n dataUpdatePrice: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n factory: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getData: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getDataWithoutCheck: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getProvider: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n history: TypedContractMethod<\n [arg0: BigNumberish, ],\n [[string, bigint] & {data: string, timestamp: bigint }],\n 'view'\n >\n \n\n \n historyCount: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n isActive: TypedContractMethod<\n [],\n [boolean],\n 'view'\n >\n \n\n \n lastUpdateTimestamp: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n recommendedUpdateDuration: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n setDataUpdatePrice: TypedContractMethod<\n [_price: BigNumberish, ],\n [void],\n 'nonpayable'\n >\n \n\n \n setOracleStatus: TypedContractMethod<\n [_isActive: boolean, ],\n [void],\n 'nonpayable'\n >\n \n\n \n setRecommendedUpdateDuration: TypedContractMethod<\n [_duration: BigNumberish, ],\n [void],\n 'nonpayable'\n >\n \n\n \n updateData: TypedContractMethod<\n [_data: BytesLike, ],\n [void],\n 'nonpayable'\n >\n \n\n\n getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;\n\n getFunction(nameOrSignature: 'MAX_DATA_SIZE'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'dataUpdatePrice'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'factory'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getData'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getDataWithoutCheck'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getProvider'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'history'): TypedContractMethod<\n [arg0: BigNumberish, ],\n [[string, bigint] & {data: string, timestamp: bigint }],\n 'view'\n >;\ngetFunction(nameOrSignature: 'historyCount'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'isActive'): TypedContractMethod<\n [],\n [boolean],\n 'view'\n >;\ngetFunction(nameOrSignature: 'lastUpdateTimestamp'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'provider'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'recommendedUpdateDuration'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'setDataUpdatePrice'): TypedContractMethod<\n [_price: BigNumberish, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<\n [_isActive: boolean, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'setRecommendedUpdateDuration'): TypedContractMethod<\n [_duration: BigNumberish, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'updateData'): TypedContractMethod<\n [_data: BytesLike, ],\n [void],\n 'nonpayable'\n >;\n\n getEvent(key: 'DataUpdated'): TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n\n filters: {\n \n 'DataUpdated(bytes,uint256)': TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n DataUpdated: TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n \n };\n }"],
|
|
5
5
|
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GAgDW,IAAUE,MAAV,IAAUA,IAAA",
|
|
6
6
|
"names": ["Oracle_exports", "__export", "DataUpdatedEvent", "__toCommonJS"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var c=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of T(e))!d.call(t,n)&&n!==i&&o(t,n,{get:()=>e[n],enumerable:!(r=s(e,n))||r.enumerable});return t};var v=t=>c(o({},"__esModule",{value:!0}),t);var a={};module.exports=v(a);
|
|
2
|
+
//# sourceMappingURL=OracleErrors.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../types/ethers-contracts/OracleErrors.ts"],
|
|
4
|
+
"sourcesContent": ["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from \"ethers\"\nimport type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from \"./common.js\"\n \n\n export interface OracleErrorsInterface extends Interface {\n \n\n \n\n \n\n \n }\n\n \n\n export interface OracleErrors extends BaseContract {\n \n connect(runner?: ContractRunner | null): OracleErrors;\n waitForDeployment(): Promise<this>;\n\n interface: OracleErrorsInterface;\n\n \n queryFilter<TCEvent extends TypedContractEvent>(\n event: TCEvent,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined,\n ): Promise<Array<TypedEventLog<TCEvent>>>\n queryFilter<TCEvent extends TypedContractEvent>(\n filter: TypedDeferredTopicFilter<TCEvent>,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined\n ): Promise<Array<TypedEventLog<TCEvent>>>;\n\n on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n \n once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n\n listeners<TCEvent extends TypedContractEvent>(\n event: TCEvent\n ): Promise<Array<TypedListener<TCEvent>>>;\n listeners(eventName?: string): Promise<Array<Listener>>\n removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>\n\n\n \n\n\n getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;\n\n \n\n \n\n filters: {\n \n };\n }"],
|
|
5
|
+
"mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
|
|
6
|
+
"names": ["OracleErrors_exports", "__toCommonJS"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},g=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!p.call(e,n)&&n!==r&&i(e,n,{get:()=>t[n],enumerable:!(a=c(t,n))||a.enumerable});return e};var
|
|
1
|
+
"use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},g=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!p.call(e,n)&&n!==r&&i(e,n,{get:()=>t[n],enumerable:!(a=c(t,n))||a.enumerable});return e};var y=e=>g(i({},"__esModule",{value:!0}),e);var v={};l(v,{OracleDeployedEvent:()=>o,OracleStatusChangedEvent:()=>s,OwnershipTransferredEvent:()=>d});module.exports=y(v);var o;(e=>{})(o||={});var s;(e=>{})(s||={});var d;(e=>{})(d||={});0&&(module.exports={OracleDeployedEvent,OracleStatusChangedEvent,OwnershipTransferredEvent});
|
|
2
2
|
//# sourceMappingURL=OracleFactory.js.map
|