Skip to content

StreamedContract

Defined in: packages/react/src/hooks/useContractStream.ts:20

Contract with stream metadata for animations

contractId: string

Defined in: packages/react/src/hooks/useActiveContracts.ts:24

ActiveContract.contractId


optional createdAt: string

Defined in: packages/react/src/hooks/useActiveContracts.ts:27

ActiveContract.createdAt


isNew: boolean

Defined in: packages/react/src/hooks/useContractStream.ts:24

Whether this contract was just added (for enter animation)


isRemoving: boolean

Defined in: packages/react/src/hooks/useContractStream.ts:26

Whether this contract is being removed (for exit animation)


optional observers: string[]

Defined in: packages/react/src/hooks/useActiveContracts.ts:29

ActiveContract.observers


payload: Record<string, unknown>

Defined in: packages/react/src/hooks/useActiveContracts.ts:26

ActiveContract.payload


optional signatories: string[]

Defined in: packages/react/src/hooks/useActiveContracts.ts:28

ActiveContract.signatories


streamedAt: number

Defined in: packages/react/src/hooks/useContractStream.ts:22

When the contract was first seen (for animation timing)


templateId: string

Defined in: packages/react/src/hooks/useActiveContracts.ts:25

ActiveContract.templateId