@sparkdreamnft/sparkdreamjs 0.0.35 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/bundle.js +305 -301
- package/esm/sparkdream/federation/v1/genesis.js +101 -3
- package/esm/sparkdream/federation/v1/params.js +129 -117
- package/esm/sparkdream/federation/v1/query.js +204 -7
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -2
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +16 -3
- package/esm/sparkdream/federation/v1/types.js +73 -1
- package/esm/sparkdream/federation/v1/verifier_activity.js +143 -45
- package/esm/sparkdream/rep/v1/{interim_template.js → acceptance_criteria.js} +13 -123
- package/esm/sparkdream/rep/v1/accountability.js +11 -0
- package/esm/sparkdream/rep/v1/bonded_role.js +50 -1
- package/esm/sparkdream/rep/v1/challenge.js +21 -9
- package/esm/sparkdream/rep/v1/genesis.js +198 -59
- package/esm/sparkdream/rep/v1/initiative.js +160 -49
- package/esm/sparkdream/rep/v1/initiative_review.js +179 -0
- package/esm/sparkdream/rep/v1/jury_participation.js +39 -9
- package/esm/sparkdream/rep/v1/jury_review.js +40 -1
- package/esm/sparkdream/rep/v1/member_report.js +8 -8
- package/esm/sparkdream/rep/v1/member_warning.js +2 -2
- package/esm/sparkdream/rep/v1/params.js +806 -2
- package/esm/sparkdream/rep/v1/query.js +1446 -325
- package/esm/sparkdream/rep/v1/query.lcd.js +49 -16
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +67 -21
- package/esm/sparkdream/rep/v1/review_bounty.js +215 -0
- package/esm/sparkdream/rep/v1/role_activity.js +13 -1
- package/esm/sparkdream/rep/v1/tag_report.js +2 -2
- package/esm/sparkdream/rep/v1/tx.js +2610 -1442
- package/esm/sparkdream/rep/v1/tx.registry.js +128 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +43 -1
- package/esm/tendermint/bundle.js +18 -18
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +9709 -9199
- package/sparkdream/bundle.js +305 -301
- package/sparkdream/federation/v1/genesis.d.ts +66 -0
- package/sparkdream/federation/v1/genesis.js +102 -4
- package/sparkdream/federation/v1/params.d.ts +72 -10
- package/sparkdream/federation/v1/params.js +129 -117
- package/sparkdream/federation/v1/query.d.ts +120 -3
- package/sparkdream/federation/v1/query.js +204 -7
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +11 -2
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +13 -3
- package/sparkdream/federation/v1/query.rpc.Query.js +15 -2
- package/sparkdream/federation/v1/types.d.ts +44 -0
- package/sparkdream/federation/v1/types.js +73 -1
- package/sparkdream/federation/v1/verifier_activity.d.ts +151 -68
- package/sparkdream/federation/v1/verifier_activity.js +144 -46
- package/sparkdream/rep/v1/{interim_template.d.ts → acceptance_criteria.d.ts} +39 -52
- package/sparkdream/rep/v1/{interim_template.js → acceptance_criteria.js} +14 -124
- package/sparkdream/rep/v1/accountability.d.ts +6 -0
- package/sparkdream/rep/v1/accountability.js +11 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +50 -0
- package/sparkdream/rep/v1/bonded_role.js +50 -1
- package/sparkdream/rep/v1/challenge.d.ts +14 -0
- package/sparkdream/rep/v1/challenge.js +21 -9
- package/sparkdream/rep/v1/genesis.d.ts +100 -3
- package/sparkdream/rep/v1/genesis.js +199 -60
- package/sparkdream/rep/v1/initiative.d.ts +106 -2
- package/sparkdream/rep/v1/initiative.js +163 -50
- package/sparkdream/rep/v1/initiative_review.d.ts +121 -0
- package/sparkdream/rep/v1/initiative_review.js +182 -0
- package/sparkdream/rep/v1/jury_participation.d.ts +89 -5
- package/sparkdream/rep/v1/jury_participation.js +39 -9
- package/sparkdream/rep/v1/jury_review.d.ts +38 -0
- package/sparkdream/rep/v1/jury_review.js +40 -1
- package/sparkdream/rep/v1/member_report.js +8 -8
- package/sparkdream/rep/v1/member_warning.js +2 -2
- package/sparkdream/rep/v1/params.d.ts +764 -16
- package/sparkdream/rep/v1/params.js +806 -2
- package/sparkdream/rep/v1/query.d.ts +929 -179
- package/sparkdream/rep/v1/query.js +1450 -329
- package/sparkdream/rep/v1/query.lcd.d.ts +7 -3
- package/sparkdream/rep/v1/query.lcd.js +49 -16
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +47 -9
- package/sparkdream/rep/v1/query.rpc.Query.js +66 -20
- package/sparkdream/rep/v1/review_bounty.d.ts +168 -0
- package/sparkdream/rep/v1/review_bounty.js +218 -0
- package/sparkdream/rep/v1/role_activity.d.ts +26 -0
- package/sparkdream/rep/v1/role_activity.js +13 -1
- package/sparkdream/rep/v1/tag_report.js +2 -2
- package/sparkdream/rep/v1/tx.d.ts +816 -9
- package/sparkdream/rep/v1/tx.js +2612 -1443
- package/sparkdream/rep/v1/tx.registry.d.ts +85 -1
- package/sparkdream/rep/v1/tx.registry.js +127 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +20 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +42 -0
- package/sparkdream/rpc.query.d.ts +7 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
|
@@ -10,7 +10,6 @@ import { Stake, MemberStakePool, TagStakePool, ProjectStakeInfo } from "./stake"
|
|
|
10
10
|
import { Challenge } from "./challenge";
|
|
11
11
|
import { JuryReview } from "./jury_review";
|
|
12
12
|
import { Interim } from "./interim";
|
|
13
|
-
import { InterimTemplate } from "./interim_template";
|
|
14
13
|
import { ContentChallenge } from "./content_challenge";
|
|
15
14
|
import { Tag } from "./tag";
|
|
16
15
|
import { ReservedTag } from "./reserved_tag";
|
|
@@ -21,6 +20,9 @@ import { MemberReport } from "./member_report";
|
|
|
21
20
|
import { MemberWarning } from "./member_warning";
|
|
22
21
|
import { GovActionAppeal } from "./gov_action_appeal";
|
|
23
22
|
import { JuryParticipation } from "./jury_participation";
|
|
23
|
+
import { RoleActivity } from "./role_activity";
|
|
24
|
+
import { InitiativeReview } from "./initiative_review";
|
|
25
|
+
import { ReviewBounty } from "./review_bounty";
|
|
24
26
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
25
27
|
import { Decimal } from "@interchainjs/math";
|
|
26
28
|
function createBaseQueryParamsRequest() {
|
|
@@ -2500,297 +2502,6 @@ export const QueryAllInterimResponse = {
|
|
|
2500
2502
|
};
|
|
2501
2503
|
}
|
|
2502
2504
|
};
|
|
2503
|
-
function createBaseQueryGetInterimTemplateRequest() {
|
|
2504
|
-
return {
|
|
2505
|
-
templateId: ""
|
|
2506
|
-
};
|
|
2507
|
-
}
|
|
2508
|
-
/**
|
|
2509
|
-
* QueryGetInterimTemplateRequest defines the QueryGetInterimTemplateRequest message.
|
|
2510
|
-
* @name QueryGetInterimTemplateRequest
|
|
2511
|
-
* @package sparkdream.rep.v1
|
|
2512
|
-
* @see proto type: sparkdream.rep.v1.QueryGetInterimTemplateRequest
|
|
2513
|
-
*/
|
|
2514
|
-
export const QueryGetInterimTemplateRequest = {
|
|
2515
|
-
typeUrl: "/sparkdream.rep.v1.QueryGetInterimTemplateRequest",
|
|
2516
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2517
|
-
if (message.templateId !== "") {
|
|
2518
|
-
writer.uint32(10).string(message.templateId);
|
|
2519
|
-
}
|
|
2520
|
-
return writer;
|
|
2521
|
-
},
|
|
2522
|
-
decode(input, length) {
|
|
2523
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2524
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2525
|
-
const message = createBaseQueryGetInterimTemplateRequest();
|
|
2526
|
-
while (reader.pos < end) {
|
|
2527
|
-
const tag = reader.uint32();
|
|
2528
|
-
switch (tag >>> 3) {
|
|
2529
|
-
case 1:
|
|
2530
|
-
message.templateId = reader.string();
|
|
2531
|
-
break;
|
|
2532
|
-
default:
|
|
2533
|
-
reader.skipType(tag & 7);
|
|
2534
|
-
break;
|
|
2535
|
-
}
|
|
2536
|
-
}
|
|
2537
|
-
return message;
|
|
2538
|
-
},
|
|
2539
|
-
fromPartial(object) {
|
|
2540
|
-
const message = createBaseQueryGetInterimTemplateRequest();
|
|
2541
|
-
message.templateId = object.templateId ?? "";
|
|
2542
|
-
return message;
|
|
2543
|
-
},
|
|
2544
|
-
fromAmino(object) {
|
|
2545
|
-
const message = createBaseQueryGetInterimTemplateRequest();
|
|
2546
|
-
if (object.template_id !== undefined && object.template_id !== null) {
|
|
2547
|
-
message.templateId = object.template_id;
|
|
2548
|
-
}
|
|
2549
|
-
return message;
|
|
2550
|
-
},
|
|
2551
|
-
toAmino(message) {
|
|
2552
|
-
const obj = {};
|
|
2553
|
-
obj.template_id = message.templateId === "" ? undefined : message.templateId;
|
|
2554
|
-
return obj;
|
|
2555
|
-
},
|
|
2556
|
-
fromAminoMsg(object) {
|
|
2557
|
-
return QueryGetInterimTemplateRequest.fromAmino(object.value);
|
|
2558
|
-
},
|
|
2559
|
-
fromProtoMsg(message) {
|
|
2560
|
-
return QueryGetInterimTemplateRequest.decode(message.value);
|
|
2561
|
-
},
|
|
2562
|
-
toProto(message) {
|
|
2563
|
-
return QueryGetInterimTemplateRequest.encode(message).finish();
|
|
2564
|
-
},
|
|
2565
|
-
toProtoMsg(message) {
|
|
2566
|
-
return {
|
|
2567
|
-
typeUrl: "/sparkdream.rep.v1.QueryGetInterimTemplateRequest",
|
|
2568
|
-
value: QueryGetInterimTemplateRequest.encode(message).finish()
|
|
2569
|
-
};
|
|
2570
|
-
}
|
|
2571
|
-
};
|
|
2572
|
-
function createBaseQueryGetInterimTemplateResponse() {
|
|
2573
|
-
return {
|
|
2574
|
-
interimTemplate: InterimTemplate.fromPartial({})
|
|
2575
|
-
};
|
|
2576
|
-
}
|
|
2577
|
-
/**
|
|
2578
|
-
* QueryGetInterimTemplateResponse defines the QueryGetInterimTemplateResponse message.
|
|
2579
|
-
* @name QueryGetInterimTemplateResponse
|
|
2580
|
-
* @package sparkdream.rep.v1
|
|
2581
|
-
* @see proto type: sparkdream.rep.v1.QueryGetInterimTemplateResponse
|
|
2582
|
-
*/
|
|
2583
|
-
export const QueryGetInterimTemplateResponse = {
|
|
2584
|
-
typeUrl: "/sparkdream.rep.v1.QueryGetInterimTemplateResponse",
|
|
2585
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2586
|
-
if (message.interimTemplate !== undefined) {
|
|
2587
|
-
InterimTemplate.encode(message.interimTemplate, writer.uint32(10).fork()).ldelim();
|
|
2588
|
-
}
|
|
2589
|
-
return writer;
|
|
2590
|
-
},
|
|
2591
|
-
decode(input, length) {
|
|
2592
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2593
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2594
|
-
const message = createBaseQueryGetInterimTemplateResponse();
|
|
2595
|
-
while (reader.pos < end) {
|
|
2596
|
-
const tag = reader.uint32();
|
|
2597
|
-
switch (tag >>> 3) {
|
|
2598
|
-
case 1:
|
|
2599
|
-
message.interimTemplate = InterimTemplate.decode(reader, reader.uint32());
|
|
2600
|
-
break;
|
|
2601
|
-
default:
|
|
2602
|
-
reader.skipType(tag & 7);
|
|
2603
|
-
break;
|
|
2604
|
-
}
|
|
2605
|
-
}
|
|
2606
|
-
return message;
|
|
2607
|
-
},
|
|
2608
|
-
fromPartial(object) {
|
|
2609
|
-
const message = createBaseQueryGetInterimTemplateResponse();
|
|
2610
|
-
message.interimTemplate = object.interimTemplate !== undefined && object.interimTemplate !== null ? InterimTemplate.fromPartial(object.interimTemplate) : undefined;
|
|
2611
|
-
return message;
|
|
2612
|
-
},
|
|
2613
|
-
fromAmino(object) {
|
|
2614
|
-
const message = createBaseQueryGetInterimTemplateResponse();
|
|
2615
|
-
if (object.interim_template !== undefined && object.interim_template !== null) {
|
|
2616
|
-
message.interimTemplate = InterimTemplate.fromAmino(object.interim_template);
|
|
2617
|
-
}
|
|
2618
|
-
return message;
|
|
2619
|
-
},
|
|
2620
|
-
toAmino(message) {
|
|
2621
|
-
const obj = {};
|
|
2622
|
-
obj.interim_template = message.interimTemplate ? InterimTemplate.toAmino(message.interimTemplate) : undefined;
|
|
2623
|
-
return obj;
|
|
2624
|
-
},
|
|
2625
|
-
fromAminoMsg(object) {
|
|
2626
|
-
return QueryGetInterimTemplateResponse.fromAmino(object.value);
|
|
2627
|
-
},
|
|
2628
|
-
fromProtoMsg(message) {
|
|
2629
|
-
return QueryGetInterimTemplateResponse.decode(message.value);
|
|
2630
|
-
},
|
|
2631
|
-
toProto(message) {
|
|
2632
|
-
return QueryGetInterimTemplateResponse.encode(message).finish();
|
|
2633
|
-
},
|
|
2634
|
-
toProtoMsg(message) {
|
|
2635
|
-
return {
|
|
2636
|
-
typeUrl: "/sparkdream.rep.v1.QueryGetInterimTemplateResponse",
|
|
2637
|
-
value: QueryGetInterimTemplateResponse.encode(message).finish()
|
|
2638
|
-
};
|
|
2639
|
-
}
|
|
2640
|
-
};
|
|
2641
|
-
function createBaseQueryAllInterimTemplateRequest() {
|
|
2642
|
-
return {
|
|
2643
|
-
pagination: undefined
|
|
2644
|
-
};
|
|
2645
|
-
}
|
|
2646
|
-
/**
|
|
2647
|
-
* QueryAllInterimTemplateRequest defines the QueryAllInterimTemplateRequest message.
|
|
2648
|
-
* @name QueryAllInterimTemplateRequest
|
|
2649
|
-
* @package sparkdream.rep.v1
|
|
2650
|
-
* @see proto type: sparkdream.rep.v1.QueryAllInterimTemplateRequest
|
|
2651
|
-
*/
|
|
2652
|
-
export const QueryAllInterimTemplateRequest = {
|
|
2653
|
-
typeUrl: "/sparkdream.rep.v1.QueryAllInterimTemplateRequest",
|
|
2654
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2655
|
-
if (message.pagination !== undefined) {
|
|
2656
|
-
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
2657
|
-
}
|
|
2658
|
-
return writer;
|
|
2659
|
-
},
|
|
2660
|
-
decode(input, length) {
|
|
2661
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2662
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2663
|
-
const message = createBaseQueryAllInterimTemplateRequest();
|
|
2664
|
-
while (reader.pos < end) {
|
|
2665
|
-
const tag = reader.uint32();
|
|
2666
|
-
switch (tag >>> 3) {
|
|
2667
|
-
case 1:
|
|
2668
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2669
|
-
break;
|
|
2670
|
-
default:
|
|
2671
|
-
reader.skipType(tag & 7);
|
|
2672
|
-
break;
|
|
2673
|
-
}
|
|
2674
|
-
}
|
|
2675
|
-
return message;
|
|
2676
|
-
},
|
|
2677
|
-
fromPartial(object) {
|
|
2678
|
-
const message = createBaseQueryAllInterimTemplateRequest();
|
|
2679
|
-
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2680
|
-
return message;
|
|
2681
|
-
},
|
|
2682
|
-
fromAmino(object) {
|
|
2683
|
-
const message = createBaseQueryAllInterimTemplateRequest();
|
|
2684
|
-
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2685
|
-
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2686
|
-
}
|
|
2687
|
-
return message;
|
|
2688
|
-
},
|
|
2689
|
-
toAmino(message) {
|
|
2690
|
-
const obj = {};
|
|
2691
|
-
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2692
|
-
return obj;
|
|
2693
|
-
},
|
|
2694
|
-
fromAminoMsg(object) {
|
|
2695
|
-
return QueryAllInterimTemplateRequest.fromAmino(object.value);
|
|
2696
|
-
},
|
|
2697
|
-
fromProtoMsg(message) {
|
|
2698
|
-
return QueryAllInterimTemplateRequest.decode(message.value);
|
|
2699
|
-
},
|
|
2700
|
-
toProto(message) {
|
|
2701
|
-
return QueryAllInterimTemplateRequest.encode(message).finish();
|
|
2702
|
-
},
|
|
2703
|
-
toProtoMsg(message) {
|
|
2704
|
-
return {
|
|
2705
|
-
typeUrl: "/sparkdream.rep.v1.QueryAllInterimTemplateRequest",
|
|
2706
|
-
value: QueryAllInterimTemplateRequest.encode(message).finish()
|
|
2707
|
-
};
|
|
2708
|
-
}
|
|
2709
|
-
};
|
|
2710
|
-
function createBaseQueryAllInterimTemplateResponse() {
|
|
2711
|
-
return {
|
|
2712
|
-
interimTemplate: [],
|
|
2713
|
-
pagination: undefined
|
|
2714
|
-
};
|
|
2715
|
-
}
|
|
2716
|
-
/**
|
|
2717
|
-
* QueryAllInterimTemplateResponse defines the QueryAllInterimTemplateResponse message.
|
|
2718
|
-
* @name QueryAllInterimTemplateResponse
|
|
2719
|
-
* @package sparkdream.rep.v1
|
|
2720
|
-
* @see proto type: sparkdream.rep.v1.QueryAllInterimTemplateResponse
|
|
2721
|
-
*/
|
|
2722
|
-
export const QueryAllInterimTemplateResponse = {
|
|
2723
|
-
typeUrl: "/sparkdream.rep.v1.QueryAllInterimTemplateResponse",
|
|
2724
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
2725
|
-
for (const v of message.interimTemplate) {
|
|
2726
|
-
InterimTemplate.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2727
|
-
}
|
|
2728
|
-
if (message.pagination !== undefined) {
|
|
2729
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2730
|
-
}
|
|
2731
|
-
return writer;
|
|
2732
|
-
},
|
|
2733
|
-
decode(input, length) {
|
|
2734
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2735
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2736
|
-
const message = createBaseQueryAllInterimTemplateResponse();
|
|
2737
|
-
while (reader.pos < end) {
|
|
2738
|
-
const tag = reader.uint32();
|
|
2739
|
-
switch (tag >>> 3) {
|
|
2740
|
-
case 1:
|
|
2741
|
-
message.interimTemplate.push(InterimTemplate.decode(reader, reader.uint32()));
|
|
2742
|
-
break;
|
|
2743
|
-
case 2:
|
|
2744
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2745
|
-
break;
|
|
2746
|
-
default:
|
|
2747
|
-
reader.skipType(tag & 7);
|
|
2748
|
-
break;
|
|
2749
|
-
}
|
|
2750
|
-
}
|
|
2751
|
-
return message;
|
|
2752
|
-
},
|
|
2753
|
-
fromPartial(object) {
|
|
2754
|
-
const message = createBaseQueryAllInterimTemplateResponse();
|
|
2755
|
-
message.interimTemplate = object.interimTemplate?.map(e => InterimTemplate.fromPartial(e)) || [];
|
|
2756
|
-
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2757
|
-
return message;
|
|
2758
|
-
},
|
|
2759
|
-
fromAmino(object) {
|
|
2760
|
-
const message = createBaseQueryAllInterimTemplateResponse();
|
|
2761
|
-
message.interimTemplate = object.interim_template?.map(e => InterimTemplate.fromAmino(e)) || [];
|
|
2762
|
-
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2763
|
-
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2764
|
-
}
|
|
2765
|
-
return message;
|
|
2766
|
-
},
|
|
2767
|
-
toAmino(message) {
|
|
2768
|
-
const obj = {};
|
|
2769
|
-
if (message.interimTemplate) {
|
|
2770
|
-
obj.interim_template = message.interimTemplate.map(e => e ? InterimTemplate.toAmino(e) : undefined);
|
|
2771
|
-
}
|
|
2772
|
-
else {
|
|
2773
|
-
obj.interim_template = message.interimTemplate;
|
|
2774
|
-
}
|
|
2775
|
-
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2776
|
-
return obj;
|
|
2777
|
-
},
|
|
2778
|
-
fromAminoMsg(object) {
|
|
2779
|
-
return QueryAllInterimTemplateResponse.fromAmino(object.value);
|
|
2780
|
-
},
|
|
2781
|
-
fromProtoMsg(message) {
|
|
2782
|
-
return QueryAllInterimTemplateResponse.decode(message.value);
|
|
2783
|
-
},
|
|
2784
|
-
toProto(message) {
|
|
2785
|
-
return QueryAllInterimTemplateResponse.encode(message).finish();
|
|
2786
|
-
},
|
|
2787
|
-
toProtoMsg(message) {
|
|
2788
|
-
return {
|
|
2789
|
-
typeUrl: "/sparkdream.rep.v1.QueryAllInterimTemplateResponse",
|
|
2790
|
-
value: QueryAllInterimTemplateResponse.encode(message).finish()
|
|
2791
|
-
};
|
|
2792
|
-
}
|
|
2793
|
-
};
|
|
2794
2505
|
function createBaseQueryMembersByTrustLevelRequest() {
|
|
2795
2506
|
return {
|
|
2796
2507
|
trustLevel: BigInt(0),
|
|
@@ -3121,40 +2832,47 @@ export const QueryInvitationsByInviterResponse = {
|
|
|
3121
2832
|
};
|
|
3122
2833
|
}
|
|
3123
2834
|
};
|
|
3124
|
-
function
|
|
2835
|
+
function createBaseQueryJuryReviewsByJurorRequest() {
|
|
3125
2836
|
return {
|
|
3126
|
-
|
|
2837
|
+
juror: "",
|
|
2838
|
+
pendingOnly: false,
|
|
3127
2839
|
pagination: undefined
|
|
3128
2840
|
};
|
|
3129
2841
|
}
|
|
3130
2842
|
/**
|
|
3131
|
-
*
|
|
3132
|
-
* @name
|
|
2843
|
+
* QueryJuryReviewsByJurorRequest defines the QueryJuryReviewsByJuror request.
|
|
2844
|
+
* @name QueryJuryReviewsByJurorRequest
|
|
3133
2845
|
* @package sparkdream.rep.v1
|
|
3134
|
-
* @see proto type: sparkdream.rep.v1.
|
|
2846
|
+
* @see proto type: sparkdream.rep.v1.QueryJuryReviewsByJurorRequest
|
|
3135
2847
|
*/
|
|
3136
|
-
export const
|
|
3137
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
2848
|
+
export const QueryJuryReviewsByJurorRequest = {
|
|
2849
|
+
typeUrl: "/sparkdream.rep.v1.QueryJuryReviewsByJurorRequest",
|
|
3138
2850
|
encode(message, writer = BinaryWriter.create()) {
|
|
3139
|
-
if (message.
|
|
3140
|
-
writer.uint32(10).string(message.
|
|
2851
|
+
if (message.juror !== "") {
|
|
2852
|
+
writer.uint32(10).string(message.juror);
|
|
2853
|
+
}
|
|
2854
|
+
if (message.pendingOnly === true) {
|
|
2855
|
+
writer.uint32(16).bool(message.pendingOnly);
|
|
3141
2856
|
}
|
|
3142
2857
|
if (message.pagination !== undefined) {
|
|
3143
|
-
PageRequest.encode(message.pagination, writer.uint32(
|
|
2858
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
3144
2859
|
}
|
|
3145
2860
|
return writer;
|
|
3146
2861
|
},
|
|
3147
2862
|
decode(input, length) {
|
|
3148
2863
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3149
2864
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3150
|
-
const message =
|
|
2865
|
+
const message = createBaseQueryJuryReviewsByJurorRequest();
|
|
3151
2866
|
while (reader.pos < end) {
|
|
3152
2867
|
const tag = reader.uint32();
|
|
3153
2868
|
switch (tag >>> 3) {
|
|
3154
2869
|
case 1:
|
|
3155
|
-
message.
|
|
2870
|
+
message.juror = reader.string();
|
|
3156
2871
|
break;
|
|
3157
2872
|
case 2:
|
|
2873
|
+
message.pendingOnly = reader.bool();
|
|
2874
|
+
break;
|
|
2875
|
+
case 3:
|
|
3158
2876
|
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
3159
2877
|
break;
|
|
3160
2878
|
default:
|
|
@@ -3165,15 +2883,19 @@ export const QueryInterimsByAssigneeRequest = {
|
|
|
3165
2883
|
return message;
|
|
3166
2884
|
},
|
|
3167
2885
|
fromPartial(object) {
|
|
3168
|
-
const message =
|
|
3169
|
-
message.
|
|
2886
|
+
const message = createBaseQueryJuryReviewsByJurorRequest();
|
|
2887
|
+
message.juror = object.juror ?? "";
|
|
2888
|
+
message.pendingOnly = object.pendingOnly ?? false;
|
|
3170
2889
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
3171
2890
|
return message;
|
|
3172
2891
|
},
|
|
3173
2892
|
fromAmino(object) {
|
|
3174
|
-
const message =
|
|
3175
|
-
if (object.
|
|
3176
|
-
message.
|
|
2893
|
+
const message = createBaseQueryJuryReviewsByJurorRequest();
|
|
2894
|
+
if (object.juror !== undefined && object.juror !== null) {
|
|
2895
|
+
message.juror = object.juror;
|
|
2896
|
+
}
|
|
2897
|
+
if (object.pending_only !== undefined && object.pending_only !== null) {
|
|
2898
|
+
message.pendingOnly = object.pending_only;
|
|
3177
2899
|
}
|
|
3178
2900
|
if (object.pagination !== undefined && object.pagination !== null) {
|
|
3179
2901
|
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
@@ -3182,44 +2904,210 @@ export const QueryInterimsByAssigneeRequest = {
|
|
|
3182
2904
|
},
|
|
3183
2905
|
toAmino(message) {
|
|
3184
2906
|
const obj = {};
|
|
3185
|
-
obj.
|
|
2907
|
+
obj.juror = message.juror === "" ? undefined : message.juror;
|
|
2908
|
+
obj.pending_only = message.pendingOnly === false ? undefined : message.pendingOnly;
|
|
3186
2909
|
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
3187
2910
|
return obj;
|
|
3188
2911
|
},
|
|
3189
2912
|
fromAminoMsg(object) {
|
|
3190
|
-
return
|
|
2913
|
+
return QueryJuryReviewsByJurorRequest.fromAmino(object.value);
|
|
3191
2914
|
},
|
|
3192
2915
|
fromProtoMsg(message) {
|
|
3193
|
-
return
|
|
2916
|
+
return QueryJuryReviewsByJurorRequest.decode(message.value);
|
|
3194
2917
|
},
|
|
3195
2918
|
toProto(message) {
|
|
3196
|
-
return
|
|
2919
|
+
return QueryJuryReviewsByJurorRequest.encode(message).finish();
|
|
3197
2920
|
},
|
|
3198
2921
|
toProtoMsg(message) {
|
|
3199
2922
|
return {
|
|
3200
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
3201
|
-
value:
|
|
2923
|
+
typeUrl: "/sparkdream.rep.v1.QueryJuryReviewsByJurorRequest",
|
|
2924
|
+
value: QueryJuryReviewsByJurorRequest.encode(message).finish()
|
|
3202
2925
|
};
|
|
3203
2926
|
}
|
|
3204
2927
|
};
|
|
3205
|
-
function
|
|
2928
|
+
function createBaseQueryJuryReviewsByJurorResponse() {
|
|
3206
2929
|
return {
|
|
3207
|
-
|
|
3208
|
-
interimType: BigInt(0),
|
|
3209
|
-
status: BigInt(0),
|
|
2930
|
+
juryReview: [],
|
|
3210
2931
|
pagination: undefined
|
|
3211
2932
|
};
|
|
3212
2933
|
}
|
|
3213
2934
|
/**
|
|
3214
|
-
*
|
|
3215
|
-
* @name
|
|
2935
|
+
* QueryJuryReviewsByJurorResponse defines the QueryJuryReviewsByJuror response.
|
|
2936
|
+
* @name QueryJuryReviewsByJurorResponse
|
|
3216
2937
|
* @package sparkdream.rep.v1
|
|
3217
|
-
* @see proto type: sparkdream.rep.v1.
|
|
2938
|
+
* @see proto type: sparkdream.rep.v1.QueryJuryReviewsByJurorResponse
|
|
3218
2939
|
*/
|
|
3219
|
-
export const
|
|
3220
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
2940
|
+
export const QueryJuryReviewsByJurorResponse = {
|
|
2941
|
+
typeUrl: "/sparkdream.rep.v1.QueryJuryReviewsByJurorResponse",
|
|
3221
2942
|
encode(message, writer = BinaryWriter.create()) {
|
|
3222
|
-
|
|
2943
|
+
for (const v of message.juryReview) {
|
|
2944
|
+
JuryReview.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2945
|
+
}
|
|
2946
|
+
if (message.pagination !== undefined) {
|
|
2947
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2948
|
+
}
|
|
2949
|
+
return writer;
|
|
2950
|
+
},
|
|
2951
|
+
decode(input, length) {
|
|
2952
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2953
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2954
|
+
const message = createBaseQueryJuryReviewsByJurorResponse();
|
|
2955
|
+
while (reader.pos < end) {
|
|
2956
|
+
const tag = reader.uint32();
|
|
2957
|
+
switch (tag >>> 3) {
|
|
2958
|
+
case 1:
|
|
2959
|
+
message.juryReview.push(JuryReview.decode(reader, reader.uint32()));
|
|
2960
|
+
break;
|
|
2961
|
+
case 2:
|
|
2962
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2963
|
+
break;
|
|
2964
|
+
default:
|
|
2965
|
+
reader.skipType(tag & 7);
|
|
2966
|
+
break;
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
return message;
|
|
2970
|
+
},
|
|
2971
|
+
fromPartial(object) {
|
|
2972
|
+
const message = createBaseQueryJuryReviewsByJurorResponse();
|
|
2973
|
+
message.juryReview = object.juryReview?.map(e => JuryReview.fromPartial(e)) || [];
|
|
2974
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2975
|
+
return message;
|
|
2976
|
+
},
|
|
2977
|
+
fromAmino(object) {
|
|
2978
|
+
const message = createBaseQueryJuryReviewsByJurorResponse();
|
|
2979
|
+
message.juryReview = object.jury_review?.map(e => JuryReview.fromAmino(e)) || [];
|
|
2980
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2981
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2982
|
+
}
|
|
2983
|
+
return message;
|
|
2984
|
+
},
|
|
2985
|
+
toAmino(message) {
|
|
2986
|
+
const obj = {};
|
|
2987
|
+
if (message.juryReview) {
|
|
2988
|
+
obj.jury_review = message.juryReview.map(e => e ? JuryReview.toAmino(e) : undefined);
|
|
2989
|
+
}
|
|
2990
|
+
else {
|
|
2991
|
+
obj.jury_review = message.juryReview;
|
|
2992
|
+
}
|
|
2993
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2994
|
+
return obj;
|
|
2995
|
+
},
|
|
2996
|
+
fromAminoMsg(object) {
|
|
2997
|
+
return QueryJuryReviewsByJurorResponse.fromAmino(object.value);
|
|
2998
|
+
},
|
|
2999
|
+
fromProtoMsg(message) {
|
|
3000
|
+
return QueryJuryReviewsByJurorResponse.decode(message.value);
|
|
3001
|
+
},
|
|
3002
|
+
toProto(message) {
|
|
3003
|
+
return QueryJuryReviewsByJurorResponse.encode(message).finish();
|
|
3004
|
+
},
|
|
3005
|
+
toProtoMsg(message) {
|
|
3006
|
+
return {
|
|
3007
|
+
typeUrl: "/sparkdream.rep.v1.QueryJuryReviewsByJurorResponse",
|
|
3008
|
+
value: QueryJuryReviewsByJurorResponse.encode(message).finish()
|
|
3009
|
+
};
|
|
3010
|
+
}
|
|
3011
|
+
};
|
|
3012
|
+
function createBaseQueryInterimsByAssigneeRequest() {
|
|
3013
|
+
return {
|
|
3014
|
+
assignee: "",
|
|
3015
|
+
pagination: undefined
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3018
|
+
/**
|
|
3019
|
+
* QueryInterimsByAssigneeRequest defines the QueryInterimsByAssigneeRequest message.
|
|
3020
|
+
* @name QueryInterimsByAssigneeRequest
|
|
3021
|
+
* @package sparkdream.rep.v1
|
|
3022
|
+
* @see proto type: sparkdream.rep.v1.QueryInterimsByAssigneeRequest
|
|
3023
|
+
*/
|
|
3024
|
+
export const QueryInterimsByAssigneeRequest = {
|
|
3025
|
+
typeUrl: "/sparkdream.rep.v1.QueryInterimsByAssigneeRequest",
|
|
3026
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3027
|
+
if (message.assignee !== "") {
|
|
3028
|
+
writer.uint32(10).string(message.assignee);
|
|
3029
|
+
}
|
|
3030
|
+
if (message.pagination !== undefined) {
|
|
3031
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
3032
|
+
}
|
|
3033
|
+
return writer;
|
|
3034
|
+
},
|
|
3035
|
+
decode(input, length) {
|
|
3036
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3037
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3038
|
+
const message = createBaseQueryInterimsByAssigneeRequest();
|
|
3039
|
+
while (reader.pos < end) {
|
|
3040
|
+
const tag = reader.uint32();
|
|
3041
|
+
switch (tag >>> 3) {
|
|
3042
|
+
case 1:
|
|
3043
|
+
message.assignee = reader.string();
|
|
3044
|
+
break;
|
|
3045
|
+
case 2:
|
|
3046
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
3047
|
+
break;
|
|
3048
|
+
default:
|
|
3049
|
+
reader.skipType(tag & 7);
|
|
3050
|
+
break;
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
return message;
|
|
3054
|
+
},
|
|
3055
|
+
fromPartial(object) {
|
|
3056
|
+
const message = createBaseQueryInterimsByAssigneeRequest();
|
|
3057
|
+
message.assignee = object.assignee ?? "";
|
|
3058
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
3059
|
+
return message;
|
|
3060
|
+
},
|
|
3061
|
+
fromAmino(object) {
|
|
3062
|
+
const message = createBaseQueryInterimsByAssigneeRequest();
|
|
3063
|
+
if (object.assignee !== undefined && object.assignee !== null) {
|
|
3064
|
+
message.assignee = object.assignee;
|
|
3065
|
+
}
|
|
3066
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
3067
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
3068
|
+
}
|
|
3069
|
+
return message;
|
|
3070
|
+
},
|
|
3071
|
+
toAmino(message) {
|
|
3072
|
+
const obj = {};
|
|
3073
|
+
obj.assignee = message.assignee === "" ? undefined : message.assignee;
|
|
3074
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
3075
|
+
return obj;
|
|
3076
|
+
},
|
|
3077
|
+
fromAminoMsg(object) {
|
|
3078
|
+
return QueryInterimsByAssigneeRequest.fromAmino(object.value);
|
|
3079
|
+
},
|
|
3080
|
+
fromProtoMsg(message) {
|
|
3081
|
+
return QueryInterimsByAssigneeRequest.decode(message.value);
|
|
3082
|
+
},
|
|
3083
|
+
toProto(message) {
|
|
3084
|
+
return QueryInterimsByAssigneeRequest.encode(message).finish();
|
|
3085
|
+
},
|
|
3086
|
+
toProtoMsg(message) {
|
|
3087
|
+
return {
|
|
3088
|
+
typeUrl: "/sparkdream.rep.v1.QueryInterimsByAssigneeRequest",
|
|
3089
|
+
value: QueryInterimsByAssigneeRequest.encode(message).finish()
|
|
3090
|
+
};
|
|
3091
|
+
}
|
|
3092
|
+
};
|
|
3093
|
+
function createBaseQueryInterimsByAssigneeResponse() {
|
|
3094
|
+
return {
|
|
3095
|
+
interimId: BigInt(0),
|
|
3096
|
+
interimType: BigInt(0),
|
|
3097
|
+
status: BigInt(0),
|
|
3098
|
+
pagination: undefined
|
|
3099
|
+
};
|
|
3100
|
+
}
|
|
3101
|
+
/**
|
|
3102
|
+
* QueryInterimsByAssigneeResponse defines the QueryInterimsByAssigneeResponse message.
|
|
3103
|
+
* @name QueryInterimsByAssigneeResponse
|
|
3104
|
+
* @package sparkdream.rep.v1
|
|
3105
|
+
* @see proto type: sparkdream.rep.v1.QueryInterimsByAssigneeResponse
|
|
3106
|
+
*/
|
|
3107
|
+
export const QueryInterimsByAssigneeResponse = {
|
|
3108
|
+
typeUrl: "/sparkdream.rep.v1.QueryInterimsByAssigneeResponse",
|
|
3109
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3110
|
+
if (message.interimId !== BigInt(0)) {
|
|
3223
3111
|
writer.uint32(8).uint64(message.interimId);
|
|
3224
3112
|
}
|
|
3225
3113
|
if (message.interimType !== BigInt(0)) {
|
|
@@ -12823,3 +12711,1236 @@ export const QueryAuthorBondsByTypeResponse = {
|
|
|
12823
12711
|
};
|
|
12824
12712
|
}
|
|
12825
12713
|
};
|
|
12714
|
+
function createBaseQueryRoleActivityRequest() {
|
|
12715
|
+
return {
|
|
12716
|
+
roleType: 0,
|
|
12717
|
+
address: ""
|
|
12718
|
+
};
|
|
12719
|
+
}
|
|
12720
|
+
/**
|
|
12721
|
+
* QueryRoleActivityRequest defines the QueryRoleActivity request.
|
|
12722
|
+
* @name QueryRoleActivityRequest
|
|
12723
|
+
* @package sparkdream.rep.v1
|
|
12724
|
+
* @see proto type: sparkdream.rep.v1.QueryRoleActivityRequest
|
|
12725
|
+
*/
|
|
12726
|
+
export const QueryRoleActivityRequest = {
|
|
12727
|
+
typeUrl: "/sparkdream.rep.v1.QueryRoleActivityRequest",
|
|
12728
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
12729
|
+
if (message.roleType !== 0) {
|
|
12730
|
+
writer.uint32(8).int32(message.roleType);
|
|
12731
|
+
}
|
|
12732
|
+
if (message.address !== "") {
|
|
12733
|
+
writer.uint32(18).string(message.address);
|
|
12734
|
+
}
|
|
12735
|
+
return writer;
|
|
12736
|
+
},
|
|
12737
|
+
decode(input, length) {
|
|
12738
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
12739
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12740
|
+
const message = createBaseQueryRoleActivityRequest();
|
|
12741
|
+
while (reader.pos < end) {
|
|
12742
|
+
const tag = reader.uint32();
|
|
12743
|
+
switch (tag >>> 3) {
|
|
12744
|
+
case 1:
|
|
12745
|
+
message.roleType = reader.int32();
|
|
12746
|
+
break;
|
|
12747
|
+
case 2:
|
|
12748
|
+
message.address = reader.string();
|
|
12749
|
+
break;
|
|
12750
|
+
default:
|
|
12751
|
+
reader.skipType(tag & 7);
|
|
12752
|
+
break;
|
|
12753
|
+
}
|
|
12754
|
+
}
|
|
12755
|
+
return message;
|
|
12756
|
+
},
|
|
12757
|
+
fromPartial(object) {
|
|
12758
|
+
const message = createBaseQueryRoleActivityRequest();
|
|
12759
|
+
message.roleType = object.roleType ?? 0;
|
|
12760
|
+
message.address = object.address ?? "";
|
|
12761
|
+
return message;
|
|
12762
|
+
},
|
|
12763
|
+
fromAmino(object) {
|
|
12764
|
+
const message = createBaseQueryRoleActivityRequest();
|
|
12765
|
+
if (object.role_type !== undefined && object.role_type !== null) {
|
|
12766
|
+
message.roleType = object.role_type;
|
|
12767
|
+
}
|
|
12768
|
+
if (object.address !== undefined && object.address !== null) {
|
|
12769
|
+
message.address = object.address;
|
|
12770
|
+
}
|
|
12771
|
+
return message;
|
|
12772
|
+
},
|
|
12773
|
+
toAmino(message) {
|
|
12774
|
+
const obj = {};
|
|
12775
|
+
obj.role_type = message.roleType === 0 ? undefined : message.roleType;
|
|
12776
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
12777
|
+
return obj;
|
|
12778
|
+
},
|
|
12779
|
+
fromAminoMsg(object) {
|
|
12780
|
+
return QueryRoleActivityRequest.fromAmino(object.value);
|
|
12781
|
+
},
|
|
12782
|
+
fromProtoMsg(message) {
|
|
12783
|
+
return QueryRoleActivityRequest.decode(message.value);
|
|
12784
|
+
},
|
|
12785
|
+
toProto(message) {
|
|
12786
|
+
return QueryRoleActivityRequest.encode(message).finish();
|
|
12787
|
+
},
|
|
12788
|
+
toProtoMsg(message) {
|
|
12789
|
+
return {
|
|
12790
|
+
typeUrl: "/sparkdream.rep.v1.QueryRoleActivityRequest",
|
|
12791
|
+
value: QueryRoleActivityRequest.encode(message).finish()
|
|
12792
|
+
};
|
|
12793
|
+
}
|
|
12794
|
+
};
|
|
12795
|
+
function createBaseQueryRoleActivityResponse() {
|
|
12796
|
+
return {
|
|
12797
|
+
roleActivity: RoleActivity.fromPartial({})
|
|
12798
|
+
};
|
|
12799
|
+
}
|
|
12800
|
+
/**
|
|
12801
|
+
* QueryRoleActivityResponse defines the QueryRoleActivity response.
|
|
12802
|
+
* @name QueryRoleActivityResponse
|
|
12803
|
+
* @package sparkdream.rep.v1
|
|
12804
|
+
* @see proto type: sparkdream.rep.v1.QueryRoleActivityResponse
|
|
12805
|
+
*/
|
|
12806
|
+
export const QueryRoleActivityResponse = {
|
|
12807
|
+
typeUrl: "/sparkdream.rep.v1.QueryRoleActivityResponse",
|
|
12808
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
12809
|
+
if (message.roleActivity !== undefined) {
|
|
12810
|
+
RoleActivity.encode(message.roleActivity, writer.uint32(10).fork()).ldelim();
|
|
12811
|
+
}
|
|
12812
|
+
return writer;
|
|
12813
|
+
},
|
|
12814
|
+
decode(input, length) {
|
|
12815
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
12816
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12817
|
+
const message = createBaseQueryRoleActivityResponse();
|
|
12818
|
+
while (reader.pos < end) {
|
|
12819
|
+
const tag = reader.uint32();
|
|
12820
|
+
switch (tag >>> 3) {
|
|
12821
|
+
case 1:
|
|
12822
|
+
message.roleActivity = RoleActivity.decode(reader, reader.uint32());
|
|
12823
|
+
break;
|
|
12824
|
+
default:
|
|
12825
|
+
reader.skipType(tag & 7);
|
|
12826
|
+
break;
|
|
12827
|
+
}
|
|
12828
|
+
}
|
|
12829
|
+
return message;
|
|
12830
|
+
},
|
|
12831
|
+
fromPartial(object) {
|
|
12832
|
+
const message = createBaseQueryRoleActivityResponse();
|
|
12833
|
+
message.roleActivity = object.roleActivity !== undefined && object.roleActivity !== null ? RoleActivity.fromPartial(object.roleActivity) : undefined;
|
|
12834
|
+
return message;
|
|
12835
|
+
},
|
|
12836
|
+
fromAmino(object) {
|
|
12837
|
+
const message = createBaseQueryRoleActivityResponse();
|
|
12838
|
+
if (object.role_activity !== undefined && object.role_activity !== null) {
|
|
12839
|
+
message.roleActivity = RoleActivity.fromAmino(object.role_activity);
|
|
12840
|
+
}
|
|
12841
|
+
return message;
|
|
12842
|
+
},
|
|
12843
|
+
toAmino(message) {
|
|
12844
|
+
const obj = {};
|
|
12845
|
+
obj.role_activity = message.roleActivity ? RoleActivity.toAmino(message.roleActivity) : undefined;
|
|
12846
|
+
return obj;
|
|
12847
|
+
},
|
|
12848
|
+
fromAminoMsg(object) {
|
|
12849
|
+
return QueryRoleActivityResponse.fromAmino(object.value);
|
|
12850
|
+
},
|
|
12851
|
+
fromProtoMsg(message) {
|
|
12852
|
+
return QueryRoleActivityResponse.decode(message.value);
|
|
12853
|
+
},
|
|
12854
|
+
toProto(message) {
|
|
12855
|
+
return QueryRoleActivityResponse.encode(message).finish();
|
|
12856
|
+
},
|
|
12857
|
+
toProtoMsg(message) {
|
|
12858
|
+
return {
|
|
12859
|
+
typeUrl: "/sparkdream.rep.v1.QueryRoleActivityResponse",
|
|
12860
|
+
value: QueryRoleActivityResponse.encode(message).finish()
|
|
12861
|
+
};
|
|
12862
|
+
}
|
|
12863
|
+
};
|
|
12864
|
+
function createBaseQueryRoleRewardPoolsRequest() {
|
|
12865
|
+
return {};
|
|
12866
|
+
}
|
|
12867
|
+
/**
|
|
12868
|
+
* QueryRoleRewardPoolsRequest is the request for RoleRewardPools.
|
|
12869
|
+
* @name QueryRoleRewardPoolsRequest
|
|
12870
|
+
* @package sparkdream.rep.v1
|
|
12871
|
+
* @see proto type: sparkdream.rep.v1.QueryRoleRewardPoolsRequest
|
|
12872
|
+
*/
|
|
12873
|
+
export const QueryRoleRewardPoolsRequest = {
|
|
12874
|
+
typeUrl: "/sparkdream.rep.v1.QueryRoleRewardPoolsRequest",
|
|
12875
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
12876
|
+
return writer;
|
|
12877
|
+
},
|
|
12878
|
+
decode(input, length) {
|
|
12879
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
12880
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12881
|
+
const message = createBaseQueryRoleRewardPoolsRequest();
|
|
12882
|
+
while (reader.pos < end) {
|
|
12883
|
+
const tag = reader.uint32();
|
|
12884
|
+
switch (tag >>> 3) {
|
|
12885
|
+
default:
|
|
12886
|
+
reader.skipType(tag & 7);
|
|
12887
|
+
break;
|
|
12888
|
+
}
|
|
12889
|
+
}
|
|
12890
|
+
return message;
|
|
12891
|
+
},
|
|
12892
|
+
fromPartial(_) {
|
|
12893
|
+
const message = createBaseQueryRoleRewardPoolsRequest();
|
|
12894
|
+
return message;
|
|
12895
|
+
},
|
|
12896
|
+
fromAmino(_) {
|
|
12897
|
+
const message = createBaseQueryRoleRewardPoolsRequest();
|
|
12898
|
+
return message;
|
|
12899
|
+
},
|
|
12900
|
+
toAmino(_) {
|
|
12901
|
+
const obj = {};
|
|
12902
|
+
return obj;
|
|
12903
|
+
},
|
|
12904
|
+
fromAminoMsg(object) {
|
|
12905
|
+
return QueryRoleRewardPoolsRequest.fromAmino(object.value);
|
|
12906
|
+
},
|
|
12907
|
+
fromProtoMsg(message) {
|
|
12908
|
+
return QueryRoleRewardPoolsRequest.decode(message.value);
|
|
12909
|
+
},
|
|
12910
|
+
toProto(message) {
|
|
12911
|
+
return QueryRoleRewardPoolsRequest.encode(message).finish();
|
|
12912
|
+
},
|
|
12913
|
+
toProtoMsg(message) {
|
|
12914
|
+
return {
|
|
12915
|
+
typeUrl: "/sparkdream.rep.v1.QueryRoleRewardPoolsRequest",
|
|
12916
|
+
value: QueryRoleRewardPoolsRequest.encode(message).finish()
|
|
12917
|
+
};
|
|
12918
|
+
}
|
|
12919
|
+
};
|
|
12920
|
+
function createBaseRoleRewardPoolStatus() {
|
|
12921
|
+
return {
|
|
12922
|
+
role: "",
|
|
12923
|
+
address: "",
|
|
12924
|
+
balance: "",
|
|
12925
|
+
cap: "",
|
|
12926
|
+
headroom: ""
|
|
12927
|
+
};
|
|
12928
|
+
}
|
|
12929
|
+
/**
|
|
12930
|
+
* RoleRewardPoolStatus is one bonded-role reward pool's funding state.
|
|
12931
|
+
* @name RoleRewardPoolStatus
|
|
12932
|
+
* @package sparkdream.rep.v1
|
|
12933
|
+
* @see proto type: sparkdream.rep.v1.RoleRewardPoolStatus
|
|
12934
|
+
*/
|
|
12935
|
+
export const RoleRewardPoolStatus = {
|
|
12936
|
+
typeUrl: "/sparkdream.rep.v1.RoleRewardPoolStatus",
|
|
12937
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
12938
|
+
if (message.role !== "") {
|
|
12939
|
+
writer.uint32(10).string(message.role);
|
|
12940
|
+
}
|
|
12941
|
+
if (message.address !== "") {
|
|
12942
|
+
writer.uint32(18).string(message.address);
|
|
12943
|
+
}
|
|
12944
|
+
if (message.balance !== "") {
|
|
12945
|
+
writer.uint32(26).string(message.balance);
|
|
12946
|
+
}
|
|
12947
|
+
if (message.cap !== "") {
|
|
12948
|
+
writer.uint32(34).string(message.cap);
|
|
12949
|
+
}
|
|
12950
|
+
if (message.headroom !== "") {
|
|
12951
|
+
writer.uint32(42).string(message.headroom);
|
|
12952
|
+
}
|
|
12953
|
+
return writer;
|
|
12954
|
+
},
|
|
12955
|
+
decode(input, length) {
|
|
12956
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
12957
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12958
|
+
const message = createBaseRoleRewardPoolStatus();
|
|
12959
|
+
while (reader.pos < end) {
|
|
12960
|
+
const tag = reader.uint32();
|
|
12961
|
+
switch (tag >>> 3) {
|
|
12962
|
+
case 1:
|
|
12963
|
+
message.role = reader.string();
|
|
12964
|
+
break;
|
|
12965
|
+
case 2:
|
|
12966
|
+
message.address = reader.string();
|
|
12967
|
+
break;
|
|
12968
|
+
case 3:
|
|
12969
|
+
message.balance = reader.string();
|
|
12970
|
+
break;
|
|
12971
|
+
case 4:
|
|
12972
|
+
message.cap = reader.string();
|
|
12973
|
+
break;
|
|
12974
|
+
case 5:
|
|
12975
|
+
message.headroom = reader.string();
|
|
12976
|
+
break;
|
|
12977
|
+
default:
|
|
12978
|
+
reader.skipType(tag & 7);
|
|
12979
|
+
break;
|
|
12980
|
+
}
|
|
12981
|
+
}
|
|
12982
|
+
return message;
|
|
12983
|
+
},
|
|
12984
|
+
fromPartial(object) {
|
|
12985
|
+
const message = createBaseRoleRewardPoolStatus();
|
|
12986
|
+
message.role = object.role ?? "";
|
|
12987
|
+
message.address = object.address ?? "";
|
|
12988
|
+
message.balance = object.balance ?? "";
|
|
12989
|
+
message.cap = object.cap ?? "";
|
|
12990
|
+
message.headroom = object.headroom ?? "";
|
|
12991
|
+
return message;
|
|
12992
|
+
},
|
|
12993
|
+
fromAmino(object) {
|
|
12994
|
+
const message = createBaseRoleRewardPoolStatus();
|
|
12995
|
+
if (object.role !== undefined && object.role !== null) {
|
|
12996
|
+
message.role = object.role;
|
|
12997
|
+
}
|
|
12998
|
+
if (object.address !== undefined && object.address !== null) {
|
|
12999
|
+
message.address = object.address;
|
|
13000
|
+
}
|
|
13001
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
13002
|
+
message.balance = object.balance;
|
|
13003
|
+
}
|
|
13004
|
+
if (object.cap !== undefined && object.cap !== null) {
|
|
13005
|
+
message.cap = object.cap;
|
|
13006
|
+
}
|
|
13007
|
+
if (object.headroom !== undefined && object.headroom !== null) {
|
|
13008
|
+
message.headroom = object.headroom;
|
|
13009
|
+
}
|
|
13010
|
+
return message;
|
|
13011
|
+
},
|
|
13012
|
+
toAmino(message) {
|
|
13013
|
+
const obj = {};
|
|
13014
|
+
obj.role = message.role === "" ? undefined : message.role;
|
|
13015
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
13016
|
+
obj.balance = message.balance === "" ? undefined : message.balance;
|
|
13017
|
+
obj.cap = message.cap === "" ? undefined : message.cap;
|
|
13018
|
+
obj.headroom = message.headroom === "" ? undefined : message.headroom;
|
|
13019
|
+
return obj;
|
|
13020
|
+
},
|
|
13021
|
+
fromAminoMsg(object) {
|
|
13022
|
+
return RoleRewardPoolStatus.fromAmino(object.value);
|
|
13023
|
+
},
|
|
13024
|
+
fromProtoMsg(message) {
|
|
13025
|
+
return RoleRewardPoolStatus.decode(message.value);
|
|
13026
|
+
},
|
|
13027
|
+
toProto(message) {
|
|
13028
|
+
return RoleRewardPoolStatus.encode(message).finish();
|
|
13029
|
+
},
|
|
13030
|
+
toProtoMsg(message) {
|
|
13031
|
+
return {
|
|
13032
|
+
typeUrl: "/sparkdream.rep.v1.RoleRewardPoolStatus",
|
|
13033
|
+
value: RoleRewardPoolStatus.encode(message).finish()
|
|
13034
|
+
};
|
|
13035
|
+
}
|
|
13036
|
+
};
|
|
13037
|
+
function createBaseQueryRoleRewardPoolsResponse() {
|
|
13038
|
+
return {
|
|
13039
|
+
pools: [],
|
|
13040
|
+
fundedToday: "",
|
|
13041
|
+
dailyFundingCap: "",
|
|
13042
|
+
inflationShare: ""
|
|
13043
|
+
};
|
|
13044
|
+
}
|
|
13045
|
+
/**
|
|
13046
|
+
* QueryRoleRewardPoolsResponse is the response for RoleRewardPools.
|
|
13047
|
+
* @name QueryRoleRewardPoolsResponse
|
|
13048
|
+
* @package sparkdream.rep.v1
|
|
13049
|
+
* @see proto type: sparkdream.rep.v1.QueryRoleRewardPoolsResponse
|
|
13050
|
+
*/
|
|
13051
|
+
export const QueryRoleRewardPoolsResponse = {
|
|
13052
|
+
typeUrl: "/sparkdream.rep.v1.QueryRoleRewardPoolsResponse",
|
|
13053
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13054
|
+
for (const v of message.pools) {
|
|
13055
|
+
RoleRewardPoolStatus.encode(v, writer.uint32(10).fork()).ldelim();
|
|
13056
|
+
}
|
|
13057
|
+
if (message.fundedToday !== "") {
|
|
13058
|
+
writer.uint32(18).string(message.fundedToday);
|
|
13059
|
+
}
|
|
13060
|
+
if (message.dailyFundingCap !== "") {
|
|
13061
|
+
writer.uint32(26).string(message.dailyFundingCap);
|
|
13062
|
+
}
|
|
13063
|
+
if (message.inflationShare !== "") {
|
|
13064
|
+
writer.uint32(34).string(Decimal.fromUserInput(message.inflationShare, 18).atomics);
|
|
13065
|
+
}
|
|
13066
|
+
return writer;
|
|
13067
|
+
},
|
|
13068
|
+
decode(input, length) {
|
|
13069
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13070
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13071
|
+
const message = createBaseQueryRoleRewardPoolsResponse();
|
|
13072
|
+
while (reader.pos < end) {
|
|
13073
|
+
const tag = reader.uint32();
|
|
13074
|
+
switch (tag >>> 3) {
|
|
13075
|
+
case 1:
|
|
13076
|
+
message.pools.push(RoleRewardPoolStatus.decode(reader, reader.uint32()));
|
|
13077
|
+
break;
|
|
13078
|
+
case 2:
|
|
13079
|
+
message.fundedToday = reader.string();
|
|
13080
|
+
break;
|
|
13081
|
+
case 3:
|
|
13082
|
+
message.dailyFundingCap = reader.string();
|
|
13083
|
+
break;
|
|
13084
|
+
case 4:
|
|
13085
|
+
message.inflationShare = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
13086
|
+
break;
|
|
13087
|
+
default:
|
|
13088
|
+
reader.skipType(tag & 7);
|
|
13089
|
+
break;
|
|
13090
|
+
}
|
|
13091
|
+
}
|
|
13092
|
+
return message;
|
|
13093
|
+
},
|
|
13094
|
+
fromPartial(object) {
|
|
13095
|
+
const message = createBaseQueryRoleRewardPoolsResponse();
|
|
13096
|
+
message.pools = object.pools?.map(e => RoleRewardPoolStatus.fromPartial(e)) || [];
|
|
13097
|
+
message.fundedToday = object.fundedToday ?? "";
|
|
13098
|
+
message.dailyFundingCap = object.dailyFundingCap ?? "";
|
|
13099
|
+
message.inflationShare = object.inflationShare ?? "";
|
|
13100
|
+
return message;
|
|
13101
|
+
},
|
|
13102
|
+
fromAmino(object) {
|
|
13103
|
+
const message = createBaseQueryRoleRewardPoolsResponse();
|
|
13104
|
+
message.pools = object.pools?.map(e => RoleRewardPoolStatus.fromAmino(e)) || [];
|
|
13105
|
+
if (object.funded_today !== undefined && object.funded_today !== null) {
|
|
13106
|
+
message.fundedToday = object.funded_today;
|
|
13107
|
+
}
|
|
13108
|
+
if (object.daily_funding_cap !== undefined && object.daily_funding_cap !== null) {
|
|
13109
|
+
message.dailyFundingCap = object.daily_funding_cap;
|
|
13110
|
+
}
|
|
13111
|
+
if (object.inflation_share !== undefined && object.inflation_share !== null) {
|
|
13112
|
+
message.inflationShare = object.inflation_share;
|
|
13113
|
+
}
|
|
13114
|
+
return message;
|
|
13115
|
+
},
|
|
13116
|
+
toAmino(message) {
|
|
13117
|
+
const obj = {};
|
|
13118
|
+
if (message.pools) {
|
|
13119
|
+
obj.pools = message.pools.map(e => e ? RoleRewardPoolStatus.toAmino(e) : undefined);
|
|
13120
|
+
}
|
|
13121
|
+
else {
|
|
13122
|
+
obj.pools = message.pools;
|
|
13123
|
+
}
|
|
13124
|
+
obj.funded_today = message.fundedToday === "" ? undefined : message.fundedToday;
|
|
13125
|
+
obj.daily_funding_cap = message.dailyFundingCap === "" ? undefined : message.dailyFundingCap;
|
|
13126
|
+
obj.inflation_share = message.inflationShare === "" ? undefined : message.inflationShare;
|
|
13127
|
+
return obj;
|
|
13128
|
+
},
|
|
13129
|
+
fromAminoMsg(object) {
|
|
13130
|
+
return QueryRoleRewardPoolsResponse.fromAmino(object.value);
|
|
13131
|
+
},
|
|
13132
|
+
fromProtoMsg(message) {
|
|
13133
|
+
return QueryRoleRewardPoolsResponse.decode(message.value);
|
|
13134
|
+
},
|
|
13135
|
+
toProto(message) {
|
|
13136
|
+
return QueryRoleRewardPoolsResponse.encode(message).finish();
|
|
13137
|
+
},
|
|
13138
|
+
toProtoMsg(message) {
|
|
13139
|
+
return {
|
|
13140
|
+
typeUrl: "/sparkdream.rep.v1.QueryRoleRewardPoolsResponse",
|
|
13141
|
+
value: QueryRoleRewardPoolsResponse.encode(message).finish()
|
|
13142
|
+
};
|
|
13143
|
+
}
|
|
13144
|
+
};
|
|
13145
|
+
function createBaseQueryInitiativeReviewsRequest() {
|
|
13146
|
+
return {
|
|
13147
|
+
initiativeId: BigInt(0)
|
|
13148
|
+
};
|
|
13149
|
+
}
|
|
13150
|
+
/**
|
|
13151
|
+
* QueryInitiativeReviewsRequest asks for the verdicts on one initiative.
|
|
13152
|
+
*
|
|
13153
|
+
* Deliberately has NO round selector. The codebase convention for an optional
|
|
13154
|
+
* numeric filter is a plain field where zero means unset (see
|
|
13155
|
+
* QueryPostsRequest.category_id, QuerySeasonStatsRequest.season,
|
|
13156
|
+
* QueryShieldRequest.epoch) — which works there because none of those domains
|
|
13157
|
+
* has a valid zero. Review rounds number from 0, so the same convention would
|
|
13158
|
+
* make the first round unaddressable. Rather than diverge from the convention
|
|
13159
|
+
* for one message, every round is returned: max_review_rounds bounds the set at
|
|
13160
|
+
* 3, so there is nothing to select between and nothing to paginate.
|
|
13161
|
+
* @name QueryInitiativeReviewsRequest
|
|
13162
|
+
* @package sparkdream.rep.v1
|
|
13163
|
+
* @see proto type: sparkdream.rep.v1.QueryInitiativeReviewsRequest
|
|
13164
|
+
*/
|
|
13165
|
+
export const QueryInitiativeReviewsRequest = {
|
|
13166
|
+
typeUrl: "/sparkdream.rep.v1.QueryInitiativeReviewsRequest",
|
|
13167
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13168
|
+
if (message.initiativeId !== BigInt(0)) {
|
|
13169
|
+
writer.uint32(8).uint64(message.initiativeId);
|
|
13170
|
+
}
|
|
13171
|
+
return writer;
|
|
13172
|
+
},
|
|
13173
|
+
decode(input, length) {
|
|
13174
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13175
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13176
|
+
const message = createBaseQueryInitiativeReviewsRequest();
|
|
13177
|
+
while (reader.pos < end) {
|
|
13178
|
+
const tag = reader.uint32();
|
|
13179
|
+
switch (tag >>> 3) {
|
|
13180
|
+
case 1:
|
|
13181
|
+
message.initiativeId = reader.uint64();
|
|
13182
|
+
break;
|
|
13183
|
+
default:
|
|
13184
|
+
reader.skipType(tag & 7);
|
|
13185
|
+
break;
|
|
13186
|
+
}
|
|
13187
|
+
}
|
|
13188
|
+
return message;
|
|
13189
|
+
},
|
|
13190
|
+
fromPartial(object) {
|
|
13191
|
+
const message = createBaseQueryInitiativeReviewsRequest();
|
|
13192
|
+
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
13193
|
+
return message;
|
|
13194
|
+
},
|
|
13195
|
+
fromAmino(object) {
|
|
13196
|
+
const message = createBaseQueryInitiativeReviewsRequest();
|
|
13197
|
+
if (object.initiative_id !== undefined && object.initiative_id !== null) {
|
|
13198
|
+
message.initiativeId = BigInt(object.initiative_id);
|
|
13199
|
+
}
|
|
13200
|
+
return message;
|
|
13201
|
+
},
|
|
13202
|
+
toAmino(message) {
|
|
13203
|
+
const obj = {};
|
|
13204
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
13205
|
+
return obj;
|
|
13206
|
+
},
|
|
13207
|
+
fromAminoMsg(object) {
|
|
13208
|
+
return QueryInitiativeReviewsRequest.fromAmino(object.value);
|
|
13209
|
+
},
|
|
13210
|
+
fromProtoMsg(message) {
|
|
13211
|
+
return QueryInitiativeReviewsRequest.decode(message.value);
|
|
13212
|
+
},
|
|
13213
|
+
toProto(message) {
|
|
13214
|
+
return QueryInitiativeReviewsRequest.encode(message).finish();
|
|
13215
|
+
},
|
|
13216
|
+
toProtoMsg(message) {
|
|
13217
|
+
return {
|
|
13218
|
+
typeUrl: "/sparkdream.rep.v1.QueryInitiativeReviewsRequest",
|
|
13219
|
+
value: QueryInitiativeReviewsRequest.encode(message).finish()
|
|
13220
|
+
};
|
|
13221
|
+
}
|
|
13222
|
+
};
|
|
13223
|
+
function createBaseQueryInitiativeReviewsResponse() {
|
|
13224
|
+
return {
|
|
13225
|
+
rounds: [],
|
|
13226
|
+
currentRound: 0,
|
|
13227
|
+
approvals: 0,
|
|
13228
|
+
required: 0,
|
|
13229
|
+
satisfied: false
|
|
13230
|
+
};
|
|
13231
|
+
}
|
|
13232
|
+
/**
|
|
13233
|
+
* QueryInitiativeReviewsResponse returns every round's verdicts, plus what the
|
|
13234
|
+
* current round adds up to against the gate.
|
|
13235
|
+
* @name QueryInitiativeReviewsResponse
|
|
13236
|
+
* @package sparkdream.rep.v1
|
|
13237
|
+
* @see proto type: sparkdream.rep.v1.QueryInitiativeReviewsResponse
|
|
13238
|
+
*/
|
|
13239
|
+
export const QueryInitiativeReviewsResponse = {
|
|
13240
|
+
typeUrl: "/sparkdream.rep.v1.QueryInitiativeReviewsResponse",
|
|
13241
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13242
|
+
for (const v of message.rounds) {
|
|
13243
|
+
InitiativeReviewRound.encode(v, writer.uint32(10).fork()).ldelim();
|
|
13244
|
+
}
|
|
13245
|
+
if (message.currentRound !== 0) {
|
|
13246
|
+
writer.uint32(16).uint32(message.currentRound);
|
|
13247
|
+
}
|
|
13248
|
+
if (message.approvals !== 0) {
|
|
13249
|
+
writer.uint32(24).uint32(message.approvals);
|
|
13250
|
+
}
|
|
13251
|
+
if (message.required !== 0) {
|
|
13252
|
+
writer.uint32(32).uint32(message.required);
|
|
13253
|
+
}
|
|
13254
|
+
if (message.satisfied === true) {
|
|
13255
|
+
writer.uint32(40).bool(message.satisfied);
|
|
13256
|
+
}
|
|
13257
|
+
return writer;
|
|
13258
|
+
},
|
|
13259
|
+
decode(input, length) {
|
|
13260
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13261
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13262
|
+
const message = createBaseQueryInitiativeReviewsResponse();
|
|
13263
|
+
while (reader.pos < end) {
|
|
13264
|
+
const tag = reader.uint32();
|
|
13265
|
+
switch (tag >>> 3) {
|
|
13266
|
+
case 1:
|
|
13267
|
+
message.rounds.push(InitiativeReviewRound.decode(reader, reader.uint32()));
|
|
13268
|
+
break;
|
|
13269
|
+
case 2:
|
|
13270
|
+
message.currentRound = reader.uint32();
|
|
13271
|
+
break;
|
|
13272
|
+
case 3:
|
|
13273
|
+
message.approvals = reader.uint32();
|
|
13274
|
+
break;
|
|
13275
|
+
case 4:
|
|
13276
|
+
message.required = reader.uint32();
|
|
13277
|
+
break;
|
|
13278
|
+
case 5:
|
|
13279
|
+
message.satisfied = reader.bool();
|
|
13280
|
+
break;
|
|
13281
|
+
default:
|
|
13282
|
+
reader.skipType(tag & 7);
|
|
13283
|
+
break;
|
|
13284
|
+
}
|
|
13285
|
+
}
|
|
13286
|
+
return message;
|
|
13287
|
+
},
|
|
13288
|
+
fromPartial(object) {
|
|
13289
|
+
const message = createBaseQueryInitiativeReviewsResponse();
|
|
13290
|
+
message.rounds = object.rounds?.map(e => InitiativeReviewRound.fromPartial(e)) || [];
|
|
13291
|
+
message.currentRound = object.currentRound ?? 0;
|
|
13292
|
+
message.approvals = object.approvals ?? 0;
|
|
13293
|
+
message.required = object.required ?? 0;
|
|
13294
|
+
message.satisfied = object.satisfied ?? false;
|
|
13295
|
+
return message;
|
|
13296
|
+
},
|
|
13297
|
+
fromAmino(object) {
|
|
13298
|
+
const message = createBaseQueryInitiativeReviewsResponse();
|
|
13299
|
+
message.rounds = object.rounds?.map(e => InitiativeReviewRound.fromAmino(e)) || [];
|
|
13300
|
+
if (object.current_round !== undefined && object.current_round !== null) {
|
|
13301
|
+
message.currentRound = object.current_round;
|
|
13302
|
+
}
|
|
13303
|
+
if (object.approvals !== undefined && object.approvals !== null) {
|
|
13304
|
+
message.approvals = object.approvals;
|
|
13305
|
+
}
|
|
13306
|
+
if (object.required !== undefined && object.required !== null) {
|
|
13307
|
+
message.required = object.required;
|
|
13308
|
+
}
|
|
13309
|
+
if (object.satisfied !== undefined && object.satisfied !== null) {
|
|
13310
|
+
message.satisfied = object.satisfied;
|
|
13311
|
+
}
|
|
13312
|
+
return message;
|
|
13313
|
+
},
|
|
13314
|
+
toAmino(message) {
|
|
13315
|
+
const obj = {};
|
|
13316
|
+
if (message.rounds) {
|
|
13317
|
+
obj.rounds = message.rounds.map(e => e ? InitiativeReviewRound.toAmino(e) : undefined);
|
|
13318
|
+
}
|
|
13319
|
+
else {
|
|
13320
|
+
obj.rounds = message.rounds;
|
|
13321
|
+
}
|
|
13322
|
+
obj.current_round = message.currentRound === 0 ? undefined : message.currentRound;
|
|
13323
|
+
obj.approvals = message.approvals === 0 ? undefined : message.approvals;
|
|
13324
|
+
obj.required = message.required === 0 ? undefined : message.required;
|
|
13325
|
+
obj.satisfied = message.satisfied === false ? undefined : message.satisfied;
|
|
13326
|
+
return obj;
|
|
13327
|
+
},
|
|
13328
|
+
fromAminoMsg(object) {
|
|
13329
|
+
return QueryInitiativeReviewsResponse.fromAmino(object.value);
|
|
13330
|
+
},
|
|
13331
|
+
fromProtoMsg(message) {
|
|
13332
|
+
return QueryInitiativeReviewsResponse.decode(message.value);
|
|
13333
|
+
},
|
|
13334
|
+
toProto(message) {
|
|
13335
|
+
return QueryInitiativeReviewsResponse.encode(message).finish();
|
|
13336
|
+
},
|
|
13337
|
+
toProtoMsg(message) {
|
|
13338
|
+
return {
|
|
13339
|
+
typeUrl: "/sparkdream.rep.v1.QueryInitiativeReviewsResponse",
|
|
13340
|
+
value: QueryInitiativeReviewsResponse.encode(message).finish()
|
|
13341
|
+
};
|
|
13342
|
+
}
|
|
13343
|
+
};
|
|
13344
|
+
function createBaseInitiativeReviewRound() {
|
|
13345
|
+
return {
|
|
13346
|
+
round: 0,
|
|
13347
|
+
reviews: [],
|
|
13348
|
+
approvals: 0
|
|
13349
|
+
};
|
|
13350
|
+
}
|
|
13351
|
+
/**
|
|
13352
|
+
* InitiativeReviewRound groups one round's verdicts.
|
|
13353
|
+
* @name InitiativeReviewRound
|
|
13354
|
+
* @package sparkdream.rep.v1
|
|
13355
|
+
* @see proto type: sparkdream.rep.v1.InitiativeReviewRound
|
|
13356
|
+
*/
|
|
13357
|
+
export const InitiativeReviewRound = {
|
|
13358
|
+
typeUrl: "/sparkdream.rep.v1.InitiativeReviewRound",
|
|
13359
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13360
|
+
if (message.round !== 0) {
|
|
13361
|
+
writer.uint32(8).uint32(message.round);
|
|
13362
|
+
}
|
|
13363
|
+
for (const v of message.reviews) {
|
|
13364
|
+
InitiativeReview.encode(v, writer.uint32(18).fork()).ldelim();
|
|
13365
|
+
}
|
|
13366
|
+
if (message.approvals !== 0) {
|
|
13367
|
+
writer.uint32(24).uint32(message.approvals);
|
|
13368
|
+
}
|
|
13369
|
+
return writer;
|
|
13370
|
+
},
|
|
13371
|
+
decode(input, length) {
|
|
13372
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13373
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13374
|
+
const message = createBaseInitiativeReviewRound();
|
|
13375
|
+
while (reader.pos < end) {
|
|
13376
|
+
const tag = reader.uint32();
|
|
13377
|
+
switch (tag >>> 3) {
|
|
13378
|
+
case 1:
|
|
13379
|
+
message.round = reader.uint32();
|
|
13380
|
+
break;
|
|
13381
|
+
case 2:
|
|
13382
|
+
message.reviews.push(InitiativeReview.decode(reader, reader.uint32()));
|
|
13383
|
+
break;
|
|
13384
|
+
case 3:
|
|
13385
|
+
message.approvals = reader.uint32();
|
|
13386
|
+
break;
|
|
13387
|
+
default:
|
|
13388
|
+
reader.skipType(tag & 7);
|
|
13389
|
+
break;
|
|
13390
|
+
}
|
|
13391
|
+
}
|
|
13392
|
+
return message;
|
|
13393
|
+
},
|
|
13394
|
+
fromPartial(object) {
|
|
13395
|
+
const message = createBaseInitiativeReviewRound();
|
|
13396
|
+
message.round = object.round ?? 0;
|
|
13397
|
+
message.reviews = object.reviews?.map(e => InitiativeReview.fromPartial(e)) || [];
|
|
13398
|
+
message.approvals = object.approvals ?? 0;
|
|
13399
|
+
return message;
|
|
13400
|
+
},
|
|
13401
|
+
fromAmino(object) {
|
|
13402
|
+
const message = createBaseInitiativeReviewRound();
|
|
13403
|
+
if (object.round !== undefined && object.round !== null) {
|
|
13404
|
+
message.round = object.round;
|
|
13405
|
+
}
|
|
13406
|
+
message.reviews = object.reviews?.map(e => InitiativeReview.fromAmino(e)) || [];
|
|
13407
|
+
if (object.approvals !== undefined && object.approvals !== null) {
|
|
13408
|
+
message.approvals = object.approvals;
|
|
13409
|
+
}
|
|
13410
|
+
return message;
|
|
13411
|
+
},
|
|
13412
|
+
toAmino(message) {
|
|
13413
|
+
const obj = {};
|
|
13414
|
+
obj.round = message.round === 0 ? undefined : message.round;
|
|
13415
|
+
if (message.reviews) {
|
|
13416
|
+
obj.reviews = message.reviews.map(e => e ? InitiativeReview.toAmino(e) : undefined);
|
|
13417
|
+
}
|
|
13418
|
+
else {
|
|
13419
|
+
obj.reviews = message.reviews;
|
|
13420
|
+
}
|
|
13421
|
+
obj.approvals = message.approvals === 0 ? undefined : message.approvals;
|
|
13422
|
+
return obj;
|
|
13423
|
+
},
|
|
13424
|
+
fromAminoMsg(object) {
|
|
13425
|
+
return InitiativeReviewRound.fromAmino(object.value);
|
|
13426
|
+
},
|
|
13427
|
+
fromProtoMsg(message) {
|
|
13428
|
+
return InitiativeReviewRound.decode(message.value);
|
|
13429
|
+
},
|
|
13430
|
+
toProto(message) {
|
|
13431
|
+
return InitiativeReviewRound.encode(message).finish();
|
|
13432
|
+
},
|
|
13433
|
+
toProtoMsg(message) {
|
|
13434
|
+
return {
|
|
13435
|
+
typeUrl: "/sparkdream.rep.v1.InitiativeReviewRound",
|
|
13436
|
+
value: InitiativeReviewRound.encode(message).finish()
|
|
13437
|
+
};
|
|
13438
|
+
}
|
|
13439
|
+
};
|
|
13440
|
+
function createBaseQueryReviewBountyRequest() {
|
|
13441
|
+
return {
|
|
13442
|
+
initiativeId: BigInt(0)
|
|
13443
|
+
};
|
|
13444
|
+
}
|
|
13445
|
+
/**
|
|
13446
|
+
* QueryReviewBountyRequest asks what is escrowed against an initiative.
|
|
13447
|
+
* @name QueryReviewBountyRequest
|
|
13448
|
+
* @package sparkdream.rep.v1
|
|
13449
|
+
* @see proto type: sparkdream.rep.v1.QueryReviewBountyRequest
|
|
13450
|
+
*/
|
|
13451
|
+
export const QueryReviewBountyRequest = {
|
|
13452
|
+
typeUrl: "/sparkdream.rep.v1.QueryReviewBountyRequest",
|
|
13453
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13454
|
+
if (message.initiativeId !== BigInt(0)) {
|
|
13455
|
+
writer.uint32(8).uint64(message.initiativeId);
|
|
13456
|
+
}
|
|
13457
|
+
return writer;
|
|
13458
|
+
},
|
|
13459
|
+
decode(input, length) {
|
|
13460
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13461
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13462
|
+
const message = createBaseQueryReviewBountyRequest();
|
|
13463
|
+
while (reader.pos < end) {
|
|
13464
|
+
const tag = reader.uint32();
|
|
13465
|
+
switch (tag >>> 3) {
|
|
13466
|
+
case 1:
|
|
13467
|
+
message.initiativeId = reader.uint64();
|
|
13468
|
+
break;
|
|
13469
|
+
default:
|
|
13470
|
+
reader.skipType(tag & 7);
|
|
13471
|
+
break;
|
|
13472
|
+
}
|
|
13473
|
+
}
|
|
13474
|
+
return message;
|
|
13475
|
+
},
|
|
13476
|
+
fromPartial(object) {
|
|
13477
|
+
const message = createBaseQueryReviewBountyRequest();
|
|
13478
|
+
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
13479
|
+
return message;
|
|
13480
|
+
},
|
|
13481
|
+
fromAmino(object) {
|
|
13482
|
+
const message = createBaseQueryReviewBountyRequest();
|
|
13483
|
+
if (object.initiative_id !== undefined && object.initiative_id !== null) {
|
|
13484
|
+
message.initiativeId = BigInt(object.initiative_id);
|
|
13485
|
+
}
|
|
13486
|
+
return message;
|
|
13487
|
+
},
|
|
13488
|
+
toAmino(message) {
|
|
13489
|
+
const obj = {};
|
|
13490
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
13491
|
+
return obj;
|
|
13492
|
+
},
|
|
13493
|
+
fromAminoMsg(object) {
|
|
13494
|
+
return QueryReviewBountyRequest.fromAmino(object.value);
|
|
13495
|
+
},
|
|
13496
|
+
fromProtoMsg(message) {
|
|
13497
|
+
return QueryReviewBountyRequest.decode(message.value);
|
|
13498
|
+
},
|
|
13499
|
+
toProto(message) {
|
|
13500
|
+
return QueryReviewBountyRequest.encode(message).finish();
|
|
13501
|
+
},
|
|
13502
|
+
toProtoMsg(message) {
|
|
13503
|
+
return {
|
|
13504
|
+
typeUrl: "/sparkdream.rep.v1.QueryReviewBountyRequest",
|
|
13505
|
+
value: QueryReviewBountyRequest.encode(message).finish()
|
|
13506
|
+
};
|
|
13507
|
+
}
|
|
13508
|
+
};
|
|
13509
|
+
function createBaseQueryReviewBountyResponse() {
|
|
13510
|
+
return {
|
|
13511
|
+
bounty: ReviewBounty.fromPartial({}),
|
|
13512
|
+
reclaimStatus: []
|
|
13513
|
+
};
|
|
13514
|
+
}
|
|
13515
|
+
/**
|
|
13516
|
+
* QueryReviewBountyResponse returns the escrow and its reclaim state.
|
|
13517
|
+
* @name QueryReviewBountyResponse
|
|
13518
|
+
* @package sparkdream.rep.v1
|
|
13519
|
+
* @see proto type: sparkdream.rep.v1.QueryReviewBountyResponse
|
|
13520
|
+
*/
|
|
13521
|
+
export const QueryReviewBountyResponse = {
|
|
13522
|
+
typeUrl: "/sparkdream.rep.v1.QueryReviewBountyResponse",
|
|
13523
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13524
|
+
if (message.bounty !== undefined) {
|
|
13525
|
+
ReviewBounty.encode(message.bounty, writer.uint32(10).fork()).ldelim();
|
|
13526
|
+
}
|
|
13527
|
+
for (const v of message.reclaimStatus) {
|
|
13528
|
+
ReviewBountyReclaimStatus.encode(v, writer.uint32(18).fork()).ldelim();
|
|
13529
|
+
}
|
|
13530
|
+
return writer;
|
|
13531
|
+
},
|
|
13532
|
+
decode(input, length) {
|
|
13533
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13534
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13535
|
+
const message = createBaseQueryReviewBountyResponse();
|
|
13536
|
+
while (reader.pos < end) {
|
|
13537
|
+
const tag = reader.uint32();
|
|
13538
|
+
switch (tag >>> 3) {
|
|
13539
|
+
case 1:
|
|
13540
|
+
message.bounty = ReviewBounty.decode(reader, reader.uint32());
|
|
13541
|
+
break;
|
|
13542
|
+
case 2:
|
|
13543
|
+
message.reclaimStatus.push(ReviewBountyReclaimStatus.decode(reader, reader.uint32()));
|
|
13544
|
+
break;
|
|
13545
|
+
default:
|
|
13546
|
+
reader.skipType(tag & 7);
|
|
13547
|
+
break;
|
|
13548
|
+
}
|
|
13549
|
+
}
|
|
13550
|
+
return message;
|
|
13551
|
+
},
|
|
13552
|
+
fromPartial(object) {
|
|
13553
|
+
const message = createBaseQueryReviewBountyResponse();
|
|
13554
|
+
message.bounty = object.bounty !== undefined && object.bounty !== null ? ReviewBounty.fromPartial(object.bounty) : undefined;
|
|
13555
|
+
message.reclaimStatus = object.reclaimStatus?.map(e => ReviewBountyReclaimStatus.fromPartial(e)) || [];
|
|
13556
|
+
return message;
|
|
13557
|
+
},
|
|
13558
|
+
fromAmino(object) {
|
|
13559
|
+
const message = createBaseQueryReviewBountyResponse();
|
|
13560
|
+
if (object.bounty !== undefined && object.bounty !== null) {
|
|
13561
|
+
message.bounty = ReviewBounty.fromAmino(object.bounty);
|
|
13562
|
+
}
|
|
13563
|
+
message.reclaimStatus = object.reclaim_status?.map(e => ReviewBountyReclaimStatus.fromAmino(e)) || [];
|
|
13564
|
+
return message;
|
|
13565
|
+
},
|
|
13566
|
+
toAmino(message) {
|
|
13567
|
+
const obj = {};
|
|
13568
|
+
obj.bounty = message.bounty ? ReviewBounty.toAmino(message.bounty) : undefined;
|
|
13569
|
+
if (message.reclaimStatus) {
|
|
13570
|
+
obj.reclaim_status = message.reclaimStatus.map(e => e ? ReviewBountyReclaimStatus.toAmino(e) : undefined);
|
|
13571
|
+
}
|
|
13572
|
+
else {
|
|
13573
|
+
obj.reclaim_status = message.reclaimStatus;
|
|
13574
|
+
}
|
|
13575
|
+
return obj;
|
|
13576
|
+
},
|
|
13577
|
+
fromAminoMsg(object) {
|
|
13578
|
+
return QueryReviewBountyResponse.fromAmino(object.value);
|
|
13579
|
+
},
|
|
13580
|
+
fromProtoMsg(message) {
|
|
13581
|
+
return QueryReviewBountyResponse.decode(message.value);
|
|
13582
|
+
},
|
|
13583
|
+
toProto(message) {
|
|
13584
|
+
return QueryReviewBountyResponse.encode(message).finish();
|
|
13585
|
+
},
|
|
13586
|
+
toProtoMsg(message) {
|
|
13587
|
+
return {
|
|
13588
|
+
typeUrl: "/sparkdream.rep.v1.QueryReviewBountyResponse",
|
|
13589
|
+
value: QueryReviewBountyResponse.encode(message).finish()
|
|
13590
|
+
};
|
|
13591
|
+
}
|
|
13592
|
+
};
|
|
13593
|
+
function createBaseReviewBountyReclaimStatus() {
|
|
13594
|
+
return {
|
|
13595
|
+
funder: "",
|
|
13596
|
+
amount: "",
|
|
13597
|
+
reclaimableAtHeight: BigInt(0),
|
|
13598
|
+
reclaimable: false
|
|
13599
|
+
};
|
|
13600
|
+
}
|
|
13601
|
+
/**
|
|
13602
|
+
* ReviewBountyReclaimStatus is one contribution's reclaim eligibility.
|
|
13603
|
+
* @name ReviewBountyReclaimStatus
|
|
13604
|
+
* @package sparkdream.rep.v1
|
|
13605
|
+
* @see proto type: sparkdream.rep.v1.ReviewBountyReclaimStatus
|
|
13606
|
+
*/
|
|
13607
|
+
export const ReviewBountyReclaimStatus = {
|
|
13608
|
+
typeUrl: "/sparkdream.rep.v1.ReviewBountyReclaimStatus",
|
|
13609
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13610
|
+
if (message.funder !== "") {
|
|
13611
|
+
writer.uint32(10).string(message.funder);
|
|
13612
|
+
}
|
|
13613
|
+
if (message.amount !== "") {
|
|
13614
|
+
writer.uint32(18).string(message.amount);
|
|
13615
|
+
}
|
|
13616
|
+
if (message.reclaimableAtHeight !== BigInt(0)) {
|
|
13617
|
+
writer.uint32(24).int64(message.reclaimableAtHeight);
|
|
13618
|
+
}
|
|
13619
|
+
if (message.reclaimable === true) {
|
|
13620
|
+
writer.uint32(32).bool(message.reclaimable);
|
|
13621
|
+
}
|
|
13622
|
+
return writer;
|
|
13623
|
+
},
|
|
13624
|
+
decode(input, length) {
|
|
13625
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13626
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13627
|
+
const message = createBaseReviewBountyReclaimStatus();
|
|
13628
|
+
while (reader.pos < end) {
|
|
13629
|
+
const tag = reader.uint32();
|
|
13630
|
+
switch (tag >>> 3) {
|
|
13631
|
+
case 1:
|
|
13632
|
+
message.funder = reader.string();
|
|
13633
|
+
break;
|
|
13634
|
+
case 2:
|
|
13635
|
+
message.amount = reader.string();
|
|
13636
|
+
break;
|
|
13637
|
+
case 3:
|
|
13638
|
+
message.reclaimableAtHeight = reader.int64();
|
|
13639
|
+
break;
|
|
13640
|
+
case 4:
|
|
13641
|
+
message.reclaimable = reader.bool();
|
|
13642
|
+
break;
|
|
13643
|
+
default:
|
|
13644
|
+
reader.skipType(tag & 7);
|
|
13645
|
+
break;
|
|
13646
|
+
}
|
|
13647
|
+
}
|
|
13648
|
+
return message;
|
|
13649
|
+
},
|
|
13650
|
+
fromPartial(object) {
|
|
13651
|
+
const message = createBaseReviewBountyReclaimStatus();
|
|
13652
|
+
message.funder = object.funder ?? "";
|
|
13653
|
+
message.amount = object.amount ?? "";
|
|
13654
|
+
message.reclaimableAtHeight = object.reclaimableAtHeight !== undefined && object.reclaimableAtHeight !== null ? BigInt(object.reclaimableAtHeight.toString()) : BigInt(0);
|
|
13655
|
+
message.reclaimable = object.reclaimable ?? false;
|
|
13656
|
+
return message;
|
|
13657
|
+
},
|
|
13658
|
+
fromAmino(object) {
|
|
13659
|
+
const message = createBaseReviewBountyReclaimStatus();
|
|
13660
|
+
if (object.funder !== undefined && object.funder !== null) {
|
|
13661
|
+
message.funder = object.funder;
|
|
13662
|
+
}
|
|
13663
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
13664
|
+
message.amount = object.amount;
|
|
13665
|
+
}
|
|
13666
|
+
if (object.reclaimable_at_height !== undefined && object.reclaimable_at_height !== null) {
|
|
13667
|
+
message.reclaimableAtHeight = BigInt(object.reclaimable_at_height);
|
|
13668
|
+
}
|
|
13669
|
+
if (object.reclaimable !== undefined && object.reclaimable !== null) {
|
|
13670
|
+
message.reclaimable = object.reclaimable;
|
|
13671
|
+
}
|
|
13672
|
+
return message;
|
|
13673
|
+
},
|
|
13674
|
+
toAmino(message) {
|
|
13675
|
+
const obj = {};
|
|
13676
|
+
obj.funder = message.funder === "" ? undefined : message.funder;
|
|
13677
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
13678
|
+
obj.reclaimable_at_height = message.reclaimableAtHeight !== BigInt(0) ? message.reclaimableAtHeight?.toString() : undefined;
|
|
13679
|
+
obj.reclaimable = message.reclaimable === false ? undefined : message.reclaimable;
|
|
13680
|
+
return obj;
|
|
13681
|
+
},
|
|
13682
|
+
fromAminoMsg(object) {
|
|
13683
|
+
return ReviewBountyReclaimStatus.fromAmino(object.value);
|
|
13684
|
+
},
|
|
13685
|
+
fromProtoMsg(message) {
|
|
13686
|
+
return ReviewBountyReclaimStatus.decode(message.value);
|
|
13687
|
+
},
|
|
13688
|
+
toProto(message) {
|
|
13689
|
+
return ReviewBountyReclaimStatus.encode(message).finish();
|
|
13690
|
+
},
|
|
13691
|
+
toProtoMsg(message) {
|
|
13692
|
+
return {
|
|
13693
|
+
typeUrl: "/sparkdream.rep.v1.ReviewBountyReclaimStatus",
|
|
13694
|
+
value: ReviewBountyReclaimStatus.encode(message).finish()
|
|
13695
|
+
};
|
|
13696
|
+
}
|
|
13697
|
+
};
|
|
13698
|
+
function createBaseQueryEscalatedReviewsRequest() {
|
|
13699
|
+
return {};
|
|
13700
|
+
}
|
|
13701
|
+
/**
|
|
13702
|
+
* QueryEscalatedReviewsRequest asks what is awaiting the committee.
|
|
13703
|
+
* @name QueryEscalatedReviewsRequest
|
|
13704
|
+
* @package sparkdream.rep.v1
|
|
13705
|
+
* @see proto type: sparkdream.rep.v1.QueryEscalatedReviewsRequest
|
|
13706
|
+
*/
|
|
13707
|
+
export const QueryEscalatedReviewsRequest = {
|
|
13708
|
+
typeUrl: "/sparkdream.rep.v1.QueryEscalatedReviewsRequest",
|
|
13709
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
13710
|
+
return writer;
|
|
13711
|
+
},
|
|
13712
|
+
decode(input, length) {
|
|
13713
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13714
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13715
|
+
const message = createBaseQueryEscalatedReviewsRequest();
|
|
13716
|
+
while (reader.pos < end) {
|
|
13717
|
+
const tag = reader.uint32();
|
|
13718
|
+
switch (tag >>> 3) {
|
|
13719
|
+
default:
|
|
13720
|
+
reader.skipType(tag & 7);
|
|
13721
|
+
break;
|
|
13722
|
+
}
|
|
13723
|
+
}
|
|
13724
|
+
return message;
|
|
13725
|
+
},
|
|
13726
|
+
fromPartial(_) {
|
|
13727
|
+
const message = createBaseQueryEscalatedReviewsRequest();
|
|
13728
|
+
return message;
|
|
13729
|
+
},
|
|
13730
|
+
fromAmino(_) {
|
|
13731
|
+
const message = createBaseQueryEscalatedReviewsRequest();
|
|
13732
|
+
return message;
|
|
13733
|
+
},
|
|
13734
|
+
toAmino(_) {
|
|
13735
|
+
const obj = {};
|
|
13736
|
+
return obj;
|
|
13737
|
+
},
|
|
13738
|
+
fromAminoMsg(object) {
|
|
13739
|
+
return QueryEscalatedReviewsRequest.fromAmino(object.value);
|
|
13740
|
+
},
|
|
13741
|
+
fromProtoMsg(message) {
|
|
13742
|
+
return QueryEscalatedReviewsRequest.decode(message.value);
|
|
13743
|
+
},
|
|
13744
|
+
toProto(message) {
|
|
13745
|
+
return QueryEscalatedReviewsRequest.encode(message).finish();
|
|
13746
|
+
},
|
|
13747
|
+
toProtoMsg(message) {
|
|
13748
|
+
return {
|
|
13749
|
+
typeUrl: "/sparkdream.rep.v1.QueryEscalatedReviewsRequest",
|
|
13750
|
+
value: QueryEscalatedReviewsRequest.encode(message).finish()
|
|
13751
|
+
};
|
|
13752
|
+
}
|
|
13753
|
+
};
|
|
13754
|
+
function createBaseQueryEscalatedReviewsResponse() {
|
|
13755
|
+
return {
|
|
13756
|
+
escalations: []
|
|
13757
|
+
};
|
|
13758
|
+
}
|
|
13759
|
+
/**
|
|
13760
|
+
* QueryEscalatedReviewsResponse lists the escalated rounds.
|
|
13761
|
+
*
|
|
13762
|
+
* Escalation is recorded in a separate set rather than on the initiative --
|
|
13763
|
+
* ReviewEscalation is reset to NONE when a round escalates -- so without this
|
|
13764
|
+
* query a committee has no way to find the decisions waiting on it.
|
|
13765
|
+
* @name QueryEscalatedReviewsResponse
|
|
13766
|
+
* @package sparkdream.rep.v1
|
|
13767
|
+
* @see proto type: sparkdream.rep.v1.QueryEscalatedReviewsResponse
|
|
13768
|
+
*/
|
|
13769
|
+
export const QueryEscalatedReviewsResponse = {
|
|
13770
|
+
typeUrl: "/sparkdream.rep.v1.QueryEscalatedReviewsResponse",
|
|
13771
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13772
|
+
for (const v of message.escalations) {
|
|
13773
|
+
EscalatedReview.encode(v, writer.uint32(10).fork()).ldelim();
|
|
13774
|
+
}
|
|
13775
|
+
return writer;
|
|
13776
|
+
},
|
|
13777
|
+
decode(input, length) {
|
|
13778
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13779
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13780
|
+
const message = createBaseQueryEscalatedReviewsResponse();
|
|
13781
|
+
while (reader.pos < end) {
|
|
13782
|
+
const tag = reader.uint32();
|
|
13783
|
+
switch (tag >>> 3) {
|
|
13784
|
+
case 1:
|
|
13785
|
+
message.escalations.push(EscalatedReview.decode(reader, reader.uint32()));
|
|
13786
|
+
break;
|
|
13787
|
+
default:
|
|
13788
|
+
reader.skipType(tag & 7);
|
|
13789
|
+
break;
|
|
13790
|
+
}
|
|
13791
|
+
}
|
|
13792
|
+
return message;
|
|
13793
|
+
},
|
|
13794
|
+
fromPartial(object) {
|
|
13795
|
+
const message = createBaseQueryEscalatedReviewsResponse();
|
|
13796
|
+
message.escalations = object.escalations?.map(e => EscalatedReview.fromPartial(e)) || [];
|
|
13797
|
+
return message;
|
|
13798
|
+
},
|
|
13799
|
+
fromAmino(object) {
|
|
13800
|
+
const message = createBaseQueryEscalatedReviewsResponse();
|
|
13801
|
+
message.escalations = object.escalations?.map(e => EscalatedReview.fromAmino(e)) || [];
|
|
13802
|
+
return message;
|
|
13803
|
+
},
|
|
13804
|
+
toAmino(message) {
|
|
13805
|
+
const obj = {};
|
|
13806
|
+
if (message.escalations) {
|
|
13807
|
+
obj.escalations = message.escalations.map(e => e ? EscalatedReview.toAmino(e) : undefined);
|
|
13808
|
+
}
|
|
13809
|
+
else {
|
|
13810
|
+
obj.escalations = message.escalations;
|
|
13811
|
+
}
|
|
13812
|
+
return obj;
|
|
13813
|
+
},
|
|
13814
|
+
fromAminoMsg(object) {
|
|
13815
|
+
return QueryEscalatedReviewsResponse.fromAmino(object.value);
|
|
13816
|
+
},
|
|
13817
|
+
fromProtoMsg(message) {
|
|
13818
|
+
return QueryEscalatedReviewsResponse.decode(message.value);
|
|
13819
|
+
},
|
|
13820
|
+
toProto(message) {
|
|
13821
|
+
return QueryEscalatedReviewsResponse.encode(message).finish();
|
|
13822
|
+
},
|
|
13823
|
+
toProtoMsg(message) {
|
|
13824
|
+
return {
|
|
13825
|
+
typeUrl: "/sparkdream.rep.v1.QueryEscalatedReviewsResponse",
|
|
13826
|
+
value: QueryEscalatedReviewsResponse.encode(message).finish()
|
|
13827
|
+
};
|
|
13828
|
+
}
|
|
13829
|
+
};
|
|
13830
|
+
function createBaseEscalatedReview() {
|
|
13831
|
+
return {
|
|
13832
|
+
initiativeId: BigInt(0),
|
|
13833
|
+
round: 0,
|
|
13834
|
+
reviewDeadline: BigInt(0),
|
|
13835
|
+
title: "",
|
|
13836
|
+
assignee: ""
|
|
13837
|
+
};
|
|
13838
|
+
}
|
|
13839
|
+
/**
|
|
13840
|
+
* EscalatedReview is one round sitting with the Operations Committee.
|
|
13841
|
+
* @name EscalatedReview
|
|
13842
|
+
* @package sparkdream.rep.v1
|
|
13843
|
+
* @see proto type: sparkdream.rep.v1.EscalatedReview
|
|
13844
|
+
*/
|
|
13845
|
+
export const EscalatedReview = {
|
|
13846
|
+
typeUrl: "/sparkdream.rep.v1.EscalatedReview",
|
|
13847
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13848
|
+
if (message.initiativeId !== BigInt(0)) {
|
|
13849
|
+
writer.uint32(8).uint64(message.initiativeId);
|
|
13850
|
+
}
|
|
13851
|
+
if (message.round !== 0) {
|
|
13852
|
+
writer.uint32(16).uint32(message.round);
|
|
13853
|
+
}
|
|
13854
|
+
if (message.reviewDeadline !== BigInt(0)) {
|
|
13855
|
+
writer.uint32(24).int64(message.reviewDeadline);
|
|
13856
|
+
}
|
|
13857
|
+
if (message.title !== "") {
|
|
13858
|
+
writer.uint32(34).string(message.title);
|
|
13859
|
+
}
|
|
13860
|
+
if (message.assignee !== "") {
|
|
13861
|
+
writer.uint32(42).string(message.assignee);
|
|
13862
|
+
}
|
|
13863
|
+
return writer;
|
|
13864
|
+
},
|
|
13865
|
+
decode(input, length) {
|
|
13866
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13867
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13868
|
+
const message = createBaseEscalatedReview();
|
|
13869
|
+
while (reader.pos < end) {
|
|
13870
|
+
const tag = reader.uint32();
|
|
13871
|
+
switch (tag >>> 3) {
|
|
13872
|
+
case 1:
|
|
13873
|
+
message.initiativeId = reader.uint64();
|
|
13874
|
+
break;
|
|
13875
|
+
case 2:
|
|
13876
|
+
message.round = reader.uint32();
|
|
13877
|
+
break;
|
|
13878
|
+
case 3:
|
|
13879
|
+
message.reviewDeadline = reader.int64();
|
|
13880
|
+
break;
|
|
13881
|
+
case 4:
|
|
13882
|
+
message.title = reader.string();
|
|
13883
|
+
break;
|
|
13884
|
+
case 5:
|
|
13885
|
+
message.assignee = reader.string();
|
|
13886
|
+
break;
|
|
13887
|
+
default:
|
|
13888
|
+
reader.skipType(tag & 7);
|
|
13889
|
+
break;
|
|
13890
|
+
}
|
|
13891
|
+
}
|
|
13892
|
+
return message;
|
|
13893
|
+
},
|
|
13894
|
+
fromPartial(object) {
|
|
13895
|
+
const message = createBaseEscalatedReview();
|
|
13896
|
+
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
13897
|
+
message.round = object.round ?? 0;
|
|
13898
|
+
message.reviewDeadline = object.reviewDeadline !== undefined && object.reviewDeadline !== null ? BigInt(object.reviewDeadline.toString()) : BigInt(0);
|
|
13899
|
+
message.title = object.title ?? "";
|
|
13900
|
+
message.assignee = object.assignee ?? "";
|
|
13901
|
+
return message;
|
|
13902
|
+
},
|
|
13903
|
+
fromAmino(object) {
|
|
13904
|
+
const message = createBaseEscalatedReview();
|
|
13905
|
+
if (object.initiative_id !== undefined && object.initiative_id !== null) {
|
|
13906
|
+
message.initiativeId = BigInt(object.initiative_id);
|
|
13907
|
+
}
|
|
13908
|
+
if (object.round !== undefined && object.round !== null) {
|
|
13909
|
+
message.round = object.round;
|
|
13910
|
+
}
|
|
13911
|
+
if (object.review_deadline !== undefined && object.review_deadline !== null) {
|
|
13912
|
+
message.reviewDeadline = BigInt(object.review_deadline);
|
|
13913
|
+
}
|
|
13914
|
+
if (object.title !== undefined && object.title !== null) {
|
|
13915
|
+
message.title = object.title;
|
|
13916
|
+
}
|
|
13917
|
+
if (object.assignee !== undefined && object.assignee !== null) {
|
|
13918
|
+
message.assignee = object.assignee;
|
|
13919
|
+
}
|
|
13920
|
+
return message;
|
|
13921
|
+
},
|
|
13922
|
+
toAmino(message) {
|
|
13923
|
+
const obj = {};
|
|
13924
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
13925
|
+
obj.round = message.round === 0 ? undefined : message.round;
|
|
13926
|
+
obj.review_deadline = message.reviewDeadline !== BigInt(0) ? message.reviewDeadline?.toString() : undefined;
|
|
13927
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
13928
|
+
obj.assignee = message.assignee === "" ? undefined : message.assignee;
|
|
13929
|
+
return obj;
|
|
13930
|
+
},
|
|
13931
|
+
fromAminoMsg(object) {
|
|
13932
|
+
return EscalatedReview.fromAmino(object.value);
|
|
13933
|
+
},
|
|
13934
|
+
fromProtoMsg(message) {
|
|
13935
|
+
return EscalatedReview.decode(message.value);
|
|
13936
|
+
},
|
|
13937
|
+
toProto(message) {
|
|
13938
|
+
return EscalatedReview.encode(message).finish();
|
|
13939
|
+
},
|
|
13940
|
+
toProtoMsg(message) {
|
|
13941
|
+
return {
|
|
13942
|
+
typeUrl: "/sparkdream.rep.v1.EscalatedReview",
|
|
13943
|
+
value: EscalatedReview.encode(message).finish()
|
|
13944
|
+
};
|
|
13945
|
+
}
|
|
13946
|
+
};
|