@sparkdreamnft/sparkdreamjs 0.0.45 → 0.0.47

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 (194) hide show
  1. package/akash/bundle.d.ts +134 -134
  2. package/akash/bundle.js +150 -150
  3. package/amino-schema.d.ts +5741 -0
  4. package/amino-schema.js +8 -0
  5. package/chain-amino.d.ts +61 -0
  6. package/chain-amino.js +670 -0
  7. package/cosmos/bundle.d.ts +160 -160
  8. package/cosmos/bundle.js +182 -182
  9. package/esm/akash/bundle.js +150 -150
  10. package/esm/amino-schema.js +5 -0
  11. package/esm/chain-amino.js +665 -0
  12. package/esm/cosmos/bundle.js +182 -182
  13. package/esm/ibc/bundle.js +116 -116
  14. package/esm/nested-amino.js +12 -4
  15. package/esm/sparkdream/artifact/v1/genesis.js +217 -3
  16. package/esm/sparkdream/artifact/v1/params.js +146 -2
  17. package/esm/sparkdream/artifact/v1/query.js +3767 -5
  18. package/esm/sparkdream/artifact/v1/query.lcd.js +173 -0
  19. package/esm/sparkdream/artifact/v1/query.rpc.Query.js +195 -1
  20. package/esm/sparkdream/artifact/v1/tx.amino.js +16 -158
  21. package/esm/sparkdream/artifact/v1/tx.js +7498 -5
  22. package/esm/sparkdream/artifact/v1/tx.registry.js +704 -2
  23. package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +241 -1
  24. package/esm/sparkdream/artifact/v1/types.js +4312 -1120
  25. package/esm/sparkdream/blog/v1/tx.amino.js +15 -115
  26. package/esm/sparkdream/bundle.js +329 -291
  27. package/esm/sparkdream/client.js +5 -2
  28. package/esm/sparkdream/collect/v1/tx.amino.js +15 -239
  29. package/esm/sparkdream/commons/v1/tx.amino.js +12 -226
  30. package/esm/sparkdream/commons/v1/tx.js +25 -1
  31. package/esm/sparkdream/ecosystem/v1/tx.amino.js +15 -26
  32. package/esm/sparkdream/federation/v1/tx.amino.js +16 -128
  33. package/esm/sparkdream/forum/v1/tx.amino.js +15 -211
  34. package/esm/sparkdream/futarchy/v1/tx.amino.js +16 -38
  35. package/esm/sparkdream/guardian/v1/tx.amino.js +17 -8
  36. package/esm/sparkdream/lcd.js +5 -0
  37. package/esm/sparkdream/name/v1/tx.amino.js +16 -63
  38. package/esm/sparkdream/rep/v1/genesis.js +74 -1
  39. package/esm/sparkdream/rep/v1/member.js +110 -1
  40. package/esm/sparkdream/rep/v1/migration.js +957 -0
  41. package/esm/sparkdream/rep/v1/params.js +181 -1
  42. package/esm/sparkdream/rep/v1/query.js +1060 -0
  43. package/esm/sparkdream/rep/v1/query.lcd.js +48 -0
  44. package/esm/sparkdream/rep/v1/query.rpc.Query.js +65 -1
  45. package/esm/sparkdream/rep/v1/tx.amino.js +12 -414
  46. package/esm/sparkdream/rep/v1/tx.js +1741 -1
  47. package/esm/sparkdream/rep/v1/tx.registry.js +200 -2
  48. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +67 -1
  49. package/esm/sparkdream/reveal/v1/tx.amino.js +15 -73
  50. package/esm/sparkdream/rpc.query.js +3 -0
  51. package/esm/sparkdream/rpc.tx.js +3 -0
  52. package/esm/sparkdream/season/v1/tx.amino.js +16 -218
  53. package/esm/sparkdream/service/v1/tx.amino.js +16 -78
  54. package/esm/sparkdream/session/v1/tx.amino.js +16 -271
  55. package/esm/sparkdream/session/v1/tx.js +38 -2
  56. package/esm/sparkdream/shield/v1/tx.amino.js +15 -80
  57. package/esm/sparkdream/sparkdream/v1/tx.amino.js +16 -8
  58. package/esm/sparkdream/split/v1/tx.amino.js +16 -8
  59. package/esm/sparkdream/vault/module/v1/module.js +71 -0
  60. package/esm/sparkdream/vault/v1/genesis.js +104 -0
  61. package/esm/sparkdream/vault/v1/params.js +90 -0
  62. package/esm/sparkdream/vault/v1/query.js +1535 -0
  63. package/esm/sparkdream/vault/v1/query.lcd.js +100 -0
  64. package/esm/sparkdream/vault/v1/query.rpc.Query.js +111 -0
  65. package/esm/sparkdream/vault/v1/tx.amino.js +18 -0
  66. package/esm/sparkdream/vault/v1/tx.js +1393 -0
  67. package/esm/sparkdream/vault/v1/tx.registry.js +159 -0
  68. package/esm/sparkdream/vault/v1/tx.rpc.msg.js +60 -0
  69. package/esm/sparkdream/vault/v1/vault.js +163 -0
  70. package/esm/sparkdream/vault/v1/vault_proposal.js +277 -0
  71. package/esm/sparkdream/vault/v1/vault_signer.js +85 -0
  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/nested-amino.d.ts +7 -2
  76. package/nested-amino.js +13 -4
  77. package/package.json +1 -13
  78. package/sparkdream/artifact/v1/genesis.d.ts +37 -4
  79. package/sparkdream/artifact/v1/genesis.js +216 -2
  80. package/sparkdream/artifact/v1/params.d.ts +92 -0
  81. package/sparkdream/artifact/v1/params.js +146 -2
  82. package/sparkdream/artifact/v1/query.d.ts +2373 -168
  83. package/sparkdream/artifact/v1/query.js +3768 -5
  84. package/sparkdream/artifact/v1/query.lcd.d.ts +22 -1
  85. package/sparkdream/artifact/v1/query.lcd.js +173 -0
  86. package/sparkdream/artifact/v1/query.rpc.Query.d.ts +98 -1
  87. package/sparkdream/artifact/v1/query.rpc.Query.js +194 -0
  88. package/sparkdream/artifact/v1/tx.amino.d.ts +1 -158
  89. package/sparkdream/artifact/v1/tx.amino.js +49 -158
  90. package/sparkdream/artifact/v1/tx.d.ts +5188 -930
  91. package/sparkdream/artifact/v1/tx.js +7499 -5
  92. package/sparkdream/artifact/v1/tx.registry.d.ts +469 -1
  93. package/sparkdream/artifact/v1/tx.registry.js +703 -1
  94. package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +136 -1
  95. package/sparkdream/artifact/v1/tx.rpc.msg.js +240 -0
  96. package/sparkdream/artifact/v1/types.d.ts +1797 -25
  97. package/sparkdream/artifact/v1/types.js +4322 -1121
  98. package/sparkdream/blog/v1/tx.amino.d.ts +1 -83
  99. package/sparkdream/blog/v1/tx.amino.js +50 -117
  100. package/sparkdream/bundle.d.ts +12983 -10912
  101. package/sparkdream/bundle.js +329 -291
  102. package/sparkdream/client.d.ts +1 -1629
  103. package/sparkdream/client.js +5 -2
  104. package/sparkdream/collect/v1/tx.amino.d.ts +1 -138
  105. package/sparkdream/collect/v1/tx.amino.js +50 -241
  106. package/sparkdream/commons/v1/tx.amino.d.ts +1 -103
  107. package/sparkdream/commons/v1/tx.amino.js +49 -230
  108. package/sparkdream/commons/v1/tx.d.ts +18 -0
  109. package/sparkdream/commons/v1/tx.js +25 -1
  110. package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -13
  111. package/sparkdream/ecosystem/v1/tx.amino.js +50 -28
  112. package/sparkdream/federation/v1/tx.amino.d.ts +1 -128
  113. package/sparkdream/federation/v1/tx.amino.js +49 -128
  114. package/sparkdream/forum/v1/tx.amino.d.ts +1 -183
  115. package/sparkdream/forum/v1/tx.amino.js +50 -213
  116. package/sparkdream/futarchy/v1/tx.amino.d.ts +1 -38
  117. package/sparkdream/futarchy/v1/tx.amino.js +49 -38
  118. package/sparkdream/guardian/v1/tx.amino.d.ts +2 -8
  119. package/sparkdream/guardian/v1/tx.amino.js +52 -9
  120. package/sparkdream/lcd.d.ts +3 -0
  121. package/sparkdream/lcd.js +5 -0
  122. package/sparkdream/name/v1/tx.amino.d.ts +1 -63
  123. package/sparkdream/name/v1/tx.amino.js +49 -63
  124. package/sparkdream/rep/v1/genesis.d.ts +19 -0
  125. package/sparkdream/rep/v1/genesis.js +74 -1
  126. package/sparkdream/rep/v1/member.d.ts +92 -0
  127. package/sparkdream/rep/v1/member.js +110 -1
  128. package/sparkdream/rep/v1/migration.d.ts +587 -0
  129. package/sparkdream/rep/v1/migration.js +964 -0
  130. package/sparkdream/rep/v1/params.d.ts +174 -0
  131. package/sparkdream/rep/v1/params.js +181 -1
  132. package/sparkdream/rep/v1/query.d.ts +679 -0
  133. package/sparkdream/rep/v1/query.js +1061 -1
  134. package/sparkdream/rep/v1/query.lcd.d.ts +8 -1
  135. package/sparkdream/rep/v1/query.lcd.js +48 -0
  136. package/sparkdream/rep/v1/query.rpc.Query.d.ts +32 -1
  137. package/sparkdream/rep/v1/query.rpc.Query.js +64 -0
  138. package/sparkdream/rep/v1/tx.amino.d.ts +1 -283
  139. package/sparkdream/rep/v1/tx.amino.js +47 -416
  140. package/sparkdream/rep/v1/tx.d.ts +1185 -0
  141. package/sparkdream/rep/v1/tx.js +1742 -2
  142. package/sparkdream/rep/v1/tx.registry.d.ts +133 -1
  143. package/sparkdream/rep/v1/tx.registry.js +199 -1
  144. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +34 -1
  145. package/sparkdream/rep/v1/tx.rpc.msg.js +66 -0
  146. package/sparkdream/reveal/v1/tx.amino.d.ts +1 -53
  147. package/sparkdream/reveal/v1/tx.amino.js +50 -75
  148. package/sparkdream/rpc.query.d.ts +42 -0
  149. package/sparkdream/rpc.query.js +3 -0
  150. package/sparkdream/rpc.tx.d.ts +3 -0
  151. package/sparkdream/rpc.tx.js +3 -0
  152. package/sparkdream/season/v1/tx.amino.d.ts +1 -218
  153. package/sparkdream/season/v1/tx.amino.js +49 -218
  154. package/sparkdream/service/v1/tx.amino.d.ts +1 -78
  155. package/sparkdream/service/v1/tx.amino.js +49 -78
  156. package/sparkdream/session/v1/tx.amino.d.ts +1 -93
  157. package/sparkdream/session/v1/tx.amino.js +48 -270
  158. package/sparkdream/session/v1/tx.d.ts +30 -0
  159. package/sparkdream/session/v1/tx.js +38 -2
  160. package/sparkdream/shield/v1/tx.amino.d.ts +1 -28
  161. package/sparkdream/shield/v1/tx.amino.js +50 -82
  162. package/sparkdream/sparkdream/v1/tx.amino.d.ts +1 -8
  163. package/sparkdream/sparkdream/v1/tx.amino.js +49 -8
  164. package/sparkdream/split/v1/tx.amino.d.ts +1 -8
  165. package/sparkdream/split/v1/tx.amino.js +49 -8
  166. package/sparkdream/vault/module/v1/module.d.ts +54 -0
  167. package/sparkdream/vault/module/v1/module.js +74 -0
  168. package/sparkdream/vault/v1/genesis.d.ts +59 -0
  169. package/sparkdream/vault/v1/genesis.js +107 -0
  170. package/sparkdream/vault/v1/params.d.ts +68 -0
  171. package/sparkdream/vault/v1/params.js +93 -0
  172. package/sparkdream/vault/v1/query.d.ts +935 -0
  173. package/sparkdream/vault/v1/query.js +1538 -0
  174. package/sparkdream/vault/v1/query.lcd.d.ts +18 -0
  175. package/sparkdream/vault/v1/query.lcd.js +104 -0
  176. package/sparkdream/vault/v1/query.rpc.Query.d.ts +56 -0
  177. package/sparkdream/vault/v1/query.rpc.Query.js +116 -0
  178. package/sparkdream/vault/v1/tx.amino.d.ts +2 -0
  179. package/sparkdream/vault/v1/tx.amino.js +55 -0
  180. package/sparkdream/vault/v1/tx.d.ts +826 -0
  181. package/sparkdream/vault/v1/tx.js +1399 -0
  182. package/sparkdream/vault/v1/tx.registry.d.ts +109 -0
  183. package/sparkdream/vault/v1/tx.registry.js +163 -0
  184. package/sparkdream/vault/v1/tx.rpc.msg.d.ts +37 -0
  185. package/sparkdream/vault/v1/tx.rpc.msg.js +65 -0
  186. package/sparkdream/vault/v1/vault.d.ts +117 -0
  187. package/sparkdream/vault/v1/vault.js +166 -0
  188. package/sparkdream/vault/v1/vault_proposal.d.ts +158 -0
  189. package/sparkdream/vault/v1/vault_proposal.js +285 -0
  190. package/sparkdream/vault/v1/vault_signer.d.ts +54 -0
  191. package/sparkdream/vault/v1/vault_signer.js +88 -0
  192. package/tendermint/bundle.d.ts +844 -844
  193. package/tendermint/bundle.js +20 -20
  194. package/varint.d.ts +1 -1
