feat: events

This commit is contained in:
ppedziwiatr
2023-10-06 16:52:10 +02:00
committed by just_ppe
parent 8e7157efee
commit e45c5f2f7b
11 changed files with 119 additions and 25 deletions

View File

@@ -37,6 +37,16 @@ export async function handle(state, action) {
return {state};
}
if (input.function === 'dispatchEvent') {
return {
state,
event: {
value1: 'foo',
value2: 'bar'
}
}
}
if (input.function === 'balance') {
const target = input.target;
const ticker = state.ticker;