@sparkdreamnft/sparkdreamjs 0.0.42 → 0.0.44

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 (206) hide show
  1. package/akash/bundle.d.ts +134 -134
  2. package/akash/bundle.js +150 -150
  3. package/cosmos/bundle.d.ts +160 -160
  4. package/cosmos/bundle.js +182 -182
  5. package/esm/akash/bundle.js +150 -150
  6. package/esm/cosmos/bundle.js +182 -182
  7. package/esm/ibc/bundle.js +116 -116
  8. package/esm/sparkdream/artifact/module/v1/module.js +71 -0
  9. package/esm/sparkdream/artifact/v1/genesis.js +279 -0
  10. package/esm/sparkdream/artifact/v1/params.js +645 -0
  11. package/esm/sparkdream/artifact/v1/query.js +3415 -0
  12. package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
  13. package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
  14. package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
  15. package/esm/sparkdream/artifact/v1/tx.js +5751 -0
  16. package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
  17. package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
  18. package/esm/sparkdream/artifact/v1/types.js +2603 -0
  19. package/esm/sparkdream/blog/v1/params.js +37 -1
  20. package/esm/sparkdream/blog/v1/post.js +38 -1
  21. package/esm/sparkdream/blog/v1/query.js +351 -0
  22. package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
  23. package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
  24. package/esm/sparkdream/blog/v1/types.js +38 -1
  25. package/esm/sparkdream/bundle.js +521 -483
  26. package/esm/sparkdream/client.js +4 -1
  27. package/esm/sparkdream/collect/v1/params.js +102 -126
  28. package/esm/sparkdream/collect/v1/types.js +207 -123
  29. package/esm/sparkdream/common/v1/media_flag.js +63 -0
  30. package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
  31. package/esm/sparkdream/commons/v1/query.js +27 -3
  32. package/esm/sparkdream/federation/v1/packet.js +13 -1
  33. package/esm/sparkdream/federation/v1/query.js +163 -0
  34. package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
  35. package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
  36. package/esm/sparkdream/federation/v1/tx.js +13 -1
  37. package/esm/sparkdream/federation/v1/types.js +134 -2
  38. package/esm/sparkdream/forum/v1/params.js +37 -1
  39. package/esm/sparkdream/forum/v1/post.js +38 -1
  40. package/esm/sparkdream/forum/v1/query.js +176 -0
  41. package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
  42. package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
  43. package/esm/sparkdream/lcd.js +5 -0
  44. package/esm/sparkdream/rep/v1/accountability.js +22 -0
  45. package/esm/sparkdream/rep/v1/genesis.js +18 -2
  46. package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
  47. package/esm/sparkdream/rep/v1/member.js +97 -35
  48. package/esm/sparkdream/rep/v1/params.js +186 -66
  49. package/esm/sparkdream/rep/v1/query.js +530 -0
  50. package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
  51. package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
  52. package/esm/sparkdream/rep/v1/tx.js +354 -7
  53. package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
  54. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +13 -1
  55. package/esm/sparkdream/rpc.query.js +3 -0
  56. package/esm/sparkdream/rpc.tx.js +3 -0
  57. package/esm/sparkdream/service/v1/checkpoint.js +125 -0
  58. package/esm/sparkdream/service/v1/genesis.js +17 -1
  59. package/esm/sparkdream/service/v1/query.js +317 -0
  60. package/esm/sparkdream/service/v1/query.lcd.js +18 -0
  61. package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
  62. package/esm/sparkdream/service/v1/service_type_config.js +37 -1
  63. package/esm/sparkdream/service/v1/tx.amino.js +6 -1
  64. package/esm/sparkdream/service/v1/tx.js +169 -0
  65. package/esm/sparkdream/service/v1/tx.registry.js +20 -2
  66. package/esm/sparkdream/service/v1/tx.rpc.msg.js +10 -1
  67. package/esm/sparkdream/shield/v1/params.js +13 -1
  68. package/esm/sparkdream/shield/v1/types.js +66 -1
  69. package/esm/sparkdream/sparkdream/v1/query.js +176 -0
  70. package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
  71. package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
  72. package/esm/tendermint/bundle.js +20 -20
  73. package/ibc/bundle.d.ts +99 -99
  74. package/ibc/bundle.js +116 -116
  75. package/package.json +1 -1
  76. package/sparkdream/artifact/module/v1/module.d.ts +54 -0
  77. package/sparkdream/artifact/module/v1/module.js +74 -0
  78. package/sparkdream/artifact/v1/genesis.d.ts +88 -0
  79. package/sparkdream/artifact/v1/genesis.js +282 -0
  80. package/sparkdream/artifact/v1/params.d.ts +251 -0
  81. package/sparkdream/artifact/v1/params.js +648 -0
  82. package/sparkdream/artifact/v1/query.d.ts +1986 -0
  83. package/sparkdream/artifact/v1/query.js +3418 -0
  84. package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
  85. package/sparkdream/artifact/v1/query.lcd.js +163 -0
  86. package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
  87. package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
  88. package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
  89. package/sparkdream/artifact/v1/tx.amino.js +162 -0
  90. package/sparkdream/artifact/v1/tx.d.ts +3268 -0
  91. package/sparkdream/artifact/v1/tx.js +5755 -0
  92. package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
  93. package/sparkdream/artifact/v1/tx.registry.js +577 -0
  94. package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
  95. package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
  96. package/sparkdream/artifact/v1/types.d.ts +1157 -0
  97. package/sparkdream/artifact/v1/types.js +2620 -0
  98. package/sparkdream/blog/v1/params.d.ts +46 -0
  99. package/sparkdream/blog/v1/params.js +37 -1
  100. package/sparkdream/blog/v1/post.d.ts +24 -0
  101. package/sparkdream/blog/v1/post.js +38 -1
  102. package/sparkdream/blog/v1/query.d.ts +195 -0
  103. package/sparkdream/blog/v1/query.js +352 -1
  104. package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
  105. package/sparkdream/blog/v1/query.lcd.js +12 -0
  106. package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
  107. package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
  108. package/sparkdream/blog/v1/types.d.ts +24 -0
  109. package/sparkdream/blog/v1/types.js +38 -1
  110. package/sparkdream/bundle.d.ts +20540 -17854
  111. package/sparkdream/bundle.js +521 -483
  112. package/sparkdream/client.d.ts +160 -0
  113. package/sparkdream/client.js +4 -1
  114. package/sparkdream/collect/v1/params.d.ts +0 -4
  115. package/sparkdream/collect/v1/params.js +102 -126
  116. package/sparkdream/collect/v1/types.d.ts +80 -4
  117. package/sparkdream/collect/v1/types.js +207 -123
  118. package/sparkdream/common/v1/media_flag.d.ts +23 -0
  119. package/sparkdream/common/v1/media_flag.js +68 -0
  120. package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
  121. package/sparkdream/common/v1/moderation_reason.js +1 -1
  122. package/sparkdream/commons/v1/query.d.ts +19 -1
  123. package/sparkdream/commons/v1/query.js +26 -2
  124. package/sparkdream/federation/v1/packet.d.ts +14 -0
  125. package/sparkdream/federation/v1/packet.js +13 -1
  126. package/sparkdream/federation/v1/query.d.ts +92 -0
  127. package/sparkdream/federation/v1/query.js +164 -1
  128. package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
  129. package/sparkdream/federation/v1/query.lcd.js +7 -0
  130. package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
  131. package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
  132. package/sparkdream/federation/v1/tx.d.ts +18 -0
  133. package/sparkdream/federation/v1/tx.js +13 -1
  134. package/sparkdream/federation/v1/types.d.ts +128 -0
  135. package/sparkdream/federation/v1/types.js +135 -3
  136. package/sparkdream/forum/v1/params.d.ts +46 -0
  137. package/sparkdream/forum/v1/params.js +37 -1
  138. package/sparkdream/forum/v1/post.d.ts +30 -0
  139. package/sparkdream/forum/v1/post.js +38 -1
  140. package/sparkdream/forum/v1/query.d.ts +98 -0
  141. package/sparkdream/forum/v1/query.js +177 -1
  142. package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
  143. package/sparkdream/forum/v1/query.lcd.js +7 -0
  144. package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
  145. package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
  146. package/sparkdream/lcd.d.ts +3 -0
  147. package/sparkdream/lcd.js +5 -0
  148. package/sparkdream/rep/v1/accountability.d.ts +12 -0
  149. package/sparkdream/rep/v1/accountability.js +22 -0
  150. package/sparkdream/rep/v1/genesis.d.ts +18 -7
  151. package/sparkdream/rep/v1/genesis.js +18 -2
  152. package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
  153. package/sparkdream/rep/v1/initiative_bounty.js +203 -0
  154. package/sparkdream/rep/v1/member.d.ts +82 -28
  155. package/sparkdream/rep/v1/member.js +97 -35
  156. package/sparkdream/rep/v1/params.d.ts +128 -28
  157. package/sparkdream/rep/v1/params.js +186 -66
  158. package/sparkdream/rep/v1/query.d.ts +315 -10
  159. package/sparkdream/rep/v1/query.js +531 -1
  160. package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
  161. package/sparkdream/rep/v1/query.lcd.js +23 -0
  162. package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
  163. package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
  164. package/sparkdream/rep/v1/tx.d.ts +245 -1
  165. package/sparkdream/rep/v1/tx.js +355 -8
  166. package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
  167. package/sparkdream/rep/v1/tx.registry.js +37 -1
  168. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
  169. package/sparkdream/rep/v1/tx.rpc.msg.js +12 -0
  170. package/sparkdream/rpc.query.d.ts +32 -0
  171. package/sparkdream/rpc.query.js +3 -0
  172. package/sparkdream/rpc.tx.d.ts +3 -0
  173. package/sparkdream/rpc.tx.js +3 -0
  174. package/sparkdream/service/v1/checkpoint.d.ts +93 -0
  175. package/sparkdream/service/v1/checkpoint.js +128 -0
  176. package/sparkdream/service/v1/genesis.d.ts +15 -0
  177. package/sparkdream/service/v1/genesis.js +17 -1
  178. package/sparkdream/service/v1/query.d.ts +186 -0
  179. package/sparkdream/service/v1/query.js +318 -1
  180. package/sparkdream/service/v1/query.lcd.d.ts +3 -1
  181. package/sparkdream/service/v1/query.lcd.js +18 -0
  182. package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
  183. package/sparkdream/service/v1/query.rpc.Query.js +20 -0
  184. package/sparkdream/service/v1/service_type_config.d.ts +48 -0
  185. package/sparkdream/service/v1/service_type_config.js +37 -1
  186. package/sparkdream/service/v1/tx.amino.d.ts +6 -1
  187. package/sparkdream/service/v1/tx.amino.js +5 -0
  188. package/sparkdream/service/v1/tx.d.ts +97 -0
  189. package/sparkdream/service/v1/tx.js +170 -1
  190. package/sparkdream/service/v1/tx.registry.d.ts +13 -1
  191. package/sparkdream/service/v1/tx.registry.js +19 -1
  192. package/sparkdream/service/v1/tx.rpc.msg.d.ts +9 -1
  193. package/sparkdream/service/v1/tx.rpc.msg.js +9 -0
  194. package/sparkdream/shield/v1/params.d.ts +16 -0
  195. package/sparkdream/shield/v1/params.js +13 -1
  196. package/sparkdream/shield/v1/tx.d.ts +2 -2
  197. package/sparkdream/shield/v1/types.d.ts +45 -2
  198. package/sparkdream/shield/v1/types.js +69 -2
  199. package/sparkdream/sparkdream/v1/query.d.ts +132 -0
  200. package/sparkdream/sparkdream/v1/query.js +177 -1
  201. package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
  202. package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
  203. package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
  204. package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
  205. package/tendermint/bundle.d.ts +844 -844
  206. package/tendermint/bundle.js +20 -20
