Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-registry into comdex-gasfee-changes
  • Loading branch information
Priyanshu1710 committed Feb 14, 2024
2 parents 45cda1d + cab8f8d commit 937141c
Show file tree
Hide file tree
Showing 522 changed files with 18,582 additions and 2,372 deletions.
31 changes: 31 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,44 @@ module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:import/typescript",
"next/core-web-vitals",
],
plugins: ["react-hooks", "unicorn", "import"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
rules: {
"prettier/prettier": "error",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/self-closing-comp": "error",
"react/jsx-fragments": ["error", "element"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/camelcase": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"unicorn/filename-case": [
"error",
{
case: "kebabCase",
},
],
},
settings: {
react: {
version: "detect",
},
},
};
2 changes: 1 addition & 1 deletion .github/workflows/cron-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup nodejs
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- run: npm install --global yarn
- run: yarn install --frozen-lockfile
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: "https://registry.npmjs.org"
- run: npm install --global yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Restore yarn cache
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
- run: yarn install --immutable
- run: yarn build:server
- run: yarn bundle:server
- run: yarn bundle:zip
- run: curl -fsSL https://get.pulumi.com | sh
- run: pulumi login s3://pulumi-keplr-chain-registry-backend
working-directory: ./pulumi
env:
AWS_REGION: us-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- run: pulumi stack select prod
working-directory: ./pulumi
env:
AWS_REGION: us-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- run: pulumi up -y
working-directory: ./pulumi
env:
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
AWS_REGION: us-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

6 changes: 3 additions & 3 deletions .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Pull Request Validation
on:
pull_request:
types: [ opened, synchronize ]
branches: [ main ]
types: [opened, synchronize]
branches: [main]

jobs:
validation:
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Setup nodejs
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- run: npm install --global yarn
- run: yarn install --frozen-lockfile
Expand Down
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ yarn-debug.log*
yarn-error.log*
lerna-debug.log*

yarn-error.log
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down Expand Up @@ -39,6 +47,8 @@ build/Release

# Dependency directories
node_modules/
/.pnp
.pnp.js
jspm_packages/

# TypeScript v1 declaration files
Expand Down Expand Up @@ -77,6 +87,11 @@ typings/

# Next.js build output
.next
next-env.d.ts
/out/

# production
/build

# Nuxt.js build / generate output
.nuxt
Expand Down Expand Up @@ -106,4 +121,12 @@ dist
# intelij files
.idea

# vercel
.vercel

.DS_Store
*.pem

build
bundle
bundle.zip
8 changes: 4 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
**/*.png
**/*.svg
**/*.ttf
**/*.secret
**/*.md

.DS_Store

node_modules
.next

yarn.lock

.eslintignore
.prettierignore

cosmos
package.json
tsconfig.json
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
trailingComma: "all",
tabWidth: 2,
};
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.4.1.cjs
Loading

0 comments on commit 937141c

Please sign in to comment.