@@ -1,38 +1 @@
1
- import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreateMarket, MsgTrade, MsgRedeem, MsgCancelMarket, MsgWithdrawLiquidity } from "./tx";
2
- export declare const AminoConverter: {
3
- "/sparkdream.futarchy.v1.MsgUpdateParams": {
4
- aminoType: string;
5
- toAmino: (message: MsgUpdateParams) => import("./tx").MsgUpdateParamsAmino;
6
- fromAmino: (object: import("./tx").MsgUpdateParamsAmino) => MsgUpdateParams;
7
- };
8
- "/sparkdream.futarchy.v1.MsgUpdateOperationalParams": {
9
- aminoType: string;
10
- toAmino: (message: MsgUpdateOperationalParams) => import("./tx").MsgUpdateOperationalParamsAmino;
11
- fromAmino: (object: import("./tx").MsgUpdateOperationalParamsAmino) => MsgUpdateOperationalParams;
12
- };
13
- "/sparkdream.futarchy.v1.MsgCreateMarket": {
14
- aminoType: string;
15
- toAmino: (message: MsgCreateMarket) => import("./tx").MsgCreateMarketAmino;
16
- fromAmino: (object: import("./tx").MsgCreateMarketAmino) => MsgCreateMarket;
17
- };
18
- "/sparkdream.futarchy.v1.MsgTrade": {
19
- aminoType: string;
20
- toAmino: (message: MsgTrade) => import("./tx").MsgTradeAmino;
21
- fromAmino: (object: import("./tx").MsgTradeAmino) => MsgTrade;
22
- };
23
- "/sparkdream.futarchy.v1.MsgRedeem": {
24
- aminoType: string;
25
- toAmino: (message: MsgRedeem) => import("./tx").MsgRedeemAmino;
26
- fromAmino: (object: import("./tx").MsgRedeemAmino) => MsgRedeem;
27
- };
28
- "/sparkdream.futarchy.v1.MsgCancelMarket": {
29
- aminoType: string;
30
- toAmino: (message: MsgCancelMarket) => import("./tx").MsgCancelMarketAmino;
31
- fromAmino: (object: import("./tx").MsgCancelMarketAmino) => MsgCancelMarket;
32
- };
33
- "/sparkdream.futarchy.v1.MsgWithdrawLiquidity": {
34
- aminoType: string;
35
- toAmino: (message: MsgWithdrawLiquidity) => import("./tx").MsgWithdrawLiquidityAmino;
36
- fromAmino: (object: import("./tx").MsgWithdrawLiquidityAmino) => MsgWithdrawLiquidity;
37
- };
38
- };
1
+ export declare const AminoConverter: Record<string, import("../../../chain-amino").ChainAminoConverter>;
@@ -1,42 +1,53 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.AminoConverter = void 0;
4
37
  //@ts-nocheck
