389d1ba3b9
* Cleaned up dependencies of our typescript client * Explicitly added stargate dependency and not rely on it being in node_modules
14 lines
554 B
TypeScript
14 lines
554 B
TypeScript
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/explicit-module-boundary-types
|
|
import { Coin } from "@cosmjs/stargate";
|
|
import { EncodeObject } from "@cosmjs/proto-signing";
|
|
|
|
export function makeBankMsgSend(senderAddress: string, recipientAddress: string, transferAmount: readonly Coin[]): EncodeObject {
|
|
return {
|
|
typeUrl: "/cosmos.bank.v1beta1.MsgSend",
|
|
value: {
|
|
fromAddress: senderAddress,
|
|
toAddress: recipientAddress,
|
|
amount: transferAmount,
|
|
},
|
|
};
|
|
} |