{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/pelle/cloth/pulls/1","id":76296688,"html_url":"https://github.com/pelle/cloth/pull/1","diff_url":"https://github.com/pelle/cloth/pull/1.diff","patch_url":"https://github.com/pelle/cloth/pull/1.patch","issue_url":"https://api.github.com/repos/pelle/cloth/issues/1","number":1,"state":"closed","locked":false,"title":"High level contract support","user":{"login":"pelle","id":8680,"avatar_url":"https://avatars.githubusercontent.com/u/8680?v=3","gravatar_id":"","url":"https://api.github.com/users/pelle","html_url":"https://github.com/pelle","followers_url":"https://api.github.com/users/pelle/followers","following_url":"https://api.github.com/users/pelle/following{/other_user}","gists_url":"https://api.github.com/users/pelle/gists{/gist_id}","starred_url":"https://api.github.com/users/pelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelle/subscriptions","organizations_url":"https://api.github.com/users/pelle/orgs","repos_url":"https://api.github.com/users/pelle/repos","events_url":"https://api.github.com/users/pelle/events{/privacy}","received_events_url":"https://api.github.com/users/pelle/received_events","type":"User","site_admin":false},"body":"The purpose of this is to allow compilation of Solidity code and a resulting clojure API mapping to the contract.\r\n\r\n```clojure\r\n(defcontract simple-token \"test/cloth/SimpleToken.sol\")\r\n\r\n(def c @(deploy-simple-token!))\r\n\r\n@(issue! c \"0x....\" 1231) ;; Calls contract function and waits for it to mine\r\n@(issue!! c \"0x....\" 1231) ;; Calls contract function and waits for receipt\r\n\r\n@(balances c \"0x...) ;; Calls static function\r\n```\r\n\r\nNote all of these TX functions return promises, so when I say returning below, that is what is returned from promise.\r\n\r\n- [x] Compile Solidity\r\n- [x] Creates deploy function eg `(deploy-simple-token!)` \r\n- [x] Creates TX functions for each public non constant solidity function eg `(issue! ...)`\r\n- [x] Creates TX functions for each public non constant solidity function returning receipt eg `(issue!! ...)`\r\n- [x] Creates functions for each public constant function\r\n- [x] Creates a calling version of each TX function with eg `(issue? ...)`\r\n- [x] Support for `int` parameters and return values\r\n- [x] Support for `fixed` and `ufixed` parameters and return values\r\n- [ ] Multi dimensional arrays probably don't work right\r\n- [x] Add tweaks for clojurescript\r\n\r\nThe following I will fix in later releases:\r\n\r\n- [ ] Add support for contract events\r\n- [ ] Failure when calling a function returning a `string` (this same failure happens with truffle as well so may not be an issue)\r\n","created_at":"2016-07-05T15:43:57Z","updated_at":"2016-07-18T03:10:03Z","closed_at":"2016-07-18T03:10:03Z","merged_at":"2016-07-18T03:10:03Z","merge_commit_sha":"0b95a320cd6afd45760c72d46e231f25c6e2b2a1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pelle/cloth/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pelle/cloth/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pelle/cloth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pelle/cloth/issues/1/comments","statuses_url":"https://api.github.com/repos/pelle/cloth/statuses/d3d7db0aec8b430d8e9dfdf5f318a825aa2af71d","head":{"label":"pelle:contracts","ref":"contracts","sha":"d3d7db0aec8b430d8e9dfdf5f318a825aa2af71d","user":{"login":"pelle","id":8680,"avatar_url":"https://avatars.githubusercontent.com/u/8680?v=3","gravatar_id":"","url":"https://api.github.com/users/pelle","html_url":"https://github.com/pelle","followers_url":"https://api.github.com/users/pelle/followers","following_url":"https://api.github.com/users/pelle/following{/other_user}","gists_url":"https://api.github.com/users/pelle/gists{/gist_id}","starred_url":"https://api.github.com/users/pelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelle/subscriptions","organizations_url":"https://api.github.com/users/pelle/orgs","repos_url":"https://api.github.com/users/pelle/repos","events_url":"https://api.github.com/users/pelle/events{/privacy}","received_events_url":"https://api.github.com/users/pelle/received_events","type":"User","site_admin":false},"repo":{"id":56409754,"name":"cloth","full_name":"pelle/cloth","owner":{"login":"pelle","id":8680,"avatar_url":"https://avatars.githubusercontent.com/u/8680?v=3","gravatar_id":"","url":"https://api.github.com/users/pelle","html_url":"https://github.com/pelle","followers_url":"https://api.github.com/users/pelle/followers","following_url":"https://api.github.com/users/pelle/following{/other_user}","gists_url":"https://api.github.com/users/pelle/gists{/gist_id}","starred_url":"https://api.github.com/users/pelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelle/subscriptions","organizations_url":"https://api.github.com/users/pelle/orgs","repos_url":"https://api.github.com/users/pelle/repos","events_url":"https://api.github.com/users/pelle/events{/privacy}","received_events_url":"https://api.github.com/users/pelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pelle/cloth","description":"Simple  Ethereum library for Clojure(Script)","fork":false,"url":"https://api.github.com/repos/pelle/cloth","forks_url":"https://api.github.com/repos/pelle/cloth/forks","keys_url":"https://api.github.com/repos/pelle/cloth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pelle/cloth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pelle/cloth/teams","hooks_url":"https://api.github.com/repos/pelle/cloth/hooks","issue_events_url":"https://api.github.com/repos/pelle/cloth/issues/events{/number}","events_url":"https://api.github.com/repos/pelle/cloth/events","assignees_url":"https://api.github.com/repos/pelle/cloth/assignees{/user}","branches_url":"https://api.github.com/repos/pelle/cloth/branches{/branch}","tags_url":"https://api.github.com/repos/pelle/cloth/tags","blobs_url":"https://api.github.com/repos/pelle/cloth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pelle/cloth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pelle/cloth/git/refs{/sha}","trees_url":"https://api.github.com/repos/pelle/cloth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pelle/cloth/statuses/{sha}","languages_url":"https://api.github.com/repos/pelle/cloth/languages","stargazers_url":"https://api.github.com/repos/pelle/cloth/stargazers","contributors_url":"https://api.github.com/repos/pelle/cloth/contributors","subscribers_url":"https://api.github.com/repos/pelle/cloth/subscribers","subscription_url":"https://api.github.com/repos/pelle/cloth/subscription","commits_url":"https://api.github.com/repos/pelle/cloth/commits{/sha}","git_commits_url":"https://api.github.com/repos/pelle/cloth/git/commits{/sha}","comments_url":"https://api.github.com/repos/pelle/cloth/comments{/number}","issue_comment_url":"https://api.github.com/repos/pelle/cloth/issues/comments{/number}","contents_url":"https://api.github.com/repos/pelle/cloth/contents/{+path}","compare_url":"https://api.github.com/repos/pelle/cloth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pelle/cloth/merges","archive_url":"https://api.github.com/repos/pelle/cloth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pelle/cloth/downloads","issues_url":"https://api.github.com/repos/pelle/cloth/issues{/number}","pulls_url":"https://api.github.com/repos/pelle/cloth/pulls{/number}","milestones_url":"https://api.github.com/repos/pelle/cloth/milestones{/number}","notifications_url":"https://api.github.com/repos/pelle/cloth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pelle/cloth/labels{/name}","releases_url":"https://api.github.com/repos/pelle/cloth/releases{/id}","deployments_url":"https://api.github.com/repos/pelle/cloth/deployments","created_at":"2016-04-16T23:11:18Z","updated_at":"2016-07-17T08:07:27Z","pushed_at":"2016-07-18T03:10:03Z","git_url":"git://github.com/pelle/cloth.git","ssh_url":"git@github.com:pelle/cloth.git","clone_url":"https://github.com/pelle/cloth.git","svn_url":"https://github.com/pelle/cloth","homepage":"","size":493,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":11,"default_branch":"master"}},"base":{"label":"pelle:master","ref":"master","sha":"dfddb7c62333856da2f219c61a872bff43c471ae","user":{"login":"pelle","id":8680,"avatar_url":"https://avatars.githubusercontent.com/u/8680?v=3","gravatar_id":"","url":"https://api.github.com/users/pelle","html_url":"https://github.com/pelle","followers_url":"https://api.github.com/users/pelle/followers","following_url":"https://api.github.com/users/pelle/following{/other_user}","gists_url":"https://api.github.com/users/pelle/gists{/gist_id}","starred_url":"https://api.github.com/users/pelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelle/subscriptions","organizations_url":"https://api.github.com/users/pelle/orgs","repos_url":"https://api.github.com/users/pelle/repos","events_url":"https://api.github.com/users/pelle/events{/privacy}","received_events_url":"https://api.github.com/users/pelle/received_events","type":"User","site_admin":false},"repo":{"id":56409754,"name":"cloth","full_name":"pelle/cloth","owner":{"login":"pelle","id":8680,"avatar_url":"https://avatars.githubusercontent.com/u/8680?v=3","gravatar_id":"","url":"https://api.github.com/users/pelle","html_url":"https://github.com/pelle","followers_url":"https://api.github.com/users/pelle/followers","following_url":"https://api.github.com/users/pelle/following{/other_user}","gists_url":"https://api.github.com/users/pelle/gists{/gist_id}","starred_url":"https://api.github.com/users/pelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelle/subscriptions","organizations_url":"https://api.github.com/users/pelle/orgs","repos_url":"https://api.github.com/users/pelle/repos","events_url":"https://api.github.com/users/pelle/events{/privacy}","received_events_url":"https://api.github.com/users/pelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pelle/cloth","description":"Simple  Ethereum library for Clojure(Script)","fork":false,"url":"https://api.github.com/repos/pelle/cloth","forks_url":"https://api.github.com/repos/pelle/cloth/forks","keys_url":"https://api.github.com/repos/pelle/cloth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pelle/cloth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pelle/cloth/teams","hooks_url":"https://api.github.com/repos/pelle/cloth/hooks","issue_events_url":"https://api.github.com/repos/pelle/cloth/issues/events{/number}","events_url":"https://api.github.com/repos/pelle/cloth/events","assignees_url":"https://api.github.com/repos/pelle/cloth/assignees{/user}","branches_url":"https://api.github.com/repos/pelle/cloth/branches{/branch}","tags_url":"https://api.github.com/repos/pelle/cloth/tags","blobs_url":"https://api.github.com/repos/pelle/cloth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pelle/cloth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pelle/cloth/git/refs{/sha}","trees_url":"https://api.github.com/repos/pelle/cloth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pelle/cloth/statuses/{sha}","languages_url":"https://api.github.com/repos/pelle/cloth/languages","stargazers_url":"https://api.github.com/repos/pelle/cloth/stargazers","contributors_url":"https://api.github.com/repos/pelle/cloth/contributors","subscribers_url":"https://api.github.com/repos/pelle/cloth/subscribers","subscription_url":"https://api.github.com/repos/pelle/cloth/subscription","commits_url":"https://api.github.com/repos/pelle/cloth/commits{/sha}","git_commits_url":"https://api.github.com/repos/pelle/cloth/git/commits{/sha}","comments_url":"https://api.github.com/repos/pelle/cloth/comments{/number}","issue_comment_url":"https://api.github.com/repos/pelle/cloth/issues/comments{/number}","contents_url":"https://api.github.com/repos/pelle/cloth/contents/{+path}","compare_url":"https://api.github.com/repos/pelle/cloth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pelle/cloth/merges","archive_url":"https://api.github.com/repos/pelle/cloth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pelle/cloth/downloads","issues_url":"https://api.github.com/repos/pelle/cloth/issues{/number}","pulls_url":"https://api.github.com/repos/pelle/cloth/pulls{/number}","milestones_url":"https://api.github.com/repos/pelle/cloth/milestones{/number}","notifications_url":"https://api.github.com/repos/pelle/cloth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pelle/cloth/labels{/name}","releases_url":"https://api.github.com/repos/pelle/cloth/releases{/id}","deployments_url":"https://api.github.com/repos/pelle/cloth/deployments","created_at":"2016-04-16T23:11:18Z","updated_at":"2016-07-17T08:07:27Z","pushed_at":"2016-07-18T03:10:03Z","git_url":"git://github.com/pelle/cloth.git","ssh_url":"git@github.com:pelle/cloth.git","clone_url":"https://github.com/pelle/cloth.git","svn_url":"https://github.com/pelle/cloth","homepage":"","size":493,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pelle/cloth/pulls/1"},"html":{"href":"https://github.com/pelle/cloth/pull/1"},"issue":{"href":"https://api.github.com/repos/pelle/cloth/issues/1"},"comments":{"href":"https://api.github.com/repos/pelle/cloth/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pelle/cloth/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pelle/cloth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pelle/cloth/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pelle/cloth/statuses/d3d7db0aec8b430d8e9dfdf5f318a825aa2af71d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pelle","id":8680,"avatar_url":"https://avatars.githubusercontent.com/u/8680?v=3","gravatar_id":"","url":"https://api.github.com/users/pelle","html_url":"https://github.com/pelle","followers_url":"https://api.github.com/users/pelle/followers","following_url":"https://api.github.com/users/pelle/following{/other_user}","gists_url":"https://api.github.com/users/pelle/gists{/gist_id}","starred_url":"https://api.github.com/users/pelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelle/subscriptions","organizations_url":"https://api.github.com/users/pelle/orgs","repos_url":"https://api.github.com/users/pelle/repos","events_url":"https://api.github.com/users/pelle/events{/privacy}","received_events_url":"https://api.github.com/users/pelle/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":11,"additions":27951,"deletions":33507,"changed_files":16}}
{"actor":{"display_login":"pelle"}}