在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mhhf/spore开源软件地址:https://github.com/mhhf/spore开源编程语言:JavaScript 99.2%开源软件介绍:IMPORTANT: This is a proof of concept prototype and shouldn't be used in production For fast development of DApps a package management is needed. Spore is a Proof of Concept prototype for a such package manager build on top of truffle, ethereum and ipfs. Any form on Feedback and contribution is highly wellcome.
InstallationMake sure you have node v4+ installed:
Install Spore:
On your first run spore will guide you trough a eth-rpc and ipfs configuration. Currently it is optimized for truffle, you may want to install truffle as well:
For full decentral usage:
Usage
GUI(Decentral version on IPFS will follow shortly) WorkflowCreate a new project:
this will create a spore.json in your root project directory: {
"name": "mypackage",
"version": "0.1.0",
"description": "description",
"dependencies": {},
"contracts": [],
"ignore": [],
"files": [],
"tags": []
} install a dependency:
import dependency to your contract:
link the dependencies:
add some files:
publish the package:
Now you can install the package
Beginner TurorialHow to write a coin tutorial with truffle and spore API documentationRead the Full API Documentation here. Development - InstallationThis will guide you trough a local development installation. The contract is not deployed on a global chain, yet. Make sure you have node v4+ installed:
Make sure you have solidity installed:
Install eth-testrpc for testing/ dev purposes.
Install truffle.
Install ipfs. clone this repo:
install:
Run your rpc client( In this case testrpc Deploy the spore ethereum contract with: TestRun a local chain:
Deploy the contract:
Run the test:
How it worksThis Ethereum contract has a The ipfs-hash is pointing to a package-header which specified by this json schema.
An example header for {
"name": "spore",
"version": "0.1.0",
"description": "Simple package manager for dapp development.",
"dependencies": {},
"contracts": [
"Spore"
],
"ignore": [],
"files": [
"contracts/Spore.sol"
],
"tags": [
"spore",
"package manager"
]
} The dependencies property contains packages with their ipfs header file. The root property points to a ipfs directory node which contains the package files. Next steps
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论