@azuro-org/toolkit 4.1.5 → 4.1.6
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/package.json +8 -1
- package/.eslintrc +0 -166
- package/codegen.ts +0 -62
- package/graphql.config.yml +0 -21
- package/tsconfig.json +0 -34
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azuro-org/toolkit",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
4
4
|
"description": "Set of helpers to work with Azuro protocol",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./dist/index.js"
|
|
13
|
+
},
|
|
7
14
|
"scripts": {
|
|
8
15
|
"gql:cleanup": "rimraf src/docs/**/*.ts src/docs/**/**/*.ts",
|
|
9
16
|
"gql": "npm run gql:cleanup & graphql-codegen",
|
package/.eslintrc
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"plugin:import/errors",
|
|
4
|
-
"plugin:import/warnings",
|
|
5
|
-
"plugin:import/recommended"
|
|
6
|
-
],
|
|
7
|
-
"parser": "@typescript-eslint/parser",
|
|
8
|
-
"plugins": [
|
|
9
|
-
"import",
|
|
10
|
-
"@typescript-eslint"
|
|
11
|
-
],
|
|
12
|
-
"ignorePatterns": [
|
|
13
|
-
"*.js",
|
|
14
|
-
"*.graphql.ts",
|
|
15
|
-
"src/docs/*",
|
|
16
|
-
"examples/**",
|
|
17
|
-
"*.json",
|
|
18
|
-
"codegen.ts"
|
|
19
|
-
// "./dist"
|
|
20
|
-
],
|
|
21
|
-
"settings": {
|
|
22
|
-
"import/parsers": {
|
|
23
|
-
"@typescript-eslint/parser": [".ts", ".tsx"]
|
|
24
|
-
},
|
|
25
|
-
"import/resolver": {
|
|
26
|
-
"typescript": "./tsconfig.json"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"parserOptions": {
|
|
30
|
-
"project": "./tsconfig.json"
|
|
31
|
-
},
|
|
32
|
-
"rules": {
|
|
33
|
-
// Common
|
|
34
|
-
|
|
35
|
-
"padding-line-between-statements": [
|
|
36
|
-
"error",
|
|
37
|
-
{
|
|
38
|
-
"blankLine": "always",
|
|
39
|
-
"prev": "*",
|
|
40
|
-
"next": [ "return", "if", "try" ]
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
|
|
44
|
-
"eol-last": [
|
|
45
|
-
"error",
|
|
46
|
-
"always"
|
|
47
|
-
],
|
|
48
|
-
"curly": [
|
|
49
|
-
"error"
|
|
50
|
-
],
|
|
51
|
-
"indent": "off",
|
|
52
|
-
"quotes": [
|
|
53
|
-
"error",
|
|
54
|
-
"single"
|
|
55
|
-
],
|
|
56
|
-
"brace-style": [
|
|
57
|
-
"error",
|
|
58
|
-
"stroustrup"
|
|
59
|
-
],
|
|
60
|
-
"prefer-const": "off",
|
|
61
|
-
"key-spacing": [
|
|
62
|
-
"error",
|
|
63
|
-
{ "beforeColon": false }
|
|
64
|
-
],
|
|
65
|
-
"arrow-spacing": "error",
|
|
66
|
-
"space-infix-ops": "error",
|
|
67
|
-
"space-before-blocks": "error",
|
|
68
|
-
"no-multi-spaces": "warn",
|
|
69
|
-
"no-trailing-spaces": "warn",
|
|
70
|
-
"semi": [
|
|
71
|
-
"error",
|
|
72
|
-
"never"
|
|
73
|
-
],
|
|
74
|
-
"max-len": "off",
|
|
75
|
-
"object-curly-spacing": [
|
|
76
|
-
"error",
|
|
77
|
-
"always"
|
|
78
|
-
],
|
|
79
|
-
"array-bracket-spacing": [
|
|
80
|
-
"error",
|
|
81
|
-
"always"
|
|
82
|
-
],
|
|
83
|
-
"no-multiple-empty-lines": [
|
|
84
|
-
"error",
|
|
85
|
-
{
|
|
86
|
-
"max": 2
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"comma-spacing": "warn",
|
|
90
|
-
"comma-dangle": [
|
|
91
|
-
"error",
|
|
92
|
-
{
|
|
93
|
-
"arrays": "always-multiline",
|
|
94
|
-
"objects": "always-multiline",
|
|
95
|
-
"imports": "always-multiline",
|
|
96
|
-
"exports": "always-multiline",
|
|
97
|
-
"functions": "never"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"keyword-spacing": "error",
|
|
101
|
-
|
|
102
|
-
// Import plugin
|
|
103
|
-
|
|
104
|
-
"import/order": [
|
|
105
|
-
"error",
|
|
106
|
-
{
|
|
107
|
-
"groups": [
|
|
108
|
-
[ "builtin", "external" ],
|
|
109
|
-
"internal"
|
|
110
|
-
],
|
|
111
|
-
"pathGroups": [
|
|
112
|
-
{
|
|
113
|
-
"pattern": "react",
|
|
114
|
-
"group": "builtin",
|
|
115
|
-
"position": "before"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"pattern": "wagmi",
|
|
119
|
-
"group": "external"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"pattern": "viem",
|
|
123
|
-
"group": "external"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"pattern": "cookies-next",
|
|
127
|
-
"group": "external"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"pattern": "@apollo/**",
|
|
131
|
-
"group": "external"
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
"newlines-between": "always"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"import/first": 0,
|
|
138
|
-
"import/extensions": 0,
|
|
139
|
-
"import/no-unresolved": 0,
|
|
140
|
-
"import/no-dynamic-require": 0,
|
|
141
|
-
"import/prefer-default-export": 0,
|
|
142
|
-
"import/no-webpack-loader-syntax": 0,
|
|
143
|
-
"import/no-named-as-default-member": 1,
|
|
144
|
-
"import/no-extraneous-dependencies": 0,
|
|
145
|
-
"import/no-anonymous-default-export": 0,
|
|
146
|
-
"import/newline-after-import": [
|
|
147
|
-
"error",
|
|
148
|
-
{
|
|
149
|
-
"count": 2
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
// typescript
|
|
153
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
154
|
-
"@typescript-eslint/no-for-in-array": "error",
|
|
155
|
-
"@typescript-eslint/await-thenable": "warn",
|
|
156
|
-
"@typescript-eslint/consistent-type-imports": "error",
|
|
157
|
-
"@typescript-eslint/type-annotation-spacing": "error",
|
|
158
|
-
"@typescript-eslint/indent": [
|
|
159
|
-
"error",
|
|
160
|
-
2,
|
|
161
|
-
{
|
|
162
|
-
"SwitchCase": 1
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
}
|
|
166
|
-
}
|
package/codegen.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { CodegenConfig } from '@graphql-codegen/cli'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const config: CodegenConfig = {
|
|
5
|
-
ignoreNoDocuments: true,
|
|
6
|
-
generates: {
|
|
7
|
-
'src/docs/prematch/types.ts': {
|
|
8
|
-
schema: 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-polygon-v3',
|
|
9
|
-
plugins: [
|
|
10
|
-
'typescript',
|
|
11
|
-
],
|
|
12
|
-
},
|
|
13
|
-
'src/docs/prematch': {
|
|
14
|
-
preset: 'near-operation-file',
|
|
15
|
-
schema: 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-polygon-v3',
|
|
16
|
-
documents: 'src/docs/prematch/**/*.graphql',
|
|
17
|
-
presetConfig: {
|
|
18
|
-
extension: '.ts',
|
|
19
|
-
baseTypesPath: 'types.ts',
|
|
20
|
-
},
|
|
21
|
-
plugins: [
|
|
22
|
-
'typescript-operations',
|
|
23
|
-
'typescript-react-apollo',
|
|
24
|
-
],
|
|
25
|
-
config: {
|
|
26
|
-
withHooks: false,
|
|
27
|
-
scalars: {
|
|
28
|
-
'BigInt': 'string',
|
|
29
|
-
'BigDecimal': 'string',
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
'src/docs/live/types.ts': {
|
|
34
|
-
schema: 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-dev',
|
|
35
|
-
plugins: [
|
|
36
|
-
'typescript',
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
'src/docs/live': {
|
|
40
|
-
preset: 'near-operation-file',
|
|
41
|
-
schema: 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-dev',
|
|
42
|
-
documents: 'src/docs/live/**/*.graphql',
|
|
43
|
-
presetConfig: {
|
|
44
|
-
extension: '.ts',
|
|
45
|
-
baseTypesPath: 'types.ts',
|
|
46
|
-
},
|
|
47
|
-
plugins: [
|
|
48
|
-
'typescript-operations',
|
|
49
|
-
'typescript-react-apollo',
|
|
50
|
-
],
|
|
51
|
-
config: {
|
|
52
|
-
withHooks: false,
|
|
53
|
-
scalars: {
|
|
54
|
-
'BigInt': 'string',
|
|
55
|
-
'BigDecimal': 'string',
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export default config
|
package/graphql.config.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
projects:
|
|
2
|
-
protocol-dev:
|
|
3
|
-
schema: protocol.schema.graphql
|
|
4
|
-
include: src/docs/prematch/**/*.graphql
|
|
5
|
-
extensions:
|
|
6
|
-
endpoints:
|
|
7
|
-
Protocol:
|
|
8
|
-
url: https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-mumbai-dev-v3
|
|
9
|
-
headers:
|
|
10
|
-
user-agent: JS GraphQL
|
|
11
|
-
introspect: false
|
|
12
|
-
live-dev:
|
|
13
|
-
schema: live.schema.graphql
|
|
14
|
-
include: src/docs/live/**/*.graphql
|
|
15
|
-
extensions:
|
|
16
|
-
endpoints:
|
|
17
|
-
Protocol:
|
|
18
|
-
url: https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-preprod
|
|
19
|
-
headers:
|
|
20
|
-
user-agent: JS GraphQL
|
|
21
|
-
introspect: false
|
package/tsconfig.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"downlevelIteration": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"isolatedModules": true,
|
|
8
|
-
"jsx": "react-jsx",
|
|
9
|
-
"lib": ["es2021", "dom"],
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"declaration": true,
|
|
13
|
-
"declarationDir": "dist",
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
"noImplicitAny": true,
|
|
16
|
-
"noUncheckedIndexedAccess": true,
|
|
17
|
-
"noUnusedParameters": false,
|
|
18
|
-
"noImplicitReturns": false,
|
|
19
|
-
"resolveJsonModule": true,
|
|
20
|
-
"skipLibCheck": true,
|
|
21
|
-
"strict": true,
|
|
22
|
-
"strictNullChecks": true,
|
|
23
|
-
"target": "es2021",
|
|
24
|
-
"types": ["node"]
|
|
25
|
-
},
|
|
26
|
-
"exclude": [
|
|
27
|
-
"**/node_modules/**",
|
|
28
|
-
"**/dist/**"
|
|
29
|
-
],
|
|
30
|
-
"include": [
|
|
31
|
-
"src/**/*.ts",
|
|
32
|
-
"src/**/*.tsx"
|
|
33
|
-
]
|
|
34
|
-
}
|