5
- const tx_1 = require("./tx");
6
- exports.AminoConverter = {
7
- "/sparkdream.futarchy.v1.MsgUpdateParams": {
8
- aminoType: "sparkdream/x/futarchy/MsgUpdateParams",
9
- toAmino: tx_1.MsgUpdateParams.toAmino,
10
- fromAmino: tx_1.MsgUpdateParams.fromAmino
11
- },
12
- "/sparkdream.futarchy.v1.MsgUpdateOperationalParams": {
13
- aminoType: "sparkdream/x/futarchy/MsgUpdateOperationalParams",
14
- toAmino: tx_1.MsgUpdateOperationalParams.toAmino,
15
- fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino
16
- },
17
- "/sparkdream.futarchy.v1.MsgCreateMarket": {
18
- aminoType: "sparkdream/x/futarchy/MsgCreateMarket",
19
- toAmino: tx_1.MsgCreateMarket.toAmino,
20
- fromAmino: tx_1.MsgCreateMarket.fromAmino
21
- },
22
- "/sparkdream.futarchy.v1.MsgTrade": {
23
- aminoType: "sparkdream/x/futarchy/MsgTrade",
24
- toAmino: tx_1.MsgTrade.toAmino,
25
- fromAmino: tx_1.MsgTrade.fromAmino
26
- },
27
- "/sparkdream.futarchy.v1.MsgRedeem": {
28
- aminoType: "sparkdream/x/futarchy/MsgRedeem",
29
- toAmino: tx_1.MsgRedeem.toAmino,
30
- fromAmino: tx_1.MsgRedeem.fromAmino
31
- },
32
- "/sparkdream.futarchy.v1.MsgCancelMarket": {
33
- aminoType: "sparkdream/x/futarchy/MsgCancelMarket",
34
- toAmino: tx_1.MsgCancelMarket.toAmino,
35
- fromAmino: tx_1.MsgCancelMarket.fromAmino
36
- },
37
- "/sparkdream.futarchy.v1.MsgWithdrawLiquidity": {
38
- aminoType: "sparkdream/x/futarchy/MsgWithdrawLiquidity",
39
- toAmino: tx_1.MsgWithdrawLiquidity.toAmino,
40
- fromAmino: tx_1.MsgWithdrawLiquidity.fromAmino
41
- }
42
- };
38
+ // HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
39
+ // by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
40
+ //
41
+ // Why: Telescope's generated converters (and the per-message overrides that
42
+ // used to patch them) disagree with the chain's aminojson on empty lists,
43
+ // empty bytes, Dec strings, oneofs and non-nullable messages, and went stale
44
+ // whenever a proto changed. Every Msg of x/futarchy is converted by the
45
+ // schema-driven engine in chain-amino.ts instead, which renders amino JSON
46
+ // from the protobuf bytes exactly as the chain does.
47
+ //
48
+ // MAINTENANCE: none per message. The schema (amino-schema.ts, regenerated from
49
+ // the chain on every proto sync) lists every Msg; __tests__/amino-golden.test.ts
50
+ // checks them all against the chain's encoder.
51
+ const tx = __importStar(require("./tx"));
52
+ const chain_amino_1 = require("../../../chain-amino");
53
+ exports.AminoConverter = (0, chain_amino_1.chainAminoConverters)("sparkdream.futarchy.v1", tx);
@@ -1,8 +1,2 @@
1
- import { MsgExec } from "./tx";
2
- export declare const AminoConverter: {
3
- "/sparkdream.guardian.v1.MsgExec": {
4
- aminoType: string;
5
- toAmino: (message: MsgExec) => import("./tx").MsgExecAmino;
6
- fromAmino: (object: import("./tx").MsgExecAmino) => MsgExec;
7
- };
8
- };
1
+ export { configureNestedAminoConverter } from "../../../nested-amino";
2
+ export declare const AminoConverter: Record<string, import("../../../chain-amino").ChainAminoConverter>;
@@ -1,12 +1,55 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AminoConverter = void 0;
36
+ exports.AminoConverter = exports.configureNestedAminoConverter = void 0;
4
37
  //@ts-nocheck
