@coset-dev/contracts 1.0.2 → 1.0.4
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/Oracle.d.ts +210 -0
- package/dist/OracleFactory.d.ts +305 -0
- package/dist/OracleUtils.d.ts +20 -0
- package/dist/cjs/ethers-contracts/Oracle.js +2 -0
- package/dist/cjs/ethers-contracts/Oracle.js.map +7 -0
- package/dist/cjs/ethers-contracts/OracleFactory.js +2 -0
- package/dist/cjs/ethers-contracts/OracleFactory.js.map +7 -0
- package/dist/cjs/ethers-contracts/OracleUtils.js +2 -0
- package/dist/cjs/ethers-contracts/OracleUtils.js.map +7 -0
- package/dist/cjs/ethers-contracts/common.js +2 -0
- package/dist/cjs/ethers-contracts/common.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/OracleFactory__factory.js +2 -0
- package/dist/cjs/ethers-contracts/factories/OracleFactory__factory.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/OracleUtils__factory.js +2 -0
- package/dist/cjs/ethers-contracts/factories/OracleUtils__factory.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/Oracle__factory.js +2 -0
- package/dist/cjs/ethers-contracts/factories/Oracle__factory.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/index.js +2 -0
- package/dist/cjs/ethers-contracts/factories/index.js.map +7 -0
- package/dist/cjs/ethers-contracts/index.js +2 -0
- package/dist/cjs/ethers-contracts/index.js.map +7 -0
- package/dist/common.d.ts +46 -0
- package/dist/esm/ethers-contracts/Oracle.js +2 -0
- package/dist/esm/ethers-contracts/Oracle.js.map +7 -0
- package/dist/esm/ethers-contracts/OracleFactory.js +2 -0
- package/dist/esm/ethers-contracts/OracleFactory.js.map +7 -0
- package/dist/esm/ethers-contracts/OracleUtils.js +1 -0
- package/dist/esm/ethers-contracts/OracleUtils.js.map +7 -0
- package/dist/esm/ethers-contracts/common.js +1 -0
- package/dist/esm/ethers-contracts/common.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/OracleFactory__factory.js +2 -0
- package/dist/esm/ethers-contracts/factories/OracleFactory__factory.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/OracleUtils__factory.js +2 -0
- package/dist/esm/ethers-contracts/factories/OracleUtils__factory.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/Oracle__factory.js +2 -0
- package/dist/esm/ethers-contracts/factories/Oracle__factory.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/index.js +2 -0
- package/dist/esm/ethers-contracts/factories/index.js.map +7 -0
- package/dist/esm/ethers-contracts/index.js +2 -0
- package/dist/esm/ethers-contracts/index.js.map +7 -0
- package/dist/factories/OracleFactory__factory.d.ts +411 -0
- package/dist/factories/OracleUtils__factory.d.ts +108 -0
- package/dist/factories/Oracle__factory.d.ts +323 -0
- package/{types/ethers-contracts/factories/index.ts → dist/factories/index.d.ts} +1 -4
- package/{types/ethers-contracts/index.ts → dist/index.d.ts} +1 -4
- package/package.json +43 -18
- package/types/ethers-contracts/Oracle.ts +0 -306
- package/types/ethers-contracts/OracleFactory.ts +0 -363
- package/types/ethers-contracts/OracleUtils.ts +0 -64
- package/types/ethers-contracts/common.ts +0 -92
- package/types/ethers-contracts/factories/OracleFactory__factory.ts +0 -578
- package/types/ethers-contracts/factories/OracleUtils__factory.ts +0 -170
- package/types/ethers-contracts/factories/Oracle__factory.ts +0 -449
- /package/{types/ethers-contracts → dist}/hardhat.d.ts +0 -0
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import type { Addressable } from "ethers";
|
|
5
|
-
import { Contract, ContractFactory, ContractTransactionResponse, Interface } from "ethers"
|
|
6
|
-
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"
|
|
7
|
-
import type { NonPayableOverrides } from "../common.js"
|
|
8
|
-
import type { OracleUtils, OracleUtilsInterface } from "../OracleUtils.js";
|
|
9
|
-
|
|
10
|
-
const _abi = [
|
|
11
|
-
{
|
|
12
|
-
"inputs": [],
|
|
13
|
-
"name": "AmountTransferFailed",
|
|
14
|
-
"type": "error"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"inputs": [
|
|
18
|
-
{
|
|
19
|
-
"internalType": "uint256",
|
|
20
|
-
"name": "providedSize",
|
|
21
|
-
"type": "uint256"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"internalType": "uint256",
|
|
25
|
-
"name": "maxSize",
|
|
26
|
-
"type": "uint256"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"name": "DataSizeExceedsLimit",
|
|
30
|
-
"type": "error"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"inputs": [
|
|
34
|
-
{
|
|
35
|
-
"internalType": "uint256",
|
|
36
|
-
"name": "required",
|
|
37
|
-
"type": "uint256"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"internalType": "uint256",
|
|
41
|
-
"name": "provided",
|
|
42
|
-
"type": "uint256"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"name": "ExcessivePayment",
|
|
46
|
-
"type": "error"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"inputs": [],
|
|
50
|
-
"name": "FactoryShouldBeContract",
|
|
51
|
-
"type": "error"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"inputs": [
|
|
55
|
-
{
|
|
56
|
-
"internalType": "uint256",
|
|
57
|
-
"name": "required",
|
|
58
|
-
"type": "uint256"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"internalType": "uint256",
|
|
62
|
-
"name": "provided",
|
|
63
|
-
"type": "uint256"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"name": "InsufficientPayment",
|
|
67
|
-
"type": "error"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"inputs": [],
|
|
71
|
-
"name": "NoStatusChange",
|
|
72
|
-
"type": "error"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"inputs": [],
|
|
76
|
-
"name": "OnlyFactoryCanCall",
|
|
77
|
-
"type": "error"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"inputs": [],
|
|
81
|
-
"name": "OnlyProviderCanCall",
|
|
82
|
-
"type": "error"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"inputs": [],
|
|
86
|
-
"name": "OracleIsNotActive",
|
|
87
|
-
"type": "error"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"inputs": [
|
|
91
|
-
{
|
|
92
|
-
"internalType": "address",
|
|
93
|
-
"name": "oracleAddress",
|
|
94
|
-
"type": "address"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"name": "OracleIsNotExist",
|
|
98
|
-
"type": "error"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"inputs": [],
|
|
102
|
-
"name": "ProviderShouldBeEOA",
|
|
103
|
-
"type": "error"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"inputs": [],
|
|
107
|
-
"name": "YouCantSetEmptyData",
|
|
108
|
-
"type": "error"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"inputs": [],
|
|
112
|
-
"name": "ZeroAddressProvided",
|
|
113
|
-
"type": "error"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"inputs": [],
|
|
117
|
-
"name": "ZeroAmountProvided",
|
|
118
|
-
"type": "error"
|
|
119
|
-
}
|
|
120
|
-
] as const;
|
|
121
|
-
|
|
122
|
-
const _bytecode = "0x6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220068430fef273be82b41c33c89908fb7faf9eba7286c56755f5624366da22888064736f6c634300081e0033";
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
type OracleUtilsConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
126
|
-
|
|
127
|
-
const isSuperArgs = (xs: OracleUtilsConstructorParams): xs is ConstructorParameters<typeof ContractFactory> =>
|
|
128
|
-
xs.length > 1
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
export class OracleUtils__factory extends ContractFactory {
|
|
132
|
-
|
|
133
|
-
constructor(...args: OracleUtilsConstructorParams) {
|
|
134
|
-
if (isSuperArgs(args)) {
|
|
135
|
-
super(...args);
|
|
136
|
-
} else {
|
|
137
|
-
super(_abi, _bytecode, args[0]);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
override getDeployTransaction(overrides?: NonPayableOverrides & { from?: string }): Promise<ContractDeployTransaction> {
|
|
143
|
-
return super.getDeployTransaction(overrides || {});
|
|
144
|
-
};
|
|
145
|
-
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
|
146
|
-
return super.deploy(overrides || {}) as Promise<OracleUtils & {
|
|
147
|
-
deploymentTransaction(): ContractTransactionResponse;
|
|
148
|
-
}>;
|
|
149
|
-
}
|
|
150
|
-
override connect(runner: ContractRunner | null): OracleUtils__factory {
|
|
151
|
-
return super.connect(runner) as OracleUtils__factory;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
static readonly bytecode = _bytecode;
|
|
156
|
-
static readonly abi = _abi;
|
|
157
|
-
static createInterface(): OracleUtilsInterface {
|
|
158
|
-
return new Interface(_abi) as OracleUtilsInterface;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
override attach(address: string | Addressable): OracleUtils {
|
|
162
|
-
return super.attach(address) as OracleUtils;
|
|
163
|
-
}
|
|
164
|
-
static connect(address: string, runner?: ContractRunner | null): OracleUtils {
|
|
165
|
-
return new Contract(address, _abi, runner) as unknown as OracleUtils;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import type { Addressable } from "ethers";
|
|
5
|
-
import { Contract, ContractFactory, ContractTransactionResponse, Interface } from "ethers"
|
|
6
|
-
import type { Signer, BytesLike, BigNumberish, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers"
|
|
7
|
-
import type { NonPayableOverrides } from "../common.js"
|
|
8
|
-
import type { Oracle, OracleInterface } from "../Oracle.js";
|
|
9
|
-
|
|
10
|
-
const _abi = [
|
|
11
|
-
{
|
|
12
|
-
"inputs": [
|
|
13
|
-
{
|
|
14
|
-
"internalType": "uint256",
|
|
15
|
-
"name": "_recommendedUpdateDuration",
|
|
16
|
-
"type": "uint256"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"internalType": "uint256",
|
|
20
|
-
"name": "_dataUpdatePrice",
|
|
21
|
-
"type": "uint256"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"internalType": "bytes",
|
|
25
|
-
"name": "_initialData",
|
|
26
|
-
"type": "bytes"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"internalType": "address",
|
|
30
|
-
"name": "_provider",
|
|
31
|
-
"type": "address"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"internalType": "address",
|
|
35
|
-
"name": "_factory",
|
|
36
|
-
"type": "address"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"stateMutability": "nonpayable",
|
|
40
|
-
"type": "constructor"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"inputs": [],
|
|
44
|
-
"name": "AmountTransferFailed",
|
|
45
|
-
"type": "error"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"inputs": [
|
|
49
|
-
{
|
|
50
|
-
"internalType": "uint256",
|
|
51
|
-
"name": "lastUpdateTimestamp",
|
|
52
|
-
"type": "uint256"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"internalType": "uint256",
|
|
56
|
-
"name": "recommendedUpdateDuration",
|
|
57
|
-
"type": "uint256"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"name": "DataNotUpdatedRecently",
|
|
61
|
-
"type": "error"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"inputs": [
|
|
65
|
-
{
|
|
66
|
-
"internalType": "uint256",
|
|
67
|
-
"name": "providedSize",
|
|
68
|
-
"type": "uint256"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"internalType": "uint256",
|
|
72
|
-
"name": "maxSize",
|
|
73
|
-
"type": "uint256"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"name": "DataSizeExceedsLimit",
|
|
77
|
-
"type": "error"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"inputs": [
|
|
81
|
-
{
|
|
82
|
-
"internalType": "uint256",
|
|
83
|
-
"name": "required",
|
|
84
|
-
"type": "uint256"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"internalType": "uint256",
|
|
88
|
-
"name": "provided",
|
|
89
|
-
"type": "uint256"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"name": "ExcessivePayment",
|
|
93
|
-
"type": "error"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"inputs": [],
|
|
97
|
-
"name": "FactoryShouldBeContract",
|
|
98
|
-
"type": "error"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"inputs": [
|
|
102
|
-
{
|
|
103
|
-
"internalType": "uint256",
|
|
104
|
-
"name": "required",
|
|
105
|
-
"type": "uint256"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"internalType": "uint256",
|
|
109
|
-
"name": "provided",
|
|
110
|
-
"type": "uint256"
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"name": "InsufficientPayment",
|
|
114
|
-
"type": "error"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"inputs": [],
|
|
118
|
-
"name": "NoDataAvailable",
|
|
119
|
-
"type": "error"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"inputs": [],
|
|
123
|
-
"name": "OnlyFactoryCanCall",
|
|
124
|
-
"type": "error"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"inputs": [],
|
|
128
|
-
"name": "OnlyProviderCanCall",
|
|
129
|
-
"type": "error"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"inputs": [],
|
|
133
|
-
"name": "OracleIsNotActive",
|
|
134
|
-
"type": "error"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"inputs": [],
|
|
138
|
-
"name": "ProviderShouldBeEOA",
|
|
139
|
-
"type": "error"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"inputs": [],
|
|
143
|
-
"name": "ReentrancyGuardReentrantCall",
|
|
144
|
-
"type": "error"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [],
|
|
148
|
-
"name": "YouCantSetEmptyData",
|
|
149
|
-
"type": "error"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"inputs": [],
|
|
153
|
-
"name": "ZeroAddressProvided",
|
|
154
|
-
"type": "error"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"inputs": [],
|
|
158
|
-
"name": "ZeroAmountProvided",
|
|
159
|
-
"type": "error"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"anonymous": false,
|
|
163
|
-
"inputs": [
|
|
164
|
-
{
|
|
165
|
-
"indexed": false,
|
|
166
|
-
"internalType": "bytes",
|
|
167
|
-
"name": "data",
|
|
168
|
-
"type": "bytes"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"indexed": false,
|
|
172
|
-
"internalType": "uint256",
|
|
173
|
-
"name": "timestamp",
|
|
174
|
-
"type": "uint256"
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
"name": "DataUpdated",
|
|
178
|
-
"type": "event"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"inputs": [],
|
|
182
|
-
"name": "MAX_DATA_SIZE",
|
|
183
|
-
"outputs": [
|
|
184
|
-
{
|
|
185
|
-
"internalType": "uint256",
|
|
186
|
-
"name": "",
|
|
187
|
-
"type": "uint256"
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
"stateMutability": "view",
|
|
191
|
-
"type": "function"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"inputs": [],
|
|
195
|
-
"name": "dataUpdatePrice",
|
|
196
|
-
"outputs": [
|
|
197
|
-
{
|
|
198
|
-
"internalType": "uint256",
|
|
199
|
-
"name": "",
|
|
200
|
-
"type": "uint256"
|
|
201
|
-
}
|
|
202
|
-
],
|
|
203
|
-
"stateMutability": "view",
|
|
204
|
-
"type": "function"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"inputs": [],
|
|
208
|
-
"name": "factory",
|
|
209
|
-
"outputs": [
|
|
210
|
-
{
|
|
211
|
-
"internalType": "contract OracleFactory",
|
|
212
|
-
"name": "",
|
|
213
|
-
"type": "address"
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
"stateMutability": "view",
|
|
217
|
-
"type": "function"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"inputs": [],
|
|
221
|
-
"name": "getData",
|
|
222
|
-
"outputs": [
|
|
223
|
-
{
|
|
224
|
-
"internalType": "bytes",
|
|
225
|
-
"name": "",
|
|
226
|
-
"type": "bytes"
|
|
227
|
-
}
|
|
228
|
-
],
|
|
229
|
-
"stateMutability": "view",
|
|
230
|
-
"type": "function"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"inputs": [],
|
|
234
|
-
"name": "getDataWithoutCheck",
|
|
235
|
-
"outputs": [
|
|
236
|
-
{
|
|
237
|
-
"internalType": "bytes",
|
|
238
|
-
"name": "",
|
|
239
|
-
"type": "bytes"
|
|
240
|
-
}
|
|
241
|
-
],
|
|
242
|
-
"stateMutability": "view",
|
|
243
|
-
"type": "function"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"inputs": [],
|
|
247
|
-
"name": "getProvider",
|
|
248
|
-
"outputs": [
|
|
249
|
-
{
|
|
250
|
-
"internalType": "address",
|
|
251
|
-
"name": "",
|
|
252
|
-
"type": "address"
|
|
253
|
-
}
|
|
254
|
-
],
|
|
255
|
-
"stateMutability": "view",
|
|
256
|
-
"type": "function"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"inputs": [
|
|
260
|
-
{
|
|
261
|
-
"internalType": "uint256",
|
|
262
|
-
"name": "",
|
|
263
|
-
"type": "uint256"
|
|
264
|
-
}
|
|
265
|
-
],
|
|
266
|
-
"name": "history",
|
|
267
|
-
"outputs": [
|
|
268
|
-
{
|
|
269
|
-
"internalType": "bytes",
|
|
270
|
-
"name": "data",
|
|
271
|
-
"type": "bytes"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"internalType": "uint256",
|
|
275
|
-
"name": "timestamp",
|
|
276
|
-
"type": "uint256"
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
"stateMutability": "view",
|
|
280
|
-
"type": "function"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"inputs": [],
|
|
284
|
-
"name": "historyCount",
|
|
285
|
-
"outputs": [
|
|
286
|
-
{
|
|
287
|
-
"internalType": "uint256",
|
|
288
|
-
"name": "",
|
|
289
|
-
"type": "uint256"
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
"stateMutability": "view",
|
|
293
|
-
"type": "function"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"inputs": [],
|
|
297
|
-
"name": "isActive",
|
|
298
|
-
"outputs": [
|
|
299
|
-
{
|
|
300
|
-
"internalType": "bool",
|
|
301
|
-
"name": "",
|
|
302
|
-
"type": "bool"
|
|
303
|
-
}
|
|
304
|
-
],
|
|
305
|
-
"stateMutability": "view",
|
|
306
|
-
"type": "function"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"inputs": [],
|
|
310
|
-
"name": "lastUpdateTimestamp",
|
|
311
|
-
"outputs": [
|
|
312
|
-
{
|
|
313
|
-
"internalType": "uint256",
|
|
314
|
-
"name": "",
|
|
315
|
-
"type": "uint256"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"stateMutability": "view",
|
|
319
|
-
"type": "function"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"inputs": [],
|
|
323
|
-
"name": "provider",
|
|
324
|
-
"outputs": [
|
|
325
|
-
{
|
|
326
|
-
"internalType": "address",
|
|
327
|
-
"name": "",
|
|
328
|
-
"type": "address"
|
|
329
|
-
}
|
|
330
|
-
],
|
|
331
|
-
"stateMutability": "view",
|
|
332
|
-
"type": "function"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"inputs": [],
|
|
336
|
-
"name": "recommendedUpdateDuration",
|
|
337
|
-
"outputs": [
|
|
338
|
-
{
|
|
339
|
-
"internalType": "uint256",
|
|
340
|
-
"name": "",
|
|
341
|
-
"type": "uint256"
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
"stateMutability": "view",
|
|
345
|
-
"type": "function"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"inputs": [
|
|
349
|
-
{
|
|
350
|
-
"internalType": "uint256",
|
|
351
|
-
"name": "_price",
|
|
352
|
-
"type": "uint256"
|
|
353
|
-
}
|
|
354
|
-
],
|
|
355
|
-
"name": "setDataUpdatePrice",
|
|
356
|
-
"outputs": [],
|
|
357
|
-
"stateMutability": "nonpayable",
|
|
358
|
-
"type": "function"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"inputs": [
|
|
362
|
-
{
|
|
363
|
-
"internalType": "bool",
|
|
364
|
-
"name": "_isActive",
|
|
365
|
-
"type": "bool"
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
"name": "setOracleStatus",
|
|
369
|
-
"outputs": [],
|
|
370
|
-
"stateMutability": "nonpayable",
|
|
371
|
-
"type": "function"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"inputs": [
|
|
375
|
-
{
|
|
376
|
-
"internalType": "uint256",
|
|
377
|
-
"name": "_duration",
|
|
378
|
-
"type": "uint256"
|
|
379
|
-
}
|
|
380
|
-
],
|
|
381
|
-
"name": "setRecommendedUpdateDuration",
|
|
382
|
-
"outputs": [],
|
|
383
|
-
"stateMutability": "nonpayable",
|
|
384
|
-
"type": "function"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
"inputs": [
|
|
388
|
-
{
|
|
389
|
-
"internalType": "bytes",
|
|
390
|
-
"name": "_data",
|
|
391
|
-
"type": "bytes"
|
|
392
|
-
}
|
|
393
|
-
],
|
|
394
|
-
"name": "updateData",
|
|
395
|
-
"outputs": [],
|
|
396
|
-
"stateMutability": "payable",
|
|
397
|
-
"type": "function"
|
|
398
|
-
}
|
|
399
|
-
] as const;
|
|
400
|
-
|
|
401
|
-
const _bytecode = "0x60c06040526001805f6101000a81548160ff021916908315150217905550348015610028575f5ffd5b50604051612299380380612299833981810160405281019061004a919061052f565b60015f819055505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806100b657505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156100ed576040517f8474420100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff163b1461013d576040517f7305bdbd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff163b0361018d576040517f14b9535000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505083600381905550426004819055508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508460058190555061021c8360045461022660201b60201c565b50505050506109ff565b5f825103610260576040517f23e6b99500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611400825111156102ad5781516114006040517f711f64300000000000000000000000000000000000000000000000000000000081526004016102a49291906105d1565b60405180910390fd5b604051806040016040528083815260200182815250600660ce54606481106102d8576102d76105f8565b5b600202015f820151815f0190816102ef919061082c565b50602082015181600101559050506064600160ce5461030e9190610928565b6103189190610988565b60ce81905550606460cf5410156103415760cf5f81548092919061033b906109b8565b91905055505b8160029081610350919061082c565b505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f819050919050565b61037881610366565b8114610382575f5ffd5b50565b5f815190506103938161036f565b92915050565b5f5ffd5b5f5ffd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6103e7826103a1565b810181811067ffffffffffffffff82111715610406576104056103b1565b5b80604052505050565b5f610418610355565b905061042482826103de565b919050565b5f67ffffffffffffffff821115610443576104426103b1565b5b61044c826103a1565b9050602081019050919050565b8281835e5f83830152505050565b5f61047961047484610429565b61040f565b9050828152602081018484840111156104955761049461039d565b5b6104a0848285610459565b509392505050565b5f82601f8301126104bc576104bb610399565b5b81516104cc848260208601610467565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6104fe826104d5565b9050919050565b61050e816104f4565b8114610518575f5ffd5b50565b5f8151905061052981610505565b92915050565b5f5f5f5f5f60a086880312156105485761054761035e565b5b5f61055588828901610385565b955050602061056688828901610385565b945050604086015167ffffffffffffffff81111561058757610586610362565b5b610593888289016104a8565b93505060606105a48882890161051b565b92505060806105b58882890161051b565b9150509295509295909350565b6105cb81610366565b82525050565b5f6040820190506105e45f8301856105c2565b6105f160208301846105c2565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061067357607f821691505b6020821081036106865761068561062f565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026106e87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826106ad565b6106f286836106ad565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61072d61072861072384610366565b61070a565b610366565b9050919050565b5f819050919050565b61074683610713565b61075a61075282610734565b8484546106b9565b825550505050565b5f5f905090565b610771610762565b61077c81848461073d565b505050565b5b8181101561079f576107945f82610769565b600181019050610782565b5050565b601f8211156107e4576107b58161068c565b6107be8461069e565b810160208510156107cd578190505b6107e16107d98561069e565b830182610781565b50505b505050565b5f82821c905092915050565b5f6108045f19846008026107e9565b1980831691505092915050565b5f61081c83836107f5565b9150826002028217905092915050565b61083582610625565b67ffffffffffffffff81111561084e5761084d6103b1565b5b610858825461065c565b6108638282856107a3565b5f60209050601f831160018114610894575f8415610882578287015190505b61088c8582610811565b8655506108f3565b601f1984166108a28661068c565b5f5b828110156108c9578489015182556001820191506020850194506020810190506108a4565b868310156108e657848901516108e2601f8916826107f5565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61093282610366565b915061093d83610366565b9250828201905080821115610955576109546108fb565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61099282610366565b915061099d83610366565b9250826109ad576109ac61095b565b5b828206905092915050565b5f6109c282610366565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036109f4576109f36108fb565b5b600182019050919050565b60805160a051611848610a515f395f81816103bb0152818161054f01528181610853015281816109ec0152610a7a01525f818161039701528181610529015281816106f101526107cd01526118485ff3fe6080604052600436106100f2575f3560e01c80633bc5de3011610089578063a7a38f0b11610058578063a7a38f0b146102ea578063b334b63414610327578063bb4013d31461034f578063c45a01551461036b576100f2565b80633bc5de3014610244578063483d45bd1461026e5780634d4061ec146102985780639c5f9481146102c0576100f2565b806322fce66f116100c557806322fce66f1461019c5780632c20dc89146101c65780632fbf8d2a146101f05780633a9c9ffc1461021a576100f2565b8063085d4883146100f6578063118d93301461012057806314bcec9f1461014857806322f3e2d414610172575b5f5ffd5b348015610101575f5ffd5b5061010a610395565b6040516101179190610e70565b60405180910390f35b34801561012b575f5ffd5b5061014660048036038101906101419190610ec4565b6103b9565b005b348015610153575f5ffd5b5061015c610448565b6040516101699190610efe565b60405180910390f35b34801561017d575f5ffd5b5061018661044e565b6040516101939190610f31565b60405180910390f35b3480156101a7575f5ffd5b506101b0610460565b6040516101bd9190610efe565b60405180910390f35b3480156101d1575f5ffd5b506101da610466565b6040516101e79190610efe565b60405180910390f35b3480156101fb575f5ffd5b5061020461046c565b6040516102119190610efe565b60405180910390f35b348015610225575f5ffd5b5061022e610472565b60405161023b9190610efe565b60405180910390f35b34801561024f575f5ffd5b50610258610478565b6040516102659190610fba565b60405180910390f35b348015610279575f5ffd5b50610282610526565b60405161028f9190610e70565b60405180910390f35b3480156102a3575f5ffd5b506102be60048036038101906102b99190611004565b61054d565b005b3480156102cb575f5ffd5b506102d46105ee565b6040516102e19190610fba565b60405180910390f35b3480156102f5575f5ffd5b50610310600480360381019061030b9190610ec4565b610642565b60405161031e92919061102f565b60405180910390f35b348015610332575f5ffd5b5061034d60048036038101906103489190610ec4565b6106ef565b005b610369600480360381019061036491906110be565b61077e565b005b348015610376575f5ffd5b5061037f610a78565b60405161038c9190611164565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461043e576040517f0234e5ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060038190555050565b60045481565b60015f9054906101000a900460ff1681565b61140081565b60035481565b60055481565b60cf5481565b606060015f9054906101000a900460ff166104bf576040517fe8eb59c800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600554600454426104d091906111aa565b1115610519576004546005546040517f72fc46a70000000000000000000000000000000000000000000000000000000081526004016105109291906111dd565b60405180910390fd5b610521610a9c565b905090565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105d2576040517f0234e5ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060015f6101000a81548160ff02191690831515021790555050565b606060015f9054906101000a900460ff16610635576040517fe8eb59c800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61063d610a9c565b905090565b60068160648110610651575f80fd5b600202015f91509050805f01805461066890611231565b80601f016020809104026020016040519081016040528092919081815260200182805461069490611231565b80156106df5780601f106106b6576101008083540402835291602001916106df565b820191905f5260205f20905b8154815290600101906020018083116106c257829003601f168201915b5050505050908060010154905082565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610774576040517f7a4443f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060058190555050565b610786610b73565b60015f9054906101000a900460ff166107cb576040517fe8eb59c800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610850576040517f7a4443f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379502c556040518163ffffffff1660e01b81526004016040805180830381865afa1580156108b9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108dd91906112dc565b60ff169150505f6064826003546108f4919061131a565b6108fe9190611388565b9050803410156109475780346040517fb99e2ab700000000000000000000000000000000000000000000000000000000815260040161093e9291906111dd565b60405180910390fd5b8034111561098e5780346040517f08aed9250000000000000000000000000000000000000000000000000000000081526004016109859291906111dd565b60405180910390fd5b5f429050806004819055506109e685858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f8201169050808301925050505050505082610bb7565b610a2f827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610ce690919063ffffffff16565b7f60badeea04f31d7e2d2b86b618aaddc0a3239fa5b361b407b25d3f1615d577bf600282604051610a6192919061144b565b60405180910390a1505050610a74610e28565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60605f60028054610aac90611231565b905003610ae5576040517f779619da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60028054610af290611231565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1e90611231565b8015610b695780601f10610b4057610100808354040283529160200191610b69565b820191905f5260205f20905b815481529060010190602001808311610b4c57829003601f168201915b5050505050905090565b60025f5403610bae576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025f81905550565b5f825103610bf1576040517f23e6b99500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61140082511115610c3e5781516114006040517f711f6430000000000000000000000000000000000000000000000000000000008152600401610c359291906111dd565b60405180910390fd5b604051806040016040528083815260200182815250600660ce5460648110610c6957610c68611479565b5b600202015f820151815f019081610c809190611658565b50602082015181600101559050506064600160ce54610c9f9190611727565b610ca9919061175a565b60ce81905550606460cf541015610cd25760cf5f815480929190610ccc9061178a565b91905055505b8160029081610ce19190611658565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d4b576040517f8474420100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8103610d84576040517f8b12710700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff1682604051610da9906117fe565b5f6040518083038185875af1925050503d805f8114610de3576040519150601f19603f3d011682016040523d82523d5f602084013e610de8565b606091505b5050905080610e23576040517f3d56f70700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b60015f81905550565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610e5a82610e31565b9050919050565b610e6a81610e50565b82525050565b5f602082019050610e835f830184610e61565b92915050565b5f5ffd5b5f5ffd5b5f819050919050565b610ea381610e91565b8114610ead575f5ffd5b50565b5f81359050610ebe81610e9a565b92915050565b5f60208284031215610ed957610ed8610e89565b5b5f610ee684828501610eb0565b91505092915050565b610ef881610e91565b82525050565b5f602082019050610f115f830184610eef565b92915050565b5f8115159050919050565b610f2b81610f17565b82525050565b5f602082019050610f445f830184610f22565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610f8c82610f4a565b610f968185610f54565b9350610fa6818560208601610f64565b610faf81610f72565b840191505092915050565b5f6020820190508181035f830152610fd28184610f82565b905092915050565b610fe381610f17565b8114610fed575f5ffd5b50565b5f81359050610ffe81610fda565b92915050565b5f6020828403121561101957611018610e89565b5b5f61102684828501610ff0565b91505092915050565b5f6040820190508181035f8301526110478185610f82565b90506110566020830184610eef565b9392505050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f84011261107e5761107d61105d565b5b8235905067ffffffffffffffff81111561109b5761109a611061565b5b6020830191508360018202830111156110b7576110b6611065565b5b9250929050565b5f5f602083850312156110d4576110d3610e89565b5b5f83013567ffffffffffffffff8111156110f1576110f0610e8d565b5b6110fd85828601611069565b92509250509250929050565b5f819050919050565b5f61112c61112761112284610e31565b611109565b610e31565b9050919050565b5f61113d82611112565b9050919050565b5f61114e82611133565b9050919050565b61115e81611144565b82525050565b5f6020820190506111775f830184611155565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6111b482610e91565b91506111bf83610e91565b92508282039050818111156111d7576111d661117d565b5b92915050565b5f6040820190506111f05f830185610eef565b6111fd6020830184610eef565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061124857607f821691505b60208210810361125b5761125a611204565b5b50919050565b5f6fffffffffffffffffffffffffffffffff82169050919050565b61128581611261565b811461128f575f5ffd5b50565b5f815190506112a08161127c565b92915050565b5f60ff82169050919050565b6112bb816112a6565b81146112c5575f5ffd5b50565b5f815190506112d6816112b2565b92915050565b5f5f604083850312156112f2576112f1610e89565b5b5f6112ff85828601611292565b9250506020611310858286016112c8565b9150509250929050565b5f61132482610e91565b915061132f83610e91565b925082820261133d81610e91565b915082820484148315176113545761135361117d565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61139282610e91565b915061139d83610e91565b9250826113ad576113ac61135b565b5b828204905092915050565b5f819050815f5260205f209050919050565b5f81546113d681611231565b6113e08186610f54565b9450600182165f81146113fa576001811461141057611442565b60ff198316865281151560200286019350611442565b611419856113b8565b5f5b8381101561143a5781548189015260018201915060208101905061141b565b808801955050505b50505092915050565b5f6040820190508181035f83015261146381856113ca565b90506114726020830184610eef565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261151d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826114e2565b61152786836114e2565b95508019841693508086168417925050509392505050565b5f61155961155461154f84610e91565b611109565b610e91565b9050919050565b5f819050919050565b6115728361153f565b61158661157e82611560565b8484546114ee565b825550505050565b5f5f905090565b61159d61158e565b6115a8818484611569565b505050565b5b818110156115cb576115c05f82611595565b6001810190506115ae565b5050565b601f821115611610576115e1816113b8565b6115ea846114d3565b810160208510156115f9578190505b61160d611605856114d3565b8301826115ad565b50505b505050565b5f82821c905092915050565b5f6116305f1984600802611615565b1980831691505092915050565b5f6116488383611621565b9150826002028217905092915050565b61166182610f4a565b67ffffffffffffffff81111561167a576116796114a6565b5b6116848254611231565b61168f8282856115cf565b5f60209050601f8311600181146116c0575f84156116ae578287015190505b6116b8858261163d565b86555061171f565b601f1984166116ce866113b8565b5f5b828110156116f5578489015182556001820191506020850194506020810190506116d0565b86831015611712578489015161170e601f891682611621565b8355505b6001600288020188555050505b505050505050565b5f61173182610e91565b915061173c83610e91565b92508282019050808211156117545761175361117d565b5b92915050565b5f61176482610e91565b915061176f83610e91565b92508261177f5761177e61135b565b5b828206905092915050565b5f61179482610e91565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036117c6576117c561117d565b5b600182019050919050565b5f81905092915050565b50565b5f6117e95f836117d1565b91506117f4826117db565b5f82019050919050565b5f611808826117de565b915081905091905056fea264697066735822122014107d58dae22172c21d0f5e6e8da206265291680004b9ae5e495511e2e29e7764736f6c634300081e0033";
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
type OracleConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
405
|
-
|
|
406
|
-
const isSuperArgs = (xs: OracleConstructorParams): xs is ConstructorParameters<typeof ContractFactory> =>
|
|
407
|
-
xs.length > 1
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
export class Oracle__factory extends ContractFactory {
|
|
411
|
-
|
|
412
|
-
constructor(...args: OracleConstructorParams) {
|
|
413
|
-
if (isSuperArgs(args)) {
|
|
414
|
-
super(...args);
|
|
415
|
-
} else {
|
|
416
|
-
super(_abi, _bytecode, args[0]);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
override getDeployTransaction(_recommendedUpdateDuration: BigNumberish, _dataUpdatePrice: BigNumberish, _initialData: BytesLike, _provider: AddressLike, _factory: AddressLike, overrides?: NonPayableOverrides & { from?: string }): Promise<ContractDeployTransaction> {
|
|
422
|
-
return super.getDeployTransaction(_recommendedUpdateDuration, _dataUpdatePrice, _initialData, _provider, _factory, overrides || {});
|
|
423
|
-
};
|
|
424
|
-
override deploy(_recommendedUpdateDuration: BigNumberish, _dataUpdatePrice: BigNumberish, _initialData: BytesLike, _provider: AddressLike, _factory: AddressLike, overrides?: NonPayableOverrides & { from?: string }) {
|
|
425
|
-
return super.deploy(_recommendedUpdateDuration, _dataUpdatePrice, _initialData, _provider, _factory, overrides || {}) as Promise<Oracle & {
|
|
426
|
-
deploymentTransaction(): ContractTransactionResponse;
|
|
427
|
-
}>;
|
|
428
|
-
}
|
|
429
|
-
override connect(runner: ContractRunner | null): Oracle__factory {
|
|
430
|
-
return super.connect(runner) as Oracle__factory;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
static readonly bytecode = _bytecode;
|
|
435
|
-
static readonly abi = _abi;
|
|
436
|
-
static createInterface(): OracleInterface {
|
|
437
|
-
return new Interface(_abi) as OracleInterface;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
override attach(address: string | Addressable): Oracle {
|
|
441
|
-
return super.attach(address) as Oracle;
|
|
442
|
-
}
|
|
443
|
-
static connect(address: string, runner?: ContractRunner | null): Oracle {
|
|
444
|
-
return new Contract(address, _abi, runner) as unknown as Oracle;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
File without changes
|