{"version":3,"file":"staking_inner.mjs","names":["object_table.ObjectTable","extended_field.ExtendedField","committee.Committee","epoch_parameters.EpochParams"],"sources":["../../../src/contracts/walrus/staking_inner.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\nimport { MoveEnum, MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport * as object_table from './deps/sui/object_table.js';\nimport * as extended_field from './extended_field.js';\nimport * as committee from './committee.js';\nimport * as epoch_parameters from './epoch_parameters.js';\nconst $moduleName = '@local-pkg/walrus::staking_inner';\n/** The epoch state. */\nexport const EpochState = new MoveEnum({\n\tname: `${$moduleName}::EpochState`,\n\tfields: {\n\t\tEpochChangeSync: bcs.u16(),\n\t\tEpochChangeDone: bcs.u64(),\n\t\tNextParamsSelected: bcs.u64(),\n\t},\n});\nexport const StakingInnerV1 = new MoveStruct({\n\tname: `${$moduleName}::StakingInnerV1`,\n\tfields: {\n\t\t/** The number of shards in the system. */\n\t\tn_shards: bcs.u16(),\n\t\t/** The duration of an epoch in ms. Does not affect the first (zero) epoch. */\n\t\tepoch_duration: bcs.u64(),\n\t\t/**\n\t\t * Special parameter, used only for the first epoch. The timestamp when the first\n\t\t * epoch can be started.\n\t\t */\n\t\tfirst_epoch_start: bcs.u64(),\n\t\t/**\n\t\t * Stored staking pools, each identified by a unique `ID` and contains the\n\t\t * `StakingPool` object. Uses `ObjectTable` to make the pool discovery easier by\n\t\t * avoiding wrapping.\n\t\t *\n\t\t * The key is the ID of the staking pool.\n\t\t */\n\t\tpools: object_table.ObjectTable,\n\t\t/**\n\t\t * The current epoch of the Walrus system. The epochs are not the same as the Sui\n\t\t * epochs, not to be mistaken with `ctx.epoch()`.\n\t\t */\n\t\tepoch: bcs.u32(),\n\t\t/** Stores the active set of storage nodes. Tracks the total amount of staked WAL. */\n\t\tactive_set: extended_field.ExtendedField,\n\t\t/** The next committee in the system. */\n\t\tnext_committee: bcs.option(committee.Committee),\n\t\t/** The current committee in the system. */\n\t\tcommittee: committee.Committee,\n\t\t/** The previous committee in the system. */\n\t\tprevious_committee: committee.Committee,\n\t\t/** The next epoch parameters. */\n\t\tnext_epoch_params: bcs.option(epoch_parameters.EpochParams),\n\t\t/** The state of the current epoch. */\n\t\tepoch_state: EpochState,\n\t\t/**\n\t\t * The public keys for the next epoch. The keys are stored in a sorted `VecMap`,\n\t\t * and mirror the order of the nodes in the `next_committee`. The value is set in\n\t\t * the `select_committee` function and consumed in the `next_bls_committee`\n\t\t * function.\n\t\t */\n\t\tnext_epoch_public_keys: extended_field.ExtendedField,\n\t},\n});\n"],"mappings":";;;;;;;;;;;AASA,MAAM,cAAc;;AAEpB,MAAa,aAAa,IAAI,SAAS;CACtC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,iBAAiB,IAAI,KAAK;EAC1B,iBAAiB,IAAI,KAAK;EAC1B,oBAAoB,IAAI,KAAK;EAC7B;CACD,CAAC;AACF,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EAEP,UAAU,IAAI,KAAK;EAEnB,gBAAgB,IAAI,KAAK;EAKzB,mBAAmB,IAAI,KAAK;EAQ5B,OAAOA;EAKP,OAAO,IAAI,KAAK;EAEhB,YAAYC;EAEZ,gBAAgB,IAAI,OAAOC,UAAoB;EAE/C,WAAWA;EAEX,oBAAoBA;EAEpB,mBAAmB,IAAI,OAAOC,YAA6B;EAE3D,aAAa;EAOb,wBAAwBF;EACxB;CACD,CAAC"}