Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0802b3473 | ||
|
|
e265fc28f0 | ||
|
|
497fe3a376 | ||
|
|
8fd8ebad1b | ||
|
|
51a9e0307d | ||
|
|
99556d1ce4 | ||
|
|
a667278c99 | ||
|
|
a432c47e62 | ||
|
|
ff4b2f2dec | ||
|
|
aedce256af | ||
|
|
48b4b97132 | ||
|
|
6b1f88df66 | ||
|
|
d246c46227 | ||
|
|
7fdd9dc293 | ||
|
|
202861a900 | ||
|
|
4c41e7cb29 | ||
|
|
92823dcea9 | ||
|
|
795a5227bc | ||
|
|
bbd4bb99b7 | ||
|
|
f7443061ef | ||
|
|
416c3c16ab | ||
|
|
a11956ece0 | ||
|
|
c4e0c659a7 | ||
|
|
f6ba09b171 | ||
|
|
b827881024 | ||
|
|
89e395b5f4 | ||
|
|
c590954eb9 | ||
|
|
a5af3866fd | ||
|
|
1bef56f030 | ||
|
|
9045737504 | ||
|
|
0e48772c84 | ||
|
|
72690b5cff | ||
|
|
07bae26fd3 | ||
|
|
7b0e4617d3 | ||
|
|
af797296ed | ||
|
|
c826c7da0d | ||
|
|
20af1396b9 | ||
|
|
f567aca532 | ||
|
|
c60b658443 | ||
|
|
fde8c34088 | ||
|
|
deb6a07160 | ||
|
|
0a66e1b24c | ||
|
|
819a551b77 | ||
|
|
5119b71035 | ||
|
|
33945e14d3 | ||
|
|
1d9705fb17 | ||
|
|
1949937b5e | ||
|
|
956e21269e | ||
|
|
ff73418fc1 | ||
|
|
76d40f44d8 | ||
|
|
ab6944b7b0 | ||
|
|
4d741bd200 | ||
|
|
f3a163b382 | ||
|
|
011b7f090f | ||
|
|
4ead92cfbe | ||
|
|
9ee2f30df4 | ||
|
|
4a749f6c38 | ||
|
|
cf924373f6 | ||
|
|
d1f5b25418 | ||
|
|
822f53c888 | ||
|
|
f04c5ee902 | ||
|
|
022d60ec2c | ||
|
|
8fce374cae | ||
|
|
e78e2738ef | ||
|
|
5728493abb | ||
|
|
af1c8ec35c | ||
|
|
cb84abfb88 | ||
|
|
df1e349470 | ||
|
|
357ce881a6 | ||
|
|
aa417f5410 | ||
|
|
0ca29b9518 | ||
|
|
22db04068e | ||
|
|
65e74281e0 | ||
|
|
46d89929ba | ||
|
|
1c941a355b | ||
|
|
0d6248fbeb | ||
|
|
98d4d00f96 | ||
|
|
e2d618f472 | ||
|
|
79d643db6c | ||
|
|
13891330d9 | ||
|
|
6fd0c2bf77 | ||
|
|
b8b42a1fd2 | ||
|
|
fba1b28615 | ||
|
|
98828387e3 | ||
|
|
1c12247b71 | ||
|
|
ee10ebd5d7 | ||
|
|
9937ad6e85 | ||
|
|
60ce393531 | ||
|
|
bc33cad999 | ||
|
|
4261b50d9d | ||
|
|
e2b3141536 | ||
|
|
266aa1b15d | ||
|
|
b57a7475c5 | ||
|
|
8cf48eb5f7 | ||
|
|
35541bbbb9 | ||
|
|
59424a3e73 | ||
|
|
2056888667 | ||
|
|
1e54785742 | ||
|
|
a58ed6f331 | ||
|
|
9a79b71d9f | ||
|
|
e9098887fb | ||
|
|
9e8a3ef7fc | ||
|
|
221585908a | ||
|
|
f4c111f04c | ||
|
|
de12e25450 | ||
|
|
2545ebbece | ||
|
|
14ec6ce43b | ||
|
|
0cac1e65aa | ||
|
|
1e4d57ab83 | ||
|
|
49b42b7e03 | ||
|
|
89c0b5dbdf | ||
|
|
8138675808 | ||
|
|
726129836a | ||
|
|
356b3c85e5 | ||
|
|
1a0680ead9 | ||
|
|
c876d891fa | ||
|
|
a08232f164 | ||
|
|
0f8cf46626 | ||
|
|
95017b5fc8 | ||
|
|
1374d337d8 | ||
|
|
35e7cc685f | ||
|
|
2ac4883bda | ||
|
|
5a7212aebb | ||
|
|
3f39cc2955 | ||
|
|
8a5bfe884a | ||
|
|
046dd53913 | ||
|
|
d2f174635c | ||
|
|
01a760d8f0 | ||
|
|
9215d2c9f9 | ||
|
|
0bb09ae91e | ||
|
|
afeff61268 | ||
|
|
6f5a595975 | ||
|
|
8a69ec062e | ||
|
|
45fb673e49 | ||
|
|
93b5f1809e |
No files matched your search
@@ -25,6 +25,7 @@ jobs:
|
||||
- name: "LBRY Integration Tests"
|
||||
install:
|
||||
- pip install coverage tox-travis
|
||||
- sudo mount -o mode=1777,nosuid,nodev -t tmpfs tmpfs /tmp
|
||||
script: cd lbry && tox
|
||||
after_success:
|
||||
- coverage combine lbry
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# Files and directories created by pub
|
||||
.dart_tool/
|
||||
.packages
|
||||
|
||||
# Conventional directory for build outputs
|
||||
build/
|
||||
|
||||
# Directory created by dartdoc
|
||||
doc/api/
|
||||
@@ -1,3 +0,0 @@
|
||||
## 1.0.0
|
||||
|
||||
- Initial version, created by Stagehand
|
||||
@@ -1 +0,0 @@
|
||||
LBRY SDK in Dart.
|
||||
@@ -1,14 +0,0 @@
|
||||
# Defines a default set of lint rules enforced for
|
||||
# projects at Google. For details and rationale,
|
||||
# see https://github.com/dart-lang/pedantic#enabled-lints.
|
||||
include: package:pedantic/analysis_options.yaml
|
||||
|
||||
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
|
||||
# Uncomment to specify additional rules.
|
||||
# linter:
|
||||
# rules:
|
||||
# - camel_case_types
|
||||
|
||||
analyzer:
|
||||
# exclude:
|
||||
# - path/to/excluded/files/**
|
||||
@@ -1,6 +0,0 @@
|
||||
import 'package:lbry/src/load_generator.dart' as load;
|
||||
//import 'package:lbry/src/server_connection.dart' as load;
|
||||
|
||||
main(List<String> arguments) {
|
||||
load.generate_load();
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
export 'src/load_generator.dart';
|
||||
export 'src/server_connection.dart';
|
||||
@@ -1,153 +0,0 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:convert';
|
||||
|
||||
|
||||
class LoadRequest {
|
||||
final String host;
|
||||
final int port;
|
||||
final Map payload;
|
||||
Completer completer;
|
||||
Stopwatch timer;
|
||||
Socket socket;
|
||||
|
||||
bool get isDone => completer.isCompleted;
|
||||
int get elapsed => timer.elapsedMilliseconds;
|
||||
|
||||
LoadRequest(this.host, this.port, this.payload);
|
||||
|
||||
LoadRequest start() {
|
||||
completer = Completer();
|
||||
timer = Stopwatch()..start();
|
||||
completer.future.whenComplete(() => timer.stop());
|
||||
try {
|
||||
Socket.connect(this.host, this.port).then((socket) {
|
||||
this.socket = socket;
|
||||
utf8.decoder.bind(socket).listen((r) {
|
||||
if (r.contains('"jsonrpc": "2.0", "result": ')) {
|
||||
socket.close();
|
||||
completer.complete();
|
||||
}
|
||||
}, onError: (e) {print(e); completer.complete();});
|
||||
try {
|
||||
socket.write(jsonEncode(payload) + '\n');
|
||||
} catch (exception, stackTrace) {
|
||||
print(exception);
|
||||
print(stackTrace);
|
||||
completer.complete();
|
||||
}
|
||||
}, onError: (e) {print(e);completer.complete();});
|
||||
} catch (exception, stackTrace) {
|
||||
print(exception);
|
||||
print(stackTrace);
|
||||
completer.complete();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
typedef bool LoadTickCallback(ClientLoadGenerator load_generator, ClientLoadDataPoint stats);
|
||||
|
||||
class ClientLoadGenerator {
|
||||
Timer _timer;
|
||||
|
||||
final String host;
|
||||
final int port;
|
||||
final LoadTickCallback tickCallback;
|
||||
int load = 1;
|
||||
Map query;
|
||||
List<LoadRequest> backlog = [];
|
||||
|
||||
ClientLoadGenerator(this.host, this.port, {this.tickCallback, this.query}) {
|
||||
if (query == null) {
|
||||
query = {
|
||||
'id': 1,
|
||||
'method': 'blockchain.claimtrie.resolve',
|
||||
'params': ['one', 'two', 'three']
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
start() {
|
||||
var previous = spawn_requests();
|
||||
backlog = <LoadRequest>[];
|
||||
_timer = Timer.periodic(Duration(seconds: 1), (t) {
|
||||
var stat = ClientLoadDataPoint(t.tick);
|
||||
backlog.removeWhere((r) {
|
||||
if (r.isDone) stat.addCatchup(r);
|
||||
return r.isDone;
|
||||
});
|
||||
for (var f in previous) {
|
||||
if (f.isDone) {
|
||||
stat.addSuccess(f);
|
||||
} else {
|
||||
backlog.add(f);
|
||||
}
|
||||
}
|
||||
stat.backlog = backlog.length;
|
||||
stat.load = load;
|
||||
stat.close();
|
||||
if (tickCallback(this, stat)) {
|
||||
previous = spawn_requests();
|
||||
} else {
|
||||
stop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
stop() {
|
||||
_timer.cancel();
|
||||
for (var remaining in backlog) {
|
||||
remaining?.socket?.close();
|
||||
}
|
||||
}
|
||||
|
||||
List<LoadRequest> spawn_requests() {
|
||||
var requests = <LoadRequest>[];
|
||||
for (var _ in Iterable.generate(load)) {
|
||||
requests.add(LoadRequest(this.host, this.port, this.query).start());
|
||||
}
|
||||
return requests;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ClientLoadDataPoint {
|
||||
final int tick;
|
||||
int success = 0;
|
||||
int errored = 0;
|
||||
int backlog = 0;
|
||||
int catchup = 0;
|
||||
int _success_total = 0;
|
||||
int avg_success = 0;
|
||||
int _catchup_total = 0;
|
||||
int avg_catchup = 0;
|
||||
int load = 0;
|
||||
|
||||
ClientLoadDataPoint(this.tick);
|
||||
ClientLoadDataPoint.empty(): this(0);
|
||||
|
||||
addSuccess(LoadRequest r) {
|
||||
success++; _success_total += r.elapsed;
|
||||
}
|
||||
|
||||
addCatchup(LoadRequest r) {
|
||||
catchup++; _catchup_total += r.elapsed;
|
||||
}
|
||||
|
||||
close() {
|
||||
avg_success = _success_total > 0 ? (_success_total/success).round() : 0;
|
||||
avg_catchup = _catchup_total > 0 ? (_catchup_total/catchup).round() : 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
generate_load() {
|
||||
var runs = 1;
|
||||
ClientLoadGenerator('localhost', 50001, tickCallback: (t, stats) {
|
||||
print("run ${runs}: ${stats.load} load, ${stats.success} success, ${stats.backlog} backlog");
|
||||
t.load = (runs < 4 ? t.load*2 : t.load/2).round();
|
||||
return runs++ < 10;
|
||||
}).start();
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
build:
|
||||
protoc --dart_out=v2 -I ../../../../../../../types/v2/proto/ ../../../../../../../types/v2/proto/*.proto
|
||||
@@ -1,625 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: claim.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
import 'dart:core' as $core show bool, Deprecated, double, int, List, Map, override, pragma, String;
|
||||
|
||||
import 'package:fixnum/fixnum.dart';
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'claim.pbenum.dart';
|
||||
|
||||
export 'claim.pbenum.dart';
|
||||
|
||||
enum Claim_Type {
|
||||
stream,
|
||||
channel,
|
||||
collection,
|
||||
repost,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Claim extends $pb.GeneratedMessage {
|
||||
static const $core.Map<$core.int, Claim_Type> _Claim_TypeByTag = {
|
||||
1 : Claim_Type.stream,
|
||||
2 : Claim_Type.channel,
|
||||
3 : Claim_Type.collection,
|
||||
4 : Claim_Type.repost,
|
||||
0 : Claim_Type.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Claim', package: const $pb.PackageName('pb'))
|
||||
..oo(0, [1, 2, 3, 4])
|
||||
..a<Stream>(1, 'stream', $pb.PbFieldType.OM, Stream.getDefault, Stream.create)
|
||||
..a<Channel>(2, 'channel', $pb.PbFieldType.OM, Channel.getDefault, Channel.create)
|
||||
..a<ClaimList>(3, 'collection', $pb.PbFieldType.OM, ClaimList.getDefault, ClaimList.create)
|
||||
..a<ClaimReference>(4, 'repost', $pb.PbFieldType.OM, ClaimReference.getDefault, ClaimReference.create)
|
||||
..aOS(8, 'title')
|
||||
..aOS(9, 'description')
|
||||
..a<Source>(10, 'thumbnail', $pb.PbFieldType.OM, Source.getDefault, Source.create)
|
||||
..pPS(11, 'tags')
|
||||
..pc<Language>(12, 'languages', $pb.PbFieldType.PM,Language.create)
|
||||
..pc<Location>(13, 'locations', $pb.PbFieldType.PM,Location.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Claim._() : super();
|
||||
factory Claim() => create();
|
||||
factory Claim.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Claim.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Claim clone() => Claim()..mergeFromMessage(this);
|
||||
Claim copyWith(void Function(Claim) updates) => super.copyWith((message) => updates(message as Claim));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Claim create() => Claim._();
|
||||
Claim createEmptyInstance() => create();
|
||||
static $pb.PbList<Claim> createRepeated() => $pb.PbList<Claim>();
|
||||
static Claim getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Claim _defaultInstance;
|
||||
|
||||
Claim_Type whichType() => _Claim_TypeByTag[$_whichOneof(0)];
|
||||
void clearType() => clearField($_whichOneof(0));
|
||||
|
||||
Stream get stream => $_getN(0);
|
||||
set stream(Stream v) { setField(1, v); }
|
||||
$core.bool hasStream() => $_has(0);
|
||||
void clearStream() => clearField(1);
|
||||
|
||||
Channel get channel => $_getN(1);
|
||||
set channel(Channel v) { setField(2, v); }
|
||||
$core.bool hasChannel() => $_has(1);
|
||||
void clearChannel() => clearField(2);
|
||||
|
||||
ClaimList get collection => $_getN(2);
|
||||
set collection(ClaimList v) { setField(3, v); }
|
||||
$core.bool hasCollection() => $_has(2);
|
||||
void clearCollection() => clearField(3);
|
||||
|
||||
ClaimReference get repost => $_getN(3);
|
||||
set repost(ClaimReference v) { setField(4, v); }
|
||||
$core.bool hasRepost() => $_has(3);
|
||||
void clearRepost() => clearField(4);
|
||||
|
||||
$core.String get title => $_getS(4, '');
|
||||
set title($core.String v) { $_setString(4, v); }
|
||||
$core.bool hasTitle() => $_has(4);
|
||||
void clearTitle() => clearField(8);
|
||||
|
||||
$core.String get description => $_getS(5, '');
|
||||
set description($core.String v) { $_setString(5, v); }
|
||||
$core.bool hasDescription() => $_has(5);
|
||||
void clearDescription() => clearField(9);
|
||||
|
||||
Source get thumbnail => $_getN(6);
|
||||
set thumbnail(Source v) { setField(10, v); }
|
||||
$core.bool hasThumbnail() => $_has(6);
|
||||
void clearThumbnail() => clearField(10);
|
||||
|
||||
$core.List<$core.String> get tags => $_getList(7);
|
||||
|
||||
$core.List<Language> get languages => $_getList(8);
|
||||
|
||||
$core.List<Location> get locations => $_getList(9);
|
||||
}
|
||||
|
||||
enum Stream_Type {
|
||||
image,
|
||||
video,
|
||||
audio,
|
||||
software,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Stream extends $pb.GeneratedMessage {
|
||||
static const $core.Map<$core.int, Stream_Type> _Stream_TypeByTag = {
|
||||
10 : Stream_Type.image,
|
||||
11 : Stream_Type.video,
|
||||
12 : Stream_Type.audio,
|
||||
13 : Stream_Type.software,
|
||||
0 : Stream_Type.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Stream', package: const $pb.PackageName('pb'))
|
||||
..oo(0, [10, 11, 12, 13])
|
||||
..a<Source>(1, 'source', $pb.PbFieldType.OM, Source.getDefault, Source.create)
|
||||
..aOS(2, 'author')
|
||||
..aOS(3, 'license')
|
||||
..aOS(4, 'licenseUrl')
|
||||
..aInt64(5, 'releaseTime')
|
||||
..a<Fee>(6, 'fee', $pb.PbFieldType.OM, Fee.getDefault, Fee.create)
|
||||
..a<Image>(10, 'image', $pb.PbFieldType.OM, Image.getDefault, Image.create)
|
||||
..a<Video>(11, 'video', $pb.PbFieldType.OM, Video.getDefault, Video.create)
|
||||
..a<Audio>(12, 'audio', $pb.PbFieldType.OM, Audio.getDefault, Audio.create)
|
||||
..a<Software>(13, 'software', $pb.PbFieldType.OM, Software.getDefault, Software.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Stream._() : super();
|
||||
factory Stream() => create();
|
||||
factory Stream.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Stream.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Stream clone() => Stream()..mergeFromMessage(this);
|
||||
Stream copyWith(void Function(Stream) updates) => super.copyWith((message) => updates(message as Stream));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Stream create() => Stream._();
|
||||
Stream createEmptyInstance() => create();
|
||||
static $pb.PbList<Stream> createRepeated() => $pb.PbList<Stream>();
|
||||
static Stream getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Stream _defaultInstance;
|
||||
|
||||
Stream_Type whichType() => _Stream_TypeByTag[$_whichOneof(0)];
|
||||
void clearType() => clearField($_whichOneof(0));
|
||||
|
||||
Source get source => $_getN(0);
|
||||
set source(Source v) { setField(1, v); }
|
||||
$core.bool hasSource() => $_has(0);
|
||||
void clearSource() => clearField(1);
|
||||
|
||||
$core.String get author => $_getS(1, '');
|
||||
set author($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasAuthor() => $_has(1);
|
||||
void clearAuthor() => clearField(2);
|
||||
|
||||
$core.String get license => $_getS(2, '');
|
||||
set license($core.String v) { $_setString(2, v); }
|
||||
$core.bool hasLicense() => $_has(2);
|
||||
void clearLicense() => clearField(3);
|
||||
|
||||
$core.String get licenseUrl => $_getS(3, '');
|
||||
set licenseUrl($core.String v) { $_setString(3, v); }
|
||||
$core.bool hasLicenseUrl() => $_has(3);
|
||||
void clearLicenseUrl() => clearField(4);
|
||||
|
||||
Int64 get releaseTime => $_getI64(4);
|
||||
set releaseTime(Int64 v) { $_setInt64(4, v); }
|
||||
$core.bool hasReleaseTime() => $_has(4);
|
||||
void clearReleaseTime() => clearField(5);
|
||||
|
||||
Fee get fee => $_getN(5);
|
||||
set fee(Fee v) { setField(6, v); }
|
||||
$core.bool hasFee() => $_has(5);
|
||||
void clearFee() => clearField(6);
|
||||
|
||||
Image get image => $_getN(6);
|
||||
set image(Image v) { setField(10, v); }
|
||||
$core.bool hasImage() => $_has(6);
|
||||
void clearImage() => clearField(10);
|
||||
|
||||
Video get video => $_getN(7);
|
||||
set video(Video v) { setField(11, v); }
|
||||
$core.bool hasVideo() => $_has(7);
|
||||
void clearVideo() => clearField(11);
|
||||
|
||||
Audio get audio => $_getN(8);
|
||||
set audio(Audio v) { setField(12, v); }
|
||||
$core.bool hasAudio() => $_has(8);
|
||||
void clearAudio() => clearField(12);
|
||||
|
||||
Software get software => $_getN(9);
|
||||
set software(Software v) { setField(13, v); }
|
||||
$core.bool hasSoftware() => $_has(9);
|
||||
void clearSoftware() => clearField(13);
|
||||
}
|
||||
|
||||
class Channel extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Channel', package: const $pb.PackageName('pb'))
|
||||
..a<$core.List<$core.int>>(1, 'publicKey', $pb.PbFieldType.OY)
|
||||
..aOS(2, 'email')
|
||||
..aOS(3, 'websiteUrl')
|
||||
..a<Source>(4, 'cover', $pb.PbFieldType.OM, Source.getDefault, Source.create)
|
||||
..a<ClaimList>(5, 'featured', $pb.PbFieldType.OM, ClaimList.getDefault, ClaimList.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Channel._() : super();
|
||||
factory Channel() => create();
|
||||
factory Channel.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Channel.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Channel clone() => Channel()..mergeFromMessage(this);
|
||||
Channel copyWith(void Function(Channel) updates) => super.copyWith((message) => updates(message as Channel));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Channel create() => Channel._();
|
||||
Channel createEmptyInstance() => create();
|
||||
static $pb.PbList<Channel> createRepeated() => $pb.PbList<Channel>();
|
||||
static Channel getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Channel _defaultInstance;
|
||||
|
||||
$core.List<$core.int> get publicKey => $_getN(0);
|
||||
set publicKey($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
$core.bool hasPublicKey() => $_has(0);
|
||||
void clearPublicKey() => clearField(1);
|
||||
|
||||
$core.String get email => $_getS(1, '');
|
||||
set email($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasEmail() => $_has(1);
|
||||
void clearEmail() => clearField(2);
|
||||
|
||||
$core.String get websiteUrl => $_getS(2, '');
|
||||
set websiteUrl($core.String v) { $_setString(2, v); }
|
||||
$core.bool hasWebsiteUrl() => $_has(2);
|
||||
void clearWebsiteUrl() => clearField(3);
|
||||
|
||||
Source get cover => $_getN(3);
|
||||
set cover(Source v) { setField(4, v); }
|
||||
$core.bool hasCover() => $_has(3);
|
||||
void clearCover() => clearField(4);
|
||||
|
||||
ClaimList get featured => $_getN(4);
|
||||
set featured(ClaimList v) { setField(5, v); }
|
||||
$core.bool hasFeatured() => $_has(4);
|
||||
void clearFeatured() => clearField(5);
|
||||
}
|
||||
|
||||
class ClaimReference extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('ClaimReference', package: const $pb.PackageName('pb'))
|
||||
..a<$core.List<$core.int>>(1, 'claimHash', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
ClaimReference._() : super();
|
||||
factory ClaimReference() => create();
|
||||
factory ClaimReference.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory ClaimReference.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
ClaimReference clone() => ClaimReference()..mergeFromMessage(this);
|
||||
ClaimReference copyWith(void Function(ClaimReference) updates) => super.copyWith((message) => updates(message as ClaimReference));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClaimReference create() => ClaimReference._();
|
||||
ClaimReference createEmptyInstance() => create();
|
||||
static $pb.PbList<ClaimReference> createRepeated() => $pb.PbList<ClaimReference>();
|
||||
static ClaimReference getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static ClaimReference _defaultInstance;
|
||||
|
||||
$core.List<$core.int> get claimHash => $_getN(0);
|
||||
set claimHash($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
$core.bool hasClaimHash() => $_has(0);
|
||||
void clearClaimHash() => clearField(1);
|
||||
}
|
||||
|
||||
class ClaimList extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('ClaimList', package: const $pb.PackageName('pb'))
|
||||
..e<ClaimList_ListType>(1, 'listType', $pb.PbFieldType.OE, ClaimList_ListType.COLLECTION, ClaimList_ListType.valueOf, ClaimList_ListType.values)
|
||||
..pc<ClaimReference>(2, 'claimReferences', $pb.PbFieldType.PM,ClaimReference.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
ClaimList._() : super();
|
||||
factory ClaimList() => create();
|
||||
factory ClaimList.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory ClaimList.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
ClaimList clone() => ClaimList()..mergeFromMessage(this);
|
||||
ClaimList copyWith(void Function(ClaimList) updates) => super.copyWith((message) => updates(message as ClaimList));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClaimList create() => ClaimList._();
|
||||
ClaimList createEmptyInstance() => create();
|
||||
static $pb.PbList<ClaimList> createRepeated() => $pb.PbList<ClaimList>();
|
||||
static ClaimList getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static ClaimList _defaultInstance;
|
||||
|
||||
ClaimList_ListType get listType => $_getN(0);
|
||||
set listType(ClaimList_ListType v) { setField(1, v); }
|
||||
$core.bool hasListType() => $_has(0);
|
||||
void clearListType() => clearField(1);
|
||||
|
||||
$core.List<ClaimReference> get claimReferences => $_getList(1);
|
||||
}
|
||||
|
||||
class Source extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Source', package: const $pb.PackageName('pb'))
|
||||
..a<$core.List<$core.int>>(1, 'hash', $pb.PbFieldType.OY)
|
||||
..aOS(2, 'name')
|
||||
..a<Int64>(3, 'size', $pb.PbFieldType.OU6, Int64.ZERO)
|
||||
..aOS(4, 'mediaType')
|
||||
..aOS(5, 'url')
|
||||
..a<$core.List<$core.int>>(6, 'sdHash', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Source._() : super();
|
||||
factory Source() => create();
|
||||
factory Source.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Source.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Source clone() => Source()..mergeFromMessage(this);
|
||||
Source copyWith(void Function(Source) updates) => super.copyWith((message) => updates(message as Source));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Source create() => Source._();
|
||||
Source createEmptyInstance() => create();
|
||||
static $pb.PbList<Source> createRepeated() => $pb.PbList<Source>();
|
||||
static Source getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Source _defaultInstance;
|
||||
|
||||
$core.List<$core.int> get hash => $_getN(0);
|
||||
set hash($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
$core.bool hasHash() => $_has(0);
|
||||
void clearHash() => clearField(1);
|
||||
|
||||
$core.String get name => $_getS(1, '');
|
||||
set name($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasName() => $_has(1);
|
||||
void clearName() => clearField(2);
|
||||
|
||||
Int64 get size => $_getI64(2);
|
||||
set size(Int64 v) { $_setInt64(2, v); }
|
||||
$core.bool hasSize() => $_has(2);
|
||||
void clearSize() => clearField(3);
|
||||
|
||||
$core.String get mediaType => $_getS(3, '');
|
||||
set mediaType($core.String v) { $_setString(3, v); }
|
||||
$core.bool hasMediaType() => $_has(3);
|
||||
void clearMediaType() => clearField(4);
|
||||
|
||||
$core.String get url => $_getS(4, '');
|
||||
set url($core.String v) { $_setString(4, v); }
|
||||
$core.bool hasUrl() => $_has(4);
|
||||
void clearUrl() => clearField(5);
|
||||
|
||||
$core.List<$core.int> get sdHash => $_getN(5);
|
||||
set sdHash($core.List<$core.int> v) { $_setBytes(5, v); }
|
||||
$core.bool hasSdHash() => $_has(5);
|
||||
void clearSdHash() => clearField(6);
|
||||
}
|
||||
|
||||
class Fee extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Fee', package: const $pb.PackageName('pb'))
|
||||
..e<Fee_Currency>(1, 'currency', $pb.PbFieldType.OE, Fee_Currency.UNKNOWN_CURRENCY, Fee_Currency.valueOf, Fee_Currency.values)
|
||||
..a<$core.List<$core.int>>(2, 'address', $pb.PbFieldType.OY)
|
||||
..a<Int64>(3, 'amount', $pb.PbFieldType.OU6, Int64.ZERO)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Fee._() : super();
|
||||
factory Fee() => create();
|
||||
factory Fee.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Fee.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Fee clone() => Fee()..mergeFromMessage(this);
|
||||
Fee copyWith(void Function(Fee) updates) => super.copyWith((message) => updates(message as Fee));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Fee create() => Fee._();
|
||||
Fee createEmptyInstance() => create();
|
||||
static $pb.PbList<Fee> createRepeated() => $pb.PbList<Fee>();
|
||||
static Fee getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Fee _defaultInstance;
|
||||
|
||||
Fee_Currency get currency => $_getN(0);
|
||||
set currency(Fee_Currency v) { setField(1, v); }
|
||||
$core.bool hasCurrency() => $_has(0);
|
||||
void clearCurrency() => clearField(1);
|
||||
|
||||
$core.List<$core.int> get address => $_getN(1);
|
||||
set address($core.List<$core.int> v) { $_setBytes(1, v); }
|
||||
$core.bool hasAddress() => $_has(1);
|
||||
void clearAddress() => clearField(2);
|
||||
|
||||
Int64 get amount => $_getI64(2);
|
||||
set amount(Int64 v) { $_setInt64(2, v); }
|
||||
$core.bool hasAmount() => $_has(2);
|
||||
void clearAmount() => clearField(3);
|
||||
}
|
||||
|
||||
class Image extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Image', package: const $pb.PackageName('pb'))
|
||||
..a<$core.int>(1, 'width', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(2, 'height', $pb.PbFieldType.OU3)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Image._() : super();
|
||||
factory Image() => create();
|
||||
factory Image.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Image.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Image clone() => Image()..mergeFromMessage(this);
|
||||
Image copyWith(void Function(Image) updates) => super.copyWith((message) => updates(message as Image));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Image create() => Image._();
|
||||
Image createEmptyInstance() => create();
|
||||
static $pb.PbList<Image> createRepeated() => $pb.PbList<Image>();
|
||||
static Image getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Image _defaultInstance;
|
||||
|
||||
$core.int get width => $_get(0, 0);
|
||||
set width($core.int v) { $_setUnsignedInt32(0, v); }
|
||||
$core.bool hasWidth() => $_has(0);
|
||||
void clearWidth() => clearField(1);
|
||||
|
||||
$core.int get height => $_get(1, 0);
|
||||
set height($core.int v) { $_setUnsignedInt32(1, v); }
|
||||
$core.bool hasHeight() => $_has(1);
|
||||
void clearHeight() => clearField(2);
|
||||
}
|
||||
|
||||
class Video extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Video', package: const $pb.PackageName('pb'))
|
||||
..a<$core.int>(1, 'width', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(2, 'height', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(3, 'duration', $pb.PbFieldType.OU3)
|
||||
..a<Audio>(15, 'audio', $pb.PbFieldType.OM, Audio.getDefault, Audio.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Video._() : super();
|
||||
factory Video() => create();
|
||||
factory Video.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Video.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Video clone() => Video()..mergeFromMessage(this);
|
||||
Video copyWith(void Function(Video) updates) => super.copyWith((message) => updates(message as Video));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Video create() => Video._();
|
||||
Video createEmptyInstance() => create();
|
||||
static $pb.PbList<Video> createRepeated() => $pb.PbList<Video>();
|
||||
static Video getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Video _defaultInstance;
|
||||
|
||||
$core.int get width => $_get(0, 0);
|
||||
set width($core.int v) { $_setUnsignedInt32(0, v); }
|
||||
$core.bool hasWidth() => $_has(0);
|
||||
void clearWidth() => clearField(1);
|
||||
|
||||
$core.int get height => $_get(1, 0);
|
||||
set height($core.int v) { $_setUnsignedInt32(1, v); }
|
||||
$core.bool hasHeight() => $_has(1);
|
||||
void clearHeight() => clearField(2);
|
||||
|
||||
$core.int get duration => $_get(2, 0);
|
||||
set duration($core.int v) { $_setUnsignedInt32(2, v); }
|
||||
$core.bool hasDuration() => $_has(2);
|
||||
void clearDuration() => clearField(3);
|
||||
|
||||
Audio get audio => $_getN(3);
|
||||
set audio(Audio v) { setField(15, v); }
|
||||
$core.bool hasAudio() => $_has(3);
|
||||
void clearAudio() => clearField(15);
|
||||
}
|
||||
|
||||
class Audio extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Audio', package: const $pb.PackageName('pb'))
|
||||
..a<$core.int>(1, 'duration', $pb.PbFieldType.OU3)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Audio._() : super();
|
||||
factory Audio() => create();
|
||||
factory Audio.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Audio.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Audio clone() => Audio()..mergeFromMessage(this);
|
||||
Audio copyWith(void Function(Audio) updates) => super.copyWith((message) => updates(message as Audio));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Audio create() => Audio._();
|
||||
Audio createEmptyInstance() => create();
|
||||
static $pb.PbList<Audio> createRepeated() => $pb.PbList<Audio>();
|
||||
static Audio getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Audio _defaultInstance;
|
||||
|
||||
$core.int get duration => $_get(0, 0);
|
||||
set duration($core.int v) { $_setUnsignedInt32(0, v); }
|
||||
$core.bool hasDuration() => $_has(0);
|
||||
void clearDuration() => clearField(1);
|
||||
}
|
||||
|
||||
class Software extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Software', package: const $pb.PackageName('pb'))
|
||||
..aOS(1, 'os')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Software._() : super();
|
||||
factory Software() => create();
|
||||
factory Software.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Software.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Software clone() => Software()..mergeFromMessage(this);
|
||||
Software copyWith(void Function(Software) updates) => super.copyWith((message) => updates(message as Software));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Software create() => Software._();
|
||||
Software createEmptyInstance() => create();
|
||||
static $pb.PbList<Software> createRepeated() => $pb.PbList<Software>();
|
||||
static Software getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Software _defaultInstance;
|
||||
|
||||
$core.String get os => $_getS(0, '');
|
||||
set os($core.String v) { $_setString(0, v); }
|
||||
$core.bool hasOs() => $_has(0);
|
||||
void clearOs() => clearField(1);
|
||||
}
|
||||
|
||||
class Language extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Language', package: const $pb.PackageName('pb'))
|
||||
..e<Language_Language>(1, 'language', $pb.PbFieldType.OE, Language_Language.UNKNOWN_LANGUAGE, Language_Language.valueOf, Language_Language.values)
|
||||
..e<Language_Script>(2, 'script', $pb.PbFieldType.OE, Language_Script.UNKNOWN_SCRIPT, Language_Script.valueOf, Language_Script.values)
|
||||
..e<Location_Country>(3, 'region', $pb.PbFieldType.OE, Location_Country.UNKNOWN_COUNTRY, Location_Country.valueOf, Location_Country.values)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Language._() : super();
|
||||
factory Language() => create();
|
||||
factory Language.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Language.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Language clone() => Language()..mergeFromMessage(this);
|
||||
Language copyWith(void Function(Language) updates) => super.copyWith((message) => updates(message as Language));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Language create() => Language._();
|
||||
Language createEmptyInstance() => create();
|
||||
static $pb.PbList<Language> createRepeated() => $pb.PbList<Language>();
|
||||
static Language getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Language _defaultInstance;
|
||||
|
||||
Language_Language get language => $_getN(0);
|
||||
set language(Language_Language v) { setField(1, v); }
|
||||
$core.bool hasLanguage() => $_has(0);
|
||||
void clearLanguage() => clearField(1);
|
||||
|
||||
Language_Script get script => $_getN(1);
|
||||
set script(Language_Script v) { setField(2, v); }
|
||||
$core.bool hasScript() => $_has(1);
|
||||
void clearScript() => clearField(2);
|
||||
|
||||
Location_Country get region => $_getN(2);
|
||||
set region(Location_Country v) { setField(3, v); }
|
||||
$core.bool hasRegion() => $_has(2);
|
||||
void clearRegion() => clearField(3);
|
||||
}
|
||||
|
||||
class Location extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Location', package: const $pb.PackageName('pb'))
|
||||
..e<Location_Country>(1, 'country', $pb.PbFieldType.OE, Location_Country.UNKNOWN_COUNTRY, Location_Country.valueOf, Location_Country.values)
|
||||
..aOS(2, 'state')
|
||||
..aOS(3, 'city')
|
||||
..aOS(4, 'code')
|
||||
..a<$core.int>(5, 'latitude', $pb.PbFieldType.OS3)
|
||||
..a<$core.int>(6, 'longitude', $pb.PbFieldType.OS3)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Location._() : super();
|
||||
factory Location() => create();
|
||||
factory Location.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Location.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Location clone() => Location()..mergeFromMessage(this);
|
||||
Location copyWith(void Function(Location) updates) => super.copyWith((message) => updates(message as Location));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Location create() => Location._();
|
||||
Location createEmptyInstance() => create();
|
||||
static $pb.PbList<Location> createRepeated() => $pb.PbList<Location>();
|
||||
static Location getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Location _defaultInstance;
|
||||
|
||||
Location_Country get country => $_getN(0);
|
||||
set country(Location_Country v) { setField(1, v); }
|
||||
$core.bool hasCountry() => $_has(0);
|
||||
void clearCountry() => clearField(1);
|
||||
|
||||
$core.String get state => $_getS(1, '');
|
||||
set state($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasState() => $_has(1);
|
||||
void clearState() => clearField(2);
|
||||
|
||||
$core.String get city => $_getS(2, '');
|
||||
set city($core.String v) { $_setString(2, v); }
|
||||
$core.bool hasCity() => $_has(2);
|
||||
void clearCity() => clearField(3);
|
||||
|
||||
$core.String get code => $_getS(3, '');
|
||||
set code($core.String v) { $_setString(3, v); }
|
||||
$core.bool hasCode() => $_has(3);
|
||||
void clearCode() => clearField(4);
|
||||
|
||||
$core.int get latitude => $_get(4, 0);
|
||||
set latitude($core.int v) { $_setSignedInt32(4, v); }
|
||||
$core.bool hasLatitude() => $_has(4);
|
||||
void clearLatitude() => clearField(5);
|
||||
|
||||
$core.int get longitude => $_get(5, 0);
|
||||
set longitude($core.int v) { $_setSignedInt32(5, v); }
|
||||
$core.bool hasLongitude() => $_has(5);
|
||||
void clearLongitude() => clearField(6);
|
||||
}
|
||||
|
||||
@@ -1,833 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: claim.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
const Claim$json = const {
|
||||
'1': 'Claim',
|
||||
'2': const [
|
||||
const {'1': 'stream', '3': 1, '4': 1, '5': 11, '6': '.pb.Stream', '9': 0, '10': 'stream'},
|
||||
const {'1': 'channel', '3': 2, '4': 1, '5': 11, '6': '.pb.Channel', '9': 0, '10': 'channel'},
|
||||
const {'1': 'collection', '3': 3, '4': 1, '5': 11, '6': '.pb.ClaimList', '9': 0, '10': 'collection'},
|
||||
const {'1': 'repost', '3': 4, '4': 1, '5': 11, '6': '.pb.ClaimReference', '9': 0, '10': 'repost'},
|
||||
const {'1': 'title', '3': 8, '4': 1, '5': 9, '10': 'title'},
|
||||
const {'1': 'description', '3': 9, '4': 1, '5': 9, '10': 'description'},
|
||||
const {'1': 'thumbnail', '3': 10, '4': 1, '5': 11, '6': '.pb.Source', '10': 'thumbnail'},
|
||||
const {'1': 'tags', '3': 11, '4': 3, '5': 9, '10': 'tags'},
|
||||
const {'1': 'languages', '3': 12, '4': 3, '5': 11, '6': '.pb.Language', '10': 'languages'},
|
||||
const {'1': 'locations', '3': 13, '4': 3, '5': 11, '6': '.pb.Location', '10': 'locations'},
|
||||
],
|
||||
'8': const [
|
||||
const {'1': 'type'},
|
||||
],
|
||||
};
|
||||
|
||||
const Stream$json = const {
|
||||
'1': 'Stream',
|
||||
'2': const [
|
||||
const {'1': 'source', '3': 1, '4': 1, '5': 11, '6': '.pb.Source', '10': 'source'},
|
||||
const {'1': 'author', '3': 2, '4': 1, '5': 9, '10': 'author'},
|
||||
const {'1': 'license', '3': 3, '4': 1, '5': 9, '10': 'license'},
|
||||
const {'1': 'license_url', '3': 4, '4': 1, '5': 9, '10': 'licenseUrl'},
|
||||
const {'1': 'release_time', '3': 5, '4': 1, '5': 3, '10': 'releaseTime'},
|
||||
const {'1': 'fee', '3': 6, '4': 1, '5': 11, '6': '.pb.Fee', '10': 'fee'},
|
||||
const {'1': 'image', '3': 10, '4': 1, '5': 11, '6': '.pb.Image', '9': 0, '10': 'image'},
|
||||
const {'1': 'video', '3': 11, '4': 1, '5': 11, '6': '.pb.Video', '9': 0, '10': 'video'},
|
||||
const {'1': 'audio', '3': 12, '4': 1, '5': 11, '6': '.pb.Audio', '9': 0, '10': 'audio'},
|
||||
const {'1': 'software', '3': 13, '4': 1, '5': 11, '6': '.pb.Software', '9': 0, '10': 'software'},
|
||||
],
|
||||
'8': const [
|
||||
const {'1': 'type'},
|
||||
],
|
||||
};
|
||||
|
||||
const Channel$json = const {
|
||||
'1': 'Channel',
|
||||
'2': const [
|
||||
const {'1': 'public_key', '3': 1, '4': 1, '5': 12, '10': 'publicKey'},
|
||||
const {'1': 'email', '3': 2, '4': 1, '5': 9, '10': 'email'},
|
||||
const {'1': 'website_url', '3': 3, '4': 1, '5': 9, '10': 'websiteUrl'},
|
||||
const {'1': 'cover', '3': 4, '4': 1, '5': 11, '6': '.pb.Source', '10': 'cover'},
|
||||
const {'1': 'featured', '3': 5, '4': 1, '5': 11, '6': '.pb.ClaimList', '10': 'featured'},
|
||||
],
|
||||
};
|
||||
|
||||
const ClaimReference$json = const {
|
||||
'1': 'ClaimReference',
|
||||
'2': const [
|
||||
const {'1': 'claim_hash', '3': 1, '4': 1, '5': 12, '10': 'claimHash'},
|
||||
],
|
||||
};
|
||||
|
||||
const ClaimList$json = const {
|
||||
'1': 'ClaimList',
|
||||
'2': const [
|
||||
const {'1': 'list_type', '3': 1, '4': 1, '5': 14, '6': '.pb.ClaimList.ListType', '10': 'listType'},
|
||||
const {'1': 'claim_references', '3': 2, '4': 3, '5': 11, '6': '.pb.ClaimReference', '10': 'claimReferences'},
|
||||
],
|
||||
'4': const [ClaimList_ListType$json],
|
||||
};
|
||||
|
||||
const ClaimList_ListType$json = const {
|
||||
'1': 'ListType',
|
||||
'2': const [
|
||||
const {'1': 'COLLECTION', '2': 0},
|
||||
const {'1': 'DERIVATION', '2': 2},
|
||||
],
|
||||
};
|
||||
|
||||
const Source$json = const {
|
||||
'1': 'Source',
|
||||
'2': const [
|
||||
const {'1': 'hash', '3': 1, '4': 1, '5': 12, '10': 'hash'},
|
||||
const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},
|
||||
const {'1': 'size', '3': 3, '4': 1, '5': 4, '10': 'size'},
|
||||
const {'1': 'media_type', '3': 4, '4': 1, '5': 9, '10': 'mediaType'},
|
||||
const {'1': 'url', '3': 5, '4': 1, '5': 9, '10': 'url'},
|
||||
const {'1': 'sd_hash', '3': 6, '4': 1, '5': 12, '10': 'sdHash'},
|
||||
],
|
||||
};
|
||||
|
||||
const Fee$json = const {
|
||||
'1': 'Fee',
|
||||
'2': const [
|
||||
const {'1': 'currency', '3': 1, '4': 1, '5': 14, '6': '.pb.Fee.Currency', '10': 'currency'},
|
||||
const {'1': 'address', '3': 2, '4': 1, '5': 12, '10': 'address'},
|
||||
const {'1': 'amount', '3': 3, '4': 1, '5': 4, '10': 'amount'},
|
||||
],
|
||||
'4': const [Fee_Currency$json],
|
||||
};
|
||||
|
||||
const Fee_Currency$json = const {
|
||||
'1': 'Currency',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_CURRENCY', '2': 0},
|
||||
const {'1': 'LBC', '2': 1},
|
||||
const {'1': 'BTC', '2': 2},
|
||||
const {'1': 'USD', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
const Image$json = const {
|
||||
'1': 'Image',
|
||||
'2': const [
|
||||
const {'1': 'width', '3': 1, '4': 1, '5': 13, '10': 'width'},
|
||||
const {'1': 'height', '3': 2, '4': 1, '5': 13, '10': 'height'},
|
||||
],
|
||||
};
|
||||
|
||||
const Video$json = const {
|
||||
'1': 'Video',
|
||||
'2': const [
|
||||
const {'1': 'width', '3': 1, '4': 1, '5': 13, '10': 'width'},
|
||||
const {'1': 'height', '3': 2, '4': 1, '5': 13, '10': 'height'},
|
||||
const {'1': 'duration', '3': 3, '4': 1, '5': 13, '10': 'duration'},
|
||||
const {'1': 'audio', '3': 15, '4': 1, '5': 11, '6': '.pb.Audio', '10': 'audio'},
|
||||
],
|
||||
};
|
||||
|
||||
const Audio$json = const {
|
||||
'1': 'Audio',
|
||||
'2': const [
|
||||
const {'1': 'duration', '3': 1, '4': 1, '5': 13, '10': 'duration'},
|
||||
],
|
||||
};
|
||||
|
||||
const Software$json = const {
|
||||
'1': 'Software',
|
||||
'2': const [
|
||||
const {'1': 'os', '3': 1, '4': 1, '5': 9, '10': 'os'},
|
||||
],
|
||||
'4': const [Software_OS$json],
|
||||
};
|
||||
|
||||
const Software_OS$json = const {
|
||||
'1': 'OS',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_OS', '2': 0},
|
||||
const {'1': 'ANY', '2': 1},
|
||||
const {'1': 'LINUX', '2': 2},
|
||||
const {'1': 'WINDOWS', '2': 3},
|
||||
const {'1': 'MAC', '2': 4},
|
||||
const {'1': 'ANDROID', '2': 5},
|
||||
const {'1': 'IOS', '2': 6},
|
||||
],
|
||||
};
|
||||
|
||||
const Language$json = const {
|
||||
'1': 'Language',
|
||||
'2': const [
|
||||
const {'1': 'language', '3': 1, '4': 1, '5': 14, '6': '.pb.Language.Language', '10': 'language'},
|
||||
const {'1': 'script', '3': 2, '4': 1, '5': 14, '6': '.pb.Language.Script', '10': 'script'},
|
||||
const {'1': 'region', '3': 3, '4': 1, '5': 14, '6': '.pb.Location.Country', '10': 'region'},
|
||||
],
|
||||
'4': const [Language_Language$json, Language_Script$json],
|
||||
};
|
||||
|
||||
const Language_Language$json = const {
|
||||
'1': 'Language',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_LANGUAGE', '2': 0},
|
||||
const {'1': 'en', '2': 1},
|
||||
const {'1': 'aa', '2': 2},
|
||||
const {'1': 'ab', '2': 3},
|
||||
const {'1': 'ae', '2': 4},
|
||||
const {'1': 'af', '2': 5},
|
||||
const {'1': 'ak', '2': 6},
|
||||
const {'1': 'am', '2': 7},
|
||||
const {'1': 'an', '2': 8},
|
||||
const {'1': 'ar', '2': 9},
|
||||
const {'1': 'as', '2': 10},
|
||||
const {'1': 'av', '2': 11},
|
||||
const {'1': 'ay', '2': 12},
|
||||
const {'1': 'az', '2': 13},
|
||||
const {'1': 'ba', '2': 14},
|
||||
const {'1': 'be', '2': 15},
|
||||
const {'1': 'bg', '2': 16},
|
||||
const {'1': 'bh', '2': 17},
|
||||
const {'1': 'bi', '2': 18},
|
||||
const {'1': 'bm', '2': 19},
|
||||
const {'1': 'bn', '2': 20},
|
||||
const {'1': 'bo', '2': 21},
|
||||
const {'1': 'br', '2': 22},
|
||||
const {'1': 'bs', '2': 23},
|
||||
const {'1': 'ca', '2': 24},
|
||||
const {'1': 'ce', '2': 25},
|
||||
const {'1': 'ch', '2': 26},
|
||||
const {'1': 'co', '2': 27},
|
||||
const {'1': 'cr', '2': 28},
|
||||
const {'1': 'cs', '2': 29},
|
||||
const {'1': 'cu', '2': 30},
|
||||
const {'1': 'cv', '2': 31},
|
||||
const {'1': 'cy', '2': 32},
|
||||
const {'1': 'da', '2': 33},
|
||||
const {'1': 'de', '2': 34},
|
||||
const {'1': 'dv', '2': 35},
|
||||
const {'1': 'dz', '2': 36},
|
||||
const {'1': 'ee', '2': 37},
|
||||
const {'1': 'el', '2': 38},
|
||||
const {'1': 'eo', '2': 39},
|
||||
const {'1': 'es', '2': 40},
|
||||
const {'1': 'et', '2': 41},
|
||||
const {'1': 'eu', '2': 42},
|
||||
const {'1': 'fa', '2': 43},
|
||||
const {'1': 'ff', '2': 44},
|
||||
const {'1': 'fi', '2': 45},
|
||||
const {'1': 'fj', '2': 46},
|
||||
const {'1': 'fo', '2': 47},
|
||||
const {'1': 'fr', '2': 48},
|
||||
const {'1': 'fy', '2': 49},
|
||||
const {'1': 'ga', '2': 50},
|
||||
const {'1': 'gd', '2': 51},
|
||||
const {'1': 'gl', '2': 52},
|
||||
const {'1': 'gn', '2': 53},
|
||||
const {'1': 'gu', '2': 54},
|
||||
const {'1': 'gv', '2': 55},
|
||||
const {'1': 'ha', '2': 56},
|
||||
const {'1': 'he', '2': 57},
|
||||
const {'1': 'hi', '2': 58},
|
||||
const {'1': 'ho', '2': 59},
|
||||
const {'1': 'hr', '2': 60},
|
||||
const {'1': 'ht', '2': 61},
|
||||
const {'1': 'hu', '2': 62},
|
||||
const {'1': 'hy', '2': 63},
|
||||
const {'1': 'hz', '2': 64},
|
||||
const {'1': 'ia', '2': 65},
|
||||
const {'1': 'id', '2': 66},
|
||||
const {'1': 'ie', '2': 67},
|
||||
const {'1': 'ig', '2': 68},
|
||||
const {'1': 'ii', '2': 69},
|
||||
const {'1': 'ik', '2': 70},
|
||||
const {'1': 'io', '2': 71},
|
||||
const {'1': 'is', '2': 72},
|
||||
const {'1': 'it', '2': 73},
|
||||
const {'1': 'iu', '2': 74},
|
||||
const {'1': 'ja', '2': 75},
|
||||
const {'1': 'jv', '2': 76},
|
||||
const {'1': 'ka', '2': 77},
|
||||
const {'1': 'kg', '2': 78},
|
||||
const {'1': 'ki', '2': 79},
|
||||
const {'1': 'kj', '2': 80},
|
||||
const {'1': 'kk', '2': 81},
|
||||
const {'1': 'kl', '2': 82},
|
||||
const {'1': 'km', '2': 83},
|
||||
const {'1': 'kn', '2': 84},
|
||||
const {'1': 'ko', '2': 85},
|
||||
const {'1': 'kr', '2': 86},
|
||||
const {'1': 'ks', '2': 87},
|
||||
const {'1': 'ku', '2': 88},
|
||||
const {'1': 'kv', '2': 89},
|
||||
const {'1': 'kw', '2': 90},
|
||||
const {'1': 'ky', '2': 91},
|
||||
const {'1': 'la', '2': 92},
|
||||
const {'1': 'lb', '2': 93},
|
||||
const {'1': 'lg', '2': 94},
|
||||
const {'1': 'li', '2': 95},
|
||||
const {'1': 'ln', '2': 96},
|
||||
const {'1': 'lo', '2': 97},
|
||||
const {'1': 'lt', '2': 98},
|
||||
const {'1': 'lu', '2': 99},
|
||||
const {'1': 'lv', '2': 100},
|
||||
const {'1': 'mg', '2': 101},
|
||||
const {'1': 'mh', '2': 102},
|
||||
const {'1': 'mi', '2': 103},
|
||||
const {'1': 'mk', '2': 104},
|
||||
const {'1': 'ml', '2': 105},
|
||||
const {'1': 'mn', '2': 106},
|
||||
const {'1': 'mr', '2': 107},
|
||||
const {'1': 'ms', '2': 108},
|
||||
const {'1': 'mt', '2': 109},
|
||||
const {'1': 'my', '2': 110},
|
||||
const {'1': 'na', '2': 111},
|
||||
const {'1': 'nb', '2': 112},
|
||||
const {'1': 'nd', '2': 113},
|
||||
const {'1': 'ne', '2': 114},
|
||||
const {'1': 'ng', '2': 115},
|
||||
const {'1': 'nl', '2': 116},
|
||||
const {'1': 'nn', '2': 117},
|
||||
const {'1': 'no', '2': 118},
|
||||
const {'1': 'nr', '2': 119},
|
||||
const {'1': 'nv', '2': 120},
|
||||
const {'1': 'ny', '2': 121},
|
||||
const {'1': 'oc', '2': 122},
|
||||
const {'1': 'oj', '2': 123},
|
||||
const {'1': 'om', '2': 124},
|
||||
const {'1': 'or', '2': 125},
|
||||
const {'1': 'os', '2': 126},
|
||||
const {'1': 'pa', '2': 127},
|
||||
const {'1': 'pi', '2': 128},
|
||||
const {'1': 'pl', '2': 129},
|
||||
const {'1': 'ps', '2': 130},
|
||||
const {'1': 'pt', '2': 131},
|
||||
const {'1': 'qu', '2': 132},
|
||||
const {'1': 'rm', '2': 133},
|
||||
const {'1': 'rn', '2': 134},
|
||||
const {'1': 'ro', '2': 135},
|
||||
const {'1': 'ru', '2': 136},
|
||||
const {'1': 'rw', '2': 137},
|
||||
const {'1': 'sa', '2': 138},
|
||||
const {'1': 'sc', '2': 139},
|
||||
const {'1': 'sd', '2': 140},
|
||||
const {'1': 'se', '2': 141},
|
||||
const {'1': 'sg', '2': 142},
|
||||
const {'1': 'si', '2': 143},
|
||||
const {'1': 'sk', '2': 144},
|
||||
const {'1': 'sl', '2': 145},
|
||||
const {'1': 'sm', '2': 146},
|
||||
const {'1': 'sn', '2': 147},
|
||||
const {'1': 'so', '2': 148},
|
||||
const {'1': 'sq', '2': 149},
|
||||
const {'1': 'sr', '2': 150},
|
||||
const {'1': 'ss', '2': 151},
|
||||
const {'1': 'st', '2': 152},
|
||||
const {'1': 'su', '2': 153},
|
||||
const {'1': 'sv', '2': 154},
|
||||
const {'1': 'sw', '2': 155},
|
||||
const {'1': 'ta', '2': 156},
|
||||
const {'1': 'te', '2': 157},
|
||||
const {'1': 'tg', '2': 158},
|
||||
const {'1': 'th', '2': 159},
|
||||
const {'1': 'ti', '2': 160},
|
||||
const {'1': 'tk', '2': 161},
|
||||
const {'1': 'tl', '2': 162},
|
||||
const {'1': 'tn', '2': 163},
|
||||
const {'1': 'to', '2': 164},
|
||||
const {'1': 'tr', '2': 165},
|
||||
const {'1': 'ts', '2': 166},
|
||||
const {'1': 'tt', '2': 167},
|
||||
const {'1': 'tw', '2': 168},
|
||||
const {'1': 'ty', '2': 169},
|
||||
const {'1': 'ug', '2': 170},
|
||||
const {'1': 'uk', '2': 171},
|
||||
const {'1': 'ur', '2': 172},
|
||||
const {'1': 'uz', '2': 173},
|
||||
const {'1': 've', '2': 174},
|
||||
const {'1': 'vi', '2': 175},
|
||||
const {'1': 'vo', '2': 176},
|
||||
const {'1': 'wa', '2': 177},
|
||||
const {'1': 'wo', '2': 178},
|
||||
const {'1': 'xh', '2': 179},
|
||||
const {'1': 'yi', '2': 180},
|
||||
const {'1': 'yo', '2': 181},
|
||||
const {'1': 'za', '2': 182},
|
||||
const {'1': 'zh', '2': 183},
|
||||
const {'1': 'zu', '2': 184},
|
||||
],
|
||||
};
|
||||
|
||||
const Language_Script$json = const {
|
||||
'1': 'Script',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_SCRIPT', '2': 0},
|
||||
const {'1': 'Adlm', '2': 1},
|
||||
const {'1': 'Afak', '2': 2},
|
||||
const {'1': 'Aghb', '2': 3},
|
||||
const {'1': 'Ahom', '2': 4},
|
||||
const {'1': 'Arab', '2': 5},
|
||||
const {'1': 'Aran', '2': 6},
|
||||
const {'1': 'Armi', '2': 7},
|
||||
const {'1': 'Armn', '2': 8},
|
||||
const {'1': 'Avst', '2': 9},
|
||||
const {'1': 'Bali', '2': 10},
|
||||
const {'1': 'Bamu', '2': 11},
|
||||
const {'1': 'Bass', '2': 12},
|
||||
const {'1': 'Batk', '2': 13},
|
||||
const {'1': 'Beng', '2': 14},
|
||||
const {'1': 'Bhks', '2': 15},
|
||||
const {'1': 'Blis', '2': 16},
|
||||
const {'1': 'Bopo', '2': 17},
|
||||
const {'1': 'Brah', '2': 18},
|
||||
const {'1': 'Brai', '2': 19},
|
||||
const {'1': 'Bugi', '2': 20},
|
||||
const {'1': 'Buhd', '2': 21},
|
||||
const {'1': 'Cakm', '2': 22},
|
||||
const {'1': 'Cans', '2': 23},
|
||||
const {'1': 'Cari', '2': 24},
|
||||
const {'1': 'Cham', '2': 25},
|
||||
const {'1': 'Cher', '2': 26},
|
||||
const {'1': 'Cirt', '2': 27},
|
||||
const {'1': 'Copt', '2': 28},
|
||||
const {'1': 'Cpmn', '2': 29},
|
||||
const {'1': 'Cprt', '2': 30},
|
||||
const {'1': 'Cyrl', '2': 31},
|
||||
const {'1': 'Cyrs', '2': 32},
|
||||
const {'1': 'Deva', '2': 33},
|
||||
const {'1': 'Dogr', '2': 34},
|
||||
const {'1': 'Dsrt', '2': 35},
|
||||
const {'1': 'Dupl', '2': 36},
|
||||
const {'1': 'Egyd', '2': 37},
|
||||
const {'1': 'Egyh', '2': 38},
|
||||
const {'1': 'Egyp', '2': 39},
|
||||
const {'1': 'Elba', '2': 40},
|
||||
const {'1': 'Elym', '2': 41},
|
||||
const {'1': 'Ethi', '2': 42},
|
||||
const {'1': 'Geok', '2': 43},
|
||||
const {'1': 'Geor', '2': 44},
|
||||
const {'1': 'Glag', '2': 45},
|
||||
const {'1': 'Gong', '2': 46},
|
||||
const {'1': 'Gonm', '2': 47},
|
||||
const {'1': 'Goth', '2': 48},
|
||||
const {'1': 'Gran', '2': 49},
|
||||
const {'1': 'Grek', '2': 50},
|
||||
const {'1': 'Gujr', '2': 51},
|
||||
const {'1': 'Guru', '2': 52},
|
||||
const {'1': 'Hanb', '2': 53},
|
||||
const {'1': 'Hang', '2': 54},
|
||||
const {'1': 'Hani', '2': 55},
|
||||
const {'1': 'Hano', '2': 56},
|
||||
const {'1': 'Hans', '2': 57},
|
||||
const {'1': 'Hant', '2': 58},
|
||||
const {'1': 'Hatr', '2': 59},
|
||||
const {'1': 'Hebr', '2': 60},
|
||||
const {'1': 'Hira', '2': 61},
|
||||
const {'1': 'Hluw', '2': 62},
|
||||
const {'1': 'Hmng', '2': 63},
|
||||
const {'1': 'Hmnp', '2': 64},
|
||||
const {'1': 'Hrkt', '2': 65},
|
||||
const {'1': 'Hung', '2': 66},
|
||||
const {'1': 'Inds', '2': 67},
|
||||
const {'1': 'Ital', '2': 68},
|
||||
const {'1': 'Jamo', '2': 69},
|
||||
const {'1': 'Java', '2': 70},
|
||||
const {'1': 'Jpan', '2': 71},
|
||||
const {'1': 'Jurc', '2': 72},
|
||||
const {'1': 'Kali', '2': 73},
|
||||
const {'1': 'Kana', '2': 74},
|
||||
const {'1': 'Khar', '2': 75},
|
||||
const {'1': 'Khmr', '2': 76},
|
||||
const {'1': 'Khoj', '2': 77},
|
||||
const {'1': 'Kitl', '2': 78},
|
||||
const {'1': 'Kits', '2': 79},
|
||||
const {'1': 'Knda', '2': 80},
|
||||
const {'1': 'Kore', '2': 81},
|
||||
const {'1': 'Kpel', '2': 82},
|
||||
const {'1': 'Kthi', '2': 83},
|
||||
const {'1': 'Lana', '2': 84},
|
||||
const {'1': 'Laoo', '2': 85},
|
||||
const {'1': 'Latf', '2': 86},
|
||||
const {'1': 'Latg', '2': 87},
|
||||
const {'1': 'Latn', '2': 88},
|
||||
const {'1': 'Leke', '2': 89},
|
||||
const {'1': 'Lepc', '2': 90},
|
||||
const {'1': 'Limb', '2': 91},
|
||||
const {'1': 'Lina', '2': 92},
|
||||
const {'1': 'Linb', '2': 93},
|
||||
const {'1': 'Lisu', '2': 94},
|
||||
const {'1': 'Loma', '2': 95},
|
||||
const {'1': 'Lyci', '2': 96},
|
||||
const {'1': 'Lydi', '2': 97},
|
||||
const {'1': 'Mahj', '2': 98},
|
||||
const {'1': 'Maka', '2': 99},
|
||||
const {'1': 'Mand', '2': 100},
|
||||
const {'1': 'Mani', '2': 101},
|
||||
const {'1': 'Marc', '2': 102},
|
||||
const {'1': 'Maya', '2': 103},
|
||||
const {'1': 'Medf', '2': 104},
|
||||
const {'1': 'Mend', '2': 105},
|
||||
const {'1': 'Merc', '2': 106},
|
||||
const {'1': 'Mero', '2': 107},
|
||||
const {'1': 'Mlym', '2': 108},
|
||||
const {'1': 'Modi', '2': 109},
|
||||
const {'1': 'Mong', '2': 110},
|
||||
const {'1': 'Moon', '2': 111},
|
||||
const {'1': 'Mroo', '2': 112},
|
||||
const {'1': 'Mtei', '2': 113},
|
||||
const {'1': 'Mult', '2': 114},
|
||||
const {'1': 'Mymr', '2': 115},
|
||||
const {'1': 'Nand', '2': 116},
|
||||
const {'1': 'Narb', '2': 117},
|
||||
const {'1': 'Nbat', '2': 118},
|
||||
const {'1': 'Newa', '2': 119},
|
||||
const {'1': 'Nkdb', '2': 120},
|
||||
const {'1': 'Nkgb', '2': 121},
|
||||
const {'1': 'Nkoo', '2': 122},
|
||||
const {'1': 'Nshu', '2': 123},
|
||||
const {'1': 'Ogam', '2': 124},
|
||||
const {'1': 'Olck', '2': 125},
|
||||
const {'1': 'Orkh', '2': 126},
|
||||
const {'1': 'Orya', '2': 127},
|
||||
const {'1': 'Osge', '2': 128},
|
||||
const {'1': 'Osma', '2': 129},
|
||||
const {'1': 'Palm', '2': 130},
|
||||
const {'1': 'Pauc', '2': 131},
|
||||
const {'1': 'Perm', '2': 132},
|
||||
const {'1': 'Phag', '2': 133},
|
||||
const {'1': 'Phli', '2': 134},
|
||||
const {'1': 'Phlp', '2': 135},
|
||||
const {'1': 'Phlv', '2': 136},
|
||||
const {'1': 'Phnx', '2': 137},
|
||||
const {'1': 'Plrd', '2': 138},
|
||||
const {'1': 'Piqd', '2': 139},
|
||||
const {'1': 'Prti', '2': 140},
|
||||
const {'1': 'Qaaa', '2': 141},
|
||||
const {'1': 'Qabx', '2': 142},
|
||||
const {'1': 'Rjng', '2': 143},
|
||||
const {'1': 'Rohg', '2': 144},
|
||||
const {'1': 'Roro', '2': 145},
|
||||
const {'1': 'Runr', '2': 146},
|
||||
const {'1': 'Samr', '2': 147},
|
||||
const {'1': 'Sara', '2': 148},
|
||||
const {'1': 'Sarb', '2': 149},
|
||||
const {'1': 'Saur', '2': 150},
|
||||
const {'1': 'Sgnw', '2': 151},
|
||||
const {'1': 'Shaw', '2': 152},
|
||||
const {'1': 'Shrd', '2': 153},
|
||||
const {'1': 'Shui', '2': 154},
|
||||
const {'1': 'Sidd', '2': 155},
|
||||
const {'1': 'Sind', '2': 156},
|
||||
const {'1': 'Sinh', '2': 157},
|
||||
const {'1': 'Sogd', '2': 158},
|
||||
const {'1': 'Sogo', '2': 159},
|
||||
const {'1': 'Sora', '2': 160},
|
||||
const {'1': 'Soyo', '2': 161},
|
||||
const {'1': 'Sund', '2': 162},
|
||||
const {'1': 'Sylo', '2': 163},
|
||||
const {'1': 'Syrc', '2': 164},
|
||||
const {'1': 'Syre', '2': 165},
|
||||
const {'1': 'Syrj', '2': 166},
|
||||
const {'1': 'Syrn', '2': 167},
|
||||
const {'1': 'Tagb', '2': 168},
|
||||
const {'1': 'Takr', '2': 169},
|
||||
const {'1': 'Tale', '2': 170},
|
||||
const {'1': 'Talu', '2': 171},
|
||||
const {'1': 'Taml', '2': 172},
|
||||
const {'1': 'Tang', '2': 173},
|
||||
const {'1': 'Tavt', '2': 174},
|
||||
const {'1': 'Telu', '2': 175},
|
||||
const {'1': 'Teng', '2': 176},
|
||||
const {'1': 'Tfng', '2': 177},
|
||||
const {'1': 'Tglg', '2': 178},
|
||||
const {'1': 'Thaa', '2': 179},
|
||||
const {'1': 'Thai', '2': 180},
|
||||
const {'1': 'Tibt', '2': 181},
|
||||
const {'1': 'Tirh', '2': 182},
|
||||
const {'1': 'Ugar', '2': 183},
|
||||
const {'1': 'Vaii', '2': 184},
|
||||
const {'1': 'Visp', '2': 185},
|
||||
const {'1': 'Wara', '2': 186},
|
||||
const {'1': 'Wcho', '2': 187},
|
||||
const {'1': 'Wole', '2': 188},
|
||||
const {'1': 'Xpeo', '2': 189},
|
||||
const {'1': 'Xsux', '2': 190},
|
||||
const {'1': 'Yiii', '2': 191},
|
||||
const {'1': 'Zanb', '2': 192},
|
||||
const {'1': 'Zinh', '2': 193},
|
||||
const {'1': 'Zmth', '2': 194},
|
||||
const {'1': 'Zsye', '2': 195},
|
||||
const {'1': 'Zsym', '2': 196},
|
||||
const {'1': 'Zxxx', '2': 197},
|
||||
const {'1': 'Zyyy', '2': 198},
|
||||
const {'1': 'Zzzz', '2': 199},
|
||||
],
|
||||
};
|
||||
|
||||
const Location$json = const {
|
||||
'1': 'Location',
|
||||
'2': const [
|
||||
const {'1': 'country', '3': 1, '4': 1, '5': 14, '6': '.pb.Location.Country', '10': 'country'},
|
||||
const {'1': 'state', '3': 2, '4': 1, '5': 9, '10': 'state'},
|
||||
const {'1': 'city', '3': 3, '4': 1, '5': 9, '10': 'city'},
|
||||
const {'1': 'code', '3': 4, '4': 1, '5': 9, '10': 'code'},
|
||||
const {'1': 'latitude', '3': 5, '4': 1, '5': 17, '10': 'latitude'},
|
||||
const {'1': 'longitude', '3': 6, '4': 1, '5': 17, '10': 'longitude'},
|
||||
],
|
||||
'4': const [Location_Country$json],
|
||||
};
|
||||
|
||||
const Location_Country$json = const {
|
||||
'1': 'Country',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_COUNTRY', '2': 0},
|
||||
const {'1': 'AF', '2': 1},
|
||||
const {'1': 'AX', '2': 2},
|
||||
const {'1': 'AL', '2': 3},
|
||||
const {'1': 'DZ', '2': 4},
|
||||
const {'1': 'AS', '2': 5},
|
||||
const {'1': 'AD', '2': 6},
|
||||
const {'1': 'AO', '2': 7},
|
||||
const {'1': 'AI', '2': 8},
|
||||
const {'1': 'AQ', '2': 9},
|
||||
const {'1': 'AG', '2': 10},
|
||||
const {'1': 'AR', '2': 11},
|
||||
const {'1': 'AM', '2': 12},
|
||||
const {'1': 'AW', '2': 13},
|
||||
const {'1': 'AU', '2': 14},
|
||||
const {'1': 'AT', '2': 15},
|
||||
const {'1': 'AZ', '2': 16},
|
||||
const {'1': 'BS', '2': 17},
|
||||
const {'1': 'BH', '2': 18},
|
||||
const {'1': 'BD', '2': 19},
|
||||
const {'1': 'BB', '2': 20},
|
||||
const {'1': 'BY', '2': 21},
|
||||
const {'1': 'BE', '2': 22},
|
||||
const {'1': 'BZ', '2': 23},
|
||||
const {'1': 'BJ', '2': 24},
|
||||
const {'1': 'BM', '2': 25},
|
||||
const {'1': 'BT', '2': 26},
|
||||
const {'1': 'BO', '2': 27},
|
||||
const {'1': 'BQ', '2': 28},
|
||||
const {'1': 'BA', '2': 29},
|
||||
const {'1': 'BW', '2': 30},
|
||||
const {'1': 'BV', '2': 31},
|
||||
const {'1': 'BR', '2': 32},
|
||||
const {'1': 'IO', '2': 33},
|
||||
const {'1': 'BN', '2': 34},
|
||||
const {'1': 'BG', '2': 35},
|
||||
const {'1': 'BF', '2': 36},
|
||||
const {'1': 'BI', '2': 37},
|
||||
const {'1': 'KH', '2': 38},
|
||||
const {'1': 'CM', '2': 39},
|
||||
const {'1': 'CA', '2': 40},
|
||||
const {'1': 'CV', '2': 41},
|
||||
const {'1': 'KY', '2': 42},
|
||||
const {'1': 'CF', '2': 43},
|
||||
const {'1': 'TD', '2': 44},
|
||||
const {'1': 'CL', '2': 45},
|
||||
const {'1': 'CN', '2': 46},
|
||||
const {'1': 'CX', '2': 47},
|
||||
const {'1': 'CC', '2': 48},
|
||||
const {'1': 'CO', '2': 49},
|
||||
const {'1': 'KM', '2': 50},
|
||||
const {'1': 'CG', '2': 51},
|
||||
const {'1': 'CD', '2': 52},
|
||||
const {'1': 'CK', '2': 53},
|
||||
const {'1': 'CR', '2': 54},
|
||||
const {'1': 'CI', '2': 55},
|
||||
const {'1': 'HR', '2': 56},
|
||||
const {'1': 'CU', '2': 57},
|
||||
const {'1': 'CW', '2': 58},
|
||||
const {'1': 'CY', '2': 59},
|
||||
const {'1': 'CZ', '2': 60},
|
||||
const {'1': 'DK', '2': 61},
|
||||
const {'1': 'DJ', '2': 62},
|
||||
const {'1': 'DM', '2': 63},
|
||||
const {'1': 'DO', '2': 64},
|
||||
const {'1': 'EC', '2': 65},
|
||||
const {'1': 'EG', '2': 66},
|
||||
const {'1': 'SV', '2': 67},
|
||||
const {'1': 'GQ', '2': 68},
|
||||
const {'1': 'ER', '2': 69},
|
||||
const {'1': 'EE', '2': 70},
|
||||
const {'1': 'ET', '2': 71},
|
||||
const {'1': 'FK', '2': 72},
|
||||
const {'1': 'FO', '2': 73},
|
||||
const {'1': 'FJ', '2': 74},
|
||||
const {'1': 'FI', '2': 75},
|
||||
const {'1': 'FR', '2': 76},
|
||||
const {'1': 'GF', '2': 77},
|
||||
const {'1': 'PF', '2': 78},
|
||||
const {'1': 'TF', '2': 79},
|
||||
const {'1': 'GA', '2': 80},
|
||||
const {'1': 'GM', '2': 81},
|
||||
const {'1': 'GE', '2': 82},
|
||||
const {'1': 'DE', '2': 83},
|
||||
const {'1': 'GH', '2': 84},
|
||||
const {'1': 'GI', '2': 85},
|
||||
const {'1': 'GR', '2': 86},
|
||||
const {'1': 'GL', '2': 87},
|
||||
const {'1': 'GD', '2': 88},
|
||||
const {'1': 'GP', '2': 89},
|
||||
const {'1': 'GU', '2': 90},
|
||||
const {'1': 'GT', '2': 91},
|
||||
const {'1': 'GG', '2': 92},
|
||||
const {'1': 'GN', '2': 93},
|
||||
const {'1': 'GW', '2': 94},
|
||||
const {'1': 'GY', '2': 95},
|
||||
const {'1': 'HT', '2': 96},
|
||||
const {'1': 'HM', '2': 97},
|
||||
const {'1': 'VA', '2': 98},
|
||||
const {'1': 'HN', '2': 99},
|
||||
const {'1': 'HK', '2': 100},
|
||||
const {'1': 'HU', '2': 101},
|
||||
const {'1': 'IS', '2': 102},
|
||||
const {'1': 'IN', '2': 103},
|
||||
const {'1': 'ID', '2': 104},
|
||||
const {'1': 'IR', '2': 105},
|
||||
const {'1': 'IQ', '2': 106},
|
||||
const {'1': 'IE', '2': 107},
|
||||
const {'1': 'IM', '2': 108},
|
||||
const {'1': 'IL', '2': 109},
|
||||
const {'1': 'IT', '2': 110},
|
||||
const {'1': 'JM', '2': 111},
|
||||
const {'1': 'JP', '2': 112},
|
||||
const {'1': 'JE', '2': 113},
|
||||
const {'1': 'JO', '2': 114},
|
||||
const {'1': 'KZ', '2': 115},
|
||||
const {'1': 'KE', '2': 116},
|
||||
const {'1': 'KI', '2': 117},
|
||||
const {'1': 'KP', '2': 118},
|
||||
const {'1': 'KR', '2': 119},
|
||||
const {'1': 'KW', '2': 120},
|
||||
const {'1': 'KG', '2': 121},
|
||||
const {'1': 'LA', '2': 122},
|
||||
const {'1': 'LV', '2': 123},
|
||||
const {'1': 'LB', '2': 124},
|
||||
const {'1': 'LS', '2': 125},
|
||||
const {'1': 'LR', '2': 126},
|
||||
const {'1': 'LY', '2': 127},
|
||||
const {'1': 'LI', '2': 128},
|
||||
const {'1': 'LT', '2': 129},
|
||||
const {'1': 'LU', '2': 130},
|
||||
const {'1': 'MO', '2': 131},
|
||||
const {'1': 'MK', '2': 132},
|
||||
const {'1': 'MG', '2': 133},
|
||||
const {'1': 'MW', '2': 134},
|
||||
const {'1': 'MY', '2': 135},
|
||||
const {'1': 'MV', '2': 136},
|
||||
const {'1': 'ML', '2': 137},
|
||||
const {'1': 'MT', '2': 138},
|
||||
const {'1': 'MH', '2': 139},
|
||||
const {'1': 'MQ', '2': 140},
|
||||
const {'1': 'MR', '2': 141},
|
||||
const {'1': 'MU', '2': 142},
|
||||
const {'1': 'YT', '2': 143},
|
||||
const {'1': 'MX', '2': 144},
|
||||
const {'1': 'FM', '2': 145},
|
||||
const {'1': 'MD', '2': 146},
|
||||
const {'1': 'MC', '2': 147},
|
||||
const {'1': 'MN', '2': 148},
|
||||
const {'1': 'ME', '2': 149},
|
||||
const {'1': 'MS', '2': 150},
|
||||
const {'1': 'MA', '2': 151},
|
||||
const {'1': 'MZ', '2': 152},
|
||||
const {'1': 'MM', '2': 153},
|
||||
const {'1': 'NA', '2': 154},
|
||||
const {'1': 'NR', '2': 155},
|
||||
const {'1': 'NP', '2': 156},
|
||||
const {'1': 'NL', '2': 157},
|
||||
const {'1': 'NC', '2': 158},
|
||||
const {'1': 'NZ', '2': 159},
|
||||
const {'1': 'NI', '2': 160},
|
||||
const {'1': 'NE', '2': 161},
|
||||
const {'1': 'NG', '2': 162},
|
||||
const {'1': 'NU', '2': 163},
|
||||
const {'1': 'NF', '2': 164},
|
||||
const {'1': 'MP', '2': 165},
|
||||
const {'1': 'NO', '2': 166},
|
||||
const {'1': 'OM', '2': 167},
|
||||
const {'1': 'PK', '2': 168},
|
||||
const {'1': 'PW', '2': 169},
|
||||
const {'1': 'PS', '2': 170},
|
||||
const {'1': 'PA', '2': 171},
|
||||
const {'1': 'PG', '2': 172},
|
||||
const {'1': 'PY', '2': 173},
|
||||
const {'1': 'PE', '2': 174},
|
||||
const {'1': 'PH', '2': 175},
|
||||
const {'1': 'PN', '2': 176},
|
||||
const {'1': 'PL', '2': 177},
|
||||
const {'1': 'PT', '2': 178},
|
||||
const {'1': 'PR', '2': 179},
|
||||
const {'1': 'QA', '2': 180},
|
||||
const {'1': 'RE', '2': 181},
|
||||
const {'1': 'RO', '2': 182},
|
||||
const {'1': 'RU', '2': 183},
|
||||
const {'1': 'RW', '2': 184},
|
||||
const {'1': 'BL', '2': 185},
|
||||
const {'1': 'SH', '2': 186},
|
||||
const {'1': 'KN', '2': 187},
|
||||
const {'1': 'LC', '2': 188},
|
||||
const {'1': 'MF', '2': 189},
|
||||
const {'1': 'PM', '2': 190},
|
||||
const {'1': 'VC', '2': 191},
|
||||
const {'1': 'WS', '2': 192},
|
||||
const {'1': 'SM', '2': 193},
|
||||
const {'1': 'ST', '2': 194},
|
||||
const {'1': 'SA', '2': 195},
|
||||
const {'1': 'SN', '2': 196},
|
||||
const {'1': 'RS', '2': 197},
|
||||
const {'1': 'SC', '2': 198},
|
||||
const {'1': 'SL', '2': 199},
|
||||
const {'1': 'SG', '2': 200},
|
||||
const {'1': 'SX', '2': 201},
|
||||
const {'1': 'SK', '2': 202},
|
||||
const {'1': 'SI', '2': 203},
|
||||
const {'1': 'SB', '2': 204},
|
||||
const {'1': 'SO', '2': 205},
|
||||
const {'1': 'ZA', '2': 206},
|
||||
const {'1': 'GS', '2': 207},
|
||||
const {'1': 'SS', '2': 208},
|
||||
const {'1': 'ES', '2': 209},
|
||||
const {'1': 'LK', '2': 210},
|
||||
const {'1': 'SD', '2': 211},
|
||||
const {'1': 'SR', '2': 212},
|
||||
const {'1': 'SJ', '2': 213},
|
||||
const {'1': 'SZ', '2': 214},
|
||||
const {'1': 'SE', '2': 215},
|
||||
const {'1': 'CH', '2': 216},
|
||||
const {'1': 'SY', '2': 217},
|
||||
const {'1': 'TW', '2': 218},
|
||||
const {'1': 'TJ', '2': 219},
|
||||
const {'1': 'TZ', '2': 220},
|
||||
const {'1': 'TH', '2': 221},
|
||||
const {'1': 'TL', '2': 222},
|
||||
const {'1': 'TG', '2': 223},
|
||||
const {'1': 'TK', '2': 224},
|
||||
const {'1': 'TO', '2': 225},
|
||||
const {'1': 'TT', '2': 226},
|
||||
const {'1': 'TN', '2': 227},
|
||||
const {'1': 'TR', '2': 228},
|
||||
const {'1': 'TM', '2': 229},
|
||||
const {'1': 'TC', '2': 230},
|
||||
const {'1': 'TV', '2': 231},
|
||||
const {'1': 'UG', '2': 232},
|
||||
const {'1': 'UA', '2': 233},
|
||||
const {'1': 'AE', '2': 234},
|
||||
const {'1': 'GB', '2': 235},
|
||||
const {'1': 'US', '2': 236},
|
||||
const {'1': 'UM', '2': 237},
|
||||
const {'1': 'UY', '2': 238},
|
||||
const {'1': 'UZ', '2': 239},
|
||||
const {'1': 'VU', '2': 240},
|
||||
const {'1': 'VE', '2': 241},
|
||||
const {'1': 'VN', '2': 242},
|
||||
const {'1': 'VG', '2': 243},
|
||||
const {'1': 'VI', '2': 244},
|
||||
const {'1': 'WF', '2': 245},
|
||||
const {'1': 'EH', '2': 246},
|
||||
const {'1': 'YE', '2': 247},
|
||||
const {'1': 'ZM', '2': 248},
|
||||
const {'1': 'ZW', '2': 249},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: claim.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
export 'claim.pb.dart';
|
||||
|
||||
@@ -1,260 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: result.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
import 'dart:core' as $core show bool, Deprecated, double, int, List, Map, override, pragma, String;
|
||||
|
||||
import 'package:fixnum/fixnum.dart';
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'result.pbenum.dart';
|
||||
|
||||
export 'result.pbenum.dart';
|
||||
|
||||
class Outputs extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Outputs', package: const $pb.PackageName('pb'))
|
||||
..pc<Output>(1, 'txos', $pb.PbFieldType.PM,Output.create)
|
||||
..pc<Output>(2, 'extraTxos', $pb.PbFieldType.PM,Output.create)
|
||||
..a<$core.int>(3, 'total', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(4, 'offset', $pb.PbFieldType.OU3)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Outputs._() : super();
|
||||
factory Outputs() => create();
|
||||
factory Outputs.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Outputs.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Outputs clone() => Outputs()..mergeFromMessage(this);
|
||||
Outputs copyWith(void Function(Outputs) updates) => super.copyWith((message) => updates(message as Outputs));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Outputs create() => Outputs._();
|
||||
Outputs createEmptyInstance() => create();
|
||||
static $pb.PbList<Outputs> createRepeated() => $pb.PbList<Outputs>();
|
||||
static Outputs getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Outputs _defaultInstance;
|
||||
|
||||
$core.List<Output> get txos => $_getList(0);
|
||||
|
||||
$core.List<Output> get extraTxos => $_getList(1);
|
||||
|
||||
$core.int get total => $_get(2, 0);
|
||||
set total($core.int v) { $_setUnsignedInt32(2, v); }
|
||||
$core.bool hasTotal() => $_has(2);
|
||||
void clearTotal() => clearField(3);
|
||||
|
||||
$core.int get offset => $_get(3, 0);
|
||||
set offset($core.int v) { $_setUnsignedInt32(3, v); }
|
||||
$core.bool hasOffset() => $_has(3);
|
||||
void clearOffset() => clearField(4);
|
||||
}
|
||||
|
||||
enum Output_Meta {
|
||||
claim,
|
||||
error,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Output extends $pb.GeneratedMessage {
|
||||
static const $core.Map<$core.int, Output_Meta> _Output_MetaByTag = {
|
||||
7 : Output_Meta.claim,
|
||||
15 : Output_Meta.error,
|
||||
0 : Output_Meta.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Output', package: const $pb.PackageName('pb'))
|
||||
..oo(0, [7, 15])
|
||||
..a<$core.List<$core.int>>(1, 'txHash', $pb.PbFieldType.OY)
|
||||
..a<$core.int>(2, 'nout', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(3, 'height', $pb.PbFieldType.OU3)
|
||||
..a<ClaimMeta>(7, 'claim', $pb.PbFieldType.OM, ClaimMeta.getDefault, ClaimMeta.create)
|
||||
..a<Error>(15, 'error', $pb.PbFieldType.OM, Error.getDefault, Error.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Output._() : super();
|
||||
factory Output() => create();
|
||||
factory Output.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Output.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Output clone() => Output()..mergeFromMessage(this);
|
||||
Output copyWith(void Function(Output) updates) => super.copyWith((message) => updates(message as Output));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Output create() => Output._();
|
||||
Output createEmptyInstance() => create();
|
||||
static $pb.PbList<Output> createRepeated() => $pb.PbList<Output>();
|
||||
static Output getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Output _defaultInstance;
|
||||
|
||||
Output_Meta whichMeta() => _Output_MetaByTag[$_whichOneof(0)];
|
||||
void clearMeta() => clearField($_whichOneof(0));
|
||||
|
||||
$core.List<$core.int> get txHash => $_getN(0);
|
||||
set txHash($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
$core.bool hasTxHash() => $_has(0);
|
||||
void clearTxHash() => clearField(1);
|
||||
|
||||
$core.int get nout => $_get(1, 0);
|
||||
set nout($core.int v) { $_setUnsignedInt32(1, v); }
|
||||
$core.bool hasNout() => $_has(1);
|
||||
void clearNout() => clearField(2);
|
||||
|
||||
$core.int get height => $_get(2, 0);
|
||||
set height($core.int v) { $_setUnsignedInt32(2, v); }
|
||||
$core.bool hasHeight() => $_has(2);
|
||||
void clearHeight() => clearField(3);
|
||||
|
||||
ClaimMeta get claim => $_getN(3);
|
||||
set claim(ClaimMeta v) { setField(7, v); }
|
||||
$core.bool hasClaim() => $_has(3);
|
||||
void clearClaim() => clearField(7);
|
||||
|
||||
Error get error => $_getN(4);
|
||||
set error(Error v) { setField(15, v); }
|
||||
$core.bool hasError() => $_has(4);
|
||||
void clearError() => clearField(15);
|
||||
}
|
||||
|
||||
class ClaimMeta extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('ClaimMeta', package: const $pb.PackageName('pb'))
|
||||
..a<Output>(1, 'channel', $pb.PbFieldType.OM, Output.getDefault, Output.create)
|
||||
..aOS(2, 'shortUrl')
|
||||
..aOS(3, 'canonicalUrl')
|
||||
..aOB(4, 'isControlling')
|
||||
..a<$core.int>(5, 'takeOverHeight', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(6, 'creationHeight', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(7, 'activationHeight', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(8, 'expirationHeight', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(9, 'claimsInChannel', $pb.PbFieldType.OU3)
|
||||
..a<Int64>(10, 'effectiveAmount', $pb.PbFieldType.OU6, Int64.ZERO)
|
||||
..a<Int64>(11, 'supportAmount', $pb.PbFieldType.OU6, Int64.ZERO)
|
||||
..a<$core.int>(12, 'trendingGroup', $pb.PbFieldType.OU3)
|
||||
..a<$core.double>(13, 'trendingMixed', $pb.PbFieldType.OF)
|
||||
..a<$core.double>(14, 'trendingLocal', $pb.PbFieldType.OF)
|
||||
..a<$core.double>(15, 'trendingGlobal', $pb.PbFieldType.OF)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
ClaimMeta._() : super();
|
||||
factory ClaimMeta() => create();
|
||||
factory ClaimMeta.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory ClaimMeta.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
ClaimMeta clone() => ClaimMeta()..mergeFromMessage(this);
|
||||
ClaimMeta copyWith(void Function(ClaimMeta) updates) => super.copyWith((message) => updates(message as ClaimMeta));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClaimMeta create() => ClaimMeta._();
|
||||
ClaimMeta createEmptyInstance() => create();
|
||||
static $pb.PbList<ClaimMeta> createRepeated() => $pb.PbList<ClaimMeta>();
|
||||
static ClaimMeta getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static ClaimMeta _defaultInstance;
|
||||
|
||||
Output get channel => $_getN(0);
|
||||
set channel(Output v) { setField(1, v); }
|
||||
$core.bool hasChannel() => $_has(0);
|
||||
void clearChannel() => clearField(1);
|
||||
|
||||
$core.String get shortUrl => $_getS(1, '');
|
||||
set shortUrl($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasShortUrl() => $_has(1);
|
||||
void clearShortUrl() => clearField(2);
|
||||
|
||||
$core.String get canonicalUrl => $_getS(2, '');
|
||||
set canonicalUrl($core.String v) { $_setString(2, v); }
|
||||
$core.bool hasCanonicalUrl() => $_has(2);
|
||||
void clearCanonicalUrl() => clearField(3);
|
||||
|
||||
$core.bool get isControlling => $_get(3, false);
|
||||
set isControlling($core.bool v) { $_setBool(3, v); }
|
||||
$core.bool hasIsControlling() => $_has(3);
|
||||
void clearIsControlling() => clearField(4);
|
||||
|
||||
$core.int get takeOverHeight => $_get(4, 0);
|
||||
set takeOverHeight($core.int v) { $_setUnsignedInt32(4, v); }
|
||||
$core.bool hasTakeOverHeight() => $_has(4);
|
||||
void clearTakeOverHeight() => clearField(5);
|
||||
|
||||
$core.int get creationHeight => $_get(5, 0);
|
||||
set creationHeight($core.int v) { $_setUnsignedInt32(5, v); }
|
||||
$core.bool hasCreationHeight() => $_has(5);
|
||||
void clearCreationHeight() => clearField(6);
|
||||
|
||||
$core.int get activationHeight => $_get(6, 0);
|
||||
set activationHeight($core.int v) { $_setUnsignedInt32(6, v); }
|
||||
$core.bool hasActivationHeight() => $_has(6);
|
||||
void clearActivationHeight() => clearField(7);
|
||||
|
||||
$core.int get expirationHeight => $_get(7, 0);
|
||||
set expirationHeight($core.int v) { $_setUnsignedInt32(7, v); }
|
||||
$core.bool hasExpirationHeight() => $_has(7);
|
||||
void clearExpirationHeight() => clearField(8);
|
||||
|
||||
$core.int get claimsInChannel => $_get(8, 0);
|
||||
set claimsInChannel($core.int v) { $_setUnsignedInt32(8, v); }
|
||||
$core.bool hasClaimsInChannel() => $_has(8);
|
||||
void clearClaimsInChannel() => clearField(9);
|
||||
|
||||
Int64 get effectiveAmount => $_getI64(9);
|
||||
set effectiveAmount(Int64 v) { $_setInt64(9, v); }
|
||||
$core.bool hasEffectiveAmount() => $_has(9);
|
||||
void clearEffectiveAmount() => clearField(10);
|
||||
|
||||
Int64 get supportAmount => $_getI64(10);
|
||||
set supportAmount(Int64 v) { $_setInt64(10, v); }
|
||||
$core.bool hasSupportAmount() => $_has(10);
|
||||
void clearSupportAmount() => clearField(11);
|
||||
|
||||
$core.int get trendingGroup => $_get(11, 0);
|
||||
set trendingGroup($core.int v) { $_setUnsignedInt32(11, v); }
|
||||
$core.bool hasTrendingGroup() => $_has(11);
|
||||
void clearTrendingGroup() => clearField(12);
|
||||
|
||||
$core.double get trendingMixed => $_getN(12);
|
||||
set trendingMixed($core.double v) { $_setFloat(12, v); }
|
||||
$core.bool hasTrendingMixed() => $_has(12);
|
||||
void clearTrendingMixed() => clearField(13);
|
||||
|
||||
$core.double get trendingLocal => $_getN(13);
|
||||
set trendingLocal($core.double v) { $_setFloat(13, v); }
|
||||
$core.bool hasTrendingLocal() => $_has(13);
|
||||
void clearTrendingLocal() => clearField(14);
|
||||
|
||||
$core.double get trendingGlobal => $_getN(14);
|
||||
set trendingGlobal($core.double v) { $_setFloat(14, v); }
|
||||
$core.bool hasTrendingGlobal() => $_has(14);
|
||||
void clearTrendingGlobal() => clearField(15);
|
||||
}
|
||||
|
||||
class Error extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Error', package: const $pb.PackageName('pb'))
|
||||
..e<Error_Code>(1, 'code', $pb.PbFieldType.OE, Error_Code.UNKNOWN_CODE, Error_Code.valueOf, Error_Code.values)
|
||||
..aOS(2, 'text')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Error._() : super();
|
||||
factory Error() => create();
|
||||
factory Error.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Error.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Error clone() => Error()..mergeFromMessage(this);
|
||||
Error copyWith(void Function(Error) updates) => super.copyWith((message) => updates(message as Error));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Error create() => Error._();
|
||||
Error createEmptyInstance() => create();
|
||||
static $pb.PbList<Error> createRepeated() => $pb.PbList<Error>();
|
||||
static Error getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Error _defaultInstance;
|
||||
|
||||
Error_Code get code => $_getN(0);
|
||||
set code(Error_Code v) { setField(1, v); }
|
||||
$core.bool hasCode() => $_has(0);
|
||||
void clearCode() => clearField(1);
|
||||
|
||||
$core.String get text => $_getS(1, '');
|
||||
set text($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasText() => $_has(1);
|
||||
void clearText() => clearField(2);
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: result.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
// ignore_for_file: UNDEFINED_SHOWN_NAME,UNUSED_SHOWN_NAME
|
||||
import 'dart:core' as $core show int, dynamic, String, List, Map;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class Error_Code extends $pb.ProtobufEnum {
|
||||
static const Error_Code UNKNOWN_CODE = Error_Code._(0, 'UNKNOWN_CODE');
|
||||
static const Error_Code NOT_FOUND = Error_Code._(1, 'NOT_FOUND');
|
||||
static const Error_Code INVALID = Error_Code._(2, 'INVALID');
|
||||
|
||||
static const $core.List<Error_Code> values = <Error_Code> [
|
||||
UNKNOWN_CODE,
|
||||
NOT_FOUND,
|
||||
INVALID,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, Error_Code> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static Error_Code valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const Error_Code._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: result.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
const Outputs$json = const {
|
||||
'1': 'Outputs',
|
||||
'2': const [
|
||||
const {'1': 'txos', '3': 1, '4': 3, '5': 11, '6': '.pb.Output', '10': 'txos'},
|
||||
const {'1': 'extra_txos', '3': 2, '4': 3, '5': 11, '6': '.pb.Output', '10': 'extraTxos'},
|
||||
const {'1': 'total', '3': 3, '4': 1, '5': 13, '10': 'total'},
|
||||
const {'1': 'offset', '3': 4, '4': 1, '5': 13, '10': 'offset'},
|
||||
],
|
||||
};
|
||||
|
||||
const Output$json = const {
|
||||
'1': 'Output',
|
||||
'2': const [
|
||||
const {'1': 'tx_hash', '3': 1, '4': 1, '5': 12, '10': 'txHash'},
|
||||
const {'1': 'nout', '3': 2, '4': 1, '5': 13, '10': 'nout'},
|
||||
const {'1': 'height', '3': 3, '4': 1, '5': 13, '10': 'height'},
|
||||
const {'1': 'claim', '3': 7, '4': 1, '5': 11, '6': '.pb.ClaimMeta', '9': 0, '10': 'claim'},
|
||||
const {'1': 'error', '3': 15, '4': 1, '5': 11, '6': '.pb.Error', '9': 0, '10': 'error'},
|
||||
],
|
||||
'8': const [
|
||||
const {'1': 'meta'},
|
||||
],
|
||||
};
|
||||
|
||||
const ClaimMeta$json = const {
|
||||
'1': 'ClaimMeta',
|
||||
'2': const [
|
||||
const {'1': 'channel', '3': 1, '4': 1, '5': 11, '6': '.pb.Output', '10': 'channel'},
|
||||
const {'1': 'short_url', '3': 2, '4': 1, '5': 9, '10': 'shortUrl'},
|
||||
const {'1': 'canonical_url', '3': 3, '4': 1, '5': 9, '10': 'canonicalUrl'},
|
||||
const {'1': 'is_controlling', '3': 4, '4': 1, '5': 8, '10': 'isControlling'},
|
||||
const {'1': 'take_over_height', '3': 5, '4': 1, '5': 13, '10': 'takeOverHeight'},
|
||||
const {'1': 'creation_height', '3': 6, '4': 1, '5': 13, '10': 'creationHeight'},
|
||||
const {'1': 'activation_height', '3': 7, '4': 1, '5': 13, '10': 'activationHeight'},
|
||||
const {'1': 'expiration_height', '3': 8, '4': 1, '5': 13, '10': 'expirationHeight'},
|
||||
const {'1': 'claims_in_channel', '3': 9, '4': 1, '5': 13, '10': 'claimsInChannel'},
|
||||
const {'1': 'effective_amount', '3': 10, '4': 1, '5': 4, '10': 'effectiveAmount'},
|
||||
const {'1': 'support_amount', '3': 11, '4': 1, '5': 4, '10': 'supportAmount'},
|
||||
const {'1': 'trending_group', '3': 12, '4': 1, '5': 13, '10': 'trendingGroup'},
|
||||
const {'1': 'trending_mixed', '3': 13, '4': 1, '5': 2, '10': 'trendingMixed'},
|
||||
const {'1': 'trending_local', '3': 14, '4': 1, '5': 2, '10': 'trendingLocal'},
|
||||
const {'1': 'trending_global', '3': 15, '4': 1, '5': 2, '10': 'trendingGlobal'},
|
||||
],
|
||||
};
|
||||
|
||||
const Error$json = const {
|
||||
'1': 'Error',
|
||||
'2': const [
|
||||
const {'1': 'code', '3': 1, '4': 1, '5': 14, '6': '.pb.Error.Code', '10': 'code'},
|
||||
const {'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'},
|
||||
],
|
||||
'4': const [Error_Code$json],
|
||||
};
|
||||
|
||||
const Error_Code$json = const {
|
||||
'1': 'Code',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_CODE', '2': 0},
|
||||
const {'1': 'NOT_FOUND', '2': 1},
|
||||
const {'1': 'INVALID', '2': 2},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: result.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
export 'result.pb.dart';
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:web_socket_channel/io.dart';
|
||||
import 'package:web_socket_channel/status.dart' as status;
|
||||
|
||||
|
||||
class ServerConnection {
|
||||
String url = "";
|
||||
IOWebSocketChannel channel;
|
||||
bool get isConnected => channel != null && channel.closeCode == null;
|
||||
|
||||
final StreamController<ServerLoadDataPoint> _loadDataController = StreamController.broadcast();
|
||||
Stream<ServerLoadDataPoint> get load_data => _loadDataController.stream;
|
||||
|
||||
ServerConnection({this.url});
|
||||
|
||||
open() {
|
||||
if (isConnected) return Future.value('already open');
|
||||
channel = IOWebSocketChannel.connect(this.url);
|
||||
int tick = 1;
|
||||
channel.stream.listen((message) {
|
||||
var data = json.decode(message);
|
||||
print(data);
|
||||
_loadDataController.add(
|
||||
ServerLoadDataPoint.from_map(
|
||||
tick, data
|
||||
)
|
||||
);
|
||||
tick++;
|
||||
});
|
||||
}
|
||||
|
||||
close() {
|
||||
if (isConnected) {
|
||||
return channel.sink.close(status.goingAway);
|
||||
}
|
||||
return Future.value('already closed');
|
||||
}
|
||||
|
||||
subscribe_to_server_load_data() {
|
||||
if (isConnected) channel.sink.add('subscribe');
|
||||
}
|
||||
|
||||
unsubscribe_from_server_load_data() {
|
||||
if (isConnected) channel.sink.add('unsubscribe');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class TimeStats {
|
||||
final int avg, min, max;
|
||||
// percentiles
|
||||
final int five;
|
||||
final int twenty_five;
|
||||
final int fifty;
|
||||
final int seventy_five;
|
||||
final int ninety_five;
|
||||
TimeStats(
|
||||
this.avg, this.min, this.five, this.twenty_five,
|
||||
this.fifty, this.seventy_five, this.ninety_five,
|
||||
this.max
|
||||
);
|
||||
TimeStats.from_list(List l): this(
|
||||
l[0], l[1], l[2], l[3], l[4], l[5], l[6], l[7]
|
||||
);
|
||||
TimeStats.from_zeros(): this(
|
||||
0, 0, 0, 0, 0, 0, 0, 0
|
||||
);
|
||||
factory TimeStats.from_list_or_zeros(List l) =>
|
||||
l != null ? TimeStats.from_list(l): TimeStats.from_zeros();
|
||||
}
|
||||
|
||||
|
||||
class APICallMetrics {
|
||||
// total requests received
|
||||
final int receive_count;
|
||||
// sum of these is total responses made
|
||||
final int cache_response_count;
|
||||
final int query_response_count;
|
||||
final int intrp_response_count;
|
||||
final int error_response_count;
|
||||
// stacked values for chart
|
||||
final int cache_response_stack;
|
||||
final int query_response_stack;
|
||||
final int intrp_response_stack;
|
||||
final int error_response_stack;
|
||||
// millisecond timings for non-cache responses
|
||||
final TimeStats response;
|
||||
final TimeStats interrupt;
|
||||
final TimeStats error;
|
||||
// response, interrupt and error each also report the python, wait and sql stats:
|
||||
final TimeStats python;
|
||||
final TimeStats wait;
|
||||
final TimeStats sql;
|
||||
// extended timings for individual sql executions
|
||||
final TimeStats individual_sql;
|
||||
final int individual_sql_count;
|
||||
// actual queries
|
||||
final List<String> errored_queries;
|
||||
final List<String> interrupted_queries;
|
||||
APICallMetrics(
|
||||
this.receive_count,
|
||||
this.cache_response_count, this.query_response_count,
|
||||
this.intrp_response_count, this.error_response_count,
|
||||
this.response, this.interrupt, this.error,
|
||||
this.python, this.wait, this.sql,
|
||||
this.individual_sql, this.individual_sql_count,
|
||||
this.errored_queries, this.interrupted_queries
|
||||
):
|
||||
cache_response_stack=cache_response_count+query_response_count+intrp_response_count+error_response_count,
|
||||
query_response_stack=query_response_count+intrp_response_count+error_response_count,
|
||||
intrp_response_stack=intrp_response_count+error_response_count,
|
||||
error_response_stack=error_response_count;
|
||||
APICallMetrics.from_map(Map data): this(
|
||||
data["receive_count"] ?? 0,
|
||||
data["cache_response_count"] ?? 0,
|
||||
data["query_response_count"] ?? 0,
|
||||
data["intrp_response_count"] ?? 0,
|
||||
data["error_response_count"] ?? 0,
|
||||
TimeStats.from_list_or_zeros(data["response"]),
|
||||
TimeStats.from_list_or_zeros(data["interrupt"]),
|
||||
TimeStats.from_list_or_zeros(data["error"]),
|
||||
TimeStats.from_list_or_zeros(data["python"]),
|
||||
TimeStats.from_list_or_zeros(data["wait"]),
|
||||
TimeStats.from_list_or_zeros(data["sql"]),
|
||||
TimeStats.from_list_or_zeros(data["individual_sql"]),
|
||||
data["individual_sql_count"] ?? 0,
|
||||
List<String>.from(data["errored_queries"] ?? const []),
|
||||
List<String>.from(data["interrupted_queries"] ?? const []),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
class ServerLoadDataPoint {
|
||||
final int tick;
|
||||
final int sessions;
|
||||
final APICallMetrics search;
|
||||
final APICallMetrics resolve;
|
||||
const ServerLoadDataPoint(
|
||||
this.tick, this.sessions, this.search, this.resolve
|
||||
);
|
||||
ServerLoadDataPoint.from_map(int tick, Map data): this(
|
||||
tick, (data['status'] ?? const {})['sessions'] ?? 0,
|
||||
APICallMetrics.from_map((data['api'] ?? const {})['search'] ?? const {}),
|
||||
APICallMetrics.from_map((data['api'] ?? const {})['resolve'] ?? const {})
|
||||
);
|
||||
ServerLoadDataPoint.empty(): this(
|
||||
0, 0, APICallMetrics.from_map(const {}), APICallMetrics.from_map(const {})
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
connect_and_listen_for_load_data() {
|
||||
ServerConnection(url: 'ws://localhost:8181/')..open()..load_data.listen((m) {
|
||||
print(m.search);
|
||||
});
|
||||
}
|
||||
@@ -1,376 +0,0 @@
|
||||
# Generated by pub
|
||||
# See https://dart.dev/tools/pub/glossary#lockfile
|
||||
packages:
|
||||
analyzer:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: analyzer
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.37.0"
|
||||
args:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: args
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.5.2"
|
||||
async:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: async
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.2.0"
|
||||
boolean_selector:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: boolean_selector
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.5"
|
||||
charcode:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: charcode
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.2"
|
||||
collection:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: collection
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.14.11"
|
||||
convert:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: convert
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
crypto:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: crypto
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.6"
|
||||
csslib:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: csslib
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.16.1"
|
||||
dart_style:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: dart_style
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.2.9"
|
||||
fixnum:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: fixnum
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.10.9"
|
||||
front_end:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: front_end
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.1.20"
|
||||
glob:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: glob
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.7"
|
||||
html:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: html
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.14.0+2"
|
||||
http:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: http
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.12.0+2"
|
||||
http_multi_server:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: http_multi_server
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.0"
|
||||
http_parser:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: http_parser
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.1.3"
|
||||
io:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: io
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.3.3"
|
||||
js:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: js
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.6.1+1"
|
||||
kernel:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: kernel
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.3.20"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: matcher
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.12.5"
|
||||
meta:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: meta
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.7"
|
||||
mime:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: mime
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.9.6+3"
|
||||
multi_server_socket:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: multi_server_socket
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.2"
|
||||
node_preamble:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: node_preamble
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.4.4"
|
||||
package_config:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: package_config
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.5"
|
||||
package_resolver:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: package_resolver
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.10"
|
||||
path:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: path
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.6.2"
|
||||
pedantic:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: pedantic
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.8.0+1"
|
||||
pool:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: pool
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.4.0"
|
||||
protobuf:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: protobuf
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.13.15"
|
||||
protoc_plugin:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: protoc_plugin
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "17.0.4"
|
||||
pub_semver:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: pub_semver
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.4.2"
|
||||
shelf:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shelf
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.7.5"
|
||||
shelf_packages_handler:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shelf_packages_handler
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.4"
|
||||
shelf_static:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shelf_static
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.8"
|
||||
shelf_web_socket:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shelf_web_socket
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.3"
|
||||
source_map_stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_map_stack_trace
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.5"
|
||||
source_maps:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_maps
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.10.8"
|
||||
source_span:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_span
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.5.5"
|
||||
stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stack_trace
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.9.3"
|
||||
stream_channel:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stream_channel
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
stream_transform:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stream_transform
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.0.19"
|
||||
string_scanner:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: string_scanner
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.4"
|
||||
term_glyph:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: term_glyph
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.0"
|
||||
test:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: test
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.6.5"
|
||||
test_api:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_api
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.6"
|
||||
test_core:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_core
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.7"
|
||||
typed_data:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: typed_data
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.6"
|
||||
vm_service_lib:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vm_service_lib
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.22.0"
|
||||
watcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: watcher
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.9.7+10"
|
||||
web_socket_channel:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: web_socket_channel
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.14"
|
||||
yaml:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: yaml
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.16"
|
||||
sdks:
|
||||
dart: ">=2.3.0 <3.0.0"
|
||||
@@ -1,19 +0,0 @@
|
||||
name: lbry
|
||||
description: LBRY SDK in Dart.
|
||||
version: 0.0.1
|
||||
homepage: https://lbry.com
|
||||
author: LBRY Inc. <hello@lbry.com>
|
||||
|
||||
environment:
|
||||
sdk: '>=2.2.0 <3.0.0'
|
||||
|
||||
dependencies:
|
||||
http: ^0.12.0+2
|
||||
path: ^1.4.1
|
||||
protobuf: ^0.13.12
|
||||
web_socket_channel: ^1.0.4
|
||||
|
||||
dev_dependencies:
|
||||
pedantic: ^1.0.0
|
||||
test: ^1.0.0
|
||||
protoc_plugin: ^17.0.2
|
||||
@@ -1,8 +0,0 @@
|
||||
import 'package:lbry/lbry.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
test('calculate', () {
|
||||
expect(calculate(), 42);
|
||||
});
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
|
||||
# IntelliJ related
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
**/doc/api/
|
||||
.dart_tool/
|
||||
.flutter-plugins
|
||||
.packages
|
||||
.pub-cache/
|
||||
.pub/
|
||||
/build/
|
||||
|
||||
# Android related
|
||||
**/android/**/gradle-wrapper.jar
|
||||
**/android/.gradle
|
||||
**/android/captures/
|
||||
**/android/gradlew
|
||||
**/android/gradlew.bat
|
||||
**/android/local.properties
|
||||
**/android/**/GeneratedPluginRegistrant.java
|
||||
|
||||
# iOS/XCode related
|
||||
**/ios/**/*.mode1v3
|
||||
**/ios/**/*.mode2v3
|
||||
**/ios/**/*.moved-aside
|
||||
**/ios/**/*.pbxuser
|
||||
**/ios/**/*.perspectivev3
|
||||
**/ios/**/*sync/
|
||||
**/ios/**/.sconsign.dblite
|
||||
**/ios/**/.tags*
|
||||
**/ios/**/.vagrant/
|
||||
**/ios/**/DerivedData/
|
||||
**/ios/**/Icon?
|
||||
**/ios/**/Pods/
|
||||
**/ios/**/.symlinks/
|
||||
**/ios/**/profile
|
||||
**/ios/**/xcuserdata
|
||||
**/ios/.generated/
|
||||
**/ios/Flutter/App.framework
|
||||
**/ios/Flutter/Flutter.framework
|
||||
**/ios/Flutter/Generated.xcconfig
|
||||
**/ios/Flutter/app.flx
|
||||
**/ios/Flutter/app.zip
|
||||
**/ios/Flutter/flutter_assets/
|
||||
**/ios/ServiceDefinitions.json
|
||||
**/ios/Runner/GeneratedPluginRegistrant.*
|
||||
|
||||
# Exceptions to above rules.
|
||||
!**/ios/**/default.mode1v3
|
||||
!**/ios/**/default.mode2v3
|
||||
!**/ios/**/default.pbxuser
|
||||
!**/ios/**/default.perspectivev3
|
||||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
||||
@@ -1,10 +0,0 @@
|
||||
# This file tracks properties of this Flutter project.
|
||||
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||
#
|
||||
# This file should be version controlled and should not be manually edited.
|
||||
|
||||
version:
|
||||
revision: 871b58986d6d401efb8dd66af67814bf37c42cd1
|
||||
channel: master
|
||||
|
||||
project_type: app
|
||||
@@ -1,16 +0,0 @@
|
||||
# ver
|
||||
|
||||
A new Flutter project.
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
||||
A few resources to get you started if this is your first Flutter project:
|
||||
|
||||
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
|
||||
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
|
||||
|
||||
For help getting started with Flutter, view our
|
||||
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
@@ -1,61 +0,0 @@
|
||||
def localProperties = new Properties()
|
||||
def localPropertiesFile = rootProject.file('local.properties')
|
||||
if (localPropertiesFile.exists()) {
|
||||
localPropertiesFile.withReader('UTF-8') { reader ->
|
||||
localProperties.load(reader)
|
||||
}
|
||||
}
|
||||
|
||||
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
||||
if (flutterRoot == null) {
|
||||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
||||
}
|
||||
|
||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||
if (flutterVersionCode == null) {
|
||||
flutterVersionCode = '1'
|
||||
}
|
||||
|
||||
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
||||
if (flutterVersionName == null) {
|
||||
flutterVersionName = '1.0'
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
|
||||
lintOptions {
|
||||
disable 'InvalidPackage'
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "com.lbry.ver"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 28
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source '../..'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
||||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.lbry.ver">
|
||||
<!-- Flutter needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
@@ -1,33 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.lbry.ver">
|
||||
|
||||
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
|
||||
calls FlutterMain.startInitialization(this); in its onCreate method.
|
||||
In most cases you can leave this as-is, but you if you want to provide
|
||||
additional functionality it is fine to subclass or reimplement
|
||||
FlutterApplication and put your custom class here. -->
|
||||
<application
|
||||
android:name="io.flutter.app.FlutterApplication"
|
||||
android:label="ver"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:launchMode="singleTop"
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:hardwareAccelerated="true"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<!-- This keeps the window background of the activity showing
|
||||
until Flutter renders its first frame. It can be removed if
|
||||
there is no splash screen (such as the default splash screen
|
||||
defined in @style/LaunchTheme). -->
|
||||
<meta-data
|
||||
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
|
||||
android:value="true" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
@@ -1,13 +0,0 @@
|
||||
package com.lbry.ver;
|
||||
|
||||
import android.os.Bundle;
|
||||
import io.flutter.app.FlutterActivity;
|
||||
import io.flutter.plugins.GeneratedPluginRegistrant;
|
||||
|
||||
public class MainActivity extends FlutterActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
GeneratedPluginRegistrant.registerWith(this);
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
||||
|
Before Width: | Height: | Size: 544 B |
|
Before Width: | Height: | Size: 442 B |
|
Before Width: | Height: | Size: 721 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
Flutter draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -1,7 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.lbry.ver">
|
||||
<!-- Flutter needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
@@ -1,29 +0,0 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.2.1'
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.buildDir = '../build'
|
||||
subprojects {
|
||||
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(':app')
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
org.gradle.jvmargs=-Xmx1536M
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#Fri Jun 23 08:50:38 CEST 2017
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
|
||||
@@ -1,15 +0,0 @@
|
||||
include ':app'
|
||||
|
||||
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
|
||||
|
||||
def plugins = new Properties()
|
||||
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
|
||||
if (pluginsFile.exists()) {
|
||||
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
|
||||
}
|
||||
|
||||
plugins.each { name, path ->
|
||||
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
|
||||
include ":$name"
|
||||
project(":$name").projectDir = pluginDirectory
|
||||
}
|
||||
@@ -1,202 +0,0 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>App</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.flutter.flutter.app</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>App</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>8.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1 +0,0 @@
|
||||
#include "Generated.xcconfig"
|
||||
@@ -1 +0,0 @@
|
||||
#include "Generated.xcconfig"
|
||||
@@ -1,519 +0,0 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
|
||||
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
|
||||
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
|
||||
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
|
||||
);
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
|
||||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
97C146EB1CF9000F007C117D /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
|
||||
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
9740EEB11CF90186004384FC /* Flutter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3B80C3931E831B6300D905FE /* App.framework */,
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
||||
9740EEBA1CF902C7004384FC /* Flutter.framework */,
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
||||
);
|
||||
name = Flutter;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146E51CF9000F007C117D = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
9740EEB11CF90186004384FC /* Flutter */,
|
||||
97C146F01CF9000F007C117D /* Runner */,
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146EF1CF9000F007C117D /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97C146EE1CF9000F007C117D /* Runner.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146F01CF9000F007C117D /* Runner */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97C146FA1CF9000F007C117D /* Main.storyboard */,
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
||||
97C147021CF9000F007C117D /* Info.plist */,
|
||||
97C146F11CF9000F007C117D /* Supporting Files */,
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
|
||||
);
|
||||
path = Runner;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146F11CF9000F007C117D /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
97C146ED1CF9000F007C117D /* Runner */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
||||
buildPhases = (
|
||||
9740EEB61CF901F6004384FC /* Run Script */,
|
||||
97C146EA1CF9000F007C117D /* Sources */,
|
||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||
97C146EC1CF9000F007C117D /* Resources */,
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = Runner;
|
||||
productName = Runner;
|
||||
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
97C146E61CF9000F007C117D /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 1020;
|
||||
ORGANIZATIONNAME = "The Chromium Authors";
|
||||
TargetAttributes = {
|
||||
97C146ED1CF9000F007C117D = {
|
||||
CreatedOnToolsVersion = 7.3.1;
|
||||
LastSwiftMigration = 0910;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = 97C146E51CF9000F007C117D;
|
||||
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
97C146ED1CF9000F007C117D /* Runner */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
97C146EC1CF9000F007C117D /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Thin Binary";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Run Script";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
97C146EA1CF9000F007C117D /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
97C146FB1CF9000F007C117D /* Base */,
|
||||
);
|
||||
name = Main.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
97C147001CF9000F007C117D /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
249021D3217E4FDB00AE95B9 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
249021D4217E4FDB00AE95B9 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.lbry.ver;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_VERSION = 4.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
97C147031CF9000F007C117D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
97C147041CF9000F007C117D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
97C147061CF9000F007C117D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.lbry.ver;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 4.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
97C147071CF9000F007C117D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.lbry.ver;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_VERSION = 4.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
97C147031CF9000F007C117D /* Debug */,
|
||||
97C147041CF9000F007C117D /* Release */,
|
||||
249021D3217E4FDB00AE95B9 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
97C147061CF9000F007C117D /* Debug */,
|
||||
97C147071CF9000F007C117D /* Release */,
|
||||
249021D4217E4FDB00AE95B9 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
|
||||
};
|
||||
rootObject = 97C146E61CF9000F007C117D /* Project object */;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:Runner.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -1,91 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1020"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
</Testables>
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Profile"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:Runner.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -1,13 +0,0 @@
|
||||
import UIKit
|
||||
import Flutter
|
||||
|
||||
@UIApplicationMain
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
GeneratedPluginRegistrant.register(with: self)
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "83.5x83.5",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-83.5x83.5@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "1024x1024",
|
||||
"idiom" : "ios-marketing",
|
||||
"filename" : "Icon-App-1024x1024@1x.png",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 564 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage@3x.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 68 B |
@@ -1,5 +0,0 @@
|
||||
# Launch Screen Assets
|
||||
|
||||
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
|
||||
|
||||
You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
|
||||
@@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="EHf-IW-A2E">
|
||||
<objects>
|
||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
|
||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="53" y="375"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="LaunchImage" width="168" height="185"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--Flutter View Controller-->
|
||||
<scene sceneID="tne-QT-ifu">
|
||||
<objects>
|
||||
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
||||
@@ -1,45 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>ver</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(FLUTTER_BUILD_NAME)</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1 +0,0 @@
|
||||
#import "GeneratedPluginRegistrant.h"
|
||||
@@ -1,83 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/foundation.dart' show debugDefaultTargetPlatformOverride;
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:ver/src/servers.dart';
|
||||
import 'package:ver/src/models/server.dart';
|
||||
import 'package:ver/utils.dart';
|
||||
|
||||
|
||||
class UnderConstructionPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('Under Construction')),
|
||||
body: SizedBox.expand(
|
||||
child: Center(child: Text('Under Construction')),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class MainPage extends StatefulWidget {
|
||||
@override
|
||||
_MainPageState createState() => _MainPageState();
|
||||
}
|
||||
|
||||
|
||||
class _MainPageState extends State<MainPage> {
|
||||
int _currentIndex = 3;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: IndexedStack(
|
||||
index: _currentIndex,
|
||||
children: [
|
||||
UnderConstructionPage(),
|
||||
UnderConstructionPage(),
|
||||
UnderConstructionPage(),
|
||||
ServersSectionNavigation(),
|
||||
UnderConstructionPage(),
|
||||
],
|
||||
),
|
||||
bottomNavigationBar: BottomNavigationBar(
|
||||
items: const <BottomNavigationBarItem>[
|
||||
BottomNavigationBarItem(icon: Icon(Icons.home), title: Text('Home')),
|
||||
BottomNavigationBarItem(icon: Icon(Icons.trending_up), title: Text('Trending')),
|
||||
BottomNavigationBarItem(icon: Icon(Icons.subscriptions), title: Text('Subscriptions')),
|
||||
BottomNavigationBarItem(icon: Icon(Icons.router), title: Text('Servers')),
|
||||
BottomNavigationBarItem(icon: Icon(Icons.folder), title: Text('Library')),
|
||||
],
|
||||
currentIndex: _currentIndex,
|
||||
onTap: (int index) {
|
||||
setState(() {
|
||||
_currentIndex = index;
|
||||
});
|
||||
},
|
||||
selectedItemColor: Colors.amber[800],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void main() {
|
||||
debugDefaultTargetPlatformOverride = getTargetPlatformForDesktop();
|
||||
runApp(
|
||||
MaterialApp(
|
||||
title: 'Ver',
|
||||
theme: ThemeData(
|
||||
brightness: Brightness.dark,
|
||||
//primaryColor: Colors.lightBlue[800],
|
||||
//accentColor: Colors.cyan[600],
|
||||
fontFamily: 'Roboto',
|
||||
),
|
||||
home: MultiProvider(
|
||||
providers: [
|
||||
ChangeNotifierProvider<ServerManager>(builder: (context) => ServerManager())
|
||||
],
|
||||
child: MainPage()
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -1,190 +0,0 @@
|
||||
import 'dart:async';
|
||||
import 'dart:collection';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:lbry/lbry.dart';
|
||||
|
||||
|
||||
class ServerManager extends ChangeNotifier {
|
||||
final List<Server> _servers = [];
|
||||
UnmodifiableListView<Server> get items => UnmodifiableListView(_servers);
|
||||
|
||||
add(Server server) {
|
||||
_servers.add(server);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
remove(Server server) {
|
||||
server.dispose();
|
||||
_servers.remove(server);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
for (var server in _servers) {
|
||||
server.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class Server extends ChangeNotifier {
|
||||
|
||||
String _label = "";
|
||||
String get label => _label;
|
||||
String get labelOrHost => _label.length > 0 ? _label : host;
|
||||
|
||||
String _host = "";
|
||||
String get host => _host;
|
||||
int _port = 8181;
|
||||
int get port => _port;
|
||||
bool _ssl = false;
|
||||
bool get ssl => _ssl;
|
||||
String get url => _connection.url;
|
||||
_setURL(String host, int port, bool ssl) {
|
||||
_host = host;
|
||||
_port = port;
|
||||
_connection.url = "ws${ssl?'s':''}://$host:$port";
|
||||
}
|
||||
|
||||
DateTime _added = new DateTime.now();
|
||||
String get added => _added.toIso8601String();
|
||||
|
||||
bool _isDefault = false;
|
||||
bool get isDefault => _isDefault;
|
||||
|
||||
bool _isEnabled = false;
|
||||
bool get isEnabled => _isEnabled;
|
||||
|
||||
bool _isTrackingServerLoad = false;
|
||||
bool get isTrackingServerLoad => _isTrackingServerLoad;
|
||||
_setIsTrackingServerLoad(bool toggle_tracking) {
|
||||
if (_isTrackingServerLoad && !toggle_tracking) {
|
||||
_connection.unsubscribe_from_server_load_data();
|
||||
} else if (!_isTrackingServerLoad && toggle_tracking) {
|
||||
_connection.subscribe_to_server_load_data();
|
||||
}
|
||||
_isTrackingServerLoad = toggle_tracking;
|
||||
}
|
||||
|
||||
ClientLoadManager clientLoadManager;
|
||||
|
||||
final ServerConnection _connection = ServerConnection();
|
||||
bool get isConnected => _connection.isConnected;
|
||||
Stream<ServerLoadDataPoint> get serverLoadStream => _connection.load_data;
|
||||
final List<ServerLoadDataPoint> serverLoadData = [ServerLoadDataPoint.empty()];
|
||||
|
||||
Server() {
|
||||
clientLoadManager = ClientLoadManager(this);
|
||||
serverLoadStream.listen(serverLoadData.add);
|
||||
}
|
||||
|
||||
update({String host, int port, bool ssl, String label,
|
||||
bool isDefault, bool isEnabled, bool isTrackingServerLoad}) {
|
||||
if (host != null && port != null && ssl != null) {
|
||||
_setURL(host, port, ssl);
|
||||
}
|
||||
if (isTrackingServerLoad != null) {
|
||||
_setIsTrackingServerLoad(isTrackingServerLoad);
|
||||
}
|
||||
_label = label ?? _label;
|
||||
_isDefault = isDefault ?? _isDefault;
|
||||
_isEnabled = isEnabled ?? _isEnabled;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
connect() async {
|
||||
await _connection.open();
|
||||
if (_isTrackingServerLoad) {
|
||||
_connection.subscribe_to_server_load_data();
|
||||
}
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
clientLoadManager.stop();
|
||||
_connection.close();
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
disconnect();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class ClientLoadManager extends ChangeNotifier {
|
||||
final Server _server;
|
||||
|
||||
ClientLoadGenerator clientLoadGenerator;
|
||||
final StreamController<ClientLoadDataPoint> _loadDataController = StreamController.broadcast();
|
||||
Stream<ClientLoadDataPoint> get clientLoadStream => _loadDataController.stream;
|
||||
final List<ClientLoadDataPoint> clientLoadData = [ClientLoadDataPoint.empty()];
|
||||
|
||||
int _load = 1;
|
||||
int get load => _load;
|
||||
int _offset = 0;
|
||||
int get offset => _offset;
|
||||
bool _noTotals = false;
|
||||
bool get noTotals => _noTotals;
|
||||
|
||||
ClientLoadManager(this._server) {
|
||||
clientLoadStream.listen(clientLoadData.add);
|
||||
}
|
||||
|
||||
update({int load, int offset, bool noTotals}) {
|
||||
_load = load ?? _load;
|
||||
_offset = offset ?? _offset;
|
||||
_noTotals = noTotals ?? _noTotals;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
start() {
|
||||
clientLoadData.clear();
|
||||
clientLoadData.add(ClientLoadDataPoint.empty());
|
||||
clientLoadGenerator = ClientLoadGenerator(
|
||||
_server.host, _server.port,
|
||||
query: {
|
||||
'id': 1,
|
||||
'method': 'blockchain.claimtrie.search',
|
||||
'params': {
|
||||
'no_totals': _noTotals,
|
||||
'offset': _offset,
|
||||
'limit': 20,
|
||||
'fee_amount': '<1',
|
||||
//'all_tags': ['funny'],
|
||||
'any_tags': [
|
||||
'crypto',
|
||||
'outdoors',
|
||||
'cars',
|
||||
'automotive'
|
||||
]
|
||||
}
|
||||
}, tickCallback: (t, stats) {
|
||||
_loadDataController.add(stats);
|
||||
//increase = max(1, min(100, increase+2)-stats.backlog);
|
||||
//increase += 1;
|
||||
//t.query['params']['offset'] = (increase/2).ceil()*t.query['params']['limit'];
|
||||
t.load = _load;//rand.nextInt(10)+5;
|
||||
return true;
|
||||
})..start();
|
||||
}
|
||||
|
||||
stop() {
|
||||
if (clientLoadGenerator != null) {
|
||||
clientLoadGenerator.stop();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
stop();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:ver/src/widgets/server.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'models/server.dart';
|
||||
|
||||
|
||||
class ServerListPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) =>
|
||||
Scaffold(
|
||||
appBar: AppBar(title: Text('Servers')),
|
||||
body: ServerList(),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
child: Icon(Icons.add),
|
||||
onPressed: () => Navigator.of(context).pushNamed('/edit', arguments: true),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
class ServerFormPage extends StatelessWidget {
|
||||
|
||||
final bool creating;
|
||||
ServerFormPage(this.creating);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) =>
|
||||
Scaffold(
|
||||
appBar: AppBar(title: Text(creating ? 'Add Server' : 'Modify Server')),
|
||||
body: ServerForm(creating),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
class ServerViewPage extends StatelessWidget {
|
||||
final Server server;
|
||||
ServerViewPage(this.server);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) =>
|
||||
Scaffold(
|
||||
appBar: AppBar(title: Text(server.labelOrHost)),
|
||||
body: ChangeNotifierProvider<Server>.value(
|
||||
value: server,
|
||||
child: ServerView()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
class ServersSectionNavigation extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Navigator(
|
||||
onGenerateRoute: (RouteSettings settings) {
|
||||
return MaterialPageRoute(
|
||||
settings: settings,
|
||||
builder: (BuildContext context) {
|
||||
switch (settings.name) {
|
||||
case '/':
|
||||
return ServerListPage();
|
||||
case '/edit':
|
||||
return ServerFormPage(settings.arguments);
|
||||
case '/view':
|
||||
return ServerViewPage(settings.arguments);
|
||||
}
|
||||
return ServerListPage();
|
||||
},
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,172 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../models/server.dart';
|
||||
import 'time_series_chart.dart';
|
||||
|
||||
|
||||
class ServerList extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Consumer<ServerManager>(
|
||||
builder: (_, servers, __) =>
|
||||
ListView.builder(
|
||||
itemCount: servers.items.length,
|
||||
itemBuilder: (context, index) =>
|
||||
ChangeNotifierProvider<Server>.value(
|
||||
value: servers.items[index],
|
||||
child: ServerListItem()
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class ServerListItem extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
child: Consumer<Server>(
|
||||
builder: (_, server, __) =>
|
||||
ListTile(
|
||||
leading: FlutterLogo(size: 72.0),
|
||||
title: Text(server.labelOrHost),
|
||||
subtitle: Text("${server.url}\nadded ${server.added}"),
|
||||
trailing: Icon(Icons.more_vert),
|
||||
isThreeLine: true,
|
||||
onTap: ()=> Navigator.of(context).pushNamed('/view', arguments: server),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class ServerView extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => ServerCharts();
|
||||
}
|
||||
|
||||
|
||||
class ServerForm extends StatefulWidget {
|
||||
final bool creating;
|
||||
|
||||
ServerForm(this.creating);
|
||||
|
||||
@override
|
||||
_ServerFormState createState() => _ServerFormState();
|
||||
}
|
||||
|
||||
|
||||
class _ServerFormState extends State<ServerForm> {
|
||||
|
||||
final _formKey = GlobalKey<FormState>();
|
||||
final _formData = {
|
||||
'label': '',
|
||||
'host': 'localhost',
|
||||
'port': 8181,
|
||||
'ssl': false,
|
||||
'isDefault': true,
|
||||
'isEnabled': false,
|
||||
'isTrackingServerLoad': false
|
||||
};
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Form(
|
||||
key: _formKey,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
ListTile(title: TextFormField(
|
||||
initialValue: _formData['label'],
|
||||
decoration: const InputDecoration(
|
||||
labelText: 'Label',
|
||||
hintText: 'Optional text to display in server list.'
|
||||
),
|
||||
onSaved: (value) => _formData['label'] = value,
|
||||
)),
|
||||
ListTile(title: TextFormField(
|
||||
initialValue: _formData['host'],
|
||||
keyboardType: TextInputType.url,
|
||||
inputFormatters: [
|
||||
WhitelistingTextInputFormatter(RegExp(r'[\w\-\.]+'))
|
||||
],
|
||||
decoration: const InputDecoration(
|
||||
labelText: 'Host Name',
|
||||
hintText: 'Enter the host name of the server.'
|
||||
),
|
||||
validator: (value) => value.isEmpty ? 'A host name is required.' : null,
|
||||
onSaved: (value) => _formData['host'] = value,
|
||||
)),
|
||||
ListTile(title: TextFormField(
|
||||
initialValue: _formData['port'].toString(),
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: [
|
||||
WhitelistingTextInputFormatter.digitsOnly
|
||||
],
|
||||
decoration: const InputDecoration(
|
||||
labelText: 'Port',
|
||||
hintText: 'Enter the port of the server.'
|
||||
),
|
||||
validator: (value) => value.isEmpty ? 'A port is required.' : null,
|
||||
onSaved: (value) => setState(() => _formData['port'] = int.parse(value)),
|
||||
)),
|
||||
SwitchListTile(
|
||||
title: Text('Requires SSL.'),
|
||||
value: _formData['ssl'],
|
||||
onChanged: (value) => setState(() => _formData['ssl'] = value),
|
||||
),
|
||||
SwitchListTile(
|
||||
title: Text('Use this as your primary and default server.'),
|
||||
value: _formData['isDefault'],
|
||||
onChanged: (value) => setState(() => _formData['isDefault'] = value),
|
||||
),
|
||||
SwitchListTile(
|
||||
title: Text('Always stay connected.'),
|
||||
value: _formData['isEnabled'],
|
||||
onChanged: (value) => setState(() => _formData['isEnabled'] = value),
|
||||
),
|
||||
SwitchListTile(
|
||||
title: Text('Track server load.'),
|
||||
value: _formData['isTrackingServerLoad'],
|
||||
onChanged: (value) =>
|
||||
setState(() => _formData['isTrackingServerLoad'] = value),
|
||||
),
|
||||
ListTile(title: RaisedButton(
|
||||
onPressed: () {
|
||||
if (_formKey.currentState.validate()) {
|
||||
_formKey.currentState.save();
|
||||
var manager = Provider.of<ServerManager>(
|
||||
context, listen: false
|
||||
);
|
||||
var server = Server();
|
||||
server.update(
|
||||
label: _formData['label'],
|
||||
host: _formData['host'],
|
||||
port: _formData['port'],
|
||||
ssl: _formData['ssl'],
|
||||
isDefault: _formData['isDefault'],
|
||||
isEnabled: _formData['isEnabled'],
|
||||
isTrackingServerLoad: _formData['isTrackingServerLoad'],
|
||||
);
|
||||
manager.add(server);
|
||||
if (server.isEnabled) {
|
||||
server.connect();
|
||||
}
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
},
|
||||
child: Text(widget.creating ? 'Add Server' : 'Update Server'),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,354 +0,0 @@
|
||||
import 'dart:math';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:charts_flutter/flutter.dart' as charts;
|
||||
import 'package:charts_flutter/src/base_chart_state.dart' as state;
|
||||
import 'package:charts_common/common.dart' as common;
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:lbry/lbry.dart';
|
||||
import '../models/server.dart';
|
||||
|
||||
|
||||
class ServerCharts extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var server = Provider.of<Server>(context, listen: false);
|
||||
return ListView(children: <Widget>[
|
||||
SizedBox(height: 300.0, child: APILoadChart(
|
||||
server, "Search", (ServerLoadDataPoint dataPoint) => dataPoint.search
|
||||
)),
|
||||
//SizedBox(height: 300.0, child: APILoadChart(
|
||||
// server, "Resolve", (ServerLoadDataPoint dataPoint) => dataPoint.resolve
|
||||
//)),
|
||||
SizedBox(height: 300.0, child: ServerPerformanceChart(server)),
|
||||
//SizedBox(height: 220.0, child: ClientLoadChart(server.clientLoadManager)),
|
||||
//SizedBox(height: 220.0, child: ClientPerformanceChart(server.clientLoadManager)),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
typedef APICallMetrics APIGetter(ServerLoadDataPoint dataPoint);
|
||||
|
||||
class APILoadChart extends StatefulWidget {
|
||||
final Server server;
|
||||
final String name;
|
||||
final APIGetter getter;
|
||||
APILoadChart(this.server, this.name, this.getter);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => APILoadChartState();
|
||||
}
|
||||
|
||||
|
||||
class APILoadChartState extends State<APILoadChart> {
|
||||
|
||||
List<charts.Series<ServerLoadDataPoint, int>> seriesData;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
seriesData = [
|
||||
/*
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Received',
|
||||
colorFn: (_, __) => charts.MaterialPalette.blue.shadeDefault.lighter,
|
||||
strokeWidthPxFn: (_, __) => 4.0,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => widget.getter(load).receive_count,
|
||||
data: widget.server.serverLoadData,
|
||||
),*/
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Cache',
|
||||
colorFn: (_, __) =>
|
||||
charts.MaterialPalette.green.shadeDefault,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => widget.getter(load).cache_response_stack,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Query',
|
||||
colorFn: (_, __) =>
|
||||
charts.MaterialPalette.blue.shadeDefault,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => widget.getter(load).query_response_stack,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Interrupts',
|
||||
colorFn: (_, __) => charts.MaterialPalette.red.shadeDefault.lighter,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => widget.getter(load).intrp_response_stack,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Errors',
|
||||
colorFn: (_, __) => charts.MaterialPalette.red.shadeDefault,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => widget.getter(load).error_response_stack,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
/*
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: '${widget.name} Interrupted',
|
||||
colorFn: (_, __) =>
|
||||
charts.MaterialPalette.pink.shadeDefault.lighter,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => widget.getter(load).interrupted,
|
||||
strokeWidthPxFn: (ServerLoadDataPoint load, _) => 5.0,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: '${widget.name} Errored',
|
||||
colorFn: (_, __) =>
|
||||
charts.MaterialPalette.red.shadeDefault.darker,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => widget.getter(load).errored,
|
||||
strokeWidthPxFn: (ServerLoadDataPoint load, _) => 5.0,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: '${widget.name} From Cache',
|
||||
colorFn: (_, __) => charts.MaterialPalette.green.shadeDefault.darker,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => widget.getter(load).cache_hits,
|
||||
strokeWidthPxFn: (ServerLoadDataPoint load, _) => 3.0,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
*/
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return StreamBuilder<ServerLoadDataPoint>(
|
||||
stream: widget.server.serverLoadStream,
|
||||
builder: (BuildContext context, _) => BetterLineChart(seriesData,
|
||||
//renderer: new charts.LineRendererConfig<num>(includeArea: true)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class ServerPerformanceChart extends StatefulWidget {
|
||||
final Server server;
|
||||
ServerPerformanceChart(this.server);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ServerPerformanceChartState();
|
||||
}
|
||||
|
||||
|
||||
class ServerPerformanceChartState extends State<ServerPerformanceChart> {
|
||||
|
||||
List<charts.Series<ServerLoadDataPoint, int>> seriesData;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
seriesData = [
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Waiting 95 Percentile',
|
||||
colorFn: (_, __) => charts.MaterialPalette.red.shadeDefault.lighter,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => load.search.wait.ninety_five,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Avg. Waiting',
|
||||
colorFn: (_, __) => charts.MaterialPalette.red.shadeDefault.darker,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => load.search.wait.avg,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Avg. Executing',
|
||||
colorFn: (_, __) => charts.MaterialPalette.teal.shadeDefault.darker,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => load.search.python.avg,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'SQLite 95 Percentile',
|
||||
colorFn: (_, __) => charts.MaterialPalette.blue.shadeDefault.lighter,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => load.search.sql.ninety_five,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
charts.Series<ServerLoadDataPoint, int>(
|
||||
id: 'Avg. SQLite',
|
||||
colorFn: (_, __) => charts.MaterialPalette.blue.shadeDefault.darker,
|
||||
domainFn: (ServerLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ServerLoadDataPoint load, _) => load.search.sql.avg,
|
||||
data: widget.server.serverLoadData,
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return StreamBuilder<ServerLoadDataPoint>(
|
||||
stream: widget.server.serverLoadStream,
|
||||
builder: (BuildContext context, _) => BetterLineChart(seriesData)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class ClientLoadChart extends StatefulWidget {
|
||||
final ClientLoadManager client;
|
||||
ClientLoadChart(this.client);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ClientLoadChartState();
|
||||
}
|
||||
|
||||
|
||||
class ClientLoadChartState extends State<ClientLoadChart> {
|
||||
|
||||
List<charts.Series<ClientLoadDataPoint, int>> seriesData;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
seriesData = [
|
||||
charts.Series<ClientLoadDataPoint, int>(
|
||||
id: 'Load',
|
||||
colorFn: (_, __) => charts.MaterialPalette.black.darker,
|
||||
domainFn: (ClientLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ClientLoadDataPoint load, _) => load.load,
|
||||
data: widget.client.clientLoadData,
|
||||
),
|
||||
charts.Series<ClientLoadDataPoint, int>(
|
||||
id: 'Success',
|
||||
colorFn: (_, __) => charts.MaterialPalette.green.shadeDefault,
|
||||
domainFn: (ClientLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ClientLoadDataPoint load, _) => load.success,
|
||||
data: widget.client.clientLoadData,
|
||||
),
|
||||
charts.Series<ClientLoadDataPoint, int>(
|
||||
id: 'Backlog',
|
||||
colorFn: (_, __) => charts.MaterialPalette.red.shadeDefault,
|
||||
domainFn: (ClientLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ClientLoadDataPoint load, _) => load.backlog,
|
||||
data: widget.client.clientLoadData,
|
||||
),
|
||||
charts.Series<ClientLoadDataPoint, int>(
|
||||
id: 'Catch-up',
|
||||
colorFn: (_, __) => charts.MaterialPalette.yellow.shadeDefault,
|
||||
domainFn: (ClientLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ClientLoadDataPoint load, _) => load.catchup,
|
||||
data: widget.client.clientLoadData,
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return StreamBuilder<ClientLoadDataPoint>(
|
||||
stream: widget.client.clientLoadStream,
|
||||
builder: (BuildContext context, _) => BetterLineChart(seriesData)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class ClientPerformanceChart extends StatefulWidget {
|
||||
final ClientLoadManager client;
|
||||
ClientPerformanceChart(this.client);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ClientPerformanceChartState();
|
||||
}
|
||||
|
||||
|
||||
class ClientPerformanceChartState extends State<ClientPerformanceChart> {
|
||||
|
||||
List<charts.Series<ClientLoadDataPoint, int>> seriesData;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
seriesData = [
|
||||
charts.Series<ClientLoadDataPoint, int>(
|
||||
id: 'Avg. Success Time',
|
||||
colorFn: (_, __) => charts.MaterialPalette.green.shadeDefault,
|
||||
domainFn: (ClientLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ClientLoadDataPoint load, _) => load.avg_success,
|
||||
data: widget.client.clientLoadData,
|
||||
),
|
||||
charts.Series<ClientLoadDataPoint, int>(
|
||||
id: 'Avg. Catch-up Time',
|
||||
colorFn: (_, __) => charts.MaterialPalette.yellow.shadeDefault,
|
||||
domainFn: (ClientLoadDataPoint load, _) => load.tick,
|
||||
measureFn: (ClientLoadDataPoint load, _) => load.avg_catchup,
|
||||
data: widget.client.clientLoadData,
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return StreamBuilder<ClientLoadDataPoint>(
|
||||
stream: widget.client.clientLoadStream,
|
||||
builder: (BuildContext context, _) => BetterLineChart(seriesData)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class BetterLineChart extends charts.LineChart {
|
||||
|
||||
final int itemCount;
|
||||
final Object lastItem;
|
||||
|
||||
BetterLineChart(List<charts.Series<dynamic, int>> seriesList, {charts.LineRendererConfig renderer}):
|
||||
itemCount = seriesList[0].data.length,
|
||||
lastItem = seriesList[0].data.last,
|
||||
super(
|
||||
seriesList,
|
||||
animate: false,
|
||||
defaultRenderer: renderer,
|
||||
behaviors: [charts.SeriesLegend()],
|
||||
domainAxis: charts.NumericAxisSpec(
|
||||
viewport: new charts.NumericExtents(
|
||||
max(0, seriesList[0].data.last.tick - 60), seriesList[0].data.last.tick
|
||||
),
|
||||
renderSpec: new charts.SmallTickRendererSpec(
|
||||
labelStyle: new charts.TextStyleSpec(
|
||||
color: charts.MaterialPalette.gray.shade50
|
||||
),
|
||||
lineStyle: new charts.LineStyleSpec(
|
||||
color: charts.MaterialPalette.black
|
||||
)
|
||||
),
|
||||
),
|
||||
primaryMeasureAxis: new charts.NumericAxisSpec(
|
||||
renderSpec: new charts.GridlineRendererSpec(
|
||||
labelStyle: new charts.TextStyleSpec(
|
||||
color: charts.MaterialPalette.white
|
||||
),
|
||||
lineStyle: new charts.LineStyleSpec(
|
||||
color: charts.MaterialPalette.gray.shade100
|
||||
),
|
||||
),
|
||||
tickProviderSpec: new charts.BasicNumericTickProviderSpec(
|
||||
dataIsInWholeNumbers: true,
|
||||
desiredTickCount: 5
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
@override
|
||||
void updateCommonChart(common.BaseChart baseChart, charts.BaseChart oldWidget,
|
||||
state.BaseChartState chartState) {
|
||||
super.updateCommonChart(baseChart, oldWidget, chartState);
|
||||
final prev = oldWidget as BetterLineChart;
|
||||
if (itemCount != prev?.itemCount || lastItem != prev?.lastItem) {
|
||||
chartState.markChartDirty();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
import 'dart:io';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
TargetPlatform getTargetPlatformForDesktop() {
|
||||
// See https://github.com/flutter/flutter/wiki/Desktop-shells#target-platform-override
|
||||
if (Platform.isMacOS || Platform.isIOS) {
|
||||
return TargetPlatform.iOS;
|
||||
} else if (Platform.isAndroid) {
|
||||
return TargetPlatform.android;
|
||||
}
|
||||
return TargetPlatform.fuchsia;
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
flutter/
|
||||
@@ -1,127 +0,0 @@
|
||||
# Copyright 2018 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Example-specific variables.
|
||||
# To modify this Makefile for a different application, these are the values
|
||||
# that are mostly likely to need to be changed.
|
||||
|
||||
# Executable name.
|
||||
BINARY_NAME=flutter_desktop_example
|
||||
# The C++ code for the embedder application.
|
||||
SOURCES=flutter_embedder_example.cc
|
||||
|
||||
# Default build type. For a release build, set BUILD=release.
|
||||
# Currently this only sets NDEBUG, which is used to control the flags passed
|
||||
# to the Flutter engine in the example shell, and not the complation settings
|
||||
# (e.g., optimization level) of the C++ code.
|
||||
BUILD=debug
|
||||
|
||||
# Configuration provided via flutter tool.
|
||||
include flutter/generated_config
|
||||
|
||||
# Dependency locations
|
||||
FLUTTER_APP_CACHE_DIR=flutter/
|
||||
FLUTTER_APP_DIR=$(CURDIR)/..
|
||||
FLUTTER_APP_BUILD_DIR=$(FLUTTER_APP_DIR)/build
|
||||
|
||||
OUT_DIR=$(FLUTTER_APP_BUILD_DIR)/linux
|
||||
|
||||
# Libraries
|
||||
FLUTTER_LIB_NAME=flutter_linux
|
||||
FLUTTER_LIB=$(FLUTTER_APP_CACHE_DIR)/lib$(FLUTTER_LIB_NAME).so
|
||||
|
||||
# Tools
|
||||
FLUTTER_BIN=$(FLUTTER_ROOT)/bin/flutter
|
||||
LINUX_BUILD=$(FLUTTER_ROOT)/packages/flutter_tools/bin/linux_backend.sh
|
||||
|
||||
# Resources
|
||||
ICU_DATA_NAME=icudtl.dat
|
||||
ICU_DATA_SOURCE=$(FLUTTER_APP_CACHE_DIR)/$(ICU_DATA_NAME)
|
||||
FLUTTER_ASSETS_NAME=flutter_assets
|
||||
FLUTTER_ASSETS_SOURCE=$(FLUTTER_APP_BUILD_DIR)/$(FLUTTER_ASSETS_NAME)
|
||||
|
||||
# Bundle structure
|
||||
BUNDLE_OUT_DIR=$(OUT_DIR)/$(BUILD)
|
||||
BUNDLE_DATA_DIR=$(BUNDLE_OUT_DIR)/data
|
||||
BUNDLE_LIB_DIR=$(BUNDLE_OUT_DIR)/lib
|
||||
|
||||
BIN_OUT=$(BUNDLE_OUT_DIR)/$(BINARY_NAME)
|
||||
ICU_DATA_OUT=$(BUNDLE_DATA_DIR)/$(ICU_DATA_NAME)
|
||||
FLUTTER_LIB_OUT=$(BUNDLE_LIB_DIR)/$(notdir $(FLUTTER_LIB))
|
||||
|
||||
# Add relevant code from the wrapper library, which is intended to be statically
|
||||
# built into the client.
|
||||
WRAPPER_ROOT=$(FLUTTER_APP_CACHE_DIR)/cpp_client_wrapper
|
||||
WRAPPER_SOURCES= \
|
||||
$(WRAPPER_ROOT)/flutter_window_controller.cc \
|
||||
$(WRAPPER_ROOT)/plugin_registrar.cc \
|
||||
$(WRAPPER_ROOT)/engine_method_result.cc
|
||||
SOURCES+=$(WRAPPER_SOURCES)
|
||||
|
||||
# Headers
|
||||
WRAPPER_INCLUDE_DIR=$(WRAPPER_ROOT)/include
|
||||
INCLUDE_DIRS=$(FLUTTER_APP_CACHE_DIR) $(WRAPPER_INCLUDE_DIR)
|
||||
|
||||
# Build settings
|
||||
CXX=clang++
|
||||
CXXFLAGS.release=-DNDEBUG
|
||||
CXXFLAGS=-std=c++14 -Wall -Werror $(CXXFLAGS.$(BUILD))
|
||||
CPPFLAGS=$(patsubst %,-I%,$(INCLUDE_DIRS))
|
||||
LDFLAGS=-L$(BUNDLE_LIB_DIR) \
|
||||
-l$(FLUTTER_LIB_NAME) \
|
||||
-Wl,-rpath=\$$ORIGIN/lib
|
||||
|
||||
# Targets
|
||||
|
||||
.PHONY: all
|
||||
all: $(BIN_OUT) bundle
|
||||
|
||||
# This is a phony target because the flutter tool cannot describe
|
||||
# its inputs and outputs yet.
|
||||
.PHONY: sync
|
||||
sync: flutter/generated_config
|
||||
$(FLUTTER_ROOT)/packages/flutter_tools/bin/tool_backend.sh linux-x64 $(BUILD)
|
||||
|
||||
.PHONY: bundle
|
||||
bundle: $(ICU_DATA_OUT) $(FLUTTER_LIB_OUT) bundleflutterassets
|
||||
|
||||
$(BIN_OUT): $(SOURCES) $(FLUTTER_LIB_OUT)
|
||||
mkdir -p $(@D)
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(SOURCES) $(LDFLAGS) -o $@
|
||||
|
||||
$(WRAPPER_SOURCES) $(FLUTTER_LIB) $(ICU_DATA_SOURCE) $(FLUTTER_ASSETS_SOURCE): \
|
||||
| sync
|
||||
|
||||
$(FLUTTER_LIB_OUT): $(FLUTTER_LIB)
|
||||
mkdir -p $(BUNDLE_LIB_DIR)
|
||||
cp $(FLUTTER_LIB) $(BUNDLE_LIB_DIR)
|
||||
|
||||
$(ICU_DATA_OUT): $(ICU_DATA_SOURCE)
|
||||
mkdir -p $(dir $(ICU_DATA_OUT))
|
||||
cp $(ICU_DATA_SOURCE) $(ICU_DATA_OUT)
|
||||
|
||||
# Fully re-copy the assets directory on each build to avoid having to keep a
|
||||
# comprehensive list of all asset files here, which would be fragile to changes
|
||||
# in the Flutter example (e.g., adding a new font to pubspec.yaml would require
|
||||
# changes here).
|
||||
.PHONY: bundleflutterassets
|
||||
bundleflutterassets: $(FLUTTER_ASSETS_SOURCE)
|
||||
mkdir -p $(BUNDLE_DATA_DIR)
|
||||
rsync -rpu --delete $(FLUTTER_ASSETS_SOURCE) $(BUNDLE_DATA_DIR)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(OUT_DIR); \
|
||||
cd $(FLUTTER_APP_DIR); \
|
||||
$(FLUTTER_BIN) clean
|
||||
@@ -1,71 +0,0 @@
|
||||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#include <linux/limits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <flutter/flutter_window_controller.h>
|
||||
|
||||
namespace {
|
||||
|
||||
// Returns the path of the directory containing this executable, or an empty
|
||||
// string if the directory cannot be found.
|
||||
std::string GetExecutableDirectory() {
|
||||
char buffer[PATH_MAX + 1];
|
||||
ssize_t length = readlink("/proc/self/exe", buffer, sizeof(buffer));
|
||||
if (length > PATH_MAX) {
|
||||
std::cerr << "Couldn't locate executable" << std::endl;
|
||||
return "";
|
||||
}
|
||||
std::string executable_path(buffer, length);
|
||||
size_t last_separator_position = executable_path.find_last_of('/');
|
||||
if (last_separator_position == std::string::npos) {
|
||||
std::cerr << "Unabled to find parent directory of " << executable_path
|
||||
<< std::endl;
|
||||
return "";
|
||||
}
|
||||
return executable_path.substr(0, last_separator_position);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
// Resources are located relative to the executable.
|
||||
std::string base_directory = GetExecutableDirectory();
|
||||
if (base_directory.empty()) {
|
||||
base_directory = ".";
|
||||
}
|
||||
std::string data_directory = base_directory + "/data";
|
||||
std::string assets_path = data_directory + "/flutter_assets";
|
||||
std::string icu_data_path = data_directory + "/icudtl.dat";
|
||||
|
||||
// Arguments for the Flutter Engine.
|
||||
std::vector<std::string> arguments;
|
||||
|
||||
flutter::FlutterWindowController flutter_controller(icu_data_path);
|
||||
|
||||
// Start the engine.
|
||||
if (!flutter_controller.CreateWindow(800, 1200, "ver - lbry workbench",
|
||||
assets_path, arguments)) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// Run until the window is closed.
|
||||
flutter_controller.RunEventLoop();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Generated by pub
|
||||
# See https://dart.dev/tools/pub/glossary#lockfile
|
||||
packages:
|
||||
async:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: async
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.2.0"
|
||||
boolean_selector:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: boolean_selector
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.5"
|
||||
charcode:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: charcode
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.2"
|
||||
charts_common:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: charts_common
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.6.0"
|
||||
charts_flutter:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: charts_flutter
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.6.0"
|
||||
collection:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: collection
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.14.11"
|
||||
convert:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: convert
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
crypto:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: crypto
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.6"
|
||||
cupertino_icons:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: cupertino_icons
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.1.2"
|
||||
fixnum:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: fixnum
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.10.9"
|
||||
flutter:
|
||||
dependency: "direct main"
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_test:
|
||||
dependency: "direct dev"
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
http:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: http
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.12.0+2"
|
||||
http_parser:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: http_parser
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.1.3"
|
||||
intl:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: intl
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.15.8"
|
||||
lbry:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "../lbry"
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
logging:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: logging
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.11.3+2"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: matcher
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.12.5"
|
||||
meta:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: meta
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.6"
|
||||
path:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.6.2"
|
||||
pedantic:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: pedantic
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.8.0+1"
|
||||
protobuf:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: protobuf
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.13.15"
|
||||
provider:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: provider
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.0.0+1"
|
||||
quiver:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: quiver
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.3"
|
||||
sky_engine:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.99"
|
||||
source_span:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_span
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.5.5"
|
||||
stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stack_trace
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.9.3"
|
||||
stream_channel:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stream_channel
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
string_scanner:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: string_scanner
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.4"
|
||||
term_glyph:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: term_glyph
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.0"
|
||||
test_api:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_api
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.5"
|
||||
typed_data:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: typed_data
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.6"
|
||||
vector_math:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vector_math
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.8"
|
||||
web_socket_channel:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: web_socket_channel
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.14"
|
||||
sdks:
|
||||
dart: ">=2.2.2 <3.0.0"
|
||||
@@ -1,54 +0,0 @@
|
||||
name: ver
|
||||
description: An app for LBRY.
|
||||
version: 0.0.1+1
|
||||
homepage: https://lbry.com
|
||||
author: LBRY Inc. <hello@lbry.com>
|
||||
|
||||
environment:
|
||||
sdk: ">=2.1.0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
cupertino_icons: ^0.1.2
|
||||
charts_flutter: ^0.6.0
|
||||
provider: ^3.0.0
|
||||
lbry:
|
||||
path: ../lbry
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
||||
flutter:
|
||||
uses-material-design: true
|
||||
# See https://github.com/flutter/flutter/wiki/Desktop-shells#fonts
|
||||
fonts:
|
||||
- family: Roboto
|
||||
fonts:
|
||||
- asset: fonts/Roboto/Roboto-Thin.ttf
|
||||
weight: 100
|
||||
- asset: fonts/Roboto/Roboto-Light.ttf
|
||||
weight: 300
|
||||
- asset: fonts/Roboto/Roboto-Regular.ttf
|
||||
weight: 400
|
||||
- asset: fonts/Roboto/Roboto-Medium.ttf
|
||||
weight: 500
|
||||
- asset: fonts/Roboto/Roboto-Bold.ttf
|
||||
weight: 700
|
||||
- asset: fonts/Roboto/Roboto-Black.ttf
|
||||
weight: 900
|
||||
- family: ""
|
||||
fonts:
|
||||
- asset: fonts/Roboto/Roboto-Thin.ttf
|
||||
weight: 100
|
||||
- asset: fonts/Roboto/Roboto-Light.ttf
|
||||
weight: 300
|
||||
- asset: fonts/Roboto/Roboto-Regular.ttf
|
||||
weight: 400
|
||||
- asset: fonts/Roboto/Roboto-Medium.ttf
|
||||
weight: 500
|
||||
- asset: fonts/Roboto/Roboto-Bold.ttf
|
||||
weight: 700
|
||||
- asset: fonts/Roboto/Roboto-Black.ttf
|
||||
weight: 900
|
||||
@@ -1,30 +0,0 @@
|
||||
// This is a basic Flutter widget test.
|
||||
//
|
||||
// To perform an interaction with a widget in your test, use the WidgetTester
|
||||
// utility that Flutter provides. For example, you can send tap and scroll
|
||||
// gestures. You can also use WidgetTester to find child widgets in the widget
|
||||
// tree, read text, and verify that the values of widget properties are correct.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:ver/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||
// Build our app and trigger a frame.
|
||||
await tester.pumpWidget(MyApp());
|
||||
|
||||
// Verify that our counter starts at 0.
|
||||
expect(find.text('0'), findsOneWidget);
|
||||
expect(find.text('1'), findsNothing);
|
||||
|
||||
// Tap the '+' icon and trigger a frame.
|
||||
await tester.tap(find.byIcon(Icons.add));
|
||||
await tester.pump();
|
||||
|
||||
// Verify that our counter has incremented.
|
||||
expect(find.text('0'), findsNothing);
|
||||
expect(find.text('1'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
@@ -1,332 +0,0 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
|
||||
# Local additions, not from the link above
|
||||
flutter/
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
|
||||
# Visual Studio 2015/2017 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# Visual Studio 2017 auto generated files
|
||||
Generated\ Files/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUNIT
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# Benchmark Results
|
||||
BenchmarkDotNet.Artifacts/
|
||||
|
||||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
|
||||
# StyleCop
|
||||
StyleCopReport.xml
|
||||
|
||||
# Files built by Visual Studio
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_i.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.iobj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.ipdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# Visual Studio Trace Files
|
||||
*.e2e
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# JustCode is a .NET coding add-in
|
||||
.JustCode
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# AxoCover is a Code Coverage Tool
|
||||
.axoCover/*
|
||||
!.axoCover/settings.json
|
||||
|
||||
# Visual Studio code coverage results
|
||||
*.coverage
|
||||
*.coveragexml
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/[Pp]ackages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/[Pp]ackages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/[Pp]ackages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignorable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
*.appx
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.jfm
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
orleans.codegen.cs
|
||||
|
||||
# Including strong name files can present a security risk
|
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||
#*.snk
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
ServiceFabricBackup/
|
||||
*.rptproj.bak
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
*.rptproj.rsuser
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
node_modules/
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||
*.vbw
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# CodeRush
|
||||
.cr/
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# Cake - Uncomment if you are using it
|
||||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Tabs Studio
|
||||
*.tss
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
# BizTalk build output
|
||||
*.btp.cs
|
||||
*.btm.cs
|
||||
*.odx.cs
|
||||
*.xsd.cs
|
||||
|
||||
# OpenCover UI analysis results
|
||||
OpenCover/
|
||||
|
||||
# Azure Stream Analytics local run output
|
||||
ASALocalRun/
|
||||
|
||||
# MSBuild Binary and Structured Log
|
||||
*.binlog
|
||||
|
||||
# NVidia Nsight GPU debugger configuration file
|
||||
*.nvuser
|
||||
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
.mfractor/
|
||||
@@ -1,25 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.645
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Runner", "Runner.vcxproj", "{5A827760-CF8B-408A-99A3-B6C0AD2271E7}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Debug|x64.Build.0 = Debug|x64
|
||||
{5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Release|x64.ActiveCfg = Release|x64
|
||||
{5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {B8A69CB0-A974-4774-9EBD-1E5EECACD186}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -1,161 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{5A827760-CF8B-408A-99A3-B6C0AD2271E7}</ProjectGuid>
|
||||
<RootNamespace>GLFWExample</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="flutter\Generated.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="flutter\Generated.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<OutDir>$(ProjectDir)..\build\windows\$(Platform)\$(Configuration)\$(ProjectName)\</OutDir>
|
||||
<IntDir>$(ProjectDir)..\build\windows\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
||||
<IncludePath>$(ProjectDir)flutter\;$(ProjectDir)flutter\cpp_client_wrapper\include\;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(ProjectDir)flutter;$(LibraryPath)</LibraryPath>
|
||||
<TargetName>Flutter Desktop Example</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(ProjectDir)..\build\windows\$(Platform)\$(Configuration)\$(ProjectName)\</OutDir>
|
||||
<IntDir>$(ProjectDir)..\build\windows\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
||||
<IncludePath>$(ProjectDir)flutter\;$(ProjectDir)flutter\cpp_client_wrapper\include\;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(ProjectDir)flutter;$(LibraryPath)</LibraryPath>
|
||||
<TargetName>Flutter Desktop Example</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>
|
||||
</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>flutter_windows.dll.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<PreBuildEvent>
|
||||
<Command>"$(ProjectDir)scripts\prepare_dependencies" debug</Command>
|
||||
<Message>Sync and build dependencies</Message>
|
||||
</PreBuildEvent>
|
||||
<PreLinkEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
<Message>
|
||||
</Message>
|
||||
</PreLinkEvent>
|
||||
<PostBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PostBuildEvent>
|
||||
<PostBuildEvent>
|
||||
<Message>
|
||||
</Message>
|
||||
</PostBuildEvent>
|
||||
<CustomBuildStep>
|
||||
<Command>"$(ProjectDir)scripts\bundle_assets_and_deps" "$(ProjectDir)flutter\" "$(OutputPath)" "$(TargetFileName)"</Command>
|
||||
</CustomBuildStep>
|
||||
<CustomBuildStep>
|
||||
<Message>Bundling dependencies</Message>
|
||||
<Outputs>Dummy_Run_Always</Outputs>
|
||||
<Inputs>
|
||||
</Inputs>
|
||||
</CustomBuildStep>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>
|
||||
</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>flutter_windows.dll.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<PreBuildEvent>
|
||||
<Command>"$(ProjectDir)scripts\prepare_dependencies" release</Command>
|
||||
<Message>Sync and build dependencies</Message>
|
||||
</PreBuildEvent>
|
||||
<PreLinkEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
<Message>
|
||||
</Message>
|
||||
</PreLinkEvent>
|
||||
<PostBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PostBuildEvent>
|
||||
<PostBuildEvent>
|
||||
<Message>
|
||||
</Message>
|
||||
</PostBuildEvent>
|
||||
<CustomBuildStep>
|
||||
<Command>"$(ProjectDir)scripts\bundle_assets_and_deps" "$(ProjectDir)flutter\" "$(OutputPath)" "$(TargetFileName)"</Command>
|
||||
</CustomBuildStep>
|
||||
<CustomBuildStep>
|
||||
<Message>Bundling dependencies</Message>
|
||||
<Outputs>Dummy_Run_Always</Outputs>
|
||||
<Inputs>
|
||||
</Inputs>
|
||||
</CustomBuildStep>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="$(ProjectDir)flutter\cpp_client_wrapper\engine_method_result.cc" />
|
||||
<ClCompile Include="$(ProjectDir)flutter\cpp_client_wrapper\flutter_window_controller.cc" />
|
||||
<ClCompile Include="$(ProjectDir)flutter\cpp_client_wrapper\plugin_registrar.cc" />
|
||||
<ClCompile Include="flutter_embedder_example.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<PropertyGroup>
|
||||
<LocalDebuggerWorkingDirectory>$(SolutionDir)</LocalDebuggerWorkingDirectory>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Source Files\Client Wrapper">
|
||||
<UniqueIdentifier>{2761a4b5-57b2-4d50-a677-d20ddc17a7f1}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="flutter_embedder_example.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="$(ProjectDir)flutter\cpp_client_wrapper\engine_method_result.cc">
|
||||
<Filter>Source Files\Client Wrapper</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="$(ProjectDir)flutter\cpp_client_wrapper\flutter_window_controller.cc">
|
||||
<Filter>Source Files\Client Wrapper</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="$(ProjectDir)flutter\cpp_client_wrapper\plugin_registrar.cc">
|
||||
<Filter>Source Files\Client Wrapper</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,73 +0,0 @@
|
||||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "flutter/flutter_window_controller.h"
|
||||
|
||||
// Include windows.h last, to minimize potential conflicts. The CreateWindow
|
||||
// macro needs to be undefined because it prevents calling
|
||||
// FlutterWindowController's method.
|
||||
#include <windows.h>
|
||||
#undef CreateWindow
|
||||
|
||||
namespace {
|
||||
|
||||
// Returns the path of the directory containing this executable, or an empty
|
||||
// string if the directory cannot be found.
|
||||
std::string GetExecutableDirectory() {
|
||||
char buffer[MAX_PATH];
|
||||
if (GetModuleFileName(nullptr, buffer, MAX_PATH) == 0) {
|
||||
std::cerr << "Couldn't locate executable" << std::endl;
|
||||
return "";
|
||||
}
|
||||
std::string executable_path(buffer);
|
||||
size_t last_separator_position = executable_path.find_last_of('\\');
|
||||
if (last_separator_position == std::string::npos) {
|
||||
std::cerr << "Unabled to find parent directory of " << executable_path
|
||||
<< std::endl;
|
||||
return "";
|
||||
}
|
||||
return executable_path.substr(0, last_separator_position);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
// Resources are located relative to the executable.
|
||||
std::string base_directory = GetExecutableDirectory();
|
||||
if (base_directory.empty()) {
|
||||
base_directory = ".";
|
||||
}
|
||||
std::string data_directory = base_directory + "\\data";
|
||||
std::string assets_path = data_directory + "\\flutter_assets";
|
||||
std::string icu_data_path = data_directory + "\\icudtl.dat";
|
||||
|
||||
// Arguments for the Flutter Engine.
|
||||
std::vector<std::string> arguments;
|
||||
|
||||
flutter::FlutterWindowController flutter_controller(icu_data_path);
|
||||
|
||||
// Start the engine.
|
||||
if (!flutter_controller.CreateWindow(800, 600, "ver - lbry workbench",
|
||||
assets_path, arguments)) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// Run until the window is closed.
|
||||
flutter_controller.RunEventLoop();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
:: Copyright 2018 Google LLC
|
||||
::
|
||||
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||
:: you may not use this file except in compliance with the License.
|
||||
:: You may obtain a copy of the License at
|
||||
::
|
||||
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||
::
|
||||
:: Unless required by applicable law or agreed to in writing, software
|
||||
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
:: See the License for the specific language governing permissions and
|
||||
:: limitations under the License.
|
||||
@echo off
|
||||
|
||||
set FLUTTER_CACHE_DIR=%~1
|
||||
set BUNDLE_DIR=%~2
|
||||
set EXE_NAME=%~3
|
||||
|
||||
set DATA_DIR=%BUNDLE_DIR%data
|
||||
|
||||
if not exist "%DATA_DIR%" call mkdir "%DATA_DIR%"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
:: Write the executable name to the location expected by the Flutter tool.
|
||||
echo %EXE_NAME%>"%FLUTTER_CACHE_DIR%exe_filename"
|
||||
|
||||
:: Copy the Flutter assets to the data directory.
|
||||
set FLUTTER_APP_DIR=%~dp0..\..
|
||||
set ASSET_DIR_NAME=flutter_assets
|
||||
set TARGET_ASSET_DIR=%DATA_DIR%\%ASSET_DIR_NAME%
|
||||
if exist "%TARGET_ASSET_DIR%" call rmdir /s /q "%TARGET_ASSET_DIR%"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
call xcopy /s /e /i /q "%FLUTTER_APP_DIR%\build\%ASSET_DIR_NAME%" "%TARGET_ASSET_DIR%"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
:: Copy the icudtl.dat file from the Flutter tree to the data directory.
|
||||
call xcopy /y /d /q "%FLUTTER_CACHE_DIR%icudtl.dat" "%DATA_DIR%"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
:: Copy the Flutter DLL to the target location.
|
||||
call xcopy /y /d /q "%FLUTTER_CACHE_DIR%flutter_windows.dll" "%BUNDLE_DIR%"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
@@ -1,17 +0,0 @@
|
||||
:: Copyright 2018 Google LLC
|
||||
::
|
||||
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||
:: you may not use this file except in compliance with the License.
|
||||
:: You may obtain a copy of the License at
|
||||
::
|
||||
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||
::
|
||||
:: Unless required by applicable law or agreed to in writing, software
|
||||
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
:: See the License for the specific language governing permissions and
|
||||
:: limitations under the License.
|
||||
@echo off
|
||||
|
||||
set BUILD_MODE=%~1
|
||||
"%FLUTTER_ROOT%\packages\flutter_tools\bin\tool_backend" windows-x64 %BUILD_MODE%
|
||||
@@ -41,10 +41,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Get a file",
|
||||
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#5d64500fb723eded83a41b0d5055f1783f019191\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet get astream#5d64500fb723eded83a41b0d5055f1783f019191",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#5d64500fb723eded83a41b0d5055f1783f019191\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpfjnst0c0\",\n \"download_path\": \"/tmp/tmpfjnst0c0/tmpzj1qbxfj\",\n \"file_name\": \"tmpzj1qbxfj\",\n \"height\": 214,\n \"key\": \"e8b365259d5b8644a6a1eb5d2f77459f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"015e32d5a47f2cd3e1242457498c97578d4594d77ee519fc56b21384e97c75d5c1b6450f2138e209f7bbd2adb588609ba36d1982a2187070c391a89793a0b569f09fef656fe041eab1809e3964f6346ae0fb3d20f30a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707a6a31716278666a180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"8b7dee36b0985027ad1476590ee5759359b57e4cb6507d5288ffe1508c32177f5a39ef20772cf90da72987f6f55ce1ba\",\n \"stream_name\": \"tmpzj1qbxfj\",\n \"streaming_url\": \"http://localhost:5280/stream/d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"suggested_file_name\": \"tmpzj1qbxfj\",\n \"timestamp\": 1561485090,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"written_bytes\": 11\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#68fde0328b1a267b3815ce974a6329b159619092\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet get astream#68fde0328b1a267b3815ce974a6329b159619092",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#68fde0328b1a267b3815ce974a6329b159619092\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpdym2_jzz\",\n \"download_path\": \"/tmp/tmpdym2_jzz/tmpwc0xotjc\",\n \"file_name\": \"tmpwc0xotjc\",\n \"height\": 214,\n \"key\": \"b362c109c1773e239c7b8046b68baca1\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0127876157202060e91daaf771f57c2b78c254f9cb399c380097dccb958b0a22cddccfb1ff04aa93fa4022c09f2063b86e67ed1b5bc8546dfec3d1faf5c2c75c365722f78c508ba288b1f0cb3913fd391ff1796a1c0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70776330786f746a63180b22186170706c69636174696f6e2f6f637465742d73747265616d3230ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"b2749b74dd58556c9193970be68b3c439dd593e7f117cdbba75d3073307fdfa91e811ff9d3f71336eccefadb9d27effa\",\n \"stream_name\": \"tmpwc0xotjc\",\n \"streaming_url\": \"http://localhost:5280/stream/ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"suggested_file_name\": \"tmpwc0xotjc\",\n \"timestamp\": 1565587608,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"written_bytes\": 11\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -187,7 +187,13 @@
|
||||
{
|
||||
"name": "account_id",
|
||||
"type": "str",
|
||||
"description": "account to use for funding the transaction",
|
||||
"description": "account to use for holding the transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "funding_account_ids",
|
||||
"type": "list",
|
||||
"description": "ids of accounts to fund this transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
@@ -213,10 +219,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Publish a file",
|
||||
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpj0rdjqc7\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpj0rdjqc7",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpj0rdjqc7\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010f6edeb77e3d75b4cdfd5704e4d14ff2fa21948a5b26335aa3e69c8749d6a662010000006b483045022100d85e9ac9781bbaab17e5001055399ecd14b2a31077475734b6a6ccc7e668250e02200d6649e3deea9ca557aa897a32312aed841c56d94d095062c390b718f83e4ea0012102eea5cb67d3c756c1de57f503d4899d9560f1c689c38dfa9339d8020c04cf60e6ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706a3072646a716337180b22186170706c69636174696f6e2f6f637465742d73747265616d32303f3b7f11e1ab2ce9c763196d320ec2b73bb7a9acad3f98cea94a37ccce30caa28bba70bb3931d521865c614e9012d88e6d7576a914e88e2124fffc9da0cfd28a92a92670443b4376b188ace0b46217000000001976a9143347a928ed9f8ad71955c09ecfa305efe4590cbe88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgTdmr4kSe4jjBaQZwE3ar4Kb7XcZBqmZT\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1561485090,\n \"txid\": \"62a6d649879ce6a35a33265b8a9421faf24fd1e40457fdcdb4753d7eb7de6e0f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n2ibKtRbM8hdvp5EafkSAHBxbpBJ2CWWEV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"74c583fc2e08061d6c32152cbdb86b09c483d3fc\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"a-new-stream\",\n \"normalized_name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://a-new-stream#74c583fc2e08061d6c32152cbdb86b09c483d3fc\",\n \"timestamp\": null,\n \"txid\": \"075ecb8118f2fe73a34683b574bb1be7a13d915ab14f3917a72c1d7e57abca1a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj0rdjqc7\",\n \"sd_hash\": \"3f3b7f11e1ab2ce9c763196d320ec2b73bb7a9acad3f98cea94a37ccce30caa28bba70bb3931d521865c614e9012d88e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mkC6bv4hVXEKkjYzbHrZAJ6iZxHU7kyspa\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"075ecb8118f2fe73a34683b574bb1be7a13d915ab14f3917a72c1d7e57abca1a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"075ecb8118f2fe73a34683b574bb1be7a13d915ab14f3917a72c1d7e57abca1a\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpoaodn53k\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpoaodn53k",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpoaodn53k\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001982e42647211b173408afa981022eba39ad37dd3af02adbbdbbbeeacf1264e47010000006b483045022100fe0ed627da7753b064ab5f105e1c96e2a9b421bc06507a33cf93fc4aeadd78e40220292679d815306c6cddccc02ddc78afee4244f5c397e97155ce106c805a542939012103624df3c8ad604cf580e3961b92cf2ddcc550b056d68cc59711f98bb2787b8b63ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706f616f646e35336b180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a586f76b0448807ffc4c620d73eba0472e1f9ddf65e25dee0b4fadabb371300aadc9ec6f9df51dc17b5775a8a7a013e96d7576a914deecc1b5bc5a7035d2011bcaf8e8da85f6f42bd188ace0b46217000000001976a914f159d3ab7d8917b22b68fcd95084ba80c59e852c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1C7SV6XSvTgHK84pMQ23KZLszCsm53T3Q\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1565587608,\n \"txid\": \"474e26f1aceebbdbbbad02afd37dd39aa3eb221098fa8a4073b1117264422e98\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n1qfvnMjq54N8VZ6Lo9PHJqZnURANLnhuG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34e0cf03b59adf21fc691267905e92cccbf61867\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"a-new-stream\",\n \"normalized_name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://a-new-stream#34e0cf03b59adf21fc691267905e92cccbf61867\",\n \"timestamp\": null,\n \"txid\": \"b320bd3bc3fd2d17959326f012e188c3cf7a9bc4080acab98aa88fcb896c401b\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoaodn53k\",\n \"sd_hash\": \"a586f76b0448807ffc4c620d73eba0472e1f9ddf65e25dee0b4fadabb371300aadc9ec6f9df51dc17b5775a8a7a013e9\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n3X6kZcWxner6175XwQ32SwHBTFTMRiw7T\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"b320bd3bc3fd2d17959326f012e188c3cf7a9bc4080acab98aa88fcb896c401b\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"b320bd3bc3fd2d17959326f012e188c3cf7a9bc4080acab98aa88fcb896c401b\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -235,10 +241,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Resolve a claim",
|
||||
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#5d64500fb723eded83a41b0d5055f1783f019191\"]}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet resolve astream#5d64500fb723eded83a41b0d5055f1783f019191",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#5d64500fb723eded83a41b0d5055f1783f019191\"]}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#5d64500fb723eded83a41b0d5055f1783f019191\": {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7/astream#5\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1561485090,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"short_url\": \"lbry://astream#5\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1561485089,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"short_url\": \"lbry://@channel#7\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1561485090,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#68fde0328b1a267b3815ce974a6329b159619092\"]}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet resolve astream#68fde0328b1a267b3815ce974a6329b159619092",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#68fde0328b1a267b3815ce974a6329b159619092\"]}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#68fde0328b1a267b3815ce974a6329b159619092\": {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c/astream#6\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1565587608,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"short_url\": \"lbry://astream#6\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1565587607,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"short_url\": \"lbry://@channel#c\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1565587608,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -253,14 +259,14 @@
|
||||
"name": "status",
|
||||
"description": "Get daemon status",
|
||||
"arguments": [],
|
||||
"returns": "(dict) lbrynet-daemon status\n {\n 'installation_id': (str) installation id - base58,\n 'is_running': (bool),\n 'skipped_components': (list) [names of skipped components (str)],\n 'startup_status': { Does not include components which have been skipped\n 'blob_manager': (bool),\n 'blockchain_headers': (bool),\n 'database': (bool),\n 'dht': (bool),\n 'exchange_rate_manager': (bool),\n 'hash_announcer': (bool),\n 'peer_protocol_server': (bool),\n 'stream_manager': (bool),\n 'upnp': (bool),\n 'wallet': (bool),\n },\n 'connection_status': {\n 'code': (str) connection status code,\n 'message': (str) connection status message\n },\n 'blockchain_headers': {\n 'downloading_headers': (bool),\n 'download_progress': (float) 0-100.0\n },\n 'wallet': {\n 'blocks': (int) local blockchain height,\n 'blocks_behind': (int) remote_height - local_height,\n 'best_blockhash': (str) block hash of most recent block,\n 'is_encrypted': (bool),\n 'is_locked': (bool),\n },\n 'dht': {\n 'node_id': (str) lbry dht node id - hex encoded,\n 'peers_in_routing_table': (int) the number of peers in the routing table,\n },\n 'blob_manager': {\n 'finished_blobs': (int) number of finished blobs in the blob manager,\n 'connections': {\n 'incoming_bps': {\n <source ip and tcp port>: (int) bytes per second received,\n },\n 'outgoing_bps': {\n <destination ip and tcp port>: (int) bytes per second sent,\n },\n 'total_outgoing_mps': (float) megabytes per second sent,\n 'total_incoming_mps': (float) megabytes per second received,\n 'time': (float) timestamp\n }\n },\n 'hash_announcer': {\n 'announce_queue_size': (int) number of blobs currently queued to be announced\n },\n 'stream_manager': {\n 'managed_files': (int) count of files in the stream manager,\n },\n 'upnp': {\n 'aioupnp_version': (str),\n 'redirects': {\n <TCP | UDP>: (int) external_port,\n },\n 'gateway': (str) manufacturer and model,\n 'dht_redirect_set': (bool),\n 'peer_redirect_set': (bool),\n 'external_ip': (str) external ip address,\n }\n }",
|
||||
"returns": "(dict) lbrynet-daemon status\n {\n 'installation_id': (str) installation id - base58,\n 'is_running': (bool),\n 'skipped_components': (list) [names of skipped components (str)],\n 'startup_status': { Does not include components which have been skipped\n 'blob_manager': (bool),\n 'blockchain_headers': (bool),\n 'database': (bool),\n 'dht': (bool),\n 'exchange_rate_manager': (bool),\n 'hash_announcer': (bool),\n 'peer_protocol_server': (bool),\n 'stream_manager': (bool),\n 'upnp': (bool),\n 'wallet': (bool),\n },\n 'connection_status': {\n 'code': (str) connection status code,\n 'message': (str) connection status message\n },\n 'blockchain_headers': {\n 'downloading_headers': (bool),\n 'download_progress': (float) 0-100.0\n },\n 'wallet': {\n 'blocks': (int) local blockchain height,\n 'blocks_behind': (int) remote_height - local_height,\n 'best_blockhash': (str) block hash of most recent block,\n 'is_encrypted': (bool),\n 'is_locked': (bool),\n 'connected_servers': (list) [\n {\n 'host': (str) server hostname,\n 'port': (int) server port,\n 'latency': (int) milliseconds\n }\n ],\n },\n 'dht': {\n 'node_id': (str) lbry dht node id - hex encoded,\n 'peers_in_routing_table': (int) the number of peers in the routing table,\n },\n 'blob_manager': {\n 'finished_blobs': (int) number of finished blobs in the blob manager,\n 'connections': {\n 'incoming_bps': {\n <source ip and tcp port>: (int) bytes per second received,\n },\n 'outgoing_bps': {\n <destination ip and tcp port>: (int) bytes per second sent,\n },\n 'total_outgoing_mps': (float) megabytes per second sent,\n 'total_incoming_mps': (float) megabytes per second received,\n 'time': (float) timestamp\n }\n },\n 'hash_announcer': {\n 'announce_queue_size': (int) number of blobs currently queued to be announced\n },\n 'stream_manager': {\n 'managed_files': (int) count of files in the stream manager,\n },\n 'upnp': {\n 'aioupnp_version': (str),\n 'redirects': {\n <TCP | UDP>: (int) external_port,\n },\n 'gateway': (str) manufacturer and model,\n 'dht_redirect_set': (bool),\n 'peer_redirect_set': (bool),\n 'external_ip': (str) external ip address,\n }\n }",
|
||||
"examples": [
|
||||
{
|
||||
"title": "Get status",
|
||||
"curl": "curl -d'{\"method\": \"status\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet status",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"status\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"outgoing_bps\": {},\n \"time\": 174753.638136067,\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"8pS8Qp6ZV2azEgMT9MqurqFyEhGFgtR8L8UEbYbdGnCyvSrWEDU3ND4UZKG2iSzQ1f\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"blockchain_headers\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"c432cf5e38130f7a6611b18078d8a4160c20481122e34b53c6e26e4831bc06c2\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"is_encrypted\": false,\n \"is_locked\": false\n }\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"outgoing_bps\": {},\n \"time\": 701000.371205916,\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"7F6p1BEhFXF8nDAuREvQApa4s4iTVY4FnPAD3Hz9hhhfZGGDixA6otzvVXbuAeKwV\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"blockchain_headers\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"be004973abe18bce798b4cd15ca2b2b684e84833a9b675ef660c214d46dbfecc\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected_servers\": [\n {\n \"host\": \"localhost\",\n \"latency\": 0,\n \"port\": 50002\n }\n ],\n \"is_encrypted\": false,\n \"is_locked\": false\n }\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -282,7 +288,7 @@
|
||||
"curl": "curl -d'{\"method\": \"version\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet version",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"version\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.38.0rc10\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.3\",\n \"torba_version\": \"0.5.7\"\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.38.7\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.4\",\n \"torba_version\": \"0.5.7\"\n }\n}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -330,10 +336,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Add an account from seed",
|
||||
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"admit whisper prosper true example brown sea sketch clarify pudding hen faith\", \"single_key\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account add \"new account\" --seed=\"admit whisper prosper true example brown sea sketch clarify pudding hen faith\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"admit whisper prosper true example brown sea sketch clarify pudding hen faith\", \"single_key\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1561485056.9625015,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfK8PpjVn9CX9dQbHu5cRhD6AB8kLNqJf7gckQYNRvtC4xawA34xQ7yQnUHkd6jwHCkZHVuY3s897sKyBHGGGWg8tokKkASU\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YnABiPANYcBGCS7E4QoLGWgwTendo773xAsX2wC27Now8iQZ2kKbSq6GUaSDTV714e3Qxfdwsqh1dnYwbzUboTCqBSZ53gg\",\n \"seed\": \"admit whisper prosper true example brown sea sketch clarify pudding hen faith\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"foil sudden option various minor little coyote dolphin crouch crime belt bread\", \"single_key\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account add \"new account\" --seed=\"foil sudden option various minor little coyote dolphin crouch crime belt bread\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"foil sudden option various minor little coyote dolphin crouch crime belt bread\", \"single_key\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1565587574.9123697,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdLfCBqeN8479gpUTYTm4KZjau4dYnkvMnquqU1KBPy3ueMmNQtwpPuesYacmYN9cmPSVrmGE2EwSXU5fsJHFKBVBDQ3Eh5i\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Wogz5VJxXTmGFqzPhnwxtsLNBafrD2ikdLAc6Q8maTfmpUpL1Qr4dPKD6a3weHuSGyQLBthZBSFK6efbhw3WnvVVfSaCPM6\",\n \"seed\": \"foil sudden option various minor little coyote dolphin crouch crime belt bread\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -352,23 +358,29 @@
|
||||
"type": "int",
|
||||
"description": "Only include transactions with this many confirmed blocks.",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "reserved_subtotals",
|
||||
"type": "bool",
|
||||
"description": "Include detailed reserved balances on claims, tips and supports.",
|
||||
"is_required": false
|
||||
}
|
||||
],
|
||||
"returns": "(decimal) amount of lbry credits in wallet",
|
||||
"examples": [
|
||||
{
|
||||
"title": "Get default account balance",
|
||||
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {}}' http://localhost:5279/",
|
||||
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"reserved_subtotals\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account balance",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"7.999876\"\n}"
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"reserved_subtotals\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"7.999876\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": null,\n \"total\": \"7.999876\"\n }\n}"
|
||||
},
|
||||
{
|
||||
"title": "Get balance for specific account by id",
|
||||
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account balance \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"2.0\"\n}"
|
||||
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"reserved_subtotals\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account balance \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"reserved_subtotals\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"2.0\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": null,\n \"total\": \"2.0\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -396,7 +408,7 @@
|
||||
"curl": "curl -d'{\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account create \"generated account\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1561485056.7929218,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfK8PpjVn9CX9dQbHu5cRhD6AB8kLNqJf7gckQYNRvtC4xawA34xQ7yQnUHkd6jwHCkZHVuY3s897sKyBHGGGWg8tokKkASU\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YnABiPANYcBGCS7E4QoLGWgwTendo773xAsX2wC27Now8iQZ2kKbSq6GUaSDTV714e3Qxfdwsqh1dnYwbzUboTCqBSZ53gg\",\n \"seed\": \"admit whisper prosper true example brown sea sketch clarify pudding hen faith\"\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1565587574.7207406,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdLfCBqeN8479gpUTYTm4KZjau4dYnkvMnquqU1KBPy3ueMmNQtwpPuesYacmYN9cmPSVrmGE2EwSXU5fsJHFKBVBDQ3Eh5i\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Wogz5VJxXTmGFqzPhnwxtsLNBafrD2ikdLAc6Q8maTfmpUpL1Qr4dPKD6a3weHuSGyQLBthZBSFK6efbhw3WnvVVfSaCPM6\",\n \"seed\": \"foil sudden option various minor little coyote dolphin crouch crime belt bread\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -479,24 +491,24 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Transfer 2 LBC from default account to specific account",
|
||||
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account fund --to_account=\"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\" --amount=2.0 --broadcast",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c0fc2691a44442cb2c1b48a27518be2ec79230a771ef1a7d1c9ce9b4f293a08f010000006a47304402203f2685e9fa15bd431e61d659e3abbc2d900f2ef04c15c1864456b449c068f55902205505b654acada67b154179f6329516212f9cf3df7fb39636a286121e540f87a80121031370fc0bbc4f99acf402e5d687e846666cc0e5d7467c83104874e238c6ee6d2dffffffff0200c2eb0b000000001976a91469dd5873a711b516c47a0227efda9132a805bb0288ac90d7ae2f000000001976a914ea36761adfb298e01c377eeeb93e3a03874f6de588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mjnGbmHPAUrnF2VmUqeDAZsSMHWbdmpfJ5\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1561485088,\n \"txid\": \"8fa093f2b4e99c1c7d1aef71a73092c72ebe1875a2481b2ccb4244a49126fcc0\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqAiQYyqiqVWXaEYapnu5P49cnLvQdh11s\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"0e071fe12cfda37fb80dd634afb1a44bcb861e2de16009ad5628cc7f74776634\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n2sMeyyRYF5btHqQTa8Y5eitMZ6pGEKRoE\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"0e071fe12cfda37fb80dd634afb1a44bcb861e2de16009ad5628cc7f74776634\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"0e071fe12cfda37fb80dd634afb1a44bcb861e2de16009ad5628cc7f74776634\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account fund --to_account=\"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\" --amount=2.0 --broadcast",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001d5f84e6eef616038f89f66af0d896f60fb28d0ce25785a3a8621da9fd74fecc6010000006a473044022071f23813260351722e31d85103c0d51728603138cd95f28ac471e6e025639b750220171676c27072102f314a70f102e24b68b8cc5e674564d8a2c4cce80ba809ebaa012103958c4d66bdbc04f4550e365b3b0d4060d4a58a35781c405c31f132d52510ee1fffffffff0200c2eb0b000000001976a914cc1a7b81fed46296749fca09ed76da07b3c0294688ac90d7ae2f000000001976a914d0d944552d385c36088c3c274ef4882821dc295088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtHro6eY7d3n5JTM8tazct7DDRbJCUH2CX\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1565587606,\n \"txid\": \"c6ec4fd79fda21863a5a7825ced028fb606f890daf669ff8386061ef6e4ef8d5\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mz89sDjvPSJC4EUf8ssQm1wm2MfE5XtJYB\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"0295fc060686b1872040214dabead8a042edbcc3a00f79580c27777841f5c504\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mzZF7vd3tBgh9u5tZcX2K4e4DipLzxt6d2\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"0295fc060686b1872040214dabead8a042edbcc3a00f79580c27777841f5c504\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"0295fc060686b1872040214dabead8a042edbcc3a00f79580c27777841f5c504\"\n }\n}"
|
||||
},
|
||||
{
|
||||
"title": "Spread LBC between multiple addresses",
|
||||
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"from_account\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account fund --to_account=\"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\" --from_account=\"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\" --amount=1.5 --outputs=2 --broadcast",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"from_account\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001346677747fcc2856ad0960e12d1e86cb4ba4b1af34d60db87fa3fd2ce11f070e000000006b483045022100f03612c9d7c7e011b8f1cb72726cf1f4fb7b9841c0a353df3af355ce299b5ce2022049a9bd4e5c2708c8f13218610b30ad1948e742e6afb892c92ce6577aba44af6001210342bb0577c9c1f33257bcd8bfb791b3cf8f4dae24d37e0a2e17b8a8cc6d446a76ffffffff03c0687804000000001976a9148f7781bf51d1a0f5f75f498ebeb742c0b556cca388acc0687804000000001976a9148f7781bf51d1a0f5f75f498ebeb742c0b556cca388ac6cb9fa02000000001976a91426551ba83e54370b9bfe7e00f950d9b0e63bc40788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqAiQYyqiqVWXaEYapnu5P49cnLvQdh11s\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1561485089,\n \"txid\": \"0e071fe12cfda37fb80dd634afb1a44bcb861e2de16009ad5628cc7f74776634\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mtbY5xxTz94srMVzLYHZQZvfDGCub8xfTR\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"f3ecdfab319d402d18e3b83ecff474c80b787ac10b79d8542c81ed10040e6202\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mtbY5xxTz94srMVzLYHZQZvfDGCub8xfTR\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"f3ecdfab319d402d18e3b83ecff474c80b787ac10b79d8542c81ed10040e6202\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mj1dvkfJo289BLRNevo2j7kiFsJcYSdQtv\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"f3ecdfab319d402d18e3b83ecff474c80b787ac10b79d8542c81ed10040e6202\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"f3ecdfab319d402d18e3b83ecff474c80b787ac10b79d8542c81ed10040e6202\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"from_account\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account fund --to_account=\"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\" --from_account=\"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\" --amount=1.5 --outputs=2 --broadcast",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"from_account\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000104c5f5417877270c58790fa0c3bced42a0d8eaab4d21402087b1860606fc9502000000006a47304402201459cd01251fc2750e9c83a3bbdd3de9cb5957e854590ddc47abc553a2f5d6be02203531aea3e6c076e6a08f28522c922eee0052e18fc4e1bf0da24dcdb33a3a43f3012102d231cd354ed3c2b299a7fd1abf77c4ab67d23f5e72739ee5ca26f2dc5737cc6cffffffff03c0687804000000001976a914be409698cb18d21048c6dca40c68fe7c0681c9fd88acc0687804000000001976a914be409698cb18d21048c6dca40c68fe7c0681c9fd88ac6cb9fa02000000001976a914cc1a7b81fed46296749fca09ed76da07b3c0294688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mz89sDjvPSJC4EUf8ssQm1wm2MfE5XtJYB\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1565587607,\n \"txid\": \"0295fc060686b1872040214dabead8a042edbcc3a00f79580c27777841f5c504\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxrv4B1aGmVMitNA2heEDr62sAGdyYA8ZZ\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"5e610622fdb215cdeb29abdcb2d8835e4049dd7a488b5df3f181051a7daf6a86\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxrv4B1aGmVMitNA2heEDr62sAGdyYA8ZZ\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"5e610622fdb215cdeb29abdcb2d8835e4049dd7a488b5df3f181051a7daf6a86\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mz89sDjvPSJC4EUf8ssQm1wm2MfE5XtJYB\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"5e610622fdb215cdeb29abdcb2d8835e4049dd7a488b5df3f181051a7daf6a86\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"5e610622fdb215cdeb29abdcb2d8835e4049dd7a488b5df3f181051a7daf6a86\"\n }\n}"
|
||||
},
|
||||
{
|
||||
"title": "Transfer all LBC to a specified account",
|
||||
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account fund --from_account=\"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\" --everything --broadcast",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"everything\": true, \"broadcast\": true}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000302620e0410ed812c54d8790bc17a780bc874f4cf3eb8e3182d409d31abdfecf3000000006a4730440220294fb6a9c2e72a48559546018a47b9809b6203d6557087fcb67836b8912c85dd0220186097a96551a014bfd997884dfaa15b6988adae64b723e5add723727ff1298801210337b6117f3a5fc40820b936e4b228d2576ce2f9a70a91228f71e6a967592572fcffffffff02620e0410ed812c54d8790bc17a780bc874f4cf3eb8e3182d409d31abdfecf3010000006a47304402203e6012c10ce76236b3685202ef4fe9ae6ce24ffd2b7f5648af5ba88d9f3ac56b022009ced72bc1ae82bf89acc2abe0b8e850467dd2814d680fd8a81dffce02a54f0901210337b6117f3a5fc40820b936e4b228d2576ce2f9a70a91228f71e6a967592572fcffffffff02620e0410ed812c54d8790bc17a780bc874f4cf3eb8e3182d409d31abdfecf3020000006b483045022100c75caa1826ede730b253d751ebd2164d40c74fb4724bc7d4d9a200325fefe7e70220262c74bcfacb214aa781d80775e39d35a396c1dda4453ddb470fc6cc0c3fb3c101210296295f9ab2bff497ac1e64d012d45d4d48a8f3bc8e926febacfe1d5e1a9cd01effffffff015027eb0b000000001976a914d15a521046fc425e25444798485573df4d2401ba88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtbY5xxTz94srMVzLYHZQZvfDGCub8xfTR\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1561485089,\n \"txid\": \"f3ecdfab319d402d18e3b83ecff474c80b787ac10b79d8542c81ed10040e6202\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mtbY5xxTz94srMVzLYHZQZvfDGCub8xfTR\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1561485089,\n \"txid\": \"f3ecdfab319d402d18e3b83ecff474c80b787ac10b79d8542c81ed10040e6202\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mj1dvkfJo289BLRNevo2j7kiFsJcYSdQtv\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1561485089,\n \"txid\": \"f3ecdfab319d402d18e3b83ecff474c80b787ac10b79d8542c81ed10040e6202\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzbuijFAnVGiEKWb9n24hcrUgdxauR3i83\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"c5e686d1617e9bc0ee1d4d14e1b7f211985db09c839e307a7876b1df1acfd15d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"c5e686d1617e9bc0ee1d4d14e1b7f211985db09c839e307a7876b1df1acfd15d\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account fund --from_account=\"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\" --everything --broadcast",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"everything\": true, \"broadcast\": true}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003866aaf7d1a0581f1f35d8b487add49405e83d8b2dcab29ebcd15b2fd2206615e000000006b483045022100a6eb574aa0826f6a2943549835f68e6da03d6fe005f66989f4fdc4b5a87a42af022019269d1ffa052179326fe9ea336ece04a8321eb543a99248126d1f7f3976c7a8012103eae283e24169f92a68ccc2c9aefed407c144af652c3fe5f4f5df95d69b01c427ffffffff866aaf7d1a0581f1f35d8b487add49405e83d8b2dcab29ebcd15b2fd2206615e010000006b483045022100f07f0f7e2174e12dd75d649ffba4291ac5aac9705f0d3498e291c262abed9fa6022004a75bc29cbe593e3156ec5fc162e1ec61fd96e0870ed788de808b0babeb5064012103eae283e24169f92a68ccc2c9aefed407c144af652c3fe5f4f5df95d69b01c427ffffffff866aaf7d1a0581f1f35d8b487add49405e83d8b2dcab29ebcd15b2fd2206615e020000006a47304402207d3881bad363a319b9dc7a95c9e72863cd517460d5d9d537c0cee3a66bdbf58a022024d658e7103fe09b99886c41df404982894a698eaf10fca61e40a18910b78586012102d231cd354ed3c2b299a7fd1abf77c4ab67d23f5e72739ee5ca26f2dc5737cc6cffffffff015027eb0b000000001976a91471fcf6203f6070ab92a123cd4db621933ec98f8588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxrv4B1aGmVMitNA2heEDr62sAGdyYA8ZZ\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1565587607,\n \"txid\": \"5e610622fdb215cdeb29abdcb2d8835e4049dd7a488b5df3f181051a7daf6a86\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxrv4B1aGmVMitNA2heEDr62sAGdyYA8ZZ\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1565587607,\n \"txid\": \"5e610622fdb215cdeb29abdcb2d8835e4049dd7a488b5df3f181051a7daf6a86\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mz89sDjvPSJC4EUf8ssQm1wm2MfE5XtJYB\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1565587607,\n \"txid\": \"5e610622fdb215cdeb29abdcb2d8835e4049dd7a488b5df3f181051a7daf6a86\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqufgoJUGVmpBPShNwTYNrAa34mYcS2BAZ\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"8031b6e9e96d47669b502810414618430bc3589ffb2e9fd18a130692842909cd\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"8031b6e9e96d47669b502810414618430bc3589ffb2e9fd18a130692842909cd\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -536,7 +548,7 @@
|
||||
"curl": "curl -d'{\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account list",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mvuCTbTWTnF7u2vh3raaxSuR8Rd4hPGqs9\",\n \"is_default\": true,\n \"name\": \"Account #mvuCTbTWTnF7u2vh3raaxSuR8Rd4hPGqs9\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XQhwsZYqxyH3vVf4MHQoiF2xXS2xcmGC2Ejbvq5X7S3onhZhMH7c4pgbJiFPX8C36HWwFgHUaZygQeXKJWsyaAWWzYqWSJm\",\n \"satoshis\": 1000000000\n }\n ]\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"miXe7ZYokTt1eKNnrf1FtgQHoK4fPCkjuR\",\n \"is_default\": true,\n \"name\": \"Account #miXe7ZYokTt1eKNnrf1FtgQHoK4fPCkjuR\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WdMUNwhAxYY17XGDHf8BmBaqLcoX8Ykr879yEy8TpvzeC9GFvjZTfAd7cxF5epgfoBBK63DsdKgHW4aR4WF7aNLpKsx2nM7\",\n \"satoshis\": 1000000000\n }\n ]\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -583,10 +595,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Remove an account",
|
||||
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account remove mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1561485056.7929218,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfK8PpjVn9CX9dQbHu5cRhD6AB8kLNqJf7gckQYNRvtC4xawA34xQ7yQnUHkd6jwHCkZHVuY3s897sKyBHGGGWg8tokKkASU\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YnABiPANYcBGCS7E4QoLGWgwTendo773xAsX2wC27Now8iQZ2kKbSq6GUaSDTV714e3Qxfdwsqh1dnYwbzUboTCqBSZ53gg\",\n \"seed\": \"admit whisper prosper true example brown sea sketch clarify pudding hen faith\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account remove n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1565587574.7207406,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdLfCBqeN8479gpUTYTm4KZjau4dYnkvMnquqU1KBPy3ueMmNQtwpPuesYacmYN9cmPSVrmGE2EwSXU5fsJHFKBVBDQ3Eh5i\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Wogz5VJxXTmGFqzPhnwxtsLNBafrD2ikdLAc6Q8maTfmpUpL1Qr4dPKD6a3weHuSGyQLBthZBSFK6efbhw3WnvVVfSaCPM6\",\n \"seed\": \"foil sudden option various minor little coyote dolphin crouch crime belt bread\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -661,10 +673,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Modify maximum number of times a change address can be reused",
|
||||
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account set mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk --change_max_uses=10",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\", \"default\": false, \"change_max_uses\": 10}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 10\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1561485057.0708687,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfK8PpjVn9CX9dQbHu5cRhD6AB8kLNqJf7gckQYNRvtC4xawA34xQ7yQnUHkd6jwHCkZHVuY3s897sKyBHGGGWg8tokKkASU\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YnABiPANYcBGCS7E4QoLGWgwTendo773xAsX2wC27Now8iQZ2kKbSq6GUaSDTV714e3Qxfdwsqh1dnYwbzUboTCqBSZ53gg\",\n \"seed\": \"admit whisper prosper true example brown sea sketch clarify pudding hen faith\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet account set n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn --change_max_uses=10",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\", \"default\": false, \"change_max_uses\": 10}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 10\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1565587575.0091093,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdLfCBqeN8479gpUTYTm4KZjau4dYnkvMnquqU1KBPy3ueMmNQtwpPuesYacmYN9cmPSVrmGE2EwSXU5fsJHFKBVBDQ3Eh5i\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Wogz5VJxXTmGFqzPhnwxtsLNBafrD2ikdLAc6Q8maTfmpUpL1Qr4dPKD6a3weHuSGyQLBthZBSFK6efbhw3WnvVVfSaCPM6\",\n \"seed\": \"foil sudden option various minor little coyote dolphin crouch crime belt bread\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -714,9 +726,9 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Check if address is mine",
|
||||
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mzPzDUvLyZUKv2LmQdMZAmd4ZNm1Xxgf1z\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet address is_mine mzPzDUvLyZUKv2LmQdMZAmd4ZNm1Xxgf1z",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mzPzDUvLyZUKv2LmQdMZAmd4ZNm1Xxgf1z\"}}).json()",
|
||||
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mnQSixa4Pxn1udNR8HyBCdjC5TeBaq8TWN\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet address is_mine mnQSixa4Pxn1udNR8HyBCdjC5TeBaq8TWN",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mnQSixa4Pxn1udNR8HyBCdjC5TeBaq8TWN\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
|
||||
}
|
||||
]
|
||||
@@ -751,14 +763,14 @@
|
||||
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet address list",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"mjnGbmHPAUrnF2VmUqeDAZsSMHWbdmpfJ5\",\n \"mfsQtTpZgv9D1KzkgS6sgevuRD3TDpx4b8\",\n \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"msaGdm9gRuVwbRPW47pL41hjuiT7xo2vRd\",\n \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"n2aKiEgh36nK3xLr4C5vZzvj7hEuMhJWdb\",\n \"mfq8BbdBew1SdWUsK49XT863YobqKVheDy\",\n \"mzPzDUvLyZUKv2LmQdMZAmd4ZNm1Xxgf1z\",\n \"miLhR5kJLGVqi5Ss2VKT2Nxt4fToriqtX2\",\n \"mvrHAPqKaFJUVYXSqQS9MLWN7EHdAWArGJ\",\n \"mzZTN3wcKyqfLHL1bFAgGTqryHrJJshHPV\",\n \"mjgAKEpQjZVjvYsdHoRiucG6HfgTZxbfnD\",\n \"mkMSb7uWUMdGAQ3pnXjDgofyiVibmy2zw2\",\n \"n2ibKtRbM8hdvp5EafkSAHBxbpBJ2CWWEV\",\n \"mkaiNK23LKyWQqUxCYvk8KT1Bf7F5kccBV\",\n \"mr8ttV21zxBiiYeyHtWNfVo3dkgqJ9XtgP\",\n \"mvxcVQv1fJQGkJgCHxpRr15BzqKmTn9Jp2\",\n \"mmDrz35MC54Gqs12sxC48LcSsZiD6GRjvJ\",\n \"mq8DfGaa1vkw89tVaEaEgsQoHnkQdfwXBr\",\n \"mi9uQeFBjKe4EFze4gHvLVm9REepjj2qEm\",\n \"moXzxEEXj4nhGhnozbGGFqGXdEzysbDMHJ\",\n \"mgTdmr4kSe4jjBaQZwE3ar4Kb7XcZBqmZT\",\n \"moLhFf1vkeMKeMG3DAP1RTvbHDqSXha11K\",\n \"n2sMeyyRYF5btHqQTa8Y5eitMZ6pGEKRoE\",\n \"n2FNDLjvbu4dnW6pCtGKJN87PttvCeBWsR\",\n \"mwhWukDANoke2ikBrkj8u3kFdRh5YM2Xv7\",\n \"mzEZcphSw5ZUrEN3MpYmqRCEPBRS8iN34w\"\n ]\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"mwzLgEMMmoR18v3a9wycimU2HpH1C5zjuC\",\n \"mqufgoJUGVmpBPShNwTYNrAa34mYcS2BAZ\",\n \"mzZF7vd3tBgh9u5tZcX2K4e4DipLzxt6d2\",\n \"mq426NVsa1ktHvAxmzZGjiv6vr8JYkpWBR\",\n \"n19NX4hFThAvep5r78VhPh4rL9syV9WDrP\",\n \"mmP7gjMxMuixG5QWRku97zMaVp2YvmKwkA\",\n \"mtHro6eY7d3n5JTM8tazct7DDRbJCUH2CX\",\n \"mw78ij63SuKiP4PLKDXALWiXGyD5Wzoy9o\",\n \"mnjnSTckKVTLbFLjxWqpyerpHp8kB9vGvJ\",\n \"mrM93XmQAYUDH7Mw8E1JA4FFNgnAf8HR5C\",\n \"n1qfvnMjq54N8VZ6Lo9PHJqZnURANLnhuG\",\n \"my6rN6hjATred59RrMsADDPKjnetgZsUWA\",\n \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"mnQSixa4Pxn1udNR8HyBCdjC5TeBaq8TWN\",\n \"mk9QmTXDuQyUFkMhUvLrtyJhEksBXh1Azm\",\n \"mkHmFi637aQsZiYyjNSxXoBtHT9dyU924g\",\n \"mpQfor4a7VZ6AJkhUdA48pgEci4HoD7yz9\",\n \"mhPFLtT7YzmNfMuQYr4PQXAJdtaTKWRLFy\",\n \"mndiWiLpZa1v3WXtJKm1L9q93NysqCDvTU\",\n \"mucDX1B3gHcx791XgqFZCEbJSQ8pisdw8y\",\n \"mub8LSJ2vtxffDfKb2njq4ggVpDnNwzYBY\",\n \"mhnAE4ok1uVP5mkJaB5pn14Ni84aiX18rw\",\n \"n4HMxe8Q2kV3QKjs6cdixKEHdMHgFwtozB\",\n \"n1JZES3jZNKN93DjLJ6LgkYPmHFuPcZcPD\",\n \"my7Rw5wknudwjZn3obGMMaXPAe6wJcq9JN\",\n \"mqe7hTdNWrqTw2wANj4d5mxKqWBYixqxmL\"\n ]\n}"
|
||||
},
|
||||
{
|
||||
"title": "List addresses in specified account",
|
||||
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet address list --account_id=\"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mjy1nohNLnCRF9mcGM13RHwm4fPwp6hZDk\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"mkZ7dj4b1JzgEk1AbdaEKXRZMc3t1Qzz5s\",\n \"miLfQZNWVqDEDYz5fz2iKU9WryD883bsu3\",\n \"mkTBCWDfCkmBWY3GCxfPzLzv1nPrj42g9i\",\n \"mhxiYAHjBy565rG4utN5N7sqyfNedA8gMj\",\n \"mqAiQYyqiqVWXaEYapnu5P49cnLvQdh11s\",\n \"mfXqWw7JwDTjYS2RFPHQRRidRKh8kBQuDA\",\n \"mveVkYXt4i79j8LyVNmSQJRPbiC3D7qfUn\",\n \"n2FP55ZGxWni8yXXRkayaGtKjjCPgjosUg\",\n \"mjUP3SWW5xSQePxyvBJEojThw53p3stPGz\",\n \"mw9wNMarhPNHJZ3WpVYmQBwwSt6RHkKBaE\",\n \"mh7e4ooAELtxhKjtDLkw2GZMdefM8DSgWT\",\n \"mvQ8JJQ892fZugZNpKcQaTRry75GceWo41\",\n \"mySo8Q8qF66jan5ma2jsvkjjf7BNWyPUo8\",\n \"mppmfdJ3EwHNXRdf4qcEN48TQ2ydE9jjSH\",\n \"mwrS4yFmX5Na1cPRoQUWVBNhEpLh63Bn5j\",\n \"mqY3oET1RoUVT7VQPYjBX2atwbUZ43XSoT\",\n \"moCXqVgoM5EGyoxC9nZL6dkabSjE1TcTNu\",\n \"mvPxFaNfj6Ynp5bmVMtZzPiN27q8AvmmVS\",\n \"mr43PzgGuS1FxCbSjfKNdXsqxZV6hjawt3\",\n \"myuyATCL66mckzXzpiFzcFGQbzdYiQjLdt\",\n \"mrzft5H9sA6crxC7kzEUNBJiWzzAS3wKKH\",\n \"mnUVBfAM4BwEQq8fwJ7xuZgARrqkJwJhLc\",\n \"myvpjybXe9sV9bdAZX5uun7mk9tt8HDFrJ\",\n \"mvWm7QzWcD33rn5VZaQNzvWh89VZGYVpbd\",\n \"mzer6QqsQnsUZKYoCrrqVbQumXajXxbpzJ\",\n \"mhCtYeSBpXoQuEUitEeZjUpjRjje6LZmSL\"\n ]\n}"
|
||||
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet address list --account_id=\"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"n4S3djVrHvwjSyGvbqsJQRbMxz34ivbEmn\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"mwbmGcWxWP62u8WJL1sabaDUrRWgfvZnDJ\",\n \"n4H8Bq2pqGaMYcLVUB4RnySHuQYHebehYF\",\n \"n17pcmUBzURU1iLPn3gJ2TjkobTRKEkjeg\",\n \"mg4cT3trLybfa1kiKi7pWmAPQiSDRjvqnv\",\n \"mnN6tv9823EM2H2TLs4iKUirbzHRe31Gzn\",\n \"mpoHe8Efc7DMqjj7ZDHR9KmLDDNgUEiEji\",\n \"n16ExP69CXjmrcLGjE4RB6BWnKpnxyJqpa\",\n \"n1kjh2tsLf9s7q1frrqjaBoD42SNe12cJX\",\n \"n1Fa3zdSYy4T7p6348FWVzXxvdU1taWYVU\",\n \"mvZau2hafjNSf2Foit4PTmnFsHEug2aRqs\",\n \"mj4tVqn9EEkbodxvD9WBMms4ZJL5eiKExX\",\n \"mg7MQFATWXeASZSqK7LjXMnbmE5mirtUU6\",\n \"mwzd69pjQGZgC17L5Eth5nHQf468oP82wS\",\n \"mxfbMjeJVDgbTRVNYxGqcMGFoUKdczARmU\",\n \"mxU51ochtL3GwcfvgSuiUEY21EAvctJPJB\",\n \"mvQ1dMX2dJQ2z6rAfwGPoxeokfeRFGUeHC\",\n \"mnQWsVSPR23HNYzA5zsGTq6DYGgyYCVNZE\",\n \"mqDZzEr6tFypg9eMuqBjmcgJTzDARBFp5g\",\n \"mumE7zottnv24kMgZ37Mz5M73g4vpVyaGG\",\n \"mwQLh4tXmAsaowdAjr68UwRmHyT3nCZMaJ\",\n \"msFLpTJ8FoEMNrELSzLahsAFDFmhKhfrSc\",\n \"mz89sDjvPSJC4EUf8ssQm1wm2MfE5XtJYB\",\n \"mrm5Dnn65ByyVkVUntm13xQMAopZNPR6Us\",\n \"mxrv4B1aGmVMitNA2heEDr62sAGdyYA8ZZ\",\n \"mmXPQxvNkdYT8nsgiRAJyH9VitDRVMQk89\",\n \"msea7s76C8FvDW9wQwc2bowo54oZRncMvq\"\n ]\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -780,7 +792,7 @@
|
||||
"curl": "curl -d'{\"method\": \"address_unused\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet address unused",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_unused\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mzPzDUvLyZUKv2LmQdMZAmd4ZNm1Xxgf1z\"\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mnQSixa4Pxn1udNR8HyBCdjC5TeBaq8TWN\"\n}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -830,10 +842,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Delete a blob",
|
||||
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"d4595a73a829c2a567a25ee1fa7ced42ae4d2d5fccc19126f01b8518537a386b6d20d611b35278afe6a5e193a762cd8c\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet blob delete d4595a73a829c2a567a25ee1fa7ced42ae4d2d5fccc19126f01b8518537a386b6d20d611b35278afe6a5e193a762cd8c",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"d4595a73a829c2a567a25ee1fa7ced42ae4d2d5fccc19126f01b8518537a386b6d20d611b35278afe6a5e193a762cd8c\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted d4595a73a829c2a567a25ee1fa7ced42ae4d2d5fccc19126f01b8518537a386b6d20d611b35278afe6a5e193a762cd8c\"\n}"
|
||||
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"fdf95e94ef232c7c2e054d5e306cbedccea2b37fc35c618c3f6ea7d6cc23009acd837b30cd13796d3ef269085fea32f4\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet blob delete fdf95e94ef232c7c2e054d5e306cbedccea2b37fc35c618c3f6ea7d6cc23009acd837b30cd13796d3ef269085fea32f4",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"fdf95e94ef232c7c2e054d5e306cbedccea2b37fc35c618c3f6ea7d6cc23009acd837b30cd13796d3ef269085fea32f4\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted fdf95e94ef232c7c2e054d5e306cbedccea2b37fc35c618c3f6ea7d6cc23009acd837b30cd13796d3ef269085fea32f4\"\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -911,7 +923,7 @@
|
||||
"curl": "curl -d'{\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet blob list",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"d4595a73a829c2a567a25ee1fa7ced42ae4d2d5fccc19126f01b8518537a386b6d20d611b35278afe6a5e193a762cd8c\",\n \"609e824398f24b7420f1febfc04e1a237364e4ed00fe46a1e936c3ee4926717e4c86ba66708cb78cb1c0c9d68f488396\",\n \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"29d60d4ba62d33a280f448584fd825539f794943625101bd633b63b8f83c2e378a62765ca2e1a05dd720e762881519c2\"\n ]\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"fdf95e94ef232c7c2e054d5e306cbedccea2b37fc35c618c3f6ea7d6cc23009acd837b30cd13796d3ef269085fea32f4\",\n \"eda7090b2d59beb0d77de489961cb73bbc73bbbb80d2c3c0e5f547b8c07dc0eded9627ce12872ca86a20a51d54ae3c4b\",\n \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"ab5849f4cd7430dcb6dc98ca0146106501878353b1441cd609b568291e7428aa091610fc247e3aee04cd81951f80d19a\"\n ]\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -986,10 +998,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Abandon a channel claim",
|
||||
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet channel abandon 7ed794458d57978c49572424e1d32c7fa4d5325e",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\", \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001faa6baadb0eb6080167de2226bab20cffb1426ea2e47f2d696280b9d3256720f000000006a47304402205287bb4f85eeb0f38defe91a27b871ff1b7ac94cda6e9885109f9d5ed6e03939022055dcf9daad53f145f464b8e5f6def71d564f3ebc99f882e1a7b0cd5d022b3e4d0121020cd9a5a73e65c43d276d79901f21b22d09f3872e97a9311ea27908142217f6f7ffffffff0134b7f505000000001976a914d4c63445bfef987db896a7835c90728ab7eb598888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzuzzC1LcwKoRaWEZcR2vcDaSxcakKTMR3\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"1384a1d6010d90d6d463cb63f1fe9b7cc8de70f62f62bf453c5a53cc05d85c22\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"1384a1d6010d90d6d463cb63f1fe9b7cc8de70f62f62bf453c5a53cc05d85c22\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet channel abandon cbf954c2782b7cf571f7aa1de960202057618727",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\", \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000019613e2232b6676e29e340a54cd53fa9a9dbec95a4ec106fcd545c67a4ec94f79000000006a47304402206ae5b5c2d22eaf29019546873b6da38d7fbaaa85d2093a7f322e635d807796f702205a08ed6e24fdfb00201f591d9fe634b0dd493b464c9b16467ad86e7ea96013c80121033e683269da2ff2bc9c6a05616cf1eb06f3bb9b5e4a32c6f1498518f19a7a1292ffffffff0134b7f505000000001976a91445692384c08e385350a46f067f3a5433463d67c888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mmqxsTY8u2AoV1hQANgfq7dZQ4MY11eWD8\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"5ada8d9e054ad68005ea1c30d86ba73585a97b6072c46ed73b7f7732866199e1\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"5ada8d9e054ad68005ea1c30d86ba73585a97b6072c46ed73b7f7732866199e1\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1078,7 +1090,13 @@
|
||||
{
|
||||
"name": "account_id",
|
||||
"type": "str",
|
||||
"description": "id of the account to store channel",
|
||||
"description": "account to use for holding the transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "funding_account_ids",
|
||||
"type": "list",
|
||||
"description": "ids of accounts to fund this transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
@@ -1104,17 +1122,17 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Create a channel claim without metadata",
|
||||
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet channel create @channel 1.0",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001346677747fcc2856ad0960e12d1e86cb4ba4b1af34d60db87fa3fd2ce11f070e010000006a4730440220183a3e4c2025f45b083bc970e3437fb3deb14891c2f877697c008d0f5ea8f482022049ac41eefb4c6700e39e78175c9c50f8133a2316663ec127cf4fb9d4aa8a30eb012102ca7e8b7efe7723f0a68d28f38c5b220af9e53f1bc2d344fb458ca527da67cf8affffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae26d7576a914f4f607e8d47646250a79cfc9e57059e6ca8bb56688acc462a029000000001976a91457f3a42422174d5eb185b5bf049869a01db287c988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2sMeyyRYF5btHqQTa8Y5eitMZ6pGEKRoE\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1561485089,\n \"txid\": \"0e071fe12cfda37fb80dd634afb1a44bcb861e2de16009ad5628cc7f74776634\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": null,\n \"txid\": \"50e9f458f59f7ddb51c13e956b178ac9457e00e36bddfe02f6f48079d3e3f896\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"moXzxEEXj4nhGhnozbGGFqGXdEzysbDMHJ\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"50e9f458f59f7ddb51c13e956b178ac9457e00e36bddfe02f6f48079d3e3f896\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"50e9f458f59f7ddb51c13e956b178ac9457e00e36bddfe02f6f48079d3e3f896\"\n }\n}"
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000104c5f5417877270c58790fa0c3bced42a0d8eaab4d21402087b1860606fc9502010000006a47304402204ced7e0755751c731dce1297d051f95b013871b0b413154932c866cd8b9fc76d0220797632aa02eddb30a8f990879e2380e3389cd27b0d486231af2f2a48c8ceb7060121020ed040533fd5b0e1d1d95abb0f471d7b3592ca27f6bd62630ce0c592d39df90affffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e3046d7576a914a1576d19273d6a725bba8c75d4741f5200ed77ba88acc462a029000000001976a914c72eeaa3cb165e05e17357f1162f072ddbf0312788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzZF7vd3tBgh9u5tZcX2K4e4DipLzxt6d2\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1565587607,\n \"txid\": \"0295fc060686b1872040214dabead8a042edbcc3a00f79580c27777841f5c504\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": null,\n \"txid\": \"81ea2238e59fcbe25d15d8a7a5ed1853b2461a047d268448cefbeb586c35352f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"myg8y3kBaKVSyuUWSmgXN56iY5iyMBXza9\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"81ea2238e59fcbe25d15d8a7a5ed1853b2461a047d268448cefbeb586c35352f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"81ea2238e59fcbe25d15d8a7a5ed1853b2461a047d268448cefbeb586c35352f\"\n }\n}"
|
||||
},
|
||||
{
|
||||
"title": "Create a channel claim with all metadata",
|
||||
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet channel create @bigchannel 1.0 --title=\"Big Channel\" --description=\"A channel with lots of videos.\" --email=\"creator@smallmedia.com\" --tags=music --tags=art --languages=pt-BR --languages=uk --locations=BR --locations=UA::Kiyv --website_url=\"http://smallmedia.com\" --thumbnail_url=\"http://smallmedia.com/logo.jpg\" --cover_url=\"http://smallmedia.com/logo.jpg\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001faa6baadb0eb6080167de2226bab20cffb1426ea2e47f2d696280b9d3256720f010000006a473044022061957aa9e53c7588f10eaf460686fd02ac447f91a5f5fc69b010a509ba7d99d802207be2706dd40cf990811ea5e1484502e29510c8c0d0b2368a79b2c6186f3002c90121039e6825507996b2a26d8f13aa036b7beaf1688dfa8d1323224ce52154183d3164ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a034200042b3464f5e174daad84a899552847c9af4a4577bfc9e867402aa30da9a966ab493f7c82c30642aaa5dcfbdeebe9f3ab021f09964ad93bfecb9b9e3cac7a35c9fe121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914cf1914f5cdcaf0d0ca01b53b7688dabea5cd9eb388ace221d305000000001976a9147d8fe8303a8d1506e3823e471e55ea128bfe637d88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2FNDLjvbu4dnW6pCtGKJN87PttvCeBWsR\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzPzDUvLyZUKv2LmQdMZAmd4ZNm1Xxgf1z\",\n \"amount\": \"1.0\",\n \"claim_id\": \"9d667ca2325a93dfbab993f4e22f63ce529eae92\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@bigchannel\",\n \"normalized_name\": \"@bigchannel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@bigchannel#9d667ca2325a93dfbab993f4e22f63ce529eae92\",\n \"timestamp\": null,\n \"txid\": \"aa003b09c9a280b34d3d790f7bca3a12a7b8f0473f476cc7bc81b3853acb8ab4\",\n \"type\": \"claim\",\n \"value\": {\n \"cover\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"description\": \"A channel with lots of videos.\",\n \"email\": \"creator@smallmedia.com\",\n \"languages\": [\n \"pt-BR\",\n \"uk\"\n ],\n \"locations\": [\n {\n \"country\": \"BR\"\n },\n {\n \"city\": \"Kiyv\",\n \"country\": \"UA\"\n }\n ],\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042b3464f5e174daad84a899552847c9af4a4577bfc9e867402aa30da9a966ab493f7c82c30642aaa5dcfbdeebe9f3ab021f09964ad93bfecb9b9e3cac7a35c9fe\",\n \"public_key_id\": \"mxN41g7KAmKtMbA1b25XgVWASvYVvKEcVW\",\n \"tags\": [\n \"music\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"title\": \"Big Channel\",\n \"website_url\": \"http://smallmedia.com\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mrxs9s9nJgdvS6qW2ca4yr5UY6RkWS5zk9\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"aa003b09c9a280b34d3d790f7bca3a12a7b8f0473f476cc7bc81b3853acb8ab4\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"aa003b09c9a280b34d3d790f7bca3a12a7b8f0473f476cc7bc81b3853acb8ab4\"\n }\n}"
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000019613e2232b6676e29e340a54cd53fa9a9dbec95a4ec106fcd545c67a4ec94f79010000006a473044022022a7418c87d93c0ec797848349b95acaa3e50ae740706940934aeab3076564300220297a6c913f43b6c1405b097ce2e98ace59eec82470e63d6cd5a0e59a05076069012103685aa1350bd3454aaa469ad31e54c9d1aa5461fda343a96aca78e773f7a08b19ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a03420004302494206e748d6062dc11249aae7ad32a19928a85720723f6d7938c413daccab152f5577a9506066237a0453531645c4d2be7bdf950cba650e4be5bc61dfa04121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a9144b8db34e9113f54c681086797b664b4ed33649e788ace221d305000000001976a914cdd2a5b42610fc0182b882c47aca759dd59e7ece88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n19NX4hFThAvep5r78VhPh4rL9syV9WDrP\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mnQSixa4Pxn1udNR8HyBCdjC5TeBaq8TWN\",\n \"amount\": \"1.0\",\n \"claim_id\": \"66dbad60875d8995f9429057d71a5171d7850dec\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@bigchannel\",\n \"normalized_name\": \"@bigchannel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@bigchannel#66dbad60875d8995f9429057d71a5171d7850dec\",\n \"timestamp\": null,\n \"txid\": \"1a11ffa76a74be172696239f26ef267fca420b199c0bf8a9831152b83f86f8e3\",\n \"type\": \"claim\",\n \"value\": {\n \"cover\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"description\": \"A channel with lots of videos.\",\n \"email\": \"creator@smallmedia.com\",\n \"languages\": [\n \"pt-BR\",\n \"uk\"\n ],\n \"locations\": [\n {\n \"country\": \"BR\"\n },\n {\n \"city\": \"Kiyv\",\n \"country\": \"UA\"\n }\n ],\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004302494206e748d6062dc11249aae7ad32a19928a85720723f6d7938c413daccab152f5577a9506066237a0453531645c4d2be7bdf950cba650e4be5bc61dfa04\",\n \"public_key_id\": \"mwx9vaUSKMxVkGCYWdZmxx6P6PF4zPNFMq\",\n \"tags\": [\n \"music\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"title\": \"Big Channel\",\n \"website_url\": \"http://smallmedia.com\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mzHFAQfgBr1QpQr8YSMpJFg54vkhwU2WoB\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1a11ffa76a74be172696239f26ef267fca420b199c0bf8a9831152b83f86f8e3\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"1a11ffa76a74be172696239f26ef267fca420b199c0bf8a9831152b83f86f8e3\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1188,14 +1206,14 @@
|
||||
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet channel list",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"50e9f458f59f7ddb51c13e956b178ac9457e00e36bddfe02f6f48079d3e3f896\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"81ea2238e59fcbe25d15d8a7a5ed1853b2461a047d268448cefbeb586c35352f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}"
|
||||
},
|
||||
{
|
||||
"title": "Paginate your channel claims",
|
||||
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet channel list --page=1 --page_size=20",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"50e9f458f59f7ddb51c13e956b178ac9457e00e36bddfe02f6f48079d3e3f896\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"81ea2238e59fcbe25d15d8a7a5ed1853b2461a047d268448cefbeb586c35352f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1302,7 +1320,13 @@
|
||||
{
|
||||
"name": "account_id",
|
||||
"type": "str",
|
||||
"description": "id of the account to store channel",
|
||||
"description": "account to use for holding the transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "funding_account_ids",
|
||||
"type": "list",
|
||||
"description": "ids of accounts to fund this transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
@@ -1340,10 +1364,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Update a channel claim",
|
||||
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet channel update 7ed794458d57978c49572424e1d32c7fa4d5325e --title=\"New Channel\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000296f8e3d37980f4f602fedd6be3007e45c98a176b953ec151db7d9ff558f4e950000000006a473044022061d6150bc3b011aaea76878575017c4e5eb21fac6b8a4cbbee9c085bd33587d50220488279fbf29cc4cbbedf4203082a16ae48b966181fea88d5d30e3627f28811730121020cd9a5a73e65c43d276d79901f21b22d09f3872e97a9311ea27908142217f6f7ffffffff5dd1cf1adfb176787a309e839cb05d9811f2b7e1144d1deec09b7e61d186e6c5000000006a47304402205b253336e35c39d7bee5e39508281043e4b463cf1ad1f76dc244ee869ef185b502205891abd1fa4c637b43ae19dde8857e9fb09627a173e84ba6bd96dfc1d154a087012103398d533373ab8881bb7a9e1060284ce9afd4e25fcca09d30fcf41da9b809ff11ffffffff0200e1f50500000000a6b708406368616e6e656c145e32d5a47f2cd3e1242457498c97578d4594d77e4c6a00125a0a583056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2420b4e6577204368616e6e656c6d6d76a914f4f607e8d47646250a79cfc9e57059e6ca8bb56688ac6ebeea0b000000001976a914e367f3d29e8b54f79c92ec2cf83a79ca5e04c60688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"50e9f458f59f7ddb51c13e956b178ac9457e00e36bddfe02f6f48079d3e3f896\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mzbuijFAnVGiEKWb9n24hcrUgdxauR3i83\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1561485089,\n \"txid\": \"c5e686d1617e9bc0ee1d4d14e1b7f211985db09c839e307a7876b1df1acfd15d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": null,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n2FNDLjvbu4dnW6pCtGKJN87PttvCeBWsR\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet channel update cbf954c2782b7cf571f7aa1de960202057618727 --title=\"New Channel\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000022f35356c58ebfbce4884267d041a46b25318eda5a7d8155de2cb9fe53822ea81000000006a47304402206fff2ae3c959730b57e5b003eeb90974bb8d1a6f7056ce590d0959be9430d7520220573010e8bd008d0a9a93bb20716a1eb396eba98700a0342bbca4e6fbe6e8d45d0121033e683269da2ff2bc9c6a05616cf1eb06f3bb9b5e4a32c6f1498518f19a7a1292ffffffffcd0929849206138ad19f2efb9f58c30b431846411028509b66476de9e9b63180000000006a473044022077467b92bb4fb1cc0710155978629591f861971b9004659349c258b6f39d50990220404af1a82bd4739d3e24ade370cd6989ba29b28834fc99b575854e1a223b5838012102d615d7b74f294ccd272353330d31fd5509651c164873a61f53b3fc07300aac3effffffff0200e1f50500000000a6b708406368616e6e656c1427876157202060e91daaf771f57c2b78c254f9cb4c6a00125a0a583056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304420b4e6577204368616e6e656c6d6d76a914a1576d19273d6a725bba8c75d4741f5200ed77ba88ac6ebeea0b000000001976a914d74d96016a44ba6ab6d4b8a64dcc51fb59601b7d88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"81ea2238e59fcbe25d15d8a7a5ed1853b2461a047d268448cefbeb586c35352f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqufgoJUGVmpBPShNwTYNrAa34mYcS2BAZ\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1565587607,\n \"txid\": \"8031b6e9e96d47669b502810414618430bc3589ffb2e9fd18a130692842909cd\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": null,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n19NX4hFThAvep5r78VhPh4rL9syV9WDrP\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\"\n }\n}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1382,14 +1406,14 @@
|
||||
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet claim list",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1561485090,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1565587608,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}"
|
||||
},
|
||||
{
|
||||
"title": "Paginate your claims",
|
||||
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet claim list --page=1 --page_size=20",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1561485090,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1565587608,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1429,13 +1453,13 @@
|
||||
},
|
||||
{
|
||||
"name": "channel_ids",
|
||||
"type": "str",
|
||||
"type": "list",
|
||||
"description": "claims signed by any of these channels (arguments must be claim ids of the channels), includes claims with invalid signatures, implies --has_channel_signature, use in conjunction with --valid_channel_signature",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "not_channel_ids",
|
||||
"type": "str",
|
||||
"type": "list",
|
||||
"description": "exclude claims signed by any of these channels (arguments must be claim ids of the channels)",
|
||||
"is_required": false
|
||||
},
|
||||
@@ -1651,9 +1675,15 @@
|
||||
},
|
||||
{
|
||||
"name": "order_by",
|
||||
"type": "str",
|
||||
"type": "list",
|
||||
"description": "field to order by, default is descending order, to do an ascending order prepend ^ to the field name, eg. '^amount' available fields: 'name', 'height', 'release_time', 'publish_time', 'amount', 'effective_amount', 'support_amount', 'trending_group', 'trending_mixed', 'trending_local', 'trending_global', 'activation_height'",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "no_totals",
|
||||
"type": "bool",
|
||||
"description": "do not calculate the total number of pages and items in result set (significant performance boost)",
|
||||
"is_required": false
|
||||
}
|
||||
],
|
||||
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ]\n }",
|
||||
@@ -1663,22 +1693,36 @@
|
||||
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet claim search --channel=@channel",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7/astream#5\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1561485090,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"short_url\": \"lbry://astream#5\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1561485089,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"short_url\": \"lbry://@channel#7\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1561485090,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c/astream#6\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1565587608,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"short_url\": \"lbry://astream#6\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1565587607,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"short_url\": \"lbry://@channel#c\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1565587608,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
||||
},
|
||||
{
|
||||
"title": "Search for claims matching a name",
|
||||
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet claim search --name=\"astream\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7/astream#5\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1561485090,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"short_url\": \"lbry://astream#5\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1561485089,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"short_url\": \"lbry://@channel#7\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1561485090,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c/astream#6\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1565587608,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"short_url\": \"lbry://astream#6\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1565587607,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"short_url\": \"lbry://@channel#c\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1565587608,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment": {
|
||||
"doc": "Create and list comments.",
|
||||
"doc": "View, create and abandon comments.",
|
||||
"commands": [
|
||||
{
|
||||
"name": "comment_abandon",
|
||||
"description": "Abandon a comment published under your channel identity.",
|
||||
"arguments": [
|
||||
{
|
||||
"name": "comment_id",
|
||||
"type": "str",
|
||||
"description": "The ID of the comment to be deleted.",
|
||||
"is_required": true
|
||||
}
|
||||
],
|
||||
"returns": "(dict) Object with the `comment_id` passed in as the key, and a flag indicating if it was deleted\n {\n <comment_id> (str): {\n \"deleted\": (bool)\n }\n }",
|
||||
"examples": []
|
||||
},
|
||||
{
|
||||
"name": "comment_create",
|
||||
"description": "Create and associate a comment with a claim using your channel identity.",
|
||||
@@ -1853,9 +1897,9 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Delete a file",
|
||||
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet file delete --claim_id=\"5d64500fb723eded83a41b0d5055f1783f019191\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\"}}).json()",
|
||||
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet file delete --claim_id=\"68fde0328b1a267b3815ce974a6329b159619092\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
|
||||
}
|
||||
]
|
||||
@@ -1962,14 +2006,14 @@
|
||||
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"reverse\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet file list",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"reverse\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"e8b365259d5b8644a6a1eb5d2f77459f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"015e32d5a47f2cd3e1242457498c97578d4594d77ee519fc56b21384e97c75d5c1b6450f2138e209f7bbd2adb588609ba36d1982a2187070c391a89793a0b569f09fef656fe041eab1809e3964f6346ae0fb3d20f30a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707a6a31716278666a180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"8b7dee36b0985027ad1476590ee5759359b57e4cb6507d5288ffe1508c32177f5a39ef20772cf90da72987f6f55ce1ba\",\n \"stream_name\": \"tmpzj1qbxfj\",\n \"streaming_url\": \"http://localhost:5280/stream/d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"suggested_file_name\": \"tmpzj1qbxfj\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"written_bytes\": null\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"8cef1fdff80ef393ddb24a73ba60196610bedbc9\",\n \"claim_name\": \"blank-image\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"e7256de8c71f32d15b11d820dded4ae8\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"miLhR5kJLGVqi5Ss2VKT2Nxt4fToriqtX2\",\n \"amount\": \"0.3\",\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1561485066\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp_zkvgv47.png\",\n \"sd_hash\": \"d4595a73a829c2a567a25ee1fa7ced42ae4d2d5fccc19126f01b8518537a386b6d20d611b35278afe6a5e193a762cd8c\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"62a6d649879ce6a35a33265b8a9421faf24fd1e40457fdcdb4753d7eb7de6e0f:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"015e32d5a47f2cd3e1242457498c97578d4594d77ef0d8c8998fb8a90c600f66f6bce1b38b4f8ccca60f1896a1d0b85e3735c50d5b4841a37bb45dfdbef1ca2712189280efd4382ac843e11e6272e0389c1b99b6630ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50eLine truncated
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"b362c109c1773e239c7b8046b68baca1\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0127876157202060e91daaf771f57c2b78c254f9cb399c380097dccb958b0a22cddccfb1ff04aa93fa4022c09f2063b86e67ed1b5bc8546dfec3d1faf5c2c75c365722f78c508ba288b1f0cb3913fd391ff1796a1c0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70776330786f746a63180b22186170706c69636174696f6e2f6f637465742d73747265616d3230ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"b2749b74dd58556c9193970be68b3c439dd593e7f117cdbba75d3073307fdfa91e811ff9d3f71336eccefadb9d27effa\",\n \"stream_name\": \"tmpwc0xotjc\",\n \"streaming_url\": \"http://localhost:5280/stream/ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"suggested_file_name\": \"tmpwc0xotjc\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"written_bytes\": 0\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5cfb92c3e6a80aedee5282c3f64b565bc6965562\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"6e4465bcef7cb99a26a29b8d3e016318\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mhPFLtT7YzmNfMuQYr4PQXAJdtaTKWRLFy\",\n \"amount\": \"0.3\",\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1565587584\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpnkt_49bq.png\",\n \"sd_hash\": \"eda7090b2d59beb0d77de489961cb73bbc73bbbb80d2c3c0e5f547b8c07dc0eded9627ce12872ca86a20a51d54ae3c4b\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"474e26f1aceebbdbbbad02afd37dd39aa3eb221098fa8a4073b1117264422e98:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0127876157202060e91daaf771f57c2b78c254f9cb24eda15eb1995dfe4ea874fa93396c62e1fe82612e6b9b786ea0c55166e98e7880da5e3b48ef29ab4d1a9c83f71482c22a4acad548c27a5f5643550d0434f3b00ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85Line truncated
|
||||
},
|
||||
{
|
||||
"title": "List files matching a parameter",
|
||||
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\", \"reverse\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet file list --claim_id=\"5d64500fb723eded83a41b0d5055f1783f019191\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\", \"reverse\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"e8b365259d5b8644a6a1eb5d2f77459f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"015e32d5a47f2cd3e1242457498c97578d4594d77ee519fc56b21384e97c75d5c1b6450f2138e209f7bbd2adb588609ba36d1982a2187070c391a89793a0b569f09fef656fe041eab1809e3964f6346ae0fb3d20f30a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707a6a31716278666a180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"8b7dee36b0985027ad1476590ee5759359b57e4cb6507d5288ffe1508c32177f5a39ef20772cf90da72987f6f55ce1ba\",\n \"stream_name\": \"tmpzj1qbxfj\",\n \"streaming_url\": \"http://localhost:5280/stream/d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"suggested_file_name\": \"tmpzj1qbxfj\",\n \"timestamp\": 1561485090,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"written_bytes\": null\n }\n ]\n}"
|
||||
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\", \"reverse\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet file list --claim_id=\"68fde0328b1a267b3815ce974a6329b159619092\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\", \"reverse\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"b362c109c1773e239c7b8046b68baca1\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0127876157202060e91daaf771f57c2b78c254f9cb399c380097dccb958b0a22cddccfb1ff04aa93fa4022c09f2063b86e67ed1b5bc8546dfec3d1faf5c2c75c365722f78c508ba288b1f0cb3913fd391ff1796a1c0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70776330786f746a63180b22186170706c69636174696f6e2f6f637465742d73747265616d3230ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"b2749b74dd58556c9193970be68b3c439dd593e7f117cdbba75d3073307fdfa91e811ff9d3f71336eccefadb9d27effa\",\n \"stream_name\": \"tmpwc0xotjc\",\n \"streaming_url\": \"http://localhost:5280/stream/ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"suggested_file_name\": \"tmpwc0xotjc\",\n \"timestamp\": 1565587608,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"written_bytes\": 0\n }\n ]\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2086,10 +2130,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Save a file to the downloads directory",
|
||||
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet file save --sd_hash=\"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"e8b365259d5b8644a6a1eb5d2f77459f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"015e32d5a47f2cd3e1242457498c97578d4594d77ee519fc56b21384e97c75d5c1b6450f2138e209f7bbd2adb588609ba36d1982a2187070c391a89793a0b569f09fef656fe041eab1809e3964f6346ae0fb3d20f30a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707a6a31716278666a180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"8b7dee36b0985027ad1476590ee5759359b57e4cb6507d5288ffe1508c32177f5a39ef20772cf90da72987f6f55ce1ba\",\n \"stream_name\": \"tmpzj1qbxfj\",\n \"streaming_url\": \"http://localhost:5280/stream/d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"suggested_file_name\": \"tmpzj1qbxfj\",\n \"timestamp\": 1561485090,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"written_bytes\": null\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\"}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet file save --sd_hash=\"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\"}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"b362c109c1773e239c7b8046b68baca1\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0127876157202060e91daaf771f57c2b78c254f9cb399c380097dccb958b0a22cddccfb1ff04aa93fa4022c09f2063b86e67ed1b5bc8546dfec3d1faf5c2c75c365722f78c508ba288b1f0cb3913fd391ff1796a1c0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70776330786f746a63180b22186170706c69636174696f6e2f6f637465742d73747265616d3230ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"b2749b74dd58556c9193970be68b3c439dd593e7f117cdbba75d3073307fdfa91e811ff9d3f71336eccefadb9d27effa\",\n \"stream_name\": \"tmpwc0xotjc\",\n \"streaming_url\": \"http://localhost:5280/stream/ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"suggested_file_name\": \"tmpwc0xotjc\",\n \"timestamp\": 1565587608,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"written_bytes\": 0\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2179,7 +2223,7 @@
|
||||
"curl": "curl -d'{\"method\": \"settings_get\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet settings get",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"settings_get\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpfjnst0c0\",\n \"download_dir\": \"/tmp/tmpfjnst0c0\",\n \"download_timeout\": 30.0,\n \"fixed_peer_delay\": 2.0,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"save_blobs\": true,\n \"save_files\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmpfjnst0c0\"\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpdym2_jzz\",\n \"download_dir\": \"/tmp/tmpdym2_jzz\",\n \"download_timeout\": 30.0,\n \"fixed_peer_delay\": 2.0,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"save_blobs\": true,\n \"save_files\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmpdym2_jzz\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2240,10 +2284,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Abandon a stream claim",
|
||||
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream abandon 5d64500fb723eded83a41b0d5055f1783f019191",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\", \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000017e19c275684db4fd0f44b44777ba62ebe6e45eb3737637cbd8eb5dafadf1c2da000000006b483045022100c624c1ad3ba9ef23da28e8a21bda59d223bca0cc7011e952d14ab9fc065058aa022046708292d323bf9053ded6de63ae948058fa5650c8a2a3286ca700bb797be32e0121039efda2d8dd29b422fb044b6ccf6791ec3b0489713619b3f9dd9e8c89a4e54779ffffffff0134b7f505000000001976a9145b91c67ced35c7e2197da2da28fde8c113ef8a4588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"timestamp\": 1561485090,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mos8RABG1AF9QQ4HPVABG9p9ERCQ4DGG2Z\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"43b91f8ca1e4b543ddaa540e1b9026084f137cea5e9a9d7381321508086f3ce5\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"43b91f8ca1e4b543ddaa540e1b9026084f137cea5e9a9d7381321508086f3ce5\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream abandon 68fde0328b1a267b3815ce974a6329b159619092",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\", \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000100540ecab697180928c5f99354fbfa1144c37a811c6c6545863e3233d747a255000000006b483045022100e46cf7452572b43ed2357690679ced0e8715eaf9edd740870e867d35d9dccc1f022008ead1fdb16dac7f7e78c3588e9f27311ac8fa83a19b6e23811a6aeae6105286012102e5f31d1a080e94c45195eb667ca7224c90d6f2351de3c0f069189adbe7dda5d9ffffffff0134b7f505000000001976a91433f438c61fc4e8057a961399d0c623bcb367768e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"timestamp\": 1565587608,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkFfKfSnNuyBsFKynQvBbwdEc1TYFvVUDX\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"967b9aaf6a56a3f99b42e3eb777721e2c957f9fb3ad7495fb3e72159c5f59cfa\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"967b9aaf6a56a3f99b42e3eb777721e2c957f9fb3ad7495fb3e72159c5f59cfa\"\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2406,7 +2450,13 @@
|
||||
{
|
||||
"name": "account_id",
|
||||
"type": "str",
|
||||
"description": "account to use for funding the transaction",
|
||||
"description": "account to use for holding the transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "funding_account_ids",
|
||||
"type": "list",
|
||||
"description": "ids of accounts to fund this transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
@@ -2432,17 +2482,17 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Create a stream claim without metadata",
|
||||
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpzj1qbxfj\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpzj1qbxfj",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpzj1qbxfj\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000196f8e3d37980f4f602fedd6be3007e45c98a176b953ec151db7d9ff558f4e950010000006b483045022100c86c0b5aa41515436e96d86767e75566cb5addd6c41fc03b182fd41cb50e6750022044937d16a79ed035ee77af8c4e05282b66417349a5d9bc4f340d7d5a3569f048012103fe478df2bbf4c46284220d4d439f5ced6d923cc18915e25b0fa1f14a039a758effffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707a6a31716278666a180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d36d7576a9145f714bd8d8f78a7a6836eba4625ab0d05cbf9bf188ac38fb9423000000001976a914b18165ea11e7fc078a724665b8d5f4ed879418af88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"moXzxEEXj4nhGhnozbGGFqGXdEzysbDMHJ\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1561485089,\n \"txid\": \"50e9f458f59f7ddb51c13e956b178ac9457e00e36bddfe02f6f48079d3e3f896\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"timestamp\": null,\n \"txid\": \"c983a65d949c9badee6fdd78ec68dc214c44816576e90998a86c062790e8fffe\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwhWukDANoke2ikBrkj8u3kFdRh5YM2Xv7\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"c983a65d949c9badee6fdd78ec68dc214c44816576e90998a86c062790e8fffe\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"c983a65d949c9badee6fdd78ec68dc214c44816576e90998a86c062790e8fffe\"\n }\n}"
|
||||
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpwc0xotjc\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpwc0xotjc",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpwc0xotjc\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000012f35356c58ebfbce4884267d041a46b25318eda5a7d8155de2cb9fe53822ea81010000006b48304502210098a023fd71f8cb8a91b2251ac34b6c1c92da13426e28f2aeaf74283f2d3a79b60220752526ab6104fbf0d98adb25259f1a423f520ee60419388d52eff6a322e0bf97012102860c0ba9a89d394722e50d15c942a7c13c8a6cb6f24354f5d45f1debadb58bfbffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70776330786f746a63180b22186170706c69636174696f6e2f6f637465742d73747265616d3230ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f26d7576a91415733e667eb7be1146f77b7eab0c5f757d623cc988ac38fb9423000000001976a914fb6300ecc589692a5f3befbac4da77c9fe698cd288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"myg8y3kBaKVSyuUWSmgXN56iY5iyMBXza9\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1565587607,\n \"txid\": \"81ea2238e59fcbe25d15d8a7a5ed1853b2461a047d268448cefbeb586c35352f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"timestamp\": null,\n \"txid\": \"8585fd73e301e58e044581e3f4d2d1195a208e333e8632b75363da2f6ec55ab2\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4SAW6U5NeYRqQTdos4cLMgtbWRBFW8X16\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"8585fd73e301e58e044581e3f4d2d1195a208e333e8632b75363da2f6ec55ab2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"8585fd73e301e58e044581e3f4d2d1195a208e333e8632b75363da2f6ec55ab2\"\n }\n}"
|
||||
},
|
||||
{
|
||||
"title": "Create an image stream claim with all metadata and fee",
|
||||
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp_zkvgv47.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1561485066, \"channel_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\", \"channel_account_id\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmp_zkvgv47.png --tags=blank --tags=art --languages=en --locations=US:NH:Manchester --fee_currency=LBC --fee_amount=0.3 --title=\"Blank Image\" --description=\"A blank PNG that is 5x7.\" --author=Picaso --license=\"Public Domain\" --license_url=http://public-domain.org --thumbnail_url=\"http://smallmedia.com/thumbnail.jpg\" --release_time=1561485066 --channel_id=\"7ed794458d57978c49572424e1d32c7fa4d5325e\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp_zkvgv47.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1561485066, \"channel_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\", \"channel_account_id\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001feffe89027066ca89809e9766581444c21dc68ec78dd6feead9b9c945da683c9010000006b483045022100b3f2904121f6c6b5a41f31aae658e82db8b9b03385c5a68b4837603476905e3102206361878bb10bdf9ec3aa09e57777d67e97d93ecd6759784b937dc27441d4cb130121033c5a8006c1b3c7e3fce456220accfdf3a7b1f7f9c7a312789637d857dc8d68cbffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db101015e32d5a47f2cd3e1242457498c97578d4594d77ef0d8c8998fb8a90c600f66f6bce1b38b4f8ccca60f1896a1d0b85e3735c50d5b4841a37bb45dfdbef1ca2712189280efd4382ac843e11e6272e0389c1b99b6630ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d705f7a6b76677634372e706e6718632209696d6167652f706e673230d4595a73a829c2a567a25ee1fa7ced42ae4d2d5fccc19126f01b8518537a386b6d20d611b35278afe6a5e193a762cd8c120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f7267288abec9e8053222080112196f1ef7cc2a7373816b32207342ec23f8c38dccf01292bec029188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a9141ef7cc2a7373816b32207342ec23f8c38dccf01288acac5e7d1d000000001976a9140a576ae154110bade7e05856edb02f02c4192c2c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwhWukDANoke2ikBrkj8u3kFdRh5YM2Xv7\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1561485090,\n \"txid\": \"c983a65d949c9badee6fdd78ec68dc214c44816576e90998a86c062790e8fffe\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miLhR5kJLGVqi5Ss2VKT2Nxt4fToriqtX2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8cef1fdff80ef393ddb24a73ba60196610bedbc9\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"blank-image\",\n \"normalized_name\": \"blank-image\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://blank-image#8cef1fdff80ef393ddb24a73ba60196610bedbc9\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"62a6d649879ce6a35a33265b8a9421faf24fd1e40457fdcdb4753d7eb7de6e0f\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"miLhR5kJLGVqi5Ss2VKT2Nxt4fToriqtX2\",\n \"amount\": \"0.3\",\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1561485066\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp_zkvgv47.png\",\n \"sd_hash\": \"d4595a73a829c2a567a25ee1fa7ced42ae4d2d5fccc19126f01b8518537a386b6d20d611b35278afe6a5e193a762cd8c\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"taLine truncated
|
||||
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpnkt_49bq.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1565587584, \"channel_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpnkt_49bq.png --tags=blank --tags=art --languages=en --locations=US:NH:Manchester --fee_currency=LBC --fee_amount=0.3 --title=\"Blank Image\" --description=\"A blank PNG that is 5x7.\" --author=Picaso --license=\"Public Domain\" --license_url=http://public-domain.org --thumbnail_url=\"http://smallmedia.com/thumbnail.jpg\" --release_time=1565587584 --channel_id=\"cbf954c2782b7cf571f7aa1de960202057618727\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpnkt_49bq.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1565587584, \"channel_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001b25ac56e2fda6353b732863e338e205a19d1d2f4e38145048ee501e373fd8585010000006a4730440220205c1cea74188145c8d3200ef2914b5852c8a3b151876c9d9431e9b52e82b3e0022061169e87088e2fd0759d457d0a444a9445d404b64358d5cbac08c5ab950dca6c012103ebc2c0ec16d9e24b5ebcb4bf957ddc9fd7a80376d1cff0d79f5d65e381d7fe42ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db1010127876157202060e91daaf771f57c2b78c254f9cb24eda15eb1995dfe4ea874fa93396c62e1fe82612e6b9b786ea0c55166e98e7880da5e3b48ef29ab4d1a9c83f71482c22a4acad548c27a5f5643550d0434f3b00ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d706e6b745f343962712e706e6718632209696d6167652f706e673230eda7090b2d59beb0d77de489961cb73bbc73bbbb80d2c3c0e5f547b8c07dc0eded9627ce12872ca86a20a51d54ae3c4b120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f72672880f1c3ea053222080112196f147b27d1c70b5fb7ff1560d32bfda68507a89a0f214e74e0188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914147b27d1c70b5fb7ff1560d32bfda68507a89a0f88acac5e7d1d000000001976a914d7d23f1f17bdd156052ea8c496a95070157fb6ab88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4SAW6U5NeYRqQTdos4cLMgtbWRBFW8X16\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1565587608,\n \"txid\": \"8585fd73e301e58e044581e3f4d2d1195a208e333e8632b75363da2f6ec55ab2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhPFLtT7YzmNfMuQYr4PQXAJdtaTKWRLFy\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5cfb92c3e6a80aedee5282c3f64b565bc6965562\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"blank-image\",\n \"normalized_name\": \"blank-image\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://blank-image#5cfb92c3e6a80aedee5282c3f64b565bc6965562\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"474e26f1aceebbdbbbad02afd37dd39aa3eb221098fa8a4073b1117264422e98\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mhPFLtT7YzmNfMuQYr4PQXAJdtaTKWRLFy\",\n \"amount\": \"0.3\",\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1565587584\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpnkt_49bq.png\",\n \"sd_hash\": \"eda7090b2d59beb0d77de489961cb73bbc73bbbb80d2c3c0e5f547b8c07dc0eded9627ce12872ca86a20a51d54ae3c4b\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tagsLine truncated
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2476,14 +2526,14 @@
|
||||
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream list",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1561485090,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ]\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1565587608,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ]\n}"
|
||||
},
|
||||
{
|
||||
"title": "Paginate your stream claims",
|
||||
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream list --page=1 --page_size=20",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1561485090,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1565587608,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2674,7 +2724,13 @@
|
||||
{
|
||||
"name": "account_id",
|
||||
"type": "str",
|
||||
"description": "account to use for funding the transaction",
|
||||
"description": "account to use for holding the transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "funding_account_ids",
|
||||
"type": "list",
|
||||
"description": "ids of accounts to fund this transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
@@ -2706,10 +2762,10 @@
|
||||
"examples": [
|
||||
{
|
||||
"title": "Update a stream claim to add channel",
|
||||
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream update 5d64500fb723eded83a41b0d5055f1783f019191 --channel_id=\"7ed794458d57978c49572424e1d32c7fa4d5325e\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000002feffe89027066ca89809e9766581444c21dc68ec78dd6feead9b9c945da683c9000000006b483045022100d50e402d04306f995730a8cce777723723fff2846104882c27008649b9aae9bf022050a7b0432dd4a4bfd050e53cb072769cbd812f80e497c5c4c4c3e41bdae2e2800121039efda2d8dd29b422fb044b6ccf6791ec3b0489713619b3f9dd9e8c89a4e54779ffffffffb48acb3a85b381bcc76c473f47f0b8a7123aca7b0f793d4db380a2c9093b00aa010000006b483045022100a6948b248bedc73306df727c5068a0c34be18d9dde725e20c841719c0efcaea902203a842193eb567f4abee70e7560732cad4e216863d4c4d1c892359cff4678c18e012103931d91a3c5ade5cdc8a50814a522fcd34a309a6704ff608db69a878d214f6db0ffffffff0200e1f50500000000fd2301b7076173747265616d149191013f78f155500d1ba483eded23b70f50645d4ce8015e32d5a47f2cd3e1242457498c97578d4594d77ee519fc56b21384e97c75d5c1b6450f2138e209f7bbd2adb588609ba36d1982a2187070c391a89793a0b569f09fef656fe041eab1809e3964f6346ae0fb3d20f30a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707a6a31716278666a180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d36d6d76a9145f714bd8d8f78a7a6836eba4625ab0d05cbf9bf188ac32a0d205000000001976a9143b92d98084d9425628023c45e47f808c4abeacc588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"timestamp\": 1561485090,\n \"txid\": \"c983a65d949c9badee6fdd78ec68dc214c44816576e90998a86c062790e8fffe\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzj1qbxfj\",\n \"sd_hash\": \"d85e47456630442a413f6cbedbdc4b0a5177770155d8a4523bbf2f301ebae95e0785cb475ca8d1a9d3cab54a05de64d3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mrxs9s9nJgdvS6qW2ca4yr5UY6RkWS5zk9\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1561485089,\n \"txid\": \"aa003b09c9a280b34d3d790f7bca3a12a7b8f0473f476cc7bc81b3853acb8ab4\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mpDcDEwvfvETWqTDhddKLTzZZS2GBQWBqC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5d64500fb723eded83a41b0d5055f1783f019191\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5d64500fb723eded83a41b0d5055f1783f019191\",\n \"signing_channel\": {\n \"address\": \"n3rBuPQB9qzAha4xU1uHyP5nmvR3WGq3r6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#7ed794458d57978c49572424e1d32c7fa4d5325e\",\n \"timestamp\": 1561485089,\n \"txid\": \"0f7256329d0b2896d6f2472eea2614fbcf20ab6b22e27d168060ebb0adbaa6fa\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000465bebc31803d2a7f0f037f696665d4d610abea2e518f906410163dec7513fc2b9a82ae0c4a15602f467d4c03823d72cf95c36fc6a87e963356e44db502027ae2\",\n \"public_key_id\": \"mrqYtVaoPEPqgyRPExUPi7PrYJ9nDc59yW\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"dac2f1adaf5debd8cb377673b35ee4e6eb62ba7747b4440ffdb44d6875c2197e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4Line truncated
|
||||
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet stream update 68fde0328b1a267b3815ce974a6329b159619092 --channel_id=\"cbf954c2782b7cf571f7aa1de960202057618727\"",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000002b25ac56e2fda6353b732863e338e205a19d1d2f4e38145048ee501e373fd8585000000006a47304402204716abc5afb3bb9479264b8ef8e682afd4d755cc26222aaa6dd4ae5dbc038782022078b7ee55cd5fceaa9051041da83e70ba5a2a775d627d114cf9ca6c2c72ea39be012102e5f31d1a080e94c45195eb667ca7224c90d6f2351de3c0f069189adbe7dda5d9ffffffffe3f8863fb8521183a9f80b9c190b42ca7f26ef269f23962617be746aa7ff111a010000006a47304402204f7b48231ad7c9c88ba4af87e920c792e165c3f3ddcd464c1f7c8999adf01c66022054e274c1378fff338e3dfd147a34a4c769fcfd5ad0fcbb280fafc62c85ebe502012102cf036fe173b3b49a4c8ef6eef8539aa53000002a3d0cab29aa6fbe4a066f0b78ffffffff0200e1f50500000000fd2301b7076173747265616d1492906159b129634a97ce15387b261a8b32e0fd684ce80127876157202060e91daaf771f57c2b78c254f9cb399c380097dccb958b0a22cddccfb1ff04aa93fa4022c09f2063b86e67ed1b5bc8546dfec3d1faf5c2c75c365722f78c508ba288b1f0cb3913fd391ff1796a1c0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70776330786f746a63180b22186170706c69636174696f6e2f6f637465742d73747265616d3230ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f26d6d76a91415733e667eb7be1146f77b7eab0c5f757d623cc988ac32a0d205000000001976a9149feb153831e4799de0cf2933a4884c5ff7baa53a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"timestamp\": 1565587608,\n \"txid\": \"8585fd73e301e58e044581e3f4d2d1195a208e333e8632b75363da2f6ec55ab2\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwc0xotjc\",\n \"sd_hash\": \"ca7f2e83a2d275e25151463521e893b8812aa0b061ab299fb9877521c0a2ced15927eeca4f50680d8ea5e03ae6b6c3f2\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mzHFAQfgBr1QpQr8YSMpJFg54vkhwU2WoB\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1565587607,\n \"txid\": \"1a11ffa76a74be172696239f26ef267fca420b199c0bf8a9831152b83f86f8e3\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhUNYMksuH5HFj2DUG1DsLAtMMaup1cgqn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"68fde0328b1a267b3815ce974a6329b159619092\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#68fde0328b1a267b3815ce974a6329b159619092\",\n \"signing_channel\": {\n \"address\": \"mvE3pR2rH5mP1Hx8UEipnPt3Atp89tXqVw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"cbf954c2782b7cf571f7aa1de960202057618727\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#cbf954c2782b7cf571f7aa1de960202057618727\",\n \"timestamp\": 1565587607,\n \"txid\": \"794fc94e7ac645d5fc06c14e5ac9be9d9afa53cd540a349ee276662b23e21396\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000404b644588c6a32f425fa8c2c3b0404898c79d405d1e90783adcf9a2bdbad505012f1e6be38f7837b69d5f2a1a1959135701780f01fc91c396158c4b1b9b1e304\",\n \"public_key_id\": \"mrPWGtFam2wwv7D1QRgXXrXePLqUGdKaCb\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"55a247d733323e8645656c1c817ac34411fafb5493f9c528091897b6ca0e5400\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040Line truncated
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2793,7 +2849,13 @@
|
||||
{
|
||||
"name": "account_id",
|
||||
"type": "str",
|
||||
"description": "id of the account to use",
|
||||
"description": "account to use for holding the transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "funding_account_ids",
|
||||
"type": "list",
|
||||
"description": "ids of accounts to fund this transaction",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
@@ -2911,7 +2973,7 @@
|
||||
"curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/",
|
||||
"lbrynet": "lbrynet transaction list",
|
||||
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()",
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-06-25 13:51\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1561485089,\n \"txid\": \"0e071fe12cfda37fb80dd634afb1a44bcb861e2de16009ad5628cc7f74776634\",\n \"update_info\": [],\n \"value\": \"-2.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-06-25 13:51\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1561485088,\n \"txid\": \"8fa093f2b4e99c1c7d1aef71a73092c72ebe1875a2481b2ccb4244a49126fcc0\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}"
|
||||
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-08-12 01:26\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1565587607,\n \"txid\": \"0295fc060686b1872040214dabead8a042edbcc3a00f79580c27777841f5c504\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-08-12 01:26\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1565587606,\n \"txid\": \"c6ec4fd79fda21863a5a7825ced028fb606f890daf669ff8386061ef6e4ef8d5\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||