{"_id":"@bobanetwork/contracts","_rev":"1-b2c3c4ce1962dec1d6c97e777bba4c26","name":"@bobanetwork/contracts","dist-tags":{"0.0.1":"0.0.1","latest":"0.0.2"},"versions":{"0.0.1":{"name":"@bobanetwork/contracts","version":"0.0.1","description":"BOBA Smart Contracts","private":false,"author":{"name":"Enya.ai"},"license":"MIT","main":"dist/index","types":"dist/index","scripts":{"build":"yarn build:contracts && yarn autogen:artifacts && yarn build:typescript","build:contracts":"hardhat compile","build:typescript":"tsc -p ./tsconfig.json","autogen:artifacts":"ts-node src/generate-artifacts.ts","deploy":"ts-node \"./bin/deploy.ts\"","clean":"rm -rf ./artifacts ./cache","lint":"yarn lint:check","lint:check":"eslint . --ext js,jsx,ts,tsx","lint:fix":"yarn lint:check --fix","lint:contracts":"yarn solhint -f table contracts/**/*.sol","test":"yarn test:contracts","test:contracts":"hardhat test --show-stack-traces","test:coverage":"NODE_OPTIONS=--max_old_space_size=8192 hardhat coverage","test:slither":"slither ."},"dependencies":{"@boba/turing-hybrid-compute":"0.2.0","@chainlink/contracts":"0.3.1","@eth-optimism/contracts":"0.5.11","@eth-optimism/core-utils":"0.8.1","@ethersproject/abstract-provider":"^5.5.1","@nomiclabs/hardhat-etherscan":"^3.1.0","@nomiclabs/hardhat-waffle":"^2.0.1","@openzeppelin/contracts":"4.3.2","@openzeppelin/contracts-upgradeable":"4.3.2","dotenv":"^8.2.0","glob":"^7.1.6"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@types/mocha":"^8.2.2","chai":"^4.3.6","chai-as-promised":"^7.1.1","ethereum-waffle":"^3.3.0","ethers":"^5.5.4","hardhat":"^2.12.5","hardhat-deploy":"^0.11.12","mocha":"^8.3.1","solidity-coverage":"^0.7.17","ts-node":"10.9.1","typescript":"^4.3.5","@babel/eslint-parser":"^7.18.2","@typescript-eslint/eslint-plugin":"^5.45.1","@typescript-eslint/parser":"^5.45.1","eslint-config-prettier":"^8.3.0","eslint-plugin-jsdoc":"^46.2.6","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","eslint-plugin-unicorn":"^32.0.1"},"peerDependencies":{"ethers":"^5"},"_id":"@bobanetwork/contracts@0.0.1","dist":{"shasum":"389b03f43d8169ba8e8e0de2ba4e1b3e141d4edf","integrity":"sha512-v5uTmMGYYE4rjZfj8x+KS8vuq4Zkb9So+VHyZqx4+wqQNiPwNnbLTa3Kt14JXByaKHt1sJHKIVpPQ8rGVo/BXA==","tarball":"https://registry.npmjs.org/@bobanetwork/contracts/-/contracts-0.0.1.tgz","fileCount":818,"unpackedSize":41450445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDF9gCwKQ2YYiMbeXUiXDkmg60vefRl0CfUwSVEKWjXtAIhAPUMZpQLBB/riaF2KwZLlTyR566avJkRtljWivG2WPd6"}]},"_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/contracts_0.0.1_1695733941286_0.3820287853872093"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bobanetwork/contracts","version":"0.0.2","description":"BOBA Smart Contracts","private":false,"author":{"name":"Enya.ai"},"license":"MIT","main":"dist/index","types":"dist/index","scripts":{"build":"yarn build:contracts && yarn autogen:artifacts && yarn build:typescript","build:contracts":"hardhat compile","build:typescript":"tsc -p ./tsconfig.json","autogen:artifacts":"ts-node src/generate-artifacts.ts","deploy":"ts-node \"./bin/deploy.ts\"","clean":"rm -rf ./artifacts ./cache","lint":"yarn lint:check","lint:check":"eslint . --ext js,jsx,ts,tsx","lint:fix":"yarn lint:check --fix","lint:contracts":"yarn solhint -f table contracts/**/*.sol","test":"yarn test:contracts","test:contracts":"hardhat test --show-stack-traces","test:coverage":"NODE_OPTIONS=--max_old_space_size=8192 hardhat coverage","test:slither":"slither ."},"dependencies":{"@bobanetwork/turing-hybrid-compute":"0.2.0","@chainlink/contracts":"0.3.1","@eth-optimism/contracts":"0.5.11","@eth-optimism/core-utils":"0.8.1","@ethersproject/abstract-provider":"^5.5.1","@nomiclabs/hardhat-etherscan":"^3.1.0","@nomiclabs/hardhat-waffle":"^2.0.1","@openzeppelin/contracts":"4.3.2","@openzeppelin/contracts-upgradeable":"4.3.2","dotenv":"^8.2.0","glob":"^7.1.6"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@types/mocha":"^8.2.2","chai":"^4.3.6","chai-as-promised":"^7.1.1","ethereum-waffle":"^3.3.0","ethers":"^5.5.4","hardhat":"^2.12.5","hardhat-deploy":"^0.11.12","mocha":"^8.3.1","solidity-coverage":"^0.7.17","ts-node":"10.9.1","typescript":"^4.3.5","@babel/eslint-parser":"^7.18.2","@typescript-eslint/eslint-plugin":"^5.45.1","@typescript-eslint/parser":"^5.45.1","eslint-config-prettier":"^8.3.0","eslint-plugin-jsdoc":"^46.2.6","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","eslint-plugin-unicorn":"^32.0.1"},"peerDependencies":{"ethers":"^5"},"_id":"@bobanetwork/contracts@0.0.2","dist":{"shasum":"0b2044671ca391bf661fc31ff761af397130724d","integrity":"sha512-+0bd2JSzqjxnoAKNOcjzpAQb6jzdVJkqjVQ4UKTUBzRyqVUIMFn+njJ7+OtVpH8DQ6RunNdpS5J0Koq/ObZCTQ==","tarball":"https://registry.npmjs.org/@bobanetwork/contracts/-/contracts-0.0.2.tgz","fileCount":818,"unpackedSize":41450459,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGY7rcBrYZQHMoue00oVDJyLi18yE3J51hzAvv6tx6j1AiEAqlsPlgOOY6p73Tj8CffbdQm2bKOyvX7eV4mpo8fm6+c="}]},"_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/contracts_0.0.2_1695734749803_0.21619317043520603"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-26T13:12:21.160Z","0.0.1":"2023-09-26T13:12:21.636Z","modified":"2023-09-26T13:25:50.495Z","0.0.2":"2023-09-26T13:25:50.306Z"},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"description":"BOBA Smart Contracts","author":{"name":"Enya.ai"},"license":"MIT","readme":"# BOBA Smart Contracts\n\n\n## 1. Automatic contract deployment and serving\n\nThis spins up the entire stack, with all contracts deployed, all the right things needed for the wallet to function, and for development work on the wallet.\n\n```bash\n\n$ cd ops\n$ ./up_local.sh\n\n```\n\n**Note - please provide syntax for setting the .env variables (BUILD: 1, DAEMON: 1)**\n\nTo get the contract addresses for the basic stack, and the BOBA-specific contracts:\n\n```bash\n\ncurl http://127.0.0.1:8078/addresses.json | jq #basic stack\ncurl http://127.0.0.1:8080/addresses.json | jq #BOBA-specific contracts\n\n```\n\n## 2. Manual Deployment and Testing\n\nSpin up the base local L1/L2:\n\n```\n\n$ cd ops\n$ BUILD=1 DAEMON=0 ./up_local.sh\n\n```\n\nCreate a `.env` file in the root directory of the contracts folder. Add environment-specific variables on new lines in the form of `NAME=VALUE`. Examples are given in the `.env.example` file. Just pick which net you want to work on and copy either the \"Rinkeby\" _or_ the \"Local\" envs to your `.env`.\n\n```bash\n\n# Local\nNODE_ENV=local\nL1_NODE_WEB3_URL=http://localhost:9545\nL2_NODE_WEB3_URL=http://localhost:8545\nETH1_ADDRESS_RESOLVER_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3\nTEST_PRIVATE_KEY_1=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80\nTEST_PRIVATE_KEY_2=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d\nTEST_PRIVATE_KEY_3=0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a\nTARGET_GAS_LIMIT=9000000000\nCHAIN_ID=28 #for Rinkeby\nTEST=1 #This deploys the ERC20 test token\n\n```\n\nBuild and deploy all the needed contracts:\n\n```bash\n\n$ yarn build\n$ yarn deploy\n\n```\n\nYou will now see this, if everything worked correctly:\n\n```bash\n\n % yarn deploy\nyarn run v1.22.10\n$ ts-node \"./bin/deploy.ts\"\nStarting BOBA core contracts deployment...\nADDRESS_MANAGER_ADDRESS was set to 0x5FbDB2315678afecb367f032d93F642f64180aa3\nNothing to compile\nDeploying...\n🌕 L2LiquidityPool deployed to: 0x7A9Ec1d04904907De0ED7b6839CcdD59c3716AC9\n🌕 L1LiquidityPool deployed to: 0xe8D2A1E88c91DCd5433208d4152Cc4F399a7e91d\n⭐️ L1 LP initialized: 0x511a3000131b6d3ac16a22d12707dc4121a62c198679300a081cfa9586b32d89\n⭐️ L2 LP initialized: 0x0797a3c93960e62a84c59f7f49c91916e430488b08afd38519ef9ac057eabec6\nL1 and L2 pools have registered ETH and OETH\n🌕 L1ERC20 deployed to: 0x4b6aB5F819A515382B0dEB6935D793817bB4af28\n🌕 L2ERC20 deployed to: 0x86A2EE8FAf9A840F7a2c64CA3d51209F9A02081D\n🌕 L2TokenPool deployed to: 0xA4899D35897033b927acFCf422bc745916139776\n⭐️ L2TokenPool registered: 0x43f4d7adec84555ef5548adf41a75c8bdf45798a993cf4d5e42e2b31ab140d01\n🌕 L1_CrossDomainMessenger_Fast deployed to: 0xCace1b78160AE76398F486c8a18044da0d66d86D\n⭐️ Fast L1 Messager initialized: 0x6480f00ca7f65d207bbbf4831074a71fb7ca4b6d999aeb78fbb5fb3841938362\n⭐️ Fast L1 Messager initialized: 0xc44a3f18a3e6c10ceb6da3cebd4b23ee491ef6947ab3bf05574260e3c7f8c206\n🌕 AtomicSwap deployed to: 0xAA292E8611aDF267e563f334Ee42320aC96D0463\n🌕 L1 Message deployed to: 0xc0F115A19107322cFBf1cDBC7ea011C19EbDB4F8\n🌕 L2 Message deployed to: 0x5c74c94173F05dA1720953407cbb920F3DF9f887\n⭐️ L1 Message initialized: 0x37fbbe3ef0ed3f1f4ae6c94fcd1f1825ea6c425091b038c4d4541c8760ea2c53\n⭐️ L2 Message initialized: 0xa736724e36f8098f70f737ac0c643490732a9ff350bd0fc9629a6face73178a8\n✨  Done in 10.84s.\n\n```\n","readmeFilename":"README.md"}