{"version":3,"file":"margin_state.mjs","names":["vec_map.VecMap"],"sources":["../../../src/contracts/deepbook_margin/margin_state.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Margin state manages the total supply and borrow of the margin pool. Whenever\n * supply and borrow increases or decreases, the interest and protocol fees are\n * updated. Shares represent the constant amount and are used to calculate amounts\n * after interest and protocol fees are applied.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport * as vec_map from './deps/sui/vec_map.js';\nconst $moduleName = '@deepbook/margin::margin_state';\nexport const State = new MoveStruct({\n\tname: `${$moduleName}::State`,\n\tfields: {\n\t\ttotal_supply: bcs.u64(),\n\t\ttotal_borrow: bcs.u64(),\n\t\tsupply_shares: bcs.u64(),\n\t\tborrow_shares: bcs.u64(),\n\t\tlast_update_timestamp: bcs.u64(),\n\t\textra_fields: vec_map.VecMap(bcs.string(), bcs.u64()),\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,cAAc;AACpB,MAAa,QAAQ,IAAI,WAAW;CACnC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,cAAc,IAAI,KAAK;EACvB,cAAc,IAAI,KAAK;EACvB,eAAe,IAAI,KAAK;EACxB,eAAe,IAAI,KAAK;EACxB,uBAAuB,IAAI,KAAK;EAChC,cAAcA,OAAe,IAAI,QAAQ,EAAE,IAAI,KAAK,CAAC;EACrD;CACD,CAAC"}