@oddmaki-protocol/sdk 0.1.0 → 0.1.3

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/index.mjs CHANGED
@@ -5,9 +5,9 @@ import { gql, GraphQLClient } from 'graphql-request';
5
5
  // src/client.ts
6
6
  var CONTRACT_ADDRESSES = {
7
7
  [baseSepolia.id]: {
8
- diamond: "0x5067a8175086e6b4863660fa165f8605302781e7",
8
+ diamond: "0x2612a6949a4eeafa0bc39a7d82e0c926d4180d99",
9
9
  conditionalTokens: "0x7364747372Ac4a175B5326f5B2C9CB1C271d32e8",
10
- usdc: "0xd7a0a331f6fa862222049c97a3dded97bed2ef93",
10
+ usdc: "0x643a4ec97528c719bbaa5457806d6898321df7d4",
11
11
  subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki/version/latest"
12
12
  }
13
13
  };
@@ -397,6 +397,31 @@ var VenueFacet_default = [
397
397
  outputs: [],
398
398
  stateMutability: "nonpayable"
399
399
  },
400
+ {
401
+ type: "event",
402
+ name: "VenueAccessControlUpdated",
403
+ inputs: [
404
+ {
405
+ name: "venueId",
406
+ type: "uint256",
407
+ indexed: true,
408
+ internalType: "uint256"
409
+ },
410
+ {
411
+ name: "tradingAccessControl",
412
+ type: "address",
413
+ indexed: false,
414
+ internalType: "address"
415
+ },
416
+ {
417
+ name: "creationAccessControl",
418
+ type: "address",
419
+ indexed: false,
420
+ internalType: "address"
421
+ }
422
+ ],
423
+ anonymous: false
424
+ },
400
425
  {
401
426
  type: "event",
402
427
  name: "VenueCreated",
@@ -562,6 +587,11 @@ var VenueFacet_default = [
562
587
  name: "InvalidMarketCreationFee",
563
588
  inputs: []
564
589
  },
590
+ {
591
+ type: "error",
592
+ name: "InvalidTickSize",
593
+ inputs: []
594
+ },
565
595
  {
566
596
  type: "error",
567
597
  name: "InvalidVenueFee",
@@ -577,6 +607,11 @@ var VenueFacet_default = [
577
607
  name: "OnlyVenueOperator",
578
608
  inputs: []
579
609
  },
610
+ {
611
+ type: "error",
612
+ name: "ProtocolPaused",
613
+ inputs: []
614
+ },
580
615
  {
581
616
  type: "error",
582
617
  name: "VenueInactive",
@@ -586,6 +621,11 @@ var VenueFacet_default = [
586
621
  type: "error",
587
622
  name: "VenueNotFound",
588
623
  inputs: []
624
+ },
625
+ {
626
+ type: "error",
627
+ name: "VenueSuspended",
628
+ inputs: []
589
629
  }
590
630
  ];
591
631
 
@@ -857,6 +897,16 @@ var MarketsFacet_default = [
857
897
  name: "tickSize",
858
898
  type: "uint256",
859
899
  internalType: "uint256"
900
+ },
901
+ {
902
+ name: "venueFeeBps",
903
+ type: "uint256",
904
+ internalType: "uint256"
905
+ },
906
+ {
907
+ name: "creatorFeeBps",
908
+ type: "uint256",
909
+ internalType: "uint256"
860
910
  }
861
911
  ]
862
912
  }
@@ -1058,14 +1108,8 @@ var MarketsFacet_default = [
1058
1108
  },
