@paintswap/estfor-definitions 0.1.3 → 0.1.5
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/.eslintrc.json +28 -0
- package/.prettierrc +7 -0
- package/README.md +3 -3
- package/index.ts +4 -0
- package/package.json +11 -10
- package/src/lib/estforConstants.ts +739 -0
- package/src/lib/estforTypes.ts +180 -0
- package/tsconfig.json +4 -0
- package/dist/estforConstants.d.ts +0 -644
- package/dist/estforConstants.js +0 -706
- package/dist/estforTypes.d.ts +0 -127
- package/dist/estforTypes.js +0 -82
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -33
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settings": {
|
|
3
|
+
"import/resolver": {
|
|
4
|
+
"node": {
|
|
5
|
+
"paths": ["./src"]
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"env": {
|
|
10
|
+
"es6": true,
|
|
11
|
+
"browser": true,
|
|
12
|
+
"jest": true
|
|
13
|
+
},
|
|
14
|
+
"parser": "@typescript-eslint/parser",
|
|
15
|
+
"parserOptions": {
|
|
16
|
+
"ecmaVersion": 13,
|
|
17
|
+
"sourceType": "module"
|
|
18
|
+
},
|
|
19
|
+
"plugins": [
|
|
20
|
+
"@typescript-eslint"
|
|
21
|
+
],
|
|
22
|
+
"rules": {
|
|
23
|
+
"no-console": ["warn", { "allow": ["info", "warn", "error"] }],
|
|
24
|
+
"no-plusplus": 0,
|
|
25
|
+
"prefer-destructuring": ["warn", { "object": true, "array": false }],
|
|
26
|
+
"no-underscore-dangle": 0
|
|
27
|
+
}
|
|
28
|
+
}
|
package/.prettierrc
ADDED
package/README.md
CHANGED
|
@@ -5,13 +5,13 @@ Types and Constants for Estfor
|
|
|
5
5
|
|
|
6
6
|
yarn build
|
|
7
7
|
|
|
8
|
-
## Publish to NPM
|
|
8
|
+
## Publish to NPM (--access=public needed the first time)
|
|
9
9
|
|
|
10
|
-
yarn publish
|
|
10
|
+
yarn publish
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
|
-
yarn add @estfor
|
|
14
|
+
yarn add @paintswap/estfor-definitions
|
|
15
15
|
|
|
16
16
|
import { EstforConstants, EstforTypes } from '@paintswap/estfor-definitions'
|
|
17
17
|
|
package/index.ts
ADDED
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paintswap/estfor-definitions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Types and constants for Estfor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/PaintSwap/estfor-definitions.git"
|
|
8
8
|
},
|
|
9
|
-
"main": "dist/index.js",
|
|
10
|
-
"types": "dist/index.d.ts",
|
|
11
9
|
"keywords": [
|
|
12
10
|
"estfor",
|
|
13
11
|
"paintswap",
|
|
@@ -15,15 +13,14 @@
|
|
|
15
13
|
"web3",
|
|
16
14
|
"ts",
|
|
17
15
|
"js",
|
|
16
|
+
"as",
|
|
18
17
|
"library"
|
|
19
18
|
],
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
"main": "index.ts",
|
|
20
|
+
"module": "index.ts",
|
|
21
|
+
"types": "index.ts",
|
|
23
22
|
"scripts": {
|
|
24
|
-
"build": "
|
|
25
|
-
"build:windows": "rd /s/q dist && tsc",
|
|
26
|
-
"build:default": "rm -rf ./dist/* && tsc",
|
|
23
|
+
"build": "asc --explicitStart --exportRuntime --runtime stub index.ts --lib estfor-definitions -b index.wasm",
|
|
27
24
|
"prepare": "yarn build",
|
|
28
25
|
"version": "git add -A src",
|
|
29
26
|
"postversion": "git push && git push --tags"
|
|
@@ -37,5 +34,9 @@
|
|
|
37
34
|
"devDependencies": {
|
|
38
35
|
"run-script-os": "^1.1.6",
|
|
39
36
|
"typescript": "^4.9.5"
|
|
40
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"assemblyscript": "0.19.10"
|
|
40
|
+
},
|
|
41
|
+
"ascMain": "index.ts"
|
|
41
42
|
}
|