coreum-js 2.18.1 → 2.18.2
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.
|
@@ -404,18 +404,13 @@ class Client {
|
|
|
404
404
|
const [{ address }] = await offlineSigner.getAccounts();
|
|
405
405
|
this._address = address;
|
|
406
406
|
const registry = Client.getRegistry();
|
|
407
|
-
const aminoTypes = new stargate_1.AminoTypes({
|
|
408
|
-
...(0, stargate_1.createDefaultAminoConverters)(),
|
|
409
|
-
...(0, cosmwasm_stargate_1.createWasmAminoConverters)(),
|
|
410
|
-
...(0, coreum_1.createCoreumAminoTypes)(),
|
|
411
|
-
});
|
|
412
407
|
// signing client
|
|
413
408
|
this._client = await cosmwasm_stargate_1.SigningCosmWasmClient.connectWithSigner(this.config.chain_rpc_endpoint, offlineSigner, {
|
|
414
409
|
registry: registry,
|
|
415
410
|
gasPrice: stargate_1.GasPrice.fromString(this.config.gas_price),
|
|
416
|
-
aminoTypes: aminoTypes,
|
|
417
411
|
});
|
|
418
412
|
this._client.aminoTypes.register = {
|
|
413
|
+
...this._client.aminoTypes.register,
|
|
419
414
|
...(0, coreum_1.createCoreumAminoTypes)(),
|
|
420
415
|
};
|
|
421
416
|
}
|
|
@@ -11,12 +11,12 @@ import { Registry, } from "@cosmjs/proto-signing";
|
|
|
11
11
|
import { Tendermint37Client, WebsocketClient } from "@cosmjs/tendermint-rpc";
|
|
12
12
|
import { ExtensionWallets } from "../types";
|
|
13
13
|
import { generateWalletFromMnemonic, generateMultisigFromPubkeys, } from "../utils";
|
|
14
|
-
import { GasPrice, QueryClient, StargateClient, calculateFee,
|
|
14
|
+
import { GasPrice, QueryClient, StargateClient, calculateFee, createProtobufRpcClient, decodeCosmosSdkDecFromProto, defaultRegistryTypes, setupAuthExtension, setupFeegrantExtension, setupIbcExtension, setupMintExtension, setupStakingExtension, setupTxExtension, } from "@cosmjs/stargate";
|
|
15
15
|
import { setupBankExtension, setupGovExtension, setupDistributionExtension, } from "../cosmos/extensions";
|
|
16
16
|
import EventEmitter from "eventemitter3";
|
|
17
17
|
import { parseSubscriptionEvents } from "../utils/event";
|
|
18
18
|
import { cosmos } from "@cosmostation/extension-client";
|
|
19
|
-
import { SigningCosmWasmClient,
|
|
19
|
+
import { SigningCosmWasmClient, setupWasmExtension, } from "@cosmjs/cosmwasm-stargate";
|
|
20
20
|
import BigNumber from "bignumber.js";
|
|
21
21
|
function isSigningClient(object) {
|
|
22
22
|
return "signAndBroadcast" in object;
|
|
@@ -408,18 +408,13 @@ export class Client {
|
|
|
408
408
|
const [{ address }] = await offlineSigner.getAccounts();
|
|
409
409
|
this._address = address;
|
|
410
410
|
const registry = Client.getRegistry();
|
|
411
|
-
const aminoTypes = new AminoTypes({
|
|
412
|
-
...createDefaultAminoConverters(),
|
|
413
|
-
...createWasmAminoConverters(),
|
|
414
|
-
...createCoreumAminoTypes(),
|
|
415
|
-
});
|
|
416
411
|
// signing client
|
|
417
412
|
this._client = await SigningCosmWasmClient.connectWithSigner(this.config.chain_rpc_endpoint, offlineSigner, {
|
|
418
413
|
registry: registry,
|
|
419
414
|
gasPrice: GasPrice.fromString(this.config.gas_price),
|
|
420
|
-
aminoTypes: aminoTypes,
|
|
421
415
|
});
|
|
422
416
|
this._client.aminoTypes.register = {
|
|
417
|
+
...this._client.aminoTypes.register,
|
|
423
418
|
...createCoreumAminoTypes(),
|
|
424
419
|
};
|
|
425
420
|
}
|