@sparkdreamnft/sparkdreamjs 0.0.32 → 0.0.33
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 -0
- package/esm/sparkdream/rep/v1/initiative.js +11 -0
- package/esm/sparkdream/rep/v1/query.js +126 -120
- package/esm/sparkdream/rep/v1/query.lcd.js +21 -9
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +3 -9
- package/esm/sparkdream/rep/v1/tx.js +157 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +20 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +7 -1
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +44 -6
- package/sparkdream/rep/v1/challenge.d.ts +8 -0
- package/sparkdream/rep/v1/challenge.js +13 -0
- package/sparkdream/rep/v1/initiative.d.ts +6 -0
- package/sparkdream/rep/v1/initiative.js +11 -0
- package/sparkdream/rep/v1/query.d.ts +97 -20
- package/sparkdream/rep/v1/query.js +126 -120
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -3
- package/sparkdream/rep/v1/query.lcd.js +21 -9
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +9 -9
- package/sparkdream/rep/v1/query.rpc.Query.js +3 -9
- package/sparkdream/rep/v1/tx.d.ts +95 -0
- package/sparkdream/rep/v1/tx.js +158 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +13 -1
- package/sparkdream/rep/v1/tx.registry.js +19 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +4 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +6 -0
- package/sparkdream/rpc.query.d.ts +3 -3
|
@@ -52,15 +52,16 @@ export class LCDQueryClient {
|
|
|
52
52
|
return await this.req.get(endpoint);
|
|
53
53
|
};
|
|
54
54
|
/* ListProject defines the ListProject RPC. */
|
|
55
|
-
listProject = async (params
|
|
56
|
-
pagination: undefined
|
|
57
|
-
}) => {
|
|
55
|
+
listProject = async (params) => {
|
|
58
56
|
const options = {
|
|
59
57
|
params: {}
|
|
60
58
|
};
|
|
61
59
|
if (typeof params?.pagination !== "undefined") {
|
|
62
60
|
setPaginationParams(options, params.pagination);
|
|
63
61
|
}
|
|
62
|
+
if (typeof params?.sortBy !== "undefined") {
|
|
63
|
+
options.params.sort_by = params.sortBy;
|
|
64
|
+
}
|
|
64
65
|
const endpoint = `sparkdream/rep/v1/project`;
|
|
65
66
|
return await this.req.get(endpoint, options);
|
|
66
67
|
};
|
|
@@ -70,15 +71,16 @@ export class LCDQueryClient {
|
|
|
70
71
|
return await this.req.get(endpoint);
|
|
71
72
|
};
|
|
72
73
|
/* ListInitiative defines the ListInitiative RPC. */
|
|
73
|
-
listInitiative = async (params
|
|
74
|
-
pagination: undefined
|
|
75
|
-
}) => {
|
|
74
|
+
listInitiative = async (params) => {
|
|
76
75
|
const options = {
|
|
77
76
|
params: {}
|
|
78
77
|
};
|
|
79
78
|
if (typeof params?.pagination !== "undefined") {
|
|
80
79
|
setPaginationParams(options, params.pagination);
|
|
81
80
|
}
|
|
81
|
+
if (typeof params?.sortBy !== "undefined") {
|
|
82
|
+
options.params.sort_by = params.sortBy;
|
|
83
|
+
}
|
|
82
84
|
const endpoint = `sparkdream/rep/v1/initiative`;
|
|
83
85
|
return await this.req.get(endpoint, options);
|
|
84
86
|
};
|
|
@@ -235,6 +237,9 @@ export class LCDQueryClient {
|
|
|
235
237
|
if (typeof params?.pagination !== "undefined") {
|
|
236
238
|
setPaginationParams(options, params.pagination);
|
|
237
239
|
}
|
|
240
|
+
if (typeof params?.sortBy !== "undefined") {
|
|
241
|
+
options.params.sort_by = params.sortBy;
|
|
242
|
+
}
|
|
238
243
|
const endpoint = `sparkdream/rep/v1/projects_by_council/${params.council}`;
|
|
239
244
|
return await this.req.get(endpoint, options);
|
|
240
245
|
};
|
|
@@ -246,6 +251,9 @@ export class LCDQueryClient {
|
|
|
246
251
|
if (typeof params?.pagination !== "undefined") {
|
|
247
252
|
setPaginationParams(options, params.pagination);
|
|
248
253
|
}
|
|
254
|
+
if (typeof params?.sortBy !== "undefined") {
|
|
255
|
+
options.params.sort_by = params.sortBy;
|
|
256
|
+
}
|
|
249
257
|
const endpoint = `sparkdream/rep/v1/initiatives_by_project/${params.projectId}`;
|
|
250
258
|
return await this.req.get(endpoint, options);
|
|
251
259
|
};
|
|
@@ -257,19 +265,23 @@ export class LCDQueryClient {
|
|
|
257
265
|
if (typeof params?.pagination !== "undefined") {
|
|
258
266
|
setPaginationParams(options, params.pagination);
|
|
259
267
|
}
|
|
268
|
+
if (typeof params?.sortBy !== "undefined") {
|
|
269
|
+
options.params.sort_by = params.sortBy;
|
|
270
|
+
}
|
|
260
271
|
const endpoint = `sparkdream/rep/v1/initiatives_by_assignee/${params.assignee}`;
|
|
261
272
|
return await this.req.get(endpoint, options);
|
|
262
273
|
};
|
|
263
274
|
/* AvailableInitiatives Queries a list of AvailableInitiatives items. */
|
|
264
|
-
availableInitiatives = async (params
|
|
265
|
-
pagination: undefined
|
|
266
|
-
}) => {
|
|
275
|
+
availableInitiatives = async (params) => {
|
|
267
276
|
const options = {
|
|
268
277
|
params: {}
|
|
269
278
|
};
|
|
270
279
|
if (typeof params?.pagination !== "undefined") {
|
|
271
280
|
setPaginationParams(options, params.pagination);
|
|
272
281
|
}
|
|
282
|
+
if (typeof params?.sortBy !== "undefined") {
|
|
283
|
+
options.params.sort_by = params.sortBy;
|
|
284
|
+
}
|
|
273
285
|
const endpoint = `sparkdream/rep/v1/available_initiatives`;
|
|
274
286
|
return await this.req.get(endpoint, options);
|
|
275
287
|
};
|
|
@@ -47,9 +47,7 @@ export class QueryClientImpl {
|
|
|
47
47
|
return promise.then(data => QueryGetProjectResponse.decode(new BinaryReader(data)));
|
|
48
48
|
};
|
|
49
49
|
/* ListProject defines the ListProject RPC. */
|
|
50
|
-
listProject = async (request
|
|
51
|
-
pagination: undefined
|
|
52
|
-
}) => {
|
|
50
|
+
listProject = async (request) => {
|
|
53
51
|
const data = QueryAllProjectRequest.encode(request).finish();
|
|
54
52
|
const promise = this.rpc.request("sparkdream.rep.v1.Query", "ListProject", data);
|
|
55
53
|
return promise.then(data => QueryAllProjectResponse.decode(new BinaryReader(data)));
|
|
@@ -61,9 +59,7 @@ export class QueryClientImpl {
|
|
|
61
59
|
return promise.then(data => QueryGetInitiativeResponse.decode(new BinaryReader(data)));
|
|
62
60
|
};
|
|
63
61
|
/* ListInitiative defines the ListInitiative RPC. */
|
|
64
|
-
listInitiative = async (request
|
|
65
|
-
pagination: undefined
|
|
66
|
-
}) => {
|
|
62
|
+
listInitiative = async (request) => {
|
|
67
63
|
const data = QueryAllInitiativeRequest.encode(request).finish();
|
|
68
64
|
const promise = this.rpc.request("sparkdream.rep.v1.Query", "ListInitiative", data);
|
|
69
65
|
return promise.then(data => QueryAllInitiativeResponse.decode(new BinaryReader(data)));
|
|
@@ -187,9 +183,7 @@ export class QueryClientImpl {
|
|
|
187
183
|
return promise.then(data => QueryInitiativesByAssigneeResponse.decode(new BinaryReader(data)));
|
|
188
184
|
};
|
|
189
185
|
/* AvailableInitiatives Queries a list of AvailableInitiatives items. */
|
|
190
|
-
availableInitiatives = async (request
|
|
191
|
-
pagination: undefined
|
|
192
|
-
}) => {
|
|
186
|
+
availableInitiatives = async (request) => {
|
|
193
187
|
const data = QueryAvailableInitiativesRequest.encode(request).finish();
|
|
194
188
|
const promise = this.rpc.request("sparkdream.rep.v1.Query", "AvailableInitiatives", data);
|
|
195
189
|
return promise.then(data => QueryAvailableInitiativesResponse.decode(new BinaryReader(data)));
|
|
@@ -8137,3 +8137,160 @@ export const MsgResolveGovActionAppealResponse = {
|
|
|
8137
8137
|
};
|
|
8138
8138
|
}
|
|
8139
8139
|
};
|
|
8140
|
+
function createBaseMsgCancelInitiative() {
|
|
8141
|
+
return {
|
|
8142
|
+
creator: "",
|
|
8143
|
+
initiativeId: BigInt(0),
|
|
8144
|
+
reason: ""
|
|
8145
|
+
};
|
|
8146
|
+
}
|
|
8147
|
+
/**
|
|
8148
|
+
* MsgCancelInitiative retires an OPEN, unassigned initiative. Callable by the
|
|
8149
|
+
* parent project's creator or the Operations Committee.
|
|
8150
|
+
* @name MsgCancelInitiative
|
|
8151
|
+
* @package sparkdream.rep.v1
|
|
8152
|
+
* @see proto type: sparkdream.rep.v1.MsgCancelInitiative
|
|
8153
|
+
*/
|
|
8154
|
+
export const MsgCancelInitiative = {
|
|
8155
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelInitiative",
|
|
8156
|
+
aminoType: "sparkdream/x/rep/MsgCancelInitiative",
|
|
8157
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
8158
|
+
if (message.creator !== "") {
|
|
8159
|
+
writer.uint32(10).string(message.creator);
|
|
8160
|
+
}
|
|
8161
|
+
if (message.initiativeId !== BigInt(0)) {
|
|
8162
|
+
writer.uint32(16).uint64(message.initiativeId);
|
|
8163
|
+
}
|
|
8164
|
+
if (message.reason !== "") {
|
|
8165
|
+
writer.uint32(26).string(message.reason);
|
|
8166
|
+
}
|
|
8167
|
+
return writer;
|
|
8168
|
+
},
|
|
8169
|
+
decode(input, length) {
|
|
8170
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8171
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8172
|
+
const message = createBaseMsgCancelInitiative();
|
|
8173
|
+
while (reader.pos < end) {
|
|
8174
|
+
const tag = reader.uint32();
|
|
8175
|
+
switch (tag >>> 3) {
|
|
8176
|
+
case 1:
|
|
8177
|
+
message.creator = reader.string();
|
|
8178
|
+
break;
|
|
8179
|
+
case 2:
|
|
8180
|
+
message.initiativeId = reader.uint64();
|
|
8181
|
+
break;
|
|
8182
|
+
case 3:
|
|
8183
|
+
message.reason = reader.string();
|
|
8184
|
+
break;
|
|
8185
|
+
default:
|
|
8186
|
+
reader.skipType(tag & 7);
|
|
8187
|
+
break;
|
|
8188
|
+
}
|
|
8189
|
+
}
|
|
8190
|
+
return message;
|
|
8191
|
+
},
|
|
8192
|
+
fromPartial(object) {
|
|
8193
|
+
const message = createBaseMsgCancelInitiative();
|
|
8194
|
+
message.creator = object.creator ?? "";
|
|
8195
|
+
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
8196
|
+
message.reason = object.reason ?? "";
|
|
8197
|
+
return message;
|
|
8198
|
+
},
|
|
8199
|
+
fromAmino(object) {
|
|
8200
|
+
const message = createBaseMsgCancelInitiative();
|
|
8201
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
8202
|
+
message.creator = object.creator;
|
|
8203
|
+
}
|
|
8204
|
+
if (object.initiative_id !== undefined && object.initiative_id !== null) {
|
|
8205
|
+
message.initiativeId = BigInt(object.initiative_id);
|
|
8206
|
+
}
|
|
8207
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
8208
|
+
message.reason = object.reason;
|
|
8209
|
+
}
|
|
8210
|
+
return message;
|
|
8211
|
+
},
|
|
8212
|
+
toAmino(message) {
|
|
8213
|
+
const obj = {};
|
|
8214
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
8215
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
8216
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
8217
|
+
return obj;
|
|
8218
|
+
},
|
|
8219
|
+
fromAminoMsg(object) {
|
|
8220
|
+
return MsgCancelInitiative.fromAmino(object.value);
|
|
8221
|
+
},
|
|
8222
|
+
toAminoMsg(message) {
|
|
8223
|
+
return {
|
|
8224
|
+
type: "sparkdream/x/rep/MsgCancelInitiative",
|
|
8225
|
+
value: MsgCancelInitiative.toAmino(message)
|
|
8226
|
+
};
|
|
8227
|
+
},
|
|
8228
|
+
fromProtoMsg(message) {
|
|
8229
|
+
return MsgCancelInitiative.decode(message.value);
|
|
8230
|
+
},
|
|
8231
|
+
toProto(message) {
|
|
8232
|
+
return MsgCancelInitiative.encode(message).finish();
|
|
8233
|
+
},
|
|
8234
|
+
toProtoMsg(message) {
|
|
8235
|
+
return {
|
|
8236
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelInitiative",
|
|
8237
|
+
value: MsgCancelInitiative.encode(message).finish()
|
|
8238
|
+
};
|
|
8239
|
+
}
|
|
8240
|
+
};
|
|
8241
|
+
function createBaseMsgCancelInitiativeResponse() {
|
|
8242
|
+
return {};
|
|
8243
|
+
}
|
|
8244
|
+
/**
|
|
8245
|
+
* MsgCancelInitiativeResponse defines the MsgCancelInitiativeResponse message.
|
|
8246
|
+
* @name MsgCancelInitiativeResponse
|
|
8247
|
+
* @package sparkdream.rep.v1
|
|
8248
|
+
* @see proto type: sparkdream.rep.v1.MsgCancelInitiativeResponse
|
|
8249
|
+
*/
|
|
8250
|
+
export const MsgCancelInitiativeResponse = {
|
|
8251
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelInitiativeResponse",
|
|
8252
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
8253
|
+
return writer;
|
|
8254
|
+
},
|
|
8255
|
+
decode(input, length) {
|
|
8256
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8257
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8258
|
+
const message = createBaseMsgCancelInitiativeResponse();
|
|
8259
|
+
while (reader.pos < end) {
|
|
8260
|
+
const tag = reader.uint32();
|
|
8261
|
+
switch (tag >>> 3) {
|
|
8262
|
+
default:
|
|
8263
|
+
reader.skipType(tag & 7);
|
|
8264
|
+
break;
|
|
8265
|
+
}
|
|
8266
|
+
}
|
|
8267
|
+
return message;
|
|
8268
|
+
},
|
|
8269
|
+
fromPartial(_) {
|
|
8270
|
+
const message = createBaseMsgCancelInitiativeResponse();
|
|
8271
|
+
return message;
|
|
8272
|
+
},
|
|
8273
|
+
fromAmino(_) {
|
|
8274
|
+
const message = createBaseMsgCancelInitiativeResponse();
|
|
8275
|
+
return message;
|
|
8276
|
+
},
|
|
8277
|
+
toAmino(_) {
|
|
8278
|
+
const obj = {};
|
|
8279
|
+
return obj;
|
|
8280
|
+
},
|
|
8281
|
+
fromAminoMsg(object) {
|
|
8282
|
+
return MsgCancelInitiativeResponse.fromAmino(object.value);
|
|
8283
|
+
},
|
|
8284
|
+
fromProtoMsg(message) {
|
|
8285
|
+
return MsgCancelInitiativeResponse.decode(message.value);
|
|
8286
|
+
},
|
|
8287
|
+
toProto(message) {
|
|
8288
|
+
return MsgCancelInitiativeResponse.encode(message).finish();
|
|
8289
|
+
},
|
|
8290
|
+
toProtoMsg(message) {
|
|
8291
|
+
return {
|
|
8292
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelInitiativeResponse",
|
|
8293
|
+
value: MsgCancelInitiativeResponse.encode(message).finish()
|
|
8294
|
+
};
|
|
8295
|
+
}
|
|
8296
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgInviteMember, MsgAcceptInvitation, MsgTransferDream, MsgCreateInterim, MsgAssignInterim, MsgSubmitInterimWork, MsgApproveInterim, MsgAbandonInterim, MsgCompleteInterim, MsgProposeProject, MsgApproveProjectBudget, MsgCancelProject, MsgCreateInitiative, MsgAssignInitiative, MsgSubmitInitiativeWork, MsgApproveInitiative, MsgAbandonInitiative, MsgCompleteInitiative, MsgStake, MsgUnstake, MsgClaimStakingRewards, MsgCompoundStakingRewards, MsgCreateChallenge, MsgRespondToChallenge, MsgSubmitJurorVote, MsgSubmitExpertTestimony, MsgChallengeContent, MsgRespondToContentChallenge, MsgRegisterZkPublicKey, MsgCreateTag, MsgReportTag, MsgResolveTagReport, MsgCreateTagBudget, MsgAwardFromTagBudget, MsgTopUpTagBudget, MsgToggleTagBudget, MsgWithdrawTagBudget, MsgBondRole, MsgUnbondRole, MsgCancelUnbondRole, MsgReportMember, MsgCosignMemberReport, MsgResolveMemberReport, MsgDefendMemberReport, MsgAppealGovAction, MsgResolveGovActionAppeal } from "./tx";
|
|
2
|
-
export const registry = [["/sparkdream.rep.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.rep.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.rep.v1.MsgInviteMember", MsgInviteMember], ["/sparkdream.rep.v1.MsgAcceptInvitation", MsgAcceptInvitation], ["/sparkdream.rep.v1.MsgTransferDream", MsgTransferDream], ["/sparkdream.rep.v1.MsgCreateInterim", MsgCreateInterim], ["/sparkdream.rep.v1.MsgAssignInterim", MsgAssignInterim], ["/sparkdream.rep.v1.MsgSubmitInterimWork", MsgSubmitInterimWork], ["/sparkdream.rep.v1.MsgApproveInterim", MsgApproveInterim], ["/sparkdream.rep.v1.MsgAbandonInterim", MsgAbandonInterim], ["/sparkdream.rep.v1.MsgCompleteInterim", MsgCompleteInterim], ["/sparkdream.rep.v1.MsgProposeProject", MsgProposeProject], ["/sparkdream.rep.v1.MsgApproveProjectBudget", MsgApproveProjectBudget], ["/sparkdream.rep.v1.MsgCancelProject", MsgCancelProject], ["/sparkdream.rep.v1.MsgCreateInitiative", MsgCreateInitiative], ["/sparkdream.rep.v1.MsgAssignInitiative", MsgAssignInitiative], ["/sparkdream.rep.v1.MsgSubmitInitiativeWork", MsgSubmitInitiativeWork], ["/sparkdream.rep.v1.MsgApproveInitiative", MsgApproveInitiative], ["/sparkdream.rep.v1.MsgAbandonInitiative", MsgAbandonInitiative], ["/sparkdream.rep.v1.MsgCompleteInitiative", MsgCompleteInitiative], ["/sparkdream.rep.v1.MsgStake", MsgStake], ["/sparkdream.rep.v1.MsgUnstake", MsgUnstake], ["/sparkdream.rep.v1.MsgClaimStakingRewards", MsgClaimStakingRewards], ["/sparkdream.rep.v1.MsgCompoundStakingRewards", MsgCompoundStakingRewards], ["/sparkdream.rep.v1.MsgCreateChallenge", MsgCreateChallenge], ["/sparkdream.rep.v1.MsgRespondToChallenge", MsgRespondToChallenge], ["/sparkdream.rep.v1.MsgSubmitJurorVote", MsgSubmitJurorVote], ["/sparkdream.rep.v1.MsgSubmitExpertTestimony", MsgSubmitExpertTestimony], ["/sparkdream.rep.v1.MsgChallengeContent", MsgChallengeContent], ["/sparkdream.rep.v1.MsgRespondToContentChallenge", MsgRespondToContentChallenge], ["/sparkdream.rep.v1.MsgRegisterZkPublicKey", MsgRegisterZkPublicKey], ["/sparkdream.rep.v1.MsgCreateTag", MsgCreateTag], ["/sparkdream.rep.v1.MsgReportTag", MsgReportTag], ["/sparkdream.rep.v1.MsgResolveTagReport", MsgResolveTagReport], ["/sparkdream.rep.v1.MsgCreateTagBudget", MsgCreateTagBudget], ["/sparkdream.rep.v1.MsgAwardFromTagBudget", MsgAwardFromTagBudget], ["/sparkdream.rep.v1.MsgTopUpTagBudget", MsgTopUpTagBudget], ["/sparkdream.rep.v1.MsgToggleTagBudget", MsgToggleTagBudget], ["/sparkdream.rep.v1.MsgWithdrawTagBudget", MsgWithdrawTagBudget], ["/sparkdream.rep.v1.MsgBondRole", MsgBondRole], ["/sparkdream.rep.v1.MsgUnbondRole", MsgUnbondRole], ["/sparkdream.rep.v1.MsgCancelUnbondRole", MsgCancelUnbondRole], ["/sparkdream.rep.v1.MsgReportMember", MsgReportMember], ["/sparkdream.rep.v1.MsgCosignMemberReport", MsgCosignMemberReport], ["/sparkdream.rep.v1.MsgResolveMemberReport", MsgResolveMemberReport], ["/sparkdream.rep.v1.MsgDefendMemberReport", MsgDefendMemberReport], ["/sparkdream.rep.v1.MsgAppealGovAction", MsgAppealGovAction], ["/sparkdream.rep.v1.MsgResolveGovActionAppeal", MsgResolveGovActionAppeal]];
|
|
1
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgInviteMember, MsgAcceptInvitation, MsgTransferDream, MsgCreateInterim, MsgAssignInterim, MsgSubmitInterimWork, MsgApproveInterim, MsgAbandonInterim, MsgCompleteInterim, MsgProposeProject, MsgApproveProjectBudget, MsgCancelProject, MsgCreateInitiative, MsgAssignInitiative, MsgSubmitInitiativeWork, MsgApproveInitiative, MsgAbandonInitiative, MsgCompleteInitiative, MsgStake, MsgUnstake, MsgClaimStakingRewards, MsgCompoundStakingRewards, MsgCreateChallenge, MsgRespondToChallenge, MsgSubmitJurorVote, MsgSubmitExpertTestimony, MsgChallengeContent, MsgRespondToContentChallenge, MsgRegisterZkPublicKey, MsgCreateTag, MsgReportTag, MsgResolveTagReport, MsgCreateTagBudget, MsgAwardFromTagBudget, MsgTopUpTagBudget, MsgToggleTagBudget, MsgWithdrawTagBudget, MsgBondRole, MsgUnbondRole, MsgCancelUnbondRole, MsgReportMember, MsgCosignMemberReport, MsgResolveMemberReport, MsgDefendMemberReport, MsgAppealGovAction, MsgResolveGovActionAppeal, MsgCancelInitiative } from "./tx";
|
|
2
|
+
export const registry = [["/sparkdream.rep.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.rep.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.rep.v1.MsgInviteMember", MsgInviteMember], ["/sparkdream.rep.v1.MsgAcceptInvitation", MsgAcceptInvitation], ["/sparkdream.rep.v1.MsgTransferDream", MsgTransferDream], ["/sparkdream.rep.v1.MsgCreateInterim", MsgCreateInterim], ["/sparkdream.rep.v1.MsgAssignInterim", MsgAssignInterim], ["/sparkdream.rep.v1.MsgSubmitInterimWork", MsgSubmitInterimWork], ["/sparkdream.rep.v1.MsgApproveInterim", MsgApproveInterim], ["/sparkdream.rep.v1.MsgAbandonInterim", MsgAbandonInterim], ["/sparkdream.rep.v1.MsgCompleteInterim", MsgCompleteInterim], ["/sparkdream.rep.v1.MsgProposeProject", MsgProposeProject], ["/sparkdream.rep.v1.MsgApproveProjectBudget", MsgApproveProjectBudget], ["/sparkdream.rep.v1.MsgCancelProject", MsgCancelProject], ["/sparkdream.rep.v1.MsgCreateInitiative", MsgCreateInitiative], ["/sparkdream.rep.v1.MsgAssignInitiative", MsgAssignInitiative], ["/sparkdream.rep.v1.MsgSubmitInitiativeWork", MsgSubmitInitiativeWork], ["/sparkdream.rep.v1.MsgApproveInitiative", MsgApproveInitiative], ["/sparkdream.rep.v1.MsgAbandonInitiative", MsgAbandonInitiative], ["/sparkdream.rep.v1.MsgCompleteInitiative", MsgCompleteInitiative], ["/sparkdream.rep.v1.MsgStake", MsgStake], ["/sparkdream.rep.v1.MsgUnstake", MsgUnstake], ["/sparkdream.rep.v1.MsgClaimStakingRewards", MsgClaimStakingRewards], ["/sparkdream.rep.v1.MsgCompoundStakingRewards", MsgCompoundStakingRewards], ["/sparkdream.rep.v1.MsgCreateChallenge", MsgCreateChallenge], ["/sparkdream.rep.v1.MsgRespondToChallenge", MsgRespondToChallenge], ["/sparkdream.rep.v1.MsgSubmitJurorVote", MsgSubmitJurorVote], ["/sparkdream.rep.v1.MsgSubmitExpertTestimony", MsgSubmitExpertTestimony], ["/sparkdream.rep.v1.MsgChallengeContent", MsgChallengeContent], ["/sparkdream.rep.v1.MsgRespondToContentChallenge", MsgRespondToContentChallenge], ["/sparkdream.rep.v1.MsgRegisterZkPublicKey", MsgRegisterZkPublicKey], ["/sparkdream.rep.v1.MsgCreateTag", MsgCreateTag], ["/sparkdream.rep.v1.MsgReportTag", MsgReportTag], ["/sparkdream.rep.v1.MsgResolveTagReport", MsgResolveTagReport], ["/sparkdream.rep.v1.MsgCreateTagBudget", MsgCreateTagBudget], ["/sparkdream.rep.v1.MsgAwardFromTagBudget", MsgAwardFromTagBudget], ["/sparkdream.rep.v1.MsgTopUpTagBudget", MsgTopUpTagBudget], ["/sparkdream.rep.v1.MsgToggleTagBudget", MsgToggleTagBudget], ["/sparkdream.rep.v1.MsgWithdrawTagBudget", MsgWithdrawTagBudget], ["/sparkdream.rep.v1.MsgBondRole", MsgBondRole], ["/sparkdream.rep.v1.MsgUnbondRole", MsgUnbondRole], ["/sparkdream.rep.v1.MsgCancelUnbondRole", MsgCancelUnbondRole], ["/sparkdream.rep.v1.MsgReportMember", MsgReportMember], ["/sparkdream.rep.v1.MsgCosignMemberReport", MsgCosignMemberReport], ["/sparkdream.rep.v1.MsgResolveMemberReport", MsgResolveMemberReport], ["/sparkdream.rep.v1.MsgDefendMemberReport", MsgDefendMemberReport], ["/sparkdream.rep.v1.MsgAppealGovAction", MsgAppealGovAction], ["/sparkdream.rep.v1.MsgResolveGovActionAppeal", MsgResolveGovActionAppeal], ["/sparkdream.rep.v1.MsgCancelInitiative", MsgCancelInitiative]];
|
|
3
3
|
export const load = (protoRegistry) => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -294,6 +294,12 @@ export const MessageComposer = {
|
|
|
294
294
|
typeUrl: "/sparkdream.rep.v1.MsgResolveGovActionAppeal",
|
|
295
295
|
value: MsgResolveGovActionAppeal.encode(value).finish()
|
|
296
296
|
};
|
|
297
|
+
},
|
|
298
|
+
cancelInitiative(value) {
|
|
299
|
+
return {
|
|
300
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelInitiative",
|
|
301
|
+
value: MsgCancelInitiative.encode(value).finish()
|
|
302
|
+
};
|
|
297
303
|
}
|
|
298
304
|
},
|
|
299
305
|
withTypeUrl: {
|
|
@@ -584,6 +590,12 @@ export const MessageComposer = {
|
|
|
584
590
|
typeUrl: "/sparkdream.rep.v1.MsgResolveGovActionAppeal",
|
|
585
591
|
value
|
|
586
592
|
};
|
|
593
|
+
},
|
|
594
|
+
cancelInitiative(value) {
|
|
595
|
+
return {
|
|
596
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelInitiative",
|
|
597
|
+
value
|
|
598
|
+
};
|
|
587
599
|
}
|
|
588
600
|
},
|
|
589
601
|
fromPartial: {
|
|
@@ -874,6 +886,12 @@ export const MessageComposer = {
|
|
|
874
886
|
typeUrl: "/sparkdream.rep.v1.MsgResolveGovActionAppeal",
|
|
875
887
|
value: MsgResolveGovActionAppeal.fromPartial(value)
|
|
876
888
|
};
|
|
889
|
+
},
|
|
890
|
+
cancelInitiative(value) {
|
|
891
|
+
return {
|
|
892
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelInitiative",
|
|
893
|
+
value: MsgCancelInitiative.fromPartial(value)
|
|
894
|
+
};
|
|
877
895
|
}
|
|
878
896
|
}
|
|
879
897
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgInviteMember, MsgInviteMemberResponse, MsgAcceptInvitation, MsgAcceptInvitationResponse, MsgTransferDream, MsgTransferDreamResponse, MsgCreateInterim, MsgCreateInterimResponse, MsgAssignInterim, MsgAssignInterimResponse, MsgSubmitInterimWork, MsgSubmitInterimWorkResponse, MsgApproveInterim, MsgApproveInterimResponse, MsgAbandonInterim, MsgAbandonInterimResponse, MsgCompleteInterim, MsgCompleteInterimResponse, MsgProposeProject, MsgProposeProjectResponse, MsgApproveProjectBudget, MsgApproveProjectBudgetResponse, MsgCancelProject, MsgCancelProjectResponse, MsgCreateInitiative, MsgCreateInitiativeResponse, MsgAssignInitiative, MsgAssignInitiativeResponse, MsgSubmitInitiativeWork, MsgSubmitInitiativeWorkResponse, MsgApproveInitiative, MsgApproveInitiativeResponse, MsgAbandonInitiative, MsgAbandonInitiativeResponse, MsgCompleteInitiative, MsgCompleteInitiativeResponse, MsgStake, MsgStakeResponse, MsgUnstake, MsgUnstakeResponse, MsgClaimStakingRewards, MsgClaimStakingRewardsResponse, MsgCompoundStakingRewards, MsgCompoundStakingRewardsResponse, MsgCreateChallenge, MsgCreateChallengeResponse, MsgRespondToChallenge, MsgRespondToChallengeResponse, MsgSubmitJurorVote, MsgSubmitJurorVoteResponse, MsgSubmitExpertTestimony, MsgSubmitExpertTestimonyResponse, MsgChallengeContent, MsgChallengeContentResponse, MsgRespondToContentChallenge, MsgRespondToContentChallengeResponse, MsgRegisterZkPublicKey, MsgRegisterZkPublicKeyResponse, MsgCreateTag, MsgCreateTagResponse, MsgReportTag, MsgReportTagResponse, MsgResolveTagReport, MsgResolveTagReportResponse, MsgCreateTagBudget, MsgCreateTagBudgetResponse, MsgAwardFromTagBudget, MsgAwardFromTagBudgetResponse, MsgTopUpTagBudget, MsgTopUpTagBudgetResponse, MsgToggleTagBudget, MsgToggleTagBudgetResponse, MsgWithdrawTagBudget, MsgWithdrawTagBudgetResponse, MsgBondRole, MsgBondRoleResponse, MsgUnbondRole, MsgUnbondRoleResponse, MsgCancelUnbondRole, MsgCancelUnbondRoleResponse, MsgReportMember, MsgReportMemberResponse, MsgCosignMemberReport, MsgCosignMemberReportResponse, MsgResolveMemberReport, MsgResolveMemberReportResponse, MsgDefendMemberReport, MsgDefendMemberReportResponse, MsgAppealGovAction, MsgAppealGovActionResponse, MsgResolveGovActionAppeal, MsgResolveGovActionAppealResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgInviteMember, MsgInviteMemberResponse, MsgAcceptInvitation, MsgAcceptInvitationResponse, MsgTransferDream, MsgTransferDreamResponse, MsgCreateInterim, MsgCreateInterimResponse, MsgAssignInterim, MsgAssignInterimResponse, MsgSubmitInterimWork, MsgSubmitInterimWorkResponse, MsgApproveInterim, MsgApproveInterimResponse, MsgAbandonInterim, MsgAbandonInterimResponse, MsgCompleteInterim, MsgCompleteInterimResponse, MsgProposeProject, MsgProposeProjectResponse, MsgApproveProjectBudget, MsgApproveProjectBudgetResponse, MsgCancelProject, MsgCancelProjectResponse, MsgCreateInitiative, MsgCreateInitiativeResponse, MsgAssignInitiative, MsgAssignInitiativeResponse, MsgSubmitInitiativeWork, MsgSubmitInitiativeWorkResponse, MsgApproveInitiative, MsgApproveInitiativeResponse, MsgAbandonInitiative, MsgAbandonInitiativeResponse, MsgCompleteInitiative, MsgCompleteInitiativeResponse, MsgStake, MsgStakeResponse, MsgUnstake, MsgUnstakeResponse, MsgClaimStakingRewards, MsgClaimStakingRewardsResponse, MsgCompoundStakingRewards, MsgCompoundStakingRewardsResponse, MsgCreateChallenge, MsgCreateChallengeResponse, MsgRespondToChallenge, MsgRespondToChallengeResponse, MsgSubmitJurorVote, MsgSubmitJurorVoteResponse, MsgSubmitExpertTestimony, MsgSubmitExpertTestimonyResponse, MsgChallengeContent, MsgChallengeContentResponse, MsgRespondToContentChallenge, MsgRespondToContentChallengeResponse, MsgRegisterZkPublicKey, MsgRegisterZkPublicKeyResponse, MsgCreateTag, MsgCreateTagResponse, MsgReportTag, MsgReportTagResponse, MsgResolveTagReport, MsgResolveTagReportResponse, MsgCreateTagBudget, MsgCreateTagBudgetResponse, MsgAwardFromTagBudget, MsgAwardFromTagBudgetResponse, MsgTopUpTagBudget, MsgTopUpTagBudgetResponse, MsgToggleTagBudget, MsgToggleTagBudgetResponse, MsgWithdrawTagBudget, MsgWithdrawTagBudgetResponse, MsgBondRole, MsgBondRoleResponse, MsgUnbondRole, MsgUnbondRoleResponse, MsgCancelUnbondRole, MsgCancelUnbondRoleResponse, MsgReportMember, MsgReportMemberResponse, MsgCosignMemberReport, MsgCosignMemberReportResponse, MsgResolveMemberReport, MsgResolveMemberReportResponse, MsgDefendMemberReport, MsgDefendMemberReportResponse, MsgAppealGovAction, MsgAppealGovActionResponse, MsgResolveGovActionAppeal, MsgResolveGovActionAppealResponse, MsgCancelInitiative, MsgCancelInitiativeResponse } from "./tx";
|
|
3
3
|
export class MsgClientImpl {
|
|
4
4
|
rpc;
|
|
5
5
|
constructor(rpc) {
|
|
@@ -303,6 +303,12 @@ export class MsgClientImpl {
|
|
|
303
303
|
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "ResolveGovActionAppeal", data);
|
|
304
304
|
return promise.then(data => MsgResolveGovActionAppealResponse.decode(new BinaryReader(data)));
|
|
305
305
|
};
|
|
306
|
+
/* CancelInitiative defines the CancelInitiative RPC. */
|
|
307
|
+
cancelInitiative = async (request) => {
|
|
308
|
+
const data = MsgCancelInitiative.encode(request).finish();
|
|
309
|
+
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "CancelInitiative", data);
|
|
310
|
+
return promise.then(data => MsgCancelInitiativeResponse.decode(new BinaryReader(data)));
|
|
311
|
+
};
|
|
306
312
|
}
|
|
307
313
|
export const createClientImpl = (rpc) => {
|
|
308
314
|
return new MsgClientImpl(rpc);
|
package/package.json
CHANGED
package/sparkdream/bundle.d.ts
CHANGED
|
@@ -12432,9 +12432,9 @@ export declare namespace sparkdream {
|
|
|
12432
12432
|
getInvitation(request: _453.QueryGetInvitationRequest): Promise<_453.QueryGetInvitationResponse>;
|
|
12433
12433
|
listInvitation(request?: _453.QueryAllInvitationRequest): Promise<_453.QueryAllInvitationResponse>;
|
|
12434
12434
|
getProject(request: _453.QueryGetProjectRequest): Promise<_453.QueryGetProjectResponse>;
|
|
12435
|
-
listProject(request
|
|
12435
|
+
listProject(request: _453.QueryAllProjectRequest): Promise<_453.QueryAllProjectResponse>;
|
|
12436
12436
|
getInitiative(request: _453.QueryGetInitiativeRequest): Promise<_453.QueryGetInitiativeResponse>;
|
|
12437
|
-
listInitiative(request
|
|
12437
|
+
listInitiative(request: _453.QueryAllInitiativeRequest): Promise<_453.QueryAllInitiativeResponse>;
|
|
12438
12438
|
getStake(request: _453.QueryGetStakeRequest): Promise<_453.QueryGetStakeResponse>;
|
|
12439
12439
|
listStake(request?: _453.QueryAllStakeRequest): Promise<_453.QueryAllStakeResponse>;
|
|
12440
12440
|
getChallenge(request: _453.QueryGetChallengeRequest): Promise<_453.QueryGetChallengeResponse>;
|
|
@@ -12453,7 +12453,7 @@ export declare namespace sparkdream {
|
|
|
12453
12453
|
projectsByCouncil(request: _453.QueryProjectsByCouncilRequest): Promise<_453.QueryProjectsByCouncilResponse>;
|
|
12454
12454
|
initiativesByProject(request: _453.QueryInitiativesByProjectRequest): Promise<_453.QueryInitiativesByProjectResponse>;
|
|
12455
12455
|
initiativesByAssignee(request: _453.QueryInitiativesByAssigneeRequest): Promise<_453.QueryInitiativesByAssigneeResponse>;
|
|
12456
|
-
availableInitiatives(request
|
|
12456
|
+
availableInitiatives(request: _453.QueryAvailableInitiativesRequest): Promise<_453.QueryAvailableInitiativesResponse>;
|
|
12457
12457
|
stakesByStaker(request: _453.QueryStakesByStakerRequest): Promise<_453.QueryStakesByStakerResponse>;
|
|
12458
12458
|
stakesByTarget(request: _453.QueryStakesByTargetRequest): Promise<_453.QueryStakesByTargetResponse>;
|
|
12459
12459
|
initiativeConviction(request: _453.QueryInitiativeConvictionRequest): Promise<_453.QueryInitiativeConvictionResponse>;
|
|
@@ -12703,6 +12703,10 @@ export declare namespace sparkdream {
|
|
|
12703
12703
|
typeUrl: string;
|
|
12704
12704
|
value: Uint8Array<ArrayBufferLike>;
|
|
12705
12705
|
};
|
|
12706
|
+
cancelInitiative(value: _461.MsgCancelInitiative): {
|
|
12707
|
+
typeUrl: string;
|
|
12708
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
12709
|
+
};
|
|
12706
12710
|
};
|
|
12707
12711
|
withTypeUrl: {
|
|
12708
12712
|
updateParams(value: _461.MsgUpdateParams): {
|
|
@@ -12897,6 +12901,10 @@ export declare namespace sparkdream {
|
|
|
12897
12901
|
typeUrl: string;
|
|
12898
12902
|
value: _461.MsgResolveGovActionAppeal;
|
|
12899
12903
|
};
|
|
12904
|
+
cancelInitiative(value: _461.MsgCancelInitiative): {
|
|
12905
|
+
typeUrl: string;
|
|
12906
|
+
value: _461.MsgCancelInitiative;
|
|
12907
|
+
};
|
|
12900
12908
|
};
|
|
12901
12909
|
fromPartial: {
|
|
12902
12910
|
updateParams(value: _461.MsgUpdateParams): {
|
|
@@ -13091,6 +13099,10 @@ export declare namespace sparkdream {
|
|
|
13091
13099
|
typeUrl: string;
|
|
13092
13100
|
value: _461.MsgResolveGovActionAppeal;
|
|
13093
13101
|
};
|
|
13102
|
+
cancelInitiative(value: _461.MsgCancelInitiative): {
|
|
13103
|
+
typeUrl: string;
|
|
13104
|
+
value: _461.MsgCancelInitiative;
|
|
13105
|
+
};
|
|
13094
13106
|
};
|
|
13095
13107
|
};
|
|
13096
13108
|
AminoConverter: {
|
|
@@ -14582,6 +14594,32 @@ export declare namespace sparkdream {
|
|
|
14582
14594
|
toProto(message: _461.MsgResolveGovActionAppealResponse): Uint8Array;
|
|
14583
14595
|
toProtoMsg(message: _461.MsgResolveGovActionAppealResponse): _461.MsgResolveGovActionAppealResponseProtoMsg;
|
|
14584
14596
|
};
|
|
14597
|
+
MsgCancelInitiative: {
|
|
14598
|
+
typeUrl: string;
|
|
14599
|
+
aminoType: string;
|
|
14600
|
+
encode(message: _461.MsgCancelInitiative, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
14601
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _461.MsgCancelInitiative;
|
|
14602
|
+
fromPartial(object: import("../helpers").DeepPartial<_461.MsgCancelInitiative>): _461.MsgCancelInitiative;
|
|
14603
|
+
fromAmino(object: _461.MsgCancelInitiativeAmino): _461.MsgCancelInitiative;
|
|
14604
|
+
toAmino(message: _461.MsgCancelInitiative): _461.MsgCancelInitiativeAmino;
|
|
14605
|
+
fromAminoMsg(object: _461.MsgCancelInitiativeAminoMsg): _461.MsgCancelInitiative;
|
|
14606
|
+
toAminoMsg(message: _461.MsgCancelInitiative): _461.MsgCancelInitiativeAminoMsg;
|
|
14607
|
+
fromProtoMsg(message: _461.MsgCancelInitiativeProtoMsg): _461.MsgCancelInitiative;
|
|
14608
|
+
toProto(message: _461.MsgCancelInitiative): Uint8Array;
|
|
14609
|
+
toProtoMsg(message: _461.MsgCancelInitiative): _461.MsgCancelInitiativeProtoMsg;
|
|
14610
|
+
};
|
|
14611
|
+
MsgCancelInitiativeResponse: {
|
|
14612
|
+
typeUrl: string;
|
|
14613
|
+
encode(_: _461.MsgCancelInitiativeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
14614
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _461.MsgCancelInitiativeResponse;
|
|
14615
|
+
fromPartial(_: import("../helpers").DeepPartial<_461.MsgCancelInitiativeResponse>): _461.MsgCancelInitiativeResponse;
|
|
14616
|
+
fromAmino(_: _461.MsgCancelInitiativeResponseAmino): _461.MsgCancelInitiativeResponse;
|
|
14617
|
+
toAmino(_: _461.MsgCancelInitiativeResponse): _461.MsgCancelInitiativeResponseAmino;
|
|
14618
|
+
fromAminoMsg(object: _461.MsgCancelInitiativeResponseAminoMsg): _461.MsgCancelInitiativeResponse;
|
|
14619
|
+
fromProtoMsg(message: _461.MsgCancelInitiativeResponseProtoMsg): _461.MsgCancelInitiativeResponse;
|
|
14620
|
+
toProto(message: _461.MsgCancelInitiativeResponse): Uint8Array;
|
|
14621
|
+
toProtoMsg(message: _461.MsgCancelInitiativeResponse): _461.MsgCancelInitiativeResponseProtoMsg;
|
|
14622
|
+
};
|
|
14585
14623
|
Tag: {
|
|
14586
14624
|
typeUrl: string;
|
|
14587
14625
|
encode(message: _460.Tag, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
@@ -25618,9 +25656,9 @@ export declare namespace sparkdream {
|
|
|
25618
25656
|
getInvitation(request: _453.QueryGetInvitationRequest): Promise<_453.QueryGetInvitationResponse>;
|
|
25619
25657
|
listInvitation(request?: _453.QueryAllInvitationRequest): Promise<_453.QueryAllInvitationResponse>;
|
|
25620
25658
|
getProject(request: _453.QueryGetProjectRequest): Promise<_453.QueryGetProjectResponse>;
|
|
25621
|
-
listProject(request
|
|
25659
|
+
listProject(request: _453.QueryAllProjectRequest): Promise<_453.QueryAllProjectResponse>;
|
|
25622
25660
|
getInitiative(request: _453.QueryGetInitiativeRequest): Promise<_453.QueryGetInitiativeResponse>;
|
|
25623
|
-
listInitiative(request
|
|
25661
|
+
listInitiative(request: _453.QueryAllInitiativeRequest): Promise<_453.QueryAllInitiativeResponse>;
|
|
25624
25662
|
getStake(request: _453.QueryGetStakeRequest): Promise<_453.QueryGetStakeResponse>;
|
|
25625
25663
|
listStake(request?: _453.QueryAllStakeRequest): Promise<_453.QueryAllStakeResponse>;
|
|
25626
25664
|
getChallenge(request: _453.QueryGetChallengeRequest): Promise<_453.QueryGetChallengeResponse>;
|
|
@@ -25639,7 +25677,7 @@ export declare namespace sparkdream {
|
|
|
25639
25677
|
projectsByCouncil(request: _453.QueryProjectsByCouncilRequest): Promise<_453.QueryProjectsByCouncilResponse>;
|
|
25640
25678
|
initiativesByProject(request: _453.QueryInitiativesByProjectRequest): Promise<_453.QueryInitiativesByProjectResponse>;
|
|
25641
25679
|
initiativesByAssignee(request: _453.QueryInitiativesByAssigneeRequest): Promise<_453.QueryInitiativesByAssigneeResponse>;
|
|
25642
|
-
availableInitiatives(request
|
|
25680
|
+
availableInitiatives(request: _453.QueryAvailableInitiativesRequest): Promise<_453.QueryAvailableInitiativesResponse>;
|
|
25643
25681
|
stakesByStaker(request: _453.QueryStakesByStakerRequest): Promise<_453.QueryStakesByStakerResponse>;
|
|
25644
25682
|
stakesByTarget(request: _453.QueryStakesByTargetRequest): Promise<_453.QueryStakesByTargetResponse>;
|
|
25645
25683
|
initiativeConviction(request: _453.QueryInitiativeConvictionRequest): Promise<_453.QueryInitiativeConvictionResponse>;
|
|
@@ -5,6 +5,14 @@ export declare enum ChallengeStatus {
|
|
|
5
5
|
CHALLENGE_STATUS_IN_JURY_REVIEW = 1,
|
|
6
6
|
CHALLENGE_STATUS_UPHELD = 2,
|
|
7
7
|
CHALLENGE_STATUS_REJECTED = 3,
|
|
8
|
+
/**
|
|
9
|
+
* CHALLENGE_STATUS_VOIDED - VOIDED terminates a challenge without a verdict when the underlying
|
|
10
|
+
* initiative is discarded out from under it — specifically when the parent
|
|
11
|
+
* project is cancelled. The challenger's stake is refunded in full (no burn,
|
|
12
|
+
* no reward) because the dispute was never adjudicated; any pending jury
|
|
13
|
+
* review is closed INCONCLUSIVE.
|
|
14
|
+
*/
|
|
15
|
+
CHALLENGE_STATUS_VOIDED = 4,
|
|
8
16
|
UNRECOGNIZED = -1
|
|
9
17
|
}
|
|
10
18
|
export declare const ChallengeStatusAmino: typeof ChallengeStatus;
|
|
@@ -11,6 +11,14 @@ var ChallengeStatus;
|
|
|
11
11
|
ChallengeStatus[ChallengeStatus["CHALLENGE_STATUS_IN_JURY_REVIEW"] = 1] = "CHALLENGE_STATUS_IN_JURY_REVIEW";
|
|
12
12
|
ChallengeStatus[ChallengeStatus["CHALLENGE_STATUS_UPHELD"] = 2] = "CHALLENGE_STATUS_UPHELD";
|
|
13
13
|
ChallengeStatus[ChallengeStatus["CHALLENGE_STATUS_REJECTED"] = 3] = "CHALLENGE_STATUS_REJECTED";
|
|
14
|
+
/**
|
|
15
|
+
* CHALLENGE_STATUS_VOIDED - VOIDED terminates a challenge without a verdict when the underlying
|
|
16
|
+
* initiative is discarded out from under it — specifically when the parent
|
|
17
|
+
* project is cancelled. The challenger's stake is refunded in full (no burn,
|
|
18
|
+
* no reward) because the dispute was never adjudicated; any pending jury
|
|
19
|
+
* review is closed INCONCLUSIVE.
|
|
20
|
+
*/
|
|
21
|
+
ChallengeStatus[ChallengeStatus["CHALLENGE_STATUS_VOIDED"] = 4] = "CHALLENGE_STATUS_VOIDED";
|
|
14
22
|
ChallengeStatus[ChallengeStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
15
23
|
})(ChallengeStatus || (exports.ChallengeStatus = ChallengeStatus = {}));
|
|
16
24
|
exports.ChallengeStatusAmino = ChallengeStatus;
|
|
@@ -28,6 +36,9 @@ function challengeStatusFromJSON(object) {
|
|
|
28
36
|
case 3:
|
|
29
37
|
case "CHALLENGE_STATUS_REJECTED":
|
|
30
38
|
return ChallengeStatus.CHALLENGE_STATUS_REJECTED;
|
|
39
|
+
case 4:
|
|
40
|
+
case "CHALLENGE_STATUS_VOIDED":
|
|
41
|
+
return ChallengeStatus.CHALLENGE_STATUS_VOIDED;
|
|
31
42
|
case -1:
|
|
32
43
|
case "UNRECOGNIZED":
|
|
33
44
|
default:
|
|
@@ -44,6 +55,8 @@ function challengeStatusToJSON(object) {
|
|
|
44
55
|
return "CHALLENGE_STATUS_UPHELD";
|
|
45
56
|
case ChallengeStatus.CHALLENGE_STATUS_REJECTED:
|
|
46
57
|
return "CHALLENGE_STATUS_REJECTED";
|
|
58
|
+
case ChallengeStatus.CHALLENGE_STATUS_VOIDED:
|
|
59
|
+
return "CHALLENGE_STATUS_VOIDED";
|
|
47
60
|
case ChallengeStatus.UNRECOGNIZED:
|
|
48
61
|
default:
|
|
49
62
|
return "UNRECOGNIZED";
|
|
@@ -35,6 +35,12 @@ export declare enum InitiativeStatus {
|
|
|
35
35
|
INITIATIVE_STATUS_COMPLETED = 5,
|
|
36
36
|
INITIATIVE_STATUS_REJECTED = 6,
|
|
37
37
|
INITIATIVE_STATUS_ABANDONED = 7,
|
|
38
|
+
/**
|
|
39
|
+
* INITIATIVE_STATUS_CANCELLED - Retired by the project creator (or Operations Committee) while still
|
|
40
|
+
* OPEN and unassigned. Distinct from ABANDONED, which records an assignee
|
|
41
|
+
* walking away from work they had taken on.
|
|
42
|
+
*/
|
|
43
|
+
INITIATIVE_STATUS_CANCELLED = 8,
|
|
38
44
|
UNRECOGNIZED = -1
|
|
39
45
|
}
|
|
40
46
|
export declare const InitiativeStatusAmino: typeof InitiativeStatus;
|
|
@@ -144,6 +144,12 @@ var InitiativeStatus;
|
|
|
144
144
|
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_COMPLETED"] = 5] = "INITIATIVE_STATUS_COMPLETED";
|
|
145
145
|
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_REJECTED"] = 6] = "INITIATIVE_STATUS_REJECTED";
|
|
146
146
|
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_ABANDONED"] = 7] = "INITIATIVE_STATUS_ABANDONED";
|
|
147
|
+
/**
|
|
148
|
+
* INITIATIVE_STATUS_CANCELLED - Retired by the project creator (or Operations Committee) while still
|
|
149
|
+
* OPEN and unassigned. Distinct from ABANDONED, which records an assignee
|
|
150
|
+
* walking away from work they had taken on.
|
|
151
|
+
*/
|
|
152
|
+
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_CANCELLED"] = 8] = "INITIATIVE_STATUS_CANCELLED";
|
|
147
153
|
InitiativeStatus[InitiativeStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
148
154
|
})(InitiativeStatus || (exports.InitiativeStatus = InitiativeStatus = {}));
|
|
149
155
|
exports.InitiativeStatusAmino = InitiativeStatus;
|
|
@@ -173,6 +179,9 @@ function initiativeStatusFromJSON(object) {
|
|
|
173
179
|
case 7:
|
|
174
180
|
case "INITIATIVE_STATUS_ABANDONED":
|
|
175
181
|
return InitiativeStatus.INITIATIVE_STATUS_ABANDONED;
|
|
182
|
+
case 8:
|
|
183
|
+
case "INITIATIVE_STATUS_CANCELLED":
|
|
184
|
+
return InitiativeStatus.INITIATIVE_STATUS_CANCELLED;
|
|
176
185
|
case -1:
|
|
177
186
|
case "UNRECOGNIZED":
|
|
178
187
|
default:
|
|
@@ -197,6 +206,8 @@ function initiativeStatusToJSON(object) {
|
|
|
197
206
|
return "INITIATIVE_STATUS_REJECTED";
|
|
198
207
|
case InitiativeStatus.INITIATIVE_STATUS_ABANDONED:
|
|
199
208
|
return "INITIATIVE_STATUS_ABANDONED";
|
|
209
|
+
case InitiativeStatus.INITIATIVE_STATUS_CANCELLED:
|
|
210
|
+
return "INITIATIVE_STATUS_CANCELLED";
|
|
200
211
|
case InitiativeStatus.UNRECOGNIZED:
|
|
201
212
|
default:
|
|
202
213
|
return "UNRECOGNIZED";
|