UNPKG

steemconnect-firebase-functions

Version:

A TypeScript library that can help you build applications with SteemConnect and Firebase.

26 lines (25 loc) 899 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const createBroadcastable_1 = require("../shared/helpers/createBroadcastable"); exports.broadcastPostWithBeneficiaries = ({ mainTag, permlink, title, body, beneficiariesAccount, beneficiariesWeight, metadata }) => ({ access_token, username }) => createBroadcastable_1.createBroadcastableCommentWithOptions({ parent_permlink: mainTag, author: username, permlink: permlink, body: body, parent_author: '', title: title, json_metadata: JSON.stringify(metadata), extensions: [ [ 0, { beneficiaries: [ { account: beneficiariesAccount, weight: beneficiariesWeight } ] } ] ] })({ access_token });