{"version":3,"file":"protocol-config.mjs","names":["generated.setEwmaParams","generated.setEwmaEnabled","generated.addSettledRedeemKeeper","generated.removeSettledRedeemKeeper"],"sources":["../../../src/predict/bindings/protocol-config.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// The public `protocolConfigMoveCalls`: the generated `protocol_config` bindings, with the\n// argument keys the retired EWMA setters and settled-redeem keeper setters shipped with (see\n// `rename.ts`).\n\nimport * as generated from '../../contracts/deepbook_predict/protocol_config.js';\nimport type { RawTransactionArgument } from '../../contracts/utils/index.js';\nimport { renameArguments } from './rename.js';\n\nexport * from '../../contracts/deepbook_predict/protocol_config.js';\n\nconst EWMA_KEYS = {\n\tconfig: 'Config',\n\talpha: 'Alpha',\n\tzScoreThreshold: 'ZScoreThreshold',\n\tpenaltyRate: 'PenaltyRate',\n\tenabled: 'Enabled',\n} as const;\n\nexport interface SetEwmaParamsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\talpha: RawTransactionArgument<number | bigint>;\n\tzScoreThreshold: RawTransactionArgument<number | bigint>;\n\tpenaltyRate: RawTransactionArgument<number | bigint>;\n}\nexport interface SetEwmaParamsOptions extends Omit<generated.SetEwmaParamsOptions, 'arguments'> {\n\targuments: SetEwmaParamsArguments;\n}\n/**\n * @deprecated Retired with instant trading: queued fills charge no congestion penalty, and\n * Predict v4 always aborts it (`EEwmaRetired`).\n */\nexport function setEwmaParams(options: SetEwmaParamsOptions) {\n\treturn generated.setEwmaParams({\n\t\t...options,\n\t\targuments: renameArguments(options.arguments, EWMA_KEYS),\n\t});\n}\n\nexport interface SetEwmaEnabledArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tenabled: RawTransactionArgument<boolean>;\n}\nexport interface SetEwmaEnabledOptions extends Omit<generated.SetEwmaEnabledOptions, 'arguments'> {\n\targuments: SetEwmaEnabledArguments;\n}\n/**\n * @deprecated Retired with instant trading: queued fills charge no congestion penalty, and\n * Predict v4 always aborts it (`EEwmaRetired`).\n */\nexport function setEwmaEnabled(options: SetEwmaEnabledOptions) {\n\treturn generated.setEwmaEnabled({\n\t\t...options,\n\t\targuments: renameArguments(options.arguments, EWMA_KEYS),\n\t});\n}\n\nconst SETTLED_REDEEM_KEEPER_KEYS = { config: 'Config', keeper: 'Keeper' } as const;\n\nexport interface AddSettledRedeemKeeperArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tkeeper: RawTransactionArgument<string>;\n}\nexport interface AddSettledRedeemKeeperOptions extends Omit<\n\tgenerated.AddSettledRedeemKeeperOptions,\n\t'arguments'\n> {\n\targuments: AddSettledRedeemKeeperArguments;\n}\n/**\n * @deprecated Retired with `redeem_settled_permissionless`, the only call the keeper allowlist\n * gated. Predict v5 always aborts it (`ESettledRedeemRetired`).\n */\nexport function addSettledRedeemKeeper(options: AddSettledRedeemKeeperOptions) {\n\treturn generated.addSettledRedeemKeeper({\n\t\t...options,\n\t\targuments: renameArguments(options.arguments, SETTLED_REDEEM_KEEPER_KEYS),\n\t});\n}\n\nexport interface RemoveSettledRedeemKeeperArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tkeeper: RawTransactionArgument<string>;\n}\nexport interface RemoveSettledRedeemKeeperOptions extends Omit<\n\tgenerated.RemoveSettledRedeemKeeperOptions,\n\t'arguments'\n> {\n\targuments: RemoveSettledRedeemKeeperArguments;\n}\n/**\n * @deprecated Retired with `redeem_settled_permissionless`, the only call the keeper allowlist\n * gated. Predict v5 always aborts it (`ESettledRedeemRetired`).\n */\nexport function removeSettledRedeemKeeper(options: RemoveSettledRedeemKeeperOptions) {\n\treturn generated.removeSettledRedeemKeeper({\n\t\t...options,\n\t\targuments: renameArguments(options.arguments, SETTLED_REDEEM_KEEPER_KEYS),\n\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAM,YAAY;CACjB,QAAQ;CACR,OAAO;CACP,iBAAiB;CACjB,aAAa;CACb,SAAS;CACT;;;;;AAgBD,SAAgB,cAAc,SAA+B;AAC5D,QAAOA,gBAAwB;EAC9B,GAAG;EACH,WAAW,gBAAgB,QAAQ,WAAW,UAAU;EACxD,CAAC;;;;;;AAeH,SAAgB,eAAe,SAAgC;AAC9D,QAAOC,iBAAyB;EAC/B,GAAG;EACH,WAAW,gBAAgB,QAAQ,WAAW,UAAU;EACxD,CAAC;;AAGH,MAAM,6BAA6B;CAAE,QAAQ;CAAU,QAAQ;CAAU;;;;;AAiBzE,SAAgB,uBAAuB,SAAwC;AAC9E,QAAOC,yBAAiC;EACvC,GAAG;EACH,WAAW,gBAAgB,QAAQ,WAAW,2BAA2B;EACzE,CAAC;;;;;;AAkBH,SAAgB,0BAA0B,SAA2C;AACpF,QAAOC,4BAAoC;EAC1C,GAAG;EACH,WAAW,gBAAgB,QAAQ,WAAW,2BAA2B;EACzE,CAAC"}