5
- const tx_1 = require("./tx");
6
- exports.AminoConverter = {
7
- "/sparkdream.guardian.v1.MsgExec": {
8
- aminoType: "sparkdream/x/guardian/MsgExec",
9
- toAmino: tx_1.MsgExec.toAmino,
10
- fromAmino: tx_1.MsgExec.fromAmino
11
- }
12
- };
38
+ // HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
39
+ // by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
40
+ //
41
+ // Why: Telescope's generated converters (and the per-message overrides that
42
+ // used to patch them) disagree with the chain's aminojson on empty lists,
43
+ // empty bytes, Dec strings, oneofs and non-nullable messages, and went stale
44
+ // whenever a proto changed. Every Msg of x/guardian is converted by the
45
+ // schema-driven engine in chain-amino.ts instead, which renders amino JSON
46
+ // from the protobuf bytes exactly as the chain does.
47
+ //
48
+ // MAINTENANCE: none per message. The schema (amino-schema.ts, regenerated from
49
+ // the chain on every proto sync) lists every Msg; __tests__/amino-golden.test.ts
50
+ // checks them all against the chain's encoder.
51
+ const tx = __importStar(require("./tx"));
52
+ const chain_amino_1 = require("../../../chain-amino");
53
+ var nested_amino_1 = require("../../../nested-amino");
54
+ Object.defineProperty(exports, "configureNestedAminoConverter", { enumerable: true, get: function () { return nested_amino_1.configureNestedAminoConverter; } });
55
+ exports.AminoConverter = (0, chain_amino_1.chainAminoConverters)("sparkdream.guardian.v1", tx);
@@ -115,5 +115,8 @@ export declare const createLCDClient: ({ restEndpoint }: {
115
115
  split: {
116
116
  v1: import("./split/v1/query.lcd").LCDQueryClient;
117
117
  };
118
+ vault: {
119
+ v1: import("./vault/v1/query.lcd").LCDQueryClient;
120
+ };
118
121
  };
119
122
  }>;
