@sparkdreamnft/sparkdreamjs 0.0.36 → 0.0.37
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.
- package/esm/sparkdream/federation/v1/genesis.js +101 -3
- package/esm/sparkdream/federation/v1/params.js +129 -117
- package/esm/sparkdream/federation/v1/query.js +204 -7
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -2
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +16 -3
- package/esm/sparkdream/federation/v1/types.js +73 -1
- package/esm/sparkdream/federation/v1/verifier_activity.js +143 -45
- package/esm/sparkdream/rep/v1/bonded_role.js +37 -1
- package/esm/sparkdream/rep/v1/params.js +194 -2
- package/esm/sparkdream/rep/v1/role_activity.js +13 -1
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +50 -0
- package/sparkdream/federation/v1/genesis.d.ts +66 -0
- package/sparkdream/federation/v1/genesis.js +102 -4
- package/sparkdream/federation/v1/params.d.ts +72 -10
- package/sparkdream/federation/v1/params.js +129 -117
- package/sparkdream/federation/v1/query.d.ts +120 -3
- package/sparkdream/federation/v1/query.js +204 -7
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +11 -2
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +13 -3
- package/sparkdream/federation/v1/query.rpc.Query.js +15 -2
- package/sparkdream/federation/v1/types.d.ts +44 -0
- package/sparkdream/federation/v1/types.js +73 -1
- package/sparkdream/federation/v1/verifier_activity.d.ts +151 -68
- package/sparkdream/federation/v1/verifier_activity.js +144 -46
- package/sparkdream/rep/v1/bonded_role.d.ts +42 -0
- package/sparkdream/rep/v1/bonded_role.js +37 -1
- package/sparkdream/rep/v1/params.d.ts +96 -0
- package/sparkdream/rep/v1/params.js +194 -2
- package/sparkdream/rep/v1/role_activity.d.ts +26 -0
- package/sparkdream/rep/v1/role_activity.js +13 -1
- package/sparkdream/rpc.query.d.ts +1 -0
|
@@ -38,11 +38,12 @@ function createBaseParams() {
|
|
|
38
38
|
verifierDemotionCooldown: duration_1.Duration.fromPartial({}),
|
|
39
39
|
verifierOverturnBaseCooldown: duration_1.Duration.fromPartial({}),
|
|
40
40
|
upheldToResetOverturns: 0,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
operatorRewardInflationShare: "",
|
|
42
|
+
maxOperatorRewardPool: "",
|
|
43
|
+
operatorRewardPoolOverflowBurnRatio: "",
|
|
44
|
+
operatorRewardEpochBlocks: BigInt(0),
|
|
45
|
+
minEpochVerifiedSubmissions: 0,
|
|
46
|
+
maxUnverifiedRate: "",
|
|
46
47
|
arbiterQuorum: 0,
|
|
47
48
|
arbiterResolutionWindow: duration_1.Duration.fromPartial({}),
|
|
48
49
|
arbiterEscalationWindow: duration_1.Duration.fromPartial({}),
|
|
@@ -62,130 +63,133 @@ exports.Params = {
|
|
|
62
63
|
aminoType: "sparkdream/x/federation/Params",
|
|
63
64
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
64
65
|
if (message.maxBridgesPerPeer !== BigInt(0)) {
|
|
65
|
-
writer.uint32(
|
|
66
|
+
writer.uint32(8).uint64(message.maxBridgesPerPeer);
|
|
66
67
|
}
|
|
67
68
|
for (const v of message.knownContentTypes) {
|
|
68
|
-
writer.uint32(
|
|
69
|
+
writer.uint32(18).string(v);
|
|
69
70
|
}
|
|
70
71
|
if (message.maxInboundPerBlock !== BigInt(0)) {
|
|
71
|
-
writer.uint32(
|
|
72
|
+
writer.uint32(24).uint64(message.maxInboundPerBlock);
|
|
72
73
|
}
|
|
73
74
|
if (message.maxContentBodySize !== BigInt(0)) {
|
|
74
|
-
writer.uint32(
|
|
75
|
+
writer.uint32(32).uint64(message.maxContentBodySize);
|
|
75
76
|
}
|
|
76
77
|
if (message.maxContentUriSize !== BigInt(0)) {
|
|
77
|
-
writer.uint32(
|
|
78
|
+
writer.uint32(40).uint64(message.maxContentUriSize);
|
|
78
79
|
}
|
|
79
80
|
if (message.maxProtocolMetadataSize !== BigInt(0)) {
|
|
80
|
-
writer.uint32(
|
|
81
|
+
writer.uint32(48).uint64(message.maxProtocolMetadataSize);
|
|
81
82
|
}
|
|
82
83
|
if (message.contentTtl !== undefined) {
|
|
83
|
-
duration_1.Duration.encode(message.contentTtl, writer.uint32(
|
|
84
|
+
duration_1.Duration.encode(message.contentTtl, writer.uint32(58).fork()).ldelim();
|
|
84
85
|
}
|
|
85
86
|
if (message.attestationTtl !== undefined) {
|
|
86
|
-
duration_1.Duration.encode(message.attestationTtl, writer.uint32(
|
|
87
|
+
duration_1.Duration.encode(message.attestationTtl, writer.uint32(66).fork()).ldelim();
|
|
87
88
|
}
|
|
88
89
|
if (message.globalMaxTrustCredit !== 0) {
|
|
89
|
-
writer.uint32(
|
|
90
|
+
writer.uint32(72).uint32(message.globalMaxTrustCredit);
|
|
90
91
|
}
|
|
91
92
|
if (message.trustDiscountRate !== "") {
|
|
92
|
-
writer.uint32(
|
|
93
|
+
writer.uint32(82).string(math_1.Decimal.fromUserInput(message.trustDiscountRate, 18).atomics);
|
|
93
94
|
}
|
|
94
95
|
if (message.maxIdentityLinksPerUser !== 0) {
|
|
95
|
-
writer.uint32(
|
|
96
|
+
writer.uint32(88).uint32(message.maxIdentityLinksPerUser);
|
|
96
97
|
}
|
|
97
98
|
if (message.unverifiedLinkTtl !== undefined) {
|
|
98
|
-
duration_1.Duration.encode(message.unverifiedLinkTtl, writer.uint32(
|
|
99
|
+
duration_1.Duration.encode(message.unverifiedLinkTtl, writer.uint32(98).fork()).ldelim();
|
|
99
100
|
}
|
|
100
101
|
if (message.challengeTtl !== undefined) {
|
|
101
|
-
duration_1.Duration.encode(message.challengeTtl, writer.uint32(
|
|
102
|
+
duration_1.Duration.encode(message.challengeTtl, writer.uint32(106).fork()).ldelim();
|
|
102
103
|
}
|
|
103
104
|
if (message.bridgeInactivityThreshold !== BigInt(0)) {
|
|
104
|
-
writer.uint32(
|
|
105
|
+
writer.uint32(112).uint64(message.bridgeInactivityThreshold);
|
|
105
106
|
}
|
|
106
107
|
if (message.ibcPort !== "") {
|
|
107
|
-
writer.uint32(
|
|
108
|
+
writer.uint32(122).string(message.ibcPort);
|
|
108
109
|
}
|
|
109
110
|
if (message.ibcChannelVersion !== "") {
|
|
110
|
-
writer.uint32(
|
|
111
|
+
writer.uint32(130).string(message.ibcChannelVersion);
|
|
111
112
|
}
|
|
112
113
|
if (message.ibcPacketTimeout !== undefined) {
|
|
113
|
-
duration_1.Duration.encode(message.ibcPacketTimeout, writer.uint32(
|
|
114
|
+
duration_1.Duration.encode(message.ibcPacketTimeout, writer.uint32(138).fork()).ldelim();
|
|
114
115
|
}
|
|
115
116
|
if (message.maxPrunePerBlock !== BigInt(0)) {
|
|
116
|
-
writer.uint32(
|
|
117
|
+
writer.uint32(144).uint64(message.maxPrunePerBlock);
|
|
117
118
|
}
|
|
118
119
|
if (message.maxOutboundPerBlock !== BigInt(0)) {
|
|
119
|
-
writer.uint32(
|
|
120
|
+
writer.uint32(152).uint64(message.maxOutboundPerBlock);
|
|
120
121
|
}
|
|
121
122
|
if (message.rateLimitWindow !== undefined) {
|
|
122
|
-
duration_1.Duration.encode(message.rateLimitWindow, writer.uint32(
|
|
123
|
+
duration_1.Duration.encode(message.rateLimitWindow, writer.uint32(162).fork()).ldelim();
|
|
123
124
|
}
|
|
124
125
|
if (message.minVerifierTrustLevel !== 0) {
|
|
125
|
-
writer.uint32(
|
|
126
|
+
writer.uint32(168).uint32(message.minVerifierTrustLevel);
|
|
126
127
|
}
|
|
127
128
|
if (message.minVerifierBond !== "") {
|
|
128
|
-
writer.uint32(
|
|
129
|
+
writer.uint32(178).string(message.minVerifierBond);
|
|
129
130
|
}
|
|
130
131
|
if (message.verifierRecoveryThreshold !== "") {
|
|
131
|
-
writer.uint32(
|
|
132
|
+
writer.uint32(186).string(message.verifierRecoveryThreshold);
|
|
132
133
|
}
|
|
133
134
|
if (message.verifierSlashAmount !== "") {
|
|
134
|
-
writer.uint32(
|
|
135
|
+
writer.uint32(194).string(message.verifierSlashAmount);
|
|
135
136
|
}
|
|
136
137
|
if (message.verificationWindow !== undefined) {
|
|
137
|
-
duration_1.Duration.encode(message.verificationWindow, writer.uint32(
|
|
138
|
+
duration_1.Duration.encode(message.verificationWindow, writer.uint32(202).fork()).ldelim();
|
|
138
139
|
}
|
|
139
140
|
if (message.challengeWindow !== undefined) {
|
|
140
|
-
duration_1.Duration.encode(message.challengeWindow, writer.uint32(
|
|
141
|
+
duration_1.Duration.encode(message.challengeWindow, writer.uint32(210).fork()).ldelim();
|
|
141
142
|
}
|
|
142
143
|
if (message.challengeFeeAmount !== "") {
|
|
143
|
-
writer.uint32(
|
|
144
|
+
writer.uint32(218).string(message.challengeFeeAmount);
|
|
144
145
|
}
|
|
145
146
|
if (message.challengeJuryDeadline !== undefined) {
|
|
146
|
-
duration_1.Duration.encode(message.challengeJuryDeadline, writer.uint32(
|
|
147
|
+
duration_1.Duration.encode(message.challengeJuryDeadline, writer.uint32(226).fork()).ldelim();
|
|
147
148
|
}
|
|
148
149
|
if (message.verifierDemotionCooldown !== undefined) {
|
|
149
|
-
duration_1.Duration.encode(message.verifierDemotionCooldown, writer.uint32(
|
|
150
|
+
duration_1.Duration.encode(message.verifierDemotionCooldown, writer.uint32(234).fork()).ldelim();
|
|
150
151
|
}
|
|
151
152
|
if (message.verifierOverturnBaseCooldown !== undefined) {
|
|
152
|
-
duration_1.Duration.encode(message.verifierOverturnBaseCooldown, writer.uint32(
|
|
153
|
+
duration_1.Duration.encode(message.verifierOverturnBaseCooldown, writer.uint32(242).fork()).ldelim();
|
|
153
154
|
}
|
|
154
155
|
if (message.upheldToResetOverturns !== 0) {
|
|
155
|
-
writer.uint32(
|
|
156
|
+
writer.uint32(248).uint32(message.upheldToResetOverturns);
|
|
156
157
|
}
|
|
157
|
-
if (message.
|
|
158
|
-
writer.uint32(
|
|
158
|
+
if (message.operatorRewardInflationShare !== "") {
|
|
159
|
+
writer.uint32(258).string(math_1.Decimal.fromUserInput(message.operatorRewardInflationShare, 18).atomics);
|
|
159
160
|
}
|
|
160
|
-
if (message.
|
|
161
|
-
writer.uint32(
|
|
161
|
+
if (message.maxOperatorRewardPool !== "") {
|
|
162
|
+
writer.uint32(266).string(message.maxOperatorRewardPool);
|
|
162
163
|
}
|
|
163
|
-
if (message.
|
|
164
|
-
writer.uint32(
|
|
164
|
+
if (message.operatorRewardPoolOverflowBurnRatio !== "") {
|
|
165
|
+
writer.uint32(274).string(math_1.Decimal.fromUserInput(message.operatorRewardPoolOverflowBurnRatio, 18).atomics);
|
|
165
166
|
}
|
|
166
|
-
if (message.
|
|
167
|
-
writer.uint32(
|
|
167
|
+
if (message.operatorRewardEpochBlocks !== BigInt(0)) {
|
|
168
|
+
writer.uint32(280).uint64(message.operatorRewardEpochBlocks);
|
|
168
169
|
}
|
|
169
|
-
if (message.
|
|
170
|
-
writer.uint32(
|
|
170
|
+
if (message.minEpochVerifiedSubmissions !== 0) {
|
|
171
|
+
writer.uint32(288).uint32(message.minEpochVerifiedSubmissions);
|
|
172
|
+
}
|
|
173
|
+
if (message.maxUnverifiedRate !== "") {
|
|
174
|
+
writer.uint32(298).string(math_1.Decimal.fromUserInput(message.maxUnverifiedRate, 18).atomics);
|
|
171
175
|
}
|
|
172
176
|
if (message.arbiterQuorum !== 0) {
|
|
173
|
-
writer.uint32(
|
|
177
|
+
writer.uint32(304).uint32(message.arbiterQuorum);
|
|
174
178
|
}
|
|
175
179
|
if (message.arbiterResolutionWindow !== undefined) {
|
|
176
|
-
duration_1.Duration.encode(message.arbiterResolutionWindow, writer.uint32(
|
|
180
|
+
duration_1.Duration.encode(message.arbiterResolutionWindow, writer.uint32(314).fork()).ldelim();
|
|
177
181
|
}
|
|
178
182
|
if (message.arbiterEscalationWindow !== undefined) {
|
|
179
|
-
duration_1.Duration.encode(message.arbiterEscalationWindow, writer.uint32(
|
|
183
|
+
duration_1.Duration.encode(message.arbiterEscalationWindow, writer.uint32(322).fork()).ldelim();
|
|
180
184
|
}
|
|
181
185
|
if (message.escalationFeeAmount !== "") {
|
|
182
|
-
writer.uint32(
|
|
186
|
+
writer.uint32(330).string(message.escalationFeeAmount);
|
|
183
187
|
}
|
|
184
188
|
if (message.challengeCooldown !== undefined) {
|
|
185
|
-
duration_1.Duration.encode(message.challengeCooldown, writer.uint32(
|
|
189
|
+
duration_1.Duration.encode(message.challengeCooldown, writer.uint32(338).fork()).ldelim();
|
|
186
190
|
}
|
|
187
191
|
if (message.verifierUnbondCooldown !== undefined) {
|
|
188
|
-
duration_1.Duration.encode(message.verifierUnbondCooldown, writer.uint32(
|
|
192
|
+
duration_1.Duration.encode(message.verifierUnbondCooldown, writer.uint32(346).fork()).ldelim();
|
|
189
193
|
}
|
|
190
194
|
return writer;
|
|
191
195
|
},
|
|
@@ -196,130 +200,133 @@ exports.Params = {
|
|
|
196
200
|
while (reader.pos < end) {
|
|
197
201
|
const tag = reader.uint32();
|
|
198
202
|
switch (tag >>> 3) {
|
|
199
|
-
case
|
|
203
|
+
case 1:
|
|
200
204
|
message.maxBridgesPerPeer = reader.uint64();
|
|
201
205
|
break;
|
|
202
|
-
case
|
|
206
|
+
case 2:
|
|
203
207
|
message.knownContentTypes.push(reader.string());
|
|
204
208
|
break;
|
|
205
|
-
case
|
|
209
|
+
case 3:
|
|
206
210
|
message.maxInboundPerBlock = reader.uint64();
|
|
207
211
|
break;
|
|
208
|
-
case
|
|
212
|
+
case 4:
|
|
209
213
|
message.maxContentBodySize = reader.uint64();
|
|
210
214
|
break;
|
|
211
|
-
case
|
|
215
|
+
case 5:
|
|
212
216
|
message.maxContentUriSize = reader.uint64();
|
|
213
217
|
break;
|
|
214
|
-
case
|
|
218
|
+
case 6:
|
|
215
219
|
message.maxProtocolMetadataSize = reader.uint64();
|
|
216
220
|
break;
|
|
217
|
-
case
|
|
221
|
+
case 7:
|
|
218
222
|
message.contentTtl = duration_1.Duration.decode(reader, reader.uint32());
|
|
219
223
|
break;
|
|
220
|
-
case
|
|
224
|
+
case 8:
|
|
221
225
|
message.attestationTtl = duration_1.Duration.decode(reader, reader.uint32());
|
|
222
226
|
break;
|
|
223
|
-
case
|
|
227
|
+
case 9:
|
|
224
228
|
message.globalMaxTrustCredit = reader.uint32();
|
|
225
229
|
break;
|
|
226
|
-
case
|
|
230
|
+
case 10:
|
|
227
231
|
message.trustDiscountRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
228
232
|
break;
|
|
229
|
-
case
|
|
233
|
+
case 11:
|
|
230
234
|
message.maxIdentityLinksPerUser = reader.uint32();
|
|
231
235
|
break;
|
|
232
|
-
case
|
|
236
|
+
case 12:
|
|
233
237
|
message.unverifiedLinkTtl = duration_1.Duration.decode(reader, reader.uint32());
|
|
234
238
|
break;
|
|
235
|
-
case
|
|
239
|
+
case 13:
|
|
236
240
|
message.challengeTtl = duration_1.Duration.decode(reader, reader.uint32());
|
|
237
241
|
break;
|
|
238
|
-
case
|
|
242
|
+
case 14:
|
|
239
243
|
message.bridgeInactivityThreshold = reader.uint64();
|
|
240
244
|
break;
|
|
241
|
-
case
|
|
245
|
+
case 15:
|
|
242
246
|
message.ibcPort = reader.string();
|
|
243
247
|
break;
|
|
244
|
-
case
|
|
248
|
+
case 16:
|
|
245
249
|
message.ibcChannelVersion = reader.string();
|
|
246
250
|
break;
|
|
247
|
-
case
|
|
251
|
+
case 17:
|
|
248
252
|
message.ibcPacketTimeout = duration_1.Duration.decode(reader, reader.uint32());
|
|
249
253
|
break;
|
|
250
|
-
case
|
|
254
|
+
case 18:
|
|
251
255
|
message.maxPrunePerBlock = reader.uint64();
|
|
252
256
|
break;
|
|
253
|
-
case
|
|
257
|
+
case 19:
|
|
254
258
|
message.maxOutboundPerBlock = reader.uint64();
|
|
255
259
|
break;
|
|
256
|
-
case
|
|
260
|
+
case 20:
|
|
257
261
|
message.rateLimitWindow = duration_1.Duration.decode(reader, reader.uint32());
|
|
258
262
|
break;
|
|
259
|
-
case
|
|
263
|
+
case 21:
|
|
260
264
|
message.minVerifierTrustLevel = reader.uint32();
|
|
261
265
|
break;
|
|
262
|
-
case
|
|
266
|
+
case 22:
|
|
263
267
|
message.minVerifierBond = reader.string();
|
|
264
268
|
break;
|
|
265
|
-
case
|
|
269
|
+
case 23:
|
|
266
270
|
message.verifierRecoveryThreshold = reader.string();
|
|
267
271
|
break;
|
|
268
|
-
case
|
|
272
|
+
case 24:
|
|
269
273
|
message.verifierSlashAmount = reader.string();
|
|
270
274
|
break;
|
|
271
|
-
case
|
|
275
|
+
case 25:
|
|
272
276
|
message.verificationWindow = duration_1.Duration.decode(reader, reader.uint32());
|
|
273
277
|
break;
|
|
274
|
-
case
|
|
278
|
+
case 26:
|
|
275
279
|
message.challengeWindow = duration_1.Duration.decode(reader, reader.uint32());
|
|
276
280
|
break;
|
|
277
|
-
case
|
|
281
|
+
case 27:
|
|
278
282
|
message.challengeFeeAmount = reader.string();
|
|
279
283
|
break;
|
|
280
|
-
case
|
|
284
|
+
case 28:
|
|
281
285
|
message.challengeJuryDeadline = duration_1.Duration.decode(reader, reader.uint32());
|
|
282
286
|
break;
|
|
283
|
-
case
|
|
287
|
+
case 29:
|
|
284
288
|
message.verifierDemotionCooldown = duration_1.Duration.decode(reader, reader.uint32());
|
|
285
289
|
break;
|
|
286
|
-
case
|
|
290
|
+
case 30:
|
|
287
291
|
message.verifierOverturnBaseCooldown = duration_1.Duration.decode(reader, reader.uint32());
|
|
288
292
|
break;
|
|
289
|
-
case
|
|
293
|
+
case 31:
|
|
290
294
|
message.upheldToResetOverturns = reader.uint32();
|
|
291
295
|
break;
|
|
296
|
+
case 32:
|
|
297
|
+
message.operatorRewardInflationShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
298
|
+
break;
|
|
299
|
+
case 33:
|
|
300
|
+
message.maxOperatorRewardPool = reader.string();
|
|
301
|
+
break;
|
|
302
|
+
case 34:
|
|
303
|
+
message.operatorRewardPoolOverflowBurnRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
304
|
+
break;
|
|
292
305
|
case 35:
|
|
293
|
-
message.
|
|
306
|
+
message.operatorRewardEpochBlocks = reader.uint64();
|
|
294
307
|
break;
|
|
295
308
|
case 36:
|
|
296
|
-
message.
|
|
309
|
+
message.minEpochVerifiedSubmissions = reader.uint32();
|
|
297
310
|
break;
|
|
298
311
|
case 37:
|
|
299
|
-
message.
|
|
312
|
+
message.maxUnverifiedRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
300
313
|
break;
|
|
301
314
|
case 38:
|
|
302
|
-
message.verifierDreamReward = reader.string();
|
|
303
|
-
break;
|
|
304
|
-
case 39:
|
|
305
|
-
message.maxVerifierDreamMintPerEpoch = reader.string();
|
|
306
|
-
break;
|
|
307
|
-
case 40:
|
|
308
315
|
message.arbiterQuorum = reader.uint32();
|
|
309
316
|
break;
|
|
310
|
-
case
|
|
317
|
+
case 39:
|
|
311
318
|
message.arbiterResolutionWindow = duration_1.Duration.decode(reader, reader.uint32());
|
|
312
319
|
break;
|
|
313
|
-
case
|
|
320
|
+
case 40:
|
|
314
321
|
message.arbiterEscalationWindow = duration_1.Duration.decode(reader, reader.uint32());
|
|
315
322
|
break;
|
|
316
|
-
case
|
|
323
|
+
case 41:
|
|
317
324
|
message.escalationFeeAmount = reader.string();
|
|
318
325
|
break;
|
|
319
|
-
case
|
|
326
|
+
case 42:
|
|
320
327
|
message.challengeCooldown = duration_1.Duration.decode(reader, reader.uint32());
|
|
321
328
|
break;
|
|
322
|
-
case
|
|
329
|
+
case 43:
|
|
323
330
|
message.verifierUnbondCooldown = duration_1.Duration.decode(reader, reader.uint32());
|
|
324
331
|
break;
|
|
325
332
|
default:
|
|
@@ -362,11 +369,12 @@ exports.Params = {
|
|
|
362
369
|
message.verifierDemotionCooldown = object.verifierDemotionCooldown !== undefined && object.verifierDemotionCooldown !== null ? duration_1.Duration.fromPartial(object.verifierDemotionCooldown) : undefined;
|
|
363
370
|
message.verifierOverturnBaseCooldown = object.verifierOverturnBaseCooldown !== undefined && object.verifierOverturnBaseCooldown !== null ? duration_1.Duration.fromPartial(object.verifierOverturnBaseCooldown) : undefined;
|
|
364
371
|
message.upheldToResetOverturns = object.upheldToResetOverturns ?? 0;
|
|
365
|
-
message.
|
|
366
|
-
message.
|
|
367
|
-
message.
|
|
368
|
-
message.
|
|
369
|
-
message.
|
|
372
|
+
message.operatorRewardInflationShare = object.operatorRewardInflationShare ?? "";
|
|
373
|
+
message.maxOperatorRewardPool = object.maxOperatorRewardPool ?? "";
|
|
374
|
+
message.operatorRewardPoolOverflowBurnRatio = object.operatorRewardPoolOverflowBurnRatio ?? "";
|
|
375
|
+
message.operatorRewardEpochBlocks = object.operatorRewardEpochBlocks !== undefined && object.operatorRewardEpochBlocks !== null ? BigInt(object.operatorRewardEpochBlocks.toString()) : BigInt(0);
|
|
376
|
+
message.minEpochVerifiedSubmissions = object.minEpochVerifiedSubmissions ?? 0;
|
|
377
|
+
message.maxUnverifiedRate = object.maxUnverifiedRate ?? "";
|
|
370
378
|
message.arbiterQuorum = object.arbiterQuorum ?? 0;
|
|
371
379
|
message.arbiterResolutionWindow = object.arbiterResolutionWindow !== undefined && object.arbiterResolutionWindow !== null ? duration_1.Duration.fromPartial(object.arbiterResolutionWindow) : undefined;
|
|
372
380
|
message.arbiterEscalationWindow = object.arbiterEscalationWindow !== undefined && object.arbiterEscalationWindow !== null ? duration_1.Duration.fromPartial(object.arbiterEscalationWindow) : undefined;
|
|
@@ -468,20 +476,23 @@ exports.Params = {
|
|
|
468
476
|
if (object.upheld_to_reset_overturns !== undefined && object.upheld_to_reset_overturns !== null) {
|
|
469
477
|
message.upheldToResetOverturns = object.upheld_to_reset_overturns;
|
|
470
478
|
}
|
|
471
|
-
if (object.
|
|
472
|
-
message.
|
|
479
|
+
if (object.operator_reward_inflation_share !== undefined && object.operator_reward_inflation_share !== null) {
|
|
480
|
+
message.operatorRewardInflationShare = object.operator_reward_inflation_share;
|
|
481
|
+
}
|
|
482
|
+
if (object.max_operator_reward_pool !== undefined && object.max_operator_reward_pool !== null) {
|
|
483
|
+
message.maxOperatorRewardPool = object.max_operator_reward_pool;
|
|
473
484
|
}
|
|
474
|
-
if (object.
|
|
475
|
-
message.
|
|
485
|
+
if (object.operator_reward_pool_overflow_burn_ratio !== undefined && object.operator_reward_pool_overflow_burn_ratio !== null) {
|
|
486
|
+
message.operatorRewardPoolOverflowBurnRatio = object.operator_reward_pool_overflow_burn_ratio;
|
|
476
487
|
}
|
|
477
|
-
if (object.
|
|
478
|
-
message.
|
|
488
|
+
if (object.operator_reward_epoch_blocks !== undefined && object.operator_reward_epoch_blocks !== null) {
|
|
489
|
+
message.operatorRewardEpochBlocks = BigInt(object.operator_reward_epoch_blocks);
|
|
479
490
|
}
|
|
480
|
-
if (object.
|
|
481
|
-
message.
|
|
491
|
+
if (object.min_epoch_verified_submissions !== undefined && object.min_epoch_verified_submissions !== null) {
|
|
492
|
+
message.minEpochVerifiedSubmissions = object.min_epoch_verified_submissions;
|
|
482
493
|
}
|
|
483
|
-
if (object.
|
|
484
|
-
message.
|
|
494
|
+
if (object.max_unverified_rate !== undefined && object.max_unverified_rate !== null) {
|
|
495
|
+
message.maxUnverifiedRate = object.max_unverified_rate;
|
|
485
496
|
}
|
|
486
497
|
if (object.arbiter_quorum !== undefined && object.arbiter_quorum !== null) {
|
|
487
498
|
message.arbiterQuorum = object.arbiter_quorum;
|
|
@@ -541,11 +552,12 @@ exports.Params = {
|
|
|
541
552
|
obj.verifier_demotion_cooldown = message.verifierDemotionCooldown ? duration_1.Duration.toAmino(message.verifierDemotionCooldown) : undefined;
|
|
542
553
|
obj.verifier_overturn_base_cooldown = message.verifierOverturnBaseCooldown ? duration_1.Duration.toAmino(message.verifierOverturnBaseCooldown) : undefined;
|
|
543
554
|
obj.upheld_to_reset_overturns = message.upheldToResetOverturns === 0 ? undefined : message.upheldToResetOverturns;
|
|
544
|
-
obj.
|
|
545
|
-
obj.
|
|
546
|
-
obj.
|
|
547
|
-
obj.
|
|
548
|
-
obj.
|
|
555
|
+
obj.operator_reward_inflation_share = message.operatorRewardInflationShare === "" ? undefined : message.operatorRewardInflationShare;
|
|
556
|
+
obj.max_operator_reward_pool = message.maxOperatorRewardPool === "" ? undefined : message.maxOperatorRewardPool;
|
|
557
|
+
obj.operator_reward_pool_overflow_burn_ratio = message.operatorRewardPoolOverflowBurnRatio === "" ? undefined : message.operatorRewardPoolOverflowBurnRatio;
|
|
558
|
+
obj.operator_reward_epoch_blocks = message.operatorRewardEpochBlocks !== BigInt(0) ? message.operatorRewardEpochBlocks?.toString() : undefined;
|
|
559
|
+
obj.min_epoch_verified_submissions = message.minEpochVerifiedSubmissions === 0 ? undefined : message.minEpochVerifiedSubmissions;
|
|
560
|
+
obj.max_unverified_rate = message.maxUnverifiedRate === "" ? undefined : message.maxUnverifiedRate;
|
|
549
561
|
obj.arbiter_quorum = message.arbiterQuorum === 0 ? undefined : message.arbiterQuorum;
|
|
550
562
|
obj.arbiter_resolution_window = message.arbiterResolutionWindow ? duration_1.Duration.toAmino(message.arbiterResolutionWindow) : undefined;
|
|
551
563
|
obj.arbiter_escalation_window = message.arbiterEscalationWindow ? duration_1.Duration.toAmino(message.arbiterEscalationWindow) : undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
2
2
|
import { Params, ParamsAmino } from "./params";
|
|
3
3
|
import { Peer, PeerAmino, PeerPolicy, PeerPolicyAmino, BridgeBinding, BridgeBindingAmino, FederatedContent, FederatedContentAmino, IdentityLink, IdentityLinkAmino, PendingIdentityChallenge, PendingIdentityChallengeAmino, ReputationAttestation, ReputationAttestationAmino, OutboundAttestation, OutboundAttestationAmino, VerificationRecord, VerificationRecordAmino, EscalatedChallenge, EscalatedChallengeAmino } from "./types";
|
|
4
|
-
import {
|
|
4
|
+
import { VerifierActivityView, VerifierActivityViewAmino } from "./verifier_activity";
|
|
5
5
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
6
6
|
import { DeepPartial } from "../../../helpers";
|
|
7
7
|
/**
|
|
@@ -808,7 +808,7 @@ export interface QueryVerifierActivityRequestAminoMsg {
|
|
|
808
808
|
* @see proto type: sparkdream.federation.v1.QueryVerifierActivityResponse
|
|
809
809
|
*/
|
|
810
810
|
export interface QueryVerifierActivityResponse {
|
|
811
|
-
activity:
|
|
811
|
+
activity: VerifierActivityView;
|
|
812
812
|
}
|
|
813
813
|
export interface QueryVerifierActivityResponseProtoMsg {
|
|
814
814
|
typeUrl: "/sparkdream.federation.v1.QueryVerifierActivityResponse";
|
|
@@ -820,12 +820,94 @@ export interface QueryVerifierActivityResponseProtoMsg {
|
|
|
820
820
|
* @see proto type: sparkdream.federation.v1.QueryVerifierActivityResponse
|
|
821
821
|
*/
|
|
822
822
|
export interface QueryVerifierActivityResponseAmino {
|
|
823
|
-
activity?:
|
|
823
|
+
activity?: VerifierActivityViewAmino;
|
|
824
824
|
}
|
|
825
825
|
export interface QueryVerifierActivityResponseAminoMsg {
|
|
826
826
|
type: "/sparkdream.federation.v1.QueryVerifierActivityResponse";
|
|
827
827
|
value: QueryVerifierActivityResponseAmino;
|
|
828
828
|
}
|
|
829
|
+
/**
|
|
830
|
+
* --- Operator reward pool ---
|
|
831
|
+
* @name QueryOperatorRewardPoolRequest
|
|
832
|
+
* @package sparkdream.federation.v1
|
|
833
|
+
* @see proto type: sparkdream.federation.v1.QueryOperatorRewardPoolRequest
|
|
834
|
+
*/
|
|
835
|
+
export interface QueryOperatorRewardPoolRequest {
|
|
836
|
+
}
|
|
837
|
+
export interface QueryOperatorRewardPoolRequestProtoMsg {
|
|
838
|
+
typeUrl: "/sparkdream.federation.v1.QueryOperatorRewardPoolRequest";
|
|
839
|
+
value: Uint8Array;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* --- Operator reward pool ---
|
|
843
|
+
* @name QueryOperatorRewardPoolRequestAmino
|
|
844
|
+
* @package sparkdream.federation.v1
|
|
845
|
+
* @see proto type: sparkdream.federation.v1.QueryOperatorRewardPoolRequest
|
|
846
|
+
*/
|
|
847
|
+
export interface QueryOperatorRewardPoolRequestAmino {
|
|
848
|
+
}
|
|
849
|
+
export interface QueryOperatorRewardPoolRequestAminoMsg {
|
|
850
|
+
type: "/sparkdream.federation.v1.QueryOperatorRewardPoolRequest";
|
|
851
|
+
value: QueryOperatorRewardPoolRequestAmino;
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* @name QueryOperatorRewardPoolResponse
|
|
855
|
+
* @package sparkdream.federation.v1
|
|
856
|
+
* @see proto type: sparkdream.federation.v1.QueryOperatorRewardPoolResponse
|
|
857
|
+
*/
|
|
858
|
+
export interface QueryOperatorRewardPoolResponse {
|
|
859
|
+
/**
|
|
860
|
+
* address is the pool's bank sub-address; it is an ordinary account, so a
|
|
861
|
+
* council can top it up with a plain send.
|
|
862
|
+
*/
|
|
863
|
+
address: string;
|
|
864
|
+
balance: string;
|
|
865
|
+
cap: string;
|
|
866
|
+
headroom: string;
|
|
867
|
+
/**
|
|
868
|
+
* funded_today / daily_funding_cap are the UTC-day draw ledger.
|
|
869
|
+
*/
|
|
870
|
+
fundedToday: string;
|
|
871
|
+
dailyFundingCap: string;
|
|
872
|
+
/**
|
|
873
|
+
* inflation_share is the operator_reward_inflation_share the allowance is
|
|
874
|
+
* derived from; zero means automatic funding is off.
|
|
875
|
+
*/
|
|
876
|
+
inflationShare: string;
|
|
877
|
+
}
|
|
878
|
+
export interface QueryOperatorRewardPoolResponseProtoMsg {
|
|
879
|
+
typeUrl: "/sparkdream.federation.v1.QueryOperatorRewardPoolResponse";
|
|
880
|
+
value: Uint8Array;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* @name QueryOperatorRewardPoolResponseAmino
|
|
884
|
+
* @package sparkdream.federation.v1
|
|
885
|
+
* @see proto type: sparkdream.federation.v1.QueryOperatorRewardPoolResponse
|
|
886
|
+
*/
|
|
887
|
+
export interface QueryOperatorRewardPoolResponseAmino {
|
|
888
|
+
/**
|
|
889
|
+
* address is the pool's bank sub-address; it is an ordinary account, so a
|
|
890
|
+
* council can top it up with a plain send.
|
|
891
|
+
*/
|
|
892
|
+
address?: string;
|
|
893
|
+
balance?: string;
|
|
894
|
+
cap?: string;
|
|
895
|
+
headroom?: string;
|
|
896
|
+
/**
|
|
897
|
+
* funded_today / daily_funding_cap are the UTC-day draw ledger.
|
|
898
|
+
*/
|
|
899
|
+
funded_today?: string;
|
|
900
|
+
daily_funding_cap?: string;
|
|
901
|
+
/**
|
|
902
|
+
* inflation_share is the operator_reward_inflation_share the allowance is
|
|
903
|
+
* derived from; zero means automatic funding is off.
|
|
904
|
+
*/
|
|
905
|
+
inflation_share?: string;
|
|
906
|
+
}
|
|
907
|
+
export interface QueryOperatorRewardPoolResponseAminoMsg {
|
|
908
|
+
type: "/sparkdream.federation.v1.QueryOperatorRewardPoolResponse";
|
|
909
|
+
value: QueryOperatorRewardPoolResponseAmino;
|
|
910
|
+
}
|
|
829
911
|
/**
|
|
830
912
|
* --- VerificationRecord ---
|
|
831
913
|
* @name QueryGetVerificationRecordRequest
|
|
@@ -1492,6 +1574,41 @@ export declare const QueryVerifierActivityResponse: {
|
|
|
1492
1574
|
toProto(message: QueryVerifierActivityResponse): Uint8Array;
|
|
1493
1575
|
toProtoMsg(message: QueryVerifierActivityResponse): QueryVerifierActivityResponseProtoMsg;
|
|
1494
1576
|
};
|
|
1577
|
+
/**
|
|
1578
|
+
* --- Operator reward pool ---
|
|
1579
|
+
* @name QueryOperatorRewardPoolRequest
|
|
1580
|
+
* @package sparkdream.federation.v1
|
|
1581
|
+
* @see proto type: sparkdream.federation.v1.QueryOperatorRewardPoolRequest
|
|
1582
|
+
*/
|
|
1583
|
+
export declare const QueryOperatorRewardPoolRequest: {
|
|
1584
|
+
typeUrl: string;
|
|
1585
|
+
encode(_: QueryOperatorRewardPoolRequest, writer?: BinaryWriter): BinaryWriter;
|
|
1586
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryOperatorRewardPoolRequest;
|
|
1587
|
+
fromPartial(_: DeepPartial<QueryOperatorRewardPoolRequest>): QueryOperatorRewardPoolRequest;
|
|
1588
|
+
fromAmino(_: QueryOperatorRewardPoolRequestAmino): QueryOperatorRewardPoolRequest;
|
|
1589
|
+
toAmino(_: QueryOperatorRewardPoolRequest): QueryOperatorRewardPoolRequestAmino;
|
|
1590
|
+
fromAminoMsg(object: QueryOperatorRewardPoolRequestAminoMsg): QueryOperatorRewardPoolRequest;
|
|
1591
|
+
fromProtoMsg(message: QueryOperatorRewardPoolRequestProtoMsg): QueryOperatorRewardPoolRequest;
|
|
1592
|
+
toProto(message: QueryOperatorRewardPoolRequest): Uint8Array;
|
|
1593
|
+
toProtoMsg(message: QueryOperatorRewardPoolRequest): QueryOperatorRewardPoolRequestProtoMsg;
|
|
1594
|
+
};
|
|
1595
|
+
/**
|
|
1596
|
+
* @name QueryOperatorRewardPoolResponse
|
|
1597
|
+
* @package sparkdream.federation.v1
|
|
1598
|
+
* @see proto type: sparkdream.federation.v1.QueryOperatorRewardPoolResponse
|
|
1599
|
+
*/
|
|
1600
|
+
export declare const QueryOperatorRewardPoolResponse: {
|
|
1601
|
+
typeUrl: string;
|
|
1602
|
+
encode(message: QueryOperatorRewardPoolResponse, writer?: BinaryWriter): BinaryWriter;
|
|
1603
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryOperatorRewardPoolResponse;
|
|
1604
|
+
fromPartial(object: DeepPartial<QueryOperatorRewardPoolResponse>): QueryOperatorRewardPoolResponse;
|
|
1605
|
+
fromAmino(object: QueryOperatorRewardPoolResponseAmino): QueryOperatorRewardPoolResponse;
|
|
1606
|
+
toAmino(message: QueryOperatorRewardPoolResponse): QueryOperatorRewardPoolResponseAmino;
|
|
1607
|
+
fromAminoMsg(object: QueryOperatorRewardPoolResponseAminoMsg): QueryOperatorRewardPoolResponse;
|
|
1608
|
+
fromProtoMsg(message: QueryOperatorRewardPoolResponseProtoMsg): QueryOperatorRewardPoolResponse;
|
|
1609
|
+
toProto(message: QueryOperatorRewardPoolResponse): Uint8Array;
|
|
1610
|
+
toProtoMsg(message: QueryOperatorRewardPoolResponse): QueryOperatorRewardPoolResponseProtoMsg;
|
|
1611
|
+
};
|
|
1495
1612
|
/**
|
|
1496
1613
|
* --- VerificationRecord ---
|
|
1497
1614
|
* @name QueryGetVerificationRecordRequest
|