https://github.com/crypedit/purchase
a Purchase contract for homework
https://github.com/crypedit/purchase
solidity-language
Last synced: 12 months ago
JSON representation
a Purchase contract for homework
- Host: GitHub
- URL: https://github.com/crypedit/purchase
- Owner: crypedit
- Created: 2017-08-17T03:11:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-22T14:53:23.000Z (about 8 years ago)
- Last Synced: 2025-04-06T16:08:58.682Z (about 1 year ago)
- Topics: solidity-language
- Language: JavaScript
- Size: 34.2 KB
- Stars: 2
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Purchase
===
- [ ] 仅卖家新建合约
- [ ] 仅卖家在合约状态为新建状态时才能终止合约
- [ ] 仅买家确认购买
- [ ] 仅买家确认收货,合约才算完成
## 部署到 testnet (ropsten)
参考`truffle.js`中的注释的内容,部署该智能合约到`ropsten`即`http://45.76.197.72:8545`上。
```
$ cp your_keystore_file ./keystore
$ printf "your_passphase" > ./pass
$ truffle deploy --network ropsten
```
**注意**
你的账户中部署时必须有点`ether`,那么如何获取testnet上的`ehter`呢?