From 423123f1c19e61cead67c745d0892a2e4481cb6a Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 9 May 2019 09:57:58 -0400 Subject: [PATCH] add: nsfw Also cleaned up some metadata depth is no longer there, replaced by confirmations added city added featured to channel removed email/homepage --- dist/bundle.es.js | 1 + dist/flow-typed/Claim.js | 5 ++--- flow-typed/Claim.js | 5 ++--- src/index.js | 1 + 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index e36df2e..ee3aad0 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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; diff --git a/dist/flow-typed/Claim.js b/dist/flow-typed/Claim.js index 8bdd33c..9cbf4da 100644 --- a/dist/flow-typed/Claim.js +++ b/dist/flow-typed/Claim.js @@ -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, }; declare type StreamMetadata = GenericMetadata & { @@ -108,6 +106,7 @@ declare type Location = { longitude?: number, country?: string, state?: string, + city?: string, code?: string, }; diff --git a/flow-typed/Claim.js b/flow-typed/Claim.js index 8bdd33c..9cbf4da 100644 --- a/flow-typed/Claim.js +++ b/flow-typed/Claim.js @@ -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, }; declare type StreamMetadata = GenericMetadata & { @@ -108,6 +106,7 @@ declare type Location = { longitude?: number, country?: string, state?: string, + city?: string, code?: string, }; diff --git a/src/index.js b/src/index.js index a0ccf45..9c17d2d 100644 --- a/src/index.js +++ b/src/index.js @@ -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';