c1e809fd99
* Made client compile again + set auto fees * Simplified client construction by allowing only a single URL * wip * Simplified signing assertion * Initial implementation of queries * Implemented all basic nymd queries * Validator API queries * Signing related queries * Using default arguments * Removed redundant else branches * `eslint` and `prettier` formatting on Typescript validator client * Removed cyclic import on Coin type * Missing direct dependencies * Ingoring cyclic imports * Removed unused argument Co-authored-by: Mark Sinclair <mmsinclair@gmail.com>
19 lines
530 B
TypeScript
19 lines
530 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,
|
|
},
|
|
};
|
|
}
|