-
Notifications
You must be signed in to change notification settings - Fork 44
Conversation
…/node-jsonapi-ops
@@ -31,6 +31,41 @@ import { | |||
} from "./methods"; | |||
import { NODE_EVENTS } from "./types"; | |||
|
|||
// Maps controllers to JSONAPI operations. | |||
export const controllersToOperations = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are some ops in a fixed set like get
or add
but others are strings like getFreeBalanceState
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an intro to @ebryn/jsonapi-ts
with motivation?
@@ -21,6 +21,7 @@ | |||
"lint": "lerna run lint --parallel --no-bail", | |||
"lint:fix": "lerna run lint:fix --parallel --no-bail", | |||
"run:playground": "lerna run start --parallel --scope=**/playground --scope=**/playground-server --scope=**/dapp-high-roller --scope=**/dapp-tic-tac-toe", | |||
"run:playground:server": "lerna run start --parallel --scope=**/playground-server", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could simply do yarn start
from the playground-server package, no?
const relayedProposalMsg: NodeOperation = { | ||
meta: { | ||
from: requestHandler.publicIdentifier, | ||
requestId: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably outside the scope of this PR but we should discuss needing requestId
- from what I've seen so far it's been empty / not referenced at all.
Cancelled in favour of JSONRPC. |
This is a draft implementation of what's being discussed in #1250.