add: nsfw

Also cleaned up some metadata
depth is no longer there, replaced by confirmations
added city
added featured to channel
removed email/homepage
This commit is contained in:
Thomas Zarebczan 2019-05-09 09:57:58 -04:00
parent 32916b04e4
commit 423123f1c1
4 changed files with 6 additions and 6 deletions

1
dist/bundle.es.js vendored
View file

@ -3446,6 +3446,7 @@ exports.doWalletUnlock = doWalletUnlock;
exports.fileInfoReducer = fileInfoReducer;
exports.formatCredits = formatCredits;
exports.formatFullPrice = formatFullPrice;
exports.isClaimNsfw = isClaimNsfw;
exports.isNameValid = isNameValid;
exports.isURIClaimable = isURIClaimable;
exports.isURIValid = isURIValid;

View file

@ -29,7 +29,6 @@ declare type GenericClaim = {
claim_op: 'create' | 'update',
confirmations: number, // This isn't the most stable atm: https://github.com/lbryio/lbry/issues/2000
decoded_claim: boolean, // claim made in accordance with sdk protobuf types
depth: number, // confirmations since tx
effective_amount: number, // bid amount + supports
timestamp?: number, // date of transaction
has_signature: boolean,
@ -61,10 +60,9 @@ declare type GenericMetadata = {
declare type ChannelMetadata = GenericMetadata & {
public_key: string,
cover_url?: string,
contact_email?: string,
homepage_url?: string,
email?: string,
website_url?: string,
featured?: Array<string>,
};
declare type StreamMetadata = GenericMetadata & {
@ -108,6 +106,7 @@ declare type Location = {
longitude?: number,
country?: string,
state?: string,
city?: string,
code?: string,
};

5
flow-typed/Claim.js vendored
View file

@ -29,7 +29,6 @@ declare type GenericClaim = {
claim_op: 'create' | 'update',
confirmations: number, // This isn't the most stable atm: https://github.com/lbryio/lbry/issues/2000
decoded_claim: boolean, // claim made in accordance with sdk protobuf types
depth: number, // confirmations since tx
effective_amount: number, // bid amount + supports
timestamp?: number, // date of transaction
has_signature: boolean,
@ -61,10 +60,9 @@ declare type GenericMetadata = {
declare type ChannelMetadata = GenericMetadata & {
public_key: string,
cover_url?: string,
contact_email?: string,
homepage_url?: string,
email?: string,
website_url?: string,
featured?: Array<string>,
};
declare type StreamMetadata = GenericMetadata & {
@ -108,6 +106,7 @@ declare type Location = {
longitude?: number,
country?: string,
state?: string,
city?: string,
code?: string,
};

View file

@ -89,6 +89,7 @@ export {
export { batchActions } from 'util/batchActions';
export { parseQueryParams, toQueryString } from 'util/query_params';
export { formatCredits, formatFullPrice, creditsToString } from 'util/formatCredits';
export { isClaimNsfw } from 'util/claim';
// reducers
export { claimsReducer } from 'redux/reducers/claims';