|
1 | 1 | [
|
2 | 2 | {
|
3 |
| - "type": "constructor", |
4 |
| - "inputs": [ |
| 3 | + "type": "function", |
| 4 | + "name": "NUM_REQUESTS", |
| 5 | + "inputs": [], |
| 6 | + "outputs": [ |
5 | 7 | {
|
6 |
| - "name": "pythFeeInWei", |
7 |
| - "type": "uint256", |
8 |
| - "internalType": "uint256" |
9 |
| - }, |
| 8 | + "name": "", |
| 9 | + "type": "uint8", |
| 10 | + "internalType": "uint8" |
| 11 | + } |
| 12 | + ], |
| 13 | + "stateMutability": "view" |
| 14 | + }, |
| 15 | + { |
| 16 | + "type": "function", |
| 17 | + "name": "NUM_REQUESTS_MASK", |
| 18 | + "inputs": [], |
| 19 | + "outputs": [ |
10 | 20 | {
|
11 |
| - "name": "defaultProvider", |
12 |
| - "type": "address", |
13 |
| - "internalType": "address" |
| 21 | + "name": "", |
| 22 | + "type": "bytes1", |
| 23 | + "internalType": "bytes1" |
14 | 24 | }
|
15 | 25 | ],
|
16 |
| - "stateMutability": "nonpayable" |
| 26 | + "stateMutability": "view" |
17 | 27 | },
|
18 | 28 | {
|
19 | 29 | "type": "function",
|
|
70 | 80 | "outputs": [
|
71 | 81 | {
|
72 | 82 | "name": "accruedPythFeesInWei",
|
73 |
| - "type": "uint256", |
74 |
| - "internalType": "uint256" |
| 83 | + "type": "uint128", |
| 84 | + "internalType": "uint128" |
75 | 85 | }
|
76 | 86 | ],
|
77 | 87 | "stateMutability": "view"
|
|
102 | 112 | "outputs": [
|
103 | 113 | {
|
104 | 114 | "name": "feeAmount",
|
105 |
| - "type": "uint256", |
106 |
| - "internalType": "uint256" |
| 115 | + "type": "uint128", |
| 116 | + "internalType": "uint128" |
107 | 117 | }
|
108 | 118 | ],
|
109 | 119 | "stateMutability": "view"
|
|
126 | 136 | "components": [
|
127 | 137 | {
|
128 | 138 | "name": "feeInWei",
|
129 |
| - "type": "uint256", |
130 |
| - "internalType": "uint256" |
| 139 | + "type": "uint128", |
| 140 | + "internalType": "uint128" |
131 | 141 | },
|
132 | 142 | {
|
133 | 143 | "name": "accruedFeesInWei",
|
134 |
| - "type": "uint256", |
135 |
| - "internalType": "uint256" |
| 144 | + "type": "uint128", |
| 145 | + "internalType": "uint128" |
136 | 146 | },
|
137 | 147 | {
|
138 | 148 | "name": "originalCommitment",
|
|
179 | 189 | ],
|
180 | 190 | "stateMutability": "view"
|
181 | 191 | },
|
| 192 | + { |
| 193 | + "type": "function", |
| 194 | + "name": "getPythFee", |
| 195 | + "inputs": [], |
| 196 | + "outputs": [ |
| 197 | + { |
| 198 | + "name": "feeAmount", |
| 199 | + "type": "uint128", |
| 200 | + "internalType": "uint128" |
| 201 | + } |
| 202 | + ], |
| 203 | + "stateMutability": "view" |
| 204 | + }, |
182 | 205 | {
|
183 | 206 | "type": "function",
|
184 | 207 | "name": "getRequest",
|
|
211 | 234 | "internalType": "uint64"
|
212 | 235 | },
|
213 | 236 | {
|
214 |
| - "name": "userCommitment", |
215 |
| - "type": "bytes32", |
216 |
| - "internalType": "bytes32" |
| 237 | + "name": "numHashes", |
| 238 | + "type": "uint32", |
| 239 | + "internalType": "uint32" |
217 | 240 | },
|
218 | 241 | {
|
219 |
| - "name": "providerCommitment", |
| 242 | + "name": "commitment", |
220 | 243 | "type": "bytes32",
|
221 | 244 | "internalType": "bytes32"
|
222 | 245 | },
|
223 | 246 | {
|
224 |
| - "name": "providerCommitmentSequenceNumber", |
| 247 | + "name": "blockNumber", |
225 | 248 | "type": "uint64",
|
226 | 249 | "internalType": "uint64"
|
227 | 250 | },
|
228 | 251 | {
|
229 |
| - "name": "blockNumber", |
230 |
| - "type": "uint256", |
231 |
| - "internalType": "uint256" |
| 252 | + "name": "requester", |
| 253 | + "type": "address", |
| 254 | + "internalType": "address" |
| 255 | + }, |
| 256 | + { |
| 257 | + "name": "useBlockhash", |
| 258 | + "type": "bool", |
| 259 | + "internalType": "bool" |
232 | 260 | }
|
233 | 261 | ]
|
234 | 262 | }
|
|
241 | 269 | "inputs": [
|
242 | 270 | {
|
243 | 271 | "name": "feeInWei",
|
244 |
| - "type": "uint256", |
245 |
| - "internalType": "uint256" |
| 272 | + "type": "uint128", |
| 273 | + "internalType": "uint128" |
246 | 274 | },
|
247 | 275 | {
|
248 | 276 | "name": "commitment",
|
|
337 | 365 | "inputs": [
|
338 | 366 | {
|
339 | 367 | "name": "amount",
|
340 |
| - "type": "uint256", |
341 |
| - "internalType": "uint256" |
| 368 | + "type": "uint128", |
| 369 | + "internalType": "uint128" |
342 | 370 | }
|
343 | 371 | ],
|
344 | 372 | "outputs": [],
|
|
356 | 384 | "components": [
|
357 | 385 | {
|
358 | 386 | "name": "feeInWei",
|
359 |
| - "type": "uint256", |
360 |
| - "internalType": "uint256" |
| 387 | + "type": "uint128", |
| 388 | + "internalType": "uint128" |
361 | 389 | },
|
362 | 390 | {
|
363 | 391 | "name": "accruedFeesInWei",
|
364 |
| - "type": "uint256", |
365 |
| - "internalType": "uint256" |
| 392 | + "type": "uint128", |
| 393 | + "internalType": "uint128" |
366 | 394 | },
|
367 | 395 | {
|
368 | 396 | "name": "originalCommitment",
|
|
430 | 458 | "internalType": "uint64"
|
431 | 459 | },
|
432 | 460 | {
|
433 |
| - "name": "userCommitment", |
434 |
| - "type": "bytes32", |
435 |
| - "internalType": "bytes32" |
| 461 | + "name": "numHashes", |
| 462 | + "type": "uint32", |
| 463 | + "internalType": "uint32" |
436 | 464 | },
|
437 | 465 | {
|
438 |
| - "name": "providerCommitment", |
| 466 | + "name": "commitment", |
439 | 467 | "type": "bytes32",
|
440 | 468 | "internalType": "bytes32"
|
441 | 469 | },
|
442 | 470 | {
|
443 |
| - "name": "providerCommitmentSequenceNumber", |
| 471 | + "name": "blockNumber", |
444 | 472 | "type": "uint64",
|
445 | 473 | "internalType": "uint64"
|
446 | 474 | },
|
447 | 475 | {
|
448 |
| - "name": "blockNumber", |
449 |
| - "type": "uint256", |
450 |
| - "internalType": "uint256" |
| 476 | + "name": "requester", |
| 477 | + "type": "address", |
| 478 | + "internalType": "address" |
| 479 | + }, |
| 480 | + { |
| 481 | + "name": "useBlockhash", |
| 482 | + "type": "bool", |
| 483 | + "internalType": "bool" |
451 | 484 | }
|
452 | 485 | ]
|
453 | 486 | }
|
|
475 | 508 | "internalType": "uint64"
|
476 | 509 | },
|
477 | 510 | {
|
478 |
| - "name": "userCommitment", |
479 |
| - "type": "bytes32", |
480 |
| - "internalType": "bytes32" |
| 511 | + "name": "numHashes", |
| 512 | + "type": "uint32", |
| 513 | + "internalType": "uint32" |
481 | 514 | },
|
482 | 515 | {
|
483 |
| - "name": "providerCommitment", |
| 516 | + "name": "commitment", |
484 | 517 | "type": "bytes32",
|
485 | 518 | "internalType": "bytes32"
|
486 | 519 | },
|
487 | 520 | {
|
488 |
| - "name": "providerCommitmentSequenceNumber", |
| 521 | + "name": "blockNumber", |
489 | 522 | "type": "uint64",
|
490 | 523 | "internalType": "uint64"
|
491 | 524 | },
|
492 | 525 | {
|
493 |
| - "name": "blockNumber", |
494 |
| - "type": "uint256", |
495 |
| - "internalType": "uint256" |
| 526 | + "name": "requester", |
| 527 | + "type": "address", |
| 528 | + "internalType": "address" |
| 529 | + }, |
| 530 | + { |
| 531 | + "name": "useBlockhash", |
| 532 | + "type": "bool", |
| 533 | + "internalType": "bool" |
496 | 534 | }
|
497 | 535 | ]
|
498 | 536 | },
|
|
530 | 568 | },
|
531 | 569 | {
|
532 | 570 | "type": "error",
|
533 |
| - "name": "IncorrectProviderRevelation", |
| 571 | + "name": "IncorrectRevelation", |
534 | 572 | "inputs": []
|
535 | 573 | },
|
536 | 574 | {
|
537 | 575 | "type": "error",
|
538 |
| - "name": "IncorrectUserRevelation", |
| 576 | + "name": "InsufficientFee", |
539 | 577 | "inputs": []
|
540 | 578 | },
|
541 | 579 | {
|
542 | 580 | "type": "error",
|
543 |
| - "name": "InsufficientFee", |
| 581 | + "name": "NoSuchProvider", |
544 | 582 | "inputs": []
|
545 | 583 | },
|
546 | 584 | {
|
547 | 585 | "type": "error",
|
548 |
| - "name": "NoSuchProvider", |
| 586 | + "name": "NoSuchRequest", |
549 | 587 | "inputs": []
|
550 | 588 | },
|
551 | 589 | {
|
552 | 590 | "type": "error",
|
553 | 591 | "name": "OutOfRandomness",
|
554 | 592 | "inputs": []
|
| 593 | + }, |
| 594 | + { |
| 595 | + "type": "error", |
| 596 | + "name": "Unauthorized", |
| 597 | + "inputs": [] |
555 | 598 | }
|
556 | 599 | ]
|
0 commit comments