add channel_sign

This commit is contained in:
Sean Yesmunt 2021-02-11 10:04:52 -05:00
parent 5d41b0656c
commit b2cd195b14
5 changed files with 24 additions and 9 deletions

1
dist/bundle.es.js vendored
View file

@ -1064,6 +1064,7 @@ const Lbry = {
stream_abandon: params => daemonCallWithResult('stream_abandon', params), stream_abandon: params => daemonCallWithResult('stream_abandon', params),
stream_list: params => daemonCallWithResult('stream_list', params), stream_list: params => daemonCallWithResult('stream_list', params),
channel_abandon: params => daemonCallWithResult('channel_abandon', params), channel_abandon: params => daemonCallWithResult('channel_abandon', params),
channel_sign: params => daemonCallWithResult('channel_sign', params),
support_create: params => daemonCallWithResult('support_create', params), support_create: params => daemonCallWithResult('support_create', params),
support_list: params => daemonCallWithResult('support_list', params), support_list: params => daemonCallWithResult('support_list', params),
stream_repost: params => daemonCallWithResult('stream_repost', params), stream_repost: params => daemonCallWithResult('stream_repost', params),

View file

@ -137,8 +137,8 @@ declare type CommentListResponse = {
declare type MyReactions = { declare type MyReactions = {
// Keys are the commentId // Keys are the commentId
[string]: Array<string> [string]: Array<string>,
} };
declare type OthersReactions = { declare type OthersReactions = {
// Keys are the commentId // Keys are the commentId
@ -146,12 +146,12 @@ declare type OthersReactions = {
// Keys are the reaction_type, e.g. 'like' // Keys are the reaction_type, e.g. 'like'
[string]: number, [string]: number,
}, },
} };
declare type CommentReactListResponse = { declare type CommentReactListResponse = {
my_reactions: Array<MyReactions>, my_reactions: Array<MyReactions>,
others_reactions: Array<OthersReactions>, others_reactions: Array<OthersReactions>,
} };
declare type CommentHideResponse = { declare type CommentHideResponse = {
// keyed by the CommentIds entered // keyed by the CommentIds entered
@ -176,6 +176,11 @@ declare type ChannelListResponse = {
total_pages: number, total_pages: number,
}; };
declare type ChannelSignResponse = {
signature: string,
signing_ts: string,
};
declare type FileListResponse = { declare type FileListResponse = {
items: Array<FileListItem>, items: Array<FileListItem>,
page: number, page: number,
@ -285,6 +290,7 @@ declare type LbryTypes = {
channel_update: (params: {}) => Promise<ChannelUpdateResponse>, channel_update: (params: {}) => Promise<ChannelUpdateResponse>,
channel_import: (params: {}) => Promise<string>, channel_import: (params: {}) => Promise<string>,
channel_list: (params: {}) => Promise<ChannelListResponse>, channel_list: (params: {}) => Promise<ChannelListResponse>,
channel_sign: (params: {}) => Promise<ChannelSignResponse>,
stream_abandon: (params: {}) => Promise<GenericTxResponse>, stream_abandon: (params: {}) => Promise<GenericTxResponse>,
stream_list: (params: {}) => Promise<StreamListResponse>, stream_list: (params: {}) => Promise<StreamListResponse>,
channel_abandon: (params: {}) => Promise<GenericTxResponse>, channel_abandon: (params: {}) => Promise<GenericTxResponse>,

14
flow-typed/Lbry.js vendored
View file

@ -137,8 +137,8 @@ declare type CommentListResponse = {
declare type MyReactions = { declare type MyReactions = {
// Keys are the commentId // Keys are the commentId
[string]: Array<string> [string]: Array<string>,
} };
declare type OthersReactions = { declare type OthersReactions = {
// Keys are the commentId // Keys are the commentId
@ -146,12 +146,12 @@ declare type OthersReactions = {
// Keys are the reaction_type, e.g. 'like' // Keys are the reaction_type, e.g. 'like'
[string]: number, [string]: number,
}, },
} };
declare type CommentReactListResponse = { declare type CommentReactListResponse = {
my_reactions: Array<MyReactions>, my_reactions: Array<MyReactions>,
others_reactions: Array<OthersReactions>, others_reactions: Array<OthersReactions>,
} };
declare type CommentHideResponse = { declare type CommentHideResponse = {
// keyed by the CommentIds entered // keyed by the CommentIds entered
@ -176,6 +176,11 @@ declare type ChannelListResponse = {
total_pages: number, total_pages: number,
}; };
declare type ChannelSignResponse = {
signature: string,
signing_ts: string,
};
declare type FileListResponse = { declare type FileListResponse = {
items: Array<FileListItem>, items: Array<FileListItem>,
page: number, page: number,
@ -285,6 +290,7 @@ declare type LbryTypes = {
channel_update: (params: {}) => Promise<ChannelUpdateResponse>, channel_update: (params: {}) => Promise<ChannelUpdateResponse>,
channel_import: (params: {}) => Promise<string>, channel_import: (params: {}) => Promise<string>,
channel_list: (params: {}) => Promise<ChannelListResponse>, channel_list: (params: {}) => Promise<ChannelListResponse>,
channel_sign: (params: {}) => Promise<ChannelSignResponse>,
stream_abandon: (params: {}) => Promise<GenericTxResponse>, stream_abandon: (params: {}) => Promise<GenericTxResponse>,
stream_list: (params: {}) => Promise<StreamListResponse>, stream_list: (params: {}) => Promise<StreamListResponse>,
channel_abandon: (params: {}) => Promise<GenericTxResponse>, channel_abandon: (params: {}) => Promise<GenericTxResponse>,

View file

@ -86,6 +86,7 @@ const Lbry: LbryTypes = {
stream_abandon: params => daemonCallWithResult('stream_abandon', params), stream_abandon: params => daemonCallWithResult('stream_abandon', params),
stream_list: params => daemonCallWithResult('stream_list', params), stream_list: params => daemonCallWithResult('stream_list', params),
channel_abandon: params => daemonCallWithResult('channel_abandon', params), channel_abandon: params => daemonCallWithResult('channel_abandon', params),
channel_sign: params => daemonCallWithResult('channel_sign', params),
support_create: params => daemonCallWithResult('support_create', params), support_create: params => daemonCallWithResult('support_create', params),
support_list: params => daemonCallWithResult('support_list', params), support_list: params => daemonCallWithResult('support_list', params),
stream_repost: params => daemonCallWithResult('stream_repost', params), stream_repost: params => daemonCallWithResult('stream_repost', params),

View file

@ -10,6 +10,7 @@ import {
selectClaimsByUri, selectClaimsByUri,
selectMyChannelClaims, selectMyChannelClaims,
selectPendingIds, selectPendingIds,
selectClaimsById,
} from 'redux/selectors/claims'; } from 'redux/selectors/claims';
import { doFetchTxoPage } from 'redux/actions/wallet'; import { doFetchTxoPage } from 'redux/actions/wallet';
import { selectSupportsByOutpoint } from 'redux/selectors/wallet'; import { selectSupportsByOutpoint } from 'redux/selectors/wallet';
@ -64,7 +65,7 @@ export function doResolveUris(
} = {}; } = {};
return Lbry.resolve({ urls: urisToResolve, ...options }).then( return Lbry.resolve({ urls: urisToResolve, ...options }).then(
async(result: ResolveResponse) => { async (result: ResolveResponse) => {
let repostedResults = {}; let repostedResults = {};
const repostsToResolve = []; const repostsToResolve = [];
const fallbackResolveInfo = { const fallbackResolveInfo = {