@iconlake/client 1.3.0 → 1.3.1
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.iife.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -91217,12 +91217,12 @@ function getStructure(e) {
|
|
|
91217
91217
|
const defaultFee = {
|
|
91218
91218
|
amount: [],
|
|
91219
91219
|
gas: "200000"
|
|
91220
|
-
}, txClient = ({ signer: e, prefix: t, addr: n } = { addr: "
|
|
91220
|
+
}, txClient = ({ signer: e, prefix: t, addr: n } = { addr: "https://rpc.iconlake.com", prefix: "iconlake" }) => ({
|
|
91221
91221
|
async sendMsgUpdateClass({ value: A, fee: u, memo: g }) {
|
|
91222
91222
|
if (!e)
|
|
91223
91223
|
throw new Error("TxClient:sendMsgUpdateClass: Unable to sign Tx. Signer is not present.");
|
|
91224
91224
|
try {
|
|
91225
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t });
|
|
91225
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t, aminoTypes: new build$5.AminoTypes(createIconAminoConverters()) });
|
|
91226
91226
|
let N = this.msgUpdateClass({ value: MsgUpdateClass.fromPartial(A) });
|
|
91227
91227
|
return await P.signAndBroadcast(y, [N], u || defaultFee, g);
|
|
91228
91228
|
} catch (y) {
|
|
@@ -91233,7 +91233,7 @@ const defaultFee = {
|
|
|
91233
91233
|
if (!e)
|
|
91234
91234
|
throw new Error("TxClient:sendMsgUpdateCreator: Unable to sign Tx. Signer is not present.");
|
|
91235
91235
|
try {
|
|
91236
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t });
|
|
91236
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t, aminoTypes: new build$5.AminoTypes(createIconAminoConverters()) });
|
|
91237
91237
|
let N = this.msgUpdateCreator({ value: MsgUpdateCreator.fromPartial(A) });
|
|
91238
91238
|
return await P.signAndBroadcast(y, [N], u || defaultFee, g);
|
|
91239
91239
|
} catch (y) {
|
|
@@ -91244,7 +91244,7 @@ const defaultFee = {
|
|
|
91244
91244
|
if (!e)
|
|
91245
91245
|
throw new Error("TxClient:sendMsgDeleteCreator: Unable to sign Tx. Signer is not present.");
|
|
91246
91246
|
try {
|
|
91247
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t });
|
|
91247
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t, aminoTypes: new build$5.AminoTypes(createIconAminoConverters()) });
|
|
91248
91248
|
let N = this.msgDeleteCreator({ value: MsgDeleteCreator.fromPartial(A) });
|
|
91249
91249
|
return await P.signAndBroadcast(y, [N], u || defaultFee, g);
|
|
91250
91250
|
} catch (y) {
|
|
@@ -91255,7 +91255,7 @@ const defaultFee = {
|
|
|
91255
91255
|
if (!e)
|
|
91256
91256
|
throw new Error("TxClient:sendMsgBurn: Unable to sign Tx. Signer is not present.");
|
|
91257
91257
|
try {
|
|
91258
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t });
|
|
91258
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t, aminoTypes: new build$5.AminoTypes(createIconAminoConverters()) });
|
|
91259
91259
|
let N = this.msgBurn({ value: MsgBurn.fromPartial(A) });
|
|
91260
91260
|
return await P.signAndBroadcast(y, [N], u || defaultFee, g);
|
|
91261
91261
|
} catch (y) {
|
|
@@ -91266,7 +91266,7 @@ const defaultFee = {
|
|
|
91266
91266
|
if (!e)
|
|
91267
91267
|
throw new Error("TxClient:sendMsgMint: Unable to sign Tx. Signer is not present.");
|
|
91268
91268
|
try {
|
|
91269
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t });
|
|
91269
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t, aminoTypes: new build$5.AminoTypes(createIconAminoConverters()) });
|
|
91270
91270
|
let N = this.msgMint({ value: MsgMint.fromPartial(A) });
|
|
91271
91271
|
return await P.signAndBroadcast(y, [N], u || defaultFee, g);
|
|
91272
91272
|
} catch (y) {
|
|
@@ -91308,7 +91308,7 @@ const defaultFee = {
|
|
|
91308
91308
|
throw new Error("TxClient:MsgMint: Could not create message: " + u.message);
|
|
91309
91309
|
}
|
|
91310
91310
|
}
|
|
91311
|
-
}), queryClient = ({ addr: e } = { addr: "
|
|
91311
|
+
}), queryClient = ({ addr: e } = { addr: "https://lcd.iconlake.com" }) => new Api({ baseURL: e });
|
|
91312
91312
|
class SDKModule {
|
|
91313
91313
|
constructor(t) {
|
|
91314
91314
|
this.registry = [], this.query = queryClient({ addr: t.env.apiURL }), this.updateTX(t), this.structure = {
|