1059
1109
  {
1060
1110
  type: "event",
1061
- name: "MarketPausedEvent",
1111
+ name: "MarketCreationFeeCollected",
1062
1112
  inputs: [
1063
- {
1064
- name: "marketId",
1065
- type: "uint256",
1066
- indexed: true,
1067
- internalType: "uint256"
1068
- },
1069
1113
  {
1070
1114
  name: "venueId",
1071
1115
  type: "uint256",
@@ -1073,17 +1117,29 @@ var MarketsFacet_default = [
1073
1117
  internalType: "uint256"
1074
1118
  },
1075
1119
  {
1076
- name: "operator",
1120
+ name: "payer",
1077
1121
  type: "address",
1078
1122
  indexed: true,
1079
1123
  internalType: "address"
1124
+ },
1125
+ {
1126
+ name: "protocolShare",
1127
+ type: "uint256",
1128
+ indexed: false,
1129
+ internalType: "uint256"
1130
+ },
1131
+ {
1132
+ name: "venueShare",
1133
+ type: "uint256",
1134
+ indexed: false,
1135
+ internalType: "uint256"
1080
1136
  }
1081
1137
  ],
1082
1138
  anonymous: false
1083
1139
  },
1084
1140
  {
1085
1141
  type: "event",
1086
- name: "MarketUnpausedEvent",
1142
+ name: "MarketPausedEvent",
1087
1143
  inputs: [
1088
1144
  {
1089
1145
  name: "marketId",
@@ -1108,31 +1164,25 @@ var MarketsFacet_default = [
1108
1164
  },
1109
1165
  {
1110
1166
  type: "event",
1111
- name: "MarketCreationFeeCollected",
1167
+ name: "MarketUnpausedEvent",
1112
1168
  inputs: [
1113
1169
  {
1114
- name: "venueId",
1170
+ name: "marketId",
1115
1171
  type: "uint256",
1116
1172
  indexed: true,
1117
1173
  internalType: "uint256"
1118
1174
  },
1119
1175
  {
1120
- name: "payer",
1121
- type: "address",
1122
- indexed: true,
1123
- internalType: "address"
1124
- },
1125
- {
1126
- name: "protocolShare",
1176
+ name: "venueId",
1127
1177
  type: "uint256",
1128
- indexed: false,
1178
+ indexed: true,
1129
1179
  internalType: "uint256"
1130
1180
  },
1131
1181
  {
1132
- name: "venueShare",
1133
- type: "uint256",
1134
- indexed: false,
1135
- internalType: "uint256"
1182
+ name: "operator",
1183
+ type: "address",
1184
+ indexed: true,
1185
+ internalType: "address"
1136
1186
  }
1137
1187
  ],
1138
1188
  anonymous: false
@@ -1218,6 +1268,11 @@ var MarketsFacet_default = [
1218
1268
  ],
1219
1269
  anonymous: false
1220
1270
  },
1271
+ {
1272
+ type: "error",
1273
+ name: "CollateralNotWhitelisted",
1274
+ inputs: []
1275
+ },
1221
1276
  {
1222
1277
  type: "error",
1223
1278
  name: "CreationAccessDenied",
@@ -1265,42 +1320,42 @@ var MarketsFacet_default = [
1265
1320
  },
1266
1321
  {
1267
1322
  type: "error",
1268
- name: "InvalidTickSize",
1323
+ name: "MarketGroupNotFound",
1269
1324
  inputs: []
1270
1325
  },
1271
1326
  {
1272
1327
  type: "error",
1273
- name: "InvalidTickSize",
1328
+ name: "MarketNotPlaceholder",
1274
1329
  inputs: []
1275
1330
  },
1276
1331
  {
1277
1332
  type: "error",
1278
- name: "MarketGroupNotFound",
1333
+ name: "NotGroupCreator",
1279
1334
  inputs: []
1280
1335
  },
1281
1336
  {
1282
1337
  type: "error",
1283
- name: "MarketNotPlaceholder",
1338
+ name: "OnlyVenueOperator",
1284
1339
  inputs: []
1285
1340
  },
1286
1341
  {
1287
1342
  type: "error",
1288
- name: "NotGroupCreator",
1343
+ name: "OracleAlreadyExists",
1289
1344
  inputs: []
1290
1345
  },
1291
1346
  {
1292
1347
  type: "error",
1293
- name: "OracleAlreadyExists",
1348
+ name: "OracleCtfNotSet",
1294
1349
  inputs: []
1295
1350
  },
1296
1351
  {
1297
1352
  type: "error",
1298
- name: "OracleCtfNotSet",
1353
+ name: "OracleNotInitialized",
1299
1354
  inputs: []
1300
1355
  },
1301
1356
  {
1302
1357
  type: "error",
1303
- name: "OracleNotInitialized",
1358
+ name: "ProtocolPaused",
1304
1359
  inputs: []
1305
1360
  },
1306
1361
  {
@@ -1337,6 +1392,11 @@ var MarketsFacet_default = [
1337
1392
  type: "error",
1338
1393
  name: "VenueNotFound",
1339
1394
  inputs: []
1395
+ },
1396
+ {
1397
+ type: "error",
1398
+ name: "VenueSuspended",
1399
+ inputs: []
1340
1400
  }
1341
1401
  ];
1342
1402
 
@@ -1355,6 +1415,30 @@ var LimitOrdersFacet_default = [
1355
1415
  outputs: [],
1356
1416
  stateMutability: "nonpayable"
1357
1417
  },
1418
+ {
1419
+ type: "function",
1420
+ name: "cancelOrdersOnResolvedMarket",
1421
+ inputs: [
1422
+ {
1423
+ name: "marketId",
1424
+ type: "uint256",
1425
+ internalType: "uint256"
1426
+ },
1427
+ {
1428
+ name: "orderIds",
1429
+ type: "uint256[]",
1430
+ internalType: "uint256[]"
1431
+ }
1432
+ ],
1433
+ outputs: [
1434
+ {
1435
+ name: "cancelledCount",
1436
+ type: "uint256",
1437
+ internalType: "uint256"
1438
+ }
1439
+ ],
1440
+ stateMutability: "nonpayable"
1441
+ },
1358
1442
  {
1359
1443
  type: "function",
1360
1444
  name: "expireOrders",
@@ -1670,6 +1754,11 @@ var LimitOrdersFacet_default = [
1670
1754
  name: "BatchTooLarge",
1671
1755
  inputs: []
1672
1756
  },
1757
+ {
1758
+ type: "error",
1759
+ name: "BatchTooLarge",
1760
+ inputs: []
1761
+ },
1673
1762
  {
1674
1763
  type: "error",
1675
1764
  name: "InvalidOutcome",
@@ -1692,17 +1781,17 @@ var LimitOrdersFacet_default = [
1692
1781
  },
1693
1782
  {
1694
1783
  type: "error",
1695
- name: "OrderExpired",
1784
+ name: "MarketNotResolved",
1696
1785
  inputs: []
1697
1786
  },
1698
1787
  {
1699
1788
  type: "error",
1700
- name: "TransferFailed",
1789
+ name: "MarketPaused",
1701
1790
  inputs: []
1702
1791
  },
1703
1792
  {
1704
1793
  type: "error",
1705
- name: "TransferFromFailed",
1794
+ name: "OrderExpired",
1706
1795
  inputs: []
1707
1796
  },
1708
1797
  {
@@ -1710,6 +1799,26 @@ var LimitOrdersFacet_default = [
1710
1799
  name: "OrderTooSmall",
1711
1800
  inputs: []
1712
1801
  },
1802
+ {
1803
+ type: "error",
1804
+ name: "ProtocolPaused",
1805
+ inputs: []
1806
+ },
1807
+ {
1808
+ type: "error",
1809
+ name: "TradingAccessDenied",
1810
+ inputs: []
1811
+ },
1812
+ {
1813
+ type: "error",
1814
+ name: "TransferFailed",
1815
+ inputs: []
1816
+ },
1817
+ {
1818
+ type: "error",
1819
+ name: "TransferFromFailed",
1820
+ inputs: []
1821
+ },
1713
1822
  {
1714
1823
  type: "error",
1715
1824
  name: "VenueInactive",
@@ -1719,6 +1828,11 @@ var LimitOrdersFacet_default = [
1719
1828
  type: "error",
1720
1829
  name: "VenueNotFound",
1721
1830
  inputs: []
1831
+ },
1832
+ {
1833
+ type: "error",
1834
+ name: "VenueSuspended",
1835
+ inputs: []
1722
1836
  }
1723
1837
  ];
1724
1838
 
@@ -1883,55 +1997,6 @@ var MatchingFacet_default = [
1883
1997
  ],
1884
1998
  anonymous: false
1885
1999
  },
1886
- {
1887
- type: "event",
1888
- name: "TradeExecuted",
1889
- inputs: [
1890
- {
1891
- name: "marketId",
1892
- type: "uint256",
1893
- indexed: true,
1894
- internalType: "uint256"
1895
- },
1896
- {
1897
- name: "outcomeId",
1898
- type: "uint256",
1899
- indexed: true,
1900
- internalType: "uint256"
1901
- },
1902
- {
1903
- name: "fillId",
1904
- type: "uint256",
1905
- indexed: true,
1906
- internalType: "uint256"
1907
- },
1908
- {
1909
- name: "priceTick",
1910
- type: "uint256",
1911
- indexed: false,
1912
- internalType: "uint256"
1913
- },
1914
- {
1915
- name: "quantity",
1916
- type: "uint256",
1917
- indexed: false,
1918
- internalType: "uint256"
1919
- },
1920
- {
1921
- name: "cumulativeVolume",
1922
- type: "uint256",
1923
- indexed: false,
1924
- internalType: "uint256"
1925
- },
1926
- {
1927
- name: "timestamp",
1928
- type: "uint256",
1929
- indexed: false,
1930
- internalType: "uint256"
1931
- }
1932
- ],
1933
- anonymous: false
1934
- },
1935
2000
  {
1936
2001
  type: "event",
1937
2002
  name: "OrderDeleted",
@@ -2015,7 +2080,7 @@ var MatchingFacet_default = [
2015
2080
  },
2016
2081
  {
2017
2082
  type: "event",
2018
- name: "TopOfBookChanged",
2083
+ name: "SurplusRouted",
2019
2084
  inputs: [
2020
2085
  {
2021
2086
  name: "marketId",
@@ -2024,19 +2089,13 @@ var MatchingFacet_default = [
2024
2089
  internalType: "uint256"
2025
2090
  },
2026
2091
  {
2027
- name: "outcomeId",
2092
+ name: "fillId",
2028
2093
  type: "uint256",
2029
2094
  indexed: true,
2030
2095
  internalType: "uint256"
2031
2096
  },
2032
2097
  {
2033
- name: "side",
2034
- type: "uint8",
2035
- indexed: false,
2036
- internalType: "enum Side"
2037
- },
2038
- {
2039
- name: "bestTick",
2098
+ name: "amount",
2040
2099
  type: "uint256",
2041
2100
  indexed: false,
2042
2101
  internalType: "uint256"
@@ -2045,29 +2104,198 @@ var MatchingFacet_default = [
2045
2104
  anonymous: false
2046
2105
  },
2047
2106
  {
2048
- type: "error",
2049
- name: "ApproveFailed",
2050
- inputs: []
2051
- },
2052
- {
2053
- type: "error",
2054
- name: "MarketNotActive",
2055
- inputs: []
2056
- },
2057
- {
2058
- type: "error",
2059
- name: "TransferFailed",
2060
- inputs: []
2061
- },
2062
- {
2063
- type: "error",
2064
- name: "VenueInactive",
2107
+ type: "event",
2108
+ name: "SurplusRouted",
2109
+ inputs: [
2110
+ {
2111
+ name: "marketId",
2112
+ type: "uint256",
2113
+ indexed: true,
2114
+ internalType: "uint256"
2115
+ },
2116
+ {
2117
+ name: "fillId",
2118
+ type: "uint256",
2119
+ indexed: true,
2120
+ internalType: "uint256"
2121
+ },
2122
+ {
2123
+ name: "amount",
2124
+ type: "uint256",
2125
+ indexed: false,
2126
+ internalType: "uint256"
2127
+ }
2128
+ ],
2129
+ anonymous: false
2130
+ },
2131
+ {
2132
+ type: "event",
2133
+ name: "TopOfBookChanged",
2134
+ inputs: [
2135
+ {
2136
+ name: "marketId",
2137
+ type: "uint256",
2138
+ indexed: true,
2139
+ internalType: "uint256"
2140
+ },
2141
+ {
2142
+ name: "outcomeId",
2143
+ type: "uint256",
2144
+ indexed: true,
2145
+ internalType: "uint256"
2146
+ },
2147
+ {
2148
+ name: "side",
2149
+ type: "uint8",
2150
+ indexed: false,
2151
+ internalType: "enum Side"
2152
+ },
2153
+ {
2154
+ name: "bestTick",
2155
+ type: "uint256",
2156
+ indexed: false,
2157
+ internalType: "uint256"
2158
+ }
2159
+ ],
2160
+ anonymous: false
2161
+ },
2162
+ {
2163
+ type: "event",
2164
+ name: "TradeExecuted",
2165
+ inputs: [
2166
+ {
2167
+ name: "marketId",
2168
+ type: "uint256",
2169
+ indexed: true,
2170
+ internalType: "uint256"
2171
+ },
2172
+ {
2173
+ name: "outcomeId",
2174
+ type: "uint256",
2175
+ indexed: true,
2176
+ internalType: "uint256"
2177
+ },
2178
+ {
2179
+ name: "fillId",
2180
+ type: "uint256",
2181
+ indexed: true,
2182
+ internalType: "uint256"
2183
+ },
2184
+ {
2185
+ name: "priceTick",
2186
+ type: "uint256",
2187
+ indexed: false,
2188
+ internalType: "uint256"
2189
+ },
2190
+ {
2191
+ name: "quantity",
2192
+ type: "uint256",
2193
+ indexed: false,
2194
+ internalType: "uint256"
2195
+ },
2196
+ {
2197
+ name: "cumulativeVolume",
2198
+ type: "uint256",
2199
+ indexed: false,
2200
+ internalType: "uint256"
2201
+ },
2202
+ {
2203
+ name: "timestamp",
2204
+ type: "uint256",
2205
+ indexed: false,
2206
+ internalType: "uint256"
2207
+ }
2208
+ ],
2209
+ anonymous: false
2210
+ },
2211
+ {
2212
+ type: "event",
2213
+ name: "TradeExecuted",
2214
+ inputs: [
2215
+ {
2216
+ name: "marketId",
2217
+ type: "uint256",
2218
+ indexed: true,
2219
+ internalType: "uint256"
2220
+ },
2221
+ {
2222
+ name: "outcomeId",
2223
+ type: "uint256",
2224
+ indexed: true,
2225
+ internalType: "uint256"
2226
+ },
2227
+ {
2228
+ name: "fillId",
2229
+ type: "uint256",
2230
+ indexed: true,
2231
+ internalType: "uint256"
2232
+ },
2233
+ {
2234
+ name: "priceTick",
2235
+ type: "uint256",
2236
+ indexed: false,
2237
+ internalType: "uint256"
2238
+ },
2239
+ {
2240
+ name: "quantity",
2241
+ type: "uint256",
2242
+ indexed: false,
2243
+ internalType: "uint256"
2244
+ },
2245
+ {
2246
+ name: "cumulativeVolume",
2247
+ type: "uint256",
2248
+ indexed: false,
2249
+ internalType: "uint256"
2250
+ },
2251
+ {
2252
+ name: "timestamp",
2253
+ type: "uint256",
2254
+ indexed: false,
2255
+ internalType: "uint256"
2256
+ }
2257
+ ],
2258
+ anonymous: false
2259
+ },
2260
+ {
2261
+ type: "error",
2262
+ name: "ApproveFailed",
2263
+ inputs: []
2264
+ },
2265
+ {
2266
+ type: "error",
2267
+ name: "MarketNotActive",
2268
+ inputs: []
2269
+ },
2270
+ {
2271
+ type: "error",
2272
+ name: "MarketPaused",
2273
+ inputs: []
2274
+ },
2275
+ {
2276
+ type: "error",
2277
+ name: "ProtocolPaused",
2278
+ inputs: []
2279
+ },
2280
+ {
2281
+ type: "error",
2282
+ name: "TransferFailed",
2283
+ inputs: []
2284
+ },
2285
+ {
2286
+ type: "error",
2287
+ name: "VenueInactive",
2065
2288
  inputs: []
2066
2289
  },
2067
2290
  {
2068
2291
  type: "error",
2069
2292
  name: "VenueNotFound",
2070
2293
  inputs: []
2294
+ },
2295
+ {
2296
+ type: "error",
2297
+ name: "VenueSuspended",
2298
+ inputs: []
2071
2299
  }
2072
2300
  ];
2073
2301
 
@@ -2671,6 +2899,11 @@ var MarketGroupFacet_default = [
2671
2899
  ],
2672
2900
  anonymous: false
2673
2901
  },
2902
+ {
2903
+ type: "error",
2904
+ name: "CollateralNotWhitelisted",
2905
+ inputs: []
2906
+ },
2674
2907
  {
2675
2908
  type: "error",
2676
2909
  name: "CreationAccessDenied",
@@ -2691,6 +2924,11 @@ var MarketGroupFacet_default = [
2691
2924
  name: "InvalidQuestion",
2692
2925
  inputs: []
2693
2926
  },
2927
+ {
2928
+ type: "error",
2929
+ name: "InvalidTickSize",
2930
+ inputs: []
2931
+ },
2694
2932
  {
2695
2933
  type: "error",
2696
2934
  name: "MarketGroupNotFound",
@@ -2701,6 +2939,11 @@ var MarketGroupFacet_default = [
2701
2939
  name: "NotGroupCreator",
2702
2940
  inputs: []
2703
2941
  },
2942
+ {
2943
+ type: "error",
2944
+ name: "ProtocolPaused",
2945
+ inputs: []
2946
+ },
2704
2947
  {
2705
2948
  type: "error",
2706
2949
  name: "TooManyTags",
@@ -2720,6 +2963,11 @@ var MarketGroupFacet_default = [
2720
2963
  type: "error",
2721
2964
  name: "VenueNotFound",
2722
2965
  inputs: []
2966
+ },
2967
+ {
2968
+ type: "error",
2969
+ name: "VenueSuspended",
2970
+ inputs: []
2723
2971
  }
2724
2972
  ];
2725
2973
 
@@ -2787,73 +3035,134 @@ var MarketOrdersFacet_default = [
2787
3035
  stateMutability: "nonpayable"
2788
3036
  },
2789
3037
  {
2790
- type: "event",
2791
- name: "FeesDistributed",
3038
+ type: "function",
3039
+ name: "placeMarketSell",
2792
3040
  inputs: [
2793
3041
  {
2794
3042
  name: "marketId",
2795
3043
  type: "uint256",
2796
- indexed: true,
2797
- internalType: "uint256"
2798
- },
2799
- {
2800
- name: "fillId",
2801
- type: "uint256",
2802
- indexed: true,
2803
- internalType: "uint256"
2804
- },
2805
- {
2806
- name: "protocolFee",
2807
- type: "uint256",
2808
- indexed: false,
2809
3044
  internalType: "uint256"
2810
3045
  },
2811
3046
  {
2812
- name: "venueNetFee",
3047
+ name: "outcomeId",
2813
3048
  type: "uint256",
2814
- indexed: false,
2815
3049
  internalType: "uint256"
2816
3050
  },
2817
3051
  {
2818
- name: "creatorFee",
3052
+ name: "tokenAmount",
2819
3053
  type: "uint256",
2820
- indexed: false,
2821
3054
  internalType: "uint256"
2822
3055
  },
2823
3056
  {
2824
- name: "operatorFee",
3057
+ name: "minPriceTick",
2825
3058
  type: "uint256",
2826
- indexed: false,
2827
3059
  internalType: "uint256"
2828
3060
  },
2829
3061
  {
2830
- name: "totalFee",
2831
- type: "uint256",
2832
- indexed: false,
2833
- internalType: "uint256"
3062
+ name: "orderType",
3063
+ type: "uint8",
3064
+ internalType: "enum MarketOrderType"
2834
3065
  }
2835
3066
  ],
2836
- anonymous: false
2837
- },
2838
- {
2839
- type: "event",
2840
- name: "MarketOrderExecuted",
2841
- inputs: [
2842
- {
2843
- name: "buyer",
2844
- type: "address",
2845
- indexed: true,
2846
- internalType: "address"
2847
- },
2848
- {
2849
- name: "marketId",
2850
- type: "uint256",
2851
- indexed: true,
2852
- internalType: "uint256"
2853
- },
3067
+ outputs: [
2854
3068
  {
2855
- name: "outcomeId",
2856
- type: "uint256",
3069
+ name: "result",
3070
+ type: "tuple",
3071
+ internalType: "struct MarketSellResult",
3072
+ components: [
3073
+ {
3074
+ name: "tokensSold",
3075
+ type: "uint256",
3076
+ internalType: "uint256"
3077
+ },
3078
+ {
3079
+ name: "avgPrice",
3080
+ type: "uint256",
3081
+ internalType: "uint256"
3082
+ },
3083
+ {
3084
+ name: "collateralReceived",
3085
+ type: "uint256",
3086
+ internalType: "uint256"
3087
+ },
3088
+ {
3089
+ name: "unsoldTokens",
3090
+ type: "uint256",
3091
+ internalType: "uint256"
3092
+ }
3093
+ ]
3094
+ }
3095
+ ],
3096
+ stateMutability: "nonpayable"
3097
+ },
3098
+ {
3099
+ type: "event",
3100
+ name: "FeesDistributed",
3101
+ inputs: [
3102
+ {
3103
+ name: "marketId",
3104
+ type: "uint256",
3105
+ indexed: true,
3106
+ internalType: "uint256"
3107
+ },
3108
+ {
3109
+ name: "fillId",
3110
+ type: "uint256",
3111
+ indexed: true,
3112
+ internalType: "uint256"
3113
+ },
3114
+ {
3115
+ name: "protocolFee",
3116
+ type: "uint256",
3117
+ indexed: false,
3118
+ internalType: "uint256"
3119
+ },
3120
+ {
3121
+ name: "venueNetFee",
3122
+ type: "uint256",
3123
+ indexed: false,
3124
+ internalType: "uint256"
3125
+ },
3126
+ {
3127
+ name: "creatorFee",
3128
+ type: "uint256",
3129
+ indexed: false,
3130
+ internalType: "uint256"
3131
+ },
3132
+ {
3133
+ name: "operatorFee",
3134
+ type: "uint256",
3135
+ indexed: false,
3136
+ internalType: "uint256"
3137
+ },
3138
+ {
3139
+ name: "totalFee",
3140
+ type: "uint256",
3141
+ indexed: false,
3142
+ internalType: "uint256"
3143
+ }
3144
+ ],
3145
+ anonymous: false
3146
+ },
3147
+ {
3148
+ type: "event",
3149
+ name: "MarketOrderExecuted",
3150
+ inputs: [
3151
+ {
3152
+ name: "buyer",
3153
+ type: "address",
3154
+ indexed: true,
3155
+ internalType: "address"
3156
+ },
3157
+ {
3158
+ name: "marketId",
3159
+ type: "uint256",
3160
+ indexed: true,
3161
+ internalType: "uint256"
3162
+ },
3163
+ {
3164
+ name: "outcomeId",
3165
+ type: "uint256",
2857
3166
  indexed: false,
2858
3167
  internalType: "uint256"
2859
3168
  },
@@ -2884,6 +3193,55 @@ var MarketOrdersFacet_default = [
2884
3193
  ],
2885
3194
  anonymous: false
2886
3195
  },
3196
+ {
3197
+ type: "event",
3198
+ name: "MarketSellExecuted",
3199
+ inputs: [
3200
+ {
3201
+ name: "seller",
3202
+ type: "address",
3203
+ indexed: true,
3204
+ internalType: "address"
3205
+ },
3206
+ {
3207
+ name: "marketId",
3208
+ type: "uint256",
3209
+ indexed: true,
3210
+ internalType: "uint256"
3211
+ },
3212
+ {
3213
+ name: "outcomeId",
3214
+ type: "uint256",
3215
+ indexed: false,
3216
+ internalType: "uint256"
3217
+ },
3218
+ {
3219
+ name: "tokensSold",
3220
+ type: "uint256",
3221
+ indexed: false,
3222
+ internalType: "uint256"
3223
+ },
3224
+ {
3225
+ name: "collateralReceived",
3226
+ type: "uint256",
3227
+ indexed: false,
3228
+ internalType: "uint256"
3229
+ },
3230
+ {
3231
+ name: "avgPrice",
3232
+ type: "uint256",
3233
+ indexed: false,
3234
+ internalType: "uint256"
3235
+ },
3236
+ {
3237
+ name: "unsoldTokens",
3238
+ type: "uint256",
3239
+ indexed: false,
3240
+ internalType: "uint256"
3241
+ }
3242
+ ],
3243
+ anonymous: false
3244
+ },
2887
3245
  {
2888
3246
  type: "event",
2889
3247
  name: "OrderDeleted",
@@ -2963,6 +3321,11 @@ var MarketOrdersFacet_default = [
2963
3321
  name: "InvalidMaxPrice",
2964
3322
  inputs: []
2965
3323
  },
3324
+ {
3325
+ type: "error",
3326
+ name: "InvalidMinPrice",
3327
+ inputs: []
3328
+ },
2966
3329
  {
2967
3330
  type: "error",
2968
3331
  name: "InvalidOutcome",
@@ -2975,17 +3338,32 @@ var MarketOrdersFacet_default = [
2975
3338
  },
2976
3339
  {
2977
3340
  type: "error",
2978
- name: "TransferFailed",
3341
+ name: "MarketPaused",
2979
3342
  inputs: []
2980
3343
  },
2981
3344
  {
2982
3345
  type: "error",
2983
- name: "TransferFromFailed",
3346
+ name: "NoLiquidityAvailable",
2984
3347
  inputs: []
2985
3348
  },
2986
3349
  {
2987
3350
  type: "error",
2988
- name: "ZeroCollateralAmount",
3351
+ name: "ProtocolPaused",
3352
+ inputs: []
3353
+ },
3354
+ {
3355
+ type: "error",
3356
+ name: "TradingAccessDenied",
3357
+ inputs: []
3358
+ },
3359
+ {
3360
+ type: "error",
3361
+ name: "TransferFailed",
3362
+ inputs: []
3363
+ },
3364
+ {
3365
+ type: "error",
3366
+ name: "TransferFromFailed",
2989
3367
  inputs: []
2990
3368
  },
2991
3369
  {
@@ -2997,6 +3375,21 @@ var MarketOrdersFacet_default = [
2997
3375
  type: "error",
2998
3376
  name: "VenueNotFound",
2999
3377
  inputs: []
3378
+ },
3379
+ {
3380
+ type: "error",
3381
+ name: "VenueSuspended",
3382
+ inputs: []
3383
+ },
3384
+ {
3385
+ type: "error",
3386
+ name: "ZeroCollateralAmount",
3387
+ inputs: []
3388
+ },
3389
+ {
3390
+ type: "error",
3391
+ name: "ZeroTokenAmount",
3392
+ inputs: []
3000
3393
  }
3001
3394
  ];
3002
3395
 
@@ -3211,6 +3604,50 @@ var ResolutionFacet_default = [
3211
3604
  ],
3212
3605
  anonymous: false
3213
3606
  },
3607
+ {
3608
+ type: "event",
3609
+ name: "MarketGroupResolved",
3610
+ inputs: [
3611
+ {
3612
+ name: "groupId",
3613
+ type: "uint256",
3614
+ indexed: true,
3615
+ internalType: "uint256"
3616
+ },
3617
+ {
3618
+ name: "winningMarketId",
3619
+ type: "uint256",
3620
+ indexed: true,
3621
+ internalType: "uint256"
3622
+ }
3623
+ ],
3624
+ anonymous: false
3625
+ },
3626
+ {
3627
+ type: "event",
3628
+ name: "MarketResolved",
3629
+ inputs: [
3630
+ {
3631
+ name: "marketId",
3632
+ type: "uint256",
3633
+ indexed: true,
3634
+ internalType: "uint256"
3635
+ },
3636
+ {
3637
+ name: "questionId",
3638
+ type: "bytes32",
3639
+ indexed: true,
3640
+ internalType: "bytes32"
3641
+ },
3642
+ {
3643
+ name: "outcome",
3644
+ type: "string",
3645
+ indexed: false,
3646
+ internalType: "string"
3647
+ }
3648
+ ],
3649
+ anonymous: false
3650
+ },
3214
3651
  {
3215
3652
  type: "event",
3216
3653
  name: "MarketResolved",
@@ -3381,20 +3818,109 @@ var VaultFacet_default = [
3381
3818
  stateMutability: "nonpayable"
3382
3819
  },
3383
3820
  {
3384
- type: "error",
3385
- name: "ApproveFailed",
3386
- inputs: []
3821
+ type: "event",
3822
+ name: "CtfUpdated",
3823
+ inputs: [
3824
+ {
3825
+ name: "ctf",
3826
+ type: "address",
3827
+ indexed: true,
3828
+ internalType: "address"
3829
+ }
3830
+ ],
3831
+ anonymous: false
3387
3832
  },
3388
3833
  {
3389
- type: "error",
3390
- name: "MarketNotActive",
3391
- inputs: []
3834
+ type: "event",
3835
+ name: "PositionSplit",
3836
+ inputs: [
3837
+ {
3838
+ name: "trader",
3839
+ type: "address",
3840
+ indexed: true,
3841
+ internalType: "address"
3842
+ },
3843
+ {
3844
+ name: "marketId",
3845
+ type: "uint256",
3846
+ indexed: true,
3847
+ internalType: "uint256"
3848
+ },
3849
+ {
3850
+ name: "amount",
3851
+ type: "uint256",
3852
+ indexed: false,
3853
+ internalType: "uint256"
3854
+ }
3855
+ ],
3856
+ anonymous: false
3857
+ },
3858
+ {
3859
+ type: "event",
3860
+ name: "PositionsMerged",
3861
+ inputs: [
3862
+ {
3863
+ name: "trader",
3864
+ type: "address",
3865
+ indexed: true,
3866
+ internalType: "address"
3867
+ },
3868
+ {
3869
+ name: "marketId",
3870
+ type: "uint256",
3871
+ indexed: true,
3872
+ internalType: "uint256"
3873
+ },
3874
+ {
3875
+ name: "amount",
3876
+ type: "uint256",
3877
+ indexed: false,
3878
+ internalType: "uint256"
3879
+ }
3880
+ ],
3881
+ anonymous: false
3882
+ },
3883
+ {
3884
+ type: "error",
3885
+ name: "ApproveFailed",
3886
+ inputs: []
3887
+ },
3888
+ {
3889
+ type: "error",
3890
+ name: "MarketNotActive",
3891
+ inputs: []
3392
3892
  },
3393
3893
  {
3394
3894
  type: "error",
3395
3895
  name: "MarketNotFound",
3396
3896
  inputs: []
3397
3897
  },
3898
+ {
3899
+ type: "error",
3900
+ name: "MarketPaused",
3901
+ inputs: []
3902
+ },
3903
+ {
3904
+ type: "error",
3905
+ name: "NotContractOwner",
3906
+ inputs: [
3907
+ {
3908
+ name: "_user",
3909
+ type: "address",
3910
+ internalType: "address"
3911
+ },
3912
+ {
3913
+ name: "_contractOwner",
3914
+ type: "address",
3915
+ internalType: "address"
3916
+ }
3917
+ ]
3918
+ },
3919
+ {
3920
+ type: "error",
3921
+ name: "ProtocolPaused",
3922
+ inputs: []
3923
+ },
3398
3924
  {
3399
3925
  type: "error",
3400
3926
  name: "TransferFailed",
@@ -3404,6 +3930,21 @@ var VaultFacet_default = [
3404
3930
  type: "error",
3405
3931
  name: "TransferFromFailed",
3406
3932
  inputs: []
3933
+ },
3934
+ {
3935
+ type: "error",
3936
+ name: "VenueInactive",
3937
+ inputs: []
3938
+ },
3939
+ {
3940
+ type: "error",
3941
+ name: "VenueNotFound",
3942
+ inputs: []
3943
+ },
3944
+ {
3945
+ type: "error",
3946
+ name: "VenueSuspended",
3947
+ inputs: []
3407
3948
  }
3408
3949
  ];
3409
3950
 
@@ -3480,6 +4021,19 @@ var NegRiskFacet_default = [
3480
4021
 
3481
4022
  // src/contracts/abis/ProtocolFacet.json
3482
4023
  var ProtocolFacet_default = [
4024
+ {
4025
+ type: "function",
4026
+ name: "getProtocolPaused",
4027
+ inputs: [],
4028
+ outputs: [
4029
+ {
4030
+ name: "",
4031
+ type: "bool",
4032
+ internalType: "bool"
4033
+ }
4034
+ ],
4035
+ stateMutability: "view"
4036
+ },
3483
4037
  {
3484
4038
  type: "function",
3485
4039
  name: "getProtocolTreasury",
@@ -3519,6 +4073,69 @@ var ProtocolFacet_default = [
3519
4073
  ],
3520
4074
  stateMutability: "view"
3521
4075
  },
4076
+ {
4077
+ type: "function",
4078
+ name: "getVenueSuspended",
4079
+ inputs: [
4080
+ {
4081
+ name: "venueId",
4082
+ type: "uint256",
4083
+ internalType: "uint256"
4084
+ }
4085
+ ],
4086
+ outputs: [
4087
+ {
4088
+ name: "",
4089
+ type: "bool",
4090
+ internalType: "bool"
4091
+ }
4092
+ ],
4093
+ stateMutability: "view"
4094
+ },
4095
+ {
4096
+ type: "function",
4097
+ name: "isCollateralWhitelisted",
4098
+ inputs: [
4099
+ {
4100
+ name: "token",
4101
+ type: "address",
4102
+ internalType: "address"
4103
+ }
4104
+ ],
4105
+ outputs: [
4106
+ {
4107
+ name: "",
4108
+ type: "bool",
4109
+ internalType: "bool"
4110
+ }
4111
+ ],
4112
+ stateMutability: "view"
4113
+ },
4114
+ {
4115
+ type: "function",
4116
+ name: "pauseProtocol",
4117
+ inputs: [],
4118
+ outputs: [],
4119
+ stateMutability: "nonpayable"
4120
+ },
4121
+ {
4122
+ type: "function",
4123
+ name: "setCollateralWhitelisted",
4124
+ inputs: [
4125
+ {
4126
+ name: "token",
4127
+ type: "address",
4128
+ internalType: "address"
4129
+ },
4130
+ {
4131
+ name: "whitelisted",
4132
+ type: "bool",
4133
+ internalType: "bool"
4134
+ }
4135
+ ],
4136
+ outputs: [],
4137
+ stateMutability: "nonpayable"
4138
+ },
3522
4139
  {
3523
4140
  type: "function",
3524
4141
  name: "setProtocolTreasury",
@@ -3558,6 +4175,62 @@ var ProtocolFacet_default = [
3558
4175
  outputs: [],
3559
4176
  stateMutability: "nonpayable"
3560
4177
  },
4178
+ {
4179
+ type: "function",
4180
+ name: "suspendVenue",
4181
+ inputs: [
4182
+ {
4183
+ name: "venueId",
4184
+ type: "uint256",
4185
+ internalType: "uint256"
4186
+ }
4187
+ ],
4188
+ outputs: [],
4189
+ stateMutability: "nonpayable"
4190
+ },
4191
+ {
4192
+ type: "function",
4193
+ name: "unpauseProtocol",
4194
+ inputs: [],
4195
+ outputs: [],
4196
+ stateMutability: "nonpayable"
4197
+ },
4198
+ {
4199
+ type: "function",
4200
+ name: "unsuspendVenue",
4201
+ inputs: [
4202
+ {
4203
+ name: "venueId",
4204
+ type: "uint256",
4205
+ internalType: "uint256"
4206
+ }
4207
+ ],
4208
+ outputs: [],
4209
+ stateMutability: "nonpayable"
4210
+ },
4211
+ {
4212
+ type: "function",
4213
+ name: "withdrawERC20",
4214
+ inputs: [
4215
+ {
4216
+ name: "token",
4217
+ type: "address",
4218
+ internalType: "address"
4219
+ },
4220
+ {
4221
+ name: "recipient",
4222
+ type: "address",
4223
+ internalType: "address"
4224
+ },
4225
+ {
4226
+ name: "amount",
4227
+ type: "uint256",
4228
+ internalType: "uint256"
4229
+ }
4230
+ ],
4231
+ outputs: [],
4232
+ stateMutability: "nonpayable"
4233
+ },
3561
4234
  {
3562
4235
  type: "function",
3563
4236
  name: "withdrawETH",
@@ -3571,6 +4244,50 @@ var ProtocolFacet_default = [
3571
4244
  outputs: [],
3572
4245
  stateMutability: "nonpayable"
3573
4246
  },
4247
+ {
4248
+ type: "event",
4249
+ name: "CollateralWhitelistUpdated",
4250
+ inputs: [
4251
+ {
4252
+ name: "token",
4253
+ type: "address",
4254
+ indexed: true,
4255
+ internalType: "address"
4256
+ },
4257
+ {
4258
+ name: "whitelisted",
4259
+ type: "bool",
4260
+ indexed: false,
4261
+ internalType: "bool"
4262
+ }
4263
+ ],
4264
+ anonymous: false
4265
+ },
4266
+ {
4267
+ type: "event",
4268
+ name: "ERC20Withdrawn",
4269
+ inputs: [
4270
+ {
4271
+ name: "token",
4272
+ type: "address",
4273
+ indexed: true,
4274
+ internalType: "address"
4275
+ },
4276
+ {
4277
+ name: "recipient",
4278
+ type: "address",
4279
+ indexed: true,
4280
+ internalType: "address"
4281
+ },
4282
+ {
4283
+ name: "amount",
4284
+ type: "uint256",
4285
+ indexed: false,
4286
+ internalType: "uint256"
4287
+ }
4288
+ ],
4289
+ anonymous: false
4290
+ },
3574
4291
  {
3575
4292
  type: "event",
3576
4293
  name: "EthWithdrawn",
@@ -3590,6 +4307,19 @@ var ProtocolFacet_default = [
3590
4307
  ],
3591
4308
  anonymous: false
3592
4309
  },
4310
+ {
4311
+ type: "event",
4312
+ name: "ProtocolPausedEvent",
4313
+ inputs: [
4314
+ {
4315
+ name: "caller",
4316
+ type: "address",
4317
+ indexed: true,
4318
+ internalType: "address"
4319
+ }
4320
+ ],
4321
+ anonymous: false
4322
+ },
3593
4323
  {
3594
4324
  type: "event",
3595
4325
  name: "ProtocolTreasuryUpdated",
@@ -3603,6 +4333,19 @@ var ProtocolFacet_default = [
3603
4333
  ],
3604
4334
  anonymous: false
3605
4335
  },
4336
+ {
4337
+ type: "event",
4338
+ name: "ProtocolUnpausedEvent",
4339
+ inputs: [
4340
+ {
4341
+ name: "caller",
4342
+ type: "address",
4343
+ indexed: true,
4344
+ internalType: "address"
4345
+ }
4346
+ ],
4347
+ anonymous: false
4348
+ },
3606
4349
  {
3607
4350
  type: "event",
3608
4351
  name: "UmaIdentifierUpdated",
@@ -3629,6 +4372,44 @@ var ProtocolFacet_default = [
3629
4372
  ],
3630
4373
  anonymous: false
3631
4374
  },
4375
+ {
4376
+ type: "event",
4377
+ name: "VenueSuspendedEvent",
4378
+ inputs: [
4379
+ {
4380
+ name: "venueId",
4381
+ type: "uint256",
4382
+ indexed: true,
4383
+ internalType: "uint256"
4384
+ },
4385
+ {
4386
+ name: "caller",
4387
+ type: "address",
4388
+ indexed: true,
4389
+ internalType: "address"
4390
+ }
4391
+ ],
4392
+ anonymous: false
4393
+ },
4394
+ {
4395
+ type: "event",
4396
+ name: "VenueUnsuspendedEvent",
4397
+ inputs: [
4398
+ {
4399
+ name: "venueId",
4400
+ type: "uint256",
4401
+ indexed: true,
4402
+ internalType: "uint256"
4403
+ },
4404
+ {
4405
+ name: "caller",
4406
+ type: "address",
4407
+ indexed: true,
4408
+ internalType: "address"
4409
+ }
4410
+ ],
4411
+ anonymous: false
4412
+ },
3632
4413
  {
3633
4414
  type: "error",
3634
4415
  name: "NotContractOwner",
@@ -3644,6 +4425,16 @@ var ProtocolFacet_default = [
3644
4425
  internalType: "address"
3645
4426
  }
3646
4427
  ]
4428
+ },
4429
+ {
4430
+ type: "error",
4431
+ name: "TransferFailed",
4432
+ inputs: []
4433
+ },
4434
+ {
4435
+ type: "error",
4436
+ name: "VenueNotFound",
4437
+ inputs: []
3647
4438
  }
3648
4439
  ];
3649
4440
 
@@ -3653,11 +4444,23 @@ var AccessControlFacet_default = [
3653
4444
  type: "function",
3654
4445
  name: "canTradeOnMarket",
3655
4446
  inputs: [
3656
- { name: "user", type: "address", internalType: "address" },
3657
- { name: "marketId", type: "uint256", internalType: "uint256" }
4447
+ {
4448
+ name: "user",
4449
+ type: "address",
4450
+ internalType: "address"
4451
+ },
4452
+ {
4453
+ name: "marketId",
4454
+ type: "uint256",
4455
+ internalType: "uint256"
4456
+ }
3658
4457
  ],
3659
4458
  outputs: [
3660
- { name: "", type: "bool", internalType: "bool" }
4459
+ {
4460
+ name: "",
4461
+ type: "bool",
4462
+ internalType: "bool"
4463
+ }
3661
4464
  ],
3662
4465
  stateMutability: "view"
3663
4466
  },
@@ -3665,12 +4468,28 @@ var AccessControlFacet_default = [
3665
4468
  type: "function",
3666
4469
  name: "deployNFTGatedAC",
3667
4470
  inputs: [
3668
- { name: "nftContract", type: "address", internalType: "address" },
3669
- { name: "isERC1155", type: "bool", internalType: "bool" },
3670
- { name: "tokenId", type: "uint256", internalType: "uint256" }
4471
+ {
4472
+ name: "nftContract",
4473
+ type: "address",
4474
+ internalType: "address"
4475
+ },
4476
+ {
4477
+ name: "isERC1155",
4478
+ type: "bool",
4479
+ internalType: "bool"
4480
+ },
4481
+ {
4482
+ name: "tokenId",
4483
+ type: "uint256",
4484
+ internalType: "uint256"
4485
+ }
3671
4486
  ],
3672
4487
  outputs: [
3673
- { name: "acContract", type: "address", internalType: "address" }
4488
+ {
4489
+ name: "acContract",
4490
+ type: "address",
4491
+ internalType: "address"
4492
+ }
3674
4493
  ],
3675
4494
  stateMutability: "nonpayable"
3676
4495
  },
@@ -3678,11 +4497,23 @@ var AccessControlFacet_default = [
3678
4497
  type: "function",
3679
4498
  name: "deployTokenGatedAC",
3680
4499
  inputs: [
3681
- { name: "token", type: "address", internalType: "address" },
3682
- { name: "minBalance", type: "uint256", internalType: "uint256" }
4500
+ {
4501
+ name: "token",
4502
+ type: "address",
4503
+ internalType: "address"
4504
+ },
4505
+ {
4506
+ name: "minBalance",
4507
+ type: "uint256",
4508
+ internalType: "uint256"
4509
+ }
3683
4510
  ],
3684
4511
  outputs: [
3685
- { name: "acContract", type: "address", internalType: "address" }
4512
+ {
4513
+ name: "acContract",
4514
+ type: "address",
4515
+ internalType: "address"
4516
+ }
3686
4517
  ],
3687
4518
  stateMutability: "nonpayable"
3688
4519
  },
@@ -3691,7 +4522,11 @@ var AccessControlFacet_default = [
3691
4522
  name: "deployWhitelistAC",
3692
4523
  inputs: [],
3693
4524
  outputs: [
3694
- { name: "acContract", type: "address", internalType: "address" }
4525
+ {
4526
+ name: "acContract",
4527
+ type: "address",
4528
+ internalType: "address"
4529
+ }
3695
4530
  ],
3696
4531
  stateMutability: "nonpayable"
3697
4532
  },
@@ -3699,10 +4534,18 @@ var AccessControlFacet_default = [
3699
4534
  type: "function",
3700
4535
  name: "getMarketTradingAccessControl",
3701
4536
  inputs: [
3702
- { name: "marketId", type: "uint256", internalType: "uint256" }
4537
+ {
4538
+ name: "marketId",
4539
+ type: "uint256",
4540
+ internalType: "uint256"
4541
+ }
3703
4542
  ],
3704
4543
  outputs: [
3705
- { name: "", type: "address", internalType: "address" }
4544
+ {
4545
+ name: "",
4546
+ type: "address",
4547
+ internalType: "address"
4548
+ }
3706
4549
  ],
3707
4550
  stateMutability: "view"
3708
4551
  },
@@ -3710,7 +4553,11 @@ var AccessControlFacet_default = [
3710
4553
  type: "function",
3711
4554
  name: "removeMarketTradingAccessControl",
3712
4555
  inputs: [
3713
- { name: "marketId", type: "uint256", internalType: "uint256" }
4556
+ {
4557
+ name: "marketId",
4558
+ type: "uint256",
4559
+ internalType: "uint256"
4560
+ }
3714
4561
  ],
3715
4562
  outputs: [],
3716
4563
  stateMutability: "nonpayable"
@@ -3719,8 +4566,16 @@ var AccessControlFacet_default = [
3719
4566
  type: "function",
3720
4567
  name: "setMarketTradingAccessControl",
3721
4568
  inputs: [
3722
- { name: "marketId", type: "uint256", internalType: "uint256" },
3723
- { name: "acContract", type: "address", internalType: "address" }
4569
+ {
4570
+ name: "marketId",
4571
+ type: "uint256",
4572
+ internalType: "uint256"
4573
+ },
4574
+ {
4575
+ name: "acContract",
4576
+ type: "address",
4577
+ internalType: "address"
4578
+ }
3724
4579
  ],
3725
4580
  outputs: [],
3726
4581
  stateMutability: "nonpayable"
@@ -3729,9 +4584,24 @@ var AccessControlFacet_default = [
3729
4584
  type: "event",
3730
4585
  name: "AccessControlDeployed",
3731
4586
  inputs: [
3732
- { name: "deployer", type: "address", indexed: true, internalType: "address" },
3733
- { name: "acContract", type: "address", indexed: true, internalType: "address" },
3734
- { name: "acType", type: "string", indexed: false, internalType: "string" }
4587
+ {
4588
+ name: "deployer",
4589
+ type: "address",
4590
+ indexed: true,
4591
+ internalType: "address"
4592
+ },
4593
+ {
4594
+ name: "acContract",
4595
+ type: "address",
4596
+ indexed: true,
4597
+ internalType: "address"
4598
+ },
4599
+ {
4600
+ name: "acType",
4601
+ type: "string",
4602
+ indexed: false,
4603
+ internalType: "string"
4604
+ }
3735
4605
  ],
3736
4606
  anonymous: false
3737
4607
  },
@@ -3739,7 +4609,12 @@ var AccessControlFacet_default = [
3739
4609
  type: "event",
3740
4610
  name: "MarketTradingAccessControlRemoved",
3741
4611
  inputs: [
3742
- { name: "marketId", type: "uint256", indexed: true, internalType: "uint256" }
4612
+ {
4613
+ name: "marketId",
4614
+ type: "uint256",
4615
+ indexed: true,
4616
+ internalType: "uint256"
4617
+ }
3743
4618
  ],
3744
4619
  anonymous: false
3745
4620
  },
@@ -3747,10 +4622,45 @@ var AccessControlFacet_default = [
3747
4622
  type: "event",
3748
4623
  name: "MarketTradingAccessControlSet",
3749
4624
  inputs: [
3750
- { name: "marketId", type: "uint256", indexed: true, internalType: "uint256" },
3751
- { name: "acContract", type: "address", indexed: true, internalType: "address" }
4625
+ {
4626
+ name: "marketId",
4627
+ type: "uint256",
4628
+ indexed: true,
4629
+ internalType: "uint256"
4630
+ },
4631
+ {
4632
+ name: "acContract",
4633
+ type: "address",
4634
+ indexed: true,
4635
+ internalType: "address"
4636
+ }
3752
4637
  ],
3753
4638
  anonymous: false
4639
+ },
4640
+ {
4641
+ type: "error",
4642
+ name: "OnlyVenueOperator",
4643
+ inputs: []
4644
+ },
4645
+ {
4646
+ type: "error",
4647
+ name: "ProtocolPaused",
4648
+ inputs: []
4649
+ },
4650
+ {
4651
+ type: "error",
4652
+ name: "VenueInactive",
4653
+ inputs: []
4654
+ },
4655
+ {
4656
+ type: "error",
4657
+ name: "VenueNotFound",
4658
+ inputs: []
4659
+ },
4660
+ {
4661
+ type: "error",
4662
+ name: "VenueSuspended",
4663
+ inputs: []
3754
4664
  }
3755
4665
  ];
3756
4666
 
@@ -3856,10 +4766,10 @@ var TagsFacet_default = [
3856
4766
  var MetadataFacet_default = [
3857
4767
  {
3858
4768
  type: "function",
3859
- name: "updateMarketMetadata",
4769
+ name: "updateMarketGroupMetadata",
3860
4770
  inputs: [
3861
4771
  {
3862
- name: "marketId",
4772
+ name: "groupId",
3863
4773
  type: "uint256",
3864
4774
  internalType: "uint256"
3865
4775
  },
@@ -3874,10 +4784,10 @@ var MetadataFacet_default = [
3874
4784
  },
3875
4785
  {
3876
4786
  type: "function",
3877
- name: "updateMarketGroupMetadata",
4787
+ name: "updateMarketMetadata",
3878
4788
  inputs: [
3879
4789
  {
3880
- name: "groupId",
4790
+ name: "marketId",
3881
4791
  type: "uint256",
3882
4792
  internalType: "uint256"
3883
4793
  },
@@ -3892,10 +4802,10 @@ var MetadataFacet_default = [
3892
4802
  },
3893
4803
  {
3894
4804
  type: "event",
3895
- name: "MarketMetadataUpdated",
4805
+ name: "MarketGroupMetadataUpdated",
3896
4806
  inputs: [
3897
4807
  {
3898
- name: "marketId",
4808
+ name: "groupId",
3899
4809
  type: "uint256",
3900
4810
  indexed: true,
3901
4811
  internalType: "uint256"
@@ -3911,10 +4821,10 @@ var MetadataFacet_default = [
3911
4821
  },
3912
4822
  {
3913
4823
  type: "event",
3914
- name: "MarketGroupMetadataUpdated",
4824
+ name: "MarketMetadataUpdated",
3915
4825
  inputs: [
3916
4826
  {
3917
- name: "groupId",
4827
+ name: "marketId",
3918
4828
  type: "uint256",
3919
4829
  indexed: true,
3920
4830
  internalType: "uint256"
@@ -4264,25 +5174,6 @@ var PythResolutionFacet_default = [
4264
5174
  ],
4265
5175
  anonymous: false
4266
5176
  },
4267
- {
4268
- type: "event",
4269
- name: "MarketGroupResolved",
4270
- inputs: [
4271
- {
4272
- name: "groupId",
4273
- type: "uint256",
4274
- indexed: true,
4275
- internalType: "uint256"
4276
- },
4277
- {
4278
- name: "winningMarketId",
4279
- type: "uint256",
4280
- indexed: true,
4281
- internalType: "uint256"
4282
- }
4283
- ],
4284
- anonymous: false
4285
- },
4286
5177
  {
4287
5178
  type: "event",
4288
5179
  name: "MarketResolved",
@@ -4507,16 +5398,6 @@ var PythResolutionFacet_default = [
4507
5398
  name: "InvalidTickSize",
4508
5399
  inputs: []
4509
5400
  },
4510
- {
4511
- type: "error",
4512
- name: "InvalidTickSize",
4513
- inputs: []
4514
- },
4515
- {
4516
- type: "error",
4517
- name: "InvalidTickSize",
4518
- inputs: []
4519
- },
4520
5401
  {
4521
5402
  type: "error",
4522
5403
  name: "MarketNotActive",
@@ -4963,11 +5844,26 @@ var BatchOrdersFacet_default = [
4963
5844
 
4964
5845
  // src/contracts/abis/WhitelistAccessControl.json
4965
5846
  var WhitelistAccessControl_default = [
5847
+ {
5848
+ type: "constructor",
5849
+ inputs: [
5850
+ {
5851
+ name: "_owner",
5852
+ type: "address",
5853
+ internalType: "address"
5854
+ }
5855
+ ],
5856
+ stateMutability: "nonpayable"
5857
+ },
4966
5858
  {
4967
5859
  type: "function",
4968
5860
  name: "addToWhitelist",
4969
5861
  inputs: [
4970
- { name: "users", type: "address[]", internalType: "address[]" }
5862
+ {
5863
+ name: "users",
5864
+ type: "address[]",
5865
+ internalType: "address[]"
5866
+ }
4971
5867
  ],
4972
5868
  outputs: [],
4973
5869
  stateMutability: "nonpayable"
@@ -4976,10 +5872,18 @@ var WhitelistAccessControl_default = [
4976
5872
  type: "function",
4977
5873
  name: "isAllowed",
4978
5874
  inputs: [
4979
- { name: "user", type: "address", internalType: "address" }
5875
+ {
5876
+ name: "user",
5877
+ type: "address",
5878
+ internalType: "address"
5879
+ }
4980
5880
  ],
4981
5881
  outputs: [
4982
- { name: "", type: "bool", internalType: "bool" }
5882
+ {
5883
+ name: "",
5884
+ type: "bool",
5885
+ internalType: "bool"
5886
+ }
4983
5887
  ],
4984
5888
  stateMutability: "view"
4985
5889
  },
@@ -4988,7 +5892,11 @@ var WhitelistAccessControl_default = [
4988
5892
  name: "owner",
4989
5893
  inputs: [],
4990
5894
  outputs: [
4991
- { name: "", type: "address", internalType: "address" }
5895
+ {
5896
+ name: "",
5897
+ type: "address",
5898
+ internalType: "address"
5899
+ }
4992
5900
  ],
4993
5901
  stateMutability: "view"
4994
5902
  },
@@ -4996,7 +5904,11 @@ var WhitelistAccessControl_default = [
4996
5904
  type: "function",
4997
5905
  name: "removeFromWhitelist",
4998
5906
  inputs: [
4999
- { name: "users", type: "address[]", internalType: "address[]" }
5907
+ {
5908
+ name: "users",
5909
+ type: "address[]",
5910
+ internalType: "address[]"
5911
+ }
5000
5912
  ],
5001
5913
  outputs: [],
5002
5914
  stateMutability: "nonpayable"
@@ -5005,7 +5917,11 @@ var WhitelistAccessControl_default = [
5005
5917
  type: "function",
5006
5918
  name: "transferOwnership",
5007
5919
  inputs: [
5008
- { name: "newOwner", type: "address", internalType: "address" }
5920
+ {
5921
+ name: "newOwner",
5922
+ type: "address",
5923
+ internalType: "address"
5924
+ }
5009
5925
  ],
5010
5926
  outputs: [],
5011
5927
  stateMutability: "nonpayable"
@@ -5014,10 +5930,18 @@ var WhitelistAccessControl_default = [
5014
5930
  type: "function",
5015
5931
  name: "whitelist",
5016
5932
  inputs: [
5017
- { name: "", type: "address", internalType: "address" }
5933
+ {
5934
+ name: "",
5935
+ type: "address",
5936
+ internalType: "address"
5937
+ }
5018
5938
  ],
5019
5939
  outputs: [
5020
- { name: "", type: "bool", internalType: "bool" }
5940
+ {
5941
+ name: "",
5942
+ type: "bool",
5943
+ internalType: "bool"
5944
+ }
5021
5945
  ],
5022
5946
  stateMutability: "view"
5023
5947
  },
@@ -5025,7 +5949,12 @@ var WhitelistAccessControl_default = [
5025
5949
  type: "event",
5026
5950
  name: "AddedToWhitelist",
5027
5951
  inputs: [
5028
- { name: "users", type: "address[]", indexed: false, internalType: "address[]" }
5952
+ {
5953
+ name: "users",
5954
+ type: "address[]",
5955
+ indexed: false,
5956
+ internalType: "address[]"
5957
+ }
5029
5958
  ],
5030
5959
  anonymous: false
5031
5960
  },
@@ -5033,8 +5962,18 @@ var WhitelistAccessControl_default = [
5033
5962
  type: "event",
5034
5963
  name: "OwnershipTransferred",
5035
5964
  inputs: [
5036
- { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
5037
- { name: "newOwner", type: "address", indexed: true, internalType: "address" }
5965
+ {
5966
+ name: "previousOwner",
5967
+ type: "address",
5968
+ indexed: true,
5969
+ internalType: "address"
5970
+ },
5971
+ {
5972
+ name: "newOwner",
5973
+ type: "address",
5974
+ indexed: true,
5975
+ internalType: "address"
5976
+ }
5038
5977
  ],
5039
5978
  anonymous: false
5040
5979
  },
@@ -5042,9 +5981,24 @@ var WhitelistAccessControl_default = [
5042
5981
  type: "event",
5043
5982
  name: "RemovedFromWhitelist",
5044
5983
  inputs: [
5045
- { name: "users", type: "address[]", indexed: false, internalType: "address[]" }
5984
+ {
5985
+ name: "users",
5986
+ type: "address[]",
5987
+ indexed: false,
5988
+ internalType: "address[]"
5989
+ }
5046
5990
  ],
5047
5991
  anonymous: false
5992
+ },
5993
+ {
5994
+ type: "error",
5995
+ name: "OnlyOwner",
5996
+ inputs: []
5997
+ },
5998
+ {
5999
+ type: "error",
6000
+ name: "ZeroAddress",
6001
+ inputs: []
5048
6002
  }
5049
6003
  ];
5050
6004
 
@@ -5072,7 +6026,7 @@ var ConditionalTokens_default = [
5072
6026
  ],
5073
6027
  outputs: [
5074
6028
  {
5075
- name: "collectionId",
6029
+ name: "",
5076
6030
  type: "bytes32",
5077
6031
  internalType: "bytes32"
5078
6032
  }
@@ -5101,7 +6055,7 @@ var ConditionalTokens_default = [
5101
6055
  ],
5102
6056
  outputs: [
5103
6057
  {
5104
- name: "conditionId",
6058
+ name: "",
5105
6059
  type: "bytes32",
5106
6060
  internalType: "bytes32"
5107
6061
  }
@@ -5120,37 +6074,13 @@ var ConditionalTokens_default = [
5120
6074
  ],
5121
6075
  outputs: [
5122
6076
  {
5123
- name: "outcomeSlotCount",
6077
+ name: "",
5124
6078
  type: "uint256",
5125
6079
  internalType: "uint256"
5126
6080
  }
5127
6081
  ],
5128
6082
  stateMutability: "view"
5129
6083
  },
5130
- {
5131
- type: "function",
5132
- name: "getPositionId",
5133
- inputs: [
5134
- {
5135
- name: "collateralToken",
5136
- type: "address",
5137
- internalType: "contract IERC20"
5138
- },
5139
- {
5140
- name: "collectionId",
5141
- type: "bytes32",
5142
- internalType: "bytes32"
5143
- }
5144
- ],
5145
- outputs: [
5146
- {
5147
- name: "positionId",
5148
- type: "uint256",
5149
- internalType: "uint256"
5150
- }
5151
- ],
5152
- stateMutability: "pure"
5153
- },
5154
6084
  {
5155
6085
  type: "function",
5156
6086
  name: "mergePositions",
@@ -5184,49 +6114,6 @@ var ConditionalTokens_default = [
5184
6114
  outputs: [],
5185
6115
  stateMutability: "nonpayable"
5186
6116
  },
5187
- {
5188
- type: "function",
5189
- name: "payoutDenominator",
5190
- inputs: [
5191
- {
5192
- name: "conditionId",
5193
- type: "bytes32",
5194
- internalType: "bytes32"
5195
- }
5196
- ],
5197
- outputs: [
5198
- {
5199
- name: "",
5200
- type: "uint256",
5201
- internalType: "uint256"
5202
- }
5203
- ],
5204
- stateMutability: "view"
5205
- },
5206
- {
5207
- type: "function",
5208
- name: "payoutNumerators",
5209
- inputs: [
5210
- {
5211
- name: "conditionId",
5212
- type: "bytes32",
5213
- internalType: "bytes32"
5214
- },
5215
- {
5216
- name: "index",
5217
- type: "uint256",
5218
- internalType: "uint256"
5219
- }
5220
- ],
5221
- outputs: [
5222
- {
5223
- name: "",
5224
- type: "uint256",
5225
- internalType: "uint256"
5226
- }
5227
- ],
5228
- stateMutability: "view"
5229
- },
5230
6117
  {
5231
6118
  type: "function",
5232
6119
  name: "prepareCondition",
@@ -5250,34 +6137,6 @@ var ConditionalTokens_default = [
5250
6137
  outputs: [],
5251
6138
  stateMutability: "nonpayable"
5252
6139
  },
5253
- {
5254
- type: "function",
5255
- name: "redeemPositions",
5256
- inputs: [
5257
- {
5258
- name: "collateralToken",
5259
- type: "address",
5260
- internalType: "contract IERC20"
5261
- },
5262
- {
5263
- name: "parentCollectionId",
5264
- type: "bytes32",
5265
- internalType: "bytes32"
5266
- },
5267
- {
5268
- name: "conditionId",
5269
- type: "bytes32",
5270
- internalType: "bytes32"
5271
- },
5272
- {
5273
- name: "indexSets",
5274
- type: "uint256[]",
5275
- internalType: "uint256[]"
5276
- }
5277
- ],
5278
- outputs: [],
5279
- stateMutability: "nonpayable"
5280
- },
5281
6140
  {
5282
6141
  type: "function",
5283
6142
  name: "reportPayouts",
@@ -5328,30 +6187,6 @@ var ConditionalTokens_default = [
5328
6187
  ],
5329
6188
  outputs: [],
5330
6189
  stateMutability: "nonpayable"
5331
- },
5332
- {
5333
- type: "function",
5334
- name: "balanceOf",
5335
- inputs: [
5336
- {
5337
- name: "account",
5338
- type: "address",
5339
- internalType: "address"
5340
- },
5341
- {
5342
- name: "id",
5343
- type: "uint256",
5344
- internalType: "uint256"
5345
- }
5346
- ],
5347
- outputs: [
5348
- {
5349
- name: "",
5350
- type: "uint256",
5351
- internalType: "uint256"
5352
- }
5353
- ],
5354
- stateMutability: "view"
5355
6190
  }
5356
6191
  ];
5357
6192
 
@@ -5361,19 +6196,14 @@ var ERC20_default = [
5361
6196
  type: "constructor",
5362
6197
  inputs: [
5363
6198
  {
5364
- name: "_name",
6199
+ name: "name_",
5365
6200
  type: "string",
5366
6201
  internalType: "string"
5367
6202
  },
5368
6203
  {
5369
- name: "_symbol",
6204
+ name: "symbol_",
5370
6205
  type: "string",
5371
6206
  internalType: "string"
5372
- },
5373
- {
5374
- name: "_decimals",
5375
- type: "uint8",
5376
- internalType: "uint8"
5377
6207
  }
5378
6208
  ],
5379
6209
  stateMutability: "nonpayable"
@@ -5383,12 +6213,12 @@ var ERC20_default = [
5383
6213
  name: "allowance",
5384
6214
  inputs: [
5385
6215
  {
5386
- name: "",
6216
+ name: "owner",
5387
6217
  type: "address",
5388
6218
  internalType: "address"
5389
6219
  },
5390
6220
  {
5391
- name: "",
6221
+ name: "spender",
5392
6222
  type: "address",
5393
6223
  internalType: "address"
5394
6224
  }
@@ -5431,7 +6261,7 @@ var ERC20_default = [
5431
6261
  name: "balanceOf",
5432
6262
  inputs: [
5433
6263
  {
5434
- name: "",
6264
+ name: "account",
5435
6265
  type: "address",
5436
6266
  internalType: "address"
5437
6267
  }
@@ -5460,20 +6290,50 @@ var ERC20_default = [
5460
6290
  },
5461
6291
  {
5462
6292
  type: "function",
5463
- name: "mint",
6293
+ name: "decreaseAllowance",
5464
6294
  inputs: [
5465
6295
  {
5466
- name: "to",
6296
+ name: "spender",
5467
6297
  type: "address",
5468
6298
  internalType: "address"
5469
6299
  },
5470
6300
  {
5471
- name: "amount",
6301
+ name: "subtractedValue",
5472
6302
  type: "uint256",
5473
6303
  internalType: "uint256"
5474
6304
  }
5475
6305
  ],
5476
- outputs: [],
6306
+ outputs: [
6307
+ {
6308
+ name: "",
6309
+ type: "bool",
6310
+ internalType: "bool"
6311
+ }
6312
+ ],
6313
+ stateMutability: "nonpayable"
6314
+ },
6315
+ {
6316
+ type: "function",
6317
+ name: "increaseAllowance",
6318
+ inputs: [
6319
+ {
6320
+ name: "spender",
6321
+ type: "address",
6322
+ internalType: "address"
6323
+ },
6324
+ {
6325
+ name: "addedValue",
6326
+ type: "uint256",
6327
+ internalType: "uint256"
6328
+ }
6329
+ ],
6330
+ outputs: [
6331
+ {
6332
+ name: "",
6333
+ type: "bool",
6334
+ internalType: "bool"
6335
+ }
6336
+ ],
5477
6337
  stateMutability: "nonpayable"
5478
6338
  },
5479
6339
  {