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

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 (65) hide show
  1. package/dist/abis/ExchangeLayerZeroAdapter_v1.json +5 -0
  2. package/dist/abis/KatanaPerpsStargateForwarder_v1.json +1 -1
  3. package/dist/bridge/config.d.ts +3 -2
  4. package/dist/bridge/config.d.ts.map +1 -1
  5. package/dist/bridge/config.js +4 -3
  6. package/dist/bridge/deposit.d.ts +2 -9
  7. package/dist/bridge/deposit.d.ts.map +1 -1
  8. package/dist/bridge/deposit.js +4 -60
  9. package/dist/bridge/utils.d.ts +3 -3
  10. package/dist/bridge/utils.d.ts.map +1 -1
  11. package/dist/bridge/utils.js +6 -17
  12. package/dist/client/rest/authenticated.d.ts +3 -17
  13. package/dist/client/rest/authenticated.d.ts.map +1 -1
  14. package/dist/client/rest/authenticated.js +12 -19
  15. package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.js +1 -0
  16. package/dist/typechain-types/ExchangeLayerZeroAdapter_v1.d.ts +5 -2
  17. package/dist/typechain-types/ExchangeLayerZeroAdapter_v1.d.ts.map +1 -1
  18. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts +16 -16
  19. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts.map +1 -1
  20. package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts +100 -78
  21. package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts.map +1 -1
  22. package/dist/typechain-types/KatanaPerpsStargateForwarder_v1.d.ts +2 -2
  23. package/dist/typechain-types/KatanaPerpsStargateForwarder_v1.d.ts.map +1 -1
  24. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.d.ts +4 -0
  25. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.d.ts.map +1 -1
  26. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.js +5 -0
  27. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts +16 -16
  28. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.js +21 -21
  29. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts +113 -90
  30. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts.map +1 -1
  31. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.js +136 -106
  32. package/dist/typechain-types/factories/KatanaPerpsStargateForwarder_v1__factory.d.ts +1 -1
  33. package/dist/typechain-types/factories/KatanaPerpsStargateForwarder_v1__factory.js +1 -1
  34. package/dist/typechain-types/factories/index.d.ts +0 -4
  35. package/dist/typechain-types/factories/index.d.ts.map +1 -1
  36. package/dist/typechain-types/factories/index.js +1 -9
  37. package/dist/typechain-types/index.d.ts +0 -8
  38. package/dist/typechain-types/index.d.ts.map +1 -1
  39. package/dist/typechain-types/index.js +1 -9
  40. package/dist/types/enums/response.d.ts +17 -0
  41. package/dist/types/enums/response.d.ts.map +1 -1
  42. package/dist/types/enums/response.js +17 -1
  43. package/dist/types/rest/endpoints/GetExchange.d.ts +0 -44
  44. package/dist/types/rest/endpoints/GetExchange.d.ts.map +1 -1
  45. package/dist/types/rest/endpoints/GetMarkets.d.ts +7 -1
  46. package/dist/types/rest/endpoints/GetMarkets.d.ts.map +1 -1
  47. package/dist/types/rest/endpoints/internal.d.ts +0 -8
  48. package/dist/types/rest/endpoints/internal.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/abis/ExchangeLocalDepositAdapter_v1.json +0 -318
  51. package/dist/abis/ExchangeLoopbackAdapter_v1.json +0 -300
  52. package/dist/abis/FixedIncomeVaultProviderStateAggregator_v1.json +0 -229
  53. package/dist/abis/FixedIncomeVaultProvider_v1.json +0 -2655
  54. package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.d.ts +0 -210
  55. package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.d.ts.map +0 -1
  56. package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.js +0 -2
  57. package/dist/typechain-types/ExchangeLoopbackAdapter_v1.d.ts +0 -196
  58. package/dist/typechain-types/ExchangeLoopbackAdapter_v1.d.ts.map +0 -1
  59. package/dist/typechain-types/ExchangeLoopbackAdapter_v1.js +0 -2
  60. package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.d.ts +0 -255
  61. package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.d.ts.map +0 -1
  62. package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.js +0 -335
  63. package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.d.ts +0 -241
  64. package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.d.ts.map +0 -1
  65. package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.js +0 -317
