@sparkdreamnft/sparkdreamjs 0.0.9 → 0.0.10

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 (138) 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 +25 -1
  6. package/esm/sparkdream/blog/v1/post.js +16 -1
  7. package/esm/sparkdream/blog/v1/query.js +165 -0
  8. package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
  9. package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
  10. package/esm/sparkdream/blog/v1/tx.js +32 -2
  11. package/esm/sparkdream/bundle.js +343 -339
  12. package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
  13. package/esm/sparkdream/collect/v1/genesis.js +12 -11
  14. package/esm/sparkdream/collect/v1/params.js +37 -1
  15. package/esm/sparkdream/collect/v1/query.js +201 -186
  16. package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
  17. package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
  18. package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
  19. package/esm/sparkdream/collect/v1/tx.js +0 -258
  20. package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
  21. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
  22. package/esm/sparkdream/collect/v1/types.js +50 -143
  23. package/esm/sparkdream/federation/v1/genesis.js +12 -11
  24. package/esm/sparkdream/federation/v1/query.js +37 -187
  25. package/esm/sparkdream/federation/v1/query.lcd.js +6 -16
  26. package/esm/sparkdream/federation/v1/query.rpc.Query.js +11 -19
  27. package/esm/sparkdream/federation/v1/tx.amino.js +1 -11
  28. package/esm/sparkdream/federation/v1/tx.js +0 -270
  29. package/esm/sparkdream/federation/v1/tx.registry.js +2 -38
  30. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +4 -14
  31. package/esm/sparkdream/federation/v1/types.js +13 -318
  32. package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
  33. package/esm/sparkdream/forum/v1/params.js +146 -2
  34. package/esm/sparkdream/futarchy/v1/market.js +13 -1
  35. package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
  36. package/esm/sparkdream/rep/v1/genesis.js +32 -17
  37. package/esm/sparkdream/rep/v1/member_report.js +98 -1
  38. package/esm/sparkdream/rep/v1/query.js +297 -306
  39. package/esm/sparkdream/rep/v1/query.lcd.js +23 -16
  40. package/esm/sparkdream/rep/v1/query.rpc.Query.js +36 -35
  41. package/esm/sparkdream/rep/v1/tx.amino.js +9 -9
  42. package/esm/sparkdream/rep/v1/tx.js +86 -58
  43. package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
  44. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -14
  45. package/esm/sparkdream/season/v1/enums.js +10 -0
  46. package/esm/tendermint/bundle.js +18 -18
  47. package/ibc/bundle.d.ts +90 -90
  48. package/ibc/bundle.js +106 -106
  49. package/package.json +1 -1
  50. package/sparkdream/blog/v1/params.d.ts +16 -0
  51. package/sparkdream/blog/v1/params.js +25 -1
  52. package/sparkdream/blog/v1/post.d.ts +8 -0
  53. package/sparkdream/blog/v1/post.js +16 -1
  54. package/sparkdream/blog/v1/query.d.ts +92 -0
  55. package/sparkdream/blog/v1/query.js +166 -1
  56. package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
  57. package/sparkdream/blog/v1/query.lcd.js +11 -0
  58. package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
  59. package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
  60. package/sparkdream/blog/v1/tx.d.ts +16 -0
  61. package/sparkdream/blog/v1/tx.js +32 -2
  62. package/sparkdream/bundle.d.ts +14376 -14514
  63. package/sparkdream/bundle.js +343 -339
  64. package/sparkdream/client.d.ts +6 -26
  65. package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
  66. package/sparkdream/collect/v1/curator_activity.js +161 -0
  67. package/sparkdream/collect/v1/genesis.d.ts +4 -3
  68. package/sparkdream/collect/v1/genesis.js +11 -10
  69. package/sparkdream/collect/v1/params.d.ts +32 -0
  70. package/sparkdream/collect/v1/params.js +37 -1
  71. package/sparkdream/collect/v1/query.d.ts +142 -133
  72. package/sparkdream/collect/v1/query.js +201 -186
  73. package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
  74. package/sparkdream/collect/v1/query.lcd.js +16 -16
  75. package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
  76. package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
  77. package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
  78. package/sparkdream/collect/v1/tx.amino.js +0 -10
  79. package/sparkdream/collect/v1/tx.d.ts +0 -162
  80. package/sparkdream/collect/v1/tx.js +2 -260
  81. package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
  82. package/sparkdream/collect/v1/tx.registry.js +1 -37
  83. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
  84. package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
  85. package/sparkdream/collect/v1/types.d.ts +26 -56
  86. package/sparkdream/collect/v1/types.js +51 -144
  87. package/sparkdream/federation/v1/genesis.d.ts +4 -3
  88. package/sparkdream/federation/v1/genesis.js +11 -10
  89. package/sparkdream/federation/v1/query.d.ts +53 -136
  90. package/sparkdream/federation/v1/query.js +37 -187
  91. package/sparkdream/federation/v1/query.lcd.d.ts +2 -3
  92. package/sparkdream/federation/v1/query.lcd.js +6 -16
  93. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  94. package/sparkdream/federation/v1/query.rpc.Query.js +10 -18
  95. package/sparkdream/federation/v1/tx.amino.d.ts +1 -11
  96. package/sparkdream/federation/v1/tx.amino.js +0 -10
  97. package/sparkdream/federation/v1/tx.d.ts +0 -164
  98. package/sparkdream/federation/v1/tx.js +1 -272
  99. package/sparkdream/federation/v1/tx.registry.d.ts +1 -25
  100. package/sparkdream/federation/v1/tx.registry.js +1 -37
  101. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +6 -5
  102. package/sparkdream/federation/v1/tx.rpc.msg.js +3 -13
  103. package/sparkdream/federation/v1/types.d.ts +10 -106
  104. package/sparkdream/federation/v1/types.js +14 -321
  105. package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
  106. package/sparkdream/federation/v1/verifier_activity.js +197 -0
  107. package/sparkdream/forum/v1/params.d.ts +112 -0
  108. package/sparkdream/forum/v1/params.js +146 -2
  109. package/sparkdream/futarchy/v1/market.d.ts +14 -0
  110. package/sparkdream/futarchy/v1/market.js +13 -1
  111. package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
  112. package/sparkdream/rep/v1/bonded_role.js +453 -0
  113. package/sparkdream/rep/v1/genesis.d.ts +11 -9
  114. package/sparkdream/rep/v1/genesis.js +32 -17
  115. package/sparkdream/rep/v1/member_report.d.ts +61 -0
  116. package/sparkdream/rep/v1/member_report.js +99 -2
  117. package/sparkdream/rep/v1/query.d.ts +259 -261
  118. package/sparkdream/rep/v1/query.js +299 -308
  119. package/sparkdream/rep/v1/query.lcd.d.ts +5 -5
  120. package/sparkdream/rep/v1/query.lcd.js +23 -16
  121. package/sparkdream/rep/v1/query.rpc.Query.d.ts +20 -17
  122. package/sparkdream/rep/v1/query.rpc.Query.js +35 -34
  123. package/sparkdream/rep/v1/tx.amino.d.ts +7 -7
  124. package/sparkdream/rep/v1/tx.amino.js +9 -9
  125. package/sparkdream/rep/v1/tx.d.ts +121 -104
  126. package/sparkdream/rep/v1/tx.js +87 -59
  127. package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
  128. package/sparkdream/rep/v1/tx.registry.js +17 -17
  129. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +11 -9
  130. package/sparkdream/rep/v1/tx.rpc.msg.js +15 -13
  131. package/sparkdream/rpc.query.d.ts +8 -8
  132. package/sparkdream/season/v1/enums.d.ts +5 -0
  133. package/sparkdream/season/v1/enums.js +10 -0
  134. package/tendermint/bundle.d.ts +844 -844
  135. package/tendermint/bundle.js +18 -18
  136. package/esm/sparkdream/rep/v1/sentinel_activity.js +0 -214
  137. package/sparkdream/rep/v1/sentinel_activity.d.ts +0 -79
  138. package/sparkdream/rep/v1/sentinel_activity.js +0 -219
@@ -522,15 +522,15 @@ export declare const sparkdreamAminoConverters: {
522
522
  toAmino: (message: import("./rep/v1/tx").MsgWithdrawTagBudget) => import("./rep/v1/tx").MsgWithdrawTagBudgetAmino;
523
523
  fromAmino: (object: import("./rep/v1/tx").MsgWithdrawTagBudgetAmino) => import("./rep/v1/tx").MsgWithdrawTagBudget;
524
524
  };
525
- "/sparkdream.rep.v1.MsgBondSentinel": {
525
+ "/sparkdream.rep.v1.MsgBondRole": {
526
526
  aminoType: string;
527
- toAmino: (message: import("./rep/v1/tx").MsgBondSentinel) => import("./rep/v1/tx").MsgBondSentinelAmino;
528
- fromAmino: (object: import("./rep/v1/tx").MsgBondSentinelAmino) => import("./rep/v1/tx").MsgBondSentinel;
527
+ toAmino: (message: import("./rep/v1/tx").MsgBondRole) => import("./rep/v1/tx").MsgBondRoleAmino;
528
+ fromAmino: (object: import("./rep/v1/tx").MsgBondRoleAmino) => import("./rep/v1/tx").MsgBondRole;
529
529
  };
530
- "/sparkdream.rep.v1.MsgUnbondSentinel": {
530
+ "/sparkdream.rep.v1.MsgUnbondRole": {
531
531
  aminoType: string;
532
- toAmino: (message: import("./rep/v1/tx").MsgUnbondSentinel) => import("./rep/v1/tx").MsgUnbondSentinelAmino;
533
- fromAmino: (object: import("./rep/v1/tx").MsgUnbondSentinelAmino) => import("./rep/v1/tx").MsgUnbondSentinel;
532
+ toAmino: (message: import("./rep/v1/tx").MsgUnbondRole) => import("./rep/v1/tx").MsgUnbondRoleAmino;
533
+ fromAmino: (object: import("./rep/v1/tx").MsgUnbondRoleAmino) => import("./rep/v1/tx").MsgUnbondRole;
534
534
  };
535
535
  "/sparkdream.rep.v1.MsgReportMember": {
536
536
  aminoType: string;
@@ -912,16 +912,6 @@ export declare const sparkdreamAminoConverters: {
912
912
  toAmino: (message: import("./federation/v1/tx").MsgRequestReputationAttestation) => import("./federation/v1/tx").MsgRequestReputationAttestationAmino;
913
913
  fromAmino: (object: import("./federation/v1/tx").MsgRequestReputationAttestationAmino) => import("./federation/v1/tx").MsgRequestReputationAttestation;
914
914
  };
915
- "/sparkdream.federation.v1.MsgBondVerifier": {
916
- aminoType: string;
917
- toAmino: (message: import("./federation/v1/tx").MsgBondVerifier) => import("./federation/v1/tx").MsgBondVerifierAmino;
918
- fromAmino: (object: import("./federation/v1/tx").MsgBondVerifierAmino) => import("./federation/v1/tx").MsgBondVerifier;
919
- };
920
- "/sparkdream.federation.v1.MsgUnbondVerifier": {
921
- aminoType: string;
922
- toAmino: (message: import("./federation/v1/tx").MsgUnbondVerifier) => import("./federation/v1/tx").MsgUnbondVerifierAmino;
923
- fromAmino: (object: import("./federation/v1/tx").MsgUnbondVerifierAmino) => import("./federation/v1/tx").MsgUnbondVerifier;
924
- };
925
915
  "/sparkdream.federation.v1.MsgVerifyContent": {
926
916
  aminoType: string;
927
917
  toAmino: (message: import("./federation/v1/tx").MsgVerifyContent) => import("./federation/v1/tx").MsgVerifyContentAmino;
@@ -1117,16 +1107,6 @@ export declare const sparkdreamAminoConverters: {
1117
1107
  toAmino: (message: import("./collect/v1/tx").MsgUpdateCollaboratorRole) => import("./collect/v1/tx").MsgUpdateCollaboratorRoleAmino;
1118
1108
  fromAmino: (object: import("./collect/v1/tx").MsgUpdateCollaboratorRoleAmino) => import("./collect/v1/tx").MsgUpdateCollaboratorRole;
1119
1109
  };
1120
- "/sparkdream.collect.v1.MsgRegisterCurator": {
1121
- aminoType: string;
1122
- toAmino: (message: import("./collect/v1/tx").MsgRegisterCurator) => import("./collect/v1/tx").MsgRegisterCuratorAmino;
1123
- fromAmino: (object: import("./collect/v1/tx").MsgRegisterCuratorAmino) => import("./collect/v1/tx").MsgRegisterCurator;
1124
- };
1125
- "/sparkdream.collect.v1.MsgUnregisterCurator": {
1126
- aminoType: string;
1127
- toAmino: (message: import("./collect/v1/tx").MsgUnregisterCurator) => import("./collect/v1/tx").MsgUnregisterCuratorAmino;
1128
- fromAmino: (object: import("./collect/v1/tx").MsgUnregisterCuratorAmino) => import("./collect/v1/tx").MsgUnregisterCurator;
1129
- };
1130
1110
  "/sparkdream.collect.v1.MsgRateCollection": {
1131
1111
  aminoType: string;
1132
1112
  toAmino: (message: import("./collect/v1/tx").MsgRateCollection) => import("./collect/v1/tx").MsgRateCollectionAmino;
@@ -0,0 +1,123 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ import { DeepPartial } from "../../../helpers";
3
+ /**
4
+ * CuratorActivity holds collect-specific per-curator counters. The generic
5
+ * bond/status/activity record lives in x/rep as BondedRole
6
+ * (ROLE_TYPE_COLLECT_CURATOR) — this proto only tracks what's collect-specific:
7
+ * review counts and dispute outcomes.
8
+ * @name CuratorActivity
9
+ * @package sparkdream.collect.v1
10
+ * @see proto type: sparkdream.collect.v1.CuratorActivity
11
+ */
12
+ export interface CuratorActivity {
13
+ address: string;
14
+ /**
15
+ * total_reviews is the lifetime count of reviews the curator has submitted.
16
+ */
17
+ totalReviews: bigint;
18
+ /**
19
+ * challenged_reviews is the lifetime count of the curator's reviews that
20
+ * have been challenged (regardless of outcome).
21
+ */
22
+ challengedReviews: bigint;
23
+ /**
24
+ * upheld_reviews is the lifetime count of challenged reviews that were
25
+ * ultimately upheld in the curator's favor.
26
+ */
27
+ upheldReviews: bigint;
28
+ /**
29
+ * overturned_reviews is the lifetime count of challenged reviews that were
30
+ * overturned against the curator.
31
+ */
32
+ overturnedReviews: bigint;
33
+ /**
34
+ * consecutive_overturns tracks the current streak of overturned-against
35
+ * reviews since the last upheld one. Used to trigger demotion via
36
+ * SetBondStatus(DEMOTED) when it crosses the threshold.
37
+ */
38
+ consecutiveOverturns: bigint;
39
+ /**
40
+ * consecutive_upheld tracks the current streak of upheld reviews.
41
+ */
42
+ consecutiveUpheld: bigint;
43
+ /**
44
+ * epoch_reviews counts reviews submitted in the current sentinel-style
45
+ * reward epoch (reserved for future per-epoch accounting; zero for now).
46
+ */
47
+ epochReviews: bigint;
48
+ }
49
+ export interface CuratorActivityProtoMsg {
50
+ typeUrl: "/sparkdream.collect.v1.CuratorActivity";
51
+ value: Uint8Array;
52
+ }
53
+ /**
54
+ * CuratorActivity holds collect-specific per-curator counters. The generic
55
+ * bond/status/activity record lives in x/rep as BondedRole
56
+ * (ROLE_TYPE_COLLECT_CURATOR) — this proto only tracks what's collect-specific:
57
+ * review counts and dispute outcomes.
58
+ * @name CuratorActivityAmino
59
+ * @package sparkdream.collect.v1
60
+ * @see proto type: sparkdream.collect.v1.CuratorActivity
61
+ */
62
+ export interface CuratorActivityAmino {
63
+ address?: string;
64
+ /**
65
+ * total_reviews is the lifetime count of reviews the curator has submitted.
66
+ */
67
+ total_reviews?: string;
68
+ /**
69
+ * challenged_reviews is the lifetime count of the curator's reviews that
70
+ * have been challenged (regardless of outcome).
71
+ */
72
+ challenged_reviews?: string;
73
+ /**
74
+ * upheld_reviews is the lifetime count of challenged reviews that were
75
+ * ultimately upheld in the curator's favor.
76
+ */
77
+ upheld_reviews?: string;
78
+ /**
79
+ * overturned_reviews is the lifetime count of challenged reviews that were
80
+ * overturned against the curator.
81
+ */
82
+ overturned_reviews?: string;
83
+ /**
84
+ * consecutive_overturns tracks the current streak of overturned-against
85
+ * reviews since the last upheld one. Used to trigger demotion via
86
+ * SetBondStatus(DEMOTED) when it crosses the threshold.
87
+ */
88
+ consecutive_overturns?: string;
89
+ /**
90
+ * consecutive_upheld tracks the current streak of upheld reviews.
91
+ */
92
+ consecutive_upheld?: string;
93
+ /**
94
+ * epoch_reviews counts reviews submitted in the current sentinel-style
95
+ * reward epoch (reserved for future per-epoch accounting; zero for now).
96
+ */
97
+ epoch_reviews?: string;
98
+ }
99
+ export interface CuratorActivityAminoMsg {
100
+ type: "/sparkdream.collect.v1.CuratorActivity";
101
+ value: CuratorActivityAmino;
102
+ }
103
+ /**
104
+ * CuratorActivity holds collect-specific per-curator counters. The generic
105
+ * bond/status/activity record lives in x/rep as BondedRole
106
+ * (ROLE_TYPE_COLLECT_CURATOR) — this proto only tracks what's collect-specific:
107
+ * review counts and dispute outcomes.
108
+ * @name CuratorActivity
109
+ * @package sparkdream.collect.v1
110
+ * @see proto type: sparkdream.collect.v1.CuratorActivity
111
+ */
112
+ export declare const CuratorActivity: {
113
+ typeUrl: string;
114
+ encode(message: CuratorActivity, writer?: BinaryWriter): BinaryWriter;
115
+ decode(input: BinaryReader | Uint8Array, length?: number): CuratorActivity;
116
+ fromPartial(object: DeepPartial<CuratorActivity>): CuratorActivity;
117
+ fromAmino(object: CuratorActivityAmino): CuratorActivity;
118
+ toAmino(message: CuratorActivity): CuratorActivityAmino;
119
+ fromAminoMsg(object: CuratorActivityAminoMsg): CuratorActivity;
120
+ fromProtoMsg(message: CuratorActivityProtoMsg): CuratorActivity;
121
+ toProto(message: CuratorActivity): Uint8Array;
122
+ toProtoMsg(message: CuratorActivity): CuratorActivityProtoMsg;
123
+ };
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CuratorActivity = void 0;
4
+ //@ts-nocheck
5
+ const binary_1 = require("../../../binary");
6
+ function createBaseCuratorActivity() {
7
+ return {
8
+ address: "",
9
+ totalReviews: BigInt(0),
10
+ challengedReviews: BigInt(0),
11
+ upheldReviews: BigInt(0),
12
+ overturnedReviews: BigInt(0),
13
+ consecutiveOverturns: BigInt(0),
14
+ consecutiveUpheld: BigInt(0),
15
+ epochReviews: BigInt(0)
16
+ };
17
+ }
18
+ /**
19
+ * CuratorActivity holds collect-specific per-curator counters. The generic
20
+ * bond/status/activity record lives in x/rep as BondedRole
21
+ * (ROLE_TYPE_COLLECT_CURATOR) — this proto only tracks what's collect-specific:
22
+ * review counts and dispute outcomes.
23
+ * @name CuratorActivity
24
+ * @package sparkdream.collect.v1
25
+ * @see proto type: sparkdream.collect.v1.CuratorActivity
26
+ */
27
+ exports.CuratorActivity = {
28
+ typeUrl: "/sparkdream.collect.v1.CuratorActivity",
29
+ encode(message, writer = binary_1.BinaryWriter.create()) {
30
+ if (message.address !== "") {
31
+ writer.uint32(10).string(message.address);
32
+ }
33
+ if (message.totalReviews !== BigInt(0)) {
34
+ writer.uint32(16).uint64(message.totalReviews);
35
+ }
36
+ if (message.challengedReviews !== BigInt(0)) {
37
+ writer.uint32(24).uint64(message.challengedReviews);
38
+ }
39
+ if (message.upheldReviews !== BigInt(0)) {
40
+ writer.uint32(32).uint64(message.upheldReviews);
41
+ }
42
+ if (message.overturnedReviews !== BigInt(0)) {
43
+ writer.uint32(40).uint64(message.overturnedReviews);
44
+ }
45
+ if (message.consecutiveOverturns !== BigInt(0)) {
46
+ writer.uint32(48).uint64(message.consecutiveOverturns);
47
+ }
48
+ if (message.consecutiveUpheld !== BigInt(0)) {
49
+ writer.uint32(56).uint64(message.consecutiveUpheld);
50
+ }
51
+ if (message.epochReviews !== BigInt(0)) {
52
+ writer.uint32(64).uint64(message.epochReviews);
53
+ }
54
+ return writer;
55
+ },
56
+ decode(input, length) {
57
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
58
+ let end = length === undefined ? reader.len : reader.pos + length;
59
+ const message = createBaseCuratorActivity();
60
+ while (reader.pos < end) {
61
+ const tag = reader.uint32();
62
+ switch (tag >>> 3) {
63
+ case 1:
64
+ message.address = reader.string();
65
+ break;
66
+ case 2:
67
+ message.totalReviews = reader.uint64();
68
+ break;
69
+ case 3:
70
+ message.challengedReviews = reader.uint64();
71
+ break;
72
+ case 4:
73
+ message.upheldReviews = reader.uint64();
74
+ break;
75
+ case 5:
76
+ message.overturnedReviews = reader.uint64();
77
+ break;
78
+ case 6:
79
+ message.consecutiveOverturns = reader.uint64();
80
+ break;
81
+ case 7:
82
+ message.consecutiveUpheld = reader.uint64();
83
+ break;
84
+ case 8:
85
+ message.epochReviews = reader.uint64();
86
+ break;
87
+ default:
88
+ reader.skipType(tag & 7);
89
+ break;
90
+ }
91
+ }
92
+ return message;
93
+ },
94
+ fromPartial(object) {
95
+ const message = createBaseCuratorActivity();
96
+ message.address = object.address ?? "";
97
+ message.totalReviews = object.totalReviews !== undefined && object.totalReviews !== null ? BigInt(object.totalReviews.toString()) : BigInt(0);
98
+ message.challengedReviews = object.challengedReviews !== undefined && object.challengedReviews !== null ? BigInt(object.challengedReviews.toString()) : BigInt(0);
99
+ message.upheldReviews = object.upheldReviews !== undefined && object.upheldReviews !== null ? BigInt(object.upheldReviews.toString()) : BigInt(0);
100
+ message.overturnedReviews = object.overturnedReviews !== undefined && object.overturnedReviews !== null ? BigInt(object.overturnedReviews.toString()) : BigInt(0);
101
+ message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
102
+ message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
103
+ message.epochReviews = object.epochReviews !== undefined && object.epochReviews !== null ? BigInt(object.epochReviews.toString()) : BigInt(0);
104
+ return message;
105
+ },
106
+ fromAmino(object) {
107
+ const message = createBaseCuratorActivity();
108
+ if (object.address !== undefined && object.address !== null) {
109
+ message.address = object.address;
110
+ }
111
+ if (object.total_reviews !== undefined && object.total_reviews !== null) {
112
+ message.totalReviews = BigInt(object.total_reviews);
113
+ }
114
+ if (object.challenged_reviews !== undefined && object.challenged_reviews !== null) {
115
+ message.challengedReviews = BigInt(object.challenged_reviews);
116
+ }
117
+ if (object.upheld_reviews !== undefined && object.upheld_reviews !== null) {
118
+ message.upheldReviews = BigInt(object.upheld_reviews);
119
+ }
120
+ if (object.overturned_reviews !== undefined && object.overturned_reviews !== null) {
121
+ message.overturnedReviews = BigInt(object.overturned_reviews);
122
+ }
123
+ if (object.consecutive_overturns !== undefined && object.consecutive_overturns !== null) {
124
+ message.consecutiveOverturns = BigInt(object.consecutive_overturns);
125
+ }
126
+ if (object.consecutive_upheld !== undefined && object.consecutive_upheld !== null) {
127
+ message.consecutiveUpheld = BigInt(object.consecutive_upheld);
128
+ }
129
+ if (object.epoch_reviews !== undefined && object.epoch_reviews !== null) {
130
+ message.epochReviews = BigInt(object.epoch_reviews);
131
+ }
132
+ return message;
133
+ },
134
+ toAmino(message) {
135
+ const obj = {};
136
+ obj.address = message.address === "" ? undefined : message.address;
137
+ obj.total_reviews = message.totalReviews !== BigInt(0) ? message.totalReviews?.toString() : undefined;
138
+ obj.challenged_reviews = message.challengedReviews !== BigInt(0) ? message.challengedReviews?.toString() : undefined;
139
+ obj.upheld_reviews = message.upheldReviews !== BigInt(0) ? message.upheldReviews?.toString() : undefined;
140
+ obj.overturned_reviews = message.overturnedReviews !== BigInt(0) ? message.overturnedReviews?.toString() : undefined;
141
+ obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
142
+ obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
143
+ obj.epoch_reviews = message.epochReviews !== BigInt(0) ? message.epochReviews?.toString() : undefined;
144
+ return obj;
145
+ },
146
+ fromAminoMsg(object) {
147
+ return exports.CuratorActivity.fromAmino(object.value);
148
+ },
149
+ fromProtoMsg(message) {
150
+ return exports.CuratorActivity.decode(message.value);
151
+ },
152
+ toProto(message) {
153
+ return exports.CuratorActivity.encode(message).finish();
154
+ },
155
+ toProtoMsg(message) {
156
+ return {
157
+ typeUrl: "/sparkdream.collect.v1.CuratorActivity",
158
+ value: exports.CuratorActivity.encode(message).finish()
159
+ };
160
+ }
161
+ };
@@ -1,5 +1,6 @@
1
1
  import { Params, ParamsAmino } from "./params";
2
- import { Collection, CollectionAmino, Item, ItemAmino, Collaborator, CollaboratorAmino, Curator, CuratorAmino, CurationReview, CurationReviewAmino, CurationSummary, CurationSummaryAmino, SponsorshipRequest, SponsorshipRequestAmino, CollectionFlag, CollectionFlagAmino, HideRecord, HideRecordAmino, Endorsement, EndorsementAmino } from "./types";
2
+ import { Collection, CollectionAmino, Item, ItemAmino, Collaborator, CollaboratorAmino, CurationReview, CurationReviewAmino, CurationSummary, CurationSummaryAmino, SponsorshipRequest, SponsorshipRequestAmino, CollectionFlag, CollectionFlagAmino, HideRecord, HideRecordAmino, Endorsement, EndorsementAmino } from "./types";
3
+ import { CuratorActivity, CuratorActivityAmino } from "./curator_activity";
3
4
  import { BinaryReader, BinaryWriter } from "../../../binary";
4
5
  import { DeepPartial } from "../../../helpers";
5
6
  /**
@@ -18,7 +19,7 @@ export interface GenesisState {
18
19
  items: Item[];
19
20
  itemCount: bigint;
20
21
  collaborators: Collaborator[];
21
- curators: Curator[];
22
+ curatorActivities: CuratorActivity[];
22
23
  curationReviews: CurationReview[];
23
24
  curationReviewCount: bigint;
24
25
  curationSummaries: CurationSummary[];
@@ -48,7 +49,7 @@ export interface GenesisStateAmino {
48
49
  items?: ItemAmino[];
49
50
  item_count?: string;
50
51
  collaborators?: CollaboratorAmino[];
51
- curators?: CuratorAmino[];
52
+ curator_activities?: CuratorActivityAmino[];
52
53
  curation_reviews?: CurationReviewAmino[];
53
54
  curation_review_count?: string;
54
55
  curation_summaries?: CurationSummaryAmino[];
@@ -4,6 +4,7 @@ exports.GenesisState = void 0;
4
4
  //@ts-nocheck
5
5
  const params_1 = require("./params");
6
6
  const types_1 = require("./types");
7
+ const curator_activity_1 = require("./curator_activity");
7
8
  const binary_1 = require("../../../binary");
8
9
  function createBaseGenesisState() {
9
10
  return {
@@ -13,7 +14,7 @@ function createBaseGenesisState() {
13
14
  items: [],
14
15
  itemCount: BigInt(0),
15
16
  collaborators: [],
16
- curators: [],
17
+ curatorActivities: [],
17
18
  curationReviews: [],
18
19
  curationReviewCount: BigInt(0),
19
20
  curationSummaries: [],
@@ -51,8 +52,8 @@ exports.GenesisState = {
51
52
  for (const v of message.collaborators) {
52
53
  types_1.Collaborator.encode(v, writer.uint32(50).fork()).ldelim();
53
54
  }
54
- for (const v of message.curators) {
55
- types_1.Curator.encode(v, writer.uint32(58).fork()).ldelim();
55
+ for (const v of message.curatorActivities) {
56
+ curator_activity_1.CuratorActivity.encode(v, writer.uint32(130).fork()).ldelim();
56
57
  }
57
58
  for (const v of message.curationReviews) {
58
59
  types_1.CurationReview.encode(v, writer.uint32(66).fork()).ldelim();
@@ -105,8 +106,8 @@ exports.GenesisState = {
105
106
  case 6:
106
107
  message.collaborators.push(types_1.Collaborator.decode(reader, reader.uint32()));
107
108
  break;
108
- case 7:
109
- message.curators.push(types_1.Curator.decode(reader, reader.uint32()));
109
+ case 16:
110
+ message.curatorActivities.push(curator_activity_1.CuratorActivity.decode(reader, reader.uint32()));
110
111
  break;
111
112
  case 8:
112
113
  message.curationReviews.push(types_1.CurationReview.decode(reader, reader.uint32()));
@@ -147,7 +148,7 @@ exports.GenesisState = {
147
148
  message.items = object.items?.map(e => types_1.Item.fromPartial(e)) || [];
148
149
  message.itemCount = object.itemCount !== undefined && object.itemCount !== null ? BigInt(object.itemCount.toString()) : BigInt(0);
149
150
  message.collaborators = object.collaborators?.map(e => types_1.Collaborator.fromPartial(e)) || [];
150
- message.curators = object.curators?.map(e => types_1.Curator.fromPartial(e)) || [];
151
+ message.curatorActivities = object.curatorActivities?.map(e => curator_activity_1.CuratorActivity.fromPartial(e)) || [];
151
152
  message.curationReviews = object.curationReviews?.map(e => types_1.CurationReview.fromPartial(e)) || [];
152
153
  message.curationReviewCount = object.curationReviewCount !== undefined && object.curationReviewCount !== null ? BigInt(object.curationReviewCount.toString()) : BigInt(0);
153
154
  message.curationSummaries = object.curationSummaries?.map(e => types_1.CurationSummary.fromPartial(e)) || [];
@@ -172,7 +173,7 @@ exports.GenesisState = {
172
173
  message.itemCount = BigInt(object.item_count);
173
174
  }
174
175
  message.collaborators = object.collaborators?.map(e => types_1.Collaborator.fromAmino(e)) || [];
175
- message.curators = object.curators?.map(e => types_1.Curator.fromAmino(e)) || [];
176
+ message.curatorActivities = object.curator_activities?.map(e => curator_activity_1.CuratorActivity.fromAmino(e)) || [];
176
177
  message.curationReviews = object.curation_reviews?.map(e => types_1.CurationReview.fromAmino(e)) || [];
177
178
  if (object.curation_review_count !== undefined && object.curation_review_count !== null) {
178
179
  message.curationReviewCount = BigInt(object.curation_review_count);
@@ -210,11 +211,11 @@ exports.GenesisState = {
210
211
  else {
211
212
  obj.collaborators = message.collaborators;
212
213
  }
213
- if (message.curators) {
214
- obj.curators = message.curators.map(e => e ? types_1.Curator.toAmino(e) : undefined);
214
+ if (message.curatorActivities) {
215
+ obj.curator_activities = message.curatorActivities.map(e => e ? curator_activity_1.CuratorActivity.toAmino(e) : undefined);
215
216
  }
216
217
  else {
217
- obj.curators = message.curators;
218
+ obj.curator_activities = message.curatorActivities;
218
219
  }
219
220
  if (message.curationReviews) {
220
221
  obj.curation_reviews = message.curationReviews.map(e => e ? types_1.CurationReview.toAmino(e) : undefined);
@@ -104,6 +104,22 @@ export interface Params {
104
104
  * Max pins per address per day (default: 10)
105
105
  */
106
106
  maxPinsPerDay: number;
107
+ /**
108
+ * curator_demotion_cooldown is the number of seconds a DEMOTED curator
109
+ * must wait before re-bonding.
110
+ */
111
+ curatorDemotionCooldown: bigint;
112
+ /**
113
+ * curator_demotion_threshold is the bond floor (DREAM) below which a
114
+ * curator transitions from RECOVERY to DEMOTED.
115
+ */
116
+ curatorDemotionThreshold: string;
117
+ /**
118
+ * curator_overturn_demotion_streak is the number of consecutive overturned
119
+ * challenge outcomes against a curator before they are demoted. Zero = no
120
+ * streak-based demotion.
121
+ */
122
+ curatorOverturnDemotionStreak: bigint;
107
123
  }
108
124
  export interface ParamsProtoMsg {
109
125
  typeUrl: "/sparkdream.collect.v1.Params";
@@ -213,6 +229,22 @@ export interface ParamsAmino {
213
229
  * Max pins per address per day (default: 10)
214
230
  */
215
231
  max_pins_per_day?: number;
232
+ /**
233
+ * curator_demotion_cooldown is the number of seconds a DEMOTED curator
234
+ * must wait before re-bonding.
235
+ */
236
+ curator_demotion_cooldown?: string;
237
+ /**
238
+ * curator_demotion_threshold is the bond floor (DREAM) below which a
239
+ * curator transitions from RECOVERY to DEMOTED.
240
+ */
241
+ curator_demotion_threshold?: string;
242
+ /**
243
+ * curator_overturn_demotion_streak is the number of consecutive overturned
244
+ * challenge outcomes against a curator before they are demoted. Zero = no
245
+ * streak-based demotion.
246
+ */
247
+ curator_overturn_demotion_streak?: string;
216
248
  }
217
249
  export interface ParamsAminoMsg {
218
250
  type: "sparkdream/x/collect/Params";
@@ -63,7 +63,10 @@ function createBaseParams() {
63
63
  convictionRenewalThreshold: "",
64
64
  convictionRenewalPeriod: BigInt(0),
65
65
  pinMinTrustLevel: 0,
66
- maxPinsPerDay: 0
66
+ maxPinsPerDay: 0,
67
+ curatorDemotionCooldown: BigInt(0),
68
+ curatorDemotionThreshold: "",
69
+ curatorOverturnDemotionStreak: BigInt(0)
67
70
  };
68
71
  }
69
72
  /**
@@ -250,6 +253,15 @@ exports.Params = {
250
253
  if (message.maxPinsPerDay !== 0) {
251
254
  writer.uint32(496).uint32(message.maxPinsPerDay);
252
255
  }
256
+ if (message.curatorDemotionCooldown !== BigInt(0)) {
257
+ writer.uint32(504).int64(message.curatorDemotionCooldown);
258
+ }
259
+ if (message.curatorDemotionThreshold !== "") {
260
+ writer.uint32(514).string(message.curatorDemotionThreshold);
261
+ }
262
+ if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
263
+ writer.uint32(520).uint64(message.curatorOverturnDemotionStreak);
264
+ }
253
265
  return writer;
254
266
  },
255
267
  decode(input, length) {
@@ -433,6 +445,15 @@ exports.Params = {
433
445
  case 62:
434
446
  message.maxPinsPerDay = reader.uint32();
435
447
  break;
448
+ case 63:
449
+ message.curatorDemotionCooldown = reader.int64();
450
+ break;
451
+ case 64:
452
+ message.curatorDemotionThreshold = reader.string();
453
+ break;
454
+ case 65:
455
+ message.curatorOverturnDemotionStreak = reader.uint64();
456
+ break;
436
457
  default:
437
458
  reader.skipType(tag & 7);
438
459
  break;
@@ -500,6 +521,9 @@ exports.Params = {
500
521
  message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
501
522
  message.pinMinTrustLevel = object.pinMinTrustLevel ?? 0;
502
523
  message.maxPinsPerDay = object.maxPinsPerDay ?? 0;
524
+ message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
525
+ message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
526
+ message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
503
527
  return message;
504
528
  },
505
529
  fromAmino(object) {
@@ -678,6 +702,15 @@ exports.Params = {
678
702
  if (object.max_pins_per_day !== undefined && object.max_pins_per_day !== null) {
679
703
  message.maxPinsPerDay = object.max_pins_per_day;
680
704
  }
705
+ if (object.curator_demotion_cooldown !== undefined && object.curator_demotion_cooldown !== null) {
706
+ message.curatorDemotionCooldown = BigInt(object.curator_demotion_cooldown);
707
+ }
708
+ if (object.curator_demotion_threshold !== undefined && object.curator_demotion_threshold !== null) {
709
+ message.curatorDemotionThreshold = object.curator_demotion_threshold;
710
+ }
711
+ if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
712
+ message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
713
+ }
681
714
  return message;
682
715
  },
683
716
  toAmino(message) {
@@ -740,6 +773,9 @@ exports.Params = {
740
773
  obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
741
774
  obj.pin_min_trust_level = message.pinMinTrustLevel === 0 ? undefined : message.pinMinTrustLevel;
742
775
  obj.max_pins_per_day = message.maxPinsPerDay === 0 ? undefined : message.maxPinsPerDay;
776
+ obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
777
+ obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
778
+ obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
743
779
  return obj;
744
780
  },
745
781
  fromAminoMsg(object) {