{"_id":"@8pay/sdk","_rev":"9-22e37939b65839ecf894d298657b28a8","name":"@8pay/sdk","dist-tags":{"latest":"1.6.0"},"versions":{"1.0.0":{"name":"@8pay/sdk","version":"1.0.0","description":"JavaScript SDK for interacting with 8pay smart contracts","main":"index.js","scripts":{"test":"mocha --recursive --timeout 30000 --exit","coverage":"nyc --all npm test","lint":"eslint --ignore-path .gitignore .","lint:fix":"eslint --ignore-path .gitignore . --fix"},"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"keywords":["sdk","payments","contracts","blockchain"],"author":{"name":"8pay"},"license":"MIT","bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"homepage":"https://github.com/8pay/javascript-sdk#readme","dependencies":{"@8pay/deployments":"^1.0.0","@8pay/tokens":"^1.0.0","ethers":"^5.4.1","validator":"^13.6.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","web3":"^1.4.0"},"gitHead":"9f17a3bb38eec890c5b358500cc06271c577502f","_id":"@8pay/sdk@1.0.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-88jZQBUPSE2/RUJlTj8ldqYsfEn7Zjan8vCTrnLlOMao+mUiWgLXIkq0t+RTs/HNOQ8uWI6Xj/S492fi6AXUcQ==","shasum":"c64648003b8f0db32199a1de64b3c415cae51503","tarball":"https://registry.npmjs.org/@8pay/sdk/-/sdk-1.0.0.tgz","fileCount":24,"unpackedSize":57506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5gi6CRA9TVsSAnZWagAAPjYP/jv8uWHtE/FrwZVI2anZ\nxKsYmMSQrOQRm+D8WpX0i0gFk8aTykO+yvCdxKo9q34g0S/wZNExNYMCinFs\nDlexugrvnIsZa7fzbYh3uR3e17HJg+heUSXb8BnmHzX0pvKFf4J325Yd6oO8\nmJDptSmeZ85ftpNkje8YvxBtuwh4ySjMU44gLKNr4vV5d/5SyRR7VGAwtmnX\nIdrSxobKhAcmjSFbrajgGfmGuf0a/sndvLcNx+suBPA61dUCtvy9XCWUaHAm\nxQ3ILIUbAUyWLf/sIYF91Ks1/8AjNXB0zHk2qXZQ4pIRl7FiIdqRrvIDzgnd\nlmfIRNtCmJCyOsjVsVZ0PEmSGGENGRq0pYBAwleqEeDuAev/Ob+IoRGXMZqN\nSl7z5wtkDOrT/MSMBh5j9yrI9XY3K4vgNmZtZXBtKMUfOP46VBW7HsUkyWXD\n7YgPp89/1Kf/px9JyisJktyiRF45uYetINDY+Dre3CGN/fJxynlM+a06FnBC\ncYLNf9DWQGiBccG0Ql0sOyJJlCGsw4im2gOR7gWgKvBoWViSWHTQp4xknBW5\na7i/CTnpExBFp82BJoN442d8o9sQw2vS2ZjWQ9ZCyKTbAn0jkoCa6ERVQCNf\nkgU9eidqA9yBc6yRQaJ6RlrsRdGfQ9EMlpPD0z92IfpOC/+shZX8BNuULLm+\nbhwv\r\n=MOUr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5xkrOF8j9IK/hzqxisRnDh/k3qLWmqHOzAfg4qYQ/5AiEA9Rb4glRzan9y/dR/GqYQOBcItzSTnELKKROZGRrMze8="}]},"_npmUser":{"name":"8pay-admin","email":"8pay.network@gmail.com"},"directories":{},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.0.0_1625688249581_0.15892559755256275"},"_hasShrinkwrap":false},"1.0.1":{"name":"@8pay/sdk","version":"1.0.1","description":"JavaScript SDK for interacting with 8pay's smart contracts.","main":"index.js","scripts":{"test":"mocha --recursive --timeout 30000 --exit","coverage":"nyc --all npm test","lint":"eslint --ignore-path .gitignore .","lint:fix":"eslint --ignore-path .gitignore . --fix"},"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"keywords":["sdk","payments","contracts","blockchain"],"author":{"name":"8pay"},"license":"MIT","bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"homepage":"https://github.com/8pay/javascript-sdk#readme","dependencies":{"@8pay/deployments":"^1.0.0","@8pay/tokens":"^1.0.0","ethers":"^5.4.1","validator":"^13.6.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","web3":"^1.4.0"},"gitHead":"cb9e2c355e45b13528fa540b4a1b2124a381b527","_id":"@8pay/sdk@1.0.1","_nodeVersion":"14.15.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ZQ7a6UgVTJVPeGOJBvexnbHxSd880WIfaIY9Gdubs4VMF3Cv39y1XvC54jUdfSgz+NLkdacc1NOwLwPArYKDag==","shasum":"299fb2d3e0b958eaf732558963c14974e0145902","tarball":"https://registry.npmjs.org/@8pay/sdk/-/sdk-1.0.1.tgz","fileCount":24,"unpackedSize":57325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5wldCRA9TVsSAnZWagAAjsMP/0RhloH0sZQIBjxjj1ZW\nh7yBZ4MM6Z07T12VH6SOLh1y0E4Taixatpi2z6EzRt39+ALgbxAUq/ov8lVn\nv66o+VeXCzFJuyBa2MEKk2zAL0nXitJ8MpTVxBFA/DP22Sd8H3pTLlj3Xlvl\nWVi4kzeQcvBCf4OXtKytDGPIsp+yAkrCG4IZMslkDNJWOLQwkBeqCAe750B2\nBJMtVMU525tzqCeQa+g64cOryWd32BRQ/3LOySSWltbpred9tN2kAIfR8xVm\nTUtD/wGqGo0Q6pJN4NFF01wbFtq1sKXOCDgiwfhVSIbPpM5nmdf1NV9z0IWL\nO/pwvRRrEbNNcrz3zE2Z3J8znauiBNVTHIGznk/xZ7FVmE7Ec+gUmH/wWnMH\nhsH77rKDZXymVsCoPnBpVpHNo7uUpdNDzrV7gPoSqzx3GZmkSPTTQH6XCW3O\njNlfvuki8qL0Ho81yYTnsFpKHoUb7rbSFcZOFs9jG9lVEXd+9zd3iwQfmzGf\ng/5mDEDaJRsH/d3vA0Q/fRPKYd/JsZwYUZXoxGz3wd7S0JtND0kcket1NdOm\niLOL+WAfM2jMPtzSCnpBreTPwmDxyt4+g9beZwQg6da2Cic3v9awmO1Lx238\nN8fLBof7yx0AWsqCQWhFnHqiLHX3K3wLT82izaz3plhnt3LKn5S8CjU64n34\nhWKZ\r\n=2GR/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3JKwtOgK5x2ZVFix6Pqm7p+I4qaJUyZ01FnBXsLZHIAIgBeVeqbfKjvy075yQzdvOPngge8xCQvT3zk28GxRhElc="}]},"_npmUser":{"name":"8pay-admin","email":"8pay.network@gmail.com"},"directories":{},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.0.1_1625753948462_0.8110871665635382"},"_hasShrinkwrap":false},"1.1.0":{"name":"@8pay/sdk","version":"1.1.0","description":"JavaScript SDK for interacting with 8pay's smart contracts.","main":"index.js","scripts":{"test":"mocha --recursive --timeout 30000 --exit","coverage":"nyc --all npm test","lint":"eslint --ignore-path .gitignore .","lint:fix":"eslint --ignore-path .gitignore . --fix"},"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"keywords":["sdk","payments","contracts","blockchain"],"author":{"name":"8pay"},"license":"MIT","bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"homepage":"https://github.com/8pay/javascript-sdk#readme","dependencies":{"@8pay/deployments":"1.0.0","@8pay/tokens":"1.1.0","ethers":"^5.4.1","validator":"^13.6.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","web3":"^1.4.0"},"gitHead":"c24989150e4cbcf409926f658b57ae2dcfe74dcc","_id":"@8pay/sdk@1.1.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-M7ssse4gGfhK/AHrHe4uelq/RZk8ZXmauA3VIzePyJ3TZPnfljaWEcsR20BNcv1Y8YuNo3cK1fSOpvzovTQu8g==","shasum":"071128ff01cf3cad0a53aa382a2626a7058b771f","tarball":"https://registry.npmjs.org/@8pay/sdk/-/sdk-1.1.0.tgz","fileCount":24,"unpackedSize":57323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIVY/CRA9TVsSAnZWagAAeucP/ip66ANiNXy45KqPp9Ao\nk/wGGumzeQXrjmhR0wXXp/U/YDPNEcYHlCeaPkr/YmM+fZZnYzEZlBQWNzEB\nRl606DFwkqU9RkkSE95t7L9UaXHTpaolAYLH5ccFxDGB8dNFwaSr8WedBLBC\nmmi8mMjkmHrJiTSxqomuhaFoQ4gsmJg3xSB540ldAtD4aRtG9aSo1uL+LIKC\ng54cKX0UFqRVPVAVO+gG9P/vhDBqZ0jcQzNxh4KubDXfnG4+u5UfBCH6a5A/\nght9mYnOLz8ayOjkVt9LO8My24qdIGUP+IXdvQBT6ldZ9FC+sUd95Z/eoA72\nbxatmoC8orLiSgnS+/f/k9u0KyQ3YpUMqZmURYkKG4/Yfg7EeEjfeqrOjt6m\nHaXMuCj8hpK2ofWVVzsyKSmqXkqXjo1H7s3Wa6+DNGBhiXh1kzbcqu0VyePr\n0DSQIwiohOsk1wRQUOvVDtzocQAqof+JXpZ4xrsj2Z+qTkbzXrU3/mof7gSk\n9R4wQiHOYNFMM7DkNRUHsU1o2j5iuXwSYW1ClR66m6nyZql6fsZqE20cWQpT\naSVmcvZ4GpSAePxBZyhWh4jSFdCBJHF3UW7kiOoUJArCYOXXW3KH6Dar6DzU\n90OSClL5bTU5rDAoprklWUEVU4CqiKZbhz55ge9npsvuh+XhmmUfqYVCw5jc\nnuwi\r\n=fs9f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoIdkBDx3eRTPG9ntKap6CtxiR1oN5k5TQGGP/wUoXvAiA9Fp7lyUhWMZz39jPh7qCpIyseAQ9L2sMSX2SPJAGa/A=="}]},"_npmUser":{"name":"8pay-admin","email":"8pay.network@gmail.com"},"directories":{},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.1.0_1629574719152_0.07949059693598715"},"_hasShrinkwrap":false},"1.2.0":{"name":"@8pay/sdk","version":"1.2.0","description":"JavaScript SDK for interacting with 8pay's smart contracts.","main":"index.js","scripts":{"test":"mocha --recursive --timeout 30000 --exit","coverage":"nyc --all npm test","lint":"eslint --ignore-path .gitignore .","lint:fix":"eslint --ignore-path .gitignore . --fix"},"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"keywords":["sdk","payments","contracts","blockchain"],"author":{"name":"8pay"},"license":"MIT","bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"homepage":"https://github.com/8pay/javascript-sdk#readme","dependencies":{"@8pay/deployments":"1.0.0","@8pay/tokens":"1.2.0","ethers":"^5.4.1","validator":"^13.6.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","web3":"^1.4.0"},"gitHead":"4a787248ee18e326d2e1fcae0333064471a70c07","_id":"@8pay/sdk@1.2.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-bhDQaMrW9IxXynYNHOL30BA0OxgKKQnPx2/Zvm2ImnNXXTcxOZV8z32rj1WAw4NIwciulLrPNvCvhJqK6eEA2w==","shasum":"c74e18080d3954eda1c34c2af45805ee6783ce44","tarball":"https://registry.npmjs.org/@8pay/sdk/-/sdk-1.2.0.tgz","fileCount":24,"unpackedSize":57323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhN0hbCRA9TVsSAnZWagAAwrgP/1uqMty3VWvg1eQbGnj7\n8hRU1/0TBnvATYG2zw0kr3o1sFFYH36B9QH6u8YP54M1vuGXhBxQh0y1xXZp\niqixm5vCi9WXtLTdI+BTaLuho4zjUz1FbwAB9rkCG0caSvhiIIlTtCrI68IQ\nprBKOvOH8nS4iY2/Nn3FqA7QZWLNWBQbzApbopnVY9/Oy3HjpLbx5/McIoMw\nKZFoEv9YXvasGCyt8IpBv4YHMoUXut6jcoTdUzkVGQQ9wzYkSKiD9FDehj2e\nvtyIGKa8wN9HCDh0ibla8au+ZwNcaHeZ5bnritVrNsIHnd6AWKNqrf5Yu3Vc\nmZzuhRA6GDyvGYtApynp1P9Jz0SvTYAxSjAXxiKHM4Dp0+5RzU/2rb1wNMvm\nwSzaTtiWzZ2RpjyjwnWP/K8E6o6HFI8v1vwwBFFCnOUeirQMvxxO3m01NkpQ\nIPgLWytsRqXlz1ciXUn3IrCcbCCLT0Wj7nVGIqF8wvlCImVLoq6tGkp7HElN\nLROkWBmmHRWqkvzjYrTgGlZXm8ExGj1d9pSRUYxiC41PUICLkJvzOVoJ2OZ0\nmQoRSPfDpZ7WwYZWaTuMCUlul6gHQH4+dAwtuFAQV1bWIJhwOpajMUsHaVsl\nLt0mr5DyHlbCOH+P/GJ4iKFguNYzhB+0oX/BlA9w1UWWNDhH7Sb9XmDiFcvw\n+hUR\r\n=xJWq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcfowwGCAlXnqRIMSmGxmRFqx7O7EzDdJ3vIeR6UCl9wIhAK7FUxhgDSPIQIohdE14DcndRvIS3qizHR1TQGtgfwws"}]},"_npmUser":{"name":"8pay-admin","email":"8pay.network@gmail.com"},"directories":{},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.2.0_1631012954939_0.015125789414064394"},"_hasShrinkwrap":false},"1.3.0":{"name":"@8pay/sdk","version":"1.3.0","description":"JavaScript SDK for interacting with 8pay's smart contracts.","main":"index.js","scripts":{"test":"mocha --recursive --timeout 30000 --exit","coverage":"nyc --all npm test","lint":"eslint --ignore-path .gitignore .","lint:fix":"eslint --ignore-path .gitignore . --fix"},"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"keywords":["sdk","payments","contracts","blockchain"],"author":{"name":"8pay"},"license":"MIT","bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"homepage":"https://github.com/8pay/javascript-sdk#readme","dependencies":{"@8pay/deployments":"1.0.0","@8pay/tokens":"1.3.0","ethers":"^5.4.1","validator":"^13.6.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","web3":"^1.4.0"},"gitHead":"59a457aadc142c0da9b6d8fc2513262404cac7a7","_id":"@8pay/sdk@1.3.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-7lvQLXnS4WMrS2Jvbv65kUNWq3pJTQTXAI3SJQ38QPDEeknH3/TDC9iQ0nZ5oVqMGkvhhdqiwpoZ3o0eoJAPXw==","shasum":"4ac36cec39d6af6c051dd237634f5ffb55429e48","tarball":"https://registry.npmjs.org/@8pay/sdk/-/sdk-1.3.0.tgz","fileCount":24,"unpackedSize":57323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuweGCRA9TVsSAnZWagAAgCYP/ik1fi6hCF03Z9w2hyI9\nSfnJ7kxb/4cfRkctf2r22TphtIq9QOe8SxeoXLPxCh0LSSgeKibmA1k1GiyK\nyiNTGPmX3TMs2NGKB6MwjcLVah/Ujqlia4fPaNwQ6BejA7rq0f8pGxdNYNND\nyaP2Rb62MWrTbaUho06fE4mZh60hWNln4TsfNZxpmdxmEz/KAPDetV1FGny/\nnhhVSFV9dJ9gKOr43KP4aNYmCEeweB+4fROU4xrCk8gZ0rVfnPcUiBeBwm+b\n0jW2tw6CQ5YlyY/KOPYfBek3pyyJoFa7dsYu5JVV8Ge48yPN3T1xDvyCSFFm\nBV65zY2aXSgsgl49qNj8Jfh2e2WkTkYFCsDsfvDtK/r7tMGhWhja1AqCFeVE\nxoGaWDj71sXRE0oTpoJ6WxZHJbGh+KsfGjsSDzAAPfSKGSV3Zkk98xx7y3Ph\nBMiet8QIgRNzFZjtQ1tVc06B43lL4x5SUDGw4o/xgapC+DhXPgf23Ke+XYJd\nppUoQ8VSjcl9tTpEIZ0toev334ggshfQ8or+X9jD4XjyeNY5dDeyPZb2pnbX\n8ufMjnnMAa6+fGtC9PinxqhsXXg6qcaNfXiB1dy4OkCtr3WHSipasqdny3z5\nllcNkfBcYY2fXSb6c6Rk2s8A7zpyvzbrRTs03A7kxniDXl8tYKD1nhzSbcf5\nHUso\r\n=Awh3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5uZk6u4qbB8MUnDs+s0wed0RKQkMvDRDtjjViHkvnQAiB+ZiGtjQOOFQwRAPGJ7fD0Y1EyVr6GgC8GBJzeEez8CA=="}]},"_npmUser":{"name":"8pay-admin","email":"8pay.network@gmail.com"},"directories":{},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.3.0_1636196107127_0.2770384563490196"},"_hasShrinkwrap":false},"1.4.0":{"name":"@8pay/sdk","version":"1.4.0","description":"JavaScript SDK for interacting with 8pay's smart contracts.","main":"index.js","scripts":{"test":"mocha --recursive --timeout 30000 --exit","coverage":"nyc --all npm test","lint":"eslint --ignore-path .gitignore .","lint:fix":"eslint --ignore-path .gitignore . --fix"},"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"keywords":["sdk","payments","contracts","blockchain"],"author":{"name":"8pay"},"license":"MIT","bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"homepage":"https://github.com/8pay/javascript-sdk#readme","dependencies":{"@8pay/deployments":"1.6.0","@8pay/tokens":"1.8.0","ethers":"^5.4.1","validator":"^13.6.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","web3":"^1.4.0"},"gitHead":"6932bb6bb8e314419f6481468e21f95734a371f9","_id":"@8pay/sdk@1.4.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-v85b9VcLj6WuSCnWGC85ioNKlRNkebg9Xjq/p0SdYGyKjgqTWqgPxpKUR1ZIJ1d10jj2+y/uzNIsNoyxWC8xWg==","shasum":"15331322dd3b1b779eb34c3a938d4a0bd5f54aa4","tarball":"https://registry.npmjs.org/@8pay/sdk/-/sdk-1.4.0.tgz","fileCount":24,"unpackedSize":57392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEy/E7b/2TMTKV5sKgX0xgZh0EcdtbhUew2CQX3QmR/PAiEAzBbF2NmR37i2nJ8SIfZsv/5QkT9g/0zxQuJr3P9fSAI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSEF1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoucQ/+Iu2K5DCmHvarCswnQfD1UulSRbwWLM+uBJMq09xzlP5pZrnJ\r\nBFgxkpRJwzVDpyzapjmk0laPCTOp+tYkRnU+/zDKfVlYY3lD5o9boO0OcWMK\r\nQyDN30by6PcyhpX6iQEA2OK7oPaJg8flBkU8OjggS5BxUs+Hs6QqyWE0qhs4\r\npJUoUu64nd+HojpYt6jmjOTF8q/U1NQXmmxpjGsyBcZVJCHwWd9ZgKvLNnRf\r\nFjxJbWIaSZZwnYkcuVmmV7M6I/U8ulDanEqfnj3uzeMhQEpl7bOIBBIRzKZo\r\nbDsYbY7Wa2GresU2vbG4j5wauvMjGmyO1MkReiOVUS/nCXVB7pzuTDbqyjpA\r\np0oZ3ksdQsML5F1lH/HsYx9xVkF5/jM8r/oB0BZtdDTM6mL3ZzTJz+x7AzEF\r\nQmSt8idQGuMOYaAnEZCVCo/S32mQuf2KI4sMH4p/zAwplUyubBiT0hkeeUjv\r\nnDFLSUOhzVq0zZuikvm+sp5RL58DHVraBbZ1w7nXbSU6EI41JgLvk66h1mum\r\nOAFwef8uJtR8vKSLwR28N2bHWYYdi2knjjmk8yMqKeBijR72LtyGqQs9ECkM\r\nEx/58Stu8+ufpStp7fpVtOxzRSvKErR8qvW/q6L6dWGTbHLiG6qVlrMME0vc\r\nRFUHHJVLhXe65PsxdIq0xEEXDrhT4NoUwDU=\r\n=woQ+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"8pay-admin","email":"8pay.network@gmail.com"},"directories":{},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.4.0_1648902516888_0.9953821451084572"},"_hasShrinkwrap":false},"1.5.0":{"name":"@8pay/sdk","version":"1.5.0","description":"JavaScript SDK for interacting with 8pay's smart contracts.","main":"index.js","scripts":{"test":"mocha --recursive --timeout 30000 --exit","coverage":"nyc --all npm test","lint":"eslint --ignore-path .gitignore .","lint:fix":"eslint --ignore-path .gitignore . --fix"},"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"keywords":["sdk","payments","contracts","blockchain"],"author":{"name":"8pay"},"license":"MIT","bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"homepage":"https://github.com/8pay/javascript-sdk#readme","dependencies":{"@8pay/deployments":"1.7.0","@8pay/tokens":"1.11.0","ethers":"^5.4.1","validator":"^13.6.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","web3":"^1.4.0"},"gitHead":"33b7d1d19ff15f51fbaff5955314e1bcf67bdaae","_id":"@8pay/sdk@1.5.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-lzPRHaAKp3uCx+64n5ehXTJEIo+fNg1rGfG9JL0uI59Fc6zROxWyIACRreGh42TkbGZvReZfeRz0GjkZGlOQHg==","shasum":"dfb0291a0d231ea5080c8cbdee94e80bf6663fca","tarball":"https://registry.npmjs.org/@8pay/sdk/-/sdk-1.5.0.tgz","fileCount":23,"unpackedSize":55884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEeLW7O8QMFtxXzPksAraJB11BAGya3SycwuCmd1IlVmAiB1+A8VAIq3ONJqdRAmQB2KSF2/oiJ0IhX9cHGehp0SBg=="}]},"_npmUser":{"name":"8pay-admin","email":"8pay.network@gmail.com"},"directories":{},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.5.0_1686821125245_0.5798980062583858"},"_hasShrinkwrap":false},"1.6.0":{"name":"@8pay/sdk","version":"1.6.0","description":"JavaScript SDK for interacting with 8pay's smart contracts.","main":"index.js","scripts":{"test":"mocha --recursive --timeout 30000 --exit","coverage":"nyc --all npm test","lint":"eslint --ignore-path .gitignore .","lint:fix":"eslint --ignore-path .gitignore . --fix"},"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"keywords":["sdk","payments","contracts","blockchain"],"author":{"name":"8pay"},"license":"MIT","bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"homepage":"https://github.com/8pay/javascript-sdk#readme","dependencies":{"@8pay/deployments":"1.8.0","@8pay/tokens":"1.12.0","ethers":"^5.4.1","validator":"^13.6.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","web3":"^1.4.0"},"gitHead":"26a4ef3b6c08b6985eb7de1a018002b39e4a641a","_id":"@8pay/sdk@1.6.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-RY33tPX2QP/B/TlOBEOig72qFoLkWdGuT1zdcNkZrprkqaVDc4+lVumdQd9xOmOqjZNHW9jhZIjyf+C1RTrOow==","shasum":"72d3a17a6cba57a6a1bdb81c987a794e11961943","tarball":"https://registry.npmjs.org/@8pay/sdk/-/sdk-1.6.0.tgz","fileCount":23,"unpackedSize":55884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzCeUmioUnWcyawj/988uL9y7MwG5HFBhOFEv58Gl5dQIgTai9Eb0ripCjVQ3pyXOweWVWgP4kacCCsgZSRebIuHs="}]},"_npmUser":{"name":"8pay-admin","email":"8pay.network@gmail.com"},"directories":{},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.6.0_1692968988146_0.674246915767847"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-07T20:04:09.225Z","1.0.0":"2021-07-07T20:04:09.697Z","modified":"2023-08-25T13:09:48.522Z","1.0.1":"2021-07-08T14:19:08.618Z","1.1.0":"2021-08-21T19:38:39.357Z","1.2.0":"2021-09-07T11:09:15.117Z","1.3.0":"2021-11-06T10:55:07.379Z","1.4.0":"2022-04-02T12:28:37.187Z","1.5.0":"2023-06-15T09:25:25.460Z","1.6.0":"2023-08-25T13:09:48.339Z"},"maintainers":[{"name":"8pay-admin","email":"8pay.network@gmail.com"}],"description":"JavaScript SDK for interacting with 8pay's smart contracts.","homepage":"https://github.com/8pay/javascript-sdk#readme","keywords":["sdk","payments","contracts","blockchain"],"repository":{"type":"git","url":"git+https://github.com/8pay/javascript-sdk.git"},"author":{"name":"8pay"},"bugs":{"url":"https://github.com/8pay/javascript-sdk/issues"},"license":"MIT","readme":"# @8pay/sdk\n\nThe SDK provides a way to programmatically interact with 8Pay's smart contracts along with some helper functions to simplify the integration process.\n\n## Requirements\n\n* web3 (1.0.0 or higher)\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the [npm registry](https://www.npmjs.com/).\n\nBefore installing, [download and install Node.js](https://nodejs.org/en/download/).\n\nInstallation is done using the [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```bash\n$ npm install @8pay/sdk\n```\n\n## Usage\n\nThis module uses [web3](https://www.npmjs.com/package/web3) under the hood, which is one of the most popular libraries used to interact with the `Web 3.0`.\n\nTo keep things familiar with `web3`, it follows the same structure when sending transactions and also adds additional functionalities.\n\nTo get started, create an instance of the 8pay's SDK and choose the **network** on which you want to operate:\n\n```js\nconst Web3 = require('web3');\nconst EightPay = require('@8pay/sdk');\n\nconst web3 = new Web3('<provider-url>');\nconst eightPay = new EightPay(web3, EightPay.Network.BSC);\n```\n\n### Supported networks\n\n* BSC\n* ETHEREUM\n* POLYGON\n* SANDBOX\n\n### Sending transactions\n\nThere are two ways to **sign a transaction** before broadcasting it to the blockchain:\n\n* With an unlocked account (e.g. when using Metamask)\n\n```js\neightPay.fixedRecurring.bill(planId, subscriptionIds)\n    .send({ from: account })\n```\n\n* With private key\n\n```js\neightPay.fixedRecurring.bill(planId, subscriptionIds)\n    .send({ privateKey: '0x32df7......' })\n```\n\n### Estimate gas\n\nThe gas consumed by a transaction can be estimated using the `estimateGas` function which takes an `options` object and returns the amount of gas required:\n\n```js\neightPay.fixedRecurring.bill(planId, subscriptionIds)\n    .estimateGas(options)\n```\n\n### Options\n\nThe `send` and `estimateGas` methods accept the same `options` object available in `web3` which allows setting parameters like `gas`, `gasPrice`, `nonce` and so on.\n\n### Events\n\nThe following events are emitted when sending a transaction: `sending`, `sent`, `transactionHash`, `receipt`, `confirmation` and `error`.\n\n```js\nconst receipt = await eightPay.fixedRecurring.bill(planId, subscriptionIds)\n    .send({ from: account })\n    .once('sending', payload => {})\n    .once('sent', payload => {})\n    .once('transactionHash', hash => {})\n    .once('receipt', receipt => {})\n    .on('confirmation', confirmation => {})\n    .on('error', error => {})\n```\n\n## Fixed Recurring\n\n### Bill\n\nBills subscriptions of a plan.\n\nParameters:\n* **planId** - id of the plan\n* **subscriptionIds** - array of subscription ids\n\n```js\nconst planId = '0x57b2059e526841b3dfd964144513359c9fcfd6d91040b6c47f589c1e032b6bf4';\nconst subscriptionIds = ['0xe63ba761797e289076f80a7c0916a31740684806aaf507da85f81ee785fec6ba'];\n\nconst receipt = await eightPay.fixedRecurring.bill(planId, subscriptionIds)\n    .send({ from: account })\n```\n\n### Terminate\n\nForcefully cancels subscriptions of a plan.\n\n**Note**: The sender account must be the plan's admin or an operational account with terminate permission.\n\nParameters:\n* **planId** - id of the plan\n* **subscriptionIds** - array of subscription ids\n\n```js\nconst planId = '0x57b2059e526841b3dfd964144513359c9fcfd6d91040b6c47f589c1e032b6bf4';\nconst subscriptionIds = ['0xe63ba761797e289076f80a7c0916a31740684806aaf507da85f81ee785fec6ba'];\n\nconst receipt = await eightPay.fixedRecurring.terminate(planId, subscriptionIds)\n    .send({ from: account })\n```\n\n## Variable Recurring\n\n### Bill\n\nBills subscriptions of a plan.\n\n**Note**: The sender account must be the plan's admin or an operational account with bill permission.\n\nParameters:\n* **planId** - id of the plan\n* **subscriptionIds** - array of subscription ids\n* **amounts** - array of amounts to charge for each subscription\n\n```js\nconst planId = '0x57b2059e526841b3dfd964144513359c9fcfd6d91040b6c47f589c1e032b6bf4';\nconst subscriptionIds = ['0xe63ba761797e289076f80a7c0916a31740684806aaf507da85f81ee785fec6ba'];\nconst amounts = [eightPay.utils.parseAmount('10', '8PAY')];\n\nconst receipt = await eightPay.variableRecurring.bill(planId, subscriptionIds, amounts)\n    .send({ from: account })\n```\n\n### Terminate\n\nForcefully cancels subscriptions of a plan.\n\n**Note**: The sender account must be the plan's admin or an operational account with terminate permission.\n\nParameters:\n* **planId** - id of the plan\n* **subscriptionIds** - array of subscription on-chain ids\n\n```js\nconst planId = '0x57b2059e526841b3dfd964144513359c9fcfd6d91040b6c47f589c1e032b6bf4';\nconst subscriptionIds = ['0xe63ba761797e289076f80a7c0916a31740684806aaf507da85f81ee785fec6ba'];\n\nconst receipt = await eightPay.variableRecurring.terminate(planId, subscriptionIds)\n    .send({ from: account })\n```\n\n## On Demand\n\n### Bill\n\nBills subscriptions of a plan.\n\n**Note**: The sender account must be the plan's admin or an operational account with bill permission.\n\nParameters:\n* **planId** - id of the plan\n* **subscriptionIds** - array of subscription ids\n* **amounts** - array of amounts to charge for each subscription\n\n```js\nconst planId = '0x57b2059e526841b3dfd964144513359c9fcfd6d91040b6c47f589c1e032b6bf4';\nconst subscriptionIds = ['0xe63ba761797e289076f80a7c0916a31740684806aaf507da85f81ee785fec6ba'];\nconst amounts = [eightPay.utils.parseAmount('10', '8PAY')];\n\nconst receipt = await eightPay.onDemand.bill(planId, subscriptionIds, amounts)\n    .send({ from: account })\n```\n\n### Terminate\n\nForcefully cancels subscriptions of a plan.\n\n**Note**: The sender account must be the plan's admin or an operational account with terminate permission.\n\nParameters:\n* **planId** - id of the plan\n* **subscriptionIds** - array of subscription ids\n\n```js\nconst planId = '0x57b2059e526841b3dfd964144513359c9fcfd6d91040b6c47f589c1e032b6bf4';\nconst subscriptionIds = ['0xe63ba761797e289076f80a7c0916a31740684806aaf507da85f81ee785fec6ba'];\n\nconst receipt = await eightPay.onDemand.terminate(planId, subscriptionIds)\n    .send({ from: account })\n```\n\n## Accounts\n\nThe accounts utility can be used to obtain an `account` object from a private key or a mnemonic. The `account` object has two properties: `address` and `privateKey`.\n\n```js\nconst privateKey = '<private-key>';\nconst account = eightPay.accounts.fromPrivateKey(privateKey);\n\n// OR\n\nconst mnemonic = '<mnemonic>';\nconst mnemonicIndex = 0;\nconst account = eightPay.accounts.fromMnemonic(mnemonic, mnemonicIndex);\n\nconsole.log(account);\n\n/*\n{\n    address: '0x2F2....',\n    privateKey: '0x1Ee...'\n}\n*/\n```\n\n## Utils\n\nTo help in parsing amount from and to ethereum decimals, you can use the `parseAmount` and `formatAmount` functions.\n\n```js\nconst parsedAmount = eightPay.utils.parseAmount('1', '8PAY') // 1000000000000000000\nconst amount = eightPay.utils.formatAmount(parsedAmount, '8PAY') // 1\n```\n","readmeFilename":"README.md"}