1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/src/ddo/ServiceAgreementTemplate.ts

34 lines
826 B
TypeScript
Raw Normal View History

export interface ServiceAgreementTemplateParameter {
name: string
type: string
value: string | number
}
export interface ServiceAgreementTemplateEvent {
name: string
actorType: string
handler: {
moduleName: string
functionName: string
2019-06-20 00:20:09 +02:00
version: string
}
}
export interface ServiceAgreementTemplateCondition {
name: string
timelock: number
timeout: number
contractName: string
functionName: string
parameters: ServiceAgreementTemplateParameter[]
events: ServiceAgreementTemplateEvent[]
}
export interface ServiceAgreementTemplate {
contractName: string
events: ServiceAgreementTemplateEvent[]
fulfillmentOrder: string[]
2019-06-20 00:20:09 +02:00
conditionDependency: { [condition: string]: string[] }
conditions: ServiceAgreementTemplateCondition[]
}