@mysten/deepbook-v3 2.3.0 → 2.4.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 +29 -0
- package/PREDICT.md +149 -55
- package/README.md +18 -13
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_events.d.mts.map +1 -1
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/account.d.mts.map +1 -1
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/balances.d.mts.map +1 -1
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/deep_price.d.mts.map +1 -1
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +27 -0
- package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/admin.mjs +38 -0
- package/dist/contracts/deepbook_predict/admin.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code.d.mts +81 -0
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code.mjs +103 -0
- package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +25 -0
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code_events.mjs +7 -1
- package/dist/contracts/deepbook_predict/builder_code_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.d.mts +104 -0
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/config_events.mjs +155 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/ewma_config.mjs +28 -0
- package/dist/contracts/deepbook_predict/ewma_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +859 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.mjs +647 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs +51 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/market_manager.d.mts +159 -0
- package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/market_manager.mjs +88 -2
- package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.d.mts +101 -0
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/order_events.mjs +7 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pause_cap.mjs +51 -0
- package/dist/contracts/deepbook_predict/pause_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/plp.d.mts +801 -0
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/plp.mjs +458 -1
- package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs +52 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/predict_account.d.mts +90 -0
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/predict_account.mjs +24 -1
- package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +127 -0
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pricing.mjs +25 -1
- package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing_config.mjs +28 -0
- package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +665 -0
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/protocol_config.mjs +841 -0
- package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/range_codec.d.mts +30 -0
- package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/range_codec.mjs +6 -1
- package/dist/contracts/deepbook_predict/range_codec.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/registry.d.mts +382 -0
- package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/registry.mjs +456 -1
- package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +199 -0
- package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/vault_events.mjs +19 -1
- package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
- 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/predict/client.d.mts +3 -2
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +3 -2
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/index.d.mts +18 -1
- package/dist/predict/index.mjs +18 -1
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/package.json +2 -2
- package/src/predict/client.ts +3 -2
- package/src/predict/index.ts +26 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs508 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_bcs508.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
|
+
order_id: _mysten_sui_bcs508.BcsType<string, string | number | bigint, "u128">;
|
|
9
|
+
client_order_id: _mysten_sui_bcs508.BcsType<string, string | number | bigint, "u64">;
|
|
10
|
+
quantity: _mysten_sui_bcs508.BcsType<string, string | number | bigint, "u64">;
|
|
11
|
+
filled_quantity: _mysten_sui_bcs508.BcsType<string, string | number | bigint, "u64">;
|
|
12
|
+
fee_is_deep: _mysten_sui_bcs508.BcsType<boolean, boolean, "bool">;
|
|
13
13
|
order_deep_price: MoveStruct<{
|
|
14
|
-
asset_is_base:
|
|
15
|
-
deep_per_asset:
|
|
14
|
+
asset_is_base: _mysten_sui_bcs508.BcsType<boolean, boolean, "bool">;
|
|
15
|
+
deep_per_asset: _mysten_sui_bcs508.BcsType<string, string | number | bigint, "u64">;
|
|
16
16
|
}, "@deepbook/core::deep_price::OrderDeepPrice">;
|
|
17
|
-
epoch:
|
|
18
|
-
status:
|
|
19
|
-
expire_timestamp:
|
|
17
|
+
epoch: _mysten_sui_bcs508.BcsType<string, string | number | bigint, "u64">;
|
|
18
|
+
status: _mysten_sui_bcs508.BcsType<number, number, "u8">;
|
|
19
|
+
expire_timestamp: _mysten_sui_bcs508.BcsType<string, string | number | bigint, "u64">;
|
|
20
20
|
}, "@deepbook/core::order::Order">;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Order };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs80 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions179 from "@mysten/sui/transactions";
|
|
4
|
+
import { Transaction } from "@mysten/sui/transactions";
|
|
5
|
+
|
|
6
|
+
//#region src/contracts/deepbook_predict/admin.d.ts
|
|
7
|
+
declare namespace admin_d_exports {
|
|
8
|
+
export { AdminCap, IdArguments, IdOptions, id };
|
|
9
|
+
}
|
|
10
|
+
declare const AdminCap: MoveStruct<{
|
|
11
|
+
id: _mysten_sui_bcs80.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
}, "@local-pkg/deepbook_predict::admin::AdminCap">;
|
|
13
|
+
interface IdArguments {
|
|
14
|
+
cap: RawTransactionArgument<string>;
|
|
15
|
+
}
|
|
16
|
+
interface IdOptions {
|
|
17
|
+
package?: string;
|
|
18
|
+
arguments: IdArguments | [cap: RawTransactionArgument<string>];
|
|
19
|
+
config?: {
|
|
20
|
+
predictPackageId?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** Returns the capability identity for administration tooling and object discovery. */
|
|
24
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions179.TransactionResult;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { admin_d_exports };
|
|
27
|
+
//# sourceMappingURL=admin.d.mts.map
|
|
@@ -0,0 +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,2BAAA,CAAA,iBAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { MoveStruct, normalizeMoveArguments } from "../utils/index.mjs";
|
|
3
|
+
import { bcs } from "@mysten/sui/bcs";
|
|
4
|
+
|
|
5
|
+
//#region src/contracts/deepbook_predict/admin.ts
|
|
6
|
+
/**************************************************************
|
|
7
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
8
|
+
**************************************************************/
|
|
9
|
+
/**
|
|
10
|
+
* Defines the root capability used by state-owning modules to authorize Predict
|
|
11
|
+
* governance operations. Possession is the sole authority; the package exposes no
|
|
12
|
+
* on-chain revocation or rotation mechanism for this capability.
|
|
13
|
+
*/
|
|
14
|
+
var admin_exports = /* @__PURE__ */ __exportAll({
|
|
15
|
+
AdminCap: () => AdminCap,
|
|
16
|
+
id: () => id
|
|
17
|
+
});
|
|
18
|
+
const $moduleName = "@local-pkg/deepbook_predict::admin";
|
|
19
|
+
const AdminCap = new MoveStruct({
|
|
20
|
+
name: `${$moduleName}::AdminCap`,
|
|
21
|
+
fields: { id: bcs.Address }
|
|
22
|
+
});
|
|
23
|
+
/** Returns the capability identity for administration tooling and object discovery. */
|
|
24
|
+
function id(options) {
|
|
25
|
+
const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
|
|
26
|
+
const argumentsTypes = [null];
|
|
27
|
+
const parameterNames = ["cap"];
|
|
28
|
+
return (tx) => tx.moveCall({
|
|
29
|
+
package: packageAddress,
|
|
30
|
+
module: "admin",
|
|
31
|
+
function: "id",
|
|
32
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { admin_exports };
|
|
38
|
+
//# sourceMappingURL=admin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/admin.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Defines the root capability used by state-owning modules to authorize Predict\n * governance operations. Possession is the sole authority; the package exposes no\n * on-chain revocation or rotation mechanism for this capability.\n */\n\nimport { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { type Transaction } from '@mysten/sui/transactions';\nconst $moduleName = '@local-pkg/deepbook_predict::admin';\nexport const AdminCap = new MoveStruct({\n\tname: `${$moduleName}::AdminCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t},\n});\nexport interface IdArguments {\n\tcap: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments: IdArguments | [cap: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Returns the capability identity for administration tooling and object discovery. */\nexport function id(options: IdOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'admin',\n\t\t\tfunction: 'id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAaA,MAAM,cAAc;AACpB,MAAa,WAAW,IAAI,WAAW;CACtC,MAAM,GAAG,YAAY;CACrB,QAAQ,EACP,IAAI,IAAI,SACR;CACD,CAAC;;AAYF,SAAgB,GAAG,SAAoB;CACtC,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,KAAK;CAC7B,MAAM,iBAAiB,CAAC,MAAM;AAC9B,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs81 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions180 from "@mysten/sui/transactions";
|
|
4
|
+
import { Transaction } from "@mysten/sui/transactions";
|
|
5
|
+
|
|
6
|
+
//#region src/contracts/deepbook_predict/builder_code.d.ts
|
|
7
|
+
declare namespace builder_code_d_exports {
|
|
8
|
+
export { BuilderCode, BuilderCodeKey, ClaimAllBuilderFeesArguments, ClaimAllBuilderFeesOptions, ClaimableBuilderFeesArguments, ClaimableBuilderFeesOptions, IdArguments, IdOptions, IndexArguments, IndexOptions, OwnerArguments, OwnerOptions, claimAllBuilderFees, claimableBuilderFees, id, index, owner };
|
|
9
|
+
}
|
|
10
|
+
declare const BuilderCodeKey: MoveTuple<readonly [_mysten_sui_bcs81.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">, _mysten_sui_bcs81.BcsType<bigint, string | number | bigint, "u64">], "@local-pkg/deepbook_predict::builder_code::BuilderCodeKey">;
|
|
11
|
+
declare const BuilderCode: MoveStruct<{
|
|
12
|
+
id: _mysten_sui_bcs81.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
+
owner: _mysten_sui_bcs81.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
14
|
+
index: _mysten_sui_bcs81.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
}, "@local-pkg/deepbook_predict::builder_code::BuilderCode">;
|
|
16
|
+
interface IdArguments {
|
|
17
|
+
code: RawTransactionArgument<string>;
|
|
18
|
+
}
|
|
19
|
+
interface IdOptions {
|
|
20
|
+
package?: string;
|
|
21
|
+
arguments: IdArguments | [code: RawTransactionArgument<string>];
|
|
22
|
+
config?: {
|
|
23
|
+
predictPackageId?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Returns the code identity for trade construction and external discovery. */
|
|
27
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions180.TransactionResult;
|
|
28
|
+
interface OwnerArguments {
|
|
29
|
+
code: RawTransactionArgument<string>;
|
|
30
|
+
}
|
|
31
|
+
interface OwnerOptions {
|
|
32
|
+
package?: string;
|
|
33
|
+
arguments: OwnerArguments | [code: RawTransactionArgument<string>];
|
|
34
|
+
config?: {
|
|
35
|
+
predictPackageId?: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/** Returns the immutable owner authorized to claim fees. */
|
|
39
|
+
declare function owner(options: OwnerOptions): (tx: Transaction) => _mysten_sui_transactions180.TransactionResult;
|
|
40
|
+
interface IndexArguments {
|
|
41
|
+
code: RawTransactionArgument<string>;
|
|
42
|
+
}
|
|
43
|
+
interface IndexOptions {
|
|
44
|
+
package?: string;
|
|
45
|
+
arguments: IndexArguments | [code: RawTransactionArgument<string>];
|
|
46
|
+
config?: {
|
|
47
|
+
predictPackageId?: string;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/** Returns the owner-selected derivation index for external discovery. */
|
|
51
|
+
declare function index(options: IndexOptions): (tx: Transaction) => _mysten_sui_transactions180.TransactionResult;
|
|
52
|
+
interface ClaimableBuilderFeesArguments {
|
|
53
|
+
code: RawTransactionArgument<string>;
|
|
54
|
+
}
|
|
55
|
+
interface ClaimableBuilderFeesOptions {
|
|
56
|
+
package?: string;
|
|
57
|
+
arguments: ClaimableBuilderFeesArguments | [code: RawTransactionArgument<string>];
|
|
58
|
+
config?: {
|
|
59
|
+
predictPackageId?: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/** Return visible USDC builder fees for SDK and devInspect reads. */
|
|
63
|
+
declare function claimableBuilderFees(options: ClaimableBuilderFeesOptions): (tx: Transaction) => _mysten_sui_transactions180.TransactionResult;
|
|
64
|
+
interface ClaimAllBuilderFeesArguments {
|
|
65
|
+
code: RawTransactionArgument<string>;
|
|
66
|
+
}
|
|
67
|
+
interface ClaimAllBuilderFeesOptions {
|
|
68
|
+
package?: string;
|
|
69
|
+
arguments: ClaimAllBuilderFeesArguments | [code: RawTransactionArgument<string>];
|
|
70
|
+
config?: {
|
|
71
|
+
predictPackageId?: string;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Claims all settled USDC builder fees for the immutable owner; an empty
|
|
76
|
+
* accumulator returns a zero coin.
|
|
77
|
+
*/
|
|
78
|
+
declare function claimAllBuilderFees(options: ClaimAllBuilderFeesOptions): (tx: Transaction) => _mysten_sui_transactions180.TransactionResult;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { builder_code_d_exports };
|
|
81
|
+
//# sourceMappingURL=builder_code.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder_code.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/builder_code.ts"],"mappings":";;;;;;;;;cAoBa,cAAA,EAAc,SAAA,WAAA,iBAAA,CAAA,OAAA,kBAAA,UAAA,CAAA,eAAA,iBAAA,iBAAA,CAAA,OAAA;AAAA,cAId,WAAA,EAAW,UAAA;;;;;UAQP,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;AAnBF;AAAA,iBAuBgB,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,cAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,YAAA;EAChB,OAAA;EACA,SAAA,EAAW,cAAA,IAAkB,IAAA,EAAM,sBAAA;EACnC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,KAAA,CAAM,OAAA,EAAS,YAAA,IAKtB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,cAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,YAAA;EAChB,OAAA;EACA,SAAA,EAAW,cAAA,IAAkB,IAAA,EAAM,sBAAA;EACnC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,KAAA,CAAM,OAAA,EAAS,YAAA,IAKtB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,6BAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,2BAAA;EAChB,OAAA;EACA,SAAA,EAAW,6BAAA,IAAiC,IAAA,EAAM,sBAAA;EAClD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,oBAAA,CAAqB,OAAA,EAAS,2BAAA,IAKrC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,4BAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,0BAAA;EAChB,OAAA;EACA,SAAA,EAAW,4BAAA,IAAgC,IAAA,EAAM,sBAAA;EACjD,MAAA;IACC,gBAAA;EAAA;AAAA;AApGF;;;;AAAA,iBA2GgB,mBAAA,CAAoB,OAAA,EAAS,0BAAA,IAKpC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { MoveStruct, MoveTuple, normalizeMoveArguments } from "../utils/index.mjs";
|
|
3
|
+
import { U64 } from "../../bcs/integers.mjs";
|
|
4
|
+
import { bcs } from "@mysten/sui/bcs";
|
|
5
|
+
|
|
6
|
+
//#region src/contracts/deepbook_predict/builder_code.ts
|
|
7
|
+
/**************************************************************
|
|
8
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
9
|
+
**************************************************************/
|
|
10
|
+
/**
|
|
11
|
+
* Owns deterministic builder referral codes and the USDC fees delivered to their
|
|
12
|
+
* object addresses through the funds accumulator. Codes are derived per owner and
|
|
13
|
+
* index, and only the immutable owner may withdraw accumulated fees.
|
|
14
|
+
*/
|
|
15
|
+
var builder_code_exports = /* @__PURE__ */ __exportAll({
|
|
16
|
+
BuilderCode: () => BuilderCode,
|
|
17
|
+
BuilderCodeKey: () => BuilderCodeKey,
|
|
18
|
+
claimAllBuilderFees: () => claimAllBuilderFees,
|
|
19
|
+
claimableBuilderFees: () => claimableBuilderFees,
|
|
20
|
+
id: () => id,
|
|
21
|
+
index: () => index,
|
|
22
|
+
owner: () => owner
|
|
23
|
+
});
|
|
24
|
+
const $moduleName = "@local-pkg/deepbook_predict::builder_code";
|
|
25
|
+
const BuilderCodeKey = new MoveTuple({
|
|
26
|
+
name: `${$moduleName}::BuilderCodeKey`,
|
|
27
|
+
fields: [bcs.Address, U64]
|
|
28
|
+
});
|
|
29
|
+
const BuilderCode = new MoveStruct({
|
|
30
|
+
name: `${$moduleName}::BuilderCode`,
|
|
31
|
+
fields: {
|
|
32
|
+
id: bcs.Address,
|
|
33
|
+
owner: bcs.Address,
|
|
34
|
+
index: U64
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
/** Returns the code identity for trade construction and external discovery. */
|
|
38
|
+
function id(options) {
|
|
39
|
+
const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
|
|
40
|
+
const argumentsTypes = [null];
|
|
41
|
+
const parameterNames = ["code"];
|
|
42
|
+
return (tx) => tx.moveCall({
|
|
43
|
+
package: packageAddress,
|
|
44
|
+
module: "builder_code",
|
|
45
|
+
function: "id",
|
|
46
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** Returns the immutable owner authorized to claim fees. */
|
|
50
|
+
function owner(options) {
|
|
51
|
+
const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
|
|
52
|
+
const argumentsTypes = [null];
|
|
53
|
+
const parameterNames = ["code"];
|
|
54
|
+
return (tx) => tx.moveCall({
|
|
55
|
+
package: packageAddress,
|
|
56
|
+
module: "builder_code",
|
|
57
|
+
function: "owner",
|
|
58
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/** Returns the owner-selected derivation index for external discovery. */
|
|
62
|
+
function index(options) {
|
|
63
|
+
const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
|
|
64
|
+
const argumentsTypes = [null];
|
|
65
|
+
const parameterNames = ["code"];
|
|
66
|
+
return (tx) => tx.moveCall({
|
|
67
|
+
package: packageAddress,
|
|
68
|
+
module: "builder_code",
|
|
69
|
+
function: "index",
|
|
70
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/** Return visible USDC builder fees for SDK and devInspect reads. */
|
|
74
|
+
function claimableBuilderFees(options) {
|
|
75
|
+
const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
|
|
76
|
+
const argumentsTypes = ["0x2::accumulator::AccumulatorRoot", null];
|
|
77
|
+
const parameterNames = ["code"];
|
|
78
|
+
return (tx) => tx.moveCall({
|
|
79
|
+
package: packageAddress,
|
|
80
|
+
module: "builder_code",
|
|
81
|
+
function: "claimable_builder_fees",
|
|
82
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Claims all settled USDC builder fees for the immutable owner; an empty
|
|
87
|
+
* accumulator returns a zero coin.
|
|
88
|
+
*/
|
|
89
|
+
function claimAllBuilderFees(options) {
|
|
90
|
+
const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
|
|
91
|
+
const argumentsTypes = [null, "0x2::accumulator::AccumulatorRoot"];
|
|
92
|
+
const parameterNames = ["code"];
|
|
93
|
+
return (tx) => tx.moveCall({
|
|
94
|
+
package: packageAddress,
|
|
95
|
+
module: "builder_code",
|
|
96
|
+
function: "claim_all_builder_fees",
|
|
97
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
export { builder_code_exports };
|
|
103
|
+
//# sourceMappingURL=builder_code.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder_code.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/builder_code.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Owns deterministic builder referral codes and the USDC fees delivered to their\n * object addresses through the funds accumulator. Codes are derived per owner and\n * index, and only the immutable owner may withdraw accumulated fees.\n */\n\nimport {\n\tMoveTuple,\n\tMoveStruct,\n\tnormalizeMoveArguments,\n\ttype RawTransactionArgument,\n} from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nimport { type Transaction } from '@mysten/sui/transactions';\nconst $moduleName = '@local-pkg/deepbook_predict::builder_code';\nexport const BuilderCodeKey = new MoveTuple({\n\tname: `${$moduleName}::BuilderCodeKey`,\n\tfields: [bcs.Address, U64],\n});\nexport const BuilderCode = new MoveStruct({\n\tname: `${$moduleName}::BuilderCode`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\towner: bcs.Address,\n\t\tindex: U64,\n\t},\n});\nexport interface IdArguments {\n\tcode: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments: IdArguments | [code: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Returns the code identity for trade construction and external discovery. */\nexport function id(options: IdOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['code'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'builder_code',\n\t\t\tfunction: 'id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface OwnerArguments {\n\tcode: RawTransactionArgument<string>;\n}\nexport interface OwnerOptions {\n\tpackage?: string;\n\targuments: OwnerArguments | [code: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Returns the immutable owner authorized to claim fees. */\nexport function owner(options: OwnerOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['code'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'builder_code',\n\t\t\tfunction: 'owner',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface IndexArguments {\n\tcode: RawTransactionArgument<string>;\n}\nexport interface IndexOptions {\n\tpackage?: string;\n\targuments: IndexArguments | [code: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Returns the owner-selected derivation index for external discovery. */\nexport function index(options: IndexOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['code'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'builder_code',\n\t\t\tfunction: 'index',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ClaimableBuilderFeesArguments {\n\tcode: RawTransactionArgument<string>;\n}\nexport interface ClaimableBuilderFeesOptions {\n\tpackage?: string;\n\targuments: ClaimableBuilderFeesArguments | [code: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return visible USDC builder fees for SDK and devInspect reads. */\nexport function claimableBuilderFees(options: ClaimableBuilderFeesOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = ['0x2::accumulator::AccumulatorRoot', null] satisfies (string | null)[];\n\tconst parameterNames = ['code'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'builder_code',\n\t\t\tfunction: 'claimable_builder_fees',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ClaimAllBuilderFeesArguments {\n\tcode: RawTransactionArgument<string>;\n}\nexport interface ClaimAllBuilderFeesOptions {\n\tpackage?: string;\n\targuments: ClaimAllBuilderFeesArguments | [code: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Claims all settled USDC builder fees for the immutable owner; an empty\n * accumulator returns a zero coin.\n */\nexport function claimAllBuilderFees(options: ClaimAllBuilderFeesOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, '0x2::accumulator::AccumulatorRoot'] satisfies (string | null)[];\n\tconst parameterNames = ['code'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'builder_code',\n\t\t\tfunction: 'claim_all_builder_fees',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,cAAc;AACpB,MAAa,iBAAiB,IAAI,UAAU;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ,CAAC,IAAI,SAAS,IAAI;CAC1B,CAAC;AACF,MAAa,cAAc,IAAI,WAAW;CACzC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EACR,OAAO,IAAI;EACX,OAAO;EACP;CACD,CAAC;;AAYF,SAAgB,GAAG,SAAoB;CACtC,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,KAAK;CAC7B,MAAM,iBAAiB,CAAC,OAAO;AAC/B,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC;;;AAaJ,SAAgB,MAAM,SAAuB;CAC5C,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,KAAK;CAC7B,MAAM,iBAAiB,CAAC,OAAO;AAC/B,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC;;;AAaJ,SAAgB,MAAM,SAAuB;CAC5C,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,KAAK;CAC7B,MAAM,iBAAiB,CAAC,OAAO;AAC/B,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC;;;AAaJ,SAAgB,qBAAqB,SAAsC;CAC1E,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,qCAAqC,KAAK;CAClE,MAAM,iBAAiB,CAAC,OAAO;AAC/B,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC;;;;;;AAgBJ,SAAgB,oBAAoB,SAAqC;CACxE,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,MAAM,oCAAoC;CAClE,MAAM,iBAAiB,CAAC,OAAO;AAC/B,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs155 from "@mysten/sui/bcs";
|
|
3
|
+
|
|
4
|
+
//#region src/contracts/deepbook_predict/builder_code_events.d.ts
|
|
5
|
+
declare namespace builder_code_events_d_exports {
|
|
6
|
+
export { BuilderCodeCreated, BuilderCodeSet, BuilderFeesClaimed };
|
|
7
|
+
}
|
|
8
|
+
declare const BuilderCodeCreated: MoveStruct<{
|
|
9
|
+
builder_code_id: _mysten_sui_bcs155.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
owner: _mysten_sui_bcs155.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
builder_code_index: _mysten_sui_bcs155.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
}, "@local-pkg/deepbook_predict::builder_code_events::BuilderCodeCreated">;
|
|
13
|
+
declare const BuilderCodeSet: MoveStruct<{
|
|
14
|
+
account_id: _mysten_sui_bcs155.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
|
+
owner: _mysten_sui_bcs155.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
builder_code_id: _mysten_sui_bcs155.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
17
|
+
}, "@local-pkg/deepbook_predict::builder_code_events::BuilderCodeSet">;
|
|
18
|
+
declare const BuilderFeesClaimed: MoveStruct<{
|
|
19
|
+
builder_code_id: _mysten_sui_bcs155.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
20
|
+
owner: _mysten_sui_bcs155.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
+
amount: _mysten_sui_bcs155.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
}, "@local-pkg/deepbook_predict::builder_code_events::BuilderFeesClaimed">;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { builder_code_events_d_exports };
|
|
25
|
+
//# sourceMappingURL=builder_code_events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder_code_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/builder_code_events.ts"],"mappings":";;;;;;;cAUa,kBAAA,EAAkB,UAAA;;;;;cAQlB,cAAA,EAAc,UAAA;;;;;cAQd,kBAAA,EAAkB,UAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
|
|
1
2
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
3
|
import { U64 } from "../../bcs/integers.mjs";
|
|
3
4
|
import { bcs } from "@mysten/sui/bcs";
|
|
@@ -7,6 +8,11 @@ import { bcs } from "@mysten/sui/bcs";
|
|
|
7
8
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
8
9
|
**************************************************************/
|
|
9
10
|
/** Builder-code lifecycle and attribution events for Predict. */
|
|
11
|
+
var builder_code_events_exports = /* @__PURE__ */ __exportAll({
|
|
12
|
+
BuilderCodeCreated: () => BuilderCodeCreated,
|
|
13
|
+
BuilderCodeSet: () => BuilderCodeSet,
|
|
14
|
+
BuilderFeesClaimed: () => BuilderFeesClaimed
|
|
15
|
+
});
|
|
10
16
|
const $moduleName = "@local-pkg/deepbook_predict::builder_code_events";
|
|
11
17
|
const BuilderCodeCreated = new MoveStruct({
|
|
12
18
|
name: `${$moduleName}::BuilderCodeCreated`,
|
|
@@ -34,5 +40,5 @@ const BuilderFeesClaimed = new MoveStruct({
|
|
|
34
40
|
});
|
|
35
41
|
|
|
36
42
|
//#endregion
|
|
37
|
-
export { BuilderCodeSet };
|
|
43
|
+
export { BuilderCodeSet, builder_code_events_exports };
|
|
38
44
|
//# sourceMappingURL=builder_code_events.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder_code_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/builder_code_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/** Builder-code lifecycle and attribution events for Predict. */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::builder_code_events';\nexport const BuilderCodeCreated = new MoveStruct({\n\tname: `${$moduleName}::BuilderCodeCreated`,\n\tfields: {\n\t\tbuilder_code_id: bcs.Address,\n\t\towner: bcs.Address,\n\t\tbuilder_code_index: U64,\n\t},\n});\nexport const BuilderCodeSet = new MoveStruct({\n\tname: `${$moduleName}::BuilderCodeSet`,\n\tfields: {\n\t\taccount_id: bcs.Address,\n\t\towner: bcs.Address,\n\t\tbuilder_code_id: bcs.option(bcs.Address),\n\t},\n});\nexport const BuilderFeesClaimed = new MoveStruct({\n\tname: `${$moduleName}::BuilderFeesClaimed`,\n\tfields: {\n\t\tbuilder_code_id: bcs.Address,\n\t\towner: bcs.Address,\n\t\tamount: U64,\n\t},\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"builder_code_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/builder_code_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/** Builder-code lifecycle and attribution events for Predict. */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::builder_code_events';\nexport const BuilderCodeCreated = new MoveStruct({\n\tname: `${$moduleName}::BuilderCodeCreated`,\n\tfields: {\n\t\tbuilder_code_id: bcs.Address,\n\t\towner: bcs.Address,\n\t\tbuilder_code_index: U64,\n\t},\n});\nexport const BuilderCodeSet = new MoveStruct({\n\tname: `${$moduleName}::BuilderCodeSet`,\n\tfields: {\n\t\taccount_id: bcs.Address,\n\t\towner: bcs.Address,\n\t\tbuilder_code_id: bcs.option(bcs.Address),\n\t},\n});\nexport const BuilderFeesClaimed = new MoveStruct({\n\tname: `${$moduleName}::BuilderFeesClaimed`,\n\tfields: {\n\t\tbuilder_code_id: bcs.Address,\n\t\towner: bcs.Address,\n\t\tamount: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;AASA,MAAM,cAAc;AACpB,MAAa,qBAAqB,IAAI,WAAW;CAChD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,iBAAiB,IAAI;EACrB,OAAO,IAAI;EACX,oBAAoB;EACpB;CACD,CAAC;AACF,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,YAAY,IAAI;EAChB,OAAO,IAAI;EACX,iBAAiB,IAAI,OAAO,IAAI,QAAQ;EACxC;CACD,CAAC;AACF,MAAa,qBAAqB,IAAI,WAAW;CAChD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,iBAAiB,IAAI;EACrB,OAAO,IAAI;EACX,QAAQ;EACR;CACD,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs256 from "@mysten/sui/bcs";
|
|
3
|
+
|
|
4
|
+
//#region src/contracts/deepbook_predict/config_events.d.ts
|
|
5
|
+
declare namespace config_events_d_exports {
|
|
6
|
+
export { CadenceConfigUpdated, EwmaConfigUpdated, ExpiryMarketMintPausedUpdated, MarketCreated, MarketSettled, NoTradeWindowUpdated, PlpFeeRatesUpdated, PricingConfigUpdated, ProtocolFrozenUpdated, ReferenceTickSet, StrikeExposureTemplateConfigUpdated, TradingPausedUpdated };
|
|
7
|
+
}
|
|
8
|
+
declare const StrikeExposureTemplateConfigUpdated: MoveStruct<{
|
|
9
|
+
backing_buffer_lambda: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
10
|
+
base_fee: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
11
|
+
min_fee: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
min_entry_probability: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
|
+
max_entry_probability: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
14
|
+
expiry_fee_window_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
inventory_impact_max_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
|
+
onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
}, "@local-pkg/deepbook_predict::config_events::StrikeExposureTemplateConfigUpdated">;
|
|
19
|
+
declare const PricingConfigUpdated: MoveStruct<{
|
|
20
|
+
use_pyth_spot_for_forward: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
|
|
21
|
+
pyth_spot_freshness_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
block_scholes_price_freshness_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
|
+
block_scholes_svi_freshness_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
|
+
onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
25
|
+
}, "@local-pkg/deepbook_predict::config_events::PricingConfigUpdated">;
|
|
26
|
+
declare const EwmaConfigUpdated: MoveStruct<{
|
|
27
|
+
alpha: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
|
+
z_score_threshold: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
penalty_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
|
+
enabled: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
|
|
31
|
+
onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
|
+
}, "@local-pkg/deepbook_predict::config_events::EwmaConfigUpdated">;
|
|
33
|
+
declare const PlpFeeRatesUpdated: MoveStruct<{
|
|
34
|
+
plp_supply_fee_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
|
+
plp_withdraw_fee_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
36
|
+
onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
}, "@local-pkg/deepbook_predict::config_events::PlpFeeRatesUpdated">;
|
|
38
|
+
declare const NoTradeWindowUpdated: MoveStruct<{
|
|
39
|
+
no_trade_window_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
|
+
}, "@local-pkg/deepbook_predict::config_events::NoTradeWindowUpdated">;
|
|
42
|
+
declare const TradingPausedUpdated: MoveStruct<{
|
|
43
|
+
protocol_config_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
44
|
+
paused: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
|
|
45
|
+
}, "@local-pkg/deepbook_predict::config_events::TradingPausedUpdated">;
|
|
46
|
+
declare const ProtocolFrozenUpdated: MoveStruct<{
|
|
47
|
+
protocol_config_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
48
|
+
frozen: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
|
|
49
|
+
}, "@local-pkg/deepbook_predict::config_events::ProtocolFrozenUpdated">;
|
|
50
|
+
declare const MarketCreated: MoveStruct<{
|
|
51
|
+
expiry_market_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
52
|
+
pool_vault_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market resolves current oracle bindings through. */
|
|
53
|
+
propbook_underlying_id: _mysten_sui_bcs256.BcsType<number, number, "u32">;
|
|
54
|
+
expiry: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
/**
|
|
56
|
+
* Raw-price-per-tick factor; indexers/SDKs derive raw strikes as
|
|
57
|
+
* `tick * tick_size`.
|
|
58
|
+
*/
|
|
59
|
+
tick_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
60
|
+
admission_tick_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** USDC pool allocation cap snapshotted for this expiry. */
|
|
61
|
+
max_expiry_allocation: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** Minimum USDC cash target snapshotted for this expiry. */
|
|
62
|
+
initial_expiry_cash: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
|
+
backing_buffer_lambda: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
64
|
+
base_fee: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
65
|
+
min_fee: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
66
|
+
min_entry_probability: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
67
|
+
max_entry_probability: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
68
|
+
expiry_fee_window_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** Maximum marginal inventory-impact rate snapshotted by this market. */
|
|
70
|
+
inventory_impact_max_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
71
|
+
}, "@local-pkg/deepbook_predict::config_events::MarketCreated">;
|
|
72
|
+
declare const CadenceConfigUpdated: MoveStruct<{
|
|
73
|
+
registry_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
74
|
+
propbook_underlying_id: _mysten_sui_bcs256.BcsType<number, number, "u32">;
|
|
75
|
+
cadence_id: _mysten_sui_bcs256.BcsType<number, number, "u8">;
|
|
76
|
+
tick_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
77
|
+
admission_tick_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
78
|
+
max_expiry_allocation: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
|
+
initial_expiry_cash: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
|
+
window_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
81
|
+
}, "@local-pkg/deepbook_predict::config_events::CadenceConfigUpdated">;
|
|
82
|
+
declare const ExpiryMarketMintPausedUpdated: MoveStruct<{
|
|
83
|
+
expiry_market_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
84
|
+
paused: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
|
|
85
|
+
}, "@local-pkg/deepbook_predict::config_events::ExpiryMarketMintPausedUpdated">;
|
|
86
|
+
declare const ReferenceTickSet: MoveStruct<{
|
|
87
|
+
expiry_market_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
88
|
+
propbook_underlying_id: _mysten_sui_bcs256.BcsType<number, number, "u32">;
|
|
89
|
+
source_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
90
|
+
spot: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
91
|
+
tick: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
92
|
+
onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
93
|
+
}, "@local-pkg/deepbook_predict::config_events::ReferenceTickSet">;
|
|
94
|
+
declare const MarketSettled: MoveStruct<{
|
|
95
|
+
expiry_market_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
96
|
+
propbook_underlying_id: _mysten_sui_bcs256.BcsType<number, number, "u32">;
|
|
97
|
+
expiry: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
98
|
+
settlement_price: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** `0` = Pyth and `1` = Block Scholes. */
|
|
99
|
+
settlement_source: _mysten_sui_bcs256.BcsType<number, number, "u8">; /** On-chain landing time of the settlement, `clock.timestamp_ms()`. */
|
|
100
|
+
onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
}, "@local-pkg/deepbook_predict::config_events::MarketSettled">;
|
|
102
|
+
//#endregion
|
|
103
|
+
export { config_events_d_exports };
|
|
104
|
+
//# sourceMappingURL=config_events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"mappings":";;;;;;;cAUa,mCAAA,EAAmC,UAAA;yBAa9C,kBAAA,CAAA,OAAA;;;;;;;;;;cACW,oBAAA,EAAoB,UAAA;6BAS/B,kBAAA,CAAA,OAAA;;;;;;cACW,iBAAA,EAAiB,UAAA;SAS5B,kBAAA,CAAA,OAAA;;;;;;cACW,kBAAA,EAAkB,UAAA;uBAO7B,kBAAA,CAAA,OAAA;;;;cACW,oBAAA,EAAoB,UAAA;sBAM/B,kBAAA,CAAA,OAAA;;;cACW,oBAAA,EAAoB,UAAA;;;;cAOpB,qBAAA,EAAqB,UAAA;;;;cAOrB,aAAA,EAAa,UAAA;;;;;;;AAjD1B;;kFASE;;;;;;;;;;;;;cAsEW,oBAAA,EAAoB,UAAA;;;;;;;;;;cAapB,6BAAA,EAA6B,UAAA;;;;cAO7B,gBAAA,EAAgB,UAAA;;;;;;;;cAWhB,aAAA,EAAa,UAAA;;;;;uEA1Fb"}
|