stargate: Use paths/wallets from amino instead of launchpad

This commit is contained in:
willclarktech 2021-03-24 16:47:15 +01:00
parent edfcc704eb
commit a4bf788ff4
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
3 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,11 @@
import { createMultisigThresholdPubkey, encodeSecp256k1Pubkey, pubkeyToAddress } from "@cosmjs/amino";
import { coins, makeCosmoshubPath, Secp256k1HdWallet } from "@cosmjs/launchpad";
import {
createMultisigThresholdPubkey,
encodeSecp256k1Pubkey,
makeCosmoshubPath,
pubkeyToAddress,
Secp256k1HdWallet,
} from "@cosmjs/amino";
import { coins } from "@cosmjs/launchpad";
import { assert } from "@cosmjs/utils";
import { MsgSend } from "./codec/cosmos/bank/v1beta1/tx";

View File

@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/naming-convention,no-bitwise */
import { MsgDelegate as LaunchpadMsgDelegate, Secp256k1HdWallet } from "@cosmjs/launchpad";
import { Secp256k1HdWallet } from "@cosmjs/amino";
import { MsgDelegate as LaunchpadMsgDelegate } from "@cosmjs/launchpad";
import { coin, coins, DirectSecp256k1HdWallet, Registry } from "@cosmjs/proto-signing";
import { assert, sleep } from "@cosmjs/utils";
import protobuf from "protobufjs/minimal";

View File

@ -1,8 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { AminoSignResponse, StdSignDoc } from "@cosmjs/amino";
import { AminoSignResponse, Secp256k1HdWallet, StdSignDoc } from "@cosmjs/amino";
import { Bip39, EnglishMnemonic, Random, Secp256k1, Slip10, Slip10Curve } from "@cosmjs/crypto";
import { Bech32 } from "@cosmjs/encoding";
import { Secp256k1HdWallet } from "@cosmjs/launchpad";
import {
coins,
DirectSecp256k1HdWallet,