@sparkdreamnft/sparkdreamjs 0.0.49 → 0.0.50
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/amino-schema.d.ts +8 -0
- package/amino-schema.js +1 -1
- package/esm/amino-schema.js +1 -1
- package/esm/sparkdream/federation/v1/tx.js +169 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +20 -2
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +7 -1
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +38 -0
- package/sparkdream/federation/v1/tx.d.ts +97 -0
- package/sparkdream/federation/v1/tx.js +171 -2
- package/sparkdream/federation/v1/tx.registry.d.ts +13 -1
- package/sparkdream/federation/v1/tx.registry.js +19 -1
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +3 -1
- package/sparkdream/federation/v1/tx.rpc.msg.js +6 -0
|
@@ -976,6 +976,175 @@ export const MsgUpdatePeerPolicyResponse = {
|
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
978
|
};
|
|
979
|
+
function createBaseMsgUpdatePeerInfo() {
|
|
980
|
+
return {
|
|
981
|
+
authority: "",
|
|
982
|
+
peerId: "",
|
|
983
|
+
displayName: "",
|
|
984
|
+
metadata: ""
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* MsgUpdatePeerInfo corrects a peer's descriptive fields. Both fields are
|
|
989
|
+
* replaced as given, so callers resend the current metadata to keep it.
|
|
990
|
+
* The peer's id, type and channels are identity and cannot change here.
|
|
991
|
+
* @name MsgUpdatePeerInfo
|
|
992
|
+
* @package sparkdream.federation.v1
|
|
993
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfo
|
|
994
|
+
*/
|
|
995
|
+
export const MsgUpdatePeerInfo = {
|
|
996
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfo",
|
|
997
|
+
aminoType: "sparkdream/x/federation/MsgUpdatePeerInfo",
|
|
998
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
999
|
+
if (message.authority !== "") {
|
|
1000
|
+
writer.uint32(10).string(message.authority);
|
|
1001
|
+
}
|
|
1002
|
+
if (message.peerId !== "") {
|
|
1003
|
+
writer.uint32(18).string(message.peerId);
|
|
1004
|
+
}
|
|
1005
|
+
if (message.displayName !== "") {
|
|
1006
|
+
writer.uint32(26).string(message.displayName);
|
|
1007
|
+
}
|
|
1008
|
+
if (message.metadata !== "") {
|
|
1009
|
+
writer.uint32(34).string(message.metadata);
|
|
1010
|
+
}
|
|
1011
|
+
return writer;
|
|
1012
|
+
},
|
|
1013
|
+
decode(input, length) {
|
|
1014
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1015
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1016
|
+
const message = createBaseMsgUpdatePeerInfo();
|
|
1017
|
+
while (reader.pos < end) {
|
|
1018
|
+
const tag = reader.uint32();
|
|
1019
|
+
switch (tag >>> 3) {
|
|
1020
|
+
case 1:
|
|
1021
|
+
message.authority = reader.string();
|
|
1022
|
+
break;
|
|
1023
|
+
case 2:
|
|
1024
|
+
message.peerId = reader.string();
|
|
1025
|
+
break;
|
|
1026
|
+
case 3:
|
|
1027
|
+
message.displayName = reader.string();
|
|
1028
|
+
break;
|
|
1029
|
+
case 4:
|
|
1030
|
+
message.metadata = reader.string();
|
|
1031
|
+
break;
|
|
1032
|
+
default:
|
|
1033
|
+
reader.skipType(tag & 7);
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
return message;
|
|
1038
|
+
},
|
|
1039
|
+
fromPartial(object) {
|
|
1040
|
+
const message = createBaseMsgUpdatePeerInfo();
|
|
1041
|
+
message.authority = object.authority ?? "";
|
|
1042
|
+
message.peerId = object.peerId ?? "";
|
|
1043
|
+
message.displayName = object.displayName ?? "";
|
|
1044
|
+
message.metadata = object.metadata ?? "";
|
|
1045
|
+
return message;
|
|
1046
|
+
},
|
|
1047
|
+
fromAmino(object) {
|
|
1048
|
+
const message = createBaseMsgUpdatePeerInfo();
|
|
1049
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1050
|
+
message.authority = object.authority;
|
|
1051
|
+
}
|
|
1052
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1053
|
+
message.peerId = object.peer_id;
|
|
1054
|
+
}
|
|
1055
|
+
if (object.display_name !== undefined && object.display_name !== null) {
|
|
1056
|
+
message.displayName = object.display_name;
|
|
1057
|
+
}
|
|
1058
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
|
1059
|
+
message.metadata = object.metadata;
|
|
1060
|
+
}
|
|
1061
|
+
return message;
|
|
1062
|
+
},
|
|
1063
|
+
toAmino(message) {
|
|
1064
|
+
const obj = {};
|
|
1065
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1066
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1067
|
+
obj.display_name = message.displayName === "" ? undefined : message.displayName;
|
|
1068
|
+
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
1069
|
+
return obj;
|
|
1070
|
+
},
|
|
1071
|
+
fromAminoMsg(object) {
|
|
1072
|
+
return MsgUpdatePeerInfo.fromAmino(object.value);
|
|
1073
|
+
},
|
|
1074
|
+
toAminoMsg(message) {
|
|
1075
|
+
return {
|
|
1076
|
+
type: "sparkdream/x/federation/MsgUpdatePeerInfo",
|
|
1077
|
+
value: MsgUpdatePeerInfo.toAmino(message)
|
|
1078
|
+
};
|
|
1079
|
+
},
|
|
1080
|
+
fromProtoMsg(message) {
|
|
1081
|
+
return MsgUpdatePeerInfo.decode(message.value);
|
|
1082
|
+
},
|
|
1083
|
+
toProto(message) {
|
|
1084
|
+
return MsgUpdatePeerInfo.encode(message).finish();
|
|
1085
|
+
},
|
|
1086
|
+
toProtoMsg(message) {
|
|
1087
|
+
return {
|
|
1088
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfo",
|
|
1089
|
+
value: MsgUpdatePeerInfo.encode(message).finish()
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
function createBaseMsgUpdatePeerInfoResponse() {
|
|
1094
|
+
return {};
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* @name MsgUpdatePeerInfoResponse
|
|
1098
|
+
* @package sparkdream.federation.v1
|
|
1099
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfoResponse
|
|
1100
|
+
*/
|
|
1101
|
+
export const MsgUpdatePeerInfoResponse = {
|
|
1102
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfoResponse",
|
|
1103
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
1104
|
+
return writer;
|
|
1105
|
+
},
|
|
1106
|
+
decode(input, length) {
|
|
1107
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1108
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1109
|
+
const message = createBaseMsgUpdatePeerInfoResponse();
|
|
1110
|
+
while (reader.pos < end) {
|
|
1111
|
+
const tag = reader.uint32();
|
|
1112
|
+
switch (tag >>> 3) {
|
|
1113
|
+
default:
|
|
1114
|
+
reader.skipType(tag & 7);
|
|
1115
|
+
break;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
return message;
|
|
1119
|
+
},
|
|
1120
|
+
fromPartial(_) {
|
|
1121
|
+
const message = createBaseMsgUpdatePeerInfoResponse();
|
|
1122
|
+
return message;
|
|
1123
|
+
},
|
|
1124
|
+
fromAmino(_) {
|
|
1125
|
+
const message = createBaseMsgUpdatePeerInfoResponse();
|
|
1126
|
+
return message;
|
|
1127
|
+
},
|
|
1128
|
+
toAmino(_) {
|
|
1129
|
+
const obj = {};
|
|
1130
|
+
return obj;
|
|
1131
|
+
},
|
|
1132
|
+
fromAminoMsg(object) {
|
|
1133
|
+
return MsgUpdatePeerInfoResponse.fromAmino(object.value);
|
|
1134
|
+
},
|
|
1135
|
+
fromProtoMsg(message) {
|
|
1136
|
+
return MsgUpdatePeerInfoResponse.decode(message.value);
|
|
1137
|
+
},
|
|
1138
|
+
toProto(message) {
|
|
1139
|
+
return MsgUpdatePeerInfoResponse.encode(message).finish();
|
|
1140
|
+
},
|
|
1141
|
+
toProtoMsg(message) {
|
|
1142
|
+
return {
|
|
1143
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfoResponse",
|
|
1144
|
+
value: MsgUpdatePeerInfoResponse.encode(message).finish()
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
979
1148
|
function createBaseMsgRegisterBridge() {
|
|
980
1149
|
return {
|
|
981
1150
|
operator: "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgRegisterPeer, MsgRemovePeer, MsgSuspendPeer, MsgResumePeer, MsgUpdatePeerPolicy, MsgRegisterBridge, MsgUpdateBridge, MsgSubmitFederatedContent, MsgFederateContent, MsgAttestOutbound, MsgModerateContent, MsgLinkIdentity, MsgUnlinkIdentity, MsgConfirmIdentityLink, MsgAttestIdentityLink, MsgRequestReputationAttestation, MsgVerifyContent, MsgChallengeVerification, MsgSubmitArbiterHash, MsgEscalateChallenge, MsgResolveEscalatedChallenge, MsgUpdateOperationalParams, MsgUpdatePeerController, MsgResyncBridgeCount, MsgPruneOrphanBindings } from "./tx";
|
|
2
|
-
export const registry = [["/sparkdream.federation.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.federation.v1.MsgRegisterPeer", MsgRegisterPeer], ["/sparkdream.federation.v1.MsgRemovePeer", MsgRemovePeer], ["/sparkdream.federation.v1.MsgSuspendPeer", MsgSuspendPeer], ["/sparkdream.federation.v1.MsgResumePeer", MsgResumePeer], ["/sparkdream.federation.v1.MsgUpdatePeerPolicy", MsgUpdatePeerPolicy], ["/sparkdream.federation.v1.MsgRegisterBridge", MsgRegisterBridge], ["/sparkdream.federation.v1.MsgUpdateBridge", MsgUpdateBridge], ["/sparkdream.federation.v1.MsgSubmitFederatedContent", MsgSubmitFederatedContent], ["/sparkdream.federation.v1.MsgFederateContent", MsgFederateContent], ["/sparkdream.federation.v1.MsgAttestOutbound", MsgAttestOutbound], ["/sparkdream.federation.v1.MsgModerateContent", MsgModerateContent], ["/sparkdream.federation.v1.MsgLinkIdentity", MsgLinkIdentity], ["/sparkdream.federation.v1.MsgUnlinkIdentity", MsgUnlinkIdentity], ["/sparkdream.federation.v1.MsgConfirmIdentityLink", MsgConfirmIdentityLink], ["/sparkdream.federation.v1.MsgAttestIdentityLink", MsgAttestIdentityLink], ["/sparkdream.federation.v1.MsgRequestReputationAttestation", MsgRequestReputationAttestation], ["/sparkdream.federation.v1.MsgVerifyContent", MsgVerifyContent], ["/sparkdream.federation.v1.MsgChallengeVerification", MsgChallengeVerification], ["/sparkdream.federation.v1.MsgSubmitArbiterHash", MsgSubmitArbiterHash], ["/sparkdream.federation.v1.MsgEscalateChallenge", MsgEscalateChallenge], ["/sparkdream.federation.v1.MsgResolveEscalatedChallenge", MsgResolveEscalatedChallenge], ["/sparkdream.federation.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.federation.v1.MsgUpdatePeerController", MsgUpdatePeerController], ["/sparkdream.federation.v1.MsgResyncBridgeCount", MsgResyncBridgeCount], ["/sparkdream.federation.v1.MsgPruneOrphanBindings", MsgPruneOrphanBindings]];
|
|
1
|
+
import { MsgUpdateParams, MsgRegisterPeer, MsgRemovePeer, MsgSuspendPeer, MsgResumePeer, MsgUpdatePeerPolicy, MsgUpdatePeerInfo, MsgRegisterBridge, MsgUpdateBridge, MsgSubmitFederatedContent, MsgFederateContent, MsgAttestOutbound, MsgModerateContent, MsgLinkIdentity, MsgUnlinkIdentity, MsgConfirmIdentityLink, MsgAttestIdentityLink, MsgRequestReputationAttestation, MsgVerifyContent, MsgChallengeVerification, MsgSubmitArbiterHash, MsgEscalateChallenge, MsgResolveEscalatedChallenge, MsgUpdateOperationalParams, MsgUpdatePeerController, MsgResyncBridgeCount, MsgPruneOrphanBindings } from "./tx";
|
|
2
|
+
export const registry = [["/sparkdream.federation.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.federation.v1.MsgRegisterPeer", MsgRegisterPeer], ["/sparkdream.federation.v1.MsgRemovePeer", MsgRemovePeer], ["/sparkdream.federation.v1.MsgSuspendPeer", MsgSuspendPeer], ["/sparkdream.federation.v1.MsgResumePeer", MsgResumePeer], ["/sparkdream.federation.v1.MsgUpdatePeerPolicy", MsgUpdatePeerPolicy], ["/sparkdream.federation.v1.MsgUpdatePeerInfo", MsgUpdatePeerInfo], ["/sparkdream.federation.v1.MsgRegisterBridge", MsgRegisterBridge], ["/sparkdream.federation.v1.MsgUpdateBridge", MsgUpdateBridge], ["/sparkdream.federation.v1.MsgSubmitFederatedContent", MsgSubmitFederatedContent], ["/sparkdream.federation.v1.MsgFederateContent", MsgFederateContent], ["/sparkdream.federation.v1.MsgAttestOutbound", MsgAttestOutbound], ["/sparkdream.federation.v1.MsgModerateContent", MsgModerateContent], ["/sparkdream.federation.v1.MsgLinkIdentity", MsgLinkIdentity], ["/sparkdream.federation.v1.MsgUnlinkIdentity", MsgUnlinkIdentity], ["/sparkdream.federation.v1.MsgConfirmIdentityLink", MsgConfirmIdentityLink], ["/sparkdream.federation.v1.MsgAttestIdentityLink", MsgAttestIdentityLink], ["/sparkdream.federation.v1.MsgRequestReputationAttestation", MsgRequestReputationAttestation], ["/sparkdream.federation.v1.MsgVerifyContent", MsgVerifyContent], ["/sparkdream.federation.v1.MsgChallengeVerification", MsgChallengeVerification], ["/sparkdream.federation.v1.MsgSubmitArbiterHash", MsgSubmitArbiterHash], ["/sparkdream.federation.v1.MsgEscalateChallenge", MsgEscalateChallenge], ["/sparkdream.federation.v1.MsgResolveEscalatedChallenge", MsgResolveEscalatedChallenge], ["/sparkdream.federation.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.federation.v1.MsgUpdatePeerController", MsgUpdatePeerController], ["/sparkdream.federation.v1.MsgResyncBridgeCount", MsgResyncBridgeCount], ["/sparkdream.federation.v1.MsgPruneOrphanBindings", MsgPruneOrphanBindings]];
|
|
3
3
|
export const load = (protoRegistry) => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -43,6 +43,12 @@ export const MessageComposer = {
|
|
|
43
43
|
value: MsgUpdatePeerPolicy.encode(value).finish()
|
|
44
44
|
};
|
|
45
45
|
},
|
|
46
|
+
updatePeerInfo(value) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfo",
|
|
49
|
+
value: MsgUpdatePeerInfo.encode(value).finish()
|
|
50
|
+
};
|
|
51
|
+
},
|
|
46
52
|
registerBridge(value) {
|
|
47
53
|
return {
|
|
48
54
|
typeUrl: "/sparkdream.federation.v1.MsgRegisterBridge",
|
|
@@ -201,6 +207,12 @@ export const MessageComposer = {
|
|
|
201
207
|
value
|
|
202
208
|
};
|
|
203
209
|
},
|
|
210
|
+
updatePeerInfo(value) {
|
|
211
|
+
return {
|
|
212
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfo",
|
|
213
|
+
value
|
|
214
|
+
};
|
|
215
|
+
},
|
|
204
216
|
registerBridge(value) {
|
|
205
217
|
return {
|
|
206
218
|
typeUrl: "/sparkdream.federation.v1.MsgRegisterBridge",
|
|
@@ -359,6 +371,12 @@ export const MessageComposer = {
|
|
|
359
371
|
value: MsgUpdatePeerPolicy.fromPartial(value)
|
|
360
372
|
};
|
|
361
373
|
},
|
|
374
|
+
updatePeerInfo(value) {
|
|
375
|
+
return {
|
|
376
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfo",
|
|
377
|
+
value: MsgUpdatePeerInfo.fromPartial(value)
|
|
378
|
+
};
|
|
379
|
+
},
|
|
362
380
|
registerBridge(value) {
|
|
363
381
|
return {
|
|
364
382
|
typeUrl: "/sparkdream.federation.v1.MsgRegisterBridge",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgRegisterPeer, MsgRegisterPeerResponse, MsgRemovePeer, MsgRemovePeerResponse, MsgSuspendPeer, MsgSuspendPeerResponse, MsgResumePeer, MsgResumePeerResponse, MsgUpdatePeerPolicy, MsgUpdatePeerPolicyResponse, MsgRegisterBridge, MsgRegisterBridgeResponse, MsgUpdateBridge, MsgUpdateBridgeResponse, MsgSubmitFederatedContent, MsgSubmitFederatedContentResponse, MsgFederateContent, MsgFederateContentResponse, MsgAttestOutbound, MsgAttestOutboundResponse, MsgModerateContent, MsgModerateContentResponse, MsgLinkIdentity, MsgLinkIdentityResponse, MsgUnlinkIdentity, MsgUnlinkIdentityResponse, MsgConfirmIdentityLink, MsgConfirmIdentityLinkResponse, MsgAttestIdentityLink, MsgAttestIdentityLinkResponse, MsgRequestReputationAttestation, MsgRequestReputationAttestationResponse, MsgVerifyContent, MsgVerifyContentResponse, MsgChallengeVerification, MsgChallengeVerificationResponse, MsgSubmitArbiterHash, MsgSubmitArbiterHashResponse, MsgEscalateChallenge, MsgEscalateChallengeResponse, MsgResolveEscalatedChallenge, MsgResolveEscalatedChallengeResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgUpdatePeerController, MsgUpdatePeerControllerResponse, MsgResyncBridgeCount, MsgResyncBridgeCountResponse, MsgPruneOrphanBindings, MsgPruneOrphanBindingsResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgRegisterPeer, MsgRegisterPeerResponse, MsgRemovePeer, MsgRemovePeerResponse, MsgSuspendPeer, MsgSuspendPeerResponse, MsgResumePeer, MsgResumePeerResponse, MsgUpdatePeerPolicy, MsgUpdatePeerPolicyResponse, MsgUpdatePeerInfo, MsgUpdatePeerInfoResponse, MsgRegisterBridge, MsgRegisterBridgeResponse, MsgUpdateBridge, MsgUpdateBridgeResponse, MsgSubmitFederatedContent, MsgSubmitFederatedContentResponse, MsgFederateContent, MsgFederateContentResponse, MsgAttestOutbound, MsgAttestOutboundResponse, MsgModerateContent, MsgModerateContentResponse, MsgLinkIdentity, MsgLinkIdentityResponse, MsgUnlinkIdentity, MsgUnlinkIdentityResponse, MsgConfirmIdentityLink, MsgConfirmIdentityLinkResponse, MsgAttestIdentityLink, MsgAttestIdentityLinkResponse, MsgRequestReputationAttestation, MsgRequestReputationAttestationResponse, MsgVerifyContent, MsgVerifyContentResponse, MsgChallengeVerification, MsgChallengeVerificationResponse, MsgSubmitArbiterHash, MsgSubmitArbiterHashResponse, MsgEscalateChallenge, MsgEscalateChallengeResponse, MsgResolveEscalatedChallenge, MsgResolveEscalatedChallengeResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgUpdatePeerController, MsgUpdatePeerControllerResponse, MsgResyncBridgeCount, MsgResyncBridgeCountResponse, MsgPruneOrphanBindings, MsgPruneOrphanBindingsResponse } from "./tx";
|
|
3
3
|
export class MsgClientImpl {
|
|
4
4
|
rpc;
|
|
5
5
|
constructor(rpc) {
|
|
@@ -41,6 +41,12 @@ export class MsgClientImpl {
|
|
|
41
41
|
const promise = this.rpc.request("sparkdream.federation.v1.Msg", "UpdatePeerPolicy", data);
|
|
42
42
|
return promise.then(data => MsgUpdatePeerPolicyResponse.decode(new BinaryReader(data)));
|
|
43
43
|
};
|
|
44
|
+
/* UpdatePeerInfo */
|
|
45
|
+
updatePeerInfo = async (request) => {
|
|
46
|
+
const data = MsgUpdatePeerInfo.encode(request).finish();
|
|
47
|
+
const promise = this.rpc.request("sparkdream.federation.v1.Msg", "UpdatePeerInfo", data);
|
|
48
|
+
return promise.then(data => MsgUpdatePeerInfoResponse.decode(new BinaryReader(data)));
|
|
49
|
+
};
|
|
44
50
|
/* RegisterBridge */
|
|
45
51
|
registerBridge = async (request) => {
|
|
46
52
|
const data = MsgRegisterBridge.encode(request).finish();
|
package/package.json
CHANGED
package/sparkdream/bundle.d.ts
CHANGED
|
@@ -10379,6 +10379,10 @@ export declare namespace sparkdream {
|
|
|
10379
10379
|
typeUrl: string;
|
|
10380
10380
|
value: Uint8Array<ArrayBufferLike>;
|
|
10381
10381
|
};
|
|
10382
|
+
updatePeerInfo(value: _402.MsgUpdatePeerInfo): {
|
|
10383
|
+
typeUrl: string;
|
|
10384
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
10385
|
+
};
|
|
10382
10386
|
registerBridge(value: _402.MsgRegisterBridge): {
|
|
10383
10387
|
typeUrl: string;
|
|
10384
10388
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -10485,6 +10489,10 @@ export declare namespace sparkdream {
|
|
|
10485
10489
|
typeUrl: string;
|
|
10486
10490
|
value: _402.MsgUpdatePeerPolicy;
|
|
10487
10491
|
};
|
|
10492
|
+
updatePeerInfo(value: _402.MsgUpdatePeerInfo): {
|
|
10493
|
+
typeUrl: string;
|
|
10494
|
+
value: _402.MsgUpdatePeerInfo;
|
|
10495
|
+
};
|
|
10488
10496
|
registerBridge(value: _402.MsgRegisterBridge): {
|
|
10489
10497
|
typeUrl: string;
|
|
10490
10498
|
value: _402.MsgRegisterBridge;
|
|
@@ -10591,6 +10599,10 @@ export declare namespace sparkdream {
|
|
|
10591
10599
|
typeUrl: string;
|
|
10592
10600
|
value: _402.MsgUpdatePeerPolicy;
|
|
10593
10601
|
};
|
|
10602
|
+
updatePeerInfo(value: _402.MsgUpdatePeerInfo): {
|
|
10603
|
+
typeUrl: string;
|
|
10604
|
+
value: _402.MsgUpdatePeerInfo;
|
|
10605
|
+
};
|
|
10594
10606
|
registerBridge(value: _402.MsgRegisterBridge): {
|
|
10595
10607
|
typeUrl: string;
|
|
10596
10608
|
value: _402.MsgRegisterBridge;
|
|
@@ -11070,6 +11082,32 @@ export declare namespace sparkdream {
|
|
|
11070
11082
|
toProto(message: _402.MsgUpdatePeerPolicyResponse): Uint8Array;
|
|
11071
11083
|
toProtoMsg(message: _402.MsgUpdatePeerPolicyResponse): _402.MsgUpdatePeerPolicyResponseProtoMsg;
|
|
11072
11084
|
};
|
|
11085
|
+
MsgUpdatePeerInfo: {
|
|
11086
|
+
typeUrl: string;
|
|
11087
|
+
aminoType: string;
|
|
11088
|
+
encode(message: _402.MsgUpdatePeerInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
11089
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _402.MsgUpdatePeerInfo;
|
|
11090
|
+
fromPartial(object: import("../helpers").DeepPartial<_402.MsgUpdatePeerInfo>): _402.MsgUpdatePeerInfo;
|
|
11091
|
+
fromAmino(object: _402.MsgUpdatePeerInfoAmino): _402.MsgUpdatePeerInfo;
|
|
11092
|
+
toAmino(message: _402.MsgUpdatePeerInfo): _402.MsgUpdatePeerInfoAmino;
|
|
11093
|
+
fromAminoMsg(object: _402.MsgUpdatePeerInfoAminoMsg): _402.MsgUpdatePeerInfo;
|
|
11094
|
+
toAminoMsg(message: _402.MsgUpdatePeerInfo): _402.MsgUpdatePeerInfoAminoMsg;
|
|
11095
|
+
fromProtoMsg(message: _402.MsgUpdatePeerInfoProtoMsg): _402.MsgUpdatePeerInfo;
|
|
11096
|
+
toProto(message: _402.MsgUpdatePeerInfo): Uint8Array;
|
|
11097
|
+
toProtoMsg(message: _402.MsgUpdatePeerInfo): _402.MsgUpdatePeerInfoProtoMsg;
|
|
11098
|
+
};
|
|
11099
|
+
MsgUpdatePeerInfoResponse: {
|
|
11100
|
+
typeUrl: string;
|
|
11101
|
+
encode(_: _402.MsgUpdatePeerInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
11102
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _402.MsgUpdatePeerInfoResponse;
|
|
11103
|
+
fromPartial(_: import("../helpers").DeepPartial<_402.MsgUpdatePeerInfoResponse>): _402.MsgUpdatePeerInfoResponse;
|
|
11104
|
+
fromAmino(_: _402.MsgUpdatePeerInfoResponseAmino): _402.MsgUpdatePeerInfoResponse;
|
|
11105
|
+
toAmino(_: _402.MsgUpdatePeerInfoResponse): _402.MsgUpdatePeerInfoResponseAmino;
|
|
11106
|
+
fromAminoMsg(object: _402.MsgUpdatePeerInfoResponseAminoMsg): _402.MsgUpdatePeerInfoResponse;
|
|
11107
|
+
fromProtoMsg(message: _402.MsgUpdatePeerInfoResponseProtoMsg): _402.MsgUpdatePeerInfoResponse;
|
|
11108
|
+
toProto(message: _402.MsgUpdatePeerInfoResponse): Uint8Array;
|
|
11109
|
+
toProtoMsg(message: _402.MsgUpdatePeerInfoResponse): _402.MsgUpdatePeerInfoResponseProtoMsg;
|
|
11110
|
+
};
|
|
11073
11111
|
MsgRegisterBridge: {
|
|
11074
11112
|
typeUrl: string;
|
|
11075
11113
|
aminoType: string;
|
|
@@ -353,6 +353,64 @@ export interface MsgUpdatePeerPolicyResponseAminoMsg {
|
|
|
353
353
|
type: "/sparkdream.federation.v1.MsgUpdatePeerPolicyResponse";
|
|
354
354
|
value: MsgUpdatePeerPolicyResponseAmino;
|
|
355
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* MsgUpdatePeerInfo corrects a peer's descriptive fields. Both fields are
|
|
358
|
+
* replaced as given, so callers resend the current metadata to keep it.
|
|
359
|
+
* The peer's id, type and channels are identity and cannot change here.
|
|
360
|
+
* @name MsgUpdatePeerInfo
|
|
361
|
+
* @package sparkdream.federation.v1
|
|
362
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfo
|
|
363
|
+
*/
|
|
364
|
+
export interface MsgUpdatePeerInfo {
|
|
365
|
+
authority: string;
|
|
366
|
+
peerId: string;
|
|
367
|
+
displayName: string;
|
|
368
|
+
metadata: string;
|
|
369
|
+
}
|
|
370
|
+
export interface MsgUpdatePeerInfoProtoMsg {
|
|
371
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfo";
|
|
372
|
+
value: Uint8Array;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* MsgUpdatePeerInfo corrects a peer's descriptive fields. Both fields are
|
|
376
|
+
* replaced as given, so callers resend the current metadata to keep it.
|
|
377
|
+
* The peer's id, type and channels are identity and cannot change here.
|
|
378
|
+
* @name MsgUpdatePeerInfoAmino
|
|
379
|
+
* @package sparkdream.federation.v1
|
|
380
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfo
|
|
381
|
+
*/
|
|
382
|
+
export interface MsgUpdatePeerInfoAmino {
|
|
383
|
+
authority?: string;
|
|
384
|
+
peer_id?: string;
|
|
385
|
+
display_name?: string;
|
|
386
|
+
metadata?: string;
|
|
387
|
+
}
|
|
388
|
+
export interface MsgUpdatePeerInfoAminoMsg {
|
|
389
|
+
type: "sparkdream/x/federation/MsgUpdatePeerInfo";
|
|
390
|
+
value: MsgUpdatePeerInfoAmino;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* @name MsgUpdatePeerInfoResponse
|
|
394
|
+
* @package sparkdream.federation.v1
|
|
395
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfoResponse
|
|
396
|
+
*/
|
|
397
|
+
export interface MsgUpdatePeerInfoResponse {
|
|
398
|
+
}
|
|
399
|
+
export interface MsgUpdatePeerInfoResponseProtoMsg {
|
|
400
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfoResponse";
|
|
401
|
+
value: Uint8Array;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @name MsgUpdatePeerInfoResponseAmino
|
|
405
|
+
* @package sparkdream.federation.v1
|
|
406
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfoResponse
|
|
407
|
+
*/
|
|
408
|
+
export interface MsgUpdatePeerInfoResponseAmino {
|
|
409
|
+
}
|
|
410
|
+
export interface MsgUpdatePeerInfoResponseAminoMsg {
|
|
411
|
+
type: "/sparkdream.federation.v1.MsgUpdatePeerInfoResponse";
|
|
412
|
+
value: MsgUpdatePeerInfoResponseAmino;
|
|
413
|
+
}
|
|
356
414
|
/**
|
|
357
415
|
* MsgRegisterBridge registers a bridge operator for a peer. Operator-
|
|
358
416
|
* signed (federation→service migration): the operator pays their own
|
|
@@ -1753,6 +1811,45 @@ export declare const MsgUpdatePeerPolicyResponse: {
|
|
|
1753
1811
|
toProto(message: MsgUpdatePeerPolicyResponse): Uint8Array;
|
|
1754
1812
|
toProtoMsg(message: MsgUpdatePeerPolicyResponse): MsgUpdatePeerPolicyResponseProtoMsg;
|
|
1755
1813
|
};
|
|
1814
|
+
/**
|
|
1815
|
+
* MsgUpdatePeerInfo corrects a peer's descriptive fields. Both fields are
|
|
1816
|
+
* replaced as given, so callers resend the current metadata to keep it.
|
|
1817
|
+
* The peer's id, type and channels are identity and cannot change here.
|
|
1818
|
+
* @name MsgUpdatePeerInfo
|
|
1819
|
+
* @package sparkdream.federation.v1
|
|
1820
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfo
|
|
1821
|
+
*/
|
|
1822
|
+
export declare const MsgUpdatePeerInfo: {
|
|
1823
|
+
typeUrl: string;
|
|
1824
|
+
aminoType: string;
|
|
1825
|
+
encode(message: MsgUpdatePeerInfo, writer?: BinaryWriter): BinaryWriter;
|
|
1826
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdatePeerInfo;
|
|
1827
|
+
fromPartial(object: DeepPartial<MsgUpdatePeerInfo>): MsgUpdatePeerInfo;
|
|
1828
|
+
fromAmino(object: MsgUpdatePeerInfoAmino): MsgUpdatePeerInfo;
|
|
1829
|
+
toAmino(message: MsgUpdatePeerInfo): MsgUpdatePeerInfoAmino;
|
|
1830
|
+
fromAminoMsg(object: MsgUpdatePeerInfoAminoMsg): MsgUpdatePeerInfo;
|
|
1831
|
+
toAminoMsg(message: MsgUpdatePeerInfo): MsgUpdatePeerInfoAminoMsg;
|
|
1832
|
+
fromProtoMsg(message: MsgUpdatePeerInfoProtoMsg): MsgUpdatePeerInfo;
|
|
1833
|
+
toProto(message: MsgUpdatePeerInfo): Uint8Array;
|
|
1834
|
+
toProtoMsg(message: MsgUpdatePeerInfo): MsgUpdatePeerInfoProtoMsg;
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* @name MsgUpdatePeerInfoResponse
|
|
1838
|
+
* @package sparkdream.federation.v1
|
|
1839
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfoResponse
|
|
1840
|
+
*/
|
|
1841
|
+
export declare const MsgUpdatePeerInfoResponse: {
|
|
1842
|
+
typeUrl: string;
|
|
1843
|
+
encode(_: MsgUpdatePeerInfoResponse, writer?: BinaryWriter): BinaryWriter;
|
|
1844
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdatePeerInfoResponse;
|
|
1845
|
+
fromPartial(_: DeepPartial<MsgUpdatePeerInfoResponse>): MsgUpdatePeerInfoResponse;
|
|
1846
|
+
fromAmino(_: MsgUpdatePeerInfoResponseAmino): MsgUpdatePeerInfoResponse;
|
|
1847
|
+
toAmino(_: MsgUpdatePeerInfoResponse): MsgUpdatePeerInfoResponseAmino;
|
|
1848
|
+
fromAminoMsg(object: MsgUpdatePeerInfoResponseAminoMsg): MsgUpdatePeerInfoResponse;
|
|
1849
|
+
fromProtoMsg(message: MsgUpdatePeerInfoResponseProtoMsg): MsgUpdatePeerInfoResponse;
|
|
1850
|
+
toProto(message: MsgUpdatePeerInfoResponse): Uint8Array;
|
|
1851
|
+
toProtoMsg(message: MsgUpdatePeerInfoResponse): MsgUpdatePeerInfoResponseProtoMsg;
|
|
1852
|
+
};
|
|
1756
1853
|
/**
|
|
1757
1854
|
* MsgRegisterBridge registers a bridge operator for a peer. Operator-
|
|
1758
1855
|
* signed (federation→service migration): the operator pays their own
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.MsgPruneOrphanBindingsResponse = exports.MsgPruneOrphanBindings = void 0;
|
|
3
|
+
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.MsgAttestIdentityLinkResponse = exports.MsgAttestIdentityLink = 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.MsgUpdatePeerInfoResponse = exports.MsgUpdatePeerInfo = 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
|
+
exports.MsgPruneOrphanBindingsResponse = exports.MsgPruneOrphanBindings = exports.MsgResyncBridgeCountResponse = exports.MsgResyncBridgeCount = void 0;
|
|
5
5
|
//@ts-nocheck
|
|
6
6
|
const params_1 = require("./params");
|
|
7
7
|
const types_1 = require("./types");
|
|
@@ -980,6 +980,175 @@ exports.MsgUpdatePeerPolicyResponse = {
|
|
|
980
980
|
};
|
|
981
981
|
}
|
|
982
982
|
};
|
|
983
|
+
function createBaseMsgUpdatePeerInfo() {
|
|
984
|
+
return {
|
|
985
|
+
authority: "",
|
|
986
|
+
peerId: "",
|
|
987
|
+
displayName: "",
|
|
988
|
+
metadata: ""
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* MsgUpdatePeerInfo corrects a peer's descriptive fields. Both fields are
|
|
993
|
+
* replaced as given, so callers resend the current metadata to keep it.
|
|
994
|
+
* The peer's id, type and channels are identity and cannot change here.
|
|
995
|
+
* @name MsgUpdatePeerInfo
|
|
996
|
+
* @package sparkdream.federation.v1
|
|
997
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfo
|
|
998
|
+
*/
|
|
999
|
+
exports.MsgUpdatePeerInfo = {
|
|
1000
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfo",
|
|
1001
|
+
aminoType: "sparkdream/x/federation/MsgUpdatePeerInfo",
|
|
1002
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1003
|
+
if (message.authority !== "") {
|
|
1004
|
+
writer.uint32(10).string(message.authority);
|
|
1005
|
+
}
|
|
1006
|
+
if (message.peerId !== "") {
|
|
1007
|
+
writer.uint32(18).string(message.peerId);
|
|
1008
|
+
}
|
|
1009
|
+
if (message.displayName !== "") {
|
|
1010
|
+
writer.uint32(26).string(message.displayName);
|
|
1011
|
+
}
|
|
1012
|
+
if (message.metadata !== "") {
|
|
1013
|
+
writer.uint32(34).string(message.metadata);
|
|
1014
|
+
}
|
|
1015
|
+
return writer;
|
|
1016
|
+
},
|
|
1017
|
+
decode(input, length) {
|
|
1018
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1019
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1020
|
+
const message = createBaseMsgUpdatePeerInfo();
|
|
1021
|
+
while (reader.pos < end) {
|
|
1022
|
+
const tag = reader.uint32();
|
|
1023
|
+
switch (tag >>> 3) {
|
|
1024
|
+
case 1:
|
|
1025
|
+
message.authority = reader.string();
|
|
1026
|
+
break;
|
|
1027
|
+
case 2:
|
|
1028
|
+
message.peerId = reader.string();
|
|
1029
|
+
break;
|
|
1030
|
+
case 3:
|
|
1031
|
+
message.displayName = reader.string();
|
|
1032
|
+
break;
|
|
1033
|
+
case 4:
|
|
1034
|
+
message.metadata = reader.string();
|
|
1035
|
+
break;
|
|
1036
|
+
default:
|
|
1037
|
+
reader.skipType(tag & 7);
|
|
1038
|
+
break;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
return message;
|
|
1042
|
+
},
|
|
1043
|
+
fromPartial(object) {
|
|
1044
|
+
const message = createBaseMsgUpdatePeerInfo();
|
|
1045
|
+
message.authority = object.authority ?? "";
|
|
1046
|
+
message.peerId = object.peerId ?? "";
|
|
1047
|
+
message.displayName = object.displayName ?? "";
|
|
1048
|
+
message.metadata = object.metadata ?? "";
|
|
1049
|
+
return message;
|
|
1050
|
+
},
|
|
1051
|
+
fromAmino(object) {
|
|
1052
|
+
const message = createBaseMsgUpdatePeerInfo();
|
|
1053
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1054
|
+
message.authority = object.authority;
|
|
1055
|
+
}
|
|
1056
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1057
|
+
message.peerId = object.peer_id;
|
|
1058
|
+
}
|
|
1059
|
+
if (object.display_name !== undefined && object.display_name !== null) {
|
|
1060
|
+
message.displayName = object.display_name;
|
|
1061
|
+
}
|
|
1062
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
|
1063
|
+
message.metadata = object.metadata;
|
|
1064
|
+
}
|
|
1065
|
+
return message;
|
|
1066
|
+
},
|
|
1067
|
+
toAmino(message) {
|
|
1068
|
+
const obj = {};
|
|
1069
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1070
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1071
|
+
obj.display_name = message.displayName === "" ? undefined : message.displayName;
|
|
1072
|
+
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
1073
|
+
return obj;
|
|
1074
|
+
},
|
|
1075
|
+
fromAminoMsg(object) {
|
|
1076
|
+
return exports.MsgUpdatePeerInfo.fromAmino(object.value);
|
|
1077
|
+
},
|
|
1078
|
+
toAminoMsg(message) {
|
|
1079
|
+
return {
|
|
1080
|
+
type: "sparkdream/x/federation/MsgUpdatePeerInfo",
|
|
1081
|
+
value: exports.MsgUpdatePeerInfo.toAmino(message)
|
|
1082
|
+
};
|
|
1083
|
+
},
|
|
1084
|
+
fromProtoMsg(message) {
|
|
1085
|
+
return exports.MsgUpdatePeerInfo.decode(message.value);
|
|
1086
|
+
},
|
|
1087
|
+
toProto(message) {
|
|
1088
|
+
return exports.MsgUpdatePeerInfo.encode(message).finish();
|
|
1089
|
+
},
|
|
1090
|
+
toProtoMsg(message) {
|
|
1091
|
+
return {
|
|
1092
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfo",
|
|
1093
|
+
value: exports.MsgUpdatePeerInfo.encode(message).finish()
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
function createBaseMsgUpdatePeerInfoResponse() {
|
|
1098
|
+
return {};
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* @name MsgUpdatePeerInfoResponse
|
|
1102
|
+
* @package sparkdream.federation.v1
|
|
1103
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerInfoResponse
|
|
1104
|
+
*/
|
|
1105
|
+
exports.MsgUpdatePeerInfoResponse = {
|
|
1106
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfoResponse",
|
|
1107
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1108
|
+
return writer;
|
|
1109
|
+
},
|
|
1110
|
+
decode(input, length) {
|
|
1111
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1112
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1113
|
+
const message = createBaseMsgUpdatePeerInfoResponse();
|
|
1114
|
+
while (reader.pos < end) {
|
|
1115
|
+
const tag = reader.uint32();
|
|
1116
|
+
switch (tag >>> 3) {
|
|
1117
|
+
default:
|
|
1118
|
+
reader.skipType(tag & 7);
|
|
1119
|
+
break;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
return message;
|
|
1123
|
+
},
|
|
1124
|
+
fromPartial(_) {
|
|
1125
|
+
const message = createBaseMsgUpdatePeerInfoResponse();
|
|
1126
|
+
return message;
|
|
1127
|
+
},
|
|
1128
|
+
fromAmino(_) {
|
|
1129
|
+
const message = createBaseMsgUpdatePeerInfoResponse();
|
|
1130
|
+
return message;
|
|
1131
|
+
},
|
|
1132
|
+
toAmino(_) {
|
|
1133
|
+
const obj = {};
|
|
1134
|
+
return obj;
|
|
1135
|
+
},
|
|
1136
|
+
fromAminoMsg(object) {
|
|
1137
|
+
return exports.MsgUpdatePeerInfoResponse.fromAmino(object.value);
|
|
1138
|
+
},
|
|
1139
|
+
fromProtoMsg(message) {
|
|
1140
|
+
return exports.MsgUpdatePeerInfoResponse.decode(message.value);
|
|
1141
|
+
},
|
|
1142
|
+
toProto(message) {
|
|
1143
|
+
return exports.MsgUpdatePeerInfoResponse.encode(message).finish();
|
|
1144
|
+
},
|
|
1145
|
+
toProtoMsg(message) {
|
|
1146
|
+
return {
|
|
1147
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerInfoResponse",
|
|
1148
|
+
value: exports.MsgUpdatePeerInfoResponse.encode(message).finish()
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
983
1152
|
function createBaseMsgRegisterBridge() {
|
|
984
1153
|
return {
|
|
985
1154
|
operator: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
-
import { MsgUpdateParams, MsgRegisterPeer, MsgRemovePeer, MsgSuspendPeer, MsgResumePeer, MsgUpdatePeerPolicy, MsgRegisterBridge, MsgUpdateBridge, MsgSubmitFederatedContent, MsgFederateContent, MsgAttestOutbound, MsgModerateContent, MsgLinkIdentity, MsgUnlinkIdentity, MsgConfirmIdentityLink, MsgAttestIdentityLink, MsgRequestReputationAttestation, MsgVerifyContent, MsgChallengeVerification, MsgSubmitArbiterHash, MsgEscalateChallenge, MsgResolveEscalatedChallenge, MsgUpdateOperationalParams, MsgUpdatePeerController, MsgResyncBridgeCount, MsgPruneOrphanBindings } from "./tx";
|
|
3
|
+
import { MsgUpdateParams, MsgRegisterPeer, MsgRemovePeer, MsgSuspendPeer, MsgResumePeer, MsgUpdatePeerPolicy, MsgUpdatePeerInfo, MsgRegisterBridge, MsgUpdateBridge, MsgSubmitFederatedContent, MsgFederateContent, MsgAttestOutbound, MsgModerateContent, MsgLinkIdentity, MsgUnlinkIdentity, MsgConfirmIdentityLink, MsgAttestIdentityLink, MsgRequestReputationAttestation, MsgVerifyContent, MsgChallengeVerification, MsgSubmitArbiterHash, MsgEscalateChallenge, MsgResolveEscalatedChallenge, MsgUpdateOperationalParams, MsgUpdatePeerController, MsgResyncBridgeCount, MsgPruneOrphanBindings } from "./tx";
|
|
4
4
|
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
5
5
|
export declare const load: (protoRegistry: Registry) => void;
|
|
6
6
|
export declare const MessageComposer: {
|
|
@@ -29,6 +29,10 @@ export declare const MessageComposer: {
|
|
|
29
29
|
typeUrl: string;
|
|
30
30
|
value: Uint8Array<ArrayBufferLike>;
|
|
31
31
|
};
|
|
32
|
+
updatePeerInfo(value: MsgUpdatePeerInfo): {
|
|
33
|
+
typeUrl: string;
|
|
34
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
35
|
+
};
|
|
32
36
|
registerBridge(value: MsgRegisterBridge): {
|
|
33
37
|
typeUrl: string;
|
|
34
38
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -135,6 +139,10 @@ export declare const MessageComposer: {
|
|
|
135
139
|
typeUrl: string;
|
|
136
140
|
value: MsgUpdatePeerPolicy;
|
|
137
141
|
};
|
|
142
|
+
updatePeerInfo(value: MsgUpdatePeerInfo): {
|
|
143
|
+
typeUrl: string;
|
|
144
|
+
value: MsgUpdatePeerInfo;
|
|
145
|
+
};
|
|
138
146
|
registerBridge(value: MsgRegisterBridge): {
|
|
139
147
|
typeUrl: string;
|
|
140
148
|
value: MsgRegisterBridge;
|
|
@@ -241,6 +249,10 @@ export declare const MessageComposer: {
|
|
|
241
249
|
typeUrl: string;
|
|
242
250
|
value: MsgUpdatePeerPolicy;
|
|
243
251
|
};
|
|
252
|
+
updatePeerInfo(value: MsgUpdatePeerInfo): {
|
|
253
|
+
typeUrl: string;
|
|
254
|
+
value: MsgUpdatePeerInfo;
|
|
255
|
+
};
|
|
244
256
|
registerBridge(value: MsgRegisterBridge): {
|
|
245
257
|
typeUrl: string;
|
|
246
258
|
value: MsgRegisterBridge;
|