@paintswap/estfor-definitions 0.1.9 → 0.1.11
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 +106 -26
- package/package.json +10 -6
- package/build/index.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,53 +1,133 @@
|
|
|
1
|
-
# estfor-definitions
|
|
2
|
-
Types and Constants for Estfor
|
|
1
|
+
# Estfor Kingdom Types & Constants (estfor-definitions)
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://user-images.githubusercontent.com/84033732/223739503-c53a888a-443f-4fb5-98a3-d40f94956799.png" height="100"/>
|
|
5
|
+
</p>
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
[Estfor Kingdom](https://estfor.com/) `types` and `constants` available for
|
|
8
|
+
[<img src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/JavaScript.svg" height="15"/> Javascript](https://developer.mozilla.org/en-US/docs/Learn/JavaScript),
|
|
9
|
+
[<img src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/TypeScript.svg" height="15"/> TypeScript](https://www.npmjs.com/package/typescript), and
|
|
10
|
+
[ <img src="https://avatars1.githubusercontent.com/u/28916798?s=15" height="15"/> AssemblyScript / <img src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/WebAssembly.svg" height="15"/> WebAssembly](https://www.npmjs.com/package/assemblyscript).
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
The items in this library will allow you to interact with Estfor Kingdom via:
|
|
9
13
|
|
|
10
|
-
|
|
14
|
+
- Vanilla JS applications
|
|
15
|
+
- React, Angular, and other front end frameworks
|
|
16
|
+
- NodeJS / Typescript back end services
|
|
17
|
+
- AssemblyScript / WebAssembly for use with [The Graph Protocol](https://github.com/graphprotocol/graph-node)'s web3 indexing
|
|
11
18
|
|
|
12
|
-
##
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
To use Estfor Kingdom types and constants in your project, first import the dev dependency:
|
|
22
|
+
|
|
23
|
+
```shell
|
|
24
|
+
npm install -D @paintswap/estfor-definitions
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```shell
|
|
28
|
+
yarn add -D @paintswap/estfor-definitions
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Once installed, the `EstforConstants`, `EstforTypes`, and `NONE` type will be exposed. You can then access the individual types from their parent.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import { EstforConstants, EstforTypes, NONE } from '@paintswap/estfor-definitions'
|
|
35
|
+
const { LOG } = EstforConstants
|
|
36
|
+
const MAPLE_LOG = EstforConstants.MAPLE_LOG
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
It is also possible to import specific items directly.
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { LOG } from '@paintswap/estfor-definitions/constants'
|
|
43
|
+
import { Skill } from '@paintswap/estfor-definitions/types'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Development
|
|
47
|
+
|
|
48
|
+
### Build
|
|
49
|
+
|
|
50
|
+
```shell
|
|
51
|
+
npm run build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```shell
|
|
55
|
+
yarn build
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Use Locally
|
|
59
|
+
|
|
60
|
+
#### NPM
|
|
13
61
|
|
|
14
62
|
From library root:
|
|
15
63
|
|
|
16
|
-
|
|
64
|
+
```shell
|
|
65
|
+
npm link
|
|
66
|
+
```
|
|
17
67
|
|
|
18
68
|
From project root:
|
|
19
69
|
|
|
20
|
-
|
|
70
|
+
```shell
|
|
71
|
+
npm link @paintswap/estfor-definitions
|
|
72
|
+
```
|
|
21
73
|
|
|
22
|
-
|
|
74
|
+
#### Yarn
|
|
23
75
|
|
|
24
76
|
From library root:
|
|
25
77
|
|
|
26
|
-
|
|
78
|
+
```shell
|
|
79
|
+
yarn link
|
|
80
|
+
```
|
|
27
81
|
|
|
28
82
|
From project root:
|
|
29
|
-
|
|
30
|
-
yalc link @paintswap/estfor-definitions
|
|
31
83
|
|
|
32
|
-
|
|
84
|
+
```shell
|
|
85
|
+
yarn link @paintswap/estfor-definitions
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
#### Yalc
|
|
89
|
+
|
|
90
|
+
Install `yalc`
|
|
91
|
+
|
|
92
|
+
```shell
|
|
93
|
+
npm install -g yalc@latest
|
|
94
|
+
```
|
|
33
95
|
|
|
34
|
-
|
|
35
|
-
|
|
96
|
+
```shell
|
|
97
|
+
yarn add -g yalc@latest
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
From library root:
|
|
101
|
+
|
|
102
|
+
```shell
|
|
103
|
+
yalc publish
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
From project root:
|
|
36
107
|
|
|
37
|
-
|
|
108
|
+
```shell
|
|
109
|
+
yalc add @paintswap/estfor-definitions
|
|
110
|
+
```
|
|
38
111
|
|
|
39
|
-
|
|
112
|
+
Use newly published updates to local yalc repository.
|
|
40
113
|
|
|
41
|
-
|
|
114
|
+
```shell
|
|
115
|
+
yalc update
|
|
116
|
+
```
|
|
42
117
|
|
|
43
|
-
|
|
118
|
+
Revert to NPM Repository
|
|
44
119
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
120
|
+
```shell
|
|
121
|
+
yalc remove @paintswap/estfor-definitions
|
|
122
|
+
yarn add @paintswap/estfor-definitions
|
|
123
|
+
```
|
|
48
124
|
|
|
49
|
-
|
|
125
|
+
### Publish to NPM (--access=public needed the first time)
|
|
50
126
|
|
|
51
|
-
|
|
52
|
-
|
|
127
|
+
```shell
|
|
128
|
+
npm publish
|
|
129
|
+
```
|
|
53
130
|
|
|
131
|
+
```shell
|
|
132
|
+
yarn publish
|
|
133
|
+
```
|
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paintswap/estfor-definitions",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Types and constants for Estfor",
|
|
3
|
+
"version": "0.1.11",
|
|
4
|
+
"description": "Types and constants for Estfor Kingdom",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/PaintSwap/estfor-definitions.git"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [
|
|
10
10
|
"estfor",
|
|
11
|
+
"estfor kingdom",
|
|
12
|
+
"javascript",
|
|
13
|
+
"typescript",
|
|
14
|
+
"assemblyscript",
|
|
15
|
+
"webassembly",
|
|
11
16
|
"paintswap",
|
|
12
17
|
"game",
|
|
13
18
|
"web3",
|
|
14
|
-
"
|
|
15
|
-
"js",
|
|
16
|
-
"as",
|
|
17
|
-
"library"
|
|
19
|
+
"thegraph"
|
|
18
20
|
],
|
|
19
21
|
"module": "CommonJS",
|
|
20
22
|
"ascMain": "src/index.ts",
|
|
@@ -23,6 +25,8 @@
|
|
|
23
25
|
"scripts": {
|
|
24
26
|
"build": "yarn build:tsc",
|
|
25
27
|
"build:tsc": "tsc",
|
|
28
|
+
"build:asc": "asc --target release",
|
|
29
|
+
"build:asc:debug": "asc --target debug",
|
|
26
30
|
"prepare": "yarn build",
|
|
27
31
|
"version": "git add -A src",
|
|
28
32
|
"postversion": "git push && git push --tags"
|
package/build/index.wasm
DELETED
|
Binary file
|