@sparkdreamnft/sparkdreamjs 0.0.9 → 0.0.11
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +25 -1
- package/esm/sparkdream/blog/v1/post.js +16 -1
- package/esm/sparkdream/blog/v1/query.js +165 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
- package/esm/sparkdream/blog/v1/tx.js +32 -2
- package/esm/sparkdream/bundle.js +343 -339
- package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
- package/esm/sparkdream/collect/v1/genesis.js +12 -11
- package/esm/sparkdream/collect/v1/params.js +37 -1
- package/esm/sparkdream/collect/v1/query.js +201 -186
- package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
- package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
- package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
- package/esm/sparkdream/collect/v1/tx.js +0 -258
- package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
- package/esm/sparkdream/collect/v1/types.js +50 -143
- package/esm/sparkdream/federation/v1/genesis.js +12 -11
- package/esm/sparkdream/federation/v1/query.js +37 -187
- package/esm/sparkdream/federation/v1/query.lcd.js +6 -16
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +11 -19
- package/esm/sparkdream/federation/v1/tx.amino.js +1 -11
- package/esm/sparkdream/federation/v1/tx.js +0 -270
- package/esm/sparkdream/federation/v1/tx.registry.js +2 -38
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +4 -14
- package/esm/sparkdream/federation/v1/types.js +13 -318
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/name/v1/owner_info.js +13 -1
- package/esm/sparkdream/name/v1/query.js +141 -0
- package/esm/sparkdream/name/v1/query.lcd.js +7 -0
- package/esm/sparkdream/name/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/name/v1/tx.amino.js +6 -1
- package/esm/sparkdream/name/v1/tx.js +147 -0
- package/esm/sparkdream/name/v1/tx.registry.js +20 -2
- package/esm/sparkdream/name/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +32 -17
- package/esm/sparkdream/rep/v1/member_report.js +98 -1
- package/esm/sparkdream/rep/v1/query.js +297 -306
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -16
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +36 -35
- package/esm/sparkdream/rep/v1/tx.amino.js +9 -9
- package/esm/sparkdream/rep/v1/tx.js +86 -58
- package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -14
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/tendermint/bundle.js +18 -18
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +16 -0
- package/sparkdream/blog/v1/params.js +25 -1
- package/sparkdream/blog/v1/post.d.ts +8 -0
- package/sparkdream/blog/v1/post.js +16 -1
- package/sparkdream/blog/v1/query.d.ts +92 -0
- package/sparkdream/blog/v1/query.js +166 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
- package/sparkdream/blog/v1/query.lcd.js +11 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
- package/sparkdream/blog/v1/tx.d.ts +16 -0
- package/sparkdream/blog/v1/tx.js +32 -2
- package/sparkdream/bundle.d.ts +14445 -14514
- package/sparkdream/bundle.js +343 -339
- package/sparkdream/client.d.ts +11 -26
- package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
- package/sparkdream/collect/v1/curator_activity.js +161 -0
- package/sparkdream/collect/v1/genesis.d.ts +4 -3
- package/sparkdream/collect/v1/genesis.js +11 -10
- package/sparkdream/collect/v1/params.d.ts +32 -0
- package/sparkdream/collect/v1/params.js +37 -1
- package/sparkdream/collect/v1/query.d.ts +142 -133
- package/sparkdream/collect/v1/query.js +201 -186
- package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
- package/sparkdream/collect/v1/query.lcd.js +16 -16
- package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
- package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
- package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
- package/sparkdream/collect/v1/tx.amino.js +0 -10
- package/sparkdream/collect/v1/tx.d.ts +0 -162
- package/sparkdream/collect/v1/tx.js +2 -260
- package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
- package/sparkdream/collect/v1/tx.registry.js +1 -37
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
- package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
- package/sparkdream/collect/v1/types.d.ts +26 -56
- package/sparkdream/collect/v1/types.js +51 -144
- package/sparkdream/federation/v1/genesis.d.ts +4 -3
- package/sparkdream/federation/v1/genesis.js +11 -10
- package/sparkdream/federation/v1/query.d.ts +53 -136
- package/sparkdream/federation/v1/query.js +37 -187
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -3
- package/sparkdream/federation/v1/query.lcd.js +6 -16
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +10 -18
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -11
- package/sparkdream/federation/v1/tx.amino.js +0 -10
- package/sparkdream/federation/v1/tx.d.ts +0 -164
- package/sparkdream/federation/v1/tx.js +1 -272
- package/sparkdream/federation/v1/tx.registry.d.ts +1 -25
- package/sparkdream/federation/v1/tx.registry.js +1 -37
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +6 -5
- package/sparkdream/federation/v1/tx.rpc.msg.js +3 -13
- package/sparkdream/federation/v1/types.d.ts +10 -106
- package/sparkdream/federation/v1/types.js +14 -321
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- package/sparkdream/name/v1/owner_info.d.ts +12 -0
- package/sparkdream/name/v1/owner_info.js +13 -1
- package/sparkdream/name/v1/query.d.ts +95 -0
- package/sparkdream/name/v1/query.js +142 -1
- package/sparkdream/name/v1/query.lcd.d.ts +2 -1
- package/sparkdream/name/v1/query.lcd.js +7 -0
- package/sparkdream/name/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/name/v1/query.rpc.Query.js +11 -0
- package/sparkdream/name/v1/tx.amino.d.ts +6 -1
- package/sparkdream/name/v1/tx.amino.js +5 -0
- package/sparkdream/name/v1/tx.d.ts +105 -0
- package/sparkdream/name/v1/tx.js +148 -1
- package/sparkdream/name/v1/tx.registry.d.ts +13 -1
- package/sparkdream/name/v1/tx.registry.js +19 -1
- package/sparkdream/name/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/name/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +11 -9
- package/sparkdream/rep/v1/genesis.js +32 -17
- package/sparkdream/rep/v1/member_report.d.ts +61 -0
- package/sparkdream/rep/v1/member_report.js +99 -2
- package/sparkdream/rep/v1/query.d.ts +259 -261
- package/sparkdream/rep/v1/query.js +299 -308
- package/sparkdream/rep/v1/query.lcd.d.ts +5 -5
- package/sparkdream/rep/v1/query.lcd.js +23 -16
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +20 -17
- package/sparkdream/rep/v1/query.rpc.Query.js +35 -34
- package/sparkdream/rep/v1/tx.amino.d.ts +7 -7
- package/sparkdream/rep/v1/tx.amino.js +9 -9
- package/sparkdream/rep/v1/tx.d.ts +121 -104
- package/sparkdream/rep/v1/tx.js +87 -59
- package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
- package/sparkdream/rep/v1/tx.registry.js +17 -17
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +11 -9
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -13
- package/sparkdream/rpc.query.d.ts +9 -8
- package/sparkdream/season/v1/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
- package/esm/sparkdream/rep/v1/sentinel_activity.js +0 -214
- package/sparkdream/rep/v1/sentinel_activity.d.ts +0 -79
- package/sparkdream/rep/v1/sentinel_activity.js +0 -219
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PeerRemovalState = exports.OutboundAttestation = exports.TagReputation = exports.ReputationAttestation = exports.PendingIdentityChallenge = exports.IdentityLink = exports.FederatedContent = exports.ArbiterHashSubmission = exports.VerificationRecord = exports.
|
|
3
|
+
exports.PeerRemovalState = exports.OutboundAttestation = exports.TagReputation = exports.ReputationAttestation = exports.PendingIdentityChallenge = exports.IdentityLink = exports.FederatedContent = exports.ArbiterHashSubmission = exports.VerificationRecord = exports.BridgeOperator = exports.PeerPolicy = exports.Peer = exports.VerificationOutcomeAmino = exports.VerificationOutcome = exports.IdentityLinkStatusAmino = exports.IdentityLinkStatus = exports.FederatedContentStatusAmino = exports.FederatedContentStatus = exports.BridgeStatusAmino = exports.BridgeStatus = exports.PeerStatusAmino = exports.PeerStatus = exports.PeerTypeAmino = exports.PeerType = void 0;
|
|
4
4
|
exports.peerTypeFromJSON = peerTypeFromJSON;
|
|
5
5
|
exports.peerTypeToJSON = peerTypeToJSON;
|
|
6
6
|
exports.peerStatusFromJSON = peerStatusFromJSON;
|
|
@@ -11,8 +11,6 @@ exports.federatedContentStatusFromJSON = federatedContentStatusFromJSON;
|
|
|
11
11
|
exports.federatedContentStatusToJSON = federatedContentStatusToJSON;
|
|
12
12
|
exports.identityLinkStatusFromJSON = identityLinkStatusFromJSON;
|
|
13
13
|
exports.identityLinkStatusToJSON = identityLinkStatusToJSON;
|
|
14
|
-
exports.verifierBondStatusFromJSON = verifierBondStatusFromJSON;
|
|
15
|
-
exports.verifierBondStatusToJSON = verifierBondStatusToJSON;
|
|
16
14
|
exports.verificationOutcomeFromJSON = verificationOutcomeFromJSON;
|
|
17
15
|
exports.verificationOutcomeToJSON = verificationOutcomeToJSON;
|
|
18
16
|
//@ts-nocheck
|
|
@@ -257,50 +255,6 @@ function identityLinkStatusToJSON(object) {
|
|
|
257
255
|
return "UNRECOGNIZED";
|
|
258
256
|
}
|
|
259
257
|
}
|
|
260
|
-
var VerifierBondStatus;
|
|
261
|
-
(function (VerifierBondStatus) {
|
|
262
|
-
VerifierBondStatus[VerifierBondStatus["VERIFIER_BOND_STATUS_UNSPECIFIED"] = 0] = "VERIFIER_BOND_STATUS_UNSPECIFIED";
|
|
263
|
-
VerifierBondStatus[VerifierBondStatus["VERIFIER_BOND_STATUS_NORMAL"] = 1] = "VERIFIER_BOND_STATUS_NORMAL";
|
|
264
|
-
VerifierBondStatus[VerifierBondStatus["VERIFIER_BOND_STATUS_RECOVERY"] = 2] = "VERIFIER_BOND_STATUS_RECOVERY";
|
|
265
|
-
VerifierBondStatus[VerifierBondStatus["VERIFIER_BOND_STATUS_DEMOTED"] = 3] = "VERIFIER_BOND_STATUS_DEMOTED";
|
|
266
|
-
VerifierBondStatus[VerifierBondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
267
|
-
})(VerifierBondStatus || (exports.VerifierBondStatus = VerifierBondStatus = {}));
|
|
268
|
-
exports.VerifierBondStatusAmino = VerifierBondStatus;
|
|
269
|
-
function verifierBondStatusFromJSON(object) {
|
|
270
|
-
switch (object) {
|
|
271
|
-
case 0:
|
|
272
|
-
case "VERIFIER_BOND_STATUS_UNSPECIFIED":
|
|
273
|
-
return VerifierBondStatus.VERIFIER_BOND_STATUS_UNSPECIFIED;
|
|
274
|
-
case 1:
|
|
275
|
-
case "VERIFIER_BOND_STATUS_NORMAL":
|
|
276
|
-
return VerifierBondStatus.VERIFIER_BOND_STATUS_NORMAL;
|
|
277
|
-
case 2:
|
|
278
|
-
case "VERIFIER_BOND_STATUS_RECOVERY":
|
|
279
|
-
return VerifierBondStatus.VERIFIER_BOND_STATUS_RECOVERY;
|
|
280
|
-
case 3:
|
|
281
|
-
case "VERIFIER_BOND_STATUS_DEMOTED":
|
|
282
|
-
return VerifierBondStatus.VERIFIER_BOND_STATUS_DEMOTED;
|
|
283
|
-
case -1:
|
|
284
|
-
case "UNRECOGNIZED":
|
|
285
|
-
default:
|
|
286
|
-
return VerifierBondStatus.UNRECOGNIZED;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
function verifierBondStatusToJSON(object) {
|
|
290
|
-
switch (object) {
|
|
291
|
-
case VerifierBondStatus.VERIFIER_BOND_STATUS_UNSPECIFIED:
|
|
292
|
-
return "VERIFIER_BOND_STATUS_UNSPECIFIED";
|
|
293
|
-
case VerifierBondStatus.VERIFIER_BOND_STATUS_NORMAL:
|
|
294
|
-
return "VERIFIER_BOND_STATUS_NORMAL";
|
|
295
|
-
case VerifierBondStatus.VERIFIER_BOND_STATUS_RECOVERY:
|
|
296
|
-
return "VERIFIER_BOND_STATUS_RECOVERY";
|
|
297
|
-
case VerifierBondStatus.VERIFIER_BOND_STATUS_DEMOTED:
|
|
298
|
-
return "VERIFIER_BOND_STATUS_DEMOTED";
|
|
299
|
-
case VerifierBondStatus.UNRECOGNIZED:
|
|
300
|
-
default:
|
|
301
|
-
return "UNRECOGNIZED";
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
258
|
var VerificationOutcome;
|
|
305
259
|
(function (VerificationOutcome) {
|
|
306
260
|
VerificationOutcome[VerificationOutcome["VERIFICATION_OUTCOME_UNSPECIFIED"] = 0] = "VERIFICATION_OUTCOME_UNSPECIFIED";
|
|
@@ -969,279 +923,6 @@ exports.BridgeOperator = {
|
|
|
969
923
|
};
|
|
970
924
|
}
|
|
971
925
|
};
|
|
972
|
-
function createBaseFederationVerifier() {
|
|
973
|
-
return {
|
|
974
|
-
address: "",
|
|
975
|
-
currentBond: "",
|
|
976
|
-
totalCommittedBond: "",
|
|
977
|
-
bondStatus: 0,
|
|
978
|
-
bondedAt: BigInt(0),
|
|
979
|
-
demotionCooldownUntil: BigInt(0),
|
|
980
|
-
totalVerifications: BigInt(0),
|
|
981
|
-
upheldVerifications: BigInt(0),
|
|
982
|
-
overturnedVerifications: BigInt(0),
|
|
983
|
-
unchallengedVerifications: BigInt(0),
|
|
984
|
-
epochVerifications: BigInt(0),
|
|
985
|
-
epochChallengesResolved: BigInt(0),
|
|
986
|
-
lastRewardEpoch: BigInt(0),
|
|
987
|
-
lastActiveEpoch: BigInt(0),
|
|
988
|
-
consecutiveOverturns: BigInt(0),
|
|
989
|
-
consecutiveUpheld: BigInt(0),
|
|
990
|
-
overturnCooldownUntil: BigInt(0),
|
|
991
|
-
slashCount: BigInt(0)
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
/**
|
|
995
|
-
* FederationVerifier represents a community member who verifies bridged content.
|
|
996
|
-
* @name FederationVerifier
|
|
997
|
-
* @package sparkdream.federation.v1
|
|
998
|
-
* @see proto type: sparkdream.federation.v1.FederationVerifier
|
|
999
|
-
*/
|
|
1000
|
-
exports.FederationVerifier = {
|
|
1001
|
-
typeUrl: "/sparkdream.federation.v1.FederationVerifier",
|
|
1002
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1003
|
-
if (message.address !== "") {
|
|
1004
|
-
writer.uint32(10).string(message.address);
|
|
1005
|
-
}
|
|
1006
|
-
if (message.currentBond !== "") {
|
|
1007
|
-
writer.uint32(18).string(message.currentBond);
|
|
1008
|
-
}
|
|
1009
|
-
if (message.totalCommittedBond !== "") {
|
|
1010
|
-
writer.uint32(26).string(message.totalCommittedBond);
|
|
1011
|
-
}
|
|
1012
|
-
if (message.bondStatus !== 0) {
|
|
1013
|
-
writer.uint32(32).int32(message.bondStatus);
|
|
1014
|
-
}
|
|
1015
|
-
if (message.bondedAt !== BigInt(0)) {
|
|
1016
|
-
writer.uint32(40).int64(message.bondedAt);
|
|
1017
|
-
}
|
|
1018
|
-
if (message.demotionCooldownUntil !== BigInt(0)) {
|
|
1019
|
-
writer.uint32(48).int64(message.demotionCooldownUntil);
|
|
1020
|
-
}
|
|
1021
|
-
if (message.totalVerifications !== BigInt(0)) {
|
|
1022
|
-
writer.uint32(56).uint64(message.totalVerifications);
|
|
1023
|
-
}
|
|
1024
|
-
if (message.upheldVerifications !== BigInt(0)) {
|
|
1025
|
-
writer.uint32(64).uint64(message.upheldVerifications);
|
|
1026
|
-
}
|
|
1027
|
-
if (message.overturnedVerifications !== BigInt(0)) {
|
|
1028
|
-
writer.uint32(72).uint64(message.overturnedVerifications);
|
|
1029
|
-
}
|
|
1030
|
-
if (message.unchallengedVerifications !== BigInt(0)) {
|
|
1031
|
-
writer.uint32(80).uint64(message.unchallengedVerifications);
|
|
1032
|
-
}
|
|
1033
|
-
if (message.epochVerifications !== BigInt(0)) {
|
|
1034
|
-
writer.uint32(88).uint64(message.epochVerifications);
|
|
1035
|
-
}
|
|
1036
|
-
if (message.epochChallengesResolved !== BigInt(0)) {
|
|
1037
|
-
writer.uint32(96).uint64(message.epochChallengesResolved);
|
|
1038
|
-
}
|
|
1039
|
-
if (message.lastRewardEpoch !== BigInt(0)) {
|
|
1040
|
-
writer.uint32(104).int64(message.lastRewardEpoch);
|
|
1041
|
-
}
|
|
1042
|
-
if (message.lastActiveEpoch !== BigInt(0)) {
|
|
1043
|
-
writer.uint32(112).int64(message.lastActiveEpoch);
|
|
1044
|
-
}
|
|
1045
|
-
if (message.consecutiveOverturns !== BigInt(0)) {
|
|
1046
|
-
writer.uint32(120).uint64(message.consecutiveOverturns);
|
|
1047
|
-
}
|
|
1048
|
-
if (message.consecutiveUpheld !== BigInt(0)) {
|
|
1049
|
-
writer.uint32(128).uint64(message.consecutiveUpheld);
|
|
1050
|
-
}
|
|
1051
|
-
if (message.overturnCooldownUntil !== BigInt(0)) {
|
|
1052
|
-
writer.uint32(136).int64(message.overturnCooldownUntil);
|
|
1053
|
-
}
|
|
1054
|
-
if (message.slashCount !== BigInt(0)) {
|
|
1055
|
-
writer.uint32(144).uint64(message.slashCount);
|
|
1056
|
-
}
|
|
1057
|
-
return writer;
|
|
1058
|
-
},
|
|
1059
|
-
decode(input, length) {
|
|
1060
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1061
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1062
|
-
const message = createBaseFederationVerifier();
|
|
1063
|
-
while (reader.pos < end) {
|
|
1064
|
-
const tag = reader.uint32();
|
|
1065
|
-
switch (tag >>> 3) {
|
|
1066
|
-
case 1:
|
|
1067
|
-
message.address = reader.string();
|
|
1068
|
-
break;
|
|
1069
|
-
case 2:
|
|
1070
|
-
message.currentBond = reader.string();
|
|
1071
|
-
break;
|
|
1072
|
-
case 3:
|
|
1073
|
-
message.totalCommittedBond = reader.string();
|
|
1074
|
-
break;
|
|
1075
|
-
case 4:
|
|
1076
|
-
message.bondStatus = reader.int32();
|
|
1077
|
-
break;
|
|
1078
|
-
case 5:
|
|
1079
|
-
message.bondedAt = reader.int64();
|
|
1080
|
-
break;
|
|
1081
|
-
case 6:
|
|
1082
|
-
message.demotionCooldownUntil = reader.int64();
|
|
1083
|
-
break;
|
|
1084
|
-
case 7:
|
|
1085
|
-
message.totalVerifications = reader.uint64();
|
|
1086
|
-
break;
|
|
1087
|
-
case 8:
|
|
1088
|
-
message.upheldVerifications = reader.uint64();
|
|
1089
|
-
break;
|
|
1090
|
-
case 9:
|
|
1091
|
-
message.overturnedVerifications = reader.uint64();
|
|
1092
|
-
break;
|
|
1093
|
-
case 10:
|
|
1094
|
-
message.unchallengedVerifications = reader.uint64();
|
|
1095
|
-
break;
|
|
1096
|
-
case 11:
|
|
1097
|
-
message.epochVerifications = reader.uint64();
|
|
1098
|
-
break;
|
|
1099
|
-
case 12:
|
|
1100
|
-
message.epochChallengesResolved = reader.uint64();
|
|
1101
|
-
break;
|
|
1102
|
-
case 13:
|
|
1103
|
-
message.lastRewardEpoch = reader.int64();
|
|
1104
|
-
break;
|
|
1105
|
-
case 14:
|
|
1106
|
-
message.lastActiveEpoch = reader.int64();
|
|
1107
|
-
break;
|
|
1108
|
-
case 15:
|
|
1109
|
-
message.consecutiveOverturns = reader.uint64();
|
|
1110
|
-
break;
|
|
1111
|
-
case 16:
|
|
1112
|
-
message.consecutiveUpheld = reader.uint64();
|
|
1113
|
-
break;
|
|
1114
|
-
case 17:
|
|
1115
|
-
message.overturnCooldownUntil = reader.int64();
|
|
1116
|
-
break;
|
|
1117
|
-
case 18:
|
|
1118
|
-
message.slashCount = reader.uint64();
|
|
1119
|
-
break;
|
|
1120
|
-
default:
|
|
1121
|
-
reader.skipType(tag & 7);
|
|
1122
|
-
break;
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
return message;
|
|
1126
|
-
},
|
|
1127
|
-
fromPartial(object) {
|
|
1128
|
-
const message = createBaseFederationVerifier();
|
|
1129
|
-
message.address = object.address ?? "";
|
|
1130
|
-
message.currentBond = object.currentBond ?? "";
|
|
1131
|
-
message.totalCommittedBond = object.totalCommittedBond ?? "";
|
|
1132
|
-
message.bondStatus = object.bondStatus ?? 0;
|
|
1133
|
-
message.bondedAt = object.bondedAt !== undefined && object.bondedAt !== null ? BigInt(object.bondedAt.toString()) : BigInt(0);
|
|
1134
|
-
message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
|
|
1135
|
-
message.totalVerifications = object.totalVerifications !== undefined && object.totalVerifications !== null ? BigInt(object.totalVerifications.toString()) : BigInt(0);
|
|
1136
|
-
message.upheldVerifications = object.upheldVerifications !== undefined && object.upheldVerifications !== null ? BigInt(object.upheldVerifications.toString()) : BigInt(0);
|
|
1137
|
-
message.overturnedVerifications = object.overturnedVerifications !== undefined && object.overturnedVerifications !== null ? BigInt(object.overturnedVerifications.toString()) : BigInt(0);
|
|
1138
|
-
message.unchallengedVerifications = object.unchallengedVerifications !== undefined && object.unchallengedVerifications !== null ? BigInt(object.unchallengedVerifications.toString()) : BigInt(0);
|
|
1139
|
-
message.epochVerifications = object.epochVerifications !== undefined && object.epochVerifications !== null ? BigInt(object.epochVerifications.toString()) : BigInt(0);
|
|
1140
|
-
message.epochChallengesResolved = object.epochChallengesResolved !== undefined && object.epochChallengesResolved !== null ? BigInt(object.epochChallengesResolved.toString()) : BigInt(0);
|
|
1141
|
-
message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
|
|
1142
|
-
message.lastActiveEpoch = object.lastActiveEpoch !== undefined && object.lastActiveEpoch !== null ? BigInt(object.lastActiveEpoch.toString()) : BigInt(0);
|
|
1143
|
-
message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
|
|
1144
|
-
message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
|
|
1145
|
-
message.overturnCooldownUntil = object.overturnCooldownUntil !== undefined && object.overturnCooldownUntil !== null ? BigInt(object.overturnCooldownUntil.toString()) : BigInt(0);
|
|
1146
|
-
message.slashCount = object.slashCount !== undefined && object.slashCount !== null ? BigInt(object.slashCount.toString()) : BigInt(0);
|
|
1147
|
-
return message;
|
|
1148
|
-
},
|
|
1149
|
-
fromAmino(object) {
|
|
1150
|
-
const message = createBaseFederationVerifier();
|
|
1151
|
-
if (object.address !== undefined && object.address !== null) {
|
|
1152
|
-
message.address = object.address;
|
|
1153
|
-
}
|
|
1154
|
-
if (object.current_bond !== undefined && object.current_bond !== null) {
|
|
1155
|
-
message.currentBond = object.current_bond;
|
|
1156
|
-
}
|
|
1157
|
-
if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
|
|
1158
|
-
message.totalCommittedBond = object.total_committed_bond;
|
|
1159
|
-
}
|
|
1160
|
-
if (object.bond_status !== undefined && object.bond_status !== null) {
|
|
1161
|
-
message.bondStatus = object.bond_status;
|
|
1162
|
-
}
|
|
1163
|
-
if (object.bonded_at !== undefined && object.bonded_at !== null) {
|
|
1164
|
-
message.bondedAt = BigInt(object.bonded_at);
|
|
1165
|
-
}
|
|
1166
|
-
if (object.demotion_cooldown_until !== undefined && object.demotion_cooldown_until !== null) {
|
|
1167
|
-
message.demotionCooldownUntil = BigInt(object.demotion_cooldown_until);
|
|
1168
|
-
}
|
|
1169
|
-
if (object.total_verifications !== undefined && object.total_verifications !== null) {
|
|
1170
|
-
message.totalVerifications = BigInt(object.total_verifications);
|
|
1171
|
-
}
|
|
1172
|
-
if (object.upheld_verifications !== undefined && object.upheld_verifications !== null) {
|
|
1173
|
-
message.upheldVerifications = BigInt(object.upheld_verifications);
|
|
1174
|
-
}
|
|
1175
|
-
if (object.overturned_verifications !== undefined && object.overturned_verifications !== null) {
|
|
1176
|
-
message.overturnedVerifications = BigInt(object.overturned_verifications);
|
|
1177
|
-
}
|
|
1178
|
-
if (object.unchallenged_verifications !== undefined && object.unchallenged_verifications !== null) {
|
|
1179
|
-
message.unchallengedVerifications = BigInt(object.unchallenged_verifications);
|
|
1180
|
-
}
|
|
1181
|
-
if (object.epoch_verifications !== undefined && object.epoch_verifications !== null) {
|
|
1182
|
-
message.epochVerifications = BigInt(object.epoch_verifications);
|
|
1183
|
-
}
|
|
1184
|
-
if (object.epoch_challenges_resolved !== undefined && object.epoch_challenges_resolved !== null) {
|
|
1185
|
-
message.epochChallengesResolved = BigInt(object.epoch_challenges_resolved);
|
|
1186
|
-
}
|
|
1187
|
-
if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
|
|
1188
|
-
message.lastRewardEpoch = BigInt(object.last_reward_epoch);
|
|
1189
|
-
}
|
|
1190
|
-
if (object.last_active_epoch !== undefined && object.last_active_epoch !== null) {
|
|
1191
|
-
message.lastActiveEpoch = BigInt(object.last_active_epoch);
|
|
1192
|
-
}
|
|
1193
|
-
if (object.consecutive_overturns !== undefined && object.consecutive_overturns !== null) {
|
|
1194
|
-
message.consecutiveOverturns = BigInt(object.consecutive_overturns);
|
|
1195
|
-
}
|
|
1196
|
-
if (object.consecutive_upheld !== undefined && object.consecutive_upheld !== null) {
|
|
1197
|
-
message.consecutiveUpheld = BigInt(object.consecutive_upheld);
|
|
1198
|
-
}
|
|
1199
|
-
if (object.overturn_cooldown_until !== undefined && object.overturn_cooldown_until !== null) {
|
|
1200
|
-
message.overturnCooldownUntil = BigInt(object.overturn_cooldown_until);
|
|
1201
|
-
}
|
|
1202
|
-
if (object.slash_count !== undefined && object.slash_count !== null) {
|
|
1203
|
-
message.slashCount = BigInt(object.slash_count);
|
|
1204
|
-
}
|
|
1205
|
-
return message;
|
|
1206
|
-
},
|
|
1207
|
-
toAmino(message) {
|
|
1208
|
-
const obj = {};
|
|
1209
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
1210
|
-
obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
|
|
1211
|
-
obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
|
|
1212
|
-
obj.bond_status = message.bondStatus === 0 ? undefined : message.bondStatus;
|
|
1213
|
-
obj.bonded_at = message.bondedAt !== BigInt(0) ? message.bondedAt?.toString() : undefined;
|
|
1214
|
-
obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
|
|
1215
|
-
obj.total_verifications = message.totalVerifications !== BigInt(0) ? message.totalVerifications?.toString() : undefined;
|
|
1216
|
-
obj.upheld_verifications = message.upheldVerifications !== BigInt(0) ? message.upheldVerifications?.toString() : undefined;
|
|
1217
|
-
obj.overturned_verifications = message.overturnedVerifications !== BigInt(0) ? message.overturnedVerifications?.toString() : undefined;
|
|
1218
|
-
obj.unchallenged_verifications = message.unchallengedVerifications !== BigInt(0) ? message.unchallengedVerifications?.toString() : undefined;
|
|
1219
|
-
obj.epoch_verifications = message.epochVerifications !== BigInt(0) ? message.epochVerifications?.toString() : undefined;
|
|
1220
|
-
obj.epoch_challenges_resolved = message.epochChallengesResolved !== BigInt(0) ? message.epochChallengesResolved?.toString() : undefined;
|
|
1221
|
-
obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
|
|
1222
|
-
obj.last_active_epoch = message.lastActiveEpoch !== BigInt(0) ? message.lastActiveEpoch?.toString() : undefined;
|
|
1223
|
-
obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
|
|
1224
|
-
obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
|
|
1225
|
-
obj.overturn_cooldown_until = message.overturnCooldownUntil !== BigInt(0) ? message.overturnCooldownUntil?.toString() : undefined;
|
|
1226
|
-
obj.slash_count = message.slashCount !== BigInt(0) ? message.slashCount?.toString() : undefined;
|
|
1227
|
-
return obj;
|
|
1228
|
-
},
|
|
1229
|
-
fromAminoMsg(object) {
|
|
1230
|
-
return exports.FederationVerifier.fromAmino(object.value);
|
|
1231
|
-
},
|
|
1232
|
-
fromProtoMsg(message) {
|
|
1233
|
-
return exports.FederationVerifier.decode(message.value);
|
|
1234
|
-
},
|
|
1235
|
-
toProto(message) {
|
|
1236
|
-
return exports.FederationVerifier.encode(message).finish();
|
|
1237
|
-
},
|
|
1238
|
-
toProtoMsg(message) {
|
|
1239
|
-
return {
|
|
1240
|
-
typeUrl: "/sparkdream.federation.v1.FederationVerifier",
|
|
1241
|
-
value: exports.FederationVerifier.encode(message).finish()
|
|
1242
|
-
};
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
926
|
function createBaseVerificationRecord() {
|
|
1246
927
|
return {
|
|
1247
928
|
contentId: BigInt(0),
|
|
@@ -1804,7 +1485,8 @@ function createBaseIdentityLink() {
|
|
|
1804
1485
|
remoteIdentity: "",
|
|
1805
1486
|
status: 0,
|
|
1806
1487
|
linkedAt: BigInt(0),
|
|
1807
|
-
verifiedAt: BigInt(0)
|
|
1488
|
+
verifiedAt: BigInt(0),
|
|
1489
|
+
challenge: new Uint8Array()
|
|
1808
1490
|
};
|
|
1809
1491
|
}
|
|
1810
1492
|
/**
|
|
@@ -1834,6 +1516,9 @@ exports.IdentityLink = {
|
|
|
1834
1516
|
if (message.verifiedAt !== BigInt(0)) {
|
|
1835
1517
|
writer.uint32(48).int64(message.verifiedAt);
|
|
1836
1518
|
}
|
|
1519
|
+
if (message.challenge.length !== 0) {
|
|
1520
|
+
writer.uint32(58).bytes(message.challenge);
|
|
1521
|
+
}
|
|
1837
1522
|
return writer;
|
|
1838
1523
|
},
|
|
1839
1524
|
decode(input, length) {
|
|
@@ -1861,6 +1546,9 @@ exports.IdentityLink = {
|
|
|
1861
1546
|
case 6:
|
|
1862
1547
|
message.verifiedAt = reader.int64();
|
|
1863
1548
|
break;
|
|
1549
|
+
case 7:
|
|
1550
|
+
message.challenge = reader.bytes();
|
|
1551
|
+
break;
|
|
1864
1552
|
default:
|
|
1865
1553
|
reader.skipType(tag & 7);
|
|
1866
1554
|
break;
|
|
@@ -1876,6 +1564,7 @@ exports.IdentityLink = {
|
|
|
1876
1564
|
message.status = object.status ?? 0;
|
|
1877
1565
|
message.linkedAt = object.linkedAt !== undefined && object.linkedAt !== null ? BigInt(object.linkedAt.toString()) : BigInt(0);
|
|
1878
1566
|
message.verifiedAt = object.verifiedAt !== undefined && object.verifiedAt !== null ? BigInt(object.verifiedAt.toString()) : BigInt(0);
|
|
1567
|
+
message.challenge = object.challenge ?? new Uint8Array();
|
|
1879
1568
|
return message;
|
|
1880
1569
|
},
|
|
1881
1570
|
fromAmino(object) {
|
|
@@ -1898,6 +1587,9 @@ exports.IdentityLink = {
|
|
|
1898
1587
|
if (object.verified_at !== undefined && object.verified_at !== null) {
|
|
1899
1588
|
message.verifiedAt = BigInt(object.verified_at);
|
|
1900
1589
|
}
|
|
1590
|
+
if (object.challenge !== undefined && object.challenge !== null) {
|
|
1591
|
+
message.challenge = (0, helpers_1.bytesFromBase64)(object.challenge);
|
|
1592
|
+
}
|
|
1901
1593
|
return message;
|
|
1902
1594
|
},
|
|
1903
1595
|
toAmino(message) {
|
|
@@ -1908,6 +1600,7 @@ exports.IdentityLink = {
|
|
|
1908
1600
|
obj.status = message.status === 0 ? undefined : message.status;
|
|
1909
1601
|
obj.linked_at = message.linkedAt !== BigInt(0) ? message.linkedAt?.toString() : undefined;
|
|
1910
1602
|
obj.verified_at = message.verifiedAt !== BigInt(0) ? message.verifiedAt?.toString() : undefined;
|
|
1603
|
+
obj.challenge = message.challenge ? (0, helpers_1.base64FromBytes)(message.challenge) : undefined;
|
|
1911
1604
|
return obj;
|
|
1912
1605
|
},
|
|
1913
1606
|
fromAminoMsg(object) {
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
5
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
6
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
7
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
8
|
+
* @name VerifierActivity
|
|
9
|
+
* @package sparkdream.federation.v1
|
|
10
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
11
|
+
*/
|
|
12
|
+
export interface VerifierActivity {
|
|
13
|
+
address: string;
|
|
14
|
+
/**
|
|
15
|
+
* Lifetime metrics
|
|
16
|
+
*/
|
|
17
|
+
totalVerifications: bigint;
|
|
18
|
+
upheldVerifications: bigint;
|
|
19
|
+
overturnedVerifications: bigint;
|
|
20
|
+
unchallengedVerifications: bigint;
|
|
21
|
+
/**
|
|
22
|
+
* Epoch metrics
|
|
23
|
+
*/
|
|
24
|
+
epochVerifications: bigint;
|
|
25
|
+
epochChallengesResolved: bigint;
|
|
26
|
+
/**
|
|
27
|
+
* Consecutive-outcome tracking for demotion triggers. Slash streak beyond
|
|
28
|
+
* UpheldToResetOverturns consecutive-overturn is the demotion signal.
|
|
29
|
+
*/
|
|
30
|
+
consecutiveOverturns: bigint;
|
|
31
|
+
consecutiveUpheld: bigint;
|
|
32
|
+
/**
|
|
33
|
+
* overturn_cooldown_until is the unix timestamp during which the verifier
|
|
34
|
+
* cannot submit new verifications after an overturn. Managed by the
|
|
35
|
+
* federation challenge-resolution flow.
|
|
36
|
+
*/
|
|
37
|
+
overturnCooldownUntil: bigint;
|
|
38
|
+
/**
|
|
39
|
+
* slash_count is the lifetime number of times this verifier has been
|
|
40
|
+
* slashed (overturn verdicts).
|
|
41
|
+
*/
|
|
42
|
+
slashCount: bigint;
|
|
43
|
+
}
|
|
44
|
+
export interface VerifierActivityProtoMsg {
|
|
45
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity";
|
|
46
|
+
value: Uint8Array;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
50
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
51
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
52
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
53
|
+
* @name VerifierActivityAmino
|
|
54
|
+
* @package sparkdream.federation.v1
|
|
55
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
56
|
+
*/
|
|
57
|
+
export interface VerifierActivityAmino {
|
|
58
|
+
address?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Lifetime metrics
|
|
61
|
+
*/
|
|
62
|
+
total_verifications?: string;
|
|
63
|
+
upheld_verifications?: string;
|
|
64
|
+
overturned_verifications?: string;
|
|
65
|
+
unchallenged_verifications?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Epoch metrics
|
|
68
|
+
*/
|
|
69
|
+
epoch_verifications?: string;
|
|
70
|
+
epoch_challenges_resolved?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Consecutive-outcome tracking for demotion triggers. Slash streak beyond
|
|
73
|
+
* UpheldToResetOverturns consecutive-overturn is the demotion signal.
|
|
74
|
+
*/
|
|
75
|
+
consecutive_overturns?: string;
|
|
76
|
+
consecutive_upheld?: string;
|
|
77
|
+
/**
|
|
78
|
+
* overturn_cooldown_until is the unix timestamp during which the verifier
|
|
79
|
+
* cannot submit new verifications after an overturn. Managed by the
|
|
80
|
+
* federation challenge-resolution flow.
|
|
81
|
+
*/
|
|
82
|
+
overturn_cooldown_until?: string;
|
|
83
|
+
/**
|
|
84
|
+
* slash_count is the lifetime number of times this verifier has been
|
|
85
|
+
* slashed (overturn verdicts).
|
|
86
|
+
*/
|
|
87
|
+
slash_count?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface VerifierActivityAminoMsg {
|
|
90
|
+
type: "/sparkdream.federation.v1.VerifierActivity";
|
|
91
|
+
value: VerifierActivityAmino;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
95
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
96
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
97
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
98
|
+
* @name VerifierActivity
|
|
99
|
+
* @package sparkdream.federation.v1
|
|
100
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
101
|
+
*/
|
|
102
|
+
export declare const VerifierActivity: {
|
|
103
|
+
typeUrl: string;
|
|
104
|
+
encode(message: VerifierActivity, writer?: BinaryWriter): BinaryWriter;
|
|
105
|
+
decode(input: BinaryReader | Uint8Array, length?: number): VerifierActivity;
|
|
106
|
+
fromPartial(object: DeepPartial<VerifierActivity>): VerifierActivity;
|
|
107
|
+
fromAmino(object: VerifierActivityAmino): VerifierActivity;
|
|
108
|
+
toAmino(message: VerifierActivity): VerifierActivityAmino;
|
|
109
|
+
fromAminoMsg(object: VerifierActivityAminoMsg): VerifierActivity;
|
|
110
|
+
fromProtoMsg(message: VerifierActivityProtoMsg): VerifierActivity;
|
|
111
|
+
toProto(message: VerifierActivity): Uint8Array;
|
|
112
|
+
toProtoMsg(message: VerifierActivity): VerifierActivityProtoMsg;
|
|
113
|
+
};
|