@coset-dev/contracts 1.0.8 → 1.0.10
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/cjs/ethers-contracts/package.json +3 -0
- package/dist/esm/ethers-contracts/package.json +3 -0
- package/package.json +1 -1
- package/dist/IERC20Extended.d.ts +0 -311
- package/dist/Oracle.d.ts +0 -210
- package/dist/OracleErrors.d.ts +0 -20
- package/dist/OracleFactory.d.ts +0 -363
- package/dist/common.d.ts +0 -46
- package/dist/factories/IERC20Extended__factory.d.ts +0 -373
- package/dist/factories/OracleErrors__factory.d.ts +0 -104
- package/dist/factories/OracleFactory__factory.d.ts +0 -492
- package/dist/factories/Oracle__factory.d.ts +0 -291
- package/dist/factories/index.d.ts +0 -4
- package/dist/index.d.ts +0 -9
package/package.json
CHANGED
package/dist/IERC20Extended.d.ts
DELETED
|
@@ -1,311 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common.js";
|
|
3
|
-
export interface OracleInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "MAX_DATA_SIZE" | "dataUpdatePrice" | "factory" | "getData" | "getDataWithoutCheck" | "getProvider" | "history" | "historyCount" | "isActive" | "lastUpdateTimestamp" | "provider" | "recommendedUpdateDuration" | "setDataUpdatePrice" | "setOracleStatus" | "setRecommendedUpdateDuration" | "updateData"): FunctionFragment;
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "DataUpdated"): EventFragment;
|
|
6
|
-
encodeFunctionData(functionFragment: 'MAX_DATA_SIZE', values?: undefined): string;
|
|
7
|
-
encodeFunctionData(functionFragment: 'dataUpdatePrice', values?: undefined): string;
|
|
8
|
-
encodeFunctionData(functionFragment: 'factory', values?: undefined): string;
|
|
9
|
-
encodeFunctionData(functionFragment: 'getData', values?: undefined): string;
|
|
10
|
-
encodeFunctionData(functionFragment: 'getDataWithoutCheck', values?: undefined): string;
|
|
11
|
-
encodeFunctionData(functionFragment: 'getProvider', values?: undefined): string;
|
|
12
|
-
encodeFunctionData(functionFragment: 'history', values: [BigNumberish]): string;
|
|
13
|
-
encodeFunctionData(functionFragment: 'historyCount', values?: undefined): string;
|
|
14
|
-
encodeFunctionData(functionFragment: 'isActive', values?: undefined): string;
|
|
15
|
-
encodeFunctionData(functionFragment: 'lastUpdateTimestamp', values?: undefined): string;
|
|
16
|
-
encodeFunctionData(functionFragment: 'provider', values?: undefined): string;
|
|
17
|
-
encodeFunctionData(functionFragment: 'recommendedUpdateDuration', values?: undefined): string;
|
|
18
|
-
encodeFunctionData(functionFragment: 'setDataUpdatePrice', values: [BigNumberish]): string;
|
|
19
|
-
encodeFunctionData(functionFragment: 'setOracleStatus', values: [boolean]): string;
|
|
20
|
-
encodeFunctionData(functionFragment: 'setRecommendedUpdateDuration', values: [BigNumberish]): string;
|
|
21
|
-
encodeFunctionData(functionFragment: 'updateData', values: [BytesLike]): string;
|
|
22
|
-
decodeFunctionResult(functionFragment: 'MAX_DATA_SIZE', data: BytesLike): Result;
|
|
23
|
-
decodeFunctionResult(functionFragment: 'dataUpdatePrice', data: BytesLike): Result;
|
|
24
|
-
decodeFunctionResult(functionFragment: 'factory', data: BytesLike): Result;
|
|
25
|
-
decodeFunctionResult(functionFragment: 'getData', data: BytesLike): Result;
|
|
26
|
-
decodeFunctionResult(functionFragment: 'getDataWithoutCheck', data: BytesLike): Result;
|
|
27
|
-
decodeFunctionResult(functionFragment: 'getProvider', data: BytesLike): Result;
|
|
28
|
-
decodeFunctionResult(functionFragment: 'history', data: BytesLike): Result;
|
|
29
|
-
decodeFunctionResult(functionFragment: 'historyCount', data: BytesLike): Result;
|
|
30
|
-
decodeFunctionResult(functionFragment: 'isActive', data: BytesLike): Result;
|
|
31
|
-
decodeFunctionResult(functionFragment: 'lastUpdateTimestamp', data: BytesLike): Result;
|
|
32
|
-
decodeFunctionResult(functionFragment: 'provider', data: BytesLike): Result;
|
|
33
|
-
decodeFunctionResult(functionFragment: 'recommendedUpdateDuration', data: BytesLike): Result;
|
|
34
|
-
decodeFunctionResult(functionFragment: 'setDataUpdatePrice', data: BytesLike): Result;
|
|
35
|
-
decodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;
|
|
36
|
-
decodeFunctionResult(functionFragment: 'setRecommendedUpdateDuration', data: BytesLike): Result;
|
|
37
|
-
decodeFunctionResult(functionFragment: 'updateData', data: BytesLike): Result;
|
|
38
|
-
}
|
|
39
|
-
export declare namespace DataUpdatedEvent {
|
|
40
|
-
type InputTuple = [data: BytesLike, timestamp: BigNumberish];
|
|
41
|
-
type OutputTuple = [data: string, timestamp: bigint];
|
|
42
|
-
interface OutputObject {
|
|
43
|
-
data: string;
|
|
44
|
-
timestamp: bigint;
|
|
45
|
-
}
|
|
46
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
47
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
48
|
-
type Log = TypedEventLog<Event>;
|
|
49
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
50
|
-
}
|
|
51
|
-
export interface Oracle extends BaseContract {
|
|
52
|
-
connect(runner?: ContractRunner | null): Oracle;
|
|
53
|
-
waitForDeployment(): Promise<this>;
|
|
54
|
-
interface: OracleInterface;
|
|
55
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
56
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
57
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
58
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
59
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
60
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
61
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
62
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
63
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
64
|
-
MAX_DATA_SIZE: TypedContractMethod<[
|
|
65
|
-
], [
|
|
66
|
-
bigint
|
|
67
|
-
], 'view'>;
|
|
68
|
-
dataUpdatePrice: TypedContractMethod<[
|
|
69
|
-
], [
|
|
70
|
-
bigint
|
|
71
|
-
], 'view'>;
|
|
72
|
-
factory: TypedContractMethod<[
|
|
73
|
-
], [
|
|
74
|
-
string
|
|
75
|
-
], 'view'>;
|
|
76
|
-
getData: TypedContractMethod<[
|
|
77
|
-
], [
|
|
78
|
-
string
|
|
79
|
-
], 'view'>;
|
|
80
|
-
getDataWithoutCheck: TypedContractMethod<[
|
|
81
|
-
], [
|
|
82
|
-
string
|
|
83
|
-
], 'view'>;
|
|
84
|
-
getProvider: TypedContractMethod<[
|
|
85
|
-
], [
|
|
86
|
-
string
|
|
87
|
-
], 'view'>;
|
|
88
|
-
history: TypedContractMethod<[
|
|
89
|
-
arg0: BigNumberish
|
|
90
|
-
], [
|
|
91
|
-
[string, bigint] & {
|
|
92
|
-
data: string;
|
|
93
|
-
timestamp: bigint;
|
|
94
|
-
}
|
|
95
|
-
], 'view'>;
|
|
96
|
-
historyCount: TypedContractMethod<[
|
|
97
|
-
], [
|
|
98
|
-
bigint
|
|
99
|
-
], 'view'>;
|
|
100
|
-
isActive: TypedContractMethod<[
|
|
101
|
-
], [
|
|
102
|
-
boolean
|
|
103
|
-
], 'view'>;
|
|
104
|
-
lastUpdateTimestamp: TypedContractMethod<[
|
|
105
|
-
], [
|
|
106
|
-
bigint
|
|
107
|
-
], 'view'>;
|
|
108
|
-
recommendedUpdateDuration: TypedContractMethod<[
|
|
109
|
-
], [
|
|
110
|
-
bigint
|
|
111
|
-
], 'view'>;
|
|
112
|
-
setDataUpdatePrice: TypedContractMethod<[
|
|
113
|
-
_price: BigNumberish
|
|
114
|
-
], [
|
|
115
|
-
void
|
|
116
|
-
], 'nonpayable'>;
|
|
117
|
-
setOracleStatus: TypedContractMethod<[
|
|
118
|
-
_isActive: boolean
|
|
119
|
-
], [
|
|
120
|
-
void
|
|
121
|
-
], 'nonpayable'>;
|
|
122
|
-
setRecommendedUpdateDuration: TypedContractMethod<[
|
|
123
|
-
_duration: BigNumberish
|
|
124
|
-
], [
|
|
125
|
-
void
|
|
126
|
-
], 'nonpayable'>;
|
|
127
|
-
updateData: TypedContractMethod<[
|
|
128
|
-
_data: BytesLike
|
|
129
|
-
], [
|
|
130
|
-
void
|
|
131
|
-
], 'nonpayable'>;
|
|
132
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
133
|
-
getFunction(nameOrSignature: 'MAX_DATA_SIZE'): TypedContractMethod<[
|
|
134
|
-
], [
|
|
135
|
-
bigint
|
|
136
|
-
], 'view'>;
|
|
137
|
-
getFunction(nameOrSignature: 'dataUpdatePrice'): TypedContractMethod<[
|
|
138
|
-
], [
|
|
139
|
-
bigint
|
|
140
|
-
], 'view'>;
|
|
141
|
-
getFunction(nameOrSignature: 'factory'): TypedContractMethod<[
|
|
142
|
-
], [
|
|
143
|
-
string
|
|
144
|
-
], 'view'>;
|
|
145
|
-
getFunction(nameOrSignature: 'getData'): TypedContractMethod<[
|
|
146
|
-
], [
|
|
147
|
-
string
|
|
148
|
-
], 'view'>;
|
|
149
|
-
getFunction(nameOrSignature: 'getDataWithoutCheck'): TypedContractMethod<[
|
|
150
|
-
], [
|
|
151
|
-
string
|
|
152
|
-
], 'view'>;
|
|
153
|
-
getFunction(nameOrSignature: 'getProvider'): TypedContractMethod<[
|
|
154
|
-
], [
|
|
155
|
-
string
|
|
156
|
-
], 'view'>;
|
|
157
|
-
getFunction(nameOrSignature: 'history'): TypedContractMethod<[
|
|
158
|
-
arg0: BigNumberish
|
|
159
|
-
], [
|
|
160
|
-
[string, bigint] & {
|
|
161
|
-
data: string;
|
|
162
|
-
timestamp: bigint;
|
|
163
|
-
}
|
|
164
|
-
], 'view'>;
|
|
165
|
-
getFunction(nameOrSignature: 'historyCount'): TypedContractMethod<[
|
|
166
|
-
], [
|
|
167
|
-
bigint
|
|
168
|
-
], 'view'>;
|
|
169
|
-
getFunction(nameOrSignature: 'isActive'): TypedContractMethod<[
|
|
170
|
-
], [
|
|
171
|
-
boolean
|
|
172
|
-
], 'view'>;
|
|
173
|
-
getFunction(nameOrSignature: 'lastUpdateTimestamp'): TypedContractMethod<[
|
|
174
|
-
], [
|
|
175
|
-
bigint
|
|
176
|
-
], 'view'>;
|
|
177
|
-
getFunction(nameOrSignature: 'provider'): TypedContractMethod<[
|
|
178
|
-
], [
|
|
179
|
-
string
|
|
180
|
-
], 'view'>;
|
|
181
|
-
getFunction(nameOrSignature: 'recommendedUpdateDuration'): TypedContractMethod<[
|
|
182
|
-
], [
|
|
183
|
-
bigint
|
|
184
|
-
], 'view'>;
|
|
185
|
-
getFunction(nameOrSignature: 'setDataUpdatePrice'): TypedContractMethod<[
|
|
186
|
-
_price: BigNumberish
|
|
187
|
-
], [
|
|
188
|
-
void
|
|
189
|
-
], 'nonpayable'>;
|
|
190
|
-
getFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<[
|
|
191
|
-
_isActive: boolean
|
|
192
|
-
], [
|
|
193
|
-
void
|
|
194
|
-
], 'nonpayable'>;
|
|
195
|
-
getFunction(nameOrSignature: 'setRecommendedUpdateDuration'): TypedContractMethod<[
|
|
196
|
-
_duration: BigNumberish
|
|
197
|
-
], [
|
|
198
|
-
void
|
|
199
|
-
], 'nonpayable'>;
|
|
200
|
-
getFunction(nameOrSignature: 'updateData'): TypedContractMethod<[
|
|
201
|
-
_data: BytesLike
|
|
202
|
-
], [
|
|
203
|
-
void
|
|
204
|
-
], 'nonpayable'>;
|
|
205
|
-
getEvent(key: 'DataUpdated'): TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
|
|
206
|
-
filters: {
|
|
207
|
-
'DataUpdated(bytes,uint256)': TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
|
|
208
|
-
DataUpdated: TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
|
|
209
|
-
};
|
|
210
|
-
}
|
package/dist/OracleErrors.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "./common.js";
|
|
3
|
-
export interface OracleErrorsInterface extends Interface {
|
|
4
|
-
}
|
|
5
|
-
export interface OracleErrors extends BaseContract {
|
|
6
|
-
connect(runner?: ContractRunner | null): OracleErrors;
|
|
7
|
-
waitForDeployment(): Promise<this>;
|
|
8
|
-
interface: OracleErrorsInterface;
|
|
9
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
12
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
13
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
14
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
16
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
17
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
18
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
19
|
-
filters: {};
|
|
20
|
-
}
|