Skip to content

Instantly share code, notes, and snippets.

View ducphamle2's full-sized avatar
🎯
Focusing

Duc Pham ducphamle2

🎯
Focusing
View GitHub Profile
@ducphamle2
ducphamle2 / signEvmWithKeplr.ts
Created August 28, 2024 02:36 — forked from phips28/signEvmWithKeplr.ts
Sign Cosmos-EVM chains with Keplr
import { SigningStargateClient } from '@cosmjs/stargate'
import { fromBase64, toBase64 } from '@cosmjs/encoding'
import { makeAuthInfoBytes, makeSignDoc } from '@cosmjs/proto-signing'
import { Int53 } from '@cosmjs/math'
import { Any } from 'cosmjs-types/google/protobuf/any'
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys'
import { AuthInfo, Fee, Tx, TxBody, TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx'
import { isDev } from '@/helpers/env'
import { OfflineDirectSigner } from '@cosmjs/proto-signing/build/signer'
import { StdFee } from '@cosmjs/amino'

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

rustup install 1.53.0
rustup override set 1.53.0
# include c header
CFLAGS=-I/usr/include
# change compiler
CC=clang -m32