@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.
@@ -231,7 +231,8 @@ function createBaseInitiative() {
231
231
  createdAt: BigInt(0),
232
232
  completedAt: BigInt(0),
233
233
  propagatedConviction: "",
234
- selfAssignBond: ""
234
+ selfAssignBond: "",
235
+ creator: ""
235
236
  };
236
237
  }
237
238
  /**
@@ -321,6 +322,9 @@ export const Initiative = {
321
322
  if (message.selfAssignBond !== "") {
322
323
  writer.uint32(210).string(message.selfAssignBond);
323
324
  }
325
+ if (message.creator !== "") {
326
+ writer.uint32(218).string(message.creator);
327
+ }
324
328
  return writer;
325
329
  },
326
330
  decode(input, length) {
@@ -408,6 +412,9 @@ export const Initiative = {
408
412
  case 26:
409
413
  message.selfAssignBond = reader.string();
410
414
  break;
415
+ case 27:
416
+ message.creator = reader.string();
417
+ break;
411
418
  default:
412
419
  reader.skipType(tag & 7);
413
420
  break;
@@ -443,6 +450,7 @@ export const Initiative = {
443
450
  message.completedAt = object.completedAt !== undefined && object.completedAt !== null ? BigInt(object.completedAt.toString()) : BigInt(0);
444
451
  message.propagatedConviction = object.propagatedConviction ?? "";
445
452
  message.selfAssignBond = object.selfAssignBond ?? "";
453
+ message.creator = object.creator ?? "";
446
454
  return message;
447
455
  },
448
456
  fromAmino(object) {
@@ -521,6 +529,9 @@ export const Initiative = {
521
529
  if (object.self_assign_bond !== undefined && object.self_assign_bond !== null) {
522
530
  message.selfAssignBond = object.self_assign_bond;
523
531
  }
532
+ if (object.creator !== undefined && object.creator !== null) {
533
+ message.creator = object.creator;
534
+ }
524
535
  return message;
525
536
  },
526
537
  toAmino(message) {
@@ -561,6 +572,7 @@ export const Initiative = {
561
572
  obj.completed_at = message.completedAt !== BigInt(0) ? message.completedAt?.toString() : undefined;
562
573
  obj.propagated_conviction = message.propagatedConviction === "" ? undefined : message.propagatedConviction;
563
574
  obj.self_assign_bond = message.selfAssignBond === "" ? undefined : message.selfAssignBond;
575
+ obj.creator = message.creator === "" ? undefined : message.creator;
564
576
  return obj;
565
577
  },
566
578
  fromAminoMsg(object) {
@@ -4228,6 +4228,360 @@ export const QueryInitiativesByAssigneeResponse = {
4228
4228
  };
4229
4229
  }
4230
4230
  };
4231
+ function createBaseQueryInitiativesByCreatorRequest() {
4232
+ return {
4233
+ creator: "",
4234
+ pagination: undefined,
4235
+ sortBy: ""
4236
+ };
4237
+ }
4238
+ /**
4239
+ * QueryInitiativesByCreatorRequest defines the QueryInitiativesByCreatorRequest message.
4240
+ * @name QueryInitiativesByCreatorRequest
4241
+ * @package sparkdream.rep.v1
4242
+ * @see proto type: sparkdream.rep.v1.QueryInitiativesByCreatorRequest
4243
+ */
4244
+ export const QueryInitiativesByCreatorRequest = {
4245
+ typeUrl: "/sparkdream.rep.v1.QueryInitiativesByCreatorRequest",
4246
+ encode(message, writer = BinaryWriter.create()) {
4247
+ if (message.creator !== "") {
4248
+ writer.uint32(10).string(message.creator);
4249
+ }
4250
+ if (message.pagination !== undefined) {
4251
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
4252
+ }
4253
+ if (message.sortBy !== "") {
4254
+ writer.uint32(26).string(message.sortBy);
4255
+ }
4256
+ return writer;
4257
+ },
4258
+ decode(input, length) {
4259
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4260
+ let end = length === undefined ? reader.len : reader.pos + length;
4261
+ const message = createBaseQueryInitiativesByCreatorRequest();
4262
+ while (reader.pos < end) {
4263
+ const tag = reader.uint32();
4264
+ switch (tag >>> 3) {
4265
+ case 1:
4266
+ message.creator = reader.string();
4267
+ break;
4268
+ case 2:
4269
+ message.pagination = PageRequest.decode(reader, reader.uint32());
4270
+ break;
4271
+ case 3:
4272
+ message.sortBy = reader.string();
4273
+ break;
4274
+ default:
4275
+ reader.skipType(tag & 7);
4276
+ break;
4277
+ }
4278
+ }
4279
+ return message;
4280
+ },
4281
+ fromPartial(object) {
4282
+ const message = createBaseQueryInitiativesByCreatorRequest();
4283
+ message.creator = object.creator ?? "";
4284
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
4285
+ message.sortBy = object.sortBy ?? "";
4286
+ return message;
4287
+ },
4288
+ fromAmino(object) {
4289
+ const message = createBaseQueryInitiativesByCreatorRequest();
4290
+ if (object.creator !== undefined && object.creator !== null) {
4291
+ message.creator = object.creator;
4292
+ }
4293
+ if (object.pagination !== undefined && object.pagination !== null) {
4294
+ message.pagination = PageRequest.fromAmino(object.pagination);
4295
+ }
4296
+ if (object.sort_by !== undefined && object.sort_by !== null) {
4297
+ message.sortBy = object.sort_by;
4298
+ }
4299
+ return message;
4300
+ },
4301
+ toAmino(message) {
4302
+ const obj = {};
4303
+ obj.creator = message.creator === "" ? undefined : message.creator;
4304
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
4305
+ obj.sort_by = message.sortBy === "" ? undefined : message.sortBy;
4306
+ return obj;
4307
+ },
4308
+ fromAminoMsg(object) {
4309
+ return QueryInitiativesByCreatorRequest.fromAmino(object.value);
4310
+ },
4311
+ fromProtoMsg(message) {
4312
+ return QueryInitiativesByCreatorRequest.decode(message.value);
4313
+ },
4314
+ toProto(message) {
4315
+ return QueryInitiativesByCreatorRequest.encode(message).finish();
4316
+ },
4317
+ toProtoMsg(message) {
4318
+ return {
4319
+ typeUrl: "/sparkdream.rep.v1.QueryInitiativesByCreatorRequest",
4320
+ value: QueryInitiativesByCreatorRequest.encode(message).finish()
4321
+ };
4322
+ }
4323
+ };
4324
+ function createBaseQueryInitiativesByCreatorResponse() {
4325
+ return {
4326
+ initiatives: [],
4327
+ pagination: undefined
4328
+ };
4329
+ }
4330
+ /**
4331
+ * QueryInitiativesByCreatorResponse defines the QueryInitiativesByCreatorResponse message.
4332
+ * @name QueryInitiativesByCreatorResponse
4333
+ * @package sparkdream.rep.v1
4334
+ * @see proto type: sparkdream.rep.v1.QueryInitiativesByCreatorResponse
4335
+ */
4336
+ export const QueryInitiativesByCreatorResponse = {
4337
+ typeUrl: "/sparkdream.rep.v1.QueryInitiativesByCreatorResponse",
4338
+ encode(message, writer = BinaryWriter.create()) {
4339
+ for (const v of message.initiatives) {
4340
+ Initiative.encode(v, writer.uint32(10).fork()).ldelim();
4341
+ }
4342
+ if (message.pagination !== undefined) {
4343
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
4344
+ }
4345
+ return writer;
4346
+ },
4347
+ decode(input, length) {
4348
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4349
+ let end = length === undefined ? reader.len : reader.pos + length;
4350
+ const message = createBaseQueryInitiativesByCreatorResponse();
4351
+ while (reader.pos < end) {
4352
+ const tag = reader.uint32();
4353
+ switch (tag >>> 3) {
4354
+ case 1:
4355
+ message.initiatives.push(Initiative.decode(reader, reader.uint32()));
4356
+ break;
4357
+ case 2:
4358
+ message.pagination = PageResponse.decode(reader, reader.uint32());
4359
+ break;
4360
+ default:
4361
+ reader.skipType(tag & 7);
4362
+ break;
4363
+ }
4364
+ }
4365
+ return message;
4366
+ },
4367
+ fromPartial(object) {
4368
+ const message = createBaseQueryInitiativesByCreatorResponse();
4369
+ message.initiatives = object.initiatives?.map(e => Initiative.fromPartial(e)) || [];
4370
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
4371
+ return message;
4372
+ },
4373
+ fromAmino(object) {
4374
+ const message = createBaseQueryInitiativesByCreatorResponse();
4375
+ message.initiatives = object.initiatives?.map(e => Initiative.fromAmino(e)) || [];
4376
+ if (object.pagination !== undefined && object.pagination !== null) {
4377
+ message.pagination = PageResponse.fromAmino(object.pagination);
4378
+ }
4379
+ return message;
4380
+ },
4381
+ toAmino(message) {
4382
+ const obj = {};
4383
+ if (message.initiatives) {
4384
+ obj.initiatives = message.initiatives.map(e => e ? Initiative.toAmino(e) : undefined);
4385
+ }
4386
+ else {
4387
+ obj.initiatives = message.initiatives;
4388
+ }
4389
+ obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
4390
+ return obj;
4391
+ },
4392
+ fromAminoMsg(object) {
4393
+ return QueryInitiativesByCreatorResponse.fromAmino(object.value);
4394
+ },
4395
+ fromProtoMsg(message) {
4396
+ return QueryInitiativesByCreatorResponse.decode(message.value);
4397
+ },
4398
+ toProto(message) {
4399
+ return QueryInitiativesByCreatorResponse.encode(message).finish();
4400
+ },
4401
+ toProtoMsg(message) {
4402
+ return {
4403
+ typeUrl: "/sparkdream.rep.v1.QueryInitiativesByCreatorResponse",
4404
+ value: QueryInitiativesByCreatorResponse.encode(message).finish()
4405
+ };
4406
+ }
4407
+ };
4408
+ function createBaseQueryProjectsByCreatorRequest() {
4409
+ return {
4410
+ creator: "",
4411
+ pagination: undefined,
4412
+ sortBy: ""
4413
+ };
4414
+ }
4415
+ /**
4416
+ * QueryProjectsByCreatorRequest defines the QueryProjectsByCreatorRequest message.
4417
+ * @name QueryProjectsByCreatorRequest
4418
+ * @package sparkdream.rep.v1
4419
+ * @see proto type: sparkdream.rep.v1.QueryProjectsByCreatorRequest
4420
+ */
4421
+ export const QueryProjectsByCreatorRequest = {
4422
+ typeUrl: "/sparkdream.rep.v1.QueryProjectsByCreatorRequest",
4423
+ encode(message, writer = BinaryWriter.create()) {
4424
+ if (message.creator !== "") {
4425
+ writer.uint32(10).string(message.creator);
4426
+ }
4427
+ if (message.pagination !== undefined) {
4428
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
4429
+ }
4430
+ if (message.sortBy !== "") {
4431
+ writer.uint32(26).string(message.sortBy);
4432
+ }
4433
+ return writer;
4434
+ },
4435
+ decode(input, length) {
4436
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4437
+ let end = length === undefined ? reader.len : reader.pos + length;
4438
+ const message = createBaseQueryProjectsByCreatorRequest();
4439
+ while (reader.pos < end) {
4440
+ const tag = reader.uint32();
4441
+ switch (tag >>> 3) {
4442
+ case 1:
4443
+ message.creator = reader.string();
4444
+ break;
4445
+ case 2:
4446
+ message.pagination = PageRequest.decode(reader, reader.uint32());
4447
+ break;
4448
+ case 3:
4449
+ message.sortBy = reader.string();
4450
+ break;
4451
+ default:
4452
+ reader.skipType(tag & 7);
4453
+ break;
4454
+ }
4455
+ }
4456
+ return message;
4457
+ },
4458
+ fromPartial(object) {
4459
+ const message = createBaseQueryProjectsByCreatorRequest();
4460
+ message.creator = object.creator ?? "";
4461
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
4462
+ message.sortBy = object.sortBy ?? "";
4463
+ return message;
4464
+ },
4465
+ fromAmino(object) {
4466
+ const message = createBaseQueryProjectsByCreatorRequest();
4467
+ if (object.creator !== undefined && object.creator !== null) {
4468
+ message.creator = object.creator;
4469
+ }
4470
+ if (object.pagination !== undefined && object.pagination !== null) {
4471
+ message.pagination = PageRequest.fromAmino(object.pagination);
4472
+ }
4473
+ if (object.sort_by !== undefined && object.sort_by !== null) {
4474
+ message.sortBy = object.sort_by;
4475
+ }
4476
+ return message;
4477
+ },
4478
+ toAmino(message) {
4479
+ const obj = {};
4480
+ obj.creator = message.creator === "" ? undefined : message.creator;
4481
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
4482
+ obj.sort_by = message.sortBy === "" ? undefined : message.sortBy;
4483
+ return obj;
4484
+ },
4485
+ fromAminoMsg(object) {
4486
+ return QueryProjectsByCreatorRequest.fromAmino(object.value);
4487
+ },
4488
+ fromProtoMsg(message) {
4489
+ return QueryProjectsByCreatorRequest.decode(message.value);
4490
+ },
4491
+ toProto(message) {
4492
+ return QueryProjectsByCreatorRequest.encode(message).finish();
4493
+ },
4494
+ toProtoMsg(message) {
4495
+ return {
4496
+ typeUrl: "/sparkdream.rep.v1.QueryProjectsByCreatorRequest",
4497
+ value: QueryProjectsByCreatorRequest.encode(message).finish()
4498
+ };
4499
+ }
4500
+ };
4501
+ function createBaseQueryProjectsByCreatorResponse() {
4502
+ return {
4503
+ projects: [],
4504
+ pagination: undefined
4505
+ };
4506
+ }
4507
+ /**
4508
+ * QueryProjectsByCreatorResponse defines the QueryProjectsByCreatorResponse message.
4509
+ * @name QueryProjectsByCreatorResponse
4510
+ * @package sparkdream.rep.v1
4511
+ * @see proto type: sparkdream.rep.v1.QueryProjectsByCreatorResponse
4512
+ */
4513
+ export const QueryProjectsByCreatorResponse = {
4514
+ typeUrl: "/sparkdream.rep.v1.QueryProjectsByCreatorResponse",
4515
+ encode(message, writer = BinaryWriter.create()) {
4516
+ for (const v of message.projects) {
4517
+ Project.encode(v, writer.uint32(10).fork()).ldelim();
4518
+ }
4519
+ if (message.pagination !== undefined) {
4520
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
4521
+ }
4522
+ return writer;
4523
+ },
4524
+ decode(input, length) {
4525
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4526
+ let end = length === undefined ? reader.len : reader.pos + length;
4527
+ const message = createBaseQueryProjectsByCreatorResponse();
4528
+ while (reader.pos < end) {
4529
+ const tag = reader.uint32();
4530
+ switch (tag >>> 3) {
4531
+ case 1:
4532
+ message.projects.push(Project.decode(reader, reader.uint32()));
4533
+ break;
4534
+ case 2:
4535
+ message.pagination = PageResponse.decode(reader, reader.uint32());
4536
+ break;
4537
+ default:
4538
+ reader.skipType(tag & 7);
4539
+ break;
4540
+ }
4541
+ }
4542
+ return message;
4543
+ },
4544
+ fromPartial(object) {
4545
+ const message = createBaseQueryProjectsByCreatorResponse();
4546
+ message.projects = object.projects?.map(e => Project.fromPartial(e)) || [];
4547
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
4548
+ return message;
4549
+ },
4550
+ fromAmino(object) {
4551
+ const message = createBaseQueryProjectsByCreatorResponse();
4552
+ message.projects = object.projects?.map(e => Project.fromAmino(e)) || [];
4553
+ if (object.pagination !== undefined && object.pagination !== null) {
4554
+ message.pagination = PageResponse.fromAmino(object.pagination);
4555
+ }
4556
+ return message;
4557
+ },
4558
+ toAmino(message) {
4559
+ const obj = {};
4560
+ if (message.projects) {
4561
+ obj.projects = message.projects.map(e => e ? Project.toAmino(e) : undefined);
4562
+ }
4563
+ else {
4564
+ obj.projects = message.projects;
4565
+ }
4566
+ obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
4567
+ return obj;
4568
+ },
4569
+ fromAminoMsg(object) {
4570
+ return QueryProjectsByCreatorResponse.fromAmino(object.value);
4571
+ },
4572
+ fromProtoMsg(message) {
4573
+ return QueryProjectsByCreatorResponse.decode(message.value);
4574
+ },
4575
+ toProto(message) {
4576
+ return QueryProjectsByCreatorResponse.encode(message).finish();
4577
+ },
4578
+ toProtoMsg(message) {
4579
+ return {
4580
+ typeUrl: "/sparkdream.rep.v1.QueryProjectsByCreatorResponse",
4581
+ value: QueryProjectsByCreatorResponse.encode(message).finish()
4582
+ };
4583
+ }
4584
+ };
4231
4585
  function createBaseQueryAvailableInitiativesRequest() {
4232
4586
  return {
4233
4587
  pagination: undefined,
@@ -4479,9 +4833,7 @@ export const QueryStakesByStakerRequest = {
4479
4833
  };
4480
4834
  function createBaseQueryStakesByStakerResponse() {
4481
4835
  return {
4482
- stakeId: BigInt(0),
4483
- targetType: BigInt(0),
4484
- amount: "",
4836
+ stakes: [],
4485
4837
  pagination: undefined
4486
4838
  };
4487
4839
  }
@@ -4494,17 +4846,11 @@ function createBaseQueryStakesByStakerResponse() {
4494
4846
  export const QueryStakesByStakerResponse = {
4495
4847
  typeUrl: "/sparkdream.rep.v1.QueryStakesByStakerResponse",
4496
4848
  encode(message, writer = BinaryWriter.create()) {
4497
- if (message.stakeId !== BigInt(0)) {
4498
- writer.uint32(8).uint64(message.stakeId);
4499
- }
4500
- if (message.targetType !== BigInt(0)) {
4501
- writer.uint32(16).uint64(message.targetType);
4502
- }
4503
- if (message.amount !== "") {
4504
- writer.uint32(26).string(message.amount);
4849
+ for (const v of message.stakes) {
4850
+ Stake.encode(v, writer.uint32(10).fork()).ldelim();
4505
4851
  }
4506
4852
  if (message.pagination !== undefined) {
4507
- PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
4853
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
4508
4854
  }
4509
4855
  return writer;
4510
4856
  },
@@ -4516,15 +4862,9 @@ export const QueryStakesByStakerResponse = {
4516
4862
  const tag = reader.uint32();
4517
4863
  switch (tag >>> 3) {
4518
4864
  case 1:
4519
- message.stakeId = reader.uint64();
4865
+ message.stakes.push(Stake.decode(reader, reader.uint32()));
4520
4866
  break;
4521
4867
  case 2:
4522
- message.targetType = reader.uint64();
4523
- break;
4524
- case 3:
4525
- message.amount = reader.string();
4526
- break;
4527
- case 4:
4528
4868
  message.pagination = PageResponse.decode(reader, reader.uint32());
4529
4869
  break;
4530
4870
  default:
@@ -4536,23 +4876,13 @@ export const QueryStakesByStakerResponse = {
4536
4876
  },
4537
4877
  fromPartial(object) {
4538
4878
  const message = createBaseQueryStakesByStakerResponse();
4539
- message.stakeId = object.stakeId !== undefined && object.stakeId !== null ? BigInt(object.stakeId.toString()) : BigInt(0);
4540
- message.targetType = object.targetType !== undefined && object.targetType !== null ? BigInt(object.targetType.toString()) : BigInt(0);
4541
- message.amount = object.amount ?? "";
4879
+ message.stakes = object.stakes?.map(e => Stake.fromPartial(e)) || [];
4542
4880
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
4543
4881
  return message;
4544
4882
  },
4545
4883
  fromAmino(object) {
4546
4884
  const message = createBaseQueryStakesByStakerResponse();
4547
- if (object.stake_id !== undefined && object.stake_id !== null) {
4548
- message.stakeId = BigInt(object.stake_id);
4549
- }
4550
- if (object.target_type !== undefined && object.target_type !== null) {
4551
- message.targetType = BigInt(object.target_type);
4552
- }
4553
- if (object.amount !== undefined && object.amount !== null) {
4554
- message.amount = object.amount;
4555
- }
4885
+ message.stakes = object.stakes?.map(e => Stake.fromAmino(e)) || [];
4556
4886
  if (object.pagination !== undefined && object.pagination !== null) {
4557
4887
  message.pagination = PageResponse.fromAmino(object.pagination);
4558
4888
  }
@@ -4560,9 +4890,12 @@ export const QueryStakesByStakerResponse = {
4560
4890
  },
4561
4891
  toAmino(message) {
4562
4892
  const obj = {};
4563
- obj.stake_id = message.stakeId !== BigInt(0) ? message.stakeId?.toString() : undefined;
4564
- obj.target_type = message.targetType !== BigInt(0) ? message.targetType?.toString() : undefined;
4565
- obj.amount = message.amount === "" ? undefined : message.amount;
4893
+ if (message.stakes) {
4894
+ obj.stakes = message.stakes.map(e => e ? Stake.toAmino(e) : undefined);
4895
+ }
4896
+ else {
4897
+ obj.stakes = message.stakes;
4898
+ }
4566
4899
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
4567
4900
  return obj;
4568
4901
  },
@@ -271,6 +271,34 @@ export class LCDQueryClient {
271
271
  const endpoint = `sparkdream/rep/v1/initiatives_by_assignee/${params.assignee}`;
272
272
  return await this.req.get(endpoint, options);
273
273
  };
274
+ /* InitiativesByCreator Queries a list of InitiativesByCreator items. */
275
+ initiativesByCreator = async (params) => {
276
+ const options = {
277
+ params: {}
278
+ };
279
+ if (typeof params?.pagination !== "undefined") {
280
+ setPaginationParams(options, params.pagination);
281
+ }
282
+ if (typeof params?.sortBy !== "undefined") {
283
+ options.params.sort_by = params.sortBy;
284
+ }
285
+ const endpoint = `sparkdream/rep/v1/initiatives_by_creator/${params.creator}`;
286
+ return await this.req.get(endpoint, options);
287
+ };
288
+ /* ProjectsByCreator Queries a list of ProjectsByCreator items. */
289
+ projectsByCreator = async (params) => {
290
+ const options = {
291
+ params: {}
292
+ };
293
+ if (typeof params?.pagination !== "undefined") {
294
+ setPaginationParams(options, params.pagination);
295
+ }
296
+ if (typeof params?.sortBy !== "undefined") {
297
+ options.params.sort_by = params.sortBy;
298
+ }
299
+ const endpoint = `sparkdream/rep/v1/projects_by_creator/${params.creator}`;
300
+ return await this.req.get(endpoint, options);
301
+ };
274
302
  /* AvailableInitiatives Queries a list of AvailableInitiatives items. */
275
303
  availableInitiatives = async (params) => {
276
304
  const options = {
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader } from "../../../binary";
2
2
  import { createProtobufRpcClient } 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
  export class QueryClientImpl {
5
5
  rpc;
6
6
  constructor(rpc) {
@@ -182,6 +182,18 @@ export class QueryClientImpl {
182
182
  const promise = this.rpc.request("sparkdream.rep.v1.Query", "InitiativesByAssignee", data);
183
183
  return promise.then(data => QueryInitiativesByAssigneeResponse.decode(new BinaryReader(data)));
184
184
  };
185
+ /* InitiativesByCreator Queries a list of InitiativesByCreator items. */
186
+ initiativesByCreator = async (request) => {
187
+ const data = QueryInitiativesByCreatorRequest.encode(request).finish();
188
+ const promise = this.rpc.request("sparkdream.rep.v1.Query", "InitiativesByCreator", data);
189
+ return promise.then(data => QueryInitiativesByCreatorResponse.decode(new BinaryReader(data)));
190
+ };
191
+ /* ProjectsByCreator Queries a list of ProjectsByCreator items. */
192
+ projectsByCreator = async (request) => {
193
+ const data = QueryProjectsByCreatorRequest.encode(request).finish();
194
+ const promise = this.rpc.request("sparkdream.rep.v1.Query", "ProjectsByCreator", data);
195
+ return promise.then(data => QueryProjectsByCreatorResponse.decode(new BinaryReader(data)));
196
+ };
185
197
  /* AvailableInitiatives Queries a list of AvailableInitiatives items. */
186
198
  availableInitiatives = async (request) => {
187
199
  const data = QueryAvailableInitiativesRequest.encode(request).finish();
@@ -609,6 +621,12 @@ export const createRpcQueryExtension = (base) => {
609
621
  initiativesByAssignee(request) {
610
622
  return queryService.initiativesByAssignee(request);
611
623
  },
624
+ initiativesByCreator(request) {
625
+ return queryService.initiativesByCreator(request);
626
+ },
627
+ projectsByCreator(request) {
628
+ return queryService.projectsByCreator(request);
629
+ },
612
630
  availableInitiatives(request) {
613
631
  return queryService.availableInitiatives(request);
614
632
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkdreamnft/sparkdreamjs",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "author": "kob <kob@sparkdream.io>",
5
5
  "description": "Spark Dream blockchain TypeScript library",
6
6
  "main": "index.js",