{"id":21658961,"url":"https://github.com/paritytech/oo7","last_synced_at":"2025-07-17T21:32:00.228Z","repository":{"id":57314917,"uuid":"151257717","full_name":"paritytech/oo7","owner":"paritytech","description":"The Bonds framework along with associated modules.","archived":true,"fork":false,"pushed_at":"2020-03-01T02:26:02.000Z","size":7673,"stargazers_count":53,"open_issues_count":41,"forks_count":15,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-11T00:37:35.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paritytech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-02T13:19:53.000Z","updated_at":"2024-09-03T21:46:33.000Z","dependencies_parsed_at":"2022-09-18T20:51:39.661Z","dependency_job_id":null,"html_url":"https://github.com/paritytech/oo7","commit_stats":null,"previous_names":[],"tags_count":124,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Foo7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Foo7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Foo7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Foo7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paritytech","download_url":"https://codeload.github.com/paritytech/oo7/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226305090,"owners_count":17603735,"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":[],"created_at":"2024-11-25T09:30:07.622Z","updated_at":"2024-11-25T09:30:28.410Z","avatar_url":"https://github.com/paritytech.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# oo7 Suite\n\n[![Build Status](https://travis-ci.org/paritytech/oo7.svg?branch=master)](https://travis-ci.org/paritytech/oo7)\n\n[![npm:oo7](https://img.shields.io/npm/v/oo7.svg)](https://www.npmjs.com/package/oo7)\n[![npm:oo7-parity](https://img.shields.io/npm/v/oo7-parity.svg)](https://www.npmjs.com/package/oo7-parity)\n[![npm:oo7-react](https://img.shields.io/npm/v/oo7-react.svg)](https://www.npmjs.com/package/oo7-react)\n\n\nThe `oo7` suite consists of three independent packages:\n\n- [oo7](./packages/oo7/) - Reactive Bonds\n- [oo7-parity](./packages/oo7-parity) - Bonds bindings for Ethereum objects\n- [oo7-react](./packages/oo7-react) - React components to display Bonds\n\n# Documentation\n\n[Documentation](https://paritytech.github.io/oo7/class/packages/oo7-parity/src/index.js~Bonds.html#instance-member-accounts) to all three packages can be found [here](https://paritytech.github.io/oo7/)\n\n# Examples\n\n### oo7\n```js\n// npm i oo7\nimport {TimeBond} from 'oo7'\n\n\n// Initialize the bond\nconst bond = new TimeBond()\nbond\n    .map(t =\u003e new Date(t))\n    .tie(date =\u003e console.log(`${date}`))\n    // Wed Oct 11 2017 12:14:56 GMT+0200 (CEST)\n\n```\n\n### oo7-parity\n```js\n// npm i oo7-parity\nimport {Bonds, formatBalance} from 'oo7-parity'\n\nconst bonds = Bonds()\n\nbonds.balance(bonds.me)\n    .map(formatBalance)\n    .tie(console.log) // 4.45 ETH\n```\n\n### oo7-react\n```js\nimport ReactDOM from 'react-dom'\nimport React, { Component } from 'react'\n\n// Import reactive element\nimport {Rspan} from 'oo7-react'\nimport {Bonds, formatBalance} from 'oo7-parity'\n\nconst bonds = new Bonds()\n\nclass App extends Component {\n  render() {\n    // Simply render bonds\n    return (\n      \u003cdiv\u003e\n          \u003cRspan\u003e\n            {bonds.me} has \n            {bonds.balance(bonds.me).map(formatBalance)}\n          \u003c/Rspan\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nReactDOM.render(\u003cApp /\u003e, document.querySelector('body'))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparitytech%2Foo7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparitytech%2Foo7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparitytech%2Foo7/lists"}