@mysten/deepbook-v3 2.4.2 → 2.5.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 +23 -0
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_events.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.d.mts +19 -19
- package/dist/contracts/account/account_registry.d.mts.map +1 -1
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
- package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +67 -67
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +95 -95
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
- package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/plp.d.mts +72 -72
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/plp.mjs +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +92 -51
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.mjs +57 -7
- package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +64 -64
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
- package/dist/contracts/deepbook_predict/strike_exposure.mjs +3 -2
- package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +105 -105
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/deployments/mainnet.mjs +21 -21
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.mjs +21 -21
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/index.mjs +1 -1
- package/dist/predict/reads/markets.mjs +11 -3
- package/dist/predict/reads/markets.mjs.map +1 -1
- package/dist/predict/reads/pricing.d.mts +0 -1
- package/dist/predict/reads/pricing.d.mts.map +1 -1
- package/dist/predict/reads/pricing.mjs +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/balanceManager.d.mts.map +1 -1
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbook.d.mts.map +1 -1
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginManager.d.mts.map +1 -1
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/package.json +2 -2
- package/src/contracts/deepbook_predict/pricing.ts +88 -6
- package/src/contracts/deepbook_predict/strike_exposure.ts +3 -2
- package/src/contracts/propbook/block_scholes_store.ts +34 -0
- package/src/contracts/propbook/pyth_feed.ts +3 -1
- package/src/deployments/mainnet.ts +22 -22
- package/src/deployments/testnet.ts +22 -22
- package/src/predict/reads/markets.ts +16 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @mysten/deepbook-v3
|
|
2
2
|
|
|
3
|
+
## 2.5.1
|
|
4
|
+
|
|
5
|
+
## 2.5.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- 5eda7bd: Point Predict at the fresh Testnet and Mainnet deployments and pick up the per-leg range
|
|
10
|
+
fee.
|
|
11
|
+
|
|
12
|
+
Both networks were redeployed, so every Predict package and object id moved. The deployment
|
|
13
|
+
records are regenerated from the deploy tooling's own manifests rather than hand-edited.
|
|
14
|
+
|
|
15
|
+
`pricing::range_price` now returns a `RangePrice` carrying both boundary probabilities instead of
|
|
16
|
+
a single `u64`, so the chain can charge each leg of a range its own fee and floor. The generated
|
|
17
|
+
bindings gain `RangePrice` with `lower_up`, `higher_up` and `probability` accessors,
|
|
18
|
+
`block_scholes_store` gains `recent_spot_at` over a bounded spot-read ring buffer, and
|
|
19
|
+
`read.price` composes `probability()` onto each `range_price` result. The combined range
|
|
20
|
+
probability is unchanged (`lower_up.saturating_sub(higher_up)`), so `read.price` returns the same
|
|
21
|
+
numbers it always did.
|
|
22
|
+
|
|
23
|
+
Callers using the generated `pricing.rangePrice` binding directly and parsing its return as a
|
|
24
|
+
`u64` must now read `probability()` (or the individual legs) from the returned struct.
|
|
25
|
+
|
|
3
26
|
## 2.4.2
|
|
4
27
|
|
|
5
28
|
## 2.4.1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
2
|
import { BcsType } from "@mysten/sui/bcs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _mysten_sui_transactions14 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/account/account.d.ts
|
|
@@ -57,7 +57,7 @@ interface IdOptions {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
/** Returns the wrapper object ID. */
|
|
60
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
60
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
61
61
|
interface LoadAccountArguments {
|
|
62
62
|
self: RawTransactionArgument<string>;
|
|
63
63
|
}
|
|
@@ -69,7 +69,7 @@ interface LoadAccountOptions {
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
/** Borrows the wrapped account for read-only composition. */
|
|
72
|
-
declare function loadAccount(options: LoadAccountOptions): (tx: Transaction) =>
|
|
72
|
+
declare function loadAccount(options: LoadAccountOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
73
73
|
interface BalanceArguments {
|
|
74
74
|
self: TransactionArgument;
|
|
75
75
|
}
|
|
@@ -85,7 +85,7 @@ interface BalanceOptions {
|
|
|
85
85
|
* Returns the total balance of `T` available to the account, including funds
|
|
86
86
|
* delivered through the ambient accumulator but not yet settled into the account.
|
|
87
87
|
*/
|
|
88
|
-
declare function balance(options: BalanceOptions): (tx: Transaction) =>
|
|
88
|
+
declare function balance(options: BalanceOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
89
89
|
interface OwnerArguments {
|
|
90
90
|
self: TransactionArgument;
|
|
91
91
|
}
|
|
@@ -100,7 +100,7 @@ interface OwnerOptions {
|
|
|
100
100
|
* Returns the account owner address. This may be an EOA address or an
|
|
101
101
|
* object-ID-as-address.
|
|
102
102
|
*/
|
|
103
|
-
declare function owner(options: OwnerOptions): (tx: Transaction) =>
|
|
103
|
+
declare function owner(options: OwnerOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
104
104
|
interface AccountIdArguments {
|
|
105
105
|
self: TransactionArgument;
|
|
106
106
|
}
|
|
@@ -112,7 +112,7 @@ interface AccountIdOptions {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
/** Returns the canonical account ID. */
|
|
115
|
-
declare function accountId(options: AccountIdOptions): (tx: Transaction) =>
|
|
115
|
+
declare function accountId(options: AccountIdOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
116
116
|
interface ReferrerAccountIdArguments {
|
|
117
117
|
self: TransactionArgument;
|
|
118
118
|
}
|
|
@@ -127,7 +127,7 @@ interface ReferrerAccountIdOptions {
|
|
|
127
127
|
* Returns the canonical referrer account ID recorded at creation for external Move
|
|
128
128
|
* composition.
|
|
129
129
|
*/
|
|
130
|
-
declare function referrerAccountId(options: ReferrerAccountIdOptions): (tx: Transaction) =>
|
|
130
|
+
declare function referrerAccountId(options: ReferrerAccountIdOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
131
131
|
interface ReferrerReceiveAddressArguments {
|
|
132
132
|
self: TransactionArgument;
|
|
133
133
|
}
|
|
@@ -142,7 +142,7 @@ interface ReferrerReceiveAddressOptions {
|
|
|
142
142
|
* Returns the referrer's accumulator receive address for external Move
|
|
143
143
|
* composition.
|
|
144
144
|
*/
|
|
145
|
-
declare function referrerReceiveAddress(options: ReferrerReceiveAddressOptions): (tx: Transaction) =>
|
|
145
|
+
declare function referrerReceiveAddress(options: ReferrerReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
146
146
|
interface ReceiveAddressArguments {
|
|
147
147
|
self: TransactionArgument;
|
|
148
148
|
}
|
|
@@ -154,7 +154,7 @@ interface ReceiveAddressOptions {
|
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
156
|
/** Returns the accumulator receive address for this account (the wrapper address). */
|
|
157
|
-
declare function receiveAddress(options: ReceiveAddressOptions): (tx: Transaction) =>
|
|
157
|
+
declare function receiveAddress(options: ReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
158
158
|
interface GenerateAuthOptions {
|
|
159
159
|
package?: string;
|
|
160
160
|
arguments?: [];
|
|
@@ -163,7 +163,7 @@ interface GenerateAuthOptions {
|
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
/** Creates owner authority bound to the transaction sender. */
|
|
166
|
-
declare function generateAuth(options?: GenerateAuthOptions): (tx: Transaction) =>
|
|
166
|
+
declare function generateAuth(options?: GenerateAuthOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
167
167
|
interface GenerateAuthAsObjectArguments {
|
|
168
168
|
uid: RawTransactionArgument<string>;
|
|
169
169
|
}
|
|
@@ -175,7 +175,7 @@ interface GenerateAuthAsObjectOptions {
|
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
/** Creates owner authority bound to an owning object's address. */
|
|
178
|
-
declare function generateAuthAsObject(options: GenerateAuthAsObjectOptions): (tx: Transaction) =>
|
|
178
|
+
declare function generateAuthAsObject(options: GenerateAuthAsObjectOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
179
179
|
interface ShareArguments {
|
|
180
180
|
self: RawTransactionArgument<string>;
|
|
181
181
|
}
|
|
@@ -187,7 +187,7 @@ interface ShareOptions {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
/** Shares a newly created account wrapper. */
|
|
190
|
-
declare function share(options: ShareOptions): (tx: Transaction) =>
|
|
190
|
+
declare function share(options: ShareOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
191
191
|
interface LoadAccountMutArguments {
|
|
192
192
|
self: RawTransactionArgument<string>;
|
|
193
193
|
auth: TransactionArgument;
|
|
@@ -204,7 +204,7 @@ interface LoadAccountMutOptions {
|
|
|
204
204
|
* Owner authority must match the stored owner; app authority is package-issued
|
|
205
205
|
* after registry authorization and carries no owner or operation restriction.
|
|
206
206
|
*/
|
|
207
|
-
declare function loadAccountMut(options: LoadAccountMutOptions): (tx: Transaction) =>
|
|
207
|
+
declare function loadAccountMut(options: LoadAccountMutOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
208
208
|
interface SettleArguments {
|
|
209
209
|
wrapper: RawTransactionArgument<string>;
|
|
210
210
|
}
|
|
@@ -224,7 +224,7 @@ interface SettleOptions {
|
|
|
224
224
|
* address-balance withdrawal; value leaving the account still requires a mutable
|
|
225
225
|
* borrow through `Auth`.
|
|
226
226
|
*/
|
|
227
|
-
declare function settle(options: SettleOptions): (tx: Transaction) =>
|
|
227
|
+
declare function settle(options: SettleOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
228
228
|
interface DepositArguments {
|
|
229
229
|
self: TransactionArgument;
|
|
230
230
|
coin: RawTransactionArgument<string>;
|
|
@@ -241,7 +241,7 @@ interface DepositOptions {
|
|
|
241
241
|
* Deposits into stored balance only; callers that include accumulator funds must
|
|
242
242
|
* settle through the wrapper first.
|
|
243
243
|
*/
|
|
244
|
-
declare function deposit(options: DepositOptions): (tx: Transaction) =>
|
|
244
|
+
declare function deposit(options: DepositOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
245
245
|
interface WithdrawArguments {
|
|
246
246
|
self: TransactionArgument;
|
|
247
247
|
amount: RawTransactionArgument<number | bigint>;
|
|
@@ -258,7 +258,7 @@ interface WithdrawOptions {
|
|
|
258
258
|
* Withdraws from stored balance only; callers that include accumulator funds must
|
|
259
259
|
* settle through the wrapper first.
|
|
260
260
|
*/
|
|
261
|
-
declare function withdraw(options: WithdrawOptions): (tx: Transaction) =>
|
|
261
|
+
declare function withdraw(options: WithdrawOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
262
262
|
interface DepositFundsArguments {
|
|
263
263
|
wrapper: RawTransactionArgument<string>;
|
|
264
264
|
auth: TransactionArgument;
|
|
@@ -276,7 +276,7 @@ interface DepositFundsOptions {
|
|
|
276
276
|
* PTB entrypoint that settles accumulator funds, consumes authority, and deposits
|
|
277
277
|
* into stored balance in one call.
|
|
278
278
|
*/
|
|
279
|
-
declare function depositFunds(options: DepositFundsOptions): (tx: Transaction) =>
|
|
279
|
+
declare function depositFunds(options: DepositFundsOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
280
280
|
interface WithdrawFundsArguments {
|
|
281
281
|
wrapper: RawTransactionArgument<string>;
|
|
282
282
|
auth: TransactionArgument;
|
|
@@ -294,7 +294,7 @@ interface WithdrawFundsOptions {
|
|
|
294
294
|
* PTB entrypoint that settles accumulator funds, consumes authority, and withdraws
|
|
295
295
|
* from stored balance in one call.
|
|
296
296
|
*/
|
|
297
|
-
declare function withdrawFunds(options: WithdrawFundsOptions): (tx: Transaction) =>
|
|
297
|
+
declare function withdrawFunds(options: WithdrawFundsOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
298
298
|
interface AttachArguments<Data extends BcsType<any>> {
|
|
299
299
|
self: TransactionArgument;
|
|
300
300
|
Permit: TransactionArgument;
|
|
@@ -312,7 +312,7 @@ interface AttachOptions<Data extends BcsType<any>> {
|
|
|
312
312
|
* Attach an app's `Data` under its witness namespace. Requires `Permit<App>`.
|
|
313
313
|
* Aborts if `App` already has data attached.
|
|
314
314
|
*/
|
|
315
|
-
declare function attach<Data extends BcsType<any>>(options: AttachOptions<Data>): (tx: Transaction) =>
|
|
315
|
+
declare function attach<Data extends BcsType<any>>(options: AttachOptions<Data>): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
316
316
|
interface HasDataArguments {
|
|
317
317
|
self: TransactionArgument;
|
|
318
318
|
}
|
|
@@ -325,7 +325,7 @@ interface HasDataOptions {
|
|
|
325
325
|
typeArguments: [string];
|
|
326
326
|
}
|
|
327
327
|
/** Whether `App` has data attached to this account. */
|
|
328
|
-
declare function hasData(options: HasDataOptions): (tx: Transaction) =>
|
|
328
|
+
declare function hasData(options: HasDataOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
329
329
|
interface BorrowDataArguments {
|
|
330
330
|
self: TransactionArgument;
|
|
331
331
|
}
|
|
@@ -342,7 +342,7 @@ interface BorrowDataOptions {
|
|
|
342
342
|
* `App` and on-chain state is public, so composing apps can read it. Aborts if
|
|
343
343
|
* nothing is attached.
|
|
344
344
|
*/
|
|
345
|
-
declare function borrowData(options: BorrowDataOptions): (tx: Transaction) =>
|
|
345
|
+
declare function borrowData(options: BorrowDataOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
346
346
|
interface BorrowDataMutArguments {
|
|
347
347
|
self: TransactionArgument;
|
|
348
348
|
Permit: TransactionArgument;
|
|
@@ -359,7 +359,7 @@ interface BorrowDataMutOptions {
|
|
|
359
359
|
* Mutably borrow an app's attached `Data`. Requires `Permit<App>`. Aborts if
|
|
360
360
|
* nothing is attached.
|
|
361
361
|
*/
|
|
362
|
-
declare function borrowDataMut(options: BorrowDataMutOptions): (tx: Transaction) =>
|
|
362
|
+
declare function borrowDataMut(options: BorrowDataMutOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
363
363
|
interface DetachArguments {
|
|
364
364
|
self: TransactionArgument;
|
|
365
365
|
Permit: TransactionArgument;
|
|
@@ -376,7 +376,7 @@ interface DetachOptions {
|
|
|
376
376
|
* Detach and return an app's `Data`. Requires `Permit<App>`. Aborts if nothing is
|
|
377
377
|
* attached.
|
|
378
378
|
*/
|
|
379
|
-
declare function detach(options: DetachOptions): (tx: Transaction) =>
|
|
379
|
+
declare function detach(options: DetachOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
|
|
380
380
|
//#endregion
|
|
381
381
|
export { Account, AccountWrapper, account_d_exports };
|
|
382
382
|
//# sourceMappingURL=account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.mts","names":[],"sources":["../../../src/contracts/account/account.ts"],"mappings":";;;;;;;;;cAyBa,OAAA,EAAO,UAAA;;;;;;;;;;;;;;;cAmBP,cAAA,EAAc,UAAA;;;;;;;;;;;;;;;;;;cAOd,OAAA,EAAO,SAAA,WAAA,OAAA;AAAA,cAIP,OAAA,EAAO,SAAA,WAAA,OAAA;AAAA,cAIP,IAAA,EAAI,UAAA;;;;UAOA,WAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,IAAA,EAAM,sBAAA;EAChC,MAAA;IACC,gBAAA;EAAA;AAAA;AAhDF;AAAA,iBAoDgB,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,
|
|
1
|
+
{"version":3,"file":"account.d.mts","names":[],"sources":["../../../src/contracts/account/account.ts"],"mappings":";;;;;;;;;cAyBa,OAAA,EAAO,UAAA;;;;;;;;;;;;;;;cAmBP,cAAA,EAAc,UAAA;;;;;;;;;;;;;;;;;;cAOd,OAAA,EAAO,SAAA,WAAA,OAAA;AAAA,cAIP,OAAA,EAAO,SAAA,WAAA,OAAA;AAAA,cAIP,IAAA,EAAI,UAAA;;;;UAOA,WAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,IAAA,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,IAAA,EAAM,mBAAA,EAAqB,MAAA,EAAQ,mBAAA;EACjE,MAAA;IACC,gBAAA;EAAA;EAED,aAAA;AAAA;;;;;iBAMe,MAAA,CAAO,OAAA,EAAS,aAAA,IAKvB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs10 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/account/account_events.d.ts
|
|
5
5
|
declare namespace account_events_d_exports {
|
|
6
6
|
export { AccountCreated, AppAuthorized, AppDeauthorized, Deposited, FundsSettled, Withdrawn };
|
|
7
7
|
}
|
|
8
8
|
declare const AccountCreated: MoveStruct<{
|
|
9
|
-
account_id:
|
|
10
|
-
wrapper_id:
|
|
11
|
-
owner:
|
|
12
|
-
self_owned:
|
|
13
|
-
referrer_account_id:
|
|
9
|
+
account_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
wrapper_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
owner: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
self_owned: _mysten_sui_bcs10.BcsType<boolean, boolean, "bool">;
|
|
13
|
+
referrer_account_id: _mysten_sui_bcs10.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
14
14
|
}, "@local-pkg/account::account_events::AccountCreated">;
|
|
15
15
|
declare const AppAuthorized: MoveStruct<{
|
|
16
|
-
/** Fully-qualified `App` witness type name. */app:
|
|
16
|
+
/** Fully-qualified `App` witness type name. */app: _mysten_sui_bcs10.BcsType<string, string, "string">;
|
|
17
17
|
}, "@local-pkg/account::account_events::AppAuthorized">;
|
|
18
18
|
declare const AppDeauthorized: MoveStruct<{
|
|
19
|
-
app:
|
|
19
|
+
app: _mysten_sui_bcs10.BcsType<string, string, "string">;
|
|
20
20
|
}, "@local-pkg/account::account_events::AppDeauthorized">;
|
|
21
21
|
declare const Deposited: MoveStruct<{
|
|
22
|
-
account_id:
|
|
23
|
-
coin_type:
|
|
24
|
-
amount:
|
|
25
|
-
new_balance:
|
|
22
|
+
account_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
coin_type: _mysten_sui_bcs10.BcsType<string, string, "string">;
|
|
24
|
+
amount: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
|
|
25
|
+
new_balance: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
|
|
26
26
|
}, "@local-pkg/account::account_events::Deposited">;
|
|
27
27
|
declare const Withdrawn: MoveStruct<{
|
|
28
|
-
account_id:
|
|
29
|
-
coin_type:
|
|
30
|
-
amount:
|
|
31
|
-
new_balance:
|
|
28
|
+
account_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
29
|
+
coin_type: _mysten_sui_bcs10.BcsType<string, string, "string">;
|
|
30
|
+
amount: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
|
|
31
|
+
new_balance: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
32
|
}, "@local-pkg/account::account_events::Withdrawn">;
|
|
33
33
|
declare const FundsSettled: MoveStruct<{
|
|
34
|
-
account_id:
|
|
35
|
-
coin_type:
|
|
36
|
-
amount:
|
|
37
|
-
new_balance:
|
|
34
|
+
account_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
35
|
+
coin_type: _mysten_sui_bcs10.BcsType<string, string, "string">;
|
|
36
|
+
amount: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
new_balance: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
38
|
}, "@local-pkg/account::account_events::FundsSettled">;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { account_events_d_exports };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account_events.d.mts","names":[],"sources":["../../../src/contracts/account/account_events.ts"],"mappings":";;;;;;;cAca,cAAA,EAAc,UAAA;;;;;;;cAUd,aAAA,EAAa,UAAA;sDAMxB,
|
|
1
|
+
{"version":3,"file":"account_events.d.mts","names":[],"sources":["../../../src/contracts/account/account_events.ts"],"mappings":";;;;;;;cAca,cAAA,EAAc,UAAA;;;;;;;cAUd,aAAA,EAAa,UAAA;sDAMxB,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,eAAA,EAAe,UAAA;OAK1B,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,SAAA,EAAS,UAAA;;;;;;cAST,SAAA,EAAS,UAAA;;;;;;cAST,YAAA,EAAY,UAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs29 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions36 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/account/account_registry.d.ts
|
|
@@ -8,14 +8,14 @@ declare namespace account_registry_d_exports {
|
|
|
8
8
|
export { AccountAdminCap, AccountKey, AccountRegistry, AccountWrapperKey, AppKey, AssertAppIsAuthorizedArguments, AssertAppIsAuthorizedOptions, AuthorizeAppArguments, AuthorizeAppOptions, DeauthorizeAppArguments, DeauthorizeAppOptions, DerivedAddressArguments, DerivedAddressOptions, DerivedExistsArguments, DerivedExistsOptions, DerivedWrapperAddressArguments, DerivedWrapperAddressOptions, DerivedWrapperExistsArguments, DerivedWrapperExistsOptions, GenerateAuthAsAppArguments, GenerateAuthAsAppOptions, IsAppAuthorizedArguments, IsAppAuthorizedOptions, NewArguments, NewOptions, NewSelfOwnedArguments, NewSelfOwnedOptions, NewWithReferrerArguments, NewWithReferrerOptions, _new, assertAppIsAuthorized, authorizeApp, deauthorizeApp, derivedAddress, derivedExists, derivedWrapperAddress, derivedWrapperExists, generateAuthAsApp, isAppAuthorized, newSelfOwned, newWithReferrer };
|
|
9
9
|
}
|
|
10
10
|
declare const AccountAdminCap: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
}, "@local-pkg/account::account_registry::AccountAdminCap">;
|
|
13
13
|
declare const AccountRegistry: MoveStruct<{
|
|
14
|
-
id:
|
|
14
|
+
id: _mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
15
|
}, "@local-pkg/account::account_registry::AccountRegistry">;
|
|
16
|
-
declare const AccountKey: MoveTuple<readonly [
|
|
17
|
-
declare const AccountWrapperKey: MoveTuple<readonly [
|
|
18
|
-
declare const AppKey: MoveTuple<readonly [
|
|
16
|
+
declare const AccountKey: MoveTuple<readonly [_mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">], "@local-pkg/account::account_registry::AccountKey">;
|
|
17
|
+
declare const AccountWrapperKey: MoveTuple<readonly [_mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">], "@local-pkg/account::account_registry::AccountWrapperKey">;
|
|
18
|
+
declare const AppKey: MoveTuple<readonly [_mysten_sui_bcs29.BcsType<boolean, boolean, "bool">], "@local-pkg/account::account_registry::AppKey<phantom App>">;
|
|
19
19
|
interface DerivedAddressArguments {
|
|
20
20
|
registry?: RawTransactionArgument<string>;
|
|
21
21
|
owner: RawTransactionArgument<string>;
|
|
@@ -32,7 +32,7 @@ interface DerivedAddressOptions {
|
|
|
32
32
|
* Returns the deterministic canonical account address for external discovery and
|
|
33
33
|
* PTB construction.
|
|
34
34
|
*/
|
|
35
|
-
declare function derivedAddress(options: DerivedAddressOptions): (tx: Transaction) =>
|
|
35
|
+
declare function derivedAddress(options: DerivedAddressOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
36
36
|
interface DerivedWrapperAddressArguments {
|
|
37
37
|
registry?: RawTransactionArgument<string>;
|
|
38
38
|
owner: RawTransactionArgument<string>;
|
|
@@ -49,7 +49,7 @@ interface DerivedWrapperAddressOptions {
|
|
|
49
49
|
* Returns the deterministic wrapper address for external discovery, accumulator
|
|
50
50
|
* delivery, and PTB construction.
|
|
51
51
|
*/
|
|
52
|
-
declare function derivedWrapperAddress(options: DerivedWrapperAddressOptions): (tx: Transaction) =>
|
|
52
|
+
declare function derivedWrapperAddress(options: DerivedWrapperAddressOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
53
53
|
interface DerivedExistsArguments {
|
|
54
54
|
registry?: RawTransactionArgument<string>;
|
|
55
55
|
owner: RawTransactionArgument<string>;
|
|
@@ -63,7 +63,7 @@ interface DerivedExistsOptions {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
/** Returns whether the canonical account identity has been claimed. */
|
|
66
|
-
declare function derivedExists(options: DerivedExistsOptions): (tx: Transaction) =>
|
|
66
|
+
declare function derivedExists(options: DerivedExistsOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
67
67
|
interface DerivedWrapperExistsArguments {
|
|
68
68
|
registry?: RawTransactionArgument<string>;
|
|
69
69
|
owner: RawTransactionArgument<string>;
|
|
@@ -77,7 +77,7 @@ interface DerivedWrapperExistsOptions {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
/** Returns whether the canonical wrapper has been claimed. */
|
|
80
|
-
declare function derivedWrapperExists(options: DerivedWrapperExistsOptions): (tx: Transaction) =>
|
|
80
|
+
declare function derivedWrapperExists(options: DerivedWrapperExistsOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
81
81
|
interface NewArguments {
|
|
82
82
|
registry?: RawTransactionArgument<string>;
|
|
83
83
|
}
|
|
@@ -93,7 +93,7 @@ interface NewOptions {
|
|
|
93
93
|
* Creates the sender's canonical account and wrapper, aborting if either derived
|
|
94
94
|
* ID is already claimed.
|
|
95
95
|
*/
|
|
96
|
-
declare function _new(options: NewOptions): (tx: Transaction) =>
|
|
96
|
+
declare function _new(options: NewOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
97
97
|
interface NewWithReferrerArguments {
|
|
98
98
|
registry?: RawTransactionArgument<string>;
|
|
99
99
|
referrer: RawTransactionArgument<string>;
|
|
@@ -110,7 +110,7 @@ interface NewWithReferrerOptions {
|
|
|
110
110
|
* Creates the sender's canonical account and permanently records the supplied
|
|
111
111
|
* wrapper's account identity and receive address as its referrer.
|
|
112
112
|
*/
|
|
113
|
-
declare function newWithReferrer(options: NewWithReferrerOptions): (tx: Transaction) =>
|
|
113
|
+
declare function newWithReferrer(options: NewWithReferrerOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
114
114
|
interface NewSelfOwnedArguments {
|
|
115
115
|
registry?: RawTransactionArgument<string>;
|
|
116
116
|
ownerUid: RawTransactionArgument<string>;
|
|
@@ -127,7 +127,7 @@ interface NewSelfOwnedOptions {
|
|
|
127
127
|
* Creates the canonical account owned by `owner_uid`'s object address, aborting if
|
|
128
128
|
* either derived ID is already claimed.
|
|
129
129
|
*/
|
|
130
|
-
declare function newSelfOwned(options: NewSelfOwnedOptions): (tx: Transaction) =>
|
|
130
|
+
declare function newSelfOwned(options: NewSelfOwnedOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
131
131
|
interface IsAppAuthorizedArguments {
|
|
132
132
|
registry?: RawTransactionArgument<string>;
|
|
133
133
|
}
|
|
@@ -141,7 +141,7 @@ interface IsAppAuthorizedOptions {
|
|
|
141
141
|
typeArguments: [string];
|
|
142
142
|
}
|
|
143
143
|
/** Returns whether `App` may request package-issued mutable account authority. */
|
|
144
|
-
declare function isAppAuthorized(options: IsAppAuthorizedOptions): (tx: Transaction) =>
|
|
144
|
+
declare function isAppAuthorized(options: IsAppAuthorizedOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
145
145
|
interface AuthorizeAppArguments {
|
|
146
146
|
registry?: RawTransactionArgument<string>;
|
|
147
147
|
Cap: RawTransactionArgument<string>;
|
|
@@ -156,7 +156,7 @@ interface AuthorizeAppOptions {
|
|
|
156
156
|
typeArguments: [string];
|
|
157
157
|
}
|
|
158
158
|
/** Globally authorizes `App` to request mutable authority for account wrappers. */
|
|
159
|
-
declare function authorizeApp(options: AuthorizeAppOptions): (tx: Transaction) =>
|
|
159
|
+
declare function authorizeApp(options: AuthorizeAppOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
160
160
|
interface DeauthorizeAppArguments {
|
|
161
161
|
registry?: RawTransactionArgument<string>;
|
|
162
162
|
Cap: RawTransactionArgument<string>;
|
|
@@ -171,7 +171,7 @@ interface DeauthorizeAppOptions {
|
|
|
171
171
|
typeArguments: [string];
|
|
172
172
|
}
|
|
173
173
|
/** Revokes `App` from requesting new mutable account authority. */
|
|
174
|
-
declare function deauthorizeApp(options: DeauthorizeAppOptions): (tx: Transaction) =>
|
|
174
|
+
declare function deauthorizeApp(options: DeauthorizeAppOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
175
175
|
interface AssertAppIsAuthorizedArguments {
|
|
176
176
|
registry?: RawTransactionArgument<string>;
|
|
177
177
|
}
|
|
@@ -185,7 +185,7 @@ interface AssertAppIsAuthorizedOptions {
|
|
|
185
185
|
typeArguments: [string];
|
|
186
186
|
}
|
|
187
187
|
/** Aborts unless `App` is currently authorized for app-driven account access. */
|
|
188
|
-
declare function assertAppIsAuthorized(options: AssertAppIsAuthorizedOptions): (tx: Transaction) =>
|
|
188
|
+
declare function assertAppIsAuthorized(options: AssertAppIsAuthorizedOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
189
189
|
interface GenerateAuthAsAppArguments {
|
|
190
190
|
registry?: RawTransactionArgument<string>;
|
|
191
191
|
Permit: TransactionArgument;
|
|
@@ -204,7 +204,7 @@ interface GenerateAuthAsAppOptions {
|
|
|
204
204
|
* whitelist. `Permit<App>` restricts the request to the module that defines `App`;
|
|
205
205
|
* the returned authority is not bound to an owner, wrapper, or operation.
|
|
206
206
|
*/
|
|
207
|
-
declare function generateAuthAsApp(options: GenerateAuthAsAppOptions): (tx: Transaction) =>
|
|
207
|
+
declare function generateAuthAsApp(options: GenerateAuthAsAppOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
|
|
208
208
|
//#endregion
|
|
209
209
|
export { account_registry_d_exports };
|
|
210
210
|
//# sourceMappingURL=account_registry.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account_registry.d.mts","names":[],"sources":["../../../src/contracts/account/account_registry.ts"],"mappings":";;;;;;;;;cAsBa,eAAA,EAAe,UAAA;;;cAMf,eAAA,EAAe,UAAA;;;cAMf,UAAA,EAAU,SAAA,WAAA,
|
|
1
|
+
{"version":3,"file":"account_registry.d.mts","names":[],"sources":["../../../src/contracts/account/account_registry.ts"],"mappings":";;;;;;;;;cAsBa,eAAA,EAAe,UAAA;;;cAMf,eAAA,EAAe,UAAA;;;cAMf,UAAA,EAAU,SAAA,WAAA,iBAAA,CAAA,OAAA,kBAAA,UAAA,CAAA,eAAA;AAAA,cAIV,iBAAA,EAAiB,SAAA,WAAA,iBAAA,CAAA,OAAA,kBAAA,UAAA,CAAA,eAAA;AAAA,cAIjB,MAAA,EAAM,SAAA,WAGjB,iBAAA,CAHiB,OAAA;AAAA,UAIF,uBAAA;EAChB,QAAA,GAAW,sBAA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AK7B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAgBP,uBAAA;EAChB,QAAA,GAAW,sBAAA;EACX,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,qBAAA;EAChB,OAAA;EACA,SAAA,EAAW,uBAAA;EACX,MAAA;IACC,eAAA,EAAiB,WAAA;IACjB,gBAAA;EAAA;EAED,aAAA;AAAA;;iBAGe,cAAA,CAAe,OAAA,EAAS,qBAAA,IAK/B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAgBP,8BAAA;EAChB,QAAA,GAAW,sBAAA;AAAA;AAAA,UAEK,4BAAA;EAChB,OAAA;EACA,SAAA,GAAY,8BAAA;EACZ,MAAA;IACC,eAAA,EAAiB,WAAA;IACjB,gBAAA;EAAA;EAED,aAAA;AAAA;;iBAGe,qBAAA,CAAsB,OAAA,EAAS,4BAAA,IAKtC,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAgBP,0BAAA;EAChB,QAAA,GAAW,sBAAA;EACX,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,wBAAA;EAChB,OAAA;EACA,SAAA,EAAW,0BAAA;EACX,MAAA;IACC,eAAA,EAAiB,WAAA;IACjB,gBAAA;EAAA;EAED,aAAA;AAAA;;;;;;iBAOe,iBAAA,CAAkB,OAAA,EAAS,wBAAA,IAKlC,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs477 from "@mysten/sui/bcs";
|
|
3
3
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/deepbook/account.d.ts
|
|
6
6
|
declare const Account: MoveStruct<{
|
|
7
|
-
epoch:
|
|
7
|
+
epoch: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
8
8
|
open_orders: MoveStruct<{
|
|
9
|
-
contents:
|
|
9
|
+
contents: _mysten_sui_bcs477.BcsType<string[], Iterable<string | number | bigint> & {
|
|
10
10
|
length: number;
|
|
11
11
|
}, string>;
|
|
12
12
|
}, "0x2::vec_set::VecSet<u128>">;
|
|
13
|
-
taker_volume:
|
|
14
|
-
maker_volume:
|
|
15
|
-
active_stake:
|
|
16
|
-
inactive_stake:
|
|
17
|
-
created_proposal:
|
|
18
|
-
voted_proposal:
|
|
13
|
+
taker_volume: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u128">;
|
|
14
|
+
maker_volume: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u128">;
|
|
15
|
+
active_stake: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
16
|
+
inactive_stake: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
17
|
+
created_proposal: _mysten_sui_bcs477.BcsType<boolean, boolean, "bool">;
|
|
18
|
+
voted_proposal: _mysten_sui_bcs477.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
19
19
|
unclaimed_rebates: MoveStruct<{
|
|
20
|
-
base:
|
|
21
|
-
quote:
|
|
22
|
-
deep:
|
|
20
|
+
base: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
21
|
+
quote: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
22
|
+
deep: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
23
23
|
}, "@deepbook/core::balances::Balances">;
|
|
24
24
|
settled_balances: MoveStruct<{
|
|
25
|
-
base:
|
|
26
|
-
quote:
|
|
27
|
-
deep:
|
|
25
|
+
base: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
26
|
+
quote: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
27
|
+
deep: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
28
28
|
}, "@deepbook/core::balances::Balances">;
|
|
29
29
|
owed_balances: MoveStruct<{
|
|
30
|
-
base:
|
|
31
|
-
quote:
|
|
32
|
-
deep:
|
|
30
|
+
base: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
31
|
+
quote: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
32
|
+
deep: _mysten_sui_bcs477.BcsType<string, string | number | bigint, "u64">;
|
|
33
33
|
}, "@deepbook/core::balances::Balances">;
|
|
34
34
|
}, "@deepbook/core::account::Account">;
|
|
35
35
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs539 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deepbook/balances.d.ts
|
|
5
5
|
declare const Balances: MoveStruct<{
|
|
6
|
-
base:
|
|
7
|
-
quote:
|
|
8
|
-
deep:
|
|
6
|
+
base: _mysten_sui_bcs539.BcsType<string, string | number | bigint, "u64">;
|
|
7
|
+
quote: _mysten_sui_bcs539.BcsType<string, string | number | bigint, "u64">;
|
|
8
|
+
deep: _mysten_sui_bcs539.BcsType<string, string | number | bigint, "u64">;
|
|
9
9
|
}, "@deepbook/core::balances::Balances">;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Balances };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs494 from "@mysten/sui/bcs";
|
|
3
3
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/deepbook/deep_price.d.ts
|
|
6
6
|
declare const OrderDeepPrice: MoveStruct<{
|
|
7
|
-
asset_is_base:
|
|
8
|
-
deep_per_asset:
|
|
7
|
+
asset_is_base: _mysten_sui_bcs494.BcsType<boolean, boolean, "bool">;
|
|
8
|
+
deep_per_asset: _mysten_sui_bcs494.BcsType<string, string | number | bigint, "u64">;
|
|
9
9
|
}, "@deepbook/core::deep_price::OrderDeepPrice">;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { OrderDeepPrice };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs507 from "@mysten/sui/bcs";
|
|
3
3
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/deepbook/order.d.ts
|
|
6
6
|
declare const Order: MoveStruct<{
|
|
7
|
-
balance_manager_id:
|
|
8
|
-
order_id:
|
|
9
|
-
client_order_id:
|
|
10
|
-
quantity:
|
|
11
|
-
filled_quantity:
|
|
12
|
-
fee_is_deep:
|
|
7
|
+
balance_manager_id: _mysten_sui_bcs507.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
|
+
order_id: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u128">;
|
|
9
|
+
client_order_id: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
|
|
10
|
+
quantity: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
|
|
11
|
+
filled_quantity: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
|
|
12
|
+
fee_is_deep: _mysten_sui_bcs507.BcsType<boolean, boolean, "bool">;
|
|
13
13
|
order_deep_price: MoveStruct<{
|
|
14
|
-
asset_is_base:
|
|
15
|
-
deep_per_asset:
|
|
14
|
+
asset_is_base: _mysten_sui_bcs507.BcsType<boolean, boolean, "bool">;
|
|
15
|
+
deep_per_asset: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
|
|
16
16
|
}, "@deepbook/core::deep_price::OrderDeepPrice">;
|
|
17
|
-
epoch:
|
|
18
|
-
status:
|
|
19
|
-
expire_timestamp:
|
|
17
|
+
epoch: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
|
|
18
|
+
status: _mysten_sui_bcs507.BcsType<number, number, "u8">;
|
|
19
|
+
expire_timestamp: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
|
|
20
20
|
}, "@deepbook/core::order::Order">;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Order };
|