{"id":26612502,"url":"https://github.com/lamden/saffron","last_synced_at":"2025-04-10T01:35:12.713Z","repository":{"id":57463587,"uuid":"98460470","full_name":"Lamden/saffron","owner":"Lamden","description":"Easily deployed and managed private blockchains for enterprise and development use.","archived":false,"fork":false,"pushed_at":"2019-01-23T20:20:31.000Z","size":4165,"stargazers_count":44,"open_issues_count":19,"forks_count":6,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-24T03:18:50.921Z","etag":null,"topics":["blockchain","enterprise","ethereum","integration","sidechain"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lamden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-26T19:52:04.000Z","updated_at":"2025-03-08T01:24:45.000Z","dependencies_parsed_at":"2022-09-14T17:12:25.904Z","dependency_job_id":null,"html_url":"https://github.com/Lamden/saffron","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lamden%2Fsaffron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lamden%2Fsaffron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lamden%2Fsaffron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lamden%2Fsaffron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lamden","download_url":"https://codeload.github.com/Lamden/saffron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248141012,"owners_count":21054381,"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":["blockchain","enterprise","ethereum","integration","sidechain"],"created_at":"2025-03-24T03:18:57.128Z","updated_at":"2025-04-10T01:35:12.687Z","avatar_url":"https://github.com/Lamden.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Saffron\n#### Better Blockchains for Real World Applications\n\n![Travis CI](https://travis-ci.org/Lamden/saffron.svg?branch=master)\n![Travis CI](https://readthedocs.org/projects/saffron/badge/?version=latest)\n\n\nSaffron is a project that aims to make construction and deployment of blockchains easy for developers and enterprises. In it's current form, it relies on the Ethereum technology as a solid base to serve a blockchain with a ton of great features for most use-cases. Here are our goals:\n\n * Create a Blockchain CLI generator for easy initialization, management, and deployment of private blockchains.\n * Remove transaction costs for using private chains for higher incentive of integration.\n * Provide API's and tools to integrate private chains into web and mobile applications.\n * Create private chain to private chain communication via a main chain 'router' that is free to transact upon.\n\n#### Where are we at so far?\nRight now, we have a simple MVP, which generates contracts for Ethereum blockchains and an API that treats smart contract interaction like API calls. As well as a suite of opensource and optionally deployable admin dashboards.\n\n## Give it a go\n\n```\nvirtualenv -p python3 venv3_saffron\nsource venv_saffron/bin/activate\npython3 setup.py develop\n\nmkdir saffron\nexport LAMDEN_HOME=$(pwd)/saffron\nexport LAMDEN_FOLDER_PATH=$(pwd)\nexport LAMDEN_DB_FILE=$(pwd)/saffron/saffron.db\n\nsaffron --help\n```\n\n## API Deployment\n\n### deploying the developer services\n\n```\n# Install docker for your platform, and then.\ndocker-compose up\n```\n\n#### You can try out the API by using the following bash commands:\n\nSimple version:\n```\ncd docker_saffron_ledger_api \u0026\u0026 gunicorn api:application\necho 'pragma solidity ^0.4.11;contract mortal { address owner; function mortal() { owner = msg.sender; } function kill() { if (msg.sender == owner) suicide(owner); } } contract greeter is mortal { string greeting; function greeter(string _greeting) public { greeting = _greeting; } function greet() constant returns (string) { return greeting; } }' | curl --data-binary @- localhost:8000/some_endpoint\n```\n\nExample:\n```\n$ echo 'pragma solidity ^0.4.11;contract mortal { address owner; function mortal() { owner = msg.sender; } function kill() { if (msg.sender == owner) suicide(owner); } } contract greeter is mortal { string greeting; function greeter(string _greeting) public { greeting = _greeting; } function greet() constant returns (string) { return greeting; } }' | curl --data-binary @- localhost:8000/some_endpoint\nCreated the following files:\n    ['greeter.abi', 'greeter.bin', 'mortal.abi', 'mortal.bin']\n```\n\n#### running the tests\n\n```\nvirtualenv venv_saffron\nsource venv_saffron/bin/activate\npython setup.py develop\npip install pytest\npy.tests tests\n```\n\n## Documentation\n\n - http://saffron.readthedocs.io/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamden%2Fsaffron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamden%2Fsaffron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamden%2Fsaffron/lists"}