{"_id":"@bthn/seaport-js","name":"@bthn/seaport-js","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@bthn/seaport-js","version":"0.0.1","license":"MIT","author":{"name":"OpenSea Developers"},"main":"lib/index.js","scripts":{"build":"yarn hardhat compile && yarn tsc -p tsconfig.build.json","check-types":"tsc --noEmit -p src/__tests__/tsconfig.json","check-types:incremental":"yarn check-types --incremental","eslint:check":"eslint . --max-warnings 0 --ext .js,.jsx,.ts,.tsx","lint":"concurrently \"yarn check-types\" \"yarn eslint:check\" \"yarn prettier:check\" \"yarn prettier:check:package.json\"","prepare":"husky install && yarn build","test":"yarn hardhat test","prettier:check":"prettier --check .","prettier:check:package.json":"yarn prettier-package-json --list-different","prettier:fix":"prettier --write ."},"dependencies":{"@0xsequence/multicall":"0.39.0","ethers":"5.6.7","merkletreejs":"0.2.31","seaport":"git+https://github.com/ProjectOpenSea/seaport.git#b28bfb064ffbe5dd45edf4237485c6e412c10234"},"devDependencies":{"@nomiclabs/hardhat-ethers":"2.0.5","@nomiclabs/hardhat-waffle":"2.0.3","@rari-capital/solmate":"6.2.0","@typechain/ethers-v5":"9.0.0","@typechain/hardhat":"5.0.0","@types/chai":"4.3.0","@types/chai-as-promised":"7.1.5","@types/mocha":"9.1.0","@types/node":"12.20.47","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","chai":"4.3.6","chai-as-promised":"7.1.1","concurrently":"7.1.0","dotenv":"10.0.0","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-config-standard":"16.0.3","eslint-plugin-import":"2.25.4","eslint-plugin-node":"11.1.0","eslint-plugin-prettier":"3.4.1","eslint-plugin-promise":"5.2.0","ethereum-waffle":"3.4.0","hardhat":"2.9.1","hardhat-gas-reporter":"1.0.8","husky":">=6","lint-staged":">=10","prettier":"2.5.1","prettier-package-json":"2.6.3","prettier-plugin-solidity":"1.0.0-beta.13","sinon":"13.0.1","sinon-chai":"3.7.0","solhint":"3.3.7","solidity-coverage":"0.7.20","ts-node":"10.7.0","typechain":"7.0.1","typescript":"4.6.2"},"engines":{"node":"16.15.0"},"lint-staged":{"package.json":["prettier-package-json --write","git add"],"**/*.{ts,tsx,js,jsx,html,md,mdx,yml,json}":["prettier --write"]},"types":"./lib/index.d.ts","gitHead":"1f285ec3594446f5fb1754bed0bd056037b812fd","description":"[Seaport](https://github.com/ProjectOpenSea/seaport) is a new marketplace protocol for safely and efficiently buying and selling NFTs. This is a JavaScript library intended to make interfacing with the contract reasonable and easy.","_id":"@bthn/seaport-js@0.0.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-wZ+CK3DjsyraxAbEVhs1n+kQnIGOwkj9rPIffjKWTx+kYaWOSItOZcn58Evz08/fe5S9hahcb0Mu8ry86Uivjg==","shasum":"1b6836d8c8d2143751287ad6e850b9d600c1159a","tarball":"https://registry.npmjs.org/@bthn/seaport-js/-/seaport-js-0.0.1.tgz","fileCount":563,"unpackedSize":21814992,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtWFwqPJqPFIqFICJefHaUUcK/+EF/PQZgntDdKTWISAiBRBcnc8bzHlT0z0eajafJyjj/zkI8++zssGpltWHypxw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijrIrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAHA/5Af6GQ0ef4hVh5shAfy7q400/a4wn58O5W88ChSHvBrIW7+qw\r\nzsdRMSdzu0b5seATnUWikg8h36WKJ4Qsbu+o+91a2hPVu+BemgtnxAny7hqs\r\nQJDToGiuew7ulsi3HLF1doDYsPA8ueq5Ivf7UbADdQVK3u7LYBTreQMfAPl4\r\nn2yP5hvjHE2fHxYxJX2UKVrkijsiNVXvW2/vluhxgrMu9C32dYxde/tuoVXE\r\nvRtLrLnIPY1xr5zuIrDe1CoB4eytTYN32VfBNiYuXVWAgm+MnjOkY60zWOdT\r\nMZqAiDkA6TE80D4MwrTXSW5vBV9yd3kSImDq5P2W1FXKjvOOdu3h+XjFk9Q2\r\nxcYAQMHl6LBIgxAQG4l699w33VmNuewMKjFR4W3K0xo2aSRPIP8o3XlsqrFl\r\nrN2NZyRuaSpj2356IRhi0BbOOnckL3Hx2qtZtFqv8MYBHsihGUhpo5RiSAJq\r\n3Mh2gwzAG7kVgwF5q7mcmvXpST+Cfy0lf1ZqtV7skbTmV4k86Nv8XCJbuNGh\r\n9A+54aIlDn6liJ8oyV5aLOWTQreOfQzst4ItRwDdokp3Ljk0bN97qeSCxVRn\r\nXiQ9fkE9YwDG6PguOhqfLwXFGi7iYuDVTWBNyEv+9hXzAY0mrN2apsTeafUJ\r\naTXdRmogkwx5itO3QmqGqS+CR7M3+r2uq4o=\r\n=xYmP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bthn","email":"katircib@gmail.com"},"directories":{},"maintainers":[{"name":"bthn","email":"katircib@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/seaport-js_0.0.1_1653518891610_0.7978659672742834"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-25T22:48:11.520Z","0.0.1":"2022-05-25T22:48:11.781Z","modified":"2022-05-25T22:48:12.044Z"},"maintainers":[{"name":"bthn","email":"katircib@gmail.com"}],"description":"[Seaport](https://github.com/ProjectOpenSea/seaport) is a new marketplace protocol for safely and efficiently buying and selling NFTs. This is a JavaScript library intended to make interfacing with the contract reasonable and easy.","author":{"name":"OpenSea Developers"},"license":"MIT","readme":"# Seaport.js\n\n[Seaport](https://github.com/ProjectOpenSea/seaport) is a new marketplace protocol for safely and efficiently buying and selling NFTs. This is a JavaScript library intended to make interfacing with the contract reasonable and easy.\n\n- [Synopsis](#synopsis)\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n  - [Use Cases](#use-cases)\n- [Contributing](#contributing)\n\n## Synopsis\n\nThis is a JavaScript library to help interface with Seaport. It includes various helper methods and constants that makes interfacing with Seaport easier. These include creating orders, fulfilling orders, doing the necessary balance and approval checks, and more. We recommend taking a look at the [Seaport](https://github.com/ProjectOpenSea/seaport) docs to get a better understanding of how the Seaport marketplace works.\n\n## Installation\n\nWe recommend using [nvm](https://github.com/nvm-sh/nvm) to manage Node.js versions. Execute `nvm use`, if you have `nvm` installed.\n\nThen, in your project, run:\n\n```\nnpm install --save seaport-js\n```\n\n## Getting Started\n\nInstantiate your instance of seaport using your ethers provider:\n\n```JavaScript\nimport { Seaport } from \"seaport-js\";\n\nconst provider = ethers.getDefaultProvider();\n\nconst seaport = new Seaport(provider);\n```\n\nLook at the relevant definitions in `seaport.ts` in order to see the different functionality this library offers.\n\n### Use Cases\n\nMany of the main core flows return _use cases_. What this means is that if you were to create an order (a la `createOrder`), the library helps perform the necessary balance and approval checks based on the `offer` of the order being created. If the `offerer` requires approvals on one asset contract, the `actions` field of the use case would contain an approval action that the user should execute first in order for the trade to succeed in the future.\n\n## Contributing\n\nSee [the contributing guide](CONTRIBUTING.md) for detailed instructions on how to get started with this project.\n","readmeFilename":"README.md"}