Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1513 from UniverseXYZ/develop
Browse files Browse the repository at this point in the history
[RELEASE] Universe Marketplace V1
  • Loading branch information
Stanislav Trenev authored Mar 24, 2022
2 parents 3cce134 + fd59f19 commit 6bbf5d8
Show file tree
Hide file tree
Showing 902 changed files with 36,439 additions and 3,781 deletions.
9 changes: 8 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ REACT_APP_LOBSTER_IMAGES_URL=https://us-central1-polymorphmetadata.cloudfunction
REACT_APP_ETHERSCAN_URL=https://rinkeby.etherscan.io

REACT_APP_UNIVERSE_ERC_721_ADDRESS = 0x5a322b56ed080c559da183b69aa720d19690eaf2
REACT_APP_UNIVERSE_ERC_721_FACTORY_ADDRESS = 0xbdfff8b0306fd7af337c4842350625f50fd2be3a
REACT_APP_UNIVERSE_ERC_721_FACTORY_ADDRESS = 0xbdfff8b0306fd7af337c4842350625f50fd2be3a
REACT_APP_DATASCRAPER_BACKEND = https://dev.datascraper-api.universe.xyz

REACT_APP_MARKETPLACE_BACKEND=https://dev.marketplace-api.universe.xyz
REACT_APP_MARKETPLACE_CONTRACT=0xe441c394F917D5a90019C76897458257801ce132
REACT_APP_ROYALTY_REGISTRY_CONTRACT=0x58e1A04dC9d4655234f8eEc8071fC60093113648
REACT_APP_FACEBOOK_APP_ID=1384895125302127
REACT_APP_CAPTCHA_ID=6LcuWmseAAAAABfw8I5CXKUisFT3yT90uexc8Bc0
13 changes: 11 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": ["airbnb", "prettier"],
"parser": "babel-eslint",
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"import/extensions": "off",
"no-nested-ternary": "off",
"no-unused-vars": "off",
Expand All @@ -21,7 +22,7 @@
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"prettier/prettier": [
Expand All @@ -34,5 +35,13 @@
}
]
},
"plugins": ["prettier"]
"plugins": ["prettier"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"ignorePatterns": ["src/app/**"]
}
24 changes: 15 additions & 9 deletions .github/workflows/alpha.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Alpha Environment
on:
push:
branches:
- main
tags:
- alpha-marketplace*

jobs:
build:
Expand Down Expand Up @@ -36,17 +36,17 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: yarn install
run: npm install
env:
CI: false

- name: Build
run: yarn build
run: npm run build
env:
REACT_APP_API_BASE_URL: "https://alpha.api.universe.xyz"
REACT_APP_NETWORK_CHAIN_ID: 1
REACT_APP_API_BASE_URL: "https://api.universe.xyz"
REACT_APP_NETWORK_CHAIN_ID: "1"
REACT_APP_NETWORK_NAME: "Mainnet"
REACT_APP_BATCH_MINTING_CHUNK_SIZE: 40
REACT_APP_BATCH_MINTING_CHUNK_SIZE: "40"
REACT_APP_POLYMORPHS_GRAPH_URL: "https://api.thegraph.com/subgraphs/name/strenev/polymorph"
REACT_APP_LOBSTERS_GRAPH_URL: "https://api.thegraph.com/subgraphs/name/strenev/lobsters"
REACT_APP_POLYMORPHS_CONTRACT_ADDRESS: "0x1cbb182322aee8ce9f4f1f98d7460173ee30af1f"
Expand All @@ -57,6 +57,12 @@ jobs:
REACT_APP_ETHERSCAN_URL: "https://etherscan.io"
REACT_APP_UNIVERSE_ERC_721_ADDRESS: "0xb67e6711c3bb2aa968be26703de20152d4948b38"
REACT_APP_UNIVERSE_ERC_721_FACTORY_ADDRESS: "0x67aacc69f369846733e55a1f767e961743f58978"
REACT_APP_DATASCRAPER_BACKEND: "https://datascraper-api.universe.xyz"
REACT_APP_MARKETPLACE_BACKEND: "https://marketplace-api.universe.xyz"
REACT_APP_MARKETPLACE_CONTRACT: "0xB720279a6fc982721771427aA3B6B3a135f81dE3"
REACT_APP_ROYALTY_REGISTRY_CONTRACT: "0x2A9647901684caaeC6f026eEc0b1355195313cB5"
REACT_APP_FACEBOOK_APP_ID: "1384895125302127"
REACT_APP_CAPTCHA_ID: "6LcuWmseAAAAABfw8I5CXKUisFT3yT90uexc8Bc0"

- name: Save artifacts
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -114,14 +120,14 @@ jobs:
aws-region: us-east-1

- name: Deploy static site to S3
run: ls -l && aws s3 sync . s3://alpha-alphauniversexyz-origin --delete
run: ls -l && aws s3 sync . s3://marketplace-marketplacealphauniversexyz-origin --delete

- name: Invalidate CloudFront cache
run: |
#!/usr/bin/env bash
set -eou pipefail
CF_DIST_ID=$(aws cloudfront list-distributions --query "DistributionList.Items[?Aliases.Items!=null] | [?contains(Aliases.Items, 'alpha.universe.xyz')].Id | [0]" | tr -d \")
CF_DIST_ID=$(aws cloudfront list-distributions --query "DistributionList.Items[?Aliases.Items!=null] | [?contains(Aliases.Items, 'marketplace.alpha.universe.xyz')].Id | [0]" | tr -d \")
echo "Clearing cache for ${CF_DIST_ID}..."
CF_INVALIDATION_ID=$(aws cloudfront create-invalidation --distribution-id ${CF_DIST_ID} --paths "/*" | jq -r '.Invalidation.Id')
while [ $(aws cloudfront get-invalidation --distribution-id ${CF_DIST_ID} --id ${CF_INVALIDATION_ID} | jq -r '.Invalidation.Status') != "Completed" ]; do
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Dev Environment
on:
push:
branches:
- develop
- features/marketplace-v2

jobs:
build:
Expand Down Expand Up @@ -36,12 +36,12 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: yarn install
run: npm install
env:
CI: false

- name: Build
run: yarn build
run: npm run build
env:
REACT_APP_API_BASE_URL: "https://dev.api.universe.xyz"
REACT_APP_NETWORK_CHAIN_ID: 4
Expand All @@ -57,6 +57,13 @@ jobs:
REACT_APP_ETHERSCAN_URL: "https://rinkeby.etherscan.io"
REACT_APP_UNIVERSE_ERC_721_ADDRESS: "0x5a322b56ed080c559da183b69aa720d19690eaf2"
REACT_APP_UNIVERSE_ERC_721_FACTORY_ADDRESS: "0xbdfff8b0306fd7af337c4842350625f50fd2be3a"
REACT_APP_DATASCRAPER_BACKEND: "https://dev.datascraper-api.universe.xyz"
REACT_APP_MARKETPLACE_BACKEND: "https://dev.marketplace-api.universe.xyz"
REACT_APP_MARKETPLACE_CONTRACT: "0xe441c394F917D5a90019C76897458257801ce132"
REACT_APP_ROYALTY_REGISTRY_CONTRACT: "0x58e1A04dC9d4655234f8eEc8071fC60093113648"
REACT_APP_FACEBOOK_APP_ID: "1384895125302127"
REACT_APP_CAPTCHA_ID: "6LcuWmseAAAAABfw8I5CXKUisFT3yT90uexc8Bc0"


- name: Save artifacts
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -114,14 +121,14 @@ jobs:
aws-region: us-east-1

- name: Deploy static site to S3
run: ls -l && aws s3 sync . s3://dev-devuniversexyz-origin --delete
run: ls -l && aws s3 sync . s3://marketplace-marketplacedevuniversexyz-origin --delete

- name: Invalidate CloudFront cache
run: |
#!/usr/bin/env bash
set -eou pipefail
CF_DIST_ID=$(aws cloudfront list-distributions --query "DistributionList.Items[?Aliases.Items!=null] | [?contains(Aliases.Items, 'dev.universe.xyz')].Id | [0]" | tr -d \")
CF_DIST_ID=$(aws cloudfront list-distributions --query "DistributionList.Items[?Aliases.Items!=null] | [?contains(Aliases.Items, 'marketplace.dev.universe.xyz')].Id | [0]" | tr -d \")
echo "Clearing cache for ${CF_DIST_ID}..."
CF_INVALIDATION_ID=$(aws cloudfront create-invalidation --distribution-id ${CF_DIST_ID} --paths "/*" | jq -r '.Invalidation.Id')
while [ $(aws cloudfront get-invalidation --distribution-id ${CF_DIST_ID} --id ${CF_INVALIDATION_ID} | jq -r '.Invalidation.Status') != "Completed" ]; do
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
run: yarn build
env:
REACT_APP_API_BASE_URL: "https://api.universe.xyz"
REACT_APP_NETWORK_CHAIN_ID: 1
REACT_APP_NETWORK_CHAIN_ID: "1"
REACT_APP_NETWORK_NAME: "Mainnet"
REACT_APP_BATCH_MINTING_CHUNK_SIZE: 40
REACT_APP_BATCH_MINTING_CHUNK_SIZE: "40"
REACT_APP_POLYMORPHS_GRAPH_URL: "https://api.thegraph.com/subgraphs/name/strenev/polymorph"
REACT_APP_LOBSTERS_GRAPH_URL: "https://api.thegraph.com/subgraphs/name/strenev/lobsters"
REACT_APP_POLYMORPHS_CONTRACT_ADDRESS: "0x1cbb182322aee8ce9f4f1f98d7460173ee30af1f"
Expand All @@ -57,7 +57,12 @@ jobs:
REACT_APP_ETHERSCAN_URL: "https://etherscan.io"
REACT_APP_UNIVERSE_ERC_721_ADDRESS: "0xb67e6711c3bb2aa968be26703de20152d4948b38"
REACT_APP_UNIVERSE_ERC_721_FACTORY_ADDRESS: "0x67aacc69f369846733e55a1f767e961743f58978"

REACT_APP_DATASCRAPER_BACKEND: "https://datascraper-api.universe.xyz"
REACT_APP_MARKETPLACE_BACKEND: "https://marketplace-api.universe.xyz"
REACT_APP_MARKETPLACE_CONTRACT: "0xB720279a6fc982721771427aA3B6B3a135f81dE3"
REACT_APP_ROYALTY_REGISTRY_CONTRACT: "0x2A9647901684caaeC6f026eEc0b1355195313cB5"
REACT_APP_FACEBOOK_APP_ID: "1384895125302127"
REACT_APP_CAPTCHA_ID: "6LcuWmseAAAAABfw8I5CXKUisFT3yT90uexc8Bc0"

- name: Save artifacts
uses: actions/upload-artifact@v2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.idea

# dependencies
/node_modules
/.pnp
Expand Down
9 changes: 8 additions & 1 deletion .prod.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ REACT_APP_ETHERSCAN_URL=https://etherscan.io


REACT_APP_UNIVERSE_ERC_721_ADDRESS = 0xb67e6711c3bb2aa968be26703de20152d4948b38
REACT_APP_UNIVERSE_ERC_721_FACTORY_ADDRESS = 0x67aacc69f369846733e55a1f767e961743f58978
REACT_APP_UNIVERSE_ERC_721_FACTORY_ADDRESS = 0x67aacc69f369846733e55a1f767e961743f58978

REACT_APP_DATASCRAPER_BACKEND = https://alpha.datascraper-api.universe.xyz
REACT_APP_MARKETPLACE_BACKEND=https://alpha.marketplace-api.universe.xyz
REACT_APP_MARKETPLACE_CONTRACT=0x5E20006f3FB9bD7C51A337443d35D182d293914B
REACT_APP_ROYALTY_REGISTRY_CONTRACT=0x550eB1F21b73834E7a6D55de95399dC5Cb96C3C6
REACT_APP_FACEBOOK_APP_ID=1384895125302127
REACT_APP_CAPTCHA_ID=6LcuWmseAAAAABfw8I5CXKUisFT3yT90uexc8Bc0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Getting Started with Create React App
# Universe Frontend

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

Expand Down
Loading

0 comments on commit 6bbf5d8

Please sign in to comment.