@eth-optimism/tokenlist 4.3.1 → 6.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2600 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2584 -0
- package/dist/index.mjs.map +1 -0
- package/dist/optimism.tokenlist-ab401448.d.ts +2604 -0
- package/dist/optimism.tokenlist.d.ts +1 -0
- package/dist/optimism.tokenlist.js +2571 -0
- package/dist/optimism.tokenlist.js.map +1 -0
- package/dist/optimism.tokenlist.mjs +2571 -0
- package/dist/optimism.tokenlist.mjs.map +1 -0
- package/package.json +33 -24
- package/.dockerignore +0 -1
- package/.env.example +0 -2
- package/.eslintrc.js +0 -188
- package/.github/CODEOWNERS +0 -1
- package/.github/mergify.yml +0 -57
- package/.github/workflows/dependabot.yml +0 -13
- package/.github/workflows/generate.yml +0 -57
- package/.github/workflows/publish.yml +0 -50
- package/.github/workflows/stale.yml +0 -19
- package/.github/workflows/test.yml +0 -43
- package/.github/workflows/validate.yml +0 -67
- package/.prettierrc.js +0 -8
- package/.vscode/extensions.json +0 -10
- package/.vscode/settings.json +0 -10
- package/CNAME +0 -1
- package/Dockerfile.bot +0 -14
- package/babel.config.js +0 -6
- package/bin/cli.ts +0 -61
- package/data/0xBTC/data.json +0 -19
- package/data/0xBTC/logo.png +0 -0
- package/data/AAVE/data.json +0 -19
- package/data/AAVE/logo.svg +0 -1
- package/data/ACX/data.json +0 -15
- package/data/ACX/logo.png +0 -0
- package/data/AELIN/data.json +0 -11
- package/data/AELIN/logo.png +0 -0
- package/data/BAL/data.json +0 -19
- package/data/BAL/logo.png +0 -0
- package/data/BANK/data.json +0 -15
- package/data/BANK/logo.png +0 -0
- package/data/BAXA/data.json +0 -22
- package/data/BAXA/logo.svg +0 -3
- package/data/BOB/data.json +0 -16
- package/data/BOB/logo.svg +0 -11
- package/data/BOND/data.json +0 -19
- package/data/BOND/logo.svg +0 -10
- package/data/BitANT/data.json +0 -19
- package/data/BitANT/logo.png +0 -0
- package/data/BitBTC/data.json +0 -31
- package/data/BitBTC/logo.png +0 -0
- package/data/CRV/data.json +0 -13
- package/data/CRV/logo.png +0 -0
- package/data/CTSI/data.json +0 -19
- package/data/CTSI/logo.svg +0 -23
- package/data/DAI/data.json +0 -43
- package/data/DAI/logo.svg +0 -13
- package/data/DCN/data.json +0 -25
- package/data/DCN/logo.svg +0 -47
- package/data/DF/data.json +0 -20
- package/data/DF/logo.svg +0 -15
- package/data/DHT/data.json +0 -13
- package/data/DHT/logo.svg +0 -1
- package/data/DOLA/data.json +0 -19
- package/data/DOLA/logo.png +0 -0
- package/data/DUCK/data.json +0 -13
- package/data/DUCK/logo.png +0 -0
- package/data/ENS/data.json +0 -13
- package/data/ENS/logo.png +0 -0
- package/data/EQZ/data.json +0 -19
- package/data/EQZ/logo.png +0 -0
- package/data/EST/data.json +0 -13
- package/data/EST/logo.png +0 -0
- package/data/ETH/data.json +0 -25
- package/data/ETH/logo.svg +0 -13
- package/data/EURT/data.json +0 -13
- package/data/EURT/logo.png +0 -0
- package/data/FLASH/data.json +0 -16
- package/data/FLASH/logo.svg +0 -22
- package/data/GTC/data.json +0 -19
- package/data/GTC/logo.svg +0 -5
- package/data/GYSR/data.json +0 -19
- package/data/GYSR/logo.png +0 -0
- package/data/HAN/data.json +0 -22
- package/data/HAN/logo.svg +0 -25
- package/data/IBEX/data.json +0 -16
- package/data/IBEX/logo.png +0 -0
- package/data/INSURE/data.json +0 -16
- package/data/INSURE/logo.png +0 -0
- package/data/KNC/data.json +0 -19
- package/data/KNC/logo.png +0 -0
- package/data/KROM/data.json +0 -19
- package/data/KROM/logo.png +0 -0
- package/data/LAND/data.json +0 -13
- package/data/LAND/logo.png +0 -0
- package/data/LDO/data.json +0 -30
- package/data/LDO/logo.svg +0 -5
- package/data/LINK/data.json +0 -25
- package/data/LINK/logo.png +0 -0
- package/data/LIZ/data.json +0 -19
- package/data/LIZ/logo.png +0 -0
- package/data/LPF/data.json +0 -15
- package/data/LPF/logo.svg +0 -18
- package/data/LRC/data.json +0 -13
- package/data/LRC/logo.png +0 -0
- package/data/LUSD/data.json +0 -13
- package/data/LUSD/logo.svg +0 -1
- package/data/LYRA/data.json +0 -13
- package/data/LYRA/logo.png +0 -0
- package/data/MASK/data.json +0 -13
- package/data/MASK/logo.svg +0 -4
- package/data/MKR/data.json +0 -14
- package/data/MKR/logo.png +0 -0
- package/data/MOCHI/data.json +0 -16
- package/data/MOCHI/logo.svg +0 -36
- package/data/MOM/data.json +0 -19
- package/data/MOM/logo.svg +0 -5
- package/data/OP/data.json +0 -14
- package/data/OP/logo.png +0 -0
- package/data/OUTb/data.json +0 -13
- package/data/OUTb/logo.svg +0 -4
- package/data/PAPER/data.json +0 -13
- package/data/PAPER/logo.svg +0 -4
- package/data/PERP/data.json +0 -25
- package/data/PERP/logo.png +0 -0
- package/data/PHTK/data.json +0 -16
- package/data/PHTK/logo.svg +0 -14
- package/data/POOL/data.json +0 -13
- package/data/POOL/logo.svg +0 -22
- package/data/POP/data.json +0 -16
- package/data/POP/logo.svg +0 -8
- package/data/PREMIA/data.json +0 -13
- package/data/PREMIA/logo.svg +0 -4
- package/data/RAI/data.json +0 -19
- package/data/RAI/logo.svg +0 -273
- package/data/RFWSTETH/data.json +0 -21
- package/data/RFWSTETH/logo.svg +0 -36
- package/data/RGT/data.json +0 -13
- package/data/RGT/logo.png +0 -0
- package/data/SARCO/data.json +0 -13
- package/data/SARCO/logo.png +0 -0
- package/data/SDL/data.json +0 -22
- package/data/SDL/logo.svg +0 -5
- package/data/SNX/data.json +0 -43
- package/data/SNX/logo.svg +0 -20
- package/data/SPANK/data.json +0 -19
- package/data/SPANK/logo.png +0 -0
- package/data/SUKU/data.json +0 -22
- package/data/SUKU/logo.png +0 -0
- package/data/THALES/data.json +0 -13
- package/data/THALES/logo.png +0 -0
- package/data/TRB/data.json +0 -22
- package/data/TRB/logo.png +0 -0
- package/data/TUSD/data.json +0 -19
- package/data/TUSD/logo.png +0 -0
- package/data/TheDAO/data.json +0 -32
- package/data/TheDAO/logo.svg +0 -1
- package/data/UBI/data.json +0 -22
- package/data/UBI/logo.svg +0 -5
- package/data/UMA/data.json +0 -13
- package/data/UMA/logo.png +0 -0
- package/data/UNI/data.json +0 -19
- package/data/UNI/logo.png +0 -0
- package/data/USDC/data.json +0 -28
- package/data/USDC/logo.png +0 -0
- package/data/USDD/data.json +0 -19
- package/data/USDD/logo.png +0 -0
- package/data/USDT/data.json +0 -28
- package/data/USDT/logo.png +0 -0
- package/data/USDplus/data.json +0 -14
- package/data/USDplus/logo.svg +0 -9
- package/data/UST/data.json +0 -13
- package/data/UST/logo.png +0 -0
- package/data/USX/data.json +0 -31
- package/data/USX/logo.svg +0 -14
- package/data/VALX/data.json +0 -15
- package/data/VALX/logo.png +0 -0
- package/data/VELO/data.json +0 -10
- package/data/VELO/logo.svg +0 -71
- package/data/WAD/data.json +0 -19
- package/data/WAD/logo.png +0 -0
- package/data/WBTC/data.json +0 -30
- package/data/WBTC/logo.svg +0 -20
- package/data/WETH/data.json +0 -11
- package/data/WETH/logo.png +0 -0
- package/data/WMP/data.json +0 -15
- package/data/WMP/logo.svg +0 -52
- package/data/WOO/data.json +0 -16
- package/data/WOO/logo.svg +0 -1489
- package/data/XCHF/data.json +0 -13
- package/data/XCHF/logo.png +0 -0
- package/data/ZRX/data.json +0 -13
- package/data/ZRX/logo.png +0 -0
- package/data/aCRV/data.json +0 -22
- package/data/aCRV/logo.svg +0 -9
- package/data/alETH/data.json +0 -16
- package/data/alETH/logo.svg +0 -17
- package/data/rETH/data.json +0 -13
- package/data/rETH/logo.png +0 -0
- package/data/sBTC/data.json +0 -11
- package/data/sBTC/logo.svg +0 -18
- package/data/sETH/data.json +0 -11
- package/data/sETH/logo.svg +0 -23
- package/data/sLINK/data.json +0 -11
- package/data/sLINK/logo.svg +0 -23
- package/data/sUSD/data.json +0 -17
- package/data/sUSD/logo.svg +0 -17
- package/data/veKWENTA/data.json +0 -22
- package/data/veKWENTA/logo.svg +0 -24
- package/data/wstETH/data.json +0 -31
- package/data/wstETH/logo.svg +0 -11
- package/dist/declarations/src/index.d.ts +0 -79
- package/dist/eth-optimism-tokenlist.cjs.d.ts +0 -1
- package/dist/eth-optimism-tokenlist.cjs.dev.js +0 -3098
- package/dist/eth-optimism-tokenlist.cjs.js +0 -7
- package/dist/eth-optimism-tokenlist.cjs.prod.js +0 -3098
- package/dist/eth-optimism-tokenlist.esm.js +0 -3090
- package/jest.config.js +0 -5
- package/optimism.defaulttokens.json +0 -26
- package/optimism.svg +0 -4
- package/optimism.tokenlist.json +0 -3086
- package/src/abi.ts +0 -77
- package/src/bot.ts +0 -236
- package/src/chains.ts +0 -58
- package/src/generate.ts +0 -69
- package/src/index.ts +0 -71
- package/src/schemas.ts +0 -174
- package/src/types.ts +0 -33
- package/src/validate.ts +0 -271
- package/tests/__snapshots__/generate.test.ts.snap +0 -87
- package/tests/data/ETH/data.json +0 -21
- package/tests/data/ETH/logo.svg +0 -13
- package/tests/data/OP/data.json +0 -16
- package/tests/data/OP/logo.png +0 -0
- package/tests/defaultTokens.test.ts +0 -12
- package/tests/generate.test.ts +0 -20
- package/tsconfig.json +0 -27
package/.eslintrc.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
browser: true,
|
|
5
|
-
es6: true,
|
|
6
|
-
},
|
|
7
|
-
ignorePatterns: ['dist', 'coverage', 'packages/contracts/hardhat'],
|
|
8
|
-
extends: ['plugin:prettier/recommended'],
|
|
9
|
-
parser: '@babel/eslint-parser',
|
|
10
|
-
parserOptions: {
|
|
11
|
-
es6: true,
|
|
12
|
-
ecmaVersion: 6,
|
|
13
|
-
sourceType: 'module',
|
|
14
|
-
requireConfigFile: false,
|
|
15
|
-
},
|
|
16
|
-
plugins: [
|
|
17
|
-
'eslint-plugin-import',
|
|
18
|
-
'eslint-plugin-unicorn',
|
|
19
|
-
'eslint-plugin-jsdoc',
|
|
20
|
-
'eslint-plugin-prefer-arrow',
|
|
21
|
-
'eslint-plugin-react',
|
|
22
|
-
'@typescript-eslint',
|
|
23
|
-
],
|
|
24
|
-
overrides: [
|
|
25
|
-
{
|
|
26
|
-
files: ['**/*.ts'],
|
|
27
|
-
parser: '@typescript-eslint/parser',
|
|
28
|
-
parserOptions: {
|
|
29
|
-
project: './packages/**/tsconfig.json',
|
|
30
|
-
sourceType: 'module',
|
|
31
|
-
allowAutomaticSingleRunInference: true,
|
|
32
|
-
},
|
|
33
|
-
rules: {
|
|
34
|
-
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
35
|
-
'@typescript-eslint/array-type': 'off',
|
|
36
|
-
'@typescript-eslint/ban-types': 'off',
|
|
37
|
-
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
38
|
-
'@typescript-eslint/dot-notation': 'off',
|
|
39
|
-
'@typescript-eslint/indent': 'off',
|
|
40
|
-
'@typescript-eslint/member-delimiter-style': [
|
|
41
|
-
'off',
|
|
42
|
-
{
|
|
43
|
-
multiline: {
|
|
44
|
-
delimiter: 'none',
|
|
45
|
-
requireLast: true,
|
|
46
|
-
},
|
|
47
|
-
singleline: {
|
|
48
|
-
delimiter: 'semi',
|
|
49
|
-
requireLast: false,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
'@typescript-eslint/member-ordering': 'off',
|
|
54
|
-
'@typescript-eslint/naming-convention': 'off',
|
|
55
|
-
'@typescript-eslint/no-empty-function': 'error',
|
|
56
|
-
'@typescript-eslint/no-empty-interface': 'off',
|
|
57
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
58
|
-
'@typescript-eslint/no-misused-new': 'error',
|
|
59
|
-
'@typescript-eslint/no-namespace': 'error',
|
|
60
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
|
61
|
-
'@typescript-eslint/no-shadow': [
|
|
62
|
-
'error',
|
|
63
|
-
{
|
|
64
|
-
hoist: 'all',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
'@typescript-eslint/no-this-alias': 'error',
|
|
68
|
-
'@typescript-eslint/no-unused-expressions': 'off',
|
|
69
|
-
'@typescript-eslint/no-use-before-define': 'off',
|
|
70
|
-
'@typescript-eslint/no-var-requires': 'error',
|
|
71
|
-
'@typescript-eslint/prefer-for-of': 'error',
|
|
72
|
-
'@typescript-eslint/prefer-function-type': 'error',
|
|
73
|
-
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
74
|
-
'@typescript-eslint/quotes': 'off',
|
|
75
|
-
'@typescript-eslint/semi': ['off', null],
|
|
76
|
-
'@typescript-eslint/triple-slash-reference': [
|
|
77
|
-
'error',
|
|
78
|
-
{
|
|
79
|
-
path: 'always',
|
|
80
|
-
types: 'prefer-import',
|
|
81
|
-
lib: 'always',
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
'@typescript-eslint/type-annotation-spacing': 'off',
|
|
85
|
-
'@typescript-eslint/unified-signatures': 'error',
|
|
86
|
-
'@typescript-eslint/no-unused-vars': 'error',
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
rules: {
|
|
91
|
-
'prettier/prettier': 'warn',
|
|
92
|
-
'arrow-parens': ['off', 'always'],
|
|
93
|
-
'brace-style': ['off', 'off'],
|
|
94
|
-
'comma-dangle': 'off',
|
|
95
|
-
complexity: 'off',
|
|
96
|
-
'constructor-super': 'error',
|
|
97
|
-
curly: 'error',
|
|
98
|
-
'dot-notation': 'off',
|
|
99
|
-
'eol-last': 'off',
|
|
100
|
-
eqeqeq: ['error', 'smart'],
|
|
101
|
-
'guard-for-in': 'error',
|
|
102
|
-
'id-blacklist': 'off',
|
|
103
|
-
'id-match': 'off',
|
|
104
|
-
'import/no-extraneous-dependencies': ['error'],
|
|
105
|
-
'import/no-internal-modules': 'off',
|
|
106
|
-
'import/order': [
|
|
107
|
-
'error',
|
|
108
|
-
{
|
|
109
|
-
groups: ['builtin', 'external', 'internal'],
|
|
110
|
-
'newlines-between': 'always',
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
indent: 'off',
|
|
114
|
-
'jsdoc/check-alignment': 'error',
|
|
115
|
-
'jsdoc/check-indentation': 'error',
|
|
116
|
-
'jsdoc/newline-after-description': 'error',
|
|
117
|
-
'linebreak-style': 'off',
|
|
118
|
-
'max-classes-per-file': 'off',
|
|
119
|
-
'max-len': 'off',
|
|
120
|
-
'new-parens': 'off',
|
|
121
|
-
'newline-per-chained-call': 'off',
|
|
122
|
-
'no-bitwise': 'off',
|
|
123
|
-
'no-caller': 'error',
|
|
124
|
-
'no-cond-assign': 'error',
|
|
125
|
-
'no-console': 'off',
|
|
126
|
-
'no-debugger': 'error',
|
|
127
|
-
'no-duplicate-case': 'error',
|
|
128
|
-
'no-duplicate-imports': 'error',
|
|
129
|
-
'no-empty': 'error',
|
|
130
|
-
'no-eval': 'error',
|
|
131
|
-
'no-extra-bind': 'error',
|
|
132
|
-
'no-extra-semi': 'off',
|
|
133
|
-
'no-fallthrough': 'off',
|
|
134
|
-
'no-invalid-this': 'off',
|
|
135
|
-
'no-irregular-whitespace': 'off',
|
|
136
|
-
'no-multiple-empty-lines': 'off',
|
|
137
|
-
'no-new-func': 'error',
|
|
138
|
-
'no-new-wrappers': 'error',
|
|
139
|
-
'no-redeclare': 'error',
|
|
140
|
-
'no-return-await': 'error',
|
|
141
|
-
'no-sequences': 'error',
|
|
142
|
-
'no-sparse-arrays': 'error',
|
|
143
|
-
'no-template-curly-in-string': 'error',
|
|
144
|
-
'no-throw-literal': 'error',
|
|
145
|
-
'no-trailing-spaces': 'off',
|
|
146
|
-
'no-undef-init': 'error',
|
|
147
|
-
'no-underscore-dangle': 'off',
|
|
148
|
-
'no-unsafe-finally': 'error',
|
|
149
|
-
'no-unused-expressions': 'off',
|
|
150
|
-
'no-unused-labels': 'error',
|
|
151
|
-
'no-use-before-define': 'off',
|
|
152
|
-
'no-var': 'error',
|
|
153
|
-
'object-shorthand': 'error',
|
|
154
|
-
'one-var': ['error', 'never'],
|
|
155
|
-
'padded-blocks': [
|
|
156
|
-
'off',
|
|
157
|
-
{
|
|
158
|
-
blocks: 'never',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
allowSingleLineBlocks: true,
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
'prefer-arrow/prefer-arrow-functions': 'error',
|
|
165
|
-
'prefer-const': 'error',
|
|
166
|
-
'prefer-object-spread': 'error',
|
|
167
|
-
'quote-props': 'off',
|
|
168
|
-
quotes: 'off',
|
|
169
|
-
radix: 'error',
|
|
170
|
-
'react/jsx-curly-spacing': 'off',
|
|
171
|
-
'react/jsx-equals-spacing': 'off',
|
|
172
|
-
'react/jsx-tag-spacing': [
|
|
173
|
-
'off',
|
|
174
|
-
{
|
|
175
|
-
afterOpening: 'allow',
|
|
176
|
-
closingSlash: 'allow',
|
|
177
|
-
},
|
|
178
|
-
],
|
|
179
|
-
'react/jsx-wrap-multilines': 'off',
|
|
180
|
-
semi: 'off',
|
|
181
|
-
'space-before-blocks': 'error',
|
|
182
|
-
'space-before-function-paren': 'off',
|
|
183
|
-
'space-in-parens': ['off', 'never'],
|
|
184
|
-
'unicorn/prefer-ternary': 'off',
|
|
185
|
-
'use-isnan': 'error',
|
|
186
|
-
'valid-typeof': 'off',
|
|
187
|
-
},
|
|
188
|
-
}
|
package/.github/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@elenadimitrova
|
package/.github/mergify.yml
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
queue_rules:
|
|
2
|
-
- name: default
|
|
3
|
-
conditions: []
|
|
4
|
-
|
|
5
|
-
pull_request_rules:
|
|
6
|
-
- name: Ask to resolve conflict
|
|
7
|
-
conditions:
|
|
8
|
-
- conflict
|
|
9
|
-
actions:
|
|
10
|
-
comment:
|
|
11
|
-
message: Hey @{{author}}! This PR has merge conflicts. Please fix them before continuing review.
|
|
12
|
-
label:
|
|
13
|
-
add:
|
|
14
|
-
- conflict
|
|
15
|
-
|
|
16
|
-
- name: Remove conflicts label when conflicts gone
|
|
17
|
-
conditions:
|
|
18
|
-
- -conflict
|
|
19
|
-
actions:
|
|
20
|
-
label:
|
|
21
|
-
remove:
|
|
22
|
-
- conflict
|
|
23
|
-
|
|
24
|
-
- name: Notify author when merge queue failed
|
|
25
|
-
conditions:
|
|
26
|
-
- 'check-failure=Queue: Embarked in merge train'
|
|
27
|
-
actions:
|
|
28
|
-
comment:
|
|
29
|
-
message: |
|
|
30
|
-
Merge failed. Please see automated check logs for more details.
|
|
31
|
-
|
|
32
|
-
- name: automatic update prs
|
|
33
|
-
conditions:
|
|
34
|
-
- -conflict
|
|
35
|
-
- -draft
|
|
36
|
-
- label!="do-not-merge"
|
|
37
|
-
- 'base=master'
|
|
38
|
-
actions:
|
|
39
|
-
update:
|
|
40
|
-
|
|
41
|
-
- name: Say hi to contributors if they are not part of the regularcontributors team
|
|
42
|
-
conditions:
|
|
43
|
-
- author!=@regularcontributors
|
|
44
|
-
actions:
|
|
45
|
-
comment:
|
|
46
|
-
message: |
|
|
47
|
-
Thanks for creating the PR! We're stoked to see you building on Optimism.
|
|
48
|
-
Please give our team about a week to review your PR :)
|
|
49
|
-
|
|
50
|
-
- name: Say thanks
|
|
51
|
-
conditions:
|
|
52
|
-
- author!=@regularcontributors
|
|
53
|
-
- merged
|
|
54
|
-
actions:
|
|
55
|
-
comment:
|
|
56
|
-
message: |
|
|
57
|
-
Congrats! Your token has been merged. Consider joining our Discord to stay up to date with other builders in the ecosystem. Make sure to drink plenty of water.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: 'npm'
|
|
4
|
-
directory: '/'
|
|
5
|
-
schedule:
|
|
6
|
-
interval: 'monthly'
|
|
7
|
-
open-pull-requests-limit: 2
|
|
8
|
-
|
|
9
|
-
- package-ecosystem: 'github-actions'
|
|
10
|
-
directory: '/'
|
|
11
|
-
schedule:
|
|
12
|
-
interval: 'monthly'
|
|
13
|
-
open-pull-requests-limit: 2
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
name: Generate Token List
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
push:
|
|
6
|
-
branches: [master]
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
generate:
|
|
10
|
-
name: generate
|
|
11
|
-
if: |
|
|
12
|
-
github.event.head_commit.committer.username != 'github-actions[bot]'
|
|
13
|
-
&& github.repository == 'ethereum-optimism/ethereum-optimism.github.io'
|
|
14
|
-
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v2
|
|
19
|
-
with:
|
|
20
|
-
token: ${{ secrets.PAT }}
|
|
21
|
-
fetch-depth: 0
|
|
22
|
-
|
|
23
|
-
- name: Use Node.js 16.x
|
|
24
|
-
uses: actions/setup-node@v2
|
|
25
|
-
with:
|
|
26
|
-
node-version: 16.x
|
|
27
|
-
|
|
28
|
-
- name: Get yarn cache directory path
|
|
29
|
-
id: yarn-cache-dir-path
|
|
30
|
-
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
31
|
-
|
|
32
|
-
- uses: actions/cache@v2
|
|
33
|
-
id: yarn-cache
|
|
34
|
-
with:
|
|
35
|
-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
36
|
-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
37
|
-
restore-keys: |
|
|
38
|
-
${{ runner.os }}-yarn-
|
|
39
|
-
|
|
40
|
-
- name: Install dependencies
|
|
41
|
-
run: yarn --frozen-lockfile
|
|
42
|
-
|
|
43
|
-
- name: Patch token list version
|
|
44
|
-
run: |
|
|
45
|
-
git config --global user.email "will@oplabs.co"
|
|
46
|
-
git config --global user.name "Github action bot"
|
|
47
|
-
npm version patch
|
|
48
|
-
|
|
49
|
-
- name: Generate token list
|
|
50
|
-
run: |
|
|
51
|
-
yarn generate:ci
|
|
52
|
-
|
|
53
|
-
- name: Commit token list
|
|
54
|
-
uses: stefanzweifel/git-auto-commit-action@v4
|
|
55
|
-
with:
|
|
56
|
-
commit_message: 'bot(ci): generate token list'
|
|
57
|
-
file_pattern: optimism.tokenlist.json
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
name: Publish Packages
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
publish-bot:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Checkout
|
|
13
|
-
uses: actions/checkout@v2
|
|
14
|
-
|
|
15
|
-
- name: Get changed files
|
|
16
|
-
id: changed-files
|
|
17
|
-
uses: tj-actions/changed-files@v29
|
|
18
|
-
with:
|
|
19
|
-
files: |
|
|
20
|
-
bin/**
|
|
21
|
-
src/bot.ts
|
|
22
|
-
package.json
|
|
23
|
-
yarn.lock
|
|
24
|
-
Dockerfile.bot
|
|
25
|
-
|
|
26
|
-
- name: Set up QEMU
|
|
27
|
-
uses: docker/setup-qemu-action@v2
|
|
28
|
-
|
|
29
|
-
- name: Set up Docker Buildx
|
|
30
|
-
uses: docker/setup-buildx-action@v2
|
|
31
|
-
|
|
32
|
-
- name: Login to DockerHub
|
|
33
|
-
uses: docker/login-action@v2
|
|
34
|
-
with:
|
|
35
|
-
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
36
|
-
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
37
|
-
|
|
38
|
-
- name: Build and push
|
|
39
|
-
uses: docker/build-push-action@v3
|
|
40
|
-
with:
|
|
41
|
-
push: true
|
|
42
|
-
tags: ethereumoptimism/tokenlist-bot:latest
|
|
43
|
-
|
|
44
|
-
- name: Install dependencies to prepare for release 🔧
|
|
45
|
-
run: yarn
|
|
46
|
-
|
|
47
|
-
- name: Build and publish package on NPM 📦
|
|
48
|
-
run: yarn release
|
|
49
|
-
env:
|
|
50
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: 'Close stale issues and PRs'
|
|
2
|
-
on:
|
|
3
|
-
schedule:
|
|
4
|
-
- cron: '30 1 * * *'
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
stale:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/stale@v6
|
|
11
|
-
with:
|
|
12
|
-
stale-issue-message: 'This issue has been automatically marked as stale and will be closed in 7 days if no updates'
|
|
13
|
-
stale-pr-message: 'This pr has been automatically marked as stale and will be closed in 7 days if no updates'
|
|
14
|
-
close-issue-message: 'This issue was closed as stale. Please reopen if this is a mistake'
|
|
15
|
-
close-pr-message: 'This PR was closed as stale. Please reopen if this is a mistake'
|
|
16
|
-
days-before-issue-stale: 7
|
|
17
|
-
days-before-pr-stale: 7
|
|
18
|
-
days-before-issue-close: 7
|
|
19
|
-
days-before-pr-close: 7
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
name: Test Scripts
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
name: test
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
strategy:
|
|
15
|
-
matrix:
|
|
16
|
-
node-version: [16.x]
|
|
17
|
-
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v2
|
|
20
|
-
|
|
21
|
-
- name: Use Node.js 16.x
|
|
22
|
-
uses: actions/setup-node@v2
|
|
23
|
-
with:
|
|
24
|
-
node-version: 16.x
|
|
25
|
-
|
|
26
|
-
- name: Get yarn cache directory path
|
|
27
|
-
id: yarn-cache-dir-path
|
|
28
|
-
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
29
|
-
|
|
30
|
-
- uses: actions/cache@v2
|
|
31
|
-
id: yarn-cache
|
|
32
|
-
with:
|
|
33
|
-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
34
|
-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
35
|
-
restore-keys: |
|
|
36
|
-
${{ runner.os }}-yarn-
|
|
37
|
-
|
|
38
|
-
- name: Install dependencies
|
|
39
|
-
run: yarn --frozen-lockfile
|
|
40
|
-
|
|
41
|
-
- name: Run Test
|
|
42
|
-
run: |
|
|
43
|
-
npm run test
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
name: Validate PR
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
validate:
|
|
11
|
-
name: validate
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v2
|
|
16
|
-
with:
|
|
17
|
-
fetch-depth: 0
|
|
18
|
-
|
|
19
|
-
- name: Use Node.js 16.x
|
|
20
|
-
uses: actions/setup-node@v2
|
|
21
|
-
with:
|
|
22
|
-
node-version: 16.x
|
|
23
|
-
|
|
24
|
-
- name: Get yarn cache directory path
|
|
25
|
-
id: yarn-cache-dir-path
|
|
26
|
-
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
27
|
-
|
|
28
|
-
- uses: actions/cache@v2
|
|
29
|
-
id: yarn-cache
|
|
30
|
-
with:
|
|
31
|
-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
32
|
-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
33
|
-
restore-keys: |
|
|
34
|
-
${{ runner.os }}-yarn-
|
|
35
|
-
|
|
36
|
-
- name: Install dependencies
|
|
37
|
-
run: yarn --frozen-lockfile
|
|
38
|
-
|
|
39
|
-
- name: Save PR number
|
|
40
|
-
run: echo ${{ github.event.number }} > pr.txt
|
|
41
|
-
|
|
42
|
-
- name: Get changed files
|
|
43
|
-
id: changed-files
|
|
44
|
-
uses: tj-actions/changed-files@v29
|
|
45
|
-
with:
|
|
46
|
-
files: |
|
|
47
|
-
data/**
|
|
48
|
-
|
|
49
|
-
- name: Validate token list
|
|
50
|
-
run: |
|
|
51
|
-
CHANGED=$(echo ${{ steps.changed-files.outputs.all_changed_files }} | sed -nr "s/data\/(.*?)\/.*/\1/p" | paste -sd "," -)
|
|
52
|
-
yarn validate --datadir ./data --tokens "${CHANGED}" 2> err.txt 1> std.txt
|
|
53
|
-
|
|
54
|
-
- name: Print output
|
|
55
|
-
if: ${{ always() }}
|
|
56
|
-
run: |
|
|
57
|
-
cat std.txt; cat err.txt
|
|
58
|
-
|
|
59
|
-
- name: Upload artifacts
|
|
60
|
-
if: ${{ always() }}
|
|
61
|
-
uses: actions/upload-artifact@v3
|
|
62
|
-
with:
|
|
63
|
-
name: logs-artifact
|
|
64
|
-
path: |
|
|
65
|
-
pr.txt
|
|
66
|
-
err.txt
|
|
67
|
-
std.txt
|
package/.prettierrc.js
DELETED
package/.vscode/extensions.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
|
|
3
|
-
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
|
|
4
|
-
|
|
5
|
-
// List of extensions which should be recommended for users of this workspace.
|
|
6
|
-
"recommendations": [
|
|
7
|
-
"dbaeumer.vscode-eslint",
|
|
8
|
-
"editorconfig.editorconfig",
|
|
9
|
-
],
|
|
10
|
-
}
|
package/.vscode/settings.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"[typescript]": {
|
|
3
|
-
"editor.defaultFormatter": "vscode.typescript-language-features",
|
|
4
|
-
"editor.formatOnSave": true
|
|
5
|
-
},
|
|
6
|
-
"eslint.nodePath": "./node_modules/eslint/bin/",
|
|
7
|
-
"eslint.format.enable": true,
|
|
8
|
-
"editorconfig.generateAuto": false,
|
|
9
|
-
"files.trimTrailingWhitespace": true
|
|
10
|
-
}
|
package/CNAME
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
static.optimism.io
|
package/Dockerfile.bot
DELETED
package/babel.config.js
DELETED
package/bin/cli.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import fs from 'fs'
|
|
2
|
-
|
|
3
|
-
import { Command } from 'commander'
|
|
4
|
-
|
|
5
|
-
import { generate } from '../src/generate'
|
|
6
|
-
import { validate } from '../src/validate'
|
|
7
|
-
import { version } from '../package.json'
|
|
8
|
-
|
|
9
|
-
const program = new Command()
|
|
10
|
-
|
|
11
|
-
program
|
|
12
|
-
.name('optl')
|
|
13
|
-
.description('CLI for generating and validating tokenlists')
|
|
14
|
-
.version(version)
|
|
15
|
-
|
|
16
|
-
program
|
|
17
|
-
.command('validate')
|
|
18
|
-
.description('Validate tokenlist data files')
|
|
19
|
-
.requiredOption('--datadir <datadir>', 'Directory containing data files')
|
|
20
|
-
.option(
|
|
21
|
-
'--tokens <tokens>',
|
|
22
|
-
'Comma-separated list of tokens symbols to validate'
|
|
23
|
-
)
|
|
24
|
-
.action(async (options) => {
|
|
25
|
-
const results = await validate(options.datadir, options.tokens.split(','))
|
|
26
|
-
|
|
27
|
-
const errs = results.filter((r) => r.type === 'error')
|
|
28
|
-
if (errs.length > 0) {
|
|
29
|
-
for (const err of errs) {
|
|
30
|
-
if (err.message.startsWith('final token list is invalid')) {
|
|
31
|
-
// Message generated here is super long and doesn't really give more information than the
|
|
32
|
-
// rest of the errors, so just print a short version of it instead.
|
|
33
|
-
console.error(`error: final token list is invalid`)
|
|
34
|
-
} else {
|
|
35
|
-
console.error(`error: ${err.message}`)
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Exit with error code so CI fails
|
|
40
|
-
process.exit(1)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const warns = results.filter((r) => r.type === 'warning')
|
|
44
|
-
if (warns.length > 0) {
|
|
45
|
-
for (const warn of warns) {
|
|
46
|
-
console.log(`warning: ${warn.message}`)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
program
|
|
52
|
-
.command('generate')
|
|
53
|
-
.description('Generates a tokenlist data file')
|
|
54
|
-
.requiredOption('--datadir <datadir>', 'Directory containing data files')
|
|
55
|
-
.requiredOption('--outfile <outfile>', 'Output file to write')
|
|
56
|
-
.action(async (options) => {
|
|
57
|
-
const list = generate(options.datadir)
|
|
58
|
-
fs.writeFileSync(options.outfile, JSON.stringify(list, null, 2))
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
program.parse()
|
package/data/0xBTC/data.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "0xBitcoin",
|
|
3
|
-
"symbol": "0xBTC",
|
|
4
|
-
"decimals": 8,
|
|
5
|
-
"tokens": {
|
|
6
|
-
"ethereum": {
|
|
7
|
-
"address": "0xb6ed7644c69416d67b522e20bc294a9a9b405b31"
|
|
8
|
-
},
|
|
9
|
-
"optimism": {
|
|
10
|
-
"address": "0xe0BB0D3DE8c10976511e5030cA403dBf4c25165B"
|
|
11
|
-
},
|
|
12
|
-
"kovan": {
|
|
13
|
-
"address": "0x24a19ee5a5c8757acdebe542a9436d9c796d1c9e"
|
|
14
|
-
},
|
|
15
|
-
"optimism-kovan": {
|
|
16
|
-
"address": "0x56B4F5f44d348EC3F07Bf1f31A3B566E5304BedE"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
package/data/0xBTC/logo.png
DELETED
|
Binary file
|
package/data/AAVE/data.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Aave Token",
|
|
3
|
-
"symbol": "AAVE",
|
|
4
|
-
"decimals": 18,
|
|
5
|
-
"tokens": {
|
|
6
|
-
"ethereum": {
|
|
7
|
-
"address": "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9"
|
|
8
|
-
},
|
|
9
|
-
"optimism": {
|
|
10
|
-
"address": "0x76FB31fb4af56892A25e32cFC43De717950c9278"
|
|
11
|
-
},
|
|
12
|
-
"kovan": {
|
|
13
|
-
"address": "0x9BE876c6DC42215B00d7efe892E2691C3bc35d10"
|
|
14
|
-
},
|
|
15
|
-
"optimism-kovan": {
|
|
16
|
-
"address": "0x76FB31fb4af56892A25e32cFC43De717950c9278"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
package/data/AAVE/logo.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" data-name="Group 27021" viewBox="0 0 24 24"><defs><linearGradient id="a" x1=".907" x2=".163" y1=".227" y2=".853" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#b6509e"/><stop offset="1" stop-color="#2ebac6"/></linearGradient></defs><circle cx="12" cy="12" r="12" fill="url(#a)" data-name="Ellipse 991"/><path fill="#fff" d="m17.251 16.78-4.059-9.809a1.091 1.091 0 0 0-1.017-.755h-.359a1.091 1.091 0 0 0-1.017.755l-1.766 4.274H7.697a.731.731 0 0 0-.728.725v.01a.731.731 0 0 0 .728.725h.718L6.73 16.78a.86.86 0 0 0-.05.278.767.767 0 0 0 .2.547.7.7 0 0 0 .539.209.729.729 0 0 0 .419-.139.885.885 0 0 0 .289-.368l1.853-4.601h1.287a.731.731 0 0 0 .728-.725v-.02a.731.731 0 0 0-.728-.725h-.687l1.415-3.529 3.859 9.6a.885.885 0 0 0 .289.368.729.729 0 0 0 .419.139.7.7 0 0 0 .539-.209.767.767 0 0 0 .2-.547.657.657 0 0 0-.05-.278z" data-name="Path 2434"/></svg>
|