{"id":19945037,"url":"https://github.com/luisvid/simple-payment-channel","last_synced_at":"2026-04-14T06:32:08.944Z","repository":{"id":151674755,"uuid":"181496401","full_name":"luisvid/simple-payment-channel","owner":"luisvid","description":"simple one-way payment channel","archived":false,"fork":false,"pushed_at":"2019-04-15T15:34:02.000Z","size":115,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T13:42:25.489Z","etag":null,"topics":["blockchain","coverage","ethereum","payment-channels","solidity","travis-ci"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luisvid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-15T13:47:24.000Z","updated_at":"2021-11-28T13:58:49.000Z","dependencies_parsed_at":"2023-06-29T19:15:57.070Z","dependency_job_id":null,"html_url":"https://github.com/luisvid/simple-payment-channel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luisvid/simple-payment-channel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvid%2Fsimple-payment-channel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvid%2Fsimple-payment-channel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvid%2Fsimple-payment-channel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvid%2Fsimple-payment-channel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luisvid","download_url":"https://codeload.github.com/luisvid/simple-payment-channel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvid%2Fsimple-payment-channel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31785528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","coverage","ethereum","payment-channels","solidity","travis-ci"],"created_at":"2024-11-13T00:23:59.330Z","updated_at":"2026-04-14T06:32:08.929Z","avatar_url":"https://github.com/luisvid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://coveralls.io/repos/github/luisvid/simple-payment-channel/badge.svg)](https://coveralls.io/github/luisvid/simple-payment-channel)\n[![Build Status](https://travis-ci.org/luisvid/simple-payment-channel.svg?branch=master)](https://travis-ci.org/luisvid/simple-payment-channel)\n\n# simple one-way payment channel\n\n\n## Based on these tutorials: \n- https://medium.com/blockchannel/counterfactual-for-dummies-part-1-8ff164f78540\n- https://programtheblockchain.com/posts/2018/02/23/writing-a-simple-payment-channel\n\nAbout the tests:\n- https://truffleframework.com/docs/truffle/testing/writing-tests-in-javascript\n\n## Running the tests\n\n```\n$ npm i\n$ ganache-cli -m \"nose phone clip fee agent crop decorate spell album february oppose anxiety\"\n$ npm run test\n```\n\n## Some issues I found and how I solved them\n\n\n### Issues with new versión 0.5.0\n\nIf you're using ^v5.0.0 (including beta releases), you can bring your own compiler by adding this in your truffle config file (in this example it's set to 0.4.25):\n\n```\nmodule.exports = {\n  ...\n  compilers: {\n    solc: {\n      version: \"0.4.25\",\n    },\n  },\n  ...\n};\n```\n\nYou can query the list of available compiler versions by running this:\n``` \ntruffle compile --list\n```\n\n### Error: Data location must be \"storage\" or \"memory\"\n\n```\nSimplePaymentChannel.sol:120:49: TypeError: Data location must be \"storage\" or \"memory\" for parameter in function, but none was given.\n    function isValidSignature(uint256 _balance, bytes _signedMessage)\n                                                ^------------------^\n```\n\n- https://ethereum.stackexchange.com/questions/63294/typeerror-data-location-must-be-storage-or-memory-for-parameter-in-function\n\n\n### TypeError: Member \"transfer\" not found or not visible after argument-dependent lookup in address.\n\nThis is due to some breaking changes in Solidity version 0.5. Namely that an address has to be marked as payable - otherwise it won't have the transfer function. More info here: https://solidity.readthedocs.io/en/v0.5.0/050-breaking-changes.html#explicitness-requirements\n\nSo just change you function parameters from address _payeeAddr to address payable _payeeAddr and it will work just fine.\n\n\n### Yet not resolved: Truffle shows no output when running tests\n\n- https:// ethereum.stackexchange.com/questions/66629/truffle-does-nothing-and-shows-no-output-when-running-tests\n\nImportant: breaking change for versions \u003e= 0.5.0\n\n### Yet not resolved: solidity-coverage\nsolidity-coverage requires compilation with solc \u003e= 0.4.21. We're prefixing our own instrumentation events with the emit keyword to reduce warnings volume when running the tool.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisvid%2Fsimple-payment-channel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisvid%2Fsimple-payment-channel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisvid%2Fsimple-payment-channel/lists"}