@sparkdreamnft/sparkdreamjs 0.0.37 → 0.0.39
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/esm/sparkdream/rep/v1/challenge.js +13 -2
- package/esm/sparkdream/rep/v1/genesis.js +362 -2
- package/esm/sparkdream/rep/v1/initiative.js +11 -14
- package/esm/sparkdream/rep/v1/interim.js +58 -1
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/rep/v1/params.js +361 -1
- package/esm/sparkdream/rep/v1/query.js +16 -16
- package/esm/sparkdream/rep/v1/tx.amino.js +66 -5
- package/esm/sparkdream/rep/v1/tx.js +88 -64
- package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +11 -11
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +128 -55
- package/sparkdream/client.d.ts +48 -3
- package/sparkdream/rep/v1/challenge.d.ts +23 -0
- package/sparkdream/rep/v1/challenge.js +13 -2
- package/sparkdream/rep/v1/genesis.d.ts +170 -1
- package/sparkdream/rep/v1/genesis.js +362 -2
- package/sparkdream/rep/v1/initiative.d.ts +7 -5
- package/sparkdream/rep/v1/initiative.js +11 -14
- package/sparkdream/rep/v1/interim.d.ts +32 -0
- package/sparkdream/rep/v1/interim.js +61 -2
- package/sparkdream/rep/v1/member.d.ts +54 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/rep/v1/params.d.ts +388 -2
- package/sparkdream/rep/v1/params.js +361 -1
- package/sparkdream/rep/v1/query.d.ts +26 -4
- package/sparkdream/rep/v1/query.js +16 -16
- package/sparkdream/rep/v1/tx.amino.d.ts +49 -4
- package/sparkdream/rep/v1/tx.amino.js +65 -4
- package/sparkdream/rep/v1/tx.d.ts +158 -110
- package/sparkdream/rep/v1/tx.js +90 -66
- package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
- package/sparkdream/rep/v1/tx.registry.js +17 -17
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -7
- package/sparkdream/rep/v1/tx.rpc.msg.js +10 -10
|
@@ -7312,8 +7312,8 @@ export const QueryDreamSupplyStatsRequest = {
|
|
|
7312
7312
|
};
|
|
7313
7313
|
function createBaseQueryDreamSupplyStatsResponse() {
|
|
7314
7314
|
return {
|
|
7315
|
-
|
|
7316
|
-
|
|
7315
|
+
seasonMinted: "",
|
|
7316
|
+
seasonBurned: "",
|
|
7317
7317
|
circulating: "",
|
|
7318
7318
|
totalStaked: "",
|
|
7319
7319
|
treasuryBalance: "",
|
|
@@ -7328,11 +7328,11 @@ function createBaseQueryDreamSupplyStatsResponse() {
|
|
|
7328
7328
|
export const QueryDreamSupplyStatsResponse = {
|
|
7329
7329
|
typeUrl: "/sparkdream.rep.v1.QueryDreamSupplyStatsResponse",
|
|
7330
7330
|
encode(message, writer = BinaryWriter.create()) {
|
|
7331
|
-
if (message.
|
|
7332
|
-
writer.uint32(10).string(message.
|
|
7331
|
+
if (message.seasonMinted !== "") {
|
|
7332
|
+
writer.uint32(10).string(message.seasonMinted);
|
|
7333
7333
|
}
|
|
7334
|
-
if (message.
|
|
7335
|
-
writer.uint32(18).string(message.
|
|
7334
|
+
if (message.seasonBurned !== "") {
|
|
7335
|
+
writer.uint32(18).string(message.seasonBurned);
|
|
7336
7336
|
}
|
|
7337
7337
|
if (message.circulating !== "") {
|
|
7338
7338
|
writer.uint32(26).string(message.circulating);
|
|
@@ -7356,10 +7356,10 @@ export const QueryDreamSupplyStatsResponse = {
|
|
|
7356
7356
|
const tag = reader.uint32();
|
|
7357
7357
|
switch (tag >>> 3) {
|
|
7358
7358
|
case 1:
|
|
7359
|
-
message.
|
|
7359
|
+
message.seasonMinted = reader.string();
|
|
7360
7360
|
break;
|
|
7361
7361
|
case 2:
|
|
7362
|
-
message.
|
|
7362
|
+
message.seasonBurned = reader.string();
|
|
7363
7363
|
break;
|
|
7364
7364
|
case 3:
|
|
7365
7365
|
message.circulating = reader.string();
|
|
@@ -7382,8 +7382,8 @@ export const QueryDreamSupplyStatsResponse = {
|
|
|
7382
7382
|
},
|
|
7383
7383
|
fromPartial(object) {
|
|
7384
7384
|
const message = createBaseQueryDreamSupplyStatsResponse();
|
|
7385
|
-
message.
|
|
7386
|
-
message.
|
|
7385
|
+
message.seasonMinted = object.seasonMinted ?? "";
|
|
7386
|
+
message.seasonBurned = object.seasonBurned ?? "";
|
|
7387
7387
|
message.circulating = object.circulating ?? "";
|
|
7388
7388
|
message.totalStaked = object.totalStaked ?? "";
|
|
7389
7389
|
message.treasuryBalance = object.treasuryBalance ?? "";
|
|
@@ -7392,11 +7392,11 @@ export const QueryDreamSupplyStatsResponse = {
|
|
|
7392
7392
|
},
|
|
7393
7393
|
fromAmino(object) {
|
|
7394
7394
|
const message = createBaseQueryDreamSupplyStatsResponse();
|
|
7395
|
-
if (object.
|
|
7396
|
-
message.
|
|
7395
|
+
if (object.season_minted !== undefined && object.season_minted !== null) {
|
|
7396
|
+
message.seasonMinted = object.season_minted;
|
|
7397
7397
|
}
|
|
7398
|
-
if (object.
|
|
7399
|
-
message.
|
|
7398
|
+
if (object.season_burned !== undefined && object.season_burned !== null) {
|
|
7399
|
+
message.seasonBurned = object.season_burned;
|
|
7400
7400
|
}
|
|
7401
7401
|
if (object.circulating !== undefined && object.circulating !== null) {
|
|
7402
7402
|
message.circulating = object.circulating;
|
|
@@ -7414,8 +7414,8 @@ export const QueryDreamSupplyStatsResponse = {
|
|
|
7414
7414
|
},
|
|
7415
7415
|
toAmino(message) {
|
|
7416
7416
|
const obj = {};
|
|
7417
|
-
obj.
|
|
7418
|
-
obj.
|
|
7417
|
+
obj.season_minted = message.seasonMinted === "" ? undefined : message.seasonMinted;
|
|
7418
|
+
obj.season_burned = message.seasonBurned === "" ? undefined : message.seasonBurned;
|
|
7419
7419
|
obj.circulating = message.circulating === "" ? undefined : message.circulating;
|
|
7420
7420
|
obj.total_staked = message.totalStaked === "" ? undefined : message.totalStaked;
|
|
7421
7421
|
obj.treasury_balance = message.treasuryBalance === "" ? undefined : message.treasuryBalance;
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
// Every rep message with a repeated field is patched here to mirror aminojson's
|
|
14
14
|
// omitempty (return `undefined` when empty). The rest of the converters pass
|
|
15
15
|
// straight through to the auto-generated toAmino/fromAmino.
|
|
16
|
-
|
|
16
|
+
//
|
|
17
|
+
// MAINTENANCE: this map REPLACES the generated one wholesale, so it must list
|
|
18
|
+
// every message in tx.proto. A message added to the proto but not added here
|
|
19
|
+
// ends up with no amino converter at all, and amino (Ledger) signing for it
|
|
20
|
+
// fails at runtime. When syncing protos, diff the message list in
|
|
21
|
+
// protos/sparkdream/rep/v1/tx.proto against the keys below.
|
|
22
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgInviteMember, MsgAcceptInvitation, MsgTransferDream, MsgCreateInterim, MsgAssignInterim, MsgSubmitInterimWork, MsgApproveInterim, MsgAbandonInterim, MsgCompleteInterim, MsgProposeProject, MsgApproveProjectBudget, MsgCancelProject, MsgCreateInitiative, MsgAssignInitiative, MsgSubmitInitiativeWork, MsgApproveInitiative, MsgUnassignInitiative, MsgCompleteInitiative, MsgStake, MsgUnstake, MsgClaimStakingRewards, MsgCompoundStakingRewards, MsgCreateChallenge, MsgRespondToChallenge, MsgSubmitJurorVote, MsgSubmitExpertTestimony, MsgChallengeContent, MsgRespondToContentChallenge, MsgRegisterZkPublicKey, MsgCreateTag, MsgReportTag, MsgResolveTagReport, MsgCreateTagBudget, MsgAwardFromTagBudget, MsgTopUpTagBudget, MsgToggleTagBudget, MsgWithdrawTagBudget, MsgBondRole, MsgUnbondRole, MsgReportMember, MsgCosignMemberReport, MsgResolveMemberReport, MsgDefendMemberReport, MsgAppealGovAction, MsgResolveGovActionAppeal, MsgAcceptJuryDuty, MsgSubmitInitiativeReview, MsgSetVerificationPolicy, MsgResolveReviewEscalation, MsgDeclineJuryDuty, MsgFundReviewBounty, MsgReclaimReviewBounty, MsgCancelUnbondRole, MsgCloseInitiative, } from "./tx";
|
|
17
23
|
import { CriteriaVote } from "./jury_review";
|
|
18
24
|
export const AminoConverter = {
|
|
19
25
|
"/sparkdream.rep.v1.MsgUpdateParams": {
|
|
@@ -160,10 +166,10 @@ export const AminoConverter = {
|
|
|
160
166
|
},
|
|
161
167
|
fromAmino: MsgApproveInitiative.fromAmino,
|
|
162
168
|
},
|
|
163
|
-
"/sparkdream.rep.v1.
|
|
164
|
-
aminoType: "sparkdream/x/rep/
|
|
165
|
-
toAmino:
|
|
166
|
-
fromAmino:
|
|
169
|
+
"/sparkdream.rep.v1.MsgUnassignInitiative": {
|
|
170
|
+
aminoType: "sparkdream/x/rep/MsgUnassignInitiative",
|
|
171
|
+
toAmino: MsgUnassignInitiative.toAmino,
|
|
172
|
+
fromAmino: MsgUnassignInitiative.fromAmino,
|
|
167
173
|
},
|
|
168
174
|
"/sparkdream.rep.v1.MsgCompleteInitiative": {
|
|
169
175
|
aminoType: "sparkdream/x/rep/MsgCompleteInitiative",
|
|
@@ -235,6 +241,51 @@ export const AminoConverter = {
|
|
|
235
241
|
},
|
|
236
242
|
fromAmino: MsgSubmitJurorVote.fromAmino,
|
|
237
243
|
},
|
|
244
|
+
"/sparkdream.rep.v1.MsgAcceptJuryDuty": {
|
|
245
|
+
aminoType: "sparkdream/x/rep/MsgAcceptJuryDuty",
|
|
246
|
+
toAmino: MsgAcceptJuryDuty.toAmino,
|
|
247
|
+
fromAmino: MsgAcceptJuryDuty.fromAmino,
|
|
248
|
+
},
|
|
249
|
+
"/sparkdream.rep.v1.MsgSubmitInitiativeReview": {
|
|
250
|
+
aminoType: "sparkdream/x/rep/MsgSubmitInitiativeReview",
|
|
251
|
+
toAmino(message) {
|
|
252
|
+
const obj = {};
|
|
253
|
+
obj.reviewer = message.reviewer === "" ? undefined : message.reviewer;
|
|
254
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
255
|
+
obj.approved = message.approved === false ? undefined : message.approved;
|
|
256
|
+
obj.criteria_votes = (message.criteriaVotes?.length ?? 0) > 0
|
|
257
|
+
? message.criteriaVotes.map((e) => e ? CriteriaVote.toAmino(e) : undefined)
|
|
258
|
+
: undefined;
|
|
259
|
+
obj.comments = message.comments === "" ? undefined : message.comments;
|
|
260
|
+
return obj;
|
|
261
|
+
},
|
|
262
|
+
fromAmino: MsgSubmitInitiativeReview.fromAmino,
|
|
263
|
+
},
|
|
264
|
+
"/sparkdream.rep.v1.MsgSetVerificationPolicy": {
|
|
265
|
+
aminoType: "sparkdream/x/rep/MsgSetVerificationPolicy",
|
|
266
|
+
toAmino: MsgSetVerificationPolicy.toAmino,
|
|
267
|
+
fromAmino: MsgSetVerificationPolicy.fromAmino,
|
|
268
|
+
},
|
|
269
|
+
"/sparkdream.rep.v1.MsgResolveReviewEscalation": {
|
|
270
|
+
aminoType: "sparkdream/x/rep/MsgResolveReviewEscalation",
|
|
271
|
+
toAmino: MsgResolveReviewEscalation.toAmino,
|
|
272
|
+
fromAmino: MsgResolveReviewEscalation.fromAmino,
|
|
273
|
+
},
|
|
274
|
+
"/sparkdream.rep.v1.MsgDeclineJuryDuty": {
|
|
275
|
+
aminoType: "sparkdream/x/rep/MsgDeclineJuryDuty",
|
|
276
|
+
toAmino: MsgDeclineJuryDuty.toAmino,
|
|
277
|
+
fromAmino: MsgDeclineJuryDuty.fromAmino,
|
|
278
|
+
},
|
|
279
|
+
"/sparkdream.rep.v1.MsgFundReviewBounty": {
|
|
280
|
+
aminoType: "sparkdream/x/rep/MsgFundReviewBounty",
|
|
281
|
+
toAmino: MsgFundReviewBounty.toAmino,
|
|
282
|
+
fromAmino: MsgFundReviewBounty.fromAmino,
|
|
283
|
+
},
|
|
284
|
+
"/sparkdream.rep.v1.MsgReclaimReviewBounty": {
|
|
285
|
+
aminoType: "sparkdream/x/rep/MsgReclaimReviewBounty",
|
|
286
|
+
toAmino: MsgReclaimReviewBounty.toAmino,
|
|
287
|
+
fromAmino: MsgReclaimReviewBounty.fromAmino,
|
|
288
|
+
},
|
|
238
289
|
"/sparkdream.rep.v1.MsgSubmitExpertTestimony": {
|
|
239
290
|
aminoType: "sparkdream/x/rep/MsgSubmitExpertTestimony",
|
|
240
291
|
toAmino: MsgSubmitExpertTestimony.toAmino,
|
|
@@ -325,6 +376,11 @@ export const AminoConverter = {
|
|
|
325
376
|
toAmino: MsgUnbondRole.toAmino,
|
|
326
377
|
fromAmino: MsgUnbondRole.fromAmino,
|
|
327
378
|
},
|
|
379
|
+
"/sparkdream.rep.v1.MsgCancelUnbondRole": {
|
|
380
|
+
aminoType: "sparkdream/x/rep/MsgCancelUnbondRole",
|
|
381
|
+
toAmino: MsgCancelUnbondRole.toAmino,
|
|
382
|
+
fromAmino: MsgCancelUnbondRole.fromAmino,
|
|
383
|
+
},
|
|
328
384
|
"/sparkdream.rep.v1.MsgReportMember": {
|
|
329
385
|
aminoType: "sparkdream/x/rep/MsgReportMember",
|
|
330
386
|
toAmino: MsgReportMember.toAmino,
|
|
@@ -355,4 +411,9 @@ export const AminoConverter = {
|
|
|
355
411
|
toAmino: MsgResolveGovActionAppeal.toAmino,
|
|
356
412
|
fromAmino: MsgResolveGovActionAppeal.fromAmino,
|
|
357
413
|
},
|
|
414
|
+
"/sparkdream.rep.v1.MsgCloseInitiative": {
|
|
415
|
+
aminoType: "sparkdream/x/rep/MsgCloseInitiative",
|
|
416
|
+
toAmino: MsgCloseInitiative.toAmino,
|
|
417
|
+
fromAmino: MsgCloseInitiative.fromAmino,
|
|
418
|
+
},
|
|
358
419
|
};
|
|
@@ -1673,7 +1673,8 @@ function createBaseMsgCompleteInterim() {
|
|
|
1673
1673
|
return {
|
|
1674
1674
|
creator: "",
|
|
1675
1675
|
interimId: BigInt(0),
|
|
1676
|
-
completionNotes: ""
|
|
1676
|
+
completionNotes: "",
|
|
1677
|
+
decision: 0
|
|
1677
1678
|
};
|
|
1678
1679
|
}
|
|
1679
1680
|
/**
|
|
@@ -1695,6 +1696,9 @@ export const MsgCompleteInterim = {
|
|
|
1695
1696
|
if (message.completionNotes !== "") {
|
|
1696
1697
|
writer.uint32(26).string(message.completionNotes);
|
|
1697
1698
|
}
|
|
1699
|
+
if (message.decision !== 0) {
|
|
1700
|
+
writer.uint32(32).int32(message.decision);
|
|
1701
|
+
}
|
|
1698
1702
|
return writer;
|
|
1699
1703
|
},
|
|
1700
1704
|
decode(input, length) {
|
|
@@ -1713,6 +1717,9 @@ export const MsgCompleteInterim = {
|
|
|
1713
1717
|
case 3:
|
|
1714
1718
|
message.completionNotes = reader.string();
|
|
1715
1719
|
break;
|
|
1720
|
+
case 4:
|
|
1721
|
+
message.decision = reader.int32();
|
|
1722
|
+
break;
|
|
1716
1723
|
default:
|
|
1717
1724
|
reader.skipType(tag & 7);
|
|
1718
1725
|
break;
|
|
@@ -1725,6 +1732,7 @@ export const MsgCompleteInterim = {
|
|
|
1725
1732
|
message.creator = object.creator ?? "";
|
|
1726
1733
|
message.interimId = object.interimId !== undefined && object.interimId !== null ? BigInt(object.interimId.toString()) : BigInt(0);
|
|
1727
1734
|
message.completionNotes = object.completionNotes ?? "";
|
|
1735
|
+
message.decision = object.decision ?? 0;
|
|
1728
1736
|
return message;
|
|
1729
1737
|
},
|
|
1730
1738
|
fromAmino(object) {
|
|
@@ -1738,6 +1746,9 @@ export const MsgCompleteInterim = {
|
|
|
1738
1746
|
if (object.completion_notes !== undefined && object.completion_notes !== null) {
|
|
1739
1747
|
message.completionNotes = object.completion_notes;
|
|
1740
1748
|
}
|
|
1749
|
+
if (object.decision !== undefined && object.decision !== null) {
|
|
1750
|
+
message.decision = object.decision;
|
|
1751
|
+
}
|
|
1741
1752
|
return message;
|
|
1742
1753
|
},
|
|
1743
1754
|
toAmino(message) {
|
|
@@ -1745,6 +1756,7 @@ export const MsgCompleteInterim = {
|
|
|
1745
1756
|
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
1746
1757
|
obj.interim_id = message.interimId !== BigInt(0) ? message.interimId?.toString() : undefined;
|
|
1747
1758
|
obj.completion_notes = message.completionNotes === "" ? undefined : message.completionNotes;
|
|
1759
|
+
obj.decision = message.decision === 0 ? undefined : message.decision;
|
|
1748
1760
|
return obj;
|
|
1749
1761
|
},
|
|
1750
1762
|
fromAminoMsg(object) {
|
|
@@ -3147,7 +3159,7 @@ export const MsgApproveInitiativeResponse = {
|
|
|
3147
3159
|
};
|
|
3148
3160
|
}
|
|
3149
3161
|
};
|
|
3150
|
-
function
|
|
3162
|
+
function createBaseMsgUnassignInitiative() {
|
|
3151
3163
|
return {
|
|
3152
3164
|
creator: "",
|
|
3153
3165
|
initiativeId: BigInt(0),
|
|
@@ -3155,14 +3167,23 @@ function createBaseMsgAbandonInitiative() {
|
|
|
3155
3167
|
};
|
|
3156
3168
|
}
|
|
3157
3169
|
/**
|
|
3158
|
-
*
|
|
3159
|
-
*
|
|
3170
|
+
* MsgUnassignInitiative releases an assignment and returns the initiative to
|
|
3171
|
+
* OPEN so someone else can pick it up. It does not retire the work item —
|
|
3172
|
+
* MsgCloseInitiative does that — and it leaves conviction and its stakes
|
|
3173
|
+
* untouched, so the demand the community built up survives a change of hands.
|
|
3174
|
+
*
|
|
3175
|
+
* Signed by the assignee stepping down, or by the Operations Committee forcing
|
|
3176
|
+
* the release of work that has stalled. Deliberately NOT open to the project
|
|
3177
|
+
* creator, unlike MsgAssignInitiative: the creator is an interested party, and
|
|
3178
|
+
* letting them pull an assignment back would be a rug-pull on work in flight.
|
|
3179
|
+
* Their lever is MsgCloseInitiative, which retires the item outright.
|
|
3180
|
+
* @name MsgUnassignInitiative
|
|
3160
3181
|
* @package sparkdream.rep.v1
|
|
3161
|
-
* @see proto type: sparkdream.rep.v1.
|
|
3182
|
+
* @see proto type: sparkdream.rep.v1.MsgUnassignInitiative
|
|
3162
3183
|
*/
|
|
3163
|
-
export const
|
|
3164
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
3165
|
-
aminoType: "sparkdream/x/rep/
|
|
3184
|
+
export const MsgUnassignInitiative = {
|
|
3185
|
+
typeUrl: "/sparkdream.rep.v1.MsgUnassignInitiative",
|
|
3186
|
+
aminoType: "sparkdream/x/rep/MsgUnassignInitiative",
|
|
3166
3187
|
encode(message, writer = BinaryWriter.create()) {
|
|
3167
3188
|
if (message.creator !== "") {
|
|
3168
3189
|
writer.uint32(10).string(message.creator);
|
|
@@ -3178,7 +3199,7 @@ export const MsgAbandonInitiative = {
|
|
|
3178
3199
|
decode(input, length) {
|
|
3179
3200
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3180
3201
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3181
|
-
const message =
|
|
3202
|
+
const message = createBaseMsgUnassignInitiative();
|
|
3182
3203
|
while (reader.pos < end) {
|
|
3183
3204
|
const tag = reader.uint32();
|
|
3184
3205
|
switch (tag >>> 3) {
|
|
@@ -3199,14 +3220,14 @@ export const MsgAbandonInitiative = {
|
|
|
3199
3220
|
return message;
|
|
3200
3221
|
},
|
|
3201
3222
|
fromPartial(object) {
|
|
3202
|
-
const message =
|
|
3223
|
+
const message = createBaseMsgUnassignInitiative();
|
|
3203
3224
|
message.creator = object.creator ?? "";
|
|
3204
3225
|
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
3205
3226
|
message.reason = object.reason ?? "";
|
|
3206
3227
|
return message;
|
|
3207
3228
|
},
|
|
3208
3229
|
fromAmino(object) {
|
|
3209
|
-
const message =
|
|
3230
|
+
const message = createBaseMsgUnassignInitiative();
|
|
3210
3231
|
if (object.creator !== undefined && object.creator !== null) {
|
|
3211
3232
|
message.creator = object.creator;
|
|
3212
3233
|
}
|
|
@@ -3226,45 +3247,45 @@ export const MsgAbandonInitiative = {
|
|
|
3226
3247
|
return obj;
|
|
3227
3248
|
},
|
|
3228
3249
|
fromAminoMsg(object) {
|
|
3229
|
-
return
|
|
3250
|
+
return MsgUnassignInitiative.fromAmino(object.value);
|
|
3230
3251
|
},
|
|
3231
3252
|
toAminoMsg(message) {
|
|
3232
3253
|
return {
|
|
3233
|
-
type: "sparkdream/x/rep/
|
|
3234
|
-
value:
|
|
3254
|
+
type: "sparkdream/x/rep/MsgUnassignInitiative",
|
|
3255
|
+
value: MsgUnassignInitiative.toAmino(message)
|
|
3235
3256
|
};
|
|
3236
3257
|
},
|
|
3237
3258
|
fromProtoMsg(message) {
|
|
3238
|
-
return
|
|
3259
|
+
return MsgUnassignInitiative.decode(message.value);
|
|
3239
3260
|
},
|
|
3240
3261
|
toProto(message) {
|
|
3241
|
-
return
|
|
3262
|
+
return MsgUnassignInitiative.encode(message).finish();
|
|
3242
3263
|
},
|
|
3243
3264
|
toProtoMsg(message) {
|
|
3244
3265
|
return {
|
|
3245
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
3246
|
-
value:
|
|
3266
|
+
typeUrl: "/sparkdream.rep.v1.MsgUnassignInitiative",
|
|
3267
|
+
value: MsgUnassignInitiative.encode(message).finish()
|
|
3247
3268
|
};
|
|
3248
3269
|
}
|
|
3249
3270
|
};
|
|
3250
|
-
function
|
|
3271
|
+
function createBaseMsgUnassignInitiativeResponse() {
|
|
3251
3272
|
return {};
|
|
3252
3273
|
}
|
|
3253
3274
|
/**
|
|
3254
|
-
*
|
|
3255
|
-
* @name
|
|
3275
|
+
* MsgUnassignInitiativeResponse defines the MsgUnassignInitiativeResponse message.
|
|
3276
|
+
* @name MsgUnassignInitiativeResponse
|
|
3256
3277
|
* @package sparkdream.rep.v1
|
|
3257
|
-
* @see proto type: sparkdream.rep.v1.
|
|
3278
|
+
* @see proto type: sparkdream.rep.v1.MsgUnassignInitiativeResponse
|
|
3258
3279
|
*/
|
|
3259
|
-
export const
|
|
3260
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
3280
|
+
export const MsgUnassignInitiativeResponse = {
|
|
3281
|
+
typeUrl: "/sparkdream.rep.v1.MsgUnassignInitiativeResponse",
|
|
3261
3282
|
encode(_, writer = BinaryWriter.create()) {
|
|
3262
3283
|
return writer;
|
|
3263
3284
|
},
|
|
3264
3285
|
decode(input, length) {
|
|
3265
3286
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3266
3287
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3267
|
-
const message =
|
|
3288
|
+
const message = createBaseMsgUnassignInitiativeResponse();
|
|
3268
3289
|
while (reader.pos < end) {
|
|
3269
3290
|
const tag = reader.uint32();
|
|
3270
3291
|
switch (tag >>> 3) {
|
|
@@ -3276,11 +3297,11 @@ export const MsgAbandonInitiativeResponse = {
|
|
|
3276
3297
|
return message;
|
|
3277
3298
|
},
|
|
3278
3299
|
fromPartial(_) {
|
|
3279
|
-
const message =
|
|
3300
|
+
const message = createBaseMsgUnassignInitiativeResponse();
|
|
3280
3301
|
return message;
|
|
3281
3302
|
},
|
|
3282
3303
|
fromAmino(_) {
|
|
3283
|
-
const message =
|
|
3304
|
+
const message = createBaseMsgUnassignInitiativeResponse();
|
|
3284
3305
|
return message;
|
|
3285
3306
|
},
|
|
3286
3307
|
toAmino(_) {
|
|
@@ -3288,18 +3309,18 @@ export const MsgAbandonInitiativeResponse = {
|
|
|
3288
3309
|
return obj;
|
|
3289
3310
|
},
|
|
3290
3311
|
fromAminoMsg(object) {
|
|
3291
|
-
return
|
|
3312
|
+
return MsgUnassignInitiativeResponse.fromAmino(object.value);
|
|
3292
3313
|
},
|
|
3293
3314
|
fromProtoMsg(message) {
|
|
3294
|
-
return
|
|
3315
|
+
return MsgUnassignInitiativeResponse.decode(message.value);
|
|
3295
3316
|
},
|
|
3296
3317
|
toProto(message) {
|
|
3297
|
-
return
|
|
3318
|
+
return MsgUnassignInitiativeResponse.encode(message).finish();
|
|
3298
3319
|
},
|
|
3299
3320
|
toProtoMsg(message) {
|
|
3300
3321
|
return {
|
|
3301
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
3302
|
-
value:
|
|
3322
|
+
typeUrl: "/sparkdream.rep.v1.MsgUnassignInitiativeResponse",
|
|
3323
|
+
value: MsgUnassignInitiativeResponse.encode(message).finish()
|
|
3303
3324
|
};
|
|
3304
3325
|
}
|
|
3305
3326
|
};
|
|
@@ -8440,7 +8461,7 @@ export const MsgResolveGovActionAppealResponse = {
|
|
|
8440
8461
|
};
|
|
8441
8462
|
}
|
|
8442
8463
|
};
|
|
8443
|
-
function
|
|
8464
|
+
function createBaseMsgCloseInitiative() {
|
|
8444
8465
|
return {
|
|
8445
8466
|
creator: "",
|
|
8446
8467
|
initiativeId: BigInt(0),
|
|
@@ -8448,15 +8469,18 @@ function createBaseMsgCancelInitiative() {
|
|
|
8448
8469
|
};
|
|
8449
8470
|
}
|
|
8450
8471
|
/**
|
|
8451
|
-
*
|
|
8452
|
-
* parent project's creator or the Operations
|
|
8453
|
-
*
|
|
8472
|
+
* MsgCloseInitiative retires an initiative and returns its budget to the
|
|
8473
|
+
* parent project. Callable by the project's creator or the Operations
|
|
8474
|
+
* Committee, whether or not anyone is currently assigned: the project side
|
|
8475
|
+
* must be able to stop funding work it no longer wants without needing the
|
|
8476
|
+
* assignee's cooperation.
|
|
8477
|
+
* @name MsgCloseInitiative
|
|
8454
8478
|
* @package sparkdream.rep.v1
|
|
8455
|
-
* @see proto type: sparkdream.rep.v1.
|
|
8479
|
+
* @see proto type: sparkdream.rep.v1.MsgCloseInitiative
|
|
8456
8480
|
*/
|
|
8457
|
-
export const
|
|
8458
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
8459
|
-
aminoType: "sparkdream/x/rep/
|
|
8481
|
+
export const MsgCloseInitiative = {
|
|
8482
|
+
typeUrl: "/sparkdream.rep.v1.MsgCloseInitiative",
|
|
8483
|
+
aminoType: "sparkdream/x/rep/MsgCloseInitiative",
|
|
8460
8484
|
encode(message, writer = BinaryWriter.create()) {
|
|
8461
8485
|
if (message.creator !== "") {
|
|
8462
8486
|
writer.uint32(10).string(message.creator);
|
|
@@ -8472,7 +8496,7 @@ export const MsgCancelInitiative = {
|
|
|
8472
8496
|
decode(input, length) {
|
|
8473
8497
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8474
8498
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8475
|
-
const message =
|
|
8499
|
+
const message = createBaseMsgCloseInitiative();
|
|
8476
8500
|
while (reader.pos < end) {
|
|
8477
8501
|
const tag = reader.uint32();
|
|
8478
8502
|
switch (tag >>> 3) {
|
|
@@ -8493,14 +8517,14 @@ export const MsgCancelInitiative = {
|
|
|
8493
8517
|
return message;
|
|
8494
8518
|
},
|
|
8495
8519
|
fromPartial(object) {
|
|
8496
|
-
const message =
|
|
8520
|
+
const message = createBaseMsgCloseInitiative();
|
|
8497
8521
|
message.creator = object.creator ?? "";
|
|
8498
8522
|
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
8499
8523
|
message.reason = object.reason ?? "";
|
|
8500
8524
|
return message;
|
|
8501
8525
|
},
|
|
8502
8526
|
fromAmino(object) {
|
|
8503
|
-
const message =
|
|
8527
|
+
const message = createBaseMsgCloseInitiative();
|
|
8504
8528
|
if (object.creator !== undefined && object.creator !== null) {
|
|
8505
8529
|
message.creator = object.creator;
|
|
8506
8530
|
}
|
|
@@ -8520,45 +8544,45 @@ export const MsgCancelInitiative = {
|
|
|
8520
8544
|
return obj;
|
|
8521
8545
|
},
|
|
8522
8546
|
fromAminoMsg(object) {
|
|
8523
|
-
return
|
|
8547
|
+
return MsgCloseInitiative.fromAmino(object.value);
|
|
8524
8548
|
},
|
|
8525
8549
|
toAminoMsg(message) {
|
|
8526
8550
|
return {
|
|
8527
|
-
type: "sparkdream/x/rep/
|
|
8528
|
-
value:
|
|
8551
|
+
type: "sparkdream/x/rep/MsgCloseInitiative",
|
|
8552
|
+
value: MsgCloseInitiative.toAmino(message)
|
|
8529
8553
|
};
|
|
8530
8554
|
},
|
|
8531
8555
|
fromProtoMsg(message) {
|
|
8532
|
-
return
|
|
8556
|
+
return MsgCloseInitiative.decode(message.value);
|
|
8533
8557
|
},
|
|
8534
8558
|
toProto(message) {
|
|
8535
|
-
return
|
|
8559
|
+
return MsgCloseInitiative.encode(message).finish();
|
|
8536
8560
|
},
|
|
8537
8561
|
toProtoMsg(message) {
|
|
8538
8562
|
return {
|
|
8539
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
8540
|
-
value:
|
|
8563
|
+
typeUrl: "/sparkdream.rep.v1.MsgCloseInitiative",
|
|
8564
|
+
value: MsgCloseInitiative.encode(message).finish()
|
|
8541
8565
|
};
|
|
8542
8566
|
}
|
|
8543
8567
|
};
|
|
8544
|
-
function
|
|
8568
|
+
function createBaseMsgCloseInitiativeResponse() {
|
|
8545
8569
|
return {};
|
|
8546
8570
|
}
|
|
8547
8571
|
/**
|
|
8548
|
-
*
|
|
8549
|
-
* @name
|
|
8572
|
+
* MsgCloseInitiativeResponse defines the MsgCloseInitiativeResponse message.
|
|
8573
|
+
* @name MsgCloseInitiativeResponse
|
|
8550
8574
|
* @package sparkdream.rep.v1
|
|
8551
|
-
* @see proto type: sparkdream.rep.v1.
|
|
8575
|
+
* @see proto type: sparkdream.rep.v1.MsgCloseInitiativeResponse
|
|
8552
8576
|
*/
|
|
8553
|
-
export const
|
|
8554
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
8577
|
+
export const MsgCloseInitiativeResponse = {
|
|
8578
|
+
typeUrl: "/sparkdream.rep.v1.MsgCloseInitiativeResponse",
|
|
8555
8579
|
encode(_, writer = BinaryWriter.create()) {
|
|
8556
8580
|
return writer;
|
|
8557
8581
|
},
|
|
8558
8582
|
decode(input, length) {
|
|
8559
8583
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8560
8584
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8561
|
-
const message =
|
|
8585
|
+
const message = createBaseMsgCloseInitiativeResponse();
|
|
8562
8586
|
while (reader.pos < end) {
|
|
8563
8587
|
const tag = reader.uint32();
|
|
8564
8588
|
switch (tag >>> 3) {
|
|
@@ -8570,11 +8594,11 @@ export const MsgCancelInitiativeResponse = {
|
|
|
8570
8594
|
return message;
|
|
8571
8595
|
},
|
|
8572
8596
|
fromPartial(_) {
|
|
8573
|
-
const message =
|
|
8597
|
+
const message = createBaseMsgCloseInitiativeResponse();
|
|
8574
8598
|
return message;
|
|
8575
8599
|
},
|
|
8576
8600
|
fromAmino(_) {
|
|
8577
|
-
const message =
|
|
8601
|
+
const message = createBaseMsgCloseInitiativeResponse();
|
|
8578
8602
|
return message;
|
|
8579
8603
|
},
|
|
8580
8604
|
toAmino(_) {
|
|
@@ -8582,18 +8606,18 @@ export const MsgCancelInitiativeResponse = {
|
|
|
8582
8606
|
return obj;
|
|
8583
8607
|
},
|
|
8584
8608
|
fromAminoMsg(object) {
|
|
8585
|
-
return
|
|
8609
|
+
return MsgCloseInitiativeResponse.fromAmino(object.value);
|
|
8586
8610
|
},
|
|
8587
8611
|
fromProtoMsg(message) {
|
|
8588
|
-
return
|
|
8612
|
+
return MsgCloseInitiativeResponse.decode(message.value);
|
|
8589
8613
|
},
|
|
8590
8614
|
toProto(message) {
|
|
8591
|
-
return
|
|
8615
|
+
return MsgCloseInitiativeResponse.encode(message).finish();
|
|
8592
8616
|
},
|
|
8593
8617
|
toProtoMsg(message) {
|
|
8594
8618
|
return {
|
|
8595
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
8596
|
-
value:
|
|
8619
|
+
typeUrl: "/sparkdream.rep.v1.MsgCloseInitiativeResponse",
|
|
8620
|
+
value: MsgCloseInitiativeResponse.encode(message).finish()
|
|
8597
8621
|
};
|
|
8598
8622
|
}
|
|
8599
8623
|
};
|