@sparkdreamnft/sparkdreamjs 0.0.9 → 0.0.10

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.
Files changed (138) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +182 -182
  3. package/esm/cosmos/bundle.js +182 -182
  4. package/esm/ibc/bundle.js +106 -106
  5. package/esm/sparkdream/blog/v1/params.js +25 -1
  6. package/esm/sparkdream/blog/v1/post.js +16 -1
  7. package/esm/sparkdream/blog/v1/query.js +165 -0
  8. package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
  9. package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
  10. package/esm/sparkdream/blog/v1/tx.js +32 -2
  11. package/esm/sparkdream/bundle.js +343 -339
  12. package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
  13. package/esm/sparkdream/collect/v1/genesis.js +12 -11
  14. package/esm/sparkdream/collect/v1/params.js +37 -1
  15. package/esm/sparkdream/collect/v1/query.js +201 -186
  16. package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
  17. package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
  18. package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
  19. package/esm/sparkdream/collect/v1/tx.js +0 -258
  20. package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
  21. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
  22. package/esm/sparkdream/collect/v1/types.js +50 -143
  23. package/esm/sparkdream/federation/v1/genesis.js +12 -11
  24. package/esm/sparkdream/federation/v1/query.js +37 -187
  25. package/esm/sparkdream/federation/v1/query.lcd.js +6 -16
  26. package/esm/sparkdream/federation/v1/query.rpc.Query.js +11 -19
  27. package/esm/sparkdream/federation/v1/tx.amino.js +1 -11
  28. package/esm/sparkdream/federation/v1/tx.js +0 -270
  29. package/esm/sparkdream/federation/v1/tx.registry.js +2 -38
  30. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +4 -14
  31. package/esm/sparkdream/federation/v1/types.js +13 -318
  32. package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
  33. package/esm/sparkdream/forum/v1/params.js +146 -2
  34. package/esm/sparkdream/futarchy/v1/market.js +13 -1
  35. package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
  36. package/esm/sparkdream/rep/v1/genesis.js +32 -17
  37. package/esm/sparkdream/rep/v1/member_report.js +98 -1
  38. package/esm/sparkdream/rep/v1/query.js +297 -306
  39. package/esm/sparkdream/rep/v1/query.lcd.js +23 -16
  40. package/esm/sparkdream/rep/v1/query.rpc.Query.js +36 -35
  41. package/esm/sparkdream/rep/v1/tx.amino.js +9 -9
  42. package/esm/sparkdream/rep/v1/tx.js +86 -58
  43. package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
  44. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -14
  45. package/esm/sparkdream/season/v1/enums.js +10 -0
  46. package/esm/tendermint/bundle.js +18 -18
  47. package/ibc/bundle.d.ts +90 -90
  48. package/ibc/bundle.js +106 -106
  49. package/package.json +1 -1
  50. package/sparkdream/blog/v1/params.d.ts +16 -0
  51. package/sparkdream/blog/v1/params.js +25 -1
  52. package/sparkdream/blog/v1/post.d.ts +8 -0
  53. package/sparkdream/blog/v1/post.js +16 -1
  54. package/sparkdream/blog/v1/query.d.ts +92 -0
  55. package/sparkdream/blog/v1/query.js +166 -1
  56. package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
  57. package/sparkdream/blog/v1/query.lcd.js +11 -0
  58. package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
  59. package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
  60. package/sparkdream/blog/v1/tx.d.ts +16 -0
  61. package/sparkdream/blog/v1/tx.js +32 -2
  62. package/sparkdream/bundle.d.ts +14376 -14514
  63. package/sparkdream/bundle.js +343 -339
  64. package/sparkdream/client.d.ts +6 -26
  65. package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
  66. package/sparkdream/collect/v1/curator_activity.js +161 -0
  67. package/sparkdream/collect/v1/genesis.d.ts +4 -3
  68. package/sparkdream/collect/v1/genesis.js +11 -10
  69. package/sparkdream/collect/v1/params.d.ts +32 -0
  70. package/sparkdream/collect/v1/params.js +37 -1
  71. package/sparkdream/collect/v1/query.d.ts +142 -133
  72. package/sparkdream/collect/v1/query.js +201 -186
  73. package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
  74. package/sparkdream/collect/v1/query.lcd.js +16 -16
  75. package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
  76. package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
  77. package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
  78. package/sparkdream/collect/v1/tx.amino.js +0 -10
  79. package/sparkdream/collect/v1/tx.d.ts +0 -162
  80. package/sparkdream/collect/v1/tx.js +2 -260
  81. package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
  82. package/sparkdream/collect/v1/tx.registry.js +1 -37
  83. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
  84. package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
  85. package/sparkdream/collect/v1/types.d.ts +26 -56
  86. package/sparkdream/collect/v1/types.js +51 -144
  87. package/sparkdream/federation/v1/genesis.d.ts +4 -3
  88. package/sparkdream/federation/v1/genesis.js +11 -10
  89. package/sparkdream/federation/v1/query.d.ts +53 -136
  90. package/sparkdream/federation/v1/query.js +37 -187
  91. package/sparkdream/federation/v1/query.lcd.d.ts +2 -3
  92. package/sparkdream/federation/v1/query.lcd.js +6 -16
  93. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  94. package/sparkdream/federation/v1/query.rpc.Query.js +10 -18
  95. package/sparkdream/federation/v1/tx.amino.d.ts +1 -11
  96. package/sparkdream/federation/v1/tx.amino.js +0 -10
  97. package/sparkdream/federation/v1/tx.d.ts +0 -164
  98. package/sparkdream/federation/v1/tx.js +1 -272
  99. package/sparkdream/federation/v1/tx.registry.d.ts +1 -25
  100. package/sparkdream/federation/v1/tx.registry.js +1 -37
  101. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +6 -5
  102. package/sparkdream/federation/v1/tx.rpc.msg.js +3 -13
  103. package/sparkdream/federation/v1/types.d.ts +10 -106
  104. package/sparkdream/federation/v1/types.js +14 -321
  105. package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
  106. package/sparkdream/federation/v1/verifier_activity.js +197 -0
  107. package/sparkdream/forum/v1/params.d.ts +112 -0
  108. package/sparkdream/forum/v1/params.js +146 -2
  109. package/sparkdream/futarchy/v1/market.d.ts +14 -0
  110. package/sparkdream/futarchy/v1/market.js +13 -1
  111. package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
  112. package/sparkdream/rep/v1/bonded_role.js +453 -0
  113. package/sparkdream/rep/v1/genesis.d.ts +11 -9
  114. package/sparkdream/rep/v1/genesis.js +32 -17
  115. package/sparkdream/rep/v1/member_report.d.ts +61 -0
  116. package/sparkdream/rep/v1/member_report.js +99 -2
  117. package/sparkdream/rep/v1/query.d.ts +259 -261
  118. package/sparkdream/rep/v1/query.js +299 -308
  119. package/sparkdream/rep/v1/query.lcd.d.ts +5 -5
  120. package/sparkdream/rep/v1/query.lcd.js +23 -16
  121. package/sparkdream/rep/v1/query.rpc.Query.d.ts +20 -17
  122. package/sparkdream/rep/v1/query.rpc.Query.js +35 -34
  123. package/sparkdream/rep/v1/tx.amino.d.ts +7 -7
  124. package/sparkdream/rep/v1/tx.amino.js +9 -9
  125. package/sparkdream/rep/v1/tx.d.ts +121 -104
  126. package/sparkdream/rep/v1/tx.js +87 -59
  127. package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
  128. package/sparkdream/rep/v1/tx.registry.js +17 -17
  129. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +11 -9
  130. package/sparkdream/rep/v1/tx.rpc.msg.js +15 -13
  131. package/sparkdream/rpc.query.d.ts +8 -8
  132. package/sparkdream/season/v1/enums.d.ts +5 -0
  133. package/sparkdream/season/v1/enums.js +10 -0
  134. package/tendermint/bundle.d.ts +844 -844
  135. package/tendermint/bundle.js +18 -18
  136. package/esm/sparkdream/rep/v1/sentinel_activity.js +0 -214
  137. package/sparkdream/rep/v1/sentinel_activity.d.ts +0 -79
  138. package/sparkdream/rep/v1/sentinel_activity.js +0 -219
