(operation: OperationType, entity: string, data: Entity | string)
| 55 | } |
| 56 | |
| 57 | put(operation: OperationType, entity: string, data: Entity | string): void { |
| 58 | const operationEntity: OperationEntity = { |
| 59 | operation: operation, |
| 60 | entityType: entity, |
| 61 | data: data, |
| 62 | }; |
| 63 | // skip full data, should write in higher level |
| 64 | monitorWrite( |
| 65 | `-- [POI][StoreOperations][put] ${operation} entity ${entity}, data/id: ${ |
| 66 | typeof data === 'string' ? data : data.id |
| 67 | }` |
| 68 | ); |
| 69 | this.merkleTools.addLeaf(u8aToBuffer(this.operationEntityToUint8Array(operationEntity)), true); |
| 70 | } |
| 71 | |
| 72 | reset(): void { |
| 73 | // Bad types |
no test coverage detected