@towns-protocol/sdk
Version:
For more details, visit the following resources:
12 lines • 982 B
TypeScript
import { BlockchainTransaction_TokenTransfer, ChannelMessage, Tags, PlainMessage } from '@towns-protocol/proto';
import { StreamStateView } from './streamStateView';
import { TipEventObject } from '@towns-protocol/generated/dev/typings/ITipping';
/**
* Unsafe way to create tags. Possibly used in scenarios where we dont have access to the stream view.
* Usages of this function may create messages with the wrong tags.
*/
export declare function unsafe_makeTags(message: PlainMessage<ChannelMessage>): PlainMessage<Tags>;
export declare function makeTags(message: PlainMessage<ChannelMessage>, streamView: StreamStateView): PlainMessage<Tags>;
export declare function makeTipTags(event: TipEventObject, toUserId: string, streamView: StreamStateView): PlainMessage<Tags> | undefined;
export declare function makeTransferTags(event: PlainMessage<BlockchainTransaction_TokenTransfer>, streamView: StreamStateView): PlainMessage<Tags> | undefined;
//# sourceMappingURL=tags.d.ts.map