Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc965191f2 | ||
|
|
48190d18be | ||
|
|
201f8a4a09 | ||
|
|
ed6cfb239a | ||
|
|
7beeffd008 | ||
|
|
8bfeafa137 | ||
|
|
85226a20d0 | ||
|
|
ee65417441 |
No files matched your search
@@ -68,22 +68,29 @@ function syncWithApi(data) { // eslint-disable-line no-unused-vars
|
||||
case result.error === "this reward is limited to 1 per person":
|
||||
document.querySelector("developer-program").innerHTML =
|
||||
"<p>You have already claimed this reward. This reward is limited to <strong>ONE</strong> per person. Your enthusiasm is appreciated.</p>";
|
||||
break;
|
||||
return;
|
||||
|
||||
case result.error:
|
||||
document.querySelector("developer-program").innerHTML =
|
||||
`<p>${result.error}</p>`;
|
||||
return;
|
||||
|
||||
case result.success:
|
||||
result = result.data;
|
||||
document.querySelector("developer-program").innerHTML =
|
||||
`<p><strong>Success!</strong> Your wallet has been credited with ${result.reward_amount} LBC.</p><p>We have a great reference for the <a href="/api/sdk">LBRY SDK here</a> to help you get started.</p><p>You can see proof of this transaction on <a href="https://explorer.lbry.com/tx/${result.transaction_id}">our Blockchain Explorer</a>.</p>`;
|
||||
break;
|
||||
return;
|
||||
|
||||
default:
|
||||
console.log(data); // eslint-disable-line no-console
|
||||
console.info(data); // eslint-disable-line no-console
|
||||
document.querySelector("developer-program").innerHTML =
|
||||
"<p><strong>The LBRY API might be down. Please try again later.</strong></p>";
|
||||
break;
|
||||
"<p><strong>No success or error was received so the LBRY API might be down.<br/>Please try again later.</strong></p>";
|
||||
return;
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
|
||||
// Idk what the error would be (probably a 500) so let's just have this message
|
||||
document.querySelector("developer-program").innerHTML =
|
||||
"<p><strong>LBRY API is down. Please try again later.</strong></p>";
|
||||
|
||||
@@ -3,6 +3,21 @@ developer-program {
|
||||
|
||||
input-submit {
|
||||
padding-top: 0.5rem;
|
||||
|
||||
button {
|
||||
color: $lbry-white;
|
||||
padding-right: 1.5rem;
|
||||
padding-left: 1.5rem;
|
||||
transition: background-color 0.2s;
|
||||
|
||||
&:not(:hover) {
|
||||
background-color: $lbry-black;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $lbry-teal-4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.button {
|
||||
|
||||
@@ -68,7 +68,7 @@ Several hundred extremely good-looking, wise and moral people, as well as our CT
|
||||
|
||||
Web and application designers are requested to be able to work directly on CSS in the project they'd be contributing to. Please follow the [Coding](#coding) instructions for any website or application you want to improve.
|
||||
|
||||
We're happy to provide assistance if you're used to working in HTMl and CSS but are having trouble getting started. Check out [our chat](https://chat.lbry.com) or [our forum](https://discourse.lbry.com).
|
||||
We're happy to provide assistance if you're used to working in HTML and CSS but are having trouble getting started. Check out [our chat](https://chat.lbry.com) or [our forum](https://discourse.lbry.com).
|
||||
|
||||
## Writing
|
||||
|
||||
|
||||
@@ -41,6 +41,10 @@ The sequence number of a block in the blockchain. The first block is at height 0
|
||||
|
||||
An open, distributed ledger that records transactions in a verifiable and change-resistant way. The LBRY blockchain serves as an index of the content available on the network, a payment system and record of purchases for priced content, and a source if cryptographic publisher identities.
|
||||
|
||||
### Canonical URL
|
||||
|
||||
Similar to the [Short URL](#short-url) but for claims that are signed by channels, both the channel Short URL and claim Short URL are returned (i.e. lbry://@LBRY-Social#d/two#f. A canonical URL will change if the channel is updated, therefore its less permanent than a Short URL which is less permanent than the [Permanent URL](https://spec.lbry.com/#urls).
|
||||
|
||||
### Chainquery
|
||||
|
||||
A tool that stores blockchain data in an SQL database, keeps the database up-to-date as the blockchain grows, and provides an API to access the data using standard SQL queries.
|
||||
@@ -172,7 +176,7 @@ A file included with each LBRY project that contains basic information about tha
|
||||
|
||||
A long-running node that accepts blobs for upload and rehosts them on the network.
|
||||
|
||||
### Resolve (or URL Resolution)
|
||||
### Resolve (or URL Resolution) {#resolve}
|
||||
|
||||
The process of translating a URL into the associated claim ID and metadata. See [Resolution](/spec#resolution) for details.
|
||||
|
||||
@@ -184,6 +188,10 @@ A definition of the structure of the metadata that is stored in claims in the bl
|
||||
|
||||
A scheme to validate transactions without storing the whole blockchain.
|
||||
|
||||
### Short URL
|
||||
|
||||
The shortest [URL](https://spec.lbry.com/#urls), not including the [channel](#channel), that will [resolve](#resolve) to the correct claim (i.e. lbry://cats#c, returning lbry://cats#ca43e2b6db155177564e574b09dfedc7588816ef or lbry://@cats#0 returning lbry://@cats#0893dbed95307c4b27aadbcb1cc6cb593810b3f9). This is determined on a first come, first serve basis on claim id collisions. A short URL with more than one identifier may change to include only a single identifier if the previous claim, which had the single identifier, is deleted.
|
||||
|
||||
### SPV
|
||||
|
||||
SPV is an abbreviation for [Simplified Payment Verification](#simplified-payment-verification).
|
||||
|
||||
Reference in new issue
Block a user