package/sparkdream/lcd.js CHANGED
@@ -228,6 +228,11 @@ const createLCDClient = async ({ restEndpoint }) => {
228
228
  v1: new (await Promise.resolve().then(() => __importStar(require("./split/v1/query.lcd")))).LCDQueryClient({
229
229
  requestClient
230
230
  })
231
+ },
232
+ vault: {
233
+ v1: new (await Promise.resolve().then(() => __importStar(require("./vault/v1/query.lcd")))).LCDQueryClient({
234
+ requestClient
235
+ })
231
236
  }
232
237
  }
233
238
  };
@@ -1,63 +1 @@
1
- import { MsgUpdateParams, MsgUpdateOperationalParams, MsgRegisterName, MsgSetPrimary, MsgFileDispute, MsgContestDispute, MsgResolveDispute, MsgUpdateName, MsgSetDisplayName, MsgSetTarget, MsgAcceptTarget, MsgTransferName } from "./tx";
2
- export declare const AminoConverter: {
3
- "/sparkdream.name.v1.MsgUpdateParams": {
4
- aminoType: string;
5
- toAmino: (message: MsgUpdateParams) => import("./tx").MsgUpdateParamsAmino;
6
- fromAmino: (object: import("./tx").MsgUpdateParamsAmino) => MsgUpdateParams;
7
- };
8
- "/sparkdream.name.v1.MsgUpdateOperationalParams": {
9
- aminoType: string;
10
- toAmino: (message: MsgUpdateOperationalParams) => import("./tx").MsgUpdateOperationalParamsAmino;
11
- fromAmino: (object: import("./tx").MsgUpdateOperationalParamsAmino) => MsgUpdateOperationalParams;
12
- };
13
- "/sparkdream.name.v1.MsgRegisterName": {
14
- aminoType: string;
15
- toAmino: (message: MsgRegisterName) => import("./tx").MsgRegisterNameAmino;
16
- fromAmino: (object: import("./tx").MsgRegisterNameAmino) => MsgRegisterName;
17
- };
18
- "/sparkdream.name.v1.MsgSetPrimary": {
19
- aminoType: string;
20
- toAmino: (message: MsgSetPrimary) => import("./tx").MsgSetPrimaryAmino;
21
- fromAmino: (object: import("./tx").MsgSetPrimaryAmino) => MsgSetPrimary;
22
- };
23
- "/sparkdream.name.v1.MsgFileDispute": {
24
- aminoType: string;
25
- toAmino: (message: MsgFileDispute) => import("./tx").MsgFileDisputeAmino;
26
- fromAmino: (object: import("./tx").MsgFileDisputeAmino) => MsgFileDispute;
27
- };
28
- "/sparkdream.name.v1.MsgContestDispute": {
29
- aminoType: string;
30
- toAmino: (message: MsgContestDispute) => import("./tx").MsgContestDisputeAmino;
31
- fromAmino: (object: import("./tx").MsgContestDisputeAmino) => MsgContestDispute;
32
- };
33
- "/sparkdream.name.v1.MsgResolveDispute": {
34
- aminoType: string;
35
- toAmino: (message: MsgResolveDispute) => import("./tx").MsgResolveDisputeAmino;
36
- fromAmino: (object: import("./tx").MsgResolveDisputeAmino) => MsgResolveDispute;
37
- };
38
- "/sparkdream.name.v1.MsgUpdateName": {
39
- aminoType: string;
40
- toAmino: (message: MsgUpdateName) => import("./tx").MsgUpdateNameAmino;
41
- fromAmino: (object: import("./tx").MsgUpdateNameAmino) => MsgUpdateName;
42
- };
43
- "/sparkdream.name.v1.MsgSetDisplayName": {
44
- aminoType: string;
45
- toAmino: (message: MsgSetDisplayName) => import("./tx").MsgSetDisplayNameAmino;
46
- fromAmino: (object: import("./tx").MsgSetDisplayNameAmino) => MsgSetDisplayName;
47
- };
48
- "/sparkdream.name.v1.MsgSetTarget": {
49
- aminoType: string;
50
- toAmino: (message: MsgSetTarget) => import("./tx").MsgSetTargetAmino;
51
- fromAmino: (object: import("./tx").MsgSetTargetAmino) => MsgSetTarget;
52
- };
53
- "/sparkdream.name.v1.MsgAcceptTarget": {
54
- aminoType: string;
55
- toAmino: (message: MsgAcceptTarget) => import("./tx").MsgAcceptTargetAmino;
56
- fromAmino: (object: import("./tx").MsgAcceptTargetAmino) => MsgAcceptTarget;
57
- };
58
- "/sparkdream.name.v1.MsgTransferName": {
59
- aminoType: string;
60
- toAmino: (message: MsgTransferName) => import("./tx").MsgTransferNameAmino;
61
- fromAmino: (object: import("./tx").MsgTransferNameAmino) => MsgTransferName;
62
- };
63
- };
1
+ export declare const AminoConverter: Record<string, import("../../../chain-amino").ChainAminoConverter>;
@@ -1,67 +1,53 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.AminoConverter = void 0;
4
37
  //@ts-nocheck
