{"_id":"@connext/cf-adjudicator-contracts","_rev":"3-849ac1c78779eaf3f9bfd7a3659cd7ee","name":"@connext/cf-adjudicator-contracts","dist-tags":{"latest":"0.4.1"},"versions":{"0.4.1":{"name":"@connext/cf-adjudicator-contracts","version":"0.4.1","description":"Smart contracts for an State Channel AppInstance Adjudicator","license":"MIT","scripts":{"build":"waffle waffle.json && cp build/*.json expected-build-artifacts","test":"ts-mocha test/*","lint:fix":"yarn lint:ts:fix && yarn lint:sol:fix","lint":"yarn lint:ts && yarn lint:sol","lint:sol:fix":"yarn lint:sol --fix","lint:sol":"solium -d .","lint:ts:fix":"yarn lint:ts --fix","lint:ts":"tslint -c tslint.json test/**/*.ts"},"keywords":["ethereum","counterfactual","state channels","solidity"],"devDependencies":{"@connext/cf-types":"0.4.1","@types/node":"12.12.7","@types/chai":"4.2.4","chai":"4.2.0","dotenv":"8.2.0","eth-gas-reporter":"0.2.12","ethereum-waffle":"2.1.0","ethers":"4.0.39","ethlint":"1.2.5","openzeppelin-solidity":"2.3.0","shx":"0.3.2","solc":"0.5.11","truffle":"5.0.44","truffle-deploy-registry":"0.5.1","truffle-hdwallet-provider":"1.0.17","ts-mocha":"6.0.0","ts-node":"8.4.1","tslint":"5.20.1"},"resolutions":{"ethereum-waffle/solc":"0.5.11"},"gitHead":"7f7025e2951eb87b3673751fb2495d6f82f65010","_id":"@connext/cf-adjudicator-contracts@0.4.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"bohendo","email":"bohende@gmail.com"},"dist":{"integrity":"sha512-KSWdLY5Tfob89ZVyfuXIt+O+dri7aCdIYOf6HkxW8o//ohEFmbS21DeySOSGLhrQctPEGa49lCAKxVU9YR0MPQ==","shasum":"55153cbfef690733e9cf528f9721cfd29d7ab7d0","tarball":"https://registry.npmjs.org/@connext/cf-adjudicator-contracts/-/cf-adjudicator-contracts-0.4.1.tgz","fileCount":43,"unpackedSize":903194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyQ27CRA9TVsSAnZWagAAsK4P/3m9GEGtW8h7wpRPA0br\nN07Db7h0kHSYmzokb1PUPYwmoyhxEUdnNyRNRfqqM5NUQ2wKJFBH4c8/JvO9\nCWvQU95vitACTheeNSHj3wSuBU8xFdwWhCL10/igjF9kBhBnd62/ijZXE/bW\nf5BhPDqK28UrJ3OR0qjN4+3ZQmkzNyxs2yg9wTUGxME43WdNV/87a191knna\nhxFKeVYAtMhDpGqbXBOivg9yUiLsGWdcU9rLsU1MhdK59AFCvIidzwMQO1nq\nh2PBUddglQQROEqzPP+HL51w3UQtPW1bAl5qTk+iq7QE4IoPbyppeKF5028N\ns4S9nUBjkfFoI6yDA8SlbOse9kYp+/UEyoZrYl50krVKlEbltUEoHALWuGal\ni5IDQ2kHQqqdGy4UwqQDNYJoK1iKfBe2sJB6d9iCrbqEaydY6dmx1bVfoFNB\n2/mFnmgoAZK7UIefIfaLnIVm5xG5JevHwdYnPDU2qrx1dsFS3CEnPvJ/KxwG\nLNtJyRpM97bOmzN3xVr41nkpWSvciAd2IQdE7yxYj4mU3ZzOlqxFjCYrVJmw\n4KcH3/Ao+gtiq11DSuHkJVEupRLw7HC3i575in86bwVAxgH8IaHTD+VUNZIL\nQgecINwv1r4W4LTMc/G1XOmBDzVdkTl0NVFS0hgnCzC9qNGQIL0q9OB2uJ45\nnUWM\r\n=TFNH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/6+5VLntmtoemj2rMbP2ySZXjzulo1CuIMOXvXePASAiEAnZhlX2cH89iRjfKi44QwkEEggK639PVMmjHoJlS6zvs="}]},"maintainers":[{"name":"laynehaber","email":"layne@connext.network"},{"name":"rhlsthrm","email":"rksethuram9@gmail.com"},{"name":"arjunbhuptani","email":"arjunbhuptani@gmail.com"},{"name":"bohendo","email":"bohende@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cf-adjudicator-contracts_0.4.1_1573457338814_0.11178429673022516"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-11T07:28:58.614Z","0.4.1":"2019-11-11T07:28:58.984Z","modified":"2022-04-05T00:57:00.160Z"},"maintainers":[],"description":"Smart contracts for an State Channel AppInstance Adjudicator","keywords":["ethereum","counterfactual","state channels","solidity"],"license":"MIT","readme":"# [@counterfactual/cf-adjudicator-contracts](https://github.com/counterfactual/monorepo/tree/master/packages/cf-adjudicator-contracts) <img align=\"right\" src=\"../../logo.svg\" height=\"80px\" />\n\nCounterfactual is a general framework for building state channel applications. An overview of the principles and objectives of this framework can be found at the [Counterfactual specifications repo](https://github.com/counterfactual/specs).\n\n## Development\n\n**Make sure you have Yarn v1.10.1 installed or higher**. Refer to [Yarn's installation guide](https://yarnpkg.com/lang/en/docs/install/) for setup instructions for your operating system.\n\nTo install the dependencies:\n\n```shell\nyarn\n```\n\n### Compiling Solidity\n\nTo compile the Solidity source code into bytecode and ABI, run:\n\n```shell\nyarn build\n```\n\n### Tests\n\nTo run all tests:\n\n```shell\nyarn test\n```\n\nTo run only specific tests:\n\n```shell\nyarn test [test/<filename of specific test>.spec.ts ...]\n```\n\n# Migrations\n\nThe `networks` folder contains the migration files for the different Ethereum networks the contracts have been migrated to. The ID of the respective networks are used as file names. The mapping of some of the major Ethereum network IDs to network names is:\n\n| Network ID | Network Name    |\n| ---------- | --------------- |\n| 1          | Main net        |\n| 3          | Ropsten testnet |\n| 4          | Rinkeby testnet |\n| 42         | Kovan testnet   |\n\nNot all of the networks will be used for the Counterfactual contracts, but you can find a more comprehensive list [here](https://ethereum.stackexchange.com/a/17101). To run a migration against a target network:\n\n- make sure the target network configuration exists in `truffle-config.js`\n- `cp .env.example .env` and make sure the right env vars are set in `.env`\n  - note that the address of the account that needs to be funded to deploy the contracts is derived (in a node.js REPL) via: `require('ethers').Wallet.fromMnemonic('ETH_ACCOUNT_MNENOMIC')`\n- the network account you're using to send transactions from is funded (eg. for Rinkeby: https://faucet.rinkeby.io/)\n- run: `yarn migrate --network <network name>`\n","readmeFilename":"README.md"}