Skip to content

Commit f788d66

Browse files
committed
Initial commit with contracts and boilerplate files
1 parent 8c1bdb6 commit f788d66

Some content is hidden

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

45 files changed

+11312
-1
lines changed

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.eslintignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
node_modules
2+
.env
3+
dist
4+
5+
# Hardhat files
6+
/cache
7+
/artifacts
8+
9+
# TypeChain files
10+
/typechain
11+
/typechain-types
12+
13+
# solidity-coverage files
14+
/coverage
15+
/coverage.json
16+
17+
gas_report
18+
19+
contracts/vendor

.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
extends: ['plugin:@api3/eslint-plugin-commons/universal', 'plugin:@api3/eslint-plugin-commons/jest'],
3+
parserOptions: {
4+
project: ['./tsconfig.json'],
5+
},
6+
rules: {
7+
camelcase: 'off',
8+
'no-nested-ternary': 'off',
9+
10+
'functional/no-try-statements': 'off',
11+
12+
'jest/no-conditional-in-test': 'off',
13+
14+
'lodash/prefer-constant': 'off',
15+
'lodash/prefer-lodash-typecheck': 'off',
16+
'lodash/prefer-noop': 'off',
17+
18+
'unicorn/filename-case': 'off',
19+
'unicorn/no-anonymous-default-export': 'off',
20+
'unicorn/prefer-export-from': 'off',
21+
'unicorn/prefer-object-from-entries': 'off',
22+
'unicorn/prefer-ternary': 'off',
23+
24+
'@typescript-eslint/max-params': 'off',
25+
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
26+
'@typescript-eslint/no-unsafe-call': 'off',
27+
'@typescript-eslint/require-await': 'off',
28+
},
29+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Check Markdown links
2+
3+
on: push
4+
5+
jobs:
6+
check-md-links:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Clone @api3/data-feed-proxy-combinators
10+
uses: actions/checkout@v4
11+
- name: Check Markdown links
12+
uses: gaurav-nelson/github-action-markdown-link-check@v1
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Continuous build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint-build-test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Clone @api3/data-feed-proxy-combinators
16+
uses: actions/checkout@v4
17+
18+
- name: Set up pnpm
19+
uses: pnpm/action-setup@v3
20+
21+
- name: Set up Node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20.17.0'
25+
cache: 'pnpm'
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Lint
31+
run: pnpm lint
32+
33+
- name: Build
34+
run: pnpm build
35+
36+
- name: Verify vendor contracts
37+
run: pnpm verify-vendor-contracts
38+
39+
- name: Test
40+
run: pnpm test

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
node_modules
2+
.env
3+
dist
4+
5+
# Hardhat files
6+
/cache
7+
/artifacts
8+
9+
# TypeChain files
10+
/typechain
11+
/typechain-types
12+
13+
# solidity-coverage files
14+
/coverage
15+
/coverage.json
16+
17+
gas_report

.prettierignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
node_modules
2+
.env
3+
dist
4+
5+
# Hardhat files
6+
/cache
7+
/artifacts
8+
9+
# TypeChain files
10+
/typechain
11+
/typechain-types
12+
13+
# solidity-coverage files
14+
/coverage
15+
/coverage.json
16+
17+
gas_report
18+
19+
contracts/vendor

.prettierrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"bracketSpacing": true,
3+
"printWidth": 120,
4+
"singleQuote": true,
5+
"trailingComma": "es5",
6+
"useTabs": false,
7+
"plugins": ["prettier-plugin-solidity"],
8+
"overrides": [
9+
{
10+
"files": "*.md",
11+
"options": {
12+
"parser": "markdown"
13+
}
14+
},
15+
{
16+
"files": "*.sol",
17+
"options": {
18+
"parser": "antlr",
19+
"printWidth": 80,
20+
"tabWidth": 4,
21+
"useTabs": false,
22+
"singleQuote": false,
23+
"bracketSpacing": false
24+
}
25+
}
26+
]
27+
}

.solcover.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
skipFiles: ['mock', 'test', 'vendor'],
3+
};

.solhint.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "solhint:recommended",
3+
"rules": {
4+
"compiler-version": "off",
5+
"func-visibility": ["warn", { "ignoreConstructors": true }],
6+
"not-rely-on-time": "off",
7+
"no-empty-blocks": "off",
8+
"no-global-import": "off",
9+
"func-name-mixedcase": "off",
10+
"immutable-vars-naming": "off",
11+
"gas-custom-errors": "off"
12+
}
13+
}

0 commit comments

Comments
 (0)