@sparkdreamnft/sparkdreamjs 0.0.33 → 0.0.35
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/initiative.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +367 -34
- package/esm/sparkdream/rep/v1/query.lcd.js +28 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +19 -1
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +52 -0
- package/sparkdream/rep/v1/initiative.d.ts +14 -0
- package/sparkdream/rep/v1/initiative.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +202 -6
- package/sparkdream/rep/v1/query.js +370 -37
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +28 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +18 -0
- package/sparkdream/rpc.query.d.ts +2 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QueryProjectsByCouncilResponse = exports.QueryProjectsByCouncilRequest = exports.QueryInterimsByReferenceResponse = exports.QueryInterimsByReferenceRequest = exports.QueryInterimsByTypeResponse = exports.QueryInterimsByTypeRequest = exports.QueryInterimsByAssigneeResponse = exports.QueryInterimsByAssigneeRequest = exports.QueryInvitationsByInviterResponse = exports.QueryInvitationsByInviterRequest = exports.QueryMembersByTrustLevelResponse = exports.QueryMembersByTrustLevelRequest = exports.QueryAllInterimTemplateResponse = exports.QueryAllInterimTemplateRequest = exports.QueryGetInterimTemplateResponse = exports.QueryGetInterimTemplateRequest = exports.QueryAllInterimResponse = exports.QueryAllInterimRequest = exports.QueryGetInterimResponse = exports.QueryGetInterimRequest = exports.QueryAllJuryReviewResponse = exports.QueryAllJuryReviewRequest = exports.QueryGetJuryReviewResponse = exports.QueryGetJuryReviewRequest = exports.QueryAllChallengeResponse = exports.QueryAllChallengeRequest = exports.QueryGetChallengeResponse = exports.QueryGetChallengeRequest = exports.QueryAllStakeResponse = exports.QueryAllStakeRequest = exports.QueryGetStakeResponse = exports.QueryGetStakeRequest = exports.QueryAllInitiativeResponse = exports.QueryAllInitiativeRequest = exports.QueryGetInitiativeResponse = exports.QueryGetInitiativeRequest = exports.QueryAllProjectResponse = exports.QueryAllProjectRequest = exports.QueryGetProjectResponse = exports.QueryGetProjectRequest = exports.QueryAllInvitationResponse = exports.QueryAllInvitationRequest = exports.QueryGetInvitationResponse = exports.QueryGetInvitationRequest = exports.QueryAllMemberResponse = exports.QueryAllMemberRequest = exports.QueryGetMemberResponse = exports.QueryGetMemberRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.QueryAuthorBondsByTypeResponse = exports.QueryAuthorBondsByTypeRequest = exports.QueryRequiredInvitationStakeResponse = exports.QueryRequiredInvitationStakeRequest = exports.QueryMemberStandingResponse = exports.QueryMemberStandingRequest = exports.QueryMemberWarningsResponse = exports.QueryMemberWarningsRequest = exports.QueryMemberReportsResponse = void 0;
|
|
4
|
+
exports.QueryTreasuryStatusRequest = exports.QueryEffectiveApyResponse = exports.QueryEffectiveApyRequest = exports.QueryMintBurnRatioResponse = exports.QueryMintBurnRatioRequest = exports.QueryDreamSupplyStatsResponse = exports.QueryDreamSupplyStatsRequest = exports.QueryContentByInitiativeResponse = exports.ContentInitiativeLinkEntry = exports.QueryContentByInitiativeRequest = exports.QueryContentChallengesByTargetResponse = exports.QueryContentChallengesByTargetRequest = exports.QueryAllContentChallengeResponse = exports.QueryAllContentChallengeRequest = exports.QueryGetContentChallengeResponse = exports.QueryGetContentChallengeRequest = exports.QueryAuthorBondResponse = exports.QueryAuthorBondRequest = exports.QueryContentConvictionResponse = exports.QueryContentConvictionRequest = exports.QueryGetProjectStakeInfoResponse = exports.QueryGetProjectStakeInfoRequest = exports.QueryListTagStakePoolsResponse = exports.QueryListTagStakePoolsRequest = exports.QueryGetTagStakePoolResponse = exports.QueryGetTagStakePoolRequest = exports.QueryGetMemberStakePoolResponse = exports.QueryGetMemberStakePoolRequest = exports.QueryPendingStakeRewardsResponse = exports.QueryPendingStakeRewardsRequest = exports.QueryReputationResponse = exports.QueryReputationRequest = exports.QueryChallengesByInitiativeResponse = exports.QueryChallengesByInitiativeRequest = exports.QueryInitiativeConvictionResponse = exports.QueryInitiativeConvictionRequest = exports.QueryStakesByTargetResponse = exports.QueryStakesByTargetRequest = exports.QueryStakesByStakerResponse = exports.QueryStakesByStakerRequest = exports.QueryAvailableInitiativesResponse = exports.QueryAvailableInitiativesRequest = exports.QueryProjectsByCreatorResponse = exports.QueryProjectsByCreatorRequest = exports.QueryInitiativesByCreatorResponse = exports.QueryInitiativesByCreatorRequest = exports.QueryInitiativesByAssigneeResponse = exports.QueryInitiativesByAssigneeRequest = exports.QueryInitiativesByProjectResponse = exports.QueryInitiativesByProjectRequest = void 0;
|
|
5
|
+
exports.QueryGetJuryParticipationRequest = exports.QueryAllGovActionAppealResponse = exports.QueryAllGovActionAppealRequest = exports.QueryGetGovActionAppealResponse = exports.QueryGetGovActionAppealRequest = exports.QueryAllMemberWarningResponse = exports.QueryAllMemberWarningRequest = exports.QueryGetMemberWarningResponse = exports.QueryGetMemberWarningRequest = exports.QueryAllMemberReportResponse = exports.QueryAllMemberReportRequest = exports.QueryGetMemberReportResponse = exports.QueryGetMemberReportRequest = exports.QueryBondedRoleConfigResponse = exports.QueryBondedRoleConfigRequest = exports.QueryBondedRolesByTypeResponse = exports.QueryBondedRolesByTypeRequest = exports.QueryBondedRoleResponse = exports.QueryBondedRoleRequest = exports.QueryTagBudgetAwardsResponse = exports.QueryTagBudgetAwardsRequest = exports.QueryTagBudgetsResponse = exports.QueryTagBudgetsRequest = exports.QueryTagBudgetByTagResponse = exports.QueryTagBudgetByTagRequest = exports.QueryAllTagBudgetAwardResponse = exports.QueryAllTagBudgetAwardRequest = exports.QueryGetTagBudgetAwardResponse = exports.QueryGetTagBudgetAwardRequest = exports.QueryAllTagBudgetResponse = exports.QueryAllTagBudgetRequest = exports.QueryGetTagBudgetResponse = exports.QueryGetTagBudgetRequest = exports.QueryTagReportsResponse = exports.QueryTagReportsRequest = exports.QueryAllTagReportResponse = exports.QueryAllTagReportRequest = exports.QueryGetTagReportResponse = exports.QueryGetTagReportRequest = exports.QueryTagExistsResponse = exports.QueryTagExistsRequest = exports.QueryAllReservedTagResponse = exports.QueryAllReservedTagRequest = exports.QueryGetReservedTagResponse = exports.QueryGetReservedTagRequest = exports.QueryAllTagResponse = exports.QueryAllTagRequest = exports.QueryGetTagResponse = exports.QueryGetTagRequest = exports.QueryTreasuryStatusResponse = void 0;
|
|
6
|
+
exports.QueryAuthorBondsByTypeResponse = exports.QueryAuthorBondsByTypeRequest = exports.QueryRequiredInvitationStakeResponse = exports.QueryRequiredInvitationStakeRequest = exports.QueryMemberStandingResponse = exports.QueryMemberStandingRequest = exports.QueryMemberWarningsResponse = exports.QueryMemberWarningsRequest = exports.QueryMemberReportsResponse = exports.QueryMemberReportsRequest = exports.QueryAllJuryParticipationResponse = exports.QueryAllJuryParticipationRequest = exports.QueryGetJuryParticipationResponse = void 0;
|
|
7
7
|
//@ts-nocheck
|
|
8
8
|
const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
|
|
9
9
|
const bonded_role_1 = require("./bonded_role");
|
|
@@ -4234,6 +4234,360 @@ exports.QueryInitiativesByAssigneeResponse = {
|
|
|
4234
4234
|
};
|
|
4235
4235
|
}
|
|
4236
4236
|
};
|
|
4237
|
+
function createBaseQueryInitiativesByCreatorRequest() {
|
|
4238
|
+
return {
|
|
4239
|
+
creator: "",
|
|
4240
|
+
pagination: undefined,
|
|
4241
|
+
sortBy: ""
|
|
4242
|
+
};
|
|
4243
|
+
}
|
|
4244
|
+
/**
|
|
4245
|
+
* QueryInitiativesByCreatorRequest defines the QueryInitiativesByCreatorRequest message.
|
|
4246
|
+
* @name QueryInitiativesByCreatorRequest
|
|
4247
|
+
* @package sparkdream.rep.v1
|
|
4248
|
+
* @see proto type: sparkdream.rep.v1.QueryInitiativesByCreatorRequest
|
|
4249
|
+
*/
|
|
4250
|
+
exports.QueryInitiativesByCreatorRequest = {
|
|
4251
|
+
typeUrl: "/sparkdream.rep.v1.QueryInitiativesByCreatorRequest",
|
|
4252
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
4253
|
+
if (message.creator !== "") {
|
|
4254
|
+
writer.uint32(10).string(message.creator);
|
|
4255
|
+
}
|
|
4256
|
+
if (message.pagination !== undefined) {
|
|
4257
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4258
|
+
}
|
|
4259
|
+
if (message.sortBy !== "") {
|
|
4260
|
+
writer.uint32(26).string(message.sortBy);
|
|
4261
|
+
}
|
|
4262
|
+
return writer;
|
|
4263
|
+
},
|
|
4264
|
+
decode(input, length) {
|
|
4265
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
4266
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4267
|
+
const message = createBaseQueryInitiativesByCreatorRequest();
|
|
4268
|
+
while (reader.pos < end) {
|
|
4269
|
+
const tag = reader.uint32();
|
|
4270
|
+
switch (tag >>> 3) {
|
|
4271
|
+
case 1:
|
|
4272
|
+
message.creator = reader.string();
|
|
4273
|
+
break;
|
|
4274
|
+
case 2:
|
|
4275
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
4276
|
+
break;
|
|
4277
|
+
case 3:
|
|
4278
|
+
message.sortBy = reader.string();
|
|
4279
|
+
break;
|
|
4280
|
+
default:
|
|
4281
|
+
reader.skipType(tag & 7);
|
|
4282
|
+
break;
|
|
4283
|
+
}
|
|
4284
|
+
}
|
|
4285
|
+
return message;
|
|
4286
|
+
},
|
|
4287
|
+
fromPartial(object) {
|
|
4288
|
+
const message = createBaseQueryInitiativesByCreatorRequest();
|
|
4289
|
+
message.creator = object.creator ?? "";
|
|
4290
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
|
|
4291
|
+
message.sortBy = object.sortBy ?? "";
|
|
4292
|
+
return message;
|
|
4293
|
+
},
|
|
4294
|
+
fromAmino(object) {
|
|
4295
|
+
const message = createBaseQueryInitiativesByCreatorRequest();
|
|
4296
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4297
|
+
message.creator = object.creator;
|
|
4298
|
+
}
|
|
4299
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4300
|
+
message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
|
|
4301
|
+
}
|
|
4302
|
+
if (object.sort_by !== undefined && object.sort_by !== null) {
|
|
4303
|
+
message.sortBy = object.sort_by;
|
|
4304
|
+
}
|
|
4305
|
+
return message;
|
|
4306
|
+
},
|
|
4307
|
+
toAmino(message) {
|
|
4308
|
+
const obj = {};
|
|
4309
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
4310
|
+
obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
|
|
4311
|
+
obj.sort_by = message.sortBy === "" ? undefined : message.sortBy;
|
|
4312
|
+
return obj;
|
|
4313
|
+
},
|
|
4314
|
+
fromAminoMsg(object) {
|
|
4315
|
+
return exports.QueryInitiativesByCreatorRequest.fromAmino(object.value);
|
|
4316
|
+
},
|
|
4317
|
+
fromProtoMsg(message) {
|
|
4318
|
+
return exports.QueryInitiativesByCreatorRequest.decode(message.value);
|
|
4319
|
+
},
|
|
4320
|
+
toProto(message) {
|
|
4321
|
+
return exports.QueryInitiativesByCreatorRequest.encode(message).finish();
|
|
4322
|
+
},
|
|
4323
|
+
toProtoMsg(message) {
|
|
4324
|
+
return {
|
|
4325
|
+
typeUrl: "/sparkdream.rep.v1.QueryInitiativesByCreatorRequest",
|
|
4326
|
+
value: exports.QueryInitiativesByCreatorRequest.encode(message).finish()
|
|
4327
|
+
};
|
|
4328
|
+
}
|
|
4329
|
+
};
|
|
4330
|
+
function createBaseQueryInitiativesByCreatorResponse() {
|
|
4331
|
+
return {
|
|
4332
|
+
initiatives: [],
|
|
4333
|
+
pagination: undefined
|
|
4334
|
+
};
|
|
4335
|
+
}
|
|
4336
|
+
/**
|
|
4337
|
+
* QueryInitiativesByCreatorResponse defines the QueryInitiativesByCreatorResponse message.
|
|
4338
|
+
* @name QueryInitiativesByCreatorResponse
|
|
4339
|
+
* @package sparkdream.rep.v1
|
|
4340
|
+
* @see proto type: sparkdream.rep.v1.QueryInitiativesByCreatorResponse
|
|
4341
|
+
*/
|
|
4342
|
+
exports.QueryInitiativesByCreatorResponse = {
|
|
4343
|
+
typeUrl: "/sparkdream.rep.v1.QueryInitiativesByCreatorResponse",
|
|
4344
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
4345
|
+
for (const v of message.initiatives) {
|
|
4346
|
+
initiative_1.Initiative.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4347
|
+
}
|
|
4348
|
+
if (message.pagination !== undefined) {
|
|
4349
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4350
|
+
}
|
|
4351
|
+
return writer;
|
|
4352
|
+
},
|
|
4353
|
+
decode(input, length) {
|
|
4354
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
4355
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4356
|
+
const message = createBaseQueryInitiativesByCreatorResponse();
|
|
4357
|
+
while (reader.pos < end) {
|
|
4358
|
+
const tag = reader.uint32();
|
|
4359
|
+
switch (tag >>> 3) {
|
|
4360
|
+
case 1:
|
|
4361
|
+
message.initiatives.push(initiative_1.Initiative.decode(reader, reader.uint32()));
|
|
4362
|
+
break;
|
|
4363
|
+
case 2:
|
|
4364
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
4365
|
+
break;
|
|
4366
|
+
default:
|
|
4367
|
+
reader.skipType(tag & 7);
|
|
4368
|
+
break;
|
|
4369
|
+
}
|
|
4370
|
+
}
|
|
4371
|
+
return message;
|
|
4372
|
+
},
|
|
4373
|
+
fromPartial(object) {
|
|
4374
|
+
const message = createBaseQueryInitiativesByCreatorResponse();
|
|
4375
|
+
message.initiatives = object.initiatives?.map(e => initiative_1.Initiative.fromPartial(e)) || [];
|
|
4376
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
|
|
4377
|
+
return message;
|
|
4378
|
+
},
|
|
4379
|
+
fromAmino(object) {
|
|
4380
|
+
const message = createBaseQueryInitiativesByCreatorResponse();
|
|
4381
|
+
message.initiatives = object.initiatives?.map(e => initiative_1.Initiative.fromAmino(e)) || [];
|
|
4382
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4383
|
+
message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
|
|
4384
|
+
}
|
|
4385
|
+
return message;
|
|
4386
|
+
},
|
|
4387
|
+
toAmino(message) {
|
|
4388
|
+
const obj = {};
|
|
4389
|
+
if (message.initiatives) {
|
|
4390
|
+
obj.initiatives = message.initiatives.map(e => e ? initiative_1.Initiative.toAmino(e) : undefined);
|
|
4391
|
+
}
|
|
4392
|
+
else {
|
|
4393
|
+
obj.initiatives = message.initiatives;
|
|
4394
|
+
}
|
|
4395
|
+
obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
|
|
4396
|
+
return obj;
|
|
4397
|
+
},
|
|
4398
|
+
fromAminoMsg(object) {
|
|
4399
|
+
return exports.QueryInitiativesByCreatorResponse.fromAmino(object.value);
|
|
4400
|
+
},
|
|
4401
|
+
fromProtoMsg(message) {
|
|
4402
|
+
return exports.QueryInitiativesByCreatorResponse.decode(message.value);
|
|
4403
|
+
},
|
|
4404
|
+
toProto(message) {
|
|
4405
|
+
return exports.QueryInitiativesByCreatorResponse.encode(message).finish();
|
|
4406
|
+
},
|
|
4407
|
+
toProtoMsg(message) {
|
|
4408
|
+
return {
|
|
4409
|
+
typeUrl: "/sparkdream.rep.v1.QueryInitiativesByCreatorResponse",
|
|
4410
|
+
value: exports.QueryInitiativesByCreatorResponse.encode(message).finish()
|
|
4411
|
+
};
|
|
4412
|
+
}
|
|
4413
|
+
};
|
|
4414
|
+
function createBaseQueryProjectsByCreatorRequest() {
|
|
4415
|
+
return {
|
|
4416
|
+
creator: "",
|
|
4417
|
+
pagination: undefined,
|
|
4418
|
+
sortBy: ""
|
|
4419
|
+
};
|
|
4420
|
+
}
|
|
4421
|
+
/**
|
|
4422
|
+
* QueryProjectsByCreatorRequest defines the QueryProjectsByCreatorRequest message.
|
|
4423
|
+
* @name QueryProjectsByCreatorRequest
|
|
4424
|
+
* @package sparkdream.rep.v1
|
|
4425
|
+
* @see proto type: sparkdream.rep.v1.QueryProjectsByCreatorRequest
|
|
4426
|
+
*/
|
|
4427
|
+
exports.QueryProjectsByCreatorRequest = {
|
|
4428
|
+
typeUrl: "/sparkdream.rep.v1.QueryProjectsByCreatorRequest",
|
|
4429
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
4430
|
+
if (message.creator !== "") {
|
|
4431
|
+
writer.uint32(10).string(message.creator);
|
|
4432
|
+
}
|
|
4433
|
+
if (message.pagination !== undefined) {
|
|
4434
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4435
|
+
}
|
|
4436
|
+
if (message.sortBy !== "") {
|
|
4437
|
+
writer.uint32(26).string(message.sortBy);
|
|
4438
|
+
}
|
|
4439
|
+
return writer;
|
|
4440
|
+
},
|
|
4441
|
+
decode(input, length) {
|
|
4442
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
4443
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4444
|
+
const message = createBaseQueryProjectsByCreatorRequest();
|
|
4445
|
+
while (reader.pos < end) {
|
|
4446
|
+
const tag = reader.uint32();
|
|
4447
|
+
switch (tag >>> 3) {
|
|
4448
|
+
case 1:
|
|
4449
|
+
message.creator = reader.string();
|
|
4450
|
+
break;
|
|
4451
|
+
case 2:
|
|
4452
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
4453
|
+
break;
|
|
4454
|
+
case 3:
|
|
4455
|
+
message.sortBy = reader.string();
|
|
4456
|
+
break;
|
|
4457
|
+
default:
|
|
4458
|
+
reader.skipType(tag & 7);
|
|
4459
|
+
break;
|
|
4460
|
+
}
|
|
4461
|
+
}
|
|
4462
|
+
return message;
|
|
4463
|
+
},
|
|
4464
|
+
fromPartial(object) {
|
|
4465
|
+
const message = createBaseQueryProjectsByCreatorRequest();
|
|
4466
|
+
message.creator = object.creator ?? "";
|
|
4467
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
|
|
4468
|
+
message.sortBy = object.sortBy ?? "";
|
|
4469
|
+
return message;
|
|
4470
|
+
},
|
|
4471
|
+
fromAmino(object) {
|
|
4472
|
+
const message = createBaseQueryProjectsByCreatorRequest();
|
|
4473
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4474
|
+
message.creator = object.creator;
|
|
4475
|
+
}
|
|
4476
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4477
|
+
message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
|
|
4478
|
+
}
|
|
4479
|
+
if (object.sort_by !== undefined && object.sort_by !== null) {
|
|
4480
|
+
message.sortBy = object.sort_by;
|
|
4481
|
+
}
|
|
4482
|
+
return message;
|
|
4483
|
+
},
|
|
4484
|
+
toAmino(message) {
|
|
4485
|
+
const obj = {};
|
|
4486
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
4487
|
+
obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
|
|
4488
|
+
obj.sort_by = message.sortBy === "" ? undefined : message.sortBy;
|
|
4489
|
+
return obj;
|
|
4490
|
+
},
|
|
4491
|
+
fromAminoMsg(object) {
|
|
4492
|
+
return exports.QueryProjectsByCreatorRequest.fromAmino(object.value);
|
|
4493
|
+
},
|
|
4494
|
+
fromProtoMsg(message) {
|
|
4495
|
+
return exports.QueryProjectsByCreatorRequest.decode(message.value);
|
|
4496
|
+
},
|
|
4497
|
+
toProto(message) {
|
|
4498
|
+
return exports.QueryProjectsByCreatorRequest.encode(message).finish();
|
|
4499
|
+
},
|
|
4500
|
+
toProtoMsg(message) {
|
|
4501
|
+
return {
|
|
4502
|
+
typeUrl: "/sparkdream.rep.v1.QueryProjectsByCreatorRequest",
|
|
4503
|
+
value: exports.QueryProjectsByCreatorRequest.encode(message).finish()
|
|
4504
|
+
};
|
|
4505
|
+
}
|
|
4506
|
+
};
|
|
4507
|
+
function createBaseQueryProjectsByCreatorResponse() {
|
|
4508
|
+
return {
|
|
4509
|
+
projects: [],
|
|
4510
|
+
pagination: undefined
|
|
4511
|
+
};
|
|
4512
|
+
}
|
|
4513
|
+
/**
|
|
4514
|
+
* QueryProjectsByCreatorResponse defines the QueryProjectsByCreatorResponse message.
|
|
4515
|
+
* @name QueryProjectsByCreatorResponse
|
|
4516
|
+
* @package sparkdream.rep.v1
|
|
4517
|
+
* @see proto type: sparkdream.rep.v1.QueryProjectsByCreatorResponse
|
|
4518
|
+
*/
|
|
4519
|
+
exports.QueryProjectsByCreatorResponse = {
|
|
4520
|
+
typeUrl: "/sparkdream.rep.v1.QueryProjectsByCreatorResponse",
|
|
4521
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
4522
|
+
for (const v of message.projects) {
|
|
4523
|
+
project_1.Project.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4524
|
+
}
|
|
4525
|
+
if (message.pagination !== undefined) {
|
|
4526
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4527
|
+
}
|
|
4528
|
+
return writer;
|
|
4529
|
+
},
|
|
4530
|
+
decode(input, length) {
|
|
4531
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
4532
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4533
|
+
const message = createBaseQueryProjectsByCreatorResponse();
|
|
4534
|
+
while (reader.pos < end) {
|
|
4535
|
+
const tag = reader.uint32();
|
|
4536
|
+
switch (tag >>> 3) {
|
|
4537
|
+
case 1:
|
|
4538
|
+
message.projects.push(project_1.Project.decode(reader, reader.uint32()));
|
|
4539
|
+
break;
|
|
4540
|
+
case 2:
|
|
4541
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
4542
|
+
break;
|
|
4543
|
+
default:
|
|
4544
|
+
reader.skipType(tag & 7);
|
|
4545
|
+
break;
|
|
4546
|
+
}
|
|
4547
|
+
}
|
|
4548
|
+
return message;
|
|
4549
|
+
},
|
|
4550
|
+
fromPartial(object) {
|
|
4551
|
+
const message = createBaseQueryProjectsByCreatorResponse();
|
|
4552
|
+
message.projects = object.projects?.map(e => project_1.Project.fromPartial(e)) || [];
|
|
4553
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
|
|
4554
|
+
return message;
|
|
4555
|
+
},
|
|
4556
|
+
fromAmino(object) {
|
|
4557
|
+
const message = createBaseQueryProjectsByCreatorResponse();
|
|
4558
|
+
message.projects = object.projects?.map(e => project_1.Project.fromAmino(e)) || [];
|
|
4559
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4560
|
+
message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
|
|
4561
|
+
}
|
|
4562
|
+
return message;
|
|
4563
|
+
},
|
|
4564
|
+
toAmino(message) {
|
|
4565
|
+
const obj = {};
|
|
4566
|
+
if (message.projects) {
|
|
4567
|
+
obj.projects = message.projects.map(e => e ? project_1.Project.toAmino(e) : undefined);
|
|
4568
|
+
}
|
|
4569
|
+
else {
|
|
4570
|
+
obj.projects = message.projects;
|
|
4571
|
+
}
|
|
4572
|
+
obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
|
|
4573
|
+
return obj;
|
|
4574
|
+
},
|
|
4575
|
+
fromAminoMsg(object) {
|
|
4576
|
+
return exports.QueryProjectsByCreatorResponse.fromAmino(object.value);
|
|
4577
|
+
},
|
|
4578
|
+
fromProtoMsg(message) {
|
|
4579
|
+
return exports.QueryProjectsByCreatorResponse.decode(message.value);
|
|
4580
|
+
},
|
|
4581
|
+
toProto(message) {
|
|
4582
|
+
return exports.QueryProjectsByCreatorResponse.encode(message).finish();
|
|
4583
|
+
},
|
|
4584
|
+
toProtoMsg(message) {
|
|
4585
|
+
return {
|
|
4586
|
+
typeUrl: "/sparkdream.rep.v1.QueryProjectsByCreatorResponse",
|
|
4587
|
+
value: exports.QueryProjectsByCreatorResponse.encode(message).finish()
|
|
4588
|
+
};
|
|
4589
|
+
}
|
|
4590
|
+
};
|
|
4237
4591
|
function createBaseQueryAvailableInitiativesRequest() {
|
|
4238
4592
|
return {
|
|
4239
4593
|
pagination: undefined,
|
|
@@ -4485,9 +4839,7 @@ exports.QueryStakesByStakerRequest = {
|
|
|
4485
4839
|
};
|
|
4486
4840
|
function createBaseQueryStakesByStakerResponse() {
|
|
4487
4841
|
return {
|
|
4488
|
-
|
|
4489
|
-
targetType: BigInt(0),
|
|
4490
|
-
amount: "",
|
|
4842
|
+
stakes: [],
|
|
4491
4843
|
pagination: undefined
|
|
4492
4844
|
};
|
|
4493
4845
|
}
|
|
@@ -4500,17 +4852,11 @@ function createBaseQueryStakesByStakerResponse() {
|
|
|
4500
4852
|
exports.QueryStakesByStakerResponse = {
|
|
4501
4853
|
typeUrl: "/sparkdream.rep.v1.QueryStakesByStakerResponse",
|
|
4502
4854
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
4503
|
-
|
|
4504
|
-
writer.uint32(
|
|
4505
|
-
}
|
|
4506
|
-
if (message.targetType !== BigInt(0)) {
|
|
4507
|
-
writer.uint32(16).uint64(message.targetType);
|
|
4508
|
-
}
|
|
4509
|
-
if (message.amount !== "") {
|
|
4510
|
-
writer.uint32(26).string(message.amount);
|
|
4855
|
+
for (const v of message.stakes) {
|
|
4856
|
+
stake_1.Stake.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4511
4857
|
}
|
|
4512
4858
|
if (message.pagination !== undefined) {
|
|
4513
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(
|
|
4859
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4514
4860
|
}
|
|
4515
4861
|
return writer;
|
|
4516
4862
|
},
|
|
@@ -4522,15 +4868,9 @@ exports.QueryStakesByStakerResponse = {
|
|
|
4522
4868
|
const tag = reader.uint32();
|
|
4523
4869
|
switch (tag >>> 3) {
|
|
4524
4870
|
case 1:
|
|
4525
|
-
message.
|
|
4871
|
+
message.stakes.push(stake_1.Stake.decode(reader, reader.uint32()));
|
|
4526
4872
|
break;
|
|
4527
4873
|
case 2:
|
|
4528
|
-
message.targetType = reader.uint64();
|
|
4529
|
-
break;
|
|
4530
|
-
case 3:
|
|
4531
|
-
message.amount = reader.string();
|
|
4532
|
-
break;
|
|
4533
|
-
case 4:
|
|
4534
4874
|
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
4535
4875
|
break;
|
|
4536
4876
|
default:
|
|
@@ -4542,23 +4882,13 @@ exports.QueryStakesByStakerResponse = {
|
|
|
4542
4882
|
},
|
|
4543
4883
|
fromPartial(object) {
|
|
4544
4884
|
const message = createBaseQueryStakesByStakerResponse();
|
|
4545
|
-
message.
|
|
4546
|
-
message.targetType = object.targetType !== undefined && object.targetType !== null ? BigInt(object.targetType.toString()) : BigInt(0);
|
|
4547
|
-
message.amount = object.amount ?? "";
|
|
4885
|
+
message.stakes = object.stakes?.map(e => stake_1.Stake.fromPartial(e)) || [];
|
|
4548
4886
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
|
|
4549
4887
|
return message;
|
|
4550
4888
|
},
|
|
4551
4889
|
fromAmino(object) {
|
|
4552
4890
|
const message = createBaseQueryStakesByStakerResponse();
|
|
4553
|
-
|
|
4554
|
-
message.stakeId = BigInt(object.stake_id);
|
|
4555
|
-
}
|
|
4556
|
-
if (object.target_type !== undefined && object.target_type !== null) {
|
|
4557
|
-
message.targetType = BigInt(object.target_type);
|
|
4558
|
-
}
|
|
4559
|
-
if (object.amount !== undefined && object.amount !== null) {
|
|
4560
|
-
message.amount = object.amount;
|
|
4561
|
-
}
|
|
4891
|
+
message.stakes = object.stakes?.map(e => stake_1.Stake.fromAmino(e)) || [];
|
|
4562
4892
|
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4563
4893
|
message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
|
|
4564
4894
|
}
|
|
@@ -4566,9 +4896,12 @@ exports.QueryStakesByStakerResponse = {
|
|
|
4566
4896
|
},
|
|
4567
4897
|
toAmino(message) {
|
|
4568
4898
|
const obj = {};
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4899
|
+
if (message.stakes) {
|
|
4900
|
+
obj.stakes = message.stakes.map(e => e ? stake_1.Stake.toAmino(e) : undefined);
|
|
4901
|
+
}
|
|
4902
|
+
else {
|
|
4903
|
+
obj.stakes = message.stakes;
|
|
4904
|
+
}
|
|
4572
4905
|
obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
|
|
4573
4906
|
return obj;
|
|
4574
4907
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
-
import { QueryParamsRequest, QueryParamsResponse, QueryGetMemberRequest, QueryGetMemberResponse, QueryAllMemberRequest, QueryAllMemberResponse, QueryGetInvitationRequest, QueryGetInvitationResponse, QueryAllInvitationRequest, QueryAllInvitationResponse, QueryGetProjectRequest, QueryGetProjectResponse, QueryAllProjectRequest, QueryAllProjectResponse, QueryGetInitiativeRequest, QueryGetInitiativeResponse, QueryAllInitiativeRequest, QueryAllInitiativeResponse, QueryGetStakeRequest, QueryGetStakeResponse, QueryAllStakeRequest, QueryAllStakeResponse, QueryGetChallengeRequest, QueryGetChallengeResponse, QueryAllChallengeRequest, QueryAllChallengeResponse, QueryGetJuryReviewRequest, QueryGetJuryReviewResponse, QueryAllJuryReviewRequest, QueryAllJuryReviewResponse, QueryGetInterimRequest, QueryGetInterimResponse, QueryAllInterimRequest, QueryAllInterimResponse, QueryGetInterimTemplateRequest, QueryGetInterimTemplateResponse, QueryAllInterimTemplateRequest, QueryAllInterimTemplateResponse, QueryMembersByTrustLevelRequest, QueryMembersByTrustLevelResponse, QueryInvitationsByInviterRequest, QueryInvitationsByInviterResponse, QueryInterimsByAssigneeRequest, QueryInterimsByAssigneeResponse, QueryInterimsByTypeRequest, QueryInterimsByTypeResponse, QueryInterimsByReferenceRequest, QueryInterimsByReferenceResponse, QueryProjectsByCouncilRequest, QueryProjectsByCouncilResponse, QueryInitiativesByProjectRequest, QueryInitiativesByProjectResponse, QueryInitiativesByAssigneeRequest, QueryInitiativesByAssigneeResponse, QueryAvailableInitiativesRequest, QueryAvailableInitiativesResponse, QueryStakesByStakerRequest, QueryStakesByStakerResponse, QueryStakesByTargetRequest, QueryStakesByTargetResponse, QueryInitiativeConvictionRequest, QueryInitiativeConvictionResponse, QueryChallengesByInitiativeRequest, QueryChallengesByInitiativeResponse, QueryReputationRequest, QueryReputationResponse, QueryPendingStakeRewardsRequest, QueryPendingStakeRewardsResponse, QueryGetMemberStakePoolRequest, QueryGetMemberStakePoolResponse, QueryGetTagStakePoolRequest, QueryGetTagStakePoolResponse, QueryListTagStakePoolsRequest, QueryListTagStakePoolsResponse, QueryGetProjectStakeInfoRequest, QueryGetProjectStakeInfoResponse, QueryContentConvictionRequest, QueryContentConvictionResponse, QueryAuthorBondRequest, QueryAuthorBondResponse, QueryGetContentChallengeRequest, QueryGetContentChallengeResponse, QueryAllContentChallengeRequest, QueryAllContentChallengeResponse, QueryContentChallengesByTargetRequest, QueryContentChallengesByTargetResponse, QueryContentByInitiativeRequest, QueryContentByInitiativeResponse, QueryDreamSupplyStatsRequest, QueryDreamSupplyStatsResponse, QueryMintBurnRatioRequest, QueryMintBurnRatioResponse, QueryEffectiveApyRequest, QueryEffectiveApyResponse, QueryTreasuryStatusRequest, QueryTreasuryStatusResponse, QueryGetTagRequest, QueryGetTagResponse, QueryAllTagRequest, QueryAllTagResponse, QueryGetReservedTagRequest, QueryGetReservedTagResponse, QueryAllReservedTagRequest, QueryAllReservedTagResponse, QueryTagExistsRequest, QueryTagExistsResponse, QueryGetTagReportRequest, QueryGetTagReportResponse, QueryAllTagReportRequest, QueryAllTagReportResponse, QueryTagReportsRequest, QueryTagReportsResponse, QueryGetTagBudgetRequest, QueryGetTagBudgetResponse, QueryAllTagBudgetRequest, QueryAllTagBudgetResponse, QueryGetTagBudgetAwardRequest, QueryGetTagBudgetAwardResponse, QueryAllTagBudgetAwardRequest, QueryAllTagBudgetAwardResponse, QueryTagBudgetByTagRequest, QueryTagBudgetByTagResponse, QueryTagBudgetsRequest, QueryTagBudgetsResponse, QueryTagBudgetAwardsRequest, QueryTagBudgetAwardsResponse, QueryBondedRoleRequest, QueryBondedRoleResponse, QueryBondedRolesByTypeRequest, QueryBondedRolesByTypeResponse, QueryBondedRoleConfigRequest, QueryBondedRoleConfigResponse, QueryGetMemberReportRequest, QueryGetMemberReportResponse, QueryAllMemberReportRequest, QueryAllMemberReportResponse, QueryGetMemberWarningRequest, QueryGetMemberWarningResponse, QueryAllMemberWarningRequest, QueryAllMemberWarningResponse, QueryGetGovActionAppealRequest, QueryGetGovActionAppealResponse, QueryAllGovActionAppealRequest, QueryAllGovActionAppealResponse, QueryGetJuryParticipationRequest, QueryGetJuryParticipationResponse, QueryAllJuryParticipationRequest, QueryAllJuryParticipationResponse, QueryMemberReportsRequest, QueryMemberReportsResponse, QueryMemberWarningsRequest, QueryMemberWarningsResponse, QueryMemberStandingRequest, QueryMemberStandingResponse, QueryRequiredInvitationStakeRequest, QueryRequiredInvitationStakeResponse, QueryAuthorBondsByTypeRequest, QueryAuthorBondsByTypeResponse } from "./query";
|
|
2
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryGetMemberRequest, QueryGetMemberResponse, QueryAllMemberRequest, QueryAllMemberResponse, QueryGetInvitationRequest, QueryGetInvitationResponse, QueryAllInvitationRequest, QueryAllInvitationResponse, QueryGetProjectRequest, QueryGetProjectResponse, QueryAllProjectRequest, QueryAllProjectResponse, QueryGetInitiativeRequest, QueryGetInitiativeResponse, QueryAllInitiativeRequest, QueryAllInitiativeResponse, QueryGetStakeRequest, QueryGetStakeResponse, QueryAllStakeRequest, QueryAllStakeResponse, QueryGetChallengeRequest, QueryGetChallengeResponse, QueryAllChallengeRequest, QueryAllChallengeResponse, QueryGetJuryReviewRequest, QueryGetJuryReviewResponse, QueryAllJuryReviewRequest, QueryAllJuryReviewResponse, QueryGetInterimRequest, QueryGetInterimResponse, QueryAllInterimRequest, QueryAllInterimResponse, QueryGetInterimTemplateRequest, QueryGetInterimTemplateResponse, QueryAllInterimTemplateRequest, QueryAllInterimTemplateResponse, QueryMembersByTrustLevelRequest, QueryMembersByTrustLevelResponse, QueryInvitationsByInviterRequest, QueryInvitationsByInviterResponse, QueryInterimsByAssigneeRequest, QueryInterimsByAssigneeResponse, QueryInterimsByTypeRequest, QueryInterimsByTypeResponse, QueryInterimsByReferenceRequest, QueryInterimsByReferenceResponse, QueryProjectsByCouncilRequest, QueryProjectsByCouncilResponse, QueryInitiativesByProjectRequest, QueryInitiativesByProjectResponse, QueryInitiativesByAssigneeRequest, QueryInitiativesByAssigneeResponse, QueryInitiativesByCreatorRequest, QueryInitiativesByCreatorResponse, QueryProjectsByCreatorRequest, QueryProjectsByCreatorResponse, QueryAvailableInitiativesRequest, QueryAvailableInitiativesResponse, QueryStakesByStakerRequest, QueryStakesByStakerResponse, QueryStakesByTargetRequest, QueryStakesByTargetResponse, QueryInitiativeConvictionRequest, QueryInitiativeConvictionResponse, QueryChallengesByInitiativeRequest, QueryChallengesByInitiativeResponse, QueryReputationRequest, QueryReputationResponse, QueryPendingStakeRewardsRequest, QueryPendingStakeRewardsResponse, QueryGetMemberStakePoolRequest, QueryGetMemberStakePoolResponse, QueryGetTagStakePoolRequest, QueryGetTagStakePoolResponse, QueryListTagStakePoolsRequest, QueryListTagStakePoolsResponse, QueryGetProjectStakeInfoRequest, QueryGetProjectStakeInfoResponse, QueryContentConvictionRequest, QueryContentConvictionResponse, QueryAuthorBondRequest, QueryAuthorBondResponse, QueryGetContentChallengeRequest, QueryGetContentChallengeResponse, QueryAllContentChallengeRequest, QueryAllContentChallengeResponse, QueryContentChallengesByTargetRequest, QueryContentChallengesByTargetResponse, QueryContentByInitiativeRequest, QueryContentByInitiativeResponse, QueryDreamSupplyStatsRequest, QueryDreamSupplyStatsResponse, QueryMintBurnRatioRequest, QueryMintBurnRatioResponse, QueryEffectiveApyRequest, QueryEffectiveApyResponse, QueryTreasuryStatusRequest, QueryTreasuryStatusResponse, QueryGetTagRequest, QueryGetTagResponse, QueryAllTagRequest, QueryAllTagResponse, QueryGetReservedTagRequest, QueryGetReservedTagResponse, QueryAllReservedTagRequest, QueryAllReservedTagResponse, QueryTagExistsRequest, QueryTagExistsResponse, QueryGetTagReportRequest, QueryGetTagReportResponse, QueryAllTagReportRequest, QueryAllTagReportResponse, QueryTagReportsRequest, QueryTagReportsResponse, QueryGetTagBudgetRequest, QueryGetTagBudgetResponse, QueryAllTagBudgetRequest, QueryAllTagBudgetResponse, QueryGetTagBudgetAwardRequest, QueryGetTagBudgetAwardResponse, QueryAllTagBudgetAwardRequest, QueryAllTagBudgetAwardResponse, QueryTagBudgetByTagRequest, QueryTagBudgetByTagResponse, QueryTagBudgetsRequest, QueryTagBudgetsResponse, QueryTagBudgetAwardsRequest, QueryTagBudgetAwardsResponse, QueryBondedRoleRequest, QueryBondedRoleResponse, QueryBondedRolesByTypeRequest, QueryBondedRolesByTypeResponse, QueryBondedRoleConfigRequest, QueryBondedRoleConfigResponse, QueryGetMemberReportRequest, QueryGetMemberReportResponse, QueryAllMemberReportRequest, QueryAllMemberReportResponse, QueryGetMemberWarningRequest, QueryGetMemberWarningResponse, QueryAllMemberWarningRequest, QueryAllMemberWarningResponse, QueryGetGovActionAppealRequest, QueryGetGovActionAppealResponse, QueryAllGovActionAppealRequest, QueryAllGovActionAppealResponse, QueryGetJuryParticipationRequest, QueryGetJuryParticipationResponse, QueryAllJuryParticipationRequest, QueryAllJuryParticipationResponse, QueryMemberReportsRequest, QueryMemberReportsResponse, QueryMemberWarningsRequest, QueryMemberWarningsResponse, QueryMemberStandingRequest, QueryMemberStandingResponse, QueryRequiredInvitationStakeRequest, QueryRequiredInvitationStakeResponse, QueryAuthorBondsByTypeRequest, QueryAuthorBondsByTypeResponse } from "./query";
|
|
3
3
|
export declare class LCDQueryClient {
|
|
4
4
|
req: LCDClient;
|
|
5
5
|
constructor({ requestClient }: {
|
|
@@ -32,6 +32,8 @@ export declare class LCDQueryClient {
|
|
|
32
32
|
projectsByCouncil: (params: QueryProjectsByCouncilRequest) => Promise<QueryProjectsByCouncilResponse>;
|
|
33
33
|
initiativesByProject: (params: QueryInitiativesByProjectRequest) => Promise<QueryInitiativesByProjectResponse>;
|
|
34
34
|
initiativesByAssignee: (params: QueryInitiativesByAssigneeRequest) => Promise<QueryInitiativesByAssigneeResponse>;
|
|
35
|
+
initiativesByCreator: (params: QueryInitiativesByCreatorRequest) => Promise<QueryInitiativesByCreatorResponse>;
|
|
36
|
+
projectsByCreator: (params: QueryProjectsByCreatorRequest) => Promise<QueryProjectsByCreatorResponse>;
|
|
35
37
|
availableInitiatives: (params: QueryAvailableInitiativesRequest) => Promise<QueryAvailableInitiativesResponse>;
|
|
36
38
|
stakesByStaker: (params: QueryStakesByStakerRequest) => Promise<QueryStakesByStakerResponse>;
|
|
37
39
|
stakesByTarget: (params: QueryStakesByTargetRequest) => Promise<QueryStakesByTargetResponse>;
|
|
@@ -274,6 +274,34 @@ class LCDQueryClient {
|
|
|
274
274
|
const endpoint = `sparkdream/rep/v1/initiatives_by_assignee/${params.assignee}`;
|
|
275
275
|
return await this.req.get(endpoint, options);
|
|
276
276
|
};
|
|
277
|
+
/* InitiativesByCreator Queries a list of InitiativesByCreator items. */
|
|
278
|
+
initiativesByCreator = async (params) => {
|
|
279
|
+
const options = {
|
|
280
|
+
params: {}
|
|
281
|
+
};
|
|
282
|
+
if (typeof params?.pagination !== "undefined") {
|
|
283
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
284
|
+
}
|
|
285
|
+
if (typeof params?.sortBy !== "undefined") {
|
|
286
|
+
options.params.sort_by = params.sortBy;
|
|
287
|
+
}
|
|
288
|
+
const endpoint = `sparkdream/rep/v1/initiatives_by_creator/${params.creator}`;
|
|
289
|
+
return await this.req.get(endpoint, options);
|
|
290
|
+
};
|
|
291
|
+
/* ProjectsByCreator Queries a list of ProjectsByCreator items. */
|
|
292
|
+
projectsByCreator = async (params) => {
|
|
293
|
+
const options = {
|
|
294
|
+
params: {}
|
|
295
|
+
};
|
|
296
|
+
if (typeof params?.pagination !== "undefined") {
|
|
297
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
298
|
+
}
|
|
299
|
+
if (typeof params?.sortBy !== "undefined") {
|
|
300
|
+
options.params.sort_by = params.sortBy;
|
|
301
|
+
}
|
|
302
|
+
const endpoint = `sparkdream/rep/v1/projects_by_creator/${params.creator}`;
|
|
303
|
+
return await this.req.get(endpoint, options);
|
|
304
|
+
};
|
|
277
305
|
/* AvailableInitiatives Queries a list of AvailableInitiatives items. */
|
|
278
306
|
availableInitiatives = async (params) => {
|
|
279
307
|
const options = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryParamsRequest, QueryParamsResponse, QueryGetMemberRequest, QueryGetMemberResponse, QueryAllMemberRequest, QueryAllMemberResponse, QueryGetInvitationRequest, QueryGetInvitationResponse, QueryAllInvitationRequest, QueryAllInvitationResponse, QueryGetProjectRequest, QueryGetProjectResponse, QueryAllProjectRequest, QueryAllProjectResponse, QueryGetInitiativeRequest, QueryGetInitiativeResponse, QueryAllInitiativeRequest, QueryAllInitiativeResponse, QueryGetStakeRequest, QueryGetStakeResponse, QueryAllStakeRequest, QueryAllStakeResponse, QueryGetChallengeRequest, QueryGetChallengeResponse, QueryAllChallengeRequest, QueryAllChallengeResponse, QueryGetJuryReviewRequest, QueryGetJuryReviewResponse, QueryAllJuryReviewRequest, QueryAllJuryReviewResponse, QueryGetInterimRequest, QueryGetInterimResponse, QueryAllInterimRequest, QueryAllInterimResponse, QueryGetInterimTemplateRequest, QueryGetInterimTemplateResponse, QueryAllInterimTemplateRequest, QueryAllInterimTemplateResponse, QueryMembersByTrustLevelRequest, QueryMembersByTrustLevelResponse, QueryInvitationsByInviterRequest, QueryInvitationsByInviterResponse, QueryInterimsByAssigneeRequest, QueryInterimsByAssigneeResponse, QueryInterimsByTypeRequest, QueryInterimsByTypeResponse, QueryInterimsByReferenceRequest, QueryInterimsByReferenceResponse, QueryProjectsByCouncilRequest, QueryProjectsByCouncilResponse, QueryInitiativesByProjectRequest, QueryInitiativesByProjectResponse, QueryInitiativesByAssigneeRequest, QueryInitiativesByAssigneeResponse, QueryAvailableInitiativesRequest, QueryAvailableInitiativesResponse, QueryStakesByStakerRequest, QueryStakesByStakerResponse, QueryStakesByTargetRequest, QueryStakesByTargetResponse, QueryInitiativeConvictionRequest, QueryInitiativeConvictionResponse, QueryChallengesByInitiativeRequest, QueryChallengesByInitiativeResponse, QueryReputationRequest, QueryReputationResponse, QueryPendingStakeRewardsRequest, QueryPendingStakeRewardsResponse, QueryGetMemberStakePoolRequest, QueryGetMemberStakePoolResponse, QueryGetTagStakePoolRequest, QueryGetTagStakePoolResponse, QueryListTagStakePoolsRequest, QueryListTagStakePoolsResponse, QueryGetProjectStakeInfoRequest, QueryGetProjectStakeInfoResponse, QueryContentConvictionRequest, QueryContentConvictionResponse, QueryAuthorBondRequest, QueryAuthorBondResponse, QueryGetContentChallengeRequest, QueryGetContentChallengeResponse, QueryAllContentChallengeRequest, QueryAllContentChallengeResponse, QueryContentChallengesByTargetRequest, QueryContentChallengesByTargetResponse, QueryContentByInitiativeRequest, QueryContentByInitiativeResponse, QueryDreamSupplyStatsRequest, QueryDreamSupplyStatsResponse, QueryMintBurnRatioRequest, QueryMintBurnRatioResponse, QueryEffectiveApyRequest, QueryEffectiveApyResponse, QueryTreasuryStatusRequest, QueryTreasuryStatusResponse, QueryGetTagRequest, QueryGetTagResponse, QueryAllTagRequest, QueryAllTagResponse, QueryGetReservedTagRequest, QueryGetReservedTagResponse, QueryAllReservedTagRequest, QueryAllReservedTagResponse, QueryTagExistsRequest, QueryTagExistsResponse, QueryGetTagReportRequest, QueryGetTagReportResponse, QueryAllTagReportRequest, QueryAllTagReportResponse, QueryTagReportsRequest, QueryTagReportsResponse, QueryGetTagBudgetRequest, QueryGetTagBudgetResponse, QueryAllTagBudgetRequest, QueryAllTagBudgetResponse, QueryGetTagBudgetAwardRequest, QueryGetTagBudgetAwardResponse, QueryAllTagBudgetAwardRequest, QueryAllTagBudgetAwardResponse, QueryTagBudgetByTagRequest, QueryTagBudgetByTagResponse, QueryTagBudgetsRequest, QueryTagBudgetsResponse, QueryTagBudgetAwardsRequest, QueryTagBudgetAwardsResponse, QueryBondedRoleRequest, QueryBondedRoleResponse, QueryBondedRolesByTypeRequest, QueryBondedRolesByTypeResponse, QueryBondedRoleConfigRequest, QueryBondedRoleConfigResponse, QueryGetMemberReportRequest, QueryGetMemberReportResponse, QueryAllMemberReportRequest, QueryAllMemberReportResponse, QueryGetMemberWarningRequest, QueryGetMemberWarningResponse, QueryAllMemberWarningRequest, QueryAllMemberWarningResponse, QueryGetGovActionAppealRequest, QueryGetGovActionAppealResponse, QueryAllGovActionAppealRequest, QueryAllGovActionAppealResponse, QueryGetJuryParticipationRequest, QueryGetJuryParticipationResponse, QueryAllJuryParticipationRequest, QueryAllJuryParticipationResponse, QueryMemberReportsRequest, QueryMemberReportsResponse, QueryMemberWarningsRequest, QueryMemberWarningsResponse, QueryMemberStandingRequest, QueryMemberStandingResponse, QueryRequiredInvitationStakeRequest, QueryRequiredInvitationStakeResponse, QueryAuthorBondsByTypeRequest, QueryAuthorBondsByTypeResponse } from "./query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryGetMemberRequest, QueryGetMemberResponse, QueryAllMemberRequest, QueryAllMemberResponse, QueryGetInvitationRequest, QueryGetInvitationResponse, QueryAllInvitationRequest, QueryAllInvitationResponse, QueryGetProjectRequest, QueryGetProjectResponse, QueryAllProjectRequest, QueryAllProjectResponse, QueryGetInitiativeRequest, QueryGetInitiativeResponse, QueryAllInitiativeRequest, QueryAllInitiativeResponse, QueryGetStakeRequest, QueryGetStakeResponse, QueryAllStakeRequest, QueryAllStakeResponse, QueryGetChallengeRequest, QueryGetChallengeResponse, QueryAllChallengeRequest, QueryAllChallengeResponse, QueryGetJuryReviewRequest, QueryGetJuryReviewResponse, QueryAllJuryReviewRequest, QueryAllJuryReviewResponse, QueryGetInterimRequest, QueryGetInterimResponse, QueryAllInterimRequest, QueryAllInterimResponse, QueryGetInterimTemplateRequest, QueryGetInterimTemplateResponse, QueryAllInterimTemplateRequest, QueryAllInterimTemplateResponse, QueryMembersByTrustLevelRequest, QueryMembersByTrustLevelResponse, QueryInvitationsByInviterRequest, QueryInvitationsByInviterResponse, QueryInterimsByAssigneeRequest, QueryInterimsByAssigneeResponse, QueryInterimsByTypeRequest, QueryInterimsByTypeResponse, QueryInterimsByReferenceRequest, QueryInterimsByReferenceResponse, QueryProjectsByCouncilRequest, QueryProjectsByCouncilResponse, QueryInitiativesByProjectRequest, QueryInitiativesByProjectResponse, QueryInitiativesByAssigneeRequest, QueryInitiativesByAssigneeResponse, QueryInitiativesByCreatorRequest, QueryInitiativesByCreatorResponse, QueryProjectsByCreatorRequest, QueryProjectsByCreatorResponse, QueryAvailableInitiativesRequest, QueryAvailableInitiativesResponse, QueryStakesByStakerRequest, QueryStakesByStakerResponse, QueryStakesByTargetRequest, QueryStakesByTargetResponse, QueryInitiativeConvictionRequest, QueryInitiativeConvictionResponse, QueryChallengesByInitiativeRequest, QueryChallengesByInitiativeResponse, QueryReputationRequest, QueryReputationResponse, QueryPendingStakeRewardsRequest, QueryPendingStakeRewardsResponse, QueryGetMemberStakePoolRequest, QueryGetMemberStakePoolResponse, QueryGetTagStakePoolRequest, QueryGetTagStakePoolResponse, QueryListTagStakePoolsRequest, QueryListTagStakePoolsResponse, QueryGetProjectStakeInfoRequest, QueryGetProjectStakeInfoResponse, QueryContentConvictionRequest, QueryContentConvictionResponse, QueryAuthorBondRequest, QueryAuthorBondResponse, QueryGetContentChallengeRequest, QueryGetContentChallengeResponse, QueryAllContentChallengeRequest, QueryAllContentChallengeResponse, QueryContentChallengesByTargetRequest, QueryContentChallengesByTargetResponse, QueryContentByInitiativeRequest, QueryContentByInitiativeResponse, QueryDreamSupplyStatsRequest, QueryDreamSupplyStatsResponse, QueryMintBurnRatioRequest, QueryMintBurnRatioResponse, QueryEffectiveApyRequest, QueryEffectiveApyResponse, QueryTreasuryStatusRequest, QueryTreasuryStatusResponse, QueryGetTagRequest, QueryGetTagResponse, QueryAllTagRequest, QueryAllTagResponse, QueryGetReservedTagRequest, QueryGetReservedTagResponse, QueryAllReservedTagRequest, QueryAllReservedTagResponse, QueryTagExistsRequest, QueryTagExistsResponse, QueryGetTagReportRequest, QueryGetTagReportResponse, QueryAllTagReportRequest, QueryAllTagReportResponse, QueryTagReportsRequest, QueryTagReportsResponse, QueryGetTagBudgetRequest, QueryGetTagBudgetResponse, QueryAllTagBudgetRequest, QueryAllTagBudgetResponse, QueryGetTagBudgetAwardRequest, QueryGetTagBudgetAwardResponse, QueryAllTagBudgetAwardRequest, QueryAllTagBudgetAwardResponse, QueryTagBudgetByTagRequest, QueryTagBudgetByTagResponse, QueryTagBudgetsRequest, QueryTagBudgetsResponse, QueryTagBudgetAwardsRequest, QueryTagBudgetAwardsResponse, QueryBondedRoleRequest, QueryBondedRoleResponse, QueryBondedRolesByTypeRequest, QueryBondedRolesByTypeResponse, QueryBondedRoleConfigRequest, QueryBondedRoleConfigResponse, QueryGetMemberReportRequest, QueryGetMemberReportResponse, QueryAllMemberReportRequest, QueryAllMemberReportResponse, QueryGetMemberWarningRequest, QueryGetMemberWarningResponse, QueryAllMemberWarningRequest, QueryAllMemberWarningResponse, QueryGetGovActionAppealRequest, QueryGetGovActionAppealResponse, QueryAllGovActionAppealRequest, QueryAllGovActionAppealResponse, QueryGetJuryParticipationRequest, QueryGetJuryParticipationResponse, QueryAllJuryParticipationRequest, QueryAllJuryParticipationResponse, QueryMemberReportsRequest, QueryMemberReportsResponse, QueryMemberWarningsRequest, QueryMemberWarningsResponse, QueryMemberStandingRequest, QueryMemberStandingResponse, QueryRequiredInvitationStakeRequest, QueryRequiredInvitationStakeResponse, QueryAuthorBondsByTypeRequest, QueryAuthorBondsByTypeResponse } from "./query";
|
|
4
4
|
/** Query defines the gRPC querier service. */
|
|
5
5
|
export interface Query {
|
|
6
6
|
/** Parameters queries the parameters of the module. */
|
|
@@ -57,6 +57,10 @@ export interface Query {
|
|
|
57
57
|
initiativesByProject(request: QueryInitiativesByProjectRequest): Promise<QueryInitiativesByProjectResponse>;
|
|
58
58
|
/** InitiativesByAssignee Queries a list of InitiativesByAssignee items. */
|
|
59
59
|
initiativesByAssignee(request: QueryInitiativesByAssigneeRequest): Promise<QueryInitiativesByAssigneeResponse>;
|
|
60
|
+
/** InitiativesByCreator Queries a list of InitiativesByCreator items. */
|
|
61
|
+
initiativesByCreator(request: QueryInitiativesByCreatorRequest): Promise<QueryInitiativesByCreatorResponse>;
|
|
62
|
+
/** ProjectsByCreator Queries a list of ProjectsByCreator items. */
|
|
63
|
+
projectsByCreator(request: QueryProjectsByCreatorRequest): Promise<QueryProjectsByCreatorResponse>;
|
|
60
64
|
/** AvailableInitiatives Queries a list of AvailableInitiatives items. */
|
|
61
65
|
availableInitiatives(request: QueryAvailableInitiativesRequest): Promise<QueryAvailableInitiativesResponse>;
|
|
62
66
|
/** StakesByStaker Queries a list of StakesByStaker items. */
|
|
@@ -195,6 +199,8 @@ export declare class QueryClientImpl implements Query {
|
|
|
195
199
|
projectsByCouncil: (request: QueryProjectsByCouncilRequest) => Promise<QueryProjectsByCouncilResponse>;
|
|
196
200
|
initiativesByProject: (request: QueryInitiativesByProjectRequest) => Promise<QueryInitiativesByProjectResponse>;
|
|
197
201
|
initiativesByAssignee: (request: QueryInitiativesByAssigneeRequest) => Promise<QueryInitiativesByAssigneeResponse>;
|
|
202
|
+
initiativesByCreator: (request: QueryInitiativesByCreatorRequest) => Promise<QueryInitiativesByCreatorResponse>;
|
|
203
|
+
projectsByCreator: (request: QueryProjectsByCreatorRequest) => Promise<QueryProjectsByCreatorResponse>;
|
|
198
204
|
availableInitiatives: (request: QueryAvailableInitiativesRequest) => Promise<QueryAvailableInitiativesResponse>;
|
|
199
205
|
stakesByStaker: (request: QueryStakesByStakerRequest) => Promise<QueryStakesByStakerResponse>;
|
|
200
206
|
stakesByTarget: (request: QueryStakesByTargetRequest) => Promise<QueryStakesByTargetResponse>;
|
|
@@ -276,6 +282,8 @@ export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
|
276
282
|
projectsByCouncil(request: QueryProjectsByCouncilRequest): Promise<QueryProjectsByCouncilResponse>;
|
|
277
283
|
initiativesByProject(request: QueryInitiativesByProjectRequest): Promise<QueryInitiativesByProjectResponse>;
|
|
278
284
|
initiativesByAssignee(request: QueryInitiativesByAssigneeRequest): Promise<QueryInitiativesByAssigneeResponse>;
|
|
285
|
+
initiativesByCreator(request: QueryInitiativesByCreatorRequest): Promise<QueryInitiativesByCreatorResponse>;
|
|
286
|
+
projectsByCreator(request: QueryProjectsByCreatorRequest): Promise<QueryProjectsByCreatorResponse>;
|
|
279
287
|
availableInitiatives(request: QueryAvailableInitiativesRequest): Promise<QueryAvailableInitiativesResponse>;
|
|
280
288
|
stakesByStaker(request: QueryStakesByStakerRequest): Promise<QueryStakesByStakerResponse>;
|
|
281
289
|
stakesByTarget(request: QueryStakesByTargetRequest): Promise<QueryStakesByTargetResponse>;
|
|
@@ -185,6 +185,18 @@ class QueryClientImpl {
|
|
|
185
185
|
const promise = this.rpc.request("sparkdream.rep.v1.Query", "InitiativesByAssignee", data);
|
|
186
186
|
return promise.then(data => query_1.QueryInitiativesByAssigneeResponse.decode(new binary_1.BinaryReader(data)));
|
|
187
187
|
};
|
|
188
|
+
/* InitiativesByCreator Queries a list of InitiativesByCreator items. */
|
|
189
|
+
initiativesByCreator = async (request) => {
|
|
190
|
+
const data = query_1.QueryInitiativesByCreatorRequest.encode(request).finish();
|
|
191
|
+
const promise = this.rpc.request("sparkdream.rep.v1.Query", "InitiativesByCreator", data);
|
|
192
|
+
return promise.then(data => query_1.QueryInitiativesByCreatorResponse.decode(new binary_1.BinaryReader(data)));
|
|
193
|
+
};
|
|
194
|
+
/* ProjectsByCreator Queries a list of ProjectsByCreator items. */
|
|
195
|
+
projectsByCreator = async (request) => {
|
|
196
|
+
const data = query_1.QueryProjectsByCreatorRequest.encode(request).finish();
|
|
197
|
+
const promise = this.rpc.request("sparkdream.rep.v1.Query", "ProjectsByCreator", data);
|
|
198
|
+
return promise.then(data => query_1.QueryProjectsByCreatorResponse.decode(new binary_1.BinaryReader(data)));
|
|
199
|
+
};
|
|
188
200
|
/* AvailableInitiatives Queries a list of AvailableInitiatives items. */
|
|
189
201
|
availableInitiatives = async (request) => {
|
|
190
202
|
const data = query_1.QueryAvailableInitiativesRequest.encode(request).finish();
|
|
@@ -613,6 +625,12 @@ const createRpcQueryExtension = (base) => {
|
|
|
613
625
|
initiativesByAssignee(request) {
|
|
614
626
|
return queryService.initiativesByAssignee(request);
|
|
615
627
|
},
|
|
628
|
+
initiativesByCreator(request) {
|
|
629
|
+
return queryService.initiativesByCreator(request);
|
|
630
|
+
},
|
|
631
|
+
projectsByCreator(request) {
|
|
632
|
+
return queryService.projectsByCreator(request);
|
|
633
|
+
},
|
|
616
634
|
availableInitiatives(request) {
|
|
617
635
|
return queryService.availableInitiatives(request);
|
|
618
636
|
},
|
|
@@ -403,6 +403,8 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: {
|
|
|
403
403
|
projectsByCouncil(request: import("./rep/v1/query").QueryProjectsByCouncilRequest): Promise<import("./rep/v1/query").QueryProjectsByCouncilResponse>;
|
|
404
404
|
initiativesByProject(request: import("./rep/v1/query").QueryInitiativesByProjectRequest): Promise<import("./rep/v1/query").QueryInitiativesByProjectResponse>;
|
|
405
405
|
initiativesByAssignee(request: import("./rep/v1/query").QueryInitiativesByAssigneeRequest): Promise<import("./rep/v1/query").QueryInitiativesByAssigneeResponse>;
|
|
406
|
+
initiativesByCreator(request: import("./rep/v1/query").QueryInitiativesByCreatorRequest): Promise<import("./rep/v1/query").QueryInitiativesByCreatorResponse>;
|
|
407
|
+
projectsByCreator(request: import("./rep/v1/query").QueryProjectsByCreatorRequest): Promise<import("./rep/v1/query").QueryProjectsByCreatorResponse>;
|
|
406
408
|
availableInitiatives(request: import("./rep/v1/query").QueryAvailableInitiativesRequest): Promise<import("./rep/v1/query").QueryAvailableInitiativesResponse>;
|
|
407
409
|
stakesByStaker(request: import("./rep/v1/query").QueryStakesByStakerRequest): Promise<import("./rep/v1/query").QueryStakesByStakerResponse>;
|
|
408
410
|
stakesByTarget(request: import("./rep/v1/query").QueryStakesByTargetRequest): Promise<import("./rep/v1/query").QueryStakesByTargetResponse>;
|