@sparkdreamnft/sparkdreamjs 0.0.34 → 0.0.36
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/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 +13 -0
- 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 +170 -47
- 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 +614 -2
- package/esm/sparkdream/rep/v1/query.js +4900 -3425
- package/esm/sparkdream/rep/v1/query.lcd.js +77 -16
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +85 -21
- package/esm/sparkdream/rep/v1/review_bounty.js +215 -0
- 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 +9671 -9159
- package/sparkdream/bundle.js +305 -301
- 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 +8 -0
- package/sparkdream/rep/v1/bonded_role.js +13 -0
- 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 +120 -2
- package/sparkdream/rep/v1/initiative.js +173 -48
- 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 +668 -16
- package/sparkdream/rep/v1/params.js +614 -2
- package/sparkdream/rep/v1/query.d.ts +1214 -264
- package/sparkdream/rep/v1/query.js +4904 -3429
- package/sparkdream/rep/v1/query.lcd.d.ts +9 -3
- package/sparkdream/rep/v1/query.lcd.js +77 -16
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +55 -9
- package/sparkdream/rep/v1/query.rpc.Query.js +84 -20
- package/sparkdream/rep/v1/review_bounty.d.ts +168 -0
- package/sparkdream/rep/v1/review_bounty.js +218 -0
- 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 +8 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
|
@@ -1,43 +1,127 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
2
|
import { DeepPartial } from "../../../helpers";
|
|
3
3
|
/**
|
|
4
|
-
* JuryParticipation
|
|
4
|
+
* JuryParticipation is a juror's service record.
|
|
5
|
+
*
|
|
6
|
+
* Jurors are drawn by lot and paid a flat participation reward for voting.
|
|
7
|
+
* Ignoring a summons is **not** penalised: the adjudication terminal path
|
|
8
|
+
* resolves an inconclusive jury safely and the redraw sweep replaces an
|
|
9
|
+
* unanswered seat within the acceptance window, so what remains of a no-show is
|
|
10
|
+
* a few hours of delay in a week-long review. Pricing that would oblige every
|
|
11
|
+
* eligible member to monitor the chain for an event that reaches them roughly
|
|
12
|
+
* once a year, and under broad sortition non-response is the expected default
|
|
13
|
+
* of a population that never volunteered.
|
|
14
|
+
*
|
|
15
|
+
* This record instead feeds **selection weight**: a juror who never answers is
|
|
16
|
+
* drawn less often, never removed from the lot. Nobody loses eligibility, and an
|
|
17
|
+
* address can always earn its weight back — which an excluded one could not,
|
|
18
|
+
* since it would never be drawn again to demonstrate otherwise.
|
|
19
|
+
*
|
|
20
|
+
* The one penalised case is total_abandoned: accepting a summons and then
|
|
21
|
+
* letting it lapse. Accepting is voluntary and declining is free, so that is a
|
|
22
|
+
* broken commitment rather than an accident, and it is charged in reputation.
|
|
5
23
|
* @name JuryParticipation
|
|
6
24
|
* @package sparkdream.rep.v1
|
|
7
25
|
* @see proto type: sparkdream.rep.v1.JuryParticipation
|
|
8
26
|
*/
|
|
9
27
|
export interface JuryParticipation {
|
|
10
28
|
juror: string;
|
|
29
|
+
/**
|
|
30
|
+
* Seats drawn, votes cast, and seats that went to the deadline unanswered.
|
|
31
|
+
*/
|
|
11
32
|
totalAssigned: bigint;
|
|
12
33
|
totalVoted: bigint;
|
|
13
34
|
totalTimeouts: bigint;
|
|
14
35
|
lastAssignedAt: bigint;
|
|
15
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Seats explicitly handed back. Counted as answering the summons, both for
|
|
38
|
+
* selection weight and so that declining never loads the responsiveness
|
|
39
|
+
* denominator — a decline that counted as silence would cost exactly as much
|
|
40
|
+
* as ignoring the summons, and there would be no free way out of a seat
|
|
41
|
+
* nobody asked for.
|
|
42
|
+
*/
|
|
43
|
+
totalDeclined: bigint;
|
|
44
|
+
/**
|
|
45
|
+
* Seats accepted and then left unanswered at the deadline. The one form of
|
|
46
|
+
* absence that is penalised, in reputation.
|
|
47
|
+
*/
|
|
48
|
+
totalAbandoned: bigint;
|
|
16
49
|
}
|
|
17
50
|
export interface JuryParticipationProtoMsg {
|
|
18
51
|
typeUrl: "/sparkdream.rep.v1.JuryParticipation";
|
|
19
52
|
value: Uint8Array;
|
|
20
53
|
}
|
|
21
54
|
/**
|
|
22
|
-
* JuryParticipation
|
|
55
|
+
* JuryParticipation is a juror's service record.
|
|
56
|
+
*
|
|
57
|
+
* Jurors are drawn by lot and paid a flat participation reward for voting.
|
|
58
|
+
* Ignoring a summons is **not** penalised: the adjudication terminal path
|
|
59
|
+
* resolves an inconclusive jury safely and the redraw sweep replaces an
|
|
60
|
+
* unanswered seat within the acceptance window, so what remains of a no-show is
|
|
61
|
+
* a few hours of delay in a week-long review. Pricing that would oblige every
|
|
62
|
+
* eligible member to monitor the chain for an event that reaches them roughly
|
|
63
|
+
* once a year, and under broad sortition non-response is the expected default
|
|
64
|
+
* of a population that never volunteered.
|
|
65
|
+
*
|
|
66
|
+
* This record instead feeds **selection weight**: a juror who never answers is
|
|
67
|
+
* drawn less often, never removed from the lot. Nobody loses eligibility, and an
|
|
68
|
+
* address can always earn its weight back — which an excluded one could not,
|
|
69
|
+
* since it would never be drawn again to demonstrate otherwise.
|
|
70
|
+
*
|
|
71
|
+
* The one penalised case is total_abandoned: accepting a summons and then
|
|
72
|
+
* letting it lapse. Accepting is voluntary and declining is free, so that is a
|
|
73
|
+
* broken commitment rather than an accident, and it is charged in reputation.
|
|
23
74
|
* @name JuryParticipationAmino
|
|
24
75
|
* @package sparkdream.rep.v1
|
|
25
76
|
* @see proto type: sparkdream.rep.v1.JuryParticipation
|
|
26
77
|
*/
|
|
27
78
|
export interface JuryParticipationAmino {
|
|
28
79
|
juror?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Seats drawn, votes cast, and seats that went to the deadline unanswered.
|
|
82
|
+
*/
|
|
29
83
|
total_assigned?: string;
|
|
30
84
|
total_voted?: string;
|
|
31
85
|
total_timeouts?: string;
|
|
32
86
|
last_assigned_at?: string;
|
|
33
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Seats explicitly handed back. Counted as answering the summons, both for
|
|
89
|
+
* selection weight and so that declining never loads the responsiveness
|
|
90
|
+
* denominator — a decline that counted as silence would cost exactly as much
|
|
91
|
+
* as ignoring the summons, and there would be no free way out of a seat
|
|
92
|
+
* nobody asked for.
|
|
93
|
+
*/
|
|
94
|
+
total_declined?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Seats accepted and then left unanswered at the deadline. The one form of
|
|
97
|
+
* absence that is penalised, in reputation.
|
|
98
|
+
*/
|
|
99
|
+
total_abandoned?: string;
|
|
34
100
|
}
|
|
35
101
|
export interface JuryParticipationAminoMsg {
|
|
36
102
|
type: "/sparkdream.rep.v1.JuryParticipation";
|
|
37
103
|
value: JuryParticipationAmino;
|
|
38
104
|
}
|
|
39
105
|
/**
|
|
40
|
-
* JuryParticipation
|
|
106
|
+
* JuryParticipation is a juror's service record.
|
|
107
|
+
*
|
|
108
|
+
* Jurors are drawn by lot and paid a flat participation reward for voting.
|
|
109
|
+
* Ignoring a summons is **not** penalised: the adjudication terminal path
|
|
110
|
+
* resolves an inconclusive jury safely and the redraw sweep replaces an
|
|
111
|
+
* unanswered seat within the acceptance window, so what remains of a no-show is
|
|
112
|
+
* a few hours of delay in a week-long review. Pricing that would oblige every
|
|
113
|
+
* eligible member to monitor the chain for an event that reaches them roughly
|
|
114
|
+
* once a year, and under broad sortition non-response is the expected default
|
|
115
|
+
* of a population that never volunteered.
|
|
116
|
+
*
|
|
117
|
+
* This record instead feeds **selection weight**: a juror who never answers is
|
|
118
|
+
* drawn less often, never removed from the lot. Nobody loses eligibility, and an
|
|
119
|
+
* address can always earn its weight back — which an excluded one could not,
|
|
120
|
+
* since it would never be drawn again to demonstrate otherwise.
|
|
121
|
+
*
|
|
122
|
+
* The one penalised case is total_abandoned: accepting a summons and then
|
|
123
|
+
* letting it lapse. Accepting is voluntary and declining is free, so that is a
|
|
124
|
+
* broken commitment rather than an accident, and it is charged in reputation.
|
|
41
125
|
* @name JuryParticipation
|
|
42
126
|
* @package sparkdream.rep.v1
|
|
43
127
|
* @see proto type: sparkdream.rep.v1.JuryParticipation
|
|
@@ -10,11 +10,30 @@ function createBaseJuryParticipation() {
|
|
|
10
10
|
totalVoted: BigInt(0),
|
|
11
11
|
totalTimeouts: BigInt(0),
|
|
12
12
|
lastAssignedAt: BigInt(0),
|
|
13
|
-
|
|
13
|
+
totalDeclined: BigInt(0),
|
|
14
|
+
totalAbandoned: BigInt(0)
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
|
-
* JuryParticipation
|
|
18
|
+
* JuryParticipation is a juror's service record.
|
|
19
|
+
*
|
|
20
|
+
* Jurors are drawn by lot and paid a flat participation reward for voting.
|
|
21
|
+
* Ignoring a summons is **not** penalised: the adjudication terminal path
|
|
22
|
+
* resolves an inconclusive jury safely and the redraw sweep replaces an
|
|
23
|
+
* unanswered seat within the acceptance window, so what remains of a no-show is
|
|
24
|
+
* a few hours of delay in a week-long review. Pricing that would oblige every
|
|
25
|
+
* eligible member to monitor the chain for an event that reaches them roughly
|
|
26
|
+
* once a year, and under broad sortition non-response is the expected default
|
|
27
|
+
* of a population that never volunteered.
|
|
28
|
+
*
|
|
29
|
+
* This record instead feeds **selection weight**: a juror who never answers is
|
|
30
|
+
* drawn less often, never removed from the lot. Nobody loses eligibility, and an
|
|
31
|
+
* address can always earn its weight back — which an excluded one could not,
|
|
32
|
+
* since it would never be drawn again to demonstrate otherwise.
|
|
33
|
+
*
|
|
34
|
+
* The one penalised case is total_abandoned: accepting a summons and then
|
|
35
|
+
* letting it lapse. Accepting is voluntary and declining is free, so that is a
|
|
36
|
+
* broken commitment rather than an accident, and it is charged in reputation.
|
|
18
37
|
* @name JuryParticipation
|
|
19
38
|
* @package sparkdream.rep.v1
|
|
20
39
|
* @see proto type: sparkdream.rep.v1.JuryParticipation
|
|
@@ -37,8 +56,11 @@ exports.JuryParticipation = {
|
|
|
37
56
|
if (message.lastAssignedAt !== BigInt(0)) {
|
|
38
57
|
writer.uint32(40).int64(message.lastAssignedAt);
|
|
39
58
|
}
|
|
40
|
-
if (message.
|
|
41
|
-
writer.uint32(48).
|
|
59
|
+
if (message.totalDeclined !== BigInt(0)) {
|
|
60
|
+
writer.uint32(48).uint64(message.totalDeclined);
|
|
61
|
+
}
|
|
62
|
+
if (message.totalAbandoned !== BigInt(0)) {
|
|
63
|
+
writer.uint32(56).uint64(message.totalAbandoned);
|
|
42
64
|
}
|
|
43
65
|
return writer;
|
|
44
66
|
},
|
|
@@ -65,7 +87,10 @@ exports.JuryParticipation = {
|
|
|
65
87
|
message.lastAssignedAt = reader.int64();
|
|
66
88
|
break;
|
|
67
89
|
case 6:
|
|
68
|
-
message.
|
|
90
|
+
message.totalDeclined = reader.uint64();
|
|
91
|
+
break;
|
|
92
|
+
case 7:
|
|
93
|
+
message.totalAbandoned = reader.uint64();
|
|
69
94
|
break;
|
|
70
95
|
default:
|
|
71
96
|
reader.skipType(tag & 7);
|
|
@@ -81,7 +106,8 @@ exports.JuryParticipation = {
|
|
|
81
106
|
message.totalVoted = object.totalVoted !== undefined && object.totalVoted !== null ? BigInt(object.totalVoted.toString()) : BigInt(0);
|
|
82
107
|
message.totalTimeouts = object.totalTimeouts !== undefined && object.totalTimeouts !== null ? BigInt(object.totalTimeouts.toString()) : BigInt(0);
|
|
83
108
|
message.lastAssignedAt = object.lastAssignedAt !== undefined && object.lastAssignedAt !== null ? BigInt(object.lastAssignedAt.toString()) : BigInt(0);
|
|
84
|
-
message.
|
|
109
|
+
message.totalDeclined = object.totalDeclined !== undefined && object.totalDeclined !== null ? BigInt(object.totalDeclined.toString()) : BigInt(0);
|
|
110
|
+
message.totalAbandoned = object.totalAbandoned !== undefined && object.totalAbandoned !== null ? BigInt(object.totalAbandoned.toString()) : BigInt(0);
|
|
85
111
|
return message;
|
|
86
112
|
},
|
|
87
113
|
fromAmino(object) {
|
|
@@ -101,8 +127,11 @@ exports.JuryParticipation = {
|
|
|
101
127
|
if (object.last_assigned_at !== undefined && object.last_assigned_at !== null) {
|
|
102
128
|
message.lastAssignedAt = BigInt(object.last_assigned_at);
|
|
103
129
|
}
|
|
104
|
-
if (object.
|
|
105
|
-
message.
|
|
130
|
+
if (object.total_declined !== undefined && object.total_declined !== null) {
|
|
131
|
+
message.totalDeclined = BigInt(object.total_declined);
|
|
132
|
+
}
|
|
133
|
+
if (object.total_abandoned !== undefined && object.total_abandoned !== null) {
|
|
134
|
+
message.totalAbandoned = BigInt(object.total_abandoned);
|
|
106
135
|
}
|
|
107
136
|
return message;
|
|
108
137
|
},
|
|
@@ -113,7 +142,8 @@ exports.JuryParticipation = {
|
|
|
113
142
|
obj.total_voted = message.totalVoted !== BigInt(0) ? message.totalVoted?.toString() : undefined;
|
|
114
143
|
obj.total_timeouts = message.totalTimeouts !== BigInt(0) ? message.totalTimeouts?.toString() : undefined;
|
|
115
144
|
obj.last_assigned_at = message.lastAssignedAt !== BigInt(0) ? message.lastAssignedAt?.toString() : undefined;
|
|
116
|
-
obj.
|
|
145
|
+
obj.total_declined = message.totalDeclined !== BigInt(0) ? message.totalDeclined?.toString() : undefined;
|
|
146
|
+
obj.total_abandoned = message.totalAbandoned !== BigInt(0) ? message.totalAbandoned?.toString() : undefined;
|
|
117
147
|
return obj;
|
|
118
148
|
},
|
|
119
149
|
fromAminoMsg(object) {
|
|
@@ -35,6 +35,25 @@ export interface JuryReview {
|
|
|
35
35
|
* For content challenges (non-zero means this review is for a content challenge, not an initiative challenge)
|
|
36
36
|
*/
|
|
37
37
|
contentChallengeId: bigint;
|
|
38
|
+
/**
|
|
39
|
+
* Block height by which a seated juror must accept, after which unanswered
|
|
40
|
+
* seats are vacated and redrawn (see SweepUnansweredJurySeats).
|
|
41
|
+
*/
|
|
42
|
+
acceptanceDeadline: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* Jurors who have accepted the summons. Accepting is what converts a seat
|
|
45
|
+
* drawn by lot into a commitment: jurors are conscripted by sortition, so
|
|
46
|
+
* penalising a no-show who never agreed to serve would punish an accident of
|
|
47
|
+
* the draw. Declining is free and immediate; ignoring the summons is what
|
|
48
|
+
* costs a seat and counts against the participation rate.
|
|
49
|
+
*/
|
|
50
|
+
accepted: string[];
|
|
51
|
+
/**
|
|
52
|
+
* How many replacement rounds this review has been through. Bounded by
|
|
53
|
+
* MaxJuryRedraws so a review cannot redraw forever against a pool that will
|
|
54
|
+
* not answer.
|
|
55
|
+
*/
|
|
56
|
+
redrawCount: number;
|
|
38
57
|
}
|
|
39
58
|
export interface JuryReviewProtoMsg {
|
|
40
59
|
typeUrl: "/sparkdream.rep.v1.JuryReview";
|
|
@@ -65,6 +84,25 @@ export interface JuryReviewAmino {
|
|
|
65
84
|
* For content challenges (non-zero means this review is for a content challenge, not an initiative challenge)
|
|
66
85
|
*/
|
|
67
86
|
content_challenge_id?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Block height by which a seated juror must accept, after which unanswered
|
|
89
|
+
* seats are vacated and redrawn (see SweepUnansweredJurySeats).
|
|
90
|
+
*/
|
|
91
|
+
acceptance_deadline?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Jurors who have accepted the summons. Accepting is what converts a seat
|
|
94
|
+
* drawn by lot into a commitment: jurors are conscripted by sortition, so
|
|
95
|
+
* penalising a no-show who never agreed to serve would punish an accident of
|
|
96
|
+
* the draw. Declining is free and immediate; ignoring the summons is what
|
|
97
|
+
* costs a seat and counts against the participation rate.
|
|
98
|
+
*/
|
|
99
|
+
accepted?: string[];
|
|
100
|
+
/**
|
|
101
|
+
* How many replacement rounds this review has been through. Bounded by
|
|
102
|
+
* MaxJuryRedraws so a review cannot redraw forever against a pool that will
|
|
103
|
+
* not answer.
|
|
104
|
+
*/
|
|
105
|
+
redraw_count?: number;
|
|
68
106
|
}
|
|
69
107
|
export interface JuryReviewAminoMsg {
|
|
70
108
|
type: "/sparkdream.rep.v1.JuryReview";
|
|
@@ -66,7 +66,10 @@ function createBaseJuryReview() {
|
|
|
66
66
|
deadline: BigInt(0),
|
|
67
67
|
verdict: 0,
|
|
68
68
|
reasoning: "",
|
|
69
|
-
contentChallengeId: BigInt(0)
|
|
69
|
+
contentChallengeId: BigInt(0),
|
|
70
|
+
acceptanceDeadline: BigInt(0),
|
|
71
|
+
accepted: [],
|
|
72
|
+
redrawCount: 0
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
75
|
/**
|
|
@@ -123,6 +126,15 @@ exports.JuryReview = {
|
|
|
123
126
|
if (message.contentChallengeId !== BigInt(0)) {
|
|
124
127
|
writer.uint32(120).uint64(message.contentChallengeId);
|
|
125
128
|
}
|
|
129
|
+
if (message.acceptanceDeadline !== BigInt(0)) {
|
|
130
|
+
writer.uint32(128).int64(message.acceptanceDeadline);
|
|
131
|
+
}
|
|
132
|
+
for (const v of message.accepted) {
|
|
133
|
+
writer.uint32(138).string(v);
|
|
134
|
+
}
|
|
135
|
+
if (message.redrawCount !== 0) {
|
|
136
|
+
writer.uint32(144).uint32(message.redrawCount);
|
|
137
|
+
}
|
|
126
138
|
return writer;
|
|
127
139
|
},
|
|
128
140
|
decode(input, length) {
|
|
@@ -177,6 +189,15 @@ exports.JuryReview = {
|
|
|
177
189
|
case 15:
|
|
178
190
|
message.contentChallengeId = reader.uint64();
|
|
179
191
|
break;
|
|
192
|
+
case 16:
|
|
193
|
+
message.acceptanceDeadline = reader.int64();
|
|
194
|
+
break;
|
|
195
|
+
case 17:
|
|
196
|
+
message.accepted.push(reader.string());
|
|
197
|
+
break;
|
|
198
|
+
case 18:
|
|
199
|
+
message.redrawCount = reader.uint32();
|
|
200
|
+
break;
|
|
180
201
|
default:
|
|
181
202
|
reader.skipType(tag & 7);
|
|
182
203
|
break;
|
|
@@ -201,6 +222,9 @@ exports.JuryReview = {
|
|
|
201
222
|
message.verdict = object.verdict ?? 0;
|
|
202
223
|
message.reasoning = object.reasoning ?? "";
|
|
203
224
|
message.contentChallengeId = object.contentChallengeId !== undefined && object.contentChallengeId !== null ? BigInt(object.contentChallengeId.toString()) : BigInt(0);
|
|
225
|
+
message.acceptanceDeadline = object.acceptanceDeadline !== undefined && object.acceptanceDeadline !== null ? BigInt(object.acceptanceDeadline.toString()) : BigInt(0);
|
|
226
|
+
message.accepted = object.accepted?.map(e => e) || [];
|
|
227
|
+
message.redrawCount = object.redrawCount ?? 0;
|
|
204
228
|
return message;
|
|
205
229
|
},
|
|
206
230
|
fromAmino(object) {
|
|
@@ -242,6 +266,13 @@ exports.JuryReview = {
|
|
|
242
266
|
if (object.content_challenge_id !== undefined && object.content_challenge_id !== null) {
|
|
243
267
|
message.contentChallengeId = BigInt(object.content_challenge_id);
|
|
244
268
|
}
|
|
269
|
+
if (object.acceptance_deadline !== undefined && object.acceptance_deadline !== null) {
|
|
270
|
+
message.acceptanceDeadline = BigInt(object.acceptance_deadline);
|
|
271
|
+
}
|
|
272
|
+
message.accepted = object.accepted?.map(e => e) || [];
|
|
273
|
+
if (object.redraw_count !== undefined && object.redraw_count !== null) {
|
|
274
|
+
message.redrawCount = object.redraw_count;
|
|
275
|
+
}
|
|
245
276
|
return message;
|
|
246
277
|
},
|
|
247
278
|
toAmino(message) {
|
|
@@ -281,6 +312,14 @@ exports.JuryReview = {
|
|
|
281
312
|
obj.verdict = message.verdict === 0 ? undefined : message.verdict;
|
|
282
313
|
obj.reasoning = message.reasoning === "" ? undefined : message.reasoning;
|
|
283
314
|
obj.content_challenge_id = message.contentChallengeId !== BigInt(0) ? message.contentChallengeId?.toString() : undefined;
|
|
315
|
+
obj.acceptance_deadline = message.acceptanceDeadline !== BigInt(0) ? message.acceptanceDeadline?.toString() : undefined;
|
|
316
|
+
if (message.accepted) {
|
|
317
|
+
obj.accepted = message.accepted.map(e => e);
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
obj.accepted = message.accepted;
|
|
321
|
+
}
|
|
322
|
+
obj.redraw_count = message.redrawCount === 0 ? undefined : message.redrawCount;
|
|
284
323
|
return obj;
|
|
285
324
|
},
|
|
286
325
|
fromAminoMsg(object) {
|
|
@@ -52,20 +52,20 @@ exports.MemberReport = {
|
|
|
52
52
|
writer.uint32(64).int64(message.defenseSubmittedAt);
|
|
53
53
|
}
|
|
54
54
|
for (const v of message.reporters) {
|
|
55
|
-
writer.uint32(
|
|
55
|
+
writer.uint32(74).string(v);
|
|
56
56
|
}
|
|
57
|
-
writer.uint32(
|
|
57
|
+
writer.uint32(82).fork();
|
|
58
58
|
for (const v of message.evidencePostIds) {
|
|
59
59
|
writer.uint64(v);
|
|
60
60
|
}
|
|
61
61
|
writer.ldelim();
|
|
62
|
-
writer.uint32(
|
|
62
|
+
writer.uint32(90).fork();
|
|
63
63
|
for (const v of message.defensePostIds) {
|
|
64
64
|
writer.uint64(v);
|
|
65
65
|
}
|
|
66
66
|
writer.ldelim();
|
|
67
67
|
for (const v of message.reporterBonds) {
|
|
68
|
-
exports.ReporterBondEntry.encode(v, writer.uint32(
|
|
68
|
+
exports.ReporterBondEntry.encode(v, writer.uint32(98).fork()).ldelim();
|
|
69
69
|
}
|
|
70
70
|
return writer;
|
|
71
71
|
},
|
|
@@ -100,10 +100,10 @@ exports.MemberReport = {
|
|
|
100
100
|
case 8:
|
|
101
101
|
message.defenseSubmittedAt = reader.int64();
|
|
102
102
|
break;
|
|
103
|
-
case
|
|
103
|
+
case 9:
|
|
104
104
|
message.reporters.push(reader.string());
|
|
105
105
|
break;
|
|
106
|
-
case
|
|
106
|
+
case 10:
|
|
107
107
|
if ((tag & 7) === 2) {
|
|
108
108
|
const end2 = reader.uint32() + reader.pos;
|
|
109
109
|
while (reader.pos < end2) {
|
|
@@ -114,7 +114,7 @@ exports.MemberReport = {
|
|
|
114
114
|
message.evidencePostIds.push(reader.uint64());
|
|
115
115
|
}
|
|
116
116
|
break;
|
|
117
|
-
case
|
|
117
|
+
case 11:
|
|
118
118
|
if ((tag & 7) === 2) {
|
|
119
119
|
const end2 = reader.uint32() + reader.pos;
|
|
120
120
|
while (reader.pos < end2) {
|
|
@@ -125,7 +125,7 @@ exports.MemberReport = {
|
|
|
125
125
|
message.defensePostIds.push(reader.uint64());
|
|
126
126
|
}
|
|
127
127
|
break;
|
|
128
|
-
case
|
|
128
|
+
case 12:
|
|
129
129
|
message.reporterBonds.push(exports.ReporterBondEntry.decode(reader, reader.uint32()));
|
|
130
130
|
break;
|
|
131
131
|
default:
|
|
@@ -41,7 +41,7 @@ exports.MemberWarning = {
|
|
|
41
41
|
if (message.warningNumber !== BigInt(0)) {
|
|
42
42
|
writer.uint32(48).uint64(message.warningNumber);
|
|
43
43
|
}
|
|
44
|
-
writer.uint32(
|
|
44
|
+
writer.uint32(58).fork();
|
|
45
45
|
for (const v of message.evidencePostIds) {
|
|
46
46
|
writer.uint64(v);
|
|
47
47
|
}
|
|
@@ -73,7 +73,7 @@ exports.MemberWarning = {
|
|
|
73
73
|
case 6:
|
|
74
74
|
message.warningNumber = reader.uint64();
|
|
75
75
|
break;
|
|
76
|
-
case
|
|
76
|
+
case 7:
|
|
77
77
|
if ((tag & 7) === 2) {
|
|
78
78
|
const end2 = reader.uint32() + reader.pos;
|
|
79
79
|
while (reader.pos < end2) {
|