Skip to content

Commit 3b11de4

Browse files
committed
Initial commit
0 parents  commit 3b11de4

File tree

315 files changed

+33927
-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.

315 files changed

+33927
-0
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = LF
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.eslintrc

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"plugin:@typescript-eslint/recommended"
5+
],
6+
"plugins": [
7+
"prettier",
8+
"@typescript-eslint"
9+
],
10+
"parserOptions": {
11+
"ecmaVersion": 2018,
12+
"sourceType": "module"
13+
},
14+
"rules": {
15+
"no-console": "off",
16+
"prettier/prettier": "error",
17+
"@typescript-eslint/explicit-function-return-type": "off",
18+
"@typescript-eslint/ban-ts-ignore": "off",
19+
"@typescript-eslint/camelcase": "off",
20+
"@typescript-eslint/explicit-module-boundary-types": "off",
21+
"@typescript-eslint/no-explicit-any": "off",
22+
"@typescript-eslint/ban-ts-comment": "off",
23+
"@typescript-eslint/no-var-requires": "off",
24+
"prefer-spread": "off"
25+
}
26+
}

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
node_modules
3+
dist
4+
5+
# Remove some common IDE working directories
6+
.idea
7+
.vscode

.prettierrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
singleQuote: true,
3+
trailingComma: 'none'
4+
};

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Snapshot Labs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Snapshot strategies
2+
3+
### Development
4+
5+
#### Install dependencies
6+
```bash
7+
npm install
8+
```
9+
10+
#### Build package
11+
```bash
12+
npm run build
13+
```
14+
15+
#### Test strategy
16+
```bash
17+
# Test default strategy (erc20-balance-of)
18+
npm run test
19+
# Test strategy with name
20+
npm run test --strategy=erc20-received
21+
npm run test --strategy=eth-balance
22+
# Test with more addresses from addresses.json
23+
npm run test --strategy=eth-balance --more=200
24+
```
25+
26+
### License
27+
[MIT](LICENSE).

0 commit comments

Comments
 (0)