Skip to content

Commit c0b9fd6

Browse files
committed
Transpile 8385b8a
0 parents  commit c0b9fd6

File tree

280 files changed

+40219
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+40219
-0
lines changed

.codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
comment: off
2+
coverage:
3+
range: "100...100"

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = false
12+
max_line_length = 120
13+
14+
[*.sol]
15+
indent_size = 4
16+
17+
[*.js]
18+
indent_size = 2
19+
20+
[*.adoc]
21+
max_line_length = 0

.eslintrc

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"extends" : [
3+
"standard",
4+
"plugin:promise/recommended",
5+
],
6+
"plugins": [
7+
"mocha-no-only",
8+
"promise",
9+
],
10+
"env": {
11+
"browser" : true,
12+
"node" : true,
13+
"mocha" : true,
14+
"jest" : true,
15+
},
16+
"globals" : {
17+
"artifacts": false,
18+
"contract": false,
19+
"assert": false,
20+
"web3": false,
21+
"usePlugin": false,
22+
"extendEnvironment": false,
23+
},
24+
"rules": {
25+
26+
// Strict mode
27+
"strict": ["error", "global"],
28+
29+
// Code style
30+
"array-bracket-spacing": ["off"],
31+
"camelcase": ["error", {"properties": "always"}],
32+
"comma-dangle": ["error", "always-multiline"],
33+
"comma-spacing": ["error", {"before": false, "after": true}],
34+
"dot-notation": ["error", {"allowKeywords": true, "allowPattern": ""}],
35+
"eol-last": ["error", "always"],
36+
"eqeqeq": ["error", "smart"],
37+
"generator-star-spacing": ["error", "before"],
38+
"indent": ["error", 2],
39+
"linebreak-style": ["error", "unix"],
40+
"max-len": ["error", 120, 2],
41+
"no-debugger": "off",
42+
"no-dupe-args": "error",
43+
"no-dupe-keys": "error",
44+
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
45+
"no-redeclare": ["error", {"builtinGlobals": true}],
46+
"no-trailing-spaces": ["error", { "skipBlankLines": false }],
47+
"no-undef": "error",
48+
"no-use-before-define": "off",
49+
"no-var": "error",
50+
"object-curly-spacing": ["error", "always"],
51+
"prefer-const": "error",
52+
"quotes": ["error", "single"],
53+
"semi": ["error", "always"],
54+
"space-before-function-paren": ["error", "always"],
55+
56+
"mocha-no-only/mocha-no-only": ["error"],
57+
58+
"promise/always-return": "off",
59+
"promise/avoid-new": "off",
60+
},
61+
"parserOptions": {
62+
"ecmaVersion": 2018
63+
}
64+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sol linguist-language=Solidity

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug report
3+
about: Report a bug in OpenZeppelin Contracts
4+
5+
---
6+
7+
<!-- Briefly describe the issue you're experiencing. Tell us what you were trying to do and what happened instead. -->
8+
9+
<!-- Remember, this is not a place to ask for help debugging code. For that, we welcome you in the OpenZeppelin Community Forum: https://forum.openzeppelin.com/. -->
10+
11+
**💻 Environment**
12+
13+
<!-- Tell us what version of OpenZeppelin Contracts you're using, and how you're using it: Truffle, Remix, etc. -->
14+
15+
**📝 Details**
16+
17+
<!-- Describe the problem you have been experiencing in more detail. Include as much information as you think is relevant. Keep in mind that transactions can fail for many reasons; context is key here. -->
18+
19+
**🔢 Code to reproduce bug**
20+
21+
<!-- We will be able to better help if you provide a minimal example that triggers the bug. -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
contact_links:
2+
- name: Support request
3+
url: https://forum.openzeppelin.com/c/support/contracts/18
4+
about: Ask the community in the Community Forum
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for OpenZeppelin Contracts
4+
5+
---
6+
7+
**🧐 Motivation**
8+
<!-- Is your feature request related to a specific problem? Is it just a crazy idea? Tell us about it! -->
9+
10+
**📝 Details**
11+
<!-- Please describe your feature request in detail. -->
12+
13+
<!-- Make sure that you have reviewed the OpenZeppelin Contributor Guidelines. -->
14+
<!-- https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CONTRIBUTING.md -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- 0. 🎉 Thank you for submitting a PR! -->
2+
3+
<!-- 1. Does this close any open issues? Please list them below. -->
4+
5+
<!-- Keep in mind that new features have a better chance of being merged fast if
6+
they were first discussed and designed with the maintainers. If there is no
7+
corresponding issue, please consider opening one for discussion first! -->
8+
9+
Fixes #
10+
11+
<!-- 2. Describe the changes introduced in this pull request. -->
12+
<!-- Include any context necessary for understanding the PR's purpose. -->
13+
14+
<!-- 3. Before submitting, please make sure that you have:
15+
- reviewed the OpenZeppelin Contributor Guidelines
16+
(https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CONTRIBUTING.md),
17+
- added tests where applicable to test new functionality,
18+
- made sure that your contracts are well-documented,
19+
- run the Solidity linter (`npm run lint:sol`) and fixed any issues,
20+
- run the JS linter and fixed any issues (`npm run lint:fix`), and
21+
- updated the changelog, if applicable.
22+
-->

