-
Notifications
You must be signed in to change notification settings - Fork 8
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
EIP1056Registry - standardized contract interface #60
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9699ae9
rename EthereumDIDRegistry to DIDRegistry
jac18281828 28e275e
upgrade solidity 0.8.21, upgrade hardhat, simplify Dockerbuild
jac18281828 ccc4397
Document functions in DIDRegistry contract
jac18281828 2193520
Add EIP1056Registry
jac18281828 9f35008
Update packages/did-eth-registry/contracts/DIDRegistry.sol
jac18281828 6ac08f5
Update packages/did-eth-registry/contracts/EIP1056Registry.sol
jac18281828 a5b6cf7
Update packages/did-eth-registry/contracts/EIP1056Registry.sol
jac18281828 0d77ef6
review: rename internal contract functions to include _ to avoid name…
jac18281828 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"rules": { | ||
"compiler-version": ["error", "^0.8.0"], | ||
"func-visibility": ["warn", { "ignoreConstructors": true }], | ||
"compiler-version": [ | ||
"error", | ||
"^0.8.15" | ||
], | ||
"func-visibility": [ | ||
"warn", | ||
{ | ||
"ignoreConstructors": true | ||
} | ||
], | ||
"not-rely-on-time": "off" | ||
} | ||
} | ||
} |
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,56 +1,17 @@ | ||
FROM debian:stable-slim as python-builder | ||
FROM ghcr.io/xmtp/foundry:latest | ||
|
||
# python3.10 is required for node-gyp | ||
RUN useradd --create-home -s /bin/bash did | ||
RUN usermod -a -G sudo did | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
# Python | ||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt update && \ | ||
apt install -y -q --no-install-recommends \ | ||
npm build-essential curl \ | ||
ca-certificates apt-transport-https \ | ||
libncursesw5-dev libssl-dev \ | ||
libsqlite3-dev tk-dev libgdbm-dev \ | ||
libc6-dev libbz2-dev libffi-dev zlib1g-dev \ | ||
python3-pip python3-dev && \ | ||
python3-pip python3-dev python3 && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /build | ||
ADD https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz Python-3.10.13.tgz | ||
RUN tar -xvf Python-3.10.13.tgz | ||
WORKDIR /build/Python-3.10.13 | ||
RUN ./configure --enable-optimizations | ||
RUN make -j4 | ||
|
||
FROM ghcr.io/xmtp/foundry:latest | ||
|
||
RUN useradd --create-home -s /bin/bash did | ||
RUN usermod -a -G sudo did | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
# Python 3.10 | ||
|
||
COPY --from=python-builder /build /build | ||
WORKDIR /build/Python-3.10.13 | ||
RUN make install | ||
RUN which python3 && python3 --version | ||
RUN rm -rf /build | ||
|
||
RUN mkdir -p /usr/local/nvm | ||
ENV NVM_DIR=/usr/local/nvm | ||
|
||
ENV NODE_VERSION=v14.21.3 | ||
|
||
ADD https://raw.githubusercontent.com/creationix/nvm/master/install.sh /usr/local/etc/nvm/install.sh | ||
RUN bash /usr/local/etc/nvm/install.sh && \ | ||
bash -c ". $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm alias default $NODE_VERSION && nvm use default" | ||
|
||
ENV NVM_NODE_PATH ${NVM_DIR}/versions/node/${NODE_VERSION} | ||
ENV NODE_PATH ${NVM_NODE_PATH}/lib/node_modules | ||
ENV PATH ${NVM_NODE_PATH}/bin:$PATH | ||
|
||
RUN npm install [email protected] -g | ||
RUN npm install yarn -g | ||
|
||
jac18281828 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
ARG PROJECT=did-eth | ||
WORKDIR /workspaces/${PROJECT} | ||
|
||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python 3.10 is no longer required on the latest hardhat and node versions (solc 0.8.21)