add Fee type

This commit is contained in:
Sean Yesmunt 2019-04-23 15:54:39 -04:00
parent 8629f10765
commit cc42856676
2 changed files with 14 additions and 10 deletions

View file

@ -79,11 +79,7 @@ declare type StreamMetadata = GenericMetadata & {
}, },
// Only exists if a stream has a fee // Only exists if a stream has a fee
fee?: { fee?: Fee,
amount: number, // should be a string https://github.com/lbryio/lbry/issues/1576
currency: string,
address: string,
},
stream_type: 'video' | 'audio' | 'image' | 'software', stream_type: 'video' | 'audio' | 'image' | 'software',
// Below correspond to `stream_type` // Below correspond to `stream_type`
@ -111,3 +107,9 @@ declare type Location = {
state?: string, state?: string,
code?: string, code?: string,
}; };
declare type Fee = {
amount: number, // should be a string https://github.com/lbryio/lbry/issues/1576
currency: string,
address: string,
};

12
flow-typed/Claim.js vendored
View file

@ -79,11 +79,7 @@ declare type StreamMetadata = GenericMetadata & {
}, },
// Only exists if a stream has a fee // Only exists if a stream has a fee
fee?: { fee?: Fee,
amount: number, // should be a string https://github.com/lbryio/lbry/issues/1576
currency: string,
address: string,
},
stream_type: 'video' | 'audio' | 'image' | 'software', stream_type: 'video' | 'audio' | 'image' | 'software',
// Below correspond to `stream_type` // Below correspond to `stream_type`
@ -111,3 +107,9 @@ declare type Location = {
state?: string, state?: string,
code?: string, code?: string,
}; };
declare type Fee = {
amount: number, // should be a string https://github.com/lbryio/lbry/issues/1576
currency: string,
address: string,
};