@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.19

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 (275) 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 +113 -52
  6. package/esm/sparkdream/blog/v1/tx.js +583 -2
  7. package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
  8. package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
  9. package/esm/sparkdream/bundle.js +448 -346
  10. package/esm/sparkdream/client.js +7 -1
  11. package/esm/sparkdream/collect/v1/params.js +121 -1
  12. package/esm/sparkdream/collect/v1/tx.js +293 -1
  13. package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
  14. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
  15. package/esm/sparkdream/collect/v1/types.js +147 -3
  16. package/esm/sparkdream/commons/v1/genesis.js +29 -1
  17. package/esm/sparkdream/commons/v1/query.js +317 -0
  18. package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
  19. package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
  20. package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
  21. package/esm/sparkdream/commons/v1/tx.js +693 -0
  22. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  23. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
  24. package/esm/sparkdream/federation/v1/genesis.js +10 -10
  25. package/esm/sparkdream/federation/v1/params.js +29 -54
  26. package/esm/sparkdream/federation/v1/query.js +216 -71
  27. package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
  28. package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  29. package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
  30. package/esm/sparkdream/federation/v1/tx.js +1146 -1105
  31. package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
  32. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
  33. package/esm/sparkdream/federation/v1/types.js +355 -99
  34. package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
  35. package/esm/sparkdream/forum/v1/params.js +389 -148
  36. package/esm/sparkdream/forum/v1/post.js +25 -1
  37. package/esm/sparkdream/forum/v1/tx.js +460 -0
  38. package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
  39. package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
  40. package/esm/sparkdream/forum/v1/types.js +355 -0
  41. package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
  42. package/esm/sparkdream/guardian/module/v1/module.js +68 -0
  43. package/esm/sparkdream/guardian/v1/query.js +128 -0
  44. package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
  45. package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
  46. package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
  47. package/esm/sparkdream/guardian/v1/tx.js +175 -0
  48. package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
  49. package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
  50. package/esm/sparkdream/identity/module/v1/module.js +71 -0
  51. package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
  52. package/esm/sparkdream/identity/v1/genesis.js +84 -0
  53. package/esm/sparkdream/identity/v1/query.js +372 -0
  54. package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
  55. package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
  56. package/esm/sparkdream/lcd.js +15 -0
  57. package/esm/sparkdream/name/v1/params.js +19 -18
  58. package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
  59. package/esm/sparkdream/rep/v1/member.js +209 -1
  60. package/esm/sparkdream/rep/v1/tag.js +6 -13
  61. package/esm/sparkdream/rpc.query.js +9 -0
  62. package/esm/sparkdream/rpc.tx.js +6 -0
  63. package/esm/sparkdream/service/module/v1/module.js +71 -0
  64. package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
  65. package/esm/sparkdream/service/v1/genesis.js +240 -0
  66. package/esm/sparkdream/service/v1/operator.js +250 -0
  67. package/esm/sparkdream/service/v1/params.js +355 -0
  68. package/esm/sparkdream/service/v1/query.js +1582 -0
  69. package/esm/sparkdream/service/v1/query.lcd.js +107 -0
  70. package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
  71. package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
  72. package/esm/sparkdream/service/v1/report.js +212 -0
  73. package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
  74. package/esm/sparkdream/service/v1/service_type_config.js +264 -0
  75. package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
  76. package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
  77. package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
  78. package/esm/sparkdream/service/v1/tx.amino.js +69 -0
  79. package/esm/sparkdream/service/v1/tx.js +2124 -0
  80. package/esm/sparkdream/service/v1/tx.registry.js +249 -0
  81. package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
  82. package/esm/sparkdream/service/v1/types.js +353 -0
  83. package/esm/sparkdream/session/v1/genesis.js +136 -10
  84. package/esm/sparkdream/session/v1/grant.js +1020 -0
  85. package/esm/sparkdream/session/v1/params.js +543 -19
  86. package/esm/sparkdream/session/v1/query.js +487 -0
  87. package/esm/sparkdream/session/v1/query.lcd.js +41 -3
  88. package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
  89. package/esm/sparkdream/session/v1/session.js +6 -0
  90. package/esm/sparkdream/session/v1/tx.js +1066 -0
  91. package/esm/sparkdream/session/v1/tx.registry.js +110 -2
  92. package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
  93. package/esm/tendermint/bundle.js +20 -20
  94. package/ibc/bundle.d.ts +90 -90
  95. package/ibc/bundle.js +106 -106
  96. package/package.json +1 -1
  97. package/sparkdream/blog/v1/params.d.ts +89 -28
  98. package/sparkdream/blog/v1/params.js +113 -52
  99. package/sparkdream/blog/v1/post.d.ts +2 -2
  100. package/sparkdream/blog/v1/tx.d.ts +385 -10
  101. package/sparkdream/blog/v1/tx.js +584 -3
  102. package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
  103. package/sparkdream/blog/v1/tx.registry.js +73 -1
  104. package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
  105. package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
  106. package/sparkdream/bundle.d.ts +15308 -12896
  107. package/sparkdream/bundle.js +448 -346
  108. package/sparkdream/client.d.ts +90 -20
  109. package/sparkdream/client.js +7 -1
  110. package/sparkdream/collect/v1/params.d.ts +140 -0
  111. package/sparkdream/collect/v1/params.js +121 -1
  112. package/sparkdream/collect/v1/tx.d.ts +195 -3
  113. package/sparkdream/collect/v1/tx.js +294 -2
  114. package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
  115. package/sparkdream/collect/v1/tx.registry.js +37 -1
  116. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
  117. package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
  118. package/sparkdream/collect/v1/types.d.ts +114 -0
  119. package/sparkdream/collect/v1/types.js +147 -3
  120. package/sparkdream/commons/v1/genesis.d.ts +17 -0
  121. package/sparkdream/commons/v1/genesis.js +29 -1
  122. package/sparkdream/commons/v1/query.d.ts +186 -0
  123. package/sparkdream/commons/v1/query.js +318 -1
  124. package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
  125. package/sparkdream/commons/v1/query.lcd.js +23 -0
  126. package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
  127. package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
  128. package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
  129. package/sparkdream/commons/v1/recurring_spend.js +301 -0
  130. package/sparkdream/commons/v1/tx.d.ts +472 -0
  131. package/sparkdream/commons/v1/tx.js +694 -1
  132. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  133. package/sparkdream/commons/v1/tx.registry.js +73 -1
  134. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
  135. package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
  136. package/sparkdream/federation/v1/genesis.d.ts +3 -3
  137. package/sparkdream/federation/v1/genesis.js +9 -9
  138. package/sparkdream/federation/v1/params.d.ts +64 -13
  139. package/sparkdream/federation/v1/params.js +29 -54
  140. package/sparkdream/federation/v1/query.d.ts +209 -100
  141. package/sparkdream/federation/v1/query.js +216 -71
  142. package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
  143. package/sparkdream/federation/v1/query.lcd.js +11 -6
  144. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  145. package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  146. package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
  147. package/sparkdream/federation/v1/tx.amino.js +20 -20
  148. package/sparkdream/federation/v1/tx.d.ts +479 -352
  149. package/sparkdream/federation/v1/tx.js +1147 -1106
  150. package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
  151. package/sparkdream/federation/v1/tx.registry.js +73 -73
  152. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
  153. package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
  154. package/sparkdream/federation/v1/types.d.ts +307 -41
  155. package/sparkdream/federation/v1/types.js +360 -100
  156. package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
  157. package/sparkdream/federation/v1/verifier_activity.js +13 -1
  158. package/sparkdream/forum/v1/params.d.ts +309 -62
  159. package/sparkdream/forum/v1/params.js +389 -148
  160. package/sparkdream/forum/v1/post.d.ts +28 -0
  161. package/sparkdream/forum/v1/post.js +25 -1
  162. package/sparkdream/forum/v1/tx.d.ts +291 -0
  163. package/sparkdream/forum/v1/tx.js +462 -2
  164. package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
  165. package/sparkdream/forum/v1/tx.registry.js +55 -1
  166. package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
  167. package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
  168. package/sparkdream/forum/v1/types.d.ts +247 -0
  169. package/sparkdream/forum/v1/types.js +356 -1
  170. package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
  171. package/sparkdream/forum/v1/user_rate_limit.js +41 -2
  172. package/sparkdream/guardian/module/v1/module.d.ts +74 -0
  173. package/sparkdream/guardian/module/v1/module.js +71 -0
  174. package/sparkdream/guardian/v1/query.d.ts +88 -0
  175. package/sparkdream/guardian/v1/query.js +131 -0
  176. package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
  177. package/sparkdream/guardian/v1/query.lcd.js +17 -0
  178. package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
  179. package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
  180. package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
  181. package/sparkdream/guardian/v1/tx.amino.js +12 -0
  182. package/sparkdream/guardian/v1/tx.d.ts +138 -0
  183. package/sparkdream/guardian/v1/tx.js +181 -0
  184. package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
  185. package/sparkdream/guardian/v1/tx.registry.js +37 -0
  186. package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
  187. package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
  188. package/sparkdream/identity/module/v1/module.d.ts +54 -0
  189. package/sparkdream/identity/module/v1/module.js +74 -0
  190. package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
  191. package/sparkdream/identity/v1/chain_identity.js +202 -0
  192. package/sparkdream/identity/v1/genesis.d.ts +65 -0
  193. package/sparkdream/identity/v1/genesis.js +87 -0
  194. package/sparkdream/identity/v1/query.d.ts +243 -0
  195. package/sparkdream/identity/v1/query.js +375 -0
  196. package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
  197. package/sparkdream/identity/v1/query.lcd.js +25 -0
  198. package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
  199. package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
  200. package/sparkdream/lcd.d.ts +9 -0
  201. package/sparkdream/lcd.js +15 -0
  202. package/sparkdream/name/v1/params.d.ts +25 -8
  203. package/sparkdream/name/v1/params.js +19 -18
  204. package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
  205. package/sparkdream/rep/v1/bonded_role.js +48 -2
  206. package/sparkdream/rep/v1/member.d.ts +134 -0
  207. package/sparkdream/rep/v1/member.js +210 -2
  208. package/sparkdream/rep/v1/tag.d.ts +15 -2
  209. package/sparkdream/rep/v1/tag.js +6 -13
  210. package/sparkdream/rpc.query.d.ts +34 -2
  211. package/sparkdream/rpc.query.js +9 -0
  212. package/sparkdream/rpc.tx.d.ts +6 -0
  213. package/sparkdream/rpc.tx.js +6 -0
  214. package/sparkdream/service/module/v1/module.d.ts +54 -0
  215. package/sparkdream/service/module/v1/module.js +74 -0
  216. package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
  217. package/sparkdream/service/v1/controller_transfer_case.js +158 -0
  218. package/sparkdream/service/v1/genesis.d.ts +172 -0
  219. package/sparkdream/service/v1/genesis.js +243 -0
  220. package/sparkdream/service/v1/operator.d.ts +215 -0
  221. package/sparkdream/service/v1/operator.js +253 -0
  222. package/sparkdream/service/v1/params.d.ts +346 -0
  223. package/sparkdream/service/v1/params.js +358 -0
  224. package/sparkdream/service/v1/query.d.ts +964 -0
  225. package/sparkdream/service/v1/query.js +1585 -0
  226. package/sparkdream/service/v1/query.lcd.d.ts +18 -0
  227. package/sparkdream/service/v1/query.lcd.js +111 -0
  228. package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
  229. package/sparkdream/service/v1/query.rpc.Query.js +114 -0
  230. package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
  231. package/sparkdream/service/v1/refile_cooldown.js +124 -0
  232. package/sparkdream/service/v1/report.d.ts +174 -0
  233. package/sparkdream/service/v1/report.js +215 -0
  234. package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
  235. package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
  236. package/sparkdream/service/v1/service_type_config.d.ts +222 -0
  237. package/sparkdream/service/v1/service_type_config.js +269 -0
  238. package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
  239. package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
  240. package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
  241. package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
  242. package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
  243. package/sparkdream/service/v1/tier1_last_slash.js +124 -0
  244. package/sparkdream/service/v1/tx.amino.d.ts +68 -0
  245. package/sparkdream/service/v1/tx.amino.js +72 -0
  246. package/sparkdream/service/v1/tx.d.ts +1264 -0
  247. package/sparkdream/service/v1/tx.js +2127 -0
  248. package/sparkdream/service/v1/tx.registry.d.ts +169 -0
  249. package/sparkdream/service/v1/tx.registry.js +253 -0
  250. package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
  251. package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
  252. package/sparkdream/service/v1/types.d.ts +94 -0
  253. package/sparkdream/service/v1/types.js +370 -0
  254. package/sparkdream/session/v1/genesis.d.ts +93 -9
  255. package/sparkdream/session/v1/genesis.js +137 -11
  256. package/sparkdream/session/v1/grant.d.ts +517 -0
  257. package/sparkdream/session/v1/grant.js +1027 -0
  258. package/sparkdream/session/v1/params.d.ts +338 -7
  259. package/sparkdream/session/v1/params.js +543 -19
  260. package/sparkdream/session/v1/query.d.ts +265 -0
  261. package/sparkdream/session/v1/query.js +488 -1
  262. package/sparkdream/session/v1/query.lcd.d.ts +4 -1
  263. package/sparkdream/session/v1/query.lcd.js +41 -3
  264. package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
  265. package/sparkdream/session/v1/query.rpc.Query.js +35 -3
  266. package/sparkdream/session/v1/session.d.ts +18 -0
  267. package/sparkdream/session/v1/session.js +6 -0
  268. package/sparkdream/session/v1/tx.d.ts +660 -0
  269. package/sparkdream/session/v1/tx.js +1067 -1
  270. package/sparkdream/session/v1/tx.registry.d.ts +73 -1
  271. package/sparkdream/session/v1/tx.registry.js +109 -1
  272. package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
  273. package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
  274. package/tendermint/bundle.d.ts +844 -844
  275. package/tendermint/bundle.js +20 -20