5
- const tx_1 = require("./tx");
6
- exports.AminoConverter = {
7
- "/sparkdream.name.v1.MsgUpdateParams": {
8
- aminoType: "sparkdream/x/name/MsgUpdateParams",
9
- toAmino: tx_1.MsgUpdateParams.toAmino,
10
- fromAmino: tx_1.MsgUpdateParams.fromAmino
11
- },
12
- "/sparkdream.name.v1.MsgUpdateOperationalParams": {
13
- aminoType: "sparkdream/x/name/MsgUpdateOperationalParams",
14
- toAmino: tx_1.MsgUpdateOperationalParams.toAmino,
15
- fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino
16
- },
17
- "/sparkdream.name.v1.MsgRegisterName": {
18
- aminoType: "sparkdream/x/name/MsgRegisterName",
19
- toAmino: tx_1.MsgRegisterName.toAmino,
20
- fromAmino: tx_1.MsgRegisterName.fromAmino
21
- },
22
- "/sparkdream.name.v1.MsgSetPrimary": {
23
- aminoType: "sparkdream/x/name/MsgSetPrimary",
24
- toAmino: tx_1.MsgSetPrimary.toAmino,
25
- fromAmino: tx_1.MsgSetPrimary.fromAmino
26
- },
27
- "/sparkdream.name.v1.MsgFileDispute": {
28
- aminoType: "sparkdream/x/name/MsgFileDispute",
29
- toAmino: tx_1.MsgFileDispute.toAmino,
30
- fromAmino: tx_1.MsgFileDispute.fromAmino
31
- },
32
- "/sparkdream.name.v1.MsgContestDispute": {
33
- aminoType: "sparkdream/x/name/MsgContestDispute",
34
- toAmino: tx_1.MsgContestDispute.toAmino,
35
- fromAmino: tx_1.MsgContestDispute.fromAmino
36
- },
37
- "/sparkdream.name.v1.MsgResolveDispute": {
38
- aminoType: "sparkdream/x/name/MsgResolveDispute",
39
- toAmino: tx_1.MsgResolveDispute.toAmino,
40
- fromAmino: tx_1.MsgResolveDispute.fromAmino
41
- },
42
- "/sparkdream.name.v1.MsgUpdateName": {
43
- aminoType: "sparkdream/x/name/MsgUpdateName",
44
- toAmino: tx_1.MsgUpdateName.toAmino,
45
- fromAmino: tx_1.MsgUpdateName.fromAmino
46
- },
47
- "/sparkdream.name.v1.MsgSetDisplayName": {
48
- aminoType: "sparkdream/x/name/MsgSetDisplayName",
49
- toAmino: tx_1.MsgSetDisplayName.toAmino,
50
- fromAmino: tx_1.MsgSetDisplayName.fromAmino
51
- },
52
- "/sparkdream.name.v1.MsgSetTarget": {
53
- aminoType: "sparkdream/x/name/MsgSetTarget",
54
- toAmino: tx_1.MsgSetTarget.toAmino,
55
- fromAmino: tx_1.MsgSetTarget.fromAmino
56
- },
57
- "/sparkdream.name.v1.MsgAcceptTarget": {
58
- aminoType: "sparkdream/x/name/MsgAcceptTarget",
59
- toAmino: tx_1.MsgAcceptTarget.toAmino,
60
- fromAmino: tx_1.MsgAcceptTarget.fromAmino
61
- },
62
- "/sparkdream.name.v1.MsgTransferName": {
63
- aminoType: "sparkdream/x/name/MsgTransferName",
64
- toAmino: tx_1.MsgTransferName.toAmino,
65
- fromAmino: tx_1.MsgTransferName.fromAmino
66
- }
67
- };
38
+ // HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
39
+ // by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
40
+ //
41
+ // Why: Telescope's generated converters (and the per-message overrides that
42
+ // used to patch them) disagree with the chain's aminojson on empty lists,
43
+ // empty bytes, Dec strings, oneofs and non-nullable messages, and went stale
44
+ // whenever a proto changed. Every Msg of x/name is converted by the
45
+ // schema-driven engine in chain-amino.ts instead, which renders amino JSON
46
+ // from the protobuf bytes exactly as the chain does.
47
+ //
48
+ // MAINTENANCE: none per message. The schema (amino-schema.ts, regenerated from
49
+ // the chain on every proto sync) lists every Msg; __tests__/amino-golden.test.ts
50
+ // checks them all against the chain's encoder.
51
+ const tx = __importStar(require("./tx"));
52
+ const chain_amino_1 = require("../../../chain-amino");
53
+ exports.AminoConverter = (0, chain_amino_1.chainAminoConverters)("sparkdream.name.v1", tx);
@@ -22,6 +22,7 @@ import { RoleActivity, RoleActivityAmino } from "./role_activity";
22
22
  import { InitiativeReview, InitiativeReviewAmino } from "./initiative_review";
