Skip to content
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

Closed
wants to merge 35 commits into from
Closed

[WIP] Signal Scheme #427

wants to merge 35 commits into from

Conversation

mrrobot16
Copy link

No description provided.

@plsdlr
Copy link

plsdlr commented Jan 21, 2020

WIP Spezification (for Discussion):

IPFS Proposal:

{ description: 'Setting new header Image', title: 'New Header Image', url: 'http://swift.org/modest', key: 'Header', value: 'https://de.wikipedia.org/wiki/Wald#/media/Datei:Laurisilva_en_el_Cubo_de_la_Galga.jpg', }

Graph Endpoint:

signals:[ { data: '{"Header":"https://de.wikipedia.org/wiki/Wald#/media/Datei:Laurisilva_en_el_Cubo_de_la_Galga.jpg"}', id: '0x86e9fe552e75e4fc51f46e4efc128628ecd5ada7' } ] }

@@ -0,0 +1,287 @@
import {
Copy link
Contributor

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';
Copy link
Contributor

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;
Copy link
Contributor

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) ?

}

export function generatestring(key: string, value: string, signal: Signal ): void {
const curlybraceopen = String.fromCharCode(123)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about const curlybraceopen = '{'

}
}

function replaceindict(newkeypair: string,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaceIndict (camelCase)

saveSignal(signal);
}

export function readProposal(id: string, proposalId: string): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrrobot16 mrrobot16 closed this Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants