polymarket-apis 0.2.2__py3-none-any.whl
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.
Potentially problematic release.
This version of polymarket-apis might be problematic. Click here for more details.
- polymarket_apis/__init__.py +2 -0
- polymarket_apis/clients/__init__.py +0 -0
- polymarket_apis/clients/clob_client.py +730 -0
- polymarket_apis/clients/data_client.py +234 -0
- polymarket_apis/clients/gamma_client.py +311 -0
- polymarket_apis/clients/web3_client.py +261 -0
- polymarket_apis/clients/websockets_client.py +131 -0
- polymarket_apis/types/__init__.py +0 -0
- polymarket_apis/types/clob_types.py +494 -0
- polymarket_apis/types/common.py +49 -0
- polymarket_apis/types/data_types.py +161 -0
- polymarket_apis/types/gamma_types.py +313 -0
- polymarket_apis/types/websockets_types.py +191 -0
- polymarket_apis/utilities/__init__.py +0 -0
- polymarket_apis/utilities/config.py +36 -0
- polymarket_apis/utilities/constants.py +26 -0
- polymarket_apis/utilities/endpoints.py +37 -0
- polymarket_apis/utilities/exceptions.py +11 -0
- polymarket_apis/utilities/headers.py +54 -0
- polymarket_apis/utilities/order_builder/__init__.py +0 -0
- polymarket_apis/utilities/order_builder/builder.py +240 -0
- polymarket_apis/utilities/order_builder/helpers.py +61 -0
- polymarket_apis/utilities/signing/__init__.py +0 -0
- polymarket_apis/utilities/signing/eip712.py +28 -0
- polymarket_apis/utilities/signing/hmac.py +20 -0
- polymarket_apis/utilities/signing/model.py +8 -0
- polymarket_apis/utilities/signing/signer.py +25 -0
- polymarket_apis/utilities/web3/__init__.py +0 -0
- polymarket_apis/utilities/web3/abis/CTFExchange.json +1851 -0
- polymarket_apis/utilities/web3/abis/ConditionalTokens.json +705 -0
- polymarket_apis/utilities/web3/abis/NegRiskAdapter.json +999 -0
- polymarket_apis/utilities/web3/abis/NegRiskCtfExchange.json +1856 -0
- polymarket_apis/utilities/web3/abis/ProxyWalletFactory.json +319 -0
- polymarket_apis/utilities/web3/abis/UChildERC20Proxy.json +1438 -0
- polymarket_apis/utilities/web3/abis/__init__.py +0 -0
- polymarket_apis/utilities/web3/abis/custom_contract_errors.py +31 -0
- polymarket_apis/utilities/web3/helpers.py +8 -0
- polymarket_apis-0.2.2.dist-info/METADATA +18 -0
- polymarket_apis-0.2.2.dist-info/RECORD +40 -0
- polymarket_apis-0.2.2.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"constant": false,
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"components": [
|
|
7
|
+
{
|
|
8
|
+
"name": "typeCode",
|
|
9
|
+
"type": "uint8"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "to",
|
|
13
|
+
"type": "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "value",
|
|
17
|
+
"type": "uint256"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "data",
|
|
21
|
+
"type": "bytes"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"name": "calls",
|
|
25
|
+
"type": "tuple[]"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"name": "proxy",
|
|
29
|
+
"outputs": [
|
|
30
|
+
{
|
|
31
|
+
"name": "returnValues",
|
|
32
|
+
"type": "bytes[]"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"payable": true,
|
|
36
|
+
"stateMutability": "payable",
|
|
37
|
+
"type": "function"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"constant": false,
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"name": "",
|
|
44
|
+
"type": "bytes"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"name": "cloneConstructor",
|
|
48
|
+
"outputs": [ ],
|
|
49
|
+
"payable": false,
|
|
50
|
+
"stateMutability": "nonpayable",
|
|
51
|
+
"type": "function"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"constant": false,
|
|
55
|
+
"inputs": [ ],
|
|
56
|
+
"name": "renounceOwnership",
|
|
57
|
+
"outputs": [ ],
|
|
58
|
+
"payable": false,
|
|
59
|
+
"stateMutability": "nonpayable",
|
|
60
|
+
"type": "function"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"constant": true,
|
|
64
|
+
"inputs": [ ],
|
|
65
|
+
"name": "getHubAddr",
|
|
66
|
+
"outputs": [
|
|
67
|
+
{
|
|
68
|
+
"name": "",
|
|
69
|
+
"type": "address"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"payable": false,
|
|
73
|
+
"stateMutability": "view",
|
|
74
|
+
"type": "function"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"constant": false,
|
|
78
|
+
"inputs": [
|
|
79
|
+
{
|
|
80
|
+
"name": "context",
|
|
81
|
+
"type": "bytes"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "preRelayedCall",
|
|
85
|
+
"outputs": [
|
|
86
|
+
{
|
|
87
|
+
"name": "",
|
|
88
|
+
"type": "bytes32"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"payable": false,
|
|
92
|
+
"stateMutability": "nonpayable",
|
|
93
|
+
"type": "function"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"constant": true,
|
|
97
|
+
"inputs": [
|
|
98
|
+
{
|
|
99
|
+
"name": "",
|
|
100
|
+
"type": "address"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "",
|
|
104
|
+
"type": "address"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "",
|
|
108
|
+
"type": "bytes"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "",
|
|
112
|
+
"type": "uint256"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "",
|
|
116
|
+
"type": "uint256"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "",
|
|
120
|
+
"type": "uint256"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "",
|
|
124
|
+
"type": "uint256"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "",
|
|
128
|
+
"type": "bytes"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "",
|
|
132
|
+
"type": "uint256"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"name": "acceptRelayedCall",
|
|
136
|
+
"outputs": [
|
|
137
|
+
{
|
|
138
|
+
"name": "doCall",
|
|
139
|
+
"type": "uint256"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "context",
|
|
143
|
+
"type": "bytes"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"payable": false,
|
|
147
|
+
"stateMutability": "view",
|
|
148
|
+
"type": "function"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"constant": true,
|
|
152
|
+
"inputs": [ ],
|
|
153
|
+
"name": "owner",
|
|
154
|
+
"outputs": [
|
|
155
|
+
{
|
|
156
|
+
"name": "",
|
|
157
|
+
"type": "address"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"payable": false,
|
|
161
|
+
"stateMutability": "view",
|
|
162
|
+
"type": "function"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"constant": true,
|
|
166
|
+
"inputs": [ ],
|
|
167
|
+
"name": "isOwner",
|
|
168
|
+
"outputs": [
|
|
169
|
+
{
|
|
170
|
+
"name": "",
|
|
171
|
+
"type": "bool"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"payable": false,
|
|
175
|
+
"stateMutability": "view",
|
|
176
|
+
"type": "function"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"constant": true,
|
|
180
|
+
"inputs": [ ],
|
|
181
|
+
"name": "getImplementation",
|
|
182
|
+
"outputs": [
|
|
183
|
+
{
|
|
184
|
+
"name": "",
|
|
185
|
+
"type": "address"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"payable": false,
|
|
189
|
+
"stateMutability": "view",
|
|
190
|
+
"type": "function"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"constant": true,
|
|
194
|
+
"inputs": [ ],
|
|
195
|
+
"name": "relayHubVersion",
|
|
196
|
+
"outputs": [
|
|
197
|
+
{
|
|
198
|
+
"name": "",
|
|
199
|
+
"type": "string"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"payable": false,
|
|
203
|
+
"stateMutability": "view",
|
|
204
|
+
"type": "function"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"constant": false,
|
|
208
|
+
"inputs": [
|
|
209
|
+
{
|
|
210
|
+
"name": "gsnModule",
|
|
211
|
+
"type": "address"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"name": "setGSNModule",
|
|
215
|
+
"outputs": [ ],
|
|
216
|
+
"payable": false,
|
|
217
|
+
"stateMutability": "nonpayable",
|
|
218
|
+
"type": "function"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"constant": false,
|
|
222
|
+
"inputs": [
|
|
223
|
+
{
|
|
224
|
+
"name": "context",
|
|
225
|
+
"type": "bytes"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "success",
|
|
229
|
+
"type": "bool"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "actualCharge",
|
|
233
|
+
"type": "uint256"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "preRetVal",
|
|
237
|
+
"type": "bytes32"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"name": "postRelayedCall",
|
|
241
|
+
"outputs": [ ],
|
|
242
|
+
"payable": false,
|
|
243
|
+
"stateMutability": "nonpayable",
|
|
244
|
+
"type": "function"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"constant": false,
|
|
248
|
+
"inputs": [
|
|
249
|
+
{
|
|
250
|
+
"name": "newOwner",
|
|
251
|
+
"type": "address"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"name": "transferOwnership",
|
|
255
|
+
"outputs": [ ],
|
|
256
|
+
"payable": false,
|
|
257
|
+
"stateMutability": "nonpayable",
|
|
258
|
+
"type": "function"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"constant": true,
|
|
262
|
+
"inputs": [ ],
|
|
263
|
+
"name": "getGSNModule",
|
|
264
|
+
"outputs": [
|
|
265
|
+
{
|
|
266
|
+
"name": "",
|
|
267
|
+
"type": "address"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"payable": false,
|
|
271
|
+
"stateMutability": "view",
|
|
272
|
+
"type": "function"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"inputs": [ ],
|
|
276
|
+
"payable": false,
|
|
277
|
+
"stateMutability": "nonpayable",
|
|
278
|
+
"type": "constructor"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"payable": true,
|
|
282
|
+
"stateMutability": "payable",
|
|
283
|
+
"type": "fallback"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"anonymous": false,
|
|
287
|
+
"inputs": [
|
|
288
|
+
{
|
|
289
|
+
"indexed": true,
|
|
290
|
+
"name": "oldRelayHub",
|
|
291
|
+
"type": "address"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"indexed": true,
|
|
295
|
+
"name": "newRelayHub",
|
|
296
|
+
"type": "address"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"name": "RelayHubChanged",
|
|
300
|
+
"type": "event"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"anonymous": false,
|
|
304
|
+
"inputs": [
|
|
305
|
+
{
|
|
306
|
+
"indexed": true,
|
|
307
|
+
"name": "previousOwner",
|
|
308
|
+
"type": "address"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"indexed": true,
|
|
312
|
+
"name": "newOwner",
|
|
313
|
+
"type": "address"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"name": "OwnershipTransferred",
|
|
317
|
+
"type": "event"
|
|
318
|
+
}
|
|
319
|
+
]
|