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

voting dapp web UI trial (obsolete but parts migrating to RChain-Status) #37

Draft
wants to merge 119 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
93114e7
factor out o2r/ OAuth 2 RChain gateway
dckc Aug 4, 2018
f364808
Contents: demote to README in subdirs
dckc Aug 4, 2018
b212189
oops: forgot to move 2 files
dckc Aug 5, 2018
504440d
keyPair: use crypto.randomBytes
dckc Aug 7, 2018
75b0896
o2r: more directory re-org
dckc Sep 13, 2018
41cca6f
Merge branch 's2r'
dckc Sep 13, 2018
46d50c1
o2r: airbnb lint style
dckc Sep 27, 2018
19c60d4
o2r: airbnb style, lint script
dckc Sep 27, 2018
2f2ff21
o2r: airbnb style for server.js
dckc Sep 27, 2018
0e362e0
o2r: autogenerated stubs from `flow-type install`
dckc Sep 27, 2018
4905909
o2r: static types for express, from `flow-type install`
dckc Sep 27, 2018
b84b6f8
o2r: rholang / RHOCore string interpolation support
dckc Sep 27, 2018
b8c15d8
o2r: oops! broke docopt indentation when linting
dckc Sep 27, 2018
87d9221
o2r: catch up with RChain-API, aided by flowtype
dckc Sep 27, 2018
d763363
oops: forgot to check in o2r/.flowconfig
dckc Sep 27, 2018
b962236
o2r/capper_start: prune ready(); simplify state handling
dckc Sep 27, 2018
a5c40c0
o2r: fix docopt indentation, moar
dckc Sep 27, 2018
b9b534c
o2r: support plain HTTP for localhost callback testing
dckc Sep 27, 2018
ecb6fbf
o2r: fix discord scope: identify, not identity
dckc Sep 27, 2018
dc967bc
o2r: discord role check (WIP)
dckc Sep 28, 2018
c3668a3
o2r: refactor oauthClient as discordProvider, githubProvider
dckc Sep 28, 2018
e7a815e
stub provider UIs
dckc Sep 28, 2018
9fafe60
o2r: Discord role check
dckc Sep 28, 2018
8f0a8df
o2r: more RChain-API catch-up
dckc Sep 29, 2018
d7206e6
o2r: on successful auth, ?s=xxx needs redirecting to #s=xxx
dckc Sep 29, 2018
f43e8ef
o2r: Membership Certificate request: front end
dckc Sep 29, 2018
5955cf5
o2r: support reverse-proxy deployment
dckc Oct 17, 2018
d2582b7
use rchain-api submodule
dckc Oct 17, 2018
6b8c10b
o2r: counter-sign claims
dckc Oct 17, 2018
53ac62c
put verified credential on web page rather than chain
dckc Oct 18, 2018
c319eb7
membership.rho: verified sig, registry lookup
dckc Oct 21, 2018
5411b15
sync w/rchain-api for 0.7
dckc Oct 22, 2018
b03f582
o2r: js-lint style global declarations
dckc Oct 22, 2018
574074d
o2r: CLI arg to revive OAuth sign-in handler
dckc Oct 22, 2018
fc0ecf3
Merge remote-tracking branch 'rhobot/oauth_gateway' into oauth_gateway
dckc Oct 22, 2018
3d71f46
o2r: prep for role, guild refactor: static types
dckc Oct 22, 2018
779be48
o2r: look up discord server, role names
dckc Oct 22, 2018
ba7ca69
o2r: good sig for membership.rho testing
dckc Oct 22, 2018
2313d2e
test certificate store, registry interaction
dckc Nov 1, 2018
9de6b6d
toward organisational evolution: always decline
dckc Nov 17, 2018
10ee0df
discord oauth2 to rev address
jimscarver Apr 7, 2020
777ab11
relocate o2r for use in rvote
dckc Apr 8, 2020
cd6270a
prune copy of o2r disconnected from its history
dckc Apr 8, 2020
d16ecf3
Merge branch 'dbr/oauth_gateway'
dckc Apr 8, 2020
e76e7b6
move invisible o2r files too
dckc Apr 8, 2020
1570cf2
Merge pull request #2 from rchain-community/o2r-history-fix
jimscarver Apr 8, 2020
29db4bd
build(deps): bump acorn from 5.7.3 to 5.7.4 in /o2r
dependabot[bot] Apr 8, 2020
2c73352
build(deps): bump fstream from 1.0.11 to 1.0.12 in /o2r
dependabot[bot] Apr 8, 2020
949d09f
build(deps): bump eslint-utils from 1.3.1 to 1.4.3 in /o2r
dependabot[bot] Apr 8, 2020
0d17450
build(deps): bump lodash from 4.17.11 to 4.17.15 in /o2r
dependabot[bot] Apr 8, 2020
f205d4d
build(deps): bump js-yaml from 3.12.0 to 3.13.1 in /o2r
dependabot[bot] Apr 8, 2020
08080cf
Merge pull request #9 from rchain-community/dependabot/npm_and_yarn/o…
jimscarver Apr 8, 2020
f0edc92
Merge pull request #5 from rchain-community/dependabot/npm_and_yarn/o…
jimscarver Apr 8, 2020
7f3cde2
Merge pull request #6 from rchain-community/dependabot/npm_and_yarn/o…
jimscarver Apr 8, 2020
66d05a8
Merge pull request #7 from rchain-community/dependabot/npm_and_yarn/o…
jimscarver Apr 8, 2020
0cc9998
Merge pull request #8 from rchain-community/dependabot/npm_and_yarn/o…
jimscarver Apr 8, 2020
6a4fb4d
Update LICENSE
jimscarver Apr 10, 2020
377988f
Update LICENSE
jimscarver Apr 10, 2020
aa4da86
Create Community.rho
jimscarver Apr 10, 2020
c20ed02
Create Directory.rho
jimscarver Apr 10, 2020
559b49a
add ballot and mailbox example
jimscarver Apr 22, 2020
b99255f
add ballot and mailbox example
jimscarver Apr 22, 2020
97411c4
Delete Community.rho
jimscarver Jun 10, 2020
2685b63
Delete Directory.rho
jimscarver Jun 10, 2020
7b48c20
Update readme.md
jimscarver Jun 10, 2020
b663de5
Update cross-shard.rho
jimscarver Jun 10, 2020
aad7281
ignore emacs backups
dckc Jun 13, 2020
f8a70a4
toward rchain mirror of zulip: select messages
dckc Jun 13, 2020
558bf5c
add zulip message table screenshot
dckc Jun 13, 2020
9c6d2c1
typo: zulip
dckc Jun 13, 2020
eda5bf0
rchat: listening for new zulip messages works
dckc Jun 13, 2020
597c654
rchat: listen to all tables
dckc Jun 13, 2020
0184031
rchat: update, insert, delete including table name
dckc Jun 13, 2020
c0fae13
rchat: turn DB operations into Rholang
dckc Jun 14, 2020
c133309
Makefile for deployment tools
dckc Jun 12, 2020
fb02dd1
rchat/Makefile: rval / deploy deployId sed KLUDGE
dckc Jun 14, 2020
a90dc19
IdDB INSERT / UPDATE / DELETE contract
dckc Jun 14, 2020
f07c9cf
Makefile: move deployed markers to subdir
dckc Jun 14, 2020
b5961e0
rchat: governance discussion mirrored to RChain
dckc Jun 14, 2020
4230369
deploy from web integration test: checkpoint
dckc Jun 15, 2020
43701b1
rchat: batching_queue
dckc Jun 17, 2020
c86ae14
toward separate package for generated protobuf stuff
dckc Jun 17, 2020
868962b
rchain-proto: lockfile
dckc Jun 17, 2020
d091446
add rchainDeploy module
dckc Jun 17, 2020
cb1055f
mirror to the chain in near-real-time
dckc Jun 17, 2020
36f3190
Merge branch 'rchat-mirror'
dckc Jun 17, 2020
ce61285
prune timeline; move to issue #26
dckc Jun 17, 2020
34bc6cf
move methods to issues
dckc Jun 17, 2020
276e905
de-emphasize initial brainstorm to linked doc
dckc Jun 17, 2020
e521694
cite other design docs
dckc Jun 17, 2020
4e95b24
Merge branch 'webui'
dckc Jun 21, 2020
642fd09
dev notes
dckc Jun 22, 2020
9c46849
rchain-proto: generate static es6 js stubs
dckc Jun 22, 2020
42346dd
rchain-proto: lock packages
dckc Jun 22, 2020
1209061
webui: signed deploy parts execute
dckc Jun 22, 2020
cdee946
deploy sig sorta works
dckc Jun 22, 2020
705ef47
toward social identity: fun with blockies
dckc Jun 23, 2020
f2d43e4
QR code (e.g. for keys)
dckc Jun 23, 2020
9dfd8ed
qrcode: vendor it. sigh.
dckc Jun 23, 2020
0f4811a
intro: match metamask account icon algorithm
dckc Jun 23, 2020
e66e961
webui: generate persistent deployment key
dckc Jun 23, 2020
78d07c0
webui: show balance of device account
dckc Jun 24, 2020
3fde0bc
webui: a bit of polish (using mini.css)
dckc Jun 24, 2020
5a76d35
webui: format code
dckc Jun 24, 2020
774ae8c
vendor rnode-address
dckc Jun 24, 2020
2f30491
use getAddrFromPrivateKey without @tgrospic/rnode-grpc-js
dckc Jun 24, 2020
5d3880e
lock packages
dckc Jun 24, 2020
edcee15
webui: rgate clean-up
dckc Jun 25, 2020
ee075c5
webui: use device key for test deploys
dckc Jun 25, 2020
b7d5d69
webui: create on-chain meeting agenda
dckc Jun 26, 2020
d2a3b43
clarify device balance is in 10^-8 REV
dckc Jun 26, 2020
3319ac6
webui for phlolimit
dckc Jun 26, 2020
602dd75
default agenda contract URI to one deployed on testnet
dckc Jun 26, 2020
ef249ea
createAgenda_rho: a very expensive typo in rho:registry:lookup
dckc Jun 26, 2020
d210e59
getDataForDeploy from tgrospic/rnode-client-js
dckc Jun 27, 2020
c2632bd
rnode-web: lint
dckc Jun 27, 2020
ff615d3
webui: make socialId, inbox
dckc Jun 27, 2020
fc2ce66
sign deploy without grpc-tools
dckc Aug 7, 2020
ab6921b
never mind rchain-proto
dckc Aug 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
web_modules/

# TypeScript v1 declaration files
typings/
Expand Down Expand Up @@ -102,3 +103,12 @@ dist

# TernJS port file
.tern-port

# emacs backups
*~

.envrc
,sv
,deployed
.build/
build/
24 changes: 24 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
trying out snowpack

never mind @tgrospic/rnode-grpc-js; go straight to pbjs, elliptic

trying out prettier

npm link:

npm link ../rchain-proto/

Comment Types | Flow
https://flow.org/en/docs/types/comments/

JavaScript modules - JavaScript | MDN
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules

flow/dom.js at 8391250177e37a047a33ae728fdbd1138632294a · facebook/flow
https://github.com/facebook/flow/blob/8391250177e37a047a33ae728fdbd1138632294a/lib/dom.js

rnode-client-js/rnode-web.js at master · tgrospic/rnode-client-js
https://github.com/tgrospic/rnode-client-js/blob/master/src/rnode-web.js

rnode-grpc-js/src at master · tgrospic/rnode-grpc-js
https://github.com/tgrospic/rnode-grpc-js/tree/master/src
222 changes: 201 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,201 @@
MIT License

Copyright (c) 2020 RChain Community

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading