@orbs-network/spot-react 0.0.23 → 0.0.25
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/{ccip-BGEM0Bfc.js → ccip-BNnQKXTG.js} +1 -1
- package/dist/{index-CzHrQQ9W.js → index-DXiHOECw.js} +10247 -10262
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts +1 -169
- package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -1
- package/dist/spot-react/src/index.d.ts +2 -1
- package/dist/spot-react/src/index.d.ts.map +1 -1
- package/dist/spot-react/src/types.d.ts +1 -1
- package/dist/spot-react/src/types.d.ts.map +1 -1
- package/dist/spot-react.js +110 -112
- package/dist/spot-react.umd.cjs +56 -56
- package/dist/spot-ui/src/index.d.ts +0 -1
- package/dist/spot-ui/src/index.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/abi/index.d.ts +24 -265
- package/dist/spot-ui/src/lib/abi/index.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/abi/repermit.json.d.ts +304 -305
- package/dist/spot-ui/src/lib/orders/v1-orders.d.ts +4 -18
- package/dist/spot-ui/src/lib/orders/v1-orders.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/types.d.ts +25 -14
- package/dist/spot-ui/src/lib/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/spot-ui/src/lib/abi/executor.json.d.ts +0 -757
- package/dist/spot-ui/src/lib/abi/reactor.json.d.ts +0 -647
|
@@ -1,316 +1,315 @@
|
|
|
1
1
|
declare const _default: [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [],
|
|
5
|
+
"stateMutability": "nonpayable"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "function",
|
|
9
|
+
"name": "DOMAIN_SEPARATOR",
|
|
10
|
+
"inputs": [],
|
|
11
|
+
"outputs": [
|
|
12
|
+
{
|
|
13
|
+
"name": "",
|
|
14
|
+
"type": "bytes32",
|
|
15
|
+
"internalType": "bytes32"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"stateMutability": "view"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "function",
|
|
22
|
+
"name": "cancel",
|
|
23
|
+
"inputs": [
|
|
24
|
+
{
|
|
25
|
+
"name": "digests",
|
|
26
|
+
"type": "bytes32[]",
|
|
27
|
+
"internalType": "bytes32[]"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"outputs": [],
|
|
31
|
+
"stateMutability": "nonpayable"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "function",
|
|
35
|
+
"name": "eip712Domain",
|
|
36
|
+
"inputs": [],
|
|
37
|
+
"outputs": [
|
|
38
|
+
{
|
|
39
|
+
"name": "fields",
|
|
40
|
+
"type": "bytes1",
|
|
41
|
+
"internalType": "bytes1"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "name",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"internalType": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "version",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"internalType": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "chainId",
|
|
55
|
+
"type": "uint256",
|
|
56
|
+
"internalType": "uint256"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "verifyingContract",
|
|
60
|
+
"type": "address",
|
|
61
|
+
"internalType": "address"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "salt",
|
|
65
|
+
"type": "bytes32",
|
|
66
|
+
"internalType": "bytes32"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "extensions",
|
|
70
|
+
"type": "uint256[]",
|
|
71
|
+
"internalType": "uint256[]"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"stateMutability": "view"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "function",
|
|
78
|
+
"name": "hashTypedData",
|
|
79
|
+
"inputs": [
|
|
80
|
+
{
|
|
81
|
+
"name": "structHash",
|
|
82
|
+
"type": "bytes32",
|
|
83
|
+
"internalType": "bytes32"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"outputs": [
|
|
87
|
+
{
|
|
88
|
+
"name": "digest",
|
|
89
|
+
"type": "bytes32",
|
|
90
|
+
"internalType": "bytes32"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"stateMutability": "view"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "function",
|
|
97
|
+
"name": "repermitWitnessTransferFrom",
|
|
98
|
+
"inputs": [
|
|
99
|
+
{
|
|
100
|
+
"name": "permit",
|
|
101
|
+
"type": "tuple",
|
|
102
|
+
"internalType": "struct RePermitLib.RePermitTransferFrom",
|
|
103
|
+
"components": [
|
|
104
|
+
{
|
|
105
|
+
"name": "permitted",
|
|
106
|
+
"type": "tuple",
|
|
107
|
+
"internalType": "struct RePermitLib.TokenPermissions",
|
|
108
|
+
"components": [
|
|
109
|
+
{
|
|
110
|
+
"name": "token",
|
|
111
|
+
"type": "address",
|
|
112
|
+
"internalType": "address"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "amount",
|
|
116
|
+
"type": "uint256",
|
|
117
|
+
"internalType": "uint256"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "nonce",
|
|
123
|
+
"type": "uint256",
|
|
124
|
+
"internalType": "uint256"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "deadline",
|
|
128
|
+
"type": "uint256",
|
|
129
|
+
"internalType": "uint256"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "request",
|
|
135
|
+
"type": "tuple",
|
|
136
|
+
"internalType": "struct RePermitLib.TransferRequest",
|
|
137
|
+
"components": [
|
|
138
|
+
{
|
|
139
|
+
"name": "to",
|
|
140
|
+
"type": "address",
|
|
141
|
+
"internalType": "address"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "amount",
|
|
145
|
+
"type": "uint256",
|
|
146
|
+
"internalType": "uint256"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "signer",
|
|
152
|
+
"type": "address",
|
|
153
|
+
"internalType": "address"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "witness",
|
|
157
|
+
"type": "bytes32",
|
|
158
|
+
"internalType": "bytes32"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "witnessTypeString",
|
|
162
|
+
"type": "string",
|
|
163
|
+
"internalType": "string"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "signature",
|
|
167
|
+
"type": "bytes",
|
|
168
|
+
"internalType": "bytes"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"outputs": [],
|
|
172
|
+
"stateMutability": "nonpayable"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "function",
|
|
176
|
+
"name": "spent",
|
|
177
|
+
"inputs": [
|
|
178
|
+
{
|
|
179
|
+
"name": "",
|
|
180
|
+
"type": "address",
|
|
181
|
+
"internalType": "address"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "",
|
|
185
|
+
"type": "bytes32",
|
|
186
|
+
"internalType": "bytes32"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"outputs": [
|
|
190
|
+
{
|
|
191
|
+
"name": "",
|
|
192
|
+
"type": "uint256",
|
|
193
|
+
"internalType": "uint256"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"stateMutability": "view"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "event",
|
|
200
|
+
"name": "Cancel",
|
|
201
|
+
"inputs": [
|
|
202
|
+
{
|
|
203
|
+
"name": "signer",
|
|
204
|
+
"type": "address",
|
|
205
|
+
"indexed": true,
|
|
206
|
+
"internalType": "address"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "digest",
|
|
210
|
+
"type": "bytes32",
|
|
211
|
+
"indexed": false,
|
|
212
|
+
"internalType": "bytes32"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"anonymous": false
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "event",
|
|
219
|
+
"name": "EIP712DomainChanged",
|
|
220
|
+
"inputs": [],
|
|
221
|
+
"anonymous": false
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "event",
|
|
225
|
+
"name": "Spend",
|
|
226
|
+
"inputs": [
|
|
227
|
+
{
|
|
228
|
+
"name": "signer",
|
|
229
|
+
"type": "address",
|
|
230
|
+
"indexed": true,
|
|
231
|
+
"internalType": "address"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "permitHash",
|
|
235
|
+
"type": "bytes32",
|
|
236
|
+
"indexed": true,
|
|
237
|
+
"internalType": "bytes32"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
110
240
|
"name": "token",
|
|
111
241
|
"type": "address",
|
|
242
|
+
"indexed": true,
|
|
243
|
+
"internalType": "address"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "to",
|
|
247
|
+
"type": "address",
|
|
248
|
+
"indexed": false,
|
|
112
249
|
"internalType": "address"
|
|
113
|
-
|
|
114
|
-
|
|
250
|
+
},
|
|
251
|
+
{
|
|
115
252
|
"name": "amount",
|
|
116
253
|
"type": "uint256",
|
|
254
|
+
"indexed": false,
|
|
117
255
|
"internalType": "uint256"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "totalSpent",
|
|
259
|
+
"type": "uint256",
|
|
260
|
+
"indexed": false,
|
|
261
|
+
"internalType": "uint256"
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"anonymous": false
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "error",
|
|
268
|
+
"name": "Canceled",
|
|
269
|
+
"inputs": []
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"type": "error",
|
|
273
|
+
"name": "Expired",
|
|
274
|
+
"inputs": []
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "error",
|
|
278
|
+
"name": "InsufficientAllowance",
|
|
279
|
+
"inputs": []
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": "error",
|
|
283
|
+
"name": "InvalidShortString",
|
|
284
|
+
"inputs": []
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"type": "error",
|
|
288
|
+
"name": "InvalidSignature",
|
|
289
|
+
"inputs": []
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "error",
|
|
293
|
+
"name": "SafeERC20FailedOperation",
|
|
294
|
+
"inputs": [
|
|
295
|
+
{
|
|
296
|
+
"name": "token",
|
|
297
|
+
"type": "address",
|
|
298
|
+
"internalType": "address"
|
|
299
|
+
}
|
|
131
300
|
]
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"name": "amount",
|
|
145
|
-
"type": "uint256",
|
|
146
|
-
"internalType": "uint256"
|
|
147
|
-
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "error",
|
|
304
|
+
"name": "StringTooLong",
|
|
305
|
+
"inputs": [
|
|
306
|
+
{
|
|
307
|
+
"name": "str",
|
|
308
|
+
"type": "string",
|
|
309
|
+
"internalType": "string"
|
|
310
|
+
}
|
|
148
311
|
]
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"name": "signer",
|
|
152
|
-
"type": "address",
|
|
153
|
-
"internalType": "address"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"name": "witness",
|
|
157
|
-
"type": "bytes32",
|
|
158
|
-
"internalType": "bytes32"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"name": "witnessTypeString",
|
|
162
|
-
"type": "string",
|
|
163
|
-
"internalType": "string"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "signature",
|
|
167
|
-
"type": "bytes",
|
|
168
|
-
"internalType": "bytes"
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
"outputs": [],
|
|
172
|
-
"stateMutability": "nonpayable"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"type": "function",
|
|
176
|
-
"name": "spent",
|
|
177
|
-
"inputs": [
|
|
178
|
-
{
|
|
179
|
-
"name": "",
|
|
180
|
-
"type": "address",
|
|
181
|
-
"internalType": "address"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"name": "",
|
|
185
|
-
"type": "bytes32",
|
|
186
|
-
"internalType": "bytes32"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"outputs": [
|
|
190
|
-
{
|
|
191
|
-
"name": "",
|
|
192
|
-
"type": "uint256",
|
|
193
|
-
"internalType": "uint256"
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"stateMutability": "view"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"type": "event",
|
|
200
|
-
"name": "Cancel",
|
|
201
|
-
"inputs": [
|
|
202
|
-
{
|
|
203
|
-
"name": "signer",
|
|
204
|
-
"type": "address",
|
|
205
|
-
"indexed": true,
|
|
206
|
-
"internalType": "address"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "digest",
|
|
210
|
-
"type": "bytes32",
|
|
211
|
-
"indexed": false,
|
|
212
|
-
"internalType": "bytes32"
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"anonymous": false
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"type": "event",
|
|
219
|
-
"name": "EIP712DomainChanged",
|
|
220
|
-
"inputs": [],
|
|
221
|
-
"anonymous": false
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"type": "event",
|
|
225
|
-
"name": "Spend",
|
|
226
|
-
"inputs": [
|
|
227
|
-
{
|
|
228
|
-
"name": "signer",
|
|
229
|
-
"type": "address",
|
|
230
|
-
"indexed": true,
|
|
231
|
-
"internalType": "address"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "permitHash",
|
|
235
|
-
"type": "bytes32",
|
|
236
|
-
"indexed": true,
|
|
237
|
-
"internalType": "bytes32"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"name": "token",
|
|
241
|
-
"type": "address",
|
|
242
|
-
"indexed": true,
|
|
243
|
-
"internalType": "address"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"name": "to",
|
|
247
|
-
"type": "address",
|
|
248
|
-
"indexed": false,
|
|
249
|
-
"internalType": "address"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"name": "amount",
|
|
253
|
-
"type": "uint256",
|
|
254
|
-
"indexed": false,
|
|
255
|
-
"internalType": "uint256"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"name": "totalSpent",
|
|
259
|
-
"type": "uint256",
|
|
260
|
-
"indexed": false,
|
|
261
|
-
"internalType": "uint256"
|
|
262
|
-
}
|
|
263
|
-
],
|
|
264
|
-
"anonymous": false
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"type": "error",
|
|
268
|
-
"name": "Canceled",
|
|
269
|
-
"inputs": []
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"type": "error",
|
|
273
|
-
"name": "Expired",
|
|
274
|
-
"inputs": []
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"type": "error",
|
|
278
|
-
"name": "InsufficientAllowance",
|
|
279
|
-
"inputs": []
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"type": "error",
|
|
283
|
-
"name": "InvalidShortString",
|
|
284
|
-
"inputs": []
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"type": "error",
|
|
288
|
-
"name": "InvalidSignature",
|
|
289
|
-
"inputs": []
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"type": "error",
|
|
293
|
-
"name": "SafeERC20FailedOperation",
|
|
294
|
-
"inputs": [
|
|
295
|
-
{
|
|
296
|
-
"name": "token",
|
|
297
|
-
"type": "address",
|
|
298
|
-
"internalType": "address"
|
|
299
|
-
}
|
|
300
|
-
]
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"type": "error",
|
|
304
|
-
"name": "StringTooLong",
|
|
305
|
-
"inputs": [
|
|
306
|
-
{
|
|
307
|
-
"name": "str",
|
|
308
|
-
"type": "string",
|
|
309
|
-
"internalType": "string"
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
}
|
|
313
|
-
]
|
|
314
|
-
;
|
|
312
|
+
}
|
|
313
|
+
];
|
|
315
314
|
|
|
316
315
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderV1, Order, GetV1OrdersFilters } from '../types';
|
|
2
2
|
type RawStatus = "CANCELED" | "COMPLETED" | null;
|
|
3
3
|
export declare function getCreatedOrders({ chainId, signal, page, limit: _limit, filters, }: {
|
|
4
4
|
chainId: number;
|
|
@@ -6,14 +6,14 @@ export declare function getCreatedOrders({ chainId, signal, page, limit: _limit,
|
|
|
6
6
|
exchanges?: string[];
|
|
7
7
|
page?: number;
|
|
8
8
|
limit?: number;
|
|
9
|
-
filters?:
|
|
9
|
+
filters?: GetV1OrdersFilters;
|
|
10
10
|
}): Promise<OrderV1[]>;
|
|
11
11
|
type GraphStatus = {
|
|
12
12
|
twapId: string;
|
|
13
13
|
twapAddress: string;
|
|
14
14
|
status: RawStatus;
|
|
15
15
|
};
|
|
16
|
-
export declare const getStatuses: ({ chainId, orders, signal }: {
|
|
16
|
+
export declare const getStatuses: ({ chainId, orders, signal, }: {
|
|
17
17
|
chainId: number;
|
|
18
18
|
orders: OrderV1[];
|
|
19
19
|
signal?: AbortSignal;
|
|
@@ -22,26 +22,12 @@ export declare function uniq<T>(array: T[]): T[];
|
|
|
22
22
|
export declare class NoGraphEndpointError extends Error {
|
|
23
23
|
constructor();
|
|
24
24
|
}
|
|
25
|
-
export type GetOrdersFilters = {
|
|
26
|
-
transactionHashes?: string[];
|
|
27
|
-
orderIds?: number[];
|
|
28
|
-
accounts?: string[];
|
|
29
|
-
configs?: Config[];
|
|
30
|
-
inTokenSymbols?: string[];
|
|
31
|
-
outTokenSymbols?: string[];
|
|
32
|
-
inTokenAddresses?: string[];
|
|
33
|
-
outTokenAddresses?: string[];
|
|
34
|
-
minDollarValueIn?: number;
|
|
35
|
-
startDate?: number;
|
|
36
|
-
endDate?: number;
|
|
37
|
-
orderType?: "limit" | "market";
|
|
38
|
-
};
|
|
39
25
|
export declare const getOrders: ({ chainId, signal, page, limit, filters, }: {
|
|
40
26
|
chainId: number;
|
|
41
27
|
signal?: AbortSignal;
|
|
42
28
|
page?: number;
|
|
43
29
|
limit?: number;
|
|
44
|
-
filters?:
|
|
30
|
+
filters?: GetV1OrdersFilters;
|
|
45
31
|
}) => Promise<Order[]>;
|
|
46
32
|
export declare const getV1OrderProgress: (srcAmount: string, filledSrcAmount: string) => number;
|
|
47
33
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-orders.d.ts","sourceRoot":"","sources":["../../../../../../spot-ui/src/lib/orders/v1-orders.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"v1-orders.d.ts","sourceRoot":"","sources":["../../../../../../spot-ui/src/lib/orders/v1-orders.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,OAAO,EAEP,KAAK,EAEL,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAIlB,KAAK,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;AA6PjD,wBAAsB,gBAAgB,CAAC,EACrC,OAAO,EACP,MAAM,EACN,IAAI,EACJ,KAAK,EAAE,MAAM,EACb,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAmDrB;AAED,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,8BAI/B;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,KAAG,OAAO,CAAC,WAAW,EAAE,CAkCxB,CAAC;AAEF,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAEvC;AA+DD,qBAAa,oBAAqB,SAAQ,KAAK;;CAK9C;AAGD,eAAO,MAAM,SAAS,GAAU,4CAM7B;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,KAAG,OAAO,CAAC,KAAK,EAAE,CA8BlB,CAAC;AAkBF,eAAO,MAAM,kBAAkB,GAC7B,WAAW,MAAM,EACjB,iBAAiB,MAAM,WASxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2-orders.d.ts","sourceRoot":"","sources":["../../../../../../spot-ui/src/lib/orders/v2-orders.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"v2-orders.d.ts","sourceRoot":"","sources":["../../../../../../spot-ui/src/lib/orders/v2-orders.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,OAAO,EAAE,KAAK,EAAa,MAAM,UAAU,CAAC;AAqE7E,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,KAmC7C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAU,8BAA8B;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,OAAO,CAAC,KAAK,EAAE,CAS1I,CAAC"}
|