Standalone AO API server written in TypeScript. Use @autonomousorganization/ao-cli to install and run as a service.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import M from '../ao-lib/mutations.js' |
|
|
|
const state = [] |
|
|
|
const mutations = { |
|
setCurrent(aos, current) { |
|
aos.length = 0 |
|
current.ao.forEach(a => { |
|
aos.push(a) |
|
}) |
|
}, |
|
applyEvent: M.aoMuts, |
|
} |
|
|
|
const actions = {} |
|
|
|
export default { |
|
state, |
|
mutations, |
|
actions, |
|
}
|
|
|