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_list: params => daemonCallWithResult('stream_list', params),
channel_abandon: params => daemonCallWithResult('channel_abandon', params),
channel_sign: params => daemonCallWithResult('channel_sign', params),
support_create: params => daemonCallWithResult('support_create', params),
support_list: params => daemonCallWithResult('support_list', params),
stream_repost: params => daemonCallWithResult('stream_repost', params),

View file

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

14
flow-typed/Lbry.js vendored
View file

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

View file

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

View file

@ -10,6 +10,7 @@ import {
selectClaimsByUri,
selectMyChannelClaims,
selectPendingIds,
selectClaimsById,
} from 'redux/selectors/claims';
import { doFetchTxoPage } from 'redux/actions/wallet';
import { selectSupportsByOutpoint } from 'redux/selectors/wallet';