Namespace org.accordproject.runtime@0.2.0

Compatible with Concerto versions ^3.0.0. Has 4 declarations.

Concerto JSON AST PlantUML XML Schema Typescript C# OData JSON Schema GraphQL Java Go Avro Markdown OpenAPI Protobuf Mermaid

Declared Types

      
      import org.accordproject.runtime@0.2.0.Request from /accordproject/runtime@0.2.0.cto
      import org.accordproject.runtime@0.2.0.Response from /accordproject/runtime@0.2.0.cto
      import org.accordproject.runtime@0.2.0.Obligation from /accordproject/runtime@0.2.0.cto
      import org.accordproject.runtime@0.2.0.State from /accordproject/runtime@0.2.0.cto
      
      

Dependencies

Source

    /*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

concerto version "^3.0.0"

namespace org.accordproject.runtime@0.2.0

import org.accordproject.contract@0.2.0.Contract from https://models.accordproject.org/accordproject/contract@0.2.0.cto

/**
 * Runtime API
 * -- Describes input and output of calls to a contract's clause
 */

/* A request is a transaction */
transaction Request {
}

/* A response is a transaction */
transaction Response {
}

/* An event that represents an obligation that needs to be fulfilled */
abstract event Obligation identified {
  /* A back reference to the governing contract that emitted this obligation */
  --> Contract contract

  /* The party that is obligated */
  --> Participant promisor optional

  /* The party that receives the performance */
  --> Participant promisee optional

  /* The time before which the obligation is fulfilled */
  o DateTime deadline optional
}

/* A contract state is an asset -- The runtime state of the contract */
asset State {
}