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
825 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-03-14 21:28:51 +01: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[]
conditionDependency: {[condition: string]: string[]}
conditions: ServiceAgreementTemplateCondition[]
}