dao-governance-framework/forum-network/src/classes/action.js

16 lines
359 B
JavaScript
Raw Normal View History

2022-11-11 16:52:57 -06:00
export class Action {
constructor(name, scene) {
this.name = name;
this.scene = scene;
}
async log(src, dest, msg, obj, symbol = '->>') {
2022-11-11 16:52:57 -06:00
const logObj = false;
await this.scene.sequence.log(
2022-11-11 16:52:57 -06:00
`${src.name} ${symbol} ${dest.name} : ${this.name} ${msg ?? ''} ${
logObj && obj ? JSON.stringify(obj) : ''
}`,
);
}
}