Skip to content

Commit

Permalink
feat(ri-contracts): add contracts reference implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed May 16, 2022
1 parent 14faac7 commit 8709568
Show file tree
Hide file tree
Showing 73 changed files with 8,909 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ri/contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
out/
/cache/
node_modules/
.env
bindings/
artifacts/
7 changes: 7 additions & 0 deletions packages/ri/contracts/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 120,
"semi": true,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true
}
11 changes: 11 additions & 0 deletions packages/ri/contracts/.solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["error", ">=0.8.0"],
"avoid-low-level-calls": "off",
"no-inline-assembly": "off",
"func-visibility": ["warn", { "ignoreConstructors": true }],
"no-empty-blocks": "off",
"no-complex-fallback": "off"
}
}
5 changes: 5 additions & 0 deletions packages/ri/contracts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Reference Implementation Contracts

### Adding new functions

When adding new facets or new functions to existing facets, make sure to add the function selectors in `src/test/utils/Deploy.sol`.
2,201 changes: 2,201 additions & 0 deletions packages/ri/contracts/abi/Diamond.json

Large diffs are not rendered by default.

1,246 changes: 1,246 additions & 0 deletions packages/ri/contracts/abi/EmberFacet.json

Large diffs are not rendered by default.

Loading

0 comments on commit 8709568

Please sign in to comment.