|
| 1 | +export const CondtionalRouterAbi = [ |
| 2 | + { |
| 3 | + inputs: [ |
| 4 | + { |
| 5 | + internalType: "contract IConditionalTokens", |
| 6 | + name: "_conditionalTokens", |
| 7 | + type: "address", |
| 8 | + }, |
| 9 | + { |
| 10 | + internalType: "contract IWrapped1155Factory", |
| 11 | + name: "_wrapped1155Factory", |
| 12 | + type: "address", |
| 13 | + }, |
| 14 | + ], |
| 15 | + stateMutability: "nonpayable", |
| 16 | + type: "constructor", |
| 17 | + }, |
| 18 | + { |
| 19 | + inputs: [], |
| 20 | + name: "conditionalTokens", |
| 21 | + outputs: [ |
| 22 | + { |
| 23 | + internalType: "contract IConditionalTokens", |
| 24 | + name: "", |
| 25 | + type: "address", |
| 26 | + }, |
| 27 | + ], |
| 28 | + stateMutability: "view", |
| 29 | + type: "function", |
| 30 | + }, |
| 31 | + { |
| 32 | + inputs: [ |
| 33 | + { |
| 34 | + internalType: "contract IERC20", |
| 35 | + name: "collateralToken", |
| 36 | + type: "address", |
| 37 | + }, |
| 38 | + { internalType: "bytes32", name: "parentCollectionId", type: "bytes32" }, |
| 39 | + { internalType: "bytes32", name: "conditionId", type: "bytes32" }, |
| 40 | + { internalType: "uint256", name: "indexSet", type: "uint256" }, |
| 41 | + ], |
| 42 | + name: "getTokenId", |
| 43 | + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], |
| 44 | + stateMutability: "view", |
| 45 | + type: "function", |
| 46 | + }, |
| 47 | + { |
| 48 | + inputs: [{ internalType: "bytes32", name: "conditionId", type: "bytes32" }], |
| 49 | + name: "getWinningOutcomes", |
| 50 | + outputs: [{ internalType: "bool[]", name: "", type: "bool[]" }], |
| 51 | + stateMutability: "view", |
| 52 | + type: "function", |
| 53 | + }, |
| 54 | + { |
| 55 | + inputs: [ |
| 56 | + { |
| 57 | + internalType: "contract IERC20", |
| 58 | + name: "collateralToken", |
| 59 | + type: "address", |
| 60 | + }, |
| 61 | + { internalType: "contract Market", name: "market", type: "address" }, |
| 62 | + { internalType: "uint256", name: "amount", type: "uint256" }, |
| 63 | + ], |
| 64 | + name: "mergePositions", |
| 65 | + outputs: [], |
| 66 | + stateMutability: "nonpayable", |
| 67 | + type: "function", |
| 68 | + }, |
| 69 | + { |
| 70 | + inputs: [ |
| 71 | + { internalType: "address", name: "", type: "address" }, |
| 72 | + { internalType: "address", name: "", type: "address" }, |
| 73 | + { internalType: "uint256[]", name: "", type: "uint256[]" }, |
| 74 | + { internalType: "uint256[]", name: "", type: "uint256[]" }, |
| 75 | + { internalType: "bytes", name: "", type: "bytes" }, |
| 76 | + ], |
| 77 | + name: "onERC1155BatchReceived", |
| 78 | + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], |
| 79 | + stateMutability: "nonpayable", |
| 80 | + type: "function", |
| 81 | + }, |
| 82 | + { |
| 83 | + inputs: [ |
| 84 | + { internalType: "address", name: "", type: "address" }, |
| 85 | + { internalType: "address", name: "", type: "address" }, |
| 86 | + { internalType: "uint256", name: "", type: "uint256" }, |
| 87 | + { internalType: "uint256", name: "", type: "uint256" }, |
| 88 | + { internalType: "bytes", name: "", type: "bytes" }, |
| 89 | + ], |
| 90 | + name: "onERC1155Received", |
| 91 | + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], |
| 92 | + stateMutability: "nonpayable", |
| 93 | + type: "function", |
| 94 | + }, |
| 95 | + { |
| 96 | + inputs: [ |
| 97 | + { |
| 98 | + internalType: "contract IERC20", |
| 99 | + name: "collateralToken", |
| 100 | + type: "address", |
| 101 | + }, |
| 102 | + { internalType: "contract Market", name: "market", type: "address" }, |
| 103 | + { internalType: "uint256[]", name: "outcomeIndexes", type: "uint256[]" }, |
| 104 | + { |
| 105 | + internalType: "uint256[]", |
| 106 | + name: "parentOutcomeIndexes", |
| 107 | + type: "uint256[]", |
| 108 | + }, |
| 109 | + { internalType: "uint256[]", name: "amounts", type: "uint256[]" }, |
| 110 | + ], |
| 111 | + name: "redeemConditionalToCollateral", |
| 112 | + outputs: [], |
| 113 | + stateMutability: "nonpayable", |
| 114 | + type: "function", |
| 115 | + }, |
| 116 | + { |
| 117 | + inputs: [ |
| 118 | + { |
| 119 | + internalType: "contract IERC20", |
| 120 | + name: "collateralToken", |
| 121 | + type: "address", |
| 122 | + }, |
| 123 | + { internalType: "contract Market", name: "market", type: "address" }, |
| 124 | + { internalType: "uint256[]", name: "outcomeIndexes", type: "uint256[]" }, |
| 125 | + { internalType: "uint256[]", name: "amounts", type: "uint256[]" }, |
| 126 | + ], |
| 127 | + name: "redeemPositions", |
| 128 | + outputs: [], |
| 129 | + stateMutability: "nonpayable", |
| 130 | + type: "function", |
| 131 | + }, |
| 132 | + { |
| 133 | + inputs: [ |
| 134 | + { |
| 135 | + internalType: "contract IERC20", |
| 136 | + name: "collateralToken", |
| 137 | + type: "address", |
| 138 | + }, |
| 139 | + { internalType: "contract Market", name: "market", type: "address" }, |
| 140 | + { internalType: "uint256", name: "amount", type: "uint256" }, |
| 141 | + ], |
| 142 | + name: "splitPosition", |
| 143 | + outputs: [], |
| 144 | + stateMutability: "nonpayable", |
| 145 | + type: "function", |
| 146 | + }, |
| 147 | + { |
| 148 | + inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }], |
| 149 | + name: "supportsInterface", |
| 150 | + outputs: [{ internalType: "bool", name: "", type: "bool" }], |
| 151 | + stateMutability: "view", |
| 152 | + type: "function", |
| 153 | + }, |
| 154 | + { |
| 155 | + inputs: [], |
| 156 | + name: "wrapped1155Factory", |
| 157 | + outputs: [ |
| 158 | + { |
| 159 | + internalType: "contract IWrapped1155Factory", |
| 160 | + name: "", |
| 161 | + type: "address", |
| 162 | + }, |
| 163 | + ], |
| 164 | + stateMutability: "view", |
| 165 | + type: "function", |
| 166 | + }, |
| 167 | +] as const; |
0 commit comments