@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.18

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 (237) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +182 -182
  3. package/esm/cosmos/bundle.js +182 -182
  4. package/esm/ibc/bundle.js +106 -106
  5. package/esm/sparkdream/blog/v1/params.js +51 -50
  6. package/esm/sparkdream/bundle.js +448 -346
  7. package/esm/sparkdream/client.js +7 -1
  8. package/esm/sparkdream/collect/v1/params.js +13 -1
  9. package/esm/sparkdream/collect/v1/types.js +13 -1
  10. package/esm/sparkdream/commons/v1/genesis.js +29 -1
  11. package/esm/sparkdream/commons/v1/query.js +317 -0
  12. package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
  13. package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
  14. package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
  15. package/esm/sparkdream/commons/v1/tx.js +693 -0
  16. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  17. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
  18. package/esm/sparkdream/federation/v1/genesis.js +10 -10
  19. package/esm/sparkdream/federation/v1/params.js +29 -54
  20. package/esm/sparkdream/federation/v1/query.js +216 -71
  21. package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
  22. package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  23. package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
  24. package/esm/sparkdream/federation/v1/tx.js +1146 -1105
  25. package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
  26. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
  27. package/esm/sparkdream/federation/v1/types.js +355 -99
  28. package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
  29. package/esm/sparkdream/forum/v1/params.js +173 -148
  30. package/esm/sparkdream/guardian/module/v1/module.js +68 -0
  31. package/esm/sparkdream/guardian/v1/query.js +128 -0
  32. package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
  33. package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
  34. package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
  35. package/esm/sparkdream/guardian/v1/tx.js +175 -0
  36. package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
  37. package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
  38. package/esm/sparkdream/identity/module/v1/module.js +71 -0
  39. package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
  40. package/esm/sparkdream/identity/v1/genesis.js +84 -0
  41. package/esm/sparkdream/identity/v1/query.js +372 -0
  42. package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
  43. package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
  44. package/esm/sparkdream/lcd.js +15 -0
  45. package/esm/sparkdream/name/v1/params.js +19 -18
  46. package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
  47. package/esm/sparkdream/rep/v1/tag.js +6 -13
  48. package/esm/sparkdream/rpc.query.js +9 -0
  49. package/esm/sparkdream/rpc.tx.js +6 -0
  50. package/esm/sparkdream/service/module/v1/module.js +71 -0
  51. package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
  52. package/esm/sparkdream/service/v1/genesis.js +240 -0
  53. package/esm/sparkdream/service/v1/operator.js +250 -0
  54. package/esm/sparkdream/service/v1/params.js +355 -0
  55. package/esm/sparkdream/service/v1/query.js +1582 -0
  56. package/esm/sparkdream/service/v1/query.lcd.js +107 -0
  57. package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
  58. package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
  59. package/esm/sparkdream/service/v1/report.js +212 -0
  60. package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
  61. package/esm/sparkdream/service/v1/service_type_config.js +264 -0
  62. package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
  63. package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
  64. package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
  65. package/esm/sparkdream/service/v1/tx.amino.js +69 -0
  66. package/esm/sparkdream/service/v1/tx.js +2124 -0
  67. package/esm/sparkdream/service/v1/tx.registry.js +249 -0
  68. package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
  69. package/esm/sparkdream/service/v1/types.js +353 -0
  70. package/esm/sparkdream/session/v1/genesis.js +136 -10
  71. package/esm/sparkdream/session/v1/grant.js +1020 -0
  72. package/esm/sparkdream/session/v1/params.js +543 -19
  73. package/esm/sparkdream/session/v1/query.js +487 -0
  74. package/esm/sparkdream/session/v1/query.lcd.js +41 -3
  75. package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
  76. package/esm/sparkdream/session/v1/session.js +6 -0
  77. package/esm/sparkdream/session/v1/tx.js +1066 -0
  78. package/esm/sparkdream/session/v1/tx.registry.js +110 -2
  79. package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
  80. package/esm/tendermint/bundle.js +20 -20
  81. package/ibc/bundle.d.ts +90 -90
  82. package/ibc/bundle.js +106 -106
  83. package/package.json +1 -1
  84. package/sparkdream/blog/v1/params.d.ts +37 -28
  85. package/sparkdream/blog/v1/params.js +51 -50
  86. package/sparkdream/blog/v1/post.d.ts +2 -2
  87. package/sparkdream/blog/v1/tx.d.ts +4 -4
  88. package/sparkdream/bundle.d.ts +14912 -12896
  89. package/sparkdream/bundle.js +448 -346
  90. package/sparkdream/client.d.ts +90 -20
  91. package/sparkdream/client.js +7 -1
  92. package/sparkdream/collect/v1/params.d.ts +16 -0
  93. package/sparkdream/collect/v1/params.js +13 -1
  94. package/sparkdream/collect/v1/types.d.ts +2 -0
  95. package/sparkdream/collect/v1/types.js +13 -1
  96. package/sparkdream/commons/v1/genesis.d.ts +17 -0
  97. package/sparkdream/commons/v1/genesis.js +29 -1
  98. package/sparkdream/commons/v1/query.d.ts +186 -0
  99. package/sparkdream/commons/v1/query.js +318 -1
  100. package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
  101. package/sparkdream/commons/v1/query.lcd.js +23 -0
  102. package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
  103. package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
  104. package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
  105. package/sparkdream/commons/v1/recurring_spend.js +301 -0
  106. package/sparkdream/commons/v1/tx.d.ts +472 -0
  107. package/sparkdream/commons/v1/tx.js +694 -1
  108. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  109. package/sparkdream/commons/v1/tx.registry.js +73 -1
  110. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
  111. package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
  112. package/sparkdream/federation/v1/genesis.d.ts +3 -3
  113. package/sparkdream/federation/v1/genesis.js +9 -9
  114. package/sparkdream/federation/v1/params.d.ts +64 -13
  115. package/sparkdream/federation/v1/params.js +29 -54
  116. package/sparkdream/federation/v1/query.d.ts +209 -100
  117. package/sparkdream/federation/v1/query.js +216 -71
  118. package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
  119. package/sparkdream/federation/v1/query.lcd.js +11 -6
  120. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  121. package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  122. package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
  123. package/sparkdream/federation/v1/tx.amino.js +20 -20
  124. package/sparkdream/federation/v1/tx.d.ts +479 -352
  125. package/sparkdream/federation/v1/tx.js +1147 -1106
  126. package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
  127. package/sparkdream/federation/v1/tx.registry.js +73 -73
  128. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
  129. package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
  130. package/sparkdream/federation/v1/types.d.ts +307 -41
  131. package/sparkdream/federation/v1/types.js +360 -100
  132. package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
  133. package/sparkdream/federation/v1/verifier_activity.js +13 -1
  134. package/sparkdream/forum/v1/params.d.ts +99 -62
  135. package/sparkdream/forum/v1/params.js +173 -148
  136. package/sparkdream/guardian/module/v1/module.d.ts +74 -0
  137. package/sparkdream/guardian/module/v1/module.js +71 -0
  138. package/sparkdream/guardian/v1/query.d.ts +88 -0
  139. package/sparkdream/guardian/v1/query.js +131 -0
  140. package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
  141. package/sparkdream/guardian/v1/query.lcd.js +17 -0
  142. package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
  143. package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
  144. package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
  145. package/sparkdream/guardian/v1/tx.amino.js +12 -0
  146. package/sparkdream/guardian/v1/tx.d.ts +138 -0
  147. package/sparkdream/guardian/v1/tx.js +181 -0
  148. package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
  149. package/sparkdream/guardian/v1/tx.registry.js +37 -0
  150. package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
  151. package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
  152. package/sparkdream/identity/module/v1/module.d.ts +54 -0
  153. package/sparkdream/identity/module/v1/module.js +74 -0
  154. package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
  155. package/sparkdream/identity/v1/chain_identity.js +202 -0
  156. package/sparkdream/identity/v1/genesis.d.ts +65 -0
  157. package/sparkdream/identity/v1/genesis.js +87 -0
  158. package/sparkdream/identity/v1/query.d.ts +243 -0
  159. package/sparkdream/identity/v1/query.js +375 -0
  160. package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
  161. package/sparkdream/identity/v1/query.lcd.js +25 -0
  162. package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
  163. package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
  164. package/sparkdream/lcd.d.ts +9 -0
  165. package/sparkdream/lcd.js +15 -0
  166. package/sparkdream/name/v1/params.d.ts +25 -8
  167. package/sparkdream/name/v1/params.js +19 -18
  168. package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
  169. package/sparkdream/rep/v1/bonded_role.js +48 -2
  170. package/sparkdream/rep/v1/tag.d.ts +15 -2
  171. package/sparkdream/rep/v1/tag.js +6 -13
  172. package/sparkdream/rpc.query.d.ts +34 -2
  173. package/sparkdream/rpc.query.js +9 -0
  174. package/sparkdream/rpc.tx.d.ts +6 -0
  175. package/sparkdream/rpc.tx.js +6 -0
  176. package/sparkdream/service/module/v1/module.d.ts +54 -0
  177. package/sparkdream/service/module/v1/module.js +74 -0
  178. package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
  179. package/sparkdream/service/v1/controller_transfer_case.js +158 -0
  180. package/sparkdream/service/v1/genesis.d.ts +172 -0
  181. package/sparkdream/service/v1/genesis.js +243 -0
  182. package/sparkdream/service/v1/operator.d.ts +215 -0
  183. package/sparkdream/service/v1/operator.js +253 -0
  184. package/sparkdream/service/v1/params.d.ts +346 -0
  185. package/sparkdream/service/v1/params.js +358 -0
  186. package/sparkdream/service/v1/query.d.ts +964 -0
  187. package/sparkdream/service/v1/query.js +1585 -0
  188. package/sparkdream/service/v1/query.lcd.d.ts +18 -0
  189. package/sparkdream/service/v1/query.lcd.js +111 -0
  190. package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
  191. package/sparkdream/service/v1/query.rpc.Query.js +114 -0
  192. package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
  193. package/sparkdream/service/v1/refile_cooldown.js +124 -0
  194. package/sparkdream/service/v1/report.d.ts +174 -0
  195. package/sparkdream/service/v1/report.js +215 -0
  196. package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
  197. package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
  198. package/sparkdream/service/v1/service_type_config.d.ts +222 -0
  199. package/sparkdream/service/v1/service_type_config.js +269 -0
  200. package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
  201. package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
  202. package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
  203. package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
  204. package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
  205. package/sparkdream/service/v1/tier1_last_slash.js +124 -0
  206. package/sparkdream/service/v1/tx.amino.d.ts +68 -0
  207. package/sparkdream/service/v1/tx.amino.js +72 -0
  208. package/sparkdream/service/v1/tx.d.ts +1264 -0
  209. package/sparkdream/service/v1/tx.js +2127 -0
  210. package/sparkdream/service/v1/tx.registry.d.ts +169 -0
  211. package/sparkdream/service/v1/tx.registry.js +253 -0
  212. package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
  213. package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
  214. package/sparkdream/service/v1/types.d.ts +94 -0
  215. package/sparkdream/service/v1/types.js +370 -0
  216. package/sparkdream/session/v1/genesis.d.ts +93 -9
  217. package/sparkdream/session/v1/genesis.js +137 -11
  218. package/sparkdream/session/v1/grant.d.ts +517 -0
  219. package/sparkdream/session/v1/grant.js +1027 -0
  220. package/sparkdream/session/v1/params.d.ts +338 -7
  221. package/sparkdream/session/v1/params.js +543 -19
  222. package/sparkdream/session/v1/query.d.ts +265 -0
  223. package/sparkdream/session/v1/query.js +488 -1
  224. package/sparkdream/session/v1/query.lcd.d.ts +4 -1
  225. package/sparkdream/session/v1/query.lcd.js +41 -3
  226. package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
  227. package/sparkdream/session/v1/query.rpc.Query.js +35 -3
  228. package/sparkdream/session/v1/session.d.ts +18 -0
  229. package/sparkdream/session/v1/session.js +6 -0
  230. package/sparkdream/session/v1/tx.d.ts +660 -0
  231. package/sparkdream/session/v1/tx.js +1067 -1
  232. package/sparkdream/session/v1/tx.registry.d.ts +73 -1
  233. package/sparkdream/session/v1/tx.registry.js +109 -1
  234. package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
  235. package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
  236. package/tendermint/bundle.d.ts +844 -844
  237. package/tendermint/bundle.js +20 -20
