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

[1.3.0] Fix Re-entrancy Vulnerability #86

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
sudo apt-get update && sudo apt-get install make
- name: "Install SmartPy"
run: |
curl -s https://smartpy.io/releases/20211106-51985c20a6a77e31b6de0d3b0400cccce74e38ad/cli/install.sh | sh -s -- local-install ~/smartpy-cli
curl -s https://smartpy.io/releases/20221215-8f134ebb649f5a7b37c44fca8f336f970f523565//cli/install.sh | sh -s -- local-install ~/smartpy-cli
- name: "Build and Test Smart Contracts"
run: |
cd smart_contracts
Expand Down
16 changes: 16 additions & 0 deletions migrations/contracts-1.3.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM --platform=linux/amd64 tezos/tezos:9.1.0

USER root
WORKDIR /app

RUN apk add curl python3 py3-pip bash nodejs npm pkgconfig libusb-dev libusb linux-headers eudev-dev make build-base

RUN npm -g config set user root

RUN npm i -g typescript ts-node @tacoinfra/harbinger-cli @hover-labs/tezos-msig-cli

RUN curl -s https://smartpy.io/releases/20210708-4662b0f8b1fe2186a243078f9f1ba0a4aa1c6f16/cli/install.sh > /tmp/install.sh

RUN echo 'y' | bash /tmp/install.sh

ENTRYPOINT []
14 changes: 14 additions & 0 deletions migrations/contracts-1.3.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ALICE_SANDBOX := edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq
BOB_SANDBOX := edsk3RFfvaFaxbHx8BMtEW1rKQcPtDML3LXjNqMNLCzC3wLC1bWbAt

build-docker:
docker build -t governance-deployer .

sandbox-bash:
docker run -e DEPLOY_SK=$(ALICE_SANDBOX) -e AIRDROP_SK=$(BOB_SANDBOX) \
--platform=linux/amd64 --rm -it \
-v $$(pwd):/shared \
-v $$(pwd)/../../smart_contracts:/smart_contracts \
-v $$(pwd)/../../break-glass-contracts:/break-glass-contracts/ \
-v $$(pwd)/../../multisig-timelock:/multisig-timelock/ \
--entrypoint=/bin/bash --user 0 --workdir /shared -p 9229:9229 governance-deployer
17 changes: 17 additions & 0 deletions migrations/contracts-1.3.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Contracts 1.3.0

1. Deploy smart contracts

```
ts-node src/flows/migrate.ts
```

2. Generate governance proposal

```
ts-node src/flows/generate-governance-lambda.ts
```

3. Validate

TODO
Loading