2019-03-07 15:55:34 +01:00
|
|
|
export interface ServiceAgreementTemplateParameter {
|
|
|
|
name: string
|
|
|
|
type: string
|
2019-03-12 13:49:11 +01:00
|
|
|
value: string | number
|
2019-03-07 15:55:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ServiceAgreementTemplateEvent {
|
|
|
|
name: string
|
|
|
|
actorType: string
|
|
|
|
handler: {
|
|
|
|
moduleName: string
|
|
|
|
functionName: string
|
2019-06-20 00:20:09 +02:00
|
|
|
version: string
|
2019-03-07 15:55:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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[] }
|
2019-03-07 15:55:34 +01:00
|
|
|
conditions: ServiceAgreementTemplateCondition[]
|
|
|
|
}
|