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

submit channel #64

Merged
merged 10 commits into from
Mar 25, 2019
Merged

submit channel #64

merged 10 commits into from
Mar 25, 2019

Conversation

samparsky
Copy link
Contributor

@samparsky samparsky commented Feb 20, 2019

fixes issues #44 #30

@samparsky samparsky changed the title [WIP] Api channel info [WIP] Api channel info and accept channel Feb 20, 2019
@samparsky samparsky changed the title [WIP] Api channel info and accept channel Api channel info and accept channel Feb 22, 2019
@samparsky samparsky force-pushed the api-channel-info branch 2 times, most recently from 9a007fd to f058c6a Compare February 22, 2019 18:50
@Ivshti Ivshti changed the title Api channel info and accept channel API channel info and accept channel Feb 23, 2019
Copy link
Member

@Ivshti Ivshti left a comment

Choose a reason for hiding this comment

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

quotation marks on property names

i will review in depth later

routes/channel.js Outdated Show resolved Hide resolved
routes/schema.js Outdated Show resolved Hide resolved
@samparsky samparsky force-pushed the api-channel-info branch 2 times, most recently from 865ec8d to 929c2b4 Compare March 22, 2019 10:18
@samparsky samparsky changed the title API channel info and accept channel submit channel Mar 22, 2019
@samparsky samparsky force-pushed the api-channel-info branch 2 times, most recently from c039721 to 0e33db9 Compare March 22, 2019 17:54
routes/schema.js Outdated Show resolved Hide resolved
@@ -115,6 +125,27 @@ function getValidatorMessages(req, res, next) {
.catch(next)
}

function createCampaign(req, res, next) {
Copy link
Member

Choose a reason for hiding this comment

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

rename this, as well as the routes, to createChannel and POST /channel

test/fixtures.js Outdated Show resolved Hide resolved
routes/schema.js Outdated
return schema
}

function validators({ CREATORS_WHITELIST }) {
Copy link
Member

Choose a reason for hiding this comment

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

also, other than VALIDATORS_WHITELIST (separate thing than CREATORS_WHITELIST), this should check if the validator count is always 2; not larger, not smaller, always === 2

and when checking the whitelist, we should check VALIDATORS_WHITELIST OR === adapter.whoami()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah it already checks the validator count is always 2.

@Ivshti Ivshti merged commit 742b7ae into AmbireTech:master Mar 25, 2019
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.

None yet

2 participants