@@ -16,6 +16,18 @@ export declare enum GovActionType {
16
16
  * rejecting reviewers as overturned.
17
17
  */
18
18
  GOV_ACTION_TYPE_REVIEW_REJECTION = 10,
19
+ /**
20
+ * GOV_ACTION_TYPE_COLLECT_HIDE - A content-sentinel or council hide of an x/collect collection or item.
21
+ * action_target is the collect HideRecord id. Filed only through
22
+ * x/collect MsgAppealHide (rep's MsgAppealGovAction rejects it).
23
+ */
24
+ GOV_ACTION_TYPE_COLLECT_HIDE = 11,
25
+ /**
26
+ * GOV_ACTION_TYPE_ARTIFACT_HIDE - A content-sentinel or council hide of an x/artifact class or token.
27
+ * action_target is the artifact HideRecord id. Filed only through
28
+ * x/artifact MsgAppealHide.
29
+ */
30
+ GOV_ACTION_TYPE_ARTIFACT_HIDE = 12,
19
31
  UNRECOGNIZED = -1
20
32
  }
21
33
  export declare const GovActionTypeAmino: typeof GovActionType;
@@ -27,6 +27,18 @@ var GovActionType;
27
27
  * rejecting reviewers as overturned.
28
28
  */
29
29
  GovActionType[GovActionType["GOV_ACTION_TYPE_REVIEW_REJECTION"] = 10] = "GOV_ACTION_TYPE_REVIEW_REJECTION";
