Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
a1b900f
Make react modal props overrides not overwrite everything
macalinao May 31, 2021
774773e
Add account name to usecontractkit
macalinao May 31, 2021
60fa17b
Adds metamask support
macalinao May 31, 2021
c2367e3
put images of providers in one spot
macalinao May 31, 2021
7d96d0b
clean up
macalinao May 31, 2021
f61f6e0
Add ethers helpers
macalinao May 31, 2021
fc3d109
Temporarily rename
macalinao May 31, 2021
fb18dea
Bump v1.0.0-beta.12
macalinao May 31, 2021
7fb224d
explicit types
macalinao May 31, 2021
ed7467b
fix outdated lockfile
macalinao May 31, 2021
f4b0fa9
Upgrade dependencies
macalinao May 31, 2021
7db358d
v1.0.0-ube.0
macalinao May 31, 2021
4936478
delete bad variable
macalinao May 31, 2021
6e9e0c5
v1.0.0-ube.1
macalinao May 31, 2021
874320e
v1.0.0-ube.2
macalinao May 31, 2021
59c5c34
types
macalinao May 31, 2021
d783a0d
v1.0.0-ube.3
macalinao May 31, 2021
31b84a5
metamask connector
macalinao May 31, 2021
8c9450f
v1.0.0-ube.4
macalinao May 31, 2021
d8e951e
Fix double modal bug
macalinao May 31, 2021
cef928f
v1.0.0-ube.5
macalinao May 31, 2021
7108435
Show cew/metamask error messages
macalinao May 31, 2021
b3150fb
v1.0.0-ube.6
macalinao May 31, 2021
86b2a25
Update prettier
macalinao May 31, 2021
9006a69
Lint in CI
macalinao May 31, 2021
cc59154
modify dapp types
macalinao May 31, 2021
2792c4f
Inline wallet icons
macalinao May 31, 2021
c5136b1
Use @ubeswap/use-contractkit
macalinao May 31, 2021
0fee0a0
Fix package reference for demo
macalinao May 31, 2021
9023c37
Upgrade Lerna to 4.x
macalinao May 31, 2021
c1cf31b
Upgrade dependencies
macalinao May 31, 2021
4510bd6
more peer deps fixes
macalinao May 31, 2021
b750e19
Store connection initialization errors in the hook
macalinao May 31, 2021
9d53bd2
Fix dapp input types
macalinao May 31, 2021
e7d9f28
clean up types
macalinao May 31, 2021
f9facd9
clean up import order
macalinao May 31, 2021
1146c14
fix image embed
macalinao May 31, 2021
f903d50
CEW icon
macalinao May 31, 2021
97360e9
ledger error messages
macalinao May 31, 2021
93393b2
Merge remote-tracking branch 'upstream/master' into igm/updates
macalinao May 31, 2021
751b2cc
Remove dappkit references
macalinao May 31, 2021
c8194ad
Add installation links for wallets
macalinao May 31, 2021
fc852d5
Fix error lingering
macalinao May 31, 2021
f85004d
link and build
macalinao May 31, 2021
219a134
Show MEtaMask link on mobile
macalinao Jun 1, 2021
83f1de7
Fix Ledger support
macalinao Jun 3, 2021
20b3d5b
Re-add Valora
macalinao Jun 3, 2021
6d17485
fix base nonce
macalinao Jun 3, 2021
e13675b
More package upgrades
macalinao Jun 7, 2021
016175f
Run prettier again
macalinao Jun 7, 2021
cb9d3d9
Add basic linting
macalinao Jun 7, 2021
ae62965
Get linting on example
macalinao Jun 7, 2021
ca094ac
tsconfig preserve
macalinao Jun 7, 2021
51c1f50
Fix outdir
macalinao Jun 7, 2021
f08136c
Adds sourcemaps
macalinao Jun 7, 2021
91a08ac
Only build use-contractkit in CI
macalinao Jun 7, 2021
57f1da4
Use Valora connector
BriungRi Jul 4, 2021
830c59e
removed metamask on mobile
Jul 7, 2021
bc46f89
removed ubeswap things
Jul 7, 2021
6dbf26a
lock files
Jul 7, 2021
aa79008
Merge branch 'master' into medhak1/removeMobileMM
medhakothari Jul 7, 2021
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
49 changes: 49 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
ignorePatterns: ['*.js', 'lib/'],
root: true,
parser: '@typescript-eslint/parser',
plugins: ['simple-import-sort', 'import', 'unused-imports'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
settings: { react: { version: 'detect' } },
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
project: 'tsconfig.json',
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/no-unescaped-entities': 'off',
'import/order': 'off',
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',
'import/first': 'warn',
'import/newline-after-import': 'warn',
'import/no-duplicates': 'warn',
'unused-imports/no-unused-imports': 'error',
'@typescript-eslint/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
},
};
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache node_modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
- name: Lerna bootstrap
run: yarn lerna bootstrap
- name: Run build
run: yarn lerna run build --scope '*/use-contractkit'

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache node_modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading