Skip to content

Commit

Permalink
v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-ziv committed Nov 5, 2022
1 parent 4ec07cb commit a61d784
Show file tree
Hide file tree
Showing 377 changed files with 34,289 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
REACT_APP_NAME=$npm_package_name
REACT_APP_VERSION=$npm_package_version
REACT_APP_LOCAL_STORAGE_TRANSFERS_LOG_KEY=STARKGATE_TRANSFERS
REACT_APP_LOCAL_STORAGE_ACCEPT_TERMS=STARKGATE_ACCEPT_TERMS
10 changes: 10 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
REACT_APP_ENV=development
REACT_APP_AUTO_CONNECT=false
# 20 seconds
REACT_APP_POLL_BLOCK_NUMBER_INTERVAL=20000
# goerli testnet
REACT_APP_SUPPORTED_CHAIN_ID=5
REACT_APP_STARKNET_CONTRACT_ADDRESS=0xde29d060D45901Fb19ED6C6e959EB22d8626708e
REACT_APP_ETHERSCAN_URL=https://goerli.etherscan.io
REACT_APP_VOYAGER_URL=https://goerli.voyager.online
REACT_APP_SUPPORTED_TOKENS=ETH,WBTC,USDC,USDT,DAI,SLF
10 changes: 10 additions & 0 deletions .env.goerli
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
REACT_APP_ENV=goerli
REACT_APP_AUTO_CONNECT=false
# 20 seconds
REACT_APP_POLL_BLOCK_NUMBER_INTERVAL=20000
# goerli testnet
REACT_APP_SUPPORTED_CHAIN_ID=5
REACT_APP_STARKNET_CONTRACT_ADDRESS=0xde29d060D45901Fb19ED6C6e959EB22d8626708e
REACT_APP_ETHERSCAN_URL=https://goerli.etherscan.io
REACT_APP_VOYAGER_URL=https://goerli.voyager.online
REACT_APP_SUPPORTED_TOKENS=ETH,WBTC,USDC,USDT,DAI
10 changes: 10 additions & 0 deletions .env.mainnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
REACT_APP_ENV=mainnet
REACT_APP_AUTO_CONNECT=false
# 30 seconds
REACT_APP_POLL_BLOCK_NUMBER_INTERVAL=30000
# mainnet
REACT_APP_SUPPORTED_CHAIN_ID=1
REACT_APP_STARKNET_CONTRACT_ADDRESS=0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4
REACT_APP_ETHERSCAN_URL=https://etherscan.io
REACT_APP_VOYAGER_URL=https://voyager.online
REACT_APP_SUPPORTED_TOKENS=ETH,DAI,WBTC,USDC,USDT
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
node_modules
*.css
*.svg
80 changes: 80 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
amd: true,
es6: true,
es2020: true,
jquery: false
},
extends: [
'eslint:recommended',
'react-app',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended'
],
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
presets: ['@babel/preset-react']
},
requireConfigFile: false,
sourceType: 'module'
},
plugins: ['@babel', 'import', 'react', 'react-hooks', 'jest', 'jsx-a11y', 'prettier'],
settings: {
'import/core-modules': [],
'import/ignore': ['node_modules', '\\.(coffee|scss|css|less|hbs|svg|json)$'],
react: {
pragma: 'React', // Pragma to use, default to "React"
version: 'detect' // React version. "detect" automatically picks the version you have installed.
},
jest: {
// version: require('jest/package.json').version,
}
},
rules: {
'no-confusing-arrow': ['error', {allowParens: true}],
'no-console': 'warn',
'no-var': 'warn',
'no-unused-vars': 'error',
'object-shorthand': 'error',
'prefer-const': 'warn',
'prefer-template': 'warn',
'import/no-anonymous-default-export': 'off',
'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'off',
quotes: ['error', 'single', {avoidEscape: true}],
'comma-dangle': [
'off',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore'
}
],
'react/jsx-sort-props': [
2,
{
callbacksLast: true,
shorthandFirst: true,
reservedFirst: true
}
],
'prefer-destructuring': [
'warn',
{
object: true,
array: false
}
],
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off'
}
};
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: dan-ziv
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: dan-ziv
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Description of the Changes

Please add a detailed description of the change, whether it's an enhancement or a bugfix.
If the PR is related to an open issue please link to it.

Solves #[INSERT_MONDAY_ID_HERE](INSERT_MONDAY_URL_HERE)

---

### Checklist

- [ ] Manually tests of the main Application flows are done and passed.
- [ ] New unit / functional tests have been added (whenever applicable).
- [ ] Docs have been updated (whenever relevant).
- [ ] PR title is follow the [Conventional Commits](https://www.conventionalcommits.org/) convention: `<type>[optional scope]: <description>`, e.g: `fix: prevent racing of requests`
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
node_modules
CHANGELOG.md
20 changes: 20 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"arrowParens": "avoid",
"bracketSpacing": false,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false,
"importOrder": ["^[./]"],
"experimentalBabelParserPluginsList": ["jsx"],
"importOrderSeparation": true
}
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
64 changes: 64 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
module.exports = {
extends: [
'stylelint-config-css-modules',
'stylelint-config-standard',
'stylelint-config-standard-scss',
'stylelint-config-prettier'
],
plugins: ['stylelint-scss', 'stylelint-prettier'],
ignoreFiles: ['**/*.js', '**/*.jsx'],
rules: {
'property-no-unknown': [
true,
{ignoreProperties: ['/^color/', 'scrollWidth', 'mainOffset', 'primaryFont']}
],
'selector-pseudo-class-no-unknown': [true, {ignorePseudoClasses: ['export']}],
'selector-class-pattern': '^[a-z][a-zA-Z0-9]+$|^Mui*',
'selector-pseudo-element-no-unknown': [true, {ignorePseudoElements: ['input-placeholder']}],
'alpha-value-notation': 'number',
'color-function-notation': 'legacy',
'no-empty-source': null,
'shorthand-property-no-redundant-values': null,
'string-quotes': 'single',
'scss/dollar-variable-pattern': ['/^color/', {ignore: 'global'}],
'scss/at-import-partial-extension': null,
'scss/comment-no-empty': null,
'scss/double-slash-comment-empty-line-before': null,
'prettier/prettier': [true, {severity: 'warning'}],
'at-rule-empty-line-before': [
'always',
{
except: ['first-nested', 'blockless-after-same-name-blockless'],
ignore: ['after-comment'],
ignoreAtRules: ['else']
}
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'extend',
'at-root',
'debug',
'warn',
'error',
'if',
'else',
'for',
'each',
'while',
'mixin',
'include',
'content',
'return',
'function',
'tailwind',
'apply',
'responsive',
'variants',
'screen'
]
}
]
}
};
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Reporting issues

When reporting an issue, please make sure you include the version used.

This might help you diagnose the issue yourself, if not, paste the results along with your report.

## Contribution Guidelines

- Please do not file big Pull Requests. It makes reviewing and ensuring correctness difficult. If possible, break it down in smaller commits/pulls, each related to a specific issue or subject
- Every commit should have a meaningful subject
- If the code has tests, they must pass before submitting the pull request
- When submitting a new feature, unit tests must be submitted as well
- Whenever possible, implement features as plugins, not by modifying Core code
- Always keep performance in mind
- If you are unsure about submitting a Pull request, ask one of the repository owners for clarification

## Submitting Pull-Requests

1. Fork the default branch of the relevant repo
2. Create a branch with a meaningful name; i.e - some-feature-name-fix
3. Commit and make a pull request

Thank you for helping make StarkWare even more awesome!
Loading

0 comments on commit a61d784

Please sign in to comment.