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

main > dev #628

Closed
wants to merge 18 commits into from
Closed
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
28 changes: 28 additions & 0 deletions .github/workflows/circleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10
steps:
- checkout
- restore_cache: # special step to restore the dependency cache
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Setup Yarn Dependencies #install all the dependencies
command: yarn install --frozen-lockfile
- save_cache: #saves a cache of the installed dependencies
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
name: Lint checks
command: yarn run lint
- run:
name: Tests
command: yarn run test-once --maxWorkers 2
- run:
name: Coveralls
command: COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} && yarn run coveralls
16 changes: 16 additions & 0 deletions .github/workflows/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3'
services:
ganache:
image: fvictorio/0x-ganache-testing:0.0.1
ports:
- '8545:8545'
launch-kit:
image: fvictorio/0x-launch-kit-testing
environment:
HTTP_PORT: '3000'
RPC_URL: 'http://ganache:8545'
NETWORK_ID: '50'
ports:
- '3000:3000'
depends_on:
- ganache
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
6 changes: 6 additions & 0 deletions browserify.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// browserify.config.js
module.exports = {
entries: ['src/index.js'], // Adjust this based on your project structure
debug: true, // Enable source maps for debugging
transform: [['babelify', { presets: ['@babel/preset-env', '@babel/preset-react'] }]],
};
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3'
services:
ganache:
image: fvictorio/0x-ganache-testing:0.0.1
ports:
- '8545:8545'
launch-kit:
image: fvictorio/0x-launch-kit-testing
environment:
HTTP_PORT: '3000'
RPC_URL: 'http://ganache:8545'
NETWORK_ID: '50'
ports:
- '3000:3000'
depends_on:
- ganache
24 changes: 24 additions & 0 deletions env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
REACT_APP_RELAYER_URL='http://localhost:3000/v3'
REACT_APP_RELAYER_WS_URL='ws://localhost:3000/'
REACT_APP_NETWORK_ID=50
REACT_APP_CHAIN_ID=1337
REACT_APP_FEE_PERCENTAGE='0'
REACT_APP_FEE_RECIPIENT='0x0000000000000000000000000000000000000000'
REACT_APP_DEFAULT_ORDER_EXPIRY_SECONDS=86400
REACT_APP_NOTIFICATIONS_LIMIT=20
REACT_APP_START_BLOCK_LIMIT=100000
# 0 is disabled
REACT_APP_UI_UPDATE_CHECK_INTERVAL=5000
# 0 is disabled
REACT_APP_UPDATE_ETHER_PRICE_INTERVAL=3600000
REACT_APP_LOGGER_ID='0x-launch-kit-frontend'
REACT_APP_STEP_MODAL_DONE_STATUS_VISIBILITY_TIME='3500'
REACT_APP_COLLECTIBLES_SOURCE='opensea'
REACT_APP_OPENSEA_API_KEY='abcdef0123456789abcdef0123456789'
# Axie mainnet address
REACT_APP_COLLECTIBLE_ADDRESS='0xf5b0a3efb8e8e4c201e2a935f110eaaf3ffecb8d'
REACT_APP_COLLECTIBLE_NAME='CryptoKitties'
REACT_APP_COLLECTIBLE_DESCRIPTION='CryptoKitties is a state of the art blockchain-based game, enabling users to trade and sell their cards freely, with the same level of ownership as if they were real, tangible cards.'
REACT_APP_ERC20_THEME_NAME = 'DARK_THEME'
REACT_APP_ERC721_THEME_NAME = 'LIGHT_THEME'
REACT_APP_DEFAULT_BASE_PATH='/erc721'
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
"eject": "react-scripts eject",
"prettier": "prettier --write '**/*.{ts,tsx,json,md}' --ignore-path .gitignore",
"prettier-check": "prettier --check '**/*.{ts,tsx,json,md}' --ignore-path .gitignore",
"coveralls": "cat ./coverage/lcov.info | coveralls"
"coveralls": "cat ./coverage/lcov.info | coveralls",
"start-b": "browserify -p esmify -t [ browserify.config.js ] -o public/bundle.js -d",
"build-b": "browserify -p esmify -t [ browserify.config.js ] -o public/bundle.js -d"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
Loading