@katanaperps/katana-perps-sdk 2.0.0 → 2.1.0-alpha.1

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.
Files changed (59) hide show
  1. package/dist/abis/ExchangeLayerZeroAdapter_v1.json +0 -5
  2. package/dist/abis/ExchangeLocalDepositAdapter_v1.json +318 -0
  3. package/dist/abis/ExchangeLoopbackAdapter_v1.json +300 -0
  4. package/dist/abis/FixedIncomeVaultProviderStateAggregator_v1.json +229 -0
  5. package/dist/abis/FixedIncomeVaultProvider_v1.json +2655 -0
  6. package/dist/abis/KatanaPerpsStargateForwarder_v1.json +1 -1
  7. package/dist/bridge/config.d.ts +2 -3
  8. package/dist/bridge/config.d.ts.map +1 -1
  9. package/dist/bridge/config.js +3 -4
  10. package/dist/bridge/deposit.d.ts +9 -2
  11. package/dist/bridge/deposit.d.ts.map +1 -1
  12. package/dist/bridge/deposit.js +60 -4
  13. package/dist/bridge/utils.d.ts +3 -3
  14. package/dist/bridge/utils.d.ts.map +1 -1
  15. package/dist/bridge/utils.js +17 -6
  16. package/dist/client/rest/authenticated.d.ts +17 -3
  17. package/dist/client/rest/authenticated.d.ts.map +1 -1
  18. package/dist/client/rest/authenticated.js +19 -12
  19. package/dist/typechain-types/ExchangeLayerZeroAdapter_v1.d.ts +2 -5
  20. package/dist/typechain-types/ExchangeLayerZeroAdapter_v1.d.ts.map +1 -1
  21. package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.d.ts +210 -0
  22. package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.d.ts.map +1 -0
  23. package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.js +2 -0
  24. package/dist/typechain-types/ExchangeLoopbackAdapter_v1.d.ts +196 -0
  25. package/dist/typechain-types/ExchangeLoopbackAdapter_v1.d.ts.map +1 -0
  26. package/dist/typechain-types/ExchangeLoopbackAdapter_v1.js +2 -0
  27. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts +16 -16
  28. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts.map +1 -1
  29. package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts +78 -100
  30. package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts.map +1 -1
  31. package/dist/typechain-types/KatanaPerpsStargateForwarder_v1.d.ts +2 -2
  32. package/dist/typechain-types/KatanaPerpsStargateForwarder_v1.d.ts.map +1 -1
  33. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.d.ts +0 -4
  34. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.d.ts.map +1 -1
  35. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.js +0 -5
  36. package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.d.ts +255 -0
  37. package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.d.ts.map +1 -0
  38. package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.js +335 -0
  39. package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.d.ts +241 -0
  40. package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.d.ts.map +1 -0
  41. package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.js +317 -0
  42. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts +16 -16
  43. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.js +21 -21
  44. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts +90 -113
  45. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts.map +1 -1
  46. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.js +106 -136
  47. package/dist/typechain-types/factories/KatanaPerpsStargateForwarder_v1__factory.d.ts +1 -1
  48. package/dist/typechain-types/factories/KatanaPerpsStargateForwarder_v1__factory.js +1 -1
  49. package/dist/typechain-types/factories/index.d.ts +4 -0
  50. package/dist/typechain-types/factories/index.d.ts.map +1 -1
  51. package/dist/typechain-types/factories/index.js +9 -1
  52. package/dist/typechain-types/index.d.ts +8 -0
  53. package/dist/typechain-types/index.d.ts.map +1 -1
  54. package/dist/typechain-types/index.js +9 -1
  55. package/dist/types/rest/endpoints/GetExchange.d.ts +44 -0
  56. package/dist/types/rest/endpoints/GetExchange.d.ts.map +1 -1
  57. package/dist/types/rest/endpoints/internal.d.ts +35 -0
  58. package/dist/types/rest/endpoints/internal.d.ts.map +1 -1
  59. package/package.json +1 -1
@@ -577,11 +577,6 @@
577
577
  "internalType": "uint64",
578
578
  "name": "minimumDepositToManagedAccountQuantityInAssetUnits_",
579
579
  "type": "uint64"
580
- },
581
- {
582
- "internalType": "uint64",
583
- "name": "minimumWithdrawQuantityMultiplier_",
584
- "type": "uint64"
585
580
  }
586
581
  ],
587
582
  "name": "setComposeParameters",
