0.8.0 • Published 6 years ago
oo7-substrate v0.8.0
oo7 Suite
The oo7
suite consists of three independent packages:
- oo7 - Reactive Bonds
- oo7-parity - Bonds bindings for Ethereum objects
- oo7-react - React components to display Bonds
Documentation
Documentation to all three packages can be found here
Examples
oo7
// npm i oo7
import {TimeBond} from 'oo7'
// Initialize the bond
const bond = new TimeBond()
bond
.map(t => new Date(t))
.tie(date => console.log(`${date}`))
// Wed Oct 11 2017 12:14:56 GMT+0200 (CEST)
oo7-parity
// npm i oo7-parity
import {Bonds, formatBalance} from 'oo7-parity'
const bonds = Bonds()
bonds.balance(bonds.me)
.map(formatBalance)
.tie(console.log) // 4.45 ETH
oo7-react
import ReactDOM from 'react-dom'
import React, { Component } from 'react'
// Import reactive element
import {Rspan} from 'oo7-react'
import {Bonds, formatBalance} from 'oo7-parity'
const bonds = new Bonds()
class App extends Component {
render() {
// Simply render bonds
return (
<div>
<Rspan>
{bonds.me} has
{bonds.balance(bonds.me).map(formatBalance)}
</Rspan>
</div>
);
}
}
ReactDOM.render(<App />, document.querySelector('body'))
0.8.0
6 years ago
0.7.1
6 years ago
0.7.0
6 years ago
0.6.2
6 years ago
0.6.1
6 years ago
0.6.0
6 years ago
0.5.0
6 years ago
0.4.13
6 years ago
0.4.12
6 years ago
0.4.11
6 years ago
0.4.10
6 years ago
0.4.9
6 years ago
0.4.8
6 years ago
0.4.7
6 years ago
0.4.6
6 years ago
0.4.5
6 years ago
0.4.4
6 years ago
0.4.3
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.20
6 years ago
0.3.19
6 years ago
0.3.18
6 years ago
0.3.17
6 years ago
0.3.16
6 years ago
0.3.15
6 years ago
0.3.14
6 years ago
0.3.13
6 years ago
0.3.12
6 years ago
0.3.11
6 years ago
0.3.10
6 years ago
0.3.9
6 years ago
0.3.8
6 years ago
0.3.7
6 years ago
0.3.6
6 years ago
0.3.5
6 years ago
0.3.4
6 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago
0.1.0
6 years ago