@@ -1,11 +1,12 @@
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.QueryGetReservedTagRequest = exports.QueryAllTagResponse = exports.QueryAllTagRequest = exports.QueryGetTagResponse = exports.QueryGetTagRequest = exports.QueryTreasuryStatusResponse = 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.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.QueryInitiativesByAssigneeResponse = exports.QueryInitiativesByAssigneeRequest = exports.QueryInitiativesByProjectResponse = exports.QueryInitiativesByProjectRequest = void 0;
5
- exports.QueryMemberReportsRequest = exports.QueryAllJuryParticipationResponse = exports.QueryAllJuryParticipationRequest = exports.QueryGetJuryParticipationResponse = 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.QuerySentinelBondCommitmentResponse = exports.QuerySentinelBondCommitmentRequest = exports.QuerySentinelStatusResponse = exports.QuerySentinelStatusRequest = exports.QueryAllSentinelActivityResponse = exports.QueryAllSentinelActivityRequest = exports.QueryGetSentinelActivityResponse = exports.QueryGetSentinelActivityRequest = 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 = void 0;
4
+ exports.QueryAllTagRequest = exports.QueryGetTagResponse = exports.QueryGetTagRequest = exports.QueryTreasuryStatusResponse = 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.QueryInitiativesByAssigneeResponse = exports.QueryInitiativesByAssigneeRequest = exports.QueryInitiativesByProjectResponse = exports.QueryInitiativesByProjectRequest = void 0;
5
+ exports.QueryMemberReportsRequest = exports.QueryAllJuryParticipationResponse = exports.QueryAllJuryParticipationRequest = exports.QueryGetJuryParticipationResponse = 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 = void 0;
6
6
  exports.QueryMemberStandingResponse = exports.QueryMemberStandingRequest = exports.QueryMemberWarningsResponse = exports.QueryMemberWarningsRequest = exports.QueryMemberReportsResponse = void 0;
7
7
  //@ts-nocheck
8
8
  const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
9
+ const bonded_role_1 = require("./bonded_role");
9
10
  const params_1 = require("./params");
10
11
  const member_1 = require("./member");
11
12
  const invitation_1 = require("./invitation");
@@ -22,7 +23,6 @@ const reserved_tag_1 = require("./reserved_tag");
22
23
  const tag_report_1 = require("./tag_report");
23
24
  const tag_budget_1 = require("./tag_budget");
24
25
  const tag_budget_award_1 = require("./tag_budget_award");
25
- const sentinel_activity_1 = require("./sentinel_activity");
26
26
  const member_report_1 = require("./member_report");
27
27
  const member_warning_1 = require("./member_warning");
28
28
  const gov_action_appeal_1 = require("./gov_action_appeal");
@@ -5737,6 +5737,159 @@ exports.QueryGetTagStakePoolResponse = {
5737
5737
  };
5738
5738
  }
5739
5739
  };
