@initia/initia.js 1.0.17 → 1.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/dist/index.mjs
CHANGED
|
@@ -45028,53 +45028,68 @@ class Ri extends de {
|
|
|
45028
45028
|
* @param signer
|
|
45029
45029
|
* @param recipient
|
|
45030
45030
|
* @param channel
|
|
45031
|
+
* @param fallback
|
|
45031
45032
|
*/
|
|
45032
|
-
constructor(e, t, r) {
|
|
45033
|
-
super(), this.signer = e, this.recipient = t, this.channel = r;
|
|
45033
|
+
constructor(e, t, r, i) {
|
|
45034
|
+
super(), this.signer = e, this.recipient = t, this.channel = r, this.fallback = i;
|
|
45034
45035
|
}
|
|
45035
45036
|
static fromAmino(e) {
|
|
45036
45037
|
const {
|
|
45037
|
-
value: { signer: t, recipient: r, channel: i }
|
|
45038
|
+
value: { signer: t, recipient: r, channel: i, fallback: c }
|
|
45038
45039
|
} = e;
|
|
45039
|
-
return new Ri(
|
|
45040
|
+
return new Ri(
|
|
45041
|
+
t,
|
|
45042
|
+
r,
|
|
45043
|
+
i,
|
|
45044
|
+
c
|
|
45045
|
+
);
|
|
45040
45046
|
}
|
|
45041
45047
|
toAmino() {
|
|
45042
|
-
const { signer: e, recipient: t, channel: r } = this;
|
|
45048
|
+
const { signer: e, recipient: t, channel: r, fallback: i } = this;
|
|
45043
45049
|
return {
|
|
45044
45050
|
type: "noble/forwarding/RegisterAccount",
|
|
45045
45051
|
value: {
|
|
45046
45052
|
signer: e,
|
|
45047
45053
|
recipient: t,
|
|
45048
|
-
channel: r
|
|
45054
|
+
channel: r,
|
|
45055
|
+
fallback: i
|
|
45049
45056
|
}
|
|
45050
45057
|
};
|
|
45051
45058
|
}
|
|
45052
45059
|
static fromData(e) {
|
|
45053
|
-
const { signer: t, recipient: r, channel: i } = e;
|
|
45054
|
-
return new Ri(
|
|
45060
|
+
const { signer: t, recipient: r, channel: i, fallback: c } = e;
|
|
45061
|
+
return new Ri(
|
|
45062
|
+
t,
|
|
45063
|
+
r,
|
|
45064
|
+
i,
|
|
45065
|
+
c
|
|
45066
|
+
);
|
|
45055
45067
|
}
|
|
45056
45068
|
toData() {
|
|
45057
|
-
const { signer: e, recipient: t, channel: r } = this;
|
|
45069
|
+
const { signer: e, recipient: t, channel: r, fallback: i } = this;
|
|
45058
45070
|
return {
|
|
45059
45071
|
"@type": "/noble.forwarding.v1.MsgRegisterAccount",
|
|
45060
45072
|
signer: e,
|
|
45061
45073
|
recipient: t,
|
|
45062
|
-
channel: r
|
|
45074
|
+
channel: r,
|
|
45075
|
+
fallback: i
|
|
45063
45076
|
};
|
|
45064
45077
|
}
|
|
45065
45078
|
static fromProto(e) {
|
|
45066
45079
|
return new Ri(
|
|
45067
45080
|
e.signer,
|
|
45068
45081
|
e.recipient,
|
|
45069
|
-
e.channel
|
|
45082
|
+
e.channel,
|
|
45083
|
+
e.fallback
|
|
45070
45084
|
);
|
|
45071
45085
|
}
|
|
45072
45086
|
toProto() {
|
|
45073
|
-
const { signer: e, recipient: t, channel: r } = this;
|
|
45087
|
+
const { signer: e, recipient: t, channel: r, fallback: i } = this;
|
|
45074
45088
|
return Ws.MsgRegisterAccount.fromPartial({
|
|
45075
45089
|
signer: e,
|
|
45076
45090
|
recipient: t,
|
|
45077
|
-
channel: r
|
|
45091
|
+
channel: r,
|
|
45092
|
+
fallback: i
|
|
45078
45093
|
});
|
|
45079
45094
|
}
|
|
45080
45095
|
packAny() {
|
|
@@ -98790,7 +98805,8 @@ class vP extends Xe {
|
|
|
98790
98805
|
async pool(e = {}, t = {}) {
|
|
98791
98806
|
return this.c.get("/initia/mstaking/v1/pool", e, t).then((r) => ({
|
|
98792
98807
|
bonded_tokens: fe.fromData(r.pool.bonded_tokens),
|
|
98793
|
-
not_bonded_tokens: fe.fromData(r.pool.not_bonded_tokens)
|
|
98808
|
+
not_bonded_tokens: fe.fromData(r.pool.not_bonded_tokens),
|
|
98809
|
+
voting_power_weights: fe.fromData(r.pool.voting_power_weights)
|
|
98794
98810
|
}));
|
|
98795
98811
|
}
|
|
98796
98812
|
/**
|