mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
29 lines
789 B
TypeScript
29 lines
789 B
TypeScript
|
import { AgreementTemplate } from "./AgreementTemplate.abstract"
|
||
|
|
||
|
export class EscrowAccessSecretStoreTemplate extends AgreementTemplate {
|
||
|
|
||
|
public static async getInstance(): Promise<EscrowAccessSecretStoreTemplate> {
|
||
|
return AgreementTemplate.getInstance("EscrowAccessSecretStoreTemplate", EscrowAccessSecretStoreTemplate)
|
||
|
}
|
||
|
|
||
|
public createAgreement(
|
||
|
agreementId: string,
|
||
|
did: string,
|
||
|
conditionIds: string[],
|
||
|
timeLocks: number[],
|
||
|
timeOuts: number[],
|
||
|
accessConsumer: string,
|
||
|
from?: string,
|
||
|
) {
|
||
|
return super.createAgreement(
|
||
|
agreementId,
|
||
|
did,
|
||
|
conditionIds,
|
||
|
timeLocks,
|
||
|
timeOuts,
|
||
|
[accessConsumer],
|
||
|
from,
|
||
|
)
|
||
|
}
|
||
|
}
|