.github/stale.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 15
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 15
9+
10+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
11+
exemptLabels:
12+
- on hold
13+
- meta
14+
15+
# Set to true to ignore issues in a project (defaults to false)
16+
exemptProjects: false
17+
18+
# Set to true to ignore issues in a milestone (defaults to false)
19+
exemptMilestones: false
20+
21+
# Set to true to ignore issues with an assignee (defaults to false)
22+
exemptAssignees: false
23+
24+
# Label to use when marking as stale
25+
staleLabel: stale
26+
27+
# Comment to post when marking as stale. Set to `false` to disable
28+
markComment: >
29+
Hi all!
30+
31+
This Pull Request has not had any recent activity, is it still relevant? If so, what is blocking it?
32+
Is there anything we can do to help move it forward?
33+
34+
Thanks!
35+
36+
37+
# Comment to post when removing the stale label.
38+
# unmarkComment: >
39+
# Your comment here.
40+
41+
# Comment to post when closing a stale Issue or Pull Request.
42+
closeComment: >
43+
Hi folks!
44+
45+
This Pull Request is being closed as there was no response to the previous prompt.
46+
However, please leave a comment whenever you're ready to resume, so it can be reopened.
47+
48+
Thanks again!
49+
50+
51+
# Limit the number of actions per hour, from 1-30. Default is 30
52+
limitPerRun: 30
53+
54+
# Limit to only `issues` or `pulls`
55+
only: pulls
56+
57+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
58+
# pulls:
59+
# daysUntilStale: 30
60+
# markComment: >
61+
# This pull request has been automatically marked as stale because it has not had
62+
# recent activity. It will be closed if no further activity occurs. Thank you
63+
# for your contributions.
64+
65+
# issues:
66+
# exemptLabels:
67+
# - confirmed

.github/workflows/merge-upstream.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Merge upstream
2+
3+
on:
4+
workflow_dispatch: {}
5+
schedule:
6+
- cron: '0 10 * * *'
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: rokroskar/[email protected]
13+
env:
14+
GITHUB_TOKEN: ${{github.token}}
15+
- uses: actions/checkout@v2
16+
with:
17+
ref: upstream-patched
18+
fetch-depth: 0
19+
ssh-key: ${{secrets.DEPLOY_KEY}}
20+
- run: bash scripts/upgradeable/git-user-config.sh
21+
- run: bash scripts/upgradeable/merge-upstream.sh
22+
- run: git push

0 commit comments

Comments
 (0)