-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Signal Scheme #427
[WIP] Signal Scheme #427
Conversation
…Procesed (after Voting) write "Hello World" into Meta. Run npm run test -- test/0.0.1-rc.16/UGenericSchemeSignal.spec.ts
…me is not integrated in /types/schema and therefore not working.
…rapper in index.ts, using debug entity in test
…0.0.1-rc.16/UGenericSchemeSignal.spec.ts open http://localhost:8000/ and put the query in
… To test the individual functions change the signal.data
WIP Spezification (for Discussion): IPFS Proposal:
Graph Endpoint:
|
@@ -0,0 +1,287 @@ | |||
import { |
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.
UGenericScheme is deprecated . please use GenericScheme
@@ -1,4 +1,5 @@ | |||
import { store } from '@graphprotocol/graph-ts'; |
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.
UGenericScheme is deprecated . please use GenericScheme
import { debug } from '../utils'; | ||
|
||
export function getSignal(id: string): Signal { | ||
let sig = store.get('Signal', id) as Signal; |
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.
how about Signal.load(id) ?
src/domain/signal.ts
Outdated
} | ||
|
||
export function generatestring(key: string, value: string, signal: Signal ): void { | ||
const curlybraceopen = String.fromCharCode(123) |
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.
How about const curlybraceopen = '{'
src/domain/signal.ts
Outdated
} | ||
} | ||
|
||
function replaceindict(newkeypair: string, |
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.
replaceIndict (camelCase)
src/domain/signal.ts
Outdated
saveSignal(signal); | ||
} | ||
|
||
export function readProposal(id: string, proposalId: string): void { |
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.
how about adding this code at https://github.com/daostack/subgraph/blob/master/src/domain/proposal.ts#L64
No description provided.