@coset-dev/contracts 1.0.1 → 1.0.3

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.
Files changed (54) hide show
  1. package/dist/Oracle.d.ts +210 -0
  2. package/dist/OracleFactory.d.ts +313 -0
  3. package/dist/OracleUtils.d.ts +20 -0
  4. package/dist/cjs/ethers-contracts/Oracle.js +2 -0
  5. package/dist/cjs/ethers-contracts/Oracle.js.map +7 -0
  6. package/dist/cjs/ethers-contracts/OracleFactory.js +2 -0
  7. package/dist/cjs/ethers-contracts/OracleFactory.js.map +7 -0
  8. package/dist/cjs/ethers-contracts/OracleUtils.js +2 -0
  9. package/dist/cjs/ethers-contracts/OracleUtils.js.map +7 -0
  10. package/dist/cjs/ethers-contracts/common.js +2 -0
  11. package/dist/cjs/ethers-contracts/common.js.map +7 -0
  12. package/dist/cjs/ethers-contracts/factories/OracleFactory__factory.js +2 -0
  13. package/dist/cjs/ethers-contracts/factories/OracleFactory__factory.js.map +7 -0
  14. package/dist/cjs/ethers-contracts/factories/OracleUtils__factory.js +2 -0
  15. package/dist/cjs/ethers-contracts/factories/OracleUtils__factory.js.map +7 -0
  16. package/dist/cjs/ethers-contracts/factories/Oracle__factory.js +2 -0
  17. package/dist/cjs/ethers-contracts/factories/Oracle__factory.js.map +7 -0
  18. package/dist/cjs/ethers-contracts/factories/index.js +2 -0
  19. package/dist/cjs/ethers-contracts/factories/index.js.map +7 -0
  20. package/dist/cjs/ethers-contracts/index.js +2 -0
  21. package/dist/cjs/ethers-contracts/index.js.map +7 -0
  22. package/dist/common.d.ts +46 -0
  23. package/dist/esm/ethers-contracts/Oracle.js +2 -0
  24. package/dist/esm/ethers-contracts/Oracle.js.map +7 -0
  25. package/dist/esm/ethers-contracts/OracleFactory.js +2 -0
  26. package/dist/esm/ethers-contracts/OracleFactory.js.map +7 -0
  27. package/dist/esm/ethers-contracts/OracleUtils.js +1 -0
  28. package/dist/esm/ethers-contracts/OracleUtils.js.map +7 -0
  29. package/dist/esm/ethers-contracts/common.js +1 -0
  30. package/dist/esm/ethers-contracts/common.js.map +7 -0
  31. package/dist/esm/ethers-contracts/factories/OracleFactory__factory.js +2 -0
  32. package/dist/esm/ethers-contracts/factories/OracleFactory__factory.js.map +7 -0
  33. package/dist/esm/ethers-contracts/factories/OracleUtils__factory.js +2 -0
  34. package/dist/esm/ethers-contracts/factories/OracleUtils__factory.js.map +7 -0
  35. package/dist/esm/ethers-contracts/factories/Oracle__factory.js +2 -0
  36. package/dist/esm/ethers-contracts/factories/Oracle__factory.js.map +7 -0
  37. package/dist/esm/ethers-contracts/factories/index.js +2 -0
  38. package/dist/esm/ethers-contracts/factories/index.js.map +7 -0
  39. package/dist/esm/ethers-contracts/index.js +2 -0
  40. package/dist/esm/ethers-contracts/index.js.map +7 -0
  41. package/dist/factories/OracleFactory__factory.d.ts +421 -0
  42. package/dist/factories/OracleUtils__factory.d.ts +108 -0
  43. package/dist/factories/Oracle__factory.d.ts +323 -0
  44. package/{types/ethers-contracts/factories/index.ts → dist/factories/index.d.ts} +1 -4
  45. package/{types/ethers-contracts/index.ts → dist/index.d.ts} +1 -4
  46. package/package.json +42 -18
  47. package/types/ethers-contracts/Oracle.ts +0 -306
  48. package/types/ethers-contracts/OracleFactory.ts +0 -363
  49. package/types/ethers-contracts/OracleUtils.ts +0 -64
  50. package/types/ethers-contracts/common.ts +0 -92
  51. package/types/ethers-contracts/factories/OracleFactory__factory.ts +0 -578
  52. package/types/ethers-contracts/factories/OracleUtils__factory.ts +0 -170
  53. package/types/ethers-contracts/factories/Oracle__factory.ts +0 -449
  54. /package/{types/ethers-contracts → dist}/hardhat.d.ts +0 -0
