{"_id":"@bobanetwork/sdk","_rev":"7-2df8ee62d89817510da729b403a5300b","time":{"created":"2023-09-28T15:51:26.242Z","1.0.1":"2023-09-28T15:07:05.723Z","modified":"2023-09-29T12:36:18.283Z","1.0.2":"2023-09-28T15:48:48.037Z","1.0.3":"2023-09-28T15:51:26.602Z","1.0.4":"2023-09-29T09:11:40.450Z","1.0.6":"2023-09-29T09:58:00.496Z","1.0.7":"2023-09-29T12:36:18.011Z"},"name":"@bobanetwork/sdk","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.3":{"name":"@bobanetwork/sdk","version":"1.0.3","description":"Tools for working with Optimism and Bobanetwork","main":"dist/index","types":"dist/index","scripts":{"all":"yarn clean && yarn build && yarn test && yarn lint:fix && yarn lint","build":"tsc -p tsconfig.json","clean":"rimraf dist/ ./tsconfig.tsbuildinfo","lint":"yarn lint:fix && yarn lint:check","lint:check":"eslint . --max-warnings=0","lint:fix":"yarn lint:check --fix","pre-commit":"lint-staged","test":"hardhat test","test:coverage":"nyc hardhat test && nyc merge .nyc_output coverage.json","autogen:docs":"typedoc --out docs src/index.ts"},"keywords":["optimism","ethereum","sdk"],"homepage":"https://github.com/ethereum-optimism/optimism/tree/develop/packages/sdk#readme","license":"MIT","author":{"name":"Optimism PBC"},"repository":{"type":"git","url":"https://github.com/ethereum-optimism/optimism.git"},"devDependencies":{"@babel/eslint-parser":"^7.18.2","@ethersproject/abstract-provider":"^5.7.0","@ethersproject/abstract-signer":"^5.7.0","@ethersproject/transactions":"^5.7.0","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-waffle":"^2.0.1","@typescript-eslint/eslint-plugin":"^5.45.1","@typescript-eslint/parser":"^5.45.1","chai":"^4.3.4","chai-as-promised":"^7.1.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^46.2.6","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","eslint-plugin-unicorn":"^32.0.1","ethereum-waffle":"^3.4.0","ethers":"^5.7.0","hardhat":"^2.12.5","mocha":"^10.0.0","nyc":"^15.1.0","typedoc":"^0.24.7"},"dependencies":{"@bobanetwork/core_contracts":"0.5.11","@eth-optimism/core-utils":"0.8.1","lodash":"^4.17.21","merkletreejs":"^0.2.27","node-fetch":"^2.6.7","rlp":"^2.2.7"},"peerDependencies":{"ethers":"^5"},"licenseText":"(The MIT License)\n\nCopyright 2020-2021 Optimism\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bobanetwork/sdk@1.0.3","dist":{"shasum":"ad1b803735d6ffbdc1aeabda30300e723e93432c","integrity":"sha512-5ICy1MvBrGpsJ7ZfodTzHUHQLVIlKcUw9zP/WxEGu5C9LF4zjZpEmI+eNOwj+Nca9XUZXBiVoZ/yB34Fk2UK7A==","tarball":"https://registry.npmjs.org/@bobanetwork/sdk/-/sdk-1.0.3.tgz","fileCount":75,"unpackedSize":225420,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNop5FYqVkkZR3YtdEgl+UHRg4p9zPCAdgLpfoQ27WdAiEAx7Knbo5IcIMIZq2xqhqJpP604gbtb5hyNSbZebuPbLs="}]},"_npmUser":{"name":"boba.network","email":"chaininfra@boba.foundation"},"directories":{},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.0.3_1695916286333_0.734122294655293"},"_hasShrinkwrap":false},"1.0.4":{"name":"@bobanetwork/sdk","version":"1.0.4","description":"Tools for working with Optimism and Bobanetwork","main":"dist/index","types":"dist/index","scripts":{"all":"yarn clean && yarn build && yarn test && yarn lint:fix && yarn lint","build":"tsc -p tsconfig.json","clean":"rimraf dist/ ./tsconfig.tsbuildinfo","lint":"yarn lint:fix && yarn lint:check","lint:check":"eslint . --max-warnings=0","lint:fix":"yarn lint:check --fix","pre-commit":"lint-staged","test":"hardhat test","test:coverage":"nyc hardhat test && nyc merge .nyc_output coverage.json","autogen:docs":"typedoc --out docs src/index.ts"},"keywords":["optimism","ethereum","sdk"],"homepage":"https://github.com/ethereum-optimism/optimism/tree/develop/packages/sdk#readme","license":"MIT","author":{"name":"Optimism PBC"},"repository":{"type":"git","url":"https://github.com/ethereum-optimism/optimism.git"},"devDependencies":{"@babel/eslint-parser":"^7.18.2","@ethersproject/abstract-provider":"^5.7.0","@ethersproject/abstract-signer":"^5.7.0","@ethersproject/transactions":"^5.7.0","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-waffle":"^2.0.1","@typescript-eslint/eslint-plugin":"^5.45.1","@typescript-eslint/parser":"^5.45.1","chai":"^4.3.4","chai-as-promised":"^7.1.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^46.2.6","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","eslint-plugin-unicorn":"^32.0.1","ethereum-waffle":"^3.4.0","ethers":"^5.7.0","hardhat":"^2.12.5","mocha":"^10.0.0","nyc":"^15.1.0","typedoc":"^0.24.7"},"dependencies":{"@bobanetwork/core_contracts":"0.5.11","@eth-optimism/core-utils":"0.8.1","lodash":"^4.17.21","merkletreejs":"^0.2.27","node-fetch":"^2.6.7","rlp":"^2.2.7"},"peerDependencies":{"ethers":"^5"},"licenseText":"(The MIT License)\n\nCopyright 2020-2021 Optimism\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bobanetwork/sdk@1.0.4","dist":{"shasum":"5a84da23e789c9cbb3ea839af28e4d87a3fec8b6","integrity":"sha512-+IXJGsokm11SGmaZ9LLEA+R1StCVuAtX1JKO4S0Tlz+rIKdJoRWpPNw3bcv1sPy8sLv5g8S4vOl1ITUDfJxHIQ==","tarball":"https://registry.npmjs.org/@bobanetwork/sdk/-/sdk-1.0.4.tgz","fileCount":75,"unpackedSize":225420,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYNXND1PumzcLbaY3u9fR7j+tZJTeu1snsKJmpznH2oQIgO7f+pQl6S9ySp4m4DEVBVVwnE6g7I0DBRVag+Cv5S58="}]},"_npmUser":{"name":"boba.network","email":"chaininfra@boba.foundation"},"directories":{},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.0.4_1695978700118_0.33298516338408635"},"_hasShrinkwrap":false},"1.0.6":{"name":"@bobanetwork/sdk","version":"1.0.6","description":"Tools for working with Optimism and Bobanetwork","main":"dist/index","types":"dist/index","scripts":{"all":"yarn clean && yarn build && yarn test && yarn lint:fix && yarn lint","build":"tsc -p tsconfig.json","clean":"rimraf dist/ ./tsconfig.tsbuildinfo","lint":"yarn lint:fix && yarn lint:check","lint:check":"eslint . --max-warnings=0","lint:fix":"yarn lint:check --fix","pre-commit":"lint-staged","test":"hardhat test","test:coverage":"nyc hardhat test && nyc merge .nyc_output coverage.json","autogen:docs":"typedoc --out docs src/index.ts"},"keywords":["optimism","ethereum","sdk"],"homepage":"https://github.com/ethereum-optimism/optimism/tree/develop/packages/sdk#readme","license":"MIT","author":{"name":"Optimism PBC"},"repository":{"type":"git","url":"https://github.com/ethereum-optimism/optimism.git"},"devDependencies":{"@babel/eslint-parser":"^7.18.2","@ethersproject/abstract-provider":"^5.7.0","@ethersproject/abstract-signer":"^5.7.0","@ethersproject/transactions":"^5.7.0","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-waffle":"^2.0.1","@typescript-eslint/eslint-plugin":"^5.45.1","@typescript-eslint/parser":"^5.45.1","chai":"^4.3.4","chai-as-promised":"^7.1.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^46.2.6","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","eslint-plugin-unicorn":"^32.0.1","ethereum-waffle":"^3.4.0","ethers":"^5.7.0","hardhat":"^2.12.5","mocha":"^10.0.0","nyc":"^15.1.0","typedoc":"^0.24.7"},"dependencies":{"@bobanetwork/core_contracts":"0.5.11","@eth-optimism/core-utils":"0.8.1","lodash":"^4.17.21","merkletreejs":"^0.2.27","node-fetch":"^2.6.7","rlp":"^2.2.7"},"peerDependencies":{"ethers":"^5"},"licenseText":"(The MIT License)\n\nCopyright 2020-2021 Optimism\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bobanetwork/sdk@1.0.6","dist":{"shasum":"c95a78fa0a000d60abc695450435c8f5965eca34","integrity":"sha512-J9rX87Byut5C3Lfa2hSx9O2afdb6PYTcCZi2Mb9Fb7c71/Wz9GnegUZPI4AmQLbo8IqXuzF/MEUsFRbchFq3JA==","tarball":"https://registry.npmjs.org/@bobanetwork/sdk/-/sdk-1.0.6.tgz","fileCount":75,"unpackedSize":225761,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE79rsA70obq/XUg5m1ZvUdd/YDIeTJ/wO92jTe1t84DAiAUl8iOqUHYwNhgzsS2UkvcS4N7opKIsIe8UB3uDYtOPQ=="}]},"_npmUser":{"name":"boba.network","email":"chaininfra@boba.foundation"},"directories":{},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.0.6_1695981480188_0.29610087790041884"},"_hasShrinkwrap":false},"1.0.7":{"name":"@bobanetwork/sdk","version":"1.0.7","description":"Tools for working with Optimism and Bobanetwork","main":"dist/index","types":"dist/index","scripts":{"all":"yarn clean && yarn build && yarn test && yarn lint:fix && yarn lint","build":"tsc -p tsconfig.json","clean":"rimraf dist/ ./tsconfig.tsbuildinfo","lint":"yarn lint:fix && yarn lint:check","lint:check":"eslint . --max-warnings=0","lint:fix":"yarn lint:check --fix","pre-commit":"lint-staged","test":"hardhat test","test:coverage":"nyc hardhat test && nyc merge .nyc_output coverage.json","autogen:docs":"typedoc --out docs src/index.ts"},"keywords":["optimism","ethereum","sdk"],"homepage":"https://github.com/ethereum-optimism/optimism/tree/develop/packages/sdk#readme","license":"MIT","author":{"name":"Optimism PBC"},"repository":{"type":"git","url":"https://github.com/ethereum-optimism/optimism.git"},"devDependencies":{"@babel/eslint-parser":"^7.18.2","@ethersproject/abstract-provider":"^5.7.0","@ethersproject/abstract-signer":"^5.7.0","@ethersproject/transactions":"^5.7.0","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-waffle":"^2.0.1","@typescript-eslint/eslint-plugin":"^5.45.1","@typescript-eslint/parser":"^5.45.1","chai":"^4.3.4","chai-as-promised":"^7.1.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^46.2.6","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","eslint-plugin-unicorn":"^32.0.1","ethereum-waffle":"^3.4.0","ethers":"^5.7.0","hardhat":"^2.12.5","mocha":"^10.0.0","nyc":"^15.1.0","typedoc":"^0.24.7"},"dependencies":{"@bobanetwork/core_contracts":"0.5.13","@eth-optimism/core-utils":"0.8.1","lodash":"^4.17.21","merkletreejs":"^0.2.27","node-fetch":"^2.6.7","rlp":"^2.2.7"},"peerDependencies":{"ethers":"^5"},"licenseText":"(The MIT License)\n\nCopyright 2020-2021 Optimism\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bobanetwork/sdk@1.0.7","dist":{"shasum":"65310019b14f3d8986c797175b1cc7ec46ea4e86","integrity":"sha512-KhE4FEaCyslDfOrOIkkaoMfgJlbFPE5EPVwtbD+1ZLlzgXgzhY82t8lrO24XurelXtzhw7RVcqEapnpHIsUY6g==","tarball":"https://registry.npmjs.org/@bobanetwork/sdk/-/sdk-1.0.7.tgz","fileCount":75,"unpackedSize":225761,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDh3nmlJTenaazfej9qLU9BF4nHPrCZw6jutjukmbdbnAIgET++PcphTKSATE2752AHHV2x6NTTAI9SHK1TK+5xzQ4="}]},"_npmUser":{"name":"boba.network","email":"chaininfra@boba.foundation"},"directories":{},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.0.7_1695990977761_0.9218585178130128"},"_hasShrinkwrap":false}},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"description":"Tools for working with Optimism and Bobanetwork","homepage":"https://github.com/ethereum-optimism/optimism/tree/develop/packages/sdk#readme","keywords":["optimism","ethereum","sdk"],"repository":{"type":"git","url":"https://github.com/ethereum-optimism/optimism.git"},"author":{"name":"Optimism PBC"},"license":"MIT","readme":"# @bobanetwork/sdk\n\nThe `@bobanetwork/sdk` package provides a set of tools for interacting with Optimism.\n\n## Installation\n\n```\nnpm install @bobanetwork/sdk\n```\n\n## Docs\n\nYou can find auto-generated API documentation over at [sdk.optimism.io](https://sdk.optimism.io).\n\n## Using the SDK\n\n### CrossChainMessenger\n\nThe [`CrossChainMessenger`](https://github.com/bobanetwork/boba/blob/develop/packages/sdk/src/cross-chain-messenger.ts) class simplifies the process of moving assets and data between Ethereum and Optimism.\nYou can use this class to, for example, initiate a withdrawal of ERC20 tokens from Optimism back to Ethereum, accurately track when the withdrawal is ready to be finalized on Ethereum, and execute the finalization transaction after the challenge period has elapsed.\nThe `CrossChainMessenger` can handle deposits and withdrawals of ETH and any ERC20-compatible token.\nDetailed API descriptions can be found at [sdk.optimism.io](https://sdk.optimism.io/classes/crosschainmessenger).\nThe `CrossChainMessenger` automatically connects to all relevant contracts so complex configuration is not necessary.\n\n### L2Provider and related utilities\n\nThe Optimism SDK includes [various utilities](https://github.com/ethereum-optimism/optimism/blob/develop/packages/sdk/src/l2-provider.ts) for handling Optimism's [transaction fee model](https://community.optimism.io/docs/developers/build/transaction-fees/).\nFor instance, [`estimateTotalGasCost`](https://sdk.optimism.io/modules.html#estimateTotalGasCost) will estimate the total cost (in wei) to send at transaction on Optimism including both the L2 execution cost and the L1 data cost.\nYou can also use the [`asL2Provider`](https://sdk.optimism.io/modules.html#asL2Provider) function to wrap an ethers Provider object into an `L2Provider` which will have all of these helper functions attached.\n\n### Other utilities\n\nThe SDK contains other useful helper functions and constants.\nFor a complete list, refer to the auto-generated [SDK documentation](https://sdk.optimism.io/)\n","readmeFilename":"README.md"}