@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.18
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 +51 -50
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +13 -1
- package/esm/sparkdream/collect/v1/types.js +13 -1
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +317 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
- package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
- package/esm/sparkdream/commons/v1/tx.js +693 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
- package/esm/sparkdream/federation/v1/genesis.js +10 -10
- package/esm/sparkdream/federation/v1/params.js +29 -54
- package/esm/sparkdream/federation/v1/query.js +216 -71
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
- package/esm/sparkdream/federation/v1/tx.js +1146 -1105
- package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
- package/esm/sparkdream/federation/v1/types.js +355 -99
- package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +173 -148
- package/esm/sparkdream/guardian/module/v1/module.js +68 -0
- package/esm/sparkdream/guardian/v1/query.js +128 -0
- package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
- package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
- package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
- package/esm/sparkdream/guardian/v1/tx.js +175 -0
- package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
- package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
- package/esm/sparkdream/identity/module/v1/module.js +71 -0
- package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
- package/esm/sparkdream/identity/v1/genesis.js +84 -0
- package/esm/sparkdream/identity/v1/query.js +372 -0
- package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
- package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
- package/esm/sparkdream/lcd.js +15 -0
- package/esm/sparkdream/name/v1/params.js +19 -18
- package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
- package/esm/sparkdream/rep/v1/tag.js +6 -13
- package/esm/sparkdream/rpc.query.js +9 -0
- package/esm/sparkdream/rpc.tx.js +6 -0
- package/esm/sparkdream/service/module/v1/module.js +71 -0
- package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
- package/esm/sparkdream/service/v1/genesis.js +240 -0
- package/esm/sparkdream/service/v1/operator.js +250 -0
- package/esm/sparkdream/service/v1/params.js +355 -0
- package/esm/sparkdream/service/v1/query.js +1582 -0
- package/esm/sparkdream/service/v1/query.lcd.js +107 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
- package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
- package/esm/sparkdream/service/v1/report.js +212 -0
- package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
- package/esm/sparkdream/service/v1/service_type_config.js +264 -0
- package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
- package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
- package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
- package/esm/sparkdream/service/v1/tx.amino.js +69 -0
- package/esm/sparkdream/service/v1/tx.js +2124 -0
- package/esm/sparkdream/service/v1/tx.registry.js +249 -0
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
- package/esm/sparkdream/service/v1/types.js +353 -0
- package/esm/sparkdream/session/v1/genesis.js +136 -10
- package/esm/sparkdream/session/v1/grant.js +1020 -0
- package/esm/sparkdream/session/v1/params.js +543 -19
- package/esm/sparkdream/session/v1/query.js +487 -0
- package/esm/sparkdream/session/v1/query.lcd.js +41 -3
- package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
- package/esm/sparkdream/session/v1/session.js +6 -0
- package/esm/sparkdream/session/v1/tx.js +1066 -0
- package/esm/sparkdream/session/v1/tx.registry.js +110 -2
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
- package/esm/tendermint/bundle.js +20 -20
- 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 +37 -28
- package/sparkdream/blog/v1/params.js +51 -50
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.d.ts +4 -4
- package/sparkdream/bundle.d.ts +14912 -12896
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +90 -20
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +16 -0
- package/sparkdream/collect/v1/params.js +13 -1
- package/sparkdream/collect/v1/types.d.ts +2 -0
- package/sparkdream/collect/v1/types.js +13 -1
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +186 -0
- package/sparkdream/commons/v1/query.js +318 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +23 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
- package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
- package/sparkdream/commons/v1/recurring_spend.js +301 -0
- package/sparkdream/commons/v1/tx.d.ts +472 -0
- package/sparkdream/commons/v1/tx.js +694 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
- package/sparkdream/federation/v1/genesis.d.ts +3 -3
- package/sparkdream/federation/v1/genesis.js +9 -9
- package/sparkdream/federation/v1/params.d.ts +64 -13
- package/sparkdream/federation/v1/params.js +29 -54
- package/sparkdream/federation/v1/query.d.ts +209 -100
- package/sparkdream/federation/v1/query.js +216 -71
- package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
- package/sparkdream/federation/v1/query.lcd.js +11 -6
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
- package/sparkdream/federation/v1/tx.amino.js +20 -20
- package/sparkdream/federation/v1/tx.d.ts +479 -352
- package/sparkdream/federation/v1/tx.js +1147 -1106
- package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
- package/sparkdream/federation/v1/tx.registry.js +73 -73
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
- package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
- package/sparkdream/federation/v1/types.d.ts +307 -41
- package/sparkdream/federation/v1/types.js +360 -100
- package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
- package/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +99 -62
- package/sparkdream/forum/v1/params.js +173 -148
- package/sparkdream/guardian/module/v1/module.d.ts +74 -0
- package/sparkdream/guardian/module/v1/module.js +71 -0
- package/sparkdream/guardian/v1/query.d.ts +88 -0
- package/sparkdream/guardian/v1/query.js +131 -0
- package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
- package/sparkdream/guardian/v1/query.lcd.js +17 -0
- package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
- package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
- package/sparkdream/guardian/v1/tx.amino.js +12 -0
- package/sparkdream/guardian/v1/tx.d.ts +138 -0
- package/sparkdream/guardian/v1/tx.js +181 -0
- package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
- package/sparkdream/guardian/v1/tx.registry.js +37 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/identity/module/v1/module.d.ts +54 -0
- package/sparkdream/identity/module/v1/module.js +74 -0
- package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
- package/sparkdream/identity/v1/chain_identity.js +202 -0
- package/sparkdream/identity/v1/genesis.d.ts +65 -0
- package/sparkdream/identity/v1/genesis.js +87 -0
- package/sparkdream/identity/v1/query.d.ts +243 -0
- package/sparkdream/identity/v1/query.js +375 -0
- package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
- package/sparkdream/identity/v1/query.lcd.js +25 -0
- package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
- package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
- package/sparkdream/lcd.d.ts +9 -0
- package/sparkdream/lcd.js +15 -0
- package/sparkdream/name/v1/params.d.ts +25 -8
- package/sparkdream/name/v1/params.js +19 -18
- package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
- package/sparkdream/rep/v1/bonded_role.js +48 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -13
- package/sparkdream/rpc.query.d.ts +34 -2
- package/sparkdream/rpc.query.js +9 -0
- package/sparkdream/rpc.tx.d.ts +6 -0
- package/sparkdream/rpc.tx.js +6 -0
- package/sparkdream/service/module/v1/module.d.ts +54 -0
- package/sparkdream/service/module/v1/module.js +74 -0
- package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
- package/sparkdream/service/v1/controller_transfer_case.js +158 -0
- package/sparkdream/service/v1/genesis.d.ts +172 -0
- package/sparkdream/service/v1/genesis.js +243 -0
- package/sparkdream/service/v1/operator.d.ts +215 -0
- package/sparkdream/service/v1/operator.js +253 -0
- package/sparkdream/service/v1/params.d.ts +346 -0
- package/sparkdream/service/v1/params.js +358 -0
- package/sparkdream/service/v1/query.d.ts +964 -0
- package/sparkdream/service/v1/query.js +1585 -0
- package/sparkdream/service/v1/query.lcd.d.ts +18 -0
- package/sparkdream/service/v1/query.lcd.js +111 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
- package/sparkdream/service/v1/query.rpc.Query.js +114 -0
- package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
- package/sparkdream/service/v1/refile_cooldown.js +124 -0
- package/sparkdream/service/v1/report.d.ts +174 -0
- package/sparkdream/service/v1/report.js +215 -0
- package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
- package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
- package/sparkdream/service/v1/service_type_config.d.ts +222 -0
- package/sparkdream/service/v1/service_type_config.js +269 -0
- package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
- package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
- package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
- package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
- package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
- package/sparkdream/service/v1/tier1_last_slash.js +124 -0
- package/sparkdream/service/v1/tx.amino.d.ts +68 -0
- package/sparkdream/service/v1/tx.amino.js +72 -0
- package/sparkdream/service/v1/tx.d.ts +1264 -0
- package/sparkdream/service/v1/tx.js +2127 -0
- package/sparkdream/service/v1/tx.registry.d.ts +169 -0
- package/sparkdream/service/v1/tx.registry.js +253 -0
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
- package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
- package/sparkdream/service/v1/types.d.ts +94 -0
- package/sparkdream/service/v1/types.js +370 -0
- package/sparkdream/session/v1/genesis.d.ts +93 -9
- package/sparkdream/session/v1/genesis.js +137 -11
- package/sparkdream/session/v1/grant.d.ts +517 -0
- package/sparkdream/session/v1/grant.js +1027 -0
- package/sparkdream/session/v1/params.d.ts +338 -7
- package/sparkdream/session/v1/params.js +543 -19
- package/sparkdream/session/v1/query.d.ts +265 -0
- package/sparkdream/session/v1/query.js +488 -1
- package/sparkdream/session/v1/query.lcd.d.ts +4 -1
- package/sparkdream/session/v1/query.lcd.js +41 -3
- package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
- package/sparkdream/session/v1/query.rpc.Query.js +35 -3
- package/sparkdream/session/v1/session.d.ts +18 -0
- package/sparkdream/session/v1/session.js +6 -0
- package/sparkdream/session/v1/tx.d.ts +660 -0
- package/sparkdream/session/v1/tx.js +1067 -1
- package/sparkdream/session/v1/tx.registry.d.ts +73 -1
- package/sparkdream/session/v1/tx.registry.js +109 -1
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
- package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MsgPruneOrphanBindingsResponse = exports.MsgPruneOrphanBindings = exports.MsgResyncBridgeCountResponse = exports.MsgResyncBridgeCount = exports.MsgUpdatePeerControllerResponse = exports.MsgUpdatePeerController = exports.MsgUpdateOperationalParamsResponse = exports.MsgUpdateOperationalParams = exports.MsgResolveEscalatedChallengeResponse = exports.MsgResolveEscalatedChallenge = exports.MsgEscalateChallengeResponse = exports.MsgEscalateChallenge = exports.MsgSubmitArbiterHashResponse = exports.MsgSubmitArbiterHash = exports.MsgChallengeVerificationResponse = exports.MsgChallengeVerification = exports.MsgVerifyContentResponse = exports.MsgVerifyContent = exports.MsgRequestReputationAttestationResponse = exports.MsgRequestReputationAttestation = exports.MsgConfirmIdentityLinkResponse = exports.MsgConfirmIdentityLink = exports.MsgUnlinkIdentityResponse = exports.MsgUnlinkIdentity = exports.MsgLinkIdentityResponse = exports.MsgLinkIdentity = exports.MsgModerateContentResponse = exports.MsgModerateContent = exports.MsgAttestOutboundResponse = exports.MsgAttestOutbound = exports.MsgFederateContentResponse = exports.MsgFederateContent = exports.MsgSubmitFederatedContentResponse = exports.MsgSubmitFederatedContent = exports.MsgUpdateBridgeResponse = exports.MsgUpdateBridge = exports.MsgRegisterBridgeResponse = exports.MsgRegisterBridge = exports.MsgUpdatePeerPolicyResponse = exports.MsgUpdatePeerPolicy = exports.MsgResumePeerResponse = exports.MsgResumePeer = exports.MsgSuspendPeerResponse = exports.MsgSuspendPeer = exports.MsgRemovePeerResponse = exports.MsgRemovePeer = exports.MsgRegisterPeerResponse = exports.MsgRegisterPeer = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
6
|
const types_1 = require("./types");
|
|
7
|
-
const
|
|
7
|
+
const chain_identity_1 = require("../../identity/v1/chain_identity");
|
|
8
8
|
const binary_1 = require("../../../binary");
|
|
9
9
|
const helpers_1 = require("../../../helpers");
|
|
10
10
|
function createBaseMsgUpdateParams() {
|
|
@@ -156,7 +156,9 @@ function createBaseMsgRegisterPeer() {
|
|
|
156
156
|
displayName: "",
|
|
157
157
|
type: 0,
|
|
158
158
|
ibcChannelId: "",
|
|
159
|
-
metadata: ""
|
|
159
|
+
metadata: "",
|
|
160
|
+
controllerGroup: "",
|
|
161
|
+
peerIdentity: undefined
|
|
160
162
|
};
|
|
161
163
|
}
|
|
162
164
|
/**
|
|
@@ -186,6 +188,12 @@ exports.MsgRegisterPeer = {
|
|
|
186
188
|
if (message.metadata !== "") {
|
|
187
189
|
writer.uint32(50).string(message.metadata);
|
|
188
190
|
}
|
|
191
|
+
if (message.controllerGroup !== "") {
|
|
192
|
+
writer.uint32(58).string(message.controllerGroup);
|
|
193
|
+
}
|
|
194
|
+
if (message.peerIdentity !== undefined) {
|
|
195
|
+
chain_identity_1.ChainIdentity.encode(message.peerIdentity, writer.uint32(66).fork()).ldelim();
|
|
196
|
+
}
|
|
189
197
|
return writer;
|
|
190
198
|
},
|
|
191
199
|
decode(input, length) {
|
|
@@ -213,6 +221,12 @@ exports.MsgRegisterPeer = {
|
|
|
213
221
|
case 6:
|
|
214
222
|
message.metadata = reader.string();
|
|
215
223
|
break;
|
|
224
|
+
case 7:
|
|
225
|
+
message.controllerGroup = reader.string();
|
|
226
|
+
break;
|
|
227
|
+
case 8:
|
|
228
|
+
message.peerIdentity = chain_identity_1.ChainIdentity.decode(reader, reader.uint32());
|
|
229
|
+
break;
|
|
216
230
|
default:
|
|
217
231
|
reader.skipType(tag & 7);
|
|
218
232
|
break;
|
|
@@ -228,6 +242,8 @@ exports.MsgRegisterPeer = {
|
|
|
228
242
|
message.type = object.type ?? 0;
|
|
229
243
|
message.ibcChannelId = object.ibcChannelId ?? "";
|
|
230
244
|
message.metadata = object.metadata ?? "";
|
|
245
|
+
message.controllerGroup = object.controllerGroup ?? "";
|
|
246
|
+
message.peerIdentity = object.peerIdentity !== undefined && object.peerIdentity !== null ? chain_identity_1.ChainIdentity.fromPartial(object.peerIdentity) : undefined;
|
|
231
247
|
return message;
|
|
232
248
|
},
|
|
233
249
|
fromAmino(object) {
|
|
@@ -250,6 +266,12 @@ exports.MsgRegisterPeer = {
|
|
|
250
266
|
if (object.metadata !== undefined && object.metadata !== null) {
|
|
251
267
|
message.metadata = object.metadata;
|
|
252
268
|
}
|
|
269
|
+
if (object.controller_group !== undefined && object.controller_group !== null) {
|
|
270
|
+
message.controllerGroup = object.controller_group;
|
|
271
|
+
}
|
|
272
|
+
if (object.peer_identity !== undefined && object.peer_identity !== null) {
|
|
273
|
+
message.peerIdentity = chain_identity_1.ChainIdentity.fromAmino(object.peer_identity);
|
|
274
|
+
}
|
|
253
275
|
return message;
|
|
254
276
|
},
|
|
255
277
|
toAmino(message) {
|
|
@@ -260,6 +282,8 @@ exports.MsgRegisterPeer = {
|
|
|
260
282
|
obj.type = message.type === 0 ? undefined : message.type;
|
|
261
283
|
obj.ibc_channel_id = message.ibcChannelId === "" ? undefined : message.ibcChannelId;
|
|
262
284
|
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
285
|
+
obj.controller_group = message.controllerGroup === "" ? undefined : message.controllerGroup;
|
|
286
|
+
obj.peer_identity = message.peerIdentity ? chain_identity_1.ChainIdentity.toAmino(message.peerIdentity) : undefined;
|
|
263
287
|
return obj;
|
|
264
288
|
},
|
|
265
289
|
fromAminoMsg(object) {
|
|
@@ -945,14 +969,19 @@ exports.MsgUpdatePeerPolicyResponse = {
|
|
|
945
969
|
};
|
|
946
970
|
function createBaseMsgRegisterBridge() {
|
|
947
971
|
return {
|
|
948
|
-
authority: "",
|
|
949
972
|
operator: "",
|
|
950
973
|
peerId: "",
|
|
951
974
|
protocol: "",
|
|
952
|
-
endpoint: ""
|
|
975
|
+
endpoint: "",
|
|
976
|
+
stakeAmount: ""
|
|
953
977
|
};
|
|
954
978
|
}
|
|
955
979
|
/**
|
|
980
|
+
* MsgRegisterBridge registers a bridge operator for a peer. Operator-
|
|
981
|
+
* signed (federation→service migration): the operator pays their own
|
|
982
|
+
* bond into x/service, so they must sign the tx. Peer existence and
|
|
983
|
+
* per-peer cap are federation-side gates; bond amount, slash caps,
|
|
984
|
+
* unbonding period live on x/service ServiceTypeConfig per service_type.
|
|
956
985
|
* @name MsgRegisterBridge
|
|
957
986
|
* @package sparkdream.federation.v1
|
|
958
987
|
* @see proto type: sparkdream.federation.v1.MsgRegisterBridge
|
|
@@ -961,20 +990,20 @@ exports.MsgRegisterBridge = {
|
|
|
961
990
|
typeUrl: "/sparkdream.federation.v1.MsgRegisterBridge",
|
|
962
991
|
aminoType: "sparkdream/x/federation/MsgRegisterBridge",
|
|
963
992
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
964
|
-
if (message.authority !== "") {
|
|
965
|
-
writer.uint32(10).string(message.authority);
|
|
966
|
-
}
|
|
967
993
|
if (message.operator !== "") {
|
|
968
|
-
writer.uint32(
|
|
994
|
+
writer.uint32(10).string(message.operator);
|
|
969
995
|
}
|
|
970
996
|
if (message.peerId !== "") {
|
|
971
|
-
writer.uint32(
|
|
997
|
+
writer.uint32(18).string(message.peerId);
|
|
972
998
|
}
|
|
973
999
|
if (message.protocol !== "") {
|
|
974
|
-
writer.uint32(
|
|
1000
|
+
writer.uint32(26).string(message.protocol);
|
|
975
1001
|
}
|
|
976
1002
|
if (message.endpoint !== "") {
|
|
977
|
-
writer.uint32(
|
|
1003
|
+
writer.uint32(34).string(message.endpoint);
|
|
1004
|
+
}
|
|
1005
|
+
if (message.stakeAmount !== "") {
|
|
1006
|
+
writer.uint32(42).string(message.stakeAmount);
|
|
978
1007
|
}
|
|
979
1008
|
return writer;
|
|
980
1009
|
},
|
|
@@ -986,19 +1015,19 @@ exports.MsgRegisterBridge = {
|
|
|
986
1015
|
const tag = reader.uint32();
|
|
987
1016
|
switch (tag >>> 3) {
|
|
988
1017
|
case 1:
|
|
989
|
-
message.
|
|
1018
|
+
message.operator = reader.string();
|
|
990
1019
|
break;
|
|
991
1020
|
case 2:
|
|
992
|
-
message.
|
|
1021
|
+
message.peerId = reader.string();
|
|
993
1022
|
break;
|
|
994
1023
|
case 3:
|
|
995
|
-
message.
|
|
1024
|
+
message.protocol = reader.string();
|
|
996
1025
|
break;
|
|
997
1026
|
case 4:
|
|
998
|
-
message.
|
|
1027
|
+
message.endpoint = reader.string();
|
|
999
1028
|
break;
|
|
1000
1029
|
case 5:
|
|
1001
|
-
message.
|
|
1030
|
+
message.stakeAmount = reader.string();
|
|
1002
1031
|
break;
|
|
1003
1032
|
default:
|
|
1004
1033
|
reader.skipType(tag & 7);
|
|
@@ -1009,18 +1038,15 @@ exports.MsgRegisterBridge = {
|
|
|
1009
1038
|
},
|
|
1010
1039
|
fromPartial(object) {
|
|
1011
1040
|
const message = createBaseMsgRegisterBridge();
|
|
1012
|
-
message.authority = object.authority ?? "";
|
|
1013
1041
|
message.operator = object.operator ?? "";
|
|
1014
1042
|
message.peerId = object.peerId ?? "";
|
|
1015
1043
|
message.protocol = object.protocol ?? "";
|
|
1016
1044
|
message.endpoint = object.endpoint ?? "";
|
|
1045
|
+
message.stakeAmount = object.stakeAmount ?? "";
|
|
1017
1046
|
return message;
|
|
1018
1047
|
},
|
|
1019
1048
|
fromAmino(object) {
|
|
1020
1049
|
const message = createBaseMsgRegisterBridge();
|
|
1021
|
-
if (object.authority !== undefined && object.authority !== null) {
|
|
1022
|
-
message.authority = object.authority;
|
|
1023
|
-
}
|
|
1024
1050
|
if (object.operator !== undefined && object.operator !== null) {
|
|
1025
1051
|
message.operator = object.operator;
|
|
1026
1052
|
}
|
|
@@ -1033,15 +1059,18 @@ exports.MsgRegisterBridge = {
|
|
|
1033
1059
|
if (object.endpoint !== undefined && object.endpoint !== null) {
|
|
1034
1060
|
message.endpoint = object.endpoint;
|
|
1035
1061
|
}
|
|
1062
|
+
if (object.stake_amount !== undefined && object.stake_amount !== null) {
|
|
1063
|
+
message.stakeAmount = object.stake_amount;
|
|
1064
|
+
}
|
|
1036
1065
|
return message;
|
|
1037
1066
|
},
|
|
1038
1067
|
toAmino(message) {
|
|
1039
1068
|
const obj = {};
|
|
1040
|
-
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1041
1069
|
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1042
1070
|
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1043
1071
|
obj.protocol = message.protocol === "" ? undefined : message.protocol;
|
|
1044
1072
|
obj.endpoint = message.endpoint === "" ? undefined : message.endpoint;
|
|
1073
|
+
obj.stake_amount = message.stakeAmount === "" ? undefined : message.stakeAmount;
|
|
1045
1074
|
return obj;
|
|
1046
1075
|
},
|
|
1047
1076
|
fromAminoMsg(object) {
|
|
@@ -1121,22 +1150,22 @@ exports.MsgRegisterBridgeResponse = {
|
|
|
1121
1150
|
};
|
|
1122
1151
|
}
|
|
1123
1152
|
};
|
|
1124
|
-
function
|
|
1153
|
+
function createBaseMsgUpdateBridge() {
|
|
1125
1154
|
return {
|
|
1126
1155
|
authority: "",
|
|
1127
1156
|
operator: "",
|
|
1128
1157
|
peerId: "",
|
|
1129
|
-
|
|
1158
|
+
endpoint: ""
|
|
1130
1159
|
};
|
|
1131
1160
|
}
|
|
1132
1161
|
/**
|
|
1133
|
-
* @name
|
|
1162
|
+
* @name MsgUpdateBridge
|
|
1134
1163
|
* @package sparkdream.federation.v1
|
|
1135
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1164
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateBridge
|
|
1136
1165
|
*/
|
|
1137
|
-
exports.
|
|
1138
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1139
|
-
aminoType: "sparkdream/x/federation/
|
|
1166
|
+
exports.MsgUpdateBridge = {
|
|
1167
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateBridge",
|
|
1168
|
+
aminoType: "sparkdream/x/federation/MsgUpdateBridge",
|
|
1140
1169
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1141
1170
|
if (message.authority !== "") {
|
|
1142
1171
|
writer.uint32(10).string(message.authority);
|
|
@@ -1147,15 +1176,15 @@ exports.MsgRevokeBridge = {
|
|
|
1147
1176
|
if (message.peerId !== "") {
|
|
1148
1177
|
writer.uint32(26).string(message.peerId);
|
|
1149
1178
|
}
|
|
1150
|
-
if (message.
|
|
1151
|
-
writer.uint32(34).string(message.
|
|
1179
|
+
if (message.endpoint !== "") {
|
|
1180
|
+
writer.uint32(34).string(message.endpoint);
|
|
1152
1181
|
}
|
|
1153
1182
|
return writer;
|
|
1154
1183
|
},
|
|
1155
1184
|
decode(input, length) {
|
|
1156
1185
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1157
1186
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1158
|
-
const message =
|
|
1187
|
+
const message = createBaseMsgUpdateBridge();
|
|
1159
1188
|
while (reader.pos < end) {
|
|
1160
1189
|
const tag = reader.uint32();
|
|
1161
1190
|
switch (tag >>> 3) {
|
|
@@ -1169,7 +1198,7 @@ exports.MsgRevokeBridge = {
|
|
|
1169
1198
|
message.peerId = reader.string();
|
|
1170
1199
|
break;
|
|
1171
1200
|
case 4:
|
|
1172
|
-
message.
|
|
1201
|
+
message.endpoint = reader.string();
|
|
1173
1202
|
break;
|
|
1174
1203
|
default:
|
|
1175
1204
|
reader.skipType(tag & 7);
|
|
@@ -1179,15 +1208,15 @@ exports.MsgRevokeBridge = {
|
|
|
1179
1208
|
return message;
|
|
1180
1209
|
},
|
|
1181
1210
|
fromPartial(object) {
|
|
1182
|
-
const message =
|
|
1211
|
+
const message = createBaseMsgUpdateBridge();
|
|
1183
1212
|
message.authority = object.authority ?? "";
|
|
1184
1213
|
message.operator = object.operator ?? "";
|
|
1185
1214
|
message.peerId = object.peerId ?? "";
|
|
1186
|
-
message.
|
|
1215
|
+
message.endpoint = object.endpoint ?? "";
|
|
1187
1216
|
return message;
|
|
1188
1217
|
},
|
|
1189
1218
|
fromAmino(object) {
|
|
1190
|
-
const message =
|
|
1219
|
+
const message = createBaseMsgUpdateBridge();
|
|
1191
1220
|
if (object.authority !== undefined && object.authority !== null) {
|
|
1192
1221
|
message.authority = object.authority;
|
|
1193
1222
|
}
|
|
@@ -1197,8 +1226,8 @@ exports.MsgRevokeBridge = {
|
|
|
1197
1226
|
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1198
1227
|
message.peerId = object.peer_id;
|
|
1199
1228
|
}
|
|
1200
|
-
if (object.
|
|
1201
|
-
message.
|
|
1229
|
+
if (object.endpoint !== undefined && object.endpoint !== null) {
|
|
1230
|
+
message.endpoint = object.endpoint;
|
|
1202
1231
|
}
|
|
1203
1232
|
return message;
|
|
1204
1233
|
},
|
|
@@ -1207,48 +1236,48 @@ exports.MsgRevokeBridge = {
|
|
|
1207
1236
|
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1208
1237
|
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1209
1238
|
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1210
|
-
obj.
|
|
1239
|
+
obj.endpoint = message.endpoint === "" ? undefined : message.endpoint;
|
|
1211
1240
|
return obj;
|
|
1212
1241
|
},
|
|
1213
1242
|
fromAminoMsg(object) {
|
|
1214
|
-
return exports.
|
|
1243
|
+
return exports.MsgUpdateBridge.fromAmino(object.value);
|
|
1215
1244
|
},
|
|
1216
1245
|
toAminoMsg(message) {
|
|
1217
1246
|
return {
|
|
1218
|
-
type: "sparkdream/x/federation/
|
|
1219
|
-
value: exports.
|
|
1247
|
+
type: "sparkdream/x/federation/MsgUpdateBridge",
|
|
1248
|
+
value: exports.MsgUpdateBridge.toAmino(message)
|
|
1220
1249
|
};
|
|
1221
1250
|
},
|
|
1222
1251
|
fromProtoMsg(message) {
|
|
1223
|
-
return exports.
|
|
1252
|
+
return exports.MsgUpdateBridge.decode(message.value);
|
|
1224
1253
|
},
|
|
1225
1254
|
toProto(message) {
|
|
1226
|
-
return exports.
|
|
1255
|
+
return exports.MsgUpdateBridge.encode(message).finish();
|
|
1227
1256
|
},
|
|
1228
1257
|
toProtoMsg(message) {
|
|
1229
1258
|
return {
|
|
1230
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1231
|
-
value: exports.
|
|
1259
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateBridge",
|
|
1260
|
+
value: exports.MsgUpdateBridge.encode(message).finish()
|
|
1232
1261
|
};
|
|
1233
1262
|
}
|
|
1234
1263
|
};
|
|
1235
|
-
function
|
|
1264
|
+
function createBaseMsgUpdateBridgeResponse() {
|
|
1236
1265
|
return {};
|
|
1237
1266
|
}
|
|
1238
1267
|
/**
|
|
1239
|
-
* @name
|
|
1268
|
+
* @name MsgUpdateBridgeResponse
|
|
1240
1269
|
* @package sparkdream.federation.v1
|
|
1241
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1270
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateBridgeResponse
|
|
1242
1271
|
*/
|
|
1243
|
-
exports.
|
|
1244
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1272
|
+
exports.MsgUpdateBridgeResponse = {
|
|
1273
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateBridgeResponse",
|
|
1245
1274
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1246
1275
|
return writer;
|
|
1247
1276
|
},
|
|
1248
1277
|
decode(input, length) {
|
|
1249
1278
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1250
1279
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1251
|
-
const message =
|
|
1280
|
+
const message = createBaseMsgUpdateBridgeResponse();
|
|
1252
1281
|
while (reader.pos < end) {
|
|
1253
1282
|
const tag = reader.uint32();
|
|
1254
1283
|
switch (tag >>> 3) {
|
|
@@ -1260,11 +1289,11 @@ exports.MsgRevokeBridgeResponse = {
|
|
|
1260
1289
|
return message;
|
|
1261
1290
|
},
|
|
1262
1291
|
fromPartial(_) {
|
|
1263
|
-
const message =
|
|
1292
|
+
const message = createBaseMsgUpdateBridgeResponse();
|
|
1264
1293
|
return message;
|
|
1265
1294
|
},
|
|
1266
1295
|
fromAmino(_) {
|
|
1267
|
-
const message =
|
|
1296
|
+
const message = createBaseMsgUpdateBridgeResponse();
|
|
1268
1297
|
return message;
|
|
1269
1298
|
},
|
|
1270
1299
|
toAmino(_) {
|
|
@@ -1272,77 +1301,126 @@ exports.MsgRevokeBridgeResponse = {
|
|
|
1272
1301
|
return obj;
|
|
1273
1302
|
},
|
|
1274
1303
|
fromAminoMsg(object) {
|
|
1275
|
-
return exports.
|
|
1304
|
+
return exports.MsgUpdateBridgeResponse.fromAmino(object.value);
|
|
1276
1305
|
},
|
|
1277
1306
|
fromProtoMsg(message) {
|
|
1278
|
-
return exports.
|
|
1307
|
+
return exports.MsgUpdateBridgeResponse.decode(message.value);
|
|
1279
1308
|
},
|
|
1280
1309
|
toProto(message) {
|
|
1281
|
-
return exports.
|
|
1310
|
+
return exports.MsgUpdateBridgeResponse.encode(message).finish();
|
|
1282
1311
|
},
|
|
1283
1312
|
toProtoMsg(message) {
|
|
1284
1313
|
return {
|
|
1285
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1286
|
-
value: exports.
|
|
1314
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateBridgeResponse",
|
|
1315
|
+
value: exports.MsgUpdateBridgeResponse.encode(message).finish()
|
|
1287
1316
|
};
|
|
1288
1317
|
}
|
|
1289
1318
|
};
|
|
1290
|
-
function
|
|
1319
|
+
function createBaseMsgSubmitFederatedContent() {
|
|
1291
1320
|
return {
|
|
1292
|
-
authority: "",
|
|
1293
1321
|
operator: "",
|
|
1294
1322
|
peerId: "",
|
|
1295
|
-
|
|
1296
|
-
|
|
1323
|
+
remoteContentId: "",
|
|
1324
|
+
contentType: "",
|
|
1325
|
+
creatorIdentity: "",
|
|
1326
|
+
creatorName: "",
|
|
1327
|
+
title: "",
|
|
1328
|
+
body: "",
|
|
1329
|
+
contentUri: "",
|
|
1330
|
+
protocolMetadata: new Uint8Array(),
|
|
1331
|
+
remoteCreatedAt: BigInt(0),
|
|
1332
|
+
contentHash: new Uint8Array()
|
|
1297
1333
|
};
|
|
1298
1334
|
}
|
|
1299
1335
|
/**
|
|
1300
|
-
* @name
|
|
1336
|
+
* @name MsgSubmitFederatedContent
|
|
1301
1337
|
* @package sparkdream.federation.v1
|
|
1302
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1338
|
+
* @see proto type: sparkdream.federation.v1.MsgSubmitFederatedContent
|
|
1303
1339
|
*/
|
|
1304
|
-
exports.
|
|
1305
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1306
|
-
aminoType: "sparkdream/x/federation/
|
|
1340
|
+
exports.MsgSubmitFederatedContent = {
|
|
1341
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitFederatedContent",
|
|
1342
|
+
aminoType: "sparkdream/x/federation/MsgSubmitFederatedContent",
|
|
1307
1343
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1308
|
-
if (message.authority !== "") {
|
|
1309
|
-
writer.uint32(10).string(message.authority);
|
|
1310
|
-
}
|
|
1311
1344
|
if (message.operator !== "") {
|
|
1312
|
-
writer.uint32(
|
|
1345
|
+
writer.uint32(10).string(message.operator);
|
|
1313
1346
|
}
|
|
1314
1347
|
if (message.peerId !== "") {
|
|
1315
|
-
writer.uint32(
|
|
1348
|
+
writer.uint32(18).string(message.peerId);
|
|
1316
1349
|
}
|
|
1317
|
-
if (message.
|
|
1318
|
-
writer.uint32(
|
|
1350
|
+
if (message.remoteContentId !== "") {
|
|
1351
|
+
writer.uint32(26).string(message.remoteContentId);
|
|
1319
1352
|
}
|
|
1320
|
-
if (message.
|
|
1321
|
-
writer.uint32(
|
|
1353
|
+
if (message.contentType !== "") {
|
|
1354
|
+
writer.uint32(34).string(message.contentType);
|
|
1355
|
+
}
|
|
1356
|
+
if (message.creatorIdentity !== "") {
|
|
1357
|
+
writer.uint32(42).string(message.creatorIdentity);
|
|
1358
|
+
}
|
|
1359
|
+
if (message.creatorName !== "") {
|
|
1360
|
+
writer.uint32(50).string(message.creatorName);
|
|
1361
|
+
}
|
|
1362
|
+
if (message.title !== "") {
|
|
1363
|
+
writer.uint32(58).string(message.title);
|
|
1364
|
+
}
|
|
1365
|
+
if (message.body !== "") {
|
|
1366
|
+
writer.uint32(66).string(message.body);
|
|
1367
|
+
}
|
|
1368
|
+
if (message.contentUri !== "") {
|
|
1369
|
+
writer.uint32(74).string(message.contentUri);
|
|
1370
|
+
}
|
|
1371
|
+
if (message.protocolMetadata.length !== 0) {
|
|
1372
|
+
writer.uint32(82).bytes(message.protocolMetadata);
|
|
1373
|
+
}
|
|
1374
|
+
if (message.remoteCreatedAt !== BigInt(0)) {
|
|
1375
|
+
writer.uint32(88).int64(message.remoteCreatedAt);
|
|
1376
|
+
}
|
|
1377
|
+
if (message.contentHash.length !== 0) {
|
|
1378
|
+
writer.uint32(98).bytes(message.contentHash);
|
|
1322
1379
|
}
|
|
1323
1380
|
return writer;
|
|
1324
1381
|
},
|
|
1325
1382
|
decode(input, length) {
|
|
1326
1383
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1327
1384
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1328
|
-
const message =
|
|
1385
|
+
const message = createBaseMsgSubmitFederatedContent();
|
|
1329
1386
|
while (reader.pos < end) {
|
|
1330
1387
|
const tag = reader.uint32();
|
|
1331
1388
|
switch (tag >>> 3) {
|
|
1332
1389
|
case 1:
|
|
1333
|
-
message.
|
|
1390
|
+
message.operator = reader.string();
|
|
1334
1391
|
break;
|
|
1335
1392
|
case 2:
|
|
1336
|
-
message.
|
|
1393
|
+
message.peerId = reader.string();
|
|
1337
1394
|
break;
|
|
1338
1395
|
case 3:
|
|
1339
|
-
message.
|
|
1396
|
+
message.remoteContentId = reader.string();
|
|
1340
1397
|
break;
|
|
1341
1398
|
case 4:
|
|
1342
|
-
message.
|
|
1399
|
+
message.contentType = reader.string();
|
|
1343
1400
|
break;
|
|
1344
1401
|
case 5:
|
|
1345
|
-
message.
|
|
1402
|
+
message.creatorIdentity = reader.string();
|
|
1403
|
+
break;
|
|
1404
|
+
case 6:
|
|
1405
|
+
message.creatorName = reader.string();
|
|
1406
|
+
break;
|
|
1407
|
+
case 7:
|
|
1408
|
+
message.title = reader.string();
|
|
1409
|
+
break;
|
|
1410
|
+
case 8:
|
|
1411
|
+
message.body = reader.string();
|
|
1412
|
+
break;
|
|
1413
|
+
case 9:
|
|
1414
|
+
message.contentUri = reader.string();
|
|
1415
|
+
break;
|
|
1416
|
+
case 10:
|
|
1417
|
+
message.protocolMetadata = reader.bytes();
|
|
1418
|
+
break;
|
|
1419
|
+
case 11:
|
|
1420
|
+
message.remoteCreatedAt = reader.int64();
|
|
1421
|
+
break;
|
|
1422
|
+
case 12:
|
|
1423
|
+
message.contentHash = reader.bytes();
|
|
1346
1424
|
break;
|
|
1347
1425
|
default:
|
|
1348
1426
|
reader.skipType(tag & 7);
|
|
@@ -1352,84 +1430,127 @@ exports.MsgSlashBridge = {
|
|
|
1352
1430
|
return message;
|
|
1353
1431
|
},
|
|
1354
1432
|
fromPartial(object) {
|
|
1355
|
-
const message =
|
|
1356
|
-
message.authority = object.authority ?? "";
|
|
1433
|
+
const message = createBaseMsgSubmitFederatedContent();
|
|
1357
1434
|
message.operator = object.operator ?? "";
|
|
1358
1435
|
message.peerId = object.peerId ?? "";
|
|
1359
|
-
message.
|
|
1360
|
-
message.
|
|
1436
|
+
message.remoteContentId = object.remoteContentId ?? "";
|
|
1437
|
+
message.contentType = object.contentType ?? "";
|
|
1438
|
+
message.creatorIdentity = object.creatorIdentity ?? "";
|
|
1439
|
+
message.creatorName = object.creatorName ?? "";
|
|
1440
|
+
message.title = object.title ?? "";
|
|
1441
|
+
message.body = object.body ?? "";
|
|
1442
|
+
message.contentUri = object.contentUri ?? "";
|
|
1443
|
+
message.protocolMetadata = object.protocolMetadata ?? new Uint8Array();
|
|
1444
|
+
message.remoteCreatedAt = object.remoteCreatedAt !== undefined && object.remoteCreatedAt !== null ? BigInt(object.remoteCreatedAt.toString()) : BigInt(0);
|
|
1445
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
1361
1446
|
return message;
|
|
1362
1447
|
},
|
|
1363
1448
|
fromAmino(object) {
|
|
1364
|
-
const message =
|
|
1365
|
-
if (object.authority !== undefined && object.authority !== null) {
|
|
1366
|
-
message.authority = object.authority;
|
|
1367
|
-
}
|
|
1449
|
+
const message = createBaseMsgSubmitFederatedContent();
|
|
1368
1450
|
if (object.operator !== undefined && object.operator !== null) {
|
|
1369
1451
|
message.operator = object.operator;
|
|
1370
1452
|
}
|
|
1371
1453
|
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1372
1454
|
message.peerId = object.peer_id;
|
|
1373
1455
|
}
|
|
1374
|
-
if (object.
|
|
1375
|
-
message.
|
|
1456
|
+
if (object.remote_content_id !== undefined && object.remote_content_id !== null) {
|
|
1457
|
+
message.remoteContentId = object.remote_content_id;
|
|
1376
1458
|
}
|
|
1377
|
-
if (object.
|
|
1378
|
-
message.
|
|
1459
|
+
if (object.content_type !== undefined && object.content_type !== null) {
|
|
1460
|
+
message.contentType = object.content_type;
|
|
1461
|
+
}
|
|
1462
|
+
if (object.creator_identity !== undefined && object.creator_identity !== null) {
|
|
1463
|
+
message.creatorIdentity = object.creator_identity;
|
|
1464
|
+
}
|
|
1465
|
+
if (object.creator_name !== undefined && object.creator_name !== null) {
|
|
1466
|
+
message.creatorName = object.creator_name;
|
|
1467
|
+
}
|
|
1468
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1469
|
+
message.title = object.title;
|
|
1470
|
+
}
|
|
1471
|
+
if (object.body !== undefined && object.body !== null) {
|
|
1472
|
+
message.body = object.body;
|
|
1473
|
+
}
|
|
1474
|
+
if (object.content_uri !== undefined && object.content_uri !== null) {
|
|
1475
|
+
message.contentUri = object.content_uri;
|
|
1476
|
+
}
|
|
1477
|
+
if (object.protocol_metadata !== undefined && object.protocol_metadata !== null) {
|
|
1478
|
+
message.protocolMetadata = (0, helpers_1.bytesFromBase64)(object.protocol_metadata);
|
|
1479
|
+
}
|
|
1480
|
+
if (object.remote_created_at !== undefined && object.remote_created_at !== null) {
|
|
1481
|
+
message.remoteCreatedAt = BigInt(object.remote_created_at);
|
|
1482
|
+
}
|
|
1483
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
1484
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
1379
1485
|
}
|
|
1380
1486
|
return message;
|
|
1381
1487
|
},
|
|
1382
1488
|
toAmino(message) {
|
|
1383
1489
|
const obj = {};
|
|
1384
|
-
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1385
1490
|
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1386
1491
|
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1387
|
-
obj.
|
|
1388
|
-
obj.
|
|
1492
|
+
obj.remote_content_id = message.remoteContentId === "" ? undefined : message.remoteContentId;
|
|
1493
|
+
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
1494
|
+
obj.creator_identity = message.creatorIdentity === "" ? undefined : message.creatorIdentity;
|
|
1495
|
+
obj.creator_name = message.creatorName === "" ? undefined : message.creatorName;
|
|
1496
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1497
|
+
obj.body = message.body === "" ? undefined : message.body;
|
|
1498
|
+
obj.content_uri = message.contentUri === "" ? undefined : message.contentUri;
|
|
1499
|
+
obj.protocol_metadata = message.protocolMetadata ? (0, helpers_1.base64FromBytes)(message.protocolMetadata) : undefined;
|
|
1500
|
+
obj.remote_created_at = message.remoteCreatedAt !== BigInt(0) ? message.remoteCreatedAt?.toString() : undefined;
|
|
1501
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
1389
1502
|
return obj;
|
|
1390
1503
|
},
|
|
1391
1504
|
fromAminoMsg(object) {
|
|
1392
|
-
return exports.
|
|
1505
|
+
return exports.MsgSubmitFederatedContent.fromAmino(object.value);
|
|
1393
1506
|
},
|
|
1394
1507
|
toAminoMsg(message) {
|
|
1395
1508
|
return {
|
|
1396
|
-
type: "sparkdream/x/federation/
|
|
1397
|
-
value: exports.
|
|
1509
|
+
type: "sparkdream/x/federation/MsgSubmitFederatedContent",
|
|
1510
|
+
value: exports.MsgSubmitFederatedContent.toAmino(message)
|
|
1398
1511
|
};
|
|
1399
1512
|
},
|
|
1400
1513
|
fromProtoMsg(message) {
|
|
1401
|
-
return exports.
|
|
1514
|
+
return exports.MsgSubmitFederatedContent.decode(message.value);
|
|
1402
1515
|
},
|
|
1403
1516
|
toProto(message) {
|
|
1404
|
-
return exports.
|
|
1517
|
+
return exports.MsgSubmitFederatedContent.encode(message).finish();
|
|
1405
1518
|
},
|
|
1406
1519
|
toProtoMsg(message) {
|
|
1407
1520
|
return {
|
|
1408
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1409
|
-
value: exports.
|
|
1521
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitFederatedContent",
|
|
1522
|
+
value: exports.MsgSubmitFederatedContent.encode(message).finish()
|
|
1410
1523
|
};
|
|
1411
1524
|
}
|
|
1412
1525
|
};
|
|
1413
|
-
function
|
|
1414
|
-
return {
|
|
1526
|
+
function createBaseMsgSubmitFederatedContentResponse() {
|
|
1527
|
+
return {
|
|
1528
|
+
contentId: BigInt(0)
|
|
1529
|
+
};
|
|
1415
1530
|
}
|
|
1416
1531
|
/**
|
|
1417
|
-
* @name
|
|
1532
|
+
* @name MsgSubmitFederatedContentResponse
|
|
1418
1533
|
* @package sparkdream.federation.v1
|
|
1419
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1534
|
+
* @see proto type: sparkdream.federation.v1.MsgSubmitFederatedContentResponse
|
|
1420
1535
|
*/
|
|
1421
|
-
exports.
|
|
1422
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1423
|
-
encode(
|
|
1536
|
+
exports.MsgSubmitFederatedContentResponse = {
|
|
1537
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitFederatedContentResponse",
|
|
1538
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1539
|
+
if (message.contentId !== BigInt(0)) {
|
|
1540
|
+
writer.uint32(8).uint64(message.contentId);
|
|
1541
|
+
}
|
|
1424
1542
|
return writer;
|
|
1425
1543
|
},
|
|
1426
1544
|
decode(input, length) {
|
|
1427
1545
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1428
1546
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1429
|
-
const message =
|
|
1547
|
+
const message = createBaseMsgSubmitFederatedContentResponse();
|
|
1430
1548
|
while (reader.pos < end) {
|
|
1431
1549
|
const tag = reader.uint32();
|
|
1432
1550
|
switch (tag >>> 3) {
|
|
1551
|
+
case 1:
|
|
1552
|
+
message.contentId = reader.uint64();
|
|
1553
|
+
break;
|
|
1433
1554
|
default:
|
|
1434
1555
|
reader.skipType(tag & 7);
|
|
1435
1556
|
break;
|
|
@@ -1437,83 +1558,116 @@ exports.MsgSlashBridgeResponse = {
|
|
|
1437
1558
|
}
|
|
1438
1559
|
return message;
|
|
1439
1560
|
},
|
|
1440
|
-
fromPartial(
|
|
1441
|
-
const message =
|
|
1442
|
-
|
|
1443
|
-
},
|
|
1444
|
-
fromAmino(_) {
|
|
1445
|
-
const message = createBaseMsgSlashBridgeResponse();
|
|
1561
|
+
fromPartial(object) {
|
|
1562
|
+
const message = createBaseMsgSubmitFederatedContentResponse();
|
|
1563
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
1446
1564
|
return message;
|
|
1447
1565
|
},
|
|
1448
|
-
|
|
1566
|
+
fromAmino(object) {
|
|
1567
|
+
const message = createBaseMsgSubmitFederatedContentResponse();
|
|
1568
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
1569
|
+
message.contentId = BigInt(object.content_id);
|
|
1570
|
+
}
|
|
1571
|
+
return message;
|
|
1572
|
+
},
|
|
1573
|
+
toAmino(message) {
|
|
1449
1574
|
const obj = {};
|
|
1575
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
1450
1576
|
return obj;
|
|
1451
1577
|
},
|
|
1452
1578
|
fromAminoMsg(object) {
|
|
1453
|
-
return exports.
|
|
1579
|
+
return exports.MsgSubmitFederatedContentResponse.fromAmino(object.value);
|
|
1454
1580
|
},
|
|
1455
1581
|
fromProtoMsg(message) {
|
|
1456
|
-
return exports.
|
|
1582
|
+
return exports.MsgSubmitFederatedContentResponse.decode(message.value);
|
|
1457
1583
|
},
|
|
1458
1584
|
toProto(message) {
|
|
1459
|
-
return exports.
|
|
1585
|
+
return exports.MsgSubmitFederatedContentResponse.encode(message).finish();
|
|
1460
1586
|
},
|
|
1461
1587
|
toProtoMsg(message) {
|
|
1462
1588
|
return {
|
|
1463
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1464
|
-
value: exports.
|
|
1589
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitFederatedContentResponse",
|
|
1590
|
+
value: exports.MsgSubmitFederatedContentResponse.encode(message).finish()
|
|
1465
1591
|
};
|
|
1466
1592
|
}
|
|
1467
1593
|
};
|
|
1468
|
-
function
|
|
1594
|
+
function createBaseMsgFederateContent() {
|
|
1469
1595
|
return {
|
|
1470
|
-
|
|
1471
|
-
operator: "",
|
|
1596
|
+
creator: "",
|
|
1472
1597
|
peerId: "",
|
|
1473
|
-
|
|
1598
|
+
contentType: "",
|
|
1599
|
+
localContentId: "",
|
|
1600
|
+
title: "",
|
|
1601
|
+
body: "",
|
|
1602
|
+
contentUri: "",
|
|
1603
|
+
contentHash: new Uint8Array()
|
|
1474
1604
|
};
|
|
1475
1605
|
}
|
|
1476
1606
|
/**
|
|
1477
|
-
* @name
|
|
1607
|
+
* @name MsgFederateContent
|
|
1478
1608
|
* @package sparkdream.federation.v1
|
|
1479
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1609
|
+
* @see proto type: sparkdream.federation.v1.MsgFederateContent
|
|
1480
1610
|
*/
|
|
1481
|
-
exports.
|
|
1482
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1483
|
-
aminoType: "sparkdream/x/federation/
|
|
1611
|
+
exports.MsgFederateContent = {
|
|
1612
|
+
typeUrl: "/sparkdream.federation.v1.MsgFederateContent",
|
|
1613
|
+
aminoType: "sparkdream/x/federation/MsgFederateContent",
|
|
1484
1614
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1485
|
-
if (message.
|
|
1486
|
-
writer.uint32(10).string(message.
|
|
1487
|
-
}
|
|
1488
|
-
if (message.operator !== "") {
|
|
1489
|
-
writer.uint32(18).string(message.operator);
|
|
1615
|
+
if (message.creator !== "") {
|
|
1616
|
+
writer.uint32(10).string(message.creator);
|
|
1490
1617
|
}
|
|
1491
1618
|
if (message.peerId !== "") {
|
|
1492
|
-
writer.uint32(
|
|
1619
|
+
writer.uint32(18).string(message.peerId);
|
|
1493
1620
|
}
|
|
1494
|
-
if (message.
|
|
1495
|
-
writer.uint32(
|
|
1621
|
+
if (message.contentType !== "") {
|
|
1622
|
+
writer.uint32(26).string(message.contentType);
|
|
1623
|
+
}
|
|
1624
|
+
if (message.localContentId !== "") {
|
|
1625
|
+
writer.uint32(34).string(message.localContentId);
|
|
1626
|
+
}
|
|
1627
|
+
if (message.title !== "") {
|
|
1628
|
+
writer.uint32(42).string(message.title);
|
|
1629
|
+
}
|
|
1630
|
+
if (message.body !== "") {
|
|
1631
|
+
writer.uint32(50).string(message.body);
|
|
1632
|
+
}
|
|
1633
|
+
if (message.contentUri !== "") {
|
|
1634
|
+
writer.uint32(58).string(message.contentUri);
|
|
1635
|
+
}
|
|
1636
|
+
if (message.contentHash.length !== 0) {
|
|
1637
|
+
writer.uint32(66).bytes(message.contentHash);
|
|
1496
1638
|
}
|
|
1497
1639
|
return writer;
|
|
1498
1640
|
},
|
|
1499
1641
|
decode(input, length) {
|
|
1500
1642
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1501
1643
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1502
|
-
const message =
|
|
1644
|
+
const message = createBaseMsgFederateContent();
|
|
1503
1645
|
while (reader.pos < end) {
|
|
1504
1646
|
const tag = reader.uint32();
|
|
1505
1647
|
switch (tag >>> 3) {
|
|
1506
1648
|
case 1:
|
|
1507
|
-
message.
|
|
1649
|
+
message.creator = reader.string();
|
|
1508
1650
|
break;
|
|
1509
1651
|
case 2:
|
|
1510
|
-
message.
|
|
1652
|
+
message.peerId = reader.string();
|
|
1511
1653
|
break;
|
|
1512
1654
|
case 3:
|
|
1513
|
-
message.
|
|
1655
|
+
message.contentType = reader.string();
|
|
1514
1656
|
break;
|
|
1515
1657
|
case 4:
|
|
1516
|
-
message.
|
|
1658
|
+
message.localContentId = reader.string();
|
|
1659
|
+
break;
|
|
1660
|
+
case 5:
|
|
1661
|
+
message.title = reader.string();
|
|
1662
|
+
break;
|
|
1663
|
+
case 6:
|
|
1664
|
+
message.body = reader.string();
|
|
1665
|
+
break;
|
|
1666
|
+
case 7:
|
|
1667
|
+
message.contentUri = reader.string();
|
|
1668
|
+
break;
|
|
1669
|
+
case 8:
|
|
1670
|
+
message.contentHash = reader.bytes();
|
|
1517
1671
|
break;
|
|
1518
1672
|
default:
|
|
1519
1673
|
reader.skipType(tag & 7);
|
|
@@ -1523,76 +1677,96 @@ exports.MsgUpdateBridge = {
|
|
|
1523
1677
|
return message;
|
|
1524
1678
|
},
|
|
1525
1679
|
fromPartial(object) {
|
|
1526
|
-
const message =
|
|
1527
|
-
message.
|
|
1528
|
-
message.operator = object.operator ?? "";
|
|
1680
|
+
const message = createBaseMsgFederateContent();
|
|
1681
|
+
message.creator = object.creator ?? "";
|
|
1529
1682
|
message.peerId = object.peerId ?? "";
|
|
1530
|
-
message.
|
|
1683
|
+
message.contentType = object.contentType ?? "";
|
|
1684
|
+
message.localContentId = object.localContentId ?? "";
|
|
1685
|
+
message.title = object.title ?? "";
|
|
1686
|
+
message.body = object.body ?? "";
|
|
1687
|
+
message.contentUri = object.contentUri ?? "";
|
|
1688
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
1531
1689
|
return message;
|
|
1532
1690
|
},
|
|
1533
1691
|
fromAmino(object) {
|
|
1534
|
-
const message =
|
|
1535
|
-
if (object.
|
|
1536
|
-
message.
|
|
1537
|
-
}
|
|
1538
|
-
if (object.operator !== undefined && object.operator !== null) {
|
|
1539
|
-
message.operator = object.operator;
|
|
1692
|
+
const message = createBaseMsgFederateContent();
|
|
1693
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
1694
|
+
message.creator = object.creator;
|
|
1540
1695
|
}
|
|
1541
1696
|
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1542
1697
|
message.peerId = object.peer_id;
|
|
1543
1698
|
}
|
|
1544
|
-
if (object.
|
|
1545
|
-
message.
|
|
1699
|
+
if (object.content_type !== undefined && object.content_type !== null) {
|
|
1700
|
+
message.contentType = object.content_type;
|
|
1701
|
+
}
|
|
1702
|
+
if (object.local_content_id !== undefined && object.local_content_id !== null) {
|
|
1703
|
+
message.localContentId = object.local_content_id;
|
|
1704
|
+
}
|
|
1705
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1706
|
+
message.title = object.title;
|
|
1707
|
+
}
|
|
1708
|
+
if (object.body !== undefined && object.body !== null) {
|
|
1709
|
+
message.body = object.body;
|
|
1710
|
+
}
|
|
1711
|
+
if (object.content_uri !== undefined && object.content_uri !== null) {
|
|
1712
|
+
message.contentUri = object.content_uri;
|
|
1713
|
+
}
|
|
1714
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
1715
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
1546
1716
|
}
|
|
1547
1717
|
return message;
|
|
1548
1718
|
},
|
|
1549
1719
|
toAmino(message) {
|
|
1550
1720
|
const obj = {};
|
|
1551
|
-
obj.
|
|
1552
|
-
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1721
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
1553
1722
|
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1554
|
-
obj.
|
|
1723
|
+
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
1724
|
+
obj.local_content_id = message.localContentId === "" ? undefined : message.localContentId;
|
|
1725
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1726
|
+
obj.body = message.body === "" ? undefined : message.body;
|
|
1727
|
+
obj.content_uri = message.contentUri === "" ? undefined : message.contentUri;
|
|
1728
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
1555
1729
|
return obj;
|
|
1556
1730
|
},
|
|
1557
1731
|
fromAminoMsg(object) {
|
|
1558
|
-
return exports.
|
|
1732
|
+
return exports.MsgFederateContent.fromAmino(object.value);
|
|
1559
1733
|
},
|
|
1560
1734
|
toAminoMsg(message) {
|
|
1561
1735
|
return {
|
|
1562
|
-
type: "sparkdream/x/federation/
|
|
1563
|
-
value: exports.
|
|
1736
|
+
type: "sparkdream/x/federation/MsgFederateContent",
|
|
1737
|
+
value: exports.MsgFederateContent.toAmino(message)
|
|
1564
1738
|
};
|
|
1565
1739
|
},
|
|
1566
1740
|
fromProtoMsg(message) {
|
|
1567
|
-
return exports.
|
|
1741
|
+
return exports.MsgFederateContent.decode(message.value);
|
|
1568
1742
|
},
|
|
1569
1743
|
toProto(message) {
|
|
1570
|
-
return exports.
|
|
1744
|
+
return exports.MsgFederateContent.encode(message).finish();
|
|
1571
1745
|
},
|
|
1572
1746
|
toProtoMsg(message) {
|
|
1573
1747
|
return {
|
|
1574
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1575
|
-
value: exports.
|
|
1748
|
+
typeUrl: "/sparkdream.federation.v1.MsgFederateContent",
|
|
1749
|
+
value: exports.MsgFederateContent.encode(message).finish()
|
|
1576
1750
|
};
|
|
1577
1751
|
}
|
|
1578
1752
|
};
|
|
1579
|
-
function
|
|
1753
|
+
function createBaseMsgFederateContentResponse() {
|
|
1580
1754
|
return {};
|
|
1581
1755
|
}
|
|
1582
1756
|
/**
|
|
1583
|
-
* @name
|
|
1757
|
+
* @name MsgFederateContentResponse
|
|
1584
1758
|
* @package sparkdream.federation.v1
|
|
1585
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1759
|
+
* @see proto type: sparkdream.federation.v1.MsgFederateContentResponse
|
|
1586
1760
|
*/
|
|
1587
|
-
exports.
|
|
1588
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1761
|
+
exports.MsgFederateContentResponse = {
|
|
1762
|
+
typeUrl: "/sparkdream.federation.v1.MsgFederateContentResponse",
|
|
1589
1763
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1590
1764
|
return writer;
|
|
1591
1765
|
},
|
|
1592
1766
|
decode(input, length) {
|
|
1593
1767
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1594
1768
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1595
|
-
const message =
|
|
1769
|
+
const message = createBaseMsgFederateContentResponse();
|
|
1596
1770
|
while (reader.pos < end) {
|
|
1597
1771
|
const tag = reader.uint32();
|
|
1598
1772
|
switch (tag >>> 3) {
|
|
@@ -1604,11 +1778,11 @@ exports.MsgUpdateBridgeResponse = {
|
|
|
1604
1778
|
return message;
|
|
1605
1779
|
},
|
|
1606
1780
|
fromPartial(_) {
|
|
1607
|
-
const message =
|
|
1781
|
+
const message = createBaseMsgFederateContentResponse();
|
|
1608
1782
|
return message;
|
|
1609
1783
|
},
|
|
1610
1784
|
fromAmino(_) {
|
|
1611
|
-
const message =
|
|
1785
|
+
const message = createBaseMsgFederateContentResponse();
|
|
1612
1786
|
return message;
|
|
1613
1787
|
},
|
|
1614
1788
|
toAmino(_) {
|
|
@@ -1616,35 +1790,37 @@ exports.MsgUpdateBridgeResponse = {
|
|
|
1616
1790
|
return obj;
|
|
1617
1791
|
},
|
|
1618
1792
|
fromAminoMsg(object) {
|
|
1619
|
-
return exports.
|
|
1793
|
+
return exports.MsgFederateContentResponse.fromAmino(object.value);
|
|
1620
1794
|
},
|
|
1621
1795
|
fromProtoMsg(message) {
|
|
1622
|
-
return exports.
|
|
1796
|
+
return exports.MsgFederateContentResponse.decode(message.value);
|
|
1623
1797
|
},
|
|
1624
1798
|
toProto(message) {
|
|
1625
|
-
return exports.
|
|
1799
|
+
return exports.MsgFederateContentResponse.encode(message).finish();
|
|
1626
1800
|
},
|
|
1627
1801
|
toProtoMsg(message) {
|
|
1628
1802
|
return {
|
|
1629
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1630
|
-
value: exports.
|
|
1803
|
+
typeUrl: "/sparkdream.federation.v1.MsgFederateContentResponse",
|
|
1804
|
+
value: exports.MsgFederateContentResponse.encode(message).finish()
|
|
1631
1805
|
};
|
|
1632
1806
|
}
|
|
1633
1807
|
};
|
|
1634
|
-
function
|
|
1808
|
+
function createBaseMsgAttestOutbound() {
|
|
1635
1809
|
return {
|
|
1636
1810
|
operator: "",
|
|
1637
|
-
peerId: ""
|
|
1811
|
+
peerId: "",
|
|
1812
|
+
contentType: "",
|
|
1813
|
+
localContentId: ""
|
|
1638
1814
|
};
|
|
1639
1815
|
}
|
|
1640
1816
|
/**
|
|
1641
|
-
* @name
|
|
1817
|
+
* @name MsgAttestOutbound
|
|
1642
1818
|
* @package sparkdream.federation.v1
|
|
1643
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1819
|
+
* @see proto type: sparkdream.federation.v1.MsgAttestOutbound
|
|
1644
1820
|
*/
|
|
1645
|
-
exports.
|
|
1646
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1647
|
-
aminoType: "sparkdream/x/federation/
|
|
1821
|
+
exports.MsgAttestOutbound = {
|
|
1822
|
+
typeUrl: "/sparkdream.federation.v1.MsgAttestOutbound",
|
|
1823
|
+
aminoType: "sparkdream/x/federation/MsgAttestOutbound",
|
|
1648
1824
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1649
1825
|
if (message.operator !== "") {
|
|
1650
1826
|
writer.uint32(10).string(message.operator);
|
|
@@ -1652,12 +1828,18 @@ exports.MsgUnbondBridge = {
|
|
|
1652
1828
|
if (message.peerId !== "") {
|
|
1653
1829
|
writer.uint32(18).string(message.peerId);
|
|
1654
1830
|
}
|
|
1831
|
+
if (message.contentType !== "") {
|
|
1832
|
+
writer.uint32(26).string(message.contentType);
|
|
1833
|
+
}
|
|
1834
|
+
if (message.localContentId !== "") {
|
|
1835
|
+
writer.uint32(34).string(message.localContentId);
|
|
1836
|
+
}
|
|
1655
1837
|
return writer;
|
|
1656
1838
|
},
|
|
1657
1839
|
decode(input, length) {
|
|
1658
1840
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1659
1841
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1660
|
-
const message =
|
|
1842
|
+
const message = createBaseMsgAttestOutbound();
|
|
1661
1843
|
while (reader.pos < end) {
|
|
1662
1844
|
const tag = reader.uint32();
|
|
1663
1845
|
switch (tag >>> 3) {
|
|
@@ -1667,6 +1849,12 @@ exports.MsgUnbondBridge = {
|
|
|
1667
1849
|
case 2:
|
|
1668
1850
|
message.peerId = reader.string();
|
|
1669
1851
|
break;
|
|
1852
|
+
case 3:
|
|
1853
|
+
message.contentType = reader.string();
|
|
1854
|
+
break;
|
|
1855
|
+
case 4:
|
|
1856
|
+
message.localContentId = reader.string();
|
|
1857
|
+
break;
|
|
1670
1858
|
default:
|
|
1671
1859
|
reader.skipType(tag & 7);
|
|
1672
1860
|
break;
|
|
@@ -1675,66 +1863,76 @@ exports.MsgUnbondBridge = {
|
|
|
1675
1863
|
return message;
|
|
1676
1864
|
},
|
|
1677
1865
|
fromPartial(object) {
|
|
1678
|
-
const message =
|
|
1866
|
+
const message = createBaseMsgAttestOutbound();
|
|
1679
1867
|
message.operator = object.operator ?? "";
|
|
1680
1868
|
message.peerId = object.peerId ?? "";
|
|
1869
|
+
message.contentType = object.contentType ?? "";
|
|
1870
|
+
message.localContentId = object.localContentId ?? "";
|
|
1681
1871
|
return message;
|
|
1682
1872
|
},
|
|
1683
1873
|
fromAmino(object) {
|
|
1684
|
-
const message =
|
|
1874
|
+
const message = createBaseMsgAttestOutbound();
|
|
1685
1875
|
if (object.operator !== undefined && object.operator !== null) {
|
|
1686
1876
|
message.operator = object.operator;
|
|
1687
1877
|
}
|
|
1688
1878
|
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1689
1879
|
message.peerId = object.peer_id;
|
|
1690
1880
|
}
|
|
1881
|
+
if (object.content_type !== undefined && object.content_type !== null) {
|
|
1882
|
+
message.contentType = object.content_type;
|
|
1883
|
+
}
|
|
1884
|
+
if (object.local_content_id !== undefined && object.local_content_id !== null) {
|
|
1885
|
+
message.localContentId = object.local_content_id;
|
|
1886
|
+
}
|
|
1691
1887
|
return message;
|
|
1692
1888
|
},
|
|
1693
1889
|
toAmino(message) {
|
|
1694
1890
|
const obj = {};
|
|
1695
1891
|
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1696
1892
|
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1893
|
+
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
1894
|
+
obj.local_content_id = message.localContentId === "" ? undefined : message.localContentId;
|
|
1697
1895
|
return obj;
|
|
1698
1896
|
},
|
|
1699
1897
|
fromAminoMsg(object) {
|
|
1700
|
-
return exports.
|
|
1898
|
+
return exports.MsgAttestOutbound.fromAmino(object.value);
|
|
1701
1899
|
},
|
|
1702
1900
|
toAminoMsg(message) {
|
|
1703
1901
|
return {
|
|
1704
|
-
type: "sparkdream/x/federation/
|
|
1705
|
-
value: exports.
|
|
1902
|
+
type: "sparkdream/x/federation/MsgAttestOutbound",
|
|
1903
|
+
value: exports.MsgAttestOutbound.toAmino(message)
|
|
1706
1904
|
};
|
|
1707
1905
|
},
|
|
1708
1906
|
fromProtoMsg(message) {
|
|
1709
|
-
return exports.
|
|
1907
|
+
return exports.MsgAttestOutbound.decode(message.value);
|
|
1710
1908
|
},
|
|
1711
1909
|
toProto(message) {
|
|
1712
|
-
return exports.
|
|
1910
|
+
return exports.MsgAttestOutbound.encode(message).finish();
|
|
1713
1911
|
},
|
|
1714
1912
|
toProtoMsg(message) {
|
|
1715
1913
|
return {
|
|
1716
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1717
|
-
value: exports.
|
|
1914
|
+
typeUrl: "/sparkdream.federation.v1.MsgAttestOutbound",
|
|
1915
|
+
value: exports.MsgAttestOutbound.encode(message).finish()
|
|
1718
1916
|
};
|
|
1719
1917
|
}
|
|
1720
1918
|
};
|
|
1721
|
-
function
|
|
1919
|
+
function createBaseMsgAttestOutboundResponse() {
|
|
1722
1920
|
return {};
|
|
1723
1921
|
}
|
|
1724
1922
|
/**
|
|
1725
|
-
* @name
|
|
1923
|
+
* @name MsgAttestOutboundResponse
|
|
1726
1924
|
* @package sparkdream.federation.v1
|
|
1727
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1925
|
+
* @see proto type: sparkdream.federation.v1.MsgAttestOutboundResponse
|
|
1728
1926
|
*/
|
|
1729
|
-
exports.
|
|
1730
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1927
|
+
exports.MsgAttestOutboundResponse = {
|
|
1928
|
+
typeUrl: "/sparkdream.federation.v1.MsgAttestOutboundResponse",
|
|
1731
1929
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1732
1930
|
return writer;
|
|
1733
1931
|
},
|
|
1734
1932
|
decode(input, length) {
|
|
1735
1933
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1736
1934
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1737
|
-
const message =
|
|
1935
|
+
const message = createBaseMsgAttestOutboundResponse();
|
|
1738
1936
|
while (reader.pos < end) {
|
|
1739
1937
|
const tag = reader.uint32();
|
|
1740
1938
|
switch (tag >>> 3) {
|
|
@@ -1746,11 +1944,11 @@ exports.MsgUnbondBridgeResponse = {
|
|
|
1746
1944
|
return message;
|
|
1747
1945
|
},
|
|
1748
1946
|
fromPartial(_) {
|
|
1749
|
-
const message =
|
|
1947
|
+
const message = createBaseMsgAttestOutboundResponse();
|
|
1750
1948
|
return message;
|
|
1751
1949
|
},
|
|
1752
1950
|
fromAmino(_) {
|
|
1753
|
-
const message =
|
|
1951
|
+
const message = createBaseMsgAttestOutboundResponse();
|
|
1754
1952
|
return message;
|
|
1755
1953
|
},
|
|
1756
1954
|
toAmino(_) {
|
|
@@ -1758,63 +1956,70 @@ exports.MsgUnbondBridgeResponse = {
|
|
|
1758
1956
|
return obj;
|
|
1759
1957
|
},
|
|
1760
1958
|
fromAminoMsg(object) {
|
|
1761
|
-
return exports.
|
|
1959
|
+
return exports.MsgAttestOutboundResponse.fromAmino(object.value);
|
|
1762
1960
|
},
|
|
1763
1961
|
fromProtoMsg(message) {
|
|
1764
|
-
return exports.
|
|
1962
|
+
return exports.MsgAttestOutboundResponse.decode(message.value);
|
|
1765
1963
|
},
|
|
1766
1964
|
toProto(message) {
|
|
1767
|
-
return exports.
|
|
1965
|
+
return exports.MsgAttestOutboundResponse.encode(message).finish();
|
|
1768
1966
|
},
|
|
1769
1967
|
toProtoMsg(message) {
|
|
1770
1968
|
return {
|
|
1771
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1772
|
-
value: exports.
|
|
1969
|
+
typeUrl: "/sparkdream.federation.v1.MsgAttestOutboundResponse",
|
|
1970
|
+
value: exports.MsgAttestOutboundResponse.encode(message).finish()
|
|
1773
1971
|
};
|
|
1774
1972
|
}
|
|
1775
1973
|
};
|
|
1776
|
-
function
|
|
1974
|
+
function createBaseMsgModerateContent() {
|
|
1777
1975
|
return {
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1976
|
+
authority: "",
|
|
1977
|
+
contentId: BigInt(0),
|
|
1978
|
+
newStatus: 0,
|
|
1979
|
+
reason: ""
|
|
1781
1980
|
};
|
|
1782
1981
|
}
|
|
1783
1982
|
/**
|
|
1784
|
-
* @name
|
|
1983
|
+
* @name MsgModerateContent
|
|
1785
1984
|
* @package sparkdream.federation.v1
|
|
1786
|
-
* @see proto type: sparkdream.federation.v1.
|
|
1985
|
+
* @see proto type: sparkdream.federation.v1.MsgModerateContent
|
|
1787
1986
|
*/
|
|
1788
|
-
exports.
|
|
1789
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1790
|
-
aminoType: "sparkdream/x/federation/
|
|
1987
|
+
exports.MsgModerateContent = {
|
|
1988
|
+
typeUrl: "/sparkdream.federation.v1.MsgModerateContent",
|
|
1989
|
+
aminoType: "sparkdream/x/federation/MsgModerateContent",
|
|
1791
1990
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1792
|
-
if (message.
|
|
1793
|
-
writer.uint32(10).string(message.
|
|
1991
|
+
if (message.authority !== "") {
|
|
1992
|
+
writer.uint32(10).string(message.authority);
|
|
1794
1993
|
}
|
|
1795
|
-
if (message.
|
|
1796
|
-
writer.uint32(
|
|
1994
|
+
if (message.contentId !== BigInt(0)) {
|
|
1995
|
+
writer.uint32(16).uint64(message.contentId);
|
|
1996
|
+
}
|
|
1997
|
+
if (message.newStatus !== 0) {
|
|
1998
|
+
writer.uint32(24).int32(message.newStatus);
|
|
1797
1999
|
}
|
|
1798
|
-
if (message.
|
|
1799
|
-
|
|
2000
|
+
if (message.reason !== "") {
|
|
2001
|
+
writer.uint32(34).string(message.reason);
|
|
1800
2002
|
}
|
|
1801
2003
|
return writer;
|
|
1802
2004
|
},
|
|
1803
2005
|
decode(input, length) {
|
|
1804
2006
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1805
2007
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1806
|
-
const message =
|
|
2008
|
+
const message = createBaseMsgModerateContent();
|
|
1807
2009
|
while (reader.pos < end) {
|
|
1808
2010
|
const tag = reader.uint32();
|
|
1809
2011
|
switch (tag >>> 3) {
|
|
1810
2012
|
case 1:
|
|
1811
|
-
message.
|
|
2013
|
+
message.authority = reader.string();
|
|
1812
2014
|
break;
|
|
1813
2015
|
case 2:
|
|
1814
|
-
message.
|
|
2016
|
+
message.contentId = reader.uint64();
|
|
1815
2017
|
break;
|
|
1816
2018
|
case 3:
|
|
1817
|
-
message.
|
|
2019
|
+
message.newStatus = reader.int32();
|
|
2020
|
+
break;
|
|
2021
|
+
case 4:
|
|
2022
|
+
message.reason = reader.string();
|
|
1818
2023
|
break;
|
|
1819
2024
|
default:
|
|
1820
2025
|
reader.skipType(tag & 7);
|
|
@@ -1824,71 +2029,76 @@ exports.MsgTopUpBridgeStake = {
|
|
|
1824
2029
|
return message;
|
|
1825
2030
|
},
|
|
1826
2031
|
fromPartial(object) {
|
|
1827
|
-
const message =
|
|
1828
|
-
message.
|
|
1829
|
-
message.
|
|
1830
|
-
message.
|
|
2032
|
+
const message = createBaseMsgModerateContent();
|
|
2033
|
+
message.authority = object.authority ?? "";
|
|
2034
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
2035
|
+
message.newStatus = object.newStatus ?? 0;
|
|
2036
|
+
message.reason = object.reason ?? "";
|
|
1831
2037
|
return message;
|
|
1832
2038
|
},
|
|
1833
2039
|
fromAmino(object) {
|
|
1834
|
-
const message =
|
|
1835
|
-
if (object.
|
|
1836
|
-
message.
|
|
2040
|
+
const message = createBaseMsgModerateContent();
|
|
2041
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
2042
|
+
message.authority = object.authority;
|
|
1837
2043
|
}
|
|
1838
|
-
if (object.
|
|
1839
|
-
message.
|
|
2044
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
2045
|
+
message.contentId = BigInt(object.content_id);
|
|
2046
|
+
}
|
|
2047
|
+
if (object.new_status !== undefined && object.new_status !== null) {
|
|
2048
|
+
message.newStatus = object.new_status;
|
|
1840
2049
|
}
|
|
1841
|
-
if (object.
|
|
1842
|
-
message.
|
|
2050
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
2051
|
+
message.reason = object.reason;
|
|
1843
2052
|
}
|
|
1844
2053
|
return message;
|
|
1845
2054
|
},
|
|
1846
2055
|
toAmino(message) {
|
|
1847
2056
|
const obj = {};
|
|
1848
|
-
obj.
|
|
1849
|
-
obj.
|
|
1850
|
-
obj.
|
|
2057
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
2058
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
2059
|
+
obj.new_status = message.newStatus === 0 ? undefined : message.newStatus;
|
|
2060
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
1851
2061
|
return obj;
|
|
1852
2062
|
},
|
|
1853
2063
|
fromAminoMsg(object) {
|
|
1854
|
-
return exports.
|
|
2064
|
+
return exports.MsgModerateContent.fromAmino(object.value);
|
|
1855
2065
|
},
|
|
1856
2066
|
toAminoMsg(message) {
|
|
1857
2067
|
return {
|
|
1858
|
-
type: "sparkdream/x/federation/
|
|
1859
|
-
value: exports.
|
|
2068
|
+
type: "sparkdream/x/federation/MsgModerateContent",
|
|
2069
|
+
value: exports.MsgModerateContent.toAmino(message)
|
|
1860
2070
|
};
|
|
1861
2071
|
},
|
|
1862
2072
|
fromProtoMsg(message) {
|
|
1863
|
-
return exports.
|
|
2073
|
+
return exports.MsgModerateContent.decode(message.value);
|
|
1864
2074
|
},
|
|
1865
2075
|
toProto(message) {
|
|
1866
|
-
return exports.
|
|
2076
|
+
return exports.MsgModerateContent.encode(message).finish();
|
|
1867
2077
|
},
|
|
1868
2078
|
toProtoMsg(message) {
|
|
1869
2079
|
return {
|
|
1870
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1871
|
-
value: exports.
|
|
2080
|
+
typeUrl: "/sparkdream.federation.v1.MsgModerateContent",
|
|
2081
|
+
value: exports.MsgModerateContent.encode(message).finish()
|
|
1872
2082
|
};
|
|
1873
2083
|
}
|
|
1874
2084
|
};
|
|
1875
|
-
function
|
|
2085
|
+
function createBaseMsgModerateContentResponse() {
|
|
1876
2086
|
return {};
|
|
1877
2087
|
}
|
|
1878
2088
|
/**
|
|
1879
|
-
* @name
|
|
2089
|
+
* @name MsgModerateContentResponse
|
|
1880
2090
|
* @package sparkdream.federation.v1
|
|
1881
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2091
|
+
* @see proto type: sparkdream.federation.v1.MsgModerateContentResponse
|
|
1882
2092
|
*/
|
|
1883
|
-
exports.
|
|
1884
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2093
|
+
exports.MsgModerateContentResponse = {
|
|
2094
|
+
typeUrl: "/sparkdream.federation.v1.MsgModerateContentResponse",
|
|
1885
2095
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1886
2096
|
return writer;
|
|
1887
2097
|
},
|
|
1888
2098
|
decode(input, length) {
|
|
1889
2099
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1890
2100
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1891
|
-
const message =
|
|
2101
|
+
const message = createBaseMsgModerateContentResponse();
|
|
1892
2102
|
while (reader.pos < end) {
|
|
1893
2103
|
const tag = reader.uint32();
|
|
1894
2104
|
switch (tag >>> 3) {
|
|
@@ -1900,11 +2110,11 @@ exports.MsgTopUpBridgeStakeResponse = {
|
|
|
1900
2110
|
return message;
|
|
1901
2111
|
},
|
|
1902
2112
|
fromPartial(_) {
|
|
1903
|
-
const message =
|
|
2113
|
+
const message = createBaseMsgModerateContentResponse();
|
|
1904
2114
|
return message;
|
|
1905
2115
|
},
|
|
1906
2116
|
fromAmino(_) {
|
|
1907
|
-
const message =
|
|
2117
|
+
const message = createBaseMsgModerateContentResponse();
|
|
1908
2118
|
return message;
|
|
1909
2119
|
},
|
|
1910
2120
|
toAmino(_) {
|
|
@@ -1912,126 +2122,63 @@ exports.MsgTopUpBridgeStakeResponse = {
|
|
|
1912
2122
|
return obj;
|
|
1913
2123
|
},
|
|
1914
2124
|
fromAminoMsg(object) {
|
|
1915
|
-
return exports.
|
|
2125
|
+
return exports.MsgModerateContentResponse.fromAmino(object.value);
|
|
1916
2126
|
},
|
|
1917
2127
|
fromProtoMsg(message) {
|
|
1918
|
-
return exports.
|
|
2128
|
+
return exports.MsgModerateContentResponse.decode(message.value);
|
|
1919
2129
|
},
|
|
1920
2130
|
toProto(message) {
|
|
1921
|
-
return exports.
|
|
2131
|
+
return exports.MsgModerateContentResponse.encode(message).finish();
|
|
1922
2132
|
},
|
|
1923
2133
|
toProtoMsg(message) {
|
|
1924
2134
|
return {
|
|
1925
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1926
|
-
value: exports.
|
|
2135
|
+
typeUrl: "/sparkdream.federation.v1.MsgModerateContentResponse",
|
|
2136
|
+
value: exports.MsgModerateContentResponse.encode(message).finish()
|
|
1927
2137
|
};
|
|
1928
2138
|
}
|
|
1929
2139
|
};
|
|
1930
|
-
function
|
|
2140
|
+
function createBaseMsgLinkIdentity() {
|
|
1931
2141
|
return {
|
|
1932
|
-
|
|
2142
|
+
creator: "",
|
|
1933
2143
|
peerId: "",
|
|
1934
|
-
|
|
1935
|
-
contentType: "",
|
|
1936
|
-
creatorIdentity: "",
|
|
1937
|
-
creatorName: "",
|
|
1938
|
-
title: "",
|
|
1939
|
-
body: "",
|
|
1940
|
-
contentUri: "",
|
|
1941
|
-
protocolMetadata: new Uint8Array(),
|
|
1942
|
-
remoteCreatedAt: BigInt(0),
|
|
1943
|
-
contentHash: new Uint8Array()
|
|
2144
|
+
remoteIdentity: ""
|
|
1944
2145
|
};
|
|
1945
2146
|
}
|
|
1946
2147
|
/**
|
|
1947
|
-
* @name
|
|
2148
|
+
* @name MsgLinkIdentity
|
|
1948
2149
|
* @package sparkdream.federation.v1
|
|
1949
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2150
|
+
* @see proto type: sparkdream.federation.v1.MsgLinkIdentity
|
|
1950
2151
|
*/
|
|
1951
|
-
exports.
|
|
1952
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
1953
|
-
aminoType: "sparkdream/x/federation/
|
|
2152
|
+
exports.MsgLinkIdentity = {
|
|
2153
|
+
typeUrl: "/sparkdream.federation.v1.MsgLinkIdentity",
|
|
2154
|
+
aminoType: "sparkdream/x/federation/MsgLinkIdentity",
|
|
1954
2155
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1955
|
-
if (message.
|
|
1956
|
-
writer.uint32(10).string(message.
|
|
2156
|
+
if (message.creator !== "") {
|
|
2157
|
+
writer.uint32(10).string(message.creator);
|
|
1957
2158
|
}
|
|
1958
2159
|
if (message.peerId !== "") {
|
|
1959
2160
|
writer.uint32(18).string(message.peerId);
|
|
1960
2161
|
}
|
|
1961
|
-
if (message.
|
|
1962
|
-
writer.uint32(26).string(message.
|
|
1963
|
-
}
|
|
1964
|
-
if (message.contentType !== "") {
|
|
1965
|
-
writer.uint32(34).string(message.contentType);
|
|
1966
|
-
}
|
|
1967
|
-
if (message.creatorIdentity !== "") {
|
|
1968
|
-
writer.uint32(42).string(message.creatorIdentity);
|
|
1969
|
-
}
|
|
1970
|
-
if (message.creatorName !== "") {
|
|
1971
|
-
writer.uint32(50).string(message.creatorName);
|
|
1972
|
-
}
|
|
1973
|
-
if (message.title !== "") {
|
|
1974
|
-
writer.uint32(58).string(message.title);
|
|
1975
|
-
}
|
|
1976
|
-
if (message.body !== "") {
|
|
1977
|
-
writer.uint32(66).string(message.body);
|
|
1978
|
-
}
|
|
1979
|
-
if (message.contentUri !== "") {
|
|
1980
|
-
writer.uint32(74).string(message.contentUri);
|
|
1981
|
-
}
|
|
1982
|
-
if (message.protocolMetadata.length !== 0) {
|
|
1983
|
-
writer.uint32(82).bytes(message.protocolMetadata);
|
|
1984
|
-
}
|
|
1985
|
-
if (message.remoteCreatedAt !== BigInt(0)) {
|
|
1986
|
-
writer.uint32(88).int64(message.remoteCreatedAt);
|
|
1987
|
-
}
|
|
1988
|
-
if (message.contentHash.length !== 0) {
|
|
1989
|
-
writer.uint32(98).bytes(message.contentHash);
|
|
2162
|
+
if (message.remoteIdentity !== "") {
|
|
2163
|
+
writer.uint32(26).string(message.remoteIdentity);
|
|
1990
2164
|
}
|
|
1991
2165
|
return writer;
|
|
1992
2166
|
},
|
|
1993
2167
|
decode(input, length) {
|
|
1994
2168
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1995
2169
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1996
|
-
const message =
|
|
2170
|
+
const message = createBaseMsgLinkIdentity();
|
|
1997
2171
|
while (reader.pos < end) {
|
|
1998
2172
|
const tag = reader.uint32();
|
|
1999
2173
|
switch (tag >>> 3) {
|
|
2000
2174
|
case 1:
|
|
2001
|
-
message.
|
|
2175
|
+
message.creator = reader.string();
|
|
2002
2176
|
break;
|
|
2003
2177
|
case 2:
|
|
2004
2178
|
message.peerId = reader.string();
|
|
2005
2179
|
break;
|
|
2006
2180
|
case 3:
|
|
2007
|
-
message.
|
|
2008
|
-
break;
|
|
2009
|
-
case 4:
|
|
2010
|
-
message.contentType = reader.string();
|
|
2011
|
-
break;
|
|
2012
|
-
case 5:
|
|
2013
|
-
message.creatorIdentity = reader.string();
|
|
2014
|
-
break;
|
|
2015
|
-
case 6:
|
|
2016
|
-
message.creatorName = reader.string();
|
|
2017
|
-
break;
|
|
2018
|
-
case 7:
|
|
2019
|
-
message.title = reader.string();
|
|
2020
|
-
break;
|
|
2021
|
-
case 8:
|
|
2022
|
-
message.body = reader.string();
|
|
2023
|
-
break;
|
|
2024
|
-
case 9:
|
|
2025
|
-
message.contentUri = reader.string();
|
|
2026
|
-
break;
|
|
2027
|
-
case 10:
|
|
2028
|
-
message.protocolMetadata = reader.bytes();
|
|
2029
|
-
break;
|
|
2030
|
-
case 11:
|
|
2031
|
-
message.remoteCreatedAt = reader.int64();
|
|
2032
|
-
break;
|
|
2033
|
-
case 12:
|
|
2034
|
-
message.contentHash = reader.bytes();
|
|
2181
|
+
message.remoteIdentity = reader.string();
|
|
2035
2182
|
break;
|
|
2036
2183
|
default:
|
|
2037
2184
|
reader.skipType(tag & 7);
|
|
@@ -2041,127 +2188,74 @@ exports.MsgSubmitFederatedContent = {
|
|
|
2041
2188
|
return message;
|
|
2042
2189
|
},
|
|
2043
2190
|
fromPartial(object) {
|
|
2044
|
-
const message =
|
|
2045
|
-
message.
|
|
2191
|
+
const message = createBaseMsgLinkIdentity();
|
|
2192
|
+
message.creator = object.creator ?? "";
|
|
2046
2193
|
message.peerId = object.peerId ?? "";
|
|
2047
|
-
message.
|
|
2048
|
-
message.contentType = object.contentType ?? "";
|
|
2049
|
-
message.creatorIdentity = object.creatorIdentity ?? "";
|
|
2050
|
-
message.creatorName = object.creatorName ?? "";
|
|
2051
|
-
message.title = object.title ?? "";
|
|
2052
|
-
message.body = object.body ?? "";
|
|
2053
|
-
message.contentUri = object.contentUri ?? "";
|
|
2054
|
-
message.protocolMetadata = object.protocolMetadata ?? new Uint8Array();
|
|
2055
|
-
message.remoteCreatedAt = object.remoteCreatedAt !== undefined && object.remoteCreatedAt !== null ? BigInt(object.remoteCreatedAt.toString()) : BigInt(0);
|
|
2056
|
-
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
2194
|
+
message.remoteIdentity = object.remoteIdentity ?? "";
|
|
2057
2195
|
return message;
|
|
2058
2196
|
},
|
|
2059
2197
|
fromAmino(object) {
|
|
2060
|
-
const message =
|
|
2061
|
-
if (object.
|
|
2062
|
-
message.
|
|
2198
|
+
const message = createBaseMsgLinkIdentity();
|
|
2199
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2200
|
+
message.creator = object.creator;
|
|
2063
2201
|
}
|
|
2064
2202
|
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2065
2203
|
message.peerId = object.peer_id;
|
|
2066
2204
|
}
|
|
2067
|
-
if (object.
|
|
2068
|
-
message.
|
|
2069
|
-
}
|
|
2070
|
-
if (object.content_type !== undefined && object.content_type !== null) {
|
|
2071
|
-
message.contentType = object.content_type;
|
|
2072
|
-
}
|
|
2073
|
-
if (object.creator_identity !== undefined && object.creator_identity !== null) {
|
|
2074
|
-
message.creatorIdentity = object.creator_identity;
|
|
2075
|
-
}
|
|
2076
|
-
if (object.creator_name !== undefined && object.creator_name !== null) {
|
|
2077
|
-
message.creatorName = object.creator_name;
|
|
2078
|
-
}
|
|
2079
|
-
if (object.title !== undefined && object.title !== null) {
|
|
2080
|
-
message.title = object.title;
|
|
2081
|
-
}
|
|
2082
|
-
if (object.body !== undefined && object.body !== null) {
|
|
2083
|
-
message.body = object.body;
|
|
2084
|
-
}
|
|
2085
|
-
if (object.content_uri !== undefined && object.content_uri !== null) {
|
|
2086
|
-
message.contentUri = object.content_uri;
|
|
2087
|
-
}
|
|
2088
|
-
if (object.protocol_metadata !== undefined && object.protocol_metadata !== null) {
|
|
2089
|
-
message.protocolMetadata = (0, helpers_1.bytesFromBase64)(object.protocol_metadata);
|
|
2090
|
-
}
|
|
2091
|
-
if (object.remote_created_at !== undefined && object.remote_created_at !== null) {
|
|
2092
|
-
message.remoteCreatedAt = BigInt(object.remote_created_at);
|
|
2093
|
-
}
|
|
2094
|
-
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
2095
|
-
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
2205
|
+
if (object.remote_identity !== undefined && object.remote_identity !== null) {
|
|
2206
|
+
message.remoteIdentity = object.remote_identity;
|
|
2096
2207
|
}
|
|
2097
2208
|
return message;
|
|
2098
2209
|
},
|
|
2099
2210
|
toAmino(message) {
|
|
2100
2211
|
const obj = {};
|
|
2101
|
-
obj.
|
|
2212
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2102
2213
|
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
2103
|
-
obj.
|
|
2104
|
-
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
2105
|
-
obj.creator_identity = message.creatorIdentity === "" ? undefined : message.creatorIdentity;
|
|
2106
|
-
obj.creator_name = message.creatorName === "" ? undefined : message.creatorName;
|
|
2107
|
-
obj.title = message.title === "" ? undefined : message.title;
|
|
2108
|
-
obj.body = message.body === "" ? undefined : message.body;
|
|
2109
|
-
obj.content_uri = message.contentUri === "" ? undefined : message.contentUri;
|
|
2110
|
-
obj.protocol_metadata = message.protocolMetadata ? (0, helpers_1.base64FromBytes)(message.protocolMetadata) : undefined;
|
|
2111
|
-
obj.remote_created_at = message.remoteCreatedAt !== BigInt(0) ? message.remoteCreatedAt?.toString() : undefined;
|
|
2112
|
-
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
2214
|
+
obj.remote_identity = message.remoteIdentity === "" ? undefined : message.remoteIdentity;
|
|
2113
2215
|
return obj;
|
|
2114
2216
|
},
|
|
2115
2217
|
fromAminoMsg(object) {
|
|
2116
|
-
return exports.
|
|
2218
|
+
return exports.MsgLinkIdentity.fromAmino(object.value);
|
|
2117
2219
|
},
|
|
2118
2220
|
toAminoMsg(message) {
|
|
2119
2221
|
return {
|
|
2120
|
-
type: "sparkdream/x/federation/
|
|
2121
|
-
value: exports.
|
|
2222
|
+
type: "sparkdream/x/federation/MsgLinkIdentity",
|
|
2223
|
+
value: exports.MsgLinkIdentity.toAmino(message)
|
|
2122
2224
|
};
|
|
2123
2225
|
},
|
|
2124
2226
|
fromProtoMsg(message) {
|
|
2125
|
-
return exports.
|
|
2227
|
+
return exports.MsgLinkIdentity.decode(message.value);
|
|
2126
2228
|
},
|
|
2127
2229
|
toProto(message) {
|
|
2128
|
-
return exports.
|
|
2230
|
+
return exports.MsgLinkIdentity.encode(message).finish();
|
|
2129
2231
|
},
|
|
2130
2232
|
toProtoMsg(message) {
|
|
2131
2233
|
return {
|
|
2132
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2133
|
-
value: exports.
|
|
2234
|
+
typeUrl: "/sparkdream.federation.v1.MsgLinkIdentity",
|
|
2235
|
+
value: exports.MsgLinkIdentity.encode(message).finish()
|
|
2134
2236
|
};
|
|
2135
2237
|
}
|
|
2136
2238
|
};
|
|
2137
|
-
function
|
|
2138
|
-
return {
|
|
2139
|
-
contentId: BigInt(0)
|
|
2140
|
-
};
|
|
2239
|
+
function createBaseMsgLinkIdentityResponse() {
|
|
2240
|
+
return {};
|
|
2141
2241
|
}
|
|
2142
2242
|
/**
|
|
2143
|
-
* @name
|
|
2243
|
+
* @name MsgLinkIdentityResponse
|
|
2144
2244
|
* @package sparkdream.federation.v1
|
|
2145
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2245
|
+
* @see proto type: sparkdream.federation.v1.MsgLinkIdentityResponse
|
|
2146
2246
|
*/
|
|
2147
|
-
exports.
|
|
2148
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2149
|
-
encode(
|
|
2150
|
-
if (message.contentId !== BigInt(0)) {
|
|
2151
|
-
writer.uint32(8).uint64(message.contentId);
|
|
2152
|
-
}
|
|
2247
|
+
exports.MsgLinkIdentityResponse = {
|
|
2248
|
+
typeUrl: "/sparkdream.federation.v1.MsgLinkIdentityResponse",
|
|
2249
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2153
2250
|
return writer;
|
|
2154
2251
|
},
|
|
2155
2252
|
decode(input, length) {
|
|
2156
2253
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2157
2254
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2158
|
-
const message =
|
|
2255
|
+
const message = createBaseMsgLinkIdentityResponse();
|
|
2159
2256
|
while (reader.pos < end) {
|
|
2160
2257
|
const tag = reader.uint32();
|
|
2161
2258
|
switch (tag >>> 3) {
|
|
2162
|
-
case 1:
|
|
2163
|
-
message.contentId = reader.uint64();
|
|
2164
|
-
break;
|
|
2165
2259
|
default:
|
|
2166
2260
|
reader.skipType(tag & 7);
|
|
2167
2261
|
break;
|
|
@@ -2169,59 +2263,48 @@ exports.MsgSubmitFederatedContentResponse = {
|
|
|
2169
2263
|
}
|
|
2170
2264
|
return message;
|
|
2171
2265
|
},
|
|
2172
|
-
fromPartial(
|
|
2173
|
-
const message =
|
|
2174
|
-
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
2266
|
+
fromPartial(_) {
|
|
2267
|
+
const message = createBaseMsgLinkIdentityResponse();
|
|
2175
2268
|
return message;
|
|
2176
2269
|
},
|
|
2177
|
-
fromAmino(
|
|
2178
|
-
const message =
|
|
2179
|
-
if (object.content_id !== undefined && object.content_id !== null) {
|
|
2180
|
-
message.contentId = BigInt(object.content_id);
|
|
2181
|
-
}
|
|
2270
|
+
fromAmino(_) {
|
|
2271
|
+
const message = createBaseMsgLinkIdentityResponse();
|
|
2182
2272
|
return message;
|
|
2183
2273
|
},
|
|
2184
|
-
toAmino(
|
|
2274
|
+
toAmino(_) {
|
|
2185
2275
|
const obj = {};
|
|
2186
|
-
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
2187
2276
|
return obj;
|
|
2188
2277
|
},
|
|
2189
2278
|
fromAminoMsg(object) {
|
|
2190
|
-
return exports.
|
|
2279
|
+
return exports.MsgLinkIdentityResponse.fromAmino(object.value);
|
|
2191
2280
|
},
|
|
2192
2281
|
fromProtoMsg(message) {
|
|
2193
|
-
return exports.
|
|
2282
|
+
return exports.MsgLinkIdentityResponse.decode(message.value);
|
|
2194
2283
|
},
|
|
2195
2284
|
toProto(message) {
|
|
2196
|
-
return exports.
|
|
2285
|
+
return exports.MsgLinkIdentityResponse.encode(message).finish();
|
|
2197
2286
|
},
|
|
2198
2287
|
toProtoMsg(message) {
|
|
2199
2288
|
return {
|
|
2200
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2201
|
-
value: exports.
|
|
2289
|
+
typeUrl: "/sparkdream.federation.v1.MsgLinkIdentityResponse",
|
|
2290
|
+
value: exports.MsgLinkIdentityResponse.encode(message).finish()
|
|
2202
2291
|
};
|
|
2203
2292
|
}
|
|
2204
2293
|
};
|
|
2205
|
-
function
|
|
2294
|
+
function createBaseMsgUnlinkIdentity() {
|
|
2206
2295
|
return {
|
|
2207
2296
|
creator: "",
|
|
2208
|
-
peerId: ""
|
|
2209
|
-
contentType: "",
|
|
2210
|
-
localContentId: "",
|
|
2211
|
-
title: "",
|
|
2212
|
-
body: "",
|
|
2213
|
-
contentUri: "",
|
|
2214
|
-
contentHash: new Uint8Array()
|
|
2297
|
+
peerId: ""
|
|
2215
2298
|
};
|
|
2216
2299
|
}
|
|
2217
2300
|
/**
|
|
2218
|
-
* @name
|
|
2301
|
+
* @name MsgUnlinkIdentity
|
|
2219
2302
|
* @package sparkdream.federation.v1
|
|
2220
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2303
|
+
* @see proto type: sparkdream.federation.v1.MsgUnlinkIdentity
|
|
2221
2304
|
*/
|
|
2222
|
-
exports.
|
|
2223
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2224
|
-
aminoType: "sparkdream/x/federation/
|
|
2305
|
+
exports.MsgUnlinkIdentity = {
|
|
2306
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnlinkIdentity",
|
|
2307
|
+
aminoType: "sparkdream/x/federation/MsgUnlinkIdentity",
|
|
2225
2308
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2226
2309
|
if (message.creator !== "") {
|
|
2227
2310
|
writer.uint32(10).string(message.creator);
|
|
@@ -2229,30 +2312,12 @@ exports.MsgFederateContent = {
|
|
|
2229
2312
|
if (message.peerId !== "") {
|
|
2230
2313
|
writer.uint32(18).string(message.peerId);
|
|
2231
2314
|
}
|
|
2232
|
-
if (message.contentType !== "") {
|
|
2233
|
-
writer.uint32(26).string(message.contentType);
|
|
2234
|
-
}
|
|
2235
|
-
if (message.localContentId !== "") {
|
|
2236
|
-
writer.uint32(34).string(message.localContentId);
|
|
2237
|
-
}
|
|
2238
|
-
if (message.title !== "") {
|
|
2239
|
-
writer.uint32(42).string(message.title);
|
|
2240
|
-
}
|
|
2241
|
-
if (message.body !== "") {
|
|
2242
|
-
writer.uint32(50).string(message.body);
|
|
2243
|
-
}
|
|
2244
|
-
if (message.contentUri !== "") {
|
|
2245
|
-
writer.uint32(58).string(message.contentUri);
|
|
2246
|
-
}
|
|
2247
|
-
if (message.contentHash.length !== 0) {
|
|
2248
|
-
writer.uint32(66).bytes(message.contentHash);
|
|
2249
|
-
}
|
|
2250
2315
|
return writer;
|
|
2251
2316
|
},
|
|
2252
2317
|
decode(input, length) {
|
|
2253
2318
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2254
2319
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2255
|
-
const message =
|
|
2320
|
+
const message = createBaseMsgUnlinkIdentity();
|
|
2256
2321
|
while (reader.pos < end) {
|
|
2257
2322
|
const tag = reader.uint32();
|
|
2258
2323
|
switch (tag >>> 3) {
|
|
@@ -2262,24 +2327,6 @@ exports.MsgFederateContent = {
|
|
|
2262
2327
|
case 2:
|
|
2263
2328
|
message.peerId = reader.string();
|
|
2264
2329
|
break;
|
|
2265
|
-
case 3:
|
|
2266
|
-
message.contentType = reader.string();
|
|
2267
|
-
break;
|
|
2268
|
-
case 4:
|
|
2269
|
-
message.localContentId = reader.string();
|
|
2270
|
-
break;
|
|
2271
|
-
case 5:
|
|
2272
|
-
message.title = reader.string();
|
|
2273
|
-
break;
|
|
2274
|
-
case 6:
|
|
2275
|
-
message.body = reader.string();
|
|
2276
|
-
break;
|
|
2277
|
-
case 7:
|
|
2278
|
-
message.contentUri = reader.string();
|
|
2279
|
-
break;
|
|
2280
|
-
case 8:
|
|
2281
|
-
message.contentHash = reader.bytes();
|
|
2282
|
-
break;
|
|
2283
2330
|
default:
|
|
2284
2331
|
reader.skipType(tag & 7);
|
|
2285
2332
|
break;
|
|
@@ -2288,42 +2335,18 @@ exports.MsgFederateContent = {
|
|
|
2288
2335
|
return message;
|
|
2289
2336
|
},
|
|
2290
2337
|
fromPartial(object) {
|
|
2291
|
-
const message =
|
|
2338
|
+
const message = createBaseMsgUnlinkIdentity();
|
|
2292
2339
|
message.creator = object.creator ?? "";
|
|
2293
2340
|
message.peerId = object.peerId ?? "";
|
|
2294
|
-
message
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
message
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
return message;
|
|
2301
|
-
},
|
|
2302
|
-
fromAmino(object) {
|
|
2303
|
-
const message = createBaseMsgFederateContent();
|
|
2304
|
-
if (object.creator !== undefined && object.creator !== null) {
|
|
2305
|
-
message.creator = object.creator;
|
|
2306
|
-
}
|
|
2307
|
-
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2308
|
-
message.peerId = object.peer_id;
|
|
2309
|
-
}
|
|
2310
|
-
if (object.content_type !== undefined && object.content_type !== null) {
|
|
2311
|
-
message.contentType = object.content_type;
|
|
2312
|
-
}
|
|
2313
|
-
if (object.local_content_id !== undefined && object.local_content_id !== null) {
|
|
2314
|
-
message.localContentId = object.local_content_id;
|
|
2315
|
-
}
|
|
2316
|
-
if (object.title !== undefined && object.title !== null) {
|
|
2317
|
-
message.title = object.title;
|
|
2318
|
-
}
|
|
2319
|
-
if (object.body !== undefined && object.body !== null) {
|
|
2320
|
-
message.body = object.body;
|
|
2321
|
-
}
|
|
2322
|
-
if (object.content_uri !== undefined && object.content_uri !== null) {
|
|
2323
|
-
message.contentUri = object.content_uri;
|
|
2341
|
+
return message;
|
|
2342
|
+
},
|
|
2343
|
+
fromAmino(object) {
|
|
2344
|
+
const message = createBaseMsgUnlinkIdentity();
|
|
2345
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2346
|
+
message.creator = object.creator;
|
|
2324
2347
|
}
|
|
2325
|
-
if (object.
|
|
2326
|
-
message.
|
|
2348
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2349
|
+
message.peerId = object.peer_id;
|
|
2327
2350
|
}
|
|
2328
2351
|
return message;
|
|
2329
2352
|
},
|
|
@@ -2331,53 +2354,47 @@ exports.MsgFederateContent = {
|
|
|
2331
2354
|
const obj = {};
|
|
2332
2355
|
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2333
2356
|
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
2334
|
-
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
2335
|
-
obj.local_content_id = message.localContentId === "" ? undefined : message.localContentId;
|
|
2336
|
-
obj.title = message.title === "" ? undefined : message.title;
|
|
2337
|
-
obj.body = message.body === "" ? undefined : message.body;
|
|
2338
|
-
obj.content_uri = message.contentUri === "" ? undefined : message.contentUri;
|
|
2339
|
-
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
2340
2357
|
return obj;
|
|
2341
2358
|
},
|
|
2342
2359
|
fromAminoMsg(object) {
|
|
2343
|
-
return exports.
|
|
2360
|
+
return exports.MsgUnlinkIdentity.fromAmino(object.value);
|
|
2344
2361
|
},
|
|
2345
2362
|
toAminoMsg(message) {
|
|
2346
2363
|
return {
|
|
2347
|
-
type: "sparkdream/x/federation/
|
|
2348
|
-
value: exports.
|
|
2364
|
+
type: "sparkdream/x/federation/MsgUnlinkIdentity",
|
|
2365
|
+
value: exports.MsgUnlinkIdentity.toAmino(message)
|
|
2349
2366
|
};
|
|
2350
2367
|
},
|
|
2351
2368
|
fromProtoMsg(message) {
|
|
2352
|
-
return exports.
|
|
2369
|
+
return exports.MsgUnlinkIdentity.decode(message.value);
|
|
2353
2370
|
},
|
|
2354
2371
|
toProto(message) {
|
|
2355
|
-
return exports.
|
|
2372
|
+
return exports.MsgUnlinkIdentity.encode(message).finish();
|
|
2356
2373
|
},
|
|
2357
2374
|
toProtoMsg(message) {
|
|
2358
2375
|
return {
|
|
2359
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2360
|
-
value: exports.
|
|
2376
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnlinkIdentity",
|
|
2377
|
+
value: exports.MsgUnlinkIdentity.encode(message).finish()
|
|
2361
2378
|
};
|
|
2362
2379
|
}
|
|
2363
2380
|
};
|
|
2364
|
-
function
|
|
2381
|
+
function createBaseMsgUnlinkIdentityResponse() {
|
|
2365
2382
|
return {};
|
|
2366
2383
|
}
|
|
2367
2384
|
/**
|
|
2368
|
-
* @name
|
|
2385
|
+
* @name MsgUnlinkIdentityResponse
|
|
2369
2386
|
* @package sparkdream.federation.v1
|
|
2370
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2387
|
+
* @see proto type: sparkdream.federation.v1.MsgUnlinkIdentityResponse
|
|
2371
2388
|
*/
|
|
2372
|
-
exports.
|
|
2373
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2389
|
+
exports.MsgUnlinkIdentityResponse = {
|
|
2390
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnlinkIdentityResponse",
|
|
2374
2391
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2375
2392
|
return writer;
|
|
2376
2393
|
},
|
|
2377
2394
|
decode(input, length) {
|
|
2378
2395
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2379
2396
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2380
|
-
const message =
|
|
2397
|
+
const message = createBaseMsgUnlinkIdentityResponse();
|
|
2381
2398
|
while (reader.pos < end) {
|
|
2382
2399
|
const tag = reader.uint32();
|
|
2383
2400
|
switch (tag >>> 3) {
|
|
@@ -2389,11 +2406,11 @@ exports.MsgFederateContentResponse = {
|
|
|
2389
2406
|
return message;
|
|
2390
2407
|
},
|
|
2391
2408
|
fromPartial(_) {
|
|
2392
|
-
const message =
|
|
2409
|
+
const message = createBaseMsgUnlinkIdentityResponse();
|
|
2393
2410
|
return message;
|
|
2394
2411
|
},
|
|
2395
2412
|
fromAmino(_) {
|
|
2396
|
-
const message =
|
|
2413
|
+
const message = createBaseMsgUnlinkIdentityResponse();
|
|
2397
2414
|
return message;
|
|
2398
2415
|
},
|
|
2399
2416
|
toAmino(_) {
|
|
@@ -2401,70 +2418,56 @@ exports.MsgFederateContentResponse = {
|
|
|
2401
2418
|
return obj;
|
|
2402
2419
|
},
|
|
2403
2420
|
fromAminoMsg(object) {
|
|
2404
|
-
return exports.
|
|
2421
|
+
return exports.MsgUnlinkIdentityResponse.fromAmino(object.value);
|
|
2405
2422
|
},
|
|
2406
2423
|
fromProtoMsg(message) {
|
|
2407
|
-
return exports.
|
|
2424
|
+
return exports.MsgUnlinkIdentityResponse.decode(message.value);
|
|
2408
2425
|
},
|
|
2409
2426
|
toProto(message) {
|
|
2410
|
-
return exports.
|
|
2427
|
+
return exports.MsgUnlinkIdentityResponse.encode(message).finish();
|
|
2411
2428
|
},
|
|
2412
2429
|
toProtoMsg(message) {
|
|
2413
2430
|
return {
|
|
2414
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2415
|
-
value: exports.
|
|
2431
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnlinkIdentityResponse",
|
|
2432
|
+
value: exports.MsgUnlinkIdentityResponse.encode(message).finish()
|
|
2416
2433
|
};
|
|
2417
2434
|
}
|
|
2418
2435
|
};
|
|
2419
|
-
function
|
|
2436
|
+
function createBaseMsgConfirmIdentityLink() {
|
|
2420
2437
|
return {
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
contentType: "",
|
|
2424
|
-
localContentId: ""
|
|
2438
|
+
creator: "",
|
|
2439
|
+
claimantChainPeerId: ""
|
|
2425
2440
|
};
|
|
2426
2441
|
}
|
|
2427
2442
|
/**
|
|
2428
|
-
* @name
|
|
2443
|
+
* @name MsgConfirmIdentityLink
|
|
2429
2444
|
* @package sparkdream.federation.v1
|
|
2430
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2445
|
+
* @see proto type: sparkdream.federation.v1.MsgConfirmIdentityLink
|
|
2431
2446
|
*/
|
|
2432
|
-
exports.
|
|
2433
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2434
|
-
aminoType: "sparkdream/x/federation/
|
|
2447
|
+
exports.MsgConfirmIdentityLink = {
|
|
2448
|
+
typeUrl: "/sparkdream.federation.v1.MsgConfirmIdentityLink",
|
|
2449
|
+
aminoType: "sparkdream/x/federation/MsgConfirmIdentityLink",
|
|
2435
2450
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2436
|
-
if (message.
|
|
2437
|
-
writer.uint32(10).string(message.
|
|
2438
|
-
}
|
|
2439
|
-
if (message.peerId !== "") {
|
|
2440
|
-
writer.uint32(18).string(message.peerId);
|
|
2441
|
-
}
|
|
2442
|
-
if (message.contentType !== "") {
|
|
2443
|
-
writer.uint32(26).string(message.contentType);
|
|
2451
|
+
if (message.creator !== "") {
|
|
2452
|
+
writer.uint32(10).string(message.creator);
|
|
2444
2453
|
}
|
|
2445
|
-
if (message.
|
|
2446
|
-
writer.uint32(
|
|
2454
|
+
if (message.claimantChainPeerId !== "") {
|
|
2455
|
+
writer.uint32(18).string(message.claimantChainPeerId);
|
|
2447
2456
|
}
|
|
2448
2457
|
return writer;
|
|
2449
2458
|
},
|
|
2450
2459
|
decode(input, length) {
|
|
2451
2460
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2452
2461
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2453
|
-
const message =
|
|
2462
|
+
const message = createBaseMsgConfirmIdentityLink();
|
|
2454
2463
|
while (reader.pos < end) {
|
|
2455
2464
|
const tag = reader.uint32();
|
|
2456
2465
|
switch (tag >>> 3) {
|
|
2457
2466
|
case 1:
|
|
2458
|
-
message.
|
|
2467
|
+
message.creator = reader.string();
|
|
2459
2468
|
break;
|
|
2460
2469
|
case 2:
|
|
2461
|
-
message.
|
|
2462
|
-
break;
|
|
2463
|
-
case 3:
|
|
2464
|
-
message.contentType = reader.string();
|
|
2465
|
-
break;
|
|
2466
|
-
case 4:
|
|
2467
|
-
message.localContentId = reader.string();
|
|
2470
|
+
message.claimantChainPeerId = reader.string();
|
|
2468
2471
|
break;
|
|
2469
2472
|
default:
|
|
2470
2473
|
reader.skipType(tag & 7);
|
|
@@ -2474,76 +2477,66 @@ exports.MsgAttestOutbound = {
|
|
|
2474
2477
|
return message;
|
|
2475
2478
|
},
|
|
2476
2479
|
fromPartial(object) {
|
|
2477
|
-
const message =
|
|
2478
|
-
message.
|
|
2479
|
-
message.
|
|
2480
|
-
message.contentType = object.contentType ?? "";
|
|
2481
|
-
message.localContentId = object.localContentId ?? "";
|
|
2480
|
+
const message = createBaseMsgConfirmIdentityLink();
|
|
2481
|
+
message.creator = object.creator ?? "";
|
|
2482
|
+
message.claimantChainPeerId = object.claimantChainPeerId ?? "";
|
|
2482
2483
|
return message;
|
|
2483
2484
|
},
|
|
2484
2485
|
fromAmino(object) {
|
|
2485
|
-
const message =
|
|
2486
|
-
if (object.
|
|
2487
|
-
message.
|
|
2488
|
-
}
|
|
2489
|
-
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2490
|
-
message.peerId = object.peer_id;
|
|
2491
|
-
}
|
|
2492
|
-
if (object.content_type !== undefined && object.content_type !== null) {
|
|
2493
|
-
message.contentType = object.content_type;
|
|
2486
|
+
const message = createBaseMsgConfirmIdentityLink();
|
|
2487
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2488
|
+
message.creator = object.creator;
|
|
2494
2489
|
}
|
|
2495
|
-
if (object.
|
|
2496
|
-
message.
|
|
2490
|
+
if (object.claimant_chain_peer_id !== undefined && object.claimant_chain_peer_id !== null) {
|
|
2491
|
+
message.claimantChainPeerId = object.claimant_chain_peer_id;
|
|
2497
2492
|
}
|
|
2498
2493
|
return message;
|
|
2499
2494
|
},
|
|
2500
2495
|
toAmino(message) {
|
|
2501
2496
|
const obj = {};
|
|
2502
|
-
obj.
|
|
2503
|
-
obj.
|
|
2504
|
-
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
2505
|
-
obj.local_content_id = message.localContentId === "" ? undefined : message.localContentId;
|
|
2497
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2498
|
+
obj.claimant_chain_peer_id = message.claimantChainPeerId === "" ? undefined : message.claimantChainPeerId;
|
|
2506
2499
|
return obj;
|
|
2507
2500
|
},
|
|
2508
2501
|
fromAminoMsg(object) {
|
|
2509
|
-
return exports.
|
|
2502
|
+
return exports.MsgConfirmIdentityLink.fromAmino(object.value);
|
|
2510
2503
|
},
|
|
2511
2504
|
toAminoMsg(message) {
|
|
2512
2505
|
return {
|
|
2513
|
-
type: "sparkdream/x/federation/
|
|
2514
|
-
value: exports.
|
|
2506
|
+
type: "sparkdream/x/federation/MsgConfirmIdentityLink",
|
|
2507
|
+
value: exports.MsgConfirmIdentityLink.toAmino(message)
|
|
2515
2508
|
};
|
|
2516
2509
|
},
|
|
2517
2510
|
fromProtoMsg(message) {
|
|
2518
|
-
return exports.
|
|
2511
|
+
return exports.MsgConfirmIdentityLink.decode(message.value);
|
|
2519
2512
|
},
|
|
2520
2513
|
toProto(message) {
|
|
2521
|
-
return exports.
|
|
2514
|
+
return exports.MsgConfirmIdentityLink.encode(message).finish();
|
|
2522
2515
|
},
|
|
2523
2516
|
toProtoMsg(message) {
|
|
2524
2517
|
return {
|
|
2525
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2526
|
-
value: exports.
|
|
2518
|
+
typeUrl: "/sparkdream.federation.v1.MsgConfirmIdentityLink",
|
|
2519
|
+
value: exports.MsgConfirmIdentityLink.encode(message).finish()
|
|
2527
2520
|
};
|
|
2528
2521
|
}
|
|
2529
2522
|
};
|
|
2530
|
-
function
|
|
2523
|
+
function createBaseMsgConfirmIdentityLinkResponse() {
|
|
2531
2524
|
return {};
|
|
2532
2525
|
}
|
|
2533
2526
|
/**
|
|
2534
|
-
* @name
|
|
2527
|
+
* @name MsgConfirmIdentityLinkResponse
|
|
2535
2528
|
* @package sparkdream.federation.v1
|
|
2536
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2529
|
+
* @see proto type: sparkdream.federation.v1.MsgConfirmIdentityLinkResponse
|
|
2537
2530
|
*/
|
|
2538
|
-
exports.
|
|
2539
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2531
|
+
exports.MsgConfirmIdentityLinkResponse = {
|
|
2532
|
+
typeUrl: "/sparkdream.federation.v1.MsgConfirmIdentityLinkResponse",
|
|
2540
2533
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2541
2534
|
return writer;
|
|
2542
2535
|
},
|
|
2543
2536
|
decode(input, length) {
|
|
2544
2537
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2545
2538
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2546
|
-
const message =
|
|
2539
|
+
const message = createBaseMsgConfirmIdentityLinkResponse();
|
|
2547
2540
|
while (reader.pos < end) {
|
|
2548
2541
|
const tag = reader.uint32();
|
|
2549
2542
|
switch (tag >>> 3) {
|
|
@@ -2555,11 +2548,11 @@ exports.MsgAttestOutboundResponse = {
|
|
|
2555
2548
|
return message;
|
|
2556
2549
|
},
|
|
2557
2550
|
fromPartial(_) {
|
|
2558
|
-
const message =
|
|
2551
|
+
const message = createBaseMsgConfirmIdentityLinkResponse();
|
|
2559
2552
|
return message;
|
|
2560
2553
|
},
|
|
2561
2554
|
fromAmino(_) {
|
|
2562
|
-
const message =
|
|
2555
|
+
const message = createBaseMsgConfirmIdentityLinkResponse();
|
|
2563
2556
|
return message;
|
|
2564
2557
|
},
|
|
2565
2558
|
toAmino(_) {
|
|
@@ -2567,70 +2560,63 @@ exports.MsgAttestOutboundResponse = {
|
|
|
2567
2560
|
return obj;
|
|
2568
2561
|
},
|
|
2569
2562
|
fromAminoMsg(object) {
|
|
2570
|
-
return exports.
|
|
2563
|
+
return exports.MsgConfirmIdentityLinkResponse.fromAmino(object.value);
|
|
2571
2564
|
},
|
|
2572
2565
|
fromProtoMsg(message) {
|
|
2573
|
-
return exports.
|
|
2566
|
+
return exports.MsgConfirmIdentityLinkResponse.decode(message.value);
|
|
2574
2567
|
},
|
|
2575
2568
|
toProto(message) {
|
|
2576
|
-
return exports.
|
|
2569
|
+
return exports.MsgConfirmIdentityLinkResponse.encode(message).finish();
|
|
2577
2570
|
},
|
|
2578
2571
|
toProtoMsg(message) {
|
|
2579
2572
|
return {
|
|
2580
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2581
|
-
value: exports.
|
|
2573
|
+
typeUrl: "/sparkdream.federation.v1.MsgConfirmIdentityLinkResponse",
|
|
2574
|
+
value: exports.MsgConfirmIdentityLinkResponse.encode(message).finish()
|
|
2582
2575
|
};
|
|
2583
2576
|
}
|
|
2584
2577
|
};
|
|
2585
|
-
function
|
|
2578
|
+
function createBaseMsgRequestReputationAttestation() {
|
|
2586
2579
|
return {
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
reason: ""
|
|
2580
|
+
creator: "",
|
|
2581
|
+
peerId: "",
|
|
2582
|
+
remoteAddress: ""
|
|
2591
2583
|
};
|
|
2592
2584
|
}
|
|
2593
2585
|
/**
|
|
2594
|
-
* @name
|
|
2586
|
+
* @name MsgRequestReputationAttestation
|
|
2595
2587
|
* @package sparkdream.federation.v1
|
|
2596
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2588
|
+
* @see proto type: sparkdream.federation.v1.MsgRequestReputationAttestation
|
|
2597
2589
|
*/
|
|
2598
|
-
exports.
|
|
2599
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2600
|
-
aminoType: "sparkdream/x/federation/
|
|
2590
|
+
exports.MsgRequestReputationAttestation = {
|
|
2591
|
+
typeUrl: "/sparkdream.federation.v1.MsgRequestReputationAttestation",
|
|
2592
|
+
aminoType: "sparkdream/x/federation/MsgRequestReputationAttestation",
|
|
2601
2593
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2602
|
-
if (message.
|
|
2603
|
-
writer.uint32(10).string(message.
|
|
2604
|
-
}
|
|
2605
|
-
if (message.contentId !== BigInt(0)) {
|
|
2606
|
-
writer.uint32(16).uint64(message.contentId);
|
|
2594
|
+
if (message.creator !== "") {
|
|
2595
|
+
writer.uint32(10).string(message.creator);
|
|
2607
2596
|
}
|
|
2608
|
-
if (message.
|
|
2609
|
-
writer.uint32(
|
|
2597
|
+
if (message.peerId !== "") {
|
|
2598
|
+
writer.uint32(18).string(message.peerId);
|
|
2610
2599
|
}
|
|
2611
|
-
if (message.
|
|
2612
|
-
writer.uint32(
|
|
2600
|
+
if (message.remoteAddress !== "") {
|
|
2601
|
+
writer.uint32(26).string(message.remoteAddress);
|
|
2613
2602
|
}
|
|
2614
2603
|
return writer;
|
|
2615
2604
|
},
|
|
2616
2605
|
decode(input, length) {
|
|
2617
2606
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2618
2607
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2619
|
-
const message =
|
|
2608
|
+
const message = createBaseMsgRequestReputationAttestation();
|
|
2620
2609
|
while (reader.pos < end) {
|
|
2621
2610
|
const tag = reader.uint32();
|
|
2622
2611
|
switch (tag >>> 3) {
|
|
2623
2612
|
case 1:
|
|
2624
|
-
message.
|
|
2613
|
+
message.creator = reader.string();
|
|
2625
2614
|
break;
|
|
2626
2615
|
case 2:
|
|
2627
|
-
message.
|
|
2616
|
+
message.peerId = reader.string();
|
|
2628
2617
|
break;
|
|
2629
2618
|
case 3:
|
|
2630
|
-
message.
|
|
2631
|
-
break;
|
|
2632
|
-
case 4:
|
|
2633
|
-
message.reason = reader.string();
|
|
2619
|
+
message.remoteAddress = reader.string();
|
|
2634
2620
|
break;
|
|
2635
2621
|
default:
|
|
2636
2622
|
reader.skipType(tag & 7);
|
|
@@ -2640,76 +2626,71 @@ exports.MsgModerateContent = {
|
|
|
2640
2626
|
return message;
|
|
2641
2627
|
},
|
|
2642
2628
|
fromPartial(object) {
|
|
2643
|
-
const message =
|
|
2644
|
-
message.
|
|
2645
|
-
message.
|
|
2646
|
-
message.
|
|
2647
|
-
message.reason = object.reason ?? "";
|
|
2629
|
+
const message = createBaseMsgRequestReputationAttestation();
|
|
2630
|
+
message.creator = object.creator ?? "";
|
|
2631
|
+
message.peerId = object.peerId ?? "";
|
|
2632
|
+
message.remoteAddress = object.remoteAddress ?? "";
|
|
2648
2633
|
return message;
|
|
2649
2634
|
},
|
|
2650
2635
|
fromAmino(object) {
|
|
2651
|
-
const message =
|
|
2652
|
-
if (object.
|
|
2653
|
-
message.
|
|
2654
|
-
}
|
|
2655
|
-
if (object.content_id !== undefined && object.content_id !== null) {
|
|
2656
|
-
message.contentId = BigInt(object.content_id);
|
|
2636
|
+
const message = createBaseMsgRequestReputationAttestation();
|
|
2637
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2638
|
+
message.creator = object.creator;
|
|
2657
2639
|
}
|
|
2658
|
-
if (object.
|
|
2659
|
-
message.
|
|
2640
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2641
|
+
message.peerId = object.peer_id;
|
|
2660
2642
|
}
|
|
2661
|
-
if (object.
|
|
2662
|
-
message.
|
|
2643
|
+
if (object.remote_address !== undefined && object.remote_address !== null) {
|
|
2644
|
+
message.remoteAddress = object.remote_address;
|
|
2663
2645
|
}
|
|
2664
2646
|
return message;
|
|
2665
2647
|
},
|
|
2666
2648
|
toAmino(message) {
|
|
2667
2649
|
const obj = {};
|
|
2668
|
-
obj.
|
|
2669
|
-
obj.
|
|
2670
|
-
obj.
|
|
2671
|
-
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
2650
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2651
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
2652
|
+
obj.remote_address = message.remoteAddress === "" ? undefined : message.remoteAddress;
|
|
2672
2653
|
return obj;
|
|
2673
2654
|
},
|
|
2674
2655
|
fromAminoMsg(object) {
|
|
2675
|
-
return exports.
|
|
2656
|
+
return exports.MsgRequestReputationAttestation.fromAmino(object.value);
|
|
2676
2657
|
},
|
|
2677
2658
|
toAminoMsg(message) {
|
|
2678
2659
|
return {
|
|
2679
|
-
type: "sparkdream/x/federation/
|
|
2680
|
-
value: exports.
|
|
2660
|
+
type: "sparkdream/x/federation/MsgRequestReputationAttestation",
|
|
2661
|
+
value: exports.MsgRequestReputationAttestation.toAmino(message)
|
|
2681
2662
|
};
|
|
2682
2663
|
},
|
|
2683
2664
|
fromProtoMsg(message) {
|
|
2684
|
-
return exports.
|
|
2665
|
+
return exports.MsgRequestReputationAttestation.decode(message.value);
|
|
2685
2666
|
},
|
|
2686
2667
|
toProto(message) {
|
|
2687
|
-
return exports.
|
|
2668
|
+
return exports.MsgRequestReputationAttestation.encode(message).finish();
|
|
2688
2669
|
},
|
|
2689
2670
|
toProtoMsg(message) {
|
|
2690
2671
|
return {
|
|
2691
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2692
|
-
value: exports.
|
|
2672
|
+
typeUrl: "/sparkdream.federation.v1.MsgRequestReputationAttestation",
|
|
2673
|
+
value: exports.MsgRequestReputationAttestation.encode(message).finish()
|
|
2693
2674
|
};
|
|
2694
2675
|
}
|
|
2695
2676
|
};
|
|
2696
|
-
function
|
|
2677
|
+
function createBaseMsgRequestReputationAttestationResponse() {
|
|
2697
2678
|
return {};
|
|
2698
2679
|
}
|
|
2699
2680
|
/**
|
|
2700
|
-
* @name
|
|
2681
|
+
* @name MsgRequestReputationAttestationResponse
|
|
2701
2682
|
* @package sparkdream.federation.v1
|
|
2702
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2683
|
+
* @see proto type: sparkdream.federation.v1.MsgRequestReputationAttestationResponse
|
|
2703
2684
|
*/
|
|
2704
|
-
exports.
|
|
2705
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2685
|
+
exports.MsgRequestReputationAttestationResponse = {
|
|
2686
|
+
typeUrl: "/sparkdream.federation.v1.MsgRequestReputationAttestationResponse",
|
|
2706
2687
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2707
2688
|
return writer;
|
|
2708
2689
|
},
|
|
2709
2690
|
decode(input, length) {
|
|
2710
2691
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2711
2692
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2712
|
-
const message =
|
|
2693
|
+
const message = createBaseMsgRequestReputationAttestationResponse();
|
|
2713
2694
|
while (reader.pos < end) {
|
|
2714
2695
|
const tag = reader.uint32();
|
|
2715
2696
|
switch (tag >>> 3) {
|
|
@@ -2721,11 +2702,11 @@ exports.MsgModerateContentResponse = {
|
|
|
2721
2702
|
return message;
|
|
2722
2703
|
},
|
|
2723
2704
|
fromPartial(_) {
|
|
2724
|
-
const message =
|
|
2705
|
+
const message = createBaseMsgRequestReputationAttestationResponse();
|
|
2725
2706
|
return message;
|
|
2726
2707
|
},
|
|
2727
2708
|
fromAmino(_) {
|
|
2728
|
-
const message =
|
|
2709
|
+
const message = createBaseMsgRequestReputationAttestationResponse();
|
|
2729
2710
|
return message;
|
|
2730
2711
|
},
|
|
2731
2712
|
toAmino(_) {
|
|
@@ -2733,52 +2714,52 @@ exports.MsgModerateContentResponse = {
|
|
|
2733
2714
|
return obj;
|
|
2734
2715
|
},
|
|
2735
2716
|
fromAminoMsg(object) {
|
|
2736
|
-
return exports.
|
|
2717
|
+
return exports.MsgRequestReputationAttestationResponse.fromAmino(object.value);
|
|
2737
2718
|
},
|
|
2738
2719
|
fromProtoMsg(message) {
|
|
2739
|
-
return exports.
|
|
2720
|
+
return exports.MsgRequestReputationAttestationResponse.decode(message.value);
|
|
2740
2721
|
},
|
|
2741
2722
|
toProto(message) {
|
|
2742
|
-
return exports.
|
|
2723
|
+
return exports.MsgRequestReputationAttestationResponse.encode(message).finish();
|
|
2743
2724
|
},
|
|
2744
2725
|
toProtoMsg(message) {
|
|
2745
2726
|
return {
|
|
2746
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2747
|
-
value: exports.
|
|
2727
|
+
typeUrl: "/sparkdream.federation.v1.MsgRequestReputationAttestationResponse",
|
|
2728
|
+
value: exports.MsgRequestReputationAttestationResponse.encode(message).finish()
|
|
2748
2729
|
};
|
|
2749
2730
|
}
|
|
2750
2731
|
};
|
|
2751
|
-
function
|
|
2732
|
+
function createBaseMsgVerifyContent() {
|
|
2752
2733
|
return {
|
|
2753
2734
|
creator: "",
|
|
2754
|
-
|
|
2755
|
-
|
|
2735
|
+
contentId: BigInt(0),
|
|
2736
|
+
contentHash: new Uint8Array()
|
|
2756
2737
|
};
|
|
2757
2738
|
}
|
|
2758
2739
|
/**
|
|
2759
|
-
* @name
|
|
2740
|
+
* @name MsgVerifyContent
|
|
2760
2741
|
* @package sparkdream.federation.v1
|
|
2761
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2742
|
+
* @see proto type: sparkdream.federation.v1.MsgVerifyContent
|
|
2762
2743
|
*/
|
|
2763
|
-
exports.
|
|
2764
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2765
|
-
aminoType: "sparkdream/x/federation/
|
|
2744
|
+
exports.MsgVerifyContent = {
|
|
2745
|
+
typeUrl: "/sparkdream.federation.v1.MsgVerifyContent",
|
|
2746
|
+
aminoType: "sparkdream/x/federation/MsgVerifyContent",
|
|
2766
2747
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2767
2748
|
if (message.creator !== "") {
|
|
2768
2749
|
writer.uint32(10).string(message.creator);
|
|
2769
2750
|
}
|
|
2770
|
-
if (message.
|
|
2771
|
-
writer.uint32(
|
|
2751
|
+
if (message.contentId !== BigInt(0)) {
|
|
2752
|
+
writer.uint32(16).uint64(message.contentId);
|
|
2772
2753
|
}
|
|
2773
|
-
if (message.
|
|
2774
|
-
writer.uint32(26).
|
|
2754
|
+
if (message.contentHash.length !== 0) {
|
|
2755
|
+
writer.uint32(26).bytes(message.contentHash);
|
|
2775
2756
|
}
|
|
2776
2757
|
return writer;
|
|
2777
2758
|
},
|
|
2778
2759
|
decode(input, length) {
|
|
2779
2760
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2780
2761
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2781
|
-
const message =
|
|
2762
|
+
const message = createBaseMsgVerifyContent();
|
|
2782
2763
|
while (reader.pos < end) {
|
|
2783
2764
|
const tag = reader.uint32();
|
|
2784
2765
|
switch (tag >>> 3) {
|
|
@@ -2786,10 +2767,10 @@ exports.MsgLinkIdentity = {
|
|
|
2786
2767
|
message.creator = reader.string();
|
|
2787
2768
|
break;
|
|
2788
2769
|
case 2:
|
|
2789
|
-
message.
|
|
2770
|
+
message.contentId = reader.uint64();
|
|
2790
2771
|
break;
|
|
2791
2772
|
case 3:
|
|
2792
|
-
message.
|
|
2773
|
+
message.contentHash = reader.bytes();
|
|
2793
2774
|
break;
|
|
2794
2775
|
default:
|
|
2795
2776
|
reader.skipType(tag & 7);
|
|
@@ -2799,71 +2780,71 @@ exports.MsgLinkIdentity = {
|
|
|
2799
2780
|
return message;
|
|
2800
2781
|
},
|
|
2801
2782
|
fromPartial(object) {
|
|
2802
|
-
const message =
|
|
2783
|
+
const message = createBaseMsgVerifyContent();
|
|
2803
2784
|
message.creator = object.creator ?? "";
|
|
2804
|
-
message.
|
|
2805
|
-
message.
|
|
2785
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
2786
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
2806
2787
|
return message;
|
|
2807
2788
|
},
|
|
2808
2789
|
fromAmino(object) {
|
|
2809
|
-
const message =
|
|
2790
|
+
const message = createBaseMsgVerifyContent();
|
|
2810
2791
|
if (object.creator !== undefined && object.creator !== null) {
|
|
2811
2792
|
message.creator = object.creator;
|
|
2812
2793
|
}
|
|
2813
|
-
if (object.
|
|
2814
|
-
message.
|
|
2794
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
2795
|
+
message.contentId = BigInt(object.content_id);
|
|
2815
2796
|
}
|
|
2816
|
-
if (object.
|
|
2817
|
-
message.
|
|
2797
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
2798
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
2818
2799
|
}
|
|
2819
2800
|
return message;
|
|
2820
2801
|
},
|
|
2821
2802
|
toAmino(message) {
|
|
2822
2803
|
const obj = {};
|
|
2823
2804
|
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2824
|
-
obj.
|
|
2825
|
-
obj.
|
|
2805
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
2806
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
2826
2807
|
return obj;
|
|
2827
2808
|
},
|
|
2828
2809
|
fromAminoMsg(object) {
|
|
2829
|
-
return exports.
|
|
2810
|
+
return exports.MsgVerifyContent.fromAmino(object.value);
|
|
2830
2811
|
},
|
|
2831
2812
|
toAminoMsg(message) {
|
|
2832
2813
|
return {
|
|
2833
|
-
type: "sparkdream/x/federation/
|
|
2834
|
-
value: exports.
|
|
2814
|
+
type: "sparkdream/x/federation/MsgVerifyContent",
|
|
2815
|
+
value: exports.MsgVerifyContent.toAmino(message)
|
|
2835
2816
|
};
|
|
2836
2817
|
},
|
|
2837
2818
|
fromProtoMsg(message) {
|
|
2838
|
-
return exports.
|
|
2819
|
+
return exports.MsgVerifyContent.decode(message.value);
|
|
2839
2820
|
},
|
|
2840
2821
|
toProto(message) {
|
|
2841
|
-
return exports.
|
|
2822
|
+
return exports.MsgVerifyContent.encode(message).finish();
|
|
2842
2823
|
},
|
|
2843
2824
|
toProtoMsg(message) {
|
|
2844
2825
|
return {
|
|
2845
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2846
|
-
value: exports.
|
|
2826
|
+
typeUrl: "/sparkdream.federation.v1.MsgVerifyContent",
|
|
2827
|
+
value: exports.MsgVerifyContent.encode(message).finish()
|
|
2847
2828
|
};
|
|
2848
2829
|
}
|
|
2849
2830
|
};
|
|
2850
|
-
function
|
|
2831
|
+
function createBaseMsgVerifyContentResponse() {
|
|
2851
2832
|
return {};
|
|
2852
2833
|
}
|
|
2853
2834
|
/**
|
|
2854
|
-
* @name
|
|
2835
|
+
* @name MsgVerifyContentResponse
|
|
2855
2836
|
* @package sparkdream.federation.v1
|
|
2856
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2837
|
+
* @see proto type: sparkdream.federation.v1.MsgVerifyContentResponse
|
|
2857
2838
|
*/
|
|
2858
|
-
exports.
|
|
2859
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2839
|
+
exports.MsgVerifyContentResponse = {
|
|
2840
|
+
typeUrl: "/sparkdream.federation.v1.MsgVerifyContentResponse",
|
|
2860
2841
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2861
2842
|
return writer;
|
|
2862
2843
|
},
|
|
2863
2844
|
decode(input, length) {
|
|
2864
2845
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2865
2846
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2866
|
-
const message =
|
|
2847
|
+
const message = createBaseMsgVerifyContentResponse();
|
|
2867
2848
|
while (reader.pos < end) {
|
|
2868
2849
|
const tag = reader.uint32();
|
|
2869
2850
|
switch (tag >>> 3) {
|
|
@@ -2875,11 +2856,11 @@ exports.MsgLinkIdentityResponse = {
|
|
|
2875
2856
|
return message;
|
|
2876
2857
|
},
|
|
2877
2858
|
fromPartial(_) {
|
|
2878
|
-
const message =
|
|
2859
|
+
const message = createBaseMsgVerifyContentResponse();
|
|
2879
2860
|
return message;
|
|
2880
2861
|
},
|
|
2881
2862
|
fromAmino(_) {
|
|
2882
|
-
const message =
|
|
2863
|
+
const message = createBaseMsgVerifyContentResponse();
|
|
2883
2864
|
return message;
|
|
2884
2865
|
},
|
|
2885
2866
|
toAmino(_) {
|
|
@@ -2887,48 +2868,56 @@ exports.MsgLinkIdentityResponse = {
|
|
|
2887
2868
|
return obj;
|
|
2888
2869
|
},
|
|
2889
2870
|
fromAminoMsg(object) {
|
|
2890
|
-
return exports.
|
|
2871
|
+
return exports.MsgVerifyContentResponse.fromAmino(object.value);
|
|
2891
2872
|
},
|
|
2892
2873
|
fromProtoMsg(message) {
|
|
2893
|
-
return exports.
|
|
2874
|
+
return exports.MsgVerifyContentResponse.decode(message.value);
|
|
2894
2875
|
},
|
|
2895
2876
|
toProto(message) {
|
|
2896
|
-
return exports.
|
|
2877
|
+
return exports.MsgVerifyContentResponse.encode(message).finish();
|
|
2897
2878
|
},
|
|
2898
2879
|
toProtoMsg(message) {
|
|
2899
2880
|
return {
|
|
2900
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2901
|
-
value: exports.
|
|
2881
|
+
typeUrl: "/sparkdream.federation.v1.MsgVerifyContentResponse",
|
|
2882
|
+
value: exports.MsgVerifyContentResponse.encode(message).finish()
|
|
2902
2883
|
};
|
|
2903
2884
|
}
|
|
2904
2885
|
};
|
|
2905
|
-
function
|
|
2886
|
+
function createBaseMsgChallengeVerification() {
|
|
2906
2887
|
return {
|
|
2907
2888
|
creator: "",
|
|
2908
|
-
|
|
2889
|
+
contentId: BigInt(0),
|
|
2890
|
+
contentHash: new Uint8Array(),
|
|
2891
|
+
evidence: ""
|
|
2909
2892
|
};
|
|
2910
2893
|
}
|
|
2911
2894
|
/**
|
|
2912
|
-
* @name
|
|
2895
|
+
* @name MsgChallengeVerification
|
|
2913
2896
|
* @package sparkdream.federation.v1
|
|
2914
|
-
* @see proto type: sparkdream.federation.v1.
|
|
2897
|
+
* @see proto type: sparkdream.federation.v1.MsgChallengeVerification
|
|
2915
2898
|
*/
|
|
2916
|
-
exports.
|
|
2917
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2918
|
-
aminoType: "sparkdream/x/federation/
|
|
2899
|
+
exports.MsgChallengeVerification = {
|
|
2900
|
+
typeUrl: "/sparkdream.federation.v1.MsgChallengeVerification",
|
|
2901
|
+
aminoType: "sparkdream/x/federation/MsgChallengeVerification",
|
|
2919
2902
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2920
2903
|
if (message.creator !== "") {
|
|
2921
2904
|
writer.uint32(10).string(message.creator);
|
|
2922
2905
|
}
|
|
2923
|
-
if (message.
|
|
2924
|
-
writer.uint32(
|
|
2906
|
+
if (message.contentId !== BigInt(0)) {
|
|
2907
|
+
writer.uint32(16).uint64(message.contentId);
|
|
2908
|
+
}
|
|
2909
|
+
if (message.contentHash.length !== 0) {
|
|
2910
|
+
writer.uint32(26).bytes(message.contentHash);
|
|
2911
|
+
}
|
|
2912
|
+
if (message.evidence !== "") {
|
|
2913
|
+
writer.uint32(34).string(message.evidence);
|
|
2925
2914
|
}
|
|
2926
2915
|
return writer;
|
|
2927
2916
|
},
|
|
2928
2917
|
decode(input, length) {
|
|
2929
2918
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2930
2919
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2931
|
-
const message =
|
|
2920
|
+
const message = createBaseMsgChallengeVerification();
|
|
2932
2921
|
while (reader.pos < end) {
|
|
2933
2922
|
const tag = reader.uint32();
|
|
2934
2923
|
switch (tag >>> 3) {
|
|
@@ -2936,7 +2925,13 @@ exports.MsgUnlinkIdentity = {
|
|
|
2936
2925
|
message.creator = reader.string();
|
|
2937
2926
|
break;
|
|
2938
2927
|
case 2:
|
|
2939
|
-
message.
|
|
2928
|
+
message.contentId = reader.uint64();
|
|
2929
|
+
break;
|
|
2930
|
+
case 3:
|
|
2931
|
+
message.contentHash = reader.bytes();
|
|
2932
|
+
break;
|
|
2933
|
+
case 4:
|
|
2934
|
+
message.evidence = reader.string();
|
|
2940
2935
|
break;
|
|
2941
2936
|
default:
|
|
2942
2937
|
reader.skipType(tag & 7);
|
|
@@ -2946,66 +2941,76 @@ exports.MsgUnlinkIdentity = {
|
|
|
2946
2941
|
return message;
|
|
2947
2942
|
},
|
|
2948
2943
|
fromPartial(object) {
|
|
2949
|
-
const message =
|
|
2944
|
+
const message = createBaseMsgChallengeVerification();
|
|
2950
2945
|
message.creator = object.creator ?? "";
|
|
2951
|
-
message.
|
|
2946
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
2947
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
2948
|
+
message.evidence = object.evidence ?? "";
|
|
2952
2949
|
return message;
|
|
2953
2950
|
},
|
|
2954
2951
|
fromAmino(object) {
|
|
2955
|
-
const message =
|
|
2952
|
+
const message = createBaseMsgChallengeVerification();
|
|
2956
2953
|
if (object.creator !== undefined && object.creator !== null) {
|
|
2957
2954
|
message.creator = object.creator;
|
|
2958
2955
|
}
|
|
2959
|
-
if (object.
|
|
2960
|
-
message.
|
|
2956
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
2957
|
+
message.contentId = BigInt(object.content_id);
|
|
2958
|
+
}
|
|
2959
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
2960
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
2961
|
+
}
|
|
2962
|
+
if (object.evidence !== undefined && object.evidence !== null) {
|
|
2963
|
+
message.evidence = object.evidence;
|
|
2961
2964
|
}
|
|
2962
2965
|
return message;
|
|
2963
2966
|
},
|
|
2964
2967
|
toAmino(message) {
|
|
2965
2968
|
const obj = {};
|
|
2966
2969
|
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2967
|
-
obj.
|
|
2970
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
2971
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
2972
|
+
obj.evidence = message.evidence === "" ? undefined : message.evidence;
|
|
2968
2973
|
return obj;
|
|
2969
2974
|
},
|
|
2970
2975
|
fromAminoMsg(object) {
|
|
2971
|
-
return exports.
|
|
2976
|
+
return exports.MsgChallengeVerification.fromAmino(object.value);
|
|
2972
2977
|
},
|
|
2973
2978
|
toAminoMsg(message) {
|
|
2974
2979
|
return {
|
|
2975
|
-
type: "sparkdream/x/federation/
|
|
2976
|
-
value: exports.
|
|
2980
|
+
type: "sparkdream/x/federation/MsgChallengeVerification",
|
|
2981
|
+
value: exports.MsgChallengeVerification.toAmino(message)
|
|
2977
2982
|
};
|
|
2978
2983
|
},
|
|
2979
2984
|
fromProtoMsg(message) {
|
|
2980
|
-
return exports.
|
|
2985
|
+
return exports.MsgChallengeVerification.decode(message.value);
|
|
2981
2986
|
},
|
|
2982
2987
|
toProto(message) {
|
|
2983
|
-
return exports.
|
|
2988
|
+
return exports.MsgChallengeVerification.encode(message).finish();
|
|
2984
2989
|
},
|
|
2985
2990
|
toProtoMsg(message) {
|
|
2986
2991
|
return {
|
|
2987
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
2988
|
-
value: exports.
|
|
2992
|
+
typeUrl: "/sparkdream.federation.v1.MsgChallengeVerification",
|
|
2993
|
+
value: exports.MsgChallengeVerification.encode(message).finish()
|
|
2989
2994
|
};
|
|
2990
2995
|
}
|
|
2991
2996
|
};
|
|
2992
|
-
function
|
|
2997
|
+
function createBaseMsgChallengeVerificationResponse() {
|
|
2993
2998
|
return {};
|
|
2994
2999
|
}
|
|
2995
3000
|
/**
|
|
2996
|
-
* @name
|
|
3001
|
+
* @name MsgChallengeVerificationResponse
|
|
2997
3002
|
* @package sparkdream.federation.v1
|
|
2998
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3003
|
+
* @see proto type: sparkdream.federation.v1.MsgChallengeVerificationResponse
|
|
2999
3004
|
*/
|
|
3000
|
-
exports.
|
|
3001
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3005
|
+
exports.MsgChallengeVerificationResponse = {
|
|
3006
|
+
typeUrl: "/sparkdream.federation.v1.MsgChallengeVerificationResponse",
|
|
3002
3007
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3003
3008
|
return writer;
|
|
3004
3009
|
},
|
|
3005
3010
|
decode(input, length) {
|
|
3006
3011
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3007
3012
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3008
|
-
const message =
|
|
3013
|
+
const message = createBaseMsgChallengeVerificationResponse();
|
|
3009
3014
|
while (reader.pos < end) {
|
|
3010
3015
|
const tag = reader.uint32();
|
|
3011
3016
|
switch (tag >>> 3) {
|
|
@@ -3017,11 +3022,11 @@ exports.MsgUnlinkIdentityResponse = {
|
|
|
3017
3022
|
return message;
|
|
3018
3023
|
},
|
|
3019
3024
|
fromPartial(_) {
|
|
3020
|
-
const message =
|
|
3025
|
+
const message = createBaseMsgChallengeVerificationResponse();
|
|
3021
3026
|
return message;
|
|
3022
3027
|
},
|
|
3023
3028
|
fromAmino(_) {
|
|
3024
|
-
const message =
|
|
3029
|
+
const message = createBaseMsgChallengeVerificationResponse();
|
|
3025
3030
|
return message;
|
|
3026
3031
|
},
|
|
3027
3032
|
toAmino(_) {
|
|
@@ -3029,48 +3034,52 @@ exports.MsgUnlinkIdentityResponse = {
|
|
|
3029
3034
|
return obj;
|
|
3030
3035
|
},
|
|
3031
3036
|
fromAminoMsg(object) {
|
|
3032
|
-
return exports.
|
|
3037
|
+
return exports.MsgChallengeVerificationResponse.fromAmino(object.value);
|
|
3033
3038
|
},
|
|
3034
3039
|
fromProtoMsg(message) {
|
|
3035
|
-
return exports.
|
|
3040
|
+
return exports.MsgChallengeVerificationResponse.decode(message.value);
|
|
3036
3041
|
},
|
|
3037
3042
|
toProto(message) {
|
|
3038
|
-
return exports.
|
|
3043
|
+
return exports.MsgChallengeVerificationResponse.encode(message).finish();
|
|
3039
3044
|
},
|
|
3040
3045
|
toProtoMsg(message) {
|
|
3041
3046
|
return {
|
|
3042
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3043
|
-
value: exports.
|
|
3047
|
+
typeUrl: "/sparkdream.federation.v1.MsgChallengeVerificationResponse",
|
|
3048
|
+
value: exports.MsgChallengeVerificationResponse.encode(message).finish()
|
|
3044
3049
|
};
|
|
3045
3050
|
}
|
|
3046
3051
|
};
|
|
3047
|
-
function
|
|
3052
|
+
function createBaseMsgSubmitArbiterHash() {
|
|
3048
3053
|
return {
|
|
3049
3054
|
creator: "",
|
|
3050
|
-
|
|
3055
|
+
contentId: BigInt(0),
|
|
3056
|
+
contentHash: new Uint8Array()
|
|
3051
3057
|
};
|
|
3052
3058
|
}
|
|
3053
3059
|
/**
|
|
3054
|
-
* @name
|
|
3060
|
+
* @name MsgSubmitArbiterHash
|
|
3055
3061
|
* @package sparkdream.federation.v1
|
|
3056
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3062
|
+
* @see proto type: sparkdream.federation.v1.MsgSubmitArbiterHash
|
|
3057
3063
|
*/
|
|
3058
|
-
exports.
|
|
3059
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3060
|
-
aminoType: "sparkdream/x/federation/
|
|
3064
|
+
exports.MsgSubmitArbiterHash = {
|
|
3065
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitArbiterHash",
|
|
3066
|
+
aminoType: "sparkdream/x/federation/MsgSubmitArbiterHash",
|
|
3061
3067
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3062
3068
|
if (message.creator !== "") {
|
|
3063
3069
|
writer.uint32(10).string(message.creator);
|
|
3064
3070
|
}
|
|
3065
|
-
if (message.
|
|
3066
|
-
writer.uint32(
|
|
3071
|
+
if (message.contentId !== BigInt(0)) {
|
|
3072
|
+
writer.uint32(16).uint64(message.contentId);
|
|
3073
|
+
}
|
|
3074
|
+
if (message.contentHash.length !== 0) {
|
|
3075
|
+
writer.uint32(26).bytes(message.contentHash);
|
|
3067
3076
|
}
|
|
3068
3077
|
return writer;
|
|
3069
3078
|
},
|
|
3070
3079
|
decode(input, length) {
|
|
3071
3080
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3072
3081
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3073
|
-
const message =
|
|
3082
|
+
const message = createBaseMsgSubmitArbiterHash();
|
|
3074
3083
|
while (reader.pos < end) {
|
|
3075
3084
|
const tag = reader.uint32();
|
|
3076
3085
|
switch (tag >>> 3) {
|
|
@@ -3078,7 +3087,10 @@ exports.MsgConfirmIdentityLink = {
|
|
|
3078
3087
|
message.creator = reader.string();
|
|
3079
3088
|
break;
|
|
3080
3089
|
case 2:
|
|
3081
|
-
message.
|
|
3090
|
+
message.contentId = reader.uint64();
|
|
3091
|
+
break;
|
|
3092
|
+
case 3:
|
|
3093
|
+
message.contentHash = reader.bytes();
|
|
3082
3094
|
break;
|
|
3083
3095
|
default:
|
|
3084
3096
|
reader.skipType(tag & 7);
|
|
@@ -3088,66 +3100,71 @@ exports.MsgConfirmIdentityLink = {
|
|
|
3088
3100
|
return message;
|
|
3089
3101
|
},
|
|
3090
3102
|
fromPartial(object) {
|
|
3091
|
-
const message =
|
|
3103
|
+
const message = createBaseMsgSubmitArbiterHash();
|
|
3092
3104
|
message.creator = object.creator ?? "";
|
|
3093
|
-
message.
|
|
3105
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
3106
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
3094
3107
|
return message;
|
|
3095
3108
|
},
|
|
3096
3109
|
fromAmino(object) {
|
|
3097
|
-
const message =
|
|
3110
|
+
const message = createBaseMsgSubmitArbiterHash();
|
|
3098
3111
|
if (object.creator !== undefined && object.creator !== null) {
|
|
3099
3112
|
message.creator = object.creator;
|
|
3100
3113
|
}
|
|
3101
|
-
if (object.
|
|
3102
|
-
message.
|
|
3114
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
3115
|
+
message.contentId = BigInt(object.content_id);
|
|
3116
|
+
}
|
|
3117
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
3118
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
3103
3119
|
}
|
|
3104
3120
|
return message;
|
|
3105
3121
|
},
|
|
3106
3122
|
toAmino(message) {
|
|
3107
3123
|
const obj = {};
|
|
3108
3124
|
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3109
|
-
obj.
|
|
3125
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
3126
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
3110
3127
|
return obj;
|
|
3111
3128
|
},
|
|
3112
3129
|
fromAminoMsg(object) {
|
|
3113
|
-
return exports.
|
|
3130
|
+
return exports.MsgSubmitArbiterHash.fromAmino(object.value);
|
|
3114
3131
|
},
|
|
3115
3132
|
toAminoMsg(message) {
|
|
3116
3133
|
return {
|
|
3117
|
-
type: "sparkdream/x/federation/
|
|
3118
|
-
value: exports.
|
|
3134
|
+
type: "sparkdream/x/federation/MsgSubmitArbiterHash",
|
|
3135
|
+
value: exports.MsgSubmitArbiterHash.toAmino(message)
|
|
3119
3136
|
};
|
|
3120
3137
|
},
|
|
3121
3138
|
fromProtoMsg(message) {
|
|
3122
|
-
return exports.
|
|
3139
|
+
return exports.MsgSubmitArbiterHash.decode(message.value);
|
|
3123
3140
|
},
|
|
3124
3141
|
toProto(message) {
|
|
3125
|
-
return exports.
|
|
3142
|
+
return exports.MsgSubmitArbiterHash.encode(message).finish();
|
|
3126
3143
|
},
|
|
3127
3144
|
toProtoMsg(message) {
|
|
3128
3145
|
return {
|
|
3129
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3130
|
-
value: exports.
|
|
3146
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitArbiterHash",
|
|
3147
|
+
value: exports.MsgSubmitArbiterHash.encode(message).finish()
|
|
3131
3148
|
};
|
|
3132
3149
|
}
|
|
3133
3150
|
};
|
|
3134
|
-
function
|
|
3151
|
+
function createBaseMsgSubmitArbiterHashResponse() {
|
|
3135
3152
|
return {};
|
|
3136
3153
|
}
|
|
3137
3154
|
/**
|
|
3138
|
-
* @name
|
|
3155
|
+
* @name MsgSubmitArbiterHashResponse
|
|
3139
3156
|
* @package sparkdream.federation.v1
|
|
3140
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3157
|
+
* @see proto type: sparkdream.federation.v1.MsgSubmitArbiterHashResponse
|
|
3141
3158
|
*/
|
|
3142
|
-
exports.
|
|
3143
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3159
|
+
exports.MsgSubmitArbiterHashResponse = {
|
|
3160
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitArbiterHashResponse",
|
|
3144
3161
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3145
3162
|
return writer;
|
|
3146
3163
|
},
|
|
3147
3164
|
decode(input, length) {
|
|
3148
3165
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3149
3166
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3150
|
-
const message =
|
|
3167
|
+
const message = createBaseMsgSubmitArbiterHashResponse();
|
|
3151
3168
|
while (reader.pos < end) {
|
|
3152
3169
|
const tag = reader.uint32();
|
|
3153
3170
|
switch (tag >>> 3) {
|
|
@@ -3159,11 +3176,11 @@ exports.MsgConfirmIdentityLinkResponse = {
|
|
|
3159
3176
|
return message;
|
|
3160
3177
|
},
|
|
3161
3178
|
fromPartial(_) {
|
|
3162
|
-
const message =
|
|
3179
|
+
const message = createBaseMsgSubmitArbiterHashResponse();
|
|
3163
3180
|
return message;
|
|
3164
3181
|
},
|
|
3165
3182
|
fromAmino(_) {
|
|
3166
|
-
const message =
|
|
3183
|
+
const message = createBaseMsgSubmitArbiterHashResponse();
|
|
3167
3184
|
return message;
|
|
3168
3185
|
},
|
|
3169
3186
|
toAmino(_) {
|
|
@@ -3171,52 +3188,48 @@ exports.MsgConfirmIdentityLinkResponse = {
|
|
|
3171
3188
|
return obj;
|
|
3172
3189
|
},
|
|
3173
3190
|
fromAminoMsg(object) {
|
|
3174
|
-
return exports.
|
|
3191
|
+
return exports.MsgSubmitArbiterHashResponse.fromAmino(object.value);
|
|
3175
3192
|
},
|
|
3176
3193
|
fromProtoMsg(message) {
|
|
3177
|
-
return exports.
|
|
3194
|
+
return exports.MsgSubmitArbiterHashResponse.decode(message.value);
|
|
3178
3195
|
},
|
|
3179
3196
|
toProto(message) {
|
|
3180
|
-
return exports.
|
|
3197
|
+
return exports.MsgSubmitArbiterHashResponse.encode(message).finish();
|
|
3181
3198
|
},
|
|
3182
3199
|
toProtoMsg(message) {
|
|
3183
3200
|
return {
|
|
3184
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3185
|
-
value: exports.
|
|
3201
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitArbiterHashResponse",
|
|
3202
|
+
value: exports.MsgSubmitArbiterHashResponse.encode(message).finish()
|
|
3186
3203
|
};
|
|
3187
3204
|
}
|
|
3188
3205
|
};
|
|
3189
|
-
function
|
|
3206
|
+
function createBaseMsgEscalateChallenge() {
|
|
3190
3207
|
return {
|
|
3191
3208
|
creator: "",
|
|
3192
|
-
|
|
3193
|
-
remoteAddress: ""
|
|
3209
|
+
contentId: BigInt(0)
|
|
3194
3210
|
};
|
|
3195
3211
|
}
|
|
3196
3212
|
/**
|
|
3197
|
-
* @name
|
|
3213
|
+
* @name MsgEscalateChallenge
|
|
3198
3214
|
* @package sparkdream.federation.v1
|
|
3199
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3215
|
+
* @see proto type: sparkdream.federation.v1.MsgEscalateChallenge
|
|
3200
3216
|
*/
|
|
3201
|
-
exports.
|
|
3202
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3203
|
-
aminoType: "sparkdream/x/federation/
|
|
3217
|
+
exports.MsgEscalateChallenge = {
|
|
3218
|
+
typeUrl: "/sparkdream.federation.v1.MsgEscalateChallenge",
|
|
3219
|
+
aminoType: "sparkdream/x/federation/MsgEscalateChallenge",
|
|
3204
3220
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3205
3221
|
if (message.creator !== "") {
|
|
3206
3222
|
writer.uint32(10).string(message.creator);
|
|
3207
3223
|
}
|
|
3208
|
-
if (message.
|
|
3209
|
-
writer.uint32(
|
|
3210
|
-
}
|
|
3211
|
-
if (message.remoteAddress !== "") {
|
|
3212
|
-
writer.uint32(26).string(message.remoteAddress);
|
|
3224
|
+
if (message.contentId !== BigInt(0)) {
|
|
3225
|
+
writer.uint32(16).uint64(message.contentId);
|
|
3213
3226
|
}
|
|
3214
3227
|
return writer;
|
|
3215
3228
|
},
|
|
3216
3229
|
decode(input, length) {
|
|
3217
3230
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3218
3231
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3219
|
-
const message =
|
|
3232
|
+
const message = createBaseMsgEscalateChallenge();
|
|
3220
3233
|
while (reader.pos < end) {
|
|
3221
3234
|
const tag = reader.uint32();
|
|
3222
3235
|
switch (tag >>> 3) {
|
|
@@ -3224,10 +3237,7 @@ exports.MsgRequestReputationAttestation = {
|
|
|
3224
3237
|
message.creator = reader.string();
|
|
3225
3238
|
break;
|
|
3226
3239
|
case 2:
|
|
3227
|
-
message.
|
|
3228
|
-
break;
|
|
3229
|
-
case 3:
|
|
3230
|
-
message.remoteAddress = reader.string();
|
|
3240
|
+
message.contentId = reader.uint64();
|
|
3231
3241
|
break;
|
|
3232
3242
|
default:
|
|
3233
3243
|
reader.skipType(tag & 7);
|
|
@@ -3237,71 +3247,66 @@ exports.MsgRequestReputationAttestation = {
|
|
|
3237
3247
|
return message;
|
|
3238
3248
|
},
|
|
3239
3249
|
fromPartial(object) {
|
|
3240
|
-
const message =
|
|
3250
|
+
const message = createBaseMsgEscalateChallenge();
|
|
3241
3251
|
message.creator = object.creator ?? "";
|
|
3242
|
-
message.
|
|
3243
|
-
message.remoteAddress = object.remoteAddress ?? "";
|
|
3252
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
3244
3253
|
return message;
|
|
3245
3254
|
},
|
|
3246
3255
|
fromAmino(object) {
|
|
3247
|
-
const message =
|
|
3256
|
+
const message = createBaseMsgEscalateChallenge();
|
|
3248
3257
|
if (object.creator !== undefined && object.creator !== null) {
|
|
3249
3258
|
message.creator = object.creator;
|
|
3250
3259
|
}
|
|
3251
|
-
if (object.
|
|
3252
|
-
message.
|
|
3253
|
-
}
|
|
3254
|
-
if (object.remote_address !== undefined && object.remote_address !== null) {
|
|
3255
|
-
message.remoteAddress = object.remote_address;
|
|
3260
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
3261
|
+
message.contentId = BigInt(object.content_id);
|
|
3256
3262
|
}
|
|
3257
3263
|
return message;
|
|
3258
3264
|
},
|
|
3259
3265
|
toAmino(message) {
|
|
3260
3266
|
const obj = {};
|
|
3261
3267
|
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3262
|
-
obj.
|
|
3263
|
-
obj.remote_address = message.remoteAddress === "" ? undefined : message.remoteAddress;
|
|
3268
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
3264
3269
|
return obj;
|
|
3265
3270
|
},
|
|
3266
3271
|
fromAminoMsg(object) {
|
|
3267
|
-
return exports.
|
|
3272
|
+
return exports.MsgEscalateChallenge.fromAmino(object.value);
|
|
3268
3273
|
},
|
|
3269
3274
|
toAminoMsg(message) {
|
|
3270
3275
|
return {
|
|
3271
|
-
type: "sparkdream/x/federation/
|
|
3272
|
-
value: exports.
|
|
3276
|
+
type: "sparkdream/x/federation/MsgEscalateChallenge",
|
|
3277
|
+
value: exports.MsgEscalateChallenge.toAmino(message)
|
|
3273
3278
|
};
|
|
3274
3279
|
},
|
|
3275
3280
|
fromProtoMsg(message) {
|
|
3276
|
-
return exports.
|
|
3281
|
+
return exports.MsgEscalateChallenge.decode(message.value);
|
|
3277
3282
|
},
|
|
3278
3283
|
toProto(message) {
|
|
3279
|
-
return exports.
|
|
3284
|
+
return exports.MsgEscalateChallenge.encode(message).finish();
|
|
3280
3285
|
},
|
|
3281
3286
|
toProtoMsg(message) {
|
|
3282
3287
|
return {
|
|
3283
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3284
|
-
value: exports.
|
|
3288
|
+
typeUrl: "/sparkdream.federation.v1.MsgEscalateChallenge",
|
|
3289
|
+
value: exports.MsgEscalateChallenge.encode(message).finish()
|
|
3285
3290
|
};
|
|
3286
3291
|
}
|
|
3287
3292
|
};
|
|
3288
|
-
function
|
|
3293
|
+
function createBaseMsgEscalateChallengeResponse() {
|
|
3289
3294
|
return {};
|
|
3290
3295
|
}
|
|
3291
3296
|
/**
|
|
3292
|
-
* @name
|
|
3297
|
+
* @name MsgEscalateChallengeResponse
|
|
3293
3298
|
* @package sparkdream.federation.v1
|
|
3294
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3299
|
+
* @see proto type: sparkdream.federation.v1.MsgEscalateChallengeResponse
|
|
3295
3300
|
*/
|
|
3296
|
-
exports.
|
|
3297
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3301
|
+
exports.MsgEscalateChallengeResponse = {
|
|
3302
|
+
typeUrl: "/sparkdream.federation.v1.MsgEscalateChallengeResponse",
|
|
3298
3303
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3299
3304
|
return writer;
|
|
3300
3305
|
},
|
|
3301
3306
|
decode(input, length) {
|
|
3302
3307
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3303
3308
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3304
|
-
const message =
|
|
3309
|
+
const message = createBaseMsgEscalateChallengeResponse();
|
|
3305
3310
|
while (reader.pos < end) {
|
|
3306
3311
|
const tag = reader.uint32();
|
|
3307
3312
|
switch (tag >>> 3) {
|
|
@@ -3313,11 +3318,11 @@ exports.MsgRequestReputationAttestationResponse = {
|
|
|
3313
3318
|
return message;
|
|
3314
3319
|
},
|
|
3315
3320
|
fromPartial(_) {
|
|
3316
|
-
const message =
|
|
3321
|
+
const message = createBaseMsgEscalateChallengeResponse();
|
|
3317
3322
|
return message;
|
|
3318
3323
|
},
|
|
3319
3324
|
fromAmino(_) {
|
|
3320
|
-
const message =
|
|
3325
|
+
const message = createBaseMsgEscalateChallengeResponse();
|
|
3321
3326
|
return message;
|
|
3322
3327
|
},
|
|
3323
3328
|
toAmino(_) {
|
|
@@ -3325,63 +3330,76 @@ exports.MsgRequestReputationAttestationResponse = {
|
|
|
3325
3330
|
return obj;
|
|
3326
3331
|
},
|
|
3327
3332
|
fromAminoMsg(object) {
|
|
3328
|
-
return exports.
|
|
3333
|
+
return exports.MsgEscalateChallengeResponse.fromAmino(object.value);
|
|
3329
3334
|
},
|
|
3330
3335
|
fromProtoMsg(message) {
|
|
3331
|
-
return exports.
|
|
3336
|
+
return exports.MsgEscalateChallengeResponse.decode(message.value);
|
|
3332
3337
|
},
|
|
3333
3338
|
toProto(message) {
|
|
3334
|
-
return exports.
|
|
3339
|
+
return exports.MsgEscalateChallengeResponse.encode(message).finish();
|
|
3335
3340
|
},
|
|
3336
3341
|
toProtoMsg(message) {
|
|
3337
3342
|
return {
|
|
3338
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3339
|
-
value: exports.
|
|
3343
|
+
typeUrl: "/sparkdream.federation.v1.MsgEscalateChallengeResponse",
|
|
3344
|
+
value: exports.MsgEscalateChallengeResponse.encode(message).finish()
|
|
3340
3345
|
};
|
|
3341
3346
|
}
|
|
3342
3347
|
};
|
|
3343
|
-
function
|
|
3348
|
+
function createBaseMsgResolveEscalatedChallenge() {
|
|
3344
3349
|
return {
|
|
3345
|
-
|
|
3350
|
+
authority: "",
|
|
3346
3351
|
contentId: BigInt(0),
|
|
3347
|
-
|
|
3352
|
+
verdict: 0,
|
|
3353
|
+
reasoning: ""
|
|
3348
3354
|
};
|
|
3349
3355
|
}
|
|
3350
3356
|
/**
|
|
3351
|
-
*
|
|
3357
|
+
* MsgResolveEscalatedChallenge applies a Phase 2 (human jury) verdict
|
|
3358
|
+
* to an EscalatedChallenge. Operations Committee only; signature is
|
|
3359
|
+
* the council policy address. Verdict must be CHALLENGE_UPHELD,
|
|
3360
|
+
* CHALLENGE_REJECTED, or CHALLENGE_TIMEOUT (the EndBlocker reaches the
|
|
3361
|
+
* TIMEOUT branch automatically on jury_deadline expiry — submitting
|
|
3362
|
+
* TIMEOUT here is an explicit early-cancel).
|
|
3363
|
+
* @name MsgResolveEscalatedChallenge
|
|
3352
3364
|
* @package sparkdream.federation.v1
|
|
3353
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3365
|
+
* @see proto type: sparkdream.federation.v1.MsgResolveEscalatedChallenge
|
|
3354
3366
|
*/
|
|
3355
|
-
exports.
|
|
3356
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3357
|
-
aminoType: "sparkdream/x/federation/
|
|
3367
|
+
exports.MsgResolveEscalatedChallenge = {
|
|
3368
|
+
typeUrl: "/sparkdream.federation.v1.MsgResolveEscalatedChallenge",
|
|
3369
|
+
aminoType: "sparkdream/x/federation/MsgResolveEscalatedChallenge",
|
|
3358
3370
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3359
|
-
if (message.
|
|
3360
|
-
writer.uint32(10).string(message.
|
|
3371
|
+
if (message.authority !== "") {
|
|
3372
|
+
writer.uint32(10).string(message.authority);
|
|
3361
3373
|
}
|
|
3362
3374
|
if (message.contentId !== BigInt(0)) {
|
|
3363
3375
|
writer.uint32(16).uint64(message.contentId);
|
|
3364
3376
|
}
|
|
3365
|
-
if (message.
|
|
3366
|
-
writer.uint32(
|
|
3377
|
+
if (message.verdict !== 0) {
|
|
3378
|
+
writer.uint32(24).int32(message.verdict);
|
|
3379
|
+
}
|
|
3380
|
+
if (message.reasoning !== "") {
|
|
3381
|
+
writer.uint32(34).string(message.reasoning);
|
|
3367
3382
|
}
|
|
3368
3383
|
return writer;
|
|
3369
3384
|
},
|
|
3370
3385
|
decode(input, length) {
|
|
3371
3386
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3372
3387
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3373
|
-
const message =
|
|
3388
|
+
const message = createBaseMsgResolveEscalatedChallenge();
|
|
3374
3389
|
while (reader.pos < end) {
|
|
3375
3390
|
const tag = reader.uint32();
|
|
3376
3391
|
switch (tag >>> 3) {
|
|
3377
3392
|
case 1:
|
|
3378
|
-
message.
|
|
3393
|
+
message.authority = reader.string();
|
|
3379
3394
|
break;
|
|
3380
3395
|
case 2:
|
|
3381
3396
|
message.contentId = reader.uint64();
|
|
3382
3397
|
break;
|
|
3383
3398
|
case 3:
|
|
3384
|
-
message.
|
|
3399
|
+
message.verdict = reader.int32();
|
|
3400
|
+
break;
|
|
3401
|
+
case 4:
|
|
3402
|
+
message.reasoning = reader.string();
|
|
3385
3403
|
break;
|
|
3386
3404
|
default:
|
|
3387
3405
|
reader.skipType(tag & 7);
|
|
@@ -3391,71 +3409,76 @@ exports.MsgVerifyContent = {
|
|
|
3391
3409
|
return message;
|
|
3392
3410
|
},
|
|
3393
3411
|
fromPartial(object) {
|
|
3394
|
-
const message =
|
|
3395
|
-
message.
|
|
3412
|
+
const message = createBaseMsgResolveEscalatedChallenge();
|
|
3413
|
+
message.authority = object.authority ?? "";
|
|
3396
3414
|
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
3397
|
-
message.
|
|
3415
|
+
message.verdict = object.verdict ?? 0;
|
|
3416
|
+
message.reasoning = object.reasoning ?? "";
|
|
3398
3417
|
return message;
|
|
3399
3418
|
},
|
|
3400
3419
|
fromAmino(object) {
|
|
3401
|
-
const message =
|
|
3402
|
-
if (object.
|
|
3403
|
-
message.
|
|
3420
|
+
const message = createBaseMsgResolveEscalatedChallenge();
|
|
3421
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3422
|
+
message.authority = object.authority;
|
|
3404
3423
|
}
|
|
3405
3424
|
if (object.content_id !== undefined && object.content_id !== null) {
|
|
3406
3425
|
message.contentId = BigInt(object.content_id);
|
|
3407
3426
|
}
|
|
3408
|
-
if (object.
|
|
3409
|
-
message.
|
|
3427
|
+
if (object.verdict !== undefined && object.verdict !== null) {
|
|
3428
|
+
message.verdict = object.verdict;
|
|
3429
|
+
}
|
|
3430
|
+
if (object.reasoning !== undefined && object.reasoning !== null) {
|
|
3431
|
+
message.reasoning = object.reasoning;
|
|
3410
3432
|
}
|
|
3411
3433
|
return message;
|
|
3412
3434
|
},
|
|
3413
3435
|
toAmino(message) {
|
|
3414
3436
|
const obj = {};
|
|
3415
|
-
obj.
|
|
3437
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3416
3438
|
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
3417
|
-
obj.
|
|
3439
|
+
obj.verdict = message.verdict === 0 ? undefined : message.verdict;
|
|
3440
|
+
obj.reasoning = message.reasoning === "" ? undefined : message.reasoning;
|
|
3418
3441
|
return obj;
|
|
3419
3442
|
},
|
|
3420
3443
|
fromAminoMsg(object) {
|
|
3421
|
-
return exports.
|
|
3444
|
+
return exports.MsgResolveEscalatedChallenge.fromAmino(object.value);
|
|
3422
3445
|
},
|
|
3423
3446
|
toAminoMsg(message) {
|
|
3424
3447
|
return {
|
|
3425
|
-
type: "sparkdream/x/federation/
|
|
3426
|
-
value: exports.
|
|
3448
|
+
type: "sparkdream/x/federation/MsgResolveEscalatedChallenge",
|
|
3449
|
+
value: exports.MsgResolveEscalatedChallenge.toAmino(message)
|
|
3427
3450
|
};
|
|
3428
3451
|
},
|
|
3429
3452
|
fromProtoMsg(message) {
|
|
3430
|
-
return exports.
|
|
3453
|
+
return exports.MsgResolveEscalatedChallenge.decode(message.value);
|
|
3431
3454
|
},
|
|
3432
3455
|
toProto(message) {
|
|
3433
|
-
return exports.
|
|
3456
|
+
return exports.MsgResolveEscalatedChallenge.encode(message).finish();
|
|
3434
3457
|
},
|
|
3435
3458
|
toProtoMsg(message) {
|
|
3436
3459
|
return {
|
|
3437
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3438
|
-
value: exports.
|
|
3460
|
+
typeUrl: "/sparkdream.federation.v1.MsgResolveEscalatedChallenge",
|
|
3461
|
+
value: exports.MsgResolveEscalatedChallenge.encode(message).finish()
|
|
3439
3462
|
};
|
|
3440
3463
|
}
|
|
3441
3464
|
};
|
|
3442
|
-
function
|
|
3465
|
+
function createBaseMsgResolveEscalatedChallengeResponse() {
|
|
3443
3466
|
return {};
|
|
3444
3467
|
}
|
|
3445
3468
|
/**
|
|
3446
|
-
* @name
|
|
3469
|
+
* @name MsgResolveEscalatedChallengeResponse
|
|
3447
3470
|
* @package sparkdream.federation.v1
|
|
3448
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3471
|
+
* @see proto type: sparkdream.federation.v1.MsgResolveEscalatedChallengeResponse
|
|
3449
3472
|
*/
|
|
3450
|
-
exports.
|
|
3451
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3473
|
+
exports.MsgResolveEscalatedChallengeResponse = {
|
|
3474
|
+
typeUrl: "/sparkdream.federation.v1.MsgResolveEscalatedChallengeResponse",
|
|
3452
3475
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3453
3476
|
return writer;
|
|
3454
3477
|
},
|
|
3455
3478
|
decode(input, length) {
|
|
3456
3479
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3457
3480
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3458
|
-
const message =
|
|
3481
|
+
const message = createBaseMsgResolveEscalatedChallengeResponse();
|
|
3459
3482
|
while (reader.pos < end) {
|
|
3460
3483
|
const tag = reader.uint32();
|
|
3461
3484
|
switch (tag >>> 3) {
|
|
@@ -3467,11 +3490,11 @@ exports.MsgVerifyContentResponse = {
|
|
|
3467
3490
|
return message;
|
|
3468
3491
|
},
|
|
3469
3492
|
fromPartial(_) {
|
|
3470
|
-
const message =
|
|
3493
|
+
const message = createBaseMsgResolveEscalatedChallengeResponse();
|
|
3471
3494
|
return message;
|
|
3472
3495
|
},
|
|
3473
3496
|
fromAmino(_) {
|
|
3474
|
-
const message =
|
|
3497
|
+
const message = createBaseMsgResolveEscalatedChallengeResponse();
|
|
3475
3498
|
return message;
|
|
3476
3499
|
},
|
|
3477
3500
|
toAmino(_) {
|
|
@@ -3479,70 +3502,56 @@ exports.MsgVerifyContentResponse = {
|
|
|
3479
3502
|
return obj;
|
|
3480
3503
|
},
|
|
3481
3504
|
fromAminoMsg(object) {
|
|
3482
|
-
return exports.
|
|
3505
|
+
return exports.MsgResolveEscalatedChallengeResponse.fromAmino(object.value);
|
|
3483
3506
|
},
|
|
3484
3507
|
fromProtoMsg(message) {
|
|
3485
|
-
return exports.
|
|
3508
|
+
return exports.MsgResolveEscalatedChallengeResponse.decode(message.value);
|
|
3486
3509
|
},
|
|
3487
3510
|
toProto(message) {
|
|
3488
|
-
return exports.
|
|
3511
|
+
return exports.MsgResolveEscalatedChallengeResponse.encode(message).finish();
|
|
3489
3512
|
},
|
|
3490
3513
|
toProtoMsg(message) {
|
|
3491
3514
|
return {
|
|
3492
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3493
|
-
value: exports.
|
|
3515
|
+
typeUrl: "/sparkdream.federation.v1.MsgResolveEscalatedChallengeResponse",
|
|
3516
|
+
value: exports.MsgResolveEscalatedChallengeResponse.encode(message).finish()
|
|
3494
3517
|
};
|
|
3495
3518
|
}
|
|
3496
3519
|
};
|
|
3497
|
-
function
|
|
3520
|
+
function createBaseMsgUpdateOperationalParams() {
|
|
3498
3521
|
return {
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
contentHash: new Uint8Array(),
|
|
3502
|
-
evidence: ""
|
|
3522
|
+
authority: "",
|
|
3523
|
+
operationalParams: params_1.FederationOperationalParams.fromPartial({})
|
|
3503
3524
|
};
|
|
3504
3525
|
}
|
|
3505
3526
|
/**
|
|
3506
|
-
* @name
|
|
3527
|
+
* @name MsgUpdateOperationalParams
|
|
3507
3528
|
* @package sparkdream.federation.v1
|
|
3508
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3529
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateOperationalParams
|
|
3509
3530
|
*/
|
|
3510
|
-
exports.
|
|
3511
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3512
|
-
aminoType: "sparkdream/x/federation/
|
|
3531
|
+
exports.MsgUpdateOperationalParams = {
|
|
3532
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateOperationalParams",
|
|
3533
|
+
aminoType: "sparkdream/x/federation/MsgUpdateOperationalParams",
|
|
3513
3534
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3514
|
-
if (message.
|
|
3515
|
-
writer.uint32(10).string(message.
|
|
3516
|
-
}
|
|
3517
|
-
if (message.contentId !== BigInt(0)) {
|
|
3518
|
-
writer.uint32(16).uint64(message.contentId);
|
|
3519
|
-
}
|
|
3520
|
-
if (message.contentHash.length !== 0) {
|
|
3521
|
-
writer.uint32(26).bytes(message.contentHash);
|
|
3535
|
+
if (message.authority !== "") {
|
|
3536
|
+
writer.uint32(10).string(message.authority);
|
|
3522
3537
|
}
|
|
3523
|
-
if (message.
|
|
3524
|
-
writer.uint32(
|
|
3538
|
+
if (message.operationalParams !== undefined) {
|
|
3539
|
+
params_1.FederationOperationalParams.encode(message.operationalParams, writer.uint32(18).fork()).ldelim();
|
|
3525
3540
|
}
|
|
3526
3541
|
return writer;
|
|
3527
3542
|
},
|
|
3528
3543
|
decode(input, length) {
|
|
3529
3544
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3530
3545
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3531
|
-
const message =
|
|
3546
|
+
const message = createBaseMsgUpdateOperationalParams();
|
|
3532
3547
|
while (reader.pos < end) {
|
|
3533
3548
|
const tag = reader.uint32();
|
|
3534
3549
|
switch (tag >>> 3) {
|
|
3535
3550
|
case 1:
|
|
3536
|
-
message.
|
|
3551
|
+
message.authority = reader.string();
|
|
3537
3552
|
break;
|
|
3538
3553
|
case 2:
|
|
3539
|
-
message.
|
|
3540
|
-
break;
|
|
3541
|
-
case 3:
|
|
3542
|
-
message.contentHash = reader.bytes();
|
|
3543
|
-
break;
|
|
3544
|
-
case 4:
|
|
3545
|
-
message.evidence = reader.string();
|
|
3554
|
+
message.operationalParams = params_1.FederationOperationalParams.decode(reader, reader.uint32());
|
|
3546
3555
|
break;
|
|
3547
3556
|
default:
|
|
3548
3557
|
reader.skipType(tag & 7);
|
|
@@ -3552,76 +3561,66 @@ exports.MsgChallengeVerification = {
|
|
|
3552
3561
|
return message;
|
|
3553
3562
|
},
|
|
3554
3563
|
fromPartial(object) {
|
|
3555
|
-
const message =
|
|
3556
|
-
message.
|
|
3557
|
-
message.
|
|
3558
|
-
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
3559
|
-
message.evidence = object.evidence ?? "";
|
|
3564
|
+
const message = createBaseMsgUpdateOperationalParams();
|
|
3565
|
+
message.authority = object.authority ?? "";
|
|
3566
|
+
message.operationalParams = object.operationalParams !== undefined && object.operationalParams !== null ? params_1.FederationOperationalParams.fromPartial(object.operationalParams) : undefined;
|
|
3560
3567
|
return message;
|
|
3561
3568
|
},
|
|
3562
3569
|
fromAmino(object) {
|
|
3563
|
-
const message =
|
|
3564
|
-
if (object.
|
|
3565
|
-
message.
|
|
3566
|
-
}
|
|
3567
|
-
if (object.content_id !== undefined && object.content_id !== null) {
|
|
3568
|
-
message.contentId = BigInt(object.content_id);
|
|
3569
|
-
}
|
|
3570
|
-
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
3571
|
-
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
3570
|
+
const message = createBaseMsgUpdateOperationalParams();
|
|
3571
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3572
|
+
message.authority = object.authority;
|
|
3572
3573
|
}
|
|
3573
|
-
if (object.
|
|
3574
|
-
message.
|
|
3574
|
+
if (object.operational_params !== undefined && object.operational_params !== null) {
|
|
3575
|
+
message.operationalParams = params_1.FederationOperationalParams.fromAmino(object.operational_params);
|
|
3575
3576
|
}
|
|
3576
3577
|
return message;
|
|
3577
3578
|
},
|
|
3578
3579
|
toAmino(message) {
|
|
3579
3580
|
const obj = {};
|
|
3580
|
-
obj.
|
|
3581
|
-
obj.
|
|
3582
|
-
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
3583
|
-
obj.evidence = message.evidence === "" ? undefined : message.evidence;
|
|
3581
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3582
|
+
obj.operational_params = message.operationalParams ? params_1.FederationOperationalParams.toAmino(message.operationalParams) : undefined;
|
|
3584
3583
|
return obj;
|
|
3585
3584
|
},
|
|
3586
3585
|
fromAminoMsg(object) {
|
|
3587
|
-
return exports.
|
|
3586
|
+
return exports.MsgUpdateOperationalParams.fromAmino(object.value);
|
|
3588
3587
|
},
|
|
3589
3588
|
toAminoMsg(message) {
|
|
3590
3589
|
return {
|
|
3591
|
-
type: "sparkdream/x/federation/
|
|
3592
|
-
value: exports.
|
|
3590
|
+
type: "sparkdream/x/federation/MsgUpdateOperationalParams",
|
|
3591
|
+
value: exports.MsgUpdateOperationalParams.toAmino(message)
|
|
3593
3592
|
};
|
|
3594
3593
|
},
|
|
3595
3594
|
fromProtoMsg(message) {
|
|
3596
|
-
return exports.
|
|
3595
|
+
return exports.MsgUpdateOperationalParams.decode(message.value);
|
|
3597
3596
|
},
|
|
3598
3597
|
toProto(message) {
|
|
3599
|
-
return exports.
|
|
3598
|
+
return exports.MsgUpdateOperationalParams.encode(message).finish();
|
|
3600
3599
|
},
|
|
3601
3600
|
toProtoMsg(message) {
|
|
3602
3601
|
return {
|
|
3603
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3604
|
-
value: exports.
|
|
3602
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateOperationalParams",
|
|
3603
|
+
value: exports.MsgUpdateOperationalParams.encode(message).finish()
|
|
3605
3604
|
};
|
|
3606
3605
|
}
|
|
3607
3606
|
};
|
|
3608
|
-
function
|
|
3607
|
+
function createBaseMsgUpdateOperationalParamsResponse() {
|
|
3609
3608
|
return {};
|
|
3610
3609
|
}
|
|
3611
3610
|
/**
|
|
3612
|
-
* @name
|
|
3611
|
+
* @name MsgUpdateOperationalParamsResponse
|
|
3613
3612
|
* @package sparkdream.federation.v1
|
|
3614
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3613
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateOperationalParamsResponse
|
|
3615
3614
|
*/
|
|
3616
|
-
exports.
|
|
3617
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3615
|
+
exports.MsgUpdateOperationalParamsResponse = {
|
|
3616
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateOperationalParamsResponse",
|
|
3618
3617
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3619
3618
|
return writer;
|
|
3620
3619
|
},
|
|
3621
3620
|
decode(input, length) {
|
|
3622
3621
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3623
3622
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3624
|
-
const message =
|
|
3623
|
+
const message = createBaseMsgUpdateOperationalParamsResponse();
|
|
3625
3624
|
while (reader.pos < end) {
|
|
3626
3625
|
const tag = reader.uint32();
|
|
3627
3626
|
switch (tag >>> 3) {
|
|
@@ -3633,11 +3632,11 @@ exports.MsgChallengeVerificationResponse = {
|
|
|
3633
3632
|
return message;
|
|
3634
3633
|
},
|
|
3635
3634
|
fromPartial(_) {
|
|
3636
|
-
const message =
|
|
3635
|
+
const message = createBaseMsgUpdateOperationalParamsResponse();
|
|
3637
3636
|
return message;
|
|
3638
3637
|
},
|
|
3639
3638
|
fromAmino(_) {
|
|
3640
|
-
const message =
|
|
3639
|
+
const message = createBaseMsgUpdateOperationalParamsResponse();
|
|
3641
3640
|
return message;
|
|
3642
3641
|
},
|
|
3643
3642
|
toAmino(_) {
|
|
@@ -3645,63 +3644,68 @@ exports.MsgChallengeVerificationResponse = {
|
|
|
3645
3644
|
return obj;
|
|
3646
3645
|
},
|
|
3647
3646
|
fromAminoMsg(object) {
|
|
3648
|
-
return exports.
|
|
3647
|
+
return exports.MsgUpdateOperationalParamsResponse.fromAmino(object.value);
|
|
3649
3648
|
},
|
|
3650
3649
|
fromProtoMsg(message) {
|
|
3651
|
-
return exports.
|
|
3650
|
+
return exports.MsgUpdateOperationalParamsResponse.decode(message.value);
|
|
3652
3651
|
},
|
|
3653
3652
|
toProto(message) {
|
|
3654
|
-
return exports.
|
|
3653
|
+
return exports.MsgUpdateOperationalParamsResponse.encode(message).finish();
|
|
3655
3654
|
},
|
|
3656
3655
|
toProtoMsg(message) {
|
|
3657
3656
|
return {
|
|
3658
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3659
|
-
value: exports.
|
|
3657
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateOperationalParamsResponse",
|
|
3658
|
+
value: exports.MsgUpdateOperationalParamsResponse.encode(message).finish()
|
|
3660
3659
|
};
|
|
3661
3660
|
}
|
|
3662
3661
|
};
|
|
3663
|
-
function
|
|
3662
|
+
function createBaseMsgUpdatePeerController() {
|
|
3664
3663
|
return {
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3664
|
+
authority: "",
|
|
3665
|
+
peerId: "",
|
|
3666
|
+
controllerGroup: ""
|
|
3668
3667
|
};
|
|
3669
3668
|
}
|
|
3670
3669
|
/**
|
|
3671
|
-
*
|
|
3670
|
+
* MsgUpdatePeerController is a gov-authority message that changes the
|
|
3671
|
+
* controller_group on an existing peer. Affects only new bridge
|
|
3672
|
+
* registrations under that peer — existing bridges keep the controller
|
|
3673
|
+
* captured on their service.Operator at registration time. Transferring
|
|
3674
|
+
* existing bridges requires service.MsgOpenControllerTransferCase.
|
|
3675
|
+
* @name MsgUpdatePeerController
|
|
3672
3676
|
* @package sparkdream.federation.v1
|
|
3673
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3677
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerController
|
|
3674
3678
|
*/
|
|
3675
|
-
exports.
|
|
3676
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3677
|
-
aminoType: "sparkdream/x/federation/
|
|
3679
|
+
exports.MsgUpdatePeerController = {
|
|
3680
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerController",
|
|
3681
|
+
aminoType: "sparkdream/x/federation/MsgUpdatePeerController",
|
|
3678
3682
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3679
|
-
if (message.
|
|
3680
|
-
writer.uint32(10).string(message.
|
|
3683
|
+
if (message.authority !== "") {
|
|
3684
|
+
writer.uint32(10).string(message.authority);
|
|
3681
3685
|
}
|
|
3682
|
-
if (message.
|
|
3683
|
-
writer.uint32(
|
|
3686
|
+
if (message.peerId !== "") {
|
|
3687
|
+
writer.uint32(18).string(message.peerId);
|
|
3684
3688
|
}
|
|
3685
|
-
if (message.
|
|
3686
|
-
writer.uint32(26).
|
|
3689
|
+
if (message.controllerGroup !== "") {
|
|
3690
|
+
writer.uint32(26).string(message.controllerGroup);
|
|
3687
3691
|
}
|
|
3688
3692
|
return writer;
|
|
3689
3693
|
},
|
|
3690
3694
|
decode(input, length) {
|
|
3691
3695
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3692
3696
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3693
|
-
const message =
|
|
3697
|
+
const message = createBaseMsgUpdatePeerController();
|
|
3694
3698
|
while (reader.pos < end) {
|
|
3695
3699
|
const tag = reader.uint32();
|
|
3696
3700
|
switch (tag >>> 3) {
|
|
3697
3701
|
case 1:
|
|
3698
|
-
message.
|
|
3702
|
+
message.authority = reader.string();
|
|
3699
3703
|
break;
|
|
3700
3704
|
case 2:
|
|
3701
|
-
message.
|
|
3705
|
+
message.peerId = reader.string();
|
|
3702
3706
|
break;
|
|
3703
3707
|
case 3:
|
|
3704
|
-
message.
|
|
3708
|
+
message.controllerGroup = reader.string();
|
|
3705
3709
|
break;
|
|
3706
3710
|
default:
|
|
3707
3711
|
reader.skipType(tag & 7);
|
|
@@ -3711,71 +3715,71 @@ exports.MsgSubmitArbiterHash = {
|
|
|
3711
3715
|
return message;
|
|
3712
3716
|
},
|
|
3713
3717
|
fromPartial(object) {
|
|
3714
|
-
const message =
|
|
3715
|
-
message.
|
|
3716
|
-
message.
|
|
3717
|
-
message.
|
|
3718
|
+
const message = createBaseMsgUpdatePeerController();
|
|
3719
|
+
message.authority = object.authority ?? "";
|
|
3720
|
+
message.peerId = object.peerId ?? "";
|
|
3721
|
+
message.controllerGroup = object.controllerGroup ?? "";
|
|
3718
3722
|
return message;
|
|
3719
3723
|
},
|
|
3720
3724
|
fromAmino(object) {
|
|
3721
|
-
const message =
|
|
3722
|
-
if (object.
|
|
3723
|
-
message.
|
|
3725
|
+
const message = createBaseMsgUpdatePeerController();
|
|
3726
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3727
|
+
message.authority = object.authority;
|
|
3724
3728
|
}
|
|
3725
|
-
if (object.
|
|
3726
|
-
message.
|
|
3729
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
3730
|
+
message.peerId = object.peer_id;
|
|
3727
3731
|
}
|
|
3728
|
-
if (object.
|
|
3729
|
-
message.
|
|
3732
|
+
if (object.controller_group !== undefined && object.controller_group !== null) {
|
|
3733
|
+
message.controllerGroup = object.controller_group;
|
|
3730
3734
|
}
|
|
3731
3735
|
return message;
|
|
3732
3736
|
},
|
|
3733
3737
|
toAmino(message) {
|
|
3734
3738
|
const obj = {};
|
|
3735
|
-
obj.
|
|
3736
|
-
obj.
|
|
3737
|
-
obj.
|
|
3739
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3740
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
3741
|
+
obj.controller_group = message.controllerGroup === "" ? undefined : message.controllerGroup;
|
|
3738
3742
|
return obj;
|
|
3739
3743
|
},
|
|
3740
3744
|
fromAminoMsg(object) {
|
|
3741
|
-
return exports.
|
|
3745
|
+
return exports.MsgUpdatePeerController.fromAmino(object.value);
|
|
3742
3746
|
},
|
|
3743
3747
|
toAminoMsg(message) {
|
|
3744
3748
|
return {
|
|
3745
|
-
type: "sparkdream/x/federation/
|
|
3746
|
-
value: exports.
|
|
3749
|
+
type: "sparkdream/x/federation/MsgUpdatePeerController",
|
|
3750
|
+
value: exports.MsgUpdatePeerController.toAmino(message)
|
|
3747
3751
|
};
|
|
3748
3752
|
},
|
|
3749
3753
|
fromProtoMsg(message) {
|
|
3750
|
-
return exports.
|
|
3754
|
+
return exports.MsgUpdatePeerController.decode(message.value);
|
|
3751
3755
|
},
|
|
3752
3756
|
toProto(message) {
|
|
3753
|
-
return exports.
|
|
3757
|
+
return exports.MsgUpdatePeerController.encode(message).finish();
|
|
3754
3758
|
},
|
|
3755
3759
|
toProtoMsg(message) {
|
|
3756
3760
|
return {
|
|
3757
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3758
|
-
value: exports.
|
|
3761
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerController",
|
|
3762
|
+
value: exports.MsgUpdatePeerController.encode(message).finish()
|
|
3759
3763
|
};
|
|
3760
3764
|
}
|
|
3761
3765
|
};
|
|
3762
|
-
function
|
|
3766
|
+
function createBaseMsgUpdatePeerControllerResponse() {
|
|
3763
3767
|
return {};
|
|
3764
3768
|
}
|
|
3765
3769
|
/**
|
|
3766
|
-
* @name
|
|
3770
|
+
* @name MsgUpdatePeerControllerResponse
|
|
3767
3771
|
* @package sparkdream.federation.v1
|
|
3768
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3772
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerControllerResponse
|
|
3769
3773
|
*/
|
|
3770
|
-
exports.
|
|
3771
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3774
|
+
exports.MsgUpdatePeerControllerResponse = {
|
|
3775
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerControllerResponse",
|
|
3772
3776
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3773
3777
|
return writer;
|
|
3774
3778
|
},
|
|
3775
3779
|
decode(input, length) {
|
|
3776
3780
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3777
3781
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3778
|
-
const message =
|
|
3782
|
+
const message = createBaseMsgUpdatePeerControllerResponse();
|
|
3779
3783
|
while (reader.pos < end) {
|
|
3780
3784
|
const tag = reader.uint32();
|
|
3781
3785
|
switch (tag >>> 3) {
|
|
@@ -3787,11 +3791,11 @@ exports.MsgSubmitArbiterHashResponse = {
|
|
|
3787
3791
|
return message;
|
|
3788
3792
|
},
|
|
3789
3793
|
fromPartial(_) {
|
|
3790
|
-
const message =
|
|
3794
|
+
const message = createBaseMsgUpdatePeerControllerResponse();
|
|
3791
3795
|
return message;
|
|
3792
3796
|
},
|
|
3793
3797
|
fromAmino(_) {
|
|
3794
|
-
const message =
|
|
3798
|
+
const message = createBaseMsgUpdatePeerControllerResponse();
|
|
3795
3799
|
return message;
|
|
3796
3800
|
},
|
|
3797
3801
|
toAmino(_) {
|
|
@@ -3799,56 +3803,61 @@ exports.MsgSubmitArbiterHashResponse = {
|
|
|
3799
3803
|
return obj;
|
|
3800
3804
|
},
|
|
3801
3805
|
fromAminoMsg(object) {
|
|
3802
|
-
return exports.
|
|
3806
|
+
return exports.MsgUpdatePeerControllerResponse.fromAmino(object.value);
|
|
3803
3807
|
},
|
|
3804
3808
|
fromProtoMsg(message) {
|
|
3805
|
-
return exports.
|
|
3809
|
+
return exports.MsgUpdatePeerControllerResponse.decode(message.value);
|
|
3806
3810
|
},
|
|
3807
3811
|
toProto(message) {
|
|
3808
|
-
return exports.
|
|
3812
|
+
return exports.MsgUpdatePeerControllerResponse.encode(message).finish();
|
|
3809
3813
|
},
|
|
3810
3814
|
toProtoMsg(message) {
|
|
3811
3815
|
return {
|
|
3812
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3813
|
-
value: exports.
|
|
3816
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerControllerResponse",
|
|
3817
|
+
value: exports.MsgUpdatePeerControllerResponse.encode(message).finish()
|
|
3814
3818
|
};
|
|
3815
3819
|
}
|
|
3816
3820
|
};
|
|
3817
|
-
function
|
|
3821
|
+
function createBaseMsgResyncBridgeCount() {
|
|
3818
3822
|
return {
|
|
3819
|
-
|
|
3820
|
-
|
|
3823
|
+
authority: "",
|
|
3824
|
+
peerId: ""
|
|
3821
3825
|
};
|
|
3822
3826
|
}
|
|
3823
3827
|
/**
|
|
3824
|
-
*
|
|
3828
|
+
* MsgResyncBridgeCount is a dual-authority message (Operations Committee
|
|
3829
|
+
* OR gov) that re-counts BridgesByPeer for the given peer and overwrites
|
|
3830
|
+
* the peer's bridges_count counter. Recovery path when the count
|
|
3831
|
+
* invariant triggers without needing a chain upgrade — pure cleanup,
|
|
3832
|
+
* can't be abused to mutate operator state.
|
|
3833
|
+
* @name MsgResyncBridgeCount
|
|
3825
3834
|
* @package sparkdream.federation.v1
|
|
3826
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3835
|
+
* @see proto type: sparkdream.federation.v1.MsgResyncBridgeCount
|
|
3827
3836
|
*/
|
|
3828
|
-
exports.
|
|
3829
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3830
|
-
aminoType: "sparkdream/x/federation/
|
|
3837
|
+
exports.MsgResyncBridgeCount = {
|
|
3838
|
+
typeUrl: "/sparkdream.federation.v1.MsgResyncBridgeCount",
|
|
3839
|
+
aminoType: "sparkdream/x/federation/MsgResyncBridgeCount",
|
|
3831
3840
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3832
|
-
if (message.
|
|
3833
|
-
writer.uint32(10).string(message.
|
|
3841
|
+
if (message.authority !== "") {
|
|
3842
|
+
writer.uint32(10).string(message.authority);
|
|
3834
3843
|
}
|
|
3835
|
-
if (message.
|
|
3836
|
-
writer.uint32(
|
|
3844
|
+
if (message.peerId !== "") {
|
|
3845
|
+
writer.uint32(18).string(message.peerId);
|
|
3837
3846
|
}
|
|
3838
3847
|
return writer;
|
|
3839
3848
|
},
|
|
3840
3849
|
decode(input, length) {
|
|
3841
3850
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3842
3851
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3843
|
-
const message =
|
|
3852
|
+
const message = createBaseMsgResyncBridgeCount();
|
|
3844
3853
|
while (reader.pos < end) {
|
|
3845
3854
|
const tag = reader.uint32();
|
|
3846
3855
|
switch (tag >>> 3) {
|
|
3847
3856
|
case 1:
|
|
3848
|
-
message.
|
|
3857
|
+
message.authority = reader.string();
|
|
3849
3858
|
break;
|
|
3850
3859
|
case 2:
|
|
3851
|
-
message.
|
|
3860
|
+
message.peerId = reader.string();
|
|
3852
3861
|
break;
|
|
3853
3862
|
default:
|
|
3854
3863
|
reader.skipType(tag & 7);
|
|
@@ -3858,69 +3867,77 @@ exports.MsgEscalateChallenge = {
|
|
|
3858
3867
|
return message;
|
|
3859
3868
|
},
|
|
3860
3869
|
fromPartial(object) {
|
|
3861
|
-
const message =
|
|
3862
|
-
message.
|
|
3863
|
-
message.
|
|
3870
|
+
const message = createBaseMsgResyncBridgeCount();
|
|
3871
|
+
message.authority = object.authority ?? "";
|
|
3872
|
+
message.peerId = object.peerId ?? "";
|
|
3864
3873
|
return message;
|
|
3865
3874
|
},
|
|
3866
3875
|
fromAmino(object) {
|
|
3867
|
-
const message =
|
|
3868
|
-
if (object.
|
|
3869
|
-
message.
|
|
3876
|
+
const message = createBaseMsgResyncBridgeCount();
|
|
3877
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3878
|
+
message.authority = object.authority;
|
|
3870
3879
|
}
|
|
3871
|
-
if (object.
|
|
3872
|
-
message.
|
|
3880
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
3881
|
+
message.peerId = object.peer_id;
|
|
3873
3882
|
}
|
|
3874
3883
|
return message;
|
|
3875
3884
|
},
|
|
3876
3885
|
toAmino(message) {
|
|
3877
3886
|
const obj = {};
|
|
3878
|
-
obj.
|
|
3879
|
-
obj.
|
|
3887
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
3888
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
3880
3889
|
return obj;
|
|
3881
3890
|
},
|
|
3882
3891
|
fromAminoMsg(object) {
|
|
3883
|
-
return exports.
|
|
3892
|
+
return exports.MsgResyncBridgeCount.fromAmino(object.value);
|
|
3884
3893
|
},
|
|
3885
3894
|
toAminoMsg(message) {
|
|
3886
3895
|
return {
|
|
3887
|
-
type: "sparkdream/x/federation/
|
|
3888
|
-
value: exports.
|
|
3896
|
+
type: "sparkdream/x/federation/MsgResyncBridgeCount",
|
|
3897
|
+
value: exports.MsgResyncBridgeCount.toAmino(message)
|
|
3889
3898
|
};
|
|
3890
3899
|
},
|
|
3891
3900
|
fromProtoMsg(message) {
|
|
3892
|
-
return exports.
|
|
3901
|
+
return exports.MsgResyncBridgeCount.decode(message.value);
|
|
3893
3902
|
},
|
|
3894
3903
|
toProto(message) {
|
|
3895
|
-
return exports.
|
|
3904
|
+
return exports.MsgResyncBridgeCount.encode(message).finish();
|
|
3896
3905
|
},
|
|
3897
3906
|
toProtoMsg(message) {
|
|
3898
3907
|
return {
|
|
3899
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3900
|
-
value: exports.
|
|
3908
|
+
typeUrl: "/sparkdream.federation.v1.MsgResyncBridgeCount",
|
|
3909
|
+
value: exports.MsgResyncBridgeCount.encode(message).finish()
|
|
3901
3910
|
};
|
|
3902
3911
|
}
|
|
3903
3912
|
};
|
|
3904
|
-
function
|
|
3905
|
-
return {
|
|
3913
|
+
function createBaseMsgResyncBridgeCountResponse() {
|
|
3914
|
+
return {
|
|
3915
|
+
newCount: BigInt(0)
|
|
3916
|
+
};
|
|
3906
3917
|
}
|
|
3907
3918
|
/**
|
|
3908
|
-
* @name
|
|
3919
|
+
* @name MsgResyncBridgeCountResponse
|
|
3909
3920
|
* @package sparkdream.federation.v1
|
|
3910
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3921
|
+
* @see proto type: sparkdream.federation.v1.MsgResyncBridgeCountResponse
|
|
3911
3922
|
*/
|
|
3912
|
-
exports.
|
|
3913
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3914
|
-
encode(
|
|
3923
|
+
exports.MsgResyncBridgeCountResponse = {
|
|
3924
|
+
typeUrl: "/sparkdream.federation.v1.MsgResyncBridgeCountResponse",
|
|
3925
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3926
|
+
if (message.newCount !== BigInt(0)) {
|
|
3927
|
+
writer.uint32(8).uint64(message.newCount);
|
|
3928
|
+
}
|
|
3915
3929
|
return writer;
|
|
3916
3930
|
},
|
|
3917
3931
|
decode(input, length) {
|
|
3918
3932
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3919
3933
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3920
|
-
const message =
|
|
3934
|
+
const message = createBaseMsgResyncBridgeCountResponse();
|
|
3921
3935
|
while (reader.pos < end) {
|
|
3922
3936
|
const tag = reader.uint32();
|
|
3923
3937
|
switch (tag >>> 3) {
|
|
3938
|
+
case 1:
|
|
3939
|
+
message.newCount = reader.uint64();
|
|
3940
|
+
break;
|
|
3924
3941
|
default:
|
|
3925
3942
|
reader.skipType(tag & 7);
|
|
3926
3943
|
break;
|
|
@@ -3928,61 +3945,72 @@ exports.MsgEscalateChallengeResponse = {
|
|
|
3928
3945
|
}
|
|
3929
3946
|
return message;
|
|
3930
3947
|
},
|
|
3931
|
-
fromPartial(
|
|
3932
|
-
const message =
|
|
3948
|
+
fromPartial(object) {
|
|
3949
|
+
const message = createBaseMsgResyncBridgeCountResponse();
|
|
3950
|
+
message.newCount = object.newCount !== undefined && object.newCount !== null ? BigInt(object.newCount.toString()) : BigInt(0);
|
|
3933
3951
|
return message;
|
|
3934
3952
|
},
|
|
3935
|
-
fromAmino(
|
|
3936
|
-
const message =
|
|
3953
|
+
fromAmino(object) {
|
|
3954
|
+
const message = createBaseMsgResyncBridgeCountResponse();
|
|
3955
|
+
if (object.new_count !== undefined && object.new_count !== null) {
|
|
3956
|
+
message.newCount = BigInt(object.new_count);
|
|
3957
|
+
}
|
|
3937
3958
|
return message;
|
|
3938
3959
|
},
|
|
3939
|
-
toAmino(
|
|
3960
|
+
toAmino(message) {
|
|
3940
3961
|
const obj = {};
|
|
3962
|
+
obj.new_count = message.newCount !== BigInt(0) ? message.newCount?.toString() : undefined;
|
|
3941
3963
|
return obj;
|
|
3942
3964
|
},
|
|
3943
3965
|
fromAminoMsg(object) {
|
|
3944
|
-
return exports.
|
|
3966
|
+
return exports.MsgResyncBridgeCountResponse.fromAmino(object.value);
|
|
3945
3967
|
},
|
|
3946
3968
|
fromProtoMsg(message) {
|
|
3947
|
-
return exports.
|
|
3969
|
+
return exports.MsgResyncBridgeCountResponse.decode(message.value);
|
|
3948
3970
|
},
|
|
3949
3971
|
toProto(message) {
|
|
3950
|
-
return exports.
|
|
3972
|
+
return exports.MsgResyncBridgeCountResponse.encode(message).finish();
|
|
3951
3973
|
},
|
|
3952
3974
|
toProtoMsg(message) {
|
|
3953
3975
|
return {
|
|
3954
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3955
|
-
value: exports.
|
|
3976
|
+
typeUrl: "/sparkdream.federation.v1.MsgResyncBridgeCountResponse",
|
|
3977
|
+
value: exports.MsgResyncBridgeCountResponse.encode(message).finish()
|
|
3956
3978
|
};
|
|
3957
3979
|
}
|
|
3958
3980
|
};
|
|
3959
|
-
function
|
|
3981
|
+
function createBaseMsgPruneOrphanBindings() {
|
|
3960
3982
|
return {
|
|
3961
3983
|
authority: "",
|
|
3962
|
-
|
|
3984
|
+
peerId: ""
|
|
3963
3985
|
};
|
|
3964
3986
|
}
|
|
3965
3987
|
/**
|
|
3966
|
-
*
|
|
3988
|
+
* MsgPruneOrphanBindings is a dual-authority message (Operations
|
|
3989
|
+
* Committee OR gov) that runs the AfterOperatorDissolved/Retired
|
|
3990
|
+
* cleanup logic for any BridgeBinding whose referenced service.Operator
|
|
3991
|
+
* is in a terminal state (SLASHED/RETIRED/missing). Recovery path when
|
|
3992
|
+
* the fail-soft hook pattern swallowed a panic and left an orphan.
|
|
3993
|
+
* Pure cleanup, no value mutation.
|
|
3994
|
+
* @name MsgPruneOrphanBindings
|
|
3967
3995
|
* @package sparkdream.federation.v1
|
|
3968
|
-
* @see proto type: sparkdream.federation.v1.
|
|
3996
|
+
* @see proto type: sparkdream.federation.v1.MsgPruneOrphanBindings
|
|
3969
3997
|
*/
|
|
3970
|
-
exports.
|
|
3971
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
3972
|
-
aminoType: "sparkdream/x/federation/
|
|
3998
|
+
exports.MsgPruneOrphanBindings = {
|
|
3999
|
+
typeUrl: "/sparkdream.federation.v1.MsgPruneOrphanBindings",
|
|
4000
|
+
aminoType: "sparkdream/x/federation/MsgPruneOrphanBindings",
|
|
3973
4001
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3974
4002
|
if (message.authority !== "") {
|
|
3975
4003
|
writer.uint32(10).string(message.authority);
|
|
3976
4004
|
}
|
|
3977
|
-
if (message.
|
|
3978
|
-
|
|
4005
|
+
if (message.peerId !== "") {
|
|
4006
|
+
writer.uint32(18).string(message.peerId);
|
|
3979
4007
|
}
|
|
3980
4008
|
return writer;
|
|
3981
4009
|
},
|
|
3982
4010
|
decode(input, length) {
|
|
3983
4011
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3984
4012
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3985
|
-
const message =
|
|
4013
|
+
const message = createBaseMsgPruneOrphanBindings();
|
|
3986
4014
|
while (reader.pos < end) {
|
|
3987
4015
|
const tag = reader.uint32();
|
|
3988
4016
|
switch (tag >>> 3) {
|
|
@@ -3990,7 +4018,7 @@ exports.MsgUpdateOperationalParams = {
|
|
|
3990
4018
|
message.authority = reader.string();
|
|
3991
4019
|
break;
|
|
3992
4020
|
case 2:
|
|
3993
|
-
message.
|
|
4021
|
+
message.peerId = reader.string();
|
|
3994
4022
|
break;
|
|
3995
4023
|
default:
|
|
3996
4024
|
reader.skipType(tag & 7);
|
|
@@ -4000,69 +4028,77 @@ exports.MsgUpdateOperationalParams = {
|
|
|
4000
4028
|
return message;
|
|
4001
4029
|
},
|
|
4002
4030
|
fromPartial(object) {
|
|
4003
|
-
const message =
|
|
4031
|
+
const message = createBaseMsgPruneOrphanBindings();
|
|
4004
4032
|
message.authority = object.authority ?? "";
|
|
4005
|
-
message.
|
|
4033
|
+
message.peerId = object.peerId ?? "";
|
|
4006
4034
|
return message;
|
|
4007
4035
|
},
|
|
4008
4036
|
fromAmino(object) {
|
|
4009
|
-
const message =
|
|
4037
|
+
const message = createBaseMsgPruneOrphanBindings();
|
|
4010
4038
|
if (object.authority !== undefined && object.authority !== null) {
|
|
4011
4039
|
message.authority = object.authority;
|
|
4012
4040
|
}
|
|
4013
|
-
if (object.
|
|
4014
|
-
message.
|
|
4041
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
4042
|
+
message.peerId = object.peer_id;
|
|
4015
4043
|
}
|
|
4016
4044
|
return message;
|
|
4017
4045
|
},
|
|
4018
4046
|
toAmino(message) {
|
|
4019
4047
|
const obj = {};
|
|
4020
4048
|
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
4021
|
-
obj.
|
|
4049
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
4022
4050
|
return obj;
|
|
4023
4051
|
},
|
|
4024
4052
|
fromAminoMsg(object) {
|
|
4025
|
-
return exports.
|
|
4053
|
+
return exports.MsgPruneOrphanBindings.fromAmino(object.value);
|
|
4026
4054
|
},
|
|
4027
4055
|
toAminoMsg(message) {
|
|
4028
4056
|
return {
|
|
4029
|
-
type: "sparkdream/x/federation/
|
|
4030
|
-
value: exports.
|
|
4057
|
+
type: "sparkdream/x/federation/MsgPruneOrphanBindings",
|
|
4058
|
+
value: exports.MsgPruneOrphanBindings.toAmino(message)
|
|
4031
4059
|
};
|
|
4032
4060
|
},
|
|
4033
4061
|
fromProtoMsg(message) {
|
|
4034
|
-
return exports.
|
|
4062
|
+
return exports.MsgPruneOrphanBindings.decode(message.value);
|
|
4035
4063
|
},
|
|
4036
4064
|
toProto(message) {
|
|
4037
|
-
return exports.
|
|
4065
|
+
return exports.MsgPruneOrphanBindings.encode(message).finish();
|
|
4038
4066
|
},
|
|
4039
4067
|
toProtoMsg(message) {
|
|
4040
4068
|
return {
|
|
4041
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
4042
|
-
value: exports.
|
|
4069
|
+
typeUrl: "/sparkdream.federation.v1.MsgPruneOrphanBindings",
|
|
4070
|
+
value: exports.MsgPruneOrphanBindings.encode(message).finish()
|
|
4043
4071
|
};
|
|
4044
4072
|
}
|
|
4045
4073
|
};
|
|
4046
|
-
function
|
|
4047
|
-
return {
|
|
4074
|
+
function createBaseMsgPruneOrphanBindingsResponse() {
|
|
4075
|
+
return {
|
|
4076
|
+
pruned: BigInt(0)
|
|
4077
|
+
};
|
|
4048
4078
|
}
|
|
4049
4079
|
/**
|
|
4050
|
-
* @name
|
|
4080
|
+
* @name MsgPruneOrphanBindingsResponse
|
|
4051
4081
|
* @package sparkdream.federation.v1
|
|
4052
|
-
* @see proto type: sparkdream.federation.v1.
|
|
4082
|
+
* @see proto type: sparkdream.federation.v1.MsgPruneOrphanBindingsResponse
|
|
4053
4083
|
*/
|
|
4054
|
-
exports.
|
|
4055
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
4056
|
-
encode(
|
|
4084
|
+
exports.MsgPruneOrphanBindingsResponse = {
|
|
4085
|
+
typeUrl: "/sparkdream.federation.v1.MsgPruneOrphanBindingsResponse",
|
|
4086
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
4087
|
+
if (message.pruned !== BigInt(0)) {
|
|
4088
|
+
writer.uint32(8).uint64(message.pruned);
|
|
4089
|
+
}
|
|
4057
4090
|
return writer;
|
|
4058
4091
|
},
|
|
4059
4092
|
decode(input, length) {
|
|
4060
4093
|
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
4061
4094
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4062
|
-
const message =
|
|
4095
|
+
const message = createBaseMsgPruneOrphanBindingsResponse();
|
|
4063
4096
|
while (reader.pos < end) {
|
|
4064
4097
|
const tag = reader.uint32();
|
|
4065
4098
|
switch (tag >>> 3) {
|
|
4099
|
+
case 1:
|
|
4100
|
+
message.pruned = reader.uint64();
|
|
4101
|
+
break;
|
|
4066
4102
|
default:
|
|
4067
4103
|
reader.skipType(tag & 7);
|
|
4068
4104
|
break;
|
|
@@ -4070,31 +4106,36 @@ exports.MsgUpdateOperationalParamsResponse = {
|
|
|
4070
4106
|
}
|
|
4071
4107
|
return message;
|
|
4072
4108
|
},
|
|
4073
|
-
fromPartial(
|
|
4074
|
-
const message =
|
|
4109
|
+
fromPartial(object) {
|
|
4110
|
+
const message = createBaseMsgPruneOrphanBindingsResponse();
|
|
4111
|
+
message.pruned = object.pruned !== undefined && object.pruned !== null ? BigInt(object.pruned.toString()) : BigInt(0);
|
|
4075
4112
|
return message;
|
|
4076
4113
|
},
|
|
4077
|
-
fromAmino(
|
|
4078
|
-
const message =
|
|
4114
|
+
fromAmino(object) {
|
|
4115
|
+
const message = createBaseMsgPruneOrphanBindingsResponse();
|
|
4116
|
+
if (object.pruned !== undefined && object.pruned !== null) {
|
|
4117
|
+
message.pruned = BigInt(object.pruned);
|
|
4118
|
+
}
|
|
4079
4119
|
return message;
|
|
4080
4120
|
},
|
|
4081
|
-
toAmino(
|
|
4121
|
+
toAmino(message) {
|
|
4082
4122
|
const obj = {};
|
|
4123
|
+
obj.pruned = message.pruned !== BigInt(0) ? message.pruned?.toString() : undefined;
|
|
4083
4124
|
return obj;
|
|
4084
4125
|
},
|
|
4085
4126
|
fromAminoMsg(object) {
|
|
4086
|
-
return exports.
|
|
4127
|
+
return exports.MsgPruneOrphanBindingsResponse.fromAmino(object.value);
|
|
4087
4128
|
},
|
|
4088
4129
|
fromProtoMsg(message) {
|
|
4089
|
-
return exports.
|
|
4130
|
+
return exports.MsgPruneOrphanBindingsResponse.decode(message.value);
|
|
4090
4131
|
},
|
|
4091
4132
|
toProto(message) {
|
|
4092
|
-
return exports.
|
|
4133
|
+
return exports.MsgPruneOrphanBindingsResponse.encode(message).finish();
|
|
4093
4134
|
},
|
|
4094
4135
|
toProtoMsg(message) {
|
|
4095
4136
|
return {
|
|
4096
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
4097
|
-
value: exports.
|
|
4137
|
+
typeUrl: "/sparkdream.federation.v1.MsgPruneOrphanBindingsResponse",
|
|
4138
|
+
value: exports.MsgPruneOrphanBindingsResponse.encode(message).finish()
|
|
4098
4139
|
};
|
|
4099
4140
|
}
|
|
4100
4141
|
};
|