|
| 1 | +/* |
| 2 | +This file is part of web3.js. |
| 3 | +
|
| 4 | +web3.js is free software: you can redistribute it and/or modify |
| 5 | +it under the terms of the GNU Lesser General Public License as published by |
| 6 | +the Free Software Foundation, either version 3 of the License, or |
| 7 | +(at your option) any later version. |
| 8 | +
|
| 9 | +web3.js is distributed in the hope that it will be useful, |
| 10 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +GNU Lesser General Public License for more details. |
| 13 | +
|
| 14 | +You should have received a copy of the GNU Lesser General Public License |
| 15 | +along with web3.js. If not, see <http://www.gnu.org/licenses/>. |
| 16 | +*/ |
| 17 | + |
| 18 | +// Modified blockParams to include sub-arrays for actual and expected parameters |
| 19 | +export const blockParams: [ |
| 20 | + [string | number | bigint, string | number | bigint], |
| 21 | + [string, string], |
| 22 | +][] = [ |
| 23 | + [ |
| 24 | + [123, 'latest'], |
| 25 | + ['0x7b', 'latest'], |
| 26 | + ], // Number fromBlock |
| 27 | + [ |
| 28 | + [BigInt(123), 'latest'], |
| 29 | + ['0x7b', 'latest'], |
| 30 | + ], // BigInt fromBlock |
| 31 | + [ |
| 32 | + ['0x7b', 'latest'], |
| 33 | + ['0x7b', 'latest'], |
| 34 | + ], // Hexadecimal fromBlock |
| 35 | + [ |
| 36 | + [123, 456], |
| 37 | + ['0x7b', '0x1c8'], |
| 38 | + ], // Number fromBlock and toBlock |
| 39 | + [ |
| 40 | + [BigInt(123), BigInt(456)], |
| 41 | + ['0x7b', '0x1c8'], |
| 42 | + ], // BigInt fromBlock and toBlock |
| 43 | + [ |
| 44 | + ['0x7b', '0x1c8'], |
| 45 | + ['0x7b', '0x1c8'], |
| 46 | + ], // Hexadecimal fromBlock and toBlock |
| 47 | + [ |
| 48 | + ['latest', 123], |
| 49 | + ['latest', '0x7b'], |
| 50 | + ], |
| 51 | + [ |
| 52 | + ['latest', BigInt(123)], |
| 53 | + ['latest', '0x7b'], |
| 54 | + ], |
| 55 | + [ |
| 56 | + ['latest', '0x7b'], |
| 57 | + ['latest', '0x7b'], |
| 58 | + ], |
| 59 | +]; |
0 commit comments