MCPcopy Create free account
hub / github.com/Project-DARC/DARC / batch_add_plugins

Function batch_add_plugins

darc-js/src/darcjs.ts:175–182  ·  view source on GitHub ↗
(pluginArray: PluginStruct[] | PluginStructWithNode[])

Source from the content-addressed store, hash-verified

173}
174
175export function batch_add_plugins(pluginArray: PluginStruct[] | PluginStructWithNode[]): OperationStruct {
176 if (pluginArray instanceof Array && typeof pluginArray[0] !== "object") {
177 let operation = OPCODE_ID_12_BATCH_ADD_PLUGINS(pluginArray);
178 return operation;
179 }
180 let operation = OPCODE_ID_12_BATCH_ADD_PLUGINS(pluginArray);
181 return operation;
182}
183
184export function batch_enable_plugins(pluginIndexArray: bigint[] | number[], isBeforeOperationArray: boolean[]): OperationStruct {
185 let operation = OPCODE_ID_13_BATCH_ENABLE_PLUGINS(pluginIndexArray, isBeforeOperationArray);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected