@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
@@ -35,36 +35,36 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.tendermint = void 0;
37
37
  //@ts-nocheck
38
- const _328 = __importStar(require("./abci/types"));
39
- const _329 = __importStar(require("./crypto/keys"));
40
- const _330 = __importStar(require("./crypto/proof"));
41
- const _331 = __importStar(require("./p2p/types"));
42
- const _332 = __importStar(require("./types/block"));
43
- const _333 = __importStar(require("./types/evidence"));
44
- const _334 = __importStar(require("./types/params"));
45
- const _335 = __importStar(require("./types/types"));
46
- const _336 = __importStar(require("./types/validator"));
47
- const _337 = __importStar(require("./version/types"));
38
+ const _330 = __importStar(require("./abci/types"));
39
+ const _331 = __importStar(require("./crypto/keys"));
40
+ const _332 = __importStar(require("./crypto/proof"));
41
+ const _333 = __importStar(require("./p2p/types"));
42
+ const _334 = __importStar(require("./types/block"));
43
+ const _335 = __importStar(require("./types/evidence"));
44
+ const _336 = __importStar(require("./types/params"));
45
+ const _337 = __importStar(require("./types/types"));
46
+ const _338 = __importStar(require("./types/validator"));
47
+ const _339 = __importStar(require("./version/types"));
48
48
  var tendermint;
49
49
  (function (tendermint) {
50
50
  tendermint.abci = {
51
- ..._328
51
+ ..._330
52
52
  };
53
53
  tendermint.crypto = {
54
- ..._329,
55
- ..._330
54
+ ..._331,
55
+ ..._332
56
56
  };
57
57
  tendermint.p2p = {
58
- ..._331
58
+ ..._333
59
59
  };
60
60
  tendermint.types = {
61
- ..._332,
62
- ..._333,
63
61
  ..._334,
64
62
  ..._335,
65
- ..._336
63
+ ..._336,
64
+ ..._337,
65
+ ..._338
66
66
  };
67
67
  tendermint.version = {
68
- ..._337
68
+ ..._339
69
69
  };
70
70
  })(tendermint || (exports.tendermint = tendermint = {}));
@@ -1,214 +0,0 @@
1
- //@ts-nocheck
2
- import { BinaryReader, BinaryWriter } from "../../../binary";
3
- /** SentinelBondStatus represents the bond status of a sentinel. */
4
- export var SentinelBondStatus;
5
- (function (SentinelBondStatus) {
6
- SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_UNSPECIFIED"] = 0] = "SENTINEL_BOND_STATUS_UNSPECIFIED";
7
- SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_NORMAL"] = 1] = "SENTINEL_BOND_STATUS_NORMAL";
8
- SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_RECOVERY"] = 2] = "SENTINEL_BOND_STATUS_RECOVERY";
9
- SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_DEMOTED"] = 3] = "SENTINEL_BOND_STATUS_DEMOTED";
10
- SentinelBondStatus[SentinelBondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
11
- })(SentinelBondStatus || (SentinelBondStatus = {}));
12
- export const SentinelBondStatusAmino = SentinelBondStatus;
13
- export function sentinelBondStatusFromJSON(object) {
14
- switch (object) {
15
- case 0:
16
- case "SENTINEL_BOND_STATUS_UNSPECIFIED":
17
- return SentinelBondStatus.SENTINEL_BOND_STATUS_UNSPECIFIED;
18
- case 1:
19
- case "SENTINEL_BOND_STATUS_NORMAL":
20
- return SentinelBondStatus.SENTINEL_BOND_STATUS_NORMAL;
21
- case 2:
22
- case "SENTINEL_BOND_STATUS_RECOVERY":
23
- return SentinelBondStatus.SENTINEL_BOND_STATUS_RECOVERY;
24
- case 3:
25
- case "SENTINEL_BOND_STATUS_DEMOTED":
26
- return SentinelBondStatus.SENTINEL_BOND_STATUS_DEMOTED;
27
- case -1:
28
- case "UNRECOGNIZED":
29
- default:
30
- return SentinelBondStatus.UNRECOGNIZED;
31
- }
32
- }
33
- export function sentinelBondStatusToJSON(object) {
34
- switch (object) {
35
- case SentinelBondStatus.SENTINEL_BOND_STATUS_UNSPECIFIED:
36
- return "SENTINEL_BOND_STATUS_UNSPECIFIED";
37
- case SentinelBondStatus.SENTINEL_BOND_STATUS_NORMAL:
38
- return "SENTINEL_BOND_STATUS_NORMAL";
39
- case SentinelBondStatus.SENTINEL_BOND_STATUS_RECOVERY:
40
- return "SENTINEL_BOND_STATUS_RECOVERY";
41
- case SentinelBondStatus.SENTINEL_BOND_STATUS_DEMOTED:
42
- return "SENTINEL_BOND_STATUS_DEMOTED";
43
- case SentinelBondStatus.UNRECOGNIZED:
44
- default:
45
- return "UNRECOGNIZED";
46
- }
47
- }
48
- function createBaseSentinelActivity() {
49
- return {
50
- address: "",
51
- bondStatus: 0,
52
- currentBond: "",
53
- totalCommittedBond: "",
54
- lastActiveEpoch: BigInt(0),
55
- consecutiveInactiveEpochs: BigInt(0),
56
- demotionCooldownUntil: BigInt(0),
57
- cumulativeRewards: "",
58
- lastRewardEpoch: BigInt(0)
59
- };
60
- }
61
- /**
62
- * SentinelActivity holds the generic accountability record for a sentinel:
63
- * identity, bond, bond status, and activity stamps. Forum-specific action
64
- * counters live in sparkdream.forum.v1.SentinelActivity.
65
- * @name SentinelActivity
66
- * @package sparkdream.rep.v1
67
- * @see proto type: sparkdream.rep.v1.SentinelActivity
68
- */
69
- export const SentinelActivity = {
70
- typeUrl: "/sparkdream.rep.v1.SentinelActivity",
71
- encode(message, writer = BinaryWriter.create()) {
72
- if (message.address !== "") {
73
- writer.uint32(10).string(message.address);
74
- }
75
- if (message.bondStatus !== 0) {
76
- writer.uint32(16).int32(message.bondStatus);
77
- }
78
- if (message.currentBond !== "") {
79
- writer.uint32(26).string(message.currentBond);
80
- }
81
- if (message.totalCommittedBond !== "") {
82
- writer.uint32(34).string(message.totalCommittedBond);
83
- }
84
- if (message.lastActiveEpoch !== BigInt(0)) {
85
- writer.uint32(40).int64(message.lastActiveEpoch);
86
- }
87
- if (message.consecutiveInactiveEpochs !== BigInt(0)) {
88
- writer.uint32(48).uint64(message.consecutiveInactiveEpochs);
89
- }
90
- if (message.demotionCooldownUntil !== BigInt(0)) {
91
- writer.uint32(56).int64(message.demotionCooldownUntil);
92
- }
93
- if (message.cumulativeRewards !== "") {
94
- writer.uint32(66).string(message.cumulativeRewards);
95
- }
96
- if (message.lastRewardEpoch !== BigInt(0)) {
97
- writer.uint32(72).int64(message.lastRewardEpoch);
98
- }
99
- return writer;
100
- },
101
- decode(input, length) {
102
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
103
- let end = length === undefined ? reader.len : reader.pos + length;
104
- const message = createBaseSentinelActivity();
105
- while (reader.pos < end) {
106
- const tag = reader.uint32();
107
- switch (tag >>> 3) {
108
- case 1:
109
- message.address = reader.string();
110
- break;
111
- case 2:
112
- message.bondStatus = reader.int32();
113
- break;
114
- case 3:
115
- message.currentBond = reader.string();
116
- break;
117
- case 4:
118
- message.totalCommittedBond = reader.string();
119
- break;
120
- case 5:
121
- message.lastActiveEpoch = reader.int64();
122
- break;
123
- case 6:
124
- message.consecutiveInactiveEpochs = reader.uint64();
125
- break;
126
- case 7:
127
- message.demotionCooldownUntil = reader.int64();
128
- break;
129
- case 8:
130
- message.cumulativeRewards = reader.string();
131
- break;
132
- case 9:
133
- message.lastRewardEpoch = reader.int64();
134
- break;
135
- default:
136
- reader.skipType(tag & 7);
137
- break;
138
- }
139
- }
140
- return message;
141
- },
142
- fromPartial(object) {
143
- const message = createBaseSentinelActivity();
144
- message.address = object.address ?? "";
145
- message.bondStatus = object.bondStatus ?? 0;
146
- message.currentBond = object.currentBond ?? "";
147
- message.totalCommittedBond = object.totalCommittedBond ?? "";
148
- message.lastActiveEpoch = object.lastActiveEpoch !== undefined && object.lastActiveEpoch !== null ? BigInt(object.lastActiveEpoch.toString()) : BigInt(0);
149
- message.consecutiveInactiveEpochs = object.consecutiveInactiveEpochs !== undefined && object.consecutiveInactiveEpochs !== null ? BigInt(object.consecutiveInactiveEpochs.toString()) : BigInt(0);
150
- message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
151
- message.cumulativeRewards = object.cumulativeRewards ?? "";
152
- message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
153
- return message;
154
- },
155
- fromAmino(object) {
156
- const message = createBaseSentinelActivity();
157
- if (object.address !== undefined && object.address !== null) {
158
- message.address = object.address;
159
- }
160
- if (object.bond_status !== undefined && object.bond_status !== null) {
161
- message.bondStatus = object.bond_status;
162
- }
163
- if (object.current_bond !== undefined && object.current_bond !== null) {
164
- message.currentBond = object.current_bond;
165
- }
166
- if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
167
- message.totalCommittedBond = object.total_committed_bond;
168
- }
169
- if (object.last_active_epoch !== undefined && object.last_active_epoch !== null) {
170
- message.lastActiveEpoch = BigInt(object.last_active_epoch);
171
- }
172
- if (object.consecutive_inactive_epochs !== undefined && object.consecutive_inactive_epochs !== null) {
173
- message.consecutiveInactiveEpochs = BigInt(object.consecutive_inactive_epochs);
174
- }
175
- if (object.demotion_cooldown_until !== undefined && object.demotion_cooldown_until !== null) {
176
- message.demotionCooldownUntil = BigInt(object.demotion_cooldown_until);
177
- }
178
- if (object.cumulative_rewards !== undefined && object.cumulative_rewards !== null) {
179
- message.cumulativeRewards = object.cumulative_rewards;
180
- }
181
- if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
182
- message.lastRewardEpoch = BigInt(object.last_reward_epoch);
183
- }
184
- return message;
185
- },
186
- toAmino(message) {
187
- const obj = {};
188
- obj.address = message.address === "" ? undefined : message.address;
189
- obj.bond_status = message.bondStatus === 0 ? undefined : message.bondStatus;
190
- obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
191
- obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
192
- obj.last_active_epoch = message.lastActiveEpoch !== BigInt(0) ? message.lastActiveEpoch?.toString() : undefined;
193
- obj.consecutive_inactive_epochs = message.consecutiveInactiveEpochs !== BigInt(0) ? message.consecutiveInactiveEpochs?.toString() : undefined;
194
- obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
195
- obj.cumulative_rewards = message.cumulativeRewards === "" ? undefined : message.cumulativeRewards;
196
- obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
197
- return obj;
198
- },
199
- fromAminoMsg(object) {
200
- return SentinelActivity.fromAmino(object.value);
201
- },
202
- fromProtoMsg(message) {
203
- return SentinelActivity.decode(message.value);
204
- },
205
- toProto(message) {
206
- return SentinelActivity.encode(message).finish();
207
- },
208
- toProtoMsg(message) {
209
- return {
210
- typeUrl: "/sparkdream.rep.v1.SentinelActivity",
211
- value: SentinelActivity.encode(message).finish()
212
- };
213
- }
214
- };
@@ -1,79 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "../../../binary";
2
- import { DeepPartial } from "../../../helpers";
3
- /** SentinelBondStatus represents the bond status of a sentinel. */
4
- export declare enum SentinelBondStatus {
5
- SENTINEL_BOND_STATUS_UNSPECIFIED = 0,
6
- SENTINEL_BOND_STATUS_NORMAL = 1,
7
- SENTINEL_BOND_STATUS_RECOVERY = 2,
8
- SENTINEL_BOND_STATUS_DEMOTED = 3,
9
- UNRECOGNIZED = -1
10
- }
11
- export declare const SentinelBondStatusAmino: typeof SentinelBondStatus;
12
- export declare function sentinelBondStatusFromJSON(object: any): SentinelBondStatus;
13
- export declare function sentinelBondStatusToJSON(object: SentinelBondStatus): string;
14
- /**
15
- * SentinelActivity holds the generic accountability record for a sentinel:
16
- * identity, bond, bond status, and activity stamps. Forum-specific action
17
- * counters live in sparkdream.forum.v1.SentinelActivity.
18
- * @name SentinelActivity
19
- * @package sparkdream.rep.v1
20
- * @see proto type: sparkdream.rep.v1.SentinelActivity
21
- */
22
- export interface SentinelActivity {
23
- address: string;
24
- bondStatus: SentinelBondStatus;
25
- currentBond: string;
26
- totalCommittedBond: string;
27
- lastActiveEpoch: bigint;
28
- consecutiveInactiveEpochs: bigint;
29
- demotionCooldownUntil: bigint;
30
- cumulativeRewards: string;
31
- lastRewardEpoch: bigint;
32
- }
33
- export interface SentinelActivityProtoMsg {
34
- typeUrl: "/sparkdream.rep.v1.SentinelActivity";
35
- value: Uint8Array;
36
- }
37
- /**
38
- * SentinelActivity holds the generic accountability record for a sentinel:
39
- * identity, bond, bond status, and activity stamps. Forum-specific action
40
- * counters live in sparkdream.forum.v1.SentinelActivity.
41
- * @name SentinelActivityAmino
42
- * @package sparkdream.rep.v1
43
- * @see proto type: sparkdream.rep.v1.SentinelActivity
44
- */
45
- export interface SentinelActivityAmino {
46
- address?: string;
47
- bond_status?: SentinelBondStatus;
48
- current_bond?: string;
49
- total_committed_bond?: string;
50
- last_active_epoch?: string;
51
- consecutive_inactive_epochs?: string;
52
- demotion_cooldown_until?: string;
53
- cumulative_rewards?: string;
54
- last_reward_epoch?: string;
55
- }
56
- export interface SentinelActivityAminoMsg {
57
- type: "/sparkdream.rep.v1.SentinelActivity";
58
- value: SentinelActivityAmino;
59
- }
60
- /**
61
- * SentinelActivity holds the generic accountability record for a sentinel:
62
- * identity, bond, bond status, and activity stamps. Forum-specific action
63
- * counters live in sparkdream.forum.v1.SentinelActivity.
64
- * @name SentinelActivity
65
- * @package sparkdream.rep.v1
66
- * @see proto type: sparkdream.rep.v1.SentinelActivity
67
- */
68
- export declare const SentinelActivity: {
69
- typeUrl: string;
70
- encode(message: SentinelActivity, writer?: BinaryWriter): BinaryWriter;
71
- decode(input: BinaryReader | Uint8Array, length?: number): SentinelActivity;
72
- fromPartial(object: DeepPartial<SentinelActivity>): SentinelActivity;
73
- fromAmino(object: SentinelActivityAmino): SentinelActivity;
74
- toAmino(message: SentinelActivity): SentinelActivityAmino;
75
- fromAminoMsg(object: SentinelActivityAminoMsg): SentinelActivity;
76
- fromProtoMsg(message: SentinelActivityProtoMsg): SentinelActivity;
77
- toProto(message: SentinelActivity): Uint8Array;
78
- toProtoMsg(message: SentinelActivity): SentinelActivityProtoMsg;
79
- };
@@ -1,219 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SentinelActivity = exports.SentinelBondStatusAmino = exports.SentinelBondStatus = void 0;
4
- exports.sentinelBondStatusFromJSON = sentinelBondStatusFromJSON;
5
- exports.sentinelBondStatusToJSON = sentinelBondStatusToJSON;
6
- //@ts-nocheck
7
- const binary_1 = require("../../../binary");
8
- /** SentinelBondStatus represents the bond status of a sentinel. */
9
- var SentinelBondStatus;
10
- (function (SentinelBondStatus) {
11
- SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_UNSPECIFIED"] = 0] = "SENTINEL_BOND_STATUS_UNSPECIFIED";
12
- SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_NORMAL"] = 1] = "SENTINEL_BOND_STATUS_NORMAL";
13
- SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_RECOVERY"] = 2] = "SENTINEL_BOND_STATUS_RECOVERY";
14
- SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_DEMOTED"] = 3] = "SENTINEL_BOND_STATUS_DEMOTED";
15
- SentinelBondStatus[SentinelBondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
16
- })(SentinelBondStatus || (exports.SentinelBondStatus = SentinelBondStatus = {}));
17
- exports.SentinelBondStatusAmino = SentinelBondStatus;
18
- function sentinelBondStatusFromJSON(object) {
19
- switch (object) {
20
- case 0:
21
- case "SENTINEL_BOND_STATUS_UNSPECIFIED":
22
- return SentinelBondStatus.SENTINEL_BOND_STATUS_UNSPECIFIED;
23
- case 1:
24
- case "SENTINEL_BOND_STATUS_NORMAL":
25
- return SentinelBondStatus.SENTINEL_BOND_STATUS_NORMAL;
26
- case 2:
27
- case "SENTINEL_BOND_STATUS_RECOVERY":
28
- return SentinelBondStatus.SENTINEL_BOND_STATUS_RECOVERY;
29
- case 3:
30
- case "SENTINEL_BOND_STATUS_DEMOTED":
31
- return SentinelBondStatus.SENTINEL_BOND_STATUS_DEMOTED;
32
- case -1:
33
- case "UNRECOGNIZED":
34
- default:
35
- return SentinelBondStatus.UNRECOGNIZED;
36
- }
37
- }
38
- function sentinelBondStatusToJSON(object) {
39
- switch (object) {
40
- case SentinelBondStatus.SENTINEL_BOND_STATUS_UNSPECIFIED:
41
- return "SENTINEL_BOND_STATUS_UNSPECIFIED";
42
- case SentinelBondStatus.SENTINEL_BOND_STATUS_NORMAL:
43
- return "SENTINEL_BOND_STATUS_NORMAL";
44
- case SentinelBondStatus.SENTINEL_BOND_STATUS_RECOVERY:
45
- return "SENTINEL_BOND_STATUS_RECOVERY";
46
- case SentinelBondStatus.SENTINEL_BOND_STATUS_DEMOTED:
47
- return "SENTINEL_BOND_STATUS_DEMOTED";
48
- case SentinelBondStatus.UNRECOGNIZED:
49
- default:
50
- return "UNRECOGNIZED";
51
- }
52
- }
53
- function createBaseSentinelActivity() {
54
- return {
55
- address: "",
56
- bondStatus: 0,
57
- currentBond: "",
58
- totalCommittedBond: "",
59
- lastActiveEpoch: BigInt(0),
60
- consecutiveInactiveEpochs: BigInt(0),
61
- demotionCooldownUntil: BigInt(0),
62
- cumulativeRewards: "",
63
- lastRewardEpoch: BigInt(0)
64
- };
65
- }
66
- /**
67
- * SentinelActivity holds the generic accountability record for a sentinel:
68
- * identity, bond, bond status, and activity stamps. Forum-specific action
69
- * counters live in sparkdream.forum.v1.SentinelActivity.
70
- * @name SentinelActivity
71
- * @package sparkdream.rep.v1
72
- * @see proto type: sparkdream.rep.v1.SentinelActivity
73
- */
74
- exports.SentinelActivity = {
75
- typeUrl: "/sparkdream.rep.v1.SentinelActivity",
76
- encode(message, writer = binary_1.BinaryWriter.create()) {
77
- if (message.address !== "") {
78
- writer.uint32(10).string(message.address);
79
- }
80
- if (message.bondStatus !== 0) {
81
- writer.uint32(16).int32(message.bondStatus);
82
- }
83
- if (message.currentBond !== "") {
84
- writer.uint32(26).string(message.currentBond);
85
- }
86
- if (message.totalCommittedBond !== "") {
87
- writer.uint32(34).string(message.totalCommittedBond);
88
- }
89
- if (message.lastActiveEpoch !== BigInt(0)) {
90
- writer.uint32(40).int64(message.lastActiveEpoch);
91
- }
92
- if (message.consecutiveInactiveEpochs !== BigInt(0)) {
93
- writer.uint32(48).uint64(message.consecutiveInactiveEpochs);
94
- }
95
- if (message.demotionCooldownUntil !== BigInt(0)) {
96
- writer.uint32(56).int64(message.demotionCooldownUntil);
97
- }
98
- if (message.cumulativeRewards !== "") {
99
- writer.uint32(66).string(message.cumulativeRewards);
100
- }
101
- if (message.lastRewardEpoch !== BigInt(0)) {
102
- writer.uint32(72).int64(message.lastRewardEpoch);
103
- }
104
- return writer;
105
- },
106
- decode(input, length) {
107
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
108
- let end = length === undefined ? reader.len : reader.pos + length;
109
- const message = createBaseSentinelActivity();
110
- while (reader.pos < end) {
111
- const tag = reader.uint32();
112
- switch (tag >>> 3) {
113
- case 1:
114
- message.address = reader.string();
115
- break;
116
- case 2:
117
- message.bondStatus = reader.int32();
118
- break;
119
- case 3:
120
- message.currentBond = reader.string();
121
- break;
122
- case 4:
123
- message.totalCommittedBond = reader.string();
124
- break;
125
- case 5:
126
- message.lastActiveEpoch = reader.int64();
127
- break;
128
- case 6:
129
- message.consecutiveInactiveEpochs = reader.uint64();
130
- break;
131
- case 7:
132
- message.demotionCooldownUntil = reader.int64();
133
- break;
134
- case 8:
135
- message.cumulativeRewards = reader.string();
136
- break;
137
- case 9:
138
- message.lastRewardEpoch = reader.int64();
139
- break;
140
- default:
141
- reader.skipType(tag & 7);
142
- break;
143
- }
144
- }
145
- return message;
146
- },
147
- fromPartial(object) {
148
- const message = createBaseSentinelActivity();
149
- message.address = object.address ?? "";
150
- message.bondStatus = object.bondStatus ?? 0;
151
- message.currentBond = object.currentBond ?? "";
152
- message.totalCommittedBond = object.totalCommittedBond ?? "";
153
- message.lastActiveEpoch = object.lastActiveEpoch !== undefined && object.lastActiveEpoch !== null ? BigInt(object.lastActiveEpoch.toString()) : BigInt(0);
154
- message.consecutiveInactiveEpochs = object.consecutiveInactiveEpochs !== undefined && object.consecutiveInactiveEpochs !== null ? BigInt(object.consecutiveInactiveEpochs.toString()) : BigInt(0);
155
- message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
156
- message.cumulativeRewards = object.cumulativeRewards ?? "";
157
- message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
158
- return message;
159
- },
160
- fromAmino(object) {
161
- const message = createBaseSentinelActivity();
162
- if (object.address !== undefined && object.address !== null) {
163
- message.address = object.address;
164
- }
165
- if (object.bond_status !== undefined && object.bond_status !== null) {
166
- message.bondStatus = object.bond_status;
167
- }
168
- if (object.current_bond !== undefined && object.current_bond !== null) {
169
- message.currentBond = object.current_bond;
170
- }
171
- if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
172
- message.totalCommittedBond = object.total_committed_bond;
173
- }
174
- if (object.last_active_epoch !== undefined && object.last_active_epoch !== null) {
175
- message.lastActiveEpoch = BigInt(object.last_active_epoch);
176
- }
177
- if (object.consecutive_inactive_epochs !== undefined && object.consecutive_inactive_epochs !== null) {
178
- message.consecutiveInactiveEpochs = BigInt(object.consecutive_inactive_epochs);
179
- }
180
- if (object.demotion_cooldown_until !== undefined && object.demotion_cooldown_until !== null) {
181
- message.demotionCooldownUntil = BigInt(object.demotion_cooldown_until);
182
- }
183
- if (object.cumulative_rewards !== undefined && object.cumulative_rewards !== null) {
184
- message.cumulativeRewards = object.cumulative_rewards;
185
- }
186
- if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
187
- message.lastRewardEpoch = BigInt(object.last_reward_epoch);
188
- }
189
- return message;
190
- },
191
- toAmino(message) {
192
- const obj = {};
193
- obj.address = message.address === "" ? undefined : message.address;
194
- obj.bond_status = message.bondStatus === 0 ? undefined : message.bondStatus;
195
- obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
196
- obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
197
- obj.last_active_epoch = message.lastActiveEpoch !== BigInt(0) ? message.lastActiveEpoch?.toString() : undefined;
198
- obj.consecutive_inactive_epochs = message.consecutiveInactiveEpochs !== BigInt(0) ? message.consecutiveInactiveEpochs?.toString() : undefined;
199
- obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
200
- obj.cumulative_rewards = message.cumulativeRewards === "" ? undefined : message.cumulativeRewards;
201
- obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
202
- return obj;
203
- },
204
- fromAminoMsg(object) {
205
- return exports.SentinelActivity.fromAmino(object.value);
206
- },
207
- fromProtoMsg(message) {
208
- return exports.SentinelActivity.decode(message.value);
209
- },
210
- toProto(message) {
211
- return exports.SentinelActivity.encode(message).finish();
212
- },
213
- toProtoMsg(message) {
214
- return {
215
- typeUrl: "/sparkdream.rep.v1.SentinelActivity",
216
- value: exports.SentinelActivity.encode(message).finish()
217
- };
218
- }
219
- };