@@ -0,0 +1,174 @@
1
+ import { ReportStatus } from "./types";
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ import { DeepPartial } from "../../../helpers";
4
+ /**
5
+ * Report is a single report filed against an operator (see x-service-spec.md
6
+ * §3.4 and §4.1). Keyed by `report_id` (auto-incrementing uint64); secondary
7
+ * indexes by operator (ReportsByOperator) and by status for the PENDING /
8
+ * ESCALATED EndBlocker sweeps.
9
+ * @name Report
10
+ * @package sparkdream.service.v1
11
+ * @see proto type: sparkdream.service.v1.Report
12
+ */
13
+ export interface Report {
14
+ /**
15
+ * report_id is the auto-incrementing primary key (NextReportID counter).
16
+ */
17
+ reportId: bigint;
18
+ /**
19
+ * operator_address is the target operator's bech32 address.
20
+ */
21
+ operatorAddress: string;
22
+ /**
23
+ * service_type identifies which operator record this report targets
24
+ * (an address may have multiple operators across service types).
25
+ */
26
+ serviceType: string;
27
+ /**
28
+ * reporter is the bech32 address of the member who filed the report.
29
+ */
30
+ reporter: string;
31
+ /**
32
+ * reason is free-form human-readable text, capped by `max_reason_bytes`.
33
+ */
34
+ reason: string;
35
+ /**
36
+ * filed_at is the height the report was filed.
37
+ */
38
+ filedAt: bigint;
39
+ /**
40
+ * escalated_at is the height the report transitioned to ESCALATED; 0
41
+ * otherwise. Feeds the auto-timeout sweep (§3.6 queue 3).
42
+ */
43
+ escalatedAt: bigint;
44
+ /**
45
+ * status is the lifecycle status (§3.4.5).
46
+ */
47
+ status: ReportStatus;
48
+ /**
49
+ * proposed_slash_bps is set when the controller escalates with a
50
+ * specific proposal (or carried forward on operator contest); the jury
51
+ * verdict is bounded by this value (§5.2).
52
+ */
53
+ proposedSlashBps: number;
54
+ /**
55
+ * slash_amount is the SPARK amount actually slashed once the report
56
+ * resolves, in bond-denom micro-units. Zero for PENDING /
57
+ * RESOLVED_T1-with-dismiss / AUTO_*. Wrapped into sdk.Coin with the
58
+ * chain's bond denom at the point of use.
59
+ */
60
+ slashAmount: string;
61
+ /**
62
+ * deposit is the SPARK the reporter escrowed at filing time
63
+ * (`report_deposit_amount` param), in bond-denom micro-units. Held in
64
+ * the report deposit pool until resolution. Wrapped into sdk.Coin with
65
+ * the chain's bond denom at the point of use.
66
+ */
67
+ deposit: string;
68
+ /**
69
+ * jury_case_id is the x/rep case id opened on escalation; 0 if never
70
+ * escalated.
71
+ */
72
+ juryCaseId: bigint;
73
+ }
74
+ export interface ReportProtoMsg {
75
+ typeUrl: "/sparkdream.service.v1.Report";
76
+ value: Uint8Array;
77
+ }
78
+ /**
79
+ * Report is a single report filed against an operator (see x-service-spec.md
80
+ * §3.4 and §4.1). Keyed by `report_id` (auto-incrementing uint64); secondary
81
+ * indexes by operator (ReportsByOperator) and by status for the PENDING /
82
+ * ESCALATED EndBlocker sweeps.
83
+ * @name ReportAmino
84
+ * @package sparkdream.service.v1
85
+ * @see proto type: sparkdream.service.v1.Report
86
+ */
87
+ export interface ReportAmino {
88
+ /**
89
+ * report_id is the auto-incrementing primary key (NextReportID counter).
90
+ */
91
+ report_id?: string;
92
+ /**
93
+ * operator_address is the target operator's bech32 address.
94
+ */
95
+ operator_address?: string;
96
+ /**
97
+ * service_type identifies which operator record this report targets
98
+ * (an address may have multiple operators across service types).
99
+ */
100
+ service_type?: string;
101
+ /**
102
+ * reporter is the bech32 address of the member who filed the report.
103
+ */
104
+ reporter?: string;
105
+ /**
106
+ * reason is free-form human-readable text, capped by `max_reason_bytes`.
107
+ */
108
+ reason?: string;
109
+ /**
110
+ * filed_at is the height the report was filed.
111
+ */
112
+ filed_at?: string;
113
+ /**
114
+ * escalated_at is the height the report transitioned to ESCALATED; 0
115
+ * otherwise. Feeds the auto-timeout sweep (§3.6 queue 3).
116
+ */
117
+ escalated_at?: string;
118
+ /**
119
+ * status is the lifecycle status (§3.4.5).
120
+ */
121
+ status?: ReportStatus;
122
+ /**
123
+ * proposed_slash_bps is set when the controller escalates with a
124
+ * specific proposal (or carried forward on operator contest); the jury
125
+ * verdict is bounded by this value (§5.2).
126
+ */
127
+ proposed_slash_bps?: number;
128
+ /**
129
+ * slash_amount is the SPARK amount actually slashed once the report
130
+ * resolves, in bond-denom micro-units. Zero for PENDING /
131
+ * RESOLVED_T1-with-dismiss / AUTO_*. Wrapped into sdk.Coin with the
132
+ * chain's bond denom at the point of use.
133
+ */
134
+ slash_amount?: string;
135
+ /**
136
+ * deposit is the SPARK the reporter escrowed at filing time
137
+ * (`report_deposit_amount` param), in bond-denom micro-units. Held in
138
+ * the report deposit pool until resolution. Wrapped into sdk.Coin with
139
+ * the chain's bond denom at the point of use.
140
+ */
141
+ deposit?: string;
142
+ /**
143
+ * jury_case_id is the x/rep case id opened on escalation; 0 if never
144
+ * escalated.
145
+ */
146
+ jury_case_id?: string;
147
+ }
148
+ export interface ReportAminoMsg {
149
+ type: "sparkdream/x/service/Report";
150
+ value: ReportAmino;
151
+ }
152
+ /**
153
+ * Report is a single report filed against an operator (see x-service-spec.md
154
+ * §3.4 and §4.1). Keyed by `report_id` (auto-incrementing uint64); secondary
155
+ * indexes by operator (ReportsByOperator) and by status for the PENDING /
156
+ * ESCALATED EndBlocker sweeps.
157
+ * @name Report
158
+ * @package sparkdream.service.v1
159
+ * @see proto type: sparkdream.service.v1.Report
160
+ */
161
+ export declare const Report: {
162
+ typeUrl: string;
163
+ aminoType: string;
164
+ encode(message: Report, writer?: BinaryWriter): BinaryWriter;
165
+ decode(input: BinaryReader | Uint8Array, length?: number): Report;
166
+ fromPartial(object: DeepPartial<Report>): Report;
167
+ fromAmino(object: ReportAmino): Report;
168
+ toAmino(message: Report): ReportAmino;
169
+ fromAminoMsg(object: ReportAminoMsg): Report;
170
+ toAminoMsg(message: Report): ReportAminoMsg;
171
+ fromProtoMsg(message: ReportProtoMsg): Report;
172
+ toProto(message: Report): Uint8Array;
173
+ toProtoMsg(message: Report): ReportProtoMsg;
174
+ };
@@ -0,0 +1,215 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Report = void 0;
4
+ const binary_1 = require("../../../binary");
5
+ function createBaseReport() {
6
+ return {
7
+ reportId: BigInt(0),
8
+ operatorAddress: "",
9
+ serviceType: "",
10
+ reporter: "",
11
+ reason: "",
12
+ filedAt: BigInt(0),
13
+ escalatedAt: BigInt(0),
14
+ status: 0,
15
+ proposedSlashBps: 0,
16
+ slashAmount: "",
17
+ deposit: "",
18
+ juryCaseId: BigInt(0)
19
+ };
20
+ }
21
+ /**
22
+ * Report is a single report filed against an operator (see x-service-spec.md
23
+ * §3.4 and §4.1). Keyed by `report_id` (auto-incrementing uint64); secondary
24
+ * indexes by operator (ReportsByOperator) and by status for the PENDING /
25
+ * ESCALATED EndBlocker sweeps.
26
+ * @name Report
27
+ * @package sparkdream.service.v1
28
+ * @see proto type: sparkdream.service.v1.Report
29
+ */
30
+ exports.Report = {
31
+ typeUrl: "/sparkdream.service.v1.Report",
32
+ aminoType: "sparkdream/x/service/Report",
33
+ encode(message, writer = binary_1.BinaryWriter.create()) {
34
+ if (message.reportId !== BigInt(0)) {
35
+ writer.uint32(8).uint64(message.reportId);
36
+ }
37
+ if (message.operatorAddress !== "") {
38
+ writer.uint32(18).string(message.operatorAddress);
39
+ }
40
+ if (message.serviceType !== "") {
41
+ writer.uint32(26).string(message.serviceType);
42
+ }
43
+ if (message.reporter !== "") {
44
+ writer.uint32(34).string(message.reporter);
45
+ }
46
+ if (message.reason !== "") {
47
+ writer.uint32(42).string(message.reason);
48
+ }
49
+ if (message.filedAt !== BigInt(0)) {
50
+ writer.uint32(48).int64(message.filedAt);
51
+ }
52
+ if (message.escalatedAt !== BigInt(0)) {
53
+ writer.uint32(56).int64(message.escalatedAt);
54
+ }
55
+ if (message.status !== 0) {
56
+ writer.uint32(64).int32(message.status);
57
+ }
58
+ if (message.proposedSlashBps !== 0) {
59
+ writer.uint32(72).uint32(message.proposedSlashBps);
60
+ }
61
+ if (message.slashAmount !== "") {
62
+ writer.uint32(82).string(message.slashAmount);
63
+ }
64
+ if (message.deposit !== "") {
65
+ writer.uint32(90).string(message.deposit);
66
+ }
67
+ if (message.juryCaseId !== BigInt(0)) {
68
+ writer.uint32(96).uint64(message.juryCaseId);
69
+ }
70
+ return writer;
71
+ },
72
+ decode(input, length) {
73
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
74
+ let end = length === undefined ? reader.len : reader.pos + length;
75
+ const message = createBaseReport();
76
+ while (reader.pos < end) {
77
+ const tag = reader.uint32();
78
+ switch (tag >>> 3) {
79
+ case 1:
80
+ message.reportId = reader.uint64();
81
+ break;
82
+ case 2:
83
+ message.operatorAddress = reader.string();
84
+ break;
85
+ case 3:
86
+ message.serviceType = reader.string();
87
+ break;
88
+ case 4:
89
+ message.reporter = reader.string();
90
+ break;
91
+ case 5:
92
+ message.reason = reader.string();
93
+ break;
94
+ case 6:
95
+ message.filedAt = reader.int64();
96
+ break;
97
+ case 7:
98
+ message.escalatedAt = reader.int64();
99
+ break;
100
+ case 8:
101
+ message.status = reader.int32();
102
+ break;
103
+ case 9:
104
+ message.proposedSlashBps = reader.uint32();
105
+ break;
106
+ case 10:
107
+ message.slashAmount = reader.string();
108
+ break;
109
+ case 11:
110
+ message.deposit = reader.string();
111
+ break;
112
+ case 12:
113
+ message.juryCaseId = reader.uint64();
114
+ break;
115
+ default:
116
+ reader.skipType(tag & 7);
117
+ break;
118
+ }
119
+ }
120
+ return message;
121
+ },
122
+ fromPartial(object) {
123
+ const message = createBaseReport();
124
+ message.reportId = object.reportId !== undefined && object.reportId !== null ? BigInt(object.reportId.toString()) : BigInt(0);
125
+ message.operatorAddress = object.operatorAddress ?? "";
126
+ message.serviceType = object.serviceType ?? "";
127
+ message.reporter = object.reporter ?? "";
128
+ message.reason = object.reason ?? "";
129
+ message.filedAt = object.filedAt !== undefined && object.filedAt !== null ? BigInt(object.filedAt.toString()) : BigInt(0);
130
+ message.escalatedAt = object.escalatedAt !== undefined && object.escalatedAt !== null ? BigInt(object.escalatedAt.toString()) : BigInt(0);
131
+ message.status = object.status ?? 0;
132
+ message.proposedSlashBps = object.proposedSlashBps ?? 0;
133
+ message.slashAmount = object.slashAmount ?? "";
134
+ message.deposit = object.deposit ?? "";
135
+ message.juryCaseId = object.juryCaseId !== undefined && object.juryCaseId !== null ? BigInt(object.juryCaseId.toString()) : BigInt(0);
136
+ return message;
137
+ },
138
+ fromAmino(object) {
139
+ const message = createBaseReport();
140
+ if (object.report_id !== undefined && object.report_id !== null) {
141
+ message.reportId = BigInt(object.report_id);
142
+ }
143
+ if (object.operator_address !== undefined && object.operator_address !== null) {
144
+ message.operatorAddress = object.operator_address;
145
+ }
146
+ if (object.service_type !== undefined && object.service_type !== null) {
147
+ message.serviceType = object.service_type;
148
+ }
149
+ if (object.reporter !== undefined && object.reporter !== null) {
150
+ message.reporter = object.reporter;
151
+ }
152
+ if (object.reason !== undefined && object.reason !== null) {
153
+ message.reason = object.reason;
154
+ }
155
+ if (object.filed_at !== undefined && object.filed_at !== null) {
156
+ message.filedAt = BigInt(object.filed_at);
157
+ }
158
+ if (object.escalated_at !== undefined && object.escalated_at !== null) {
159
+ message.escalatedAt = BigInt(object.escalated_at);
160
+ }
161
+ if (object.status !== undefined && object.status !== null) {
162
+ message.status = object.status;
163
+ }
164
+ if (object.proposed_slash_bps !== undefined && object.proposed_slash_bps !== null) {
165
+ message.proposedSlashBps = object.proposed_slash_bps;
166
+ }
167
+ if (object.slash_amount !== undefined && object.slash_amount !== null) {
168
+ message.slashAmount = object.slash_amount;
169
+ }
170
+ if (object.deposit !== undefined && object.deposit !== null) {
171
+ message.deposit = object.deposit;
172
+ }
173
+ if (object.jury_case_id !== undefined && object.jury_case_id !== null) {
174
+ message.juryCaseId = BigInt(object.jury_case_id);
175
+ }
176
+ return message;
177
+ },
178
+ toAmino(message) {
179
+ const obj = {};
180
+ obj.report_id = message.reportId !== BigInt(0) ? message.reportId?.toString() : undefined;
181
+ obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress;
182
+ obj.service_type = message.serviceType === "" ? undefined : message.serviceType;
183
+ obj.reporter = message.reporter === "" ? undefined : message.reporter;
184
+ obj.reason = message.reason === "" ? undefined : message.reason;
185
+ obj.filed_at = message.filedAt !== BigInt(0) ? message.filedAt?.toString() : undefined;
186
+ obj.escalated_at = message.escalatedAt !== BigInt(0) ? message.escalatedAt?.toString() : undefined;
187
+ obj.status = message.status === 0 ? undefined : message.status;
188
+ obj.proposed_slash_bps = message.proposedSlashBps === 0 ? undefined : message.proposedSlashBps;
189
+ obj.slash_amount = message.slashAmount === "" ? undefined : message.slashAmount;
190
+ obj.deposit = message.deposit === "" ? undefined : message.deposit;
191
+ obj.jury_case_id = message.juryCaseId !== BigInt(0) ? message.juryCaseId?.toString() : undefined;
192
+ return obj;
193
+ },
194
+ fromAminoMsg(object) {
195
+ return exports.Report.fromAmino(object.value);
196
+ },
197
+ toAminoMsg(message) {
198
+ return {
199
+ type: "sparkdream/x/service/Report",
200
+ value: exports.Report.toAmino(message)
201
+ };
202
+ },
203
+ fromProtoMsg(message) {
204
+ return exports.Report.decode(message.value);
205
+ },
206
+ toProto(message) {
207
+ return exports.Report.encode(message).finish();
208
+ },
209
+ toProtoMsg(message) {
210
+ return {
211
+ typeUrl: "/sparkdream.service.v1.Report",
212
+ value: exports.Report.encode(message).finish()
213
+ };
214
+ }
215
+ };
@@ -0,0 +1,112 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ import { DeepPartial } from "../../../helpers";
3
+ /**
4
+ * ReporterRateLimit tracks recent filing heights for a given
5
+ * (reporter, operator_address, service_type) tuple, implementing the
6
+ * sliding-window per-reporter cap from §3.4.6.
7
+ *
8
+ * The keeper admits a new filing iff fewer than
9
+ * `max_reports_per_reporter_per_operator_per_window` entries in
10
+ * `recent_filing_heights` fall within
11
+ * `[current_height - reporter_rate_limit_window_blocks, current_height]`.
12
+ *
13
+ * Ring-buffer semantics: when at capacity, the oldest entry is
14
+ * overwritten on each new filing.
15
+ * @name ReporterRateLimit
16
+ * @package sparkdream.service.v1
17
+ * @see proto type: sparkdream.service.v1.ReporterRateLimit
18
+ */
19
+ export interface ReporterRateLimit {
20
+ /**
21
+ * reporter is the bech32 address whose rate is being tracked.
22
+ */
23
+ reporter: string;
24
+ /**
25
+ * operator_address is the target operator.
26
+ */
27
+ operatorAddress: string;
28
+ /**
29
+ * service_type is the target operator record.
30
+ */
31
+ serviceType: string;
32
+ /**
33
+ * recent_filing_heights is the ring buffer of recent filing heights
34
+ * (most-recent-first or in insertion order; the keeper documents
35
+ * which). Length capped at max_reports + 1.
36
+ */
37
+ recentFilingHeights: bigint[];
38
+ }
39
+ export interface ReporterRateLimitProtoMsg {
40
+ typeUrl: "/sparkdream.service.v1.ReporterRateLimit";
41
+ value: Uint8Array;
42
+ }
43
+ /**
44
+ * ReporterRateLimit tracks recent filing heights for a given
45
+ * (reporter, operator_address, service_type) tuple, implementing the
46
+ * sliding-window per-reporter cap from §3.4.6.
47
+ *
48
+ * The keeper admits a new filing iff fewer than
49
+ * `max_reports_per_reporter_per_operator_per_window` entries in
50
+ * `recent_filing_heights` fall within
51
+ * `[current_height - reporter_rate_limit_window_blocks, current_height]`.
52
+ *
53
+ * Ring-buffer semantics: when at capacity, the oldest entry is
54
+ * overwritten on each new filing.
55
+ * @name ReporterRateLimitAmino
56
+ * @package sparkdream.service.v1
57
+ * @see proto type: sparkdream.service.v1.ReporterRateLimit
58
+ */
59
+ export interface ReporterRateLimitAmino {
60
+ /**
61
+ * reporter is the bech32 address whose rate is being tracked.
62
+ */
63
+ reporter?: string;
64
+ /**
65
+ * operator_address is the target operator.
66
+ */
67
+ operator_address?: string;
68
+ /**
69
+ * service_type is the target operator record.
70
+ */
71
+ service_type?: string;
72
+ /**
73
+ * recent_filing_heights is the ring buffer of recent filing heights
74
+ * (most-recent-first or in insertion order; the keeper documents
75
+ * which). Length capped at max_reports + 1.
76
+ */
77
+ recent_filing_heights?: string[];
78
+ }
79
+ export interface ReporterRateLimitAminoMsg {
80
+ type: "sparkdream/x/service/ReporterRateLimit";
81
+ value: ReporterRateLimitAmino;
82
+ }
83
+ /**
84
+ * ReporterRateLimit tracks recent filing heights for a given
85
+ * (reporter, operator_address, service_type) tuple, implementing the
86
+ * sliding-window per-reporter cap from §3.4.6.
87
+ *
88
+ * The keeper admits a new filing iff fewer than
89
+ * `max_reports_per_reporter_per_operator_per_window` entries in
90
+ * `recent_filing_heights` fall within
91
+ * `[current_height - reporter_rate_limit_window_blocks, current_height]`.
92
+ *
93
+ * Ring-buffer semantics: when at capacity, the oldest entry is
94
+ * overwritten on each new filing.
95
+ * @name ReporterRateLimit
96
+ * @package sparkdream.service.v1
97
+ * @see proto type: sparkdream.service.v1.ReporterRateLimit
98
+ */
99
+ export declare const ReporterRateLimit: {
100
+ typeUrl: string;
101
+ aminoType: string;
102
+ encode(message: ReporterRateLimit, writer?: BinaryWriter): BinaryWriter;
103
+ decode(input: BinaryReader | Uint8Array, length?: number): ReporterRateLimit;
104
+ fromPartial(object: DeepPartial<ReporterRateLimit>): ReporterRateLimit;
105
+ fromAmino(object: ReporterRateLimitAmino): ReporterRateLimit;
106
+ toAmino(message: ReporterRateLimit): ReporterRateLimitAmino;
107
+ fromAminoMsg(object: ReporterRateLimitAminoMsg): ReporterRateLimit;
108
+ toAminoMsg(message: ReporterRateLimit): ReporterRateLimitAminoMsg;
109
+ fromProtoMsg(message: ReporterRateLimitProtoMsg): ReporterRateLimit;
110
+ toProto(message: ReporterRateLimit): Uint8Array;
111
+ toProtoMsg(message: ReporterRateLimit): ReporterRateLimitProtoMsg;
112
+ };
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReporterRateLimit = void 0;
4
+ //@ts-nocheck
5
+ const binary_1 = require("../../../binary");
6
+ function createBaseReporterRateLimit() {
7
+ return {
8
+ reporter: "",
9
+ operatorAddress: "",
10
+ serviceType: "",
11
+ recentFilingHeights: []
12
+ };
13
+ }
14
+ /**
15
+ * ReporterRateLimit tracks recent filing heights for a given
16
+ * (reporter, operator_address, service_type) tuple, implementing the
17
+ * sliding-window per-reporter cap from §3.4.6.
18
+ *
19
+ * The keeper admits a new filing iff fewer than
20
+ * `max_reports_per_reporter_per_operator_per_window` entries in
21
+ * `recent_filing_heights` fall within
22
+ * `[current_height - reporter_rate_limit_window_blocks, current_height]`.
23
+ *
24
+ * Ring-buffer semantics: when at capacity, the oldest entry is
25
+ * overwritten on each new filing.
26
+ * @name ReporterRateLimit
27
+ * @package sparkdream.service.v1
28
+ * @see proto type: sparkdream.service.v1.ReporterRateLimit
29
+ */
30
+ exports.ReporterRateLimit = {
31
+ typeUrl: "/sparkdream.service.v1.ReporterRateLimit",
32
+ aminoType: "sparkdream/x/service/ReporterRateLimit",
33
+ encode(message, writer = binary_1.BinaryWriter.create()) {
34
+ if (message.reporter !== "") {
35
+ writer.uint32(10).string(message.reporter);
36
+ }
37
+ if (message.operatorAddress !== "") {
38
+ writer.uint32(18).string(message.operatorAddress);
39
+ }
40
+ if (message.serviceType !== "") {
41
+ writer.uint32(26).string(message.serviceType);
42
+ }
43
+ writer.uint32(34).fork();
44
+ for (const v of message.recentFilingHeights) {
45
+ writer.int64(v);
46
+ }
47
+ writer.ldelim();
48
+ return writer;
49
+ },
50
+ decode(input, length) {
51
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
52
+ let end = length === undefined ? reader.len : reader.pos + length;
53
+ const message = createBaseReporterRateLimit();
54
+ while (reader.pos < end) {
55
+ const tag = reader.uint32();
56
+ switch (tag >>> 3) {
57
+ case 1:
58
+ message.reporter = reader.string();
59
+ break;
60
+ case 2:
61
+ message.operatorAddress = reader.string();
62
+ break;
63
+ case 3:
64
+ message.serviceType = reader.string();
65
+ break;
66
+ case 4:
67
+ if ((tag & 7) === 2) {
68
+ const end2 = reader.uint32() + reader.pos;
69
+ while (reader.pos < end2) {
70
+ message.recentFilingHeights.push(reader.int64());
71
+ }
72
+ }
73
+ else {
74
+ message.recentFilingHeights.push(reader.int64());
75
+ }
76
+ break;
77
+ default:
78
+ reader.skipType(tag & 7);
79
+ break;
80
+ }
81
+ }
82
+ return message;
83
+ },
84
+ fromPartial(object) {
85
+ const message = createBaseReporterRateLimit();
86
+ message.reporter = object.reporter ?? "";
87
+ message.operatorAddress = object.operatorAddress ?? "";
88
+ message.serviceType = object.serviceType ?? "";
89
+ message.recentFilingHeights = object.recentFilingHeights?.map(e => BigInt(e.toString())) || [];
90
+ return message;
91
+ },
92
+ fromAmino(object) {
93
+ const message = createBaseReporterRateLimit();
94
+ if (object.reporter !== undefined && object.reporter !== null) {
95
+ message.reporter = object.reporter;
96
+ }
97
+ if (object.operator_address !== undefined && object.operator_address !== null) {
98
+ message.operatorAddress = object.operator_address;
99
+ }
100
+ if (object.service_type !== undefined && object.service_type !== null) {
101
+ message.serviceType = object.service_type;
102
+ }
103
+ message.recentFilingHeights = object.recent_filing_heights?.map(e => BigInt(e)) || [];
104
+ return message;
105
+ },
106
+ toAmino(message) {
107
+ const obj = {};
108
+ obj.reporter = message.reporter === "" ? undefined : message.reporter;
109
+ obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress;
110
+ obj.service_type = message.serviceType === "" ? undefined : message.serviceType;
111
+ if (message.recentFilingHeights) {
112
+ obj.recent_filing_heights = message.recentFilingHeights.map(e => e.toString());
113
+ }
114
+ else {
115
+ obj.recent_filing_heights = message.recentFilingHeights;
116
+ }
117
+ return obj;
118
+ },
119
+ fromAminoMsg(object) {
120
+ return exports.ReporterRateLimit.fromAmino(object.value);
121
+ },
122
+ toAminoMsg(message) {
123
+ return {
124
+ type: "sparkdream/x/service/ReporterRateLimit",
125
+ value: exports.ReporterRateLimit.toAmino(message)
126
+ };
127
+ },
128
+ fromProtoMsg(message) {
129
+ return exports.ReporterRateLimit.decode(message.value);
130
+ },
131
+ toProto(message) {
132
+ return exports.ReporterRateLimit.encode(message).finish();
133
+ },
134
+ toProtoMsg(message) {
135
+ return {
136
+ typeUrl: "/sparkdream.service.v1.ReporterRateLimit",
137
+ value: exports.ReporterRateLimit.encode(message).finish()
138
+ };
139
+ }
140
+ };