{"version":3,"file":"authed.mjs","names":["account.depositFunds","account.withdrawFunds","plp.requestSupply","plp.requestWithdraw","plp.cancelSupplyRequest","plp.cancelWithdrawRequest","predictAccount.setBuilderCode","predictAccount.unsetBuilderCode"],"sources":["../../../src/predict/tx/authed.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\nimport { accountMoveCalls as account } from '../../account.js';\nimport * as plp from '../../contracts/deepbook_predict/plp.js';\nimport * as predictAccount from '../../contracts/deepbook_predict/predict_account.js';\nimport { withAuth } from './common.js';\n\n// Every owner-authorized single call in this SDK, declared rather than written: `withAuth`\n// prepends the `generate_auth` command and fills the generated `auth` argument, so each of these\n// takes exactly its generated options minus that slot. Command order is always auth → call, the\n// call consuming the hot potato. The builder-code pair lives in the PREDICT package's\n// `predict_account` module, not the account package.\nexport const depositFunds = withAuth(account.depositFunds);\nexport const withdrawFunds = withAuth(account.withdrawFunds);\nexport const requestSupply = withAuth(plp.requestSupply);\nexport const requestWithdraw = withAuth(plp.requestWithdraw);\nexport const cancelSupplyRequest = withAuth(plp.cancelSupplyRequest);\nexport const cancelWithdrawRequest = withAuth(plp.cancelWithdrawRequest);\nexport const setBuilderCode = withAuth(predictAccount.setBuilderCode);\nexport const unsetBuilderCode = withAuth(predictAccount.unsetBuilderCode);\n"],"mappings":";;;;;;AAYA,MAAa,eAAe,SAASA,eAAqB;AAC1D,MAAa,gBAAgB,SAASC,gBAAsB;AAC5D,MAAa,gBAAgB,SAASC,gBAAkB;AACxD,MAAa,kBAAkB,SAASC,kBAAoB;AAC5D,MAAa,sBAAsB,SAASC,sBAAwB;AACpE,MAAa,wBAAwB,SAASC,wBAA0B;AACxE,MAAa,iBAAiB,SAASC,iBAA8B;AACrE,MAAa,mBAAmB,SAASC,mBAAgC"}