@initia/initia.js 1.0.14 → 1.0.16
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/dist/index.mjs
CHANGED
|
@@ -65333,30 +65333,30 @@ class gr extends de {
|
|
|
65333
65333
|
}
|
|
65334
65334
|
static fromAmino(e) {
|
|
65335
65335
|
const { height: t, timestamp: r } = e;
|
|
65336
|
-
return new gr(be.fromAmino(t),
|
|
65336
|
+
return new gr(be.fromAmino(t), r);
|
|
65337
65337
|
}
|
|
65338
65338
|
toAmino() {
|
|
65339
65339
|
const { height: e, timestamp: t } = this;
|
|
65340
65340
|
return {
|
|
65341
65341
|
height: e.toAmino(),
|
|
65342
|
-
timestamp: t
|
|
65342
|
+
timestamp: t
|
|
65343
65343
|
};
|
|
65344
65344
|
}
|
|
65345
65345
|
static fromData(e) {
|
|
65346
65346
|
const { height: t, timestamp: r } = e;
|
|
65347
|
-
return new gr(be.fromData(t),
|
|
65347
|
+
return new gr(be.fromData(t), r);
|
|
65348
65348
|
}
|
|
65349
65349
|
toData() {
|
|
65350
65350
|
const { height: e, timestamp: t } = this;
|
|
65351
65351
|
return {
|
|
65352
65352
|
height: e.toData(),
|
|
65353
|
-
timestamp: t
|
|
65353
|
+
timestamp: t
|
|
65354
65354
|
};
|
|
65355
65355
|
}
|
|
65356
65356
|
static fromProto(e) {
|
|
65357
65357
|
return new gr(
|
|
65358
65358
|
be.fromProto(e.height),
|
|
65359
|
-
|
|
65359
|
+
e.timestamp.toString()
|
|
65360
65360
|
);
|
|
65361
65361
|
}
|
|
65362
65362
|
toProto() {
|
|
@@ -65717,9 +65717,10 @@ class Ss extends de {
|
|
|
65717
65717
|
/**
|
|
65718
65718
|
* @param fields the upgrade fields
|
|
65719
65719
|
* @param timeout the timeout for the upgrade
|
|
65720
|
+
* @param next_sequence_send the next sequence send
|
|
65720
65721
|
*/
|
|
65721
|
-
constructor(e, t) {
|
|
65722
|
-
super(), this.fields = e, this.timeout = t;
|
|
65722
|
+
constructor(e, t, r) {
|
|
65723
|
+
super(), this.fields = e, this.timeout = t, this.next_sequence_send = r;
|
|
65723
65724
|
}
|
|
65724
65725
|
static fromAmino(e) {
|
|
65725
65726
|
throw new Error("Amino not supported");
|
|
@@ -65728,30 +65729,34 @@ class Ss extends de {
|
|
|
65728
65729
|
throw new Error("Amino not supported");
|
|
65729
65730
|
}
|
|
65730
65731
|
static fromData(e) {
|
|
65731
|
-
const { fields: t, timeout: r } = e;
|
|
65732
|
+
const { fields: t, timeout: r, next_sequence_send: i } = e;
|
|
65732
65733
|
return new Ss(
|
|
65733
65734
|
t ? Pr.fromData(t) : void 0,
|
|
65734
|
-
r ? gr.fromData(r) : void 0
|
|
65735
|
+
r ? gr.fromData(r) : void 0,
|
|
65736
|
+
parseInt(i)
|
|
65735
65737
|
);
|
|
65736
65738
|
}
|
|
65737
65739
|
toData() {
|
|
65738
|
-
const { fields: e, timeout: t } = this;
|
|
65740
|
+
const { fields: e, timeout: t, next_sequence_send: r } = this;
|
|
65739
65741
|
return {
|
|
65740
65742
|
fields: e == null ? void 0 : e.toData(),
|
|
65741
|
-
timeout: t == null ? void 0 : t.toData()
|
|
65743
|
+
timeout: t == null ? void 0 : t.toData(),
|
|
65744
|
+
next_sequence_send: r.toFixed()
|
|
65742
65745
|
};
|
|
65743
65746
|
}
|
|
65744
65747
|
static fromProto(e) {
|
|
65745
65748
|
return new Ss(
|
|
65746
65749
|
e.fields ? Pr.fromProto(e.fields) : void 0,
|
|
65747
|
-
e.timeout ? gr.fromProto(e.timeout) : void 0
|
|
65750
|
+
e.timeout ? gr.fromProto(e.timeout) : void 0,
|
|
65751
|
+
Number(e.nextSequenceSend)
|
|
65748
65752
|
);
|
|
65749
65753
|
}
|
|
65750
65754
|
toProto() {
|
|
65751
|
-
const { fields: e, timeout: t } = this;
|
|
65755
|
+
const { fields: e, timeout: t, next_sequence_send: r } = this;
|
|
65752
65756
|
return jh.Upgrade.fromPartial({
|
|
65753
65757
|
fields: e == null ? void 0 : e.toProto(),
|
|
65754
|
-
timeout: t == null ? void 0 : t.toProto()
|
|
65758
|
+
timeout: t == null ? void 0 : t.toProto(),
|
|
65759
|
+
nextSequenceSend: BigInt(r)
|
|
65755
65760
|
});
|
|
65756
65761
|
}
|
|
65757
65762
|
}
|