@@ -3711,3 +3711,696 @@ export const MsgDeleteCategoryResponse = {
3711
3711
  };
3712
3712
  }
3713
3713
  };
3714
+ function createBaseMsgScheduleRecurringSpend() {
3715
+ return {
3716
+ authority: "",
3717
+ recipient: "",
3718
+ amountPerPeriod: [],
3719
+ periodSeconds: BigInt(0),
3720
+ startTime: BigInt(0),
3721
+ endTime: BigInt(0),
3722
+ note: ""
3723
+ };
3724
+ }
3725
+ /**
3726
+ * MsgScheduleRecurringSpend schedules a recurring disbursement from the
3727
+ * council policy account. The signer is the policy address — this message
3728
+ * is intended to be wrapped in a MsgSubmitProposal so it executes only on
3729
+ * council approval.
3730
+ * @name MsgScheduleRecurringSpend
3731
+ * @package sparkdream.commons.v1
3732
+ * @see proto type: sparkdream.commons.v1.MsgScheduleRecurringSpend
3733
+ */
3734
+ export const MsgScheduleRecurringSpend = {
3735
+ typeUrl: "/sparkdream.commons.v1.MsgScheduleRecurringSpend",
3736
+ aminoType: "sparkdream/x/commons/MsgScheduleRecurringSpend",
3737
+ encode(message, writer = BinaryWriter.create()) {
3738
+ if (message.authority !== "") {
3739
+ writer.uint32(10).string(message.authority);
3740
+ }
3741
+ if (message.recipient !== "") {
3742
+ writer.uint32(18).string(message.recipient);
3743
+ }
3744
+ for (const v of message.amountPerPeriod) {
3745
+ Coin.encode(v, writer.uint32(26).fork()).ldelim();
3746
+ }
3747
+ if (message.periodSeconds !== BigInt(0)) {
3748
+ writer.uint32(32).int64(message.periodSeconds);
3749
+ }
3750
+ if (message.startTime !== BigInt(0)) {
3751
+ writer.uint32(40).int64(message.startTime);
3752
+ }
3753
+ if (message.endTime !== BigInt(0)) {
3754
+ writer.uint32(48).int64(message.endTime);
3755
+ }
3756
+ if (message.note !== "") {
3757
+ writer.uint32(58).string(message.note);
3758
+ }
3759
+ return writer;
3760
+ },
3761
+ decode(input, length) {
3762
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3763
+ let end = length === undefined ? reader.len : reader.pos + length;
3764
+ const message = createBaseMsgScheduleRecurringSpend();
3765
+ while (reader.pos < end) {
3766
+ const tag = reader.uint32();
3767
+ switch (tag >>> 3) {
3768
+ case 1:
3769
+ message.authority = reader.string();
3770
+ break;
3771
+ case 2:
3772
+ message.recipient = reader.string();
3773
+ break;
3774
+ case 3:
3775
+ message.amountPerPeriod.push(Coin.decode(reader, reader.uint32()));
3776
+ break;
3777
+ case 4:
3778
+ message.periodSeconds = reader.int64();
3779
+ break;
3780
+ case 5:
3781
+ message.startTime = reader.int64();
3782
+ break;
3783
+ case 6:
3784
+ message.endTime = reader.int64();
3785
+ break;
3786
+ case 7:
3787
+ message.note = reader.string();
3788
+ break;
3789
+ default:
3790
+ reader.skipType(tag & 7);
3791
+ break;
3792
+ }
3793
+ }
3794
+ return message;
3795
+ },
3796
+ fromPartial(object) {
3797
+ const message = createBaseMsgScheduleRecurringSpend();
3798
+ message.authority = object.authority ?? "";
3799
+ message.recipient = object.recipient ?? "";
3800
+ message.amountPerPeriod = object.amountPerPeriod?.map(e => Coin.fromPartial(e)) || [];
3801
+ message.periodSeconds = object.periodSeconds !== undefined && object.periodSeconds !== null ? BigInt(object.periodSeconds.toString()) : BigInt(0);
3802
+ message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0);
3803
+ message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0);
3804
+ message.note = object.note ?? "";
3805
+ return message;
3806
+ },
3807
+ fromAmino(object) {
3808
+ const message = createBaseMsgScheduleRecurringSpend();
3809
+ if (object.authority !== undefined && object.authority !== null) {
3810
+ message.authority = object.authority;
3811
+ }
3812
+ if (object.recipient !== undefined && object.recipient !== null) {
3813
+ message.recipient = object.recipient;
3814
+ }
3815
+ message.amountPerPeriod = object.amount_per_period?.map(e => Coin.fromAmino(e)) || [];
3816
+ if (object.period_seconds !== undefined && object.period_seconds !== null) {
3817
+ message.periodSeconds = BigInt(object.period_seconds);
3818
+ }
3819
+ if (object.start_time !== undefined && object.start_time !== null) {
3820
+ message.startTime = BigInt(object.start_time);
3821
+ }
3822
+ if (object.end_time !== undefined && object.end_time !== null) {
3823
+ message.endTime = BigInt(object.end_time);
3824
+ }
3825
+ if (object.note !== undefined && object.note !== null) {
3826
+ message.note = object.note;
3827
+ }
3828
+ return message;
3829
+ },
3830
+ toAmino(message) {
3831
+ const obj = {};
3832
+ obj.authority = message.authority === "" ? undefined : message.authority;
3833
+ obj.recipient = message.recipient === "" ? undefined : message.recipient;
3834
+ if (message.amountPerPeriod) {
3835
+ obj.amount_per_period = message.amountPerPeriod.map(e => e ? Coin.toAmino(e) : undefined);
3836
+ }
3837
+ else {
3838
+ obj.amount_per_period = message.amountPerPeriod;
3839
+ }
3840
+ obj.period_seconds = message.periodSeconds !== BigInt(0) ? message.periodSeconds?.toString() : undefined;
3841
+ obj.start_time = message.startTime !== BigInt(0) ? message.startTime?.toString() : undefined;
3842
+ obj.end_time = message.endTime !== BigInt(0) ? message.endTime?.toString() : undefined;
3843
+ obj.note = message.note === "" ? undefined : message.note;
3844
+ return obj;
3845
+ },
3846
+ fromAminoMsg(object) {
3847
+ return MsgScheduleRecurringSpend.fromAmino(object.value);
3848
+ },
3849
+ toAminoMsg(message) {
3850
+ return {
3851
+ type: "sparkdream/x/commons/MsgScheduleRecurringSpend",
3852
+ value: MsgScheduleRecurringSpend.toAmino(message)
3853
+ };
3854
+ },
3855
+ fromProtoMsg(message) {
3856
+ return MsgScheduleRecurringSpend.decode(message.value);
3857
+ },
3858
+ toProto(message) {
3859
+ return MsgScheduleRecurringSpend.encode(message).finish();
3860
+ },
3861
+ toProtoMsg(message) {
3862
+ return {
3863
+ typeUrl: "/sparkdream.commons.v1.MsgScheduleRecurringSpend",
3864
+ value: MsgScheduleRecurringSpend.encode(message).finish()
3865
+ };
3866
+ }
3867
+ };
3868
+ function createBaseMsgScheduleRecurringSpendResponse() {
3869
+ return {
3870
+ id: BigInt(0)
3871
+ };
3872
+ }
3873
+ /**
3874
+ * MsgScheduleRecurringSpendResponse returns the new schedule's ID.
3875
+ * @name MsgScheduleRecurringSpendResponse
3876
+ * @package sparkdream.commons.v1
3877
+ * @see proto type: sparkdream.commons.v1.MsgScheduleRecurringSpendResponse
3878
+ */
3879
+ export const MsgScheduleRecurringSpendResponse = {
3880
+ typeUrl: "/sparkdream.commons.v1.MsgScheduleRecurringSpendResponse",
3881
+ encode(message, writer = BinaryWriter.create()) {
3882
+ if (message.id !== BigInt(0)) {
3883
+ writer.uint32(8).uint64(message.id);
3884
+ }
3885
+ return writer;
3886
+ },
3887
+ decode(input, length) {
3888
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3889
+ let end = length === undefined ? reader.len : reader.pos + length;
3890
+ const message = createBaseMsgScheduleRecurringSpendResponse();
3891
+ while (reader.pos < end) {
3892
+ const tag = reader.uint32();
3893
+ switch (tag >>> 3) {
3894
+ case 1:
3895
+ message.id = reader.uint64();
3896
+ break;
3897
+ default:
3898
+ reader.skipType(tag & 7);
3899
+ break;
3900
+ }
3901
+ }
3902
+ return message;
3903
+ },
3904
+ fromPartial(object) {
3905
+ const message = createBaseMsgScheduleRecurringSpendResponse();
3906
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
3907
+ return message;
3908
+ },
3909
+ fromAmino(object) {
3910
+ const message = createBaseMsgScheduleRecurringSpendResponse();
3911
+ if (object.id !== undefined && object.id !== null) {
3912
+ message.id = BigInt(object.id);
3913
+ }
3914
+ return message;
3915
+ },
3916
+ toAmino(message) {
3917
+ const obj = {};
3918
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
3919
+ return obj;
3920
+ },
3921
+ fromAminoMsg(object) {
3922
+ return MsgScheduleRecurringSpendResponse.fromAmino(object.value);
3923
+ },
3924
+ fromProtoMsg(message) {
3925
+ return MsgScheduleRecurringSpendResponse.decode(message.value);
3926
+ },
3927
+ toProto(message) {
3928
+ return MsgScheduleRecurringSpendResponse.encode(message).finish();
3929
+ },
3930
+ toProtoMsg(message) {
3931
+ return {
3932
+ typeUrl: "/sparkdream.commons.v1.MsgScheduleRecurringSpendResponse",
3933
+ value: MsgScheduleRecurringSpendResponse.encode(message).finish()
3934
+ };
3935
+ }
3936
+ };
3937
+ function createBaseMsgCancelRecurringSpend() {
3938
+ return {
3939
+ authority: "",
3940
+ id: BigInt(0)
3941
+ };
3942
+ }
3943
+ /**
3944
+ * MsgCancelRecurringSpend cancels an existing recurring schedule. The
3945
+ * signer must be the same authority that scheduled it (so this is also
3946
+ * wrapped in a MsgSubmitProposal).
3947
+ * @name MsgCancelRecurringSpend
3948
+ * @package sparkdream.commons.v1
3949
+ * @see proto type: sparkdream.commons.v1.MsgCancelRecurringSpend
3950
+ */
3951
+ export const MsgCancelRecurringSpend = {
3952
+ typeUrl: "/sparkdream.commons.v1.MsgCancelRecurringSpend",
3953
+ aminoType: "sparkdream/x/commons/MsgCancelRecurringSpend",
3954
+ encode(message, writer = BinaryWriter.create()) {
3955
+ if (message.authority !== "") {
3956
+ writer.uint32(10).string(message.authority);
3957
+ }
3958
+ if (message.id !== BigInt(0)) {
3959
+ writer.uint32(16).uint64(message.id);
3960
+ }
3961
+ return writer;
3962
+ },
3963
+ decode(input, length) {
3964
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3965
+ let end = length === undefined ? reader.len : reader.pos + length;
3966
+ const message = createBaseMsgCancelRecurringSpend();
3967
+ while (reader.pos < end) {
3968
+ const tag = reader.uint32();
3969
+ switch (tag >>> 3) {
3970
+ case 1:
3971
+ message.authority = reader.string();
3972
+ break;
3973
+ case 2:
3974
+ message.id = reader.uint64();
3975
+ break;
3976
+ default:
3977
+ reader.skipType(tag & 7);
3978
+ break;
3979
+ }
3980
+ }
3981
+ return message;
3982
+ },
3983
+ fromPartial(object) {
3984
+ const message = createBaseMsgCancelRecurringSpend();
3985
+ message.authority = object.authority ?? "";
3986
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
3987
+ return message;
3988
+ },
3989
+ fromAmino(object) {
3990
+ const message = createBaseMsgCancelRecurringSpend();
3991
+ if (object.authority !== undefined && object.authority !== null) {
3992
+ message.authority = object.authority;
3993
+ }
3994
+ if (object.id !== undefined && object.id !== null) {
3995
+ message.id = BigInt(object.id);
3996
+ }
3997
+ return message;
3998
+ },
3999
+ toAmino(message) {
4000
+ const obj = {};
4001
+ obj.authority = message.authority === "" ? undefined : message.authority;
4002
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
4003
+ return obj;
4004
+ },
4005
+ fromAminoMsg(object) {
4006
+ return MsgCancelRecurringSpend.fromAmino(object.value);
4007
+ },
4008
+ toAminoMsg(message) {
4009
+ return {
4010
+ type: "sparkdream/x/commons/MsgCancelRecurringSpend",
4011
+ value: MsgCancelRecurringSpend.toAmino(message)
4012
+ };
4013
+ },
4014
+ fromProtoMsg(message) {
4015
+ return MsgCancelRecurringSpend.decode(message.value);
4016
+ },
4017
+ toProto(message) {
4018
+ return MsgCancelRecurringSpend.encode(message).finish();
4019
+ },
4020
+ toProtoMsg(message) {
4021
+ return {
4022
+ typeUrl: "/sparkdream.commons.v1.MsgCancelRecurringSpend",
4023
+ value: MsgCancelRecurringSpend.encode(message).finish()
4024
+ };
4025
+ }
4026
+ };
4027
+ function createBaseMsgCancelRecurringSpendResponse() {
4028
+ return {};
4029
+ }
4030
+ /**
4031
+ * MsgCancelRecurringSpendResponse is empty.
4032
+ * @name MsgCancelRecurringSpendResponse
4033
+ * @package sparkdream.commons.v1
4034
+ * @see proto type: sparkdream.commons.v1.MsgCancelRecurringSpendResponse
4035
+ */
4036
+ export const MsgCancelRecurringSpendResponse = {
4037
+ typeUrl: "/sparkdream.commons.v1.MsgCancelRecurringSpendResponse",
4038
+ encode(_, writer = BinaryWriter.create()) {
4039
+ return writer;
4040
+ },
4041
+ decode(input, length) {
4042
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4043
+ let end = length === undefined ? reader.len : reader.pos + length;
4044
+ const message = createBaseMsgCancelRecurringSpendResponse();
4045
+ while (reader.pos < end) {
4046
+ const tag = reader.uint32();
4047
+ switch (tag >>> 3) {
4048
+ default:
4049
+ reader.skipType(tag & 7);
4050
+ break;
4051
+ }
4052
+ }
4053
+ return message;
4054
+ },
4055
+ fromPartial(_) {
4056
+ const message = createBaseMsgCancelRecurringSpendResponse();
4057
+ return message;
4058
+ },
4059
+ fromAmino(_) {
4060
+ const message = createBaseMsgCancelRecurringSpendResponse();
4061
+ return message;
4062
+ },
4063
+ toAmino(_) {
4064
+ const obj = {};
4065
+ return obj;
4066
+ },
4067
+ fromAminoMsg(object) {
4068
+ return MsgCancelRecurringSpendResponse.fromAmino(object.value);
4069
+ },
4070
+ fromProtoMsg(message) {
4071
+ return MsgCancelRecurringSpendResponse.decode(message.value);
4072
+ },
4073
+ toProto(message) {
4074
+ return MsgCancelRecurringSpendResponse.encode(message).finish();
4075
+ },
4076
+ toProtoMsg(message) {
4077
+ return {
4078
+ typeUrl: "/sparkdream.commons.v1.MsgCancelRecurringSpendResponse",
4079
+ value: MsgCancelRecurringSpendResponse.encode(message).finish()
4080
+ };
4081
+ }
4082
+ };
4083
+ function createBaseMsgClaimRecurringSpend() {
4084
+ return {
4085
+ recipient: "",
4086
+ id: BigInt(0)
4087
+ };
4088
+ }
4089
+ /**
4090
+ * MsgClaimRecurringSpend disburses one period of an active schedule. The
4091
+ * signer is the recipient. Each claim:
4092
+ * - checks the schedule is ACTIVE,
4093
+ * - checks at least `period_seconds` have elapsed since the schedule's
4094
+ * logical clock (last_claim_advance, defaulting to start_time),
4095
+ * - runs CheckSpendPreconditions on the council (term + rate limit),
4096
+ * - transfers amount_per_period via bankKeeper.SendCoins,
4097
+ * - advances last_claim_advance by exactly period_seconds.
4098
+ * @name MsgClaimRecurringSpend
4099
+ * @package sparkdream.commons.v1
4100
+ * @see proto type: sparkdream.commons.v1.MsgClaimRecurringSpend
4101
+ */
4102
+ export const MsgClaimRecurringSpend = {
4103
+ typeUrl: "/sparkdream.commons.v1.MsgClaimRecurringSpend",
4104
+ aminoType: "sparkdream/x/commons/MsgClaimRecurringSpend",
4105
+ encode(message, writer = BinaryWriter.create()) {
4106
+ if (message.recipient !== "") {
4107
+ writer.uint32(10).string(message.recipient);
4108
+ }
4109
+ if (message.id !== BigInt(0)) {
4110
+ writer.uint32(16).uint64(message.id);
4111
+ }
4112
+ return writer;
4113
+ },
4114
+ decode(input, length) {
4115
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4116
+ let end = length === undefined ? reader.len : reader.pos + length;
4117
+ const message = createBaseMsgClaimRecurringSpend();
4118
+ while (reader.pos < end) {
4119
+ const tag = reader.uint32();
4120
+ switch (tag >>> 3) {
4121
+ case 1:
4122
+ message.recipient = reader.string();
4123
+ break;
4124
+ case 2:
4125
+ message.id = reader.uint64();
4126
+ break;
4127
+ default:
4128
+ reader.skipType(tag & 7);
4129
+ break;
4130
+ }
4131
+ }
4132
+ return message;
4133
+ },
4134
+ fromPartial(object) {
4135
+ const message = createBaseMsgClaimRecurringSpend();
4136
+ message.recipient = object.recipient ?? "";
4137
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
4138
+ return message;
4139
+ },
4140
+ fromAmino(object) {
4141
+ const message = createBaseMsgClaimRecurringSpend();
4142
+ if (object.recipient !== undefined && object.recipient !== null) {
4143
+ message.recipient = object.recipient;
4144
+ }
4145
+ if (object.id !== undefined && object.id !== null) {
4146
+ message.id = BigInt(object.id);
4147
+ }
4148
+ return message;
4149
+ },
4150
+ toAmino(message) {
4151
+ const obj = {};
4152
+ obj.recipient = message.recipient === "" ? undefined : message.recipient;
4153
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
4154
+ return obj;
4155
+ },
4156
+ fromAminoMsg(object) {
4157
+ return MsgClaimRecurringSpend.fromAmino(object.value);
4158
+ },
4159
+ toAminoMsg(message) {
4160
+ return {
4161
+ type: "sparkdream/x/commons/MsgClaimRecurringSpend",
4162
+ value: MsgClaimRecurringSpend.toAmino(message)
4163
+ };
4164
+ },
4165
+ fromProtoMsg(message) {
4166
+ return MsgClaimRecurringSpend.decode(message.value);
4167
+ },
4168
+ toProto(message) {
4169
+ return MsgClaimRecurringSpend.encode(message).finish();
4170
+ },
4171
+ toProtoMsg(message) {
4172
+ return {
4173
+ typeUrl: "/sparkdream.commons.v1.MsgClaimRecurringSpend",
4174
+ value: MsgClaimRecurringSpend.encode(message).finish()
4175
+ };
4176
+ }
4177
+ };
4178
+ function createBaseMsgClaimRecurringSpendResponse() {
4179
+ return {
4180
+ claimNumber: BigInt(0),
4181
+ nextClaimTime: BigInt(0)
4182
+ };
4183
+ }
4184
+ /**
4185
+ * MsgClaimRecurringSpendResponse returns the claim number that was
4186
+ * disbursed (1-indexed) and the unix timestamp the schedule's clock now
4187
+ * points to.
4188
+ * @name MsgClaimRecurringSpendResponse
4189
+ * @package sparkdream.commons.v1
4190
+ * @see proto type: sparkdream.commons.v1.MsgClaimRecurringSpendResponse
4191
+ */
4192
+ export const MsgClaimRecurringSpendResponse = {
4193
+ typeUrl: "/sparkdream.commons.v1.MsgClaimRecurringSpendResponse",
4194
+ encode(message, writer = BinaryWriter.create()) {
4195
+ if (message.claimNumber !== BigInt(0)) {
4196
+ writer.uint32(8).uint64(message.claimNumber);
4197
+ }
4198
+ if (message.nextClaimTime !== BigInt(0)) {
4199
+ writer.uint32(16).int64(message.nextClaimTime);
4200
+ }
4201
+ return writer;
4202
+ },
4203
+ decode(input, length) {
4204
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4205
+ let end = length === undefined ? reader.len : reader.pos + length;
4206
+ const message = createBaseMsgClaimRecurringSpendResponse();
4207
+ while (reader.pos < end) {
4208
+ const tag = reader.uint32();
4209
+ switch (tag >>> 3) {
4210
+ case 1:
4211
+ message.claimNumber = reader.uint64();
4212
+ break;
4213
+ case 2:
4214
+ message.nextClaimTime = reader.int64();
4215
+ break;
4216
+ default:
4217
+ reader.skipType(tag & 7);
4218
+ break;
4219
+ }
4220
+ }
4221
+ return message;
4222
+ },
4223
+ fromPartial(object) {
4224
+ const message = createBaseMsgClaimRecurringSpendResponse();
4225
+ message.claimNumber = object.claimNumber !== undefined && object.claimNumber !== null ? BigInt(object.claimNumber.toString()) : BigInt(0);
4226
+ message.nextClaimTime = object.nextClaimTime !== undefined && object.nextClaimTime !== null ? BigInt(object.nextClaimTime.toString()) : BigInt(0);
4227
+ return message;
4228
+ },
4229
+ fromAmino(object) {
4230
+ const message = createBaseMsgClaimRecurringSpendResponse();
4231
+ if (object.claim_number !== undefined && object.claim_number !== null) {
4232
+ message.claimNumber = BigInt(object.claim_number);
4233
+ }
4234
+ if (object.next_claim_time !== undefined && object.next_claim_time !== null) {
4235
+ message.nextClaimTime = BigInt(object.next_claim_time);
4236
+ }
4237
+ return message;
4238
+ },
4239
+ toAmino(message) {
4240
+ const obj = {};
4241
+ obj.claim_number = message.claimNumber !== BigInt(0) ? message.claimNumber?.toString() : undefined;
4242
+ obj.next_claim_time = message.nextClaimTime !== BigInt(0) ? message.nextClaimTime?.toString() : undefined;
4243
+ return obj;
4244
+ },
4245
+ fromAminoMsg(object) {
4246
+ return MsgClaimRecurringSpendResponse.fromAmino(object.value);
4247
+ },
4248
+ fromProtoMsg(message) {
4249
+ return MsgClaimRecurringSpendResponse.decode(message.value);
4250
+ },
4251
+ toProto(message) {
4252
+ return MsgClaimRecurringSpendResponse.encode(message).finish();
4253
+ },
4254
+ toProtoMsg(message) {
4255
+ return {
4256
+ typeUrl: "/sparkdream.commons.v1.MsgClaimRecurringSpendResponse",
4257
+ value: MsgClaimRecurringSpendResponse.encode(message).finish()
4258
+ };
4259
+ }
4260
+ };
4261
+ function createBaseMsgDeclineRecurringSpend() {
4262
+ return {
4263
+ recipient: "",
4264
+ id: BigInt(0)
4265
+ };
4266
+ }
4267
+ /**
4268
+ * MsgDeclineRecurringSpend lets the recipient permanently opt out of a
4269
+ * schedule. After decline the schedule moves to
4270
+ * RECURRING_SPEND_STATUS_RECIPIENT_DECLINED and no further claims succeed.
4271
+ * @name MsgDeclineRecurringSpend
4272
+ * @package sparkdream.commons.v1
4273
+ * @see proto type: sparkdream.commons.v1.MsgDeclineRecurringSpend
4274
+ */
4275
+ export const MsgDeclineRecurringSpend = {
4276
+ typeUrl: "/sparkdream.commons.v1.MsgDeclineRecurringSpend",
4277
+ aminoType: "sparkdream/x/commons/MsgDeclineRecurringSpend",
4278
+ encode(message, writer = BinaryWriter.create()) {
4279
+ if (message.recipient !== "") {
4280
+ writer.uint32(10).string(message.recipient);
4281
+ }
4282
+ if (message.id !== BigInt(0)) {
4283
+ writer.uint32(16).uint64(message.id);
4284
+ }
4285
+ return writer;
4286
+ },
4287
+ decode(input, length) {
4288
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4289
+ let end = length === undefined ? reader.len : reader.pos + length;
4290
+ const message = createBaseMsgDeclineRecurringSpend();
4291
+ while (reader.pos < end) {
4292
+ const tag = reader.uint32();
4293
+ switch (tag >>> 3) {
4294
+ case 1:
4295
+ message.recipient = reader.string();
4296
+ break;
4297
+ case 2:
4298
+ message.id = reader.uint64();
4299
+ break;
4300
+ default:
4301
+ reader.skipType(tag & 7);
4302
+ break;
4303
+ }
4304
+ }
4305
+ return message;
4306
+ },
4307
+ fromPartial(object) {
4308
+ const message = createBaseMsgDeclineRecurringSpend();
4309
+ message.recipient = object.recipient ?? "";
4310
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
4311
+ return message;
4312
+ },
4313
+ fromAmino(object) {
4314
+ const message = createBaseMsgDeclineRecurringSpend();
4315
+ if (object.recipient !== undefined && object.recipient !== null) {
4316
+ message.recipient = object.recipient;
4317
+ }
4318
+ if (object.id !== undefined && object.id !== null) {
4319
+ message.id = BigInt(object.id);
4320
+ }
4321
+ return message;
4322
+ },
4323
+ toAmino(message) {
4324
+ const obj = {};
4325
+ obj.recipient = message.recipient === "" ? undefined : message.recipient;
4326
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
4327
+ return obj;
4328
+ },
4329
+ fromAminoMsg(object) {
4330
+ return MsgDeclineRecurringSpend.fromAmino(object.value);
4331
+ },
4332
+ toAminoMsg(message) {
4333
+ return {
4334
+ type: "sparkdream/x/commons/MsgDeclineRecurringSpend",
4335
+ value: MsgDeclineRecurringSpend.toAmino(message)
4336
+ };
4337
+ },
4338
+ fromProtoMsg(message) {
4339
+ return MsgDeclineRecurringSpend.decode(message.value);
4340
+ },
4341
+ toProto(message) {
4342
+ return MsgDeclineRecurringSpend.encode(message).finish();
4343
+ },
4344
+ toProtoMsg(message) {
4345
+ return {
4346
+ typeUrl: "/sparkdream.commons.v1.MsgDeclineRecurringSpend",
4347
+ value: MsgDeclineRecurringSpend.encode(message).finish()
4348
+ };
4349
+ }
4350
+ };
4351
+ function createBaseMsgDeclineRecurringSpendResponse() {
4352
+ return {};
4353
+ }
4354
+ /**
4355
+ * MsgDeclineRecurringSpendResponse is empty.
4356
+ * @name MsgDeclineRecurringSpendResponse
4357
+ * @package sparkdream.commons.v1
4358
+ * @see proto type: sparkdream.commons.v1.MsgDeclineRecurringSpendResponse
4359
+ */
4360
+ export const MsgDeclineRecurringSpendResponse = {
4361
+ typeUrl: "/sparkdream.commons.v1.MsgDeclineRecurringSpendResponse",
4362
+ encode(_, writer = BinaryWriter.create()) {
4363
+ return writer;
4364
+ },
4365
+ decode(input, length) {
4366
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4367
+ let end = length === undefined ? reader.len : reader.pos + length;
4368
+ const message = createBaseMsgDeclineRecurringSpendResponse();
4369
+ while (reader.pos < end) {
4370
+ const tag = reader.uint32();
4371
+ switch (tag >>> 3) {
4372
+ default:
4373
+ reader.skipType(tag & 7);
4374
+ break;
4375
+ }
4376
+ }
4377
+ return message;
4378
+ },
4379
+ fromPartial(_) {
4380
+ const message = createBaseMsgDeclineRecurringSpendResponse();
4381
+ return message;
4382
+ },
4383
+ fromAmino(_) {
4384
+ const message = createBaseMsgDeclineRecurringSpendResponse();
4385
+ return message;
4386
+ },
4387
+ toAmino(_) {
4388
+ const obj = {};
4389
+ return obj;
4390
+ },
4391
+ fromAminoMsg(object) {
4392
+ return MsgDeclineRecurringSpendResponse.fromAmino(object.value);
4393
+ },
4394
+ fromProtoMsg(message) {
4395
+ return MsgDeclineRecurringSpendResponse.decode(message.value);
4396
+ },
4397
+ toProto(message) {
4398
+ return MsgDeclineRecurringSpendResponse.encode(message).finish();
4399
+ },
4400
+ toProtoMsg(message) {
4401
+ return {
4402
+ typeUrl: "/sparkdream.commons.v1.MsgDeclineRecurringSpendResponse",
4403
+ value: MsgDeclineRecurringSpendResponse.encode(message).finish()
4404
+ };
4405
+ }
4406
+ };