{"_id":"ghostmarket-sdk-js","_rev":"51-ae79d6ded6e79a823f9f59e1bda1a39a","name":"ghostmarket-sdk-js","dist-tags":{"latest":"0.6.0"},"versions":{"0.5.0":{"name":"ghostmarket-sdk-js","version":"0.5.0","description":"Javascript SDK for GhostMarket. Allow buyers, sellers, or projects to integrate with GhostMarket.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","test:ci":"jest","cacheClear":"jest --clearCache","prepare":"npm run build","build":"tsc -p tsconfig.build.json","lint":"eslint src/ --ext .ts","lint:fix":"eslint  src/ --ext .ts --fix"},"repository":{"type":"git","url":"git+https://github.com/OnBlockIO/ghostmarket-sdk-js.git"},"author":{"name":"GhostMarket"},"license":"MIT","bugs":{"url":"https://github.com/OnBlockIO/ghostmarket-sdk-js/issues"},"homepage":"https://github.com/OnBlockIO/ghostmarket-sdk-js#readme","devDependencies":{"@babel/core":"^7.17.10","@babel/preset-env":"^7.17.10","@babel/preset-typescript":"^7.16.7","@types/bignumber.js":"^5.0.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","@typescript-eslint/eslint-plugin":"^5.20.0","@typescript-eslint/parser":"^5.10.0","babel-jest":"^28.1.0","eslint":"^8.7.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.25.4","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.0","jest-extended":"^2.0.0","prettier":"^2.6.2","ts-jest":"^28.0.2","ts-node":"^10.7.0","typescript":"^4.5.4","web3-provider-engine":"^16.0.4"},"dependencies":{"@0x/subproviders":"^6.6.5","@cityofzion/neon-js":"^5.0.0","axios":"^0.27.2","bs58":"^5.0.0","dotenv":"^16.0.1","web3":"^1.7.4","web3-utils":"^1.7.3"},"keywords":["collectibles","typescript","javascript","marketplace","nft","ghostmarket","sdk"],"licenseText":"MIT License\n\nCopyright (c) 2021 GhostMarket\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 all\ncopies 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 THE\nSOFTWARE.","_id":"ghostmarket-sdk-js@0.5.0","dist":{"shasum":"230a3e344a0c6b393bb3d582cbd3fe1915516859","integrity":"sha512-tbzW6zs98qp+sVRY4odQcVA3JQCyaUVeGALitlhwHH5QUE2yI21ae+a5IaYtGSLcBUcqs5T7mQUeY11aFy6iUg==","tarball":"https://registry.npmjs.org/ghostmarket-sdk-js/-/ghostmarket-sdk-js-0.5.0.tgz","fileCount":449,"unpackedSize":640141,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGI6NZ1wa1AnFM31AcEetNqTtt8Iez/w5SxPsBGmQFOHAiEAyJhSvB2VDizwo45RoSZH6/1aU3g+U6X+1y8K345Rb4U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4EStACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOBg/+LdMeBs8cO9cQ2R81gxHGIxnS0eW3ArDTOnuoB2aDYLL5+jtB\r\naAdFoyrHHLvnrCdUgHvWoHW9RlpFJKg9uwoYsbA6H8ZNl6Oe1f3rx3SX1eh4\r\nP+KFjiXcHG/sBo5vdEUVibKZQ2d8PkVloUv1nObjQAn4cI4UHZpH3WDwNFYs\r\ndtVbWrW1Ui0iRIg5KQD5LprxJHpQ361ldkvPB1DBzkAuPBSNjV3BpAMrgzxV\r\nzywadAWd6orRhSFJpp1nKZuqcpNeiepiNQRFGjGwF5+R69QmSiy9x+4CvoiQ\r\nRtJ0sDZuiMDWvV+erbYhNkKJ1th1RjrDzOLFqwCWXuzkcZslChyHEkBc/Q4f\r\n1aBRVStmZa7gy7tIv1M/wbFGuJ8Pbor4Fgy8sleeEAqhA8tRB+Kg+HNAQpvF\r\nqSQlCFzI9tVR7ifvTOAnRJ+ihD1ajNOsYwcbQLBGJiRRu+E/zXDV9F++Gyp3\r\nE6q8+3qKkGMv0LvcDRpkDxi6u6Yk/h3z5RFVdtq8QuTQA+HmtjONfZmSJvSA\r\nkmyEMU+sGiUqgEyjw4Yvq/id/KGg+MdctUkMvI4UDDc/ARGsGaf4HL4VVSbx\r\nxzq/U99zZ3r2NyBeLX7dA0M3eu+y9kxciP8K8+SBms7Pc+11GvGPclUWIA+N\r\nV1VAiGGkiakk/B0UUyfyaHum1AFlcu6tPz0=\r\n=QjX7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"vincentgeneste","email":"vincent@ghostmarket.io"},"directories":{},"maintainers":[{"name":"vincentgeneste","email":"vincent@ghostmarket.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ghostmarket-sdk-js_0.5.0_1658864812787_0.768971665468275"},"_hasShrinkwrap":false},"0.5.1":{"name":"ghostmarket-sdk-js","version":"0.5.1","description":"Javascript SDK for GhostMarket. Allow buyers, sellers, or projects to integrate with GhostMarket.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","test:ci":"jest","cacheClear":"jest --clearCache","prepare":"npm run build","build":"tsc -p tsconfig.build.json","lint":"eslint src/ --ext .ts","lint:fix":"eslint  src/ --ext .ts --fix"},"repository":{"type":"git","url":"git+https://github.com/OnBlockIO/ghostmarket-sdk-js.git"},"author":{"name":"GhostMarket"},"license":"MIT","bugs":{"url":"https://github.com/OnBlockIO/ghostmarket-sdk-js/issues"},"homepage":"https://github.com/OnBlockIO/ghostmarket-sdk-js#readme","devDependencies":{"@babel/core":"^7.17.10","@babel/preset-env":"^7.17.10","@babel/preset-typescript":"^7.16.7","@types/bignumber.js":"^5.0.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","@typescript-eslint/eslint-plugin":"^5.20.0","@typescript-eslint/parser":"^5.10.0","babel-jest":"^28.1.0","eslint":"^8.7.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.25.4","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.0","jest-extended":"^2.0.0","prettier":"^2.6.2","ts-jest":"^28.0.2","ts-node":"^10.7.0","typescript":"^4.5.4","web3-provider-engine":"^16.0.4"},"dependencies":{"@0x/subproviders":"^6.6.5","@cityofzion/neon-js":"^5.0.0","axios":"^0.27.2","bs58":"^5.0.0","dotenv":"^16.0.1","web3":"^1.7.4","web3-utils":"^1.7.3"},"keywords":["collectibles","typescript","javascript","marketplace","nft","ghostmarket","sdk"],"licenseText":"MIT License\n\nCopyright (c) 2021 GhostMarket\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 all\ncopies 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 THE\nSOFTWARE.","_id":"ghostmarket-sdk-js@0.5.1","dist":{"shasum":"7f54612f740cd634f26e54d0eef53f3c45dbde83","integrity":"sha512-ZKTcwnaHfeMPVtesVU2m6VkCG1QmDZ96MFJenipjpqGYCutoyvZ0HMaNc1yzpZNVC9B3nVWbl3jPlN37gEjsBg==","tarball":"https://registry.npmjs.org/ghostmarket-sdk-js/-/ghostmarket-sdk-js-0.5.1.tgz","fileCount":458,"unpackedSize":643285,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJES5NIrHcJxUB8lBWl6Fwoomjz+93uFplrbKy0Z2vuAiEAh0GlOHJDwV1Gn00f66xtVGWPK4zqBUdsB6oYz6ifotw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4bTiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZMg//XC/PPwOCXDZDv+//T9hUzQePbmjpBp6yXdH1BwRA+UwA1h7c\r\njtPQ1JJBq9HCe/7xJughu1x+avIzdNWjF2IPiLnYxdKU9EkBgupnIQyRLoye\r\n0176APPTkfXteaUt60IkV22piPAnAzGHLg7Zxx8Ra/zGD8PPpB5U0QUmLcpr\r\n193xbvZC3Y3W6jjVicYEAQwaj3G/v/O7PbglBldymx2WUDN37XJcNR9IZqip\r\nSBPulWbKn8ZGYZcVQXy+xqyK4TBZl9c4znvAcvhRX/yEp9OloVVb9VysDWlK\r\nwanGqmj4tpfcTZErX7JuuTF2kCv+t61eRYR2td15XdreUk5oMa2T9ItiOFUw\r\nK1gm6l/b3cNXGxBifoEjnkRDLtv0WNdVraZ45DNuGK1LMm//GRwbUrsDMzGh\r\nD/hAkxwMdqmTcIWeUuci8mz8JDy0eM1QjmBNyLC5Vz+Hsq7d5eFtCvSORiQZ\r\nh/YKeMG5r8e55zIC2uRxBe/jjvUVUcDs9NpeyBaMA2K0wQSNl0A3DWh9b41N\r\nkoXLILmjcwv+rCoQh7WwMjz06Jun/o0ar1Jb5mjhw+jFkc5hs73HNXMK/v5X\r\nIHDxNJXi8nRYF/2uTZFFhC022gZuJgXdAnWC+4zBa6jxunVWM6m1qH+IzHeC\r\n5Dq7wkJnEesuiTdbiyjqNXgol83rzv3/Xm8=\r\n=cZyu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"vincentgeneste","email":"vincent@ghostmarket.io"},"directories":{},"maintainers":[{"name":"vincentgeneste","email":"vincent@ghostmarket.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ghostmarket-sdk-js_0.5.1_1658959073920_0.8644683044664458"},"_hasShrinkwrap":false},"0.5.3":{"name":"ghostmarket-sdk-js","version":"0.5.3","description":"Javascript SDK for GhostMarket. Allow buyers, sellers, or projects to integrate with GhostMarket.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","test:ci":"jest","cacheClear":"jest --clearCache","prepare":"npm run build","build":"tsc -p tsconfig.build.json","lint":"eslint src/ --ext .ts","lint:fix":"eslint  src/ --ext .ts --fix"},"repository":{"type":"git","url":"git+https://github.com/OnBlockIO/ghostmarket-sdk-js.git"},"author":{"name":"GhostMarket"},"license":"MIT","bugs":{"url":"https://github.com/OnBlockIO/ghostmarket-sdk-js/issues"},"homepage":"https://github.com/OnBlockIO/ghostmarket-sdk-js#readme","devDependencies":{"@babel/core":"^7.17.10","@babel/preset-env":"^7.17.10","@babel/preset-typescript":"^7.16.7","@types/bignumber.js":"^5.0.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","@typescript-eslint/eslint-plugin":"^5.20.0","@typescript-eslint/parser":"^5.10.0","babel-jest":"^28.1.0","eslint":"^8.7.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.25.4","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.0","jest-extended":"^2.0.0","prettier":"^2.6.2","ts-jest":"^28.0.2","ts-node":"^10.7.0","typescript":"^4.5.4","web3-provider-engine":"^16.0.4"},"dependencies":{"@0x/subproviders":"^6.6.5","@cityofzion/neon-js":"^5.0.0","axios":"^0.27.2","bs58":"^5.0.0","dotenv":"^16.0.1","web3":"^1.7.4","web3-utils":"^1.7.3"},"keywords":["collectibles","typescript","javascript","marketplace","nft","ghostmarket","sdk"],"licenseText":"MIT License\n\nCopyright (c) 2021 GhostMarket\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 all\ncopies 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 THE\nSOFTWARE.","_id":"ghostmarket-sdk-js@0.5.3","dist":{"shasum":"db423554751ea8c96a2359c65c64de963a51d2a3","integrity":"sha512-DVLODMok1EWUMHn09TZELjXj4P6PI+BL3eebiibMJCyTheZpYmgGgadnHtcWGOz9+6bxok0tBii7BVWJAqRvyg==","tarball":"https://registry.npmjs.org/ghostmarket-sdk-js/-/ghostmarket-sdk-js-0.5.3.tgz","fileCount":462,"unpackedSize":687884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjM8xQa0rNgqsVRrsWiOwhlynjkrIcOYg7TPpy0vu6RwIhAP4L27Bxgg8oFyDqNMgslJzpTqpbJhqKc7A19J5qbCUl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjILiJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/uhAAlHltGh0Oe0PTjw+fT01g89cV2iKaszRo53Te4Zdo4fb+QXCS\r\nv5LhMt+SeasEQDvCydKfOuEyIG3sv+qk1eosZO+HPUNbloBYPjCYOa7tIiWp\r\nzEF76MODO9riJ+dV0HWw/y1nmJSO6Q8/nZJ9FceqVy4ReMAQTkEQqesNkCSc\r\nG9nRnqID0HRJschSyGB2DbscWlIs5eFE7x89DIJc7AcJapbLK9lhW/aqZm2s\r\nWD9HUDpGpXU8bke5iOvEHm8wKIVYBCc01Z11K5G2gauzEphFnIgJmApG+UNe\r\no8mIZz1AUtEWB0sK92oRfnIAYEdKCK9sMTHRD/QIgbf01UMbziU+bUV11f+R\r\n7N5Z5sQt5jVCVhSxH3W4ftgIse/3QNNZSm0HDmj6cAugq2j2RuMB598FWtMU\r\nkQfXrVRDmZMIlgg8Q4JwjjZjsw+uh9i/N2Wx47FTc9Vu/2Xhp9jb62Y85Eym\r\nkgORLyzV6W2n37r9AA+wgIrNItcUtCyVJw4rueeBfDpqysonAIR4kDnf+1wT\r\nWauhM2DJraXkc+T+BgbOQ+/4aaFmO/9vcDVj0+FOFiEWRx5nsliyQ5wz7ODw\r\nowIOsiT1ln9wu72dWHoJeR7ZhcljSObYpm5CSFXdjYpRdyNIjwvLBUOIlXrG\r\nHoRGpX8T6bobbaFe6vyfp4HoNwZ2BC8zSGE=\r\n=d9WX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"vincentgeneste","email":"vincent@ghostmarket.io"},"directories":{},"maintainers":[{"name":"vincentgeneste","email":"vincent@ghostmarket.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ghostmarket-sdk-js_0.5.3_1663088777449_0.6120746342002015"},"_hasShrinkwrap":false},"0.6.0":{"name":"ghostmarket-sdk-js","version":"0.6.0","description":"Javascript SDK for GhostMarket. Allow buyers, sellers, or projects to integrate with GhostMarket.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","test:ci":"jest","cacheClear":"jest --clearCache","prepare":"npm run build","build":"tsc -p tsconfig.build.json","lint":"eslint src/ --ext .ts","lint:fix":"eslint  src/ --ext .ts --fix"},"repository":{"type":"git","url":"git+https://github.com/OnBlockIO/ghostmarket-sdk-js.git"},"author":{"name":"GhostMarket"},"license":"MIT","bugs":{"url":"https://github.com/OnBlockIO/ghostmarket-sdk-js/issues"},"homepage":"https://github.com/OnBlockIO/ghostmarket-sdk-js#readme","devDependencies":{"@babel/core":"^7.17.10","@babel/preset-env":"^7.17.10","@babel/preset-typescript":"^7.16.7","@types/bignumber.js":"^5.0.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","@typescript-eslint/eslint-plugin":"^5.20.0","@typescript-eslint/parser":"^5.10.0","babel-jest":"^28.1.0","eslint":"^8.7.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.25.4","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.0","jest-extended":"^2.0.0","prettier":"^2.6.2","ts-jest":"^28.0.2","ts-node":"^10.7.0","typescript":"^4.5.4","web3-provider-engine":"^16.0.4"},"dependencies":{"@0x/subproviders":"^6.6.5","@cityofzion/neon-js":"^5.0.0","axios":"^0.27.2","bs58":"^5.0.0","dotenv":"^16.0.1","web3":"^1.7.4","web3-utils":"^1.7.3"},"keywords":["collectibles","typescript","javascript","marketplace","nft","ghostmarket","sdk"],"licenseText":"MIT License\n\nCopyright (c) 2021 GhostMarket\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 all\ncopies 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 THE\nSOFTWARE.","_id":"ghostmarket-sdk-js@0.6.0","dist":{"shasum":"187660fbda427175980b3490db683b87a8467063","integrity":"sha512-aQgKTzvrf8CHx1+qoYRtWgueE1Gr57U6X0rvouIW572YY3MXH3l/OEGLnhl5MQwAK+AkG+gG0KdwVzw5byqEqQ==","tarball":"https://registry.npmjs.org/ghostmarket-sdk-js/-/ghostmarket-sdk-js-0.6.0.tgz","fileCount":462,"unpackedSize":715528,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnrs384ELCqyVD3oFhgc/msKx3bv5MG9zes56ZWWFJIAIhAIoOM5SyK4Dq/hSt4xtVsZDql30ZT7ShENQdbWPzUhYm"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJpSdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8PA//Y3753Z2sGW6FMsmhU35yaU9jF/Cxp8Cph3Hn5wcLYkVTFZ9r\r\nArpltw8BioYjsPVBTpVhW3iUNrUboSBIEJAyLl2Gb7N1wC8prh3FMAyAO6Sg\r\nmtDo+Ntx4Xtw/eG/FOiLK5m3V1Fj485KcNZEoJRuDUdf6iztqXC61GUoBTA9\r\nQUMgLwHvGTToUnHauoPtCkRWY0Yukfw9I1KI0QAn4ZbzVnMUxzmecwRmdBwF\r\ncNTofPFG8sMe1+U3KN8jL0rlKmuo7xC32UINTienQIsxETWSQwXm4NlEfelO\r\nsltvPZbF4GwBQdz6o06wBTk/+glt+MEyS4rDYr46nUoLcjn304hVAnKtfmka\r\ntxTjsprf6NxetNhhJUh9DExwWXGQu2u4BwjFSCjD1XRiegz7xLlLNpYgLcLu\r\nIU49ps4V93U9jkHwr8a3eAj+B1Hj4c7u46m42Yym0Wnbyjk3CUmc8KWdqvff\r\najv16FeAJQKNr/BJ5TM24OXMNPirmKwPRtkhmtG7ysD6nPD/rMwQR+0Sbj1m\r\nqODUr3RiUWTw2BLYHn7k7A1aWXHpaufUnhTHsr10KKg+KGgw1mpLBkbTF1Nm\r\nKle5RGuxckSstL/k1QYeoKmqSYq3FJ8JOzG74YWv/72HH/Awnd7Uun/JTzUE\r\nM6TO3R5Jmj6PkUpWvnhduYZF7CX65jCKG0c=\r\n=L1rj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"vincentgeneste","email":"vincent@ghostmarket.io"},"directories":{},"maintainers":[{"name":"vincentgeneste","email":"vincent@ghostmarket.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ghostmarket-sdk-js_0.6.0_1663472796834_0.4604358567938325"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-12T08:12:53.480Z","0.1.3":"2022-07-12T08:12:53.763Z","modified":"2023-09-18T14:49:42.451Z","0.1.4":"2022-07-12T08:38:44.640Z","0.1.5":"2022-07-12T08:46:03.703Z","0.1.6":"2022-07-12T09:00:00.483Z","0.1.7":"2022-07-12T17:25:28.174Z","0.2.0":"2022-07-12T17:35:40.217Z","0.2.2":"2022-07-12T18:32:51.461Z","0.2.4":"2022-07-12T22:01:24.984Z","0.2.5":"2022-07-12T22:25:00.227Z","0.2.6":"2022-07-12T23:09:23.560Z","0.2.7":"2022-07-12T23:20:32.365Z","0.2.8":"2022-07-12T23:30:10.542Z","0.2.9":"2022-07-13T04:18:49.895Z","0.3.1":"2022-07-15T19:23:34.508Z","0.3.4":"2022-07-16T21:47:54.288Z","0.3.5":"2022-07-21T07:08:07.334Z","0.3.6":"2022-07-21T08:44:40.439Z","0.3.7":"2022-07-21T20:11:55.481Z","0.3.8":"2022-07-21T20:27:31.747Z","0.4.2":"2022-07-25T18:44:44.238Z","0.4.3":"2022-07-26T00:52:33.181Z","0.4.5":"2022-07-26T07:54:55.858Z","0.4.7":"2022-07-26T09:06:45.142Z","0.5.0":"2022-07-26T19:46:53.042Z","0.5.1":"2022-07-27T21:57:54.185Z","0.5.3":"2022-09-13T17:06:17.692Z","0.6.0":"2022-09-18T03:46:37.046Z"},"maintainers":[{"email":"worlddelete0@gmail.com","name":"worldedit"},{"email":"vincent@ghostmarket.io","name":"vgeneste"}],"description":"Javascript SDK for GhostMarket. Allow buyers, sellers, or projects to integrate with GhostMarket.","homepage":"https://github.com/OnBlockIO/ghostmarket-sdk-js#readme","keywords":["collectibles","typescript","javascript","marketplace","nft","ghostmarket","sdk"],"repository":{"type":"git","url":"git+https://github.com/OnBlockIO/ghostmarket-sdk-js.git"},"author":{"name":"GhostMarket"},"bugs":{"url":"https://github.com/OnBlockIO/ghostmarket-sdk-js/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <img src=\"https://cdn.ghostmarket.io/brands/gm-light-logo-oneline.svg\" />\n</p>\n\n# ghostmarket-sdk-js\n\n[![https://badges.frapsoft.com/os/mit/mit.svg?v=102](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://opensource.org/licenses/MIT)\n\nGhostmarket SDK offers a complete set of functionalities enabling access to GhostMarket as a full-fledged SDK written in TypeScript/Javascript.\n\nFull support in a single SDK of all blockchains integrated with GhostMarket, currently six: Ethereum, BSC, Avalanche, Polygon, Phantasma, Neo N3.\n\nCheckout the [Changelog](https://github.com/OnBlockIO/ghostmarket-sdk-js/blob/master/CHANGELOG.md)\n\nPublished on [GitHub](https://github.com/OnBlockIO/ghostmarket-sdk-js) and [npm](https://www.npmjs.com/package/ghostmarket-sdk-js)\n\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n- [Usage Common](#usage-common)\n    - [Getting assets](#getting-assets)\n    - [Getting events](#getting-events)\n    - [Getting collections](#getting-collections)\n    - [Getting offers](#getting-offers)\n    - [Getting orders](#getting-orders)\n    - [Getting NFT balances](#getting-nft-balances)\n    - [Getting token balances](#getting-token-balances)\n    - [Getting token approval](#getting-token-approval)\n    - [Getting incentives](#getting-incentives)\n    - [Set contract royalties](#set-contract-royalties)\n    - [Approve token](#approve-token)\n    - [Claiming incentives](#claiming-incentives)\n    - [Getting LP stakes](#getting-lp-stakes)\n    - [Getting LP rewards](#getting-lp-rewards)\n    - [Claiming LP rewards](#claiming-lp-rewards)\n    - [Stake LP tokens](#stake-lp-tokens)\n    - [Signing Data](#signing-data)\n- [Usage EVM](#usage-evm)\n    - [Buying NFT](#buying-nft)\n    - [Listing NFT fixed price](#listing-nft-fixed-price)\n    - [Cancel listing](#cancel-listing)\n    - [Edit listing price](#edit-listing-price)\n    - [Place offer](#place-offer)\n    - [Accept offer](#accept-offer)\n    - [Getting contract approval](#getting-contract-approval)\n    - [Wrap token](#wrap-token)\n    - [Approve contract](#approve-contract)\n    - [Getting native balance](#getting-native-balance)\n    - [Transfer ERC20 token](#transfer-erc20-token)\n    - [Transfer ERC721 NFT](#transfer-erc721-nft)\n    - [Transfer ERC1155 NFT](#transfer-erc1155-nft)\n    - [Burn ERC721 NFT](#burn-erc721-nft)\n    - [Burn ERC1155 NFT](#burn-erc1155-nft)\n    - [Mint ERC721 NFT](#mint-erc721-nft)\n    - [Mint ERC1155 NFT](#mint-erc1155-nft)\n- [Usage Neo N3](#usage-neo-n3)\n    - [Buying NFT](#buying-nft)\n    - [Listing NFT fixed price](#listing-nft-fixed-price)\n    - [Listing NFT auction](#listing-nft-auction)\n    - [Bid NFT auction](#bid-nft-auction)\n    - [Claim NFT auction](#claim-nft-auction)\n    - [Cancel listing](#cancel-listing)\n    - [Edit listing price](#edit-listing-price)\n    - [Place offer](#place-offer)\n    - [Accept offer](#accept-offer)\n    - [Cancel offer](#cancel-offer)\n    - [Transfer NEP17 token](#transfer-nep17-token)\n    - [Transfer NEP11 NFT](#transfer-nep11-nft)\n    - [Burn NEP11 NFT](#burn-nep11-nft)\n    - [Mint NEP11 NFT](#mint-nep11-nft)\n\n\n- [Development](#development)\n\n\n## Installation\n\nWe recommend using Node.js version 16.\n\n```bash\nyarn add ghostmarket-sdk-js\n```\nor if using npm\n```bash\nnpm install --save ghostmarket-sdk-js\n```\n\nInstall [web3](https://github.com/ethereum/web3.js) if you don't have it already.\n\n## Getting started\n\n### EVM quickstart\n\nTo get started on EVM, you can use either a read only provider, a web3 provider (ex metamask) or a private key (to be stored in `.env` file, see `.env.example` for a reference).\n\n```js\nimport Web3 from 'web3'\nimport { GhostMarketSDK, Chain, TESTNET_API_URL, MAINNET_API_URL } from 'ghostmarket-sdk-js';\n// if using EVM private key or mnemonic hdwallet-provider is required\n// import HDWalletProvider from '@truffle/hdwallet-provider'\n\n\n// Variables\nconst apiKey = process.env.GM_API_KEY // GhostMarket API KEY if you have one\nconst privateKey = process.env.PRIVATE_KEY // private key to use - only for private key provider\nconst rpcUrl = process.env.RPC_URL // RPC to use, ex 'https://mainnet.infura.io'\nconst environment = MAINNET_API_URL // GhostMarket Infrastructure - MAIN_ENVIRONMENT or TEST_ENVIRONMENT\nconst chainName = Chain.ETHEREUM // see below for chain values\n\n/* chainName values : \n    Chain.ETHEREUM / Chain.ETHEREUM_TESTNET\n    Chain.POLYGON / Chain.POLYGON_TESTNET\n    Chain.BSC / Chain.BSC_TESTNET\n    Chain.AVALANCHE / Chain.AVALANCHE_TESTNET\n    */\n\n// SDK config options.\nconst sdkConfig = {\n    apiKey,\n    rpcUrl,\n    environment,\n    chainName,\n}\n\n// Option 1 - readonly provider, only reads the network state. Can not sign transactions\nconst customProvider = new Web3.providers.HttpProvider(rpcUrl)\nconst address = ''\n// Option 2 - metamask provider\nconst customProvider = window.ethereum\nconst address = await ethereum.request({\n    method: 'eth_requestAccounts',\n  })[0];\n// Option 3 - private key\nconst customProvider = new HDWalletProvider(privateKeys: [privateKey], providerOrUrl: rpcUrl)\nconst address = customProvider.addresses[0]\n// Create instance of GhostMarketSDK - EVM\nconst gmSDK = new GhostMarketSDK(customProvider, sdkConfig);\n// Start and stop provider engine - when using HDWalletProvider\n// customProvider.engine.start();\n// your code here\n// customProvider.engine.stop();\n\n// All set - use the object gmSDK to access GhostMarket SDK\n```\n\n### Neo N3 quickstart\n\nTo get started on Neo N3, you can use either a NEP-12 provider (ex neoline or o3) or a private key (to be stored in `.env` file, see `.env.example` for a reference).\n\n```js\nimport { GhostMarketN3SDK, Chain, TESTNET_API_URL, MAINNET_API_URL } from 'ghostmarket-sdk-js';\n\n// Variables\nconst apiKey = process.env.GM_API_KEY // GhostMarket API KEY if you have one\nconst privateKey = process.env.PRIVATE_KEY // private key to use - only for Neo N3 private provider\nconst rpcUrl = process.env.RPC_URL // RPC to use instead of default ones\nconst environment = MAINNET_API_URL // GhostMarket Infrastructure - MAIN_ENVIRONMENT or TEST_ENVIRONMENT\nconst chainName = Chain.NEO3 // see below for chain values\n\n/* chainName values : \n    Chain.NEO3 / Chain.NEO3_TESTNET\n    */\n\n// SDK config options.\nconst sdkConfig = {\n    apiKey,\n    rpcUrl,\n    environment,\n    chainName,\n    privateKey\n}\n\n// Option 1 - neoline\nconst customProvider = 'neoline'\n// Option 2 - o3\nconst customProvider = 'o3'\n// Option 3 - private key\nconst customProvider = 'private'\n// Create instance of GhostMarketN3SDK - Neo N3\nconst gmSDK = new GhostMarketN3SDK(customProvider, sdkConfig);\n// Connected address (neoline / o3)\nconst address = (await gmSDK.getProvider().getAccount()).address\n\n// All set - use the object gmSDK to access GhostMarket SDK\n```\n\n## Usage Common\n\n### Getting assets\n\n```js\n// Fetch 10 GhostMarket assets.\nconst { assets } = await gmSDK.api.getAssetsV2({ size: 10 })\nconsole.info(assets)\n```\n\n### Getting events\n\n```js\n// Fetch 10 GhostMarket events.\nconst { events } = await gmSDK.api.getEventsV2({ size: 10 })\nconsole.info(events)\n```\n\n### Getting collections\n```js\n// Fetch 10 GhostMarket collections.\nconst { collections } = await gmSDK.api.getCollectionsV2({ size: 10 })\nconsole.info(collections)\n```\n\n### Getting offers \n```js\n// Fetch offers from asset.\nconst chain = '' // filter by chain.\nconst contractAddress = '' // filter for one contract.\nconst tokenId = '' // filter for one tokenId.\nconst { offers } = await gmSDK.api.getAssetOffersV2({ chain, contractAddress, tokenId })\nconsole.info(offers)\n```\n\n### Getting orders \n```js\n// Fetch orders from asset.\nconst chain = '' // filter by chain.\nconst contractAddress = '0x....' // filter for one contract.\nconst tokenId = '' // filter for one tokenId.\nconst { orders } = await gmSDK.api.getAssetOrdersV2({ chain, contractAddress, tokenId })\nconsole.info(orders)\n```\n\n### Getting NFT balances\n```js\nconst chain = '' // filter by chain.\nconst contractAddress =  '' // filter for one contract.\nconst owners = ['0x....'] // filter by one or more owner.\nconst balance = await gmSDK.api.getAssetsV2({ chain, contractAddress, owners })\nconsole.info(balance)\n```\n\n### Getting token balances\n```js\nconst contract =  '' \nconst balance = await gmSDK.checkTokenBalance(contract, address)\nconsole.info(balance)\n```\n\n### Getting token approval\n```js\nconst contract = '0x....'\nconst approval = await gmSDK.checkTokenApproval(contract, address)\nconsole.info(approval)\n```\n\n### Getting incentives\n```js\nconst incentives = await gmSDK.checkIncentives(address)\nconst availableIncentives = incentives ? incentives.availableIncentives : 0 // EVM\nconst availableIncentives = incentives[5] ? incentives[5].value : 0 // Neo N3\nconsole.info(availableIncentives)\n```\n\n### Set contract royalties\n```js\nconst contractAddress = '0x....'\nconst royaltiesArray = [{address, value: 1000}] // array of recipient/value array (in bps).\nconst royalties = await gmSDK.setRoyaltiesForContract(contractAddress, royaltiesArray, {from: address})\nconsole.info(royalties)\n```\n\n### Approve token\n```js\nconst contract = '0x....'\nconst approve = await gmSDK.approveToken(contract, {from: address})\nconsole.info(approve)\n```\n\n### Claiming incentives\n```js\nconst claim = await gmSDK.claimIncentives({from: address})\nconsole.info(claim)\n```\n\n### Getting LP stakes\n```js\nconst stakes = await gmSDK.checkLPStakes(address)\nconsole.info(stakesDetails)\n```\n\n### Getting LP rewards\n```js\nconst rewards = await gmSDK.checkLPRewards(address)\nconsole.info(rewards)\n```\n\n### Claiming LP rewards\n```js\nconst claim = await gmSDK.claimLPRewards({from: address})\nconsole.info(claim)\n```\n\n### Stake LP tokens\n```js\nconst amount = '1' // in wei (evm) or biginteger format (n3).\nconst isStaking = true // set to false to unstake.\nconst stake = await gmSDK.stakeLPTokens(amount, isStaking, {from: address})\nconsole.info(stake)\n```\n\n### Signing data\n```js\nconst message = 'signing stuff'\nconst signed = await gmSDK.signData(message, address) // EVM\nconst signed = await gmSDK.signData(message) // N3\nconsole.info(signed)\n```\n\n## Usage EVM\n\nYou can override automatic calculation of gas price if you add it to the last argument object on each transaction requiring signature.\nExample when wrapping a token:\n\ninstead of `const wrap = await gmSDK.wrapToken(amount, isWrap, {from: address})` simply do `const wrap = await gmSDK.wrapToken(amount, isWrap, {from: address, gasPrice: 50000})` if you want to override gas price to `50000`.\n\nAll interfaces are documented here: [EVM interfaces](https://github.com/OnBlockIO/ghostmarket-sdk-js/blob/master/src/core/models/evm/index.ts)\n\n### Buying NFT\n```js\nconst orderDetails = { \n    baseContract: '0x....', // order maker base contract address.\n    baseTokenId: '1', // order maker NFT tokenId - set to the one to offer for a collection offer.\n    baseTokenAmount: 1, // order maker amount - optional - only needed for ERC1155 otherwise default to 1.\n    quoteContract: '0x....', // order maker quote contract address - use 0x for native currency (ex. ETH).\n    quotePrice: '1', // order maker price - in wei.\n    makerAddress: '0x....', // order maker.\n    type: 1, // order maker type 1 - listing, 2 - offer.\n    startDate: 0, // order maker start date.\n    endDate: 0, // order maker end date.\n    salt: '0x....', // order maker salt.\n    signature: '0x....', // order maker signature.\n}\nconst buying = await gmSDK.matchOrders(orderDetails, {from: address})\nconsole.info(buying)\n```\n\n### Listing NFT fixed price\n```js\nconst startDate = parseInt((new Date().getTime() / 1000).toString())\nconst orderDetails = [{ \n    baseContract: '0x....', // order base contract address - nft contract for listing.\n    baseTokenId: '1', // order NFT tokenId - token id for listing - set to empty for collection offer.\n    baseTokenAmount: 1, // order amount - only needed for ERC1155 otherwise default to 1.\n    quoteContract: '0x....', // order quote contract address - currency accepted for listing - use 0x for native currency (ex. ETH).\n    quotePrice: '1', // order price - in wei.\n    makerAddress: '0x....', // order maker.\n    type: 1, // 1 - listing, 2 - offer, 3 - collection offer.\n    startDate, // order start date.\n    endDate: startDate + (3600 * 24) // order end date.\n}]\nconst listing = await gmSDK.createOrder(orderDetails)\nconsole.info(listing)\n```\n\n### Cancel Listing NFT\n```js\nconst orderDetails = [{ \n    baseContract: '0x....', // order base contract address - nft contract for listing.\n    baseTokenId: '1', // order NFT tokenId - token id for listing - set to empty for collection offer.\n    baseTokenAmount: 1, // order amount - only needed for ERC1155 otherwise default to 1.\n    quoteContract: '0x....', // order quote contract address - currency accepted for listing - use 0x for native currency (ex. ETH).\n    quotePrice: '1', // order price - in wei.\n    makerAddress: '0x....', // order maker.\n    type: 1, // 1 - listing, 2 - offer, 3 - collection offer.\n    startDate: 0, // order start date.\n    endDate: 0, // order end date.\n    salt: '0x....' // required for cancellation, use the salt from the order/offer.\n}]\nconst cancel = await gmSDK.bulkCancelOrders(orderDetails, {from: address})\nconsole.info(cancel)\n```\n\n### Edit listing price\nNote: edit listing price does not cancel current order, it just hides it on API and exposes the new one only, but the old one can still be matched later. Only a true cancellation will make it un matcheable - only supported for ERC721.\n```js\nconst orderDetails = [{ \n    baseContract: '0x....', // order base contract address - nft contract for listing.\n    baseTokenId: '1', // order NFT tokenId - token id for listing - set to empty for collection offer.\n    baseTokenAmount: 1, // order amount - only needed for ERC1155 otherwise default to 1.\n    quoteContract: '0x....', // order quote contract address - currency accepted for listing - use 0x for native currency (ex. ETH).\n    quotePrice: '1', // order new price - in wei - has to be lower than current price.\n    makerAddress: '0x....', // order maker.\n    type: 1, // 1 - listing, 2 - offer, 3 - collection offer.\n    startDate: 0, // order start date.\n    endDate: 0, // order end date.\n    salt: '0x....' // required for edit, use the salt from the order/offer.\n}]\nconst edit = await gmSDK.createOrder(orderDetails)\nconsole.info(edit)\n```\n\n### Place offer\n```js\nconst startDate = parseInt((new Date().getTime() / 1000).toString())\nconst orderDetails = [{ \n    baseContract: '0x....', // order base contract address - nft contract for listing.\n    baseTokenId: '1', // order NFT tokenId - token id for listing - set to empty for collection offer.\n    baseTokenAmount: 1, // order amount - only needed for ERC1155 otherwise default to 1.\n    quoteContract: '0x....', // order quote contract address.\n    quotePrice: '1', // order price - in wei.\n    makerAddress: '0x....', // order maker.\n    type: 2, // 1 - listing, 2 - offer, 3 - collection offer.\n    startDate, // order start date.\n    endDate: startDate + (3600 * 24) // order end date.\n}]\nconst listing = await gmSDK.createOrder(orderDetails)\nconsole.info(listing)\n```\n\n### Accept offer\n```js\nconst orderDetails = [{ \n    baseContract: '0x....', // order maker base contract address.\n    baseTokenId: '1', // order maker NFT tokenId - set to the one to offer for a collection offer.\n    baseTokenAmount: 1, // order maker amount - only needed for ERC1155 otherwise default to 1.\n    quoteContract: '0x....', // order maker quote contract address.\n    quotePrice: '1', // order maker price - in wei.\n    makerAddress: '0x....', // order maker.\n    type: 2, // order maker type 1 - listing, 2 - offer, 3 - collection offer.\n    startDate: 0, // order maker start date.\n    endDate: 0, // order maker end date.\n    salt: '0x....', // order maker salt.\n    signature: '0x....', // order maker signature.\n}]\nconst accept = await gmSDK.matchOrders(orderDetails, {from: address})\nconsole.info(accept)\n```\n\n### Cancel offer\n```js\nconst orderDetails = [{ \n    baseContract: '0x....', // order base contract address - nft contract for listing.\n    baseTokenId: '1', // order NFT tokenId - token id for listing - set to empty for collection offer.\n    baseTokenAmount: 1, // order amount - only needed for ERC1155 otherwise default to 1.\n    quoteContract: '0x....', // order quote contract address.\n    quotePrice: '1', // order price - in wei.\n    makerAddress: '0x....', // order maker.\n    type: 2, // 1 - listing, 2 - offer, 3 - collection offer.\n    startDate: 0, // order start date.\n    endDate: 0, // order end date.\n    salt: '0x....'\n}]\nconst cancel = await gmSDK.bulkCancelOrders(orderDetails, {from: address})\nconsole.info(listing)\n```\n\n### Getting contract approval\n```js\nconst contract = '0x....'\nconst approval = await gmSDK.checkContractApproval(contract, address)\nconsole.info(approval)\n```\n\n### Wrap token\n```js\nconst amount = '1' // in wei.\nconst isWrap = true // set to false to unwrap.\nconst wrap = await gmSDK.wrapToken(amount, isWrap, {from: address})\nconsole.info(wrap)\n```\n\n### Approve contract\n```js\nconst contract = '0x....'\nconst approval = await gmSDK.approveContract(contract, {from: address})\nconsole.info(approval)\n```\n\n### Getting native balance\n```js\nconst balance = await gmSDK.checkBalance(contract)\nconsole.info(balance)\n```\n\n### Transfer ERC20 token\n```js\nconst destination = '0x....'\nconst contract = '0x....'\nconst amount = '1' // in wei.\nconst transfer = await gmSDK.transferERC20(destination, contract, amount, {from: address})\nconsole.info(transfer)\n```\n\n### Transfer ERC721 NFT\n```js\nconst destination = '0x....'\nconst contract = '0x....'\nconst tokenId = '1'\nconst transfer = await gmSDK.transferERC721(destination, contract, tokenId, {from: address})\nconsole.info(transfer)\n```\n\n### Transfer ERC1155 NFT\n```js\nconst destination = '0x....'\nconst contract = '0x....'\nconst tokenId = '1'\nconst amount = 1\nconst transfer = await gmSDK.transferERC1155(destination, contract, [tokenId], [amount], {from: address})\nconsole.info(transfer)\n```\n\n### Burn ERC721 NFT\n```js\nconst contract = '0x....'\nconst tokenId = '1'\nconst burn = await gmSDK.burnERC721(contract, tokenId, {from: address})\nconsole.info(burn)\n```\n\n### Burn ERC1155 NFT\n```js\nconst contract = '0x....'\nconst tokenId = '1'\nconst amount = 1\nconst burn = await gmSDK.burnERC1155(contract, tokenId, amount, {from: address})\nconsole.info(burn)\n```\n\n### Mint ERC721 NFT\n```js\nconst royaltyRecipient = '0x....'\nconst mintDetails = {\n    creatorAddress: '0x....',\n    royalties: [{address: royaltyRecipient, value: 1000}], // royalties - optional - use bps.\n    externalURI: 'ipfs://xxx'\n}\nconst token = await gmSDK.mintERC721(mintDetails, {from: address})\nconsole.info(token)\n```\n\n### Mint ERC1155 NFT\n```js\nconst royaltyRecipient = '0x....'\nconst mintDetails = {\n    creatorAddress: '0x....',\n    royalties: [{address: royaltyRecipient, value: 1000}], // royalties - optional - use bps.\n    externalURI: 'ipfs://xxx'\n}\nconst amount = 1\nconst token = await gmSDK.mintERC1155(mintDetails, amount, {from: address})\nconsole.info(token)\n```\n\n## Usage Neo N3\n\nYou can override automatic calculation of network fee and system fee if you add it to the last argument object on each transaction requiring signature.\nExample when buying a NFT:\n\ninstead of `const buying = await gmSDK.buyMultiple(buyingDetails, {from: address})` simply do `const buying = await gmSDK.buyMultiple(buyingDetails, {from: address, systemFee: '0.2', networkFee: '0.2'})` if you want to override both with 0.2 GAS\n\nAll interfaces are documented here: [Neo N3 interfaces](https://github.com/OnBlockIO/ghostmarket-sdk-js/blob/master/src/core/models/n3/index.ts)\n\n### Buying NFT\n```js\nconst buyingDetails = [{ \n    contractAuctionId: '1', // on chain contract auction ID.\n    price: '1', // order price - in biginteger format.\n    quoteContract: '0x....', // order quote contract address.\n}]\nconst buying = await gmSDK.buyMultiple(buyingDetails, {from: address})\nconsole.info(buying)\n```\n\n### Listing NFT fixed price\n```js\nconst startDate = new Date().getTime()\nconst listingDetails = [{ \n    tokenId: '1', // order NFT tokenId - token id for listing.\n    baseContract: '0x....', // order base contract address - nft contract for listing.\n    price: '1', // order price - in biginteger format.\n    quoteContract: '0x....', // order quote contract address - currency accepted for listing.\n    startDate, // order start date - set to custom one or it will default to right now.\n    endDate: 0, // order end date - set to custom one or it will default to unexpiring.\n}]\nconst listing = await gmSDK.sellMultiple(listingDetails, {from: address})\nconsole.info(listing)\n```\n\n### Listing NFT auction\n```js\nconst startDate = new Date().getTime()\nconst auctionDetails = { \n    auctionType: 1, // classic (1) reserve (2) dutch (3).\n    tokenId: '1', // auction NFT tokenId.\n    baseContract: '0x....', // auction base contract address.\n    extensionPeriod: 600, // auction extension period - 600 for 10 min - max 1 hour.\n    startDate, // auction start date.\n    endDate: startDate + 600000, // auction end date. - startDate + 600000 for ten minutes.\n    startPrice: '1', // auction start price in biginteger format.\n    endPrice: 0, // auction end price - only used for dutch auctions.\n    quoteContract: '0x....', // auction quote contract address.\n}\nconst auction = await gmSDK.listAuction(auctionDetails, {from: address})\nconsole.info(auction)\n```\n\n### Bid NFT auction\n```js\nconst auctionDetails = { \n    contractAuctionId: '1', // on chain contract auction ID.\n    bidPrice: '1', // bid price in biginteger format.\n    quoteContract: '0x....', // auction quote contract address.\n}\nconst bid = await gmSDK.bidAuction(auctionDetails, {from: address})\nconsole.info(bid)\n```\n\n### Claim NFT auction\n```js\nconst contractAuctionId = '1' // on chain contract auction ID.\nconst claim = await gmSDK.claimAuction(contractAuctionId, {from: address})\nconsole.info(claim)\n```\n\n### Cancel listing\n```js\nconst buyingDetails = [{ \n    contractAuctionId: '1', // on chain contract auction ID.\n    quoteContract: '0x....', // order quote contract address.\n    isCancellation: true, // is it a cancellation.\n}]\nconst cancel = await gmSDK.buyMultiple(buyingDetails, {from: address})\nconsole.info(cancel)\n```\n\n### Edit listing price\n```js\nconst contractAuctionId = '1' // on chain contract auction ID.\nconst price = '1' // new price in biginteger format.\nconst edit = await gmSDK.editPrice(contractAuctionId, price, {from: address})\nconsole.info(edit)\n```\n\n### Place offer\n```js\nconst startDate = new Date().getTime()\nconst offerDetails = [{ \n    baseContract: '0x....', // offer base contract address - nft contract for offer.\n    quoteContract: '0x....', // offer quote contract address - currency for offer - only GM supported for now.\n    tokenId: '1', // offer NFT tokenId - token id for listing - leave empty for collection offer.\n    price: '1', // offer price - in biginteger format.\n    startDate, // offer start date - set to custom one or it will default to right now.\n    endDate: 0, // offer end date - set to 0 for unexpiring - startDate + 604800 for one week.\n}]\nconst offer = await gmSDK.placeOffer(offerDetails, {from: address})\nconsole.info(offer)\n```\n\n### Accept offer\n```js\nconst offerDetails = { \n    auctionId: '1', // on chain contract auction ID.\n    quoteContract: '0x....', // offer quote contract address - currency for offer - only GM supported for now.\n    tokenId: '1', // offer NFT tokenId - token id for listing - pass tokenId for collection offer.\n    isCancellation: false, // is it an offer (true) or a cancellation (false).\n}\nconst offer = await gmSDK.processOffer(offerDetails, {from: address})\nconsole.info(offer)\n```\n\n### Cancel offer\n```js\nconst offerDetails = { \n    auctionId: '1', // on chain contract auction ID.\n    quoteContract: '0x....', // offer quote contract address - currency for offer - only GM supported for now.\n    tokenId: '', // offer NFT tokenId - token id for listing - pass tokenId for collection offer.\n    isCancellation: true, // is it an offer (true) or a cancellation (false).\n}\nconst offer = await gmSDK.processOffer(offerDetails, {from: address})\nconsole.info(offer)\n```\n\n### Transfer NEP17 token\n```js\nconst destination = 'NLp9MRxBHH2YJrsF1D1VMXg3mvze3WSTqn'\nconst quoteContract = '0x....'\nconst amount = '1' // in biginteger format.\nconst transfer = await gmSDK.transferNEP17(destination, quoteContract, amount, {from: address})\nconsole.info(transfer)\n```\n\n### Transfer NEP11 NFT\n```js\nconst transferDetails = [{ \n    destination: 'NLp9MRxBHH2YJrsF1D1VMXg3mvze3WSTqn', // destination address.\n    baseContract: '0x....', // contract address.\n    tokenId: '1', // tokenId.\n}]\nconst transfer = await gmSDK.transferNEP11(transferDetails, {from: address})\nconsole.info(transfer)\n```\n\n### Burn NEP11 NFT\n```js\nconst burnDetails = [{ \n    contractAddress: '0x....', // contract address.\n    tokenId: '1', // tokenId.\n}]\nconst burn = await gmSDK.burnNEP11(burnDetails, {from: address})\nconsole.info(burn)\n```\n\n### Mint NEP11 NFT\n```js\nconst royaltyRecipient = 'NLp9MRxBHH2YJrsF1D1VMXg3mvze3WSTqn'\nconst mintDetails = { \n    name: 'test name', // NFT name.\n    description: 'test description', // NFT description.\n    imageURL: 'ipfs://xxx', // image URL.\n    royalties: [{address: royaltyRecipient, value: 1000}], // royalties - optional - use bps.\n}\nconst token = await gmSDK.mintNEP11(mintDetails, {from: address})\nconsole.info(token)\n```\n\n\n## Development\n\n**Setup**\n\nClone this repo\n```bash\ngit clone https://github.com/OnBlockIO/ghostmarket-sdk-js\n```\n\nInstall \n```bash\ncd ghostmarket-sdk-js/\nyarn install\n```\n\n**Build**\n\nTo build\n```bash\nyarn build\n```\n\n**Test**\n\nTo run the tests\n```bash\nyarn test\n```\n\n**Contributing**\n\nContributions welcome! Please use [GitHub issues](https://github.com/OnBlockIO/ghostmarket-sdk-js/issues) for suggestions/issues.\n","readmeFilename":"README.md"}