Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f957e76
add subgroupVersion as param to selfDelegation
Jul 22, 2018
e043896
Updated docs + sv-lib
Jul 22, 2018
b2886a9
added function: submitEd25519Delegation
Jul 23, 2018
8e18633
added additional validation
Jul 23, 2018
0872e37
added beginnings of nonce tracking in dynamodb
Jul 24, 2018
f4d5715
refactored slightly to remove logic to check differences in nonce num…
Jul 24, 2018
1b90b52
started working on submit proxy proposal
Jul 26, 2018
cb4ccbe
additional work troubleshooting
Jul 27, 2018
84da235
Fix build - working through docker
XertroV Jul 30, 2018
85a22f3
Merge pull request #2 from secure-vote/dlgt-api-sv-lib
XertroV Jul 30, 2018
8aede02
Fix docker build command
XertroV Jul 30, 2018
b8794a7
updated errResp
Jul 30, 2018
d4ec4bd
merged submit-proxy-proposal branch
Jul 30, 2018
59118cb
deploy proxy ballot publishing transactions (but they are reverting)
Jul 30, 2018
b58c2bd
added signature validation check on submit proxy proposal handler
Jul 31, 2018
7736238
updated signature, working
Aug 2, 2018
1ff78e1
added comments and todo notes for where sv-lib functionality will tak…
Aug 2, 2018
0b1207d
rough submitproxyvote handler complete
Aug 3, 2018
0585acc
submit proxy vote function completed, working and slight refactor
Aug 7, 2018
ce41978
more updates to submit proxy vote handler
Aug 7, 2018
23d0fc9
added nonce reservation to submit proxy vote
Aug 7, 2018
693057d
added general function to generate tx data and estimate gas
Aug 7, 2018
8c6545f
submit proxy proposal working
Aug 8, 2018
a43d9dd
variable name changes, changed extradata for remote bb farm
Aug 10, 2018
f3d640b
submit proxy vote to foreign bbFarm
Aug 13, 2018
1f4923b
cleaned up submit proxy ballot
Aug 13, 2018
a12767b
tidy up of submit proxy proposal function
Aug 13, 2018
7744ce4
added networkId and chainId to return values
Aug 14, 2018
3f6558a
updates to return networkId and chainId
Aug 14, 2018
f892300
updated sv-lib@0.3.1, using sv-lib for svNetwork and web3 instances
Aug 15, 2018
5f67fba
added environment variables and removed current testing keys
Aug 15, 2018
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# package directories
node_modules
node_modules.*
jspm_packages

# Serverless directories
Expand All @@ -11,3 +12,8 @@ jspm_packages
swagger-docs.json

.DS_Store

pkg-docker

#environment variables
env-vars.json
45 changes: 45 additions & 0 deletions docker-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/env sh

set -e

mkdir -p /build
mkdir -p /build/node_modules

load_docker_node_modules () {
echo "INIT DOCKER NODE_MODULES"
currdir=$(pwd)
cd /lambda
if [ -f node_modules.docker.tar ]; then
tar xf node_modules.docker.tar -C /build/node_modules
fi
cd "$currdir"
echo "DONE INIT DOCKER NODE_MODULES"
}

save_docker_node_modules () {
echo "SAVING DOCKER NODE_MODULES"
cd /lambda
tar cf node_modules.docker.tar /build/node_modules
echo "DONE SAVING DOCKER NODE_MODULES"
}

# move original node modules back if we can on exit
trap save_docker_node_modules EXIT

# go to /lambda and set up modules
cd /lambda
load_docker_node_modules

rsync -av --progress . /build \
--exclude node_modules --exclude node_modules.docker --exclude node_modules.native \
--exclude .git --exclude docs --exclude node_modules.docker.tar --exclude pkg-docker
cd /build

echo -e "\n\n ## running npm install ## \n\n"

npm i

echo -e "\n\n ## npm install done ## starting package ## \n\n"

./node_modules/.bin/serverless package --package /build/pkg-docker
rsync -av --progress /build/pkg-docker/ /lambda/pkg-docker --delete
12 changes: 10 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ <h5>Request Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">&quot;signature&quot;</span>: <span class="hljs-string">&quot;&quot;</span>,
<span class="hljs-attr">&quot;publickey&quot;</span>: <span class="hljs-string">&quot;&quot;</span>,
<span class="hljs-attr">&quot;packed&quot;</span>: <span class="hljs-string">&quot;&quot;</span>
<span class="hljs-attr">&quot;packed&quot;</span>: <span class="hljs-string">&quot;&quot;</span>,
<span class="hljs-attr">&quot;subgroupVersion&quot;</span>: <span class="hljs-number">1</span>
}
</code></pre>
<!-- </div> -->
Expand Down Expand Up @@ -570,6 +571,12 @@ <h2 class="panel-title">
<span class="json-property-range" title="Value limits"></span>
<span class="json-property-required"></span>
</dt>
<dt data-property-name="subgroupVersion">
<span class="json-property-name">subgroupVersion:</span>
<span class="json-property-type">number</span>
<span class="json-property-range" title="Value limits"></span>
<span class="json-property-required"></span>
</dt>
</dl>
</section>
</div>
Expand All @@ -579,7 +586,8 @@ <h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">&quot;signature&quot;</span>: <span class="hljs-string">&quot;&quot;</span>,
<span class="hljs-attr">&quot;publickey&quot;</span>: <span class="hljs-string">&quot;&quot;</span>,
<span class="hljs-attr">&quot;packed&quot;</span>: <span class="hljs-string">&quot;&quot;</span>
<span class="hljs-attr">&quot;packed&quot;</span>: <span class="hljs-string">&quot;&quot;</span>,
<span class="hljs-attr">&quot;subgroupVersion&quot;</span>: <span class="hljs-number">1</span>
}
</code></pre>
<!-- </div> -->
Expand Down
Loading