/************************************************************** * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED * **************************************************************/ /** * Defines canonical-account lifecycle, app-authorization, and per-coin custody * events. `account_registry` emits creation and authorization transitions; * `account` emits balance transitions. */ import { MoveStruct } from '../utils/index.js'; import { bcs } from '@mysten/sui/bcs'; import { U64 } from '../../bcs/integers.js'; const $moduleName = '@local-pkg/account::account_events'; export const AccountCreated = new MoveStruct({ name: `${$moduleName}::AccountCreated`, fields: { account_id: bcs.Address, wrapper_id: bcs.Address, owner: bcs.Address, self_owned: bcs.bool(), referrer_account_id: bcs.option(bcs.Address), }, }); export const AppAuthorized = new MoveStruct({ name: `${$moduleName}::AppAuthorized`, fields: { /** Fully-qualified `App` witness type name. */ app: bcs.string(), }, }); export const AppDeauthorized = new MoveStruct({ name: `${$moduleName}::AppDeauthorized`, fields: { app: bcs.string(), }, }); export const Deposited = new MoveStruct({ name: `${$moduleName}::Deposited`, fields: { account_id: bcs.Address, coin_type: bcs.string(), amount: U64, new_balance: U64, }, }); export const Withdrawn = new MoveStruct({ name: `${$moduleName}::Withdrawn`, fields: { account_id: bcs.Address, coin_type: bcs.string(), amount: U64, new_balance: U64, }, }); export const FundsSettled = new MoveStruct({ name: `${$moduleName}::FundsSettled`, fields: { account_id: bcs.Address, coin_type: bcs.string(), amount: U64, new_balance: U64, }, });