@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
@@ -22,6 +22,7 @@ import { BondedRole, BondedRoleConfig } from "./bonded_role";
22
22
  import { RoleActivity } from "./role_activity";
23
23
  import { InitiativeReview } from "./initiative_review";
24
24
  import { ReviewBounty } from "./review_bounty";
25
+ import { InitiativeBounty } from "./initiative_bounty";
25
26
  import { BinaryReader, BinaryWriter } from "../../../binary";
26
27
  function createBaseGenesisState() {
27
28
  return {
@@ -68,7 +69,8 @@ function createBaseGenesisState() {
68
69
  roleRewardDayFundingList: [],
69
70
  reviewBountyList: [],
70
71
  economicState: undefined,
71
- giftRecordList: []
72
+ giftRecordList: [],
73
+ initiativeBountyList: []
72
74
  };
73
75
  }
74
76
  /**
@@ -214,6 +216,9 @@ export const GenesisState = {
214
216
  for (const v of message.giftRecordList) {
215
217
  GiftRecordEntry.encode(v, writer.uint32(354).fork()).ldelim();
216
218
  }
219
+ for (const v of message.initiativeBountyList) {
220
+ InitiativeBounty.encode(v, writer.uint32(362).fork()).ldelim();
221
+ }
217
222
  return writer;
218
223
  },
219
224
  decode(input, length) {
@@ -363,6 +368,9 @@ export const GenesisState = {
363
368
  case 44:
364
369
  message.giftRecordList.push(GiftRecordEntry.decode(reader, reader.uint32()));
365
370
  break;
371
+ case 45:
372
+ message.initiativeBountyList.push(InitiativeBounty.decode(reader, reader.uint32()));
373
+ break;
366
374
  default:
367
375
  reader.skipType(tag & 7);
368
376
  break;
@@ -416,6 +424,7 @@ export const GenesisState = {
416
424
  message.reviewBountyList = object.reviewBountyList?.map(e => ReviewBounty.fromPartial(e)) || [];
417
425
  message.economicState = object.economicState !== undefined && object.economicState !== null ? EconomicState.fromPartial(object.economicState) : undefined;
418
426
  message.giftRecordList = object.giftRecordList?.map(e => GiftRecordEntry.fromPartial(e)) || [];
427
+ message.initiativeBountyList = object.initiativeBountyList?.map(e => InitiativeBounty.fromPartial(e)) || [];
419
428
  return message;
420
429
  },
421
430
  fromAmino(object) {
@@ -492,6 +501,7 @@ export const GenesisState = {
492
501
  message.economicState = EconomicState.fromAmino(object.economic_state);
493
502
  }
494
503
  message.giftRecordList = object.gift_record_list?.map(e => GiftRecordEntry.fromAmino(e)) || [];
504
+ message.initiativeBountyList = object.initiative_bounty_list?.map(e => InitiativeBounty.fromAmino(e)) || [];
495
505
  return message;
496
506
  },
497
507
  toAmino(message) {
@@ -690,6 +700,12 @@ export const GenesisState = {
690
700
  else {
691
701
  obj.gift_record_list = message.giftRecordList;
692
702
  }
703
+ if (message.initiativeBountyList) {
704
+ obj.initiative_bounty_list = message.initiativeBountyList.map(e => e ? InitiativeBounty.toAmino(e) : undefined);
705
+ }
706
+ else {
707
+ obj.initiative_bounty_list = message.initiativeBountyList;
708
+ }
693
709
  return obj;
694
710
  },
695
711
  fromAminoMsg(object) {
@@ -955,7 +971,7 @@ function createBaseGiftRecordEntry() {
955
971
  };
956
972
  }
957
973
  /**
958
- * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
974
+ * GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
959
975
  * for genesis because the live collection is keyed by the pair.
960
976
  * @name GiftRecordEntry
961
977
  * @package sparkdream.rep.v1
@@ -0,0 +1,200 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ function createBaseInitiativeBounty() {
4
+ return {
5
+ initiativeId: BigInt(0),
6
+ amount: "",
7
+ contributions: []
8
+ };
9
+ }
10
+ /**
11
+ * InitiativeBounty is DREAM escrowed against one initiative by members who
12
+ * want the work done, paid to the assignee only if the initiative completes.
13
+ *
14
+ * The budget is minted; a bounty moves DREAM that already exists, so it is the
15
+ * non-inflationary way to signal demand. Because it is contingent on completion
16
+ * it is also a route for DREAM between members, which is why it is capped
17
+ * against the budget and per funder, barred to anyone affiliated with the work,
18
+ * taxed on release, and counted against the assignee's recipient-side transfer
19
+ * limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
20
+ * and is never contingent on approval.
21
+ * @name InitiativeBounty
22
+ * @package sparkdream.rep.v1
23
+ * @see proto type: sparkdream.rep.v1.InitiativeBounty
24
+ */
25
+ export const InitiativeBounty = {
26
+ typeUrl: "/sparkdream.rep.v1.InitiativeBounty",
27
+ encode(message, writer = BinaryWriter.create()) {
28
+ if (message.initiativeId !== BigInt(0)) {
29
+ writer.uint32(8).uint64(message.initiativeId);
30
+ }
31
+ if (message.amount !== "") {
32
+ writer.uint32(18).string(message.amount);
33
+ }
34
+ for (const v of message.contributions) {
35
+ InitiativeBountyContribution.encode(v, writer.uint32(26).fork()).ldelim();
36
+ }
37
+ return writer;
38
+ },
39
+ decode(input, length) {
40
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
41
+ let end = length === undefined ? reader.len : reader.pos + length;
42
+ const message = createBaseInitiativeBounty();
43
+ while (reader.pos < end) {
44
+ const tag = reader.uint32();
45
+ switch (tag >>> 3) {
46
+ case 1:
47
+ message.initiativeId = reader.uint64();
48
+ break;
49
+ case 2:
50
+ message.amount = reader.string();
51
+ break;
52
+ case 3:
53
+ message.contributions.push(InitiativeBountyContribution.decode(reader, reader.uint32()));
54
+ break;
55
+ default:
56
+ reader.skipType(tag & 7);
57
+ break;
58
+ }
59
+ }
60
+ return message;
61
+ },
62
+ fromPartial(object) {
63
+ const message = createBaseInitiativeBounty();
64
+ message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
65
+ message.amount = object.amount ?? "";
66
+ message.contributions = object.contributions?.map(e => InitiativeBountyContribution.fromPartial(e)) || [];
67
+ return message;
68
+ },
69
+ fromAmino(object) {
70
+ const message = createBaseInitiativeBounty();
71
+ if (object.initiative_id !== undefined && object.initiative_id !== null) {
72
+ message.initiativeId = BigInt(object.initiative_id);
73
+ }
74
+ if (object.amount !== undefined && object.amount !== null) {
75
+ message.amount = object.amount;
76
+ }
77
+ message.contributions = object.contributions?.map(e => InitiativeBountyContribution.fromAmino(e)) || [];
78
+ return message;
79
+ },
80
+ toAmino(message) {
81
+ const obj = {};
82
+ obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
83
+ obj.amount = message.amount === "" ? undefined : message.amount;
84
+ if (message.contributions) {
85
+ obj.contributions = message.contributions.map(e => e ? InitiativeBountyContribution.toAmino(e) : undefined);
86
+ }
87
+ else {
88
+ obj.contributions = message.contributions;
89
+ }
90
+ return obj;
91
+ },
92
+ fromAminoMsg(object) {
93
+ return InitiativeBounty.fromAmino(object.value);
94
+ },
95
+ fromProtoMsg(message) {
96
+ return InitiativeBounty.decode(message.value);
97
+ },
98
+ toProto(message) {
99
+ return InitiativeBounty.encode(message).finish();
100
+ },
101
+ toProtoMsg(message) {
102
+ return {
103
+ typeUrl: "/sparkdream.rep.v1.InitiativeBounty",
104
+ value: InitiativeBounty.encode(message).finish()
105
+ };
106
+ }
107
+ };
108
+ function createBaseInitiativeBountyContribution() {
109
+ return {
110
+ funder: "",
111
+ amount: "",
112
+ fundedAt: BigInt(0)
113
+ };
114
+ }
115
+ /**
116
+ * InitiativeBountyContribution is one funder's stake in an initiative bounty.
117
+ * @name InitiativeBountyContribution
118
+ * @package sparkdream.rep.v1
119
+ * @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
120
+ */
121
+ export const InitiativeBountyContribution = {
122
+ typeUrl: "/sparkdream.rep.v1.InitiativeBountyContribution",
123
+ encode(message, writer = BinaryWriter.create()) {
124
+ if (message.funder !== "") {
125
+ writer.uint32(10).string(message.funder);
126
+ }
127
+ if (message.amount !== "") {
128
+ writer.uint32(18).string(message.amount);
129
+ }
130
+ if (message.fundedAt !== BigInt(0)) {
131
+ writer.uint32(24).int64(message.fundedAt);
132
+ }
133
+ return writer;
134
+ },
135
+ decode(input, length) {
136
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
137
+ let end = length === undefined ? reader.len : reader.pos + length;
138
+ const message = createBaseInitiativeBountyContribution();
139
+ while (reader.pos < end) {
140
+ const tag = reader.uint32();
141
+ switch (tag >>> 3) {
142
+ case 1:
143
+ message.funder = reader.string();
144
+ break;
145
+ case 2:
146
+ message.amount = reader.string();
147
+ break;
148
+ case 3:
149
+ message.fundedAt = reader.int64();
150
+ break;
151
+ default:
152
+ reader.skipType(tag & 7);
153
+ break;
154
+ }
155
+ }
156
+ return message;
157
+ },
158
+ fromPartial(object) {
159
+ const message = createBaseInitiativeBountyContribution();
160
+ message.funder = object.funder ?? "";
161
+ message.amount = object.amount ?? "";
162
+ message.fundedAt = object.fundedAt !== undefined && object.fundedAt !== null ? BigInt(object.fundedAt.toString()) : BigInt(0);
163
+ return message;
164
+ },
165
+ fromAmino(object) {
166
+ const message = createBaseInitiativeBountyContribution();
167
+ if (object.funder !== undefined && object.funder !== null) {
168
+ message.funder = object.funder;
169
+ }
170
+ if (object.amount !== undefined && object.amount !== null) {
171
+ message.amount = object.amount;
172
+ }
173
+ if (object.funded_at !== undefined && object.funded_at !== null) {
174
+ message.fundedAt = BigInt(object.funded_at);
175
+ }
176
+ return message;
177
+ },
178
+ toAmino(message) {
179
+ const obj = {};
180
+ obj.funder = message.funder === "" ? undefined : message.funder;
181
+ obj.amount = message.amount === "" ? undefined : message.amount;
182
+ obj.funded_at = message.fundedAt !== BigInt(0) ? message.fundedAt?.toString() : undefined;
183
+ return obj;
184
+ },
185
+ fromAminoMsg(object) {
186
+ return InitiativeBountyContribution.fromAmino(object.value);
187
+ },
188
+ fromProtoMsg(message) {
189
+ return InitiativeBountyContribution.decode(message.value);
190
+ },
191
+ toProto(message) {
192
+ return InitiativeBountyContribution.encode(message).finish();
193
+ },
194
+ toProtoMsg(message) {
195
+ return {
196
+ typeUrl: "/sparkdream.rep.v1.InitiativeBountyContribution",
197
+ value: InitiativeBountyContribution.encode(message).finish()
198
+ };
199
+ }
200
+ };
@@ -474,12 +474,12 @@ function createBaseMember() {
474
474
  zeroedAt: BigInt(0),
475
475
  zeroedCount: 0,
476
476
  lastDecayEpoch: BigInt(0),
477
- tipsGivenThisEpoch: 0,
477
+ tipsSentThisEpoch: "",
478
478
  lastTipEpoch: BigInt(0),
479
479
  completedInterimsCount: 0,
480
480
  completedInitiativesCount: 0,
481
- giftsSentThisEpoch: "",
482
- lastGiftEpoch: BigInt(0),
481
+ transferReceivedThisEpoch: "",
482
+ lastTransferReceivedEpoch: BigInt(0),
483
483
  lastCreditResetSeason: BigInt(0),
484
484
  reputationGainedThisEpoch: {},
485
485
  lastRepGainEpoch: BigInt(0),
@@ -489,7 +489,12 @@ function createBaseMember() {
489
489
  forumRepPerTag: {},
490
490
  lifetimeForumRepPerTag: {},
491
491
  joinedAtHeight: BigInt(0),
492
- contentStakedDream: ""
492
+ contentStakedDream: "",
493
+ transferReceivedThisSeason: "",
494
+ lastTransferReceivedSeason: BigInt(0),
495
+ initiativeBountyFundedThisEpoch: "",
496
+ lastInitiativeBountyEpoch: BigInt(0),
497
+ contentLicense: ""
493
498
  };
494
499
  }
495
500
  /**
@@ -561,8 +566,8 @@ export const Member = {
561
566
  if (message.lastDecayEpoch !== BigInt(0)) {
562
567
  writer.uint32(144).int64(message.lastDecayEpoch);
563
568
  }
564
- if (message.tipsGivenThisEpoch !== 0) {
565
- writer.uint32(152).uint32(message.tipsGivenThisEpoch);
569
+ if (message.tipsSentThisEpoch !== "") {
570
+ writer.uint32(154).string(message.tipsSentThisEpoch);
566
571
  }
567
572
  if (message.lastTipEpoch !== BigInt(0)) {
568
573
  writer.uint32(160).int64(message.lastTipEpoch);
@@ -573,11 +578,11 @@ export const Member = {
573
578
  if (message.completedInitiativesCount !== 0) {
574
579
  writer.uint32(176).uint32(message.completedInitiativesCount);
575
580
  }
576
- if (message.giftsSentThisEpoch !== "") {
577
- writer.uint32(186).string(message.giftsSentThisEpoch);
581
+ if (message.transferReceivedThisEpoch !== "") {
582
+ writer.uint32(186).string(message.transferReceivedThisEpoch);
578
583
  }
579
- if (message.lastGiftEpoch !== BigInt(0)) {
580
- writer.uint32(192).int64(message.lastGiftEpoch);
584
+ if (message.lastTransferReceivedEpoch !== BigInt(0)) {
585
+ writer.uint32(192).int64(message.lastTransferReceivedEpoch);
581
586
  }
582
587
  if (message.lastCreditResetSeason !== BigInt(0)) {
583
588
  writer.uint32(200).int64(message.lastCreditResetSeason);
@@ -618,6 +623,21 @@ export const Member = {
618
623
  if (message.contentStakedDream !== "") {
619
624
  writer.uint32(274).string(message.contentStakedDream);
620
625
  }
626
+ if (message.transferReceivedThisSeason !== "") {
627
+ writer.uint32(282).string(message.transferReceivedThisSeason);
628
+ }
629
+ if (message.lastTransferReceivedSeason !== BigInt(0)) {
630
+ writer.uint32(288).int64(message.lastTransferReceivedSeason);
631
+ }
632
+ if (message.initiativeBountyFundedThisEpoch !== "") {
633
+ writer.uint32(298).string(message.initiativeBountyFundedThisEpoch);
634
+ }
635
+ if (message.lastInitiativeBountyEpoch !== BigInt(0)) {
636
+ writer.uint32(304).int64(message.lastInitiativeBountyEpoch);
637
+ }
638
+ if (message.contentLicense !== "") {
639
+ writer.uint32(314).string(message.contentLicense);
640
+ }
621
641
  return writer;
622
642
  },
623
643
  decode(input, length) {
@@ -688,7 +708,7 @@ export const Member = {
688
708
  message.lastDecayEpoch = reader.int64();
689
709
  break;
690
710
  case 19:
691
- message.tipsGivenThisEpoch = reader.uint32();
711
+ message.tipsSentThisEpoch = reader.string();
692
712
  break;
693
713
  case 20:
694
714
  message.lastTipEpoch = reader.int64();
@@ -700,10 +720,10 @@ export const Member = {
700
720
  message.completedInitiativesCount = reader.uint32();
701
721
  break;
702
722
  case 23:
703
- message.giftsSentThisEpoch = reader.string();
723
+ message.transferReceivedThisEpoch = reader.string();
704
724
  break;
705
725
  case 24:
706
- message.lastGiftEpoch = reader.int64();
726
+ message.lastTransferReceivedEpoch = reader.int64();
707
727
  break;
708
728
  case 25:
709
729
  message.lastCreditResetSeason = reader.int64();
@@ -744,6 +764,21 @@ export const Member = {
744
764
  case 34:
745
765
  message.contentStakedDream = reader.string();
746
766
  break;
767
+ case 35:
768
+ message.transferReceivedThisSeason = reader.string();
769
+ break;
770
+ case 36:
771
+ message.lastTransferReceivedSeason = reader.int64();
772
+ break;
773
+ case 37:
774
+ message.initiativeBountyFundedThisEpoch = reader.string();
775
+ break;
776
+ case 38:
777
+ message.lastInitiativeBountyEpoch = reader.int64();
778
+ break;
779
+ case 39:
780
+ message.contentLicense = reader.string();
781
+ break;
747
782
  default:
748
783
  reader.skipType(tag & 7);
749
784
  break;
@@ -781,12 +816,12 @@ export const Member = {
781
816
  message.zeroedAt = object.zeroedAt !== undefined && object.zeroedAt !== null ? BigInt(object.zeroedAt.toString()) : BigInt(0);
782
817
  message.zeroedCount = object.zeroedCount ?? 0;
783
818
  message.lastDecayEpoch = object.lastDecayEpoch !== undefined && object.lastDecayEpoch !== null ? BigInt(object.lastDecayEpoch.toString()) : BigInt(0);
784
- message.tipsGivenThisEpoch = object.tipsGivenThisEpoch ?? 0;
819
+ message.tipsSentThisEpoch = object.tipsSentThisEpoch ?? "";
785
820
  message.lastTipEpoch = object.lastTipEpoch !== undefined && object.lastTipEpoch !== null ? BigInt(object.lastTipEpoch.toString()) : BigInt(0);
786
821
  message.completedInterimsCount = object.completedInterimsCount ?? 0;
787
822
  message.completedInitiativesCount = object.completedInitiativesCount ?? 0;
788
- message.giftsSentThisEpoch = object.giftsSentThisEpoch ?? "";
789
- message.lastGiftEpoch = object.lastGiftEpoch !== undefined && object.lastGiftEpoch !== null ? BigInt(object.lastGiftEpoch.toString()) : BigInt(0);
823
+ message.transferReceivedThisEpoch = object.transferReceivedThisEpoch ?? "";
824
+ message.lastTransferReceivedEpoch = object.lastTransferReceivedEpoch !== undefined && object.lastTransferReceivedEpoch !== null ? BigInt(object.lastTransferReceivedEpoch.toString()) : BigInt(0);
790
825
  message.lastCreditResetSeason = object.lastCreditResetSeason !== undefined && object.lastCreditResetSeason !== null ? BigInt(object.lastCreditResetSeason.toString()) : BigInt(0);
791
826
  message.reputationGainedThisEpoch = Object.entries(object.reputationGainedThisEpoch ?? {}).reduce((acc, [key, value]) => {
792
827
  if (value !== undefined) {
@@ -812,6 +847,11 @@ export const Member = {
812
847
  }, {});
813
848
  message.joinedAtHeight = object.joinedAtHeight !== undefined && object.joinedAtHeight !== null ? BigInt(object.joinedAtHeight.toString()) : BigInt(0);
814
849
  message.contentStakedDream = object.contentStakedDream ?? "";
850
+ message.transferReceivedThisSeason = object.transferReceivedThisSeason ?? "";
851
+ message.lastTransferReceivedSeason = object.lastTransferReceivedSeason !== undefined && object.lastTransferReceivedSeason !== null ? BigInt(object.lastTransferReceivedSeason.toString()) : BigInt(0);
852
+ message.initiativeBountyFundedThisEpoch = object.initiativeBountyFundedThisEpoch ?? "";
853
+ message.lastInitiativeBountyEpoch = object.lastInitiativeBountyEpoch !== undefined && object.lastInitiativeBountyEpoch !== null ? BigInt(object.lastInitiativeBountyEpoch.toString()) : BigInt(0);
854
+ message.contentLicense = object.contentLicense ?? "";
815
855
  return message;
816
856
  },
817
857
  fromAmino(object) {
@@ -874,8 +914,8 @@ export const Member = {
874
914
  if (object.last_decay_epoch !== undefined && object.last_decay_epoch !== null) {
875
915
  message.lastDecayEpoch = BigInt(object.last_decay_epoch);
876
916
  }
877
- if (object.tips_given_this_epoch !== undefined && object.tips_given_this_epoch !== null) {
878
- message.tipsGivenThisEpoch = object.tips_given_this_epoch;
917
+ if (object.tips_sent_this_epoch !== undefined && object.tips_sent_this_epoch !== null) {
918
+ message.tipsSentThisEpoch = object.tips_sent_this_epoch;
879
919
  }
880
920
  if (object.last_tip_epoch !== undefined && object.last_tip_epoch !== null) {
881
921
  message.lastTipEpoch = BigInt(object.last_tip_epoch);
@@ -886,11 +926,11 @@ export const Member = {
886
926
  if (object.completed_initiatives_count !== undefined && object.completed_initiatives_count !== null) {
887
927
  message.completedInitiativesCount = object.completed_initiatives_count;
888
928
  }
889
- if (object.gifts_sent_this_epoch !== undefined && object.gifts_sent_this_epoch !== null) {
890
- message.giftsSentThisEpoch = object.gifts_sent_this_epoch;
929
+ if (object.transfer_received_this_epoch !== undefined && object.transfer_received_this_epoch !== null) {
930
+ message.transferReceivedThisEpoch = object.transfer_received_this_epoch;
891
931
  }
892
- if (object.last_gift_epoch !== undefined && object.last_gift_epoch !== null) {
893
- message.lastGiftEpoch = BigInt(object.last_gift_epoch);
932
+ if (object.last_transfer_received_epoch !== undefined && object.last_transfer_received_epoch !== null) {
933
+ message.lastTransferReceivedEpoch = BigInt(object.last_transfer_received_epoch);
894
934
  }
895
935
  if (object.last_credit_reset_season !== undefined && object.last_credit_reset_season !== null) {
896
936
  message.lastCreditResetSeason = BigInt(object.last_credit_reset_season);
@@ -931,6 +971,21 @@ export const Member = {
931
971
  if (object.content_staked_dream !== undefined && object.content_staked_dream !== null) {
932
972
  message.contentStakedDream = object.content_staked_dream;
933
973
  }
974
+ if (object.transfer_received_this_season !== undefined && object.transfer_received_this_season !== null) {
975
+ message.transferReceivedThisSeason = object.transfer_received_this_season;
976
+ }
977
+ if (object.last_transfer_received_season !== undefined && object.last_transfer_received_season !== null) {
978
+ message.lastTransferReceivedSeason = BigInt(object.last_transfer_received_season);
979
+ }
980
+ if (object.initiative_bounty_funded_this_epoch !== undefined && object.initiative_bounty_funded_this_epoch !== null) {
981
+ message.initiativeBountyFundedThisEpoch = object.initiative_bounty_funded_this_epoch;
982
+ }
983
+ if (object.last_initiative_bounty_epoch !== undefined && object.last_initiative_bounty_epoch !== null) {
984
+ message.lastInitiativeBountyEpoch = BigInt(object.last_initiative_bounty_epoch);
985
+ }
986
+ if (object.content_license !== undefined && object.content_license !== null) {
987
+ message.contentLicense = object.content_license;
988
+ }
934
989
  return message;
935
990
  },
936
991
  toAmino(message) {
@@ -968,12 +1023,12 @@ export const Member = {
968
1023
  obj.zeroed_at = message.zeroedAt !== BigInt(0) ? message.zeroedAt?.toString() : undefined;
969
1024
  obj.zeroed_count = message.zeroedCount === 0 ? undefined : message.zeroedCount;
970
1025
  obj.last_decay_epoch = message.lastDecayEpoch !== BigInt(0) ? message.lastDecayEpoch?.toString() : undefined;
971
- obj.tips_given_this_epoch = message.tipsGivenThisEpoch === 0 ? undefined : message.tipsGivenThisEpoch;
1026
+ obj.tips_sent_this_epoch = message.tipsSentThisEpoch === "" ? undefined : message.tipsSentThisEpoch;
972
1027
  obj.last_tip_epoch = message.lastTipEpoch !== BigInt(0) ? message.lastTipEpoch?.toString() : undefined;
973
1028
  obj.completed_interims_count = message.completedInterimsCount === 0 ? undefined : message.completedInterimsCount;
974
1029
  obj.completed_initiatives_count = message.completedInitiativesCount === 0 ? undefined : message.completedInitiativesCount;
975
- obj.gifts_sent_this_epoch = message.giftsSentThisEpoch === "" ? undefined : message.giftsSentThisEpoch;
976
- obj.last_gift_epoch = message.lastGiftEpoch !== BigInt(0) ? message.lastGiftEpoch?.toString() : undefined;
1030
+ obj.transfer_received_this_epoch = message.transferReceivedThisEpoch === "" ? undefined : message.transferReceivedThisEpoch;
1031
+ obj.last_transfer_received_epoch = message.lastTransferReceivedEpoch !== BigInt(0) ? message.lastTransferReceivedEpoch?.toString() : undefined;
977
1032
  obj.last_credit_reset_season = message.lastCreditResetSeason !== BigInt(0) ? message.lastCreditResetSeason?.toString() : undefined;
978
1033
  obj.reputation_gained_this_epoch = {};
979
1034
  if (message.reputationGainedThisEpoch) {
@@ -999,6 +1054,11 @@ export const Member = {
999
1054
  }
1000
1055
  obj.joined_at_height = message.joinedAtHeight !== BigInt(0) ? message.joinedAtHeight?.toString() : undefined;
1001
1056
  obj.content_staked_dream = message.contentStakedDream === "" ? undefined : message.contentStakedDream;
1057
+ obj.transfer_received_this_season = message.transferReceivedThisSeason === "" ? undefined : message.transferReceivedThisSeason;
1058
+ obj.last_transfer_received_season = message.lastTransferReceivedSeason !== BigInt(0) ? message.lastTransferReceivedSeason?.toString() : undefined;
1059
+ obj.initiative_bounty_funded_this_epoch = message.initiativeBountyFundedThisEpoch === "" ? undefined : message.initiativeBountyFundedThisEpoch;
1060
+ obj.last_initiative_bounty_epoch = message.lastInitiativeBountyEpoch !== BigInt(0) ? message.lastInitiativeBountyEpoch?.toString() : undefined;
1061
+ obj.content_license = message.contentLicense === "" ? undefined : message.contentLicense;
1002
1062
  return obj;
1003
1063
  },
1004
1064
  fromAminoMsg(object) {
@@ -1021,12 +1081,14 @@ function createBaseGiftRecord() {
1021
1081
  return {
1022
1082
  sender: "",
1023
1083
  recipient: "",
1024
- lastGiftBlock: BigInt(0)
1084
+ totalGifted: ""
1025
1085
  };
1026
1086
  }
1027
1087
  /**
1028
- * GiftRecord tracks the last time a sender gifted a specific recipient
1029
- * Used to enforce per-recipient cooldown periods
1088
+ * GiftRecord is the lifetime ledger of what a sender has gifted one of their
1089
+ * invitees, bounded by max_gift_per_invitee. A gift is a one-time seed to help
1090
+ * an invitee get started, so the cap is per invitee for life rather than per
1091
+ * epoch.
1030
1092
  * @name GiftRecord
1031
1093
  * @package sparkdream.rep.v1
1032
1094
  * @see proto type: sparkdream.rep.v1.GiftRecord
@@ -1040,8 +1102,8 @@ export const GiftRecord = {
1040
1102
  if (message.recipient !== "") {
1041
1103
  writer.uint32(18).string(message.recipient);
1042
1104
  }
1043
- if (message.lastGiftBlock !== BigInt(0)) {
1044
- writer.uint32(24).int64(message.lastGiftBlock);
1105
+ if (message.totalGifted !== "") {
1106
+ writer.uint32(26).string(message.totalGifted);
1045
1107
  }
1046
1108
  return writer;
1047
1109
  },
@@ -1059,7 +1121,7 @@ export const GiftRecord = {
1059
1121
  message.recipient = reader.string();
1060
1122
  break;
1061
1123
  case 3:
1062
- message.lastGiftBlock = reader.int64();
1124
+ message.totalGifted = reader.string();
1063
1125
  break;
1064
1126
  default:
1065
1127
  reader.skipType(tag & 7);
@@ -1072,7 +1134,7 @@ export const GiftRecord = {
1072
1134
  const message = createBaseGiftRecord();
1073
1135
  message.sender = object.sender ?? "";
1074
1136
  message.recipient = object.recipient ?? "";
1075
- message.lastGiftBlock = object.lastGiftBlock !== undefined && object.lastGiftBlock !== null ? BigInt(object.lastGiftBlock.toString()) : BigInt(0);
1137
+ message.totalGifted = object.totalGifted ?? "";
1076
1138
  return message;
1077
1139
  },
1078
1140
  fromAmino(object) {
@@ -1083,8 +1145,8 @@ export const GiftRecord = {
1083
1145
  if (object.recipient !== undefined && object.recipient !== null) {
1084
1146
  message.recipient = object.recipient;
1085
1147
  }
1086
- if (object.last_gift_block !== undefined && object.last_gift_block !== null) {
1087
- message.lastGiftBlock = BigInt(object.last_gift_block);
1148
+ if (object.total_gifted !== undefined && object.total_gifted !== null) {
1149
+ message.totalGifted = object.total_gifted;
1088
1150
  }
1089
1151
  return message;
1090
1152
  },
@@ -1092,7 +1154,7 @@ export const GiftRecord = {
1092
1154
  const obj = {};
1093
1155
  obj.sender = message.sender === "" ? undefined : message.sender;
1094
1156
  obj.recipient = message.recipient === "" ? undefined : message.recipient;
1095
- obj.last_gift_block = message.lastGiftBlock !== BigInt(0) ? message.lastGiftBlock?.toString() : undefined;
1157
+ obj.total_gifted = message.totalGifted === "" ? undefined : message.totalGifted;
1096
1158
  return obj;
1097
1159
  },
1098
1160
  fromAminoMsg(object) {