@@ -1,300 +0,0 @@
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
- ]
@@ -1,229 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "fixedIncomeVaultProvider_",
7
- "type": "address"
8
- }
9
- ],
10
- "stateMutability": "nonpayable",
11
- "type": "constructor"
12
- },
13
- {
14
- "inputs": [],
15
- "name": "fixedIncomeVaultProvider",
16
- "outputs": [
17
- {
18
- "internalType": "contract FixedIncomeVaultProvider_v1",
19
- "name": "",
20
- "type": "address"
21
- }
22
- ],
23
- "stateMutability": "view",
24
- "type": "function"
25
- },
26
- {
27
- "inputs": [
28
- {
29
- "internalType": "address[]",
30
- "name": "managerWallets",
31
- "type": "address[]"
32
- }
33
- ],
34
- "name": "loadTotalQuantitiesOwedByVaults",
35
- "outputs": [
36
- {
37
- "internalType": "uint64[]",
38
- "name": "loadTotalQuantitiesOwedByVaultsResults",
39
- "type": "uint64[]"
40
- }
41
- ],
42
- "stateMutability": "view",
43
- "type": "function"
44
- },
45
- {
46
- "inputs": [
47
- {
48
- "internalType": "address",
49
- "name": "managerWallet",
50
- "type": "address"
51
- }
52
- ],
53
- "name": "loadVaultConfigurations",
54
- "outputs": [
55
- {
56
- "components": [
57
- {
58
- "internalType": "address",
59
- "name": "managerWallet",
60
- "type": "address"
61
- },
62
- {
63
- "internalType": "uint64",
64
- "name": "effectiveTimestampInS",
65
- "type": "uint64"
66
- },
67
- {
68
- "internalType": "uint64",
69
- "name": "interestMultiplier",
70
- "type": "uint64"
71
- },
72
- {
73
- "internalType": "uint64",
74
- "name": "maximumNetDeposits",
75
- "type": "uint64"
76
- },
77
- {
78
- "internalType": "uint64",
79
- "name": "maximumTotalOwedQuantityAvailableMultiplierToInitiateExit",
80
- "type": "uint64"
81
- },
82
- {
83
- "internalType": "uint64",
84
- "name": "minimumTotalOwedQuantityAvailableMultiplierToAllowManagerWalletWithdrawal",
85
- "type": "uint64"
86
- },
87
- {
88
- "internalType": "uint64",
89
- "name": "minimumUnappliedDepositOrWithdrawalAgeInSToInitiateExit",
90
- "type": "uint64"
91
- },
92
- {
93
- "internalType": "uint64",
94
- "name": "withdrawalLimitPercentForDepositors",
95
- "type": "uint64"
96
- },
97
- {
98
- "internalType": "uint64",
99
- "name": "withdrawalLimitPercentForVault",
100
- "type": "uint64"
101
- }
102
- ],
103
- "internalType": "struct FixedIncomeVaultProvider_v1.VaultConfigurationFields[]",
104
- "name": "vaultConfigurations",
105
- "type": "tuple[]"
106
- }
107
- ],
108
- "stateMutability": "view",
109
- "type": "function"
110
- },
111
- {
112
- "inputs": [
113
- {
114
- "internalType": "address[]",
115
- "name": "managerWallets",
116
- "type": "address[]"
117
- },
118
- {
119
- "internalType": "address",
120
- "name": "wallet",
121
- "type": "address"
122
- }
123
- ],
124
- "name": "loadVaultDepositorsByDepositorWallet",
125
- "outputs": [
126
- {
127
- "components": [
128
- {
129
- "internalType": "uint64",
130
- "name": "costBasis",
131
- "type": "uint64"
132
- },
133
- {
134
- "internalType": "uint64",
135
- "name": "initialDepositTimestampInS",
136
- "type": "uint64"
137
- },
138
- {
139
- "internalType": "uint64",
140
- "name": "owedQuantity",
141
- "type": "uint64"
142
- }
143
- ],
144
- "internalType": "struct LoadVaultDepositorsResult[]",
145
- "name": "loadVaultDepositorsResults",
146
- "type": "tuple[]"
147
- }
148
- ],
149
- "stateMutability": "view",
150
- "type": "function"
151
- },
152
- {
153
- "inputs": [
154
- {
155
- "internalType": "address",
156
- "name": "managerWallet",
157
- "type": "address"
158
- },
159
- {
160
- "internalType": "address[]",
161
- "name": "wallets",
162
- "type": "address[]"
163
- }
164
- ],
165
- "name": "loadVaultDepositorsByManagerWallet",
166
- "outputs": [
167
- {
168
- "components": [
169
- {
170
- "internalType": "uint64",
171
- "name": "costBasis",
172
- "type": "uint64"
173
- },
174
- {
175
- "internalType": "uint64",
176
- "name": "initialDepositTimestampInS",
177
- "type": "uint64"
178
- },
179
- {
180
- "internalType": "uint64",
181
- "name": "owedQuantity",
182
- "type": "uint64"
183
- }
184
- ],
185
- "internalType": "struct LoadVaultDepositorsResult[]",
186
- "name": "loadVaultDepositorsResults",
187
- "type": "tuple[]"
188
- }
189
- ],
190
- "stateMutability": "view",
191
- "type": "function"
192
- },
193
- {
194
- "inputs": [
195
- {
196
- "internalType": "address",
197
- "name": "managerWallet",
198
- "type": "address"
199
- }
200
- ],
201
- "name": "loadVaultWithdrawalQueue",
202
- "outputs": [
203
- {
204
- "components": [
205
- {
206
- "internalType": "uint128",
207
- "name": "nonce",
208
- "type": "uint128"
209
- },
210
- {
211
- "internalType": "address",
212
- "name": "depositorWallet",
213
- "type": "address"
214
- },
215
- {
216
- "internalType": "uint64",
217
- "name": "grossQuantity",
218
- "type": "uint64"
219
- }
220
- ],
221
- "internalType": "struct VaultWithdrawQueueItem[]",
222
- "name": "loadVaultWithdrawalQueueResults",
223
- "type": "tuple[]"
224
- }
225
- ],
226
- "stateMutability": "view",
227
- "type": "function"
228
- }
229
- ]