@orbs-network/spot-react 0.0.24 → 0.0.26
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-DXy0ypoz.js → ccip-CI5i2ft7.js} +1 -1
- package/dist/{index-BApWkYlC.js → index-BpC6xsV_.js} +6688 -6433
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts +0 -6
- 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/hooks/use-submit-order.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-submit-swap-panel.d.ts +1 -4
- package/dist/spot-react/src/hooks/use-submit-swap-panel.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 +4 -6
- package/dist/spot-react/src/types.d.ts.map +1 -1
- package/dist/spot-react.js +5 -4
- package/dist/spot-react.umd.cjs +39 -39
- package/dist/spot-ui/src/lib/abi/index.d.ts +77 -1
- package/dist/spot-ui/src/lib/abi/index.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/abi/repermit.json.d.ts +315 -0
- package/package.json +2 -2
|
@@ -63,7 +63,83 @@ export declare const ERC20_ABI: ({
|
|
|
63
63
|
type: string;
|
|
64
64
|
anonymous?: undefined;
|
|
65
65
|
})[];
|
|
66
|
-
export declare const REPERMIT_ABI:
|
|
66
|
+
export declare const REPERMIT_ABI: ({
|
|
67
|
+
type: string;
|
|
68
|
+
inputs: never[];
|
|
69
|
+
stateMutability: string;
|
|
70
|
+
name?: undefined;
|
|
71
|
+
outputs?: undefined;
|
|
72
|
+
anonymous?: undefined;
|
|
73
|
+
} | {
|
|
74
|
+
type: string;
|
|
75
|
+
name: string;
|
|
76
|
+
inputs: {
|
|
77
|
+
name: string;
|
|
78
|
+
type: string;
|
|
79
|
+
internalType: string;
|
|
80
|
+
}[];
|
|
81
|
+
outputs: {
|
|
82
|
+
name: string;
|
|
83
|
+
type: string;
|
|
84
|
+
internalType: string;
|
|
85
|
+
}[];
|
|
86
|
+
stateMutability: string;
|
|
87
|
+
anonymous?: undefined;
|
|
88
|
+
} | {
|
|
89
|
+
type: string;
|
|
90
|
+
name: string;
|
|
91
|
+
inputs: ({
|
|
92
|
+
name: string;
|
|
93
|
+
type: string;
|
|
94
|
+
internalType: string;
|
|
95
|
+
components: ({
|
|
96
|
+
name: string;
|
|
97
|
+
type: string;
|
|
98
|
+
internalType: string;
|
|
99
|
+
components: {
|
|
100
|
+
name: string;
|
|
101
|
+
type: string;
|
|
102
|
+
internalType: string;
|
|
103
|
+
}[];
|
|
104
|
+
} | {
|
|
105
|
+
name: string;
|
|
106
|
+
type: string;
|
|
107
|
+
internalType: string;
|
|
108
|
+
components?: undefined;
|
|
109
|
+
})[];
|
|
110
|
+
} | {
|
|
111
|
+
name: string;
|
|
112
|
+
type: string;
|
|
113
|
+
internalType: string;
|
|
114
|
+
components?: undefined;
|
|
115
|
+
})[];
|
|
116
|
+
outputs: never[];
|
|
117
|
+
stateMutability: string;
|
|
118
|
+
anonymous?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
type: string;
|
|
121
|
+
name: string;
|
|
122
|
+
inputs: {
|
|
123
|
+
name: string;
|
|
124
|
+
type: string;
|
|
125
|
+
indexed: boolean;
|
|
126
|
+
internalType: string;
|
|
127
|
+
}[];
|
|
128
|
+
anonymous: boolean;
|
|
129
|
+
stateMutability?: undefined;
|
|
130
|
+
outputs?: undefined;
|
|
131
|
+
} | {
|
|
132
|
+
type: string;
|
|
133
|
+
name: string;
|
|
134
|
+
inputs: {
|
|
135
|
+
name: string;
|
|
136
|
+
type: string;
|
|
137
|
+
internalType: string;
|
|
138
|
+
}[];
|
|
139
|
+
stateMutability?: undefined;
|
|
140
|
+
outputs?: undefined;
|
|
141
|
+
anonymous?: undefined;
|
|
142
|
+
})[];
|
|
67
143
|
export declare const TWAP_ABI: ({
|
|
68
144
|
inputs: {
|
|
69
145
|
internalType: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../spot-ui/src/lib/abi/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../spot-ui/src/lib/abi/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;IAAW,CAAC;AAClC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAQ,CAAC;AAC/B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAc,CAAC;AACxC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAU,CAAC"}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
declare const _default: [
|
|
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
|
+
{
|
|
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
|
+
|
|
315
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbs-network/spot-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "Spot React Components - React components for Spot SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/spot-react.umd.cjs",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-virtuoso": "^4.17.0",
|
|
40
40
|
"viem": "^2.43.3",
|
|
41
41
|
"zustand": "^5.0.9",
|
|
42
|
-
"@orbs-network/spot-ui": "0.0.
|
|
42
|
+
"@orbs-network/spot-ui": "0.0.16"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/react": "^19.0.2",
|