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

14 lines
292 B
JavaScript
Raw Normal View History

2022-11-11 16:52:57 -06:00
export class Action {
constructor(name) {
2022-11-11 16:52:57 -06:00
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) ?? ''
}`,
);
2022-11-11 16:52:57 -06:00
}
}