Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapphub/ds-feeds
Simple data access pattern for dumb, durable software objects
https://github.com/dapphub/ds-feeds
Last synced: 28 days ago
JSON representation
Simple data access pattern for dumb, durable software objects
- Host: GitHub
- URL: https://github.com/dapphub/ds-feeds
- Owner: dapphub
- License: other
- Created: 2016-03-03T21:17:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T16:38:37.000Z (over 7 years ago)
- Last Synced: 2024-10-28T05:33:15.666Z (about 2 months ago)
- Language: Makefile
- Homepage:
- Size: 448 KB
- Stars: 32
- Watchers: 7
- Forks: 23
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
- awesome-smart-contracts - nexusdev/feedbase - Simple data access pattern for dumb, durable software objects ("I thought I needed Oraclize"). (Libraries)
- awesome-smart-contracts - nexusdev/feedbase - Simple data access pattern for dumb, durable software objects ("I thought I needed Oraclize"). (Libraries)
README
**Note:** DSFeeds is still under development.
DSFeeds
========This small, self-contained Ethereum contract lets you create "feeds"
that you can use to publish arbitrary 32-byte values, with attached
expiration dates to prevent consumers from reading stale data.Perhaps most interestingly, the owner of a feed has the ability to tax
on-chain consumers (i.e., smart contracts) for making use of the feed.
This happens at most once for each feed value (to the first consumer).
The reason for this is that you couldn't really prevent anyone from
creating a simple contract that would repeat your feed values anyway.
However, you're free to publish new values again as often as you want.The prices can be changed at any time, although for security reasons
the address of the underlying ERC20 token can only ever be set once.One obvious application of DSFeeds is publishing financial data to
smart contracts that rely on "oracles" in a nice, standardized way.
Another interesting use case is for configuration of smart contracts.Think of DSFeeds as a piece of low-level Ethereum infrastructure:
it's free for anyone to use, and not owned or controlled by anyone.More information
----------------For more details, take a look at the following files:
src/feeds.sol
src/paid_feeds.t.solYou can also check out Keeper (),
an "admin toolkit for incentive-following software daemons," designed
to do things like publishing price feeds to blockchains.Happy hacking!