File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
packages/graph-framework-space-events/src Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11import { expect , it } from 'vitest' ;
2+
23import { applyEvent } from './apply-event.js' ;
34import { createInvitation } from './create-invitation.js' ;
45import { createSpace } from './create-space.js' ;
Original file line number Diff line number Diff line change 11import { expect , it } from 'vitest' ;
2+
23import { applyEvent } from './apply-event.js' ;
34import { createSpace } from './create-space.js' ;
45
Original file line number Diff line number Diff line change 1- import { generateId } from "graph-framework-utils" ;
2- import type { Author , SpaceEvent } from "./types.js" ;
1+ import { generateId } from 'graph-framework-utils' ;
2+
3+ import type { Author , SpaceEvent } from './types.js' ;
34
45type Params = {
56 author : Author ;
67} ;
78
89export const createSpace = ( { author } : Params ) : SpaceEvent => {
910 const transaction = {
10- type : " create-space" as const ,
11+ type : ' create-space' as const ,
1112 id : generateId ( ) ,
1213 creatorSignaturePublicKey : author . signaturePublicKey ,
1314 creatorEncryptionPublicKey : author . encryptionPublicKey ,
1415 } ;
1516 // TODO canonicalize, hash and sign the transaction
16- const signature = "" ;
17+ const signature = '' ;
1718
1819 return {
1920 transaction,
Original file line number Diff line number Diff line change 11import { expect , it } from 'vitest' ;
2+
23import { applyEvent } from './apply-event.js' ;
34import { createSpace } from './create-space.js' ;
45import { deleteSpace } from './delete-space.js' ;
You can’t perform that action at this time.
0 commit comments