import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs"; import * as _mysten_sui_bcs43 from "@mysten/sui/bcs"; import * as _mysten_sui_transactions248 from "@mysten/sui/transactions"; import { Transaction, TransactionArgument } from "@mysten/sui/transactions"; //#region src/contracts/deepbook_predict/builder_code.d.ts declare namespace builder_code_d_exports { export { BuilderCode, BuilderCodeKey, BuilderFee, ClaimAllBuilderFeesArguments, ClaimAllBuilderFeesOptions, ClaimableBuilderFeesArguments, ClaimableBuilderFeesOptions, CodeIdArguments, CodeIdOptions, FeePerContractArguments, FeePerContractOptions, IdArguments, IdOptions, IndexArguments, IndexOptions, NewFeeArguments, NewFeeOptions, OwnerArguments, OwnerOptions, claimAllBuilderFees, claimableBuilderFees, codeId, feePerContract, id, index, newFee, owner }; } declare const BuilderCodeKey: MoveTuple, "bytes[32]">, _mysten_sui_bcs43.BcsType], "@local-pkg/deepbook_predict::builder_code::BuilderCodeKey">; declare const BuilderCode: MoveStruct<{ id: _mysten_sui_bcs43.BcsType, "bytes[32]">; owner: _mysten_sui_bcs43.BcsType, "bytes[32]">; index: _mysten_sui_bcs43.BcsType; }, "@local-pkg/deepbook_predict::builder_code::BuilderCode">; declare const BuilderFee: MoveStruct<{ code_id: _mysten_sui_bcs43.BcsType, "bytes[32]">; fee_per_contract: _mysten_sui_bcs43.BcsType; }, "@local-pkg/deepbook_predict::builder_code::BuilderFee">; interface IdArguments { code: RawTransactionArgument; } interface IdOptions { package?: string; arguments: IdArguments | [code: RawTransactionArgument]; config?: { predictPackageId?: string; }; } /** Returns the code identity for trade construction and external discovery. */ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions248.TransactionResult; interface NewFeeArguments { code: RawTransactionArgument; feePerContract: RawTransactionArgument; } interface NewFeeOptions { package?: string; arguments: NewFeeArguments | [code: RawTransactionArgument, feePerContract: RawTransactionArgument]; config?: { predictPackageId?: string; }; } /** * Name `code` and its fee per contract for one trade. For PTB construction and the * order-flow companion, which pass it to Predict's builder admission. */ declare function newFee(options: NewFeeOptions): (tx: Transaction) => _mysten_sui_transactions248.TransactionResult; interface CodeIdArguments { fee: TransactionArgument; } interface CodeIdOptions { package?: string; arguments: CodeIdArguments | [fee: TransactionArgument]; config?: { predictPackageId?: string; }; } /** Returns the code a `BuilderFee` pays, for the companion and Sessions' checks. */ declare function codeId(options: CodeIdOptions): (tx: Transaction) => _mysten_sui_transactions248.TransactionResult; interface FeePerContractArguments { fee: TransactionArgument; } interface FeePerContractOptions { package?: string; arguments: FeePerContractArguments | [fee: TransactionArgument]; config?: { predictPackageId?: string; }; } /** * Returns a `BuilderFee`'s uncapped fee per contract, for the companion and * Sessions' checks. */ declare function feePerContract(options: FeePerContractOptions): (tx: Transaction) => _mysten_sui_transactions248.TransactionResult; interface OwnerArguments { code: RawTransactionArgument; } interface OwnerOptions { package?: string; arguments: OwnerArguments | [code: RawTransactionArgument]; config?: { predictPackageId?: string; }; } /** Returns the immutable owner authorized to claim fees. */ declare function owner(options: OwnerOptions): (tx: Transaction) => _mysten_sui_transactions248.TransactionResult; interface IndexArguments { code: RawTransactionArgument; } interface IndexOptions { package?: string; arguments: IndexArguments | [code: RawTransactionArgument]; config?: { predictPackageId?: string; }; } /** Returns the owner-selected derivation index for external discovery. */ declare function index(options: IndexOptions): (tx: Transaction) => _mysten_sui_transactions248.TransactionResult; interface ClaimableBuilderFeesArguments { code: RawTransactionArgument; } interface ClaimableBuilderFeesOptions { package?: string; arguments: ClaimableBuilderFeesArguments | [code: RawTransactionArgument]; config?: { predictPackageId?: string; }; } /** Return visible USDC builder fees for SDK and devInspect reads. */ declare function claimableBuilderFees(options: ClaimableBuilderFeesOptions): (tx: Transaction) => _mysten_sui_transactions248.TransactionResult; interface ClaimAllBuilderFeesArguments { code: RawTransactionArgument; } interface ClaimAllBuilderFeesOptions { package?: string; arguments: ClaimAllBuilderFeesArguments | [code: RawTransactionArgument]; config?: { predictPackageId?: string; }; } /** * Claims all settled USDC builder fees for the immutable owner; an empty * accumulator returns a zero coin. */ declare function claimAllBuilderFees(options: ClaimAllBuilderFeesOptions): (tx: Transaction) => _mysten_sui_transactions248.TransactionResult; //#endregion export { builder_code_d_exports }; //# sourceMappingURL=builder_code.d.mts.map