mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
34 lines
815 B
TypeScript
34 lines
815 B
TypeScript
|
export interface ServiceAgreementTemplateParameter {
|
||
|
name: string
|
||
|
type: string
|
||
|
value: string
|
||
|
}
|
||
|
|
||
|
export interface ServiceAgreementTemplateEvent {
|
||
|
name: string
|
||
|
actorType: string
|
||
|
handler: {
|
||
|
moduleName: string
|
||
|
functionName: string
|
||
|
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[]
|
||
|
}
|