@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.
- package/dist/abis/ExchangeLayerZeroAdapter_v1.json +5 -0
- package/dist/abis/KatanaPerpsStargateForwarder_v1.json +1 -1
- package/dist/bridge/config.d.ts +3 -2
- package/dist/bridge/config.d.ts.map +1 -1
- package/dist/bridge/config.js +4 -3
- package/dist/bridge/deposit.d.ts +2 -9
- package/dist/bridge/deposit.d.ts.map +1 -1
- package/dist/bridge/deposit.js +4 -60
- package/dist/bridge/utils.d.ts +3 -3
- package/dist/bridge/utils.d.ts.map +1 -1
- package/dist/bridge/utils.js +6 -17
- package/dist/client/rest/authenticated.d.ts +3 -17
- package/dist/client/rest/authenticated.d.ts.map +1 -1
- package/dist/client/rest/authenticated.js +12 -19
- package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.js +1 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v1.d.ts +5 -2
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v1.d.ts.map +1 -1
- package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts +16 -16
- package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts.map +1 -1
- package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts +100 -78
- package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts.map +1 -1
- package/dist/typechain-types/KatanaPerpsStargateForwarder_v1.d.ts +2 -2
- package/dist/typechain-types/KatanaPerpsStargateForwarder_v1.d.ts.map +1 -1
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.d.ts +4 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.d.ts.map +1 -1
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v1__factory.js +5 -0
- package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts +16 -16
- package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.js +21 -21
- package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts +113 -90
- package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts.map +1 -1
- package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.js +136 -106
- package/dist/typechain-types/factories/KatanaPerpsStargateForwarder_v1__factory.d.ts +1 -1
- package/dist/typechain-types/factories/KatanaPerpsStargateForwarder_v1__factory.js +1 -1
- package/dist/typechain-types/factories/index.d.ts +0 -4
- package/dist/typechain-types/factories/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/index.js +1 -9
- package/dist/typechain-types/index.d.ts +0 -8
- package/dist/typechain-types/index.d.ts.map +1 -1
- package/dist/typechain-types/index.js +1 -9
- package/dist/types/enums/response.d.ts +17 -0
- package/dist/types/enums/response.d.ts.map +1 -1
- package/dist/types/enums/response.js +17 -1
- package/dist/types/rest/endpoints/GetExchange.d.ts +0 -44
- package/dist/types/rest/endpoints/GetExchange.d.ts.map +1 -1
- package/dist/types/rest/endpoints/GetMarkets.d.ts +7 -1
- package/dist/types/rest/endpoints/GetMarkets.d.ts.map +1 -1
- package/dist/types/rest/endpoints/internal.d.ts +0 -8
- package/dist/types/rest/endpoints/internal.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/abis/ExchangeLocalDepositAdapter_v1.json +0 -318
- package/dist/abis/ExchangeLoopbackAdapter_v1.json +0 -300
- package/dist/abis/FixedIncomeVaultProviderStateAggregator_v1.json +0 -229
- package/dist/abis/FixedIncomeVaultProvider_v1.json +0 -2655
- package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.d.ts +0 -210
- package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.d.ts.map +0 -1
- package/dist/typechain-types/ExchangeLocalDepositAdapter_v1.js +0 -2
- package/dist/typechain-types/ExchangeLoopbackAdapter_v1.d.ts +0 -196
- package/dist/typechain-types/ExchangeLoopbackAdapter_v1.d.ts.map +0 -1
- package/dist/typechain-types/ExchangeLoopbackAdapter_v1.js +0 -2
- package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.d.ts +0 -255
- package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/ExchangeLocalDepositAdapter_v1__factory.js +0 -335
- package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.d.ts +0 -241
- package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/ExchangeLoopbackAdapter_v1__factory.js +0 -317
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebClientEventTxSettledAction = exports.WebClientEventExchangeStatusAction = exports.WebClientEvent = exports.MessageEventType = exports.PositionEventStatus = exports.OrderBookLevelType = exports.LiquidityProvider = exports.ChainTransactionStatus = exports.TriggerType = exports.MarketStatus = exports.OrderStateChange = exports.OrderStatus = exports.FillAction = exports.FillType = exports.FillTypeOrder = exports.FillTypeSystem = exports.PositionSide = void 0;
|
|
3
|
+
exports.WebClientEventTxSettledAction = exports.WebClientEventExchangeStatusAction = exports.WebClientEvent = exports.MessageEventType = exports.PositionEventStatus = exports.OrderBookLevelType = exports.LiquidityProvider = exports.ChainTransactionStatus = exports.TriggerType = exports.MarketStatus = exports.MarginType = exports.OrderStateChange = exports.OrderStatus = exports.FillAction = exports.FillType = exports.FillTypeOrder = exports.FillTypeSystem = exports.PositionSide = void 0;
|
|
4
4
|
const request_1 = require("#types/enums/request");
|
|
5
5
|
/**
|
|
6
6
|
* Using these objects we can construct appropriate enum with auto completion and information
|
|
@@ -150,6 +150,22 @@ exports.OrderStateChange = Object.freeze({
|
|
|
150
150
|
*/
|
|
151
151
|
expired: 'expired',
|
|
152
152
|
});
|
|
153
|
+
/**
|
|
154
|
+
* @category Enums - Response Properties
|
|
155
|
+
* @enum
|
|
156
|
+
*/
|
|
157
|
+
exports.MarginType = Object.freeze({
|
|
158
|
+
/**
|
|
159
|
+
* Positions are cross-margined with positions in other markets
|
|
160
|
+
*/
|
|
161
|
+
cross: 'cross',
|
|
162
|
+
/**
|
|
163
|
+
* A wallet that has an open position or orders on the book in a market with
|
|
164
|
+
* isolated margin cannot place orders or have open positions in other markets
|
|
165
|
+
* at the same time.
|
|
166
|
+
*/
|
|
167
|
+
isolated: 'isolated',
|
|
168
|
+
});
|
|
153
169
|
/**
|
|
154
170
|
* @category Enums - Response Properties
|
|
155
171
|
* @enum
|
|
@@ -68,10 +68,6 @@ export interface KatanaPerpsExchange {
|
|
|
68
68
|
*/
|
|
69
69
|
withdrawEnabled?: boolean;
|
|
70
70
|
bridgeAdapters: {
|
|
71
|
-
/** Address of the v1 local deposit adapter contract on Katana */
|
|
72
|
-
localDepositAdapterV1KatanaContractAddress: string;
|
|
73
|
-
/** Address of the v1 loopback adapter contract on Katana */
|
|
74
|
-
loopbackBridgeAdapterV1KatanaContractAddress: string;
|
|
75
71
|
/** Address of the v1 Stargate bridge adapter contract on Katana */
|
|
76
72
|
stargateBridgeAdapterV1KatanaContractAddress: string;
|
|
77
73
|
/** Address of the v1 Stargate cross-chain forwarder contract on Ethereum */
|
|
@@ -81,46 +77,6 @@ export interface KatanaPerpsExchange {
|
|
|
81
77
|
/** Address of the vbUSDC OVault composer contract on Ethereum */
|
|
82
78
|
vbUsdcVaultComposerSyncEthereumContractAddress: string;
|
|
83
79
|
};
|
|
84
|
-
vaults: {
|
|
85
|
-
/**
|
|
86
|
-
* Vault creation fee
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
89
|
-
vaultCreationFee: string;
|
|
90
|
-
/**
|
|
91
|
-
* Vault deposit fee
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
|
-
vaultDepositFee: string;
|
|
95
|
-
/**
|
|
96
|
-
* Vault withdrawal fee
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
99
|
-
vaultWithdrawalFee: string;
|
|
100
|
-
/**
|
|
101
|
-
* Minimum deposit required to create a vault
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
vaultCreationMinimum: string;
|
|
105
|
-
/**
|
|
106
|
-
* Minimum deposit quantity
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
109
|
-
vaultDepositMinimum: string;
|
|
110
|
-
/**
|
|
111
|
-
* Minimum withdrawal and withdrawal dust quantity
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
114
|
-
vaultWithdrawalMinimum: string;
|
|
115
|
-
/**
|
|
116
|
-
* Address of Fixed Income Vault Provider V1 contract
|
|
117
|
-
*/
|
|
118
|
-
fixedIncomeVaultProviderV1ContractAddress: string;
|
|
119
|
-
/**
|
|
120
|
-
* Address of Fixed Income Vault Provider aggregator V1 contract
|
|
121
|
-
*/
|
|
122
|
-
fixedIncomeVaultProviderStateAggregatorV1ContractAddress: string;
|
|
123
|
-
};
|
|
124
80
|
}
|
|
125
81
|
/**
|
|
126
82
|
* @see docs [API Documentation](https://api-docs-v1-perps.katana.network/#get-exchange)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetExchange.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/GetExchange.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,sBAAsB;CAAG;AAE1C;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC,mCAAmC;IACnC,QAAQ,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uCAAuC;IACvC,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE;QACd,
|
|
1
|
+
{"version":3,"file":"GetExchange.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/GetExchange.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,sBAAsB;CAAG;AAE1C;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC,mCAAmC;IACnC,QAAQ,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uCAAuC;IACvC,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE;QACd,mEAAmE;QACnE,4CAA4C,EAAE,MAAM,CAAC;QACrD,4EAA4E;QAC5E,gDAAgD,EAAE,MAAM,CAAC;QACzD,6DAA6D;QAC7D,uCAAuC,EAAE,MAAM,CAAC;QAChD,iEAAiE;QACjE,8CAA8C,EAAE,MAAM,CAAC;KACxD,CAAC;CACH;AAED;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MarketStatus, RestRequestByMarketOptional } from '#index';
|
|
1
|
+
import type { MarginType, MarketStatus, RestRequestByMarketOptional } from '#index';
|
|
2
2
|
/**
|
|
3
3
|
* GET markets
|
|
4
4
|
*
|
|
@@ -116,6 +116,12 @@ export interface KatanaPerpsMarket {
|
|
|
116
116
|
* - increases the {@link initialMarginFraction} by {@link incrementalInitialMarginFraction} (this value)
|
|
117
117
|
*/
|
|
118
118
|
incrementalInitialMarginFraction: string;
|
|
119
|
+
/**
|
|
120
|
+
* Type of margin
|
|
121
|
+
*
|
|
122
|
+
* @see {@link MarginType}
|
|
123
|
+
*/
|
|
124
|
+
marginType: MarginType;
|
|
119
125
|
/**
|
|
120
126
|
* Default maker trade fee rate for the market
|
|
121
127
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetMarkets.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/GetMarkets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"GetMarkets.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/GetMarkets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,2BAA2B,EAC5B,MAA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AAC;IACzC;;;;OAIG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,EAAE,CAAC"}
|
|
@@ -72,14 +72,6 @@ export interface KatanaPerpsVault {
|
|
|
72
72
|
* Manager wallet address
|
|
73
73
|
*/
|
|
74
74
|
manager: string;
|
|
75
|
-
/**
|
|
76
|
-
* true if vault was exited on-chain
|
|
77
|
-
*/
|
|
78
|
-
isExited: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* true if vault manager wallet was liquidated
|
|
81
|
-
*/
|
|
82
|
-
isLiquidated: boolean;
|
|
83
75
|
/**
|
|
84
76
|
* true if a new configuration is awaiting application
|
|
85
77
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAMD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,oBAAoB,GAAG,o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B,CAAC,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@katanaperps/katana-perps-sdk",
|
|
3
|
-
"version": "2.1.0-
|
|
3
|
+
"version": "2.1.0-beta.2",
|
|
4
4
|
"description": "Katana Perps SDK for Javascript in the browser and Node.js",
|
|
5
5
|
"repository": "git@github.com:katanaperps/katana-perps-sdk-js.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1,318 +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
|
-
{
|
|
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
|
-
]
|