5740
+ function createBaseQueryListTagStakePoolsRequest() {
5741
+ return {
5742
+ pagination: undefined
5743
+ };
5744
+ }
5745
+ /**
5746
+ * QueryListTagStakePoolsRequest defines the request for listing tag stake pools.
5747
+ * @name QueryListTagStakePoolsRequest
5748
+ * @package sparkdream.rep.v1
5749
+ * @see proto type: sparkdream.rep.v1.QueryListTagStakePoolsRequest
5750
+ */
5751
+ exports.QueryListTagStakePoolsRequest = {
5752
+ typeUrl: "/sparkdream.rep.v1.QueryListTagStakePoolsRequest",
5753
+ encode(message, writer = binary_1.BinaryWriter.create()) {
5754
+ if (message.pagination !== undefined) {
5755
+ pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
5756
+ }
5757
+ return writer;
5758
+ },
5759
+ decode(input, length) {
5760
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
5761
+ let end = length === undefined ? reader.len : reader.pos + length;
5762
+ const message = createBaseQueryListTagStakePoolsRequest();
5763
+ while (reader.pos < end) {
5764
+ const tag = reader.uint32();
5765
+ switch (tag >>> 3) {
5766
+ case 1:
5767
+ message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
5768
+ break;
5769
+ default:
5770
+ reader.skipType(tag & 7);
5771
+ break;
5772
+ }
5773
+ }
5774
+ return message;
5775
+ },
5776
+ fromPartial(object) {
5777
+ const message = createBaseQueryListTagStakePoolsRequest();
5778
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
5779
+ return message;
5780
+ },
5781
+ fromAmino(object) {
5782
+ const message = createBaseQueryListTagStakePoolsRequest();
5783
+ if (object.pagination !== undefined && object.pagination !== null) {
5784
+ message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
5785
+ }
5786
+ return message;
5787
+ },
5788
+ toAmino(message) {
5789
+ const obj = {};
5790
+ obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
5791
+ return obj;
5792
+ },
5793
+ fromAminoMsg(object) {
5794
+ return exports.QueryListTagStakePoolsRequest.fromAmino(object.value);
5795
+ },
5796
+ fromProtoMsg(message) {
5797
+ return exports.QueryListTagStakePoolsRequest.decode(message.value);
5798
+ },
5799
+ toProto(message) {
5800
+ return exports.QueryListTagStakePoolsRequest.encode(message).finish();
5801
+ },
5802
+ toProtoMsg(message) {
5803
+ return {
5804
+ typeUrl: "/sparkdream.rep.v1.QueryListTagStakePoolsRequest",
5805
+ value: exports.QueryListTagStakePoolsRequest.encode(message).finish()
5806
+ };
5807
+ }
5808
+ };
5809
+ function createBaseQueryListTagStakePoolsResponse() {
5810
+ return {
5811
+ pool: [],
5812
+ pagination: undefined
5813
+ };
5814
+ }
5815
+ /**
5816
+ * QueryListTagStakePoolsResponse defines the response for listing tag stake pools.
5817
+ * @name QueryListTagStakePoolsResponse
5818
+ * @package sparkdream.rep.v1
5819
+ * @see proto type: sparkdream.rep.v1.QueryListTagStakePoolsResponse
5820
+ */
5821
+ exports.QueryListTagStakePoolsResponse = {
5822
+ typeUrl: "/sparkdream.rep.v1.QueryListTagStakePoolsResponse",
5823
+ encode(message, writer = binary_1.BinaryWriter.create()) {
5824
+ for (const v of message.pool) {
5825
+ stake_1.TagStakePool.encode(v, writer.uint32(10).fork()).ldelim();
5826
+ }
5827
+ if (message.pagination !== undefined) {
5828
+ pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
5829
+ }
5830
+ return writer;
5831
+ },
5832
+ decode(input, length) {
5833
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
5834
+ let end = length === undefined ? reader.len : reader.pos + length;
5835
+ const message = createBaseQueryListTagStakePoolsResponse();
5836
+ while (reader.pos < end) {
5837
+ const tag = reader.uint32();
5838
+ switch (tag >>> 3) {
5839
+ case 1:
5840
+ message.pool.push(stake_1.TagStakePool.decode(reader, reader.uint32()));
5841
+ break;
5842
+ case 2:
5843
+ message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
5844
+ break;
5845
+ default:
5846
+ reader.skipType(tag & 7);
5847
+ break;
5848
+ }
5849
+ }
5850
+ return message;
5851
+ },
5852
+ fromPartial(object) {
5853
+ const message = createBaseQueryListTagStakePoolsResponse();
5854
+ message.pool = object.pool?.map(e => stake_1.TagStakePool.fromPartial(e)) || [];
5855
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
5856
+ return message;
5857
+ },
5858
+ fromAmino(object) {
5859
+ const message = createBaseQueryListTagStakePoolsResponse();
5860
+ message.pool = object.pool?.map(e => stake_1.TagStakePool.fromAmino(e)) || [];
5861
+ if (object.pagination !== undefined && object.pagination !== null) {
5862
+ message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
5863
+ }
5864
+ return message;
5865
+ },
5866
+ toAmino(message) {
5867
+ const obj = {};
5868
+ if (message.pool) {
5869
+ obj.pool = message.pool.map(e => e ? stake_1.TagStakePool.toAmino(e) : undefined);
5870
+ }
5871
+ else {
5872
+ obj.pool = message.pool;
5873
+ }
5874
+ obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
5875
+ return obj;
5876
+ },
5877
+ fromAminoMsg(object) {
5878
+ return exports.QueryListTagStakePoolsResponse.fromAmino(object.value);
5879
+ },
5880
+ fromProtoMsg(message) {
5881
+ return exports.QueryListTagStakePoolsResponse.decode(message.value);
5882
+ },
5883
+ toProto(message) {
5884
+ return exports.QueryListTagStakePoolsResponse.encode(message).finish();
5885
+ },
5886
+ toProtoMsg(message) {
5887
+ return {
5888
+ typeUrl: "/sparkdream.rep.v1.QueryListTagStakePoolsResponse",
5889
+ value: exports.QueryListTagStakePoolsResponse.encode(message).finish()
5890
+ };
5891
+ }
5892
+ };
5740
5893
  function createBaseQueryGetProjectStakeInfoRequest() {
5741
5894
  return {
5742
5895
  projectId: BigInt(0)
@@ -9871,33 +10024,40 @@ exports.QueryTagBudgetAwardsResponse = {
9871
10024
  };
9872
10025
  }
9873
10026
  };
