|
| 1 | +export const DUMMY_CONTRACT_ABI = [ |
| 2 | + { |
| 3 | + inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], |
| 4 | + name: 'DummyRevert', |
| 5 | + type: 'error', |
| 6 | + }, |
| 7 | + { |
| 8 | + anonymous: false, |
| 9 | + inputs: [ |
| 10 | + { |
| 11 | + indexed: false, |
| 12 | + internalType: 'address', |
| 13 | + name: 'addr', |
| 14 | + type: 'address', |
| 15 | + }, |
| 16 | + ], |
| 17 | + name: 'AddressEmitted', |
| 18 | + type: 'event', |
| 19 | + }, |
| 20 | + { |
| 21 | + anonymous: false, |
| 22 | + inputs: [{ indexed: false, internalType: 'bool', name: 'flag', type: 'bool' }], |
| 23 | + name: 'BoolEmitted', |
| 24 | + type: 'event', |
| 25 | + }, |
| 26 | + { |
| 27 | + anonymous: false, |
| 28 | + inputs: [ |
| 29 | + { |
| 30 | + indexed: false, |
| 31 | + internalType: 'bytes32', |
| 32 | + name: 'slot', |
| 33 | + type: 'bytes32', |
| 34 | + }, |
| 35 | + ], |
| 36 | + name: 'Bytes32Emitted', |
| 37 | + type: 'event', |
| 38 | + }, |
| 39 | + { |
| 40 | + anonymous: false, |
| 41 | + inputs: [{ indexed: false, internalType: 'bytes', name: 'data', type: 'bytes' }], |
| 42 | + name: 'BytesEmitted', |
| 43 | + type: 'event', |
| 44 | + }, |
| 45 | + { |
| 46 | + anonymous: false, |
| 47 | + inputs: [ |
| 48 | + { |
| 49 | + indexed: false, |
| 50 | + internalType: 'uint256', |
| 51 | + name: 'amount', |
| 52 | + type: 'uint256', |
| 53 | + }, |
| 54 | + ], |
| 55 | + name: 'Received', |
| 56 | + type: 'event', |
| 57 | + }, |
| 58 | + { |
| 59 | + anonymous: false, |
| 60 | + inputs: [ |
| 61 | + { |
| 62 | + indexed: false, |
| 63 | + internalType: 'uint256', |
| 64 | + name: 'value', |
| 65 | + type: 'uint256', |
| 66 | + }, |
| 67 | + ], |
| 68 | + name: 'Uint256Emitted', |
| 69 | + type: 'event', |
| 70 | + }, |
| 71 | + { |
| 72 | + anonymous: false, |
| 73 | + inputs: [ |
| 74 | + { |
| 75 | + indexed: false, |
| 76 | + internalType: 'uint256', |
| 77 | + name: 'value1', |
| 78 | + type: 'uint256', |
| 79 | + }, |
| 80 | + { |
| 81 | + indexed: false, |
| 82 | + internalType: 'uint256', |
| 83 | + name: 'value2', |
| 84 | + type: 'uint256', |
| 85 | + }, |
| 86 | + ], |
| 87 | + name: 'Uint256Emitted2', |
| 88 | + type: 'event', |
| 89 | + }, |
| 90 | + { |
| 91 | + inputs: [], |
| 92 | + name: 'A', |
| 93 | + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], |
| 94 | + stateMutability: 'pure', |
| 95 | + type: 'function', |
| 96 | + }, |
| 97 | + { |
| 98 | + inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], |
| 99 | + name: 'B', |
| 100 | + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], |
| 101 | + stateMutability: 'pure', |
| 102 | + type: 'function', |
| 103 | + }, |
| 104 | + { |
| 105 | + inputs: [ |
| 106 | + { internalType: 'uint256', name: 'value1', type: 'uint256' }, |
| 107 | + { internalType: 'address', name: 'addr', type: 'address' }, |
| 108 | + { internalType: 'bytes32', name: 'slot', type: 'bytes32' }, |
| 109 | + { internalType: 'bool', name: 'flag', type: 'bool' }, |
| 110 | + ], |
| 111 | + name: 'acceptMultipleValues', |
| 112 | + outputs: [], |
| 113 | + stateMutability: 'nonpayable', |
| 114 | + type: 'function', |
| 115 | + }, |
| 116 | + { |
| 117 | + inputs: [ |
| 118 | + { internalType: 'uint256', name: 'staticValue', type: 'uint256' }, |
| 119 | + { internalType: 'bytes', name: 'dynamicValue', type: 'bytes' }, |
| 120 | + { internalType: 'address', name: 'addr', type: 'address' }, |
| 121 | + ], |
| 122 | + name: 'acceptStaticAndDynamicValues', |
| 123 | + outputs: [], |
| 124 | + stateMutability: 'nonpayable', |
| 125 | + type: 'function', |
| 126 | + }, |
| 127 | + { |
| 128 | + inputs: [ |
| 129 | + { internalType: 'uint256', name: 'someValue', type: 'uint256' }, |
| 130 | + { |
| 131 | + components: [ |
| 132 | + { internalType: 'address', name: 'tokenIn', type: 'address' }, |
| 133 | + { internalType: 'address', name: 'tokenOut', type: 'address' }, |
| 134 | + { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, |
| 135 | + { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, |
| 136 | + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, |
| 137 | + { internalType: 'uint256', name: 'fee', type: 'uint256' }, |
| 138 | + ], |
| 139 | + internalType: 'struct MockSwapStruct', |
| 140 | + name: 'swapStruct', |
| 141 | + type: 'tuple', |
| 142 | + }, |
| 143 | + ], |
| 144 | + name: 'acceptStruct', |
| 145 | + outputs: [], |
| 146 | + stateMutability: 'nonpayable', |
| 147 | + type: 'function', |
| 148 | + }, |
| 149 | + { |
| 150 | + inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], |
| 151 | + name: 'emitUint256', |
| 152 | + outputs: [], |
| 153 | + stateMutability: 'payable', |
| 154 | + type: 'function', |
| 155 | + }, |
| 156 | + { |
| 157 | + inputs: [], |
| 158 | + name: 'getAddress', |
| 159 | + outputs: [{ internalType: 'address', name: '', type: 'address' }], |
| 160 | + stateMutability: 'view', |
| 161 | + type: 'function', |
| 162 | + }, |
| 163 | + { |
| 164 | + inputs: [], |
| 165 | + name: 'getBool', |
| 166 | + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], |
| 167 | + stateMutability: 'pure', |
| 168 | + type: 'function', |
| 169 | + }, |
| 170 | + { |
| 171 | + inputs: [], |
| 172 | + name: 'getFoo', |
| 173 | + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], |
| 174 | + stateMutability: 'view', |
| 175 | + type: 'function', |
| 176 | + }, |
| 177 | + { |
| 178 | + inputs: [], |
| 179 | + name: 'getNativeValue', |
| 180 | + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], |
| 181 | + stateMutability: 'pure', |
| 182 | + type: 'function', |
| 183 | + }, |
| 184 | + { |
| 185 | + inputs: [], |
| 186 | + name: 'payableEmit', |
| 187 | + outputs: [], |
| 188 | + stateMutability: 'payable', |
| 189 | + type: 'function', |
| 190 | + }, |
| 191 | + { |
| 192 | + inputs: [], |
| 193 | + name: 'returnMultipleValues', |
| 194 | + outputs: [ |
| 195 | + { internalType: 'uint256', name: '', type: 'uint256' }, |
| 196 | + { internalType: 'address', name: '', type: 'address' }, |
| 197 | + { internalType: 'bytes32', name: '', type: 'bytes32' }, |
| 198 | + { internalType: 'bool', name: '', type: 'bool' }, |
| 199 | + ], |
| 200 | + stateMutability: 'view', |
| 201 | + type: 'function', |
| 202 | + }, |
| 203 | + { |
| 204 | + inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], |
| 205 | + name: 'revertWithReason', |
| 206 | + outputs: [], |
| 207 | + stateMutability: 'pure', |
| 208 | + type: 'function', |
| 209 | + }, |
| 210 | + { |
| 211 | + inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], |
| 212 | + name: 'setFoo', |
| 213 | + outputs: [], |
| 214 | + stateMutability: 'nonpayable', |
| 215 | + type: 'function', |
| 216 | + }, |
| 217 | + { |
| 218 | + inputs: [ |
| 219 | + { internalType: 'uint256', name: 'toStake', type: 'uint256' }, |
| 220 | + { internalType: 'uint256', name: 'param2', type: 'uint256' }, |
| 221 | + ], |
| 222 | + name: 'stake', |
| 223 | + outputs: [], |
| 224 | + stateMutability: 'payable', |
| 225 | + type: 'function', |
| 226 | + }, |
| 227 | + { |
| 228 | + inputs: [ |
| 229 | + { internalType: 'uint256', name: 'exactInput', type: 'uint256' }, |
| 230 | + { internalType: 'uint256', name: 'minOutput', type: 'uint256' }, |
| 231 | + ], |
| 232 | + name: 'swap', |
| 233 | + outputs: [{ internalType: 'uint256', name: 'output1', type: 'uint256' }], |
| 234 | + stateMutability: 'payable', |
| 235 | + type: 'function', |
| 236 | + }, |
| 237 | +]; |
0 commit comments