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