@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
|
@@ -240,50 +240,6 @@ export function identityLinkStatusToJSON(object) {
|
|
|
240
240
|
return "UNRECOGNIZED";
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
export var VerifierBondStatus;
|
|
244
|
-
(function (VerifierBondStatus) {
|
|
245
|
-
VerifierBondStatus[VerifierBondStatus["VERIFIER_BOND_STATUS_UNSPECIFIED"] = 0] = "VERIFIER_BOND_STATUS_UNSPECIFIED";
|
|
246
|
-
VerifierBondStatus[VerifierBondStatus["VERIFIER_BOND_STATUS_NORMAL"] = 1] = "VERIFIER_BOND_STATUS_NORMAL";
|
|
247
|
-
VerifierBondStatus[VerifierBondStatus["VERIFIER_BOND_STATUS_RECOVERY"] = 2] = "VERIFIER_BOND_STATUS_RECOVERY";
|
|
248
|
-
VerifierBondStatus[VerifierBondStatus["VERIFIER_BOND_STATUS_DEMOTED"] = 3] = "VERIFIER_BOND_STATUS_DEMOTED";
|
|
249
|
-
VerifierBondStatus[VerifierBondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
250
|
-
})(VerifierBondStatus || (VerifierBondStatus = {}));
|
|
251
|
-
export const VerifierBondStatusAmino = VerifierBondStatus;
|
|
252
|
-
export function verifierBondStatusFromJSON(object) {
|
|
253
|
-
switch (object) {
|
|
254
|
-
case 0:
|
|
255
|
-
case "VERIFIER_BOND_STATUS_UNSPECIFIED":
|
|
256
|
-
return VerifierBondStatus.VERIFIER_BOND_STATUS_UNSPECIFIED;
|
|
257
|
-
case 1:
|
|
258
|
-
case "VERIFIER_BOND_STATUS_NORMAL":
|
|
259
|
-
return VerifierBondStatus.VERIFIER_BOND_STATUS_NORMAL;
|
|
260
|
-
case 2:
|
|
261
|
-
case "VERIFIER_BOND_STATUS_RECOVERY":
|
|
262
|
-
return VerifierBondStatus.VERIFIER_BOND_STATUS_RECOVERY;
|
|
263
|
-
case 3:
|
|
264
|
-
case "VERIFIER_BOND_STATUS_DEMOTED":
|
|
265
|
-
return VerifierBondStatus.VERIFIER_BOND_STATUS_DEMOTED;
|
|
266
|
-
case -1:
|
|
267
|
-
case "UNRECOGNIZED":
|
|
268
|
-
default:
|
|
269
|
-
return VerifierBondStatus.UNRECOGNIZED;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
export function verifierBondStatusToJSON(object) {
|
|
273
|
-
switch (object) {
|
|
274
|
-
case VerifierBondStatus.VERIFIER_BOND_STATUS_UNSPECIFIED:
|
|
275
|
-
return "VERIFIER_BOND_STATUS_UNSPECIFIED";
|
|
276
|
-
case VerifierBondStatus.VERIFIER_BOND_STATUS_NORMAL:
|
|
277
|
-
return "VERIFIER_BOND_STATUS_NORMAL";
|
|
278
|
-
case VerifierBondStatus.VERIFIER_BOND_STATUS_RECOVERY:
|
|
279
|
-
return "VERIFIER_BOND_STATUS_RECOVERY";
|
|
280
|
-
case VerifierBondStatus.VERIFIER_BOND_STATUS_DEMOTED:
|
|
281
|
-
return "VERIFIER_BOND_STATUS_DEMOTED";
|
|
282
|
-
case VerifierBondStatus.UNRECOGNIZED:
|
|
283
|
-
default:
|
|
284
|
-
return "UNRECOGNIZED";
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
243
|
export var VerificationOutcome;
|
|
288
244
|
(function (VerificationOutcome) {
|
|
289
245
|
VerificationOutcome[VerificationOutcome["VERIFICATION_OUTCOME_UNSPECIFIED"] = 0] = "VERIFICATION_OUTCOME_UNSPECIFIED";
|
|
@@ -952,279 +908,6 @@ export const BridgeOperator = {
|
|
|
952
908
|
};
|
|
953
909
|
}
|
|
954
910
|
};
|
|
955
|
-
function createBaseFederationVerifier() {
|
|
956
|
-
return {
|
|
957
|
-
address: "",
|
|
958
|
-
currentBond: "",
|
|
959
|
-
totalCommittedBond: "",
|
|
960
|
-
bondStatus: 0,
|
|
961
|
-
bondedAt: BigInt(0),
|
|
962
|
-
demotionCooldownUntil: BigInt(0),
|
|
963
|
-
totalVerifications: BigInt(0),
|
|
964
|
-
upheldVerifications: BigInt(0),
|
|
965
|
-
overturnedVerifications: BigInt(0),
|
|
966
|
-
unchallengedVerifications: BigInt(0),
|
|
967
|
-
epochVerifications: BigInt(0),
|
|
968
|
-
epochChallengesResolved: BigInt(0),
|
|
969
|
-
lastRewardEpoch: BigInt(0),
|
|
970
|
-
lastActiveEpoch: BigInt(0),
|
|
971
|
-
consecutiveOverturns: BigInt(0),
|
|
972
|
-
consecutiveUpheld: BigInt(0),
|
|
973
|
-
overturnCooldownUntil: BigInt(0),
|
|
974
|
-
slashCount: BigInt(0)
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
/**
|
|
978
|
-
* FederationVerifier represents a community member who verifies bridged content.
|
|
979
|
-
* @name FederationVerifier
|
|
980
|
-
* @package sparkdream.federation.v1
|
|
981
|
-
* @see proto type: sparkdream.federation.v1.FederationVerifier
|
|
982
|
-
*/
|
|
983
|
-
export const FederationVerifier = {
|
|
984
|
-
typeUrl: "/sparkdream.federation.v1.FederationVerifier",
|
|
985
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
986
|
-
if (message.address !== "") {
|
|
987
|
-
writer.uint32(10).string(message.address);
|
|
988
|
-
}
|
|
989
|
-
if (message.currentBond !== "") {
|
|
990
|
-
writer.uint32(18).string(message.currentBond);
|
|
991
|
-
}
|
|
992
|
-
if (message.totalCommittedBond !== "") {
|
|
993
|
-
writer.uint32(26).string(message.totalCommittedBond);
|
|
994
|
-
}
|
|
995
|
-
if (message.bondStatus !== 0) {
|
|
996
|
-
writer.uint32(32).int32(message.bondStatus);
|
|
997
|
-
}
|
|
998
|
-
if (message.bondedAt !== BigInt(0)) {
|
|
999
|
-
writer.uint32(40).int64(message.bondedAt);
|
|
1000
|
-
}
|
|
1001
|
-
if (message.demotionCooldownUntil !== BigInt(0)) {
|
|
1002
|
-
writer.uint32(48).int64(message.demotionCooldownUntil);
|
|
1003
|
-
}
|
|
1004
|
-
if (message.totalVerifications !== BigInt(0)) {
|
|
1005
|
-
writer.uint32(56).uint64(message.totalVerifications);
|
|
1006
|
-
}
|
|
1007
|
-
if (message.upheldVerifications !== BigInt(0)) {
|
|
1008
|
-
writer.uint32(64).uint64(message.upheldVerifications);
|
|
1009
|
-
}
|
|
1010
|
-
if (message.overturnedVerifications !== BigInt(0)) {
|
|
1011
|
-
writer.uint32(72).uint64(message.overturnedVerifications);
|
|
1012
|
-
}
|
|
1013
|
-
if (message.unchallengedVerifications !== BigInt(0)) {
|
|
1014
|
-
writer.uint32(80).uint64(message.unchallengedVerifications);
|
|
1015
|
-
}
|
|
1016
|
-
if (message.epochVerifications !== BigInt(0)) {
|
|
1017
|
-
writer.uint32(88).uint64(message.epochVerifications);
|
|
1018
|
-
}
|
|
1019
|
-
if (message.epochChallengesResolved !== BigInt(0)) {
|
|
1020
|
-
writer.uint32(96).uint64(message.epochChallengesResolved);
|
|
1021
|
-
}
|
|
1022
|
-
if (message.lastRewardEpoch !== BigInt(0)) {
|
|
1023
|
-
writer.uint32(104).int64(message.lastRewardEpoch);
|
|
1024
|
-
}
|
|
1025
|
-
if (message.lastActiveEpoch !== BigInt(0)) {
|
|
1026
|
-
writer.uint32(112).int64(message.lastActiveEpoch);
|
|
1027
|
-
}
|
|
1028
|
-
if (message.consecutiveOverturns !== BigInt(0)) {
|
|
1029
|
-
writer.uint32(120).uint64(message.consecutiveOverturns);
|
|
1030
|
-
}
|
|
1031
|
-
if (message.consecutiveUpheld !== BigInt(0)) {
|
|
1032
|
-
writer.uint32(128).uint64(message.consecutiveUpheld);
|
|
1033
|
-
}
|
|
1034
|
-
if (message.overturnCooldownUntil !== BigInt(0)) {
|
|
1035
|
-
writer.uint32(136).int64(message.overturnCooldownUntil);
|
|
1036
|
-
}
|
|
1037
|
-
if (message.slashCount !== BigInt(0)) {
|
|
1038
|
-
writer.uint32(144).uint64(message.slashCount);
|
|
1039
|
-
}
|
|
1040
|
-
return writer;
|
|
1041
|
-
},
|
|
1042
|
-
decode(input, length) {
|
|
1043
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1044
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1045
|
-
const message = createBaseFederationVerifier();
|
|
1046
|
-
while (reader.pos < end) {
|
|
1047
|
-
const tag = reader.uint32();
|
|
1048
|
-
switch (tag >>> 3) {
|
|
1049
|
-
case 1:
|
|
1050
|
-
message.address = reader.string();
|
|
1051
|
-
break;
|
|
1052
|
-
case 2:
|
|
1053
|
-
message.currentBond = reader.string();
|
|
1054
|
-
break;
|
|
1055
|
-
case 3:
|
|
1056
|
-
message.totalCommittedBond = reader.string();
|
|
1057
|
-
break;
|
|
1058
|
-
case 4:
|
|
1059
|
-
message.bondStatus = reader.int32();
|
|
1060
|
-
break;
|
|
1061
|
-
case 5:
|
|
1062
|
-
message.bondedAt = reader.int64();
|
|
1063
|
-
break;
|
|
1064
|
-
case 6:
|
|
1065
|
-
message.demotionCooldownUntil = reader.int64();
|
|
1066
|
-
break;
|
|
1067
|
-
case 7:
|
|
1068
|
-
message.totalVerifications = reader.uint64();
|
|
1069
|
-
break;
|
|
1070
|
-
case 8:
|
|
1071
|
-
message.upheldVerifications = reader.uint64();
|
|
1072
|
-
break;
|
|
1073
|
-
case 9:
|
|
1074
|
-
message.overturnedVerifications = reader.uint64();
|
|
1075
|
-
break;
|
|
1076
|
-
case 10:
|
|
1077
|
-
message.unchallengedVerifications = reader.uint64();
|
|
1078
|
-
break;
|
|
1079
|
-
case 11:
|
|
1080
|
-
message.epochVerifications = reader.uint64();
|
|
1081
|
-
break;
|
|
1082
|
-
case 12:
|
|
1083
|
-
message.epochChallengesResolved = reader.uint64();
|
|
1084
|
-
break;
|
|
1085
|
-
case 13:
|
|
1086
|
-
message.lastRewardEpoch = reader.int64();
|
|
1087
|
-
break;
|
|
1088
|
-
case 14:
|
|
1089
|
-
message.lastActiveEpoch = reader.int64();
|
|
1090
|
-
break;
|
|
1091
|
-
case 15:
|
|
1092
|
-
message.consecutiveOverturns = reader.uint64();
|
|
1093
|
-
break;
|
|
1094
|
-
case 16:
|
|
1095
|
-
message.consecutiveUpheld = reader.uint64();
|
|
1096
|
-
break;
|
|
1097
|
-
case 17:
|
|
1098
|
-
message.overturnCooldownUntil = reader.int64();
|
|
1099
|
-
break;
|
|
1100
|
-
case 18:
|
|
1101
|
-
message.slashCount = reader.uint64();
|
|
1102
|
-
break;
|
|
1103
|
-
default:
|
|
1104
|
-
reader.skipType(tag & 7);
|
|
1105
|
-
break;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
return message;
|
|
1109
|
-
},
|
|
1110
|
-
fromPartial(object) {
|
|
1111
|
-
const message = createBaseFederationVerifier();
|
|
1112
|
-
message.address = object.address ?? "";
|
|
1113
|
-
message.currentBond = object.currentBond ?? "";
|
|
1114
|
-
message.totalCommittedBond = object.totalCommittedBond ?? "";
|
|
1115
|
-
message.bondStatus = object.bondStatus ?? 0;
|
|
1116
|
-
message.bondedAt = object.bondedAt !== undefined && object.bondedAt !== null ? BigInt(object.bondedAt.toString()) : BigInt(0);
|
|
1117
|
-
message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
|
|
1118
|
-
message.totalVerifications = object.totalVerifications !== undefined && object.totalVerifications !== null ? BigInt(object.totalVerifications.toString()) : BigInt(0);
|
|
1119
|
-
message.upheldVerifications = object.upheldVerifications !== undefined && object.upheldVerifications !== null ? BigInt(object.upheldVerifications.toString()) : BigInt(0);
|
|
1120
|
-
message.overturnedVerifications = object.overturnedVerifications !== undefined && object.overturnedVerifications !== null ? BigInt(object.overturnedVerifications.toString()) : BigInt(0);
|
|
1121
|
-
message.unchallengedVerifications = object.unchallengedVerifications !== undefined && object.unchallengedVerifications !== null ? BigInt(object.unchallengedVerifications.toString()) : BigInt(0);
|
|
1122
|
-
message.epochVerifications = object.epochVerifications !== undefined && object.epochVerifications !== null ? BigInt(object.epochVerifications.toString()) : BigInt(0);
|
|
1123
|
-
message.epochChallengesResolved = object.epochChallengesResolved !== undefined && object.epochChallengesResolved !== null ? BigInt(object.epochChallengesResolved.toString()) : BigInt(0);
|
|
1124
|
-
message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
|
|
1125
|
-
message.lastActiveEpoch = object.lastActiveEpoch !== undefined && object.lastActiveEpoch !== null ? BigInt(object.lastActiveEpoch.toString()) : BigInt(0);
|
|
1126
|
-
message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
|
|
1127
|
-
message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
|
|
1128
|
-
message.overturnCooldownUntil = object.overturnCooldownUntil !== undefined && object.overturnCooldownUntil !== null ? BigInt(object.overturnCooldownUntil.toString()) : BigInt(0);
|
|
1129
|
-
message.slashCount = object.slashCount !== undefined && object.slashCount !== null ? BigInt(object.slashCount.toString()) : BigInt(0);
|
|
1130
|
-
return message;
|
|
1131
|
-
},
|
|
1132
|
-
fromAmino(object) {
|
|
1133
|
-
const message = createBaseFederationVerifier();
|
|
1134
|
-
if (object.address !== undefined && object.address !== null) {
|
|
1135
|
-
message.address = object.address;
|
|
1136
|
-
}
|
|
1137
|
-
if (object.current_bond !== undefined && object.current_bond !== null) {
|
|
1138
|
-
message.currentBond = object.current_bond;
|
|
1139
|
-
}
|
|
1140
|
-
if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
|
|
1141
|
-
message.totalCommittedBond = object.total_committed_bond;
|
|
1142
|
-
}
|
|
1143
|
-
if (object.bond_status !== undefined && object.bond_status !== null) {
|
|
1144
|
-
message.bondStatus = object.bond_status;
|
|
1145
|
-
}
|
|
1146
|
-
if (object.bonded_at !== undefined && object.bonded_at !== null) {
|
|
1147
|
-
message.bondedAt = BigInt(object.bonded_at);
|
|
1148
|
-
}
|
|
1149
|
-
if (object.demotion_cooldown_until !== undefined && object.demotion_cooldown_until !== null) {
|
|
1150
|
-
message.demotionCooldownUntil = BigInt(object.demotion_cooldown_until);
|
|
1151
|
-
}
|
|
1152
|
-
if (object.total_verifications !== undefined && object.total_verifications !== null) {
|
|
1153
|
-
message.totalVerifications = BigInt(object.total_verifications);
|
|
1154
|
-
}
|
|
1155
|
-
if (object.upheld_verifications !== undefined && object.upheld_verifications !== null) {
|
|
1156
|
-
message.upheldVerifications = BigInt(object.upheld_verifications);
|
|
1157
|
-
}
|
|
1158
|
-
if (object.overturned_verifications !== undefined && object.overturned_verifications !== null) {
|
|
1159
|
-
message.overturnedVerifications = BigInt(object.overturned_verifications);
|
|
1160
|
-
}
|
|
1161
|
-
if (object.unchallenged_verifications !== undefined && object.unchallenged_verifications !== null) {
|
|
1162
|
-
message.unchallengedVerifications = BigInt(object.unchallenged_verifications);
|
|
1163
|
-
}
|
|
1164
|
-
if (object.epoch_verifications !== undefined && object.epoch_verifications !== null) {
|
|
1165
|
-
message.epochVerifications = BigInt(object.epoch_verifications);
|
|
1166
|
-
}
|
|
1167
|
-
if (object.epoch_challenges_resolved !== undefined && object.epoch_challenges_resolved !== null) {
|
|
1168
|
-
message.epochChallengesResolved = BigInt(object.epoch_challenges_resolved);
|
|
1169
|
-
}
|
|
1170
|
-
if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
|
|
1171
|
-
message.lastRewardEpoch = BigInt(object.last_reward_epoch);
|
|
1172
|
-
}
|
|
1173
|
-
if (object.last_active_epoch !== undefined && object.last_active_epoch !== null) {
|
|
1174
|
-
message.lastActiveEpoch = BigInt(object.last_active_epoch);
|
|
1175
|
-
}
|
|
1176
|
-
if (object.consecutive_overturns !== undefined && object.consecutive_overturns !== null) {
|
|
1177
|
-
message.consecutiveOverturns = BigInt(object.consecutive_overturns);
|
|
1178
|
-
}
|
|
1179
|
-
if (object.consecutive_upheld !== undefined && object.consecutive_upheld !== null) {
|
|
1180
|
-
message.consecutiveUpheld = BigInt(object.consecutive_upheld);
|
|
1181
|
-
}
|
|
1182
|
-
if (object.overturn_cooldown_until !== undefined && object.overturn_cooldown_until !== null) {
|
|
1183
|
-
message.overturnCooldownUntil = BigInt(object.overturn_cooldown_until);
|
|
1184
|
-
}
|
|
1185
|
-
if (object.slash_count !== undefined && object.slash_count !== null) {
|
|
1186
|
-
message.slashCount = BigInt(object.slash_count);
|
|
1187
|
-
}
|
|
1188
|
-
return message;
|
|
1189
|
-
},
|
|
1190
|
-
toAmino(message) {
|
|
1191
|
-
const obj = {};
|
|
1192
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
1193
|
-
obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
|
|
1194
|
-
obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
|
|
1195
|
-
obj.bond_status = message.bondStatus === 0 ? undefined : message.bondStatus;
|
|
1196
|
-
obj.bonded_at = message.bondedAt !== BigInt(0) ? message.bondedAt?.toString() : undefined;
|
|
1197
|
-
obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
|
|
1198
|
-
obj.total_verifications = message.totalVerifications !== BigInt(0) ? message.totalVerifications?.toString() : undefined;
|
|
1199
|
-
obj.upheld_verifications = message.upheldVerifications !== BigInt(0) ? message.upheldVerifications?.toString() : undefined;
|
|
1200
|
-
obj.overturned_verifications = message.overturnedVerifications !== BigInt(0) ? message.overturnedVerifications?.toString() : undefined;
|
|
1201
|
-
obj.unchallenged_verifications = message.unchallengedVerifications !== BigInt(0) ? message.unchallengedVerifications?.toString() : undefined;
|
|
1202
|
-
obj.epoch_verifications = message.epochVerifications !== BigInt(0) ? message.epochVerifications?.toString() : undefined;
|
|
1203
|
-
obj.epoch_challenges_resolved = message.epochChallengesResolved !== BigInt(0) ? message.epochChallengesResolved?.toString() : undefined;
|
|
1204
|
-
obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
|
|
1205
|
-
obj.last_active_epoch = message.lastActiveEpoch !== BigInt(0) ? message.lastActiveEpoch?.toString() : undefined;
|
|
1206
|
-
obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
|
|
1207
|
-
obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
|
|
1208
|
-
obj.overturn_cooldown_until = message.overturnCooldownUntil !== BigInt(0) ? message.overturnCooldownUntil?.toString() : undefined;
|
|
1209
|
-
obj.slash_count = message.slashCount !== BigInt(0) ? message.slashCount?.toString() : undefined;
|
|
1210
|
-
return obj;
|
|
1211
|
-
},
|
|
1212
|
-
fromAminoMsg(object) {
|
|
1213
|
-
return FederationVerifier.fromAmino(object.value);
|
|
1214
|
-
},
|
|
1215
|
-
fromProtoMsg(message) {
|
|
1216
|
-
return FederationVerifier.decode(message.value);
|
|
1217
|
-
},
|
|
1218
|
-
toProto(message) {
|
|
1219
|
-
return FederationVerifier.encode(message).finish();
|
|
1220
|
-
},
|
|
1221
|
-
toProtoMsg(message) {
|
|
1222
|
-
return {
|
|
1223
|
-
typeUrl: "/sparkdream.federation.v1.FederationVerifier",
|
|
1224
|
-
value: FederationVerifier.encode(message).finish()
|
|
1225
|
-
};
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
911
|
function createBaseVerificationRecord() {
|
|
1229
912
|
return {
|
|
1230
913
|
contentId: BigInt(0),
|
|
@@ -1787,7 +1470,8 @@ function createBaseIdentityLink() {
|
|
|
1787
1470
|
remoteIdentity: "",
|
|
1788
1471
|
status: 0,
|
|
1789
1472
|
linkedAt: BigInt(0),
|
|
1790
|
-
verifiedAt: BigInt(0)
|
|
1473
|
+
verifiedAt: BigInt(0),
|
|
1474
|
+
challenge: new Uint8Array()
|
|
1791
1475
|
};
|
|
1792
1476
|
}
|
|
1793
1477
|
/**
|
|
@@ -1817,6 +1501,9 @@ export const IdentityLink = {
|
|
|
1817
1501
|
if (message.verifiedAt !== BigInt(0)) {
|
|
1818
1502
|
writer.uint32(48).int64(message.verifiedAt);
|
|
1819
1503
|
}
|
|
1504
|
+
if (message.challenge.length !== 0) {
|
|
1505
|
+
writer.uint32(58).bytes(message.challenge);
|
|
1506
|
+
}
|
|
1820
1507
|
return writer;
|
|
1821
1508
|
},
|
|
1822
1509
|
decode(input, length) {
|
|
@@ -1844,6 +1531,9 @@ export const IdentityLink = {
|
|
|
1844
1531
|
case 6:
|
|
1845
1532
|
message.verifiedAt = reader.int64();
|
|
1846
1533
|
break;
|
|
1534
|
+
case 7:
|
|
1535
|
+
message.challenge = reader.bytes();
|
|
1536
|
+
break;
|
|
1847
1537
|
default:
|
|
1848
1538
|
reader.skipType(tag & 7);
|
|
1849
1539
|
break;
|
|
@@ -1859,6 +1549,7 @@ export const IdentityLink = {
|
|
|
1859
1549
|
message.status = object.status ?? 0;
|
|
1860
1550
|
message.linkedAt = object.linkedAt !== undefined && object.linkedAt !== null ? BigInt(object.linkedAt.toString()) : BigInt(0);
|
|
1861
1551
|
message.verifiedAt = object.verifiedAt !== undefined && object.verifiedAt !== null ? BigInt(object.verifiedAt.toString()) : BigInt(0);
|
|
1552
|
+
message.challenge = object.challenge ?? new Uint8Array();
|
|
1862
1553
|
return message;
|
|
1863
1554
|
},
|
|
1864
1555
|
fromAmino(object) {
|
|
@@ -1881,6 +1572,9 @@ export const IdentityLink = {
|
|
|
1881
1572
|
if (object.verified_at !== undefined && object.verified_at !== null) {
|
|
1882
1573
|
message.verifiedAt = BigInt(object.verified_at);
|
|
1883
1574
|
}
|
|
1575
|
+
if (object.challenge !== undefined && object.challenge !== null) {
|
|
1576
|
+
message.challenge = bytesFromBase64(object.challenge);
|
|
1577
|
+
}
|
|
1884
1578
|
return message;
|
|
1885
1579
|
},
|
|
1886
1580
|
toAmino(message) {
|
|
@@ -1891,6 +1585,7 @@ export const IdentityLink = {
|
|
|
1891
1585
|
obj.status = message.status === 0 ? undefined : message.status;
|
|
1892
1586
|
obj.linked_at = message.linkedAt !== BigInt(0) ? message.linkedAt?.toString() : undefined;
|
|
1893
1587
|
obj.verified_at = message.verifiedAt !== BigInt(0) ? message.verifiedAt?.toString() : undefined;
|
|
1588
|
+
obj.challenge = message.challenge ? base64FromBytes(message.challenge) : undefined;
|
|
1894
1589
|
return obj;
|
|
1895
1590
|
},
|
|
1896
1591
|
fromAminoMsg(object) {
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
function createBaseVerifierActivity() {
|
|
4
|
+
return {
|
|
5
|
+
address: "",
|
|
6
|
+
totalVerifications: BigInt(0),
|
|
7
|
+
upheldVerifications: BigInt(0),
|
|
8
|
+
overturnedVerifications: BigInt(0),
|
|
9
|
+
unchallengedVerifications: BigInt(0),
|
|
10
|
+
epochVerifications: BigInt(0),
|
|
11
|
+
epochChallengesResolved: BigInt(0),
|
|
12
|
+
consecutiveOverturns: BigInt(0),
|
|
13
|
+
consecutiveUpheld: BigInt(0),
|
|
14
|
+
overturnCooldownUntil: BigInt(0),
|
|
15
|
+
slashCount: BigInt(0)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
20
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
21
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
22
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
23
|
+
* @name VerifierActivity
|
|
24
|
+
* @package sparkdream.federation.v1
|
|
25
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
26
|
+
*/
|
|
27
|
+
export const VerifierActivity = {
|
|
28
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity",
|
|
29
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
30
|
+
if (message.address !== "") {
|
|
31
|
+
writer.uint32(10).string(message.address);
|
|
32
|
+
}
|
|
33
|
+
if (message.totalVerifications !== BigInt(0)) {
|
|
34
|
+
writer.uint32(16).uint64(message.totalVerifications);
|
|
35
|
+
}
|
|
36
|
+
if (message.upheldVerifications !== BigInt(0)) {
|
|
37
|
+
writer.uint32(24).uint64(message.upheldVerifications);
|
|
38
|
+
}
|
|
39
|
+
if (message.overturnedVerifications !== BigInt(0)) {
|
|
40
|
+
writer.uint32(32).uint64(message.overturnedVerifications);
|
|
41
|
+
}
|
|
42
|
+
if (message.unchallengedVerifications !== BigInt(0)) {
|
|
43
|
+
writer.uint32(40).uint64(message.unchallengedVerifications);
|
|
44
|
+
}
|
|
45
|
+
if (message.epochVerifications !== BigInt(0)) {
|
|
46
|
+
writer.uint32(48).uint64(message.epochVerifications);
|
|
47
|
+
}
|
|
48
|
+
if (message.epochChallengesResolved !== BigInt(0)) {
|
|
49
|
+
writer.uint32(56).uint64(message.epochChallengesResolved);
|
|
50
|
+
}
|
|
51
|
+
if (message.consecutiveOverturns !== BigInt(0)) {
|
|
52
|
+
writer.uint32(64).uint64(message.consecutiveOverturns);
|
|
53
|
+
}
|
|
54
|
+
if (message.consecutiveUpheld !== BigInt(0)) {
|
|
55
|
+
writer.uint32(72).uint64(message.consecutiveUpheld);
|
|
56
|
+
}
|
|
57
|
+
if (message.overturnCooldownUntil !== BigInt(0)) {
|
|
58
|
+
writer.uint32(80).int64(message.overturnCooldownUntil);
|
|
59
|
+
}
|
|
60
|
+
if (message.slashCount !== BigInt(0)) {
|
|
61
|
+
writer.uint32(88).uint64(message.slashCount);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
67
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBaseVerifierActivity();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1:
|
|
73
|
+
message.address = reader.string();
|
|
74
|
+
break;
|
|
75
|
+
case 2:
|
|
76
|
+
message.totalVerifications = reader.uint64();
|
|
77
|
+
break;
|
|
78
|
+
case 3:
|
|
79
|
+
message.upheldVerifications = reader.uint64();
|
|
80
|
+
break;
|
|
81
|
+
case 4:
|
|
82
|
+
message.overturnedVerifications = reader.uint64();
|
|
83
|
+
break;
|
|
84
|
+
case 5:
|
|
85
|
+
message.unchallengedVerifications = reader.uint64();
|
|
86
|
+
break;
|
|
87
|
+
case 6:
|
|
88
|
+
message.epochVerifications = reader.uint64();
|
|
89
|
+
break;
|
|
90
|
+
case 7:
|
|
91
|
+
message.epochChallengesResolved = reader.uint64();
|
|
92
|
+
break;
|
|
93
|
+
case 8:
|
|
94
|
+
message.consecutiveOverturns = reader.uint64();
|
|
95
|
+
break;
|
|
96
|
+
case 9:
|
|
97
|
+
message.consecutiveUpheld = reader.uint64();
|
|
98
|
+
break;
|
|
99
|
+
case 10:
|
|
100
|
+
message.overturnCooldownUntil = reader.int64();
|
|
101
|
+
break;
|
|
102
|
+
case 11:
|
|
103
|
+
message.slashCount = reader.uint64();
|
|
104
|
+
break;
|
|
105
|
+
default:
|
|
106
|
+
reader.skipType(tag & 7);
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromPartial(object) {
|
|
113
|
+
const message = createBaseVerifierActivity();
|
|
114
|
+
message.address = object.address ?? "";
|
|
115
|
+
message.totalVerifications = object.totalVerifications !== undefined && object.totalVerifications !== null ? BigInt(object.totalVerifications.toString()) : BigInt(0);
|
|
116
|
+
message.upheldVerifications = object.upheldVerifications !== undefined && object.upheldVerifications !== null ? BigInt(object.upheldVerifications.toString()) : BigInt(0);
|
|
117
|
+
message.overturnedVerifications = object.overturnedVerifications !== undefined && object.overturnedVerifications !== null ? BigInt(object.overturnedVerifications.toString()) : BigInt(0);
|
|
118
|
+
message.unchallengedVerifications = object.unchallengedVerifications !== undefined && object.unchallengedVerifications !== null ? BigInt(object.unchallengedVerifications.toString()) : BigInt(0);
|
|
119
|
+
message.epochVerifications = object.epochVerifications !== undefined && object.epochVerifications !== null ? BigInt(object.epochVerifications.toString()) : BigInt(0);
|
|
120
|
+
message.epochChallengesResolved = object.epochChallengesResolved !== undefined && object.epochChallengesResolved !== null ? BigInt(object.epochChallengesResolved.toString()) : BigInt(0);
|
|
121
|
+
message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
|
|
122
|
+
message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
|
|
123
|
+
message.overturnCooldownUntil = object.overturnCooldownUntil !== undefined && object.overturnCooldownUntil !== null ? BigInt(object.overturnCooldownUntil.toString()) : BigInt(0);
|
|
124
|
+
message.slashCount = object.slashCount !== undefined && object.slashCount !== null ? BigInt(object.slashCount.toString()) : BigInt(0);
|
|
125
|
+
return message;
|
|
126
|
+
},
|
|
127
|
+
fromAmino(object) {
|
|
128
|
+
const message = createBaseVerifierActivity();
|
|
129
|
+
if (object.address !== undefined && object.address !== null) {
|
|
130
|
+
message.address = object.address;
|
|
131
|
+
}
|
|
132
|
+
if (object.total_verifications !== undefined && object.total_verifications !== null) {
|
|
133
|
+
message.totalVerifications = BigInt(object.total_verifications);
|
|
134
|
+
}
|
|
135
|
+
if (object.upheld_verifications !== undefined && object.upheld_verifications !== null) {
|
|
136
|
+
message.upheldVerifications = BigInt(object.upheld_verifications);
|
|
137
|
+
}
|
|
138
|
+
if (object.overturned_verifications !== undefined && object.overturned_verifications !== null) {
|
|
139
|
+
message.overturnedVerifications = BigInt(object.overturned_verifications);
|
|
140
|
+
}
|
|
141
|
+
if (object.unchallenged_verifications !== undefined && object.unchallenged_verifications !== null) {
|
|
142
|
+
message.unchallengedVerifications = BigInt(object.unchallenged_verifications);
|
|
143
|
+
}
|
|
144
|
+
if (object.epoch_verifications !== undefined && object.epoch_verifications !== null) {
|
|
145
|
+
message.epochVerifications = BigInt(object.epoch_verifications);
|
|
146
|
+
}
|
|
147
|
+
if (object.epoch_challenges_resolved !== undefined && object.epoch_challenges_resolved !== null) {
|
|
148
|
+
message.epochChallengesResolved = BigInt(object.epoch_challenges_resolved);
|
|
149
|
+
}
|
|
150
|
+
if (object.consecutive_overturns !== undefined && object.consecutive_overturns !== null) {
|
|
151
|
+
message.consecutiveOverturns = BigInt(object.consecutive_overturns);
|
|
152
|
+
}
|
|
153
|
+
if (object.consecutive_upheld !== undefined && object.consecutive_upheld !== null) {
|
|
154
|
+
message.consecutiveUpheld = BigInt(object.consecutive_upheld);
|
|
155
|
+
}
|
|
156
|
+
if (object.overturn_cooldown_until !== undefined && object.overturn_cooldown_until !== null) {
|
|
157
|
+
message.overturnCooldownUntil = BigInt(object.overturn_cooldown_until);
|
|
158
|
+
}
|
|
159
|
+
if (object.slash_count !== undefined && object.slash_count !== null) {
|
|
160
|
+
message.slashCount = BigInt(object.slash_count);
|
|
161
|
+
}
|
|
162
|
+
return message;
|
|
163
|
+
},
|
|
164
|
+
toAmino(message) {
|
|
165
|
+
const obj = {};
|
|
166
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
167
|
+
obj.total_verifications = message.totalVerifications !== BigInt(0) ? message.totalVerifications?.toString() : undefined;
|
|
168
|
+
obj.upheld_verifications = message.upheldVerifications !== BigInt(0) ? message.upheldVerifications?.toString() : undefined;
|
|
169
|
+
obj.overturned_verifications = message.overturnedVerifications !== BigInt(0) ? message.overturnedVerifications?.toString() : undefined;
|
|
170
|
+
obj.unchallenged_verifications = message.unchallengedVerifications !== BigInt(0) ? message.unchallengedVerifications?.toString() : undefined;
|
|
171
|
+
obj.epoch_verifications = message.epochVerifications !== BigInt(0) ? message.epochVerifications?.toString() : undefined;
|
|
172
|
+
obj.epoch_challenges_resolved = message.epochChallengesResolved !== BigInt(0) ? message.epochChallengesResolved?.toString() : undefined;
|
|
173
|
+
obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
|
|
174
|
+
obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
|
|
175
|
+
obj.overturn_cooldown_until = message.overturnCooldownUntil !== BigInt(0) ? message.overturnCooldownUntil?.toString() : undefined;
|
|
176
|
+
obj.slash_count = message.slashCount !== BigInt(0) ? message.slashCount?.toString() : undefined;
|
|
177
|
+
return obj;
|
|
178
|
+
},
|
|
179
|
+
fromAminoMsg(object) {
|
|
180
|
+
return VerifierActivity.fromAmino(object.value);
|
|
181
|
+
},
|
|
182
|
+
fromProtoMsg(message) {
|
|
183
|
+
return VerifierActivity.decode(message.value);
|
|
184
|
+
},
|
|
185
|
+
toProto(message) {
|
|
186
|
+
return VerifierActivity.encode(message).finish();
|
|
187
|
+
},
|
|
188
|
+
toProtoMsg(message) {
|
|
189
|
+
return {
|
|
190
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity",
|
|
191
|
+
value: VerifierActivity.encode(message).finish()
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
};
|