@sparkdreamnft/sparkdreamjs 0.0.43 → 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 +37 -1
  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 +20537 -17863
  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 +34 -0
  135. package/sparkdream/federation/v1/types.js +37 -1
  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
@@ -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
+ };
@@ -200,7 +200,11 @@ export interface Member {
200
200
  zeroedAt: bigint;
201
201
  zeroedCount: number;
202
202
  lastDecayEpoch: bigint;
203
- tipsGivenThisEpoch: number;
203
+ /**
204
+ * DREAM tipped this epoch (amount, not count), reset lazily when
205
+ * last_tip_epoch falls behind. Nil on records written before it existed.
206
+ */
207
+ tipsSentThisEpoch: string;
204
208
  lastTipEpoch: bigint;
205
209
  /**
206
210
  * Cached counts for performance (avoid full table scans)
@@ -211,13 +215,14 @@ export interface Member {
211
215
  */
212
216
  completedInitiativesCount: number;
213
217
  /**
214
- * Gift tracking for rate limiting
215
- */
216
- giftsSentThisEpoch: string;
217
- /**
218
- * Epoch when gift counter was last reset
218
+ * DREAM received through member-to-member transfers (tips and initiative
219
+ * bounty payouts) in the current epoch, bounded by
220
+ * max_transfer_received_per_epoch. The binding transfer limit sits on the
221
+ * recipient: a buyer can collect from any number of senders, so only a cap
222
+ * on what one account takes in bounds how fast a position can be bought.
219
223
  */
220
- lastGiftEpoch: bigint;
224
+ transferReceivedThisEpoch: string;
225
+ lastTransferReceivedEpoch: bigint;
221
226
  /**
222
227
  * Invitation credit tracking for lazy seasonal reset
223
228
  */
@@ -300,6 +305,28 @@ export interface Member {
300
305
  * readers must treat nil as zero.
301
306
  */
302
307
  contentStakedDream: string;
308
+ /**
309
+ * Season-scale counterpart of transfer_received_this_epoch, bounded by
310
+ * max_transfer_received_per_season.
311
+ */
312
+ transferReceivedThisSeason: string;
313
+ lastTransferReceivedSeason: bigint;
314
+ /**
315
+ * DREAM this member escrowed into initiative bounties this epoch, bounded by
316
+ * max_initiative_bounty_per_funder_epoch.
317
+ */
318
+ initiativeBountyFundedThisEpoch: string;
319
+ lastInitiativeBountyEpoch: bigint;
320
+ /**
321
+ * The content license this member agreed to publish under
322
+ * (docs/content-license.md). Set from MsgAcceptInvitation's signed
323
+ * accepted_content_license, or for genesis members from the genesis file,
324
+ * where GenesisState.Validate requires it. Never changed afterwards: a CC0
325
+ * dedication cannot be revoked, so zeroing and status changes leave it
326
+ * alone. An address joins only once, so the agreement was made at
327
+ * joined_at / joined_at_height.
328
+ */
329
+ contentLicense: string;
303
330
  }
304
331
  export interface MemberProtoMsg {
305
332
  typeUrl: "/sparkdream.rep.v1.Member";
@@ -355,7 +382,11 @@ export interface MemberAmino {
355
382
  zeroed_at?: string;
356
383
  zeroed_count?: number;
357
384
  last_decay_epoch?: string;
358
- tips_given_this_epoch?: number;
385
+ /**
386
+ * DREAM tipped this epoch (amount, not count), reset lazily when
387
+ * last_tip_epoch falls behind. Nil on records written before it existed.
388
+ */
389
+ tips_sent_this_epoch?: string;
359
390
  last_tip_epoch?: string;
360
391
  /**
361
392
  * Cached counts for performance (avoid full table scans)
@@ -366,13 +397,14 @@ export interface MemberAmino {
366
397
  */
367
398
  completed_initiatives_count?: number;
368
399
  /**
369
- * Gift tracking for rate limiting
400
+ * DREAM received through member-to-member transfers (tips and initiative
401
+ * bounty payouts) in the current epoch, bounded by
402
+ * max_transfer_received_per_epoch. The binding transfer limit sits on the
403
+ * recipient: a buyer can collect from any number of senders, so only a cap
404
+ * on what one account takes in bounds how fast a position can be bought.
370
405
  */
371
- gifts_sent_this_epoch?: string;
372
- /**
373
- * Epoch when gift counter was last reset
374
- */
375
- last_gift_epoch?: string;
406
+ transfer_received_this_epoch?: string;
407
+ last_transfer_received_epoch?: string;
376
408
  /**
377
409
  * Invitation credit tracking for lazy seasonal reset
378
410
  */
@@ -455,14 +487,38 @@ export interface MemberAmino {
455
487
  * readers must treat nil as zero.
456
488
  */
457
489
  content_staked_dream?: string;
490
+ /**
491
+ * Season-scale counterpart of transfer_received_this_epoch, bounded by
492
+ * max_transfer_received_per_season.
493
+ */
494
+ transfer_received_this_season?: string;
495
+ last_transfer_received_season?: string;
496
+ /**
497
+ * DREAM this member escrowed into initiative bounties this epoch, bounded by
498
+ * max_initiative_bounty_per_funder_epoch.
499
+ */
500
+ initiative_bounty_funded_this_epoch?: string;
501
+ last_initiative_bounty_epoch?: string;
502
+ /**
503
+ * The content license this member agreed to publish under
504
+ * (docs/content-license.md). Set from MsgAcceptInvitation's signed
505
+ * accepted_content_license, or for genesis members from the genesis file,
506
+ * where GenesisState.Validate requires it. Never changed afterwards: a CC0
507
+ * dedication cannot be revoked, so zeroing and status changes leave it
508
+ * alone. An address joins only once, so the agreement was made at
509
+ * joined_at / joined_at_height.
510
+ */
511
+ content_license?: string;
458
512
  }
459
513
  export interface MemberAminoMsg {
460
514
  type: "/sparkdream.rep.v1.Member";
461
515
  value: MemberAmino;
462
516
  }
463
517
  /**
464
- * GiftRecord tracks the last time a sender gifted a specific recipient
465
- * Used to enforce per-recipient cooldown periods
518
+ * GiftRecord is the lifetime ledger of what a sender has gifted one of their
519
+ * invitees, bounded by max_gift_per_invitee. A gift is a one-time seed to help
520
+ * an invitee get started, so the cap is per invitee for life rather than per
521
+ * epoch.
466
522
  * @name GiftRecord
467
523
  * @package sparkdream.rep.v1
468
524
  * @see proto type: sparkdream.rep.v1.GiftRecord
@@ -470,18 +526,17 @@ export interface MemberAminoMsg {
470
526
  export interface GiftRecord {
471
527
  sender: string;
472
528
  recipient: string;
473
- /**
474
- * Block height when last gift was sent
475
- */
476
- lastGiftBlock: bigint;
529
+ totalGifted: string;
477
530
  }
478
531
  export interface GiftRecordProtoMsg {
479
532
  typeUrl: "/sparkdream.rep.v1.GiftRecord";
480
533
  value: Uint8Array;
481
534
  }
482
535
  /**
483
- * GiftRecord tracks the last time a sender gifted a specific recipient
484
- * Used to enforce per-recipient cooldown periods
536
+ * GiftRecord is the lifetime ledger of what a sender has gifted one of their
537
+ * invitees, bounded by max_gift_per_invitee. A gift is a one-time seed to help
538
+ * an invitee get started, so the cap is per invitee for life rather than per
539
+ * epoch.
485
540
  * @name GiftRecordAmino
486
541
  * @package sparkdream.rep.v1
487
542
  * @see proto type: sparkdream.rep.v1.GiftRecord
@@ -489,10 +544,7 @@ export interface GiftRecordProtoMsg {
489
544
  export interface GiftRecordAmino {
490
545
  sender?: string;
491
546
  recipient?: string;
492
- /**
493
- * Block height when last gift was sent
494
- */
495
- last_gift_block?: string;
547
+ total_gifted?: string;
496
548
  }
497
549
  export interface GiftRecordAminoMsg {
498
550
  type: "/sparkdream.rep.v1.GiftRecord";
@@ -592,8 +644,10 @@ export declare const Member: {
592
644
  toProtoMsg(message: Member): MemberProtoMsg;
593
645
  };
594
646
  /**
595
- * GiftRecord tracks the last time a sender gifted a specific recipient
596
- * Used to enforce per-recipient cooldown periods
647
+ * GiftRecord is the lifetime ledger of what a sender has gifted one of their
648
+ * invitees, bounded by max_gift_per_invitee. A gift is a one-time seed to help
649
+ * an invitee get started, so the cap is per invitee for life rather than per
650
+ * epoch.
597
651
  * @name GiftRecord
598
652
  * @package sparkdream.rep.v1
599
653
  * @see proto type: sparkdream.rep.v1.GiftRecord