{"_id":"@telosnetwork/telosevm-js","_rev":"68-310191771617d43577dff3b6ddc5b00d","name":"@telosnetwork/telosevm-js","dist-tags":{"latest":"0.3.1","beta":"0.2.1-2"},"versions":{"0.0.2":{"name":"@telosnetwork/telosevm-js","version":"0.0.2","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@jafri/eosjs2":"^21.0.0-rc.14","bn.js":"^5.1.1","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.2","dist":{"shasum":"b5c506787aa00c87cf4add43e91c3b886b68d4fd","integrity":"sha512-oaN9Woiy0GgYSul50kpTx6lctwLFWtUikY1cZmNs8HHvp2vyr8eUapmokn5zkz1L7qX6eJr6mzYQNbNYPnJrMQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.2.tgz","fileCount":36,"unpackedSize":8254718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJiuSCRA9TVsSAnZWagAAZoMP/ib9qp4KUkXhfY5hQtzO\nCXFnB7g2c7NIvtrhAMZa6xvShOQqwKvsdvNF6GBjocgDkRQLgBpfPcGWGHN2\nziqviUDAz6Sra7jLsvRpXmx/dx21lyrtb8nwOZVgcG9sLt+bRfKvtorTkL7b\n8JmMubZtN6l0+1refgo3hbMO0gGXf1CfT8+tB26U1iJEbF0odRQf+kKvtnqQ\nI6aVyHXh+Yj9urhL8xa8xWq+ymdrb0m4Nf24WdmpiV35bjY6HpMPHEi0C+Os\nI9IdsGdqFAJ9jyIxncM3m2yYrrZt0rjQe2OYd+n0/h+VKzcHaHrSZeZUqz2H\nS1nDtxg26EwSLkKeG7nGVU+yq2d6W++qIvqirEeBY1gmXqI8GRx4EojYocrn\nYUexbtE6Tv2tIjPO7lwmyVo2lDvnScoRrn0ZNvI8uZzunCOBjIBvq/OBtoAN\nmLeFMJq7m1pYFjxFrZ8YXpb2yj2FvO9UrcojIbYuf6ySLsFeLCBJBUrFfdEm\ncf+YArG6Baz+FyHO5g/p0vkMLJYG3w2FnUEQOrQ2kbqtJlnpFzzyT6qDS7J2\nbFvvOML0xW5nMGTABZazii3d40nuHLVzTjIVAjcf/rX+rnFqmq+LUCe4JmPD\np2kl6m5/QmLDf0WaVLT5jf6zByQ03sbC9pmibvrBfct6NzKftRzW6c4oddS3\ne0i5\r\n=Q2Vv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlefHM14pEm9c9nBJ66GfZK2yjFi6B30dTSEErcsxcLAiEAqkq74FJAod5/cW/rMZooudBkMncIxbpA1Sz/q5ynVKg="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.2_1613114257734_0.4307694371601727"},"_hasShrinkwrap":false},"0.0.3":{"name":"@telosnetwork/telosevm-js","version":"0.0.3","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@jafri/eosjs2":"^21.0.0-rc.14","bn.js":"^5.1.1","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.3","dist":{"shasum":"b4ed778a52c8a7e7bfa627ac8686378706087b5f","integrity":"sha512-4E1NJUnxfyxOpEXbPZgvNgC+UwydwFeE74ZRifWz59NsfayHtLPhaHW4TRZeN2qdvQGaKAf+ejS9xzf5prQpkw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.3.tgz","fileCount":36,"unpackedSize":8259103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJi1/CRA9TVsSAnZWagAAqAoP/ive6N2YEn/x1+lZUssX\nowWwRVH9/VgHlrfEnm3sn9M0qXoQIQOaYK49dZfLR7lhi912CpDjjt7Ca4FB\nYVRWP8DAvThhlM6luik36h0UlyqBgJBPYdoE1/LpesMaaa+AFpV8+j6E6egr\nMPH3h+daJr8kqQ2oZG70gB7vVd4YMQvIEBmQcJpKb1wadjF6cuiYwHU0kj9z\n8mcGvtOrXYR2BGxj16rQyxCqM2Lxnpmw85PZC4i+wDUbY5GNdXif7m7ieUu9\nyowrRg7Uv3SnEB8Sl+zjOdrRxBPRG2olou0QmeqzgMJkuHsjJlkAJbBtK7fX\nkA0Enp3m/d+6rFbA5Dt7giQUxaa5Hu9ZKksFKM32T1IMluqeRhKvdotYIWca\nuBy7pp9E5opBA7Pi5bl7JN7LXgeURMJAkr2QInANce5l5HWga5zz3KIlNOV3\nOqxRCMrKqtvnoCJqrBBncBzfQflAwvboy8z75FxpnaxTBm1UQGZiMRbRuPOH\nyMQaLaS0Qu2feGW3xgB6M2EzE1FThwpTQc0EdRwJRvfw6gtXH/g5z3NsEQSp\nGVfSFw9/0aXCuH34jQ44mriSvbjHviHjfhZ+GWttFmNOqCfIf4WYIMxSgCeS\nGZbxXLhsNiIj9sBrbzLI1eFzy+QsQz0mS6bAHQVb5LiAiw1+P9hjmXwv5Dt/\nExF6\r\n=XXH1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8a2DuefLqUfBdroFUjoxKI/Qi6FJ9r5UPxiS5I+6fmAIgGvKBs8hHEE5dGrQyGRzBixsQ9aKMxR7FY/WK74FgR0o="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.3_1613114751175_0.05254867583120326"},"_hasShrinkwrap":false},"0.0.4":{"name":"@telosnetwork/telosevm-js","version":"0.0.4","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@jafri/eosjs2":"^21.0.0-rc.14","bn.js":"^5.1.1","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.4","dist":{"shasum":"6292a33768fe979dc4f033dc6c83b9ed5ccbc50f","integrity":"sha512-Myw22N09MM3o/tCvR+k+cuWM6aXHwn640ZNdMYrCMEvDcb/51qgigezQVihUTeybEfwAF9rzqYVQoCCIkRVjsg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.4.tgz","fileCount":36,"unpackedSize":8259103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJjWFCRA9TVsSAnZWagAAXvcP/j0XpgjIYqr0h5QnbTvU\nxns4BWyOTAnwM+4gdKPyWIhZqxvnDXdwFYdSbQtkiSRt85ZCXuGRKm8qF8MN\nXZgS383QhjQTBxCIPhCtMx43EKG/oWf8e4jTqoGARrBA297NelzNe4x1+OZD\nHNAwJPX0ek41VY4YvH+XeWaeUrGRyEOPgBn8qUVX7yutFrac4y8hlkWHHv4G\ndtKrQU2ZJx9rLsmvM4w8q4dWR6AMMFryU7gW0kcknkhONpQ/WN4Q/6Ub5cJ6\nmD8CZknqGQv4JwzZyy0BwAe+IDdWNzINVdus+4lmlfA+LaFnccxPTvU4zAs4\n0QElkcwofZ790yKGkPPacEbRA1c5RgpAzGtFGcjK5hOBdK7zePOxJSOAVcRy\nVWufaRg2DgC0SEPq6HWzl5sCqxS2LLNCaeWwSeWcVsP8KkCNXpVts9Rs1nQI\nXanujx7WnUGZmpNwwHBoDLY8kygs1i0AakVEWruwwV3I6taOkjtR2EqGksl0\napxCwqMpPYPZkQUtnhNfUu1V1dZnx0Roih8ObAB1COElXXvH60u/cEumBcHc\nz6jeOSV7/czMKpWfnVvTfQHm5anO6IyH6MHQbKOHA7k9Bf36MrqSteAzD8Hy\nFAqp7ncX8pwqDzqPW6/zvBB6iAtDIPHql133boYF09zNnRv/5Mkl9hep0RLb\nG4q9\r\n=2lBw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIUl3M0FGB5DziZ0KszY2yMjWtoZ7RKJ111Zi4FHp2NwIhAPGuja+RHZ8SPSU6+ewrhT6eYOagd9l0kRGwqt0GvUrU"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.4_1613116804874_0.7959584881116755"},"_hasShrinkwrap":false},"0.0.5":{"name":"@telosnetwork/telosevm-js","version":"0.0.5","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.5","dist":{"shasum":"3ba127ea1a6a2501f89d47379166a903e9d43c74","integrity":"sha512-bnUB/3CPsPwZidni6PjjbhKZ6KcEsGzsbrmDFlY0Jdp24UQ8ctI9pxHRHJqY74eIL3mN0/49t/OjCrFk5eNuWg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.5.tgz","fileCount":36,"unpackedSize":8259089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJjgICRA9TVsSAnZWagAAkXcP/1szuQl+zAhMgOsaRx+V\nG7sj/EBrD4PVBy+NEjwo11PVRcs+yNoUcDcqTgPQTfzid0AQuEjo9yFVtlaI\neKoBxu9XK69ZXGgPzeWiIO/kBwculu5FbDPSJAz3rzbMKDUHi6iFFRl/7hGS\n5gSlVAtWoSPeXFYcrbKXIg8N6cHTTRPewap/jd9+Fit7QPiG7JWDiAVFpmDr\nOiwPR9izGORRfHvMR6sUzSPWJ5YkW1UI0TNEoB28sA54A4TUV286F2KR/9U+\nPFeGhSJaEa46LdHN8CE5JYlTzRVkndnySUXfEaBdu1QYR6syXrYNoKnm3Ypt\nI7pCnTHIWryfOA1YIDPwvwddfRkJMCeX6qrRF3+s8hpgP2rRakkB3vDWB34Q\n4hUY433CyaCtLEDRGeI6jRF0g0laey3aNdUFTADLz3vb6DhO0GZeHTIm5g1j\nC/uZCXMDKkSURWFEqjLUWUyID+MdKz9bhkuBdVW1ztGI/xNVEUGwdfIkbe3x\nsEeJ19xc+XVro9vaihRJiogJ7UsSqG6Sr1ETRUkPuKSCoJ4OzcQCWB5AhIuk\nt4jCCTqTE9fPGDL74qePziDWT2e8Ewv4SFkRKVH5o4Bx/OFik+NAOGa0mdeS\ndKrRm4FAEjxZsBJzWl8OnmtqOcjH0uMyseo6jmBLFIHJT+jquyfHJqRdbXkx\nOHDS\r\n=NRTf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaTHKVM9DMFgXPUv3LoHXhKZgsMcXWFQ4B4gR4J9umSQIgI/NxWCe8VKog+okGTsde1RvThEq4CEnm+JzuQy605Hw="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.5_1613117448287_0.035540324245069366"},"_hasShrinkwrap":false},"0.0.6":{"name":"@telosnetwork/telosevm-js","version":"0.0.6","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.6","dist":{"shasum":"a4167e416c46ac37a6d355914609cacdaee67679","integrity":"sha512-ahDnRqO9iDqZaqtbVKKrAm5IB+BJjGCq1SxRy2LKLphkYa3yO2fKXk2Xoovdff9bF4WsVajJ5c3jdLoL3iU2ug==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.6.tgz","fileCount":36,"unpackedSize":8588688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJjqJCRA9TVsSAnZWagAAJRIP/0cduQp9utBnFtqAVjMk\nI/5ybm0F9O651Ep19eFWY500yW4Jsormyb2+sF86D0PsixDO56i8pyKaC/QY\n07OTgmzgSmEZxXcQuJgm0Wmy6lw86HWelAwM+UmS+wNQV5dJWgk+GXK+q6S4\ntArRazJXQnfLdRCsV6mIWJgFRbnoj4D6FnXMuzO+PNxlMFp4EQBa775HNpoL\nYfODP/UUktMljKpXZwA3il7miobiYZkOMl9NVtJwbixdvCXVjegkacZQAzVf\npUpmJY/ATg5SWPWQ2caaowp4GgWa2lowgQ5bnhzJQsRuuYnF3Riuy0ExQ0/F\nG4rJYdRMWKQhx+ea3xlLeOtFGsc163oyoJjGMj8xF+AjNck2aVHgGEydXXL3\nty5ahDIFzIMFhkt9UI6rmjdXizsmWuORbLSZqfC4zZ3nr2OfhwYBmVjO6xha\nOYUaDCZt+S+GP+ipVtxr1syByd8V1Btj9J6RIG6kUC/zRaBl7cr8jAdkSoxO\nVjpTmgpw4KVtnFguolIu6ggtOp9VVi4cXaBZEEYJP4tb8XqOa/q1UH+8I1VJ\nswR+EO4WMaHLYbT1tJwQsc4PP5vzeLdRE5buGTALOPBs7PO8g/u7nNQLw/O8\nA54VgY3pZyGW6e4ckp17hYTJomu2Plt1Qro3SQe/At5Nq4MlE4OlaE7vy7vC\nfuJP\r\n=Rlpe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjXu3zNOUJl+Y83Z8HHobWtTuSpsCEO/f2dqT1bo7LCAiByf+AeQB8M/YUEJ4+juQlCNKgOeVPCnZRTlNi//HFqWw=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.6_1613118088726_0.7177436856423018"},"_hasShrinkwrap":false},"0.0.7":{"name":"@telosnetwork/telosevm-js","version":"0.0.7","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.7","dist":{"shasum":"fa8761c0be5ab99cb5aa6d9e0ef8b80530ea42ae","integrity":"sha512-Cfq+YPDNtMFYItycisj0cGUNXoon1PkB2Dpvt7hesDHOKDmX64DhrBCvwOKBzN5rb3L4PjZV8v0Ntuim0XTzhA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.7.tgz","fileCount":36,"unpackedSize":8589720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJkCbCRA9TVsSAnZWagAAhtcP/3jyEaLLCDOep6vIc7n5\nn2vGFzkAChyXU1vwFE6CLHCQuyGVySTji1ttH/Gcm/hjJvCBeOg4gCca1Yjc\nhR1LTXVJeRMyPkDcDQ9syuOliA+iQ3ItjjXQlYx+Rew/k8QQsU8Ous5HrPb3\nlUDSuiZY+6HCMW4fNrmL5jQtHEVg+DlFchOBWsyhtsQpcKSyG8taCv5DrCvc\nl6qE+gd7J/oSCHHrCvmd9lJg53qXPVd+QiZm32Afpx7Jx6G7nJC+FrAa6mJt\nfADhY+HjN1D+LdCN4qPwi7RRER2snGn8oJA2mFIUixhHnWC9zWMsoZF8DS8C\nizjktYrrNPjTkBEoG+zLthdS+VhWnmdxQHRoMQvekoLGbHhXn7SQyhLBiI+R\nZcR8GV3YjHy4PlA8MMGH6GKbQv/781gjtLAWYM7SHmZRR8vI5hhyJ4YAxehV\nSG9QtyO6Wd7ikAMhbg0awemwj70Lgcz2gxwLvtYj6/urBC9sX3xjMrhPk+Qh\nG8Y5py7bt+7PBYxk7c9BJtkrdaFhbMa+vze3/fTZ58MfDHCKgqShwxC0D/AU\nA4gQVhwTsooWg8Tw1EmRhkMfL3Ow8+Lq8L/B6IAIU1YiHZbOXrnGiwIns4Az\nLVHYOtMM7r+WyAV6adx7K3cjhfTKKfhYbkKx5tJIzgl0DmoQRK6JZd461HX7\nZshN\r\n=rf3r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdEJvJ6A2iG3ijpdvyp5ynk/T7MuD3XDy6EDQQ6EHulAiEAroDy8IckvH3da28QAOWOgXQ8ikXyYtarb8yTsDlnDgo="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.7_1613119643408_0.4383038837891198"},"_hasShrinkwrap":false},"0.0.8-0":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-0","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-0","dist":{"shasum":"689ca31e7deaa37592220dfe554404fc50bb22bc","integrity":"sha512-LA+uzA8WUV0Yg9JL/0kBVTh9dystGoSWnIxQqmC0A9b+K3Ddf25OO8oHeZRj9jmoynlKeop/N9bnh9yYFfsesw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-0.tgz","fileCount":30,"unpackedSize":8633397,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgODdJCRA9TVsSAnZWagAAyMQP+wd35/3ft+CbVLZYQpFu\nY7zUWBzimW0ODYuQ3K7rhravoNsFs6Q1CXHJzcWHBBuzgAX8V9P9/wRcf2XR\n1/MoefVwrvno9qxKulSJ4LoPqa7ie3qexWNfquKc5HuMXeBGrc7L9Gf9S0Cj\nGC+fN8TMgh2oXrFDG0qlyR1lTMRXdBypEOcQh2YX8jE5x+6vtl0JT84YWo8q\nRFESrldD/M7lMg0xrzgPMWXSaocS37XlxchQmw+aHWCh93KTgh3if9aPBuPb\n0/usS3SgobV8U6Xn9VeD0IWl1mmRrw3sVHLcXLZM8ugVJY3DInlQ9pIuqUCl\nJiD67vSU+UgA2+qXY0by+M3Fn3KY6mY/YtQtFXMNqcuTqHzq/jxQcydAzyry\nYN38tG5kT42p3ThVxYCGJ/anNm+WfSjzqUwPAuzgRdd5f7b21GIqFJ7kO7Ud\nbDkobkqFhezkIpm3nf9wUzVMrvvapGnAPqqiSKJV8AR0CN18mEwCV818FOS5\nRlsdp9XsCXx1tKu6iNqE6iplx8/9bkMX8rxbTyAkIQq6h/rNhHz7zhHSqm2d\n++P955HQbDd9tIPOI0izVrgrUQ6LWN4kJ2KZbmukeahdEgTV0VB0xl0SR1S0\nia50Jyklj1tqFskTKJUdb89PAZ+qmr/to1mSILIr416Sc8lJdpcUCEKsdUHB\nh/SZ\r\n=iNxY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9l/wlF3O7m+tAkTqsvqmsSWyHn9+0V75NsRYuiBtSWAiADr/2IIgJ0HydqQQLBoQ8plf9WDPWqiZUnWMrSmcDJgQ=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-0_1614296904847_0.40619323115277095"},"_hasShrinkwrap":false},"0.0.8-1":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-1","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-1","dist":{"shasum":"8cb31006d221e3adf465d0ef0ebb3867556b8c96","integrity":"sha512-ugVNRwil+Wu7Rr1XM9rK3+rOraHIVPiWQP+mKaonJGlDc8ntRcV+q0FHndHlZ776Or8UMYZCsX/+SOzHsCu5Zw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-1.tgz","fileCount":30,"unpackedSize":8633846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOUmECRA9TVsSAnZWagAA6IUQAJF8w7VsIDGGhWnEnVqh\n6sXRZgFex17nHCSloeVjOsut00t8Bq8rD0dRMy7ymdm9VfIdD351u73yOqCe\nnOXSG+j1yJw9aRkUvMtM+MnkCzbQGM9ddjbd8h/+4mji6QpNqwSgxeP/K0QR\nJJ+hZlYtC6rJAas2ZS0lUWqoHUwM0FbnBycwLdTlD9546heLgb4TW1uQMnbe\nNx6JKfJJ3eLUaA4pIbmhGiEGHS9xzrxfrb1bi8dvvccqn2vlIgqqL6wQ5uAG\ns2MtpOl6azbkbviBF4zZfptvV9aa2pD3cWHHkwGlbTVOlTvy8kmazLePPI3v\nII11Q3vhnYSX7Nq1TulzuYDgVz5Y8W5x8gkKJMgr1oBuqDJdoixYxgyrwltX\ncVmW7eajYdzuNKGK94FB/2iTcmbYXs3bW8rbNTjmBwlaOXbpjpyy+nemrLfr\n+zEi1Z9lMusG/1N/xJumGp33JfwBuE6yiBuUBDXPTYEbryBpuXV4/JiTdTaG\nGVc9d3DgPYLZ92fD20O+bFtOED3DCcW+B523Fyqr2vk+Plji2ehdpCvUhaEs\nhXWS9edAgn7Nw8cr+e/PQGkUa8jJ/FGBbn/19lLtAyvQgnEy5AGCSJbZxKSm\n62tpcCP4TS2y+dEA6VhwKROxKyTmPVD9cyDDEc54F+Sjw9/Sz6WcHmFMQDH3\nPYLL\r\n=fx2z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbgCqhnNnlztWgm/eLzmVMaj3JccAoOhfTwC91fh5PTQIhALyNza93iHQfK/GIKUmufIJALDDHwX/bNxMU2IhsTuiN"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-1_1614367107746_0.6132717860067738"},"_hasShrinkwrap":false},"0.0.8-2":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-2","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-2","dist":{"shasum":"8fe9de6507ac0bc0ac506ab2ea8145e68a9d1ad8","integrity":"sha512-G5w7zBhLo6fc2wMXW3Q2Gd38bplOdJuDUYPdz0fzK5BVmSRFripZCEidy7GbcZKtaqi9rnZoL6G/oGlG15ue5w==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-2.tgz","fileCount":30,"unpackedSize":8633675,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOVFxCRA9TVsSAnZWagAAwp4P/Rfb3FUXENEM2mmbekuW\nm0LDlcqZRG4qv0sHZGCMNc9T1lg0cdz55kvjWNyIkuaa6ua/NFuSkm6sJjzs\nwk32CKbsof7BMGzJp7lrkPsBVBp30QZ3V+kBCXqpMQr0qY0hrykENGjzVulY\nJIu03cPQgTKsFlB1LS0flJzAwobsJp2q6ng9uB6liukgHADPYEfbG4Bmivmr\ncpCxv8aMDfAofB+Cq0Igzv0Faa/OXzMigm1nxyWL9ZRdU+x8qVam2+tCYZpE\nCiso1+c1xK5fz7IZY8tP72QeyGtx+APNUylijP9p/P6U8pRUbSEai798znPo\noBYzotKp24UO37gO0jea++sgCMk7odggU60wctjDzsZnQlXOjntGC37W+/Jz\niPnpgCKlSgj4iCXdK1MpqHix1f3pbh1xrKTqKVSidHxDUJdQNOf3y4+dleCZ\nXazhDghOuB9DmXg+n0tepNAK4SJdFuKybFqlsE5pa7l5iREHHAZnRg/tNc93\nkGMFGBVER1d6/l6Ca4o7TTG7Zd3irg6aq553a9dwjpUTr1ksst02pOq/rKRn\n/YVbEwhKq3Fv0WTtDwtYDbhOs9MbxI+xOJb7M4mFGqR9K0vNiiufoNyOlewi\nStEPKrtwTC9IJuRKW1vsYXuAIERuvpNPvb7yeomPeUygMfXr/cj/p3/Au+K8\nWJA7\r\n=CqPZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFlsdg8G5q4zIZbRFy5tLMAUMBh5JJIIT4L9im4XmdeZAiEArszDZMbf/i3nA/XsGXp2F/3d0dM3RhBg2gmcRYg+u6M="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-2_1614369136495_0.4710471866939492"},"_hasShrinkwrap":false},"0.0.8-3":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-3","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-3","dist":{"shasum":"9e2bcc6113f0f5c38bcdd26b4d89ed7a2ed62d2f","integrity":"sha512-biBQyZ/J9xKGffESHqLbtdWL/jZu/LPnozmZno1q0dsBPH/fc5hSTHrYRDjFR3AKx6Qd8g6iWvKtcD0UfuFN2A==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-3.tgz","fileCount":30,"unpackedSize":8634899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOWf1CRA9TVsSAnZWagAAmAkP/0/I/fpL9U9XBAZykrC5\nRwWifXmBPbhjV95hXTgJGHSIkKwa4c9EFQU4/erzODgVHqLVOfTJAyrg9o1K\nD48zYemiiBUfk2G3iMeGzN756DTQUe9zabvIQVQnxM811xc7fiauPHWuA5+3\nbgd9MpvzZ1/9l1TaV6N1V0ga3BtRQ+8o4tothDcJUa62Hk74I+xQ3CbrSHbC\n7LzL3VnI5aiT5Ypo20VET5TACZjXkNHJ/B4dfBK9lbDCzilUAGhhbyIwU4PE\nqCYT7ohHRRzS7THYRJI5timfs7vJikziuXMNRm7vqfBj8C7SUMzjG7/myjZ2\nIOZZsTYNeb6zDOv+iy7DfSl+cogRDlJApfkVT+jJJyxdn6II3nw1rulSC78g\nIKXFv//5mTjzcG4FilQJ/CPE/dxHd348KZfYg54S2EU5HSHozLem0AwQiTfh\np00B0mC3wgLbq8iA5la/jMlyvOTyoKRAUyRoBphey3kX2sjRD31YtR722nRe\nbI/YE7tGVyI6GScjxvb3N/A/RDK1AXNMkmfFXbkJAYJ+b78021/pe68q4i+g\nze2dUHRq6GNvTbaYlwJBCwf9Q4HwnLKst3f/YGHexGrbH+1u5GXB9W8EUP8/\n372QS7ANqnIb1qzByIO5qOUNRlNK0H7OQ2zejuKIYziy6FwrQ9xqemh8qY0i\nwv8X\r\n=/oXa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO4XNO0Q6cJxUh1Dcdfa5XWLQWj8UZ9lK9G2nEqwZC3gIgHxVEXo6j4RbWRytvxcNmN+2s3uskMv3hNyDA/rM9sGo="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-3_1614374901205_0.21783948472919712"},"_hasShrinkwrap":false},"0.0.8-4":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-4","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-4","dist":{"shasum":"c346acc1d498253be7b88fe704f01be35f5e767d","integrity":"sha512-a3fH579urC+uNpcY0fhSjZM1C2QSKfq12FuMyJU12FlPc2ts7dQPf72z+Ae2Jk+xw6030yScg7p9KYotGcqWaw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-4.tgz","fileCount":30,"unpackedSize":8635784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOX0MCRA9TVsSAnZWagAAPdoP/RBkwy37IVR1Dv1fn0/X\nq4s6OUb4vYXRSHjXI2W/3NC8sZjsR4Qvj9o9Rkevc45VVkxH6Zux7Nj6H3yZ\nXWR7vHVNf4AWlxlYN5sbjxlIs/EgUh/kc4xs16gbBIJznRUVH4z/hCGcrml8\niR6WuoSTJW91u1FUzg1ySDx+XCoPf1vdWoPFQPuLOYK120aEyrBw9roadi7r\neYOdA3yfr6kTbiCQl9dfi3iGZdqPuNa6b1FS5xqEyw46gdOlQd/mow7V5HVu\nYbYBZSfQ8PA9Jvn87gfh+6tqq1KVgR7jiSzz2S9CFjgHN7/BTIFNGTswrodl\nTfYD7Wf5DG0SKp/w0HGUCQ+jNUtakwIGiR5FSFell5Iw5/Wj6O9vFwvszG3Y\n0EdEQ0wKtyRgXTZtdah1g2AWsik7YSv6GQqTzbBRaM4AHkHHuQRjd5NAuunI\nmEZUHomYgo+u/IIdWiFrg80Av10lzR3Fa0XOWN9HCGGOcEWfmsOvlEjCj5K8\nvZSagseeago16546sxODEGl5T3RbecXQfHz4oLQ0nhtC3o78tVjxRIuyCoyY\nBzMfoWLi9d/lri5N6wFjuiFoGnV7NGRHrwfrDak3cuP/TPxVeCToWJJ3d7r4\nmsIT04zqINadPbt4k1ilDyrKLzU5G2GBEAGiz0pUUSsKl99du+OEafIJFZjt\naJx5\r\n=XTgs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXZni7gUz5rs6Y+zi1OnLoU4HTUUXUg+3XhTzOkICCdAIhALZKScQ0j20liscWsOal0gApmRe5Z57VE0ifhBZ5ljhG"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-4_1614380300110_0.15857327861964365"},"_hasShrinkwrap":false},"0.0.8-5":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-5","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-5","dist":{"shasum":"da5ecaf27626fa3d83a010199b87d3462acc603d","integrity":"sha512-73NaTO51XlZC0TYowFHyi8OUDQNW8RvqLFe7wYln8fUK57gdupP1cftnphvoM8a5iIJAbsmdHJ3HX8+eBgOQtQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-5.tgz","fileCount":30,"unpackedSize":8641158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOZBACRA9TVsSAnZWagAAk7oP/0WxI4udiog6o2f4RNFt\ngD9bUnF7/3Se2PxNrULyN+/zO7US8ndqzyQlb9N6kmP8AQd1ec+Oywf9dxW6\nttnopRJBd3KCALERh5udjaJLRzht65LncSb/aJZTTgGNEZLakklW7/zqWZg7\nzJjs+53WRYAcBhVu8xI6OE+ah0Hg2kwXmPm0OvaeUj/uXq6rx/Qsg9m3vr4z\ngTdiQa1UqCNtBzO+relqLiL0kQKtuY/YaurH5DMZxWT/4MC0EXLfmQ2/+FpE\nP+DugWjdv31SGmpn79wbtrhIGmQ+IIUdiHdCef3qUrLxXYU5GUhqDQIu04z8\ndY6Z1J2z7e+16wyJqKJgV1YyPZNSZ/ZqCGOP4tNuC8TgqAxsTqYOANQ1L9Wl\nf8B9eQGh3SKVOv1M3vEvacu3mNGCmSrWb7ykzvTGD6RBAnI4sS3rqFJvKJlY\n0TV6jXV7nnOVKYGVUS7uA701yw+nu9GG2Fzz64/QSjWgordjtxhECT2qCA8O\n969qQRQWKtqsWaVlWIw4X5S6FYaLG+cJWxJW8wZkkL7miv1N/nKELTPzxqwc\nwtl/J5Kz2AAan5syR6RafOlq4WPtNMUgw+099w9LLEJ1fWbrZXtF0u0Kdenp\nQAB0h/mokF1C3voCxwsd26nBSv8P4smkVEC6itHfpsDShpSb9VK3X7smQrBm\nRwWz\r\n=C98A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC09s119VH/Y8b3wxM4yP7Pi5KcWEEojZfoLFk65PjljAIhAJ1FlqO+qHoRqImKz4Pc/G1YvpfljARGS9rxuoOvDhJV"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-5_1614385215595_0.022333737856632396"},"_hasShrinkwrap":false},"0.0.8-6":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-6","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-6","dist":{"shasum":"0c6e0cd7d8af3c5bc9edf9313cb4123540b181b4","integrity":"sha512-s/JzGiiuV8Io729PqCwJUzDuG00TtQeemipmA7z9zBGpu9AbJMpgdO8WN8kX8M3WnI2OOxxRw6M8BRvCOHYiMA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-6.tgz","fileCount":30,"unpackedSize":8641410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOZIzCRA9TVsSAnZWagAA7ocP/iGszRW1UF5h7/Aw6ljj\nBojTr9Jd8bZCKxashqEthDk6NA8O+jxv+ng35X4tlfTe7sih5LwbgLVnXE+L\n++Fs65rJO5GrG/zHCKd9TNB/8MGgwpo7EXa1n/azZou/KmKnlfnlyxzgeIUm\n6EnG3ygaLgbUZ8nXBs1fYfkkYNntjZUoiQWGTqpOjElj6WGPaonJGu9gxNvH\nHiEKVrClMomrHX7h1LYNawcZLTUlUHG8K2Sp9t8IDwEUkVecO82qh0t1kRo1\nWmIClXho69wqJNUBiY0VxR0RDB7jKLLY2ztdUyBNfZ/4+pK9XEq1o2Jbk8v8\nE947px2iFjqtIm8BVbkf46BI/4TtRfgRGdrC98gdCmfh6V0voqGvko9HaD0l\nOS3QwDfXLwVguDgW0efXuEN+f6QVZpb4IcYXD7S79v+hQ6oA09jeTUrBCu+q\n2TlrTsRCiDdHs4HklRPMGnJP+wQiqVdUKvIqIEMzWSWWIwwEZeb496aWzwei\newtKLbHDzBURuVXnZswri0/mDi4HOE9giDy8zAEsWwS3RIX5SSGuIytuQgHq\nnZW8SLrFFG+CG/cd/4bqn0E0UbYHf8um97v8EbUUPbPLfckXZpU5qs7O7/q/\nwvScgeudACNTg4OSGWEdztpkRd+sFx7KojIBAjGUbs7DOfEmFb9vKB48v8wU\nO/+L\r\n=vAi4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwVZH3XeyWJBOBGBGMwDiBjSIIh7Rv7sPGO28PrAuylAiEAw4vs1J4kFnJO+5NOrGklMR/2mIzttf5U5/QRQYOQiPc="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-6_1614385714647_0.732793781834084"},"_hasShrinkwrap":false},"0.0.8-7":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-7","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-7","dist":{"shasum":"00e7e898d8977b8bbec45a07b8c9514a0114e94f","integrity":"sha512-XWQgC2bTvLuXcWU7hnvQ1PpL0KjKj0aHvMtLBB9a8qQ1FpoGdSpGv4PLf9ujM66UOYY2SqNNK5z3pEZ/X0gQ5w==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-7.tgz","fileCount":30,"unpackedSize":8641590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOZcnCRA9TVsSAnZWagAAcLMQAIJGeacfXUY4zMosbPkc\nO8orCvukvPg0PBlJzi9sDG6r6D7CJRgLYBaW2u2OVlb/4+DtuSaCcfbGRrQP\nbgNEjEHrjnNaw3lmS8YoMbwgiH4f3pG6ImggdEAkuWcN8EL15On7i7oREdrZ\nFe3KoemJARd/DudkYZUaEWjhAkrrcg28ADKbECgs8KSYlcY0d0TgHsjCsGtF\nbRi4zn+3klzNH3CnTFXAaVt8QxljbVGFuotHe5FmEsGkKKRYFeJfj0KGtWGk\nOb00BACTqBrFVCeA6LVWLXN7vw6WGs1w5PC6aByRcvPPIobxn3QELl/ifE9i\nVlDG1ZFC+HQFcYhXlWLwoOcrBsvdg6F8zDh3jszwRb0cNELPtDTAUzep0dJ6\nHxTgn2NQwIhVPLzAIU6QWldrY/E/ia8xPkjmwm7J4Pa35XAgHQngeDA3C8Pd\n6LLGhzq9NAAsoM919gg94DB1k3eq2K5K48nWLfF7w1r2616OF63xTo1Owt0n\nMXNWi4XpAarANT1mY+oCetgExkSRjQiOqiFGWpka2iSzPe36T0vRPbAoj89n\nf5iPDLJwWlVCESZgpB/VWpicplog7YDl1Kle8rfCosZ7UdFaoJbHQ/Wcxxl2\nW09S3HMzici8mWEyY9DJ2dkZDGokQhjzXRXOMF2CTjAOzV65zdAcl+NxTzIA\nJ4lC\r\n=l6WS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHb8PMhde7BsI2GpEnAtb6FP9Q0XnsMntDqkCk/n6oJVAiEA6XJ8o/74OFEWbCfpqMwbcvkiO2TEwYxmrgzDZr8SNDI="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-7_1614386982652_0.7073993297253331"},"_hasShrinkwrap":false},"0.0.8-8":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-8","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-8","dist":{"shasum":"68345c65732110640f7b1901a112899e829dea25","integrity":"sha512-3qsQiLWRXC+eimWzct+wTyCVbGG3koMzyvob6JzVFyiAeKOQObjiBDSBA6rYmCsarv1McWSmLWaUS0BZCExSWg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-8.tgz","fileCount":30,"unpackedSize":8641850,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPVBzCRA9TVsSAnZWagAAac4P/R0Xb6ep/rKmOQAMD5aQ\n9RxV7JNUrIP/Vv8yUEyz55ep0+rylZeHUFMdy4XCSknuAA23XFlTdAH3fUUz\nxQ5l6qo/NcqJ9AnafRfERaw73I7TZyHZ/ibGHWVks2ANLiUnhE/+W4KkzWZK\nESJhpFGY4piro/QyCjgUF8ZbdIEQGGJ00QdoeTkV8UL6AlyZBQT+k7o2FQlx\nqhV2+m4JzwKE3ZRTL+SiM+qRvj4GNNw6q1fcMD570PpIxbfPs793i7o2KVo6\nDg1voYPHH38AWrBTFKYKmHipXnU7um1TrpfWO7NViTX+EMZU2mOxxk0YuuCM\nsyVh09dBsjryd0RI04gReOEzDJQhgHUkxK37T1ZG/oYMTC33r78SjvKbl33V\nssZnFneO197WAT3YOP+XwatwE24aS1otOnvLBiWP0nvBxvqyUrLq+P++zIgJ\nQn8tq6J60N0fHoRM8GrNMBC5vtqkvaMZWs05FWBXVMIHzs1Uy5eTIpLLY2kG\nu/NHwSuUjW462RJ/gTrvjFn84td7jEDqVK9wQh3BMfyxaoC+Zsa7VALGtN9d\nwL157CS5I2oUFOyXP32gF2W3eoZoAouV3qnEfCdwOraGPHf9oyA3YgFMZc97\nukvuvLyaXd9FemlIklYu6kcb3IpfeQX6lshdiAjlSxfaUPyT2E23Z1r7236b\n4Fka\r\n=AtAQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG4uEqRN8SSg+qN72s9B0qgp4eMaQGS/owq9korK683/AiAijex627KraGwQgHibp/GV9IqyyI2QxIwrDulQpKy0VQ=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-8_1614631026601_0.9441262020771846"},"_hasShrinkwrap":false},"0.0.8-9":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-9","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-9","dist":{"shasum":"eddcc02989965ab89f69fb177cc74ac10efdbdec","integrity":"sha512-CNTjWVBDvDHVDzGNkaKzLc0wpyBuGhW6dwPODwG5p6wRlOWxAWPtqDEtYJQGYHr+MbUzWiM5fOgkW3ZOPVJfNg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-9.tgz","fileCount":30,"unpackedSize":8642087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPWImCRA9TVsSAnZWagAAr7UQAIqm0/s5Jk/dPqBGwMfg\njoFhqGTLOfSSMtNQWXB9IuqylphIFMFISCHwPtdl2YHxcv9UIu5lkKMyMMwp\nelQcPzmBWxhCEbThp6fjgn/A03ZDHlWmerg2QF7ybnBFo8M5Xq4v+CyVp7od\ntDZwVavdmQon9O5f99M8j+bVaS7+StzU3E9X8FQdSWHyUdbjH76l7/tuCBQa\nFmJgHzWw4bS/vxg2NHbrnZDJN85eTaT3fCn3AtoQfyePgxPCx1HXi3zLfXw6\ntGPySUDpo41QCDwox3YO4JpL3tv3kWWHSHUp84NsN+qvXBiYDXaZ8U6v2BpJ\n5KesrUcIAJLNK3ktVJAZIFIHBdM+2TvL04xZjJLAjZntFRgeuXT8v3a4oF7c\nbWh+a2GcKx5GAZSGK0bc3ul5ZflF9G3hipttqrO/rPqgR4MRQNEHJijilbXm\nCZN0EQJJ0E6wn66JHBDk5rIk/sUG5LKLt1lz+RnVFTSbmObMoGRWf4UWJzqg\nzvm9oeWRvyMaRJWB8tAcGXFqqMa8TXCxs2nUB5WqfGR62kH1yBVkcXrC9vJ5\nF5fAsu46xVbOUMIaGe1d2Yu6rZOb4V8hpLcjlpzaBn+AdX02SXxuDnGQ+xAc\n183WAtbYvE1da60h1u2tE7EihHWlXYGCdruCbo2289pYBfToX8s/HJ2Sp38O\nb5sf\r\n=6jaE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyAv8EVreSFGyIGtHLQ1cxD4oiOIq69ZnRRKPKr1QIPQIhAN/VnH7S64oMWkZOMwVACICs+kJAa3qpk6Nw23m2E0bw"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-9_1614635558326_0.8539616208042049"},"_hasShrinkwrap":false},"0.0.8-10":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-10","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-10","dist":{"shasum":"739b18c4e96f4ec786d05de07613295784103236","integrity":"sha512-YIlvFQxb66vvNXz67HiR+kr+qyjR+TEJ8Qcqp70dbVV/Eug6DaBvj6BVYwTaroPrylqQ2YyW5T6Rq15UH5xODw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-10.tgz","fileCount":30,"unpackedSize":8657731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVEUrCRA9TVsSAnZWagAAIpwQAJLWq8iiWVR2w7+f5PI0\n36Xte4WRxV1sUHJtFOUzyzqrbb4SHtAmDw9bqVvRyvgiZxyxQc/AxKRZBTHw\nv3FMoBX+e4CfQDkZ1LR0yD19brKGEsGXVQmGbqhtMevub/O8j9/mGl4o667a\nFwnfBLRAKPV+bjv7rJaF+Sh2Pgac8XZCP3M/HpYkExM3GcypVpFvvyD+ii2o\nXUKtWyj2UO8LiRXXRQvZzCPdYH6bFX7B7ShiPTrJTdWjLMbL0Z9VwM8uwz2G\ndp+Q1YtEZaYuw9ZJceW0pKUnOQbhNCyJpFNRpJ+6p9VVLXn6+dT+9+uJH86i\njkUso1+NMrTlVZl7ElU6/qt2sAG58R7yUY97gLQMX+Yp+BY0V3CXSmH6QP8a\nSkp84oBe6P3dr+UW17x7pDuSIMk8iwDZcX3sADd7AaORc/76WDtGm13gy6f7\nS5aAyMmQg8hTd8qGwi7VZTOwxEvqJ5sL55p7lXGzYDf/J0B2U3X6YHB0uQkM\nPXl7gKPjtQXogcL4XhFSrQtShA6Ng2kQaQxW0nmkcHHFCbwbYLtfanTp6bpc\nPbAfNvvlDnuPnV1g3xUqpBfTcZK8sViaz0hlYBxl300FUCMmXq3qpe+7lJgZ\nZm4Aq2oqAxaOtG8bw3FdCB1m1j95gybSnNeCYX52XIuqR2SJJc5LH4HBdCrK\nGqVH\r\n=gsBo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFWebrzVB7jQ9ZTCGGuNTipQRiDImWDbXBItejO93Me7AiAJZbs17rBkwnXLBSVcr/iKTAeG5dgOZg7Z/KBHuLR7HA=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-10_1616135466675_0.35965608687959105"},"_hasShrinkwrap":false},"0.0.8-11":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-11","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-11","dist":{"shasum":"e20d2db2aaa9112817a46394fd52451e34883963","integrity":"sha512-SVTjuv1VFnCkkoImkz7TN6j/QopIHIdpghF2lDCnJthhc+INv9/E19CG+ePFKxI/ktrngDzDrvdSh7uLsr51Iw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-11.tgz","fileCount":30,"unpackedSize":8663531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXCP6CRA9TVsSAnZWagAAxQoP/1Pvx+FoIPXJwI277LAJ\nMUTOQjOhqYRTBb6U3PbC+hTBaXUrjWbZE7qXhKRpl/mckfyFxosR17B2Pxdh\nbgoC7m042fTM89gTHyc/ZEVZ+yo66frAuD3o8Ki1EEZCsZBcQRTcyNaXeBqS\nkjuEGyiFKiJkeNAys6ilN7vVZlRnYShkkPKywRkMYsl7zTM0Yrd1osW9n559\nLYdztwHboEeIcRk1b9sEOm8Hj2Ep84GSfyvlnpCbPtAwqYEnoWiqkP3hN7Q9\nMg8lpYxeU4kPa0SZkPIX3NU5McLxs4CwnbvILzXObTtt0ZFUgThLBdQjKxbX\nMs6YDGDt+FsfFP3wb6ilvjd2K8LrxCnYSnU/mqQhVyb4VwwLsaG0j0tl0ejA\naLN1lE1yELa5XX2jeffNKKWyz+vKo7lZhHh+Uj2bAOESqdOAJRKN+0TGgMJu\nBROIlWiYVjyhx/y+XOM81+Xchs6uixJ5YnwjcG45M5D6r5zpeMtU35eKiA2B\n9cHuOZvnBB+8vJu6FFT5mdpCMKQ3EvuLTevI6M5CR3pMnda4HA15DuxOAVBY\nOv43qb4obRbGtOQCzyLqGURwiD+ragR8Zd1q/9eOlbaw2HCMUyQP0vK7ic5Q\n2cK0LmMFd7Rzwxcn0Bql7kdHVbfNB7dp7uwfv5vFG3PGdt+E8ML72Rr9TWKY\nTpRu\r\n=wybX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQCVTPewjGfeLPGIhhF88IRNkecmqHVJQ0sWpcK+n+gAiEA8Tu2pb7pIW5Gu4hxtFzIQiSzd2tB2ydEt93LBhKPIGo="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-11_1616651257672_0.06580688030945558"},"_hasShrinkwrap":false},"0.0.8-12":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-12","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-12","dist":{"shasum":"eae0fe395105553357d4c02bdf7d53edd6c0e469","integrity":"sha512-FzMWScm0QO/Rpx2Qnmgiy0FSTw/uxSaZwZbztVqN2nqDR4nQofKQJpmXoNh/hJ66eci6dpUtxJwPaN3t1Dfodw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-12.tgz","fileCount":30,"unpackedSize":8663491,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYr1XCRA9TVsSAnZWagAAK7QP/006La63URHmnz9ppFTA\n0KOv3xiWeTouedMdZgR50EcdDZSJn6K5Xc4P68Nyh9LCbmqg4rKCu7RjCgN2\nVgUAkPbYCmCOBr/70kRxWTX/jtI6vOaHz7oiKDHrwFcIzqJo2Bs8fAYuasVp\nh744ydCWDcw8IFvdFpPHTcdeMibl8T+gSAgwJCXeYwOIEHJYtVYmHio5pOvh\noXdGA8pIG0tePPeQRm+yk5FrL7uyE4ICwTfMs11NYSmyt18KpWl/qNX+WX1I\nrKIh6joSkHfTfTAo9oJnHLQ3FX4skaNhs/NhLK1d1+WeyT6Mcxs+9ODH5F5b\ngusfDRqf3CfMEWjKJh6OxG0UYX4l6Ak/q7LG8uhgbQAixlGtfhWwhmz4QmUa\nXHCj3kYJm2OvTqXKCbUWmPyC00E5JCRXXKwWMElbjRLxSlgtPJ31DGViw8Cu\nPV08mQUXuusr+FmQStLag84DlFEWX7o2rq/Alxf/IpfL+951Mb20uGtPKEsP\nHVfFeDrXSZ/fczxsxLotoIyIjlxkJCRVv6Dfv4XnjcPhuS/ed2Pob+Er12ec\nE8JkkBF6q//4YiCmE6qQ1UGTgAlAYdrbWetciInvyXkx0X050tmJe06eMEGO\niaPNn90xiqQ6/3GmrVaE6xuYJXfRqL2xNT1HDb27fGbqqtR8g2B9WCl2B5E7\nuM0X\r\n=3/3j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJPZux9HxPxT100R2y0rMeptF+1GvlFXlrxF6Fn1RrkQIhAL3yZBN2UmxyfAoYKEHbxt1nfemdb2c9/sl/Gih9ehhM"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-12_1617083734975_0.04444656977849548"},"_hasShrinkwrap":false},"0.0.8-13":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-13","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-13","dist":{"shasum":"ce1b3ddc7b4eda42cff66967b9b299e4853d356d","integrity":"sha512-64WQSNw8D8+Defe8zNAgxDiWE78kdUf/L1bsV3VDykMplZnr0UbphJe/JD1uHtlzFGwWFOSJZ5k3qvyFgRE49g==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-13.tgz","fileCount":30,"unpackedSize":8669047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZj63CRA9TVsSAnZWagAAaN0P+gOftm5WIt8S0jKlLplS\nDCtKO8DBZAfBGo/PNqzYFmd9jSBVPySjNur5PAJytv4dGzcOjSW5mcwXJyeh\n3LryUCK2J3+lb1ZmexyeRhY+i7Q6QR5DGJocYjPOafGe2kuknc02DZEgQxRD\nz7gv7ss9eVFOXNdK5g1ZtyUJOX6qSme6PYPOB1YrA9HlelVDy/wE28oJ/OGn\nxyD6b1/l8tDwy385LLUeMTAZGrj6QmTKtQVbpixw9M40luCiGXY1VIevJZlM\nZOrhxGLJC91/+AnLWLqWlZc8od2Nkt/7ac6f8Eqgq4MD+1RTJTBG7Qq6JT+/\ndlfV+EtBP1W+BAG7YF0GwZu49j9MiHUaWkoAlEQlTnwu6vrwSPPSYDeH4h4B\nWghRzqF9pxJDbavOGFYAL4Zlp2ZRzJ5tOeHp/Fsc7uP5e6qJDctZPxwpXlJR\n1YVzpXNHjxk1OjCMoAptKvNz6PRgs3HMHpwC3Hyyw358YBSgOc10T903fl9k\nYwsIZjJaMYvCt9qoGpsUakjTBBxSEndvefbxRevkj/k5a7No7Lpm45jNPs5b\ndnWGWumnETwl6ncup+CYptPky0PJisr3bx27KOMET3KCjTZ3rqSufxqLBS7c\nWt79wW+/2Lr8aAQF0L50xPVgEH7+YVzQAAAb+QNKrQTYpLJmnAy4K4qLgMOz\nQ6Ze\r\n=xsa2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsswyZZnUZFP7kcDjD2Aa6Omug1bqWB+9/XARvF4Hg1AIhANpZvKQluwZAVcuN1TeT3WbeqeqHHrss7JZfyWDgxQbP"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-13_1617313462439_0.11901210580860777"},"_hasShrinkwrap":false},"0.0.8-14":{"name":"@telosnetwork/telosevm-js","version":"0.0.8-14","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\n\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  tlosContract: evmContractAccount,\n\n  // Enter your own private keys (examples provided)\n  tlosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByEosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.0.8-14","dist":{"shasum":"5dda7d2319874547c2ea499f368397ccb088f8e0","integrity":"sha512-UbQOkDMlHyn1pRs+IVNUvXpI2VSWxF5RKjyXlJUGsE3xcTp3nMeJmqBDjXd4RjrgWGB7EgMEOrEwbmVH0W4w4A==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.0.8-14.tgz","fileCount":30,"unpackedSize":8671165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZj9aCRA9TVsSAnZWagAAAxwP/Ap56tpp6A+fB2FQ7VNE\nIq/lOSY+Avp4wfcz6HXp8gPnZPqFW4ssymj10JRkqO7hVm95ajhGv+5qW4pl\nYtylg2PdUbMhWzM7p+8cT9tM8inWJbU6L5I11g5TcgsrVOyj7pLW+X0uns0S\nTKHGyh93kdJ3DUoRdLj3isBtvCCe3gqxKykZlRFWFEn6VY6q9O/HOpFIXm9a\nweoQzPWt+ODO89aaicDG534ZpdItmazINO535CC0PCl7lk01jJBAivyke3Nj\nkoObmya8yPFbxr4ZYcK5uKaXhPyw5yTW3FlRZxaZfOUjVsdUrGj7C881ouiz\nzhgI8T3szSkgPSjwQur/JEDff/nhuEueKf56XMWB+puSUZaOLJexC5kAX8XG\nhyj855ZInTHCFf+tQWY2t71YcTIUOXtszedC8qnCKFdy6INZxFnmKaFxW/As\nFldKvAk6yLI1r04xkCqGkcct4Uz2LmOFqprL4zgoXUkZtV+ulCIoDoso6qnP\njU24QfqoaoMHFq7Aej5JjIIFiGLVBcI0lirHkD0ycGVs5Lb+7MuQ94XTG129\nzKZcGgIbDhw189a4VW2SW29NBejIaSg1zA4yNEzrPe9ajlegq0JloQewvEL8\nW6lNLzfkoHPDPxfpNuBWtPmhmNvYuJe/0bnG//+Ycm1iwtpRlfIJa/lOZyEY\ny0N+\r\n=z7mL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDz4FkKT+drHyFjbbamB7gPoy2sytqVimEu9CWqlIqCrwIgbPKAwZnBI+3ha30iYguaUo0qVMYhFgmhdSXL9Sym22s="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.0.8-14_1617313625744_0.3286215703174087"},"_hasShrinkwrap":false},"0.1.0":{"name":"@telosnetwork/telosevm-js","version":"0.1.0","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.0","dist":{"shasum":"bdf85d3916cd01ffe63b1ec6bcf5f663178273e3","integrity":"sha512-2uDUJ37Q72QrsQkcP7V7kIafBnTC/eMrOd6W0850ZBKFKud/wTNz0002hSGR5gfuH0F3yILW4FwLJvS9IQjZqQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.0.tgz","fileCount":30,"unpackedSize":8671210,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgb1ugCRA9TVsSAnZWagAACLIP/2olkdcz2BkoZNZ0zsYI\n79cCOxVlnsrsFqpn8Qm0refTmIKjBy/5gCBzvf3BCmJSQRgbpXq+V7Cw3Zqt\nlZgMPFOfz0wEk8qHg5iRJyb2e1NR6qT8Weg/FLXbX0wTFOuBJf11bv3sQYW4\n7X6RIRnp4fVCRTOW/Yi3V/id5RogdKn5lIcXELNvR3DIdw1iuvL6JjLjiPyx\nNkK4pxjl0ce30WLPzBoipqwmJifb7Ei5cKwrGuqx5dPe6ZGoU6DikU7u9T0F\nXNd2USqnocOzMeAE1eeWPW2y5zUH2eix/qncWg5d99zro0+x5Ci6jym9mkxe\nTrV6nOY5HWTrdp3KS9TpUlWCueAhOc2XmS/kFLefiEMbAXWHO4LugwKmi6B6\nlcXwsJZJUQzkK7cUT4Tf3nNIqf2NOF4zERUPza0vfFyAo0UkkDghn3bpM4bV\ngIN6fov4ozU/5UZOADbN6j+NT4EKcNToqfzZh5ofwNE/HfCAjx/Ip6O2ZR+j\nWEiPN5O4+5uihVMsa/iJVrLmT438ORiC2kQy4kDCya2ZEcbIScbAyBTddfwE\nKYtLaYFXsn4D341hsRonYjRG0Cr/P5ZOmnRxQV++pW1tkuejOANP+9/xt6KY\n9U/fOH+0DFVgNiUJsV9+A0OBzCoOrjwVV7K8vyTHEVfAg8DL7tADaQmX4cOh\ntlQ7\r\n=AFU8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQmDtyjoBnCQiMyNjJbp+tDTqrMJcdvR/Y4/anG1aIAAIhAIEPTs9FBzlH9Xmbx/nY/GdjXXA1FHKL98P2viDcxg01"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.0_1617910687783_0.6289674970655617"},"_hasShrinkwrap":false},"0.1.1-0":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-0","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-0","dist":{"shasum":"a8c0569b9b59b9ed0da2952ca41f425781d1b57d","integrity":"sha512-IYaZo+gaMWl768s3KVHo2agRw0CwdBEm/puecDgiDb5nXUfRvf2j2T5lPJnQzCOV1DbArVq8QJiju3wn36ZDmA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-0.tgz","fileCount":30,"unpackedSize":9585067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3J7oCRA9TVsSAnZWagAAKDcP/2aCTMO+E/MX08Cloa52\nENpmi5nwnee5iyeSVD5457PkRNlUTotbLCYAK0O50gh1A43HZhQNtCgLy84J\nv9rrZRlm97buZHqja6S8u55Fjg4yGW9cSZBIgVzkvONOzB6zswmaBqK4yjP+\n9MKLWaT8xqedvFM07XdfSHB8ZhQQRVTUUR1YIAKQmkvmK5PBYAR8GWdXZEyU\nGZmkrn+THR/0tk8cZTsFT+jFRmP6zrf9ZcwLcgYKMVnelaGHH1QpNBs5XVGv\naSymNAJtdz/VisPNr8beNHtJqyc6KFBoJUms9NCfH8qg5SWXysf3TVcJ1Y3v\nBepMDJ+eZiYC33Suhozlt6PEvrnTiCNEgp6Kaunxr7eQKcYohqCAba/F864h\nXwC7SSODBUKGqVpv99exPLKf37SrVei3tCXd2680E4YY2ytNGqwc+UgFic0Z\nji07hG2KolarEMd4yZuVXqc6zlLnNnMRRtGE4wlSTU8Jv8BjzG8WBjQ/vaeG\nusLduhvCi7Mw2nUUTxoKjJx77KcKBJiCSWGNYt/k9VUPurEhAc3KpDvuXrWj\nWTyDyJWGe4AxWE+RBNRhyUhgy+RrYrRHneKwfufjCM8OEjcInF/+eI/3hBHn\n/s66WKS6lEfXrQaakqfrtdeb7Ze7okGbRw2Z0+stWG1wkJPxByx2gC/s3xzy\nf9iW\r\n=eJ4z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnog1yzFrluGn4+2Ufpg9Dg0TxL6lt6kUkhjmJ8RU4dAiEArIhrfNgdsdvxOknbV6QafQpVrVQIQrqXLqxRV1f3bEI="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-0_1625071336270_0.24033775287334236"},"_hasShrinkwrap":false},"0.1.1-1":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-1","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-1","dist":{"shasum":"cd65cc8d5e93c85167bf830f15b231de08b4b028","integrity":"sha512-UJi529SgGIrXXPF27u9l89N8FwuLRcmoEw8wEad9Qrb7S3+j6ZsXGUoBupWoEWJYtlezMefNj9U9mKop7T0BJg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-1.tgz","fileCount":30,"unpackedSize":9307537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3KCqCRA9TVsSAnZWagAA/8sP/161DcRlgl+xZPenHpxc\n4DAd77Un3TTAI80OEyk+q5s/Iv7Duh+phI5htZ0bt/MIMFCKLYeixQypxSPq\nRr6q/kfMhwOFwvaS4YV2x3lymRzK6fZhs/H6rOFCK3xErnnE56E/+F9YfDfj\nZ/9sWImbU9/pqLEJRuQfCtYn5E3ogpM8IB5txhI9j2ncyy1g8nUn1+SmLqiS\nnmIX+kKS2vCzslm98WyA8qyfUxLvmRstU4nIdwp6AOyfalnDg+io4nosDfNe\nxNKpIv01v0iFAH337FAlbnJES1flvugwIEt53nIEYkbj/bRTFiSNGG2140YI\nj+7LlDBDJr82s2Jnvurr07xTneDgohNnZh5SgHo0HR8n8tK7TZwwos1Waz45\ng2fZlHUNU8pkJKPcVvWKyYwK74SDRH6l1W6xnFyAFm8dOrpHvnOKZdl5ygD/\nsvQ6v0xQZ7VJh3Uw3L7mPNI3fViuIEZ2WoRMEO5GAnfkQVfVHchCZj56UGuM\nE1zda2ybG4Q5aNrggb5lBeeFvVRKatGeDkglnwjzhk8TvPCnGk6ez1dcSOXy\nqsOWBy7hz667Noz2M0lgCx9C4t7aWLjwDt2omx6MIyMq4V119wsmr1Ainj1c\nOMrWm64iA4FVoHbXnvgzZ4JlDRsIZXgoE0y2ffjvRcAe/05JntPb1k83sT6p\n838M\r\n=CQ3b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC30sMSSz0j1cxymrxRhDl1qygmBsAGAiWF51ekpdBuAQIgSmcedVmhhZJIMxp2ygFMIkQfhCq/BMk+6iN+inpwuW0="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-1_1625071785929_0.7177849329982893"},"_hasShrinkwrap":false},"0.1.1-2":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-2","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-2","dist":{"shasum":"daa2e9a7aaa04a688f756fbeb8d1e50643cb4e91","integrity":"sha512-TRAEY6WWlMVzm9nQKMddfHp97QBKqWDctRR+K4cNK9Tjkf0ApkwyV0CVyki0VbOf91nY9FJ0yZCwVh7PiKxhtA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-2.tgz","fileCount":30,"unpackedSize":9307537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3KGcCRA9TVsSAnZWagAAIC4P/0MheUMw9M1sHXzofpCE\nhUlDWxoTFKXqT2xFmhY6rkB7fIR+zyKF/vM4gsmetQeOu/2XEm0CkULllwOL\n7uuTDYiieVWb3CqNDtRyWCzoIdlQ7gJeImWvFVS4ElvaJngf3Ra8zVuaWyFO\n5+P4J7jLd2z0c6C3RSqAeZro7OZZ6AW6woW5G8dnyuU8ru4PgMP1IvCKGegn\neIRg2fCnCh5LqJ6MmJSkEFUjiKR3pHy+zF+MgDwAEBV5tORgckCb24j9fo1Y\nDPqISayvlGxJWVJEdYfKBFnv7gd8UUfzQYI8h/fZS02/E4dWEoUkyb4j3aG/\nsdsRMhZOr0dxighwc2F0+XrNLqTZ00pqhwqemkuKYEa2PPqQ86wSGBQ3eWSp\nEu3jUTPjHA/3FQ14BodE/J5VQ3KIRjeKWod2urxm982ENqf7sRrH3CVWreiK\nsh3h3FAY6DsNTO7dph+TyPFT4R5FP5qJNrFmQdkJvyIO0iB+ra/6HHs5C2nC\nn0MBJ0YvT0N/nFuw9lkSxdRGLXD0oEkdLSi7D2plPBidF6+EqpEPaEm+UST5\n2PZnuzUkOcqW07/vERhoKVa1exGjotYzqGoTZFnKOYAqxrlc6ofzv2kPPu/F\nxs22pR4p9/vlWRiXaw7P567Hb+Zj1AhgPDR4wsCyv4J+ftzhtGdjNGdofj0J\nAcLn\r\n=QoL/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9mBT33iwdkcZ7UXK/Cuz0wdX/OaA+6+kGItZbp3vOlwIgbb7vM/YJ3RlorpGW0XeMePiUrE3OhiwkfZiyUkmaxNU="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-2_1625072027718_0.8377231855327854"},"_hasShrinkwrap":false},"0.1.1-3":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-3","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-3","dist":{"shasum":"dea00748c1527439bb226ace3529df09307f5ea2","integrity":"sha512-7myPlZSr0s1IqDq7uCRY/nmUXf7DxXlchqKdQO7pJRcYQMV437YvGphu8TFq0YkzEPE+TyfZpW1q0PkSMEHIrg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-3.tgz","fileCount":30,"unpackedSize":9307546,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3KMVCRA9TVsSAnZWagAAosMQAJ3HnJvD7LQr7LX9bWfd\nbN0xq3dtAG5nXuAqwiDBdRHi5ER74uPYg6UDVC9cAiyPYcFwi211X6iJzmvL\nN5LdMwlF3JQd4kTUQ88ykyqeC9oSn+o2+yUKCh69pjXmagQgAGpuFW0hnTPF\nYaeTLmoeAF+BY31C+NO5wjhJkWqJ0ZOCT052u23UDIvVTitE2YqeZhTQ2VOP\nO++4FOs1yVXm0zWK9f4jMKUUBXHZSFJ35KCz/carbkRz+dCZxaxw6/9moLnX\nXwvQ2pZ/qKg7iKuT2Ep2pwkuWKSxx4oysuvPndfTiHvTA6bSpdnsuJ10Fd9/\n8oX4Be1hOZfvCG1jvDt646KrSVKDA4Iw6h/vITtL8ff5rWTBxzrRke7b6NyA\nIqmobr+etYC8X/WNzdIkQAvim9pj6+FfcVM2dFCOTxj/d8iM42Ru2X5yCSjL\nhqiIuCgQEghwGYGn+tHqJ6HAVi7Tzxq+DOjoJimu2c2B1S/Hwp0fuVKjvNHx\ncJcRGbn52ezhD+BZ9TPJhXakJtgdNUIg9Mb4DLr0V7spwKYXUZQyUuTLNXaa\nVAdLtKMiwHs6G3HoI9zLUkp83vdRUmJE6wwpG8OlPD+z1hy/rVIfHhZjrFYZ\nmtNsEKCWrhm7jdvT+5ImWJu1ln7nt3kMxdaVIfU5oFGb4zySndEdBSv0OV7N\nd1dE\r\n=lVOI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAM2O2Q+Jqw7Lw8eFDb4q8jev4kH2pbefTBEc6J6BlJKAiEAmTURqkiwJhiqd4w2tNprFfvxnIzF1Ua3ZpXZlxrqmw8="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-3_1625072405123_0.33780354485922715"},"_hasShrinkwrap":false},"0.1.1-4":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-4","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-4","dist":{"shasum":"7ea138bb48bd12814212157a912493a7cedb1e2a","integrity":"sha512-aBrhMw9nc1BG4kCaXlpX8GU+OUMRpMKXruQ2PgS43SJReveuROVQgPkMKoOn7Wg9BOtGRNQ56gp7SrN9ldl/jA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-4.tgz","fileCount":30,"unpackedSize":9307620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3KUgCRA9TVsSAnZWagAAORUP/RmUts83STqhyRNjTvL+\nKH6+UXxnPVlymJG3xr9pEcey4DX99UO0ABrGfU19f9MiHlQQc5m12zoeRJkN\ntnrz1Un1DrF+zvdIHGUiszpv57H+KIg1g6dYcbqF5/3BFGWYHqlUPlGpslVB\nKfyg8OeJOThLB8vjHHeMHr3mgQ+ROriHGOtswf7Q8Wtpi14T44FdukKb5R/z\nIWNwocJNY3+WD7v9Gxo4IxovtM8faaRqmwFzU9dtY4fL6ox+TFlGbpRPEyLI\nxfJDWFbV7KpdZlHoaqoQAhH1ff43UtzUgUrqp/zs7A0G9PSP6HzNKqeOh6/T\nfZ9T6MdZmZ23A0/rJHAztnjQp84QzV3/g0GJUCgpTOv3hXx4hsMyWo7YH5qe\nwdrsMd4MCPMKBisG94MqfQc4x6IOazhbAdnfHs3/bJm6w7G35PF1n+8j5R8j\nQrSMwZOOXIVjwE97QMN1CzeX+nBR0Edj0I9hg+O/wWqfyvKCuG321iBAwLxR\nwMtWMpPBJrA7gyCdJOrN68ebTjeoInvAOMySMOMH0yZnwjKsayJDNNulfhBx\n87HxA1GtAIGsIDTLpGdDq/ZWWF8dFvLIUPy1C7XvnCgMRmksC34/BL/a6+Gu\nRze3uIJDUwJwJIOsgY91cp7KLzM3uwgH1pcJRgAVst4d6bV/FTuuzhlBjd1p\nCTCl\r\n=iv5r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3vY9qhXbHFBlzWLYadgXP593ysPJ5aWmUESGHmbqnrAIgFJbZbL6IuGZbE4EFWEKFHAHMpgNBhr6F2OZZUP+iPrU="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-4_1625072928357_0.9727474479739879"},"_hasShrinkwrap":false},"0.1.1-5":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-5","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-5","dist":{"shasum":"c1e798d4457de099f68ffdd4e70350f64964c5d0","integrity":"sha512-j5JewyHOT/8VlwOcESWk4zyeXrGCT6Awtr6PxtWR1eYEUUc4g18/UnoTiCMxGD70ZpNDq4+LFoXTPROBobo2mg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-5.tgz","fileCount":30,"unpackedSize":9769289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3K0LCRA9TVsSAnZWagAAir8P/A4pu8dbOEZb+3u67xMS\nV1Sbk6J73pM/r9LpyZNkMBeYYQUaDazD/d47QqStB4FUoah0GhH//2LfWN0Z\nlS+ZtN4stLHs8ifH48xIV/Rduc621mNOFRhRCdC7qOXRstHtwEFSFNih8zgi\nynRTeXxLYicJDUzqxJkevrzG0bZWQmGt2A9srzPg6B7p9zsjQmK49uBtLESN\nSdoAuxMU2MQp3WjmH2+bfL90KehrJ4HAzgdrltFvr0vHJVQEi0Sc8nIlw+cl\nh0dUe0u1JOhz/Z6X1PPj46NhZrRyrjQqnEG6j8SZn9hNOftslWc8YprLnIZ5\nUDXOdpMn0Ot/xc0GM3a+KS1qLLbfvZUpGxUXN11a4ZWXmO2/8wkZ7HPYS67D\n0aA6yyOVj8W+h6wgy0BexQ6LfqWnFtXmWoLz8/OiE6OGVCzM5OtJ7SvQ6GVO\nvqbc3L2ITz57xhq23JhRVoo/T0QebZplhcqgW3yJHMixHWchnFsstEl5MBPA\nShoEcTLzys6hIr0H0Hx8F9GtEMgtL7WZJCoUGQ3jfdC4dD7e8scxXOFnIoTV\nz1VotD1AaWDnqrA6Ygtt5cAKfDD7/32fTmccuhYQLBluzz06x1FVUEqyh+0m\na6477TLdKODQHhH1cDshSRYdS1oxB1BFvEo35Dy9BxOZqYUSH+vGbcwUq+pB\n77wg\r\n=Do0L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDVpqbMh7QhEP+Pmj+FuzUZdOTIpGhPcQlo7C5QqesRmAiAxVPhSv+URPsR6tqpMIOCfamXsYQn9gfvfZu3xtGzV7A=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-5_1625074954622_0.15935916655732774"},"_hasShrinkwrap":false},"0.1.1-6":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-6","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-6","dist":{"shasum":"69076a875828421055fc2761e911a3fe63a61f09","integrity":"sha512-O82Il/a9Vy0l90Nee3Nj1wtGHJJyDyukn3nO9fU40TbXuTUmDuBwgxSHgkY5v0t0hbxVuL09zeuLBjHXSei0aQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-6.tgz","fileCount":30,"unpackedSize":11910730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3K7DCRA9TVsSAnZWagAAMOgP/32+Kq6V5HwokT7EZBq/\n2N4tFKl3QY05Y2gbMFlEZjxmvEASzrkQUZU/HOrUbvW8DzVUrtnVH0bV/Xf8\np/vPk2cZeZ5eanl+6lJVbf+cp8xtHqsteZOLUx4UawQ/YgJcL24IjaU1lDY9\nxqRIlaC7T6qarodI+CbcCJ7G6PY9D3zXuZjbOUS+Dx6lPwxjli7gH+ZRru0W\nB36EqRBiBM4g4gqj0VGHYzpfFrcNmvAjeDTirdmEUodTRQmm4ni0zSF0ou4e\nGj1zw9KqtFjRpsX+6ijjcfT2//VIWZyESrFSsNwLbSvDApUSiTjB5UjJVykr\n7unJMUIg0GoFTmBBeTS1qk9yDxybftfQRkSHrE6tBwsJn5HvEHZznYoZ80C4\nKgy8RnJUM6heEeN+/pqjuYSc2Z0KTEUBtJ5s5P4cmQyTuBZxHBtg6OkEn0RI\nDM+LrZG4ACWVb8PAO7AFzFMZr8nH7/vrFwEbHPqHId5iINpwz2EXxKIoIgzU\nnU445zmGQdNO7+Q3QOHdAEby9TEqrXBRL3AtRsLvNbl89zE9VfjT4U1x1Ycj\nwBS36Pl4NJdeSVj0WRyV/1kUcgYYBAaZkOpQbuNv3QROdtetySM22se/H9HU\nKzHjCZ87h/DkjvMuxywWOProHCd1/bcV4TtSl+OuWhKDRHoWdb561V8FSPgm\nstSG\r\n=eaCh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYMMEsjEHU4mGdWWZHqk3yk6Knk6aj0lYmd822/jFeFAiEAoXDvR3ZSSUWKHI5yIgZFZXqEOtzPaEpO4cZhlLtHdQM="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-6_1625075395083_0.2414231410593699"},"_hasShrinkwrap":false},"0.1.0-7":{"name":"@telosnetwork/telosevm-js","version":"0.1.0-7","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-common":"^1.5.0","ethereumjs-tx":"2.1.2","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.0-7","dist":{"shasum":"91cc01f0dba5f1802d4ae6c6f443bb4c8e8b8ea2","integrity":"sha512-/6hBUepW705MntEpL6riml+wYDwSc0S/L4wYONUkait51aKVCgUkQdFiu1sjn5YN8hoX6heEx+OHf9neGyHTSg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.0-7.tgz","fileCount":30,"unpackedSize":8671239,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3grnCRA9TVsSAnZWagAArVUP/2mEbQHD930ZLrgBr4tu\ndXBXg/mgPyfZG4UhLcfP5nYH5fccBP5kolhx9UqICl4G/5uoCU5vz/DQ0Re3\nOgFdU+3rHvdkNHe+6lm0kmpEs24DkJ7h16Br2OfFTP9vgyttdnJs+U1pymlk\nmN80dskwzVrqwaVBNkLPs2TRrtZ2X6bI5u6VHn9ImrNNdV/4Q/k8DWBg0/Dt\nH4Oo44T3YNffNC8gq4VTDhBeltZjZ3GO027jkBU6dHcwKNfrtH2n1Glirw5u\n1wT+i9UMHxaNDYRAG4DSN14oDHe1wQ6u/8AFrwo2p/YaF632XxbHA59axim9\n33uaFeV4BPgD/K3iWlvPbpMuSe8PeaegRr/9JU63w+LKXABDLHrC+yP4GL30\nAiLBiRUIxAwRwcQenng5sda9aMRjTWHKmo94XSbjMc8iLi+X5rPNs9eAnkzG\nXyBfOioG83oX7TxJobZnavC8cw411ecu2OnvSDA0m7L/ruQXMx9sXh4xSqr1\nEQ6ibZ7CKAyU8M2pyazBTA3loTIC7gvdsrRFe33cYXdH8HVKLdgonSuEAHGJ\nnrCYg6PGvhkR/bIi3Y0DbXOEJTH6mTRLuGsmKaGtyeTMXbvIeIV1cdR08WZq\naaZbivY43/39UqkhbgIrpOCjc1dJ3UUHqA5EqMD2F8C9N7mDMB2mUwufJADR\nXP6t\r\n=bQly\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZtms+ZmVLPak/gKxqVWkSvZ/cisQ0BqPVprT4TqC7ZAiEA85RZUEYknci6nX/6EiWHkj/H1HdA/JEkKc32PYw/Jck="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.0-7_1625164519030_0.19988185817613147"},"_hasShrinkwrap":false},"0.1.1-8":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-8","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-8","dist":{"shasum":"4f33be51084cc9e3f3d0681bd25066b9f083445a","integrity":"sha512-MnJ9eWUmeW9eBcJxIXZAYizv1f6Xi6lH9zN4soTRLMs4ftoTIunI0M0zsLCwCWXxpIT/45iPgryPRQzmKdFrfA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-8.tgz","fileCount":30,"unpackedSize":8663711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3h7bCRA9TVsSAnZWagAAelgP/3y1YWfjFkvucuegiEc7\nop6R5/LdgeRFjrSBuxA9Ohy0Q03iQuyzd/iQbYlpsfiIizR8a2+61yTECNY3\nDtyIHwkOIaooeALVqt3mq73YSkUeHNnlUnCIxxlnGqYIw0+fiGP3QKWPlJzW\nLY5FGlKxJBJWWG2UyZMgm42xIJp8uRXK76MUESzbrHO+HKgC4qAHbmwVHdAT\n/6ct3WmtzDuh0qXD4ZlBviw1LAmJAIvD5sOuNsPWZjeJybKHwBVrrCkzMumI\nJddPa/xElOM1cnHquT5k2glm0GjelYSVuu8LNIdYQmucJf8N/aMi+n1QXKxQ\n5T1GS7G3wcoBOFGn0CQBVZ5ToIFyQmRW7N6q0sXUBuy9S+idmSIyqFadrgex\n1939BK6T9GFI/S+KZVAOTUf1n9fD+jVdSawNljma5Y9z+zHG0MvQGKTZGHQS\npPmdsQdS0huGhA0zZ8XtsC6z5xm9Ti+AmexW+2DgR/fgJ3LjoXLQEosEpPWo\nBExQAOZ33UZ0sx4IfheiRdlh5VSlsw/Zw1SGrZBsCpLkVenfQLkRhbJL1dH8\nY9NHtsKMAxzElcHGvxHcSOP/F/jZSoXJlS/lIESjnpCUTzAA2Zs/AMYBhZF3\nB8NGpX8CZFJ7cNmeUoT9B2iVMFFLmKhxwTzZuSo7/tzIum5mNneU5CWcVQcP\nTwfa\r\n=u7tO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICalJyayqX3ItQmHmDTYZv8jHc0Y2nv+GSskin9oEijFAiBXStJ1/mWoNYIgmw20twww4VbOZsDOZvVOKR/upuWeeg=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-8_1625169627254_0.8043806107935514"},"_hasShrinkwrap":false},"0.1.1-9":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-9","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^0.67.0","rollup-plugin-commonjs":"^9.1.8","rollup-plugin-copy":"^3.3.0","rollup-plugin-json":"^3.1.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.26.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-9","dist":{"shasum":"4ddff2ba0a1c80428e619d09af8ea36181a877c5","integrity":"sha512-VnmRLOL7UvwuBiGGHy6xLJgV4qcmgvNd+J1W2RH3k6i6jQmBX5GPK8pRHxqy/r7Qsh/Wie1SDPBu9g6Gcy2Vrw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-9.tgz","fileCount":30,"unpackedSize":8672319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3iJECRA9TVsSAnZWagAAQ6cP/REf8QQOe9uuSEmbzLqO\npKoPM+G6pYE/R67maYoLWQnN1ZED9mQoDoJMVGriQ4rRSLVkxHzUda0VULW3\n/HU2c0/zj1ch7JU1h+i9hsdcry+NuTDDgbJ4ZoEmJa+vXRuuC2tN3oi9OMIX\nF4BOP1/YEl+q3NV2iqFO2tltU7R1T8VYSI4EAhGSJLmRrU5Z2JtvTQ6RgBz7\n5nDY45LpBoscGK1UN0IxyafIx1BxkssNazY9lImX86m5BEHNXENLHdre0mhR\nERhFtc8XoXaC19jODb09De2Ag4dxNwev5D9a7p5z904brLrgY1lTJBRwd355\nJzSm63spVm0iKOaYWBTEVf4Ghz31Sa4xjC4wDmahk9ill7wg4te15JQb2iVF\nGKgY4C97VuG4lvgbWPP/7zTYPzGW10zxmTbnsB2CTH9KYHY1ID9TzWL8GMYL\nRQMPK4SdHFiuKFOLvuCYkU5rFap1IyUOijzWvKWI6wm/+XnpivG4ePeHDCuJ\nGsKDC2hXhtRlqDhwruHaLXHanFjJ3KMBolaQhjrsWndfNwhjt0cTm5eWuY3v\nh8bM3Qvr5l0zqSXtpWtajI8oQOgn15WdMXB8qoJYR/LWCRKWH4bXXBn+1neX\nxQQqSsL8WT0EjQhxbQCbBc1jpQxBa1kwG/hiLsRJpWSQhW9IAqpRPEn07+Ul\nq3uv\r\n=SJYF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKsbiKC4LkA1ewm7jZ6YdLJ8hzxB1qkdVIEJYnySo+7AIhAP20igqEuFTqyece5yLhAp0+4VFYNS9ItEocS5GH42X8"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-9_1625170499868_0.6318874720812795"},"_hasShrinkwrap":false},"0.1.1-10":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-10","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^2.52.6","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-sourcemaps":"^0.6.3","rollup-plugin-typescript2":"^0.30.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-10","dist":{"shasum":"f673689600694cb781c8fd6f5df8b64d1a7179ea","integrity":"sha512-HDNIlChNGbdUW0t0E8N3JLa2HCbV9wSuqcmwc8a4GUd6LrlB9NOxy79E3K5Sylasba143REXcQhLeL+2jRzvRw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-10.tgz","fileCount":30,"unpackedSize":9415105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3idVCRA9TVsSAnZWagAA6IwQAIinUC30O/JcL5GQlDB1\nuWF4YEOr7PEqgqH6fRSp6rUieJggh11nwS6w7MICLh122o/njBYr+JwjrROC\nOsyNHre8Vrjq3hyX8RfPTkUBWRDdeFBH3IrWefb9GHRQur9qwKNYqZR8opWl\n5O26ExTcB34bX1jG0zgLR58AvwEcr2kuApl6XNJCPs02cSEQ+R4Q0idQQ1yR\n+ADFvoEQEQRR+VZNP4LIWCh82zRLR3UFrTH97jF0VULVc+/sXPyvbVsXC1NZ\n54ToNDs6LPAsGHbPPZPI9JuDACRdUk1yqQN68J3oPERmg4GNN9uliXfTjyhW\ni5VRMUMfvfm1UdLVeeMlSW4evAprzAHJcxTAOnIw8a12dxU8gFRpT6bhvsU3\nMyl6dZbDFl/Oyy6QTBXGtGgYGjWMChFQPutlZNYNhZBizJWmQluygXvxhSfL\nDmsnMuD95jpYwk1iO+Y1JzWay/79g5cbfhdgeVpZAizTVyLMXxlkMn0M/PRT\nweW8CJIwfd6gsVVaqCNz9LlCofs3cc6Zetm6KRxDUn2VZWPEzb/YRxzal1oT\n1OHddOqdpXrf0rl3o5cfDe2BE2yNxBwqIbhFHrTIl6YcxyG4tZnN/hBqucP7\nHy44VxBPKuuBMW+Apkm3U7RZgoijNhTQSmp+KMcw+b6AW0CiOTL5TmlI2EGa\nnwiC\r\n=fvGT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8ufNw0QNl8YDHklUiXd/QlH9kwhuJakpLEFrRYn2pGQIgFaGwrpydzAfXnrwdxwioWcNHjRUfBWZeHuIVMVSutaw="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-10_1625171797151_0.12364098227222442"},"_hasShrinkwrap":false},"0.1.1-11":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-11","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^2.52.6","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-sourcemaps":"^0.6.3","rollup-plugin-typescript2":"^0.30.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-11","dist":{"shasum":"cb032c628269fd85c0efd6bfc461e7e2b3fdc7df","integrity":"sha512-dwYOKr1GOyh61bHFJM56FKVt0LZRRBgmab5BF2NP06ASeZOJg0MfWpOfK9vGPdTy/s/2mtuITImFeYLPEnHbhQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-11.tgz","fileCount":30,"unpackedSize":12045623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3ij6CRA9TVsSAnZWagAAzToP/RB7DsScrKcdlz7sN/kO\nOZUCcofUGXN7hdc1cqb1uQoFNJwsrwCIpd4xUdHQuF15bkFk+5+j4L7mP9V0\nGm8gGjhOWAoGV1Jmpo4eEW+rLClPzIs9Xaxi7ay6ha09WYltRtkx5lkNFw0n\nGzxDMzqN7FIsgZpk4Bn8qDjcZSc8Y8wlmRQJypRk9cIs5aXQl+YTK1i5q1/l\njULcuzAFC+5+H5L4RsI0YO92PjJ2SpAuz3DwGVqglbpebBVLLyVfOTuXplvk\nhb7uaKAq4UMxkDNqrFrS8v9ZXJ5o0xvfv6NN49YnCFM4NQKwnkNnmjjPWHCA\nWkN268N/QGFPWNNZGjyOFDQAyGf69vFWJtW5GxBCJNJyawXflAIrOfI7CVDQ\no68KQTfHnuyImmfVyx7LGyzM9M+V71pEKGNNU2sT6toAG0UDK8shknHMLSTi\nx4ixVkvCZHzQRk4YL3wIxx1LJ9dRacY8FWklaPBo7cYCHKOpxk7TQ3aUa2yY\nc6aMGPqnkkRq/xpPvOOU7nBPeYxV/BsMDg76TWGZPzwgp4Np8Xvk7oCMeA6i\nfONNe+5u4eMzIMRvSjWlCextUcEgR/mK/qiNG7hJH1oWn5xRPgp33LVxzfCC\nRhVv/o1ffc0CkIUs6OjqA2vfyIuFk7d8W/Kwj/4SUbDct+no3l+hBhn5fH5/\nqyML\r\n=FHJA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAU1IYDfEzHBVgIBCenxFrWwlI3G1eU1xsBuyZZ/SOIFAiA9QncHpMYm85eDUlHfHg8iEc0o0PJNnFUSuJLnUecoNA=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-11_1625172217967_0.136625909585687"},"_hasShrinkwrap":false},"0.1.1-12":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-12","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^2.52.6","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-sourcemaps":"^0.6.3","rollup-plugin-typescript2":"^0.30.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-12","dist":{"shasum":"eb809153c8429d680be0926e21b032bfddc968e4","integrity":"sha512-RaKV0CtYwKLiTOQs7Jbu7jMIvxg6dCJfs3o7I24wG8XFKjby84sdrxfpCRo9xQRl44bfmkousliRn0XHZO7BzA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-12.tgz","fileCount":30,"unpackedSize":12830127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3jSICRA9TVsSAnZWagAAjyAP/AxKuemtFoJcsdj++W4w\n5HmSTxJMRVlcR0TW+VMMuvXTfnLIEU5XSH0pXjp8ZudvaUJH0UWNb3eY79uV\n3diBhnw/CFYAqUfJLZnuTqXMfXQtewR3tSg4A5VpxsUEoInBvJl9dJneZ9TA\ncVC4r1J0PFZq6/tZDZOYTx6fZ1owEgT1R/JTKJ/wjwBuh0v6DmtJn59vsAvU\nZdBNu/IJDOzDZg9ox4tiwXoDWTBeaWKAZdKF19JcOCnQdpwYY1rgwW4qx6Dm\nKrcJKIQTj9OGD0SAFtw07eX8oQkgJ9lu+KSokN2kM5AIGP0Qan6V+FzDfV4+\nyQ/59hfiUKxyNXQLadk1Z8/MyibKT2QL8XFRivceoABDOyQ6clwLEKueEtS4\n+ThfQtykAsZ13nrXJ1Sq1kj3Uh4xvrGSYBmf8dMpi0e9D6zMK6R/CRYDW01i\nmzKz3epHNr4xeP+WzPGDmo+rPmROKL8DuIm5jNOe6dRz1xbpLxUSbl6nlgHg\nlNSWKlTbNT1Y1ccyZ2pgSJ5kDBcQOE9MgCC9KjU8H6/8TPBogDmtYb2pR1EK\ncY92KuCAfjNJKLVGWcG4fuu20Eko+8QqesS0pWvHopsuT25WzTQ6jxfZr0Ah\n4ZbqGt7pzs3sQRRBGNOt/4QMIAs3hd8EEwI+kHGdeTsrpYTW4uAffx5+pcBJ\n76St\r\n=NqJF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4qFJk184R7rAjvmC5J8iCj1N04eoiH/sk3+hOxZIX8AiEAqp6I3KIhSUj+FImPvAyPKpTeQZ0utqmLOQ/DEUsf3RQ="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-12_1625175176269_0.09037946139278685"},"_hasShrinkwrap":false},"0.1.1-13":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-13","description":"Telos EVM JS SDK","keywords":[],"main":"dist/telosevm-js.umd.js","module":"dist/telosevm-js.es5.js","typings":"dist/types/telosevm-js.d.ts","author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"tsc --module commonjs && rollup -c rollup.config.ts","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","commit":"git-cz","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":50,"functions":50,"lines":50,"statements":50}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@babel/runtime":"^7.2.0","@commitlint/cli":"^7.1.2","@commitlint/config-conventional":"^7.1.2","@openzeppelin/contracts":"^3.0.0-beta.0","@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^10.11.0","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","colors":"^1.4.0","commitizen":"^3.0.0","coveralls":"^3.0.2","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","documentation":"^12.1.4","husky":"^1.0.1","jest":"^26.6.2","jest-config":"^23.6.0","lint-staged":"^8.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","prompt":"^1.0.0","replace-in-file":"^3.4.2","rimraf":"^2.6.2","rollup":"^2.52.6","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-sourcemaps":"^0.6.3","rollup-plugin-typescript2":"^0.30.0","semantic-release":"^15.9.16","shelljs":"^0.8.3","solc":"^0.6.3","travis-deploy-once":"^5.0.9","ts-jest":"^23.10.2","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typedoc":"^0.20.24","typescript":"^4.1.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","axios":"^0.21.1","bn.js":"^5.1.1","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-13","dist":{"shasum":"4a38296c0674646d291da4c9d638cd34fc1e0de7","integrity":"sha512-R6hAqfoyKj3a4biODVW6WhuVXshdoV5aY7C+U3ybyxN2x8mLsMHSBI8cr8NG1M/dBG6hZWYJXK46gqoqNCgzyg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-13.tgz","fileCount":30,"unpackedSize":12830127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3jbyCRA9TVsSAnZWagAAJw4P/A/r6q5A1mmANf3wiEPT\njG+Rw3TTSk+omZqA0xo61KZ4p2t5twaVq1NEytjG2b0+zdxba79CKcFldwqx\nVpYvthHsHezZOGo+X6+yXV7Pz2Om6ecGZ+tE5BDNKB0AOr+htS+u2UPPqQkS\n7E6HQCJ9315U6+Ok5XOATPgbs+p02OFQhixgxj5ZHDQXwoc+jSg8pyBViQiU\nN/rQyTKCJWLaVbhzanLwlps6QZg729m+5XgJkHckkt5izbHmyUx0EoQ3plFo\nQytIRKBR1J5LZBuG5dpDv8v2yGOJmL14SMo5vhn8TWAgTicwSgcmW6Hwes9y\njrdnY34grL0wFd6JBr44c7HG7078XRPCwOKgd9bPm4BPOXpGRY/UaekDBCuv\nFBGlf2RCoWcvT4cPm1MYl3pp1yrkIxpvBqcnUXEhaRAmG6ZjVyJ9MxCYwDfU\nDvqYuiXUeDV0Zcy0lEyZ+zWBaGBu4jwx+RjG0jqAsI77S9ef3NjMcV9ZZLNV\nXgMAN40wVSVOkWwLfclaHtzrFilDY0VBdPd/wOlCsWwzwEH7vXwKYUZSlDdz\nCX3zeCeN8+mfByu8Cy8jh11batrM/5qo+BM/CkwBjkVPIMjdk9nSl9bxuhOt\nNqxDEJu0wdok9mtjlcXykMiSC9plSvRYa3RpDfD82b0zgFDEGzW1NmIfmNd8\n0IwQ\r\n=qqLU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsIKw6rEWBNy3s/koW8SbPFofu1wVW/akCPCctQhX5oAIgFRC4Iq0OE3rsTw1slMz1vm7GtvL/SQnjoQUlXftiwfA="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-13_1625175794037_0.01994674961768017"},"_hasShrinkwrap":false},"0.1.1-14":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-14","description":"Telos EVM JS SDK","keywords":[],"main":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-14","dist":{"shasum":"9ac289237d0493b6a43e01120f0ccbd67ddd5eb1","integrity":"sha512-X50XeF0vwLEBJ1TJZJvYNzJ9Y5kc7slWO2T5lnEw1CwLacmmHYTuTN2aAYqIsvQQmYVbwk/Gr7Ig0Ek8m7/S7w==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-14.tgz","fileCount":51,"unpackedSize":166379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg36J0CRA9TVsSAnZWagAANA4P/RpiVETEjLzFHklU+R6N\n3LTocS95SJ+Thgh3dq1Y+/6RGaaPLA9lUkz5y/t5xOOHOhZZT3fMO40vBdwh\n5BKV/39fiwDXgdr7BnCP2CCA1EQC4Tn8qfiYZZeJCxdlKoyUDjkqssbM+xcU\nMqd3stNY7vJ9tIAq26ZgOMJi8snMGlQWTu0WDOSBKBHvLfT3wV8Zlor+YIWl\nBs+tUKY+qi5i+mJuFXsx4CH5swarmMqyLsWdtaF4M8O1H1hR1RhQ+KXYra6S\nOOj8L224CvdCXQzIyli5FAuqMhZqWf5qED7b4MDinjaHWVMoRJC+APqdNiTZ\nBmjRFsVON7hM4+oJ6fo4ncD8NrNcQ0lzdvG7y+6zpz/rC8B9/RdE0S9ISHS2\nwhc6GCClpX1SSxUWGdY9grlrPkCiZSaI8Easn6JeYlFRCYAtQM6A0ZTVvG94\numLF+WGckC86cwMyIC7I7sWIHwHhzpPDcJmY6+PhGAIkzCymw+6uEwSSZmrb\n0ThF4Ij/0zqOgdT7/HT4mbMf6DeVyaGCwSEddsAPGyNPOBCXHvqtNlHeeY6x\nVF7SpjnKiDgYJOWK0Xw89QE7V5KDDCjgtau2lSIQA7xyC/P9HXFPF/1bLxHg\nBqzTPNUG4k9IMb4OBAUuIJpFkVnwlxeMtfm/V5pLVIkUW7P8VjwR4+8bJmCC\nT0tQ\r\n=YjQk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC2ftrW2aydqSUk1l2KgtNzl3cs4AFKvLcQV7eOLBuj/AiBGKa2Foa98X6w2ZgqARqqQpRIYFCdWLeGJ+7bCH1hhqg=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-14_1625268852089_0.8973649000665833"},"_hasShrinkwrap":false},"0.1.1-15":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-15","description":"Telos EVM JS SDK","keywords":[],"main":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-15","dist":{"shasum":"fd5c45f740d00f2d286d35a531c93731b9517782","integrity":"sha512-WIgZu2G4adoU8t/i4NNG2JSG365VxAhIm5EjYb1b6Wm9I1sM/9H0/kIqCN47BVEAZM2RBel66i4C/VNS4+fg9w==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-15.tgz","fileCount":51,"unpackedSize":165887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJs9aCRA9TVsSAnZWagAAsTUQAI2TFNgcj8B6K86tpuIt\nxqcJOLgukgZFydFjbQ65/9E6m+E8DWcbLUTuCgG/5JnsFpZQfopefQZZ+BYc\nFUs+8YN8OA3yvVKhFUUyikuWwjZDmzPLNQXEguu7tESanW69N3dTfu8aEy2Z\nxSwMsLEyeTixL3tglY1XaL5uPv5DuQQY4t40mKD2RSRoMrhlyaH8AhgbaXug\naZSjTwfO2x7MeA2dJ823dK5ta6+T/+yTvWxKkdwQrJNrwkCg8nO390p50UEv\nGiI/mfmG/GYxcyWpNctnApCUrZZMhpM+wy8bpmM2gP2wiqNKGcjyoMOXMFs4\n6OOeACEbiy3UgPaaC0CORkCjsKiOMDmORrUL/U48VUxF5NioLqUDJ34M/Gmb\nHLUDS9T755mxomRB+vOIXBNXA8IHuyvbP1d1wvgvxruS1E1CD/beASyiGeuE\nBCE3gDaBPFdL1UrYVD1ztMaic5of39glleLPrcRmeuQGcBX9N6GOOsI21E/h\nbwsLIRrrCxwUEutgJfpXCEAtHFB8apa5RSO+gW/ecwcWU2ewQRVQvlM+hl4O\noJKjoNgbS02WwFspbFkpwk6AvHKcc3AkK+gnvTFAhQjsZmeXXok+RBGM2xVx\nvT/CrbzY2wbSSgPUAliqRIkWqirnJCEG+vkDXmKDVIntFhw5YiC2fEhcUfpN\n2Ooe\r\n=GyjD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCM3Ryj/2c7H5kmo6tg6xcF5tckWT3286E70BRHjMUkUwIgL52z9NkC4rbFOTmrbCJPCdhzC8jMPif1eqXIUXwZznw="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-15_1629933402144_0.8943688162618653"},"_hasShrinkwrap":false},"0.1.1-16":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-16","description":"Telos EVM JS SDK","keywords":[],"main":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-16","dist":{"shasum":"314079fa7baed083610de8f843983b70f5e0919c","integrity":"sha512-fDi7gR/O9Jl1T4nW99n6H5xTFboKbkFamUpLEqXk6naN0a6YlDTmLf4N2oTGWTcUxCVC6bQ+D0Wzm0DGEwECEg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-16.tgz","fileCount":51,"unpackedSize":166819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ+WaCRA9TVsSAnZWagAAQlsP/j2rpAS+r+/46pNsxqNw\nb44zlxP+LA8gCBh3ep4vqiBKOOYrid95o/1lME/MaETqPXWnd7eIFGsVmEG9\nkfdMuTpL/7nMK6XC0wGNdu322vDCg85SEKX31M7ZKX5dezPdrLy6Ib8dNVnl\n5/99okK2rPVegLno2tgM+Gh+3OT3ioTrTZA3hteJ00GB6uZqOEykiQrwMbZp\nS/MLUG7m4aPn1880Q8mLjL45/Inr2V9ka/o6yhl6ze4jKJA5N/FtKKy2o4tM\nGLaWmRY4Yo6Qd6BiocACvVthN83n6FjYNPw7QRUdY1G6ggsyHOq/wytgLdoy\n4tReLyhd3pleg8G1SQSlubASzNzSaCV5ATDMTMx1dX3v3q1WEdY0trtFLwl2\nkGSAZi047ffDXnVYv3snVLkH0XlZ1yTQfoV12flxFqZEIi4p2R1Nu9DO6q5P\nIHSlaOflqit31mNf6j6gMVyVhK8NMVL+1nlOJaxx/lv0UfpMJiOg6u+l0roW\nKprFIIgMUAfzrQ5rhH9qQ9Wgr0sYVe6mMG254bM9A05+hybZl8ZbutgJrdly\noUaCfNJe90x89Ot+dG0yQjwEQnmVgurrnfl3YLF/3R1r6lrrH0Mr/v3XlfYZ\nXsq5/6LeDezDjnWYy35O3c5gU7cMk/y9o/1a8GU0TuLVleaSXM7vxB7LLWng\nH3qZ\r\n=0aZI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZVEkbkIIJmxtAK1yTO+1w1YexzhQ2vbxubWKnSM3f8AiEA6VQKqA623doV6RLysVrcAtMgxgSlPcjABJJ7kTzI2e8="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-16_1630004634053_0.4086769876301226"},"_hasShrinkwrap":false},"0.1.1-17":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-17","description":"Telos EVM JS SDK","keywords":[],"main":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-17","dist":{"shasum":"49aa99d478331673b7a447048c5579034f5babbf","integrity":"sha512-bQgasliPPuXr4dts015WSfICt6XnE8XXy1wMvjnNahm0wgcBf8jbsQNjdoVuWLRLfFqqDrQGmSEVgENHvjZ5Fw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-17.tgz","fileCount":51,"unpackedSize":166785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ+vyCRA9TVsSAnZWagAAojoP/RoguR0JTBKY7FM355NC\nMg0YbC2PjIYMGKAoCaVbNU9w8eeZB3/7IMyBreeXZgT/9OleqZ51YfWFldJG\nK9V1zroyX6VxJpEl4/Z/twqV4ttJdEQwIAhOoDtInUZsly2cOmWkeDkemPdb\nnhJrWeznEAkz4MygFaBlXvApsgDeUdGSsK0g9BDMcbhuG5r3BLQ2dKBZgowB\ngGVUN/weZQxYVdJxY6i2zH+2+wyHcfKmauojzbn9BbgeqOydHnGX6Owj9PRb\nFdXQcsISg2LiCGAblHUzsWlSs3Da5YBdimP6Zgh7gbI/+jeiCNy7LR2lRvFd\nmc+Tut7hWey/AHuSUe/CX8fhrznYLFAzdbcpt46ftRc/ZE6vaQHhlFNkDpl9\ng3R2GVr+PjW1IBl/sUZUkauYLnJXIBUFBP3UwG5Hk7Qi8kfTmPsQ9xckgR1Q\nKm0VfawAG3/9Rngp+syZaT3lUofDustMp5mb23ZTwaC41yGcbXghPm7M15g7\novxILm8BW1jzw+0fPqwe8JYEgyCf7O6RekNy/H07sCuoya8W1GH5WMZRp6NY\ndisBb4kE46aM+JhEJ3/7zJepVKJMqhZGLHl6IUZ1MomcjJWExLjNLM0/iRCf\nTEbGA2/GcgUCsNmYWIBUEyHfSN2o15MvB9bFU6K+iY247MkJRiOtAgp4O1zJ\nwqzD\r\n=PnE6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1cSMO+opX4g2wJVRG6GuA/UAh8yAgsGe5BD1TnFlhoQIgLYTVMdFhem6YA96gHs6QIhTM02TAkxEnY9DvzpWCO8o="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-17_1630006258247_0.44982783662170345"},"_hasShrinkwrap":false},"0.1.1-18":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-18","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-18","dist":{"shasum":"71e237b5d81c1b1a84412d245d1d64e7c22bdc6b","integrity":"sha512-y2rR/KMQsnBA4mcmwNioO/NSnubw5FeAbcXOiRloVM7cJgtnAoDHXHT/RhG9j+PvLFeo2Poo05SMj6DK0hMKLA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-18.tgz","fileCount":51,"unpackedSize":166823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ/ZsCRA9TVsSAnZWagAA0lsP+gPIWbf57SwJXLHuISuf\nKaD9BjZFhCq9+U+UBM+vvpPqFFNmTdWjqMhm80a2WOSIkBvFliWmAttqn2LG\n+XgJhf7JEdx7+7/O4fzrfjbXRQhMKX1fsXkIn+/jD6BjEubGOHxIAZQo1uKg\n1PW98jgFnKqANDWW5viytVrmIu8oAopNXcAS3dZK0KwBzGkuvTBKNIuUsytf\ncTCIC3jbfWm47Y/9h8MLZrRxvNq7eNx8GzZpAYk35M7kS/06MNt9mPRh1hDP\nbsp+GQ/cXEHG2ZPAQl2rhOinYs0M7PiEycrVrGmnwLGN950rJLqlXhhe9H8O\nkkFaU76bz+Q1+wc/PfGANkAOEYVrGchtNYu2u/yP4fssVm885cts3SQ90mly\nN8Fxj5m4KxqLG6rA/kjrIINddwUBijt1lJgnge8oDmQKBProD3ltlhx/O3N2\n8rNxWHqXbQJM5yoI9IdCc1i43KdejtMm567UUTBGfrx+xyVtAqWks6FYcrhD\nETozD7VmMW5KgSopll+28Q83Bj13U63ZoskFmoq1p2aqZyJ/mSuW2C3ntEkK\nkRirOJRzFa9+SF2l8GQ62iGMcvQTukgSnNK3HABWQO3jEYshggHzjZ7RDm7K\ncfpSSrQRSQkxedm17bNSmwlFUYPdL1i89bVd9e9luT1kNuOyUolF2OsMRz4b\n+S3b\r\n=2fBz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAVG2iUHUlxPaYG412IDsJKCmWKnqlCGpAD2k+0+2NKQAiBFjNrUj2pssSLo0C07OL3NMwg3FNeMyjMmZGkQttN1DA=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-18_1630008940531_0.21219970396815713"},"_hasShrinkwrap":false},"0.1.1-19":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-19","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^21.0.3","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-19","dist":{"shasum":"ff7c7a9313463735d309dc55f50cfb32fd6b2d9b","integrity":"sha512-P81KfP2FnFGT43p45LApdentPSWGhbFhRXc3/nPLPlFa2sYwAVld3Ws0TJJ9Amc29nOQtURx6jMzKiLWcfUTEg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-19.tgz","fileCount":51,"unpackedSize":168613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNZweCRA9TVsSAnZWagAAaM4QAJPGl/piYpmdzT4BvLsn\ny6UBcdzgN16t9ijv7Gp4PLePwaQxB5yoQVsxpDPhGkAbhlMy5RXYcGdg9TFG\ngAQyAkAPgpvBy83op/RYVv0e30EK5i+Vl6l5SQP1l76ltRPVwS2KfBNj/TdS\n4olZgqka4XuTXBANZugQOEDnhXCA8pZeJKAW1eIYXNC8fGTasuA+X1dCODdw\nytt7eAId1d9PYC4DVVbT00KwqELo/JR7Cb2seiflyUNpyjEZt5HBgW77V5XQ\nMRWawxNTWbToJciv8sdg6+KzlBXe+eoh6Q7/KDJ0ESCt2Cyrd3e3VHedCYy4\n2asulAp6ruXsMwsokccEnYZEu7aIm/ewJBMEM5d3iGulx9BvRM0//ZIsEHy+\nrggJr16ETk4i1m8IXAKCDSW1HhDPfJIioElczP3Sf6gsTaRKxQCHHxUFj1TA\ndaqV/AEYB6bageFQnBX1cMV+16/kAwgWK85m+D8KN8gq3OmHcTHCAb+LJ8jW\nNjeeCz0OU0771J7v3qBS03VMget87BJdk51YyDhGeZWy1XI/wHm+Kvr4MuEH\nt7k2CEmbGk6s+F1Ib5q4RmV6O6DytgKdQZuuLaiCKeWHtiBVcN7u9H4jz4U7\nR6lVASinnxEq872YeX9puGxn8rW30viXJEx7VpAVGhL5NmBOwCFrCaZfHrVd\nTy8A\r\n=uZRI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEfToVAOmcynp59Szq0JGRTw1RW7afnOCSc6MsTQIqxwIgRCO4H5ivzE9GU0vT/fPBy9p6GVb/h/Jv+npHKTq/D4Q="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-19_1630903326781_0.14425827999188345"},"_hasShrinkwrap":false},"0.1.1-20":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-20","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-20","dist":{"shasum":"f7c4ec2517c1e2e493b4f6ce5672ea5e83a39346","integrity":"sha512-i+WVLGESgCST6K9L+hBmjb5EnczHohxYGdm2Lza8PPXWCIwllZlXtVAQLfofPB+YwO7utPAZYyFeUf+L9fOvGg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-20.tgz","fileCount":51,"unpackedSize":168613,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtXtw6/rTy7pDan7G7g6q7qjUULYr/nfEkDT8fUNEw+AiBtWKyPZDT6Mis/38fdJXZ1QCwrnHKpvBnqcuAytPQ42Q=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-20_1631985395114_0.48552364353127375"},"_hasShrinkwrap":false},"0.1.1-21":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-21","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-21","dist":{"shasum":"8beb794cf0a86954074871fb28bcad45a308a36d","integrity":"sha512-3DI1IdILr97hUvjvb7+xRPD/O4VjABt99gtfxVBWdnR/rv6puhbX+kBq/igBhAsjaa5FFp7cVcl5wpoxoA705g==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-21.tgz","fileCount":51,"unpackedSize":170292,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTgsCdxDoTYOccx36I7LRZ4EwaLvPoSWsglTePDmOPkAiA7yEGs4EI6LT1wmz0sKjoeekTsBWo4R1O+fT4a6RI0ag=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-21_1631988120853_0.9643157176376427"},"_hasShrinkwrap":false},"0.1.1-22":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-22","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-22","dist":{"shasum":"da8ce21cea8c881267259a630293cdd1bd29def4","integrity":"sha512-3dUcI47k85C7sMVc/yccNBBiYgY3bHQr40YcYNuEGnkM0DWO5yiAEwZROTel3B+kU3BDZ9/WeZ3H7TwFLqnMTQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-22.tgz","fileCount":51,"unpackedSize":172377,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBV21NWdSTrm9/V4GYz13YLb024bDwVjT8nQmF+LzcpQAiAwg9wch+La+vZ1XSZsLK6OxNLHbVfWifOrvwDgjyWCdQ=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-22_1631988963750_0.4470855548669874"},"_hasShrinkwrap":false},"0.1.1-23":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-23","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-23","dist":{"shasum":"ce38caab42616ab067771703cdf35014d2bf3ede","integrity":"sha512-+3aiji9h+Cj178QXszO5HqCBuT7vyMZgellokrCN+6jDqfDH+ooVMVHRDE+kOlX7mgZ04RovSyKmTjoaeKAYgw==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-23.tgz","fileCount":51,"unpackedSize":172369,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxqWXdB4GIigbnfOdZbcu/eWPzpxk+v4Tz32BV4HtQUgIgCnYMLD7pA2T1eVUXUPAMl+i5QbUU0mV4HCVYYsRmjI4="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-23_1631989111766_0.049478646031286155"},"_hasShrinkwrap":false},"0.1.1-24":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-24","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-24","dist":{"shasum":"9159cbee4ee532470d2b479ab1c4da6fef32802e","integrity":"sha512-dVj+pGFw2V/PKlRhFaOl553FrLwxm1DZLValbvELi+j/R1nFxtyupHYkiP/Amb2JV/oJRcWMA/y130WjR3Sr6g==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-24.tgz","fileCount":51,"unpackedSize":172455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAsPSMplfGGttzX66jeUSNuXdttU0N02CNJZWuz+gzLAiBHBhgylqwiH/Fo7UhiS/oQCKtsyKl4sel08DurZUYQFQ=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-24_1631989471121_0.8699855598126338"},"_hasShrinkwrap":false},"0.1.1-25":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-25","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-25","dist":{"shasum":"d77952619d721052e3ea6ef15a6945fd44d472c6","integrity":"sha512-UXDjIyob0JM+vI5pgxuulmNrhKOV2n5pput2TlcYM8rosOTPsr3Kgk/3d2p7oX3nepD4F3Wx4CSGBrzUABITNA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-25.tgz","fileCount":51,"unpackedSize":175290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4ikzlS9+1kU3S6tGP0em8F+be41zGV0As3rCjwbHg7AIhALKapdN72C58yTU/Sf4P5t9Qyuznt8OTYED21EoMUHh5"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-25_1632722199178_0.6078089059651886"},"_hasShrinkwrap":false},"0.1.1-26":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-26","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-26","dist":{"shasum":"d90d4a780751c52c7d3643d3749caec04ff3f68b","integrity":"sha512-elkPxOb9pLpUSE4w629pmILguSv8ru5a5DeNcKXGnmmuwdfhflM5LTHKtjOFv71nZ/KZ0t0rxGXEQXkNE9t2BA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-26.tgz","fileCount":51,"unpackedSize":175601,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5ILJO6o313mPUjt2uaG1RUCtLMXSQrX0DCdK0EkuFZAIgI9+wUUFSF2bxbH9Y1qfMSktNBZMnDxiWoS38JFsfCbg="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-26_1632723447263_0.1608058683060558"},"_hasShrinkwrap":false},"0.1.1-27":{"name":"@telosnetwork/telosevm-js","version":"0.1.1-27","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.1.1-27","dist":{"shasum":"0f2d4f42ebfc5823071dd8cfcb37dbbaff25d470","integrity":"sha512-YtmvJGVxjwAryUxTosAt4LiijvqnWvFfvH5gxEpxS8yquYlBw34k++6wBKZie5zugWJWUPR3+IPeerCeoSmt2Q==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.1.1-27.tgz","fileCount":51,"unpackedSize":175673,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDikbFKlRpDnTTXOnSsEpCRTWgw91OVPk0iGEUeNmny1gIhAMG4M1wH7brX4iiEvufY8RmkeU4SINkPNiY0xYausWeA"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.1.1-27_1632723762036_0.01015330905451628"},"_hasShrinkwrap":false},"0.2.0":{"name":"@telosnetwork/telosevm-js","version":"0.2.0","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.0","dist":{"shasum":"82199ca78be3dac1a25c4b893027d44400fe4ffa","integrity":"sha512-w7hoLX3ajaOepHODx3DAnfJCwtELy5Rg7RlOsz2jXzZ+k8aIbOP9wBihmEEOktu6q4yzKCYvhe4GKf/O+ZlwUA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.0.tgz","fileCount":51,"unpackedSize":175670,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC34eqeNhu6Lymq9sMVkwIyoZAIBqIXIZgx52owbVmCPwIgK26Ib8wj4ghn6bUTIOJXpZ1F92QUAlT+4YQFLtz0Jyg="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.0_1632778408169_0.08055061014986009"},"_hasShrinkwrap":false},"0.2.1-0":{"name":"@telosnetwork/telosevm-js","version":"0.2.1-0","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.1-0","dist":{"shasum":"e26fc0a147e27aea5c05435213156c71a36cdaac","integrity":"sha512-BPj4Vi41hMPiDUdorbxeLY+WLrI5sq0s4j4856M1OWKLiYvAa9Cwo+vmuZF58s2swCX7pyiyJSZUmA8iJCRwMg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.1-0.tgz","fileCount":51,"unpackedSize":176762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwUhxugdDGcwgPqwn0zpWAXGR7q8q5z60QGBXxvFWE9AiBBjXrgoNxZCneXN/xL4FfvuM3vCX026NO+p0rzmv+OSg=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.1-0_1635398191747_0.5350374009140477"},"_hasShrinkwrap":false},"0.2.1-1":{"name":"@telosnetwork/telosevm-js","version":"0.2.1-1","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.1-1","dist":{"shasum":"f551f2c1b0677605208bf20aa518b74c7d19b572","integrity":"sha512-mfQ4O9XlKI1ZniIlAiq8m7DE41a7Kd1ObEqyrwkyoFP+te221e/VKGGNvpcWg8L6qm2xpl7Yv/kdV2LHorz5TQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.1-1.tgz","fileCount":51,"unpackedSize":180494,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGxOON09e4JQiyYVzMgKZBt3ZEfVNAw7qZmAMj00PRzQIhAL48YRpXOnpMhjpOpIy5oGG5nCyo0Zz6yic6ExOupHOj"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.1-1_1635784262909_0.08758205694516241"},"_hasShrinkwrap":false},"0.2.1-2":{"name":"@telosnetwork/telosevm-js","version":"0.2.1-2","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","readmeFilename":"README.md","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.1-2","dist":{"shasum":"5e44ab68e4fba9e62cde0012d26c214f6a657472","integrity":"sha512-4daeM/L9lNiecHsc0JzISib0VJB4ii/pr5zOUFhfnlRz5PcPaxrLOUY9er0cPX6DzTa9I6d02A+SWieBitQqog==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.1-2.tgz","fileCount":51,"unpackedSize":180396,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCz7W876xOcobDIEiJrjSdE/B/jGfoickGpRo27ZDQtbgIgUgFapEII62CSC0U/u0iNsASk20X8IpNGS0GaNMHag9Y="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.1-2_1635784907447_0.13248006433946657"},"_hasShrinkwrap":false},"0.2.1":{"name":"@telosnetwork/telosevm-js","version":"0.2.1","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.1","dist":{"shasum":"8d4ab075be214bf27428029ae5ec67ae839a49e5","integrity":"sha512-LKzlJsuXMNczb/8QG11kGK6QAHT+94ljqvphW63JotsTRCyR4m5Wutar6oS2koJoUMML1K+qQ59oX/XFpkMU0w==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.1.tgz","fileCount":51,"unpackedSize":180394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjOm2bHlACGlmKq87CK5NB3Dp3OuqnVN17NyorH3MElQIhALqrFwdjNxbYoILdQxnKc78yCTHj2Hy1bBzinwoH19sP"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.1_1635785530835_0.5690084089749297"},"_hasShrinkwrap":false},"0.2.2":{"name":"@telosnetwork/telosevm-js","version":"0.2.2","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.2","dist":{"shasum":"44a37253668f476abb3c9f0c622ed39944ae5451","integrity":"sha512-MVir+LmPiJyknqFq4kRQNiclIW+XLRwjlLa0xASnx6XgVtJFcH74V8jvaPZn28DoHnj02qcC3sM083jyOBpwYg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.2.tgz","fileCount":51,"unpackedSize":180132,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLFZ4Fcyk7L7VLQwciWugXKq/KMaotQpMYdIxF/jDFpAiAMrGtmpup+gpkY7qVa3ZmJeJBWYr+iA8btqrkS1JMk+g=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.2_1635785681145_0.6339642208809986"},"_hasShrinkwrap":false},"0.2.3":{"name":"@telosnetwork/telosevm-js","version":"0.2.3","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.3","dist":{"shasum":"1fc89d62465863bdb1916b193b1ef940538cb1e7","integrity":"sha512-ORfWRVtXjOh7yoqYJrMEi+LGJgBo2IzaxCtgwEMfspT+6vKP09uT1zF1a1MFA8BQ+qzOZ6sjiD+PXhczYjU6pA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.3.tgz","fileCount":51,"unpackedSize":180240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDox4w4w+4HTJ/NkIUf5K+8olLec+9JNYkCBf5n8upoowIhAKEMnWxB9aaOeT1ZkQB1m1Vt8DRHRsym7gDD10umCEGm"}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.3_1636261934909_0.9796887002115544"},"_hasShrinkwrap":false},"0.2.4":{"name":"@telosnetwork/telosevm-js","version":"0.2.4","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.4","dist":{"shasum":"9790b4a718efb881c2896d8991d6ee93fc9be25d","integrity":"sha512-A1UwMsHlki9zxeJvBaVRKBsQs1x3TCL9naonjvpDRWDOfbsyjnu5UlbhNJNFXZPUSGRaRtvMbkM3Qw4wsa/jmg==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.4.tgz","fileCount":51,"unpackedSize":180298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIERXbPvl6ykJ2GF6VxBCBSQ9yAyFTR9sgj/dcF4eC8r8AiAGEAP74JkLRIAyDlNFZjFD9K0db2uN7SZ0iYf6gJxMLw=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.4_1636264049734_0.5848662119096408"},"_hasShrinkwrap":false},"0.2.5":{"name":"@telosnetwork/telosevm-js","version":"0.2.5","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.5","dist":{"shasum":"15387a0fee442af19405088ac6bdc430c1bfa1fc","integrity":"sha512-vH1GqRRona/XWU1CvpSDJFXxDk7YyumwKPeeL7dhK9romRwZLQfIXQjAhI+H/4kQkX26NtyOV1AUA1f2RB3KQA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.5.tgz","fileCount":51,"unpackedSize":180408,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBS9SeVFetWIgsw3kGqhP+HpwgttXrE52eVA3G4BGfV+AiA/iBNZO7f92StZWye+0MD3cXjBWwfOMvhGWIhY+HeAkQ=="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.5_1636264821083_0.4235594518061643"},"_hasShrinkwrap":false},"0.2.6":{"name":"@telosnetwork/telosevm-js","version":"0.2.6","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.6","dist":{"shasum":"237af9cf256c209a8bab3571a325088be4047ab1","integrity":"sha512-DLkAAVzAtcqmMstcXepq08N0CFaZdieKRxAzDn+RRbdov+Mg1Rg8nZooyU9gzbNPW/rQBQ0Qe1b3i0FZ88UElQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.6.tgz","fileCount":51,"unpackedSize":184190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2diZCRA9TVsSAnZWagAA6XgP/iekl0hDf0QV34ZhJ7Pa\ncsAolKG6oFWAgw/B8hKA4p8OMbsJh/HqvHn2PgP4RMqj4GdOXw0MsUz1MgWs\nEt0yfxGqQbyvzsPBFeTLVsWkMI9I0a71HV2Pq5FsZq+V8d1R/FM+Kr/doyPo\nB5Wj8fTi8isKOxUDFRiUruwHL13vtKQUjrkDaLj5nsGo8uL8E0AW60drTbFp\nlm9PWHkRfRtJqbo70rkKyoLAnJHZqOcxWCLX48Zver5npy6nPjMaKsAa/sah\nHWWgOsT+NT1C4jkOw5wS3zHn/RbKZW4Q+kJLjy3PA9diS97BmVWY3VEfbM5N\n/a5p30VxvNTEJ19DLESqnI2k0sMnpM0FxOnvegPwwhfHk6p753B0/45YVTaS\nXkLehuvAZQeBz8i7OdXzFYCvhoRu8kUkaZY6p1U4cVXnn0aiCmhAeeXeirro\nAXY4J7HLNpti5PUtRtcJEQkCZxwb+eUcbn96+3iY3M1b/80SvMDNjLgUpIot\nojwhxp2XH58gUtjfpW4qaVbb4775IpZCnSdjbko8LL8wUpM7arm6mryzjTaO\nuReOTAbpHQxlNoTrb93ip6ISyMb9g43rEQbAG0M0HS5ncANiWFW9zFBRtNiw\npdV8LBi9jEjbHzEgdbNptM8XQas6xTxvz+3Dj8tuApykFz1b/JfTBFv3Fq6x\nyraF\r\n=O2lI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIATchXQg0Cbmpy3RcrPm0N69Ex+/ByXncokyJCcnmm02AiEAyV3QHAk9k2u8NzAOdJ504wOdAeW/LEmv1euqKEUOcTM="}]},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.6_1636399051098_0.9281662393581371"},"_hasShrinkwrap":false},"0.2.7":{"name":"@telosnetwork/telosevm-js","version":"0.2.7","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.7","dist":{"shasum":"45e49ad52fe0f24d81e79c7ba331bd1f92d08b3c","integrity":"sha512-JKnqh/CB+i3wjuq3XzeAGlkfVfmaPkW1A+q+IXWXLPCliJjFznnratqnH8dRnM7GgOXTC8BdcBMicRiTWzO7BA==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.7.tgz","fileCount":51,"unpackedSize":184202,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGfIMTpiiARXHHRIWLqIIv7f9omXgZ4OXKUJKN5FLJ/9AiAEBuVjoN/vEUfC6GBtXDXNOYCATvt29xK64JNyEQN/yw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihxQ+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqt+Q/8D+ji1xy97upwXhcjF9JZUIVkTKA4Hg2id5Dgwj6MQsKO5egF\r\nLG1qqDM1ODxzeNhaTTOZauh/D1pUU2BzqA/siHTNwanBmZw+/ZTSOoe2srcu\r\n7vuQngF8IhE6wJmDGntz+s0Bfa64FVS4y8QESkbyucSY8WmIqoh/M5Pz5LOK\r\nINKMPi0e1N57gT1rKbQRrlG4CIItKzFWAYLiQ/X9JYWxvjmKWO7Pyk3u50zZ\r\nRy2dRZ+D78VMDnDmPGB45s7Webdaad5iiFXswvCNxbewbclTTsjyqGVJ4A1I\r\nHycw9ll0MY3RSDmubaoZ6BM7jOiEa8u45cJNWQtJCkTbP9IKkMCZ5Dpj2M6o\r\nsUkD5vN9YAPVzmVrsBRWQcvYuDFqBhkQvJaWGjghmPtHCm2CbctgaHEM5IdG\r\nliRUOx2/Cp3kD0BhrLB/Ugu+R7Ns4ABTkyS10XLHN8XWPQ2SW81EfF1Q9o16\r\nlhetjUbtBVJDM7DD8E/KH8Cj752b8QoZc2etOUIV2HPEf+JEQqy5CxtF6m28\r\nqH4lPrDLoG4UqRIpwbUjrBQygyF+aJ/zJnec+CKkajzOYNWoyBc+gFCNQzOF\r\nRE3dst0pO9nixQmxqKEFVT8mIVRp55tCMBJAMUEbXZSMZQT/ZHPGTlWAB0xR\r\nnJGFmBqaGvU14OZ1Q7/XfqQKCrsOUu44z4k=\r\n=vG/b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.7_1653019710067_0.5205079260474865"},"_hasShrinkwrap":false},"0.2.8":{"name":"@telosnetwork/telosevm-js","version":"0.2.8","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.2.8","dist":{"shasum":"23fd27b912a36dfcdc6ebfd0b191441a50835fe3","integrity":"sha512-mtW2QxFZyvrNb5QFdY2eLRV/+dfgrsukOyFp/dSRVmid/wFo+3UYe4BE6RgfJULj7ORwo+X/xLUE+EcK3mT2+Q==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.2.8.tgz","fileCount":51,"unpackedSize":185092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYUHKYuMElzNDXY1+OCxr+Xe1UK85SASjpkV808DEviAiBwBs1Ysb4FohHdrSmz0Y0y8GGDRshJOd2pB/aA80x0aQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJirQaXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovCRAAoPKWVX/JJu/eIt4lSPzmG6cmS20L5S+bDHnlycCKPcwhkPgp\r\ncyG5c+U0acXOZ+X+ic+bm+QFRSquhg+cVDhGHfNHfy2D4AAvYExBY/9rClg0\r\nuq5Et88EXJv6qaSfK32oXrfvdokWwXE8M6HNZIZar9K8GQHB3ACTMnw/fOgQ\r\n2M2dvogIxNqdw/vpB8VD4a1RpoSPabfuKZaEVj/PGkdpmEQeAmyQgPjz7/4u\r\neNXHJaLLXvuGTBFp1EENF6G5+nAKFY4KpLUXdccD5oRnuVs/KDLOMjcAasuw\r\nA1PMoaNxo1uT0yzpYFsvx/pVhOmKqiuyNR5jd+ryK4rsLNaTnmINjdALbBA5\r\nZiX96hTOpKZ31hl3xCYkw0W7TMb/OG+6NG4SAThaPfxYF6VDUnjpEM69p5hp\r\n0Ka2QK3OSUt/Gl8Uro8EDA5+xarE2Bo3lcSIQbIT7nSBzNkz6UzGYYgl0yyl\r\ni+CY9Ha0LHAiaJCfpQU0TGy6IYozjkMj1GG/j8qMUnXj/+DdTcKCJfrg4pYI\r\nLAhUPga0ieQs/A+GxCWZLsTYKMwSVhywa8C1nCWtoYbVpm4krs7S1Or9hGgL\r\n5kF5oMSSSN152Cr/VN6YFtdaE2j+zDLpqzaaYL/sJrLzjRiYuC7EDnrrfbbj\r\nIgl/s9zsO/sxaFb7V9L/A3dh7XfPSRmZ+Kg=\r\n=5LTt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"donpeat","email":"don@caleos.io"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.2.8_1655506583498_0.016398181156531022"},"_hasShrinkwrap":false},"0.3.1":{"name":"@telosnetwork/telosevm-js","version":"0.3.1","description":"Telos EVM JS SDK","keywords":[],"main":"lib/cjs/telosevm-js.js","module":"lib/esm/telosevm-js.js","engines":{"node":">=14"},"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"license":"MIT","scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rm -rf dist","prepublish":"yarn prebuild && yarn build","build":"npm run build:all","build:esm":"tsc","build:cjs":"tsc --p tsconfig.node.json","build:webpack":"webpack","build:all":"npm run build:cjs && npm run build:esm && npm run build:webpack","start":"rollup -c rollup.config.ts -w","test-off":"jest --coverage --runInBand --testPathIgnorePatterns debugging","debug":"jest --coverage --runInBand debugging","test:watch":"jest --coverage --runInBand --watch","test:prod":"npm run lint && npm run test -- --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","compile":"ts-node src/eth-contracts/compile.ts","docs":"documentation readme dist/lib/telosevm-js.js -s API","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","travis-deploy-once":"travis-deploy-once"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/ethereumjs-abi":"^0.6.3","@types/jest":"^23.3.14","@types/node":"^14.14.37","@types/node-fetch":"^2.5.4","@types/text-encoding":"0.0.35","cross-env":"^7.0.3","rimraf":"^3.0.2","ts-loader":"^8.1.0","typescript":"^4.2.3","webpack":"^5.30.0","webpack-cli":"^4.6.0"},"dependencies":{"@ethereumjs/common":"^2.3.1","@ethereumjs/tx":"^3.2.1","assert":"^2.0.0","axios":"^0.21.1","bn.js":"^5.1.1","buffer":"^6.0.3","eosjs":"^22.1.0","ethereumjs-abi":"^0.6.8","ethereumjs-util":"^6.2.0","node-fetch":"^2.6.0","stream":"^0.0.2","text-encoding":"^0.7.0"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"homepage":"https://github.com/telosnetwork/telosevm-js#readme","licenseText":"Copyright (c) 2020 Syed Jafri and contributors.  All rights reserved.\n\nThe MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@telosnetwork/telosevm-js@0.3.1","dist":{"shasum":"f6386e7977420fcfb94e55c8a992636c3e30ee32","integrity":"sha512-1kwYkQ4ONT7HqjCoUJS0Md/m8PE9CHC3JlRHygaYTy0hoHw9rfhoOKvn0/x7iAt3VehdKpMR6C2dg6CmF8AwVQ==","tarball":"https://registry.npmjs.org/@telosnetwork/telosevm-js/-/telosevm-js-0.3.1.tgz","fileCount":51,"unpackedSize":185988,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx3ceudVNOCy3JnZ5opOvG7dPa5PXRM9ru5CfvPfHwBAIgQdN85tPDdDE6jnCVjCcO4sRf+AgA9EClEXPpscDl4dY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOeo/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0hg/+PAFRzUwbP4kcZjRWZKv9W0fBN9sOSzNROtjXF4QQU1bJe7JH\r\ny20O9gzXFnxvPBLabm5AF37qA1s2brwT2hOnh3Xi1/Ic36bzPgKlpIf78Dhg\r\n2F4oeIUImrAeW5SxAw6XVsUqoS6/YCPKfBmgwQ+X9tAIFbzfs3840L9VvdAw\r\n+vSJMT69Kdy9Xx/rKv/DOuyUw2KW2dkRRIt4imXBeVMH1iWBlmbohoyC3Lhm\r\nWs1ocOhcqoVFtKuxo8XCNdaIyq6n9OYqIiCEo3zzsWTtfPD/musrwZ+UF4hv\r\n67M3knon4wMxZKRs5wn86WP8U+8aY+kuDPkuMjtLfw10v9UWsUuRYGrwvVWY\r\nE6ZzncymaZ9cmhlaHSoS1fVit+vtzmgubBtHAxYpqOEy1nj49JmvcakAQHjW\r\nmLM3iPV0odUarp2STruhpMtfnvkC/O4bh4hFQhm5uMVNJQn9sNAW4GalV5WV\r\nxvQjj8NpxnSnRg/diMVF5aD3rMZTwdMteA0XWxy9OLpdyxGv+jCPoSkdv6QS\r\nhosuy9safNrJ2EJa4GCZaW5iAYDBXppZb6Qccvi7GRuUHvqTNtUz9LvmfGUk\r\nQRhGAAH5veaX7HxqD1qU5YPzfNMD0hDkzcbIY1aZDmxAPzTvjXqOuD2Owjw0\r\nPwAkpLhOUAKONAdMi1EfsKm3TxQXgSzmlzk=\r\n=BuUS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"foflexity","email":"jesse@caleos.io"},"directories":{},"maintainers":[{"name":"tcuvillier","email":"titiomm@gmail.com"},{"name":"donpeat","email":"don@telos.net"},{"name":"foflexity","email":"jesse@caleos.io"},{"name":"captaincrypto","email":"kylan.hurt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telosevm-js_0.3.1_1681517119315_0.04980654294919851"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-12T07:17:37.527Z","0.0.2":"2021-02-12T07:17:37.944Z","modified":"2023-12-30T17:23:53.971Z","0.0.3":"2021-02-12T07:25:51.362Z","0.0.4":"2021-02-12T08:00:05.139Z","0.0.5":"2021-02-12T08:10:48.509Z","0.0.6":"2021-02-12T08:21:28.927Z","0.0.7":"2021-02-12T08:47:23.565Z","0.0.8-0":"2021-02-25T23:48:25.070Z","0.0.8-1":"2021-02-26T19:18:27.898Z","0.0.8-2":"2021-02-26T19:52:16.639Z","0.0.8-3":"2021-02-26T21:28:21.351Z","0.0.8-4":"2021-02-26T22:58:20.492Z","0.0.8-5":"2021-02-27T00:20:15.895Z","0.0.8-6":"2021-02-27T00:28:34.917Z","0.0.8-7":"2021-02-27T00:49:42.960Z","0.0.8-8":"2021-03-01T20:37:06.824Z","0.0.8-9":"2021-03-01T21:52:38.545Z","0.0.8-10":"2021-03-19T06:31:06.974Z","0.0.8-11":"2021-03-25T05:47:37.910Z","0.0.8-12":"2021-03-30T05:55:35.185Z","0.0.8-13":"2021-04-01T21:44:22.645Z","0.0.8-14":"2021-04-01T21:47:05.956Z","0.1.0":"2021-04-08T19:38:07.940Z","0.1.1-0":"2021-06-30T16:42:16.508Z","0.1.1-1":"2021-06-30T16:49:46.096Z","0.1.1-2":"2021-06-30T16:53:47.931Z","0.1.1-3":"2021-06-30T17:00:05.375Z","0.1.1-4":"2021-06-30T17:08:48.585Z","0.1.1-5":"2021-06-30T17:42:34.951Z","0.1.1-6":"2021-06-30T17:49:55.261Z","0.1.0-7":"2021-07-01T18:35:19.410Z","0.1.1-8":"2021-07-01T20:00:27.408Z","0.1.1-9":"2021-07-01T20:15:00.111Z","0.1.1-10":"2021-07-01T20:36:37.406Z","0.1.1-11":"2021-07-01T20:43:38.353Z","0.1.1-12":"2021-07-01T21:32:56.564Z","0.1.1-13":"2021-07-01T21:43:14.261Z","0.1.1-14":"2021-07-02T23:34:12.215Z","0.1.1-15":"2021-08-25T23:16:42.333Z","0.1.1-16":"2021-08-26T19:03:54.262Z","0.1.1-17":"2021-08-26T19:30:58.444Z","0.1.1-18":"2021-08-26T20:15:40.703Z","0.1.1-19":"2021-09-06T04:42:06.972Z","0.1.1-20":"2021-09-18T17:16:35.272Z","0.1.1-21":"2021-09-18T18:02:01.106Z","0.1.1-22":"2021-09-18T18:16:04.030Z","0.1.1-23":"2021-09-18T18:18:31.879Z","0.1.1-24":"2021-09-18T18:24:31.388Z","0.1.1-25":"2021-09-27T05:56:39.333Z","0.1.1-26":"2021-09-27T06:17:27.428Z","0.1.1-27":"2021-09-27T06:22:42.262Z","0.2.0":"2021-09-27T21:33:28.318Z","0.2.1-0":"2021-10-28T05:16:31.975Z","0.2.1-1":"2021-11-01T16:31:03.069Z","0.2.1-2":"2021-11-01T16:41:47.641Z","0.2.1":"2021-11-01T16:52:11.016Z","0.2.2":"2021-11-01T16:54:41.302Z","0.2.3":"2021-11-07T05:12:15.057Z","0.2.4":"2021-11-07T05:47:29.879Z","0.2.5":"2021-11-07T06:00:21.216Z","0.2.6":"2021-11-08T19:17:31.323Z","0.2.7":"2022-05-20T04:08:30.258Z","0.2.8":"2022-06-17T22:56:23.726Z","0.3.1":"2023-04-15T00:05:19.513Z"},"maintainers":[{"email":"guilledk@protonmail.com","name":"guilledk"},{"email":"don@telos.net","name":"donpeat"},{"email":"jesse@caleos.io","name":"foflexity"}],"description":"Telos EVM JS SDK","homepage":"https://github.com/telosnetwork/telosevm-js#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/telosnetwork/telosevm-js"},"contributors":[{"name":"eugene","email":"eugene@eostribe.io","url":"https://cryptotribe.io"}],"author":{"name":"jafri","email":"syed.jafri2@ucalgary.ca"},"bugs":{"url":"https://github.com/telosnetwork/telosevm-js/issues"},"license":"MIT","readme":"# Telos EVM JS SDK\n\n### Installation\n\nRequires nodejs and npm installed\n\n```bash\nnpm install @telosnetwork/telosevm-js\n```\n\n### How to setup EVM and deploy ERC-20 Token on EOSIO in 5 minutes\n\n```js\nconst { TelosEvmApi } = require('telosevm-js')\nconst fetch = require('node-fetch') // only for node\nconst evmContractAccount = 'evmcontract2'\nconst evmNormalAccount = 'evmaccount11'\nconst SYSTEM_SYMBOL = 'TLOS'\n\nconst api = new TelosEvmApi({\n  // Ensure the API has console printing enabled\n  endpoint: 'https://api.telos-test.eostribe.io',\n\n  // Must match the chain ID the contract is compiled with (1 by default)\n  chainId: 41,\n\n  // Enter your own private keys if you wish to sign transaction (examples provided)\n  ethPrivateKeys: [\n    // Public Key: 0xf79b834a37f3143f4a73fc3934edac67fd3a01cd\n    '0x8dd3ec4846cecac347a830b758bf7e438c4d9b36a396b189610c90b57a70163d',\n  ],\n\n  // Enter Telos account that EVM is at / will be deployed to\n  telosContract: evmContractAccount,\n\n  fetch: fetch,\n  // Enter your own private keys (examples provided)\n  telosPrivateKeys: [\n    // evmcontract2 (EOS7DJzWuEr1Zu36ZX8GXwGsvNNqdGqx8QRs7KPkqCMTxG6MBT1Eu)\n    '5JACk8gJ98x3AkypbicNQviXzkqAM2wbbE3FtA79icT2Ks4bWws',\n    // evmaccount11 (EOS8Z9y2b1GfAkFUQxBTsiu9DJSLebVoU8cpwLAfXcgWDRWg9aM2Q)\n    '5JhwbcHTVk16Pv7fCgitNSHgwGwjAPEgEJbiaCcXaza1PKrbCns'\n  ]\n})\n\n// Import contract compiled with solc (check telosevm-js/src/eth-contracts/compile.ts to compile your own)\n// We provide compiled ERC20 and ERC721 contracts\n// NOTE: this may not be included in the NPM, possibly download from github\nconst compiledErc20AndErc721 = require('@telosnetwork/telosevm-js/dist/eth-contracts/compiled.json')\n\n// Load ETH contracts with abi and bytecode, plus the TX sending Telos account\napi.loadContractFromAbi({\n  account: evmNormalAccount, // Example Telos account\n  abi: compiledErc20AndErc721.contracts.ERC20.Token.abi,\n  bytecodeObject: compiledErc20AndErc721.contracts.ERC20.Token.evm.bytecode.object\n})\n\nasync function main () {\n  // For development (if TESTING is enabled in contract), clears all data in contract\n  await api.telos.clearAll()\n\n  // Creates new address based on RLP(eosaccount, arbitrarydata)\n  await api.telos.create({ account: evmNormalAccount, data: 'test' })\n\n  // Transfer Telos to contract to deposit to address\n  await api.telos.deposit({ from: evmNormalAccount, quantity: `0.0002 ${SYSTEM_SYMBOL}` })\n\n  // Get all data for new address (address, account, nonce, balance, code)\n  const sender = await api.telos.getEthAccountByTelosAccount(evmNormalAccount)\n  console.log(`${sender.address} (${evmNormalAccount}) Balance:`, sender.balance) // 0.0001 TLOS\n  console.log(`${sender.address} (${evmNormalAccount}) Nonce:`, sender.nonce) // 0\n\n  // Deploy ERC20 contract (Name, Symbol, Decimals, Total Supply)\n  // The returned response \"eth\" is the EVM transaction receipt, and \"tlos\" is the Telos transaction receipt\n  const { eth, tlos } = await api.eth.deploy('FIRE Token', 'FIRE', 4, 1000000, { sender: sender.address })\n\n  // Set the created address as the EVM contract to interact with\n  api.setEthereumContract(eth.createdAddress)\n\n  // Query ERC20 balance using \"view\" function calls\n  console.log(`${sender.address} FIRE Balance: `, +(await api.eth.balanceOf(sender.address)).toString(10)) // 1,000,000\n\n  // New receiver address to send tokens to\n  const receiver = '0xf79b834a37f3143f4a73fc3934edac67fd3a01cd'\n\n  // Transfer system tokens to address to create it\n  await api.transfer({ account: evmNormalAccount, sender: sender.address, to: receiver, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Transfer 1000 FIRE ERC20 tokens\n  await api.eth.transfer(receiver, 1000, { sender: sender.address })\n\n  // Query ERC20 FIRE balance using \"view\" function calls\n  console.log(`${sender.address} Balance:`, +(await api.eth.balanceOf(sender.address)).toString(10), 'FIRE') // 999,000\n  console.log(`${receiver} Balance:`,       +(await api.eth.balanceOf(receiver)).toString(10), 'FIRE'), //   1,000\n\n  // Set allowance, and modify it\n  await api.eth.approve(receiver, 100, { sender: sender.address })\n  await api.eth.increaseAllowance(receiver, 1000, { sender: sender.address })\n  await api.eth.decreaseAllowance(receiver, 600, { sender: sender.address })\n\n  // Query allowance (another example of using non-state modifying calls)\n  const allowance = await api.eth.allowance(sender.address, receiver, { sender: receiver })\n  console.log(`Allowance for ${sender.address}->${receiver}:`, +allowance.toString(10), 'FIRE') // 500\n\n  // Use the allowance to transfer\n  // rawSign uses ethereum private key to sign instead of EOSIO account permissions\n  await api.eth.transferFrom(sender.address, receiver, 500, { sender: receiver, rawSign: true })\n\n  // Withdraw tokens\n  await api.telos.withdraw({ account: evmNormalAccount, quantity: `0.0001 ${SYSTEM_SYMBOL}` })\n\n  // Other available functions, check docs\n  // await getStorageAt(address, key)\n  // await createEthTx({ sender, data, gasLimit, value, to, rawSign = false })\n  // async getNonce(address)\n  // async getEthAccount(address)\n}\n\nmain()\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n","readmeFilename":"README.md"}