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

Release/develop to testnet 20221207 #96

Merged
merged 5 commits into from
Dec 8, 2022
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
typechain-types
11 changes: 11 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["prettier"],
"plugins": ["prettier"],
"env": {
"node": true
},
"rules": {
"prettier/prettier": "error"
}
}
32 changes: 32 additions & 0 deletions .github/workflows/enforce_eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Enforce Linter'

on:
push:
branches:
- main
- testnet
- develop
- experimental
pull_request:
branches:
- main
- testnet
- develop
- experimental

jobs:
run-linter:
name: Run linter
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.4.0'
- name: Install dependencies
run: yarn install
- name: Lint Check
run: yarn lint
34 changes: 34 additions & 0 deletions .github/workflows/enforce_prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Enforce prettier'

on:
push:
branches:
- main
- testnet
- develop
- experimental
pull_request:
branches:
- main
- testnet
- develop
- experimental

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false

- name: Prettify code
uses: creyD/prettier_action@v4.2
with:
prettier_options: --check deploy/**/*.ts test/**/*.ts scripts/**/*.ts
dry: True
5 changes: 5 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint
yarn prettier:check
27 changes: 5 additions & 22 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
{
"prettier.printWidth": 120,
"prettier.tabWidth": 2,
"prettier.useTabs": false,
"prettier.semi": true,
"prettier.singleQuote": true,
"prettier.quoteProps": "as-needed",
"prettier.trailingComma": "es5",
"prettier.bracketSpacing": true,
"prettier.bracketSameLine": true,
"prettier.arrowParens": "always",
"prettier.requirePragma": false,
"prettier.insertPragma": false,
"prettier.proseWrap": "preserve",
"prettier.htmlWhitespaceSensitivity": "css",
"prettier.endOfLine": "lf",
"prettier.embeddedLanguageFormatting": "off",
"prettier.ignorePath": ".gitignore",
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
Expand All @@ -34,7 +17,7 @@
"embeddedLanguageFormatting": "off",
"overrides":
[
{ "files": "*.prettierrc", "options": { "singleQuote": false } },
{ "files": "*.prettierrc", "options": { "singleQuote": false, "trailingComma": "none" } },
{ "files": "*.js", "options": { "singleQuote": true } },
{ "files": "*.ts", "options": { "singleQuote": true } },
{
Expand All @@ -46,8 +29,8 @@
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false,
"explicitTypes": "always",
},
},
],
"explicitTypes": "always"
}
}
]
}
13 changes: 13 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": ["solhint:recommended"],
"rules": {
"prettier/prettier": "warn",
"avoid-throw": false,
"avoid-suicide": "error",
"avoid-sha3": "warn",
"no-inline-assembly": false,
"reason-string": false,
"compiler-version": false
},
"plugins": ["prettier"]
}
2 changes: 2 additions & 0 deletions DEPLOYMENT_SALT_HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
2022-11-03T11:41:01+00:00 % Changed EXPERIMENTAL_DEPLOYMENT_SALT from 1000001 to 1000002
2022-11-03T11:41:01+00:00 % Changed DEVELOP_DEPLOYMENT_SALT from 1000 to 1001
2022-11-03T11:41:01+00:00 % Changed TESTNET_DEPLOYMENT_SALT from 0 to 1
2022-12-07T02:31:49+00:00 % Changed EXPERIMENTAL_DEPLOYMENT_SALT from 1000002 to 1000003
2022-12-07T16:51:11+00:00 % Changed DEVELOP_DEPLOYMENT_SALT from 1001 to 1002
2 changes: 1 addition & 1 deletion abi/develop/Admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/Base64.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[]
[]
2 changes: 1 addition & 1 deletion abi/develop/Bytes.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[]
[]
2 changes: 1 addition & 1 deletion abi/develop/CollectionURI.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"stateMutability": "view",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/CrossChainMessageInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@
"stateMutability": "payable",
"type": "function"
}
]
]
9 changes: 8 additions & 1 deletion abi/develop/CxipERC721.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,15 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/CxipERC721Proxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@
"stateMutability": "payable",
"type": "receive"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ECDSA.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[]
[]
2 changes: 1 addition & 1 deletion abi/develop/EIP712.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[]
[]
2 changes: 1 addition & 1 deletion abi/develop/ERC1155H.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@
"stateMutability": "payable",
"type": "receive"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC1271.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"stateMutability": "view",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC165.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"stateMutability": "view",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC20.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC20Burnable.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
9 changes: 8 additions & 1 deletion abi/develop/ERC20H.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,15 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC20Metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
"stateMutability": "view",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC20Mock.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,4 +639,4 @@
"stateMutability": "payable",
"type": "receive"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC20Permit.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC20Receiver.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC20Safer.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC721.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,4 @@
"stateMutability": "payable",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC721Enumerable.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
"stateMutability": "view",
"type": "function"
}
]
]
9 changes: 8 additions & 1 deletion abi/develop/ERC721H.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,15 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC721Metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
"stateMutability": "view",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/ERC721TokenReceiver.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion abi/develop/Faucet.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
Loading