@@ -1,306 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers"
5
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common.js"
6
-
7
-
8
- export interface OracleInterface extends Interface {
9
- getFunction(nameOrSignature: "MAX_DATA_SIZE" | "dataUpdatePrice" | "factory" | "getData" | "getDataWithoutCheck" | "getProvider" | "history" | "historyCount" | "isActive" | "lastUpdateTimestamp" | "provider" | "recommendedUpdateDuration" | "setDataUpdatePrice" | "setOracleStatus" | "setRecommendedUpdateDuration" | "updateData"): FunctionFragment;
10
-
11
- getEvent(nameOrSignatureOrTopic: "DataUpdated"): EventFragment;
12
-
13
- encodeFunctionData(functionFragment: 'MAX_DATA_SIZE', values?: undefined): string;
14
- encodeFunctionData(functionFragment: 'dataUpdatePrice', values?: undefined): string;
15
- encodeFunctionData(functionFragment: 'factory', values?: undefined): string;
16
- encodeFunctionData(functionFragment: 'getData', values?: undefined): string;
17
- encodeFunctionData(functionFragment: 'getDataWithoutCheck', values?: undefined): string;
18
- encodeFunctionData(functionFragment: 'getProvider', values?: undefined): string;
19
- encodeFunctionData(functionFragment: 'history', values: [BigNumberish]): string;
20
- encodeFunctionData(functionFragment: 'historyCount', values?: undefined): string;
21
- encodeFunctionData(functionFragment: 'isActive', values?: undefined): string;
22
- encodeFunctionData(functionFragment: 'lastUpdateTimestamp', values?: undefined): string;
23
- encodeFunctionData(functionFragment: 'provider', values?: undefined): string;
24
- encodeFunctionData(functionFragment: 'recommendedUpdateDuration', values?: undefined): string;
25
- encodeFunctionData(functionFragment: 'setDataUpdatePrice', values: [BigNumberish]): string;
26
- encodeFunctionData(functionFragment: 'setOracleStatus', values: [boolean]): string;
27
- encodeFunctionData(functionFragment: 'setRecommendedUpdateDuration', values: [BigNumberish]): string;
28
- encodeFunctionData(functionFragment: 'updateData', values: [BytesLike]): string;
29
-
30
- decodeFunctionResult(functionFragment: 'MAX_DATA_SIZE', data: BytesLike): Result;
31
- decodeFunctionResult(functionFragment: 'dataUpdatePrice', data: BytesLike): Result;
32
- decodeFunctionResult(functionFragment: 'factory', data: BytesLike): Result;
33
- decodeFunctionResult(functionFragment: 'getData', data: BytesLike): Result;
34
- decodeFunctionResult(functionFragment: 'getDataWithoutCheck', data: BytesLike): Result;
35
- decodeFunctionResult(functionFragment: 'getProvider', data: BytesLike): Result;
36
- decodeFunctionResult(functionFragment: 'history', data: BytesLike): Result;
37
- decodeFunctionResult(functionFragment: 'historyCount', data: BytesLike): Result;
38
- decodeFunctionResult(functionFragment: 'isActive', data: BytesLike): Result;
39
- decodeFunctionResult(functionFragment: 'lastUpdateTimestamp', data: BytesLike): Result;
40
- decodeFunctionResult(functionFragment: 'provider', data: BytesLike): Result;
41
- decodeFunctionResult(functionFragment: 'recommendedUpdateDuration', data: BytesLike): Result;
42
- decodeFunctionResult(functionFragment: 'setDataUpdatePrice', data: BytesLike): Result;
43
- decodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;
44
- decodeFunctionResult(functionFragment: 'setRecommendedUpdateDuration', data: BytesLike): Result;
45
- decodeFunctionResult(functionFragment: 'updateData', data: BytesLike): Result;
46
- }
47
-
48
-
49
- export namespace DataUpdatedEvent {
50
- export type InputTuple = [data: BytesLike, timestamp: BigNumberish];
51
- export type OutputTuple = [data: string, timestamp: bigint];
52
- export interface OutputObject {data: string, timestamp: bigint };
53
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>
54
- export type Filter = TypedDeferredTopicFilter<Event>
55
- export type Log = TypedEventLog<Event>
56
- export type LogDescription = TypedLogDescription<Event>
57
- }
58
-
59
-
60
-
61
- export interface Oracle extends BaseContract {
62
-
63
- connect(runner?: ContractRunner | null): Oracle;
64
- waitForDeployment(): Promise<this>;
65
-
66
- interface: OracleInterface;
67
-
68
-
69
- queryFilter<TCEvent extends TypedContractEvent>(
70
- event: TCEvent,
71
- fromBlockOrBlockhash?: string | number | undefined,
72
- toBlock?: string | number | undefined,
73
- ): Promise<Array<TypedEventLog<TCEvent>>>
74
- queryFilter<TCEvent extends TypedContractEvent>(
75
- filter: TypedDeferredTopicFilter<TCEvent>,
76
- fromBlockOrBlockhash?: string | number | undefined,
77
- toBlock?: string | number | undefined
78
- ): Promise<Array<TypedEventLog<TCEvent>>>;
79
-
80
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>
81
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>
82
-
83
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>
84
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>
85
-
86
- listeners<TCEvent extends TypedContractEvent>(
87
- event: TCEvent
88
- ): Promise<Array<TypedListener<TCEvent>>>;
89
- listeners(eventName?: string): Promise<Array<Listener>>
90
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>
91
-
92
-
93
-
94
-
95
- MAX_DATA_SIZE: TypedContractMethod<
96
- [],
97
- [bigint],
98
- 'view'
99
- >
100
-
101
-
102
-
103
- dataUpdatePrice: TypedContractMethod<
104
- [],
105
- [bigint],
106
- 'view'
107
- >
108
-
109
-
110
-
111
- factory: TypedContractMethod<
112
- [],
113
- [string],
114
- 'view'
115
- >
116
-
117
-
118
-
119
- getData: TypedContractMethod<
120
- [],
121
- [string],
122
- 'view'
123
- >
124
-
125
-
126
-
127
- getDataWithoutCheck: TypedContractMethod<
128
- [],
129
- [string],
130
- 'view'
131
- >
132
-
133
-
134
-
135
- getProvider: TypedContractMethod<
136
- [],
137
- [string],
138
- 'view'
139
- >
140
-
141
-
142
-
143
- history: TypedContractMethod<
144
- [arg0: BigNumberish, ],
145
- [[string, bigint] & {data: string, timestamp: bigint }],
146
- 'view'
147
- >
148
-
149
-
150
-
151
- historyCount: TypedContractMethod<
152
- [],
153
- [bigint],
154
- 'view'
155
- >
156
-
157
-
158
-
159
- isActive: TypedContractMethod<
160
- [],
161
- [boolean],
162
- 'view'
163
- >
164
-
165
-
166
-
167
- lastUpdateTimestamp: TypedContractMethod<
168
- [],
169
- [bigint],
170
- 'view'
171
- >
172
-
173
-
174
-
175
- recommendedUpdateDuration: TypedContractMethod<
176
- [],
177
- [bigint],
178
- 'view'
179
- >
180
-
181
-
182
-
183
- setDataUpdatePrice: TypedContractMethod<
184
- [_price: BigNumberish, ],
185
- [void],
186
- 'nonpayable'
187
- >
188
-
189
-
190
-
191
- setOracleStatus: TypedContractMethod<
192
- [_isActive: boolean, ],
193
- [void],
194
- 'nonpayable'
195
- >
196
-
197
-
198
-
199
- setRecommendedUpdateDuration: TypedContractMethod<
200
- [_duration: BigNumberish, ],
201
- [void],
202
- 'nonpayable'
203
- >
204
-
205
-
206
-
207
- updateData: TypedContractMethod<
208
- [_data: BytesLike, ],
209
- [void],
210
- 'payable'
211
- >
212
-
213
-
214
-
215
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
216
-
217
- getFunction(nameOrSignature: 'MAX_DATA_SIZE'): TypedContractMethod<
218
- [],
219
- [bigint],
220
- 'view'
221
- >;
222
- getFunction(nameOrSignature: 'dataUpdatePrice'): TypedContractMethod<
223
- [],
224
- [bigint],
225
- 'view'
226
- >;
227
- getFunction(nameOrSignature: 'factory'): TypedContractMethod<
228
- [],
229
- [string],
230
- 'view'
231
- >;
232
- getFunction(nameOrSignature: 'getData'): TypedContractMethod<
233
- [],
234
- [string],
235
- 'view'
236
- >;
237
- getFunction(nameOrSignature: 'getDataWithoutCheck'): TypedContractMethod<
238
- [],
239
- [string],
240
- 'view'
241
- >;
242
- getFunction(nameOrSignature: 'getProvider'): TypedContractMethod<
243
- [],
244
- [string],
245
- 'view'
246
- >;
247
- getFunction(nameOrSignature: 'history'): TypedContractMethod<
248
- [arg0: BigNumberish, ],
249
- [[string, bigint] & {data: string, timestamp: bigint }],
250
- 'view'
251
- >;
252
- getFunction(nameOrSignature: 'historyCount'): TypedContractMethod<
253
- [],
254
- [bigint],
255
- 'view'
256
- >;
257
- getFunction(nameOrSignature: 'isActive'): TypedContractMethod<
258
- [],
259
- [boolean],
260
- 'view'
261
- >;
262
- getFunction(nameOrSignature: 'lastUpdateTimestamp'): TypedContractMethod<
263
- [],
264
- [bigint],
265
- 'view'
266
- >;
267
- getFunction(nameOrSignature: 'provider'): TypedContractMethod<
268
- [],
269
- [string],
270
- 'view'
271
- >;
272
- getFunction(nameOrSignature: 'recommendedUpdateDuration'): TypedContractMethod<
273
- [],
274
- [bigint],
275
- 'view'
276
- >;
277
- getFunction(nameOrSignature: 'setDataUpdatePrice'): TypedContractMethod<
278
- [_price: BigNumberish, ],
279
- [void],
280
- 'nonpayable'
281
- >;
282
- getFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<
283
- [_isActive: boolean, ],
284
- [void],
285
- 'nonpayable'
286
- >;
287
- getFunction(nameOrSignature: 'setRecommendedUpdateDuration'): TypedContractMethod<
288
- [_duration: BigNumberish, ],
289
- [void],
290
- 'nonpayable'
291
- >;
292
- getFunction(nameOrSignature: 'updateData'): TypedContractMethod<
293
- [_data: BytesLike, ],
294
- [void],
295
- 'payable'
296
- >;
297
-
298
- getEvent(key: 'DataUpdated'): TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
299
-
300
- filters: {
301
-
302
- 'DataUpdated(bytes,uint256)': TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
303
- DataUpdated: TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
304
-
305
- };
306
- }
@@ -1,363 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"
5
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common.js"
6
-
7
-
8
- export interface OracleFactoryInterface extends Interface {
9
- getFunction(nameOrSignature: "activeOracleCount" | "config" | "deployOracle" | "getAllOracles()" | "getAllOracles(uint256,uint256)" | "getOracleInfo" | "getProviderOracles(address,uint256,uint256)" | "getProviderOracles(address)" | "oracleList" | "oracles" | "owner" | "providerOracles" | "renounceOwnership" | "setOracleDataUpdatePrice" | "setOracleStatus" | "transferOwnership" | "updateConfig"): FunctionFragment;
10
-
11
- getEvent(nameOrSignatureOrTopic: "OracleDeployed" | "OracleStatusChanged" | "OwnershipTransferred"): EventFragment;
12
-
13
- encodeFunctionData(functionFragment: 'activeOracleCount', values?: undefined): string;
14
- encodeFunctionData(functionFragment: 'config', values?: undefined): string;
15
- encodeFunctionData(functionFragment: 'deployOracle', values: [BigNumberish, BigNumberish, BytesLike]): string;
16
- encodeFunctionData(functionFragment: 'getAllOracles()', values?: undefined): string;
17
- encodeFunctionData(functionFragment: 'getAllOracles(uint256,uint256)', values: [BigNumberish, BigNumberish]): string;
18
- encodeFunctionData(functionFragment: 'getOracleInfo', values: [AddressLike]): string;
19
- encodeFunctionData(functionFragment: 'getProviderOracles(address,uint256,uint256)', values: [AddressLike, BigNumberish, BigNumberish]): string;
20
- encodeFunctionData(functionFragment: 'getProviderOracles(address)', values: [AddressLike]): string;
21
- encodeFunctionData(functionFragment: 'oracleList', values: [BigNumberish]): string;
22
- encodeFunctionData(functionFragment: 'oracles', values: [AddressLike]): string;
23
- encodeFunctionData(functionFragment: 'owner', values?: undefined): string;
24
- encodeFunctionData(functionFragment: 'providerOracles', values: [AddressLike, BigNumberish]): string;
25
- encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string;
26
- encodeFunctionData(functionFragment: 'setOracleDataUpdatePrice', values: [AddressLike, BigNumberish]): string;
27
- encodeFunctionData(functionFragment: 'setOracleStatus', values: [AddressLike, boolean]): string;
28
- encodeFunctionData(functionFragment: 'transferOwnership', values: [AddressLike]): string;
29
- encodeFunctionData(functionFragment: 'updateConfig', values: [BigNumberish, BigNumberish]): string;
30
-
31
- decodeFunctionResult(functionFragment: 'activeOracleCount', data: BytesLike): Result;
32
- decodeFunctionResult(functionFragment: 'config', data: BytesLike): Result;
33
- decodeFunctionResult(functionFragment: 'deployOracle', data: BytesLike): Result;
34
- decodeFunctionResult(functionFragment: 'getAllOracles()', data: BytesLike): Result;
35
- decodeFunctionResult(functionFragment: 'getAllOracles(uint256,uint256)', data: BytesLike): Result;
36
- decodeFunctionResult(functionFragment: 'getOracleInfo', data: BytesLike): Result;
37
- decodeFunctionResult(functionFragment: 'getProviderOracles(address,uint256,uint256)', data: BytesLike): Result;
38
- decodeFunctionResult(functionFragment: 'getProviderOracles(address)', data: BytesLike): Result;
39
- decodeFunctionResult(functionFragment: 'oracleList', data: BytesLike): Result;
40
- decodeFunctionResult(functionFragment: 'oracles', data: BytesLike): Result;
41
- decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;
42
- decodeFunctionResult(functionFragment: 'providerOracles', data: BytesLike): Result;
43
- decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result;
44
- decodeFunctionResult(functionFragment: 'setOracleDataUpdatePrice', data: BytesLike): Result;
45
- decodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;
46
- decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result;
47
- decodeFunctionResult(functionFragment: 'updateConfig', data: BytesLike): Result;
48
- }
49
-
50
-
51
- export namespace OracleDeployedEvent {
52
- export type InputTuple = [oracleAddress: AddressLike, provider: AddressLike, timestamp: BigNumberish];
53
- export type OutputTuple = [oracleAddress: string, provider: string, timestamp: bigint];
54
- export interface OutputObject {oracleAddress: string, provider: string, timestamp: bigint };
55
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>
56
- export type Filter = TypedDeferredTopicFilter<Event>
57
- export type Log = TypedEventLog<Event>
58
- export type LogDescription = TypedLogDescription<Event>
59
- }
60
-
61
-
62
-
63
- export namespace OracleStatusChangedEvent {
64
- export type InputTuple = [oracleAddress: AddressLike, provider: AddressLike, newOracleStatus: boolean, timestamp: BigNumberish];
65
- export type OutputTuple = [oracleAddress: string, provider: string, newOracleStatus: boolean, timestamp: bigint];
66
- export interface OutputObject {oracleAddress: string, provider: string, newOracleStatus: boolean, timestamp: bigint };
67
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>
68
- export type Filter = TypedDeferredTopicFilter<Event>
69
- export type Log = TypedEventLog<Event>
70
- export type LogDescription = TypedLogDescription<Event>
71
- }
72
-
73
-
74
-
75
- export namespace OwnershipTransferredEvent {
76
- export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
77
- export type OutputTuple = [previousOwner: string, newOwner: string];
78
- export interface OutputObject {previousOwner: string, newOwner: string };
79
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>
80
- export type Filter = TypedDeferredTopicFilter<Event>
81
- export type Log = TypedEventLog<Event>
82
- export type LogDescription = TypedLogDescription<Event>
83
- }
84
-
85
-
86
-
87
- export interface OracleFactory extends BaseContract {
88
-
89
- connect(runner?: ContractRunner | null): OracleFactory;
90
- waitForDeployment(): Promise<this>;
91
-
92
- interface: OracleFactoryInterface;
93
-
94
-
95
- queryFilter<TCEvent extends TypedContractEvent>(
96
- event: TCEvent,
97
- fromBlockOrBlockhash?: string | number | undefined,
98
- toBlock?: string | number | undefined,
99
- ): Promise<Array<TypedEventLog<TCEvent>>>
100
- queryFilter<TCEvent extends TypedContractEvent>(
101
- filter: TypedDeferredTopicFilter<TCEvent>,
102
- fromBlockOrBlockhash?: string | number | undefined,
103
- toBlock?: string | number | undefined
104
- ): Promise<Array<TypedEventLog<TCEvent>>>;
105
-
106
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>
107
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>
108
-
109
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>
110
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>
111
-
112
- listeners<TCEvent extends TypedContractEvent>(
113
- event: TCEvent
114
- ): Promise<Array<TypedListener<TCEvent>>>;
115
- listeners(eventName?: string): Promise<Array<Listener>>
116
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>
117
-
118
-
119
-
120
-
121
- activeOracleCount: TypedContractMethod<
122
- [],
123
- [bigint],
124
- 'view'
125
- >
126
-
127
-
128
-
129
- config: TypedContractMethod<
130
- [],
131
- [[bigint, bigint] & {oracleDeployPrice: bigint, oracleFactoryShare: bigint }],
132
- 'view'
133
- >
134
-
135
-
136
-
137
- deployOracle: TypedContractMethod<
138
- [_recommendedUpdateDuration: BigNumberish, _dataUpdatePrice: BigNumberish, _initialData: BytesLike, ],
139
- [void],
140
- 'payable'
141
- >
142
-
143
-
144
-
145
- "getAllOracles()": TypedContractMethod<
146
- [],
147
- [string[]],
148
- 'view'
149
- >
150
-
151
-
152
-
153
- "getAllOracles(uint256,uint256)": TypedContractMethod<
154
- [offset: BigNumberish, limit: BigNumberish, ],
155
- [[string[], bigint] & {total: bigint }],
156
- 'view'
157
- >
158
-
159
-
160
-
161
- getOracleInfo: TypedContractMethod<
162
- [oracleAddress: AddressLike, ],
163
- [[string, bigint, boolean] & {provider: string, createdAt: bigint, isActive: boolean }],
164
- 'view'
165
- >
166
-
167
-
168
-
169
- "getProviderOracles(address,uint256,uint256)": TypedContractMethod<
170
- [provider: AddressLike, offset: BigNumberish, limit: BigNumberish, ],
171
- [[string[], bigint] & {total: bigint }],
172
- 'view'
173
- >
174
-
175
-
176
-
177
- "getProviderOracles(address)": TypedContractMethod<
178
- [provider: AddressLike, ],
179
- [string[]],
180
- 'view'
181
- >
182
-
183
-
184
-
185
- oracleList: TypedContractMethod<
186
- [arg0: BigNumberish, ],
187
- [string],
188
- 'view'
189
- >
190
-
191
-
192
-
193
- oracles: TypedContractMethod<
194
- [arg0: AddressLike, ],
195
- [[string, bigint, boolean] & {provider: string, createdAt: bigint, isActive: boolean }],
196
- 'view'
197
- >
198
-
199
-
200
-
201
- owner: TypedContractMethod<
202
- [],
203
- [string],
204
- 'view'
205
- >
206
-
207
-
208
-
209
- providerOracles: TypedContractMethod<
210
- [arg0: AddressLike, arg1: BigNumberish, ],
211
- [string],
212
- 'view'
213
- >
214
-
215
-
216
-
217
- renounceOwnership: TypedContractMethod<
218
- [],
219
- [void],
220
- 'nonpayable'
221
- >
222
-
223
-
224
-
225
- setOracleDataUpdatePrice: TypedContractMethod<
226
- [oracleAddress: AddressLike, _dataUpdatePrice: BigNumberish, ],
227
- [void],
228
- 'nonpayable'
229
- >
230
-
231
-
232
-
233
- setOracleStatus: TypedContractMethod<
234
- [oracleAddress: AddressLike, _isActive: boolean, ],
235
- [void],
236
- 'nonpayable'
237
- >
238
-
239
-
240
-
241
- transferOwnership: TypedContractMethod<
242
- [newOwner: AddressLike, ],
243
- [void],
244
- 'nonpayable'
245
- >
246
-
247
-
248
-
249
- updateConfig: TypedContractMethod<
250
- [_oracleDeployPrice: BigNumberish, _oracleFactoryShare: BigNumberish, ],
251
- [void],
252
- 'nonpayable'
253
- >
254
-
255
-
256
-
257
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
258
-
259
- getFunction(nameOrSignature: 'activeOracleCount'): TypedContractMethod<
260
- [],
261
- [bigint],
262
- 'view'
263
- >;
264
- getFunction(nameOrSignature: 'config'): TypedContractMethod<
265
- [],
266
- [[bigint, bigint] & {oracleDeployPrice: bigint, oracleFactoryShare: bigint }],
267
- 'view'
268
- >;
269
- getFunction(nameOrSignature: 'deployOracle'): TypedContractMethod<
270
- [_recommendedUpdateDuration: BigNumberish, _dataUpdatePrice: BigNumberish, _initialData: BytesLike, ],
271
- [void],
272
- 'payable'
273
- >;
274
- getFunction(nameOrSignature: 'getAllOracles()'): TypedContractMethod<
275
- [],
276
- [string[]],
277
- 'view'
278
- >;
279
- getFunction(nameOrSignature: 'getAllOracles(uint256,uint256)'): TypedContractMethod<
280
- [offset: BigNumberish, limit: BigNumberish, ],
281
- [[string[], bigint] & {total: bigint }],
282
- 'view'
283
- >;
284
- getFunction(nameOrSignature: 'getOracleInfo'): TypedContractMethod<
285
- [oracleAddress: AddressLike, ],
286
- [[string, bigint, boolean] & {provider: string, createdAt: bigint, isActive: boolean }],
287
- 'view'
288
- >;
289
- getFunction(nameOrSignature: 'getProviderOracles(address,uint256,uint256)'): TypedContractMethod<
290
- [provider: AddressLike, offset: BigNumberish, limit: BigNumberish, ],
291
- [[string[], bigint] & {total: bigint }],
292
- 'view'
293
- >;
294
- getFunction(nameOrSignature: 'getProviderOracles(address)'): TypedContractMethod<
295
- [provider: AddressLike, ],
296
- [string[]],
297
- 'view'
298
- >;
299
- getFunction(nameOrSignature: 'oracleList'): TypedContractMethod<
300
- [arg0: BigNumberish, ],
301
- [string],
302
- 'view'
303
- >;
304
- getFunction(nameOrSignature: 'oracles'): TypedContractMethod<
305
- [arg0: AddressLike, ],
306
- [[string, bigint, boolean] & {provider: string, createdAt: bigint, isActive: boolean }],
307
- 'view'
308
- >;
309
- getFunction(nameOrSignature: 'owner'): TypedContractMethod<
310
- [],
311
- [string],
312
- 'view'
313
- >;
314
- getFunction(nameOrSignature: 'providerOracles'): TypedContractMethod<
315
- [arg0: AddressLike, arg1: BigNumberish, ],
316
- [string],
317
- 'view'
318
- >;
319
- getFunction(nameOrSignature: 'renounceOwnership'): TypedContractMethod<
320
- [],
321
- [void],
322
- 'nonpayable'
323
- >;
324
- getFunction(nameOrSignature: 'setOracleDataUpdatePrice'): TypedContractMethod<
325
- [oracleAddress: AddressLike, _dataUpdatePrice: BigNumberish, ],
326
- [void],
327
- 'nonpayable'
328
- >;
329
- getFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<
330
- [oracleAddress: AddressLike, _isActive: boolean, ],
331
- [void],
332
- 'nonpayable'
333
- >;
334
- getFunction(nameOrSignature: 'transferOwnership'): TypedContractMethod<
335
- [newOwner: AddressLike, ],
336
- [void],
337
- 'nonpayable'
338
- >;
339
- getFunction(nameOrSignature: 'updateConfig'): TypedContractMethod<
340
- [_oracleDeployPrice: BigNumberish, _oracleFactoryShare: BigNumberish, ],
341
- [void],
342
- 'nonpayable'
343
- >;
344
-
345
- getEvent(key: 'OracleDeployed'): TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;
346
- getEvent(key: 'OracleStatusChanged'): TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;
347
- getEvent(key: 'OwnershipTransferred'): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
348
-
349
- filters: {
350
-
351
- 'OracleDeployed(address,address,uint256)': TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;
352
- OracleDeployed: TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;
353
-
354
-
355
- 'OracleStatusChanged(address,address,bool,uint256)': TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;
356
- OracleStatusChanged: TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;
357
-
358
-
359
- 'OwnershipTransferred(address,address)': TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
360
- OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
361
-
362
- };
363
- }