fix: move artifacts to root dir
RENAME
src/artifacts/ChildERC20.json
artifacts/ChildERC20.json
RENAME
src/artifacts/RootChain.json
artifacts/RootChain.json
RENAME
src/artifacts/StandardToken.json
artifacts/StandardToken.json
MODIFY
package.json
package.json
"description": "Javascript developer library for interacting with Matic Network",
"main": "dist/matic.umd.js",
"module": "lib/index.js",
- "directories": {
- "lib": "./lib"
- },
+ "files": [
+ "lib",
+ "dist",
+ "artifacts"
+ ],
"scripts": {
"clean": "rimraf lib dist",
"babel:build": "babel src/ --out-dir lib/",
"node 8",
"not dead"
],
+ "engines": {
+ "node": ">=8.0.0"
+ },
"husky": {
"hooks": {
"pre-commit": "lint-staged"

MODIFY
src/index.js
src/index.js
@@ -16,9 +16,9 @@ import {
import { getHeaders, getBlockHeader } from "./helpers/blocks"
import MerkleTree from "./helpers/merkle-tree"
-import RootChainArtifacts from "./artifacts/RootChain"
-import ChildERC20Artifacts from "./artifacts/ChildERC20"
-import StandardTokenArtifacts from "./artifacts/StandardToken"
+import RootChainArtifacts from "../artifacts/RootChain"
+import ChildERC20Artifacts from "../artifacts/ChildERC20"
+import StandardTokenArtifacts from "../artifacts/StandardToken"
const rlp = utils.rlp

fix: move artifacts to root dir