@sparkdreamnft/sparkdreamjs 0.0.41 → 0.0.43

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.
@@ -155,7 +155,8 @@ function createBaseMsgRegisterPeer() {
155
155
  ibcChannelId: "",
156
156
  metadata: "",
157
157
  controllerGroup: "",
158
- peerIdentity: undefined
158
+ peerIdentity: undefined,
159
+ ibcTransferChannelId: ""
159
160
  };
160
161
  }
161
162
  /**
@@ -191,6 +192,9 @@ export const MsgRegisterPeer = {
191
192
  if (message.peerIdentity !== undefined) {
192
193
  ChainIdentity.encode(message.peerIdentity, writer.uint32(66).fork()).ldelim();
193
194
  }
195
+ if (message.ibcTransferChannelId !== "") {
196
+ writer.uint32(74).string(message.ibcTransferChannelId);
197
+ }
194
198
  return writer;
195
199
  },
196
200
  decode(input, length) {
@@ -224,6 +228,9 @@ export const MsgRegisterPeer = {
224
228
  case 8:
225
229
  message.peerIdentity = ChainIdentity.decode(reader, reader.uint32());
226
230
  break;
231
+ case 9:
232
+ message.ibcTransferChannelId = reader.string();
233
+ break;
227
234
  default:
228
235
  reader.skipType(tag & 7);
229
236
  break;
@@ -241,6 +248,7 @@ export const MsgRegisterPeer = {
241
248
  message.metadata = object.metadata ?? "";
242
249
  message.controllerGroup = object.controllerGroup ?? "";
243
250
  message.peerIdentity = object.peerIdentity !== undefined && object.peerIdentity !== null ? ChainIdentity.fromPartial(object.peerIdentity) : undefined;
251
+ message.ibcTransferChannelId = object.ibcTransferChannelId ?? "";
244
252
  return message;
245
253
  },
246
254
  fromAmino(object) {
@@ -269,6 +277,9 @@ export const MsgRegisterPeer = {
269
277
  if (object.peer_identity !== undefined && object.peer_identity !== null) {
270
278
  message.peerIdentity = ChainIdentity.fromAmino(object.peer_identity);
271
279
  }
280
+ if (object.ibc_transfer_channel_id !== undefined && object.ibc_transfer_channel_id !== null) {
281
+ message.ibcTransferChannelId = object.ibc_transfer_channel_id;
282
+ }
272
283
  return message;
273
284
  },
274
285
  toAmino(message) {
@@ -281,6 +292,7 @@ export const MsgRegisterPeer = {
281
292
  obj.metadata = message.metadata === "" ? undefined : message.metadata;
282
293
  obj.controller_group = message.controllerGroup === "" ? undefined : message.controllerGroup;
283
294
  obj.peer_identity = message.peerIdentity ? ChainIdentity.toAmino(message.peerIdentity) : undefined;
295
+ obj.ibc_transfer_channel_id = message.ibcTransferChannelId === "" ? undefined : message.ibcTransferChannelId;
284
296
  return obj;
285
297
  },
286
298
  fromAminoMsg(object) {
@@ -464,7 +464,8 @@ function createBasePeer() {
464
464
  metadata: "",
465
465
  removedAt: BigInt(0),
466
466
  controllerGroup: "",
467
- peerIdentity: undefined
467
+ peerIdentity: undefined,
468
+ ibcTransferChannelId: ""
468
469
  };
469
470
  }
470
471
  /**
@@ -512,6 +513,9 @@ export const Peer = {
512
513
  if (message.peerIdentity !== undefined) {
513
514
  ChainIdentity.encode(message.peerIdentity, writer.uint32(98).fork()).ldelim();
514
515
  }
516
+ if (message.ibcTransferChannelId !== "") {
517
+ writer.uint32(106).string(message.ibcTransferChannelId);
518
+ }
515
519
  return writer;
516
520
  },
517
521
  decode(input, length) {
@@ -557,6 +561,9 @@ export const Peer = {
557
561
  case 12:
558
562
  message.peerIdentity = ChainIdentity.decode(reader, reader.uint32());
559
563
  break;
564
+ case 13:
565
+ message.ibcTransferChannelId = reader.string();
566
+ break;
560
567
  default:
561
568
  reader.skipType(tag & 7);
562
569
  break;
@@ -578,6 +585,7 @@ export const Peer = {
578
585
  message.removedAt = object.removedAt !== undefined && object.removedAt !== null ? BigInt(object.removedAt.toString()) : BigInt(0);
579
586
  message.controllerGroup = object.controllerGroup ?? "";
580
587
  message.peerIdentity = object.peerIdentity !== undefined && object.peerIdentity !== null ? ChainIdentity.fromPartial(object.peerIdentity) : undefined;
588
+ message.ibcTransferChannelId = object.ibcTransferChannelId ?? "";
581
589
  return message;
582
590
  },
583
591
  fromAmino(object) {
@@ -618,6 +626,9 @@ export const Peer = {
618
626
  if (object.peer_identity !== undefined && object.peer_identity !== null) {
619
627
  message.peerIdentity = ChainIdentity.fromAmino(object.peer_identity);
620
628
  }
629
+ if (object.ibc_transfer_channel_id !== undefined && object.ibc_transfer_channel_id !== null) {
630
+ message.ibcTransferChannelId = object.ibc_transfer_channel_id;
631
+ }
621
632
  return message;
622
633
  },
623
634
  toAmino(message) {
@@ -634,6 +645,7 @@ export const Peer = {
634
645
  obj.removed_at = message.removedAt !== BigInt(0) ? message.removedAt?.toString() : undefined;
635
646
  obj.controller_group = message.controllerGroup === "" ? undefined : message.controllerGroup;
636
647
  obj.peer_identity = message.peerIdentity ? ChainIdentity.toAmino(message.peerIdentity) : undefined;
648
+ obj.ibc_transfer_channel_id = message.ibcTransferChannelId === "" ? undefined : message.ibcTransferChannelId;
637
649
  return obj;
638
650
  },
639
651
  fromAminoMsg(object) {
@@ -664,7 +676,9 @@ function createBasePeerPolicy() {
664
676
  acceptReputationAttestations: false,
665
677
  requireReview: false,
666
678
  blockedIdentities: [],
667
- contentHosts: []
679
+ contentHosts: [],
680
+ allowedIdentities: [],
681
+ curation: undefined
668
682
  };
669
683
  }
670
684
  /**
@@ -709,6 +723,12 @@ export const PeerPolicy = {
709
723
  for (const v of message.contentHosts) {
710
724
  writer.uint32(90).string(v);
711
725
  }
726
+ for (const v of message.allowedIdentities) {
727
+ writer.uint32(98).string(v);
728
+ }
729
+ if (message.curation !== undefined) {
730
+ IdentityCuration.encode(message.curation, writer.uint32(106).fork()).ldelim();
731
+ }
712
732
  return writer;
713
733
  },
714
734
  decode(input, length) {
@@ -751,6 +771,12 @@ export const PeerPolicy = {
751
771
  case 11:
752
772
  message.contentHosts.push(reader.string());
753
773
  break;
774
+ case 12:
775
+ message.allowedIdentities.push(reader.string());
776
+ break;
777
+ case 13:
778
+ message.curation = IdentityCuration.decode(reader, reader.uint32());
779
+ break;
754
780
  default:
755
781
  reader.skipType(tag & 7);
756
782
  break;
@@ -771,6 +797,8 @@ export const PeerPolicy = {
771
797
  message.requireReview = object.requireReview ?? false;
772
798
  message.blockedIdentities = object.blockedIdentities?.map(e => e) || [];
773
799
  message.contentHosts = object.contentHosts?.map(e => e) || [];
800
+ message.allowedIdentities = object.allowedIdentities?.map(e => e) || [];
801
+ message.curation = object.curation !== undefined && object.curation !== null ? IdentityCuration.fromPartial(object.curation) : undefined;
774
802
  return message;
775
803
  },
776
804
  fromAmino(object) {
@@ -800,6 +828,10 @@ export const PeerPolicy = {
800
828
  }
801
829
  message.blockedIdentities = object.blocked_identities?.map(e => e) || [];
802
830
  message.contentHosts = object.content_hosts?.map(e => e) || [];
831
+ message.allowedIdentities = object.allowed_identities?.map(e => e) || [];
832
+ if (object.curation !== undefined && object.curation !== null) {
833
+ message.curation = IdentityCuration.fromAmino(object.curation);
834
+ }
803
835
  return message;
804
836
  },
805
837
  toAmino(message) {
@@ -835,6 +867,13 @@ export const PeerPolicy = {
835
867
  else {
836
868
  obj.content_hosts = message.contentHosts;
837
869
  }
870
+ if (message.allowedIdentities) {
871
+ obj.allowed_identities = message.allowedIdentities.map(e => e);
872
+ }
873
+ else {
874
+ obj.allowed_identities = message.allowedIdentities;
875
+ }
876
+ obj.curation = message.curation ? IdentityCuration.toAmino(message.curation) : undefined;
838
877
  return obj;
839
878
  },
840
879
  fromAminoMsg(object) {
@@ -853,6 +892,75 @@ export const PeerPolicy = {
853
892
  };
854
893
  }
855
894
  };
895
+ function createBaseIdentityCuration() {
896
+ return {
897
+ collectionId: BigInt(0)
898
+ };
899
+ }
900
+ /**
901
+ * IdentityCuration points a peer's author gate at an x/collect collection.
902
+ * @name IdentityCuration
903
+ * @package sparkdream.federation.v1
904
+ * @see proto type: sparkdream.federation.v1.IdentityCuration
905
+ */
906
+ export const IdentityCuration = {
907
+ typeUrl: "/sparkdream.federation.v1.IdentityCuration",
908
+ encode(message, writer = BinaryWriter.create()) {
909
+ if (message.collectionId !== BigInt(0)) {
910
+ writer.uint32(8).uint64(message.collectionId);
911
+ }
912
+ return writer;
913
+ },
914
+ decode(input, length) {
915
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
916
+ let end = length === undefined ? reader.len : reader.pos + length;
917
+ const message = createBaseIdentityCuration();
918
+ while (reader.pos < end) {
919
+ const tag = reader.uint32();
920
+ switch (tag >>> 3) {
921
+ case 1:
922
+ message.collectionId = reader.uint64();
923
+ break;
924
+ default:
925
+ reader.skipType(tag & 7);
926
+ break;
927
+ }
928
+ }
929
+ return message;
930
+ },
931
+ fromPartial(object) {
932
+ const message = createBaseIdentityCuration();
933
+ message.collectionId = object.collectionId !== undefined && object.collectionId !== null ? BigInt(object.collectionId.toString()) : BigInt(0);
934
+ return message;
935
+ },
936
+ fromAmino(object) {
937
+ const message = createBaseIdentityCuration();
938
+ if (object.collection_id !== undefined && object.collection_id !== null) {
939
+ message.collectionId = BigInt(object.collection_id);
940
+ }
941
+ return message;
942
+ },
943
+ toAmino(message) {
944
+ const obj = {};
945
+ obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
946
+ return obj;
947
+ },
948
+ fromAminoMsg(object) {
949
+ return IdentityCuration.fromAmino(object.value);
950
+ },
951
+ fromProtoMsg(message) {
952
+ return IdentityCuration.decode(message.value);
953
+ },
954
+ toProto(message) {
955
+ return IdentityCuration.encode(message).finish();
956
+ },
957
+ toProtoMsg(message) {
958
+ return {
959
+ typeUrl: "/sparkdream.federation.v1.IdentityCuration",
960
+ value: IdentityCuration.encode(message).finish()
961
+ };
962
+ }
963
+ };
856
964
  function createBaseBridgeBinding() {
857
965
  return {
858
966
  address: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkdreamnft/sparkdreamjs",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "author": "kob <kob@sparkdream.io>",
5
5
  "description": "Spark Dream blockchain TypeScript library",
6
6
  "main": "index.js",
@@ -6219,6 +6219,18 @@ export declare namespace sparkdream {
6219
6219
  toProto(message: _393.PeerPolicy): Uint8Array;
6220
6220
  toProtoMsg(message: _393.PeerPolicy): _393.PeerPolicyProtoMsg;
6221
6221
  };
6222
+ IdentityCuration: {
6223
+ typeUrl: string;
6224
+ encode(message: _393.IdentityCuration, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
6225
+ decode(input: import("..").BinaryReader | Uint8Array, length?: number): _393.IdentityCuration;
6226
+ fromPartial(object: import("../helpers").DeepPartial<_393.IdentityCuration>): _393.IdentityCuration;
6227
+ fromAmino(object: _393.IdentityCurationAmino): _393.IdentityCuration;
6228
+ toAmino(message: _393.IdentityCuration): _393.IdentityCurationAmino;
6229
+ fromAminoMsg(object: _393.IdentityCurationAminoMsg): _393.IdentityCuration;
6230
+ fromProtoMsg(message: _393.IdentityCurationProtoMsg): _393.IdentityCuration;
6231
+ toProto(message: _393.IdentityCuration): Uint8Array;
6232
+ toProtoMsg(message: _393.IdentityCuration): _393.IdentityCurationProtoMsg;
6233
+ };
6222
6234
  BridgeBinding: {
6223
6235
  typeUrl: string;
6224
6236
  encode(message: _393.BridgeBinding, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
@@ -79,6 +79,14 @@ export interface MsgRegisterPeer {
79
79
  * metadata so wallets render <SYMBOL>.ibc instead of ibc/<hash>.
80
80
  */
81
81
  peerIdentity?: ChainIdentity;
82
+ /**
83
+ * ibc_transfer_channel_id is this chain's end of the ICS-20 `transfer`
84
+ * channel to the peer. Optional. Distinct from ibc_channel_id, which is
85
+ * the `federation` port channel: the two are opened separately and
86
+ * rarely share a number. Voucher metadata for peer_identity is keyed on
87
+ * this channel and is skipped when it is empty.
88
+ */
89
+ ibcTransferChannelId: string;
82
90
  }
83
91
  export interface MsgRegisterPeerProtoMsg {
84
92
  typeUrl: "/sparkdream.federation.v1.MsgRegisterPeer";
@@ -112,6 +120,14 @@ export interface MsgRegisterPeerAmino {
112
120
  * metadata so wallets render <SYMBOL>.ibc instead of ibc/<hash>.
113
121
  */
114
122
  peer_identity?: ChainIdentityAmino;
123
+ /**
124
+ * ibc_transfer_channel_id is this chain's end of the ICS-20 `transfer`
125
+ * channel to the peer. Optional. Distinct from ibc_channel_id, which is
126
+ * the `federation` port channel: the two are opened separately and
127
+ * rarely share a number. Voucher metadata for peer_identity is keyed on
128
+ * this channel and is skipped when it is empty.
129
+ */
130
+ ibc_transfer_channel_id?: string;
115
131
  }
116
132
  export interface MsgRegisterPeerAminoMsg {
117
133
  type: "sparkdream/x/federation/MsgRegisterPeer";
@@ -158,7 +158,8 @@ function createBaseMsgRegisterPeer() {
158
158
  ibcChannelId: "",
159
159
  metadata: "",
160
160
  controllerGroup: "",
161
- peerIdentity: undefined
161
+ peerIdentity: undefined,
162
+ ibcTransferChannelId: ""
162
163
  };
163
164
  }
164
165
  /**
@@ -194,6 +195,9 @@ exports.MsgRegisterPeer = {
194
195
  if (message.peerIdentity !== undefined) {
195
196
  chain_identity_1.ChainIdentity.encode(message.peerIdentity, writer.uint32(66).fork()).ldelim();
196
197
  }
198
+ if (message.ibcTransferChannelId !== "") {
199
+ writer.uint32(74).string(message.ibcTransferChannelId);
200
+ }
197
201
  return writer;
198
202
  },
199
203
  decode(input, length) {
@@ -227,6 +231,9 @@ exports.MsgRegisterPeer = {
227
231
  case 8:
228
232
  message.peerIdentity = chain_identity_1.ChainIdentity.decode(reader, reader.uint32());
229
233
  break;
234
+ case 9:
235
+ message.ibcTransferChannelId = reader.string();
236
+ break;
230
237
  default:
231
238
  reader.skipType(tag & 7);
232
239
  break;
@@ -244,6 +251,7 @@ exports.MsgRegisterPeer = {
244
251
  message.metadata = object.metadata ?? "";
245
252
  message.controllerGroup = object.controllerGroup ?? "";
246
253
  message.peerIdentity = object.peerIdentity !== undefined && object.peerIdentity !== null ? chain_identity_1.ChainIdentity.fromPartial(object.peerIdentity) : undefined;
254
+ message.ibcTransferChannelId = object.ibcTransferChannelId ?? "";
247
255
  return message;
248
256
  },
249
257
  fromAmino(object) {
@@ -272,6 +280,9 @@ exports.MsgRegisterPeer = {
272
280
  if (object.peer_identity !== undefined && object.peer_identity !== null) {
273
281
  message.peerIdentity = chain_identity_1.ChainIdentity.fromAmino(object.peer_identity);
274
282
  }
283
+ if (object.ibc_transfer_channel_id !== undefined && object.ibc_transfer_channel_id !== null) {
284
+ message.ibcTransferChannelId = object.ibc_transfer_channel_id;
285
+ }
275
286
  return message;
276
287
  },
277
288
  toAmino(message) {
@@ -284,6 +295,7 @@ exports.MsgRegisterPeer = {
284
295
  obj.metadata = message.metadata === "" ? undefined : message.metadata;
285
296
  obj.controller_group = message.controllerGroup === "" ? undefined : message.controllerGroup;
286
297
  obj.peer_identity = message.peerIdentity ? chain_identity_1.ChainIdentity.toAmino(message.peerIdentity) : undefined;
298
+ obj.ibc_transfer_channel_id = message.ibcTransferChannelId === "" ? undefined : message.ibcTransferChannelId;
287
299
  return obj;
288
300
  },
289
301
  fromAminoMsg(object) {
@@ -174,6 +174,12 @@ export interface Peer {
174
174
  * peers registered via MsgRegisterPeer with --peer-identity.
175
175
  */
176
176
  peerIdentity?: ChainIdentity;
177
+ /**
178
+ * ibc_transfer_channel_id is this chain's end of the ICS-20 `transfer`
179
+ * channel to the peer, as supplied at registration. Empty when the peer
180
+ * has no transfer channel. Voucher metadata (spec §9.2) is keyed on it.
181
+ */
182
+ ibcTransferChannelId: string;
177
183
  }
178
184
  export interface PeerProtoMsg {
179
185
  typeUrl: "/sparkdream.federation.v1.Peer";
@@ -215,6 +221,12 @@ export interface PeerAmino {
215
221
  * peers registered via MsgRegisterPeer with --peer-identity.
216
222
  */
217
223
  peer_identity?: ChainIdentityAmino;
224
+ /**
225
+ * ibc_transfer_channel_id is this chain's end of the ICS-20 `transfer`
226
+ * channel to the peer, as supplied at registration. Empty when the peer
227
+ * has no transfer channel. Voucher metadata (spec §9.2) is keyed on it.
228
+ */
229
+ ibc_transfer_channel_id?: string;
218
230
  }
219
231
  export interface PeerAminoMsg {
220
232
  type: "/sparkdream.federation.v1.Peer";
@@ -256,6 +268,26 @@ export interface PeerPolicy {
256
268
  * peer's name.
257
269
  */
258
270
  contentHosts: string[];
271
+ /**
272
+ * Author curation for bridged content (MsgSubmitFederatedContent, the
273
+ * external-protocol peers). An author is admitted only when BOTH gates
274
+ * pass, and blocked_identities still overrides both:
275
+ *
276
+ * allowed_identities the admitted authors ("@user@host"), or "*" for
277
+ * any author. Empty admits nobody: a new external
278
+ * peer anchors nothing until the Operations
279
+ * Committee decides who is in scope.
280
+ * curation an x/collect collection whose active link items
281
+ * name the admitted authors, curated by the
282
+ * collection's owner and collaborators without a
283
+ * proposal per author. Unset: no collection gate.
284
+ *
285
+ * So "*" plus a collection lets the collection alone decide, and a list
286
+ * without a collection lets the list alone decide. The author's own
287
+ * consent (following the bridge account) is a bridge-side rule on top.
288
+ */
289
+ allowedIdentities: string[];
290
+ curation?: IdentityCuration;
259
291
  }
260
292
  export interface PeerPolicyProtoMsg {
261
293
  typeUrl: "/sparkdream.federation.v1.PeerPolicy";
@@ -297,11 +329,67 @@ export interface PeerPolicyAmino {
297
329
  * peer's name.
298
330
  */
299
331
  content_hosts?: string[];
332
+ /**
333
+ * Author curation for bridged content (MsgSubmitFederatedContent, the
334
+ * external-protocol peers). An author is admitted only when BOTH gates
335
+ * pass, and blocked_identities still overrides both:
336
+ *
337
+ * allowed_identities the admitted authors ("@user@host"), or "*" for
338
+ * any author. Empty admits nobody: a new external
339
+ * peer anchors nothing until the Operations
340
+ * Committee decides who is in scope.
341
+ * curation an x/collect collection whose active link items
342
+ * name the admitted authors, curated by the
343
+ * collection's owner and collaborators without a
344
+ * proposal per author. Unset: no collection gate.
345
+ *
346
+ * So "*" plus a collection lets the collection alone decide, and a list
347
+ * without a collection lets the list alone decide. The author's own
348
+ * consent (following the bridge account) is a bridge-side rule on top.
349
+ */
350
+ allowed_identities?: string[];
351
+ curation?: IdentityCurationAmino;
300
352
  }
301
353
  export interface PeerPolicyAminoMsg {
302
354
  type: "/sparkdream.federation.v1.PeerPolicy";
303
355
  value: PeerPolicyAmino;
304
356
  }
357
+ /**
358
+ * IdentityCuration points a peer's author gate at an x/collect collection.
359
+ * @name IdentityCuration
360
+ * @package sparkdream.federation.v1
361
+ * @see proto type: sparkdream.federation.v1.IdentityCuration
362
+ */
363
+ export interface IdentityCuration {
364
+ /**
365
+ * collection_id is the x/collect collection listing admitted authors, one
366
+ * link item each: an "@user@host" handle or the profile URL
367
+ * ("https://host/@user"). Only active items in an active collection count.
368
+ */
369
+ collectionId: bigint;
370
+ }
371
+ export interface IdentityCurationProtoMsg {
372
+ typeUrl: "/sparkdream.federation.v1.IdentityCuration";
373
+ value: Uint8Array;
374
+ }
375
+ /**
376
+ * IdentityCuration points a peer's author gate at an x/collect collection.
377
+ * @name IdentityCurationAmino
378
+ * @package sparkdream.federation.v1
379
+ * @see proto type: sparkdream.federation.v1.IdentityCuration
380
+ */
381
+ export interface IdentityCurationAmino {
382
+ /**
383
+ * collection_id is the x/collect collection listing admitted authors, one
384
+ * link item each: an "@user@host" handle or the profile URL
385
+ * ("https://host/@user"). Only active items in an active collection count.
386
+ */
387
+ collection_id?: string;
388
+ }
389
+ export interface IdentityCurationAminoMsg {
390
+ type: "/sparkdream.federation.v1.IdentityCuration";
391
+ value: IdentityCurationAmino;
392
+ }
305
393
  /**
306
394
  * BridgeBinding represents the federation-owned binding between a bridge
307
395
  * operator and a peer. Economic state (bond, status, unbonding, slashing
@@ -1022,6 +1110,24 @@ export declare const PeerPolicy: {
1022
1110
  toProto(message: PeerPolicy): Uint8Array;
1023
1111
  toProtoMsg(message: PeerPolicy): PeerPolicyProtoMsg;
1024
1112
  };
1113
+ /**
1114
+ * IdentityCuration points a peer's author gate at an x/collect collection.
1115
+ * @name IdentityCuration
1116
+ * @package sparkdream.federation.v1
1117
+ * @see proto type: sparkdream.federation.v1.IdentityCuration
1118
+ */
1119
+ export declare const IdentityCuration: {
1120
+ typeUrl: string;
1121
+ encode(message: IdentityCuration, writer?: BinaryWriter): BinaryWriter;
1122
+ decode(input: BinaryReader | Uint8Array, length?: number): IdentityCuration;
1123
+ fromPartial(object: DeepPartial<IdentityCuration>): IdentityCuration;
1124
+ fromAmino(object: IdentityCurationAmino): IdentityCuration;
1125
+ toAmino(message: IdentityCuration): IdentityCurationAmino;
1126
+ fromAminoMsg(object: IdentityCurationAminoMsg): IdentityCuration;
1127
+ fromProtoMsg(message: IdentityCurationProtoMsg): IdentityCuration;
1128
+ toProto(message: IdentityCuration): Uint8Array;
1129
+ toProtoMsg(message: IdentityCuration): IdentityCurationProtoMsg;
1130
+ };
1025
1131
  /**
1026
1132
  * BridgeBinding represents the federation-owned binding between a bridge
1027
1133
  * operator and a peer. Economic state (bond, status, unbonding, slashing
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PeerRemovalState = exports.OutboundAttestation = exports.TagReputation = exports.ReputationAttestation = exports.PendingIdentityChallenge = exports.IdentityLink = exports.ContentRef = exports.FederatedContent = exports.ArbiterHashSubmission = exports.EscalatedChallenge = exports.VerificationRecord = exports.BridgeBinding = exports.PeerPolicy = exports.Peer = exports.JuryVerdictAmino = exports.JuryVerdict = exports.PendingVerifierVerdictAmino = exports.PendingVerifierVerdict = exports.VerificationOutcomeAmino = exports.VerificationOutcome = exports.IdentityLinkStatusAmino = exports.IdentityLinkStatus = exports.FederatedContentStatusAmino = exports.FederatedContentStatus = exports.BridgeStatusAmino = exports.BridgeStatus = exports.PeerStatusAmino = exports.PeerStatus = exports.PeerTypeAmino = exports.PeerType = void 0;
3
+ exports.PeerRemovalState = exports.OutboundAttestation = exports.TagReputation = exports.ReputationAttestation = exports.PendingIdentityChallenge = exports.IdentityLink = exports.ContentRef = exports.FederatedContent = exports.ArbiterHashSubmission = exports.EscalatedChallenge = exports.VerificationRecord = exports.BridgeBinding = exports.IdentityCuration = exports.PeerPolicy = exports.Peer = exports.JuryVerdictAmino = exports.JuryVerdict = exports.PendingVerifierVerdictAmino = exports.PendingVerifierVerdict = exports.VerificationOutcomeAmino = exports.VerificationOutcome = exports.IdentityLinkStatusAmino = exports.IdentityLinkStatus = exports.FederatedContentStatusAmino = exports.FederatedContentStatus = exports.BridgeStatusAmino = exports.BridgeStatus = exports.PeerStatusAmino = exports.PeerStatus = exports.PeerTypeAmino = exports.PeerType = void 0;
4
4
  exports.peerTypeFromJSON = peerTypeFromJSON;
5
5
  exports.peerTypeToJSON = peerTypeToJSON;
6
6
  exports.peerStatusFromJSON = peerStatusFromJSON;
@@ -483,7 +483,8 @@ function createBasePeer() {
483
483
  metadata: "",
484
484
  removedAt: BigInt(0),
485
485
  controllerGroup: "",
486
- peerIdentity: undefined
486
+ peerIdentity: undefined,
487
+ ibcTransferChannelId: ""
487
488
  };
488
489
  }
489
490
  /**
@@ -531,6 +532,9 @@ exports.Peer = {
531
532
  if (message.peerIdentity !== undefined) {
532
533
  chain_identity_1.ChainIdentity.encode(message.peerIdentity, writer.uint32(98).fork()).ldelim();
533
534
  }
535
+ if (message.ibcTransferChannelId !== "") {
536
+ writer.uint32(106).string(message.ibcTransferChannelId);
537
+ }
534
538
  return writer;
535
539
  },
536
540
  decode(input, length) {
@@ -576,6 +580,9 @@ exports.Peer = {
576
580
  case 12:
577
581
  message.peerIdentity = chain_identity_1.ChainIdentity.decode(reader, reader.uint32());
578
582
  break;
583
+ case 13:
584
+ message.ibcTransferChannelId = reader.string();
585
+ break;
579
586
  default:
580
587
  reader.skipType(tag & 7);
581
588
  break;
@@ -597,6 +604,7 @@ exports.Peer = {
597
604
  message.removedAt = object.removedAt !== undefined && object.removedAt !== null ? BigInt(object.removedAt.toString()) : BigInt(0);
598
605
  message.controllerGroup = object.controllerGroup ?? "";
599
606
  message.peerIdentity = object.peerIdentity !== undefined && object.peerIdentity !== null ? chain_identity_1.ChainIdentity.fromPartial(object.peerIdentity) : undefined;
607
+ message.ibcTransferChannelId = object.ibcTransferChannelId ?? "";
600
608
  return message;
601
609
  },
602
610
  fromAmino(object) {
@@ -637,6 +645,9 @@ exports.Peer = {
637
645
  if (object.peer_identity !== undefined && object.peer_identity !== null) {
638
646
  message.peerIdentity = chain_identity_1.ChainIdentity.fromAmino(object.peer_identity);
639
647
  }
648
+ if (object.ibc_transfer_channel_id !== undefined && object.ibc_transfer_channel_id !== null) {
649
+ message.ibcTransferChannelId = object.ibc_transfer_channel_id;
650
+ }
640
651
  return message;
641
652
  },
642
653
  toAmino(message) {
@@ -653,6 +664,7 @@ exports.Peer = {
653
664
  obj.removed_at = message.removedAt !== BigInt(0) ? message.removedAt?.toString() : undefined;
654
665
  obj.controller_group = message.controllerGroup === "" ? undefined : message.controllerGroup;
655
666
  obj.peer_identity = message.peerIdentity ? chain_identity_1.ChainIdentity.toAmino(message.peerIdentity) : undefined;
667
+ obj.ibc_transfer_channel_id = message.ibcTransferChannelId === "" ? undefined : message.ibcTransferChannelId;
656
668
  return obj;
657
669
  },
658
670
  fromAminoMsg(object) {
@@ -683,7 +695,9 @@ function createBasePeerPolicy() {
683
695
  acceptReputationAttestations: false,
684
696
  requireReview: false,
685
697
  blockedIdentities: [],
686
- contentHosts: []
698
+ contentHosts: [],
699
+ allowedIdentities: [],
700
+ curation: undefined
687
701
  };
688
702
  }
689
703
  /**
@@ -728,6 +742,12 @@ exports.PeerPolicy = {
728
742
  for (const v of message.contentHosts) {
729
743
  writer.uint32(90).string(v);
730
744
  }
745
+ for (const v of message.allowedIdentities) {
746
+ writer.uint32(98).string(v);
747
+ }
748
+ if (message.curation !== undefined) {
749
+ exports.IdentityCuration.encode(message.curation, writer.uint32(106).fork()).ldelim();
750
+ }
731
751
  return writer;
732
752
  },
733
753
  decode(input, length) {
@@ -770,6 +790,12 @@ exports.PeerPolicy = {
770
790
  case 11:
771
791
  message.contentHosts.push(reader.string());
772
792
  break;
793
+ case 12:
794
+ message.allowedIdentities.push(reader.string());
795
+ break;
796
+ case 13:
797
+ message.curation = exports.IdentityCuration.decode(reader, reader.uint32());
798
+ break;
773
799
  default:
774
800
  reader.skipType(tag & 7);
775
801
  break;
@@ -790,6 +816,8 @@ exports.PeerPolicy = {
790
816
  message.requireReview = object.requireReview ?? false;
791
817
  message.blockedIdentities = object.blockedIdentities?.map(e => e) || [];
792
818
  message.contentHosts = object.contentHosts?.map(e => e) || [];
819
+ message.allowedIdentities = object.allowedIdentities?.map(e => e) || [];
820
+ message.curation = object.curation !== undefined && object.curation !== null ? exports.IdentityCuration.fromPartial(object.curation) : undefined;
793
821
  return message;
794
822
  },
795
823
  fromAmino(object) {
@@ -819,6 +847,10 @@ exports.PeerPolicy = {
819
847
  }
820
848
  message.blockedIdentities = object.blocked_identities?.map(e => e) || [];
821
849
  message.contentHosts = object.content_hosts?.map(e => e) || [];
850
+ message.allowedIdentities = object.allowed_identities?.map(e => e) || [];
851
+ if (object.curation !== undefined && object.curation !== null) {
852
+ message.curation = exports.IdentityCuration.fromAmino(object.curation);
853
+ }
822
854
  return message;
823
855
  },
824
856
  toAmino(message) {
@@ -854,6 +886,13 @@ exports.PeerPolicy = {
854
886
  else {
855
887
  obj.content_hosts = message.contentHosts;
856
888
  }
889
+ if (message.allowedIdentities) {
890
+ obj.allowed_identities = message.allowedIdentities.map(e => e);
891
+ }
892
+ else {
893
+ obj.allowed_identities = message.allowedIdentities;
894
+ }
895
+ obj.curation = message.curation ? exports.IdentityCuration.toAmino(message.curation) : undefined;
857
896
  return obj;
858
897
  },
859
898
  fromAminoMsg(object) {
@@ -872,6 +911,75 @@ exports.PeerPolicy = {
872
911
  };
873
912
  }
874
913
  };
914
+ function createBaseIdentityCuration() {
915
+ return {
916
+ collectionId: BigInt(0)
917
+ };
918
+ }
919
+ /**
920
+ * IdentityCuration points a peer's author gate at an x/collect collection.
921
+ * @name IdentityCuration
922
+ * @package sparkdream.federation.v1
923
+ * @see proto type: sparkdream.federation.v1.IdentityCuration
924
+ */
925
+ exports.IdentityCuration = {
926
+ typeUrl: "/sparkdream.federation.v1.IdentityCuration",
927
+ encode(message, writer = binary_1.BinaryWriter.create()) {
928
+ if (message.collectionId !== BigInt(0)) {
929
+ writer.uint32(8).uint64(message.collectionId);
930
+ }
931
+ return writer;
932
+ },
933
+ decode(input, length) {
934
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
935
+ let end = length === undefined ? reader.len : reader.pos + length;
936
+ const message = createBaseIdentityCuration();
937
+ while (reader.pos < end) {
938
+ const tag = reader.uint32();
939
+ switch (tag >>> 3) {
940
+ case 1:
941
+ message.collectionId = reader.uint64();
942
+ break;
943
+ default:
944
+ reader.skipType(tag & 7);
945
+ break;
946
+ }
947
+ }
948
+ return message;
949
+ },
950
+ fromPartial(object) {
951
+ const message = createBaseIdentityCuration();
952
+ message.collectionId = object.collectionId !== undefined && object.collectionId !== null ? BigInt(object.collectionId.toString()) : BigInt(0);
953
+ return message;
954
+ },
955
+ fromAmino(object) {
956
+ const message = createBaseIdentityCuration();
957
+ if (object.collection_id !== undefined && object.collection_id !== null) {
958
+ message.collectionId = BigInt(object.collection_id);
959
+ }
960
+ return message;
961
+ },
962
+ toAmino(message) {
963
+ const obj = {};
964
+ obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
965
+ return obj;
966
+ },
967
+ fromAminoMsg(object) {
968
+ return exports.IdentityCuration.fromAmino(object.value);
969
+ },
970
+ fromProtoMsg(message) {
971
+ return exports.IdentityCuration.decode(message.value);
972
+ },
973
+ toProto(message) {
974
+ return exports.IdentityCuration.encode(message).finish();
975
+ },
976
+ toProtoMsg(message) {
977
+ return {
978
+ typeUrl: "/sparkdream.federation.v1.IdentityCuration",
979
+ value: exports.IdentityCuration.encode(message).finish()
980
+ };
981
+ }
982
+ };
875
983
  function createBaseBridgeBinding() {
876
984
  return {
877
985
  address: "",