forked from humanprotocol/hmt-escrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request humanprotocol#3 from hCaptcha/master
Sync repo
- Loading branch information
Showing
30 changed files
with
2,117 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,6 @@ src | |
.vscode | ||
docker-compose | ||
build/ | ||
node_modules/ | ||
coverage/ | ||
coverage.json | ||
minio/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
sudo: required | ||
language: python | ||
python: | ||
- "3.6" | ||
|
||
services: | ||
- docker | ||
- docker | ||
|
||
script: | ||
- "./bin/ci" | ||
env: | ||
global: | ||
- secure: AxdiEbfbcYAnUDta9LdtT6g22KLUe/Mf3VoQBKUtYmTDg1S3oeDvjIPH/xSuWzsvu738NE51/oTwvcfVseJhRtdSarOc79F1jKnGbUYedtP6N47hfp7xosIigU1JlnEBV3P4u7tbAnASg/Q95waG5FVrd7uh2EBfCTrHKXkdnJQck5P2lh9g16MNiQr7WEo95tXGDhNNKbLpfhMl9xANyKTpYe6O2GgaywPpDTOI65NgY+YA59zj6f/ZFtgbqWCQPXvwvwcqi12AfcoBDeon98dvDEuXCgdMyYMgU0oZd8t4gulmR3argFTSOFZV3ufEM9J2Az323EHI2a+r2pnla/kK9+px8D3c9Xk0NPIngqy2/L6+zwtGQh2QiprBwfiS/rwbZG8G5YF5xDAIRsPTYriUnIUNDy8RbGnumx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h95agoWA2oeNYYBDDTnHwKstu3FM+moerzpVaNfRn821W5VJhK16MDx/YbHVI53wFslKk/PXfjwAzAnZIN1+RnSzViKl0DwQs0iABAbZfXQKtxE9NyqZkNR5a4QteT+B0Lxn5iC67oTkjk7MKhBbEO9D9Zm5tuwRZjtWuFyZg0BoItz2v7xt6eshz1JDvzny/bGhISaXU3eBdxz12Zy0YNx4eOTzmWaU9A+Yfs4yBmYrESnuJmWND6kxuxeD9ynZDpgoccqQ3yx5PFu6io0ITlxLod0e3iXx3KDA9+nBVm+u2InHvUv6A90Qk6H8QgW37FjWnpYQnXG2N6idC5OzJZEUzk0Q6yceZ9O57z0onbL3aXGrgbu9RICBOCfT00gpwG+it5rC7VynTwKk+Z2aVP1WcroK6eyDVFeExsxzWAxK70HGsPDd7pjNtWPg8uAc5Qc3+SXcbpypw3GczSnzWrhVGKgoIasBXNfVMJH6j8cpINN5zorzxv97wmxzjbQPBRjDH0RkK3gqQUYTQFgifnoThxl/6yGoYdneDJlWpQOLLECyyqGWPk=" | ||
|
||
deploy: | ||
provider: pypi | ||
user: dev-im | ||
# This edge argument is intended to work around issue: | ||
# https://github.com/travis-ci/dpl/pull/834#issuecomment-434036325 | ||
edge: | ||
source: ssbarnea/dpl | ||
branch: master | ||
password: | ||
secure: "hhjn47GalCnADFUsLerOZALSHISeJbXyZ3N2UzChGsO3y3mERY7TD5eGFgXSkr+KlOq3Z96Im+N2f4TviRo9F87i0Z1jYAIIURDYFTJ90UQUugdyY5hjuPDDUYbEZbkcZVroW3Uq9dUpe4KcAnVFZmwIT0DEUTEgdyNzgkxMNBEobu/ZAu2tkWHu6PTWaJcpp+jII3vpay1o3HJbGdrbX9DLyC9ODHG7XJuePddQmDLuOTKOfnNxqo1tBkaw3a49bW2G1JWYpfof7l8AMaeCikRownAd0NrolDkRc19VfflvSe4w1FMYRGnZy1IJRo16olQEQiyDp8vBbAFe0xq6yncUsf12wXyRGFQqDgJXJImm0lg3oj8/4ag+ZxR8XvxGEgb+IWuqy+CD9bAVBbKRWQKeCgg2PQjTl7INoDIAaJ8f/Z65fhSB3uPZ1FlE8pBnNSFF0Lma2HGp1fIFM+jEH+WLbZKrUvYTXYvbfTUMwY41+u6Q+PEEkhqvNslOFTn2TZXwJSk0Eyq/FfhGS4jw5Bs/ngBybVSoB4ypHClo/dJcAVCl2KDx7Pc+GI1ZxNE1D6sJnOS4E6jJJdZYC9s/UQacHvTke+G3dXii9Y9BzEd508irw2DC0s+uJnSGzUm57tWHEbNAn+noZ0dhzLwCl7Jb6Uqe5sZDHK5/CqUcZeE=" | ||
on: | ||
tags: true | ||
matrix: | ||
include: | ||
- language: python | ||
python: 3.8 | ||
script: "./bin/ci" | ||
deploy: | ||
- provider: pypi | ||
user: dev-im | ||
edge: | ||
source: ssbarnea/dpl | ||
branch: master | ||
password: | ||
secure: hhjn47GalCnADFUsLerOZALSHISeJbXyZ3N2UzChGsO3y3mERY7TD5eGFgXSkr+KlOq3Z96Im+N2f4TviRo9F87i0Z1jYAIIURDYFTJ90UQUugdyY5hjuPDDUYbEZbkcZVroW3Uq9dUpe4KcAnVFZmwIT0DEUTEgdyNzgkxMNBEobu/ZAu2tkWHu6PTWaJcpp+jII3vpay1o3HJbGdrbX9DLyC9ODHG7XJuePddQmDLuOTKOfnNxqo1tBkaw3a49bW2G1JWYpfof7l8AMaeCikRownAd0NrolDkRc19VfflvSe4w1FMYRGnZy1IJRo16olQEQiyDp8vBbAFe0xq6yncUsf12wXyRGFQqDgJXJImm0lg3oj8/4ag+ZxR8XvxGEgb+IWuqy+CD9bAVBbKRWQKeCgg2PQjTl7INoDIAaJ8f/Z65fhSB3uPZ1FlE8pBnNSFF0Lma2HGp1fIFM+jEH+WLbZKrUvYTXYvbfTUMwY41+u6Q+PEEkhqvNslOFTn2TZXwJSk0Eyq/FfhGS4jw5Bs/ngBybVSoB4ypHClo/dJcAVCl2KDx7Pc+GI1ZxNE1D6sJnOS4E6jJJdZYC9s/UQacHvTke+G3dXii9Y9BzEd508irw2DC0s+uJnSGzUm57tWHEbNAn+noZ0dhzLwCl7Jb6Uqe5sZDHK5/CqUcZeE= | ||
on: | ||
tags: true | ||
|
||
notifications: | ||
slack: | ||
secure: dZRSuoImcjxOKrsMDhVJo2CfbkVwp77P9tlOLmRhbSVBytdcMCPx39pZHKM87PTSAkyep5UnTQfZUiscwMF4UZMNB4pgFL8tnLYX0iM90mMbUFZFhrCX7dsgqT5rdMvulMb/MC55AGrU6BDOoheOAho0xtr5gZtlkfsHBS+FPIlY1NvPse8/4srzt34fMQef9GZYkZDs4xDUvO7dnoBnuiTMGErLdoSn6Qp8C9Q2v0CB4V6w9Tv2Ox8gKhyB5QYXBptprAvUiZ3hRCkNKaByd1GZXbtZNv4GPcsnMSlef4g4EK8ZgPicsXAi6Sxg+UG3mXlTIDZq0XqhJT8GBPoW0b0hLsgyyaGSD85SOf25z9JnrUZWp1iBM2Ydjp9Dd4RBwmC036BQOhjgVzYX5BH31YpIm4tjlTKWoAi2Pz2/F+L8NdqQR1bdDTb98uQzqFQtcf64alZz++KIFAWPaH0DCsGtskilx52Kr9TiTKeTim4IaHe/fpvwmNYX2kAzMQKDMuh5rU9iUUu4pKXipuJPKHgbi2bnGDLJ0Bt2YpAiRtz2Z9ZSdlNMiIHIRxH+PGD2jEMJpblWxIH432gJCX8rKvL7FelMBLWxNAzzsT1ox7q87SyXdLb/lI8xRwpJXcr9zzUoB8zY0UlJO/UkwrWC5RjB18UfDkbUEwHRrckwAGY= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
FROM ubuntu:focal | ||
ENV LANG C.UTF-8 | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PYTHONPATH "/usr/lib/python3.6/:/usr/local/lib/python3.6/dist-packages/:/work:/work/banhammer:/work/hmt-servers" | ||
ENV PYTHONUNBUFFERED True | ||
|
||
WORKDIR /work | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y automake bash black build-essential curl git jq libffi-dev libgmp-dev libtool mypy nodejs npm \ | ||
pandoc pkg-config python3-boto python3-dev python3-pip | ||
pandoc pkg-config python3-boto python3-dev python3-pip libsnappy-dev | ||
|
||
ENV PYTHONPATH "/usr/lib/python3.8/:/usr/local/lib/python3.8/dist-packages/:/work:/work/banhammer:/work/hmt-servers" | ||
|
||
COPY package.json /work/ | ||
RUN npm install | ||
COPY package.json package-lock.json /work/ | ||
RUN cd /work && npm install | ||
ENV PATH="/work/node_modules/.bin/:${PATH}" | ||
|
||
COPY requirements.txt /work/ | ||
RUN pip3 install -r requirements.txt | ||
# Pin to specific version that's guaranteed to work | ||
RUN pip3 install pipenv | ||
COPY Pipfile Pipfile.lock /work/ | ||
RUN pipenv install --system --deploy --pre | ||
|
||
ENV SOLC_VERSION="v0.6.2" | ||
RUN python3 -m solcx.install ${SOLC_VERSION} | ||
ENV SOLC_BINARY="/root/.py-solc-x/solc-${SOLC_VERSION}/bin/solc" | ||
|
||
# Necessary files for smart contract compilation, migration and testing | ||
COPY . /work/ | ||
|
||
CMD ./test.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include README.md | ||
recursive-include contracts | ||
recursive-include migrations | ||
recursive-include contracts * | ||
recursive-include migrations * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
|
||
[packages] | ||
trinity = {git = "https://github.com/ethereum/trinity.git", ref = "master"} | ||
py-solc-x = {git = "https://github.com/iamdefinitelyahuman/py-solc-x.git", ref = "master"} | ||
boto3 = "*" | ||
hmt-basemodels = "*" | ||
Sphinx = {git = "https://github.com/sphinx-doc/sphinx.git", ref = "master"} | ||
|
||
[requires] | ||
python_version = "3.8" | ||
|
||
[pipenv] | ||
allow_prereleases = true |
Oops, something went wrong.