Skip to content

Commit

Permalink
Merge pull request #249 from berendsliedrecht/type-revoc-reg-delta
Browse files Browse the repository at this point in the history
fix(js): type the revocation registry delta
  • Loading branch information
andrewwhitehead authored Jan 9, 2024
2 parents c4b558c + dfb9ff4 commit 4e1007e
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,27 @@ import type { WriteRequestResultTxnBase, WriteRequestResponse } from '../types'

import { indyVdr, IndyVdrRequest } from '../indyVdr'

type ClRevocationRegistryDelta = {
prevAccum?: string
accum: string
issued: Array<number>
revoked: Array<number>
}

export type RevocationRegistryEntryRequestOptions = {
submitterDid: string
revocationRegistryDefinitionId: string
revocationRegistryDefinitionType: string
revocationRegistryEntry: {
ver: '1.0'
value: { accum: string }
value: ClRevocationRegistryDelta | Record<string, unknown>
}
}

interface RevocationRegistryEntryResultTxn extends WriteRequestResultTxnBase {
type: '114'
data: {
value: {
accum: string
}
value: ClRevocationRegistryDelta | Record<string, unknown>
revocRegDefId: string
revocDefType: 'CL_ACCUM'
}
Expand Down

0 comments on commit 4e1007e

Please sign in to comment.