Skip to content

Commit

Permalink
[FEATURE CAMPAIGN UPDATED] Deploy Campaign (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Whytecrowe authored Dec 14, 2023
2 parents 2e208c0 + a9af49d commit 51155c4
Show file tree
Hide file tree
Showing 110 changed files with 14,288 additions and 9,749 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ defaults: &defaults
working_directory: ~/repo
docker:
- image: cimg/node:18.15.0
- image: mongo:7.0.0-rc5-jammy

jobs:
test and coverage:
Expand All @@ -27,7 +28,7 @@ jobs:
command: yarn check-coverage #Validate code is adequately covered by unit tests
- persist_to_workspace:
root: ~/repo
paths: .
paths: [.]
publish:
<<: *defaults
steps:
Expand Down
45 changes: 45 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Private key of the account Hardhat will use
PRIVATE_KEY=

# ENV vars for MongoDB, for local development you can use below
MONGO_DB_URI="mongodb://localhost:27018"
MONGO_DB_NAME="zns-campaign"
MONGO_DB_CLIENT_OPTS="<optional>"

# ENV vars for Logger
LOG_LEVEL="info" | "debug"
SILENT_LOGGER="false" | "true"

# We use the environment level to validate against certain requirements
ENV_LEVEL="dev" | "test" | "prod"

# Boolean value for if we deploy the mock
# true = we deploy the mock
# false = we use a hard coded address and pull data from chain
MOCK_MEOW_TOKEN=

# Environment variables to create an entirely custom config when `env_level` above is not dev
MAX_PRICE=
MIN_PRICE=
MAX_LENGTH=
BASE_LENGTH=

DECIMALS=
PRECISION=
REG_FEE_PERCENT=
ROYALTY_FRACTION=

TOKEN_NAME=
TOKEN_SYMBOL=
ROYALTY_RECEIVER=
ZERO_VAULT_ADDRESS=
STAKING_TOKEN_ADDRESS=

# base64 encoded value of a comma separated list of address e.g. "0x123,0x456" === "MHgxMjMsMHg0NTY="
GOVERNOR_ADDRESSES=
ADMIN_ADDRESSES=

# The deploy campaign will automatically verify and monitor contracts on testnets or mainnet, but not hardhat
# to turn off this flow for testing, set these values to "false" and "true" otherwise
MONITOR_CONTRACTS="false"
VERIFY_CONTRACTS="false"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ artifacts
deployments

*.env
docker
docker*.tgz
Loading

0 comments on commit 51155c4

Please sign in to comment.