@sparkdreamnft/sparkdreamjs 0.0.41 → 0.0.42
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/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +13 -1
- package/package.json +1 -1
- package/sparkdream/federation/v1/tx.d.ts +16 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +12 -0
- package/sparkdream/federation/v1/types.js +13 -1
|
@@ -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) {
|
package/package.json
CHANGED
|
@@ -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";
|
|
@@ -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) {
|