UNPKG

@kyve/core-beta

Version:

🚀 The base KYVE node implementation.

21 lines (20 loc) • 1.16 kB
import { Node } from "../.."; /** * submitBundleProposal submits a bundle proposal to the * network. By submitting a new bundle proposal the current * one gets finalized and the next uploader is automatically * chosen. * * @method submitBundleProposal * @param {Node} this * @param {string} storageId the storage id of the data stored in storage provider * @param {number} dataSize the raw byte size of the data stored in storage provider * @param {string} dataHash the sha256 hash of the raw data stored in storage provider * @param {number} fromIndex the index from where the bundle was created * @param {number} bundleSize the size of the bundle * @param {string} fromKey the start key the bundle got created from * @param {string} toKey the key of the last data item in the bundle * @param {string} bundleSummary a summary of the bundle in a short string which gets stored on-chain * @return {Promise<boolean>} */ export declare function submitBundleProposal(this: Node, storageId: string, dataSize: number, dataHash: string, fromIndex: number, bundleSize: number, fromKey: string, toKey: string, bundleSummary: string): Promise<boolean>;