@@ -0,0 +1,318 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "exchange_",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "exchangeManagedAccountDepositAdapter_",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "inputs": [
20
+ {
21
+ "internalType": "address",
22
+ "name": "owner",
23
+ "type": "address"
24
+ }
25
+ ],
26
+ "name": "OwnableInvalidOwner",
27
+ "type": "error"
28
+ },
29
+ {
30
+ "inputs": [
31
+ {
32
+ "internalType": "address",
33
+ "name": "account",
34
+ "type": "address"
35
+ }
36
+ ],
37
+ "name": "OwnableUnauthorizedAccount",
38
+ "type": "error"
39
+ },
40
+ {
41
+ "anonymous": false,
42
+ "inputs": [
43
+ {
44
+ "indexed": false,
45
+ "internalType": "address",
46
+ "name": "depositorWallet",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "indexed": false,
51
+ "internalType": "uint256",
52
+ "name": "quantity",
53
+ "type": "uint256"
54
+ },
55
+ {
56
+ "indexed": false,
57
+ "internalType": "bytes",
58
+ "name": "errorData",
59
+ "type": "bytes"
60
+ }
61
+ ],
62
+ "name": "ComposeFailed",
63
+ "type": "event"
64
+ },
65
+ {
66
+ "anonymous": false,
67
+ "inputs": [
68
+ {
69
+ "indexed": false,
70
+ "internalType": "uint32",
71
+ "name": "sourceEndpointId",
72
+ "type": "uint32"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "internalType": "address",
77
+ "name": "destinationWallet",
78
+ "type": "address"
79
+ },
80
+ {
81
+ "indexed": false,
82
+ "internalType": "uint256",
83
+ "name": "quantity",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "name": "ComposeSucceeded",
88
+ "type": "event"
89
+ },
90
+ {
91
+ "anonymous": false,
92
+ "inputs": [
93
+ {
94
+ "indexed": true,
95
+ "internalType": "address",
96
+ "name": "previousOwner",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "indexed": true,
101
+ "internalType": "address",
102
+ "name": "newOwner",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "OwnershipTransferStarted",
107
+ "type": "event"
108
+ },
109
+ {
110
+ "anonymous": false,
111
+ "inputs": [
112
+ {
113
+ "indexed": true,
114
+ "internalType": "address",
115
+ "name": "previousOwner",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "newOwner",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "name": "OwnershipTransferred",
126
+ "type": "event"
127
+ },
128
+ {
129
+ "anonymous": false,
130
+ "inputs": [
131
+ {
132
+ "indexed": false,
133
+ "internalType": "address",
134
+ "name": "depositorWallet",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "indexed": false,
139
+ "internalType": "uint256",
140
+ "name": "quantity",
141
+ "type": "uint256"
142
+ },
143
+ {
144
+ "indexed": false,
145
+ "internalType": "bytes",
146
+ "name": "payload",
147
+ "type": "bytes"
148
+ },
149
+ {
150
+ "indexed": false,
151
+ "internalType": "bytes",
152
+ "name": "errorData",
153
+ "type": "bytes"
154
+ }
155
+ ],
156
+ "name": "WithdrawQuoteAssetFailed",
157
+ "type": "event"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "acceptOwnership",
162
+ "outputs": [],
163
+ "stateMutability": "nonpayable",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {
169
+ "internalType": "uint256",
170
+ "name": "quoteAssetQuantityInAssetUnits",
171
+ "type": "uint256"
172
+ },
173
+ {
174
+ "internalType": "bytes",
175
+ "name": "payload",
176
+ "type": "bytes"
177
+ }
178
+ ],
179
+ "name": "deposit",
180
+ "outputs": [],
181
+ "stateMutability": "nonpayable",
182
+ "type": "function"
183
+ },
184
+ {
185
+ "inputs": [],
186
+ "name": "exchange",
187
+ "outputs": [
188
+ {
189
+ "internalType": "contract IExchange",
190
+ "name": "",
191
+ "type": "address"
192
+ }
193
+ ],
194
+ "stateMutability": "view",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "inputs": [],
199
+ "name": "exchangeManagedAccountDepositAdapter",
200
+ "outputs": [
201
+ {
202
+ "internalType": "contract IExchangeManagedAccountDepositAdapter",
203
+ "name": "",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "stateMutability": "view",
208
+ "type": "function"
209
+ },
210
+ {
211
+ "inputs": [],
212
+ "name": "isDepositEnabled",
213
+ "outputs": [
214
+ {
215
+ "internalType": "bool",
216
+ "name": "",
217
+ "type": "bool"
218
+ }
219
+ ],
220
+ "stateMutability": "view",
221
+ "type": "function"
222
+ },
223
+ {
224
+ "inputs": [],
225
+ "name": "owner",
226
+ "outputs": [
227
+ {
228
+ "internalType": "address",
229
+ "name": "",
230
+ "type": "address"
231
+ }
232
+ ],
233
+ "stateMutability": "view",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [],
238
+ "name": "pendingOwner",
239
+ "outputs": [
240
+ {
241
+ "internalType": "address",
242
+ "name": "",
243
+ "type": "address"
244
+ }
245
+ ],
246
+ "stateMutability": "view",
247
+ "type": "function"
248
+ },
249
+ {
250
+ "inputs": [],
251
+ "name": "quoteAsset",
252
+ "outputs": [
253
+ {
254
+ "internalType": "contract IERC20",
255
+ "name": "",
256
+ "type": "address"
257
+ }
258
+ ],
259
+ "stateMutability": "view",
260
+ "type": "function"
261
+ },
262
+ {
263
+ "inputs": [],
264
+ "name": "renounceOwnership",
265
+ "outputs": [],
266
+ "stateMutability": "nonpayable",
267
+ "type": "function"
268
+ },
269
+ {
270
+ "inputs": [
271
+ {
272
+ "internalType": "bool",
273
+ "name": "isEnabled",
274
+ "type": "bool"
275
+ }
276
+ ],
277
+ "name": "setDepositEnabled",
278
+ "outputs": [],
279
+ "stateMutability": "nonpayable",
280
+ "type": "function"
281
+ },
282
+ {
283
+ "inputs": [
284
+ {
285
+ "internalType": "address",
286
+ "name": "newOwner",
287
+ "type": "address"
288
+ }
289
+ ],
290
+ "name": "transferOwnership",
291
+ "outputs": [],
292
+ "stateMutability": "nonpayable",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "internalType": "address",
299
+ "name": "",
300
+ "type": "address"
301
+ },
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "",
305
+ "type": "uint256"
306
+ },
307
+ {
308
+ "internalType": "bytes",
309
+ "name": "",
310
+ "type": "bytes"
311
+ }
312
+ ],
313
+ "name": "withdrawQuoteAsset",
314
+ "outputs": [],
315
+ "stateMutability": "pure",
316
+ "type": "function"
317
+ }
318
+ ]
@@ -0,0 +1,300 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "exchange_",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "exchangeManagedAccountDepositAdapter_",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "inputs": [
20
+ {
21
+ "internalType": "address",
22
+ "name": "owner",
23
+ "type": "address"
24
+ }
25
+ ],
26
+ "name": "OwnableInvalidOwner",
27
+ "type": "error"
28
+ },
29
+ {
30
+ "inputs": [
31
+ {
32
+ "internalType": "address",
33
+ "name": "account",
34
+ "type": "address"
35
+ }
36
+ ],
37
+ "name": "OwnableUnauthorizedAccount",
38
+ "type": "error"
39
+ },
40
+ {
41
+ "anonymous": false,
42
+ "inputs": [
43
+ {
44
+ "indexed": false,
45
+ "internalType": "address",
46
+ "name": "depositorWallet",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "indexed": false,
51
+ "internalType": "uint256",
52
+ "name": "quantity",
53
+ "type": "uint256"
54
+ },
55
+ {
56
+ "indexed": false,
57
+ "internalType": "bytes",
58
+ "name": "errorData",
59
+ "type": "bytes"
60
+ }
61
+ ],
62
+ "name": "ComposeFailed",
63
+ "type": "event"
64
+ },
65
+ {
66
+ "anonymous": false,
67
+ "inputs": [
68
+ {
69
+ "indexed": false,
70
+ "internalType": "uint32",
71
+ "name": "sourceEndpointId",
72
+ "type": "uint32"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "internalType": "address",
77
+ "name": "destinationWallet",
78
+ "type": "address"
79
+ },
80
+ {
81
+ "indexed": false,
82
+ "internalType": "uint256",
83
+ "name": "quantity",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "name": "ComposeSucceeded",
88
+ "type": "event"
89
+ },
90
+ {
91
+ "anonymous": false,
92
+ "inputs": [
93
+ {
94
+ "indexed": true,
95
+ "internalType": "address",
96
+ "name": "previousOwner",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "indexed": true,
101
+ "internalType": "address",
102
+ "name": "newOwner",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "OwnershipTransferStarted",
107
+ "type": "event"
108
+ },
109
+ {
110
+ "anonymous": false,
111
+ "inputs": [
112
+ {
113
+ "indexed": true,
114
+ "internalType": "address",
115
+ "name": "previousOwner",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "newOwner",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "name": "OwnershipTransferred",
126
+ "type": "event"
127
+ },
128
+ {
129
+ "anonymous": false,
130
+ "inputs": [
131
+ {
132
+ "indexed": false,
133
+ "internalType": "address",
134
+ "name": "depositorWallet",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "indexed": false,
139
+ "internalType": "uint256",
140
+ "name": "quantity",
141
+ "type": "uint256"
142
+ },
143
+ {
144
+ "indexed": false,
145
+ "internalType": "bytes",
146
+ "name": "payload",
147
+ "type": "bytes"
148
+ },
149
+ {
150
+ "indexed": false,
151
+ "internalType": "bytes",
152
+ "name": "errorData",
153
+ "type": "bytes"
154
+ }
155
+ ],
156
+ "name": "WithdrawQuoteAssetFailed",
157
+ "type": "event"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "acceptOwnership",
162
+ "outputs": [],
163
+ "stateMutability": "nonpayable",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "inputs": [],
168
+ "name": "exchange",
169
+ "outputs": [
170
+ {
171
+ "internalType": "contract IExchange",
172
+ "name": "",
173
+ "type": "address"
174
+ }
175
+ ],
176
+ "stateMutability": "view",
177
+ "type": "function"
178
+ },
179
+ {
180
+ "inputs": [],
181
+ "name": "exchangeManagedAccountDepositAdapter",
182
+ "outputs": [
183
+ {
184
+ "internalType": "contract IExchangeManagedAccountDepositAdapter",
185
+ "name": "",
186
+ "type": "address"
187
+ }
188
+ ],
189
+ "stateMutability": "view",
190
+ "type": "function"
191
+ },
192
+ {
193
+ "inputs": [],
194
+ "name": "isWithdrawEnabled",
195
+ "outputs": [
196
+ {
197
+ "internalType": "bool",
198
+ "name": "",
199
+ "type": "bool"
200
+ }
201
+ ],
202
+ "stateMutability": "view",
203
+ "type": "function"
204
+ },
205
+ {
206
+ "inputs": [],
207
+ "name": "owner",
208
+ "outputs": [
209
+ {
210
+ "internalType": "address",
211
+ "name": "",
212
+ "type": "address"
213
+ }
214
+ ],
215
+ "stateMutability": "view",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [],
220
+ "name": "pendingOwner",
221
+ "outputs": [
222
+ {
223
+ "internalType": "address",
224
+ "name": "",
225
+ "type": "address"
226
+ }
227
+ ],
228
+ "stateMutability": "view",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "inputs": [],
233
+ "name": "quoteAsset",
234
+ "outputs": [
235
+ {
236
+ "internalType": "contract IERC20",
237
+ "name": "",
238
+ "type": "address"
239
+ }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [],
246
+ "name": "renounceOwnership",
247
+ "outputs": [],
248
+ "stateMutability": "nonpayable",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [
253
+ {
254
+ "internalType": "bool",
255
+ "name": "isEnabled",
256
+ "type": "bool"
257
+ }
258
+ ],
259
+ "name": "setWithdrawEnabled",
260
+ "outputs": [],
261
+ "stateMutability": "nonpayable",
262
+ "type": "function"
263
+ },
264
+ {
265
+ "inputs": [
266
+ {
267
+ "internalType": "address",
268
+ "name": "newOwner",
269
+ "type": "address"
270
+ }
271
+ ],
272
+ "name": "transferOwnership",
273
+ "outputs": [],
274
+ "stateMutability": "nonpayable",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "inputs": [
279
+ {
280
+ "internalType": "address",
281
+ "name": "depositorWallet",
282
+ "type": "address"
283
+ },
284
+ {
285
+ "internalType": "uint256",
286
+ "name": "quantity",
287
+ "type": "uint256"
288
+ },
289
+ {
290
+ "internalType": "bytes",
291
+ "name": "payload",
292
+ "type": "bytes"
293
+ }
294
+ ],
295
+ "name": "withdrawQuoteAsset",
296
+ "outputs": [],
297
+ "stateMutability": "nonpayable",
298
+ "type": "function"
299
+ }
300
+ ]