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

14 lines
292 B
JavaScript

export class Action {
constructor(name) {
this.name = name;
}
async log(src, dest, msg, obj, symbol = '->>') {
await window?.scene?.sequence?.log(
`${src.name} ${symbol} ${dest.name} : ${this.name} ${msg ?? ''} ${
JSON.stringify(obj) ?? ''
}`,
);
}
}