MCPcopy Create free account
hub / github.com/block/buzz / toRawChannelDetail

Function toRawChannelDetail

desktop/src/testing/e2eBridge.ts:865–882  ·  view source on GitHub ↗
(
  channel: MockChannel,
  config?: E2eConfig,
)

Source from the content-addressed store, hash-verified

863}
864
865function toRawChannelDetail(
866 channel: MockChannel,
867 config?: E2eConfig,
868): RawChannelDetail {
869 return {
870 ...toRawChannel(channel, config),
871 created_by: channel.created_by,
872 created_at: channel.created_at,
873 updated_at: channel.updated_at,
874 topic_set_by: channel.topic_set_by,
875 topic_set_at: channel.topic_set_at,
876 purpose_set_by: channel.purpose_set_by,
877 purpose_set_at: channel.purpose_set_at,
878 topic_required: channel.topic_required,
879 max_members: channel.max_members,
880 nip29_group_id: channel.nip29_group_id,
881 };
882}
883
884function createMockMember(
885 pubkey: string,

Callers 2

handleGetChannelDetailsFunction · 0.85
handleUpdateChannelFunction · 0.85

Calls 1

toRawChannelFunction · 0.85

Tested by

no test coverage detected