{"id":18260102,"url":"https://github.com/roppa/convector-example","last_synced_at":"2025-09-04T17:34:00.842Z","repository":{"id":40937476,"uuid":"203356902","full_name":"roppa/convector-example","owner":"roppa","description":"Looking at convector hyperledger chaincode","archived":false,"fork":false,"pushed_at":"2022-12-09T23:27:49.000Z","size":1687,"stargazers_count":1,"open_issues_count":18,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T18:36:31.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/roppa.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}},"created_at":"2019-08-20T10:51:03.000Z","updated_at":"2023-03-05T02:24:10.000Z","dependencies_parsed_at":"2023-01-26T00:32:24.027Z","dependency_job_id":null,"html_url":"https://github.com/roppa/convector-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fconvector-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fconvector-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fconvector-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fconvector-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roppa","download_url":"https://codeload.github.com/roppa/convector-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947825,"owners_count":21023058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-05T10:42:05.506Z","updated_at":"2025-04-08T23:44:47.360Z","avatar_url":"https://github.com/roppa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart contracts\n\nAssets ({ name, price }) can be traded between participants ({ name }).\n\n## Using Convector\n\n```\nconv new bcg -c participant\ncd bcg\nconv generate chaincode asset\nnpm install\nnpm run env:restart\nnpm run cc:start -- participant\nnpm run cc:start -- asset\nnpx lerna run start --scope server --stream\n```\n\nThis awesome project was created automatically with \u003ca href=\"https://github.com/worldsibu/convector-cli\" target=\"_blank\"\u003eConvector CLI\u003c/a\u003e.\nBy default new Convector projects locally include \u003ca href=\"https://github.com/worldsibu/hurley\"\u003eHurley\u003c/a\u003e to manage your development environment seamlessly, so you don't have to worry about setting up the network and hard ways to install  and upgrade your chaincodes.\n\n## Start\n\n```\n# Install dependencies - From the root of your project\nnpm i\n# Create a new development blockchain network  - From the root of your project\nnpm run env:restart\n# Install your smart contract\nnpm run cc:start -- participant\n# Make a testing call to create a record in the ledger\n# Beware that the first call may fail with a timeout! Just happens the first time\nhurl invoke participant participant_create \"{\\\"name\\\":\\\"my first request\\\",\\\"id\\\":\\\"0001\\\",\\\"created\\\":0,\\\"modified\\\":0}\"\n```\n\n## About Hurley\n\nYou may as well install **Hurley** globally for easier and more flexible management. \n\n`npm i -g @worldsibu/hurley`\n\nSince with Hurley globally you have control over everything, some things that you can do, for example, is installing a Convector Smart Contract with a different name than the one you used for your project.\n\n```\n# Use the same package\n# Install a new chaincode with the same source code but the name 'anothernameforyourcc'\nhurl install anothernameforyourcc node\n```\n\nOther complex tasks you may need is installing to a different channel.\n\n```\n# Use the same package\n# Be sure you started your environment with more than one channel running 'hurl new --channels 2'. Otherwise this will throw an error.\nhurl install anothernameforyourcc node --channel ch2\n```\n\n---\n\nIf you don't want to, don't worries! This project works right away.\n\n## Start - if you have Hurley globally\n\n### Bring your project to life \n\n```\n# Install dependencies - From the root of your project\nnpm i\n# Create a new development blockchain network  - From the root of your project\nhurl new\n```\n\n###  Install and upgrade chaincodes\n\n```\n# Package your smart contract's code  - From the root of your project\nnpm run cc:package -- participant org1\n# Install to your blockchain - From the root of your project\nhurl install participant node -P ./chaincode-participant\n# Install in debug mode, this will run the chaincode server locally so you can debug\nhurl install participant node -P ./chaincode-participant --debug\n\n# Upgrade your existing chaincode - From the root of your project\nhurl upgrade participant node 1.2 -P ./chaincode-participant\n```\n\n## Start - if you don't have Hurley globally\n\n### Bring your project to life \n\n```\n# Install dependencies - From the root of your project\nnpm i\n# Create a new development blockchain network  - From the root of your project\nnpm run env:restart\n```\n\n###  Install and upgrade chaincodes\n\n```\n# Install to your blockchain - From the root of your project\nnpm run cc:start -- participant\n\n# Upgrade your existing chaincode - From the root of your project\nnpm run cc:upgrade -- participant 1.2\n```\n\n## Tests\n\n```\nnpm run test\n```\n\n\u003e Check all the information to work with Convector \u003ca href=\"https://worldsibu.github.io/convector\" target=\"_blank\"\u003ein the DOCS site\u003c/a\u003e.\n\n## Collaborate to the Convector Suite projects\n\n* \u003ca href=\"https://discord.gg/twRwpWt\" target=\"_blank\"\u003eDiscord chat with the community\u003c/a\u003e\n* \u003ca href=\"https://github.com/worldsibu\" target=\"_blank\"\u003eConvector projects\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Fconvector-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froppa%2Fconvector-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Fconvector-example/lists"}