Skip to content

Commit

Permalink
chore: [#3] use counts from addresses for the total mint size
Browse files Browse the repository at this point in the history
- added prettier and editorconfig for consistency
  • Loading branch information
mdnorman committed May 11, 2022
1 parent 066aa4c commit f09b723
Show file tree
Hide file tree
Showing 7 changed files with 236 additions and 10 deletions.
59 changes: 59 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# End every file with a newline
[*]
insert_final_newline = true

[{*.css,*.less,*.scss}]
indent_style = space
indent_size = 2

[*.graphql]
indent_style = space
indent_size = 2

[{*.html,*.hbs}]
indent_style = space
indent_size = 2

[{*.java,*.kt,*.kts}]
indent_style = space
indent_size = 2

[{*.ts,*.tsx}]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 2

[{*.js,*.jsx,*.json}]
indent_style = space
indent_size = 2

[*.xml]
indent_style = space
indent_size = 2

[{*.yml,*.yaml}]
indent_style = space
indent_size = 2

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2

# Makefiles
[Makefile]
indent_style = tab
indent_size = 2

# Vagrant files
[Vagrantfile]
indent_style = space
indent_size = 2
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ yarn-error.log*
.env.test.local
.env.production.local

# local ide files
.idea/
.vscode/

# vercel
.vercel

Expand Down
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bracketSpacing": true,
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all"
}
4 changes: 2 additions & 2 deletions containers/ParcelProperties/ParcelProperties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
ParcelProperty,
ParcelPropertyProps,
} from "../../components/ParcelProperty";
import { AGGREEMENT_IPFS_URL } from "../../contants";
import { AGREEMENT_IPFS_URL } from "../../contants";
export const ParcelProperties: FC<{
parcelProperties: ParcelPropertyProps[];
}> = ({ parcelProperties }) => (
Expand All @@ -18,7 +18,7 @@ export const ParcelProperties: FC<{
/>
))}
<a
href={AGGREEMENT_IPFS_URL}
href={AGREEMENT_IPFS_URL}
target="_blank"
className="link-external"
rel="noreferrer"
Expand Down
9 changes: 6 additions & 3 deletions contants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export const MAX_NFT_TO_MINT = 10000; //TODO trkaplan update with real value
const AGGREEMENT_IPFS_HASH = "QmUbFb12ZEAyoqGUEsnS8fxh78nowEqNwvn7BbAfryRRay";
export const AGGREEMENT_IPFS_URL = `https://ipfs.io/ipfs/${AGGREEMENT_IPFS_HASH}`;
import { addresses } from './data/whiteListedAddresses';

export const MAX_NFT_TO_MINT = Object.values(addresses).reduce((prev, curr) => prev + curr, 0);

const AGREEMENT_IPFS_HASH = 'QmUbFb12ZEAyoqGUEsnS8fxh78nowEqNwvn7BbAfryRRay';
export const AGREEMENT_IPFS_URL = `https://ipfs.io/ipfs/${AGREEMENT_IPFS_HASH}`;
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"babel-plugin-styled-components": "^2.0.7",
"eslint": "7.32.0",
"eslint-config-next": "12.0.4",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"styled-components": "^5.3.5",
"typescript": "4.5.2"
}
Expand Down
Loading

0 comments on commit f09b723

Please sign in to comment.