{"version":3,"file":"account_events.mjs","names":[],"sources":["../../../src/contracts/account/account_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Defines canonical-account lifecycle, app-authorization, and per-coin custody\n * events. `account_registry` emits creation and authorization transitions;\n * `account` emits balance transitions.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/account::account_events';\nexport const AccountCreated = new MoveStruct({\n\tname: `${$moduleName}::AccountCreated`,\n\tfields: {\n\t\taccount_id: bcs.Address,\n\t\twrapper_id: bcs.Address,\n\t\towner: bcs.Address,\n\t\tself_owned: bcs.bool(),\n\t\treferrer_account_id: bcs.option(bcs.Address),\n\t},\n});\nexport const AppAuthorized = new MoveStruct({\n\tname: `${$moduleName}::AppAuthorized`,\n\tfields: {\n\t\t/** Fully-qualified `App` witness type name. */\n\t\tapp: bcs.string(),\n\t},\n});\nexport const AppDeauthorized = new MoveStruct({\n\tname: `${$moduleName}::AppDeauthorized`,\n\tfields: {\n\t\tapp: bcs.string(),\n\t},\n});\nexport const Deposited = new MoveStruct({\n\tname: `${$moduleName}::Deposited`,\n\tfields: {\n\t\taccount_id: bcs.Address,\n\t\tcoin_type: bcs.string(),\n\t\tamount: U64,\n\t\tnew_balance: U64,\n\t},\n});\nexport const Withdrawn = new MoveStruct({\n\tname: `${$moduleName}::Withdrawn`,\n\tfields: {\n\t\taccount_id: bcs.Address,\n\t\tcoin_type: bcs.string(),\n\t\tamount: U64,\n\t\tnew_balance: U64,\n\t},\n});\nexport const FundsSettled = new MoveStruct({\n\tname: `${$moduleName}::FundsSettled`,\n\tfields: {\n\t\taccount_id: bcs.Address,\n\t\tcoin_type: bcs.string(),\n\t\tamount: U64,\n\t\tnew_balance: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAaA,MAAM,cAAc;AACpB,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,YAAY,IAAI;EAChB,YAAY,IAAI;EAChB,OAAO,IAAI;EACX,YAAY,IAAI,MAAM;EACtB,qBAAqB,IAAI,OAAO,IAAI,QAAQ;EAC5C;CACD,CAAC;AACF,MAAa,gBAAgB,IAAI,WAAW;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ,EAEP,KAAK,IAAI,QAAQ,EACjB;CACD,CAAC;AACF,MAAa,kBAAkB,IAAI,WAAW;CAC7C,MAAM,GAAG,YAAY;CACrB,QAAQ,EACP,KAAK,IAAI,QAAQ,EACjB;CACD,CAAC;AACF,MAAa,YAAY,IAAI,WAAW;CACvC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,YAAY,IAAI;EAChB,WAAW,IAAI,QAAQ;EACvB,QAAQ;EACR,aAAa;EACb;CACD,CAAC;AACF,MAAa,YAAY,IAAI,WAAW;CACvC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,YAAY,IAAI;EAChB,WAAW,IAAI,QAAQ;EACvB,QAAQ;EACR,aAAa;EACb;CACD,CAAC;AACF,MAAa,eAAe,IAAI,WAAW;CAC1C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,YAAY,IAAI;EAChB,WAAW,IAAI,QAAQ;EACvB,QAAQ;EACR,aAAa;EACb;CACD,CAAC"}