{"version":3,"file":"balance_manager.mjs","names":["bag.Bag","vec_set.VecSet"],"sources":["../../../../../src/contracts/deepbook_margin/deps/deepbook/balance_manager.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * The BalanceManager is a shared object that holds all of the balances for\n * different assets. A combination of `BalanceManager` and `TradeProof` are passed\n * into a pool to perform trades. A `TradeProof` can be generated in two ways: by\n * the owner directly, or by any `TradeCap` owner. The owner can generate a\n * `TradeProof` without the risk of equivocation. The `TradeCap` owner, due to it\n * being an owned object, risks equivocation when generating a `TradeProof`.\n * Generally, a high frequency trading engine will trade as the default owner.\n */\n\nimport { MoveStruct } from '../../../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport * as bag from '../sui/bag.js';\nimport * as vec_set from '../sui/vec_set.js';\nconst $moduleName = 'deepbook::balance_manager';\nexport const BalanceManager = new MoveStruct({\n\tname: `${$moduleName}::BalanceManager`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\towner: bcs.Address,\n\t\tbalances: bag.Bag,\n\t\tallow_listed: vec_set.VecSet(bcs.Address),\n\t},\n});\nexport const DepositCap = new MoveStruct({\n\tname: `${$moduleName}::DepositCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\tbalance_manager_id: bcs.Address,\n\t},\n});\nexport const WithdrawCap = new MoveStruct({\n\tname: `${$moduleName}::WithdrawCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\tbalance_manager_id: bcs.Address,\n\t},\n});\nexport const TradeCap = new MoveStruct({\n\tname: `${$moduleName}::TradeCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\tbalance_manager_id: bcs.Address,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAM,cAAc;AACpB,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EACR,OAAO,IAAI;EACX,UAAUA;EACV,cAAcC,OAAe,IAAI,QAAQ;EACzC;CACD,CAAC;AACF,MAAa,aAAa,IAAI,WAAW;CACxC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EACR,oBAAoB,IAAI;EACxB;CACD,CAAC;AACF,MAAa,cAAc,IAAI,WAAW;CACzC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EACR,oBAAoB,IAAI;EACxB;CACD,CAAC;AACF,MAAa,WAAW,IAAI,WAAW;CACtC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EACR,oBAAoB,IAAI;EACxB;CACD,CAAC"}