diff --git a/controller/action/BountyActions.class.php b/controller/action/BountyActions.class.php index 23e17a3a..8388f224 100644 --- a/controller/action/BountyActions.class.php +++ b/controller/action/BountyActions.class.php @@ -24,9 +24,11 @@ class BountyActions extends Actions uasort($bounties, function($postA, $postB) { $metadataA = $postA->getMetadata(); $metadataB = $postB->getMetadata(); - if ($metadataA['award'] != $metadataB['award']) + $awardA = strpos('-', $metadataA['award']) !== false ? rtrim(explode('-', $metadataA['award'])[0], '+') : $metadataA['award']; + $awardB = strpos('-', $metadataB['award']) !== false ? rtrim(explode('-', $metadataB['award'])[0], '+') : $metadataB['award']; + if ($awardA != $awardB) { - return $metadataA['award'] > $metadataB['award'] ? -1 : 1; + return $awardA > $awardB ? -1 : 1; } return $metadataA['title'] < $metadataB['title'] ? -1 : 1; }); diff --git a/posts/bounty/bittorrent-support.md b/posts/bounty/bittorrent-support.md new file mode 100644 index 00000000..a9ea7927 --- /dev/null +++ b/posts/bounty/bittorrent-support.md @@ -0,0 +1,27 @@ +--- +category: daemon +title: Add Support for BitTorrent +award: 4000 +status: available +date: '2016-07-01' +--- + +Add support for the BitTorrent protocol to [`lbry`](https://github.com/lbry). + +The LBRY blockchain supports storing metadata about media content. A simplified, sample entry looks like: + +``` +title: "What is LBRY?", +language: "en", +description: "What is LBRY? An introduction with Alex Tabarrok", +author: "Samuel Bryan", +sources: { + lbry_sd_hash : "d5169241150022f996fa7cd6a9a1c421937276a3275eb912790bd07ba7aec1fac5fd45431d226b8fb402691e79aeb24b" +} +``` + +The `sources` field is designed to be extended and support resolution to multiple protocols. To complete this the LBRY daemon must be modified to: + +- Support the BitTorrent protocol via `python-libtorrent` or similar. +- Read `btih` as a source key and use this key to access the data via BitTorrent when requested +- Probably a lot more stuff! \ No newline at end of file diff --git a/posts/bounty/bug-bounty.md b/posts/bounty/bug-bounty.md new file mode 100644 index 00000000..c857be60 --- /dev/null +++ b/posts/bounty/bug-bounty.md @@ -0,0 +1,25 @@ +--- +category: other +title: Bug and Security Bounty +award: 25-10,000+ +status: available +date: '2016-07-01' +--- + +LBRY will award LBC for all cleanly documented bugs, security vulnerabilities, or other flaws in LBRY's software, servers, infrastructure, or procedures. + +Awards will be variable based on the severity of the issue. Any discoveries that risk exploitation of the LBRY network, it's users, or LBRY Inc. should be disclosed privately to [grin@lbry.io](mailto:grin@lbry.io). + +Extremely severe discoveries will warrant commensurate awards. A cleanly reproduced but non-severe bug will be at the bottom of the scale. + +### Reporting Vulnerabilities or Sensitive Issues + +Please contact us directly at [tech@lbry.io](mailto:tech@lbry.io). + +### Reporting a Bug + +To report a bug, please open an Issue on the relevant Github project: + +[`lbry-web-ui`](https://github.com/lbry/lbry-web-ui) - UI bugs or display issues +[`lbry`](https://github.com/lbry/lbry-web-ui) - Connection or hosting issues +[`lbrycrdd`](https://github.com/lbry/lbry-web-ui) - Blockchain related issues diff --git a/posts/bounty/custom-project.md b/posts/bounty/custom-project.md new file mode 100644 index 00000000..4d0ffb2a --- /dev/null +++ b/posts/bounty/custom-project.md @@ -0,0 +1,11 @@ +--- +category: other +title: Custom Project +award: 250-20000+ +status: available +date: '2016-07-01' +--- + +Have a great idea on how to improve or spread LBRY? Let's talk. + +Come to us with a specific proposal of how you can help LBRY grow and we'll let you know what it's worth. \ No newline at end of file diff --git a/posts/bounty/lbry-club.md b/posts/bounty/lbry-club.md new file mode 100644 index 00000000..dd8839f8 --- /dev/null +++ b/posts/bounty/lbry-club.md @@ -0,0 +1,19 @@ +--- +category: human +title: LBRY Community Rep +award: 500 +status: available +date: '2016-07-01' +--- + +Excited about LBRY? Earn some credits for it! + +We're looking for people who can introduce and provide expertise to specific communities. This could be a college, music scene, city, or online community. + +Participants in this program will: + +- Receive invites for their group +- Receive additional credits to share with their group +- Communicate regularly with LBRY team members + +This bounty is not open to anyone. Please contact [Jeremy](mailto:jeremy@lbry.io) and let him know what community you would like to introduce LBRY to. diff --git a/posts/bounty/modified-block-explorer.md b/posts/bounty/modified-block-explorer.md new file mode 100644 index 00000000..07469914 --- /dev/null +++ b/posts/bounty/modified-block-explorer.md @@ -0,0 +1,18 @@ +--- +category: code +title: Modified Block Explorer +award: 1500 +status: available +date: '2016-07-01' +--- + +LBRY currently maintains and runs a block explorer at [explorer.lbry.io/](https://explorer.lbry.io/). + +This explorer is a fork of Iquidus Explorer and is [on Github](https://github.com/lbryio/lbry-explorer). + +Iquidus explorer is great, but does not currently support LBRY specific operations. + +The explorer should be modified to: + +- Display what LBRY name claims credits are backing +- Exploration of name claims in a way similar to transactions \ No newline at end of file diff --git a/posts/bounty/publish-open-content.md b/posts/bounty/publish-open-content.md new file mode 100644 index 00000000..cc763864 --- /dev/null +++ b/posts/bounty/publish-open-content.md @@ -0,0 +1,14 @@ +--- +category: code +title: Publish Open Content +award: 250-1000+ +status: available +date: '2016-07-01' +--- + +There are a large number of open content sources. Everything from public domain movies on [Internet Archive](https://archive.org/details/movies) +to books from [Project Gutenberg](https://www.gutenberg.org/). + +This project is to programmatically index, download, and port this content to the LBRY network. + +Credits will vary on the difficulty and usefulness of the source. We will provide credits to reserve the names for content. You must open-source any code created for this bounty. diff --git a/posts/bounty/social-media-cover-images.md b/posts/bounty/social-media-cover-images.md new file mode 100644 index 00000000..6e530db8 --- /dev/null +++ b/posts/bounty/social-media-cover-images.md @@ -0,0 +1,16 @@ +--- +category: design +title: Create Social Media Cover Images +award: 400 +status: available +date: '2016-07-01' +--- + +The current background images on our [Twitter](https://twitter.com/lbryio) and [Facebook](https://facebook.com/lbryio) are the same stock photo +that is on our homepage. We'd like to do something a little more unique. + +Candidate replacements could be either a photo or a graphic design. Either way, the image should: + +- Connote what LBRY is about: openness and fun +- Be unique to LBRY or otherwise not in significant use +- Suitable for white or LBRY green (#155B4A) text on top \ No newline at end of file diff --git a/posts/bounty/wallet-ui.md b/posts/bounty/wallet-ui.md index d59ef381..55b61dcf 100644 --- a/posts/bounty/wallet-ui.md +++ b/posts/bounty/wallet-ui.md @@ -1,7 +1,7 @@ --- category: browser title: Add Wallet Interface to LBRY Browser -award: 1000 +award: 2000 status: complete pr: https://github.com/lbryio/lbry-web-ui/pull/23/files date: '2016-07-01' @@ -13,3 +13,4 @@ The interface must support: - Generating a new wallet address. - Sending a variable number of credits to a specified address from the active wallet. +- Displaying an address to receive credits diff --git a/posts/bounty/web-i18n.md b/posts/bounty/web-i18n.md new file mode 100644 index 00000000..187839c5 --- /dev/null +++ b/posts/bounty/web-i18n.md @@ -0,0 +1,17 @@ +--- +category: web +title: Internationalization of lbry.io +award: 1000 +status: available +date: '2016-07-01' +--- + +lbry.io already has a partial internationalization framework and some translations, but additional work is required before they can be enabled. + +To complete this bounty, lbry.io must be modified to: + +- Allow modification of your selected language in the navigation +- Storing selected language in the user session +- Reverse look-up your IP and choose a default language if a user has not selected one + +[`lbry.io` on GitHub](https://github.com/lbryio/lbry.io) \ No newline at end of file diff --git a/posts/drafts/bounty/bug-bounty.md b/posts/drafts/bounty/bug-bounty.md deleted file mode 100644 index 6d7dd83e..00000000 --- a/posts/drafts/bounty/bug-bounty.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -category: human -title: Bug and Security Bounty -award: 10-10,000+ -status: available -date: '2016-07-01' ---- - -LBRY will award LBC for all cleanly documented bugs, security vulnerabilities, or other flaws in LBRY's software, servers, infrastructure, or procedures. - -Awards will be variable based on the severity of the issue. Any discoveries that risk exploitation of the LBRY network, it's users, or LBRY Inc. should be disclosed privately to [grin@lbry.io](mailto:grin@lbry.io). - -Extremely severe discoveries will warrant commensurate awards. Typical bug discoveries will be at the bottom of the scale. - -### Reporting a Bug - -To report a bug, please open an Issue on the relevant Github project: - -[`lbry-web-ui`](https://github.com/lbry/lbry-web-ui) - UI bugs or display issues -[`lbry`](https://github.com/lbry/lbry-web-ui) - Connection or hosting issues -[`lbrycrdd`](https://github.com/lbry/lbry-web-ui) - Blockchain related issues - diff --git a/view/template/bounty/list.php b/view/template/bounty/list.php index ba9390cb..a87b5f43 100644 --- a/view/template/bounty/list.php +++ b/view/template/bounty/list.php @@ -2,7 +2,7 @@ false]) ?>
-
+
diff --git a/web/img/gold-piles.jpg b/web/img/gold-piles.jpg new file mode 100644 index 00000000..636c9893 Binary files /dev/null and b/web/img/gold-piles.jpg differ