23
23
  import { ReviewBounty, ReviewBountyAmino } from "./review_bounty";
24
24
  import { InitiativeBounty, InitiativeBountyAmino } from "./initiative_bounty";
25
+ import { Tombstone, TombstoneAmino, MemberMigration, MemberMigrationAmino, RecoveryCommitmentEntry, RecoveryCommitmentEntryAmino, RecoveryCommit, RecoveryCommitAmino } from "./migration";
25
26
  import { BinaryReader, BinaryWriter } from "../../../binary";
26
27
  import { DeepPartial } from "../../../helpers";
27
28
  /**
@@ -139,6 +140,15 @@ export interface GenesisState {
139
140
  * import would strand the escrow with nothing able to pay or refund it.
140
141
  */
141
142
  initiativeBountyList: InitiativeBounty[];
143
+ /**
144
+ * Member key migration. The queue, the per-member pending pointer and the
145
+ * reverse alias index are derived from these lists at InitGenesis.
146
+ */
147
+ tombstoneList: Tombstone[];
148
+ memberMigrationList: MemberMigration[];
149
+ memberMigrationCount: bigint;
150
+ recoveryCommitmentList: RecoveryCommitmentEntry[];
151
+ recoveryCommitList: RecoveryCommit[];
142
152
  }
143
153
  export interface GenesisStateProtoMsg {
144
154
  typeUrl: "/sparkdream.rep.v1.GenesisState";
@@ -259,6 +269,15 @@ export interface GenesisStateAmino {
259
269
  * import would strand the escrow with nothing able to pay or refund it.
260
270
  */
261
271
  initiative_bounty_list?: InitiativeBountyAmino[];
272
+ /**
273
+ * Member key migration. The queue, the per-member pending pointer and the
274
+ * reverse alias index are derived from these lists at InitGenesis.
275
+ */
276
+ tombstone_list?: TombstoneAmino[];
277
+ member_migration_list?: MemberMigrationAmino[];
278
+ member_migration_count?: string;
279
+ recovery_commitment_list?: RecoveryCommitmentEntryAmino[];
280
+ recovery_commit_list?: RecoveryCommitAmino[];
262
281
  }
263
282
  export interface GenesisStateAminoMsg {
264
283
  type: "/sparkdream.rep.v1.GenesisState";
@@ -26,6 +26,7 @@ const role_activity_1 = require("./role_activity");
26
26
  const initiative_review_1 = require("./initiative_review");
27
27
  const review_bounty_1 = require("./review_bounty");
28
28
  const initiative_bounty_1 = require("./initiative_bounty");
29
+ const migration_1 = require("./migration");
29
30
  const binary_1 = require("../../../binary");
30
31
  function createBaseGenesisState() {
31
32
  return {
@@ -73,7 +74,12 @@ function createBaseGenesisState() {
73
74
  reviewBountyList: [],
74
75
  economicState: undefined,
75
76
  giftRecordList: [],
76
- initiativeBountyList: []
77
+ initiativeBountyList: [],
78
+ tombstoneList: [],
79
+ memberMigrationList: [],
80
+ memberMigrationCount: BigInt(0),
81
+ recoveryCommitmentList: [],
82
+ recoveryCommitList: []
77
83
  };
78
84
  }
79
85
  /**
@@ -222,6 +228,21 @@ exports.GenesisState = {
222
228
  for (const v of message.initiativeBountyList) {
223
229
  initiative_bounty_1.InitiativeBounty.encode(v, writer.uint32(362).fork()).ldelim();
224
230
  }
231
+ for (const v of message.tombstoneList) {
232
+ migration_1.Tombstone.encode(v, writer.uint32(370).fork()).ldelim();
233
+ }
234
+ for (const v of message.memberMigrationList) {
235
+ migration_1.MemberMigration.encode(v, writer.uint32(378).fork()).ldelim();
236
+ }
237
+ if (message.memberMigrationCount !== BigInt(0)) {
238
+ writer.uint32(384).uint64(message.memberMigrationCount);
239
+ }
240
+ for (const v of message.recoveryCommitmentList) {
241
+ migration_1.RecoveryCommitmentEntry.encode(v, writer.uint32(394).fork()).ldelim();
242
+ }
243
+ for (const v of message.recoveryCommitList) {
244
+ migration_1.RecoveryCommit.encode(v, writer.uint32(402).fork()).ldelim();
245
+ }
225
246
  return writer;
226
247
  },
227
248
  decode(input, length) {
@@ -374,6 +395,21 @@ exports.GenesisState = {
374
395
  case 45:
375
396
  message.initiativeBountyList.push(initiative_bounty_1.InitiativeBounty.decode(reader, reader.uint32()));
376
397
  break;
398
+ case 46:
399
+ message.tombstoneList.push(migration_1.Tombstone.decode(reader, reader.uint32()));
400
+ break;
401
+ case 47:
402
+ message.memberMigrationList.push(migration_1.MemberMigration.decode(reader, reader.uint32()));
403
+ break;
404
+ case 48:
405
+ message.memberMigrationCount = reader.uint64();
406
+ break;
407
+ case 49:
408
+ message.recoveryCommitmentList.push(migration_1.RecoveryCommitmentEntry.decode(reader, reader.uint32()));
409
+ break;
410
+ case 50:
411
+ message.recoveryCommitList.push(migration_1.RecoveryCommit.decode(reader, reader.uint32()));
412
+ break;
377
413
  default:
378
414
  reader.skipType(tag & 7);
379
415
  break;
@@ -428,6 +464,11 @@ exports.GenesisState = {
428
464
  message.economicState = object.economicState !== undefined && object.economicState !== null ? exports.EconomicState.fromPartial(object.economicState) : undefined;
429
465
  message.giftRecordList = object.giftRecordList?.map(e => exports.GiftRecordEntry.fromPartial(e)) || [];
430
466
  message.initiativeBountyList = object.initiativeBountyList?.map(e => initiative_bounty_1.InitiativeBounty.fromPartial(e)) || [];
467
+ message.tombstoneList = object.tombstoneList?.map(e => migration_1.Tombstone.fromPartial(e)) || [];
468
+ message.memberMigrationList = object.memberMigrationList?.map(e => migration_1.MemberMigration.fromPartial(e)) || [];
469
+ message.memberMigrationCount = object.memberMigrationCount !== undefined && object.memberMigrationCount !== null ? BigInt(object.memberMigrationCount.toString()) : BigInt(0);
470
+ message.recoveryCommitmentList = object.recoveryCommitmentList?.map(e => migration_1.RecoveryCommitmentEntry.fromPartial(e)) || [];
471
+ message.recoveryCommitList = object.recoveryCommitList?.map(e => migration_1.RecoveryCommit.fromPartial(e)) || [];
431
472
  return message;
432
473
  },
433
474
  fromAmino(object) {
@@ -505,6 +546,13 @@ exports.GenesisState = {
505
546
  }
506
547
  message.giftRecordList = object.gift_record_list?.map(e => exports.GiftRecordEntry.fromAmino(e)) || [];
507
548
  message.initiativeBountyList = object.initiative_bounty_list?.map(e => initiative_bounty_1.InitiativeBounty.fromAmino(e)) || [];
549
+ message.tombstoneList = object.tombstone_list?.map(e => migration_1.Tombstone.fromAmino(e)) || [];
550
+ message.memberMigrationList = object.member_migration_list?.map(e => migration_1.MemberMigration.fromAmino(e)) || [];
551
+ if (object.member_migration_count !== undefined && object.member_migration_count !== null) {
552
+ message.memberMigrationCount = BigInt(object.member_migration_count);
553
+ }
554
+ message.recoveryCommitmentList = object.recovery_commitment_list?.map(e => migration_1.RecoveryCommitmentEntry.fromAmino(e)) || [];
555
+ message.recoveryCommitList = object.recovery_commit_list?.map(e => migration_1.RecoveryCommit.fromAmino(e)) || [];
508
556
  return message;
509
557
  },
510
558
  toAmino(message) {
@@ -709,6 +757,31 @@ exports.GenesisState = {
709
757
  else {
710
758
  obj.initiative_bounty_list = message.initiativeBountyList;
711
759
  }
760
+ if (message.tombstoneList) {
761
+ obj.tombstone_list = message.tombstoneList.map(e => e ? migration_1.Tombstone.toAmino(e) : undefined);
762
+ }
763
+ else {
764
+ obj.tombstone_list = message.tombstoneList;
765
+ }
766
+ if (message.memberMigrationList) {
767
+ obj.member_migration_list = message.memberMigrationList.map(e => e ? migration_1.MemberMigration.toAmino(e) : undefined);
768
+ }
769
+ else {
770
+ obj.member_migration_list = message.memberMigrationList;
771
+ }
772
+ obj.member_migration_count = message.memberMigrationCount !== BigInt(0) ? message.memberMigrationCount?.toString() : undefined;
773
+ if (message.recoveryCommitmentList) {
774
+ obj.recovery_commitment_list = message.recoveryCommitmentList.map(e => e ? migration_1.RecoveryCommitmentEntry.toAmino(e) : undefined);
775
+ }
776
+ else {
777
+ obj.recovery_commitment_list = message.recoveryCommitmentList;
778
+ }
779
+ if (message.recoveryCommitList) {
780
+ obj.recovery_commit_list = message.recoveryCommitList.map(e => e ? migration_1.RecoveryCommit.toAmino(e) : undefined);
781
+ }
782
+ else {
783
+ obj.recovery_commit_list = message.recoveryCommitList;
784
+ }
712
785
  return obj;
713
786
  },
714
787
  fromAminoMsg(object) {