{"id":15538849,"url":"https://github.com/0xfutures/protocol","last_synced_at":"2026-04-04T16:21:16.645Z","repository":{"id":33660824,"uuid":"159620981","full_name":"0xFutures/protocol","owner":"0xFutures","description":"0xFutures Protocol Implementation","archived":false,"fork":false,"pushed_at":"2023-04-19T18:41:44.000Z","size":4171,"stargazers_count":9,"open_issues_count":18,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T09:25:43.187Z","etag":null,"topics":["blockchain","dai","derivatives","ethereum","futures","smart-contracts","solidity","stablecoin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xFutures.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-29T06:50:15.000Z","updated_at":"2024-05-17T16:48:17.000Z","dependencies_parsed_at":"2023-01-15T01:55:32.503Z","dependency_job_id":null,"html_url":"https://github.com/0xFutures/protocol","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xFutures%2Fprotocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xFutures%2Fprotocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xFutures%2Fprotocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xFutures%2Fprotocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xFutures","download_url":"https://codeload.github.com/0xFutures/protocol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242122722,"owners_count":20075339,"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":["blockchain","dai","derivatives","ethereum","futures","smart-contracts","solidity","stablecoin"],"created_at":"2024-10-02T12:06:57.767Z","updated_at":"2026-04-04T16:21:16.635Z","avatar_url":"https://github.com/0xFutures.png","language":"JavaScript","readme":"[![npm version](https://badge.fury.io/js/%400xfutures%2Fprotocol.svg)](https://badge.fury.io/js/%400xfutures%2Fprotocol)\n[![Build Status](https://travis-ci.org/0xFutures/protocol.svg?branch=master)](https://travis-ci.org/0xFutures/protocol)\n\n# 0xFutures protocol\n\n[0xFutures](https://0xfutures.com) protocol implementation\n\n## Setup\n\n```\n\u003e npm i -g truffle\n\u003e npm i\n```\n\n## Test\n\n```\nnpm run publish-abi\nnpm test\n```\n\n## Deploy Contracts (local node)\n\nThis deployment command will recompile contracts, update ABI, run tests and deploy contracts to the blockchain using a local synchronised Ethereum node.\n\n```\n// eg. kovan\n\u003e npm run deploy-kovan\n```\n\nNOTE: the very first time the contracts are deployed to a new network the deployer should run 'npm run deploy-\u0026lt;network\u0026gt;-first-time' instead of 'npm run deploy-\u0026lt;network\u0026gt;' as this will install the permanent Registry contract that all future deployments share. It contains a mapping of all CFDs ever created as well as the address of the most recent CFDFactory contract.\n\n## Deploy Contracts (Infura)\n\nRuns the same steps as the 'local node' deploy above but will deploy using a remote infura node.\n\nSee config.kovan.infura.json.template for an example configuration. Put your Infura apikey and HD wallet mnemonic phrase in the config file.\n\n```\n// eg. kovan with infura config\n\u003e npm run deploy-kovan-infura\n```\n\nSee the note about 'first-time' deployment above. This applies to Infura deployment also.\n\n## Publish NPM\n\n```\n// ensure repo has latest abi\n\u003e npm run publish-abi\n\u003e git add abi \u0026\u0026 git commit -m \"updated ABI\" abi\n\n// ensure tests are passing\n\u003e npm test\n\n// publish NPM\n\u003e npm version patch     # bumps the version number and tags the commit\n\u003e npm publish           # see package.json scripts prepare - this will run the tests before publishing\n\u003e git push --tags\n```\n\n## npm\n\nThe package is published with the contract ABI JSON files (abi/) and js libraries (lib/) to [@0xfutures/protocol](https://www.npmjs.com/package/@0xfutures/protocol).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xfutures%2Fprotocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xfutures%2Fprotocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xfutures%2Fprotocol/lists"}