30
+ /**
31
+ * GOV_ACTION_TYPE_COLLECT_HIDE - A content-sentinel or council hide of an x/collect collection or item.
32
+ * action_target is the collect HideRecord id. Filed only through
33
+ * x/collect MsgAppealHide (rep's MsgAppealGovAction rejects it).
34
+ */
35
+ GovActionType[GovActionType["GOV_ACTION_TYPE_COLLECT_HIDE"] = 11] = "GOV_ACTION_TYPE_COLLECT_HIDE";
36
+ /**
37
+ * GOV_ACTION_TYPE_ARTIFACT_HIDE - A content-sentinel or council hide of an x/artifact class or token.
38
+ * action_target is the artifact HideRecord id. Filed only through
39
+ * x/artifact MsgAppealHide.
40
+ */
41
+ GovActionType[GovActionType["GOV_ACTION_TYPE_ARTIFACT_HIDE"] = 12] = "GOV_ACTION_TYPE_ARTIFACT_HIDE";
30
42
  GovActionType[GovActionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
31
43
  })(GovActionType || (exports.GovActionType = GovActionType = {}));
32
44
  exports.GovActionTypeAmino = GovActionType;
@@ -65,6 +77,12 @@ function govActionTypeFromJSON(object) {
65
77
  case 10:
66
78
  case "GOV_ACTION_TYPE_REVIEW_REJECTION":
67
79
  return GovActionType.GOV_ACTION_TYPE_REVIEW_REJECTION;
80
+ case 11:
81
+ case "GOV_ACTION_TYPE_COLLECT_HIDE":
82
+ return GovActionType.GOV_ACTION_TYPE_COLLECT_HIDE;
83
+ case 12:
84
+ case "GOV_ACTION_TYPE_ARTIFACT_HIDE":
85
+ return GovActionType.GOV_ACTION_TYPE_ARTIFACT_HIDE;
68
86
  case -1:
69
87
  case "UNRECOGNIZED":
70
88
  default:
@@ -95,6 +113,10 @@ function govActionTypeToJSON(object) {
95
113
  return "GOV_ACTION_TYPE_POST_HIDE";
96
114
  case GovActionType.GOV_ACTION_TYPE_REVIEW_REJECTION:
97
115
  return "GOV_ACTION_TYPE_REVIEW_REJECTION";
116
+ case GovActionType.GOV_ACTION_TYPE_COLLECT_HIDE:
117
+ return "GOV_ACTION_TYPE_COLLECT_HIDE";
118
+ case GovActionType.GOV_ACTION_TYPE_ARTIFACT_HIDE:
119
+ return "GOV_ACTION_TYPE_ARTIFACT_HIDE";
98
120
  case GovActionType.UNRECOGNIZED:
99
121
  default:
100
122
  return "UNRECOGNIZED";
@@ -21,6 +21,7 @@ import { BondedRole, BondedRoleAmino, BondedRoleConfig, BondedRoleConfigAmino }
21
21
  import { RoleActivity, RoleActivityAmino } from "./role_activity";
22
22
  import { InitiativeReview, InitiativeReviewAmino } from "./initiative_review";
23
23
  import { ReviewBounty, ReviewBountyAmino } from "./review_bounty";
24
+ import { InitiativeBounty, InitiativeBountyAmino } from "./initiative_bounty";
24
25
  import { BinaryReader, BinaryWriter } from "../../../binary";
25
26
  import { DeepPartial } from "../../../helpers";
26
27
  /**
@@ -129,10 +130,15 @@ export interface GenesisState {
129
130
  */
130
131
  economicState?: EconomicState;
131
132
  /**
132
- * Per-recipient gift cooldown records. Not exported meant a capped gift
133
- * re-enabled itself across a restart.
133
+ * Per-(sender, invitee) lifetime gift ledgers. Not exporting them would
134
+ * re-open every invitee's lifetime gift allowance across a restart.
134
135
  */
135
136
  giftRecordList: GiftRecordEntry[];
137
+ /**
138
+ * Initiative bounties are a lock on each funder's DREAM; dropping them on
139
+ * import would strand the escrow with nothing able to pay or refund it.
140
+ */
141
+ initiativeBountyList: InitiativeBounty[];
136
142
  }
137
143
  export interface GenesisStateProtoMsg {
138
144
  typeUrl: "/sparkdream.rep.v1.GenesisState";
@@ -244,10 +250,15 @@ export interface GenesisStateAmino {
244
250
  */
245
251
  economic_state?: EconomicStateAmino;
246
252
  /**
247
- * Per-recipient gift cooldown records. Not exported meant a capped gift
248
- * re-enabled itself across a restart.
253
+ * Per-(sender, invitee) lifetime gift ledgers. Not exporting them would
254
+ * re-open every invitee's lifetime gift allowance across a restart.
249
255
  */
250
256
  gift_record_list?: GiftRecordEntryAmino[];
257
+ /**
258
+ * Initiative bounties are a lock on each funder's DREAM; dropping them on
259
+ * import would strand the escrow with nothing able to pay or refund it.
260
+ */
261
+ initiative_bounty_list?: InitiativeBountyAmino[];
251
262
  }
252
263
  export interface GenesisStateAminoMsg {
253
264
  type: "/sparkdream.rep.v1.GenesisState";
@@ -322,7 +333,7 @@ export interface EconomicStateAminoMsg {
322
333
  value: EconomicStateAmino;
323
334
  }
324
335
  /**
325
- * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
336
+ * GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
326
337
  * for genesis because the live collection is keyed by the pair.
327
338
  * @name GiftRecordEntry
328
339
  * @package sparkdream.rep.v1
@@ -338,7 +349,7 @@ export interface GiftRecordEntryProtoMsg {
338
349
  value: Uint8Array;
339
350
  }
340
351
  /**
341
- * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
352
+ * GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
342
353
  * for genesis because the live collection is keyed by the pair.
343
354
  * @name GiftRecordEntryAmino
344
355
  * @package sparkdream.rep.v1
@@ -466,7 +477,7 @@ export declare const EconomicState: {
466
477
  toProtoMsg(message: EconomicState): EconomicStateProtoMsg;
467
478
  };
468
479
  /**
469
- * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
480
+ * GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
470
481
  * for genesis because the live collection is keyed by the pair.
471
482
  * @name GiftRecordEntry
472
483
  * @package sparkdream.rep.v1
@@ -25,6 +25,7 @@ const bonded_role_1 = require("./bonded_role");
25
25
  const role_activity_1 = require("./role_activity");
26
26
  const initiative_review_1 = require("./initiative_review");
27
27
  const review_bounty_1 = require("./review_bounty");
28
+ const initiative_bounty_1 = require("./initiative_bounty");
28
29
  const binary_1 = require("../../../binary");
29
30
  function createBaseGenesisState() {
30
31
  return {
@@ -71,7 +72,8 @@ function createBaseGenesisState() {
71
72
  roleRewardDayFundingList: [],
72
73
  reviewBountyList: [],
73
74
  economicState: undefined,
74
- giftRecordList: []
75
+ giftRecordList: [],
76
+ initiativeBountyList: []
75
77
  };
76
78
  }
77
79
  /**
@@ -217,6 +219,9 @@ exports.GenesisState = {
217
219
  for (const v of message.giftRecordList) {
218
220
  exports.GiftRecordEntry.encode(v, writer.uint32(354).fork()).ldelim();
219
221
  }
222
+ for (const v of message.initiativeBountyList) {
223
+ initiative_bounty_1.InitiativeBounty.encode(v, writer.uint32(362).fork()).ldelim();
224
+ }
220
225
  return writer;
221
226
  },
222
227
  decode(input, length) {
@@ -366,6 +371,9 @@ exports.GenesisState = {
366
371
  case 44:
367
372
  message.giftRecordList.push(exports.GiftRecordEntry.decode(reader, reader.uint32()));
368
373
  break;
374
+ case 45:
375
+ message.initiativeBountyList.push(initiative_bounty_1.InitiativeBounty.decode(reader, reader.uint32()));
376
+ break;
369
377
  default:
370
378
  reader.skipType(tag & 7);
371
379
  break;
@@ -419,6 +427,7 @@ exports.GenesisState = {
419
427
  message.reviewBountyList = object.reviewBountyList?.map(e => review_bounty_1.ReviewBounty.fromPartial(e)) || [];
420
428
  message.economicState = object.economicState !== undefined && object.economicState !== null ? exports.EconomicState.fromPartial(object.economicState) : undefined;
421
429
  message.giftRecordList = object.giftRecordList?.map(e => exports.GiftRecordEntry.fromPartial(e)) || [];
430
+ message.initiativeBountyList = object.initiativeBountyList?.map(e => initiative_bounty_1.InitiativeBounty.fromPartial(e)) || [];
422
431
  return message;
423
432
  },
424
433
  fromAmino(object) {
@@ -495,6 +504,7 @@ exports.GenesisState = {
495
504
  message.economicState = exports.EconomicState.fromAmino(object.economic_state);
496
505
  }
497
506
  message.giftRecordList = object.gift_record_list?.map(e => exports.GiftRecordEntry.fromAmino(e)) || [];
507
+ message.initiativeBountyList = object.initiative_bounty_list?.map(e => initiative_bounty_1.InitiativeBounty.fromAmino(e)) || [];
498
508
  return message;
499
509
  },
500
510
  toAmino(message) {
@@ -693,6 +703,12 @@ exports.GenesisState = {
693
703
  else {
694
704
  obj.gift_record_list = message.giftRecordList;
695
705
  }
706
+ if (message.initiativeBountyList) {
707
+ obj.initiative_bounty_list = message.initiativeBountyList.map(e => e ? initiative_bounty_1.InitiativeBounty.toAmino(e) : undefined);
708
+ }
709
+ else {
710
+ obj.initiative_bounty_list = message.initiativeBountyList;
711
+ }
696
712
  return obj;
697
713
  },
698
714
  fromAminoMsg(object) {
@@ -958,7 +974,7 @@ function createBaseGiftRecordEntry() {
958
974
  };
959
975
  }
960
976
  /**
961
- * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
977
+ * GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
962
978
  * for genesis because the live collection is keyed by the pair.
963
979
  * @name GiftRecordEntry
964
980
  * @package sparkdream.rep.v1
@@ -0,0 +1,143 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ import { DeepPartial } from "../../../helpers";
3
+ /**
4
+ * InitiativeBounty is DREAM escrowed against one initiative by members who
5
+ * want the work done, paid to the assignee only if the initiative completes.
6
+ *
7
+ * The budget is minted; a bounty moves DREAM that already exists, so it is the
8
+ * non-inflationary way to signal demand. Because it is contingent on completion
9
+ * it is also a route for DREAM between members, which is why it is capped
10
+ * against the budget and per funder, barred to anyone affiliated with the work,
11
+ * taxed on release, and counted against the assignee's recipient-side transfer
12
+ * limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
13
+ * and is never contingent on approval.
14
+ * @name InitiativeBounty
15
+ * @package sparkdream.rep.v1
16
+ * @see proto type: sparkdream.rep.v1.InitiativeBounty
17
+ */
18
+ export interface InitiativeBounty {
19
+ initiativeId: bigint;
20
+ /**
21
+ * Total DREAM currently escrowed and unpaid.
22
+ */
23
+ amount: string;
24
+ /**
25
+ * Per-funder contributions, so refunds return each funder's own DREAM.
26
+ */
27
+ contributions: InitiativeBountyContribution[];
28
+ }
29
+ export interface InitiativeBountyProtoMsg {
30
+ typeUrl: "/sparkdream.rep.v1.InitiativeBounty";
31
+ value: Uint8Array;
32
+ }
33
+ /**
34
+ * InitiativeBounty is DREAM escrowed against one initiative by members who
35
+ * want the work done, paid to the assignee only if the initiative completes.
36
+ *
37
+ * The budget is minted; a bounty moves DREAM that already exists, so it is the
38
+ * non-inflationary way to signal demand. Because it is contingent on completion
39
+ * it is also a route for DREAM between members, which is why it is capped
40
+ * against the budget and per funder, barred to anyone affiliated with the work,
41
+ * taxed on release, and counted against the assignee's recipient-side transfer
42
+ * limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
43
+ * and is never contingent on approval.
44
+ * @name InitiativeBountyAmino
45
+ * @package sparkdream.rep.v1
46
+ * @see proto type: sparkdream.rep.v1.InitiativeBounty
47
+ */
48
+ export interface InitiativeBountyAmino {
49
+ initiative_id?: string;
50
+ /**
51
+ * Total DREAM currently escrowed and unpaid.
52
+ */
53
+ amount?: string;
54
+ /**
55
+ * Per-funder contributions, so refunds return each funder's own DREAM.
56
+ */
57
+ contributions?: InitiativeBountyContributionAmino[];
58
+ }
59
+ export interface InitiativeBountyAminoMsg {
60
+ type: "/sparkdream.rep.v1.InitiativeBounty";
61
+ value: InitiativeBountyAmino;
62
+ }
63
+ /**
64
+ * InitiativeBountyContribution is one funder's stake in an initiative bounty.
65
+ * @name InitiativeBountyContribution
66
+ * @package sparkdream.rep.v1
67
+ * @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
68
+ */
69
+ export interface InitiativeBountyContribution {
70
+ funder: string;
71
+ amount: string;
72
+ /**
73
+ * Block height, for initiative_bounty_reclaim_delay.
74
+ */
75
+ fundedAt: bigint;
76
+ }
77
+ export interface InitiativeBountyContributionProtoMsg {
78
+ typeUrl: "/sparkdream.rep.v1.InitiativeBountyContribution";
79
+ value: Uint8Array;
80
+ }
81
+ /**
82
+ * InitiativeBountyContribution is one funder's stake in an initiative bounty.
83
+ * @name InitiativeBountyContributionAmino
84
+ * @package sparkdream.rep.v1
85
+ * @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
86
+ */
87
+ export interface InitiativeBountyContributionAmino {
88
+ funder?: string;
89
+ amount?: string;
90
+ /**
91
+ * Block height, for initiative_bounty_reclaim_delay.
92
+ */
93
+ funded_at?: string;
94
+ }
95
+ export interface InitiativeBountyContributionAminoMsg {
96
+ type: "/sparkdream.rep.v1.InitiativeBountyContribution";
97
+ value: InitiativeBountyContributionAmino;
98
+ }
99
+ /**
100
+ * InitiativeBounty is DREAM escrowed against one initiative by members who
101
+ * want the work done, paid to the assignee only if the initiative completes.
102
+ *
103
+ * The budget is minted; a bounty moves DREAM that already exists, so it is the
104
+ * non-inflationary way to signal demand. Because it is contingent on completion
105
+ * it is also a route for DREAM between members, which is why it is capped
106
+ * against the budget and per funder, barred to anyone affiliated with the work,
107
+ * taxed on release, and counted against the assignee's recipient-side transfer
108
+ * limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
109
+ * and is never contingent on approval.
110
+ * @name InitiativeBounty
111
+ * @package sparkdream.rep.v1
112
+ * @see proto type: sparkdream.rep.v1.InitiativeBounty
113
+ */
114
+ export declare const InitiativeBounty: {
115
+ typeUrl: string;
116
+ encode(message: InitiativeBounty, writer?: BinaryWriter): BinaryWriter;
117
+ decode(input: BinaryReader | Uint8Array, length?: number): InitiativeBounty;
118
+ fromPartial(object: DeepPartial<InitiativeBounty>): InitiativeBounty;
119
+ fromAmino(object: InitiativeBountyAmino): InitiativeBounty;
120
+ toAmino(message: InitiativeBounty): InitiativeBountyAmino;
121
+ fromAminoMsg(object: InitiativeBountyAminoMsg): InitiativeBounty;
122
+ fromProtoMsg(message: InitiativeBountyProtoMsg): InitiativeBounty;
123
+ toProto(message: InitiativeBounty): Uint8Array;
124
+ toProtoMsg(message: InitiativeBounty): InitiativeBountyProtoMsg;
125
+ };
126
+ /**
127
+ * InitiativeBountyContribution is one funder's stake in an initiative bounty.
128
+ * @name InitiativeBountyContribution
129
+ * @package sparkdream.rep.v1
130
+ * @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
131
+ */
132
+ export declare const InitiativeBountyContribution: {
133
+ typeUrl: string;
134
+ encode(message: InitiativeBountyContribution, writer?: BinaryWriter): BinaryWriter;
135
+ decode(input: BinaryReader | Uint8Array, length?: number): InitiativeBountyContribution;
136
+ fromPartial(object: DeepPartial<InitiativeBountyContribution>): InitiativeBountyContribution;
137
+ fromAmino(object: InitiativeBountyContributionAmino): InitiativeBountyContribution;
138
+ toAmino(message: InitiativeBountyContribution): InitiativeBountyContributionAmino;
139
+ fromAminoMsg(object: InitiativeBountyContributionAminoMsg): InitiativeBountyContribution;
140
+ fromProtoMsg(message: InitiativeBountyContributionProtoMsg): InitiativeBountyContribution;
141
+ toProto(message: InitiativeBountyContribution): Uint8Array;
142
+ toProtoMsg(message: InitiativeBountyContribution): InitiativeBountyContributionProtoMsg;
143
+ };
@@ -0,0 +1,203 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InitiativeBountyContribution = exports.InitiativeBounty = void 0;
4
+ //@ts-nocheck
5
+ const binary_1 = require("../../../binary");
6
+ function createBaseInitiativeBounty() {
7
+ return {
8
+ initiativeId: BigInt(0),
9
+ amount: "",
10
+ contributions: []
11
+ };
12
+ }
13
+ /**
14
+ * InitiativeBounty is DREAM escrowed against one initiative by members who
15
+ * want the work done, paid to the assignee only if the initiative completes.
16
+ *
17
+ * The budget is minted; a bounty moves DREAM that already exists, so it is the
18
+ * non-inflationary way to signal demand. Because it is contingent on completion
19
+ * it is also a route for DREAM between members, which is why it is capped
20
+ * against the budget and per funder, barred to anyone affiliated with the work,
21
+ * taxed on release, and counted against the assignee's recipient-side transfer
22
+ * limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
23
+ * and is never contingent on approval.
24
+ * @name InitiativeBounty
25
+ * @package sparkdream.rep.v1
26
+ * @see proto type: sparkdream.rep.v1.InitiativeBounty
27
+ */
28
+ exports.InitiativeBounty = {
29
+ typeUrl: "/sparkdream.rep.v1.InitiativeBounty",
30
+ encode(message, writer = binary_1.BinaryWriter.create()) {
31
+ if (message.initiativeId !== BigInt(0)) {
32
+ writer.uint32(8).uint64(message.initiativeId);
33
+ }
34
+ if (message.amount !== "") {
35
+ writer.uint32(18).string(message.amount);
36
+ }
37
+ for (const v of message.contributions) {
38
+ exports.InitiativeBountyContribution.encode(v, writer.uint32(26).fork()).ldelim();
39
+ }
40
+ return writer;
41
+ },
42
+ decode(input, length) {
43
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
44
+ let end = length === undefined ? reader.len : reader.pos + length;
45
+ const message = createBaseInitiativeBounty();
46
+ while (reader.pos < end) {
47
+ const tag = reader.uint32();
48
+ switch (tag >>> 3) {
49
+ case 1:
50
+ message.initiativeId = reader.uint64();
51
+ break;
52
+ case 2:
53
+ message.amount = reader.string();
54
+ break;
55
+ case 3:
56
+ message.contributions.push(exports.InitiativeBountyContribution.decode(reader, reader.uint32()));
57
+ break;
58
+ default:
59
+ reader.skipType(tag & 7);
60
+ break;
61
+ }
62
+ }
63
+ return message;
64
+ },
65
+ fromPartial(object) {
66
+ const message = createBaseInitiativeBounty();
67
+ message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
68
+ message.amount = object.amount ?? "";
69
+ message.contributions = object.contributions?.map(e => exports.InitiativeBountyContribution.fromPartial(e)) || [];
70
+ return message;
71
+ },
72
+ fromAmino(object) {
73
+ const message = createBaseInitiativeBounty();
74
+ if (object.initiative_id !== undefined && object.initiative_id !== null) {
75
+ message.initiativeId = BigInt(object.initiative_id);
76
+ }
77
+ if (object.amount !== undefined && object.amount !== null) {
78
+ message.amount = object.amount;
79
+ }
80
+ message.contributions = object.contributions?.map(e => exports.InitiativeBountyContribution.fromAmino(e)) || [];
81
+ return message;
82
+ },
83
+ toAmino(message) {
84
+ const obj = {};
85
+ obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
86
+ obj.amount = message.amount === "" ? undefined : message.amount;
87
+ if (message.contributions) {
88
+ obj.contributions = message.contributions.map(e => e ? exports.InitiativeBountyContribution.toAmino(e) : undefined);
89
+ }
90
+ else {
91
+ obj.contributions = message.contributions;
92
+ }
93
+ return obj;
94
+ },
95
+ fromAminoMsg(object) {
96
+ return exports.InitiativeBounty.fromAmino(object.value);
97
+ },
98
+ fromProtoMsg(message) {
99
+ return exports.InitiativeBounty.decode(message.value);
100
+ },
101
+ toProto(message) {
102
+ return exports.InitiativeBounty.encode(message).finish();
103
+ },
104
+ toProtoMsg(message) {
105
+ return {
106
+ typeUrl: "/sparkdream.rep.v1.InitiativeBounty",
107
+ value: exports.InitiativeBounty.encode(message).finish()
108
+ };
109
+ }
110
+ };
111
+ function createBaseInitiativeBountyContribution() {
112
+ return {
113
+ funder: "",
114
+ amount: "",
115
+ fundedAt: BigInt(0)
116
+ };
117
+ }
118
+ /**
119
+ * InitiativeBountyContribution is one funder's stake in an initiative bounty.
120
+ * @name InitiativeBountyContribution
121
+ * @package sparkdream.rep.v1
122
+ * @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
123
+ */
124
+ exports.InitiativeBountyContribution = {
125
+ typeUrl: "/sparkdream.rep.v1.InitiativeBountyContribution",
126
+ encode(message, writer = binary_1.BinaryWriter.create()) {
127
+ if (message.funder !== "") {
128
+ writer.uint32(10).string(message.funder);
129
+ }
130
+ if (message.amount !== "") {
131
+ writer.uint32(18).string(message.amount);
132
+ }
133
+ if (message.fundedAt !== BigInt(0)) {
134
+ writer.uint32(24).int64(message.fundedAt);
135
+ }
136
+ return writer;
137
+ },
138
+ decode(input, length) {
139
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
140
+ let end = length === undefined ? reader.len : reader.pos + length;
141
+ const message = createBaseInitiativeBountyContribution();
142
+ while (reader.pos < end) {
143
+ const tag = reader.uint32();
144
+ switch (tag >>> 3) {
145
+ case 1:
146
+ message.funder = reader.string();
147
+ break;
148
+ case 2:
149
+ message.amount = reader.string();
150
+ break;
151
+ case 3:
152
+ message.fundedAt = reader.int64();
153
+ break;
154
+ default:
155
+ reader.skipType(tag & 7);
156
+ break;
157
+ }
158
+ }
159
+ return message;
160
+ },
161
+ fromPartial(object) {
162
+ const message = createBaseInitiativeBountyContribution();
163
+ message.funder = object.funder ?? "";
164
+ message.amount = object.amount ?? "";
165
+ message.fundedAt = object.fundedAt !== undefined && object.fundedAt !== null ? BigInt(object.fundedAt.toString()) : BigInt(0);
166
+ return message;
167
+ },
168
+ fromAmino(object) {
169
+ const message = createBaseInitiativeBountyContribution();
170
+ if (object.funder !== undefined && object.funder !== null) {
171
+ message.funder = object.funder;
172
+ }
173
+ if (object.amount !== undefined && object.amount !== null) {
174
+ message.amount = object.amount;
175
+ }
176
+ if (object.funded_at !== undefined && object.funded_at !== null) {
177
+ message.fundedAt = BigInt(object.funded_at);
178
+ }
179
+ return message;
180
+ },
181
+ toAmino(message) {
182
+ const obj = {};
183
+ obj.funder = message.funder === "" ? undefined : message.funder;
184
+ obj.amount = message.amount === "" ? undefined : message.amount;
185
+ obj.funded_at = message.fundedAt !== BigInt(0) ? message.fundedAt?.toString() : undefined;
186
+ return obj;
187
+ },
188
+ fromAminoMsg(object) {
189
+ return exports.InitiativeBountyContribution.fromAmino(object.value);
190
+ },
191
+ fromProtoMsg(message) {
192
+ return exports.InitiativeBountyContribution.decode(message.value);
193
+ },
194
+ toProto(message) {
195
+ return exports.InitiativeBountyContribution.encode(message).finish();
196
+ },
197
+ toProtoMsg(message) {
198
+ return {
199
+ typeUrl: "/sparkdream.rep.v1.InitiativeBountyContribution",
200
+ value: exports.InitiativeBountyContribution.encode(message).finish()
201
+ };
202
+ }
203
+ };