Namespace org.accordproject.cicero.contract0.1.0

Compatible with Concerto versions . Has 4 declarations.

Concerto JSON AST UML JSON Schema XML Schema GraphQL TypeScript CSharp Java Go OData

Declared Types

      
      import org.accordproject.cicero.contract.AccordContractState from https://models.accordproject.org/cicero/contract.cto
      import org.accordproject.cicero.contract.AccordParty from https://models.accordproject.org/cicero/contract.cto
      import org.accordproject.cicero.contract.AccordContract from https://models.accordproject.org/cicero/contract.cto
      import org.accordproject.cicero.contract.AccordClause from https://models.accordproject.org/cicero/contract.cto
      
      

Dependencies

  • None

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.
 */

namespace org.accordproject.cicero.contract

/**
 * Contract Data
 * -- Describes the structure of contracts and clauses
 */

/* A contract state is an asset -- The runtime state of the contract */
asset AccordContractState identified by stateId {
  o String stateId
}

/* A party to a contract */
participant AccordParty identified by partyId {
  o String partyId
}

/* A contract is a asset -- This contains the contract data */
abstract asset AccordContract identified by contractId {
  o String contractId
  --> AccordParty[] parties optional
}

/* A clause is an asset -- This contains the clause data */
abstract asset AccordClause identified by clauseId {
  o String clauseId
}