-
Notifications
You must be signed in to change notification settings - Fork 44
/
package.json
152 lines (152 loc) · 5.63 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"name": "warp-contracts",
"version": "1.4.45",
"description": "An implementation of the SmartWeave smart contract protocol.",
"types": "./lib/types/index.d.ts",
"main": "./lib/cjs/index.js",
"browser": {
"./lib/mjs/index.js": "./bundles/web.bundle.min.js",
".": "./bundles/web.bundle.min.js"
},
"exports": {
"./web": {
"import": "./lib/mjs/index.js",
"require": "./lib/cjs/index.js",
"browser": "./bundles/web.bundle.min.js",
"types": "./lib/types/index.d.ts"
},
"./mjs": {
"import": "./lib/mjs/index.js",
"require": "./lib/cjs/index.js",
"browser": "./bundles/web.bundle.min.js",
"types": "./lib/types/index.d.ts"
},
".": {
"import": "./lib/mjs/index.js",
"require": "./lib/cjs/index.js",
"browser": "./bundles/web.bundle.min.js",
"types": "./lib/types/index.d.ts"
}
},
"sideEffects": false,
"engines": {
"node": ">=16.8"
},
"scripts": {
"build:cjs": "tsc -b tsconfig.json",
"build:mjs": "gen-esm-wrapper ./lib/cjs ./lib/mjs/index.js",
"mjs:burn:in:hell": "bash mjs-package.sh",
"build:types": "tsc -b tsconfig.types.json",
"bundle": "node bundle.js",
"build": "yarn run clean && yarn build:cjs && yarn build:mjs && yarn mjs:burn:in:hell && yarn build:types && yarn bundle",
"format": "prettier --write 'src/**/*.ts'",
"clean": "rimraf ./lib",
"lint": "eslint . --ext .ts --max-warnings=0",
"lint:fix": "eslint . --ext .ts --fix",
"prettier:format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"prepublishOnly": "yarn lint",
"preversion": "yarn lint && yarn build",
"version": "yarn format && git add -A src",
"postversion": "git push origin HEAD && git push --tags",
"yalc:publish": "yarn build && yalc publish --push",
"test": "jest",
"test:unit": "jest ./src/__tests__/unit",
"test:unit:cache": "jest ./src/__tests__/unit/cache-leveldb.test.ts",
"test:unit:cache:real": "jest ./src/__tests__/unit/cache-leveldb-real-data.test.ts",
"test:integration": "jest ./src/__tests__/integration",
"test:integration:basic": "jest ./src/__tests__/integration/basic",
"test:integration:basic:load": "jest --silent=false --detectOpenHandles ./src/__tests__/integration/basic/contract-loading.test.ts ",
"test:integration:basic:arweave": "jest ./src/__tests__/integration/basic/arweave-transactions-loading",
"test:integration:internal-writes": "jest ./src/__tests__/integration/internal-writes",
"test:integration:wasm": "jest ./src/__tests__/integration/wasm",
"test:regression": "node ./node_modules/.bin/jest ./src/__tests__/regression",
"build:toy-contract": "wasm-pack build --target nodejs --dev --out-name rust-contract crates/toy-contract",
"test:toy-contract": "jest crates/toy-contract/tests",
"build:pst": "wasm-pack build --target nodejs --dev --out-name rust-contract crates/pst/contract/implementation",
"gen-bindings:pst": "yarn gen-json:pst && yarn gen-ts:pst",
"gen-json:pst": "GENERATE_JSON=1 cargo test --manifest-path crates/pst/Cargo.toml generate_json -- --nocapture && yarn format:json-bindings:pst",
"gen-ts:pst": "ts-node --transpileOnly crates/pst/scripts/generate-ts.ts && yarn format:ts-bindings:pst",
"format:json-bindings:pst": "eslint 'crates/pst/contract/definition/bindings/json/*.json' --fix",
"format:ts-bindings:pst": "eslint 'crates/pst/contract/definition/bindings/ts/*.ts' --fix",
"test:pst": "jest crates/pst/tests",
"build:test:wasm": "yarn build:toy-contract && yarn test:toy-contract && yarn build:pst && yarn gen-bindings:pst && yarn test:pst"
},
"license": "MIT",
"author": "Redstone Team <dev@redstone.finance>",
"contributors": [
"Jakub Wojciechowski <jakub@redstone.finance>",
"Alex Suvorov <alex@redstone.finance>",
"Piotr Pedziwiatr <peter@redstone.finance>"
],
"files": [
"lib/",
"docs/",
"LICENSE",
"README.md",
"bundles/"
],
"keywords": [
"smartweave",
"arweave"
],
"bugs": {
"url": "https://github.com/warp-contracts/warp/issues"
},
"homepage": "https://github.com/warp-contracts/warp#readme",
"dependencies": {
"archiver": "^5.3.0",
"arweave": "1.14.4",
"async-mutex": "^0.4.0",
"bignumber.js": "9.1.1",
"events": "3.3.0",
"fast-copy": "^3.0.0",
"level": "^8.0.0",
"memory-level": "^1.0.0",
"safe-stable-stringify": "2.4.1",
"stream-buffers": "^3.0.2",
"unzipit": "^1.4.0",
"warp-arbundles": "^1.0.4",
"warp-isomorphic": "^1.0.7",
"warp-wasm-metering": "1.0.1"
},
"devDependencies": {
"@idena/vrf-js": "^1.0.1",
"@types/cheerio": "^0.22.30",
"@types/jest": "^28.1.6",
"@types/node": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"arlocal": "1.1.65",
"cheerio": "^1.0.0-rc.10",
"colors": "^1.4.0",
"elliptic": "^6.5.4",
"esbuild": "0.17.5",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.1",
"gen-esm-wrapper": "^1.1.3",
"jest": "^29.7.0",
"json-schema-to-typescript": "^11.0.1",
"node-stdlib-browser": "^1.2.0",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"smartweave": "0.4.48",
"ts-jest": "^28.0.7",
"ts-node": "^10.2.1",
"typescript": "^4.9.5",
"warp-contracts-plugin-deploy": "1.0.8",
"warp-contracts-plugin-vm2": "1.0.1",
"warp-contracts-plugin-vrf": "^1.0.3",
"ws": "^8.11.0"
},
"resolutions": {
"bn.js": "5.2.1",
"bignumber.js": "9.1.1",
"buffer-pipe": "0.0.5"
},
"overrides": {
"bn.js": "5.2.1",
"bignumber.js": "9.1.1",
"buffer-pipe": "0.0.5"
}
}