@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.9
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/bundle.js +368 -332
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +244 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2629 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +152 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +189 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +139 -0
- package/esm/sparkdream/federation/v1/tx.js +4199 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +501 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +173 -0
- package/esm/sparkdream/federation/v1/types.js +2571 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/genesis.js +209 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5260 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +286 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +333 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/rep/v1/sentinel_activity.js +214 -0
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2439 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +102 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- 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/bundle.d.ts +13210 -11120
- package/sparkdream/bundle.js +368 -332
- package/sparkdream/client.d.ts +202 -57
- package/sparkdream/client.js +4 -1
- package/sparkdream/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +78 -0
- package/sparkdream/federation/v1/genesis.js +247 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1541 -0
- package/sparkdream/federation/v1/query.js +2632 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +26 -0
- package/sparkdream/federation/v1/query.lcd.js +156 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +66 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +194 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +138 -0
- package/sparkdream/federation/v1/tx.amino.js +142 -0
- package/sparkdream/federation/v1/tx.d.ts +2311 -0
- package/sparkdream/federation/v1/tx.js +4203 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +337 -0
- package/sparkdream/federation/v1/tx.registry.js +505 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +64 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +178 -0
- package/sparkdream/federation/v1/types.d.ts +906 -0
- package/sparkdream/federation/v1/types.js +2588 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/genesis.d.ts +68 -0
- package/sparkdream/rep/v1/genesis.js +209 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/{forum → rep}/v1/member_report.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4197 -1129
- package/sparkdream/rep/v1/query.js +5263 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +286 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +137 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +332 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/rep/v1/sentinel_activity.d.ts +79 -0
- package/sparkdream/rep/v1/sentinel_activity.js +219 -0
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1467 -0
- package/sparkdream/rep/v1/tx.js +2440 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +62 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +101 -0
- package/sparkdream/rpc.query.d.ts +58 -34
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -0,0 +1,4203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgSubmitArbiterHashResponse = exports.MsgSubmitArbiterHash = exports.MsgChallengeVerificationResponse = exports.MsgChallengeVerification = exports.MsgVerifyContentResponse = exports.MsgVerifyContent = exports.MsgUnbondVerifierResponse = exports.MsgUnbondVerifier = exports.MsgBondVerifierResponse = exports.MsgBondVerifier = 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.MsgTopUpBridgeStakeResponse = exports.MsgTopUpBridgeStake = exports.MsgUnbondBridgeResponse = exports.MsgUnbondBridge = exports.MsgUpdateBridgeResponse = exports.MsgUpdateBridge = exports.MsgSlashBridgeResponse = exports.MsgSlashBridge = exports.MsgRevokeBridgeResponse = exports.MsgRevokeBridge = 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
|
+
exports.MsgUpdateOperationalParamsResponse = exports.MsgUpdateOperationalParams = exports.MsgEscalateChallengeResponse = exports.MsgEscalateChallenge = void 0;
|
|
5
|
+
//@ts-nocheck
|
|
6
|
+
const params_1 = require("./params");
|
|
7
|
+
const types_1 = require("./types");
|
|
8
|
+
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
9
|
+
const binary_1 = require("../../../binary");
|
|
10
|
+
const helpers_1 = require("../../../helpers");
|
|
11
|
+
function createBaseMsgUpdateParams() {
|
|
12
|
+
return {
|
|
13
|
+
authority: "",
|
|
14
|
+
params: params_1.Params.fromPartial({})
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @name MsgUpdateParams
|
|
19
|
+
* @package sparkdream.federation.v1
|
|
20
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateParams
|
|
21
|
+
*/
|
|
22
|
+
exports.MsgUpdateParams = {
|
|
23
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateParams",
|
|
24
|
+
aminoType: "sparkdream/x/federation/MsgUpdateParams",
|
|
25
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
26
|
+
if (message.authority !== "") {
|
|
27
|
+
writer.uint32(10).string(message.authority);
|
|
28
|
+
}
|
|
29
|
+
if (message.params !== undefined) {
|
|
30
|
+
params_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
31
|
+
}
|
|
32
|
+
return writer;
|
|
33
|
+
},
|
|
34
|
+
decode(input, length) {
|
|
35
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
36
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37
|
+
const message = createBaseMsgUpdateParams();
|
|
38
|
+
while (reader.pos < end) {
|
|
39
|
+
const tag = reader.uint32();
|
|
40
|
+
switch (tag >>> 3) {
|
|
41
|
+
case 1:
|
|
42
|
+
message.authority = reader.string();
|
|
43
|
+
break;
|
|
44
|
+
case 2:
|
|
45
|
+
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
reader.skipType(tag & 7);
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
fromPartial(object) {
|
|
55
|
+
const message = createBaseMsgUpdateParams();
|
|
56
|
+
message.authority = object.authority ?? "";
|
|
57
|
+
message.params = object.params !== undefined && object.params !== null ? params_1.Params.fromPartial(object.params) : undefined;
|
|
58
|
+
return message;
|
|
59
|
+
},
|
|
60
|
+
fromAmino(object) {
|
|
61
|
+
const message = createBaseMsgUpdateParams();
|
|
62
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
63
|
+
message.authority = object.authority;
|
|
64
|
+
}
|
|
65
|
+
if (object.params !== undefined && object.params !== null) {
|
|
66
|
+
message.params = params_1.Params.fromAmino(object.params);
|
|
67
|
+
}
|
|
68
|
+
return message;
|
|
69
|
+
},
|
|
70
|
+
toAmino(message) {
|
|
71
|
+
const obj = {};
|
|
72
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
73
|
+
obj.params = message.params ? params_1.Params.toAmino(message.params) : params_1.Params.toAmino(params_1.Params.fromPartial({}));
|
|
74
|
+
return obj;
|
|
75
|
+
},
|
|
76
|
+
fromAminoMsg(object) {
|
|
77
|
+
return exports.MsgUpdateParams.fromAmino(object.value);
|
|
78
|
+
},
|
|
79
|
+
toAminoMsg(message) {
|
|
80
|
+
return {
|
|
81
|
+
type: "sparkdream/x/federation/MsgUpdateParams",
|
|
82
|
+
value: exports.MsgUpdateParams.toAmino(message)
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
fromProtoMsg(message) {
|
|
86
|
+
return exports.MsgUpdateParams.decode(message.value);
|
|
87
|
+
},
|
|
88
|
+
toProto(message) {
|
|
89
|
+
return exports.MsgUpdateParams.encode(message).finish();
|
|
90
|
+
},
|
|
91
|
+
toProtoMsg(message) {
|
|
92
|
+
return {
|
|
93
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateParams",
|
|
94
|
+
value: exports.MsgUpdateParams.encode(message).finish()
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
function createBaseMsgUpdateParamsResponse() {
|
|
99
|
+
return {};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @name MsgUpdateParamsResponse
|
|
103
|
+
* @package sparkdream.federation.v1
|
|
104
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateParamsResponse
|
|
105
|
+
*/
|
|
106
|
+
exports.MsgUpdateParamsResponse = {
|
|
107
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateParamsResponse",
|
|
108
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
109
|
+
return writer;
|
|
110
|
+
},
|
|
111
|
+
decode(input, length) {
|
|
112
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
113
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
114
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
115
|
+
while (reader.pos < end) {
|
|
116
|
+
const tag = reader.uint32();
|
|
117
|
+
switch (tag >>> 3) {
|
|
118
|
+
default:
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return message;
|
|
124
|
+
},
|
|
125
|
+
fromPartial(_) {
|
|
126
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
fromAmino(_) {
|
|
130
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
toAmino(_) {
|
|
134
|
+
const obj = {};
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
fromAminoMsg(object) {
|
|
138
|
+
return exports.MsgUpdateParamsResponse.fromAmino(object.value);
|
|
139
|
+
},
|
|
140
|
+
fromProtoMsg(message) {
|
|
141
|
+
return exports.MsgUpdateParamsResponse.decode(message.value);
|
|
142
|
+
},
|
|
143
|
+
toProto(message) {
|
|
144
|
+
return exports.MsgUpdateParamsResponse.encode(message).finish();
|
|
145
|
+
},
|
|
146
|
+
toProtoMsg(message) {
|
|
147
|
+
return {
|
|
148
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateParamsResponse",
|
|
149
|
+
value: exports.MsgUpdateParamsResponse.encode(message).finish()
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
function createBaseMsgRegisterPeer() {
|
|
154
|
+
return {
|
|
155
|
+
authority: "",
|
|
156
|
+
peerId: "",
|
|
157
|
+
displayName: "",
|
|
158
|
+
type: 0,
|
|
159
|
+
ibcChannelId: "",
|
|
160
|
+
metadata: ""
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @name MsgRegisterPeer
|
|
165
|
+
* @package sparkdream.federation.v1
|
|
166
|
+
* @see proto type: sparkdream.federation.v1.MsgRegisterPeer
|
|
167
|
+
*/
|
|
168
|
+
exports.MsgRegisterPeer = {
|
|
169
|
+
typeUrl: "/sparkdream.federation.v1.MsgRegisterPeer",
|
|
170
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
171
|
+
if (message.authority !== "") {
|
|
172
|
+
writer.uint32(10).string(message.authority);
|
|
173
|
+
}
|
|
174
|
+
if (message.peerId !== "") {
|
|
175
|
+
writer.uint32(18).string(message.peerId);
|
|
176
|
+
}
|
|
177
|
+
if (message.displayName !== "") {
|
|
178
|
+
writer.uint32(26).string(message.displayName);
|
|
179
|
+
}
|
|
180
|
+
if (message.type !== 0) {
|
|
181
|
+
writer.uint32(32).int32(message.type);
|
|
182
|
+
}
|
|
183
|
+
if (message.ibcChannelId !== "") {
|
|
184
|
+
writer.uint32(42).string(message.ibcChannelId);
|
|
185
|
+
}
|
|
186
|
+
if (message.metadata !== "") {
|
|
187
|
+
writer.uint32(50).string(message.metadata);
|
|
188
|
+
}
|
|
189
|
+
return writer;
|
|
190
|
+
},
|
|
191
|
+
decode(input, length) {
|
|
192
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
193
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
194
|
+
const message = createBaseMsgRegisterPeer();
|
|
195
|
+
while (reader.pos < end) {
|
|
196
|
+
const tag = reader.uint32();
|
|
197
|
+
switch (tag >>> 3) {
|
|
198
|
+
case 1:
|
|
199
|
+
message.authority = reader.string();
|
|
200
|
+
break;
|
|
201
|
+
case 2:
|
|
202
|
+
message.peerId = reader.string();
|
|
203
|
+
break;
|
|
204
|
+
case 3:
|
|
205
|
+
message.displayName = reader.string();
|
|
206
|
+
break;
|
|
207
|
+
case 4:
|
|
208
|
+
message.type = reader.int32();
|
|
209
|
+
break;
|
|
210
|
+
case 5:
|
|
211
|
+
message.ibcChannelId = reader.string();
|
|
212
|
+
break;
|
|
213
|
+
case 6:
|
|
214
|
+
message.metadata = reader.string();
|
|
215
|
+
break;
|
|
216
|
+
default:
|
|
217
|
+
reader.skipType(tag & 7);
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
fromPartial(object) {
|
|
224
|
+
const message = createBaseMsgRegisterPeer();
|
|
225
|
+
message.authority = object.authority ?? "";
|
|
226
|
+
message.peerId = object.peerId ?? "";
|
|
227
|
+
message.displayName = object.displayName ?? "";
|
|
228
|
+
message.type = object.type ?? 0;
|
|
229
|
+
message.ibcChannelId = object.ibcChannelId ?? "";
|
|
230
|
+
message.metadata = object.metadata ?? "";
|
|
231
|
+
return message;
|
|
232
|
+
},
|
|
233
|
+
fromAmino(object) {
|
|
234
|
+
const message = createBaseMsgRegisterPeer();
|
|
235
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
236
|
+
message.authority = object.authority;
|
|
237
|
+
}
|
|
238
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
239
|
+
message.peerId = object.peer_id;
|
|
240
|
+
}
|
|
241
|
+
if (object.display_name !== undefined && object.display_name !== null) {
|
|
242
|
+
message.displayName = object.display_name;
|
|
243
|
+
}
|
|
244
|
+
if (object.type !== undefined && object.type !== null) {
|
|
245
|
+
message.type = object.type;
|
|
246
|
+
}
|
|
247
|
+
if (object.ibc_channel_id !== undefined && object.ibc_channel_id !== null) {
|
|
248
|
+
message.ibcChannelId = object.ibc_channel_id;
|
|
249
|
+
}
|
|
250
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
|
251
|
+
message.metadata = object.metadata;
|
|
252
|
+
}
|
|
253
|
+
return message;
|
|
254
|
+
},
|
|
255
|
+
toAmino(message) {
|
|
256
|
+
const obj = {};
|
|
257
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
258
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
259
|
+
obj.display_name = message.displayName === "" ? undefined : message.displayName;
|
|
260
|
+
obj.type = message.type === 0 ? undefined : message.type;
|
|
261
|
+
obj.ibc_channel_id = message.ibcChannelId === "" ? undefined : message.ibcChannelId;
|
|
262
|
+
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
263
|
+
return obj;
|
|
264
|
+
},
|
|
265
|
+
fromAminoMsg(object) {
|
|
266
|
+
return exports.MsgRegisterPeer.fromAmino(object.value);
|
|
267
|
+
},
|
|
268
|
+
fromProtoMsg(message) {
|
|
269
|
+
return exports.MsgRegisterPeer.decode(message.value);
|
|
270
|
+
},
|
|
271
|
+
toProto(message) {
|
|
272
|
+
return exports.MsgRegisterPeer.encode(message).finish();
|
|
273
|
+
},
|
|
274
|
+
toProtoMsg(message) {
|
|
275
|
+
return {
|
|
276
|
+
typeUrl: "/sparkdream.federation.v1.MsgRegisterPeer",
|
|
277
|
+
value: exports.MsgRegisterPeer.encode(message).finish()
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
function createBaseMsgRegisterPeerResponse() {
|
|
282
|
+
return {};
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* @name MsgRegisterPeerResponse
|
|
286
|
+
* @package sparkdream.federation.v1
|
|
287
|
+
* @see proto type: sparkdream.federation.v1.MsgRegisterPeerResponse
|
|
288
|
+
*/
|
|
289
|
+
exports.MsgRegisterPeerResponse = {
|
|
290
|
+
typeUrl: "/sparkdream.federation.v1.MsgRegisterPeerResponse",
|
|
291
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
292
|
+
return writer;
|
|
293
|
+
},
|
|
294
|
+
decode(input, length) {
|
|
295
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
296
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
297
|
+
const message = createBaseMsgRegisterPeerResponse();
|
|
298
|
+
while (reader.pos < end) {
|
|
299
|
+
const tag = reader.uint32();
|
|
300
|
+
switch (tag >>> 3) {
|
|
301
|
+
default:
|
|
302
|
+
reader.skipType(tag & 7);
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return message;
|
|
307
|
+
},
|
|
308
|
+
fromPartial(_) {
|
|
309
|
+
const message = createBaseMsgRegisterPeerResponse();
|
|
310
|
+
return message;
|
|
311
|
+
},
|
|
312
|
+
fromAmino(_) {
|
|
313
|
+
const message = createBaseMsgRegisterPeerResponse();
|
|
314
|
+
return message;
|
|
315
|
+
},
|
|
316
|
+
toAmino(_) {
|
|
317
|
+
const obj = {};
|
|
318
|
+
return obj;
|
|
319
|
+
},
|
|
320
|
+
fromAminoMsg(object) {
|
|
321
|
+
return exports.MsgRegisterPeerResponse.fromAmino(object.value);
|
|
322
|
+
},
|
|
323
|
+
fromProtoMsg(message) {
|
|
324
|
+
return exports.MsgRegisterPeerResponse.decode(message.value);
|
|
325
|
+
},
|
|
326
|
+
toProto(message) {
|
|
327
|
+
return exports.MsgRegisterPeerResponse.encode(message).finish();
|
|
328
|
+
},
|
|
329
|
+
toProtoMsg(message) {
|
|
330
|
+
return {
|
|
331
|
+
typeUrl: "/sparkdream.federation.v1.MsgRegisterPeerResponse",
|
|
332
|
+
value: exports.MsgRegisterPeerResponse.encode(message).finish()
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
function createBaseMsgRemovePeer() {
|
|
337
|
+
return {
|
|
338
|
+
authority: "",
|
|
339
|
+
peerId: "",
|
|
340
|
+
reason: ""
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* @name MsgRemovePeer
|
|
345
|
+
* @package sparkdream.federation.v1
|
|
346
|
+
* @see proto type: sparkdream.federation.v1.MsgRemovePeer
|
|
347
|
+
*/
|
|
348
|
+
exports.MsgRemovePeer = {
|
|
349
|
+
typeUrl: "/sparkdream.federation.v1.MsgRemovePeer",
|
|
350
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
351
|
+
if (message.authority !== "") {
|
|
352
|
+
writer.uint32(10).string(message.authority);
|
|
353
|
+
}
|
|
354
|
+
if (message.peerId !== "") {
|
|
355
|
+
writer.uint32(18).string(message.peerId);
|
|
356
|
+
}
|
|
357
|
+
if (message.reason !== "") {
|
|
358
|
+
writer.uint32(26).string(message.reason);
|
|
359
|
+
}
|
|
360
|
+
return writer;
|
|
361
|
+
},
|
|
362
|
+
decode(input, length) {
|
|
363
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
364
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
365
|
+
const message = createBaseMsgRemovePeer();
|
|
366
|
+
while (reader.pos < end) {
|
|
367
|
+
const tag = reader.uint32();
|
|
368
|
+
switch (tag >>> 3) {
|
|
369
|
+
case 1:
|
|
370
|
+
message.authority = reader.string();
|
|
371
|
+
break;
|
|
372
|
+
case 2:
|
|
373
|
+
message.peerId = reader.string();
|
|
374
|
+
break;
|
|
375
|
+
case 3:
|
|
376
|
+
message.reason = reader.string();
|
|
377
|
+
break;
|
|
378
|
+
default:
|
|
379
|
+
reader.skipType(tag & 7);
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return message;
|
|
384
|
+
},
|
|
385
|
+
fromPartial(object) {
|
|
386
|
+
const message = createBaseMsgRemovePeer();
|
|
387
|
+
message.authority = object.authority ?? "";
|
|
388
|
+
message.peerId = object.peerId ?? "";
|
|
389
|
+
message.reason = object.reason ?? "";
|
|
390
|
+
return message;
|
|
391
|
+
},
|
|
392
|
+
fromAmino(object) {
|
|
393
|
+
const message = createBaseMsgRemovePeer();
|
|
394
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
395
|
+
message.authority = object.authority;
|
|
396
|
+
}
|
|
397
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
398
|
+
message.peerId = object.peer_id;
|
|
399
|
+
}
|
|
400
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
401
|
+
message.reason = object.reason;
|
|
402
|
+
}
|
|
403
|
+
return message;
|
|
404
|
+
},
|
|
405
|
+
toAmino(message) {
|
|
406
|
+
const obj = {};
|
|
407
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
408
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
409
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
410
|
+
return obj;
|
|
411
|
+
},
|
|
412
|
+
fromAminoMsg(object) {
|
|
413
|
+
return exports.MsgRemovePeer.fromAmino(object.value);
|
|
414
|
+
},
|
|
415
|
+
fromProtoMsg(message) {
|
|
416
|
+
return exports.MsgRemovePeer.decode(message.value);
|
|
417
|
+
},
|
|
418
|
+
toProto(message) {
|
|
419
|
+
return exports.MsgRemovePeer.encode(message).finish();
|
|
420
|
+
},
|
|
421
|
+
toProtoMsg(message) {
|
|
422
|
+
return {
|
|
423
|
+
typeUrl: "/sparkdream.federation.v1.MsgRemovePeer",
|
|
424
|
+
value: exports.MsgRemovePeer.encode(message).finish()
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
function createBaseMsgRemovePeerResponse() {
|
|
429
|
+
return {};
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @name MsgRemovePeerResponse
|
|
433
|
+
* @package sparkdream.federation.v1
|
|
434
|
+
* @see proto type: sparkdream.federation.v1.MsgRemovePeerResponse
|
|
435
|
+
*/
|
|
436
|
+
exports.MsgRemovePeerResponse = {
|
|
437
|
+
typeUrl: "/sparkdream.federation.v1.MsgRemovePeerResponse",
|
|
438
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
439
|
+
return writer;
|
|
440
|
+
},
|
|
441
|
+
decode(input, length) {
|
|
442
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
443
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
444
|
+
const message = createBaseMsgRemovePeerResponse();
|
|
445
|
+
while (reader.pos < end) {
|
|
446
|
+
const tag = reader.uint32();
|
|
447
|
+
switch (tag >>> 3) {
|
|
448
|
+
default:
|
|
449
|
+
reader.skipType(tag & 7);
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return message;
|
|
454
|
+
},
|
|
455
|
+
fromPartial(_) {
|
|
456
|
+
const message = createBaseMsgRemovePeerResponse();
|
|
457
|
+
return message;
|
|
458
|
+
},
|
|
459
|
+
fromAmino(_) {
|
|
460
|
+
const message = createBaseMsgRemovePeerResponse();
|
|
461
|
+
return message;
|
|
462
|
+
},
|
|
463
|
+
toAmino(_) {
|
|
464
|
+
const obj = {};
|
|
465
|
+
return obj;
|
|
466
|
+
},
|
|
467
|
+
fromAminoMsg(object) {
|
|
468
|
+
return exports.MsgRemovePeerResponse.fromAmino(object.value);
|
|
469
|
+
},
|
|
470
|
+
fromProtoMsg(message) {
|
|
471
|
+
return exports.MsgRemovePeerResponse.decode(message.value);
|
|
472
|
+
},
|
|
473
|
+
toProto(message) {
|
|
474
|
+
return exports.MsgRemovePeerResponse.encode(message).finish();
|
|
475
|
+
},
|
|
476
|
+
toProtoMsg(message) {
|
|
477
|
+
return {
|
|
478
|
+
typeUrl: "/sparkdream.federation.v1.MsgRemovePeerResponse",
|
|
479
|
+
value: exports.MsgRemovePeerResponse.encode(message).finish()
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
function createBaseMsgSuspendPeer() {
|
|
484
|
+
return {
|
|
485
|
+
authority: "",
|
|
486
|
+
peerId: "",
|
|
487
|
+
reason: ""
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* @name MsgSuspendPeer
|
|
492
|
+
* @package sparkdream.federation.v1
|
|
493
|
+
* @see proto type: sparkdream.federation.v1.MsgSuspendPeer
|
|
494
|
+
*/
|
|
495
|
+
exports.MsgSuspendPeer = {
|
|
496
|
+
typeUrl: "/sparkdream.federation.v1.MsgSuspendPeer",
|
|
497
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
498
|
+
if (message.authority !== "") {
|
|
499
|
+
writer.uint32(10).string(message.authority);
|
|
500
|
+
}
|
|
501
|
+
if (message.peerId !== "") {
|
|
502
|
+
writer.uint32(18).string(message.peerId);
|
|
503
|
+
}
|
|
504
|
+
if (message.reason !== "") {
|
|
505
|
+
writer.uint32(26).string(message.reason);
|
|
506
|
+
}
|
|
507
|
+
return writer;
|
|
508
|
+
},
|
|
509
|
+
decode(input, length) {
|
|
510
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
511
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
512
|
+
const message = createBaseMsgSuspendPeer();
|
|
513
|
+
while (reader.pos < end) {
|
|
514
|
+
const tag = reader.uint32();
|
|
515
|
+
switch (tag >>> 3) {
|
|
516
|
+
case 1:
|
|
517
|
+
message.authority = reader.string();
|
|
518
|
+
break;
|
|
519
|
+
case 2:
|
|
520
|
+
message.peerId = reader.string();
|
|
521
|
+
break;
|
|
522
|
+
case 3:
|
|
523
|
+
message.reason = reader.string();
|
|
524
|
+
break;
|
|
525
|
+
default:
|
|
526
|
+
reader.skipType(tag & 7);
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return message;
|
|
531
|
+
},
|
|
532
|
+
fromPartial(object) {
|
|
533
|
+
const message = createBaseMsgSuspendPeer();
|
|
534
|
+
message.authority = object.authority ?? "";
|
|
535
|
+
message.peerId = object.peerId ?? "";
|
|
536
|
+
message.reason = object.reason ?? "";
|
|
537
|
+
return message;
|
|
538
|
+
},
|
|
539
|
+
fromAmino(object) {
|
|
540
|
+
const message = createBaseMsgSuspendPeer();
|
|
541
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
542
|
+
message.authority = object.authority;
|
|
543
|
+
}
|
|
544
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
545
|
+
message.peerId = object.peer_id;
|
|
546
|
+
}
|
|
547
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
548
|
+
message.reason = object.reason;
|
|
549
|
+
}
|
|
550
|
+
return message;
|
|
551
|
+
},
|
|
552
|
+
toAmino(message) {
|
|
553
|
+
const obj = {};
|
|
554
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
555
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
556
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
557
|
+
return obj;
|
|
558
|
+
},
|
|
559
|
+
fromAminoMsg(object) {
|
|
560
|
+
return exports.MsgSuspendPeer.fromAmino(object.value);
|
|
561
|
+
},
|
|
562
|
+
fromProtoMsg(message) {
|
|
563
|
+
return exports.MsgSuspendPeer.decode(message.value);
|
|
564
|
+
},
|
|
565
|
+
toProto(message) {
|
|
566
|
+
return exports.MsgSuspendPeer.encode(message).finish();
|
|
567
|
+
},
|
|
568
|
+
toProtoMsg(message) {
|
|
569
|
+
return {
|
|
570
|
+
typeUrl: "/sparkdream.federation.v1.MsgSuspendPeer",
|
|
571
|
+
value: exports.MsgSuspendPeer.encode(message).finish()
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
};
|
|
575
|
+
function createBaseMsgSuspendPeerResponse() {
|
|
576
|
+
return {};
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* @name MsgSuspendPeerResponse
|
|
580
|
+
* @package sparkdream.federation.v1
|
|
581
|
+
* @see proto type: sparkdream.federation.v1.MsgSuspendPeerResponse
|
|
582
|
+
*/
|
|
583
|
+
exports.MsgSuspendPeerResponse = {
|
|
584
|
+
typeUrl: "/sparkdream.federation.v1.MsgSuspendPeerResponse",
|
|
585
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
586
|
+
return writer;
|
|
587
|
+
},
|
|
588
|
+
decode(input, length) {
|
|
589
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
590
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
591
|
+
const message = createBaseMsgSuspendPeerResponse();
|
|
592
|
+
while (reader.pos < end) {
|
|
593
|
+
const tag = reader.uint32();
|
|
594
|
+
switch (tag >>> 3) {
|
|
595
|
+
default:
|
|
596
|
+
reader.skipType(tag & 7);
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
return message;
|
|
601
|
+
},
|
|
602
|
+
fromPartial(_) {
|
|
603
|
+
const message = createBaseMsgSuspendPeerResponse();
|
|
604
|
+
return message;
|
|
605
|
+
},
|
|
606
|
+
fromAmino(_) {
|
|
607
|
+
const message = createBaseMsgSuspendPeerResponse();
|
|
608
|
+
return message;
|
|
609
|
+
},
|
|
610
|
+
toAmino(_) {
|
|
611
|
+
const obj = {};
|
|
612
|
+
return obj;
|
|
613
|
+
},
|
|
614
|
+
fromAminoMsg(object) {
|
|
615
|
+
return exports.MsgSuspendPeerResponse.fromAmino(object.value);
|
|
616
|
+
},
|
|
617
|
+
fromProtoMsg(message) {
|
|
618
|
+
return exports.MsgSuspendPeerResponse.decode(message.value);
|
|
619
|
+
},
|
|
620
|
+
toProto(message) {
|
|
621
|
+
return exports.MsgSuspendPeerResponse.encode(message).finish();
|
|
622
|
+
},
|
|
623
|
+
toProtoMsg(message) {
|
|
624
|
+
return {
|
|
625
|
+
typeUrl: "/sparkdream.federation.v1.MsgSuspendPeerResponse",
|
|
626
|
+
value: exports.MsgSuspendPeerResponse.encode(message).finish()
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
function createBaseMsgResumePeer() {
|
|
631
|
+
return {
|
|
632
|
+
authority: "",
|
|
633
|
+
peerId: ""
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* @name MsgResumePeer
|
|
638
|
+
* @package sparkdream.federation.v1
|
|
639
|
+
* @see proto type: sparkdream.federation.v1.MsgResumePeer
|
|
640
|
+
*/
|
|
641
|
+
exports.MsgResumePeer = {
|
|
642
|
+
typeUrl: "/sparkdream.federation.v1.MsgResumePeer",
|
|
643
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
644
|
+
if (message.authority !== "") {
|
|
645
|
+
writer.uint32(10).string(message.authority);
|
|
646
|
+
}
|
|
647
|
+
if (message.peerId !== "") {
|
|
648
|
+
writer.uint32(18).string(message.peerId);
|
|
649
|
+
}
|
|
650
|
+
return writer;
|
|
651
|
+
},
|
|
652
|
+
decode(input, length) {
|
|
653
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
654
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
655
|
+
const message = createBaseMsgResumePeer();
|
|
656
|
+
while (reader.pos < end) {
|
|
657
|
+
const tag = reader.uint32();
|
|
658
|
+
switch (tag >>> 3) {
|
|
659
|
+
case 1:
|
|
660
|
+
message.authority = reader.string();
|
|
661
|
+
break;
|
|
662
|
+
case 2:
|
|
663
|
+
message.peerId = reader.string();
|
|
664
|
+
break;
|
|
665
|
+
default:
|
|
666
|
+
reader.skipType(tag & 7);
|
|
667
|
+
break;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
return message;
|
|
671
|
+
},
|
|
672
|
+
fromPartial(object) {
|
|
673
|
+
const message = createBaseMsgResumePeer();
|
|
674
|
+
message.authority = object.authority ?? "";
|
|
675
|
+
message.peerId = object.peerId ?? "";
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
fromAmino(object) {
|
|
679
|
+
const message = createBaseMsgResumePeer();
|
|
680
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
681
|
+
message.authority = object.authority;
|
|
682
|
+
}
|
|
683
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
684
|
+
message.peerId = object.peer_id;
|
|
685
|
+
}
|
|
686
|
+
return message;
|
|
687
|
+
},
|
|
688
|
+
toAmino(message) {
|
|
689
|
+
const obj = {};
|
|
690
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
691
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
692
|
+
return obj;
|
|
693
|
+
},
|
|
694
|
+
fromAminoMsg(object) {
|
|
695
|
+
return exports.MsgResumePeer.fromAmino(object.value);
|
|
696
|
+
},
|
|
697
|
+
fromProtoMsg(message) {
|
|
698
|
+
return exports.MsgResumePeer.decode(message.value);
|
|
699
|
+
},
|
|
700
|
+
toProto(message) {
|
|
701
|
+
return exports.MsgResumePeer.encode(message).finish();
|
|
702
|
+
},
|
|
703
|
+
toProtoMsg(message) {
|
|
704
|
+
return {
|
|
705
|
+
typeUrl: "/sparkdream.federation.v1.MsgResumePeer",
|
|
706
|
+
value: exports.MsgResumePeer.encode(message).finish()
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
function createBaseMsgResumePeerResponse() {
|
|
711
|
+
return {};
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* @name MsgResumePeerResponse
|
|
715
|
+
* @package sparkdream.federation.v1
|
|
716
|
+
* @see proto type: sparkdream.federation.v1.MsgResumePeerResponse
|
|
717
|
+
*/
|
|
718
|
+
exports.MsgResumePeerResponse = {
|
|
719
|
+
typeUrl: "/sparkdream.federation.v1.MsgResumePeerResponse",
|
|
720
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
721
|
+
return writer;
|
|
722
|
+
},
|
|
723
|
+
decode(input, length) {
|
|
724
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
725
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
726
|
+
const message = createBaseMsgResumePeerResponse();
|
|
727
|
+
while (reader.pos < end) {
|
|
728
|
+
const tag = reader.uint32();
|
|
729
|
+
switch (tag >>> 3) {
|
|
730
|
+
default:
|
|
731
|
+
reader.skipType(tag & 7);
|
|
732
|
+
break;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return message;
|
|
736
|
+
},
|
|
737
|
+
fromPartial(_) {
|
|
738
|
+
const message = createBaseMsgResumePeerResponse();
|
|
739
|
+
return message;
|
|
740
|
+
},
|
|
741
|
+
fromAmino(_) {
|
|
742
|
+
const message = createBaseMsgResumePeerResponse();
|
|
743
|
+
return message;
|
|
744
|
+
},
|
|
745
|
+
toAmino(_) {
|
|
746
|
+
const obj = {};
|
|
747
|
+
return obj;
|
|
748
|
+
},
|
|
749
|
+
fromAminoMsg(object) {
|
|
750
|
+
return exports.MsgResumePeerResponse.fromAmino(object.value);
|
|
751
|
+
},
|
|
752
|
+
fromProtoMsg(message) {
|
|
753
|
+
return exports.MsgResumePeerResponse.decode(message.value);
|
|
754
|
+
},
|
|
755
|
+
toProto(message) {
|
|
756
|
+
return exports.MsgResumePeerResponse.encode(message).finish();
|
|
757
|
+
},
|
|
758
|
+
toProtoMsg(message) {
|
|
759
|
+
return {
|
|
760
|
+
typeUrl: "/sparkdream.federation.v1.MsgResumePeerResponse",
|
|
761
|
+
value: exports.MsgResumePeerResponse.encode(message).finish()
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
function createBaseMsgUpdatePeerPolicy() {
|
|
766
|
+
return {
|
|
767
|
+
authority: "",
|
|
768
|
+
peerId: "",
|
|
769
|
+
policy: types_1.PeerPolicy.fromPartial({})
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* @name MsgUpdatePeerPolicy
|
|
774
|
+
* @package sparkdream.federation.v1
|
|
775
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerPolicy
|
|
776
|
+
*/
|
|
777
|
+
exports.MsgUpdatePeerPolicy = {
|
|
778
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerPolicy",
|
|
779
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
780
|
+
if (message.authority !== "") {
|
|
781
|
+
writer.uint32(10).string(message.authority);
|
|
782
|
+
}
|
|
783
|
+
if (message.peerId !== "") {
|
|
784
|
+
writer.uint32(18).string(message.peerId);
|
|
785
|
+
}
|
|
786
|
+
if (message.policy !== undefined) {
|
|
787
|
+
types_1.PeerPolicy.encode(message.policy, writer.uint32(26).fork()).ldelim();
|
|
788
|
+
}
|
|
789
|
+
return writer;
|
|
790
|
+
},
|
|
791
|
+
decode(input, length) {
|
|
792
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
793
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
794
|
+
const message = createBaseMsgUpdatePeerPolicy();
|
|
795
|
+
while (reader.pos < end) {
|
|
796
|
+
const tag = reader.uint32();
|
|
797
|
+
switch (tag >>> 3) {
|
|
798
|
+
case 1:
|
|
799
|
+
message.authority = reader.string();
|
|
800
|
+
break;
|
|
801
|
+
case 2:
|
|
802
|
+
message.peerId = reader.string();
|
|
803
|
+
break;
|
|
804
|
+
case 3:
|
|
805
|
+
message.policy = types_1.PeerPolicy.decode(reader, reader.uint32());
|
|
806
|
+
break;
|
|
807
|
+
default:
|
|
808
|
+
reader.skipType(tag & 7);
|
|
809
|
+
break;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return message;
|
|
813
|
+
},
|
|
814
|
+
fromPartial(object) {
|
|
815
|
+
const message = createBaseMsgUpdatePeerPolicy();
|
|
816
|
+
message.authority = object.authority ?? "";
|
|
817
|
+
message.peerId = object.peerId ?? "";
|
|
818
|
+
message.policy = object.policy !== undefined && object.policy !== null ? types_1.PeerPolicy.fromPartial(object.policy) : undefined;
|
|
819
|
+
return message;
|
|
820
|
+
},
|
|
821
|
+
fromAmino(object) {
|
|
822
|
+
const message = createBaseMsgUpdatePeerPolicy();
|
|
823
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
824
|
+
message.authority = object.authority;
|
|
825
|
+
}
|
|
826
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
827
|
+
message.peerId = object.peer_id;
|
|
828
|
+
}
|
|
829
|
+
if (object.policy !== undefined && object.policy !== null) {
|
|
830
|
+
message.policy = types_1.PeerPolicy.fromAmino(object.policy);
|
|
831
|
+
}
|
|
832
|
+
return message;
|
|
833
|
+
},
|
|
834
|
+
toAmino(message) {
|
|
835
|
+
const obj = {};
|
|
836
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
837
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
838
|
+
obj.policy = message.policy ? types_1.PeerPolicy.toAmino(message.policy) : undefined;
|
|
839
|
+
return obj;
|
|
840
|
+
},
|
|
841
|
+
fromAminoMsg(object) {
|
|
842
|
+
return exports.MsgUpdatePeerPolicy.fromAmino(object.value);
|
|
843
|
+
},
|
|
844
|
+
fromProtoMsg(message) {
|
|
845
|
+
return exports.MsgUpdatePeerPolicy.decode(message.value);
|
|
846
|
+
},
|
|
847
|
+
toProto(message) {
|
|
848
|
+
return exports.MsgUpdatePeerPolicy.encode(message).finish();
|
|
849
|
+
},
|
|
850
|
+
toProtoMsg(message) {
|
|
851
|
+
return {
|
|
852
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerPolicy",
|
|
853
|
+
value: exports.MsgUpdatePeerPolicy.encode(message).finish()
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
function createBaseMsgUpdatePeerPolicyResponse() {
|
|
858
|
+
return {};
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* @name MsgUpdatePeerPolicyResponse
|
|
862
|
+
* @package sparkdream.federation.v1
|
|
863
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdatePeerPolicyResponse
|
|
864
|
+
*/
|
|
865
|
+
exports.MsgUpdatePeerPolicyResponse = {
|
|
866
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerPolicyResponse",
|
|
867
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
868
|
+
return writer;
|
|
869
|
+
},
|
|
870
|
+
decode(input, length) {
|
|
871
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
872
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
873
|
+
const message = createBaseMsgUpdatePeerPolicyResponse();
|
|
874
|
+
while (reader.pos < end) {
|
|
875
|
+
const tag = reader.uint32();
|
|
876
|
+
switch (tag >>> 3) {
|
|
877
|
+
default:
|
|
878
|
+
reader.skipType(tag & 7);
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
return message;
|
|
883
|
+
},
|
|
884
|
+
fromPartial(_) {
|
|
885
|
+
const message = createBaseMsgUpdatePeerPolicyResponse();
|
|
886
|
+
return message;
|
|
887
|
+
},
|
|
888
|
+
fromAmino(_) {
|
|
889
|
+
const message = createBaseMsgUpdatePeerPolicyResponse();
|
|
890
|
+
return message;
|
|
891
|
+
},
|
|
892
|
+
toAmino(_) {
|
|
893
|
+
const obj = {};
|
|
894
|
+
return obj;
|
|
895
|
+
},
|
|
896
|
+
fromAminoMsg(object) {
|
|
897
|
+
return exports.MsgUpdatePeerPolicyResponse.fromAmino(object.value);
|
|
898
|
+
},
|
|
899
|
+
fromProtoMsg(message) {
|
|
900
|
+
return exports.MsgUpdatePeerPolicyResponse.decode(message.value);
|
|
901
|
+
},
|
|
902
|
+
toProto(message) {
|
|
903
|
+
return exports.MsgUpdatePeerPolicyResponse.encode(message).finish();
|
|
904
|
+
},
|
|
905
|
+
toProtoMsg(message) {
|
|
906
|
+
return {
|
|
907
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdatePeerPolicyResponse",
|
|
908
|
+
value: exports.MsgUpdatePeerPolicyResponse.encode(message).finish()
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
function createBaseMsgRegisterBridge() {
|
|
913
|
+
return {
|
|
914
|
+
authority: "",
|
|
915
|
+
operator: "",
|
|
916
|
+
peerId: "",
|
|
917
|
+
protocol: "",
|
|
918
|
+
endpoint: ""
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* @name MsgRegisterBridge
|
|
923
|
+
* @package sparkdream.federation.v1
|
|
924
|
+
* @see proto type: sparkdream.federation.v1.MsgRegisterBridge
|
|
925
|
+
*/
|
|
926
|
+
exports.MsgRegisterBridge = {
|
|
927
|
+
typeUrl: "/sparkdream.federation.v1.MsgRegisterBridge",
|
|
928
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
929
|
+
if (message.authority !== "") {
|
|
930
|
+
writer.uint32(10).string(message.authority);
|
|
931
|
+
}
|
|
932
|
+
if (message.operator !== "") {
|
|
933
|
+
writer.uint32(18).string(message.operator);
|
|
934
|
+
}
|
|
935
|
+
if (message.peerId !== "") {
|
|
936
|
+
writer.uint32(26).string(message.peerId);
|
|
937
|
+
}
|
|
938
|
+
if (message.protocol !== "") {
|
|
939
|
+
writer.uint32(34).string(message.protocol);
|
|
940
|
+
}
|
|
941
|
+
if (message.endpoint !== "") {
|
|
942
|
+
writer.uint32(42).string(message.endpoint);
|
|
943
|
+
}
|
|
944
|
+
return writer;
|
|
945
|
+
},
|
|
946
|
+
decode(input, length) {
|
|
947
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
948
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
949
|
+
const message = createBaseMsgRegisterBridge();
|
|
950
|
+
while (reader.pos < end) {
|
|
951
|
+
const tag = reader.uint32();
|
|
952
|
+
switch (tag >>> 3) {
|
|
953
|
+
case 1:
|
|
954
|
+
message.authority = reader.string();
|
|
955
|
+
break;
|
|
956
|
+
case 2:
|
|
957
|
+
message.operator = reader.string();
|
|
958
|
+
break;
|
|
959
|
+
case 3:
|
|
960
|
+
message.peerId = reader.string();
|
|
961
|
+
break;
|
|
962
|
+
case 4:
|
|
963
|
+
message.protocol = reader.string();
|
|
964
|
+
break;
|
|
965
|
+
case 5:
|
|
966
|
+
message.endpoint = reader.string();
|
|
967
|
+
break;
|
|
968
|
+
default:
|
|
969
|
+
reader.skipType(tag & 7);
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
return message;
|
|
974
|
+
},
|
|
975
|
+
fromPartial(object) {
|
|
976
|
+
const message = createBaseMsgRegisterBridge();
|
|
977
|
+
message.authority = object.authority ?? "";
|
|
978
|
+
message.operator = object.operator ?? "";
|
|
979
|
+
message.peerId = object.peerId ?? "";
|
|
980
|
+
message.protocol = object.protocol ?? "";
|
|
981
|
+
message.endpoint = object.endpoint ?? "";
|
|
982
|
+
return message;
|
|
983
|
+
},
|
|
984
|
+
fromAmino(object) {
|
|
985
|
+
const message = createBaseMsgRegisterBridge();
|
|
986
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
987
|
+
message.authority = object.authority;
|
|
988
|
+
}
|
|
989
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
990
|
+
message.operator = object.operator;
|
|
991
|
+
}
|
|
992
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
993
|
+
message.peerId = object.peer_id;
|
|
994
|
+
}
|
|
995
|
+
if (object.protocol !== undefined && object.protocol !== null) {
|
|
996
|
+
message.protocol = object.protocol;
|
|
997
|
+
}
|
|
998
|
+
if (object.endpoint !== undefined && object.endpoint !== null) {
|
|
999
|
+
message.endpoint = object.endpoint;
|
|
1000
|
+
}
|
|
1001
|
+
return message;
|
|
1002
|
+
},
|
|
1003
|
+
toAmino(message) {
|
|
1004
|
+
const obj = {};
|
|
1005
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1006
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1007
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1008
|
+
obj.protocol = message.protocol === "" ? undefined : message.protocol;
|
|
1009
|
+
obj.endpoint = message.endpoint === "" ? undefined : message.endpoint;
|
|
1010
|
+
return obj;
|
|
1011
|
+
},
|
|
1012
|
+
fromAminoMsg(object) {
|
|
1013
|
+
return exports.MsgRegisterBridge.fromAmino(object.value);
|
|
1014
|
+
},
|
|
1015
|
+
fromProtoMsg(message) {
|
|
1016
|
+
return exports.MsgRegisterBridge.decode(message.value);
|
|
1017
|
+
},
|
|
1018
|
+
toProto(message) {
|
|
1019
|
+
return exports.MsgRegisterBridge.encode(message).finish();
|
|
1020
|
+
},
|
|
1021
|
+
toProtoMsg(message) {
|
|
1022
|
+
return {
|
|
1023
|
+
typeUrl: "/sparkdream.federation.v1.MsgRegisterBridge",
|
|
1024
|
+
value: exports.MsgRegisterBridge.encode(message).finish()
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
function createBaseMsgRegisterBridgeResponse() {
|
|
1029
|
+
return {};
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* @name MsgRegisterBridgeResponse
|
|
1033
|
+
* @package sparkdream.federation.v1
|
|
1034
|
+
* @see proto type: sparkdream.federation.v1.MsgRegisterBridgeResponse
|
|
1035
|
+
*/
|
|
1036
|
+
exports.MsgRegisterBridgeResponse = {
|
|
1037
|
+
typeUrl: "/sparkdream.federation.v1.MsgRegisterBridgeResponse",
|
|
1038
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1039
|
+
return writer;
|
|
1040
|
+
},
|
|
1041
|
+
decode(input, length) {
|
|
1042
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1043
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1044
|
+
const message = createBaseMsgRegisterBridgeResponse();
|
|
1045
|
+
while (reader.pos < end) {
|
|
1046
|
+
const tag = reader.uint32();
|
|
1047
|
+
switch (tag >>> 3) {
|
|
1048
|
+
default:
|
|
1049
|
+
reader.skipType(tag & 7);
|
|
1050
|
+
break;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
return message;
|
|
1054
|
+
},
|
|
1055
|
+
fromPartial(_) {
|
|
1056
|
+
const message = createBaseMsgRegisterBridgeResponse();
|
|
1057
|
+
return message;
|
|
1058
|
+
},
|
|
1059
|
+
fromAmino(_) {
|
|
1060
|
+
const message = createBaseMsgRegisterBridgeResponse();
|
|
1061
|
+
return message;
|
|
1062
|
+
},
|
|
1063
|
+
toAmino(_) {
|
|
1064
|
+
const obj = {};
|
|
1065
|
+
return obj;
|
|
1066
|
+
},
|
|
1067
|
+
fromAminoMsg(object) {
|
|
1068
|
+
return exports.MsgRegisterBridgeResponse.fromAmino(object.value);
|
|
1069
|
+
},
|
|
1070
|
+
fromProtoMsg(message) {
|
|
1071
|
+
return exports.MsgRegisterBridgeResponse.decode(message.value);
|
|
1072
|
+
},
|
|
1073
|
+
toProto(message) {
|
|
1074
|
+
return exports.MsgRegisterBridgeResponse.encode(message).finish();
|
|
1075
|
+
},
|
|
1076
|
+
toProtoMsg(message) {
|
|
1077
|
+
return {
|
|
1078
|
+
typeUrl: "/sparkdream.federation.v1.MsgRegisterBridgeResponse",
|
|
1079
|
+
value: exports.MsgRegisterBridgeResponse.encode(message).finish()
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
function createBaseMsgRevokeBridge() {
|
|
1084
|
+
return {
|
|
1085
|
+
authority: "",
|
|
1086
|
+
operator: "",
|
|
1087
|
+
peerId: "",
|
|
1088
|
+
reason: ""
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* @name MsgRevokeBridge
|
|
1093
|
+
* @package sparkdream.federation.v1
|
|
1094
|
+
* @see proto type: sparkdream.federation.v1.MsgRevokeBridge
|
|
1095
|
+
*/
|
|
1096
|
+
exports.MsgRevokeBridge = {
|
|
1097
|
+
typeUrl: "/sparkdream.federation.v1.MsgRevokeBridge",
|
|
1098
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1099
|
+
if (message.authority !== "") {
|
|
1100
|
+
writer.uint32(10).string(message.authority);
|
|
1101
|
+
}
|
|
1102
|
+
if (message.operator !== "") {
|
|
1103
|
+
writer.uint32(18).string(message.operator);
|
|
1104
|
+
}
|
|
1105
|
+
if (message.peerId !== "") {
|
|
1106
|
+
writer.uint32(26).string(message.peerId);
|
|
1107
|
+
}
|
|
1108
|
+
if (message.reason !== "") {
|
|
1109
|
+
writer.uint32(34).string(message.reason);
|
|
1110
|
+
}
|
|
1111
|
+
return writer;
|
|
1112
|
+
},
|
|
1113
|
+
decode(input, length) {
|
|
1114
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1115
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1116
|
+
const message = createBaseMsgRevokeBridge();
|
|
1117
|
+
while (reader.pos < end) {
|
|
1118
|
+
const tag = reader.uint32();
|
|
1119
|
+
switch (tag >>> 3) {
|
|
1120
|
+
case 1:
|
|
1121
|
+
message.authority = reader.string();
|
|
1122
|
+
break;
|
|
1123
|
+
case 2:
|
|
1124
|
+
message.operator = reader.string();
|
|
1125
|
+
break;
|
|
1126
|
+
case 3:
|
|
1127
|
+
message.peerId = reader.string();
|
|
1128
|
+
break;
|
|
1129
|
+
case 4:
|
|
1130
|
+
message.reason = reader.string();
|
|
1131
|
+
break;
|
|
1132
|
+
default:
|
|
1133
|
+
reader.skipType(tag & 7);
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
return message;
|
|
1138
|
+
},
|
|
1139
|
+
fromPartial(object) {
|
|
1140
|
+
const message = createBaseMsgRevokeBridge();
|
|
1141
|
+
message.authority = object.authority ?? "";
|
|
1142
|
+
message.operator = object.operator ?? "";
|
|
1143
|
+
message.peerId = object.peerId ?? "";
|
|
1144
|
+
message.reason = object.reason ?? "";
|
|
1145
|
+
return message;
|
|
1146
|
+
},
|
|
1147
|
+
fromAmino(object) {
|
|
1148
|
+
const message = createBaseMsgRevokeBridge();
|
|
1149
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1150
|
+
message.authority = object.authority;
|
|
1151
|
+
}
|
|
1152
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
1153
|
+
message.operator = object.operator;
|
|
1154
|
+
}
|
|
1155
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1156
|
+
message.peerId = object.peer_id;
|
|
1157
|
+
}
|
|
1158
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
1159
|
+
message.reason = object.reason;
|
|
1160
|
+
}
|
|
1161
|
+
return message;
|
|
1162
|
+
},
|
|
1163
|
+
toAmino(message) {
|
|
1164
|
+
const obj = {};
|
|
1165
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1166
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1167
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1168
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
1169
|
+
return obj;
|
|
1170
|
+
},
|
|
1171
|
+
fromAminoMsg(object) {
|
|
1172
|
+
return exports.MsgRevokeBridge.fromAmino(object.value);
|
|
1173
|
+
},
|
|
1174
|
+
fromProtoMsg(message) {
|
|
1175
|
+
return exports.MsgRevokeBridge.decode(message.value);
|
|
1176
|
+
},
|
|
1177
|
+
toProto(message) {
|
|
1178
|
+
return exports.MsgRevokeBridge.encode(message).finish();
|
|
1179
|
+
},
|
|
1180
|
+
toProtoMsg(message) {
|
|
1181
|
+
return {
|
|
1182
|
+
typeUrl: "/sparkdream.federation.v1.MsgRevokeBridge",
|
|
1183
|
+
value: exports.MsgRevokeBridge.encode(message).finish()
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
};
|
|
1187
|
+
function createBaseMsgRevokeBridgeResponse() {
|
|
1188
|
+
return {};
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* @name MsgRevokeBridgeResponse
|
|
1192
|
+
* @package sparkdream.federation.v1
|
|
1193
|
+
* @see proto type: sparkdream.federation.v1.MsgRevokeBridgeResponse
|
|
1194
|
+
*/
|
|
1195
|
+
exports.MsgRevokeBridgeResponse = {
|
|
1196
|
+
typeUrl: "/sparkdream.federation.v1.MsgRevokeBridgeResponse",
|
|
1197
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1198
|
+
return writer;
|
|
1199
|
+
},
|
|
1200
|
+
decode(input, length) {
|
|
1201
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1203
|
+
const message = createBaseMsgRevokeBridgeResponse();
|
|
1204
|
+
while (reader.pos < end) {
|
|
1205
|
+
const tag = reader.uint32();
|
|
1206
|
+
switch (tag >>> 3) {
|
|
1207
|
+
default:
|
|
1208
|
+
reader.skipType(tag & 7);
|
|
1209
|
+
break;
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
return message;
|
|
1213
|
+
},
|
|
1214
|
+
fromPartial(_) {
|
|
1215
|
+
const message = createBaseMsgRevokeBridgeResponse();
|
|
1216
|
+
return message;
|
|
1217
|
+
},
|
|
1218
|
+
fromAmino(_) {
|
|
1219
|
+
const message = createBaseMsgRevokeBridgeResponse();
|
|
1220
|
+
return message;
|
|
1221
|
+
},
|
|
1222
|
+
toAmino(_) {
|
|
1223
|
+
const obj = {};
|
|
1224
|
+
return obj;
|
|
1225
|
+
},
|
|
1226
|
+
fromAminoMsg(object) {
|
|
1227
|
+
return exports.MsgRevokeBridgeResponse.fromAmino(object.value);
|
|
1228
|
+
},
|
|
1229
|
+
fromProtoMsg(message) {
|
|
1230
|
+
return exports.MsgRevokeBridgeResponse.decode(message.value);
|
|
1231
|
+
},
|
|
1232
|
+
toProto(message) {
|
|
1233
|
+
return exports.MsgRevokeBridgeResponse.encode(message).finish();
|
|
1234
|
+
},
|
|
1235
|
+
toProtoMsg(message) {
|
|
1236
|
+
return {
|
|
1237
|
+
typeUrl: "/sparkdream.federation.v1.MsgRevokeBridgeResponse",
|
|
1238
|
+
value: exports.MsgRevokeBridgeResponse.encode(message).finish()
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
function createBaseMsgSlashBridge() {
|
|
1243
|
+
return {
|
|
1244
|
+
authority: "",
|
|
1245
|
+
operator: "",
|
|
1246
|
+
peerId: "",
|
|
1247
|
+
amount: "",
|
|
1248
|
+
reason: ""
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* @name MsgSlashBridge
|
|
1253
|
+
* @package sparkdream.federation.v1
|
|
1254
|
+
* @see proto type: sparkdream.federation.v1.MsgSlashBridge
|
|
1255
|
+
*/
|
|
1256
|
+
exports.MsgSlashBridge = {
|
|
1257
|
+
typeUrl: "/sparkdream.federation.v1.MsgSlashBridge",
|
|
1258
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1259
|
+
if (message.authority !== "") {
|
|
1260
|
+
writer.uint32(10).string(message.authority);
|
|
1261
|
+
}
|
|
1262
|
+
if (message.operator !== "") {
|
|
1263
|
+
writer.uint32(18).string(message.operator);
|
|
1264
|
+
}
|
|
1265
|
+
if (message.peerId !== "") {
|
|
1266
|
+
writer.uint32(26).string(message.peerId);
|
|
1267
|
+
}
|
|
1268
|
+
if (message.amount !== "") {
|
|
1269
|
+
writer.uint32(34).string(message.amount);
|
|
1270
|
+
}
|
|
1271
|
+
if (message.reason !== "") {
|
|
1272
|
+
writer.uint32(42).string(message.reason);
|
|
1273
|
+
}
|
|
1274
|
+
return writer;
|
|
1275
|
+
},
|
|
1276
|
+
decode(input, length) {
|
|
1277
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1278
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1279
|
+
const message = createBaseMsgSlashBridge();
|
|
1280
|
+
while (reader.pos < end) {
|
|
1281
|
+
const tag = reader.uint32();
|
|
1282
|
+
switch (tag >>> 3) {
|
|
1283
|
+
case 1:
|
|
1284
|
+
message.authority = reader.string();
|
|
1285
|
+
break;
|
|
1286
|
+
case 2:
|
|
1287
|
+
message.operator = reader.string();
|
|
1288
|
+
break;
|
|
1289
|
+
case 3:
|
|
1290
|
+
message.peerId = reader.string();
|
|
1291
|
+
break;
|
|
1292
|
+
case 4:
|
|
1293
|
+
message.amount = reader.string();
|
|
1294
|
+
break;
|
|
1295
|
+
case 5:
|
|
1296
|
+
message.reason = reader.string();
|
|
1297
|
+
break;
|
|
1298
|
+
default:
|
|
1299
|
+
reader.skipType(tag & 7);
|
|
1300
|
+
break;
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
return message;
|
|
1304
|
+
},
|
|
1305
|
+
fromPartial(object) {
|
|
1306
|
+
const message = createBaseMsgSlashBridge();
|
|
1307
|
+
message.authority = object.authority ?? "";
|
|
1308
|
+
message.operator = object.operator ?? "";
|
|
1309
|
+
message.peerId = object.peerId ?? "";
|
|
1310
|
+
message.amount = object.amount ?? "";
|
|
1311
|
+
message.reason = object.reason ?? "";
|
|
1312
|
+
return message;
|
|
1313
|
+
},
|
|
1314
|
+
fromAmino(object) {
|
|
1315
|
+
const message = createBaseMsgSlashBridge();
|
|
1316
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1317
|
+
message.authority = object.authority;
|
|
1318
|
+
}
|
|
1319
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
1320
|
+
message.operator = object.operator;
|
|
1321
|
+
}
|
|
1322
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1323
|
+
message.peerId = object.peer_id;
|
|
1324
|
+
}
|
|
1325
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1326
|
+
message.amount = object.amount;
|
|
1327
|
+
}
|
|
1328
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
1329
|
+
message.reason = object.reason;
|
|
1330
|
+
}
|
|
1331
|
+
return message;
|
|
1332
|
+
},
|
|
1333
|
+
toAmino(message) {
|
|
1334
|
+
const obj = {};
|
|
1335
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1336
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1337
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1338
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
1339
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
1340
|
+
return obj;
|
|
1341
|
+
},
|
|
1342
|
+
fromAminoMsg(object) {
|
|
1343
|
+
return exports.MsgSlashBridge.fromAmino(object.value);
|
|
1344
|
+
},
|
|
1345
|
+
fromProtoMsg(message) {
|
|
1346
|
+
return exports.MsgSlashBridge.decode(message.value);
|
|
1347
|
+
},
|
|
1348
|
+
toProto(message) {
|
|
1349
|
+
return exports.MsgSlashBridge.encode(message).finish();
|
|
1350
|
+
},
|
|
1351
|
+
toProtoMsg(message) {
|
|
1352
|
+
return {
|
|
1353
|
+
typeUrl: "/sparkdream.federation.v1.MsgSlashBridge",
|
|
1354
|
+
value: exports.MsgSlashBridge.encode(message).finish()
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
};
|
|
1358
|
+
function createBaseMsgSlashBridgeResponse() {
|
|
1359
|
+
return {};
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* @name MsgSlashBridgeResponse
|
|
1363
|
+
* @package sparkdream.federation.v1
|
|
1364
|
+
* @see proto type: sparkdream.federation.v1.MsgSlashBridgeResponse
|
|
1365
|
+
*/
|
|
1366
|
+
exports.MsgSlashBridgeResponse = {
|
|
1367
|
+
typeUrl: "/sparkdream.federation.v1.MsgSlashBridgeResponse",
|
|
1368
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1369
|
+
return writer;
|
|
1370
|
+
},
|
|
1371
|
+
decode(input, length) {
|
|
1372
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1373
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1374
|
+
const message = createBaseMsgSlashBridgeResponse();
|
|
1375
|
+
while (reader.pos < end) {
|
|
1376
|
+
const tag = reader.uint32();
|
|
1377
|
+
switch (tag >>> 3) {
|
|
1378
|
+
default:
|
|
1379
|
+
reader.skipType(tag & 7);
|
|
1380
|
+
break;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
return message;
|
|
1384
|
+
},
|
|
1385
|
+
fromPartial(_) {
|
|
1386
|
+
const message = createBaseMsgSlashBridgeResponse();
|
|
1387
|
+
return message;
|
|
1388
|
+
},
|
|
1389
|
+
fromAmino(_) {
|
|
1390
|
+
const message = createBaseMsgSlashBridgeResponse();
|
|
1391
|
+
return message;
|
|
1392
|
+
},
|
|
1393
|
+
toAmino(_) {
|
|
1394
|
+
const obj = {};
|
|
1395
|
+
return obj;
|
|
1396
|
+
},
|
|
1397
|
+
fromAminoMsg(object) {
|
|
1398
|
+
return exports.MsgSlashBridgeResponse.fromAmino(object.value);
|
|
1399
|
+
},
|
|
1400
|
+
fromProtoMsg(message) {
|
|
1401
|
+
return exports.MsgSlashBridgeResponse.decode(message.value);
|
|
1402
|
+
},
|
|
1403
|
+
toProto(message) {
|
|
1404
|
+
return exports.MsgSlashBridgeResponse.encode(message).finish();
|
|
1405
|
+
},
|
|
1406
|
+
toProtoMsg(message) {
|
|
1407
|
+
return {
|
|
1408
|
+
typeUrl: "/sparkdream.federation.v1.MsgSlashBridgeResponse",
|
|
1409
|
+
value: exports.MsgSlashBridgeResponse.encode(message).finish()
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
};
|
|
1413
|
+
function createBaseMsgUpdateBridge() {
|
|
1414
|
+
return {
|
|
1415
|
+
authority: "",
|
|
1416
|
+
operator: "",
|
|
1417
|
+
peerId: "",
|
|
1418
|
+
endpoint: ""
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* @name MsgUpdateBridge
|
|
1423
|
+
* @package sparkdream.federation.v1
|
|
1424
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateBridge
|
|
1425
|
+
*/
|
|
1426
|
+
exports.MsgUpdateBridge = {
|
|
1427
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateBridge",
|
|
1428
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1429
|
+
if (message.authority !== "") {
|
|
1430
|
+
writer.uint32(10).string(message.authority);
|
|
1431
|
+
}
|
|
1432
|
+
if (message.operator !== "") {
|
|
1433
|
+
writer.uint32(18).string(message.operator);
|
|
1434
|
+
}
|
|
1435
|
+
if (message.peerId !== "") {
|
|
1436
|
+
writer.uint32(26).string(message.peerId);
|
|
1437
|
+
}
|
|
1438
|
+
if (message.endpoint !== "") {
|
|
1439
|
+
writer.uint32(34).string(message.endpoint);
|
|
1440
|
+
}
|
|
1441
|
+
return writer;
|
|
1442
|
+
},
|
|
1443
|
+
decode(input, length) {
|
|
1444
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1445
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1446
|
+
const message = createBaseMsgUpdateBridge();
|
|
1447
|
+
while (reader.pos < end) {
|
|
1448
|
+
const tag = reader.uint32();
|
|
1449
|
+
switch (tag >>> 3) {
|
|
1450
|
+
case 1:
|
|
1451
|
+
message.authority = reader.string();
|
|
1452
|
+
break;
|
|
1453
|
+
case 2:
|
|
1454
|
+
message.operator = reader.string();
|
|
1455
|
+
break;
|
|
1456
|
+
case 3:
|
|
1457
|
+
message.peerId = reader.string();
|
|
1458
|
+
break;
|
|
1459
|
+
case 4:
|
|
1460
|
+
message.endpoint = reader.string();
|
|
1461
|
+
break;
|
|
1462
|
+
default:
|
|
1463
|
+
reader.skipType(tag & 7);
|
|
1464
|
+
break;
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
return message;
|
|
1468
|
+
},
|
|
1469
|
+
fromPartial(object) {
|
|
1470
|
+
const message = createBaseMsgUpdateBridge();
|
|
1471
|
+
message.authority = object.authority ?? "";
|
|
1472
|
+
message.operator = object.operator ?? "";
|
|
1473
|
+
message.peerId = object.peerId ?? "";
|
|
1474
|
+
message.endpoint = object.endpoint ?? "";
|
|
1475
|
+
return message;
|
|
1476
|
+
},
|
|
1477
|
+
fromAmino(object) {
|
|
1478
|
+
const message = createBaseMsgUpdateBridge();
|
|
1479
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1480
|
+
message.authority = object.authority;
|
|
1481
|
+
}
|
|
1482
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
1483
|
+
message.operator = object.operator;
|
|
1484
|
+
}
|
|
1485
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1486
|
+
message.peerId = object.peer_id;
|
|
1487
|
+
}
|
|
1488
|
+
if (object.endpoint !== undefined && object.endpoint !== null) {
|
|
1489
|
+
message.endpoint = object.endpoint;
|
|
1490
|
+
}
|
|
1491
|
+
return message;
|
|
1492
|
+
},
|
|
1493
|
+
toAmino(message) {
|
|
1494
|
+
const obj = {};
|
|
1495
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1496
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1497
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1498
|
+
obj.endpoint = message.endpoint === "" ? undefined : message.endpoint;
|
|
1499
|
+
return obj;
|
|
1500
|
+
},
|
|
1501
|
+
fromAminoMsg(object) {
|
|
1502
|
+
return exports.MsgUpdateBridge.fromAmino(object.value);
|
|
1503
|
+
},
|
|
1504
|
+
fromProtoMsg(message) {
|
|
1505
|
+
return exports.MsgUpdateBridge.decode(message.value);
|
|
1506
|
+
},
|
|
1507
|
+
toProto(message) {
|
|
1508
|
+
return exports.MsgUpdateBridge.encode(message).finish();
|
|
1509
|
+
},
|
|
1510
|
+
toProtoMsg(message) {
|
|
1511
|
+
return {
|
|
1512
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateBridge",
|
|
1513
|
+
value: exports.MsgUpdateBridge.encode(message).finish()
|
|
1514
|
+
};
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
function createBaseMsgUpdateBridgeResponse() {
|
|
1518
|
+
return {};
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* @name MsgUpdateBridgeResponse
|
|
1522
|
+
* @package sparkdream.federation.v1
|
|
1523
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateBridgeResponse
|
|
1524
|
+
*/
|
|
1525
|
+
exports.MsgUpdateBridgeResponse = {
|
|
1526
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateBridgeResponse",
|
|
1527
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1528
|
+
return writer;
|
|
1529
|
+
},
|
|
1530
|
+
decode(input, length) {
|
|
1531
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1532
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1533
|
+
const message = createBaseMsgUpdateBridgeResponse();
|
|
1534
|
+
while (reader.pos < end) {
|
|
1535
|
+
const tag = reader.uint32();
|
|
1536
|
+
switch (tag >>> 3) {
|
|
1537
|
+
default:
|
|
1538
|
+
reader.skipType(tag & 7);
|
|
1539
|
+
break;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
return message;
|
|
1543
|
+
},
|
|
1544
|
+
fromPartial(_) {
|
|
1545
|
+
const message = createBaseMsgUpdateBridgeResponse();
|
|
1546
|
+
return message;
|
|
1547
|
+
},
|
|
1548
|
+
fromAmino(_) {
|
|
1549
|
+
const message = createBaseMsgUpdateBridgeResponse();
|
|
1550
|
+
return message;
|
|
1551
|
+
},
|
|
1552
|
+
toAmino(_) {
|
|
1553
|
+
const obj = {};
|
|
1554
|
+
return obj;
|
|
1555
|
+
},
|
|
1556
|
+
fromAminoMsg(object) {
|
|
1557
|
+
return exports.MsgUpdateBridgeResponse.fromAmino(object.value);
|
|
1558
|
+
},
|
|
1559
|
+
fromProtoMsg(message) {
|
|
1560
|
+
return exports.MsgUpdateBridgeResponse.decode(message.value);
|
|
1561
|
+
},
|
|
1562
|
+
toProto(message) {
|
|
1563
|
+
return exports.MsgUpdateBridgeResponse.encode(message).finish();
|
|
1564
|
+
},
|
|
1565
|
+
toProtoMsg(message) {
|
|
1566
|
+
return {
|
|
1567
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateBridgeResponse",
|
|
1568
|
+
value: exports.MsgUpdateBridgeResponse.encode(message).finish()
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
};
|
|
1572
|
+
function createBaseMsgUnbondBridge() {
|
|
1573
|
+
return {
|
|
1574
|
+
operator: "",
|
|
1575
|
+
peerId: ""
|
|
1576
|
+
};
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* @name MsgUnbondBridge
|
|
1580
|
+
* @package sparkdream.federation.v1
|
|
1581
|
+
* @see proto type: sparkdream.federation.v1.MsgUnbondBridge
|
|
1582
|
+
*/
|
|
1583
|
+
exports.MsgUnbondBridge = {
|
|
1584
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnbondBridge",
|
|
1585
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1586
|
+
if (message.operator !== "") {
|
|
1587
|
+
writer.uint32(10).string(message.operator);
|
|
1588
|
+
}
|
|
1589
|
+
if (message.peerId !== "") {
|
|
1590
|
+
writer.uint32(18).string(message.peerId);
|
|
1591
|
+
}
|
|
1592
|
+
return writer;
|
|
1593
|
+
},
|
|
1594
|
+
decode(input, length) {
|
|
1595
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1596
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1597
|
+
const message = createBaseMsgUnbondBridge();
|
|
1598
|
+
while (reader.pos < end) {
|
|
1599
|
+
const tag = reader.uint32();
|
|
1600
|
+
switch (tag >>> 3) {
|
|
1601
|
+
case 1:
|
|
1602
|
+
message.operator = reader.string();
|
|
1603
|
+
break;
|
|
1604
|
+
case 2:
|
|
1605
|
+
message.peerId = reader.string();
|
|
1606
|
+
break;
|
|
1607
|
+
default:
|
|
1608
|
+
reader.skipType(tag & 7);
|
|
1609
|
+
break;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
return message;
|
|
1613
|
+
},
|
|
1614
|
+
fromPartial(object) {
|
|
1615
|
+
const message = createBaseMsgUnbondBridge();
|
|
1616
|
+
message.operator = object.operator ?? "";
|
|
1617
|
+
message.peerId = object.peerId ?? "";
|
|
1618
|
+
return message;
|
|
1619
|
+
},
|
|
1620
|
+
fromAmino(object) {
|
|
1621
|
+
const message = createBaseMsgUnbondBridge();
|
|
1622
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
1623
|
+
message.operator = object.operator;
|
|
1624
|
+
}
|
|
1625
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1626
|
+
message.peerId = object.peer_id;
|
|
1627
|
+
}
|
|
1628
|
+
return message;
|
|
1629
|
+
},
|
|
1630
|
+
toAmino(message) {
|
|
1631
|
+
const obj = {};
|
|
1632
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1633
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1634
|
+
return obj;
|
|
1635
|
+
},
|
|
1636
|
+
fromAminoMsg(object) {
|
|
1637
|
+
return exports.MsgUnbondBridge.fromAmino(object.value);
|
|
1638
|
+
},
|
|
1639
|
+
fromProtoMsg(message) {
|
|
1640
|
+
return exports.MsgUnbondBridge.decode(message.value);
|
|
1641
|
+
},
|
|
1642
|
+
toProto(message) {
|
|
1643
|
+
return exports.MsgUnbondBridge.encode(message).finish();
|
|
1644
|
+
},
|
|
1645
|
+
toProtoMsg(message) {
|
|
1646
|
+
return {
|
|
1647
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnbondBridge",
|
|
1648
|
+
value: exports.MsgUnbondBridge.encode(message).finish()
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
};
|
|
1652
|
+
function createBaseMsgUnbondBridgeResponse() {
|
|
1653
|
+
return {};
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* @name MsgUnbondBridgeResponse
|
|
1657
|
+
* @package sparkdream.federation.v1
|
|
1658
|
+
* @see proto type: sparkdream.federation.v1.MsgUnbondBridgeResponse
|
|
1659
|
+
*/
|
|
1660
|
+
exports.MsgUnbondBridgeResponse = {
|
|
1661
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnbondBridgeResponse",
|
|
1662
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1663
|
+
return writer;
|
|
1664
|
+
},
|
|
1665
|
+
decode(input, length) {
|
|
1666
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1667
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1668
|
+
const message = createBaseMsgUnbondBridgeResponse();
|
|
1669
|
+
while (reader.pos < end) {
|
|
1670
|
+
const tag = reader.uint32();
|
|
1671
|
+
switch (tag >>> 3) {
|
|
1672
|
+
default:
|
|
1673
|
+
reader.skipType(tag & 7);
|
|
1674
|
+
break;
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
return message;
|
|
1678
|
+
},
|
|
1679
|
+
fromPartial(_) {
|
|
1680
|
+
const message = createBaseMsgUnbondBridgeResponse();
|
|
1681
|
+
return message;
|
|
1682
|
+
},
|
|
1683
|
+
fromAmino(_) {
|
|
1684
|
+
const message = createBaseMsgUnbondBridgeResponse();
|
|
1685
|
+
return message;
|
|
1686
|
+
},
|
|
1687
|
+
toAmino(_) {
|
|
1688
|
+
const obj = {};
|
|
1689
|
+
return obj;
|
|
1690
|
+
},
|
|
1691
|
+
fromAminoMsg(object) {
|
|
1692
|
+
return exports.MsgUnbondBridgeResponse.fromAmino(object.value);
|
|
1693
|
+
},
|
|
1694
|
+
fromProtoMsg(message) {
|
|
1695
|
+
return exports.MsgUnbondBridgeResponse.decode(message.value);
|
|
1696
|
+
},
|
|
1697
|
+
toProto(message) {
|
|
1698
|
+
return exports.MsgUnbondBridgeResponse.encode(message).finish();
|
|
1699
|
+
},
|
|
1700
|
+
toProtoMsg(message) {
|
|
1701
|
+
return {
|
|
1702
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnbondBridgeResponse",
|
|
1703
|
+
value: exports.MsgUnbondBridgeResponse.encode(message).finish()
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1707
|
+
function createBaseMsgTopUpBridgeStake() {
|
|
1708
|
+
return {
|
|
1709
|
+
operator: "",
|
|
1710
|
+
peerId: "",
|
|
1711
|
+
amount: coin_1.Coin.fromPartial({})
|
|
1712
|
+
};
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* @name MsgTopUpBridgeStake
|
|
1716
|
+
* @package sparkdream.federation.v1
|
|
1717
|
+
* @see proto type: sparkdream.federation.v1.MsgTopUpBridgeStake
|
|
1718
|
+
*/
|
|
1719
|
+
exports.MsgTopUpBridgeStake = {
|
|
1720
|
+
typeUrl: "/sparkdream.federation.v1.MsgTopUpBridgeStake",
|
|
1721
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1722
|
+
if (message.operator !== "") {
|
|
1723
|
+
writer.uint32(10).string(message.operator);
|
|
1724
|
+
}
|
|
1725
|
+
if (message.peerId !== "") {
|
|
1726
|
+
writer.uint32(18).string(message.peerId);
|
|
1727
|
+
}
|
|
1728
|
+
if (message.amount !== undefined) {
|
|
1729
|
+
coin_1.Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
1730
|
+
}
|
|
1731
|
+
return writer;
|
|
1732
|
+
},
|
|
1733
|
+
decode(input, length) {
|
|
1734
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1735
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1736
|
+
const message = createBaseMsgTopUpBridgeStake();
|
|
1737
|
+
while (reader.pos < end) {
|
|
1738
|
+
const tag = reader.uint32();
|
|
1739
|
+
switch (tag >>> 3) {
|
|
1740
|
+
case 1:
|
|
1741
|
+
message.operator = reader.string();
|
|
1742
|
+
break;
|
|
1743
|
+
case 2:
|
|
1744
|
+
message.peerId = reader.string();
|
|
1745
|
+
break;
|
|
1746
|
+
case 3:
|
|
1747
|
+
message.amount = coin_1.Coin.decode(reader, reader.uint32());
|
|
1748
|
+
break;
|
|
1749
|
+
default:
|
|
1750
|
+
reader.skipType(tag & 7);
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
return message;
|
|
1755
|
+
},
|
|
1756
|
+
fromPartial(object) {
|
|
1757
|
+
const message = createBaseMsgTopUpBridgeStake();
|
|
1758
|
+
message.operator = object.operator ?? "";
|
|
1759
|
+
message.peerId = object.peerId ?? "";
|
|
1760
|
+
message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined;
|
|
1761
|
+
return message;
|
|
1762
|
+
},
|
|
1763
|
+
fromAmino(object) {
|
|
1764
|
+
const message = createBaseMsgTopUpBridgeStake();
|
|
1765
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
1766
|
+
message.operator = object.operator;
|
|
1767
|
+
}
|
|
1768
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1769
|
+
message.peerId = object.peer_id;
|
|
1770
|
+
}
|
|
1771
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1772
|
+
message.amount = coin_1.Coin.fromAmino(object.amount);
|
|
1773
|
+
}
|
|
1774
|
+
return message;
|
|
1775
|
+
},
|
|
1776
|
+
toAmino(message) {
|
|
1777
|
+
const obj = {};
|
|
1778
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
1779
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
1780
|
+
obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined;
|
|
1781
|
+
return obj;
|
|
1782
|
+
},
|
|
1783
|
+
fromAminoMsg(object) {
|
|
1784
|
+
return exports.MsgTopUpBridgeStake.fromAmino(object.value);
|
|
1785
|
+
},
|
|
1786
|
+
fromProtoMsg(message) {
|
|
1787
|
+
return exports.MsgTopUpBridgeStake.decode(message.value);
|
|
1788
|
+
},
|
|
1789
|
+
toProto(message) {
|
|
1790
|
+
return exports.MsgTopUpBridgeStake.encode(message).finish();
|
|
1791
|
+
},
|
|
1792
|
+
toProtoMsg(message) {
|
|
1793
|
+
return {
|
|
1794
|
+
typeUrl: "/sparkdream.federation.v1.MsgTopUpBridgeStake",
|
|
1795
|
+
value: exports.MsgTopUpBridgeStake.encode(message).finish()
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
function createBaseMsgTopUpBridgeStakeResponse() {
|
|
1800
|
+
return {};
|
|
1801
|
+
}
|
|
1802
|
+
/**
|
|
1803
|
+
* @name MsgTopUpBridgeStakeResponse
|
|
1804
|
+
* @package sparkdream.federation.v1
|
|
1805
|
+
* @see proto type: sparkdream.federation.v1.MsgTopUpBridgeStakeResponse
|
|
1806
|
+
*/
|
|
1807
|
+
exports.MsgTopUpBridgeStakeResponse = {
|
|
1808
|
+
typeUrl: "/sparkdream.federation.v1.MsgTopUpBridgeStakeResponse",
|
|
1809
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
1810
|
+
return writer;
|
|
1811
|
+
},
|
|
1812
|
+
decode(input, length) {
|
|
1813
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1814
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1815
|
+
const message = createBaseMsgTopUpBridgeStakeResponse();
|
|
1816
|
+
while (reader.pos < end) {
|
|
1817
|
+
const tag = reader.uint32();
|
|
1818
|
+
switch (tag >>> 3) {
|
|
1819
|
+
default:
|
|
1820
|
+
reader.skipType(tag & 7);
|
|
1821
|
+
break;
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
return message;
|
|
1825
|
+
},
|
|
1826
|
+
fromPartial(_) {
|
|
1827
|
+
const message = createBaseMsgTopUpBridgeStakeResponse();
|
|
1828
|
+
return message;
|
|
1829
|
+
},
|
|
1830
|
+
fromAmino(_) {
|
|
1831
|
+
const message = createBaseMsgTopUpBridgeStakeResponse();
|
|
1832
|
+
return message;
|
|
1833
|
+
},
|
|
1834
|
+
toAmino(_) {
|
|
1835
|
+
const obj = {};
|
|
1836
|
+
return obj;
|
|
1837
|
+
},
|
|
1838
|
+
fromAminoMsg(object) {
|
|
1839
|
+
return exports.MsgTopUpBridgeStakeResponse.fromAmino(object.value);
|
|
1840
|
+
},
|
|
1841
|
+
fromProtoMsg(message) {
|
|
1842
|
+
return exports.MsgTopUpBridgeStakeResponse.decode(message.value);
|
|
1843
|
+
},
|
|
1844
|
+
toProto(message) {
|
|
1845
|
+
return exports.MsgTopUpBridgeStakeResponse.encode(message).finish();
|
|
1846
|
+
},
|
|
1847
|
+
toProtoMsg(message) {
|
|
1848
|
+
return {
|
|
1849
|
+
typeUrl: "/sparkdream.federation.v1.MsgTopUpBridgeStakeResponse",
|
|
1850
|
+
value: exports.MsgTopUpBridgeStakeResponse.encode(message).finish()
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
};
|
|
1854
|
+
function createBaseMsgSubmitFederatedContent() {
|
|
1855
|
+
return {
|
|
1856
|
+
operator: "",
|
|
1857
|
+
peerId: "",
|
|
1858
|
+
remoteContentId: "",
|
|
1859
|
+
contentType: "",
|
|
1860
|
+
creatorIdentity: "",
|
|
1861
|
+
creatorName: "",
|
|
1862
|
+
title: "",
|
|
1863
|
+
body: "",
|
|
1864
|
+
contentUri: "",
|
|
1865
|
+
protocolMetadata: new Uint8Array(),
|
|
1866
|
+
remoteCreatedAt: BigInt(0),
|
|
1867
|
+
contentHash: new Uint8Array()
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* @name MsgSubmitFederatedContent
|
|
1872
|
+
* @package sparkdream.federation.v1
|
|
1873
|
+
* @see proto type: sparkdream.federation.v1.MsgSubmitFederatedContent
|
|
1874
|
+
*/
|
|
1875
|
+
exports.MsgSubmitFederatedContent = {
|
|
1876
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitFederatedContent",
|
|
1877
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1878
|
+
if (message.operator !== "") {
|
|
1879
|
+
writer.uint32(10).string(message.operator);
|
|
1880
|
+
}
|
|
1881
|
+
if (message.peerId !== "") {
|
|
1882
|
+
writer.uint32(18).string(message.peerId);
|
|
1883
|
+
}
|
|
1884
|
+
if (message.remoteContentId !== "") {
|
|
1885
|
+
writer.uint32(26).string(message.remoteContentId);
|
|
1886
|
+
}
|
|
1887
|
+
if (message.contentType !== "") {
|
|
1888
|
+
writer.uint32(34).string(message.contentType);
|
|
1889
|
+
}
|
|
1890
|
+
if (message.creatorIdentity !== "") {
|
|
1891
|
+
writer.uint32(42).string(message.creatorIdentity);
|
|
1892
|
+
}
|
|
1893
|
+
if (message.creatorName !== "") {
|
|
1894
|
+
writer.uint32(50).string(message.creatorName);
|
|
1895
|
+
}
|
|
1896
|
+
if (message.title !== "") {
|
|
1897
|
+
writer.uint32(58).string(message.title);
|
|
1898
|
+
}
|
|
1899
|
+
if (message.body !== "") {
|
|
1900
|
+
writer.uint32(66).string(message.body);
|
|
1901
|
+
}
|
|
1902
|
+
if (message.contentUri !== "") {
|
|
1903
|
+
writer.uint32(74).string(message.contentUri);
|
|
1904
|
+
}
|
|
1905
|
+
if (message.protocolMetadata.length !== 0) {
|
|
1906
|
+
writer.uint32(82).bytes(message.protocolMetadata);
|
|
1907
|
+
}
|
|
1908
|
+
if (message.remoteCreatedAt !== BigInt(0)) {
|
|
1909
|
+
writer.uint32(88).int64(message.remoteCreatedAt);
|
|
1910
|
+
}
|
|
1911
|
+
if (message.contentHash.length !== 0) {
|
|
1912
|
+
writer.uint32(98).bytes(message.contentHash);
|
|
1913
|
+
}
|
|
1914
|
+
return writer;
|
|
1915
|
+
},
|
|
1916
|
+
decode(input, length) {
|
|
1917
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1918
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1919
|
+
const message = createBaseMsgSubmitFederatedContent();
|
|
1920
|
+
while (reader.pos < end) {
|
|
1921
|
+
const tag = reader.uint32();
|
|
1922
|
+
switch (tag >>> 3) {
|
|
1923
|
+
case 1:
|
|
1924
|
+
message.operator = reader.string();
|
|
1925
|
+
break;
|
|
1926
|
+
case 2:
|
|
1927
|
+
message.peerId = reader.string();
|
|
1928
|
+
break;
|
|
1929
|
+
case 3:
|
|
1930
|
+
message.remoteContentId = reader.string();
|
|
1931
|
+
break;
|
|
1932
|
+
case 4:
|
|
1933
|
+
message.contentType = reader.string();
|
|
1934
|
+
break;
|
|
1935
|
+
case 5:
|
|
1936
|
+
message.creatorIdentity = reader.string();
|
|
1937
|
+
break;
|
|
1938
|
+
case 6:
|
|
1939
|
+
message.creatorName = reader.string();
|
|
1940
|
+
break;
|
|
1941
|
+
case 7:
|
|
1942
|
+
message.title = reader.string();
|
|
1943
|
+
break;
|
|
1944
|
+
case 8:
|
|
1945
|
+
message.body = reader.string();
|
|
1946
|
+
break;
|
|
1947
|
+
case 9:
|
|
1948
|
+
message.contentUri = reader.string();
|
|
1949
|
+
break;
|
|
1950
|
+
case 10:
|
|
1951
|
+
message.protocolMetadata = reader.bytes();
|
|
1952
|
+
break;
|
|
1953
|
+
case 11:
|
|
1954
|
+
message.remoteCreatedAt = reader.int64();
|
|
1955
|
+
break;
|
|
1956
|
+
case 12:
|
|
1957
|
+
message.contentHash = reader.bytes();
|
|
1958
|
+
break;
|
|
1959
|
+
default:
|
|
1960
|
+
reader.skipType(tag & 7);
|
|
1961
|
+
break;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
return message;
|
|
1965
|
+
},
|
|
1966
|
+
fromPartial(object) {
|
|
1967
|
+
const message = createBaseMsgSubmitFederatedContent();
|
|
1968
|
+
message.operator = object.operator ?? "";
|
|
1969
|
+
message.peerId = object.peerId ?? "";
|
|
1970
|
+
message.remoteContentId = object.remoteContentId ?? "";
|
|
1971
|
+
message.contentType = object.contentType ?? "";
|
|
1972
|
+
message.creatorIdentity = object.creatorIdentity ?? "";
|
|
1973
|
+
message.creatorName = object.creatorName ?? "";
|
|
1974
|
+
message.title = object.title ?? "";
|
|
1975
|
+
message.body = object.body ?? "";
|
|
1976
|
+
message.contentUri = object.contentUri ?? "";
|
|
1977
|
+
message.protocolMetadata = object.protocolMetadata ?? new Uint8Array();
|
|
1978
|
+
message.remoteCreatedAt = object.remoteCreatedAt !== undefined && object.remoteCreatedAt !== null ? BigInt(object.remoteCreatedAt.toString()) : BigInt(0);
|
|
1979
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
1980
|
+
return message;
|
|
1981
|
+
},
|
|
1982
|
+
fromAmino(object) {
|
|
1983
|
+
const message = createBaseMsgSubmitFederatedContent();
|
|
1984
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
1985
|
+
message.operator = object.operator;
|
|
1986
|
+
}
|
|
1987
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
1988
|
+
message.peerId = object.peer_id;
|
|
1989
|
+
}
|
|
1990
|
+
if (object.remote_content_id !== undefined && object.remote_content_id !== null) {
|
|
1991
|
+
message.remoteContentId = object.remote_content_id;
|
|
1992
|
+
}
|
|
1993
|
+
if (object.content_type !== undefined && object.content_type !== null) {
|
|
1994
|
+
message.contentType = object.content_type;
|
|
1995
|
+
}
|
|
1996
|
+
if (object.creator_identity !== undefined && object.creator_identity !== null) {
|
|
1997
|
+
message.creatorIdentity = object.creator_identity;
|
|
1998
|
+
}
|
|
1999
|
+
if (object.creator_name !== undefined && object.creator_name !== null) {
|
|
2000
|
+
message.creatorName = object.creator_name;
|
|
2001
|
+
}
|
|
2002
|
+
if (object.title !== undefined && object.title !== null) {
|
|
2003
|
+
message.title = object.title;
|
|
2004
|
+
}
|
|
2005
|
+
if (object.body !== undefined && object.body !== null) {
|
|
2006
|
+
message.body = object.body;
|
|
2007
|
+
}
|
|
2008
|
+
if (object.content_uri !== undefined && object.content_uri !== null) {
|
|
2009
|
+
message.contentUri = object.content_uri;
|
|
2010
|
+
}
|
|
2011
|
+
if (object.protocol_metadata !== undefined && object.protocol_metadata !== null) {
|
|
2012
|
+
message.protocolMetadata = (0, helpers_1.bytesFromBase64)(object.protocol_metadata);
|
|
2013
|
+
}
|
|
2014
|
+
if (object.remote_created_at !== undefined && object.remote_created_at !== null) {
|
|
2015
|
+
message.remoteCreatedAt = BigInt(object.remote_created_at);
|
|
2016
|
+
}
|
|
2017
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
2018
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
2019
|
+
}
|
|
2020
|
+
return message;
|
|
2021
|
+
},
|
|
2022
|
+
toAmino(message) {
|
|
2023
|
+
const obj = {};
|
|
2024
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
2025
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
2026
|
+
obj.remote_content_id = message.remoteContentId === "" ? undefined : message.remoteContentId;
|
|
2027
|
+
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
2028
|
+
obj.creator_identity = message.creatorIdentity === "" ? undefined : message.creatorIdentity;
|
|
2029
|
+
obj.creator_name = message.creatorName === "" ? undefined : message.creatorName;
|
|
2030
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
2031
|
+
obj.body = message.body === "" ? undefined : message.body;
|
|
2032
|
+
obj.content_uri = message.contentUri === "" ? undefined : message.contentUri;
|
|
2033
|
+
obj.protocol_metadata = message.protocolMetadata ? (0, helpers_1.base64FromBytes)(message.protocolMetadata) : undefined;
|
|
2034
|
+
obj.remote_created_at = message.remoteCreatedAt !== BigInt(0) ? message.remoteCreatedAt?.toString() : undefined;
|
|
2035
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
2036
|
+
return obj;
|
|
2037
|
+
},
|
|
2038
|
+
fromAminoMsg(object) {
|
|
2039
|
+
return exports.MsgSubmitFederatedContent.fromAmino(object.value);
|
|
2040
|
+
},
|
|
2041
|
+
fromProtoMsg(message) {
|
|
2042
|
+
return exports.MsgSubmitFederatedContent.decode(message.value);
|
|
2043
|
+
},
|
|
2044
|
+
toProto(message) {
|
|
2045
|
+
return exports.MsgSubmitFederatedContent.encode(message).finish();
|
|
2046
|
+
},
|
|
2047
|
+
toProtoMsg(message) {
|
|
2048
|
+
return {
|
|
2049
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitFederatedContent",
|
|
2050
|
+
value: exports.MsgSubmitFederatedContent.encode(message).finish()
|
|
2051
|
+
};
|
|
2052
|
+
}
|
|
2053
|
+
};
|
|
2054
|
+
function createBaseMsgSubmitFederatedContentResponse() {
|
|
2055
|
+
return {
|
|
2056
|
+
contentId: BigInt(0)
|
|
2057
|
+
};
|
|
2058
|
+
}
|
|
2059
|
+
/**
|
|
2060
|
+
* @name MsgSubmitFederatedContentResponse
|
|
2061
|
+
* @package sparkdream.federation.v1
|
|
2062
|
+
* @see proto type: sparkdream.federation.v1.MsgSubmitFederatedContentResponse
|
|
2063
|
+
*/
|
|
2064
|
+
exports.MsgSubmitFederatedContentResponse = {
|
|
2065
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitFederatedContentResponse",
|
|
2066
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2067
|
+
if (message.contentId !== BigInt(0)) {
|
|
2068
|
+
writer.uint32(8).uint64(message.contentId);
|
|
2069
|
+
}
|
|
2070
|
+
return writer;
|
|
2071
|
+
},
|
|
2072
|
+
decode(input, length) {
|
|
2073
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2074
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2075
|
+
const message = createBaseMsgSubmitFederatedContentResponse();
|
|
2076
|
+
while (reader.pos < end) {
|
|
2077
|
+
const tag = reader.uint32();
|
|
2078
|
+
switch (tag >>> 3) {
|
|
2079
|
+
case 1:
|
|
2080
|
+
message.contentId = reader.uint64();
|
|
2081
|
+
break;
|
|
2082
|
+
default:
|
|
2083
|
+
reader.skipType(tag & 7);
|
|
2084
|
+
break;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
return message;
|
|
2088
|
+
},
|
|
2089
|
+
fromPartial(object) {
|
|
2090
|
+
const message = createBaseMsgSubmitFederatedContentResponse();
|
|
2091
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
2092
|
+
return message;
|
|
2093
|
+
},
|
|
2094
|
+
fromAmino(object) {
|
|
2095
|
+
const message = createBaseMsgSubmitFederatedContentResponse();
|
|
2096
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
2097
|
+
message.contentId = BigInt(object.content_id);
|
|
2098
|
+
}
|
|
2099
|
+
return message;
|
|
2100
|
+
},
|
|
2101
|
+
toAmino(message) {
|
|
2102
|
+
const obj = {};
|
|
2103
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
2104
|
+
return obj;
|
|
2105
|
+
},
|
|
2106
|
+
fromAminoMsg(object) {
|
|
2107
|
+
return exports.MsgSubmitFederatedContentResponse.fromAmino(object.value);
|
|
2108
|
+
},
|
|
2109
|
+
fromProtoMsg(message) {
|
|
2110
|
+
return exports.MsgSubmitFederatedContentResponse.decode(message.value);
|
|
2111
|
+
},
|
|
2112
|
+
toProto(message) {
|
|
2113
|
+
return exports.MsgSubmitFederatedContentResponse.encode(message).finish();
|
|
2114
|
+
},
|
|
2115
|
+
toProtoMsg(message) {
|
|
2116
|
+
return {
|
|
2117
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitFederatedContentResponse",
|
|
2118
|
+
value: exports.MsgSubmitFederatedContentResponse.encode(message).finish()
|
|
2119
|
+
};
|
|
2120
|
+
}
|
|
2121
|
+
};
|
|
2122
|
+
function createBaseMsgFederateContent() {
|
|
2123
|
+
return {
|
|
2124
|
+
creator: "",
|
|
2125
|
+
peerId: "",
|
|
2126
|
+
contentType: "",
|
|
2127
|
+
localContentId: "",
|
|
2128
|
+
title: "",
|
|
2129
|
+
body: "",
|
|
2130
|
+
contentUri: "",
|
|
2131
|
+
contentHash: new Uint8Array()
|
|
2132
|
+
};
|
|
2133
|
+
}
|
|
2134
|
+
/**
|
|
2135
|
+
* @name MsgFederateContent
|
|
2136
|
+
* @package sparkdream.federation.v1
|
|
2137
|
+
* @see proto type: sparkdream.federation.v1.MsgFederateContent
|
|
2138
|
+
*/
|
|
2139
|
+
exports.MsgFederateContent = {
|
|
2140
|
+
typeUrl: "/sparkdream.federation.v1.MsgFederateContent",
|
|
2141
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2142
|
+
if (message.creator !== "") {
|
|
2143
|
+
writer.uint32(10).string(message.creator);
|
|
2144
|
+
}
|
|
2145
|
+
if (message.peerId !== "") {
|
|
2146
|
+
writer.uint32(18).string(message.peerId);
|
|
2147
|
+
}
|
|
2148
|
+
if (message.contentType !== "") {
|
|
2149
|
+
writer.uint32(26).string(message.contentType);
|
|
2150
|
+
}
|
|
2151
|
+
if (message.localContentId !== "") {
|
|
2152
|
+
writer.uint32(34).string(message.localContentId);
|
|
2153
|
+
}
|
|
2154
|
+
if (message.title !== "") {
|
|
2155
|
+
writer.uint32(42).string(message.title);
|
|
2156
|
+
}
|
|
2157
|
+
if (message.body !== "") {
|
|
2158
|
+
writer.uint32(50).string(message.body);
|
|
2159
|
+
}
|
|
2160
|
+
if (message.contentUri !== "") {
|
|
2161
|
+
writer.uint32(58).string(message.contentUri);
|
|
2162
|
+
}
|
|
2163
|
+
if (message.contentHash.length !== 0) {
|
|
2164
|
+
writer.uint32(66).bytes(message.contentHash);
|
|
2165
|
+
}
|
|
2166
|
+
return writer;
|
|
2167
|
+
},
|
|
2168
|
+
decode(input, length) {
|
|
2169
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2170
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2171
|
+
const message = createBaseMsgFederateContent();
|
|
2172
|
+
while (reader.pos < end) {
|
|
2173
|
+
const tag = reader.uint32();
|
|
2174
|
+
switch (tag >>> 3) {
|
|
2175
|
+
case 1:
|
|
2176
|
+
message.creator = reader.string();
|
|
2177
|
+
break;
|
|
2178
|
+
case 2:
|
|
2179
|
+
message.peerId = reader.string();
|
|
2180
|
+
break;
|
|
2181
|
+
case 3:
|
|
2182
|
+
message.contentType = reader.string();
|
|
2183
|
+
break;
|
|
2184
|
+
case 4:
|
|
2185
|
+
message.localContentId = reader.string();
|
|
2186
|
+
break;
|
|
2187
|
+
case 5:
|
|
2188
|
+
message.title = reader.string();
|
|
2189
|
+
break;
|
|
2190
|
+
case 6:
|
|
2191
|
+
message.body = reader.string();
|
|
2192
|
+
break;
|
|
2193
|
+
case 7:
|
|
2194
|
+
message.contentUri = reader.string();
|
|
2195
|
+
break;
|
|
2196
|
+
case 8:
|
|
2197
|
+
message.contentHash = reader.bytes();
|
|
2198
|
+
break;
|
|
2199
|
+
default:
|
|
2200
|
+
reader.skipType(tag & 7);
|
|
2201
|
+
break;
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
return message;
|
|
2205
|
+
},
|
|
2206
|
+
fromPartial(object) {
|
|
2207
|
+
const message = createBaseMsgFederateContent();
|
|
2208
|
+
message.creator = object.creator ?? "";
|
|
2209
|
+
message.peerId = object.peerId ?? "";
|
|
2210
|
+
message.contentType = object.contentType ?? "";
|
|
2211
|
+
message.localContentId = object.localContentId ?? "";
|
|
2212
|
+
message.title = object.title ?? "";
|
|
2213
|
+
message.body = object.body ?? "";
|
|
2214
|
+
message.contentUri = object.contentUri ?? "";
|
|
2215
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
2216
|
+
return message;
|
|
2217
|
+
},
|
|
2218
|
+
fromAmino(object) {
|
|
2219
|
+
const message = createBaseMsgFederateContent();
|
|
2220
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2221
|
+
message.creator = object.creator;
|
|
2222
|
+
}
|
|
2223
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2224
|
+
message.peerId = object.peer_id;
|
|
2225
|
+
}
|
|
2226
|
+
if (object.content_type !== undefined && object.content_type !== null) {
|
|
2227
|
+
message.contentType = object.content_type;
|
|
2228
|
+
}
|
|
2229
|
+
if (object.local_content_id !== undefined && object.local_content_id !== null) {
|
|
2230
|
+
message.localContentId = object.local_content_id;
|
|
2231
|
+
}
|
|
2232
|
+
if (object.title !== undefined && object.title !== null) {
|
|
2233
|
+
message.title = object.title;
|
|
2234
|
+
}
|
|
2235
|
+
if (object.body !== undefined && object.body !== null) {
|
|
2236
|
+
message.body = object.body;
|
|
2237
|
+
}
|
|
2238
|
+
if (object.content_uri !== undefined && object.content_uri !== null) {
|
|
2239
|
+
message.contentUri = object.content_uri;
|
|
2240
|
+
}
|
|
2241
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
2242
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
2243
|
+
}
|
|
2244
|
+
return message;
|
|
2245
|
+
},
|
|
2246
|
+
toAmino(message) {
|
|
2247
|
+
const obj = {};
|
|
2248
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2249
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
2250
|
+
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
2251
|
+
obj.local_content_id = message.localContentId === "" ? undefined : message.localContentId;
|
|
2252
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
2253
|
+
obj.body = message.body === "" ? undefined : message.body;
|
|
2254
|
+
obj.content_uri = message.contentUri === "" ? undefined : message.contentUri;
|
|
2255
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
2256
|
+
return obj;
|
|
2257
|
+
},
|
|
2258
|
+
fromAminoMsg(object) {
|
|
2259
|
+
return exports.MsgFederateContent.fromAmino(object.value);
|
|
2260
|
+
},
|
|
2261
|
+
fromProtoMsg(message) {
|
|
2262
|
+
return exports.MsgFederateContent.decode(message.value);
|
|
2263
|
+
},
|
|
2264
|
+
toProto(message) {
|
|
2265
|
+
return exports.MsgFederateContent.encode(message).finish();
|
|
2266
|
+
},
|
|
2267
|
+
toProtoMsg(message) {
|
|
2268
|
+
return {
|
|
2269
|
+
typeUrl: "/sparkdream.federation.v1.MsgFederateContent",
|
|
2270
|
+
value: exports.MsgFederateContent.encode(message).finish()
|
|
2271
|
+
};
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
function createBaseMsgFederateContentResponse() {
|
|
2275
|
+
return {};
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* @name MsgFederateContentResponse
|
|
2279
|
+
* @package sparkdream.federation.v1
|
|
2280
|
+
* @see proto type: sparkdream.federation.v1.MsgFederateContentResponse
|
|
2281
|
+
*/
|
|
2282
|
+
exports.MsgFederateContentResponse = {
|
|
2283
|
+
typeUrl: "/sparkdream.federation.v1.MsgFederateContentResponse",
|
|
2284
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2285
|
+
return writer;
|
|
2286
|
+
},
|
|
2287
|
+
decode(input, length) {
|
|
2288
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2289
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2290
|
+
const message = createBaseMsgFederateContentResponse();
|
|
2291
|
+
while (reader.pos < end) {
|
|
2292
|
+
const tag = reader.uint32();
|
|
2293
|
+
switch (tag >>> 3) {
|
|
2294
|
+
default:
|
|
2295
|
+
reader.skipType(tag & 7);
|
|
2296
|
+
break;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
return message;
|
|
2300
|
+
},
|
|
2301
|
+
fromPartial(_) {
|
|
2302
|
+
const message = createBaseMsgFederateContentResponse();
|
|
2303
|
+
return message;
|
|
2304
|
+
},
|
|
2305
|
+
fromAmino(_) {
|
|
2306
|
+
const message = createBaseMsgFederateContentResponse();
|
|
2307
|
+
return message;
|
|
2308
|
+
},
|
|
2309
|
+
toAmino(_) {
|
|
2310
|
+
const obj = {};
|
|
2311
|
+
return obj;
|
|
2312
|
+
},
|
|
2313
|
+
fromAminoMsg(object) {
|
|
2314
|
+
return exports.MsgFederateContentResponse.fromAmino(object.value);
|
|
2315
|
+
},
|
|
2316
|
+
fromProtoMsg(message) {
|
|
2317
|
+
return exports.MsgFederateContentResponse.decode(message.value);
|
|
2318
|
+
},
|
|
2319
|
+
toProto(message) {
|
|
2320
|
+
return exports.MsgFederateContentResponse.encode(message).finish();
|
|
2321
|
+
},
|
|
2322
|
+
toProtoMsg(message) {
|
|
2323
|
+
return {
|
|
2324
|
+
typeUrl: "/sparkdream.federation.v1.MsgFederateContentResponse",
|
|
2325
|
+
value: exports.MsgFederateContentResponse.encode(message).finish()
|
|
2326
|
+
};
|
|
2327
|
+
}
|
|
2328
|
+
};
|
|
2329
|
+
function createBaseMsgAttestOutbound() {
|
|
2330
|
+
return {
|
|
2331
|
+
operator: "",
|
|
2332
|
+
peerId: "",
|
|
2333
|
+
contentType: "",
|
|
2334
|
+
localContentId: ""
|
|
2335
|
+
};
|
|
2336
|
+
}
|
|
2337
|
+
/**
|
|
2338
|
+
* @name MsgAttestOutbound
|
|
2339
|
+
* @package sparkdream.federation.v1
|
|
2340
|
+
* @see proto type: sparkdream.federation.v1.MsgAttestOutbound
|
|
2341
|
+
*/
|
|
2342
|
+
exports.MsgAttestOutbound = {
|
|
2343
|
+
typeUrl: "/sparkdream.federation.v1.MsgAttestOutbound",
|
|
2344
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2345
|
+
if (message.operator !== "") {
|
|
2346
|
+
writer.uint32(10).string(message.operator);
|
|
2347
|
+
}
|
|
2348
|
+
if (message.peerId !== "") {
|
|
2349
|
+
writer.uint32(18).string(message.peerId);
|
|
2350
|
+
}
|
|
2351
|
+
if (message.contentType !== "") {
|
|
2352
|
+
writer.uint32(26).string(message.contentType);
|
|
2353
|
+
}
|
|
2354
|
+
if (message.localContentId !== "") {
|
|
2355
|
+
writer.uint32(34).string(message.localContentId);
|
|
2356
|
+
}
|
|
2357
|
+
return writer;
|
|
2358
|
+
},
|
|
2359
|
+
decode(input, length) {
|
|
2360
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2361
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2362
|
+
const message = createBaseMsgAttestOutbound();
|
|
2363
|
+
while (reader.pos < end) {
|
|
2364
|
+
const tag = reader.uint32();
|
|
2365
|
+
switch (tag >>> 3) {
|
|
2366
|
+
case 1:
|
|
2367
|
+
message.operator = reader.string();
|
|
2368
|
+
break;
|
|
2369
|
+
case 2:
|
|
2370
|
+
message.peerId = reader.string();
|
|
2371
|
+
break;
|
|
2372
|
+
case 3:
|
|
2373
|
+
message.contentType = reader.string();
|
|
2374
|
+
break;
|
|
2375
|
+
case 4:
|
|
2376
|
+
message.localContentId = reader.string();
|
|
2377
|
+
break;
|
|
2378
|
+
default:
|
|
2379
|
+
reader.skipType(tag & 7);
|
|
2380
|
+
break;
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
return message;
|
|
2384
|
+
},
|
|
2385
|
+
fromPartial(object) {
|
|
2386
|
+
const message = createBaseMsgAttestOutbound();
|
|
2387
|
+
message.operator = object.operator ?? "";
|
|
2388
|
+
message.peerId = object.peerId ?? "";
|
|
2389
|
+
message.contentType = object.contentType ?? "";
|
|
2390
|
+
message.localContentId = object.localContentId ?? "";
|
|
2391
|
+
return message;
|
|
2392
|
+
},
|
|
2393
|
+
fromAmino(object) {
|
|
2394
|
+
const message = createBaseMsgAttestOutbound();
|
|
2395
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
2396
|
+
message.operator = object.operator;
|
|
2397
|
+
}
|
|
2398
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2399
|
+
message.peerId = object.peer_id;
|
|
2400
|
+
}
|
|
2401
|
+
if (object.content_type !== undefined && object.content_type !== null) {
|
|
2402
|
+
message.contentType = object.content_type;
|
|
2403
|
+
}
|
|
2404
|
+
if (object.local_content_id !== undefined && object.local_content_id !== null) {
|
|
2405
|
+
message.localContentId = object.local_content_id;
|
|
2406
|
+
}
|
|
2407
|
+
return message;
|
|
2408
|
+
},
|
|
2409
|
+
toAmino(message) {
|
|
2410
|
+
const obj = {};
|
|
2411
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
2412
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
2413
|
+
obj.content_type = message.contentType === "" ? undefined : message.contentType;
|
|
2414
|
+
obj.local_content_id = message.localContentId === "" ? undefined : message.localContentId;
|
|
2415
|
+
return obj;
|
|
2416
|
+
},
|
|
2417
|
+
fromAminoMsg(object) {
|
|
2418
|
+
return exports.MsgAttestOutbound.fromAmino(object.value);
|
|
2419
|
+
},
|
|
2420
|
+
fromProtoMsg(message) {
|
|
2421
|
+
return exports.MsgAttestOutbound.decode(message.value);
|
|
2422
|
+
},
|
|
2423
|
+
toProto(message) {
|
|
2424
|
+
return exports.MsgAttestOutbound.encode(message).finish();
|
|
2425
|
+
},
|
|
2426
|
+
toProtoMsg(message) {
|
|
2427
|
+
return {
|
|
2428
|
+
typeUrl: "/sparkdream.federation.v1.MsgAttestOutbound",
|
|
2429
|
+
value: exports.MsgAttestOutbound.encode(message).finish()
|
|
2430
|
+
};
|
|
2431
|
+
}
|
|
2432
|
+
};
|
|
2433
|
+
function createBaseMsgAttestOutboundResponse() {
|
|
2434
|
+
return {};
|
|
2435
|
+
}
|
|
2436
|
+
/**
|
|
2437
|
+
* @name MsgAttestOutboundResponse
|
|
2438
|
+
* @package sparkdream.federation.v1
|
|
2439
|
+
* @see proto type: sparkdream.federation.v1.MsgAttestOutboundResponse
|
|
2440
|
+
*/
|
|
2441
|
+
exports.MsgAttestOutboundResponse = {
|
|
2442
|
+
typeUrl: "/sparkdream.federation.v1.MsgAttestOutboundResponse",
|
|
2443
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2444
|
+
return writer;
|
|
2445
|
+
},
|
|
2446
|
+
decode(input, length) {
|
|
2447
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2448
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2449
|
+
const message = createBaseMsgAttestOutboundResponse();
|
|
2450
|
+
while (reader.pos < end) {
|
|
2451
|
+
const tag = reader.uint32();
|
|
2452
|
+
switch (tag >>> 3) {
|
|
2453
|
+
default:
|
|
2454
|
+
reader.skipType(tag & 7);
|
|
2455
|
+
break;
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
return message;
|
|
2459
|
+
},
|
|
2460
|
+
fromPartial(_) {
|
|
2461
|
+
const message = createBaseMsgAttestOutboundResponse();
|
|
2462
|
+
return message;
|
|
2463
|
+
},
|
|
2464
|
+
fromAmino(_) {
|
|
2465
|
+
const message = createBaseMsgAttestOutboundResponse();
|
|
2466
|
+
return message;
|
|
2467
|
+
},
|
|
2468
|
+
toAmino(_) {
|
|
2469
|
+
const obj = {};
|
|
2470
|
+
return obj;
|
|
2471
|
+
},
|
|
2472
|
+
fromAminoMsg(object) {
|
|
2473
|
+
return exports.MsgAttestOutboundResponse.fromAmino(object.value);
|
|
2474
|
+
},
|
|
2475
|
+
fromProtoMsg(message) {
|
|
2476
|
+
return exports.MsgAttestOutboundResponse.decode(message.value);
|
|
2477
|
+
},
|
|
2478
|
+
toProto(message) {
|
|
2479
|
+
return exports.MsgAttestOutboundResponse.encode(message).finish();
|
|
2480
|
+
},
|
|
2481
|
+
toProtoMsg(message) {
|
|
2482
|
+
return {
|
|
2483
|
+
typeUrl: "/sparkdream.federation.v1.MsgAttestOutboundResponse",
|
|
2484
|
+
value: exports.MsgAttestOutboundResponse.encode(message).finish()
|
|
2485
|
+
};
|
|
2486
|
+
}
|
|
2487
|
+
};
|
|
2488
|
+
function createBaseMsgModerateContent() {
|
|
2489
|
+
return {
|
|
2490
|
+
authority: "",
|
|
2491
|
+
contentId: BigInt(0),
|
|
2492
|
+
newStatus: 0,
|
|
2493
|
+
reason: ""
|
|
2494
|
+
};
|
|
2495
|
+
}
|
|
2496
|
+
/**
|
|
2497
|
+
* @name MsgModerateContent
|
|
2498
|
+
* @package sparkdream.federation.v1
|
|
2499
|
+
* @see proto type: sparkdream.federation.v1.MsgModerateContent
|
|
2500
|
+
*/
|
|
2501
|
+
exports.MsgModerateContent = {
|
|
2502
|
+
typeUrl: "/sparkdream.federation.v1.MsgModerateContent",
|
|
2503
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2504
|
+
if (message.authority !== "") {
|
|
2505
|
+
writer.uint32(10).string(message.authority);
|
|
2506
|
+
}
|
|
2507
|
+
if (message.contentId !== BigInt(0)) {
|
|
2508
|
+
writer.uint32(16).uint64(message.contentId);
|
|
2509
|
+
}
|
|
2510
|
+
if (message.newStatus !== 0) {
|
|
2511
|
+
writer.uint32(24).int32(message.newStatus);
|
|
2512
|
+
}
|
|
2513
|
+
if (message.reason !== "") {
|
|
2514
|
+
writer.uint32(34).string(message.reason);
|
|
2515
|
+
}
|
|
2516
|
+
return writer;
|
|
2517
|
+
},
|
|
2518
|
+
decode(input, length) {
|
|
2519
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2520
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2521
|
+
const message = createBaseMsgModerateContent();
|
|
2522
|
+
while (reader.pos < end) {
|
|
2523
|
+
const tag = reader.uint32();
|
|
2524
|
+
switch (tag >>> 3) {
|
|
2525
|
+
case 1:
|
|
2526
|
+
message.authority = reader.string();
|
|
2527
|
+
break;
|
|
2528
|
+
case 2:
|
|
2529
|
+
message.contentId = reader.uint64();
|
|
2530
|
+
break;
|
|
2531
|
+
case 3:
|
|
2532
|
+
message.newStatus = reader.int32();
|
|
2533
|
+
break;
|
|
2534
|
+
case 4:
|
|
2535
|
+
message.reason = reader.string();
|
|
2536
|
+
break;
|
|
2537
|
+
default:
|
|
2538
|
+
reader.skipType(tag & 7);
|
|
2539
|
+
break;
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
return message;
|
|
2543
|
+
},
|
|
2544
|
+
fromPartial(object) {
|
|
2545
|
+
const message = createBaseMsgModerateContent();
|
|
2546
|
+
message.authority = object.authority ?? "";
|
|
2547
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
2548
|
+
message.newStatus = object.newStatus ?? 0;
|
|
2549
|
+
message.reason = object.reason ?? "";
|
|
2550
|
+
return message;
|
|
2551
|
+
},
|
|
2552
|
+
fromAmino(object) {
|
|
2553
|
+
const message = createBaseMsgModerateContent();
|
|
2554
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
2555
|
+
message.authority = object.authority;
|
|
2556
|
+
}
|
|
2557
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
2558
|
+
message.contentId = BigInt(object.content_id);
|
|
2559
|
+
}
|
|
2560
|
+
if (object.new_status !== undefined && object.new_status !== null) {
|
|
2561
|
+
message.newStatus = object.new_status;
|
|
2562
|
+
}
|
|
2563
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
2564
|
+
message.reason = object.reason;
|
|
2565
|
+
}
|
|
2566
|
+
return message;
|
|
2567
|
+
},
|
|
2568
|
+
toAmino(message) {
|
|
2569
|
+
const obj = {};
|
|
2570
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
2571
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
2572
|
+
obj.new_status = message.newStatus === 0 ? undefined : message.newStatus;
|
|
2573
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
2574
|
+
return obj;
|
|
2575
|
+
},
|
|
2576
|
+
fromAminoMsg(object) {
|
|
2577
|
+
return exports.MsgModerateContent.fromAmino(object.value);
|
|
2578
|
+
},
|
|
2579
|
+
fromProtoMsg(message) {
|
|
2580
|
+
return exports.MsgModerateContent.decode(message.value);
|
|
2581
|
+
},
|
|
2582
|
+
toProto(message) {
|
|
2583
|
+
return exports.MsgModerateContent.encode(message).finish();
|
|
2584
|
+
},
|
|
2585
|
+
toProtoMsg(message) {
|
|
2586
|
+
return {
|
|
2587
|
+
typeUrl: "/sparkdream.federation.v1.MsgModerateContent",
|
|
2588
|
+
value: exports.MsgModerateContent.encode(message).finish()
|
|
2589
|
+
};
|
|
2590
|
+
}
|
|
2591
|
+
};
|
|
2592
|
+
function createBaseMsgModerateContentResponse() {
|
|
2593
|
+
return {};
|
|
2594
|
+
}
|
|
2595
|
+
/**
|
|
2596
|
+
* @name MsgModerateContentResponse
|
|
2597
|
+
* @package sparkdream.federation.v1
|
|
2598
|
+
* @see proto type: sparkdream.federation.v1.MsgModerateContentResponse
|
|
2599
|
+
*/
|
|
2600
|
+
exports.MsgModerateContentResponse = {
|
|
2601
|
+
typeUrl: "/sparkdream.federation.v1.MsgModerateContentResponse",
|
|
2602
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2603
|
+
return writer;
|
|
2604
|
+
},
|
|
2605
|
+
decode(input, length) {
|
|
2606
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2607
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2608
|
+
const message = createBaseMsgModerateContentResponse();
|
|
2609
|
+
while (reader.pos < end) {
|
|
2610
|
+
const tag = reader.uint32();
|
|
2611
|
+
switch (tag >>> 3) {
|
|
2612
|
+
default:
|
|
2613
|
+
reader.skipType(tag & 7);
|
|
2614
|
+
break;
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
return message;
|
|
2618
|
+
},
|
|
2619
|
+
fromPartial(_) {
|
|
2620
|
+
const message = createBaseMsgModerateContentResponse();
|
|
2621
|
+
return message;
|
|
2622
|
+
},
|
|
2623
|
+
fromAmino(_) {
|
|
2624
|
+
const message = createBaseMsgModerateContentResponse();
|
|
2625
|
+
return message;
|
|
2626
|
+
},
|
|
2627
|
+
toAmino(_) {
|
|
2628
|
+
const obj = {};
|
|
2629
|
+
return obj;
|
|
2630
|
+
},
|
|
2631
|
+
fromAminoMsg(object) {
|
|
2632
|
+
return exports.MsgModerateContentResponse.fromAmino(object.value);
|
|
2633
|
+
},
|
|
2634
|
+
fromProtoMsg(message) {
|
|
2635
|
+
return exports.MsgModerateContentResponse.decode(message.value);
|
|
2636
|
+
},
|
|
2637
|
+
toProto(message) {
|
|
2638
|
+
return exports.MsgModerateContentResponse.encode(message).finish();
|
|
2639
|
+
},
|
|
2640
|
+
toProtoMsg(message) {
|
|
2641
|
+
return {
|
|
2642
|
+
typeUrl: "/sparkdream.federation.v1.MsgModerateContentResponse",
|
|
2643
|
+
value: exports.MsgModerateContentResponse.encode(message).finish()
|
|
2644
|
+
};
|
|
2645
|
+
}
|
|
2646
|
+
};
|
|
2647
|
+
function createBaseMsgLinkIdentity() {
|
|
2648
|
+
return {
|
|
2649
|
+
creator: "",
|
|
2650
|
+
peerId: "",
|
|
2651
|
+
remoteIdentity: ""
|
|
2652
|
+
};
|
|
2653
|
+
}
|
|
2654
|
+
/**
|
|
2655
|
+
* @name MsgLinkIdentity
|
|
2656
|
+
* @package sparkdream.federation.v1
|
|
2657
|
+
* @see proto type: sparkdream.federation.v1.MsgLinkIdentity
|
|
2658
|
+
*/
|
|
2659
|
+
exports.MsgLinkIdentity = {
|
|
2660
|
+
typeUrl: "/sparkdream.federation.v1.MsgLinkIdentity",
|
|
2661
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2662
|
+
if (message.creator !== "") {
|
|
2663
|
+
writer.uint32(10).string(message.creator);
|
|
2664
|
+
}
|
|
2665
|
+
if (message.peerId !== "") {
|
|
2666
|
+
writer.uint32(18).string(message.peerId);
|
|
2667
|
+
}
|
|
2668
|
+
if (message.remoteIdentity !== "") {
|
|
2669
|
+
writer.uint32(26).string(message.remoteIdentity);
|
|
2670
|
+
}
|
|
2671
|
+
return writer;
|
|
2672
|
+
},
|
|
2673
|
+
decode(input, length) {
|
|
2674
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2675
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2676
|
+
const message = createBaseMsgLinkIdentity();
|
|
2677
|
+
while (reader.pos < end) {
|
|
2678
|
+
const tag = reader.uint32();
|
|
2679
|
+
switch (tag >>> 3) {
|
|
2680
|
+
case 1:
|
|
2681
|
+
message.creator = reader.string();
|
|
2682
|
+
break;
|
|
2683
|
+
case 2:
|
|
2684
|
+
message.peerId = reader.string();
|
|
2685
|
+
break;
|
|
2686
|
+
case 3:
|
|
2687
|
+
message.remoteIdentity = reader.string();
|
|
2688
|
+
break;
|
|
2689
|
+
default:
|
|
2690
|
+
reader.skipType(tag & 7);
|
|
2691
|
+
break;
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
return message;
|
|
2695
|
+
},
|
|
2696
|
+
fromPartial(object) {
|
|
2697
|
+
const message = createBaseMsgLinkIdentity();
|
|
2698
|
+
message.creator = object.creator ?? "";
|
|
2699
|
+
message.peerId = object.peerId ?? "";
|
|
2700
|
+
message.remoteIdentity = object.remoteIdentity ?? "";
|
|
2701
|
+
return message;
|
|
2702
|
+
},
|
|
2703
|
+
fromAmino(object) {
|
|
2704
|
+
const message = createBaseMsgLinkIdentity();
|
|
2705
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2706
|
+
message.creator = object.creator;
|
|
2707
|
+
}
|
|
2708
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2709
|
+
message.peerId = object.peer_id;
|
|
2710
|
+
}
|
|
2711
|
+
if (object.remote_identity !== undefined && object.remote_identity !== null) {
|
|
2712
|
+
message.remoteIdentity = object.remote_identity;
|
|
2713
|
+
}
|
|
2714
|
+
return message;
|
|
2715
|
+
},
|
|
2716
|
+
toAmino(message) {
|
|
2717
|
+
const obj = {};
|
|
2718
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2719
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
2720
|
+
obj.remote_identity = message.remoteIdentity === "" ? undefined : message.remoteIdentity;
|
|
2721
|
+
return obj;
|
|
2722
|
+
},
|
|
2723
|
+
fromAminoMsg(object) {
|
|
2724
|
+
return exports.MsgLinkIdentity.fromAmino(object.value);
|
|
2725
|
+
},
|
|
2726
|
+
fromProtoMsg(message) {
|
|
2727
|
+
return exports.MsgLinkIdentity.decode(message.value);
|
|
2728
|
+
},
|
|
2729
|
+
toProto(message) {
|
|
2730
|
+
return exports.MsgLinkIdentity.encode(message).finish();
|
|
2731
|
+
},
|
|
2732
|
+
toProtoMsg(message) {
|
|
2733
|
+
return {
|
|
2734
|
+
typeUrl: "/sparkdream.federation.v1.MsgLinkIdentity",
|
|
2735
|
+
value: exports.MsgLinkIdentity.encode(message).finish()
|
|
2736
|
+
};
|
|
2737
|
+
}
|
|
2738
|
+
};
|
|
2739
|
+
function createBaseMsgLinkIdentityResponse() {
|
|
2740
|
+
return {};
|
|
2741
|
+
}
|
|
2742
|
+
/**
|
|
2743
|
+
* @name MsgLinkIdentityResponse
|
|
2744
|
+
* @package sparkdream.federation.v1
|
|
2745
|
+
* @see proto type: sparkdream.federation.v1.MsgLinkIdentityResponse
|
|
2746
|
+
*/
|
|
2747
|
+
exports.MsgLinkIdentityResponse = {
|
|
2748
|
+
typeUrl: "/sparkdream.federation.v1.MsgLinkIdentityResponse",
|
|
2749
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2750
|
+
return writer;
|
|
2751
|
+
},
|
|
2752
|
+
decode(input, length) {
|
|
2753
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2754
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2755
|
+
const message = createBaseMsgLinkIdentityResponse();
|
|
2756
|
+
while (reader.pos < end) {
|
|
2757
|
+
const tag = reader.uint32();
|
|
2758
|
+
switch (tag >>> 3) {
|
|
2759
|
+
default:
|
|
2760
|
+
reader.skipType(tag & 7);
|
|
2761
|
+
break;
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
return message;
|
|
2765
|
+
},
|
|
2766
|
+
fromPartial(_) {
|
|
2767
|
+
const message = createBaseMsgLinkIdentityResponse();
|
|
2768
|
+
return message;
|
|
2769
|
+
},
|
|
2770
|
+
fromAmino(_) {
|
|
2771
|
+
const message = createBaseMsgLinkIdentityResponse();
|
|
2772
|
+
return message;
|
|
2773
|
+
},
|
|
2774
|
+
toAmino(_) {
|
|
2775
|
+
const obj = {};
|
|
2776
|
+
return obj;
|
|
2777
|
+
},
|
|
2778
|
+
fromAminoMsg(object) {
|
|
2779
|
+
return exports.MsgLinkIdentityResponse.fromAmino(object.value);
|
|
2780
|
+
},
|
|
2781
|
+
fromProtoMsg(message) {
|
|
2782
|
+
return exports.MsgLinkIdentityResponse.decode(message.value);
|
|
2783
|
+
},
|
|
2784
|
+
toProto(message) {
|
|
2785
|
+
return exports.MsgLinkIdentityResponse.encode(message).finish();
|
|
2786
|
+
},
|
|
2787
|
+
toProtoMsg(message) {
|
|
2788
|
+
return {
|
|
2789
|
+
typeUrl: "/sparkdream.federation.v1.MsgLinkIdentityResponse",
|
|
2790
|
+
value: exports.MsgLinkIdentityResponse.encode(message).finish()
|
|
2791
|
+
};
|
|
2792
|
+
}
|
|
2793
|
+
};
|
|
2794
|
+
function createBaseMsgUnlinkIdentity() {
|
|
2795
|
+
return {
|
|
2796
|
+
creator: "",
|
|
2797
|
+
peerId: ""
|
|
2798
|
+
};
|
|
2799
|
+
}
|
|
2800
|
+
/**
|
|
2801
|
+
* @name MsgUnlinkIdentity
|
|
2802
|
+
* @package sparkdream.federation.v1
|
|
2803
|
+
* @see proto type: sparkdream.federation.v1.MsgUnlinkIdentity
|
|
2804
|
+
*/
|
|
2805
|
+
exports.MsgUnlinkIdentity = {
|
|
2806
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnlinkIdentity",
|
|
2807
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2808
|
+
if (message.creator !== "") {
|
|
2809
|
+
writer.uint32(10).string(message.creator);
|
|
2810
|
+
}
|
|
2811
|
+
if (message.peerId !== "") {
|
|
2812
|
+
writer.uint32(18).string(message.peerId);
|
|
2813
|
+
}
|
|
2814
|
+
return writer;
|
|
2815
|
+
},
|
|
2816
|
+
decode(input, length) {
|
|
2817
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2818
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2819
|
+
const message = createBaseMsgUnlinkIdentity();
|
|
2820
|
+
while (reader.pos < end) {
|
|
2821
|
+
const tag = reader.uint32();
|
|
2822
|
+
switch (tag >>> 3) {
|
|
2823
|
+
case 1:
|
|
2824
|
+
message.creator = reader.string();
|
|
2825
|
+
break;
|
|
2826
|
+
case 2:
|
|
2827
|
+
message.peerId = reader.string();
|
|
2828
|
+
break;
|
|
2829
|
+
default:
|
|
2830
|
+
reader.skipType(tag & 7);
|
|
2831
|
+
break;
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
return message;
|
|
2835
|
+
},
|
|
2836
|
+
fromPartial(object) {
|
|
2837
|
+
const message = createBaseMsgUnlinkIdentity();
|
|
2838
|
+
message.creator = object.creator ?? "";
|
|
2839
|
+
message.peerId = object.peerId ?? "";
|
|
2840
|
+
return message;
|
|
2841
|
+
},
|
|
2842
|
+
fromAmino(object) {
|
|
2843
|
+
const message = createBaseMsgUnlinkIdentity();
|
|
2844
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2845
|
+
message.creator = object.creator;
|
|
2846
|
+
}
|
|
2847
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
2848
|
+
message.peerId = object.peer_id;
|
|
2849
|
+
}
|
|
2850
|
+
return message;
|
|
2851
|
+
},
|
|
2852
|
+
toAmino(message) {
|
|
2853
|
+
const obj = {};
|
|
2854
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2855
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
2856
|
+
return obj;
|
|
2857
|
+
},
|
|
2858
|
+
fromAminoMsg(object) {
|
|
2859
|
+
return exports.MsgUnlinkIdentity.fromAmino(object.value);
|
|
2860
|
+
},
|
|
2861
|
+
fromProtoMsg(message) {
|
|
2862
|
+
return exports.MsgUnlinkIdentity.decode(message.value);
|
|
2863
|
+
},
|
|
2864
|
+
toProto(message) {
|
|
2865
|
+
return exports.MsgUnlinkIdentity.encode(message).finish();
|
|
2866
|
+
},
|
|
2867
|
+
toProtoMsg(message) {
|
|
2868
|
+
return {
|
|
2869
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnlinkIdentity",
|
|
2870
|
+
value: exports.MsgUnlinkIdentity.encode(message).finish()
|
|
2871
|
+
};
|
|
2872
|
+
}
|
|
2873
|
+
};
|
|
2874
|
+
function createBaseMsgUnlinkIdentityResponse() {
|
|
2875
|
+
return {};
|
|
2876
|
+
}
|
|
2877
|
+
/**
|
|
2878
|
+
* @name MsgUnlinkIdentityResponse
|
|
2879
|
+
* @package sparkdream.federation.v1
|
|
2880
|
+
* @see proto type: sparkdream.federation.v1.MsgUnlinkIdentityResponse
|
|
2881
|
+
*/
|
|
2882
|
+
exports.MsgUnlinkIdentityResponse = {
|
|
2883
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnlinkIdentityResponse",
|
|
2884
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
2885
|
+
return writer;
|
|
2886
|
+
},
|
|
2887
|
+
decode(input, length) {
|
|
2888
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2889
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2890
|
+
const message = createBaseMsgUnlinkIdentityResponse();
|
|
2891
|
+
while (reader.pos < end) {
|
|
2892
|
+
const tag = reader.uint32();
|
|
2893
|
+
switch (tag >>> 3) {
|
|
2894
|
+
default:
|
|
2895
|
+
reader.skipType(tag & 7);
|
|
2896
|
+
break;
|
|
2897
|
+
}
|
|
2898
|
+
}
|
|
2899
|
+
return message;
|
|
2900
|
+
},
|
|
2901
|
+
fromPartial(_) {
|
|
2902
|
+
const message = createBaseMsgUnlinkIdentityResponse();
|
|
2903
|
+
return message;
|
|
2904
|
+
},
|
|
2905
|
+
fromAmino(_) {
|
|
2906
|
+
const message = createBaseMsgUnlinkIdentityResponse();
|
|
2907
|
+
return message;
|
|
2908
|
+
},
|
|
2909
|
+
toAmino(_) {
|
|
2910
|
+
const obj = {};
|
|
2911
|
+
return obj;
|
|
2912
|
+
},
|
|
2913
|
+
fromAminoMsg(object) {
|
|
2914
|
+
return exports.MsgUnlinkIdentityResponse.fromAmino(object.value);
|
|
2915
|
+
},
|
|
2916
|
+
fromProtoMsg(message) {
|
|
2917
|
+
return exports.MsgUnlinkIdentityResponse.decode(message.value);
|
|
2918
|
+
},
|
|
2919
|
+
toProto(message) {
|
|
2920
|
+
return exports.MsgUnlinkIdentityResponse.encode(message).finish();
|
|
2921
|
+
},
|
|
2922
|
+
toProtoMsg(message) {
|
|
2923
|
+
return {
|
|
2924
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnlinkIdentityResponse",
|
|
2925
|
+
value: exports.MsgUnlinkIdentityResponse.encode(message).finish()
|
|
2926
|
+
};
|
|
2927
|
+
}
|
|
2928
|
+
};
|
|
2929
|
+
function createBaseMsgConfirmIdentityLink() {
|
|
2930
|
+
return {
|
|
2931
|
+
creator: "",
|
|
2932
|
+
claimantChainPeerId: ""
|
|
2933
|
+
};
|
|
2934
|
+
}
|
|
2935
|
+
/**
|
|
2936
|
+
* @name MsgConfirmIdentityLink
|
|
2937
|
+
* @package sparkdream.federation.v1
|
|
2938
|
+
* @see proto type: sparkdream.federation.v1.MsgConfirmIdentityLink
|
|
2939
|
+
*/
|
|
2940
|
+
exports.MsgConfirmIdentityLink = {
|
|
2941
|
+
typeUrl: "/sparkdream.federation.v1.MsgConfirmIdentityLink",
|
|
2942
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2943
|
+
if (message.creator !== "") {
|
|
2944
|
+
writer.uint32(10).string(message.creator);
|
|
2945
|
+
}
|
|
2946
|
+
if (message.claimantChainPeerId !== "") {
|
|
2947
|
+
writer.uint32(18).string(message.claimantChainPeerId);
|
|
2948
|
+
}
|
|
2949
|
+
return writer;
|
|
2950
|
+
},
|
|
2951
|
+
decode(input, length) {
|
|
2952
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2953
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2954
|
+
const message = createBaseMsgConfirmIdentityLink();
|
|
2955
|
+
while (reader.pos < end) {
|
|
2956
|
+
const tag = reader.uint32();
|
|
2957
|
+
switch (tag >>> 3) {
|
|
2958
|
+
case 1:
|
|
2959
|
+
message.creator = reader.string();
|
|
2960
|
+
break;
|
|
2961
|
+
case 2:
|
|
2962
|
+
message.claimantChainPeerId = reader.string();
|
|
2963
|
+
break;
|
|
2964
|
+
default:
|
|
2965
|
+
reader.skipType(tag & 7);
|
|
2966
|
+
break;
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
return message;
|
|
2970
|
+
},
|
|
2971
|
+
fromPartial(object) {
|
|
2972
|
+
const message = createBaseMsgConfirmIdentityLink();
|
|
2973
|
+
message.creator = object.creator ?? "";
|
|
2974
|
+
message.claimantChainPeerId = object.claimantChainPeerId ?? "";
|
|
2975
|
+
return message;
|
|
2976
|
+
},
|
|
2977
|
+
fromAmino(object) {
|
|
2978
|
+
const message = createBaseMsgConfirmIdentityLink();
|
|
2979
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2980
|
+
message.creator = object.creator;
|
|
2981
|
+
}
|
|
2982
|
+
if (object.claimant_chain_peer_id !== undefined && object.claimant_chain_peer_id !== null) {
|
|
2983
|
+
message.claimantChainPeerId = object.claimant_chain_peer_id;
|
|
2984
|
+
}
|
|
2985
|
+
return message;
|
|
2986
|
+
},
|
|
2987
|
+
toAmino(message) {
|
|
2988
|
+
const obj = {};
|
|
2989
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2990
|
+
obj.claimant_chain_peer_id = message.claimantChainPeerId === "" ? undefined : message.claimantChainPeerId;
|
|
2991
|
+
return obj;
|
|
2992
|
+
},
|
|
2993
|
+
fromAminoMsg(object) {
|
|
2994
|
+
return exports.MsgConfirmIdentityLink.fromAmino(object.value);
|
|
2995
|
+
},
|
|
2996
|
+
fromProtoMsg(message) {
|
|
2997
|
+
return exports.MsgConfirmIdentityLink.decode(message.value);
|
|
2998
|
+
},
|
|
2999
|
+
toProto(message) {
|
|
3000
|
+
return exports.MsgConfirmIdentityLink.encode(message).finish();
|
|
3001
|
+
},
|
|
3002
|
+
toProtoMsg(message) {
|
|
3003
|
+
return {
|
|
3004
|
+
typeUrl: "/sparkdream.federation.v1.MsgConfirmIdentityLink",
|
|
3005
|
+
value: exports.MsgConfirmIdentityLink.encode(message).finish()
|
|
3006
|
+
};
|
|
3007
|
+
}
|
|
3008
|
+
};
|
|
3009
|
+
function createBaseMsgConfirmIdentityLinkResponse() {
|
|
3010
|
+
return {};
|
|
3011
|
+
}
|
|
3012
|
+
/**
|
|
3013
|
+
* @name MsgConfirmIdentityLinkResponse
|
|
3014
|
+
* @package sparkdream.federation.v1
|
|
3015
|
+
* @see proto type: sparkdream.federation.v1.MsgConfirmIdentityLinkResponse
|
|
3016
|
+
*/
|
|
3017
|
+
exports.MsgConfirmIdentityLinkResponse = {
|
|
3018
|
+
typeUrl: "/sparkdream.federation.v1.MsgConfirmIdentityLinkResponse",
|
|
3019
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3020
|
+
return writer;
|
|
3021
|
+
},
|
|
3022
|
+
decode(input, length) {
|
|
3023
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3024
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3025
|
+
const message = createBaseMsgConfirmIdentityLinkResponse();
|
|
3026
|
+
while (reader.pos < end) {
|
|
3027
|
+
const tag = reader.uint32();
|
|
3028
|
+
switch (tag >>> 3) {
|
|
3029
|
+
default:
|
|
3030
|
+
reader.skipType(tag & 7);
|
|
3031
|
+
break;
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
return message;
|
|
3035
|
+
},
|
|
3036
|
+
fromPartial(_) {
|
|
3037
|
+
const message = createBaseMsgConfirmIdentityLinkResponse();
|
|
3038
|
+
return message;
|
|
3039
|
+
},
|
|
3040
|
+
fromAmino(_) {
|
|
3041
|
+
const message = createBaseMsgConfirmIdentityLinkResponse();
|
|
3042
|
+
return message;
|
|
3043
|
+
},
|
|
3044
|
+
toAmino(_) {
|
|
3045
|
+
const obj = {};
|
|
3046
|
+
return obj;
|
|
3047
|
+
},
|
|
3048
|
+
fromAminoMsg(object) {
|
|
3049
|
+
return exports.MsgConfirmIdentityLinkResponse.fromAmino(object.value);
|
|
3050
|
+
},
|
|
3051
|
+
fromProtoMsg(message) {
|
|
3052
|
+
return exports.MsgConfirmIdentityLinkResponse.decode(message.value);
|
|
3053
|
+
},
|
|
3054
|
+
toProto(message) {
|
|
3055
|
+
return exports.MsgConfirmIdentityLinkResponse.encode(message).finish();
|
|
3056
|
+
},
|
|
3057
|
+
toProtoMsg(message) {
|
|
3058
|
+
return {
|
|
3059
|
+
typeUrl: "/sparkdream.federation.v1.MsgConfirmIdentityLinkResponse",
|
|
3060
|
+
value: exports.MsgConfirmIdentityLinkResponse.encode(message).finish()
|
|
3061
|
+
};
|
|
3062
|
+
}
|
|
3063
|
+
};
|
|
3064
|
+
function createBaseMsgRequestReputationAttestation() {
|
|
3065
|
+
return {
|
|
3066
|
+
creator: "",
|
|
3067
|
+
peerId: "",
|
|
3068
|
+
remoteAddress: ""
|
|
3069
|
+
};
|
|
3070
|
+
}
|
|
3071
|
+
/**
|
|
3072
|
+
* @name MsgRequestReputationAttestation
|
|
3073
|
+
* @package sparkdream.federation.v1
|
|
3074
|
+
* @see proto type: sparkdream.federation.v1.MsgRequestReputationAttestation
|
|
3075
|
+
*/
|
|
3076
|
+
exports.MsgRequestReputationAttestation = {
|
|
3077
|
+
typeUrl: "/sparkdream.federation.v1.MsgRequestReputationAttestation",
|
|
3078
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3079
|
+
if (message.creator !== "") {
|
|
3080
|
+
writer.uint32(10).string(message.creator);
|
|
3081
|
+
}
|
|
3082
|
+
if (message.peerId !== "") {
|
|
3083
|
+
writer.uint32(18).string(message.peerId);
|
|
3084
|
+
}
|
|
3085
|
+
if (message.remoteAddress !== "") {
|
|
3086
|
+
writer.uint32(26).string(message.remoteAddress);
|
|
3087
|
+
}
|
|
3088
|
+
return writer;
|
|
3089
|
+
},
|
|
3090
|
+
decode(input, length) {
|
|
3091
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3092
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3093
|
+
const message = createBaseMsgRequestReputationAttestation();
|
|
3094
|
+
while (reader.pos < end) {
|
|
3095
|
+
const tag = reader.uint32();
|
|
3096
|
+
switch (tag >>> 3) {
|
|
3097
|
+
case 1:
|
|
3098
|
+
message.creator = reader.string();
|
|
3099
|
+
break;
|
|
3100
|
+
case 2:
|
|
3101
|
+
message.peerId = reader.string();
|
|
3102
|
+
break;
|
|
3103
|
+
case 3:
|
|
3104
|
+
message.remoteAddress = reader.string();
|
|
3105
|
+
break;
|
|
3106
|
+
default:
|
|
3107
|
+
reader.skipType(tag & 7);
|
|
3108
|
+
break;
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
return message;
|
|
3112
|
+
},
|
|
3113
|
+
fromPartial(object) {
|
|
3114
|
+
const message = createBaseMsgRequestReputationAttestation();
|
|
3115
|
+
message.creator = object.creator ?? "";
|
|
3116
|
+
message.peerId = object.peerId ?? "";
|
|
3117
|
+
message.remoteAddress = object.remoteAddress ?? "";
|
|
3118
|
+
return message;
|
|
3119
|
+
},
|
|
3120
|
+
fromAmino(object) {
|
|
3121
|
+
const message = createBaseMsgRequestReputationAttestation();
|
|
3122
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3123
|
+
message.creator = object.creator;
|
|
3124
|
+
}
|
|
3125
|
+
if (object.peer_id !== undefined && object.peer_id !== null) {
|
|
3126
|
+
message.peerId = object.peer_id;
|
|
3127
|
+
}
|
|
3128
|
+
if (object.remote_address !== undefined && object.remote_address !== null) {
|
|
3129
|
+
message.remoteAddress = object.remote_address;
|
|
3130
|
+
}
|
|
3131
|
+
return message;
|
|
3132
|
+
},
|
|
3133
|
+
toAmino(message) {
|
|
3134
|
+
const obj = {};
|
|
3135
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3136
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
3137
|
+
obj.remote_address = message.remoteAddress === "" ? undefined : message.remoteAddress;
|
|
3138
|
+
return obj;
|
|
3139
|
+
},
|
|
3140
|
+
fromAminoMsg(object) {
|
|
3141
|
+
return exports.MsgRequestReputationAttestation.fromAmino(object.value);
|
|
3142
|
+
},
|
|
3143
|
+
fromProtoMsg(message) {
|
|
3144
|
+
return exports.MsgRequestReputationAttestation.decode(message.value);
|
|
3145
|
+
},
|
|
3146
|
+
toProto(message) {
|
|
3147
|
+
return exports.MsgRequestReputationAttestation.encode(message).finish();
|
|
3148
|
+
},
|
|
3149
|
+
toProtoMsg(message) {
|
|
3150
|
+
return {
|
|
3151
|
+
typeUrl: "/sparkdream.federation.v1.MsgRequestReputationAttestation",
|
|
3152
|
+
value: exports.MsgRequestReputationAttestation.encode(message).finish()
|
|
3153
|
+
};
|
|
3154
|
+
}
|
|
3155
|
+
};
|
|
3156
|
+
function createBaseMsgRequestReputationAttestationResponse() {
|
|
3157
|
+
return {};
|
|
3158
|
+
}
|
|
3159
|
+
/**
|
|
3160
|
+
* @name MsgRequestReputationAttestationResponse
|
|
3161
|
+
* @package sparkdream.federation.v1
|
|
3162
|
+
* @see proto type: sparkdream.federation.v1.MsgRequestReputationAttestationResponse
|
|
3163
|
+
*/
|
|
3164
|
+
exports.MsgRequestReputationAttestationResponse = {
|
|
3165
|
+
typeUrl: "/sparkdream.federation.v1.MsgRequestReputationAttestationResponse",
|
|
3166
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3167
|
+
return writer;
|
|
3168
|
+
},
|
|
3169
|
+
decode(input, length) {
|
|
3170
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3171
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3172
|
+
const message = createBaseMsgRequestReputationAttestationResponse();
|
|
3173
|
+
while (reader.pos < end) {
|
|
3174
|
+
const tag = reader.uint32();
|
|
3175
|
+
switch (tag >>> 3) {
|
|
3176
|
+
default:
|
|
3177
|
+
reader.skipType(tag & 7);
|
|
3178
|
+
break;
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
return message;
|
|
3182
|
+
},
|
|
3183
|
+
fromPartial(_) {
|
|
3184
|
+
const message = createBaseMsgRequestReputationAttestationResponse();
|
|
3185
|
+
return message;
|
|
3186
|
+
},
|
|
3187
|
+
fromAmino(_) {
|
|
3188
|
+
const message = createBaseMsgRequestReputationAttestationResponse();
|
|
3189
|
+
return message;
|
|
3190
|
+
},
|
|
3191
|
+
toAmino(_) {
|
|
3192
|
+
const obj = {};
|
|
3193
|
+
return obj;
|
|
3194
|
+
},
|
|
3195
|
+
fromAminoMsg(object) {
|
|
3196
|
+
return exports.MsgRequestReputationAttestationResponse.fromAmino(object.value);
|
|
3197
|
+
},
|
|
3198
|
+
fromProtoMsg(message) {
|
|
3199
|
+
return exports.MsgRequestReputationAttestationResponse.decode(message.value);
|
|
3200
|
+
},
|
|
3201
|
+
toProto(message) {
|
|
3202
|
+
return exports.MsgRequestReputationAttestationResponse.encode(message).finish();
|
|
3203
|
+
},
|
|
3204
|
+
toProtoMsg(message) {
|
|
3205
|
+
return {
|
|
3206
|
+
typeUrl: "/sparkdream.federation.v1.MsgRequestReputationAttestationResponse",
|
|
3207
|
+
value: exports.MsgRequestReputationAttestationResponse.encode(message).finish()
|
|
3208
|
+
};
|
|
3209
|
+
}
|
|
3210
|
+
};
|
|
3211
|
+
function createBaseMsgBondVerifier() {
|
|
3212
|
+
return {
|
|
3213
|
+
creator: "",
|
|
3214
|
+
amount: ""
|
|
3215
|
+
};
|
|
3216
|
+
}
|
|
3217
|
+
/**
|
|
3218
|
+
* @name MsgBondVerifier
|
|
3219
|
+
* @package sparkdream.federation.v1
|
|
3220
|
+
* @see proto type: sparkdream.federation.v1.MsgBondVerifier
|
|
3221
|
+
*/
|
|
3222
|
+
exports.MsgBondVerifier = {
|
|
3223
|
+
typeUrl: "/sparkdream.federation.v1.MsgBondVerifier",
|
|
3224
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3225
|
+
if (message.creator !== "") {
|
|
3226
|
+
writer.uint32(10).string(message.creator);
|
|
3227
|
+
}
|
|
3228
|
+
if (message.amount !== "") {
|
|
3229
|
+
writer.uint32(18).string(message.amount);
|
|
3230
|
+
}
|
|
3231
|
+
return writer;
|
|
3232
|
+
},
|
|
3233
|
+
decode(input, length) {
|
|
3234
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3235
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3236
|
+
const message = createBaseMsgBondVerifier();
|
|
3237
|
+
while (reader.pos < end) {
|
|
3238
|
+
const tag = reader.uint32();
|
|
3239
|
+
switch (tag >>> 3) {
|
|
3240
|
+
case 1:
|
|
3241
|
+
message.creator = reader.string();
|
|
3242
|
+
break;
|
|
3243
|
+
case 2:
|
|
3244
|
+
message.amount = reader.string();
|
|
3245
|
+
break;
|
|
3246
|
+
default:
|
|
3247
|
+
reader.skipType(tag & 7);
|
|
3248
|
+
break;
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
return message;
|
|
3252
|
+
},
|
|
3253
|
+
fromPartial(object) {
|
|
3254
|
+
const message = createBaseMsgBondVerifier();
|
|
3255
|
+
message.creator = object.creator ?? "";
|
|
3256
|
+
message.amount = object.amount ?? "";
|
|
3257
|
+
return message;
|
|
3258
|
+
},
|
|
3259
|
+
fromAmino(object) {
|
|
3260
|
+
const message = createBaseMsgBondVerifier();
|
|
3261
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3262
|
+
message.creator = object.creator;
|
|
3263
|
+
}
|
|
3264
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
3265
|
+
message.amount = object.amount;
|
|
3266
|
+
}
|
|
3267
|
+
return message;
|
|
3268
|
+
},
|
|
3269
|
+
toAmino(message) {
|
|
3270
|
+
const obj = {};
|
|
3271
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3272
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
3273
|
+
return obj;
|
|
3274
|
+
},
|
|
3275
|
+
fromAminoMsg(object) {
|
|
3276
|
+
return exports.MsgBondVerifier.fromAmino(object.value);
|
|
3277
|
+
},
|
|
3278
|
+
fromProtoMsg(message) {
|
|
3279
|
+
return exports.MsgBondVerifier.decode(message.value);
|
|
3280
|
+
},
|
|
3281
|
+
toProto(message) {
|
|
3282
|
+
return exports.MsgBondVerifier.encode(message).finish();
|
|
3283
|
+
},
|
|
3284
|
+
toProtoMsg(message) {
|
|
3285
|
+
return {
|
|
3286
|
+
typeUrl: "/sparkdream.federation.v1.MsgBondVerifier",
|
|
3287
|
+
value: exports.MsgBondVerifier.encode(message).finish()
|
|
3288
|
+
};
|
|
3289
|
+
}
|
|
3290
|
+
};
|
|
3291
|
+
function createBaseMsgBondVerifierResponse() {
|
|
3292
|
+
return {};
|
|
3293
|
+
}
|
|
3294
|
+
/**
|
|
3295
|
+
* @name MsgBondVerifierResponse
|
|
3296
|
+
* @package sparkdream.federation.v1
|
|
3297
|
+
* @see proto type: sparkdream.federation.v1.MsgBondVerifierResponse
|
|
3298
|
+
*/
|
|
3299
|
+
exports.MsgBondVerifierResponse = {
|
|
3300
|
+
typeUrl: "/sparkdream.federation.v1.MsgBondVerifierResponse",
|
|
3301
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3302
|
+
return writer;
|
|
3303
|
+
},
|
|
3304
|
+
decode(input, length) {
|
|
3305
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3306
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3307
|
+
const message = createBaseMsgBondVerifierResponse();
|
|
3308
|
+
while (reader.pos < end) {
|
|
3309
|
+
const tag = reader.uint32();
|
|
3310
|
+
switch (tag >>> 3) {
|
|
3311
|
+
default:
|
|
3312
|
+
reader.skipType(tag & 7);
|
|
3313
|
+
break;
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
return message;
|
|
3317
|
+
},
|
|
3318
|
+
fromPartial(_) {
|
|
3319
|
+
const message = createBaseMsgBondVerifierResponse();
|
|
3320
|
+
return message;
|
|
3321
|
+
},
|
|
3322
|
+
fromAmino(_) {
|
|
3323
|
+
const message = createBaseMsgBondVerifierResponse();
|
|
3324
|
+
return message;
|
|
3325
|
+
},
|
|
3326
|
+
toAmino(_) {
|
|
3327
|
+
const obj = {};
|
|
3328
|
+
return obj;
|
|
3329
|
+
},
|
|
3330
|
+
fromAminoMsg(object) {
|
|
3331
|
+
return exports.MsgBondVerifierResponse.fromAmino(object.value);
|
|
3332
|
+
},
|
|
3333
|
+
fromProtoMsg(message) {
|
|
3334
|
+
return exports.MsgBondVerifierResponse.decode(message.value);
|
|
3335
|
+
},
|
|
3336
|
+
toProto(message) {
|
|
3337
|
+
return exports.MsgBondVerifierResponse.encode(message).finish();
|
|
3338
|
+
},
|
|
3339
|
+
toProtoMsg(message) {
|
|
3340
|
+
return {
|
|
3341
|
+
typeUrl: "/sparkdream.federation.v1.MsgBondVerifierResponse",
|
|
3342
|
+
value: exports.MsgBondVerifierResponse.encode(message).finish()
|
|
3343
|
+
};
|
|
3344
|
+
}
|
|
3345
|
+
};
|
|
3346
|
+
function createBaseMsgUnbondVerifier() {
|
|
3347
|
+
return {
|
|
3348
|
+
creator: "",
|
|
3349
|
+
amount: ""
|
|
3350
|
+
};
|
|
3351
|
+
}
|
|
3352
|
+
/**
|
|
3353
|
+
* @name MsgUnbondVerifier
|
|
3354
|
+
* @package sparkdream.federation.v1
|
|
3355
|
+
* @see proto type: sparkdream.federation.v1.MsgUnbondVerifier
|
|
3356
|
+
*/
|
|
3357
|
+
exports.MsgUnbondVerifier = {
|
|
3358
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnbondVerifier",
|
|
3359
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3360
|
+
if (message.creator !== "") {
|
|
3361
|
+
writer.uint32(10).string(message.creator);
|
|
3362
|
+
}
|
|
3363
|
+
if (message.amount !== "") {
|
|
3364
|
+
writer.uint32(18).string(message.amount);
|
|
3365
|
+
}
|
|
3366
|
+
return writer;
|
|
3367
|
+
},
|
|
3368
|
+
decode(input, length) {
|
|
3369
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3370
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3371
|
+
const message = createBaseMsgUnbondVerifier();
|
|
3372
|
+
while (reader.pos < end) {
|
|
3373
|
+
const tag = reader.uint32();
|
|
3374
|
+
switch (tag >>> 3) {
|
|
3375
|
+
case 1:
|
|
3376
|
+
message.creator = reader.string();
|
|
3377
|
+
break;
|
|
3378
|
+
case 2:
|
|
3379
|
+
message.amount = reader.string();
|
|
3380
|
+
break;
|
|
3381
|
+
default:
|
|
3382
|
+
reader.skipType(tag & 7);
|
|
3383
|
+
break;
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
return message;
|
|
3387
|
+
},
|
|
3388
|
+
fromPartial(object) {
|
|
3389
|
+
const message = createBaseMsgUnbondVerifier();
|
|
3390
|
+
message.creator = object.creator ?? "";
|
|
3391
|
+
message.amount = object.amount ?? "";
|
|
3392
|
+
return message;
|
|
3393
|
+
},
|
|
3394
|
+
fromAmino(object) {
|
|
3395
|
+
const message = createBaseMsgUnbondVerifier();
|
|
3396
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3397
|
+
message.creator = object.creator;
|
|
3398
|
+
}
|
|
3399
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
3400
|
+
message.amount = object.amount;
|
|
3401
|
+
}
|
|
3402
|
+
return message;
|
|
3403
|
+
},
|
|
3404
|
+
toAmino(message) {
|
|
3405
|
+
const obj = {};
|
|
3406
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3407
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
3408
|
+
return obj;
|
|
3409
|
+
},
|
|
3410
|
+
fromAminoMsg(object) {
|
|
3411
|
+
return exports.MsgUnbondVerifier.fromAmino(object.value);
|
|
3412
|
+
},
|
|
3413
|
+
fromProtoMsg(message) {
|
|
3414
|
+
return exports.MsgUnbondVerifier.decode(message.value);
|
|
3415
|
+
},
|
|
3416
|
+
toProto(message) {
|
|
3417
|
+
return exports.MsgUnbondVerifier.encode(message).finish();
|
|
3418
|
+
},
|
|
3419
|
+
toProtoMsg(message) {
|
|
3420
|
+
return {
|
|
3421
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnbondVerifier",
|
|
3422
|
+
value: exports.MsgUnbondVerifier.encode(message).finish()
|
|
3423
|
+
};
|
|
3424
|
+
}
|
|
3425
|
+
};
|
|
3426
|
+
function createBaseMsgUnbondVerifierResponse() {
|
|
3427
|
+
return {};
|
|
3428
|
+
}
|
|
3429
|
+
/**
|
|
3430
|
+
* @name MsgUnbondVerifierResponse
|
|
3431
|
+
* @package sparkdream.federation.v1
|
|
3432
|
+
* @see proto type: sparkdream.federation.v1.MsgUnbondVerifierResponse
|
|
3433
|
+
*/
|
|
3434
|
+
exports.MsgUnbondVerifierResponse = {
|
|
3435
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnbondVerifierResponse",
|
|
3436
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3437
|
+
return writer;
|
|
3438
|
+
},
|
|
3439
|
+
decode(input, length) {
|
|
3440
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3441
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3442
|
+
const message = createBaseMsgUnbondVerifierResponse();
|
|
3443
|
+
while (reader.pos < end) {
|
|
3444
|
+
const tag = reader.uint32();
|
|
3445
|
+
switch (tag >>> 3) {
|
|
3446
|
+
default:
|
|
3447
|
+
reader.skipType(tag & 7);
|
|
3448
|
+
break;
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
return message;
|
|
3452
|
+
},
|
|
3453
|
+
fromPartial(_) {
|
|
3454
|
+
const message = createBaseMsgUnbondVerifierResponse();
|
|
3455
|
+
return message;
|
|
3456
|
+
},
|
|
3457
|
+
fromAmino(_) {
|
|
3458
|
+
const message = createBaseMsgUnbondVerifierResponse();
|
|
3459
|
+
return message;
|
|
3460
|
+
},
|
|
3461
|
+
toAmino(_) {
|
|
3462
|
+
const obj = {};
|
|
3463
|
+
return obj;
|
|
3464
|
+
},
|
|
3465
|
+
fromAminoMsg(object) {
|
|
3466
|
+
return exports.MsgUnbondVerifierResponse.fromAmino(object.value);
|
|
3467
|
+
},
|
|
3468
|
+
fromProtoMsg(message) {
|
|
3469
|
+
return exports.MsgUnbondVerifierResponse.decode(message.value);
|
|
3470
|
+
},
|
|
3471
|
+
toProto(message) {
|
|
3472
|
+
return exports.MsgUnbondVerifierResponse.encode(message).finish();
|
|
3473
|
+
},
|
|
3474
|
+
toProtoMsg(message) {
|
|
3475
|
+
return {
|
|
3476
|
+
typeUrl: "/sparkdream.federation.v1.MsgUnbondVerifierResponse",
|
|
3477
|
+
value: exports.MsgUnbondVerifierResponse.encode(message).finish()
|
|
3478
|
+
};
|
|
3479
|
+
}
|
|
3480
|
+
};
|
|
3481
|
+
function createBaseMsgVerifyContent() {
|
|
3482
|
+
return {
|
|
3483
|
+
creator: "",
|
|
3484
|
+
contentId: BigInt(0),
|
|
3485
|
+
contentHash: new Uint8Array()
|
|
3486
|
+
};
|
|
3487
|
+
}
|
|
3488
|
+
/**
|
|
3489
|
+
* @name MsgVerifyContent
|
|
3490
|
+
* @package sparkdream.federation.v1
|
|
3491
|
+
* @see proto type: sparkdream.federation.v1.MsgVerifyContent
|
|
3492
|
+
*/
|
|
3493
|
+
exports.MsgVerifyContent = {
|
|
3494
|
+
typeUrl: "/sparkdream.federation.v1.MsgVerifyContent",
|
|
3495
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3496
|
+
if (message.creator !== "") {
|
|
3497
|
+
writer.uint32(10).string(message.creator);
|
|
3498
|
+
}
|
|
3499
|
+
if (message.contentId !== BigInt(0)) {
|
|
3500
|
+
writer.uint32(16).uint64(message.contentId);
|
|
3501
|
+
}
|
|
3502
|
+
if (message.contentHash.length !== 0) {
|
|
3503
|
+
writer.uint32(26).bytes(message.contentHash);
|
|
3504
|
+
}
|
|
3505
|
+
return writer;
|
|
3506
|
+
},
|
|
3507
|
+
decode(input, length) {
|
|
3508
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3509
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3510
|
+
const message = createBaseMsgVerifyContent();
|
|
3511
|
+
while (reader.pos < end) {
|
|
3512
|
+
const tag = reader.uint32();
|
|
3513
|
+
switch (tag >>> 3) {
|
|
3514
|
+
case 1:
|
|
3515
|
+
message.creator = reader.string();
|
|
3516
|
+
break;
|
|
3517
|
+
case 2:
|
|
3518
|
+
message.contentId = reader.uint64();
|
|
3519
|
+
break;
|
|
3520
|
+
case 3:
|
|
3521
|
+
message.contentHash = reader.bytes();
|
|
3522
|
+
break;
|
|
3523
|
+
default:
|
|
3524
|
+
reader.skipType(tag & 7);
|
|
3525
|
+
break;
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
return message;
|
|
3529
|
+
},
|
|
3530
|
+
fromPartial(object) {
|
|
3531
|
+
const message = createBaseMsgVerifyContent();
|
|
3532
|
+
message.creator = object.creator ?? "";
|
|
3533
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
3534
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
3535
|
+
return message;
|
|
3536
|
+
},
|
|
3537
|
+
fromAmino(object) {
|
|
3538
|
+
const message = createBaseMsgVerifyContent();
|
|
3539
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3540
|
+
message.creator = object.creator;
|
|
3541
|
+
}
|
|
3542
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
3543
|
+
message.contentId = BigInt(object.content_id);
|
|
3544
|
+
}
|
|
3545
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
3546
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
3547
|
+
}
|
|
3548
|
+
return message;
|
|
3549
|
+
},
|
|
3550
|
+
toAmino(message) {
|
|
3551
|
+
const obj = {};
|
|
3552
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3553
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
3554
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
3555
|
+
return obj;
|
|
3556
|
+
},
|
|
3557
|
+
fromAminoMsg(object) {
|
|
3558
|
+
return exports.MsgVerifyContent.fromAmino(object.value);
|
|
3559
|
+
},
|
|
3560
|
+
fromProtoMsg(message) {
|
|
3561
|
+
return exports.MsgVerifyContent.decode(message.value);
|
|
3562
|
+
},
|
|
3563
|
+
toProto(message) {
|
|
3564
|
+
return exports.MsgVerifyContent.encode(message).finish();
|
|
3565
|
+
},
|
|
3566
|
+
toProtoMsg(message) {
|
|
3567
|
+
return {
|
|
3568
|
+
typeUrl: "/sparkdream.federation.v1.MsgVerifyContent",
|
|
3569
|
+
value: exports.MsgVerifyContent.encode(message).finish()
|
|
3570
|
+
};
|
|
3571
|
+
}
|
|
3572
|
+
};
|
|
3573
|
+
function createBaseMsgVerifyContentResponse() {
|
|
3574
|
+
return {};
|
|
3575
|
+
}
|
|
3576
|
+
/**
|
|
3577
|
+
* @name MsgVerifyContentResponse
|
|
3578
|
+
* @package sparkdream.federation.v1
|
|
3579
|
+
* @see proto type: sparkdream.federation.v1.MsgVerifyContentResponse
|
|
3580
|
+
*/
|
|
3581
|
+
exports.MsgVerifyContentResponse = {
|
|
3582
|
+
typeUrl: "/sparkdream.federation.v1.MsgVerifyContentResponse",
|
|
3583
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3584
|
+
return writer;
|
|
3585
|
+
},
|
|
3586
|
+
decode(input, length) {
|
|
3587
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3588
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3589
|
+
const message = createBaseMsgVerifyContentResponse();
|
|
3590
|
+
while (reader.pos < end) {
|
|
3591
|
+
const tag = reader.uint32();
|
|
3592
|
+
switch (tag >>> 3) {
|
|
3593
|
+
default:
|
|
3594
|
+
reader.skipType(tag & 7);
|
|
3595
|
+
break;
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
return message;
|
|
3599
|
+
},
|
|
3600
|
+
fromPartial(_) {
|
|
3601
|
+
const message = createBaseMsgVerifyContentResponse();
|
|
3602
|
+
return message;
|
|
3603
|
+
},
|
|
3604
|
+
fromAmino(_) {
|
|
3605
|
+
const message = createBaseMsgVerifyContentResponse();
|
|
3606
|
+
return message;
|
|
3607
|
+
},
|
|
3608
|
+
toAmino(_) {
|
|
3609
|
+
const obj = {};
|
|
3610
|
+
return obj;
|
|
3611
|
+
},
|
|
3612
|
+
fromAminoMsg(object) {
|
|
3613
|
+
return exports.MsgVerifyContentResponse.fromAmino(object.value);
|
|
3614
|
+
},
|
|
3615
|
+
fromProtoMsg(message) {
|
|
3616
|
+
return exports.MsgVerifyContentResponse.decode(message.value);
|
|
3617
|
+
},
|
|
3618
|
+
toProto(message) {
|
|
3619
|
+
return exports.MsgVerifyContentResponse.encode(message).finish();
|
|
3620
|
+
},
|
|
3621
|
+
toProtoMsg(message) {
|
|
3622
|
+
return {
|
|
3623
|
+
typeUrl: "/sparkdream.federation.v1.MsgVerifyContentResponse",
|
|
3624
|
+
value: exports.MsgVerifyContentResponse.encode(message).finish()
|
|
3625
|
+
};
|
|
3626
|
+
}
|
|
3627
|
+
};
|
|
3628
|
+
function createBaseMsgChallengeVerification() {
|
|
3629
|
+
return {
|
|
3630
|
+
creator: "",
|
|
3631
|
+
contentId: BigInt(0),
|
|
3632
|
+
contentHash: new Uint8Array(),
|
|
3633
|
+
evidence: ""
|
|
3634
|
+
};
|
|
3635
|
+
}
|
|
3636
|
+
/**
|
|
3637
|
+
* @name MsgChallengeVerification
|
|
3638
|
+
* @package sparkdream.federation.v1
|
|
3639
|
+
* @see proto type: sparkdream.federation.v1.MsgChallengeVerification
|
|
3640
|
+
*/
|
|
3641
|
+
exports.MsgChallengeVerification = {
|
|
3642
|
+
typeUrl: "/sparkdream.federation.v1.MsgChallengeVerification",
|
|
3643
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3644
|
+
if (message.creator !== "") {
|
|
3645
|
+
writer.uint32(10).string(message.creator);
|
|
3646
|
+
}
|
|
3647
|
+
if (message.contentId !== BigInt(0)) {
|
|
3648
|
+
writer.uint32(16).uint64(message.contentId);
|
|
3649
|
+
}
|
|
3650
|
+
if (message.contentHash.length !== 0) {
|
|
3651
|
+
writer.uint32(26).bytes(message.contentHash);
|
|
3652
|
+
}
|
|
3653
|
+
if (message.evidence !== "") {
|
|
3654
|
+
writer.uint32(34).string(message.evidence);
|
|
3655
|
+
}
|
|
3656
|
+
return writer;
|
|
3657
|
+
},
|
|
3658
|
+
decode(input, length) {
|
|
3659
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3660
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3661
|
+
const message = createBaseMsgChallengeVerification();
|
|
3662
|
+
while (reader.pos < end) {
|
|
3663
|
+
const tag = reader.uint32();
|
|
3664
|
+
switch (tag >>> 3) {
|
|
3665
|
+
case 1:
|
|
3666
|
+
message.creator = reader.string();
|
|
3667
|
+
break;
|
|
3668
|
+
case 2:
|
|
3669
|
+
message.contentId = reader.uint64();
|
|
3670
|
+
break;
|
|
3671
|
+
case 3:
|
|
3672
|
+
message.contentHash = reader.bytes();
|
|
3673
|
+
break;
|
|
3674
|
+
case 4:
|
|
3675
|
+
message.evidence = reader.string();
|
|
3676
|
+
break;
|
|
3677
|
+
default:
|
|
3678
|
+
reader.skipType(tag & 7);
|
|
3679
|
+
break;
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3682
|
+
return message;
|
|
3683
|
+
},
|
|
3684
|
+
fromPartial(object) {
|
|
3685
|
+
const message = createBaseMsgChallengeVerification();
|
|
3686
|
+
message.creator = object.creator ?? "";
|
|
3687
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
3688
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
3689
|
+
message.evidence = object.evidence ?? "";
|
|
3690
|
+
return message;
|
|
3691
|
+
},
|
|
3692
|
+
fromAmino(object) {
|
|
3693
|
+
const message = createBaseMsgChallengeVerification();
|
|
3694
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3695
|
+
message.creator = object.creator;
|
|
3696
|
+
}
|
|
3697
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
3698
|
+
message.contentId = BigInt(object.content_id);
|
|
3699
|
+
}
|
|
3700
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
3701
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
3702
|
+
}
|
|
3703
|
+
if (object.evidence !== undefined && object.evidence !== null) {
|
|
3704
|
+
message.evidence = object.evidence;
|
|
3705
|
+
}
|
|
3706
|
+
return message;
|
|
3707
|
+
},
|
|
3708
|
+
toAmino(message) {
|
|
3709
|
+
const obj = {};
|
|
3710
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3711
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
3712
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
3713
|
+
obj.evidence = message.evidence === "" ? undefined : message.evidence;
|
|
3714
|
+
return obj;
|
|
3715
|
+
},
|
|
3716
|
+
fromAminoMsg(object) {
|
|
3717
|
+
return exports.MsgChallengeVerification.fromAmino(object.value);
|
|
3718
|
+
},
|
|
3719
|
+
fromProtoMsg(message) {
|
|
3720
|
+
return exports.MsgChallengeVerification.decode(message.value);
|
|
3721
|
+
},
|
|
3722
|
+
toProto(message) {
|
|
3723
|
+
return exports.MsgChallengeVerification.encode(message).finish();
|
|
3724
|
+
},
|
|
3725
|
+
toProtoMsg(message) {
|
|
3726
|
+
return {
|
|
3727
|
+
typeUrl: "/sparkdream.federation.v1.MsgChallengeVerification",
|
|
3728
|
+
value: exports.MsgChallengeVerification.encode(message).finish()
|
|
3729
|
+
};
|
|
3730
|
+
}
|
|
3731
|
+
};
|
|
3732
|
+
function createBaseMsgChallengeVerificationResponse() {
|
|
3733
|
+
return {};
|
|
3734
|
+
}
|
|
3735
|
+
/**
|
|
3736
|
+
* @name MsgChallengeVerificationResponse
|
|
3737
|
+
* @package sparkdream.federation.v1
|
|
3738
|
+
* @see proto type: sparkdream.federation.v1.MsgChallengeVerificationResponse
|
|
3739
|
+
*/
|
|
3740
|
+
exports.MsgChallengeVerificationResponse = {
|
|
3741
|
+
typeUrl: "/sparkdream.federation.v1.MsgChallengeVerificationResponse",
|
|
3742
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3743
|
+
return writer;
|
|
3744
|
+
},
|
|
3745
|
+
decode(input, length) {
|
|
3746
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3747
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3748
|
+
const message = createBaseMsgChallengeVerificationResponse();
|
|
3749
|
+
while (reader.pos < end) {
|
|
3750
|
+
const tag = reader.uint32();
|
|
3751
|
+
switch (tag >>> 3) {
|
|
3752
|
+
default:
|
|
3753
|
+
reader.skipType(tag & 7);
|
|
3754
|
+
break;
|
|
3755
|
+
}
|
|
3756
|
+
}
|
|
3757
|
+
return message;
|
|
3758
|
+
},
|
|
3759
|
+
fromPartial(_) {
|
|
3760
|
+
const message = createBaseMsgChallengeVerificationResponse();
|
|
3761
|
+
return message;
|
|
3762
|
+
},
|
|
3763
|
+
fromAmino(_) {
|
|
3764
|
+
const message = createBaseMsgChallengeVerificationResponse();
|
|
3765
|
+
return message;
|
|
3766
|
+
},
|
|
3767
|
+
toAmino(_) {
|
|
3768
|
+
const obj = {};
|
|
3769
|
+
return obj;
|
|
3770
|
+
},
|
|
3771
|
+
fromAminoMsg(object) {
|
|
3772
|
+
return exports.MsgChallengeVerificationResponse.fromAmino(object.value);
|
|
3773
|
+
},
|
|
3774
|
+
fromProtoMsg(message) {
|
|
3775
|
+
return exports.MsgChallengeVerificationResponse.decode(message.value);
|
|
3776
|
+
},
|
|
3777
|
+
toProto(message) {
|
|
3778
|
+
return exports.MsgChallengeVerificationResponse.encode(message).finish();
|
|
3779
|
+
},
|
|
3780
|
+
toProtoMsg(message) {
|
|
3781
|
+
return {
|
|
3782
|
+
typeUrl: "/sparkdream.federation.v1.MsgChallengeVerificationResponse",
|
|
3783
|
+
value: exports.MsgChallengeVerificationResponse.encode(message).finish()
|
|
3784
|
+
};
|
|
3785
|
+
}
|
|
3786
|
+
};
|
|
3787
|
+
function createBaseMsgSubmitArbiterHash() {
|
|
3788
|
+
return {
|
|
3789
|
+
creator: "",
|
|
3790
|
+
contentId: BigInt(0),
|
|
3791
|
+
contentHash: new Uint8Array()
|
|
3792
|
+
};
|
|
3793
|
+
}
|
|
3794
|
+
/**
|
|
3795
|
+
* @name MsgSubmitArbiterHash
|
|
3796
|
+
* @package sparkdream.federation.v1
|
|
3797
|
+
* @see proto type: sparkdream.federation.v1.MsgSubmitArbiterHash
|
|
3798
|
+
*/
|
|
3799
|
+
exports.MsgSubmitArbiterHash = {
|
|
3800
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitArbiterHash",
|
|
3801
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3802
|
+
if (message.creator !== "") {
|
|
3803
|
+
writer.uint32(10).string(message.creator);
|
|
3804
|
+
}
|
|
3805
|
+
if (message.contentId !== BigInt(0)) {
|
|
3806
|
+
writer.uint32(16).uint64(message.contentId);
|
|
3807
|
+
}
|
|
3808
|
+
if (message.contentHash.length !== 0) {
|
|
3809
|
+
writer.uint32(26).bytes(message.contentHash);
|
|
3810
|
+
}
|
|
3811
|
+
return writer;
|
|
3812
|
+
},
|
|
3813
|
+
decode(input, length) {
|
|
3814
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3815
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3816
|
+
const message = createBaseMsgSubmitArbiterHash();
|
|
3817
|
+
while (reader.pos < end) {
|
|
3818
|
+
const tag = reader.uint32();
|
|
3819
|
+
switch (tag >>> 3) {
|
|
3820
|
+
case 1:
|
|
3821
|
+
message.creator = reader.string();
|
|
3822
|
+
break;
|
|
3823
|
+
case 2:
|
|
3824
|
+
message.contentId = reader.uint64();
|
|
3825
|
+
break;
|
|
3826
|
+
case 3:
|
|
3827
|
+
message.contentHash = reader.bytes();
|
|
3828
|
+
break;
|
|
3829
|
+
default:
|
|
3830
|
+
reader.skipType(tag & 7);
|
|
3831
|
+
break;
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3834
|
+
return message;
|
|
3835
|
+
},
|
|
3836
|
+
fromPartial(object) {
|
|
3837
|
+
const message = createBaseMsgSubmitArbiterHash();
|
|
3838
|
+
message.creator = object.creator ?? "";
|
|
3839
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
3840
|
+
message.contentHash = object.contentHash ?? new Uint8Array();
|
|
3841
|
+
return message;
|
|
3842
|
+
},
|
|
3843
|
+
fromAmino(object) {
|
|
3844
|
+
const message = createBaseMsgSubmitArbiterHash();
|
|
3845
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3846
|
+
message.creator = object.creator;
|
|
3847
|
+
}
|
|
3848
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
3849
|
+
message.contentId = BigInt(object.content_id);
|
|
3850
|
+
}
|
|
3851
|
+
if (object.content_hash !== undefined && object.content_hash !== null) {
|
|
3852
|
+
message.contentHash = (0, helpers_1.bytesFromBase64)(object.content_hash);
|
|
3853
|
+
}
|
|
3854
|
+
return message;
|
|
3855
|
+
},
|
|
3856
|
+
toAmino(message) {
|
|
3857
|
+
const obj = {};
|
|
3858
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3859
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
3860
|
+
obj.content_hash = message.contentHash ? (0, helpers_1.base64FromBytes)(message.contentHash) : undefined;
|
|
3861
|
+
return obj;
|
|
3862
|
+
},
|
|
3863
|
+
fromAminoMsg(object) {
|
|
3864
|
+
return exports.MsgSubmitArbiterHash.fromAmino(object.value);
|
|
3865
|
+
},
|
|
3866
|
+
fromProtoMsg(message) {
|
|
3867
|
+
return exports.MsgSubmitArbiterHash.decode(message.value);
|
|
3868
|
+
},
|
|
3869
|
+
toProto(message) {
|
|
3870
|
+
return exports.MsgSubmitArbiterHash.encode(message).finish();
|
|
3871
|
+
},
|
|
3872
|
+
toProtoMsg(message) {
|
|
3873
|
+
return {
|
|
3874
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitArbiterHash",
|
|
3875
|
+
value: exports.MsgSubmitArbiterHash.encode(message).finish()
|
|
3876
|
+
};
|
|
3877
|
+
}
|
|
3878
|
+
};
|
|
3879
|
+
function createBaseMsgSubmitArbiterHashResponse() {
|
|
3880
|
+
return {};
|
|
3881
|
+
}
|
|
3882
|
+
/**
|
|
3883
|
+
* @name MsgSubmitArbiterHashResponse
|
|
3884
|
+
* @package sparkdream.federation.v1
|
|
3885
|
+
* @see proto type: sparkdream.federation.v1.MsgSubmitArbiterHashResponse
|
|
3886
|
+
*/
|
|
3887
|
+
exports.MsgSubmitArbiterHashResponse = {
|
|
3888
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitArbiterHashResponse",
|
|
3889
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3890
|
+
return writer;
|
|
3891
|
+
},
|
|
3892
|
+
decode(input, length) {
|
|
3893
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3894
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3895
|
+
const message = createBaseMsgSubmitArbiterHashResponse();
|
|
3896
|
+
while (reader.pos < end) {
|
|
3897
|
+
const tag = reader.uint32();
|
|
3898
|
+
switch (tag >>> 3) {
|
|
3899
|
+
default:
|
|
3900
|
+
reader.skipType(tag & 7);
|
|
3901
|
+
break;
|
|
3902
|
+
}
|
|
3903
|
+
}
|
|
3904
|
+
return message;
|
|
3905
|
+
},
|
|
3906
|
+
fromPartial(_) {
|
|
3907
|
+
const message = createBaseMsgSubmitArbiterHashResponse();
|
|
3908
|
+
return message;
|
|
3909
|
+
},
|
|
3910
|
+
fromAmino(_) {
|
|
3911
|
+
const message = createBaseMsgSubmitArbiterHashResponse();
|
|
3912
|
+
return message;
|
|
3913
|
+
},
|
|
3914
|
+
toAmino(_) {
|
|
3915
|
+
const obj = {};
|
|
3916
|
+
return obj;
|
|
3917
|
+
},
|
|
3918
|
+
fromAminoMsg(object) {
|
|
3919
|
+
return exports.MsgSubmitArbiterHashResponse.fromAmino(object.value);
|
|
3920
|
+
},
|
|
3921
|
+
fromProtoMsg(message) {
|
|
3922
|
+
return exports.MsgSubmitArbiterHashResponse.decode(message.value);
|
|
3923
|
+
},
|
|
3924
|
+
toProto(message) {
|
|
3925
|
+
return exports.MsgSubmitArbiterHashResponse.encode(message).finish();
|
|
3926
|
+
},
|
|
3927
|
+
toProtoMsg(message) {
|
|
3928
|
+
return {
|
|
3929
|
+
typeUrl: "/sparkdream.federation.v1.MsgSubmitArbiterHashResponse",
|
|
3930
|
+
value: exports.MsgSubmitArbiterHashResponse.encode(message).finish()
|
|
3931
|
+
};
|
|
3932
|
+
}
|
|
3933
|
+
};
|
|
3934
|
+
function createBaseMsgEscalateChallenge() {
|
|
3935
|
+
return {
|
|
3936
|
+
creator: "",
|
|
3937
|
+
contentId: BigInt(0)
|
|
3938
|
+
};
|
|
3939
|
+
}
|
|
3940
|
+
/**
|
|
3941
|
+
* @name MsgEscalateChallenge
|
|
3942
|
+
* @package sparkdream.federation.v1
|
|
3943
|
+
* @see proto type: sparkdream.federation.v1.MsgEscalateChallenge
|
|
3944
|
+
*/
|
|
3945
|
+
exports.MsgEscalateChallenge = {
|
|
3946
|
+
typeUrl: "/sparkdream.federation.v1.MsgEscalateChallenge",
|
|
3947
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3948
|
+
if (message.creator !== "") {
|
|
3949
|
+
writer.uint32(10).string(message.creator);
|
|
3950
|
+
}
|
|
3951
|
+
if (message.contentId !== BigInt(0)) {
|
|
3952
|
+
writer.uint32(16).uint64(message.contentId);
|
|
3953
|
+
}
|
|
3954
|
+
return writer;
|
|
3955
|
+
},
|
|
3956
|
+
decode(input, length) {
|
|
3957
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3958
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3959
|
+
const message = createBaseMsgEscalateChallenge();
|
|
3960
|
+
while (reader.pos < end) {
|
|
3961
|
+
const tag = reader.uint32();
|
|
3962
|
+
switch (tag >>> 3) {
|
|
3963
|
+
case 1:
|
|
3964
|
+
message.creator = reader.string();
|
|
3965
|
+
break;
|
|
3966
|
+
case 2:
|
|
3967
|
+
message.contentId = reader.uint64();
|
|
3968
|
+
break;
|
|
3969
|
+
default:
|
|
3970
|
+
reader.skipType(tag & 7);
|
|
3971
|
+
break;
|
|
3972
|
+
}
|
|
3973
|
+
}
|
|
3974
|
+
return message;
|
|
3975
|
+
},
|
|
3976
|
+
fromPartial(object) {
|
|
3977
|
+
const message = createBaseMsgEscalateChallenge();
|
|
3978
|
+
message.creator = object.creator ?? "";
|
|
3979
|
+
message.contentId = object.contentId !== undefined && object.contentId !== null ? BigInt(object.contentId.toString()) : BigInt(0);
|
|
3980
|
+
return message;
|
|
3981
|
+
},
|
|
3982
|
+
fromAmino(object) {
|
|
3983
|
+
const message = createBaseMsgEscalateChallenge();
|
|
3984
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3985
|
+
message.creator = object.creator;
|
|
3986
|
+
}
|
|
3987
|
+
if (object.content_id !== undefined && object.content_id !== null) {
|
|
3988
|
+
message.contentId = BigInt(object.content_id);
|
|
3989
|
+
}
|
|
3990
|
+
return message;
|
|
3991
|
+
},
|
|
3992
|
+
toAmino(message) {
|
|
3993
|
+
const obj = {};
|
|
3994
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3995
|
+
obj.content_id = message.contentId !== BigInt(0) ? message.contentId?.toString() : undefined;
|
|
3996
|
+
return obj;
|
|
3997
|
+
},
|
|
3998
|
+
fromAminoMsg(object) {
|
|
3999
|
+
return exports.MsgEscalateChallenge.fromAmino(object.value);
|
|
4000
|
+
},
|
|
4001
|
+
fromProtoMsg(message) {
|
|
4002
|
+
return exports.MsgEscalateChallenge.decode(message.value);
|
|
4003
|
+
},
|
|
4004
|
+
toProto(message) {
|
|
4005
|
+
return exports.MsgEscalateChallenge.encode(message).finish();
|
|
4006
|
+
},
|
|
4007
|
+
toProtoMsg(message) {
|
|
4008
|
+
return {
|
|
4009
|
+
typeUrl: "/sparkdream.federation.v1.MsgEscalateChallenge",
|
|
4010
|
+
value: exports.MsgEscalateChallenge.encode(message).finish()
|
|
4011
|
+
};
|
|
4012
|
+
}
|
|
4013
|
+
};
|
|
4014
|
+
function createBaseMsgEscalateChallengeResponse() {
|
|
4015
|
+
return {};
|
|
4016
|
+
}
|
|
4017
|
+
/**
|
|
4018
|
+
* @name MsgEscalateChallengeResponse
|
|
4019
|
+
* @package sparkdream.federation.v1
|
|
4020
|
+
* @see proto type: sparkdream.federation.v1.MsgEscalateChallengeResponse
|
|
4021
|
+
*/
|
|
4022
|
+
exports.MsgEscalateChallengeResponse = {
|
|
4023
|
+
typeUrl: "/sparkdream.federation.v1.MsgEscalateChallengeResponse",
|
|
4024
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
4025
|
+
return writer;
|
|
4026
|
+
},
|
|
4027
|
+
decode(input, length) {
|
|
4028
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
4029
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4030
|
+
const message = createBaseMsgEscalateChallengeResponse();
|
|
4031
|
+
while (reader.pos < end) {
|
|
4032
|
+
const tag = reader.uint32();
|
|
4033
|
+
switch (tag >>> 3) {
|
|
4034
|
+
default:
|
|
4035
|
+
reader.skipType(tag & 7);
|
|
4036
|
+
break;
|
|
4037
|
+
}
|
|
4038
|
+
}
|
|
4039
|
+
return message;
|
|
4040
|
+
},
|
|
4041
|
+
fromPartial(_) {
|
|
4042
|
+
const message = createBaseMsgEscalateChallengeResponse();
|
|
4043
|
+
return message;
|
|
4044
|
+
},
|
|
4045
|
+
fromAmino(_) {
|
|
4046
|
+
const message = createBaseMsgEscalateChallengeResponse();
|
|
4047
|
+
return message;
|
|
4048
|
+
},
|
|
4049
|
+
toAmino(_) {
|
|
4050
|
+
const obj = {};
|
|
4051
|
+
return obj;
|
|
4052
|
+
},
|
|
4053
|
+
fromAminoMsg(object) {
|
|
4054
|
+
return exports.MsgEscalateChallengeResponse.fromAmino(object.value);
|
|
4055
|
+
},
|
|
4056
|
+
fromProtoMsg(message) {
|
|
4057
|
+
return exports.MsgEscalateChallengeResponse.decode(message.value);
|
|
4058
|
+
},
|
|
4059
|
+
toProto(message) {
|
|
4060
|
+
return exports.MsgEscalateChallengeResponse.encode(message).finish();
|
|
4061
|
+
},
|
|
4062
|
+
toProtoMsg(message) {
|
|
4063
|
+
return {
|
|
4064
|
+
typeUrl: "/sparkdream.federation.v1.MsgEscalateChallengeResponse",
|
|
4065
|
+
value: exports.MsgEscalateChallengeResponse.encode(message).finish()
|
|
4066
|
+
};
|
|
4067
|
+
}
|
|
4068
|
+
};
|
|
4069
|
+
function createBaseMsgUpdateOperationalParams() {
|
|
4070
|
+
return {
|
|
4071
|
+
authority: "",
|
|
4072
|
+
operationalParams: params_1.FederationOperationalParams.fromPartial({})
|
|
4073
|
+
};
|
|
4074
|
+
}
|
|
4075
|
+
/**
|
|
4076
|
+
* @name MsgUpdateOperationalParams
|
|
4077
|
+
* @package sparkdream.federation.v1
|
|
4078
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateOperationalParams
|
|
4079
|
+
*/
|
|
4080
|
+
exports.MsgUpdateOperationalParams = {
|
|
4081
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateOperationalParams",
|
|
4082
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
4083
|
+
if (message.authority !== "") {
|
|
4084
|
+
writer.uint32(10).string(message.authority);
|
|
4085
|
+
}
|
|
4086
|
+
if (message.operationalParams !== undefined) {
|
|
4087
|
+
params_1.FederationOperationalParams.encode(message.operationalParams, writer.uint32(18).fork()).ldelim();
|
|
4088
|
+
}
|
|
4089
|
+
return writer;
|
|
4090
|
+
},
|
|
4091
|
+
decode(input, length) {
|
|
4092
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
4093
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4094
|
+
const message = createBaseMsgUpdateOperationalParams();
|
|
4095
|
+
while (reader.pos < end) {
|
|
4096
|
+
const tag = reader.uint32();
|
|
4097
|
+
switch (tag >>> 3) {
|
|
4098
|
+
case 1:
|
|
4099
|
+
message.authority = reader.string();
|
|
4100
|
+
break;
|
|
4101
|
+
case 2:
|
|
4102
|
+
message.operationalParams = params_1.FederationOperationalParams.decode(reader, reader.uint32());
|
|
4103
|
+
break;
|
|
4104
|
+
default:
|
|
4105
|
+
reader.skipType(tag & 7);
|
|
4106
|
+
break;
|
|
4107
|
+
}
|
|
4108
|
+
}
|
|
4109
|
+
return message;
|
|
4110
|
+
},
|
|
4111
|
+
fromPartial(object) {
|
|
4112
|
+
const message = createBaseMsgUpdateOperationalParams();
|
|
4113
|
+
message.authority = object.authority ?? "";
|
|
4114
|
+
message.operationalParams = object.operationalParams !== undefined && object.operationalParams !== null ? params_1.FederationOperationalParams.fromPartial(object.operationalParams) : undefined;
|
|
4115
|
+
return message;
|
|
4116
|
+
},
|
|
4117
|
+
fromAmino(object) {
|
|
4118
|
+
const message = createBaseMsgUpdateOperationalParams();
|
|
4119
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
4120
|
+
message.authority = object.authority;
|
|
4121
|
+
}
|
|
4122
|
+
if (object.operational_params !== undefined && object.operational_params !== null) {
|
|
4123
|
+
message.operationalParams = params_1.FederationOperationalParams.fromAmino(object.operational_params);
|
|
4124
|
+
}
|
|
4125
|
+
return message;
|
|
4126
|
+
},
|
|
4127
|
+
toAmino(message) {
|
|
4128
|
+
const obj = {};
|
|
4129
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
4130
|
+
obj.operational_params = message.operationalParams ? params_1.FederationOperationalParams.toAmino(message.operationalParams) : undefined;
|
|
4131
|
+
return obj;
|
|
4132
|
+
},
|
|
4133
|
+
fromAminoMsg(object) {
|
|
4134
|
+
return exports.MsgUpdateOperationalParams.fromAmino(object.value);
|
|
4135
|
+
},
|
|
4136
|
+
fromProtoMsg(message) {
|
|
4137
|
+
return exports.MsgUpdateOperationalParams.decode(message.value);
|
|
4138
|
+
},
|
|
4139
|
+
toProto(message) {
|
|
4140
|
+
return exports.MsgUpdateOperationalParams.encode(message).finish();
|
|
4141
|
+
},
|
|
4142
|
+
toProtoMsg(message) {
|
|
4143
|
+
return {
|
|
4144
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateOperationalParams",
|
|
4145
|
+
value: exports.MsgUpdateOperationalParams.encode(message).finish()
|
|
4146
|
+
};
|
|
4147
|
+
}
|
|
4148
|
+
};
|
|
4149
|
+
function createBaseMsgUpdateOperationalParamsResponse() {
|
|
4150
|
+
return {};
|
|
4151
|
+
}
|
|
4152
|
+
/**
|
|
4153
|
+
* @name MsgUpdateOperationalParamsResponse
|
|
4154
|
+
* @package sparkdream.federation.v1
|
|
4155
|
+
* @see proto type: sparkdream.federation.v1.MsgUpdateOperationalParamsResponse
|
|
4156
|
+
*/
|
|
4157
|
+
exports.MsgUpdateOperationalParamsResponse = {
|
|
4158
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateOperationalParamsResponse",
|
|
4159
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
4160
|
+
return writer;
|
|
4161
|
+
},
|
|
4162
|
+
decode(input, length) {
|
|
4163
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
4164
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4165
|
+
const message = createBaseMsgUpdateOperationalParamsResponse();
|
|
4166
|
+
while (reader.pos < end) {
|
|
4167
|
+
const tag = reader.uint32();
|
|
4168
|
+
switch (tag >>> 3) {
|
|
4169
|
+
default:
|
|
4170
|
+
reader.skipType(tag & 7);
|
|
4171
|
+
break;
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
return message;
|
|
4175
|
+
},
|
|
4176
|
+
fromPartial(_) {
|
|
4177
|
+
const message = createBaseMsgUpdateOperationalParamsResponse();
|
|
4178
|
+
return message;
|
|
4179
|
+
},
|
|
4180
|
+
fromAmino(_) {
|
|
4181
|
+
const message = createBaseMsgUpdateOperationalParamsResponse();
|
|
4182
|
+
return message;
|
|
4183
|
+
},
|
|
4184
|
+
toAmino(_) {
|
|
4185
|
+
const obj = {};
|
|
4186
|
+
return obj;
|
|
4187
|
+
},
|
|
4188
|
+
fromAminoMsg(object) {
|
|
4189
|
+
return exports.MsgUpdateOperationalParamsResponse.fromAmino(object.value);
|
|
4190
|
+
},
|
|
4191
|
+
fromProtoMsg(message) {
|
|
4192
|
+
return exports.MsgUpdateOperationalParamsResponse.decode(message.value);
|
|
4193
|
+
},
|
|
4194
|
+
toProto(message) {
|
|
4195
|
+
return exports.MsgUpdateOperationalParamsResponse.encode(message).finish();
|
|
4196
|
+
},
|
|
4197
|
+
toProtoMsg(message) {
|
|
4198
|
+
return {
|
|
4199
|
+
typeUrl: "/sparkdream.federation.v1.MsgUpdateOperationalParamsResponse",
|
|
4200
|
+
value: exports.MsgUpdateOperationalParamsResponse.encode(message).finish()
|
|
4201
|
+
};
|
|
4202
|
+
}
|
|
4203
|
+
};
|