9874
- function createBaseQueryGetSentinelActivityRequest() {
10027
+ function createBaseQueryBondedRoleRequest() {
9875
10028
  return {
10029
+ roleType: 0,
9876
10030
  address: ""
9877
10031
  };
9878
10032
  }
9879
10033
  /**
9880
- * QueryGetSentinelActivityRequest defines the QueryGetSentinelActivityRequest message.
9881
- * @name QueryGetSentinelActivityRequest
10034
+ * QueryBondedRoleRequest fetches a single BondedRole record.
10035
+ * @name QueryBondedRoleRequest
9882
10036
  * @package sparkdream.rep.v1
9883
- * @see proto type: sparkdream.rep.v1.QueryGetSentinelActivityRequest
10037
+ * @see proto type: sparkdream.rep.v1.QueryBondedRoleRequest
9884
10038
  */
9885
- exports.QueryGetSentinelActivityRequest = {
9886
- typeUrl: "/sparkdream.rep.v1.QueryGetSentinelActivityRequest",
10039
+ exports.QueryBondedRoleRequest = {
10040
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRoleRequest",
9887
10041
  encode(message, writer = binary_1.BinaryWriter.create()) {
10042
+ if (message.roleType !== 0) {
10043
+ writer.uint32(8).int32(message.roleType);
10044
+ }
9888
10045
  if (message.address !== "") {
9889
- writer.uint32(10).string(message.address);
10046
+ writer.uint32(18).string(message.address);
9890
10047
  }
9891
10048
  return writer;
9892
10049
  },
9893
10050
  decode(input, length) {
9894
10051
  const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
9895
10052
  let end = length === undefined ? reader.len : reader.pos + length;
9896
- const message = createBaseQueryGetSentinelActivityRequest();
10053
+ const message = createBaseQueryBondedRoleRequest();
9897
10054
  while (reader.pos < end) {
9898
10055
  const tag = reader.uint32();
9899
10056
  switch (tag >>> 3) {
9900
10057
  case 1:
10058
+ message.roleType = reader.int32();
10059
+ break;
10060
+ case 2:
9901
10061
  message.address = reader.string();
9902
10062
  break;
9903
10063
  default:
@@ -9908,12 +10068,16 @@ exports.QueryGetSentinelActivityRequest = {
9908
10068
  return message;
9909
10069
  },
9910
10070
  fromPartial(object) {
9911
- const message = createBaseQueryGetSentinelActivityRequest();
10071
+ const message = createBaseQueryBondedRoleRequest();
10072
+ message.roleType = object.roleType ?? 0;
9912
10073
  message.address = object.address ?? "";
9913
10074
  return message;
9914
10075
  },
9915
10076
  fromAmino(object) {
9916
- const message = createBaseQueryGetSentinelActivityRequest();
10077
+ const message = createBaseQueryBondedRoleRequest();
10078
+ if (object.role_type !== undefined && object.role_type !== null) {
10079
+ message.roleType = object.role_type;
10080
+ }
9917
10081
  if (object.address !== undefined && object.address !== null) {
9918
10082
  message.address = object.address;
9919
10083
  }
@@ -9921,53 +10085,54 @@ exports.QueryGetSentinelActivityRequest = {
9921
10085
  },
9922
10086
  toAmino(message) {
9923
10087
  const obj = {};
10088
+ obj.role_type = message.roleType === 0 ? undefined : message.roleType;
9924
10089
  obj.address = message.address === "" ? undefined : message.address;
9925
10090
  return obj;
9926
10091
  },
9927
10092
  fromAminoMsg(object) {
9928
- return exports.QueryGetSentinelActivityRequest.fromAmino(object.value);
10093
+ return exports.QueryBondedRoleRequest.fromAmino(object.value);
9929
10094
  },
9930
10095
  fromProtoMsg(message) {
9931
- return exports.QueryGetSentinelActivityRequest.decode(message.value);
10096
+ return exports.QueryBondedRoleRequest.decode(message.value);
9932
10097
  },
9933
10098
  toProto(message) {
9934
- return exports.QueryGetSentinelActivityRequest.encode(message).finish();
10099
+ return exports.QueryBondedRoleRequest.encode(message).finish();
9935
10100
  },
9936
10101
  toProtoMsg(message) {
9937
10102
  return {
9938
- typeUrl: "/sparkdream.rep.v1.QueryGetSentinelActivityRequest",
9939
- value: exports.QueryGetSentinelActivityRequest.encode(message).finish()
10103
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRoleRequest",
10104
+ value: exports.QueryBondedRoleRequest.encode(message).finish()
9940
10105
  };
9941
10106
  }
9942
10107
  };
9943
- function createBaseQueryGetSentinelActivityResponse() {
10108
+ function createBaseQueryBondedRoleResponse() {
9944
10109
  return {
9945
- sentinelActivity: sentinel_activity_1.SentinelActivity.fromPartial({})
10110
+ bondedRole: bonded_role_1.BondedRole.fromPartial({})
9946
10111
  };
9947
10112
  }
9948
10113
  /**
9949
- * QueryGetSentinelActivityResponse defines the QueryGetSentinelActivityResponse message.
9950
- * @name QueryGetSentinelActivityResponse
10114
+ * QueryBondedRoleResponse holds the fetched BondedRole record.
10115
+ * @name QueryBondedRoleResponse
9951
10116
  * @package sparkdream.rep.v1
9952
- * @see proto type: sparkdream.rep.v1.QueryGetSentinelActivityResponse
10117
+ * @see proto type: sparkdream.rep.v1.QueryBondedRoleResponse
9953
10118
  */
9954
- exports.QueryGetSentinelActivityResponse = {
9955
- typeUrl: "/sparkdream.rep.v1.QueryGetSentinelActivityResponse",
10119
+ exports.QueryBondedRoleResponse = {
10120
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRoleResponse",
9956
10121
  encode(message, writer = binary_1.BinaryWriter.create()) {
9957
- if (message.sentinelActivity !== undefined) {
9958
- sentinel_activity_1.SentinelActivity.encode(message.sentinelActivity, writer.uint32(10).fork()).ldelim();
10122
+ if (message.bondedRole !== undefined) {
10123
+ bonded_role_1.BondedRole.encode(message.bondedRole, writer.uint32(10).fork()).ldelim();
9959
10124
  }
9960
10125
  return writer;
9961
10126
  },
9962
10127
  decode(input, length) {
9963
10128
  const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
9964
10129
  let end = length === undefined ? reader.len : reader.pos + length;
9965
- const message = createBaseQueryGetSentinelActivityResponse();
10130
+ const message = createBaseQueryBondedRoleResponse();
9966
10131
  while (reader.pos < end) {
9967
10132
  const tag = reader.uint32();
9968
10133
  switch (tag >>> 3) {
9969
10134
  case 1:
9970
- message.sentinelActivity = sentinel_activity_1.SentinelActivity.decode(reader, reader.uint32());
10135
+ message.bondedRole = bonded_role_1.BondedRole.decode(reader, reader.uint32());
9971
10136
  break;
9972
10137
  default:
9973
10138
  reader.skipType(tag & 7);
@@ -9977,65 +10142,72 @@ exports.QueryGetSentinelActivityResponse = {
9977
10142
  return message;
9978
10143
  },
9979
10144
  fromPartial(object) {
9980
- const message = createBaseQueryGetSentinelActivityResponse();
9981
- message.sentinelActivity = object.sentinelActivity !== undefined && object.sentinelActivity !== null ? sentinel_activity_1.SentinelActivity.fromPartial(object.sentinelActivity) : undefined;
10145
+ const message = createBaseQueryBondedRoleResponse();
10146
+ message.bondedRole = object.bondedRole !== undefined && object.bondedRole !== null ? bonded_role_1.BondedRole.fromPartial(object.bondedRole) : undefined;
9982
10147
  return message;
9983
10148
  },
9984
10149
  fromAmino(object) {
9985
- const message = createBaseQueryGetSentinelActivityResponse();
9986
- if (object.sentinel_activity !== undefined && object.sentinel_activity !== null) {
9987
- message.sentinelActivity = sentinel_activity_1.SentinelActivity.fromAmino(object.sentinel_activity);
10150
+ const message = createBaseQueryBondedRoleResponse();
10151
+ if (object.bonded_role !== undefined && object.bonded_role !== null) {
10152
+ message.bondedRole = bonded_role_1.BondedRole.fromAmino(object.bonded_role);
9988
10153
  }
9989
10154
  return message;
9990
10155
  },
9991
10156
  toAmino(message) {
9992
10157
  const obj = {};
9993
- obj.sentinel_activity = message.sentinelActivity ? sentinel_activity_1.SentinelActivity.toAmino(message.sentinelActivity) : undefined;
10158
+ obj.bonded_role = message.bondedRole ? bonded_role_1.BondedRole.toAmino(message.bondedRole) : undefined;
9994
10159
  return obj;
9995
10160
  },
9996
10161
  fromAminoMsg(object) {
9997
- return exports.QueryGetSentinelActivityResponse.fromAmino(object.value);
10162
+ return exports.QueryBondedRoleResponse.fromAmino(object.value);
9998
10163
  },
9999
10164
  fromProtoMsg(message) {
10000
- return exports.QueryGetSentinelActivityResponse.decode(message.value);
10165
+ return exports.QueryBondedRoleResponse.decode(message.value);
10001
10166
  },
10002
10167
  toProto(message) {
10003
- return exports.QueryGetSentinelActivityResponse.encode(message).finish();
10168
+ return exports.QueryBondedRoleResponse.encode(message).finish();
10004
10169
  },
10005
10170
  toProtoMsg(message) {
10006
10171
  return {
10007
- typeUrl: "/sparkdream.rep.v1.QueryGetSentinelActivityResponse",
10008
- value: exports.QueryGetSentinelActivityResponse.encode(message).finish()
10172
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRoleResponse",
10173
+ value: exports.QueryBondedRoleResponse.encode(message).finish()
10009
10174
  };
10010
10175
  }
10011
10176
  };
10012
- function createBaseQueryAllSentinelActivityRequest() {
10177
+ function createBaseQueryBondedRolesByTypeRequest() {
10013
10178
  return {
10179
+ roleType: 0,
10014
10180
  pagination: undefined
10015
10181
  };
10016
10182
  }
10017
10183
  /**
10018
- * QueryAllSentinelActivityRequest defines the QueryAllSentinelActivityRequest message.
10019
- * @name QueryAllSentinelActivityRequest
10184
+ * QueryBondedRolesByTypeRequest lists all BondedRole records for role_type.
10185
+ * @name QueryBondedRolesByTypeRequest
10020
10186
  * @package sparkdream.rep.v1
10021
- * @see proto type: sparkdream.rep.v1.QueryAllSentinelActivityRequest
10187
+ * @see proto type: sparkdream.rep.v1.QueryBondedRolesByTypeRequest
10022
10188
  */
10023
- exports.QueryAllSentinelActivityRequest = {
10024
- typeUrl: "/sparkdream.rep.v1.QueryAllSentinelActivityRequest",
10189
+ exports.QueryBondedRolesByTypeRequest = {
10190
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRolesByTypeRequest",
10025
10191
  encode(message, writer = binary_1.BinaryWriter.create()) {
10192
+ if (message.roleType !== 0) {
10193
+ writer.uint32(8).int32(message.roleType);
10194
+ }
10026
10195
  if (message.pagination !== undefined) {
10027
- pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
10196
+ pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
10028
10197
  }
10029
10198
  return writer;
10030
10199
  },
10031
10200
  decode(input, length) {
10032
10201
  const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
10033
10202
  let end = length === undefined ? reader.len : reader.pos + length;
10034
- const message = createBaseQueryAllSentinelActivityRequest();
10203
+ const message = createBaseQueryBondedRolesByTypeRequest();
10035
10204
  while (reader.pos < end) {
10036
10205
  const tag = reader.uint32();
10037
10206
  switch (tag >>> 3) {
10038
10207
  case 1:
10208
+ message.roleType = reader.int32();
10209
+ break;
10210
+ case 2:
10039
10211
  message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
10040
10212
  break;
10041
10213
  default:
@@ -10046,12 +10218,16 @@ exports.QueryAllSentinelActivityRequest = {
10046
10218
  return message;
10047
10219
  },
10048
10220
  fromPartial(object) {
10049
- const message = createBaseQueryAllSentinelActivityRequest();
10221
+ const message = createBaseQueryBondedRolesByTypeRequest();
10222
+ message.roleType = object.roleType ?? 0;
10050
10223
  message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
10051
10224
  return message;
10052
10225
  },
10053
10226
  fromAmino(object) {
10054
- const message = createBaseQueryAllSentinelActivityRequest();
10227
+ const message = createBaseQueryBondedRolesByTypeRequest();
10228
+ if (object.role_type !== undefined && object.role_type !== null) {
10229
+ message.roleType = object.role_type;
10230
+ }
10055
10231
  if (object.pagination !== undefined && object.pagination !== null) {
10056
10232
  message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
10057
10233
  }
@@ -10059,42 +10235,43 @@ exports.QueryAllSentinelActivityRequest = {
10059
10235
  },
10060
10236
  toAmino(message) {
10061
10237
  const obj = {};
10238
+ obj.role_type = message.roleType === 0 ? undefined : message.roleType;
10062
10239
  obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
10063
10240
  return obj;
10064
10241
  },
10065
10242
  fromAminoMsg(object) {
10066
- return exports.QueryAllSentinelActivityRequest.fromAmino(object.value);
10243
+ return exports.QueryBondedRolesByTypeRequest.fromAmino(object.value);
10067
10244
  },
10068
10245
  fromProtoMsg(message) {
10069
- return exports.QueryAllSentinelActivityRequest.decode(message.value);
10246
+ return exports.QueryBondedRolesByTypeRequest.decode(message.value);
10070
10247
  },
10071
10248
  toProto(message) {
10072
- return exports.QueryAllSentinelActivityRequest.encode(message).finish();
10249
+ return exports.QueryBondedRolesByTypeRequest.encode(message).finish();
10073
10250
  },
10074
10251
  toProtoMsg(message) {
10075
10252
  return {
10076
- typeUrl: "/sparkdream.rep.v1.QueryAllSentinelActivityRequest",
10077
- value: exports.QueryAllSentinelActivityRequest.encode(message).finish()
10253
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRolesByTypeRequest",
10254
+ value: exports.QueryBondedRolesByTypeRequest.encode(message).finish()
10078
10255
  };
10079
10256
  }
10080
10257
  };
10081
- function createBaseQueryAllSentinelActivityResponse() {
10258
+ function createBaseQueryBondedRolesByTypeResponse() {
10082
10259
  return {
10083
- sentinelActivity: [],
10260
+ bondedRoles: [],
10084
10261
  pagination: undefined
10085
10262
  };
10086
10263
  }
10087
10264
  /**
10088
- * QueryAllSentinelActivityResponse defines the QueryAllSentinelActivityResponse message.
10089
- * @name QueryAllSentinelActivityResponse
10265
+ * QueryBondedRolesByTypeResponse holds the paginated list of BondedRole records.
10266
+ * @name QueryBondedRolesByTypeResponse
10090
10267
  * @package sparkdream.rep.v1
10091
- * @see proto type: sparkdream.rep.v1.QueryAllSentinelActivityResponse
10268
+ * @see proto type: sparkdream.rep.v1.QueryBondedRolesByTypeResponse
10092
10269
  */
10093
- exports.QueryAllSentinelActivityResponse = {
10094
- typeUrl: "/sparkdream.rep.v1.QueryAllSentinelActivityResponse",
10270
+ exports.QueryBondedRolesByTypeResponse = {
10271
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRolesByTypeResponse",
10095
10272
  encode(message, writer = binary_1.BinaryWriter.create()) {
10096
- for (const v of message.sentinelActivity) {
10097
- sentinel_activity_1.SentinelActivity.encode(v, writer.uint32(10).fork()).ldelim();
10273
+ for (const v of message.bondedRoles) {
10274
+ bonded_role_1.BondedRole.encode(v, writer.uint32(10).fork()).ldelim();
10098
10275
  }
10099
10276
  if (message.pagination !== undefined) {
10100
10277
  pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
@@ -10104,12 +10281,12 @@ exports.QueryAllSentinelActivityResponse = {
10104
10281
  decode(input, length) {
10105
10282
  const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
10106
10283
  let end = length === undefined ? reader.len : reader.pos + length;
10107
- const message = createBaseQueryAllSentinelActivityResponse();
10284
+ const message = createBaseQueryBondedRolesByTypeResponse();
10108
10285
  while (reader.pos < end) {
10109
10286
  const tag = reader.uint32();
10110
10287
  switch (tag >>> 3) {
10111
10288
  case 1:
10112
- message.sentinelActivity.push(sentinel_activity_1.SentinelActivity.decode(reader, reader.uint32()));
10289
+ message.bondedRoles.push(bonded_role_1.BondedRole.decode(reader, reader.uint32()));
10113
10290
  break;
10114
10291
  case 2:
10115
10292
  message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
@@ -10122,14 +10299,14 @@ exports.QueryAllSentinelActivityResponse = {
10122
10299
  return message;
10123
10300
  },
10124
10301
  fromPartial(object) {
10125
- const message = createBaseQueryAllSentinelActivityResponse();
10126
- message.sentinelActivity = object.sentinelActivity?.map(e => sentinel_activity_1.SentinelActivity.fromPartial(e)) || [];
10302
+ const message = createBaseQueryBondedRolesByTypeResponse();
10303
+ message.bondedRoles = object.bondedRoles?.map(e => bonded_role_1.BondedRole.fromPartial(e)) || [];
10127
10304
  message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
10128
10305
  return message;
10129
10306
  },
10130
10307
  fromAmino(object) {
10131
- const message = createBaseQueryAllSentinelActivityResponse();
10132
- message.sentinelActivity = object.sentinel_activity?.map(e => sentinel_activity_1.SentinelActivity.fromAmino(e)) || [];
10308
+ const message = createBaseQueryBondedRolesByTypeResponse();
10309
+ message.bondedRoles = object.bonded_roles?.map(e => bonded_role_1.BondedRole.fromAmino(e)) || [];
10133
10310
  if (object.pagination !== undefined && object.pagination !== null) {
10134
10311
  message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
10135
10312
  }
@@ -10137,59 +10314,59 @@ exports.QueryAllSentinelActivityResponse = {
10137
10314
  },
10138
10315
  toAmino(message) {
10139
10316
  const obj = {};
10140
- if (message.sentinelActivity) {
10141
- obj.sentinel_activity = message.sentinelActivity.map(e => e ? sentinel_activity_1.SentinelActivity.toAmino(e) : undefined);
10317
+ if (message.bondedRoles) {
10318
+ obj.bonded_roles = message.bondedRoles.map(e => e ? bonded_role_1.BondedRole.toAmino(e) : undefined);
10142
10319
  }
10143
10320
  else {
10144
- obj.sentinel_activity = message.sentinelActivity;
10321
+ obj.bonded_roles = message.bondedRoles;
10145
10322
  }
10146
10323
  obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
10147
10324
  return obj;
10148
10325
  },
10149
10326
  fromAminoMsg(object) {
10150
- return exports.QueryAllSentinelActivityResponse.fromAmino(object.value);
10327
+ return exports.QueryBondedRolesByTypeResponse.fromAmino(object.value);
10151
10328
  },
10152
10329
  fromProtoMsg(message) {
10153
- return exports.QueryAllSentinelActivityResponse.decode(message.value);
10330
+ return exports.QueryBondedRolesByTypeResponse.decode(message.value);
10154
10331
  },
10155
10332
  toProto(message) {
10156
- return exports.QueryAllSentinelActivityResponse.encode(message).finish();
10333
+ return exports.QueryBondedRolesByTypeResponse.encode(message).finish();
10157
10334
  },
10158
10335
  toProtoMsg(message) {
10159
10336
  return {
10160
- typeUrl: "/sparkdream.rep.v1.QueryAllSentinelActivityResponse",
10161
- value: exports.QueryAllSentinelActivityResponse.encode(message).finish()
10337
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRolesByTypeResponse",
10338
+ value: exports.QueryBondedRolesByTypeResponse.encode(message).finish()
10162
10339
  };
10163
10340
  }
10164
10341
  };
10165
- function createBaseQuerySentinelStatusRequest() {
10342
+ function createBaseQueryBondedRoleConfigRequest() {
10166
10343
  return {
10167
- address: ""
10344
+ roleType: 0
10168
10345
  };
10169
10346
  }
10170
10347
  /**
10171
- * QuerySentinelStatusRequest defines the QuerySentinelStatusRequest message.
10172
- * @name QuerySentinelStatusRequest
10348
+ * QueryBondedRoleConfigRequest fetches the policy config for a role_type.
10349
+ * @name QueryBondedRoleConfigRequest
10173
10350
  * @package sparkdream.rep.v1
10174
- * @see proto type: sparkdream.rep.v1.QuerySentinelStatusRequest
10351
+ * @see proto type: sparkdream.rep.v1.QueryBondedRoleConfigRequest
10175
10352
  */
10176
- exports.QuerySentinelStatusRequest = {
10177
- typeUrl: "/sparkdream.rep.v1.QuerySentinelStatusRequest",
10353
+ exports.QueryBondedRoleConfigRequest = {
10354
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRoleConfigRequest",
10178
10355
  encode(message, writer = binary_1.BinaryWriter.create()) {
10179
- if (message.address !== "") {
10180
- writer.uint32(10).string(message.address);
10356
+ if (message.roleType !== 0) {
10357
+ writer.uint32(8).int32(message.roleType);
10181
10358
  }
10182
10359
  return writer;
10183
10360
  },
10184
10361
  decode(input, length) {
10185
10362
  const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
10186
10363
  let end = length === undefined ? reader.len : reader.pos + length;
10187
- const message = createBaseQuerySentinelStatusRequest();
10364
+ const message = createBaseQueryBondedRoleConfigRequest();
10188
10365
  while (reader.pos < end) {
10189
10366
  const tag = reader.uint32();
10190
10367
  switch (tag >>> 3) {
10191
10368
  case 1:
10192
- message.address = reader.string();
10369
+ message.roleType = reader.int32();
10193
10370
  break;
10194
10371
  default:
10195
10372
  reader.skipType(tag & 7);
@@ -10199,242 +10376,66 @@ exports.QuerySentinelStatusRequest = {
10199
10376
  return message;
10200
10377
  },
10201
10378
  fromPartial(object) {
10202
- const message = createBaseQuerySentinelStatusRequest();
10203
- message.address = object.address ?? "";
10204
- return message;
10205
- },
10206
- fromAmino(object) {
10207
- const message = createBaseQuerySentinelStatusRequest();
10208
- if (object.address !== undefined && object.address !== null) {
10209
- message.address = object.address;
10210
- }
10211
- return message;
10212
- },
10213
- toAmino(message) {
10214
- const obj = {};
10215
- obj.address = message.address === "" ? undefined : message.address;
10216
- return obj;
10217
- },
10218
- fromAminoMsg(object) {
10219
- return exports.QuerySentinelStatusRequest.fromAmino(object.value);
10220
- },
10221
- fromProtoMsg(message) {
10222
- return exports.QuerySentinelStatusRequest.decode(message.value);
10223
- },
10224
- toProto(message) {
10225
- return exports.QuerySentinelStatusRequest.encode(message).finish();
10226
- },
10227
- toProtoMsg(message) {
10228
- return {
10229
- typeUrl: "/sparkdream.rep.v1.QuerySentinelStatusRequest",
10230
- value: exports.QuerySentinelStatusRequest.encode(message).finish()
10231
- };
10232
- }
10233
- };
10234
- function createBaseQuerySentinelStatusResponse() {
10235
- return {
10236
- address: "",
10237
- bondStatus: BigInt(0),
10238
- currentBond: ""
10239
- };
10240
- }
10241
- /**
10242
- * QuerySentinelStatusResponse defines the QuerySentinelStatusResponse message.
10243
- * @name QuerySentinelStatusResponse
10244
- * @package sparkdream.rep.v1
10245
- * @see proto type: sparkdream.rep.v1.QuerySentinelStatusResponse
10246
- */
10247
- exports.QuerySentinelStatusResponse = {
10248
- typeUrl: "/sparkdream.rep.v1.QuerySentinelStatusResponse",
10249
- encode(message, writer = binary_1.BinaryWriter.create()) {
10250
- if (message.address !== "") {
10251
- writer.uint32(10).string(message.address);
10252
- }
10253
- if (message.bondStatus !== BigInt(0)) {
10254
- writer.uint32(16).uint64(message.bondStatus);
10255
- }
10256
- if (message.currentBond !== "") {
10257
- writer.uint32(26).string(message.currentBond);
10258
- }
10259
- return writer;
10260
- },
10261
- decode(input, length) {
10262
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
10263
- let end = length === undefined ? reader.len : reader.pos + length;
10264
- const message = createBaseQuerySentinelStatusResponse();
10265
- while (reader.pos < end) {
10266
- const tag = reader.uint32();
10267
- switch (tag >>> 3) {
10268
- case 1:
10269
- message.address = reader.string();
10270
- break;
10271
- case 2:
10272
- message.bondStatus = reader.uint64();
10273
- break;
10274
- case 3:
10275
- message.currentBond = reader.string();
10276
- break;
10277
- default:
10278
- reader.skipType(tag & 7);
10279
- break;
10280
- }
10281
- }
10282
- return message;
10283
- },
10284
- fromPartial(object) {
10285
- const message = createBaseQuerySentinelStatusResponse();
10286
- message.address = object.address ?? "";
10287
- message.bondStatus = object.bondStatus !== undefined && object.bondStatus !== null ? BigInt(object.bondStatus.toString()) : BigInt(0);
10288
- message.currentBond = object.currentBond ?? "";
10289
- return message;
10290
- },
10291
- fromAmino(object) {
10292
- const message = createBaseQuerySentinelStatusResponse();
10293
- if (object.address !== undefined && object.address !== null) {
10294
- message.address = object.address;
10295
- }
10296
- if (object.bond_status !== undefined && object.bond_status !== null) {
10297
- message.bondStatus = BigInt(object.bond_status);
10298
- }
10299
- if (object.current_bond !== undefined && object.current_bond !== null) {
10300
- message.currentBond = object.current_bond;
10301
- }
10302
- return message;
10303
- },
10304
- toAmino(message) {
10305
- const obj = {};
10306
- obj.address = message.address === "" ? undefined : message.address;
10307
- obj.bond_status = message.bondStatus !== BigInt(0) ? message.bondStatus?.toString() : undefined;
10308
- obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
10309
- return obj;
10310
- },
10311
- fromAminoMsg(object) {
10312
- return exports.QuerySentinelStatusResponse.fromAmino(object.value);
10313
- },
10314
- fromProtoMsg(message) {
10315
- return exports.QuerySentinelStatusResponse.decode(message.value);
10316
- },
10317
- toProto(message) {
10318
- return exports.QuerySentinelStatusResponse.encode(message).finish();
10319
- },
10320
- toProtoMsg(message) {
10321
- return {
10322
- typeUrl: "/sparkdream.rep.v1.QuerySentinelStatusResponse",
10323
- value: exports.QuerySentinelStatusResponse.encode(message).finish()
10324
- };
10325
- }
10326
- };
10327
- function createBaseQuerySentinelBondCommitmentRequest() {
10328
- return {
10329
- address: ""
10330
- };
10331
- }
10332
- /**
10333
- * QuerySentinelBondCommitmentRequest defines the QuerySentinelBondCommitmentRequest message.
10334
- * @name QuerySentinelBondCommitmentRequest
10335
- * @package sparkdream.rep.v1
10336
- * @see proto type: sparkdream.rep.v1.QuerySentinelBondCommitmentRequest
10337
- */
10338
- exports.QuerySentinelBondCommitmentRequest = {
10339
- typeUrl: "/sparkdream.rep.v1.QuerySentinelBondCommitmentRequest",
10340
- encode(message, writer = binary_1.BinaryWriter.create()) {
10341
- if (message.address !== "") {
10342
- writer.uint32(10).string(message.address);
10343
- }
10344
- return writer;
10345
- },
10346
- decode(input, length) {
10347
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
10348
- let end = length === undefined ? reader.len : reader.pos + length;
10349
- const message = createBaseQuerySentinelBondCommitmentRequest();
10350
- while (reader.pos < end) {
10351
- const tag = reader.uint32();
10352
- switch (tag >>> 3) {
10353
- case 1:
10354
- message.address = reader.string();
10355
- break;
10356
- default:
10357
- reader.skipType(tag & 7);
10358
- break;
10359
- }
10360
- }
10361
- return message;
10362
- },
10363
- fromPartial(object) {
10364
- const message = createBaseQuerySentinelBondCommitmentRequest();
10365
- message.address = object.address ?? "";
10379
+ const message = createBaseQueryBondedRoleConfigRequest();
10380
+ message.roleType = object.roleType ?? 0;
10366
10381
  return message;
10367
10382
  },
10368
10383
  fromAmino(object) {
10369
- const message = createBaseQuerySentinelBondCommitmentRequest();
10370
- if (object.address !== undefined && object.address !== null) {
10371
- message.address = object.address;
10384
+ const message = createBaseQueryBondedRoleConfigRequest();
10385
+ if (object.role_type !== undefined && object.role_type !== null) {
10386
+ message.roleType = object.role_type;
10372
10387
  }
10373
10388
  return message;
10374
10389
  },
10375
10390
  toAmino(message) {
10376
10391
  const obj = {};
10377
- obj.address = message.address === "" ? undefined : message.address;
10392
+ obj.role_type = message.roleType === 0 ? undefined : message.roleType;
10378
10393
  return obj;
10379
10394
  },
10380
10395
  fromAminoMsg(object) {
10381
- return exports.QuerySentinelBondCommitmentRequest.fromAmino(object.value);
10396
+ return exports.QueryBondedRoleConfigRequest.fromAmino(object.value);
10382
10397
  },
10383
10398
  fromProtoMsg(message) {
10384
- return exports.QuerySentinelBondCommitmentRequest.decode(message.value);
10399
+ return exports.QueryBondedRoleConfigRequest.decode(message.value);
10385
10400
  },
10386
10401
  toProto(message) {
10387
- return exports.QuerySentinelBondCommitmentRequest.encode(message).finish();
10402
+ return exports.QueryBondedRoleConfigRequest.encode(message).finish();
10388
10403
  },
10389
10404
  toProtoMsg(message) {
10390
10405
  return {
10391
- typeUrl: "/sparkdream.rep.v1.QuerySentinelBondCommitmentRequest",
10392
- value: exports.QuerySentinelBondCommitmentRequest.encode(message).finish()
10406
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRoleConfigRequest",
10407
+ value: exports.QueryBondedRoleConfigRequest.encode(message).finish()
10393
10408
  };
10394
10409
  }
10395
10410
  };
10396
- function createBaseQuerySentinelBondCommitmentResponse() {
10411
+ function createBaseQueryBondedRoleConfigResponse() {
10397
10412
  return {
10398
- currentBond: "",
10399
- totalCommittedBond: "",
10400
- availableBond: ""
10413
+ bondedRoleConfig: bonded_role_1.BondedRoleConfig.fromPartial({})
10401
10414
  };
10402
10415
  }
10403
10416
  /**
10404
- * QuerySentinelBondCommitmentResponse defines the QuerySentinelBondCommitmentResponse message.
10405
- * @name QuerySentinelBondCommitmentResponse
10417
+ * QueryBondedRoleConfigResponse holds the fetched BondedRoleConfig.
10418
+ * @name QueryBondedRoleConfigResponse
10406
10419
  * @package sparkdream.rep.v1
10407
- * @see proto type: sparkdream.rep.v1.QuerySentinelBondCommitmentResponse
10420
+ * @see proto type: sparkdream.rep.v1.QueryBondedRoleConfigResponse
10408
10421
  */
10409
- exports.QuerySentinelBondCommitmentResponse = {
10410
- typeUrl: "/sparkdream.rep.v1.QuerySentinelBondCommitmentResponse",
10422
+ exports.QueryBondedRoleConfigResponse = {
10423
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRoleConfigResponse",
10411
10424
  encode(message, writer = binary_1.BinaryWriter.create()) {
10412
- if (message.currentBond !== "") {
10413
- writer.uint32(10).string(message.currentBond);
10414
- }
10415
- if (message.totalCommittedBond !== "") {
10416
- writer.uint32(18).string(message.totalCommittedBond);
10417
- }
10418
- if (message.availableBond !== "") {
10419
- writer.uint32(26).string(message.availableBond);
10425
+ if (message.bondedRoleConfig !== undefined) {
10426
+ bonded_role_1.BondedRoleConfig.encode(message.bondedRoleConfig, writer.uint32(10).fork()).ldelim();
10420
10427
  }
10421
10428
  return writer;
10422
10429
  },
10423
10430
  decode(input, length) {
10424
10431
  const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
10425
10432
  let end = length === undefined ? reader.len : reader.pos + length;
10426
- const message = createBaseQuerySentinelBondCommitmentResponse();
10433
+ const message = createBaseQueryBondedRoleConfigResponse();
10427
10434
  while (reader.pos < end) {
10428
10435
  const tag = reader.uint32();
10429
10436
  switch (tag >>> 3) {
10430
10437
  case 1:
10431
- message.currentBond = reader.string();
10432
- break;
10433
- case 2:
10434
- message.totalCommittedBond = reader.string();
10435
- break;
10436
- case 3:
10437
- message.availableBond = reader.string();
10438
+ message.bondedRoleConfig = bonded_role_1.BondedRoleConfig.decode(reader, reader.uint32());
10438
10439
  break;
10439
10440
  default:
10440
10441
  reader.skipType(tag & 7);
@@ -10444,45 +10445,35 @@ exports.QuerySentinelBondCommitmentResponse = {
10444
10445
  return message;
10445
10446
  },
10446
10447
  fromPartial(object) {
10447
- const message = createBaseQuerySentinelBondCommitmentResponse();
10448
- message.currentBond = object.currentBond ?? "";
10449
- message.totalCommittedBond = object.totalCommittedBond ?? "";
10450
- message.availableBond = object.availableBond ?? "";
10448
+ const message = createBaseQueryBondedRoleConfigResponse();
10449
+ message.bondedRoleConfig = object.bondedRoleConfig !== undefined && object.bondedRoleConfig !== null ? bonded_role_1.BondedRoleConfig.fromPartial(object.bondedRoleConfig) : undefined;
10451
10450
  return message;
10452
10451
  },
10453
10452
  fromAmino(object) {
10454
- const message = createBaseQuerySentinelBondCommitmentResponse();
10455
- if (object.current_bond !== undefined && object.current_bond !== null) {
10456
- message.currentBond = object.current_bond;
10457
- }
10458
- if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
10459
- message.totalCommittedBond = object.total_committed_bond;
10460
- }
10461
- if (object.available_bond !== undefined && object.available_bond !== null) {
10462
- message.availableBond = object.available_bond;
10453
+ const message = createBaseQueryBondedRoleConfigResponse();
10454
+ if (object.bonded_role_config !== undefined && object.bonded_role_config !== null) {
10455
+ message.bondedRoleConfig = bonded_role_1.BondedRoleConfig.fromAmino(object.bonded_role_config);
10463
10456
  }
10464
10457
  return message;
10465
10458
  },
10466
10459
  toAmino(message) {
10467
10460
  const obj = {};
10468
- obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
10469
- obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
10470
- obj.available_bond = message.availableBond === "" ? undefined : message.availableBond;
10461
+ obj.bonded_role_config = message.bondedRoleConfig ? bonded_role_1.BondedRoleConfig.toAmino(message.bondedRoleConfig) : undefined;
10471
10462
  return obj;
10472
10463
  },
10473
10464
  fromAminoMsg(object) {
10474
- return exports.QuerySentinelBondCommitmentResponse.fromAmino(object.value);
10465
+ return exports.QueryBondedRoleConfigResponse.fromAmino(object.value);
10475
10466
  },
10476
10467
  fromProtoMsg(message) {
10477
- return exports.QuerySentinelBondCommitmentResponse.decode(message.value);
10468
+ return exports.QueryBondedRoleConfigResponse.decode(message.value);
10478
10469
  },
10479
10470
  toProto(message) {
10480
- return exports.QuerySentinelBondCommitmentResponse.encode(message).finish();
10471
+ return exports.QueryBondedRoleConfigResponse.encode(message).finish();
10481
10472
  },
10482
10473
  toProtoMsg(message) {
10483
10474
  return {
10484
- typeUrl: "/sparkdream.rep.v1.QuerySentinelBondCommitmentResponse",
10485
- value: exports.QuerySentinelBondCommitmentResponse.encode(message).finish()
10475
+ typeUrl: "/sparkdream.rep.v1.QueryBondedRoleConfigResponse",
10476
+ value: exports.QueryBondedRoleConfigResponse.encode(message).finish()
10486
10477
  };
10487
10478
  }
10488
10479
  };