@mysten/deepbook-v3 2.10.0 → 2.10.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 +11 -0
- package/dist/account-bindings/account-registry.d.mts +13 -13
- package/dist/account-bindings/account.d.mts +25 -25
- package/dist/account-bindings/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 +6 -6
- 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 +16 -16
- 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 +85 -85
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +62 -62
- 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 +74 -74
- package/dist/contracts/deepbook_predict/plp.d.mts.map +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 +67 -67
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +85 -85
- 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 +32 -32
- package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
- package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
- package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +54 -54
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
- 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 +45 -45
- package/dist/predict/bindings/expiry-market.d.mts +8 -8
- package/dist/predict/bindings/expiry-market.d.mts.map +1 -1
- package/dist/predict/bindings/protocol-config.d.mts +3 -3
- package/dist/predict/bindings/protocol-config.d.mts.map +1 -1
- package/dist/predict/bindings/queue.d.mts +2 -2
- package/dist/predict/bindings/queue.d.mts.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/deepbook.d.mts +20 -20
- 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/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/dist/utils/constants.d.mts.map +1 -1
- package/dist/utils/constants.mjs +1 -1
- package/dist/utils/constants.mjs.map +1 -1
- package/package.json +1 -1
- package/src/utils/constants.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @mysten/deepbook-v3
|
|
2
2
|
|
|
3
|
+
## 2.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c2766b4: Bump the testnet `LIQUIDATION_PACKAGE_ID` to `margin_liquidation` v5: `0x29bccec5…` →
|
|
8
|
+
`0x4f4916fc38892fe335a8aab45e3f42700060eb2d20f854607489ad88a88393a9`. v5 links testnet core v21
|
|
9
|
+
and margin v17, the packages `DEEPBOOK_PACKAGE_ID` and `MARGIN_PACKAGE_ID` already point at. It is
|
|
10
|
+
built from the same source as mainnet v6. It keeps every public signature and retires the
|
|
11
|
+
legacy-Pyth `liquidate_base` and `liquidate_quote`, which no builder here calls. Mainnet is
|
|
12
|
+
unchanged.
|
|
13
|
+
|
|
3
14
|
## 2.10.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigValue } from "../contracts/utils/index.mjs";
|
|
2
2
|
import { 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 } from "../contracts/account/account_registry.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _mysten_sui_transactions71 from "@mysten/sui/transactions";
|
|
4
4
|
|
|
5
5
|
//#region src/account-bindings/account-registry.d.ts
|
|
6
6
|
declare namespace account_registry_d_exports {
|
|
@@ -13,7 +13,7 @@ declare const derivedAddress: (options: Omit<DerivedAddressOptions, "config"> &
|
|
|
13
13
|
} & {
|
|
14
14
|
accountPackageIdLatest?: string;
|
|
15
15
|
}) | undefined;
|
|
16
|
-
}) => (tx:
|
|
16
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
17
17
|
declare const derivedWrapperAddress: (options: Omit<DerivedWrapperAddressOptions, "config"> & {
|
|
18
18
|
config?: ({
|
|
19
19
|
accountRegistry: ConfigValue;
|
|
@@ -21,7 +21,7 @@ declare const derivedWrapperAddress: (options: Omit<DerivedWrapperAddressOptions
|
|
|
21
21
|
} & {
|
|
22
22
|
accountPackageIdLatest?: string;
|
|
23
23
|
}) | undefined;
|
|
24
|
-
}) => (tx:
|
|
24
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
25
25
|
declare const derivedExists: (options: Omit<DerivedExistsOptions, "config"> & {
|
|
26
26
|
config?: ({
|
|
27
27
|
accountRegistry: ConfigValue;
|
|
@@ -29,7 +29,7 @@ declare const derivedExists: (options: Omit<DerivedExistsOptions, "config"> & {
|
|
|
29
29
|
} & {
|
|
30
30
|
accountPackageIdLatest?: string;
|
|
31
31
|
}) | undefined;
|
|
32
|
-
}) => (tx:
|
|
32
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
33
33
|
declare const derivedWrapperExists: (options: Omit<DerivedWrapperExistsOptions, "config"> & {
|
|
34
34
|
config?: ({
|
|
35
35
|
accountRegistry: ConfigValue;
|
|
@@ -37,7 +37,7 @@ declare const derivedWrapperExists: (options: Omit<DerivedWrapperExistsOptions,
|
|
|
37
37
|
} & {
|
|
38
38
|
accountPackageIdLatest?: string;
|
|
39
39
|
}) | undefined;
|
|
40
|
-
}) => (tx:
|
|
40
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
41
41
|
declare const _new: (options: Omit<NewOptions, "config"> & {
|
|
42
42
|
config?: ({
|
|
43
43
|
accountRegistry: ConfigValue;
|
|
@@ -45,7 +45,7 @@ declare const _new: (options: Omit<NewOptions, "config"> & {
|
|
|
45
45
|
} & {
|
|
46
46
|
accountPackageIdLatest?: string;
|
|
47
47
|
}) | undefined;
|
|
48
|
-
}) => (tx:
|
|
48
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
49
49
|
declare const newWithReferrer: (options: Omit<NewWithReferrerOptions, "config"> & {
|
|
50
50
|
config?: ({
|
|
51
51
|
accountRegistry: ConfigValue;
|
|
@@ -53,7 +53,7 @@ declare const newWithReferrer: (options: Omit<NewWithReferrerOptions, "config">
|
|
|
53
53
|
} & {
|
|
54
54
|
accountPackageIdLatest?: string;
|
|
55
55
|
}) | undefined;
|
|
56
|
-
}) => (tx:
|
|
56
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
57
57
|
declare const newSelfOwned: (options: Omit<NewSelfOwnedOptions, "config"> & {
|
|
58
58
|
config?: ({
|
|
59
59
|
accountRegistry: ConfigValue;
|
|
@@ -61,7 +61,7 @@ declare const newSelfOwned: (options: Omit<NewSelfOwnedOptions, "config"> & {
|
|
|
61
61
|
} & {
|
|
62
62
|
accountPackageIdLatest?: string;
|
|
63
63
|
}) | undefined;
|
|
64
|
-
}) => (tx:
|
|
64
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
65
65
|
declare const isAppAuthorized: (options: Omit<IsAppAuthorizedOptions, "config"> & {
|
|
66
66
|
config?: ({
|
|
67
67
|
accountRegistry: ConfigValue;
|
|
@@ -69,7 +69,7 @@ declare const isAppAuthorized: (options: Omit<IsAppAuthorizedOptions, "config">
|
|
|
69
69
|
} & {
|
|
70
70
|
accountPackageIdLatest?: string;
|
|
71
71
|
}) | undefined;
|
|
72
|
-
}) => (tx:
|
|
72
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
73
73
|
declare const authorizeApp: (options: Omit<AuthorizeAppOptions, "config"> & {
|
|
74
74
|
config?: ({
|
|
75
75
|
accountRegistry: ConfigValue;
|
|
@@ -77,7 +77,7 @@ declare const authorizeApp: (options: Omit<AuthorizeAppOptions, "config"> & {
|
|
|
77
77
|
} & {
|
|
78
78
|
accountPackageIdLatest?: string;
|
|
79
79
|
}) | undefined;
|
|
80
|
-
}) => (tx:
|
|
80
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
81
81
|
declare const deauthorizeApp: (options: Omit<DeauthorizeAppOptions, "config"> & {
|
|
82
82
|
config?: ({
|
|
83
83
|
accountRegistry: ConfigValue;
|
|
@@ -85,7 +85,7 @@ declare const deauthorizeApp: (options: Omit<DeauthorizeAppOptions, "config"> &
|
|
|
85
85
|
} & {
|
|
86
86
|
accountPackageIdLatest?: string;
|
|
87
87
|
}) | undefined;
|
|
88
|
-
}) => (tx:
|
|
88
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
89
89
|
declare const assertAppIsAuthorized: (options: Omit<AssertAppIsAuthorizedOptions, "config"> & {
|
|
90
90
|
config?: ({
|
|
91
91
|
accountRegistry: ConfigValue;
|
|
@@ -93,7 +93,7 @@ declare const assertAppIsAuthorized: (options: Omit<AssertAppIsAuthorizedOptions
|
|
|
93
93
|
} & {
|
|
94
94
|
accountPackageIdLatest?: string;
|
|
95
95
|
}) | undefined;
|
|
96
|
-
}) => (tx:
|
|
96
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
97
97
|
declare const generateAuthAsApp: (options: Omit<GenerateAuthAsAppOptions, "config"> & {
|
|
98
98
|
config?: ({
|
|
99
99
|
accountRegistry: ConfigValue;
|
|
@@ -101,7 +101,7 @@ declare const generateAuthAsApp: (options: Omit<GenerateAuthAsAppOptions, "confi
|
|
|
101
101
|
} & {
|
|
102
102
|
accountPackageIdLatest?: string;
|
|
103
103
|
}) | undefined;
|
|
104
|
-
}) => (tx:
|
|
104
|
+
}) => (tx: _mysten_sui_transactions71.Transaction) => _mysten_sui_transactions71.TransactionResult;
|
|
105
105
|
/** Every generated function wrapped above, for the completeness test. */
|
|
106
106
|
declare const WRAPPED: readonly ["derivedAddress", "derivedWrapperAddress", "derivedExists", "derivedWrapperExists", "_new", "newWithReferrer", "newSelfOwned", "isAppAuthorized", "authorizeApp", "deauthorizeApp", "assertAppIsAuthorized", "generateAuthAsApp"];
|
|
107
107
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Account, AccountIdArguments, AccountIdOptions, AccountWrapper, AttachArguments, AttachOptions, Auth, BalanceArguments, BalanceOptions, BorrowDataArguments, BorrowDataMutArguments, BorrowDataMutOptions, BorrowDataOptions, CoinKey, DataKey, DepositArguments, DepositFundsArguments, DepositFundsOptions, DepositOptions, DetachArguments, DetachOptions, GenerateAuthAsObjectArguments, GenerateAuthAsObjectOptions, GenerateAuthOptions, HasDataArguments, HasDataOptions, IdArguments, IdOptions, LoadAccountArguments, LoadAccountMutArguments, LoadAccountMutOptions, LoadAccountOptions, OwnerArguments, OwnerOptions, ReceiveAddressArguments, ReceiveAddressOptions, ReceiveCoinArguments, ReceiveCoinAtAccountIdArguments, ReceiveCoinAtAccountIdOptions, ReceiveCoinOptions, ReferrerAccountIdArguments, ReferrerAccountIdOptions, ReferrerReceiveAddressArguments, ReferrerReceiveAddressOptions, SettleArguments, SettleOptions, ShareArguments, ShareOptions, WithdrawArguments, WithdrawFundsArguments, WithdrawFundsOptions, WithdrawOptions } from "../contracts/account/account.mjs";
|
|
2
2
|
import { WithLatestConfig } from "./latest.mjs";
|
|
3
3
|
import { BcsType } from "@mysten/sui/bcs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _mysten_sui_transactions23 from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/account-bindings/account.d.ts
|
|
7
7
|
declare namespace account_d_exports {
|
|
@@ -13,162 +13,162 @@ declare const id: (options: Omit<IdOptions, "config"> & {
|
|
|
13
13
|
} & {
|
|
14
14
|
accountPackageIdLatest?: string;
|
|
15
15
|
}) | undefined;
|
|
16
|
-
}) => (tx:
|
|
16
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
17
17
|
declare const loadAccount: (options: Omit<LoadAccountOptions, "config"> & {
|
|
18
18
|
config?: ({
|
|
19
19
|
accountPackageId?: string;
|
|
20
20
|
} & {
|
|
21
21
|
accountPackageIdLatest?: string;
|
|
22
22
|
}) | undefined;
|
|
23
|
-
}) => (tx:
|
|
23
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
24
24
|
declare const balance: (options: Omit<BalanceOptions, "config"> & {
|
|
25
25
|
config?: ({
|
|
26
26
|
accountPackageId?: string;
|
|
27
27
|
} & {
|
|
28
28
|
accountPackageIdLatest?: string;
|
|
29
29
|
}) | undefined;
|
|
30
|
-
}) => (tx:
|
|
30
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
31
31
|
declare const owner: (options: Omit<OwnerOptions, "config"> & {
|
|
32
32
|
config?: ({
|
|
33
33
|
accountPackageId?: string;
|
|
34
34
|
} & {
|
|
35
35
|
accountPackageIdLatest?: string;
|
|
36
36
|
}) | undefined;
|
|
37
|
-
}) => (tx:
|
|
37
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
38
38
|
declare const accountId: (options: Omit<AccountIdOptions, "config"> & {
|
|
39
39
|
config?: ({
|
|
40
40
|
accountPackageId?: string;
|
|
41
41
|
} & {
|
|
42
42
|
accountPackageIdLatest?: string;
|
|
43
43
|
}) | undefined;
|
|
44
|
-
}) => (tx:
|
|
44
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
45
45
|
declare const referrerAccountId: (options: Omit<ReferrerAccountIdOptions, "config"> & {
|
|
46
46
|
config?: ({
|
|
47
47
|
accountPackageId?: string;
|
|
48
48
|
} & {
|
|
49
49
|
accountPackageIdLatest?: string;
|
|
50
50
|
}) | undefined;
|
|
51
|
-
}) => (tx:
|
|
51
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
52
52
|
declare const referrerReceiveAddress: (options: Omit<ReferrerReceiveAddressOptions, "config"> & {
|
|
53
53
|
config?: ({
|
|
54
54
|
accountPackageId?: string;
|
|
55
55
|
} & {
|
|
56
56
|
accountPackageIdLatest?: string;
|
|
57
57
|
}) | undefined;
|
|
58
|
-
}) => (tx:
|
|
58
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
59
59
|
declare const receiveAddress: (options: Omit<ReceiveAddressOptions, "config"> & {
|
|
60
60
|
config?: ({
|
|
61
61
|
accountPackageId?: string;
|
|
62
62
|
} & {
|
|
63
63
|
accountPackageIdLatest?: string;
|
|
64
64
|
}) | undefined;
|
|
65
|
-
}) => (tx:
|
|
65
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
66
66
|
declare const generateAuth: (options?: (Omit<GenerateAuthOptions, "config"> & {
|
|
67
67
|
config?: ({
|
|
68
68
|
accountPackageId?: string;
|
|
69
69
|
} & {
|
|
70
70
|
accountPackageIdLatest?: string;
|
|
71
71
|
}) | undefined;
|
|
72
|
-
}) | undefined) => (tx:
|
|
72
|
+
}) | undefined) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
73
73
|
declare const generateAuthAsObject: (options: Omit<GenerateAuthAsObjectOptions, "config"> & {
|
|
74
74
|
config?: ({
|
|
75
75
|
accountPackageId?: string;
|
|
76
76
|
} & {
|
|
77
77
|
accountPackageIdLatest?: string;
|
|
78
78
|
}) | undefined;
|
|
79
|
-
}) => (tx:
|
|
79
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
80
80
|
declare const share: (options: Omit<ShareOptions, "config"> & {
|
|
81
81
|
config?: ({
|
|
82
82
|
accountPackageId?: string;
|
|
83
83
|
} & {
|
|
84
84
|
accountPackageIdLatest?: string;
|
|
85
85
|
}) | undefined;
|
|
86
|
-
}) => (tx:
|
|
86
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
87
87
|
declare const loadAccountMut: (options: Omit<LoadAccountMutOptions, "config"> & {
|
|
88
88
|
config?: ({
|
|
89
89
|
accountPackageId?: string;
|
|
90
90
|
} & {
|
|
91
91
|
accountPackageIdLatest?: string;
|
|
92
92
|
}) | undefined;
|
|
93
|
-
}) => (tx:
|
|
93
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
94
94
|
declare const settle: (options: Omit<SettleOptions, "config"> & {
|
|
95
95
|
config?: ({
|
|
96
96
|
accountPackageId?: string;
|
|
97
97
|
} & {
|
|
98
98
|
accountPackageIdLatest?: string;
|
|
99
99
|
}) | undefined;
|
|
100
|
-
}) => (tx:
|
|
100
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
101
101
|
declare const receiveCoin: (options: Omit<ReceiveCoinOptions, "config"> & {
|
|
102
102
|
config?: ({
|
|
103
103
|
accountPackageId?: string;
|
|
104
104
|
} & {
|
|
105
105
|
accountPackageIdLatest?: string;
|
|
106
106
|
}) | undefined;
|
|
107
|
-
}) => (tx:
|
|
107
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
108
108
|
declare const receiveCoinAtAccountId: (options: Omit<ReceiveCoinAtAccountIdOptions, "config"> & {
|
|
109
109
|
config?: ({
|
|
110
110
|
accountPackageId?: string;
|
|
111
111
|
} & {
|
|
112
112
|
accountPackageIdLatest?: string;
|
|
113
113
|
}) | undefined;
|
|
114
|
-
}) => (tx:
|
|
114
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
115
115
|
declare const deposit: (options: Omit<DepositOptions, "config"> & {
|
|
116
116
|
config?: ({
|
|
117
117
|
accountPackageId?: string;
|
|
118
118
|
} & {
|
|
119
119
|
accountPackageIdLatest?: string;
|
|
120
120
|
}) | undefined;
|
|
121
|
-
}) => (tx:
|
|
121
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
122
122
|
declare const withdraw: (options: Omit<WithdrawOptions, "config"> & {
|
|
123
123
|
config?: ({
|
|
124
124
|
accountPackageId?: string;
|
|
125
125
|
} & {
|
|
126
126
|
accountPackageIdLatest?: string;
|
|
127
127
|
}) | undefined;
|
|
128
|
-
}) => (tx:
|
|
128
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
129
129
|
declare const depositFunds: (options: Omit<DepositFundsOptions, "config"> & {
|
|
130
130
|
config?: ({
|
|
131
131
|
accountPackageId?: string;
|
|
132
132
|
} & {
|
|
133
133
|
accountPackageIdLatest?: string;
|
|
134
134
|
}) | undefined;
|
|
135
|
-
}) => (tx:
|
|
135
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
136
136
|
declare const withdrawFunds: (options: Omit<WithdrawFundsOptions, "config"> & {
|
|
137
137
|
config?: ({
|
|
138
138
|
accountPackageId?: string;
|
|
139
139
|
} & {
|
|
140
140
|
accountPackageIdLatest?: string;
|
|
141
141
|
}) | undefined;
|
|
142
|
-
}) => (tx:
|
|
143
|
-
declare function attach<Data extends BcsType<any>>(options: WithLatestConfig<AttachOptions<Data>>): (tx:
|
|
142
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
143
|
+
declare function attach<Data extends BcsType<any>>(options: WithLatestConfig<AttachOptions<Data>>): (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
144
144
|
declare const hasData: (options: Omit<HasDataOptions, "config"> & {
|
|
145
145
|
config?: ({
|
|
146
146
|
accountPackageId?: string;
|
|
147
147
|
} & {
|
|
148
148
|
accountPackageIdLatest?: string;
|
|
149
149
|
}) | undefined;
|
|
150
|
-
}) => (tx:
|
|
150
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
151
151
|
declare const borrowData: (options: Omit<BorrowDataOptions, "config"> & {
|
|
152
152
|
config?: ({
|
|
153
153
|
accountPackageId?: string;
|
|
154
154
|
} & {
|
|
155
155
|
accountPackageIdLatest?: string;
|
|
156
156
|
}) | undefined;
|
|
157
|
-
}) => (tx:
|
|
157
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
158
158
|
declare const borrowDataMut: (options: Omit<BorrowDataMutOptions, "config"> & {
|
|
159
159
|
config?: ({
|
|
160
160
|
accountPackageId?: string;
|
|
161
161
|
} & {
|
|
162
162
|
accountPackageIdLatest?: string;
|
|
163
163
|
}) | undefined;
|
|
164
|
-
}) => (tx:
|
|
164
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
165
165
|
declare const detach: (options: Omit<DetachOptions, "config"> & {
|
|
166
166
|
config?: ({
|
|
167
167
|
accountPackageId?: string;
|
|
168
168
|
} & {
|
|
169
169
|
accountPackageIdLatest?: string;
|
|
170
170
|
}) | undefined;
|
|
171
|
-
}) => (tx:
|
|
171
|
+
}) => (tx: _mysten_sui_transactions23.Transaction) => _mysten_sui_transactions23.TransactionResult;
|
|
172
172
|
/** Every generated function wrapped above, for the completeness test. */
|
|
173
173
|
declare const WRAPPED: readonly ["id", "loadAccount", "balance", "owner", "accountId", "referrerAccountId", "referrerReceiveAddress", "receiveAddress", "generateAuth", "generateAuthAsObject", "share", "loadAccountMut", "settle", "receiveCoin", "receiveCoinAtAccountId", "deposit", "withdraw", "depositFunds", "withdrawFunds", "attach", "hasData", "borrowData", "borrowDataMut", "detach"];
|
|
174
174
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.mts","names":[],"sources":["../../src/account-bindings/account.ts"],"mappings":";;;;;;;;;cAYa,EAAA,GAAE,OAAA,EAAA,IAAA,CAAA,SAAA;;;;;;WAAA,
|
|
1
|
+
{"version":3,"file":"account.d.mts","names":[],"sources":["../../src/account-bindings/account.ts"],"mappings":";;;;;;;;;cAYa,EAAA,GAAE,OAAA,EAAA,IAAA,CAAA,SAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACF,WAAA,GAAW,OAAA,EAAA,IAAA,CAAA,kBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACX,OAAA,GAAO,OAAA,EAAA,IAAA,CAAA,cAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACP,KAAA,GAAK,OAAA,EAAA,IAAA,CAAA,YAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACL,SAAA,GAAS,OAAA,EAAA,IAAA,CAAA,gBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACT,iBAAA,GAAiB,OAAA,EAAA,IAAA,CAAA,wBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACjB,sBAAA,GAAsB,OAAA,EAAA,IAAA,CAAA,6BAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACtB,cAAA,GAAc,OAAA,EAAA,IAAA,CAAA,qBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACd,YAAA,GAAY,OAAA,IAAA,IAAA,CAAA,mBAAA;;;;;;wBAAA,0BAAA,CAAA,WAAA;cACZ,oBAAA,GAAoB,OAAA,EAAA,IAAA,CAAA,2BAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACpB,KAAA,GAAK,OAAA,EAAA,IAAA,CAAA,YAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACL,cAAA,GAAc,OAAA,EAAA,IAAA,CAAA,qBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACd,MAAA,GAAM,OAAA,EAAA,IAAA,CAAA,aAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACN,WAAA,GAAW,OAAA,EAAA,IAAA,CAAA,kBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACX,sBAAA,GAAsB,OAAA,EAAA,IAAA,CAAA,6BAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACtB,OAAA,GAAO,OAAA,EAAA,IAAA,CAAA,cAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACP,QAAA,GAAQ,OAAA,EAAA,IAAA,CAAA,eAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACR,YAAA,GAAY,OAAA,EAAA,IAAA,CAAA,mBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACZ,aAAA,GAAa,OAAA,EAAA,IAAA,CAAA,oBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;iBAEV,MAAA,cAAoB,OAAA,MAAA,CACnC,OAAA,EAAS,gBAAA,CAAiB,aAAA,CAAwB,IAAA,MAAM,EAAA,EAA/B,0BAAA,CAA+B,WAAA,KAAA,0BAAA,CAAA,iBAAA;AAAA,cAQ5C,OAAA,GAAO,OAAA,EAAA,IAAA,CAAA,cAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACP,UAAA,GAAU,OAAA,EAAA,IAAA,CAAA,iBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACV,aAAA,GAAa,OAAA,EAAA,IAAA,CAAA,oBAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;cACb,MAAA,GAAM,OAAA,EAAA,IAAA,CAAA,aAAA;;;;;;WAAA,0BAAA,CAAA,WAAA;;cAGN,OAAA"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs0 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_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
wrapper_id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
owner: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
self_owned: _mysten_sui_bcs0.BcsType<boolean, boolean, "bool">;
|
|
13
|
+
referrer_account_id: _mysten_sui_bcs0.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_bcs0.BcsType<string, string, "string">;
|
|
17
17
|
}, "@local-pkg/account::account_events::AppAuthorized">;
|
|
18
18
|
declare const AppDeauthorized: MoveStruct<{
|
|
19
|
-
app:
|
|
19
|
+
app: _mysten_sui_bcs0.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_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
coin_type: _mysten_sui_bcs0.BcsType<string, string, "string">;
|
|
24
|
+
amount: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
|
|
25
|
+
new_balance: _mysten_sui_bcs0.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_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
29
|
+
coin_type: _mysten_sui_bcs0.BcsType<string, string, "string">;
|
|
30
|
+
amount: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
|
|
31
|
+
new_balance: _mysten_sui_bcs0.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_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
35
|
+
coin_type: _mysten_sui_bcs0.BcsType<string, string, "string">;
|
|
36
|
+
amount: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
new_balance: _mysten_sui_bcs0.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,gBAAA,CAAA,OAAA;AAAA;AAAA,cACW,eAAA,EAAe,UAAA;OAK1B,gBAAA,CAAA,OAAA;AAAA;AAAA,cACW,SAAA,EAAS,UAAA;;;;;;cAST,SAAA,EAAS,UAAA;;;;;;cAST,YAAA,EAAY,UAAA"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs763 from "@mysten/sui/bcs";
|
|
3
3
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/account/account_registry.d.ts
|
|
6
6
|
declare const AccountAdminCap: MoveStruct<{
|
|
7
|
-
id:
|
|
7
|
+
id: _mysten_sui_bcs763.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
8
|
}, "@local-pkg/account::account_registry::AccountAdminCap">;
|
|
9
9
|
declare const AccountRegistry: MoveStruct<{
|
|
10
|
-
id:
|
|
10
|
+
id: _mysten_sui_bcs763.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
11
|
}, "@local-pkg/account::account_registry::AccountRegistry">;
|
|
12
|
-
declare const AccountKey: MoveTuple<readonly [
|
|
13
|
-
declare const AccountWrapperKey: MoveTuple<readonly [
|
|
14
|
-
declare const AppKey: MoveTuple<readonly [
|
|
12
|
+
declare const AccountKey: MoveTuple<readonly [_mysten_sui_bcs763.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">], "@local-pkg/account::account_registry::AccountKey">;
|
|
13
|
+
declare const AccountWrapperKey: MoveTuple<readonly [_mysten_sui_bcs763.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">], "@local-pkg/account::account_registry::AccountWrapperKey">;
|
|
14
|
+
declare const AppKey: MoveTuple<readonly [_mysten_sui_bcs763.BcsType<boolean, boolean, "bool">], "@local-pkg/account::account_registry::AppKey<phantom App>">;
|
|
15
15
|
interface DerivedAddressArguments {
|
|
16
16
|
registry?: RawTransactionArgument<string>;
|
|
17
17
|
owner: RawTransactionArgument<string>;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs822 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_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
8
8
|
open_orders: MoveStruct<{
|
|
9
|
-
contents:
|
|
9
|
+
contents: _mysten_sui_bcs822.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_bcs822.BcsType<string, string | number | bigint, "u128">;
|
|
14
|
+
maker_volume: _mysten_sui_bcs822.BcsType<string, string | number | bigint, "u128">;
|
|
15
|
+
active_stake: _mysten_sui_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
16
|
+
inactive_stake: _mysten_sui_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
17
|
+
created_proposal: _mysten_sui_bcs822.BcsType<boolean, boolean, "bool">;
|
|
18
|
+
voted_proposal: _mysten_sui_bcs822.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_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
21
|
+
quote: _mysten_sui_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
22
|
+
deep: _mysten_sui_bcs822.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_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
26
|
+
quote: _mysten_sui_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
27
|
+
deep: _mysten_sui_bcs822.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_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
31
|
+
quote: _mysten_sui_bcs822.BcsType<string, string | number | bigint, "u64">;
|
|
32
|
+
deep: _mysten_sui_bcs822.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_bcs806 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_bcs806.BcsType<string, string | number | bigint, "u64">;
|
|
7
|
+
quote: _mysten_sui_bcs806.BcsType<string, string | number | bigint, "u64">;
|
|
8
|
+
deep: _mysten_sui_bcs806.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_bcs809 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_bcs809.BcsType<boolean, boolean, "bool">;
|
|
8
|
+
deep_per_asset: _mysten_sui_bcs809.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_bcs839 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_bcs839.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
|
+
order_id: _mysten_sui_bcs839.BcsType<string, string | number | bigint, "u128">;
|
|
9
|
+
client_order_id: _mysten_sui_bcs839.BcsType<string, string | number | bigint, "u64">;
|
|
10
|
+
quantity: _mysten_sui_bcs839.BcsType<string, string | number | bigint, "u64">;
|
|
11
|
+
filled_quantity: _mysten_sui_bcs839.BcsType<string, string | number | bigint, "u64">;
|
|
12
|
+
fee_is_deep: _mysten_sui_bcs839.BcsType<boolean, boolean, "bool">;
|
|
13
13
|
order_deep_price: MoveStruct<{
|
|
14
|
-
asset_is_base:
|
|
15
|
-
deep_per_asset:
|
|
14
|
+
asset_is_base: _mysten_sui_bcs839.BcsType<boolean, boolean, "bool">;
|
|
15
|
+
deep_per_asset: _mysten_sui_bcs839.BcsType<string, string | number | bigint, "u64">;
|
|
16
16
|
}, "@deepbook/core::deep_price::OrderDeepPrice">;
|
|
17
|
-
epoch:
|
|
18
|
-
status:
|
|
19
|
-
expire_timestamp:
|
|
17
|
+
epoch: _mysten_sui_bcs839.BcsType<string, string | number | bigint, "u64">;
|
|
18
|
+
status: _mysten_sui_bcs839.BcsType<number, number, "u8">;
|
|
19
|
+
expire_timestamp: _mysten_sui_bcs839.BcsType<string, string | number | bigint, "u64">;
|
|
20
20
|
}, "@deepbook/core::order::Order">;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Order };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs21 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions98 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/admin.d.ts
|
|
@@ -8,7 +8,7 @@ declare namespace admin_d_exports {
|
|
|
8
8
|
export { AdminCap, IdArguments, IdOptions, id };
|
|
9
9
|
}
|
|
10
10
|
declare const AdminCap: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs21.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::admin::AdminCap">;
|
|
13
13
|
interface IdArguments {
|
|
14
14
|
cap: RawTransactionArgument<string>;
|
|
@@ -21,7 +21,7 @@ interface IdOptions {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
/** Returns the capability identity for administration tooling and object discovery. */
|
|
24
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
24
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions98.TransactionResult;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { admin_d_exports };
|
|
27
27
|
//# sourceMappingURL=admin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/admin.ts"],"mappings":";;;;;;;;;cAca,QAAA,EAAQ,UAAA;;;UAMJ,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,
|
|
1
|
+
{"version":3,"file":"admin.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/admin.ts"],"mappings":";;;;;;;;;cAca,QAAA,EAAQ,UAAA;;;UAMJ,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
|