8x.pay 中文文档教程
8x Protocol
What is it?
8x 协议是一种在以太坊上实现去中心化定期支付的方法 区块链。 您可以在以下位置阅读更多相关信息:https://github.com/8x-protocol/whitepaper。
此存储库用于商家将使用的支付网关。
Contributing
要贡献,fork 这个 repo,创建一个新的分支,然后提交一个 PR 变化。
Running Locally
npm install
npm start
Code Style
- Strip trailing whitespace
- 2 soft indent(spaces)
- 80 char line limit
- semi-colons
- alphabetize all things
Method Organization
我们的组件是按照生命周期事件的顺序组织的。 功能是 按字母顺序排列。 我们建议使用编辑器的附加组件进行排序 如果可供使用的话。
React.createClass({
displayName : '',
propTypes: {},
getInitialState : function() {},
componentWillMount : function() {},
componentWillUnmount : function() {},
render : function() {}
});
Self Closing Tags
没有孩子的组件应该是自我关闭的。
<Example />
Formatting Attributes
元素的缩进属性如下所示
<input
type="text"
value={this.props.example} />
8x Protocol
What is it?
8x protocol is a way to enable decentralised recurring payments on the Ethereum blockchain. You can read more about it at: https://github.com/8x-protocol/whitepaper.
This repo is for the payment gateway that merchnts will use.
Contributing
To contribute, fork this repo, create a new branch, and submit a PR with your changes.
Running Locally
npm install
npm start
Code Style
- Strip trailing whitespace
- 2 soft indent(spaces)
- 80 char line limit
- semi-colons
- alphabetize all things
Method Organization
Our components are organized in order of life-cycle events. Functions are ordered alphabetically. We recommend using an add-on for your editor for sorting if available.
React.createClass({
displayName : '',
propTypes: {},
getInitialState : function() {},
componentWillMount : function() {},
componentWillUnmount : function() {},
render : function() {}
});
Self Closing Tags
Components without childrens should be self closed.
<Example />
Formatting Attributes
Indent attributes for elements as shown below
<input
type="text"
value={this.props.example} />