diff --git a/packages/cli/examples/delegate.ts b/packages/cli/examples/delegate.ts index f84314bf..72496c28 100644 --- a/packages/cli/examples/delegate.ts +++ b/packages/cli/examples/delegate.ts @@ -1,4 +1,12 @@ -import { coin, coins, makeSignDoc, makeStdTx, CosmosClient, MsgDelegate, Secp256k1HdWallet } from "@cosmjs/launchpad"; +import { + coin, + coins, + makeSignDoc, + makeStdTx, + CosmosClient, + MsgDelegate, + Secp256k1HdWallet, +} from "@cosmjs/launchpad"; const wallet = await Secp256k1HdWallet.fromMnemonic( "enlist hip relief stomach skate base shallow young switch frequent cry park", diff --git a/packages/cli/examples/multisig_address.ts b/packages/cli/examples/multisig_address.ts index 94c37c1a..763ebaca 100644 --- a/packages/cli/examples/multisig_address.ts +++ b/packages/cli/examples/multisig_address.ts @@ -2,28 +2,28 @@ import { MultisigThresholdPubkey, pubkeyToAddress } from "@cosmjs/amino"; // https://github.com/cosmos/cosmjs/issues/673#issuecomment-779847238 const multisigPubkey: MultisigThresholdPubkey = { - "type": "tendermint/PubKeyMultisigThreshold", - "value": { - "threshold": "3", - "pubkeys": [ + type: "tendermint/PubKeyMultisigThreshold", + value: { + threshold: "3", + pubkeys: [ { - "type": "tendermint/PubKeySecp256k1", - "value": "A4KZH7VSRwW/6RTExROivRYKsQP63LnGcBlXFo+eKGpQ" + type: "tendermint/PubKeySecp256k1", + value: "A4KZH7VSRwW/6RTExROivRYKsQP63LnGcBlXFo+eKGpQ", }, { - "type": "tendermint/PubKeySecp256k1", - "value": "A8/Cq4VigOnDgl6RSdcx97fjrdCo/qwAX6C34n7ZDZLs" + type: "tendermint/PubKeySecp256k1", + value: "A8/Cq4VigOnDgl6RSdcx97fjrdCo/qwAX6C34n7ZDZLs", }, { - "type": "tendermint/PubKeySecp256k1", - "value": "ApKgZuwy03xgdRnXqG6yEHATomsWDOPacy7nbpsuUCSS" + type: "tendermint/PubKeySecp256k1", + value: "ApKgZuwy03xgdRnXqG6yEHATomsWDOPacy7nbpsuUCSS", }, { - "type": "tendermint/PubKeySecp256k1", - "value": "Aptm8E3WSSFS0RTAIUW+bLi/slYnTEE+h4qPTG28CHfq" - } - ] - } + type: "tendermint/PubKeySecp256k1", + value: "Aptm8E3WSSFS0RTAIUW+bLi/slYnTEE+h4qPTG28CHfq", + }, + ], + }, }; const address = pubkeyToAddress(multisigPubkey, "cosmos"); diff --git a/packages/cli/package.json b/packages/cli/package.json index 39c9de42..31a1e6b9 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -16,6 +16,7 @@ }, "scripts": { "format": "prettier --write --loglevel warn \"./src/**/*.ts\"", + "format-examples": "prettier --write --loglevel warn \"./examples/**/*.ts\"", "format-text": "prettier --write \"./*.md\"", "lint": "eslint --max-warnings 0 \"./**/*.ts\" \"./*.js\"", "lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",