@mysten/deepbook-v3 1.2.2 → 1.3.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.
- package/CHANGELOG.md +26 -0
- package/dist/contracts/deepbook/account.d.mts +1 -1
- package/dist/contracts/deepbook/account.mjs.map +1 -1
- package/dist/contracts/deepbook/deep_price.d.mts +1 -1
- package/dist/contracts/deepbook/deep_price.mjs.map +1 -1
- package/dist/contracts/deepbook/order.d.mts +1 -1
- package/dist/contracts/deepbook/order.mjs.map +1 -1
- package/dist/contracts/pyth/data_source.mjs.map +1 -1
- package/dist/contracts/pyth/i64.mjs.map +1 -1
- package/dist/contracts/pyth/price.mjs.map +1 -1
- package/dist/contracts/pyth/price_feed.mjs.map +1 -1
- package/dist/contracts/pyth/price_identifier.mjs.map +1 -1
- package/dist/contracts/pyth/price_info.mjs.map +1 -1
- package/dist/contracts/pyth/state.mjs.map +1 -1
- package/dist/contracts/utils/index.d.mts.map +1 -1
- package/dist/contracts/utils/index.mjs.map +1 -1
- package/dist/queries/accountQueries.mjs +3 -0
- package/dist/queries/accountQueries.mjs.map +1 -1
- package/dist/queries/balanceManagerQueries.mjs +5 -0
- package/dist/queries/balanceManagerQueries.mjs.map +1 -1
- package/dist/queries/marginManagerQueries.mjs +15 -0
- package/dist/queries/marginManagerQueries.mjs.map +1 -1
- package/dist/queries/marginPoolQueries.mjs +14 -0
- package/dist/queries/marginPoolQueries.mjs.map +1 -1
- package/dist/queries/orderQueries.mjs +7 -0
- package/dist/queries/orderQueries.mjs.map +1 -1
- package/dist/queries/poolQueries.mjs +15 -0
- package/dist/queries/poolQueries.mjs.map +1 -1
- package/dist/queries/quantityQueries.mjs +9 -0
- package/dist/queries/quantityQueries.mjs.map +1 -1
- package/dist/queries/referralQueries.mjs +5 -0
- package/dist/queries/referralQueries.mjs.map +1 -1
- package/dist/queries/registryQueries.mjs +12 -0
- package/dist/queries/registryQueries.mjs.map +1 -1
- package/dist/queries/tpslQueries.mjs +3 -0
- package/dist/queries/tpslQueries.mjs.map +1 -1
- package/dist/transactions/deepbook.d.mts +22 -0
- package/dist/transactions/deepbook.d.mts.map +1 -1
- package/dist/transactions/deepbook.mjs +38 -0
- package/dist/transactions/deepbook.mjs.map +1 -1
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginLiquidations.d.mts.map +1 -1
- package/dist/transactions/marginRegistry.d.mts +15 -15
- package/dist/utils/constants.mjs +1 -1
- package/dist/utils/constants.mjs.map +1 -1
- package/package.json +5 -5
- package/src/contracts/deepbook/account.ts +20 -20
- package/src/contracts/deepbook/balance_manager.ts +3 -3
- package/src/contracts/deepbook/deep_price.ts +6 -6
- package/src/contracts/deepbook/fill.ts +34 -34
- package/src/contracts/deepbook/math.ts +2 -2
- package/src/contracts/deepbook/order.ts +24 -24
- package/src/contracts/deepbook/order_info.ts +46 -46
- package/src/contracts/deepbook/order_query.ts +5 -5
- package/src/contracts/deepbook/pool.ts +119 -33
- package/src/contracts/deepbook/registry.ts +3 -3
- package/src/contracts/pyth/batch_price_attestation.ts +5 -5
- package/src/contracts/pyth/contract_upgrade.ts +3 -3
- package/src/contracts/pyth/data_source.ts +4 -4
- package/src/contracts/pyth/deserialize.ts +8 -8
- package/src/contracts/pyth/governance.ts +7 -7
- package/src/contracts/pyth/governance_action.ts +2 -2
- package/src/contracts/pyth/governance_instruction.ts +6 -6
- package/src/contracts/pyth/hot_potato_vector.ts +5 -5
- package/src/contracts/pyth/i64.ts +4 -4
- package/src/contracts/pyth/merkle_tree.ts +3 -7
- package/src/contracts/pyth/migrate.ts +2 -2
- package/src/contracts/pyth/price.ts +7 -7
- package/src/contracts/pyth/price_feed.ts +7 -11
- package/src/contracts/pyth/price_identifier.ts +3 -3
- package/src/contracts/pyth/price_info.ts +9 -9
- package/src/contracts/pyth/price_status.ts +2 -2
- package/src/contracts/pyth/pyth.ts +12 -12
- package/src/contracts/pyth/set.ts +4 -4
- package/src/contracts/pyth/state.ts +5 -5
- package/src/contracts/utils/index.ts +3 -1
- package/src/queries/accountQueries.ts +3 -0
- package/src/queries/balanceManagerQueries.ts +5 -0
- package/src/queries/marginManagerQueries.ts +15 -0
- package/src/queries/marginPoolQueries.ts +14 -0
- package/src/queries/orderQueries.ts +7 -0
- package/src/queries/poolQueries.ts +15 -0
- package/src/queries/quantityQueries.ts +9 -0
- package/src/queries/referralQueries.ts +5 -0
- package/src/queries/registryQueries.ts +12 -0
- package/src/queries/tpslQueries.ts +3 -0
- package/src/transactions/deepbook.ts +64 -0
- package/src/utils/constants.ts +1 -1
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
/** `Fill` struct represents the results of a match between two orders. */
|
|
6
6
|
|
|
7
|
-
import { MoveStruct, normalizeMoveArguments
|
|
7
|
+
import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
8
8
|
import { bcs } from '@mysten/sui/bcs';
|
|
9
|
-
import { type Transaction } from '@mysten/sui/transactions';
|
|
9
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
10
10
|
import * as deep_price from './deep_price.js';
|
|
11
11
|
const $moduleName = '@deepbook/core::fill';
|
|
12
12
|
export const Fill = new MoveStruct({
|
|
@@ -31,11 +31,11 @@ export const Fill = new MoveStruct({
|
|
|
31
31
|
},
|
|
32
32
|
});
|
|
33
33
|
export interface MakerOrderIdArguments {
|
|
34
|
-
self:
|
|
34
|
+
self: TransactionArgument;
|
|
35
35
|
}
|
|
36
36
|
export interface MakerOrderIdOptions {
|
|
37
37
|
package?: string;
|
|
38
|
-
arguments: MakerOrderIdArguments | [self:
|
|
38
|
+
arguments: MakerOrderIdArguments | [self: TransactionArgument];
|
|
39
39
|
}
|
|
40
40
|
export function makerOrderId(options: MakerOrderIdOptions) {
|
|
41
41
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -50,11 +50,11 @@ export function makerOrderId(options: MakerOrderIdOptions) {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
export interface MakerClientOrderIdArguments {
|
|
53
|
-
self:
|
|
53
|
+
self: TransactionArgument;
|
|
54
54
|
}
|
|
55
55
|
export interface MakerClientOrderIdOptions {
|
|
56
56
|
package?: string;
|
|
57
|
-
arguments: MakerClientOrderIdArguments | [self:
|
|
57
|
+
arguments: MakerClientOrderIdArguments | [self: TransactionArgument];
|
|
58
58
|
}
|
|
59
59
|
export function makerClientOrderId(options: MakerClientOrderIdOptions) {
|
|
60
60
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -69,11 +69,11 @@ export function makerClientOrderId(options: MakerClientOrderIdOptions) {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
export interface ExecutionPriceArguments {
|
|
72
|
-
self:
|
|
72
|
+
self: TransactionArgument;
|
|
73
73
|
}
|
|
74
74
|
export interface ExecutionPriceOptions {
|
|
75
75
|
package?: string;
|
|
76
|
-
arguments: ExecutionPriceArguments | [self:
|
|
76
|
+
arguments: ExecutionPriceArguments | [self: TransactionArgument];
|
|
77
77
|
}
|
|
78
78
|
export function executionPrice(options: ExecutionPriceOptions) {
|
|
79
79
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -88,11 +88,11 @@ export function executionPrice(options: ExecutionPriceOptions) {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
export interface BalanceManagerIdArguments {
|
|
91
|
-
self:
|
|
91
|
+
self: TransactionArgument;
|
|
92
92
|
}
|
|
93
93
|
export interface BalanceManagerIdOptions {
|
|
94
94
|
package?: string;
|
|
95
|
-
arguments: BalanceManagerIdArguments | [self:
|
|
95
|
+
arguments: BalanceManagerIdArguments | [self: TransactionArgument];
|
|
96
96
|
}
|
|
97
97
|
export function balanceManagerId(options: BalanceManagerIdOptions) {
|
|
98
98
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -107,11 +107,11 @@ export function balanceManagerId(options: BalanceManagerIdOptions) {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
export interface ExpiredArguments {
|
|
110
|
-
self:
|
|
110
|
+
self: TransactionArgument;
|
|
111
111
|
}
|
|
112
112
|
export interface ExpiredOptions {
|
|
113
113
|
package?: string;
|
|
114
|
-
arguments: ExpiredArguments | [self:
|
|
114
|
+
arguments: ExpiredArguments | [self: TransactionArgument];
|
|
115
115
|
}
|
|
116
116
|
export function expired(options: ExpiredOptions) {
|
|
117
117
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -126,11 +126,11 @@ export function expired(options: ExpiredOptions) {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
export interface CompletedArguments {
|
|
129
|
-
self:
|
|
129
|
+
self: TransactionArgument;
|
|
130
130
|
}
|
|
131
131
|
export interface CompletedOptions {
|
|
132
132
|
package?: string;
|
|
133
|
-
arguments: CompletedArguments | [self:
|
|
133
|
+
arguments: CompletedArguments | [self: TransactionArgument];
|
|
134
134
|
}
|
|
135
135
|
export function completed(options: CompletedOptions) {
|
|
136
136
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -145,11 +145,11 @@ export function completed(options: CompletedOptions) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
export interface OriginalMakerQuantityArguments {
|
|
148
|
-
self:
|
|
148
|
+
self: TransactionArgument;
|
|
149
149
|
}
|
|
150
150
|
export interface OriginalMakerQuantityOptions {
|
|
151
151
|
package?: string;
|
|
152
|
-
arguments: OriginalMakerQuantityArguments | [self:
|
|
152
|
+
arguments: OriginalMakerQuantityArguments | [self: TransactionArgument];
|
|
153
153
|
}
|
|
154
154
|
export function originalMakerQuantity(options: OriginalMakerQuantityOptions) {
|
|
155
155
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -164,11 +164,11 @@ export function originalMakerQuantity(options: OriginalMakerQuantityOptions) {
|
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
export interface BaseQuantityArguments {
|
|
167
|
-
self:
|
|
167
|
+
self: TransactionArgument;
|
|
168
168
|
}
|
|
169
169
|
export interface BaseQuantityOptions {
|
|
170
170
|
package?: string;
|
|
171
|
-
arguments: BaseQuantityArguments | [self:
|
|
171
|
+
arguments: BaseQuantityArguments | [self: TransactionArgument];
|
|
172
172
|
}
|
|
173
173
|
export function baseQuantity(options: BaseQuantityOptions) {
|
|
174
174
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -183,11 +183,11 @@ export function baseQuantity(options: BaseQuantityOptions) {
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
export interface TakerIsBidArguments {
|
|
186
|
-
self:
|
|
186
|
+
self: TransactionArgument;
|
|
187
187
|
}
|
|
188
188
|
export interface TakerIsBidOptions {
|
|
189
189
|
package?: string;
|
|
190
|
-
arguments: TakerIsBidArguments | [self:
|
|
190
|
+
arguments: TakerIsBidArguments | [self: TransactionArgument];
|
|
191
191
|
}
|
|
192
192
|
export function takerIsBid(options: TakerIsBidOptions) {
|
|
193
193
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -202,11 +202,11 @@ export function takerIsBid(options: TakerIsBidOptions) {
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
export interface QuoteQuantityArguments {
|
|
205
|
-
self:
|
|
205
|
+
self: TransactionArgument;
|
|
206
206
|
}
|
|
207
207
|
export interface QuoteQuantityOptions {
|
|
208
208
|
package?: string;
|
|
209
|
-
arguments: QuoteQuantityArguments | [self:
|
|
209
|
+
arguments: QuoteQuantityArguments | [self: TransactionArgument];
|
|
210
210
|
}
|
|
211
211
|
export function quoteQuantity(options: QuoteQuantityOptions) {
|
|
212
212
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -221,11 +221,11 @@ export function quoteQuantity(options: QuoteQuantityOptions) {
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
export interface MakerEpochArguments {
|
|
224
|
-
self:
|
|
224
|
+
self: TransactionArgument;
|
|
225
225
|
}
|
|
226
226
|
export interface MakerEpochOptions {
|
|
227
227
|
package?: string;
|
|
228
|
-
arguments: MakerEpochArguments | [self:
|
|
228
|
+
arguments: MakerEpochArguments | [self: TransactionArgument];
|
|
229
229
|
}
|
|
230
230
|
export function makerEpoch(options: MakerEpochOptions) {
|
|
231
231
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -240,11 +240,11 @@ export function makerEpoch(options: MakerEpochOptions) {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
export interface MakerDeepPriceArguments {
|
|
243
|
-
self:
|
|
243
|
+
self: TransactionArgument;
|
|
244
244
|
}
|
|
245
245
|
export interface MakerDeepPriceOptions {
|
|
246
246
|
package?: string;
|
|
247
|
-
arguments: MakerDeepPriceArguments | [self:
|
|
247
|
+
arguments: MakerDeepPriceArguments | [self: TransactionArgument];
|
|
248
248
|
}
|
|
249
249
|
export function makerDeepPrice(options: MakerDeepPriceOptions) {
|
|
250
250
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -259,11 +259,11 @@ export function makerDeepPrice(options: MakerDeepPriceOptions) {
|
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
export interface TakerFeeArguments {
|
|
262
|
-
self:
|
|
262
|
+
self: TransactionArgument;
|
|
263
263
|
}
|
|
264
264
|
export interface TakerFeeOptions {
|
|
265
265
|
package?: string;
|
|
266
|
-
arguments: TakerFeeArguments | [self:
|
|
266
|
+
arguments: TakerFeeArguments | [self: TransactionArgument];
|
|
267
267
|
}
|
|
268
268
|
export function takerFee(options: TakerFeeOptions) {
|
|
269
269
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -278,11 +278,11 @@ export function takerFee(options: TakerFeeOptions) {
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
export interface TakerFeeIsDeepArguments {
|
|
281
|
-
self:
|
|
281
|
+
self: TransactionArgument;
|
|
282
282
|
}
|
|
283
283
|
export interface TakerFeeIsDeepOptions {
|
|
284
284
|
package?: string;
|
|
285
|
-
arguments: TakerFeeIsDeepArguments | [self:
|
|
285
|
+
arguments: TakerFeeIsDeepArguments | [self: TransactionArgument];
|
|
286
286
|
}
|
|
287
287
|
export function takerFeeIsDeep(options: TakerFeeIsDeepOptions) {
|
|
288
288
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -297,11 +297,11 @@ export function takerFeeIsDeep(options: TakerFeeIsDeepOptions) {
|
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
export interface MakerFeeArguments {
|
|
300
|
-
self:
|
|
300
|
+
self: TransactionArgument;
|
|
301
301
|
}
|
|
302
302
|
export interface MakerFeeOptions {
|
|
303
303
|
package?: string;
|
|
304
|
-
arguments: MakerFeeArguments | [self:
|
|
304
|
+
arguments: MakerFeeArguments | [self: TransactionArgument];
|
|
305
305
|
}
|
|
306
306
|
export function makerFee(options: MakerFeeOptions) {
|
|
307
307
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -316,11 +316,11 @@ export function makerFee(options: MakerFeeOptions) {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
export interface MakerFeeIsDeepArguments {
|
|
319
|
-
self:
|
|
319
|
+
self: TransactionArgument;
|
|
320
320
|
}
|
|
321
321
|
export interface MakerFeeIsDeepOptions {
|
|
322
322
|
package?: string;
|
|
323
|
-
arguments: MakerFeeIsDeepArguments | [self:
|
|
323
|
+
arguments: MakerFeeIsDeepArguments | [self: TransactionArgument];
|
|
324
324
|
}
|
|
325
325
|
export function makerFeeIsDeep(options: MakerFeeIsDeepOptions) {
|
|
326
326
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -140,11 +140,11 @@ export function divRoundUp(options: DivRoundUpOptions) {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
export interface MedianArguments {
|
|
143
|
-
v: RawTransactionArgument<number | bigint
|
|
143
|
+
v: RawTransactionArgument<Array<number | bigint>>;
|
|
144
144
|
}
|
|
145
145
|
export interface MedianOptions {
|
|
146
146
|
package?: string;
|
|
147
|
-
arguments: MedianArguments | [v: RawTransactionArgument<number | bigint
|
|
147
|
+
arguments: MedianArguments | [v: RawTransactionArgument<Array<number | bigint>>];
|
|
148
148
|
}
|
|
149
149
|
/** given a vector of u128, return the median */
|
|
150
150
|
export function median(options: MedianOptions) {
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* happens in this module.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { MoveStruct, normalizeMoveArguments
|
|
10
|
+
import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
11
11
|
import { bcs } from '@mysten/sui/bcs';
|
|
12
|
-
import { type Transaction } from '@mysten/sui/transactions';
|
|
12
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
13
13
|
import * as deep_price from './deep_price.js';
|
|
14
14
|
const $moduleName = '@deepbook/core::order';
|
|
15
15
|
export const Order = new MoveStruct({
|
|
@@ -59,11 +59,11 @@ export const OrderModified = new MoveStruct({
|
|
|
59
59
|
},
|
|
60
60
|
});
|
|
61
61
|
export interface BalanceManagerIdArguments {
|
|
62
|
-
self:
|
|
62
|
+
self: TransactionArgument;
|
|
63
63
|
}
|
|
64
64
|
export interface BalanceManagerIdOptions {
|
|
65
65
|
package?: string;
|
|
66
|
-
arguments: BalanceManagerIdArguments | [self:
|
|
66
|
+
arguments: BalanceManagerIdArguments | [self: TransactionArgument];
|
|
67
67
|
}
|
|
68
68
|
export function balanceManagerId(options: BalanceManagerIdOptions) {
|
|
69
69
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -78,11 +78,11 @@ export function balanceManagerId(options: BalanceManagerIdOptions) {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
export interface OrderIdArguments {
|
|
81
|
-
self:
|
|
81
|
+
self: TransactionArgument;
|
|
82
82
|
}
|
|
83
83
|
export interface OrderIdOptions {
|
|
84
84
|
package?: string;
|
|
85
|
-
arguments: OrderIdArguments | [self:
|
|
85
|
+
arguments: OrderIdArguments | [self: TransactionArgument];
|
|
86
86
|
}
|
|
87
87
|
export function orderId(options: OrderIdOptions) {
|
|
88
88
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -97,11 +97,11 @@ export function orderId(options: OrderIdOptions) {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
export interface ClientOrderIdArguments {
|
|
100
|
-
self:
|
|
100
|
+
self: TransactionArgument;
|
|
101
101
|
}
|
|
102
102
|
export interface ClientOrderIdOptions {
|
|
103
103
|
package?: string;
|
|
104
|
-
arguments: ClientOrderIdArguments | [self:
|
|
104
|
+
arguments: ClientOrderIdArguments | [self: TransactionArgument];
|
|
105
105
|
}
|
|
106
106
|
export function clientOrderId(options: ClientOrderIdOptions) {
|
|
107
107
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -116,11 +116,11 @@ export function clientOrderId(options: ClientOrderIdOptions) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
export interface QuantityArguments {
|
|
119
|
-
self:
|
|
119
|
+
self: TransactionArgument;
|
|
120
120
|
}
|
|
121
121
|
export interface QuantityOptions {
|
|
122
122
|
package?: string;
|
|
123
|
-
arguments: QuantityArguments | [self:
|
|
123
|
+
arguments: QuantityArguments | [self: TransactionArgument];
|
|
124
124
|
}
|
|
125
125
|
export function quantity(options: QuantityOptions) {
|
|
126
126
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -135,11 +135,11 @@ export function quantity(options: QuantityOptions) {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
export interface FilledQuantityArguments {
|
|
138
|
-
self:
|
|
138
|
+
self: TransactionArgument;
|
|
139
139
|
}
|
|
140
140
|
export interface FilledQuantityOptions {
|
|
141
141
|
package?: string;
|
|
142
|
-
arguments: FilledQuantityArguments | [self:
|
|
142
|
+
arguments: FilledQuantityArguments | [self: TransactionArgument];
|
|
143
143
|
}
|
|
144
144
|
export function filledQuantity(options: FilledQuantityOptions) {
|
|
145
145
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -154,11 +154,11 @@ export function filledQuantity(options: FilledQuantityOptions) {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
export interface FeeIsDeepArguments {
|
|
157
|
-
self:
|
|
157
|
+
self: TransactionArgument;
|
|
158
158
|
}
|
|
159
159
|
export interface FeeIsDeepOptions {
|
|
160
160
|
package?: string;
|
|
161
|
-
arguments: FeeIsDeepArguments | [self:
|
|
161
|
+
arguments: FeeIsDeepArguments | [self: TransactionArgument];
|
|
162
162
|
}
|
|
163
163
|
export function feeIsDeep(options: FeeIsDeepOptions) {
|
|
164
164
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -173,11 +173,11 @@ export function feeIsDeep(options: FeeIsDeepOptions) {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
export interface OrderDeepPriceArguments {
|
|
176
|
-
self:
|
|
176
|
+
self: TransactionArgument;
|
|
177
177
|
}
|
|
178
178
|
export interface OrderDeepPriceOptions {
|
|
179
179
|
package?: string;
|
|
180
|
-
arguments: OrderDeepPriceArguments | [self:
|
|
180
|
+
arguments: OrderDeepPriceArguments | [self: TransactionArgument];
|
|
181
181
|
}
|
|
182
182
|
export function orderDeepPrice(options: OrderDeepPriceOptions) {
|
|
183
183
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -192,11 +192,11 @@ export function orderDeepPrice(options: OrderDeepPriceOptions) {
|
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
export interface EpochArguments {
|
|
195
|
-
self:
|
|
195
|
+
self: TransactionArgument;
|
|
196
196
|
}
|
|
197
197
|
export interface EpochOptions {
|
|
198
198
|
package?: string;
|
|
199
|
-
arguments: EpochArguments | [self:
|
|
199
|
+
arguments: EpochArguments | [self: TransactionArgument];
|
|
200
200
|
}
|
|
201
201
|
export function epoch(options: EpochOptions) {
|
|
202
202
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -211,11 +211,11 @@ export function epoch(options: EpochOptions) {
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
export interface StatusArguments {
|
|
214
|
-
self:
|
|
214
|
+
self: TransactionArgument;
|
|
215
215
|
}
|
|
216
216
|
export interface StatusOptions {
|
|
217
217
|
package?: string;
|
|
218
|
-
arguments: StatusArguments | [self:
|
|
218
|
+
arguments: StatusArguments | [self: TransactionArgument];
|
|
219
219
|
}
|
|
220
220
|
export function status(options: StatusOptions) {
|
|
221
221
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -230,11 +230,11 @@ export function status(options: StatusOptions) {
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
export interface ExpireTimestampArguments {
|
|
233
|
-
self:
|
|
233
|
+
self: TransactionArgument;
|
|
234
234
|
}
|
|
235
235
|
export interface ExpireTimestampOptions {
|
|
236
236
|
package?: string;
|
|
237
|
-
arguments: ExpireTimestampArguments | [self:
|
|
237
|
+
arguments: ExpireTimestampArguments | [self: TransactionArgument];
|
|
238
238
|
}
|
|
239
239
|
export function expireTimestamp(options: ExpireTimestampOptions) {
|
|
240
240
|
const packageAddress = options.package ?? '@deepbook/core';
|
|
@@ -249,11 +249,11 @@ export function expireTimestamp(options: ExpireTimestampOptions) {
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
export interface PriceArguments {
|
|
252
|
-
self:
|
|
252
|
+
self: TransactionArgument;
|
|
253
253
|
}
|
|
254
254
|
export interface PriceOptions {
|
|
255
255
|
package?: string;
|
|
256
|
-
arguments: PriceArguments | [self:
|
|
256
|
+
arguments: PriceArguments | [self: TransactionArgument];
|
|
257
257
|
}
|
|
258
258
|
export function price(options: PriceOptions) {
|
|
259
259
|
const packageAddress = options.package ?? '@deepbook/core';
|