{"action":"created","comment":{"url":"https://api.github.com/repos/flintrocks/flint/pulls/comments/244883212","pull_request_review_id":188851015,"id":244883212,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDg4MzIxMg==","diff_hunk":"@@ -1129,32 +1222,44 @@ struct Person: Animal {\n     return \"Huh?\"\n   }\n \n-  // Person can also have functions in addition to Animal\n+  // Person can also have functions in addition to Animal.\n   public func greet() -> String {\n     return \"Hi\"\n   }\n }\n+```\n+\n+### Contract traits\n+\n+Traits can be declared for contracts using the syntax:\n+\n+```swift\n+contract trait <trait-name> {\n+  // trait members\n+}\n+```\n+\n+Contracts can conform to contract traits using the following syntax for their declaration part:\n \n+```swift\n+contract <contract-name>: <trait-1>, <trait-2>, ... {\n+  // ...\n+}\n ```\n-### Contract Traits\n-Traits can be implemented for structures using the keyword combination of `contract trait` followed by a unique identifier before the block of trait members.\n \n-Contract traits can contain anonymous contract behaviour declarations containing methods or method signatures, or events.\n+Contract traits can contain anonymous contract behaviour declarations containing functions, function signatures, and events.","path":"docs/language_guide.md","position":1927,"original_position":1927,"commit_id":"5a14cffedce587f2f5452409d32e4a97a36dab83","original_commit_id":"5a14cffedce587f2f5452409d32e4a97a36dab83","user":{"login":"nvgrw","id":2105177,"node_id":"MDQ6VXNlcjIxMDUxNzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2105177?v=4","gravatar_id":"","url":"https://api.github.com/users/nvgrw","html_url":"https://github.com/nvgrw","followers_url":"https://api.github.com/users/nvgrw/followers","following_url":"https://api.github.com/users/nvgrw/following{/other_user}","gists_url":"https://api.github.com/users/nvgrw/gists{/gist_id}","starred_url":"https://api.github.com/users/nvgrw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvgrw/subscriptions","organizations_url":"https://api.github.com/users/nvgrw/orgs","repos_url":"https://api.github.com/users/nvgrw/repos","events_url":"https://api.github.com/users/nvgrw/events{/privacy}","received_events_url":"https://api.github.com/users/nvgrw/received_events","type":"User","site_admin":false},"body":"& any other replacement of 'method' => 'function' that you did. Pls revert those thanx ","created_at":"2019-01-02T23:21:12Z","updated_at":"2019-01-02T23:33:15Z","html_url":"https://github.com/flintrocks/flint/pull/139#discussion_r244883212","pull_request_url":"https://api.github.com/repos/flintrocks/flint/pulls/139","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/flintrocks/flint/pulls/comments/244883212"},"html":{"href":"https://github.com/flintrocks/flint/pull/139#discussion_r244883212"},"pull_request":{"href":"https://api.github.com/repos/flintrocks/flint/pulls/139"}},"in_reply_to_id":244883141},"pull_request":{"url":"https://api.github.com/repos/flintrocks/flint/pulls/139","id":241844534,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxODQ0NTM0","html_url":"https://github.com/flintrocks/flint/pull/139","diff_url":"https://github.com/flintrocks/flint/pull/139.diff","patch_url":"https://github.com/flintrocks/flint/pull/139.patch","issue_url":"https://api.github.com/repos/flintrocks/flint/issues/139","number":139,"state":"open","locked":false,"title":"Updated language guide","user":{"login":"Aurel300","id":1102162,"node_id":"MDQ6VXNlcjExMDIxNjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1102162?v=4","gravatar_id":"","url":"https://api.github.com/users/Aurel300","html_url":"https://github.com/Aurel300","followers_url":"https://api.github.com/users/Aurel300/followers","following_url":"https://api.github.com/users/Aurel300/following{/other_user}","gists_url":"https://api.github.com/users/Aurel300/gists{/gist_id}","starred_url":"https://api.github.com/users/Aurel300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aurel300/subscriptions","organizations_url":"https://api.github.com/users/Aurel300/orgs","repos_url":"https://api.github.com/users/Aurel300/repos","events_url":"https://api.github.com/users/Aurel300/events{/privacy}","received_events_url":"https://api.github.com/users/Aurel300/received_events","type":"User","site_admin":false},"body":" - [x] rewrote a large amount of the language guide for better structure\r\n - [x] more examples, including a full worked `Counter` examples\r\n - [x] documentation for new features (external calls, casting, error handling)\r\n - [x] full ToC","created_at":"2019-01-02T20:50:52Z","updated_at":"2019-01-02T23:33:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32a0a59c6e4cca3ff8587e18d60ed0660c61e29a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/flintrocks/flint/pulls/139/commits","review_comments_url":"https://api.github.com/repos/flintrocks/flint/pulls/139/comments","review_comment_url":"https://api.github.com/repos/flintrocks/flint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flintrocks/flint/issues/139/comments","statuses_url":"https://api.github.com/repos/flintrocks/flint/statuses/5a14cffedce587f2f5452409d32e4a97a36dab83","head":{"label":"flintrocks:feature/updated-language-guide","ref":"feature/updated-language-guide","sha":"5a14cffedce587f2f5452409d32e4a97a36dab83","user":{"login":"flintrocks","id":43988389,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzOTg4Mzg5","avatar_url":"https://avatars0.githubusercontent.com/u/43988389?v=4","gravatar_id":"","url":"https://api.github.com/users/flintrocks","html_url":"https://github.com/flintrocks","followers_url":"https://api.github.com/users/flintrocks/followers","following_url":"https://api.github.com/users/flintrocks/following{/other_user}","gists_url":"https://api.github.com/users/flintrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/flintrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flintrocks/subscriptions","organizations_url":"https://api.github.com/users/flintrocks/orgs","repos_url":"https://api.github.com/users/flintrocks/repos","events_url":"https://api.github.com/users/flintrocks/events{/privacy}","received_events_url":"https://api.github.com/users/flintrocks/received_events","type":"Organization","site_admin":false},"repo":{"id":152228869,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMjg4Njk=","name":"flint","full_name":"flintrocks/flint","private":false,"owner":{"login":"flintrocks","id":43988389,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzOTg4Mzg5","avatar_url":"https://avatars0.githubusercontent.com/u/43988389?v=4","gravatar_id":"","url":"https://api.github.com/users/flintrocks","html_url":"https://github.com/flintrocks","followers_url":"https://api.github.com/users/flintrocks/followers","following_url":"https://api.github.com/users/flintrocks/following{/other_user}","gists_url":"https://api.github.com/users/flintrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/flintrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flintrocks/subscriptions","organizations_url":"https://api.github.com/users/flintrocks/orgs","repos_url":"https://api.github.com/users/flintrocks/repos","events_url":"https://api.github.com/users/flintrocks/events{/privacy}","received_events_url":"https://api.github.com/users/flintrocks/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/flintrocks/flint","description":"The Flint Programming Language for Smart Contracts","fork":true,"url":"https://api.github.com/repos/flintrocks/flint","forks_url":"https://api.github.com/repos/flintrocks/flint/forks","keys_url":"https://api.github.com/repos/flintrocks/flint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flintrocks/flint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flintrocks/flint/teams","hooks_url":"https://api.github.com/repos/flintrocks/flint/hooks","issue_events_url":"https://api.github.com/repos/flintrocks/flint/issues/events{/number}","events_url":"https://api.github.com/repos/flintrocks/flint/events","assignees_url":"https://api.github.com/repos/flintrocks/flint/assignees{/user}","branches_url":"https://api.github.com/repos/flintrocks/flint/branches{/branch}","tags_url":"https://api.github.com/repos/flintrocks/flint/tags","blobs_url":"https://api.github.com/repos/flintrocks/flint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flintrocks/flint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flintrocks/flint/git/refs{/sha}","trees_url":"https://api.github.com/repos/flintrocks/flint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flintrocks/flint/statuses/{sha}","languages_url":"https://api.github.com/repos/flintrocks/flint/languages","stargazers_url":"https://api.github.com/repos/flintrocks/flint/stargazers","contributors_url":"https://api.github.com/repos/flintrocks/flint/contributors","subscribers_url":"https://api.github.com/repos/flintrocks/flint/subscribers","subscription_url":"https://api.github.com/repos/flintrocks/flint/subscription","commits_url":"https://api.github.com/repos/flintrocks/flint/commits{/sha}","git_commits_url":"https://api.github.com/repos/flintrocks/flint/git/commits{/sha}","comments_url":"https://api.github.com/repos/flintrocks/flint/comments{/number}","issue_comment_url":"https://api.github.com/repos/flintrocks/flint/issues/comments{/number}","contents_url":"https://api.github.com/repos/flintrocks/flint/contents/{+path}","compare_url":"https://api.github.com/repos/flintrocks/flint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flintrocks/flint/merges","archive_url":"https://api.github.com/repos/flintrocks/flint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flintrocks/flint/downloads","issues_url":"https://api.github.com/repos/flintrocks/flint/issues{/number}","pulls_url":"https://api.github.com/repos/flintrocks/flint/pulls{/number}","milestones_url":"https://api.github.com/repos/flintrocks/flint/milestones{/number}","notifications_url":"https://api.github.com/repos/flintrocks/flint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flintrocks/flint/labels{/name}","releases_url":"https://api.github.com/repos/flintrocks/flint/releases{/id}","deployments_url":"https://api.github.com/repos/flintrocks/flint/deployments","created_at":"2018-10-09T10:01:09Z","updated_at":"2018-12-28T15:17:27Z","pushed_at":"2019-01-02T20:52:25Z","git_url":"git://github.com/flintrocks/flint.git","ssh_url":"git@github.com:flintrocks/flint.git","clone_url":"https://github.com/flintrocks/flint.git","svn_url":"https://github.com/flintrocks/flint","homepage":"","size":5346,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":21,"watchers":2,"default_branch":"master"}},"base":{"label":"flintrocks:master","ref":"master","sha":"9d38990676ae000d323d032791209a08f56a9b76","user":{"login":"flintrocks","id":43988389,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzOTg4Mzg5","avatar_url":"https://avatars0.githubusercontent.com/u/43988389?v=4","gravatar_id":"","url":"https://api.github.com/users/flintrocks","html_url":"https://github.com/flintrocks","followers_url":"https://api.github.com/users/flintrocks/followers","following_url":"https://api.github.com/users/flintrocks/following{/other_user}","gists_url":"https://api.github.com/users/flintrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/flintrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flintrocks/subscriptions","organizations_url":"https://api.github.com/users/flintrocks/orgs","repos_url":"https://api.github.com/users/flintrocks/repos","events_url":"https://api.github.com/users/flintrocks/events{/privacy}","received_events_url":"https://api.github.com/users/flintrocks/received_events","type":"Organization","site_admin":false},"repo":{"id":152228869,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMjg4Njk=","name":"flint","full_name":"flintrocks/flint","private":false,"owner":{"login":"flintrocks","id":43988389,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzOTg4Mzg5","avatar_url":"https://avatars0.githubusercontent.com/u/43988389?v=4","gravatar_id":"","url":"https://api.github.com/users/flintrocks","html_url":"https://github.com/flintrocks","followers_url":"https://api.github.com/users/flintrocks/followers","following_url":"https://api.github.com/users/flintrocks/following{/other_user}","gists_url":"https://api.github.com/users/flintrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/flintrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flintrocks/subscriptions","organizations_url":"https://api.github.com/users/flintrocks/orgs","repos_url":"https://api.github.com/users/flintrocks/repos","events_url":"https://api.github.com/users/flintrocks/events{/privacy}","received_events_url":"https://api.github.com/users/flintrocks/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/flintrocks/flint","description":"The Flint Programming Language for Smart Contracts","fork":true,"url":"https://api.github.com/repos/flintrocks/flint","forks_url":"https://api.github.com/repos/flintrocks/flint/forks","keys_url":"https://api.github.com/repos/flintrocks/flint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flintrocks/flint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flintrocks/flint/teams","hooks_url":"https://api.github.com/repos/flintrocks/flint/hooks","issue_events_url":"https://api.github.com/repos/flintrocks/flint/issues/events{/number}","events_url":"https://api.github.com/repos/flintrocks/flint/events","assignees_url":"https://api.github.com/repos/flintrocks/flint/assignees{/user}","branches_url":"https://api.github.com/repos/flintrocks/flint/branches{/branch}","tags_url":"https://api.github.com/repos/flintrocks/flint/tags","blobs_url":"https://api.github.com/repos/flintrocks/flint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flintrocks/flint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flintrocks/flint/git/refs{/sha}","trees_url":"https://api.github.com/repos/flintrocks/flint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flintrocks/flint/statuses/{sha}","languages_url":"https://api.github.com/repos/flintrocks/flint/languages","stargazers_url":"https://api.github.com/repos/flintrocks/flint/stargazers","contributors_url":"https://api.github.com/repos/flintrocks/flint/contributors","subscribers_url":"https://api.github.com/repos/flintrocks/flint/subscribers","subscription_url":"https://api.github.com/repos/flintrocks/flint/subscription","commits_url":"https://api.github.com/repos/flintrocks/flint/commits{/sha}","git_commits_url":"https://api.github.com/repos/flintrocks/flint/git/commits{/sha}","comments_url":"https://api.github.com/repos/flintrocks/flint/comments{/number}","issue_comment_url":"https://api.github.com/repos/flintrocks/flint/issues/comments{/number}","contents_url":"https://api.github.com/repos/flintrocks/flint/contents/{+path}","compare_url":"https://api.github.com/repos/flintrocks/flint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flintrocks/flint/merges","archive_url":"https://api.github.com/repos/flintrocks/flint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flintrocks/flint/downloads","issues_url":"https://api.github.com/repos/flintrocks/flint/issues{/number}","pulls_url":"https://api.github.com/repos/flintrocks/flint/pulls{/number}","milestones_url":"https://api.github.com/repos/flintrocks/flint/milestones{/number}","notifications_url":"https://api.github.com/repos/flintrocks/flint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flintrocks/flint/labels{/name}","releases_url":"https://api.github.com/repos/flintrocks/flint/releases{/id}","deployments_url":"https://api.github.com/repos/flintrocks/flint/deployments","created_at":"2018-10-09T10:01:09Z","updated_at":"2018-12-28T15:17:27Z","pushed_at":"2019-01-02T20:52:25Z","git_url":"git://github.com/flintrocks/flint.git","ssh_url":"git@github.com:flintrocks/flint.git","clone_url":"https://github.com/flintrocks/flint.git","svn_url":"https://github.com/flintrocks/flint","homepage":"","size":5346,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":21,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flintrocks/flint/pulls/139"},"html":{"href":"https://github.com/flintrocks/flint/pull/139"},"issue":{"href":"https://api.github.com/repos/flintrocks/flint/issues/139"},"comments":{"href":"https://api.github.com/repos/flintrocks/flint/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/flintrocks/flint/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/flintrocks/flint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flintrocks/flint/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/flintrocks/flint/statuses/5a14cffedce587f2f5452409d32e4a97a36dab83"}},"author_association":"NONE"}}
{"actor":{"display_login":"nvgrw"}}