├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ ├── custom-issue.md
│ └── feature_request.md
├── pull_request_template.md
└── workflows
│ ├── build.yml
│ └── publish.yml
├── .gitignore
├── CHARTER.md
├── CONTRIBUTING.md
├── DEVELOPERS.md
├── HEADER
├── HEADER.md
├── LICENSE
├── README.md
├── assets
└── APLogo.png
├── cicero.png
├── config.json
├── jsdoc.json
├── license.config.json
├── package-lock.json
├── package.json
├── packages
├── cicero-cli
│ ├── .eslintignore
│ ├── .eslintrc.yml
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── lib
│ │ └── commands.js
│ ├── license.config.json
│ ├── package-lock.json
│ ├── package.json
│ └── test
│ │ ├── cli.js
│ │ └── data
│ │ ├── helloemit
│ │ ├── README.md
│ │ ├── model
│ │ │ ├── @models.accordproject.org.accordproject.contract.cto
│ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ └── model.cto
│ │ ├── package.json
│ │ ├── request.json
│ │ └── text
│ │ │ ├── grammar.tem.md
│ │ │ └── sample.md
│ │ ├── helloworldstate
│ │ ├── README.md
│ │ ├── model
│ │ │ ├── @models.accordproject.org.accordproject.contract.cto
│ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ ├── @models.accordproject.org.accordproject.runtime.cto
│ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ ├── @models.accordproject.org.money@0.2.0.cto
│ │ │ ├── @models.accordproject.org.money@0.3.0.cto
│ │ │ ├── @models.accordproject.org.time@0.2.0.cto
│ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ └── model.cto
│ │ ├── package.json
│ │ ├── request.json
│ │ └── text
│ │ │ ├── grammar.tem.md
│ │ │ └── sample.md
│ │ ├── installment-sale-ergo
│ │ ├── README.md
│ │ ├── model
│ │ │ └── model.cto
│ │ ├── package.json
│ │ ├── request-last.json
│ │ ├── request.json
│ │ ├── state.json
│ │ └── text
│ │ │ ├── grammar.tem.md
│ │ │ └── sample.md
│ │ ├── ip-payment
│ │ ├── README.md
│ │ ├── model
│ │ │ └── model.cto
│ │ ├── package.json
│ │ ├── request.json
│ │ ├── state.json
│ │ └── text
│ │ │ ├── grammar.tem.md
│ │ │ └── sample.md
│ │ ├── keystore
│ │ ├── README.md
│ │ ├── certificate.pem
│ │ ├── csr.csr
│ │ ├── key.pem
│ │ └── keystore.p12
│ │ ├── latedeliveryandpenalty
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── data.json
│ │ ├── data_err.json
│ │ ├── model
│ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ └── model.cto
│ │ ├── package.json
│ │ ├── params.json
│ │ ├── params_err.json
│ │ ├── request.json
│ │ ├── request_err.json
│ │ ├── state.json
│ │ └── text
│ │ │ ├── grammar.tem.md
│ │ │ ├── sample.md
│ │ │ └── sample_err.md
│ │ ├── latedeliveryandpenalty_js
│ │ ├── README.md
│ │ ├── model
│ │ │ ├── model.cto
│ │ │ └── test.cto
│ │ ├── package.json
│ │ ├── request.json
│ │ └── text
│ │ │ ├── grammar.tem.md
│ │ │ ├── sample.md
│ │ │ └── sample_err.md
│ │ ├── signedArchive
│ │ ├── README.md
│ │ ├── logo.png
│ │ ├── model
│ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ ├── @models.accordproject.org.money@0.3.0.cto
│ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ └── model.cto
│ │ ├── package.json
│ │ ├── request.json
│ │ └── text
│ │ │ ├── grammar.tem.md
│ │ │ └── sample.md
│ │ └── signedArchiveFail
│ │ ├── README.md
│ │ ├── logo.png
│ │ ├── model
│ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ └── model.cto
│ │ ├── package.json
│ │ ├── request.json
│ │ ├── signature.json
│ │ └── text
│ │ ├── grammar.tem.md
│ │ └── sample.md
├── cicero-core
│ ├── .eslintignore
│ ├── .eslintrc.yml
│ ├── .gitignore
│ ├── .npmignore
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── NOTICE
│ ├── README.md
│ ├── babel-config.json
│ ├── docs
│ │ └── specification.md
│ ├── index.js
│ ├── jsdoc.json
│ ├── license.config.json
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ ├── argument.js
│ │ ├── argumenttype.js
│ │ ├── clause.js
│ │ ├── contract.js
│ │ ├── external
│ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ ├── @models.accordproject.org.money@0.3.0.cto
│ │ │ └── @models.accordproject.org.time@0.3.0.cto
│ │ ├── function.js
│ │ ├── javascriptscriptmanager.js
│ │ ├── languages.js
│ │ ├── loaders
│ │ │ ├── aparchiveloader.js
│ │ │ ├── compositearchiveloader.js
│ │ │ ├── defaultarchiveloader.js
│ │ │ ├── githubarchiveloader.js
│ │ │ └── httparchiveloader.js
│ │ ├── logicmanager.js
│ │ ├── metadata.js
│ │ ├── mimetype.js
│ │ ├── script.js
│ │ ├── scriptmanager.js
│ │ ├── template.js
│ │ ├── templateinstance.js
│ │ ├── templatelibrary.js
│ │ ├── templateloader.js
│ │ ├── templatesaver.js
│ │ └── typescriptscriptmanager.js
│ ├── test
│ │ ├── clause.js
│ │ ├── data
│ │ │ ├── allblocks
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── alltypes
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── bad-binding
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── bad-boolean-binding
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sampleErr.md
│ │ │ ├── bad-copyright-license
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── bad-formatted-binding
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sampleErr.md
│ │ │ ├── bad-locale
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample_!.md
│ │ │ ├── bad-logic
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── model.cto
│ │ │ │ │ └── test.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── bad-property
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── block-ergo
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── clause.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── block-ifelse-error
│ │ │ │ ├── README.md
│ │ │ │ ├── data.json
│ │ │ │ ├── model
│ │ │ │ │ └── clause.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── block-ifelse
│ │ │ │ ├── README.md
│ │ │ │ ├── data.json
│ │ │ │ ├── model
│ │ │ │ │ └── clause.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample-err.md
│ │ │ │ │ ├── sample-inactive.md
│ │ │ │ │ └── sample.md
│ │ │ ├── block-join
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── clause.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── block-olist
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── clause.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── block-ulist
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── clause.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── conga
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sampleErr.md
│ │ │ ├── copyright-license
│ │ │ │ ├── README.md
│ │ │ │ ├── ciceromark_parsed.json
│ │ │ │ ├── contract.json
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.party@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.money@0.3.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ ├── slate.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── copyright-license_js
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── dummy.pdf
│ │ │ ├── fixed-interests
│ │ │ │ ├── README.md
│ │ │ │ ├── contract.json
│ │ │ │ ├── logo.png
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.money@0.3.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ ├── state.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── fixed-interests@0.6.0.cta
│ │ │ ├── formatted-amounts-0 0,0
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-amounts-0,0.0
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-D MMM YYYY HHmmss.SSSZ
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-D MMM YYYY HHmmssZ
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-D MMM YYYYZ
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-D MMMM YYYY HHmmss.SSSZ
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-D-M-YYYY H mmss.SSSZ
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-DD-MMM-YYYY H mmss.SSSZ
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-DD_MM_YYYY
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-MM_DD_YYYY
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-dates-NOFORMAT
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-monetaryamounts-0 0,0 CCC
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-monetaryamounts-0,0.0 CCC
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-monetaryamounts-K0,0.0
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── formatted-monetaryamounts-K0,0.00
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── expected.json
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── helloemit
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── state.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── hellomodule-bug
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ ├── state.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── hellomodule
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ ├── state.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── helloworldstate
│ │ │ │ ├── README.md
│ │ │ │ ├── logo.png
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── js-ergo-inside
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── model.cto
│ │ │ │ │ └── test.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── keystore
│ │ │ │ ├── README.md
│ │ │ │ ├── certificate.pem
│ │ │ │ ├── csr.csr
│ │ │ │ ├── key.pem
│ │ │ │ └── keystore.p12
│ │ │ ├── latedeliveryandpenalty-cr
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ ├── model.cto
│ │ │ │ │ └── test.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── latedeliveryandpenalty-period
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── clause.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ ├── state.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── latedeliveryandpenalty-typescript
│ │ │ │ ├── README.md
│ │ │ │ ├── logic
│ │ │ │ │ └── logic.ts
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample-noforce.md
│ │ │ │ │ ├── sample-updated.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── latedeliveryandpenalty.cta
│ │ │ ├── latedeliveryandpenalty
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample-noforce.md
│ │ │ │ │ ├── sample-updated.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── latedeliveryandpenalty_js
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ ├── model.cto
│ │ │ │ │ └── test.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── request.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── locales-conga
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_fr.md
│ │ │ ├── logo@0.0.1.cta
│ │ │ ├── logo@0.0.1
│ │ │ │ ├── logo.png
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.money@0.3.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── logo_128_128.png
│ │ │ ├── logo_256_256.png
│ │ │ ├── logo_corrupted.png
│ │ │ ├── logo_wrong_mime.png
│ │ │ ├── models
│ │ │ │ ├── common.cto
│ │ │ │ ├── model.cto
│ │ │ │ ├── test.cto
│ │ │ │ └── time.cto
│ │ │ ├── multiple-concepts
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── no-concepts
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── no-logic
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ ├── model.cto
│ │ │ │ │ └── test.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── no-packagejson
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ └── model.cto
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── no-sample
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ └── grammar.tem.md
│ │ │ ├── signing-template
│ │ │ │ ├── helloworldstate
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── logo.png
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ │ └── model.cto
│ │ │ │ │ ├── package.json
│ │ │ │ │ ├── request.json
│ │ │ │ │ └── text
│ │ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ │ └── sample.md
│ │ │ │ └── keystore.p12
│ │ │ ├── template-decorator
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── template-logo
│ │ │ │ ├── logo.png
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── test.cto
│ │ │ ├── test.js
│ │ │ ├── test2.cto
│ │ │ ├── test2.js
│ │ │ ├── test3.cto
│ │ │ ├── text-only
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.time.cto
│ │ │ │ │ ├── @models.accordproject.org.time@0.3.0.cto
│ │ │ │ │ ├── model.cto
│ │ │ │ │ └── test.cto
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ ├── sample.md
│ │ │ │ │ └── sample_en.md
│ │ │ ├── verifying-template-signature
│ │ │ │ ├── helloworldstateTamperDate
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── logo.png
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ │ └── model.cto
│ │ │ │ │ ├── package.json
│ │ │ │ │ ├── request.json
│ │ │ │ │ ├── signature.json
│ │ │ │ │ └── text
│ │ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ │ └── sample.md
│ │ │ │ ├── helloworldstateTamperSign
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── logo.png
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ │ └── model.cto
│ │ │ │ │ ├── package.json
│ │ │ │ │ ├── request.json
│ │ │ │ │ ├── signature.json
│ │ │ │ │ └── text
│ │ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ │ └── sample.md
│ │ │ │ └── helloworldstateUnsigned
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── logo.png
│ │ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ │ ├── package.json
│ │ │ │ │ ├── request.json
│ │ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ ├── with-node_modules
│ │ │ │ ├── README.md
│ │ │ │ ├── model
│ │ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ │ ├── @models.accordproject.org.accordproject.runtime@0.2.0.cto
│ │ │ │ │ └── model.cto
│ │ │ │ ├── node_modules
│ │ │ │ │ └── my-model-package
│ │ │ │ │ │ ├── models
│ │ │ │ │ │ └── nm_models.cto
│ │ │ │ │ │ └── package.json
│ │ │ │ ├── package.json
│ │ │ │ └── text
│ │ │ │ │ ├── grammar.tem.md
│ │ │ │ │ └── sample.md
│ │ │ └── wrong-name-template-logo
│ │ │ │ ├── model
│ │ │ │ ├── @models.accordproject.org.accordproject.contract@0.2.0.cto
│ │ │ │ └── model.cto
│ │ │ │ ├── package.json
│ │ │ │ ├── symbol.png
│ │ │ │ └── text
│ │ │ │ ├── grammar.tem.md
│ │ │ │ └── sample.md
│ │ ├── httparchiveloader.js
│ │ ├── logicmanager.js
│ │ ├── metadata.js
│ │ ├── mimetype.js
│ │ ├── module.js
│ │ ├── script.js
│ │ ├── scriptmanager.js
│ │ ├── template.js
│ │ ├── templateinstance.js
│ │ └── templatelibrary.js
│ └── webpack.config.js
└── generator-cicero-template
│ ├── .eslintignore
│ ├── .eslintrc.yml
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .yo-rc.json
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── generators
│ └── app
│ │ ├── index.js
│ │ ├── promptingHelpers.js
│ │ └── templates
│ │ ├── .cucumber.js
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── logo.png
│ │ ├── model
│ │ └── model.cto
│ │ ├── package.json
│ │ ├── request.json
│ │ ├── test
│ │ └── logic_default.feature
│ │ └── text
│ │ ├── grammar.tem.md
│ │ └── sample.md
│ ├── license.config.json
│ ├── package-lock.json
│ ├── package.json
│ └── test
│ └── app.js
└── scripts
├── bump_version.js
├── coverage.js
├── tag.js
└── timestamp.js
/.github/ISSUE_TEMPLATE/custom-issue.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Custom Issue
3 | about: For miscellaneous, such as questions, discussions, etc.
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 |
11 | # Discussion 🗣
12 |
13 |
14 | ## Context
15 |
16 |
17 | ## Detailed Description
18 |
19 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature Request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 |
11 | # Feature Request 🛍️
12 |
13 |
14 | ## Use Case
15 |
16 |
17 | ## Possible Solution
18 |
19 |
20 | ## Context
21 |
22 |
23 |
24 | ## Detailed Description
25 |
26 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Accord Project Cicero Contribution Guide
2 |
3 | ## ❗ Accord Project Contribution Guide ❗
4 | We'd love for you to contribute to our source code and to make Cicero technology even better than it is today! Please refer to the [Accord Project Contribution guidelines][apcontribute] we'd like you to follow.
5 |
6 | ## Cicero Specific Information
7 | The main channel for support with Cicero is the [#technology-cicero Discord Channel][apcicerodiscord] on the [Accord Project Discord][apdiscord].
8 |
9 | [apcontribute]: https://github.com/accordproject/techdocs/blob/master/CONTRIBUTING.md
10 | [apdiscord]: https://discord.com/invite/Zm99SKhhtA
11 | [apcicerodiscord]: https://discord.gg/FZw5fwse
12 |
--------------------------------------------------------------------------------
/HEADER:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the "License");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | http://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an "AS IS" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/HEADER.md:
--------------------------------------------------------------------------------
1 | ## License
2 | Accord Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Accord Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.
--------------------------------------------------------------------------------
/assets/APLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/assets/APLogo.png
--------------------------------------------------------------------------------
/cicero.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/cicero.png
--------------------------------------------------------------------------------
/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.25.0"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/cicero-cli/.eslintignore:
--------------------------------------------------------------------------------
1 | coverage
2 | node_modules
3 | out
4 | lib/grammar
5 | test/data
6 |
--------------------------------------------------------------------------------
/packages/cicero-cli/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to this project will be documented in this file.
4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5 |
6 | # [0.20.0-alpha.2](https://github.com/accordproject/cicero/compare/v0.13.5...v0.20.0-alpha.2) (2019-10-01)
7 |
8 | **Note:** Version bump only for package @accordproject/cicero-cli
9 |
--------------------------------------------------------------------------------
/packages/cicero-cli/README.md:
--------------------------------------------------------------------------------
1 | # Cicero CLI
2 |
3 | Command line interface (for parsing, execution, creating archives, etc.) for Accord Project legal templates
4 |
5 | ## Documentation
6 |
7 | http://docs.accordproject.org
8 |
9 | ## Installation
10 |
11 | ```
12 | npm install -g @accordproject/cicero-cli
13 | ```
14 |
15 | ## Usage
16 |
17 | Run `cicero --help` for usage instructions.
18 |
19 | ## License
20 | Accord Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Accord Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.
21 |
22 | © 2017-2019 Clause, Inc.
23 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloemit/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloemit@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * The template model
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | /**
12 | * The name for the clause
13 | */
14 | o String name
15 | }
16 |
17 | transaction MyRequest extends Request {
18 | o String input
19 | }
20 |
21 | transaction MyResponse extends Response {
22 | o String output
23 | }
24 |
25 | event Greeting {
26 | o String message
27 | }
28 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloemit/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloemit",
3 | "version": "0.0.5",
4 | "description": "This is the Hello World of Accord Protocol Templates with Emit.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloemit/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.helloemit@1.0.0.MyRequest",
3 | "input": "World"
4 | }
5 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloemit/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloemit/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloworldstate/README.md:
--------------------------------------------------------------------------------
1 | # Hello World State
2 |
3 | This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloworldstate/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloworldstate@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | asset HelloWorldState extends State {
15 | o Double counter
16 | }
17 |
18 | /**
19 | * The template model
20 | */
21 | @template
22 | asset HelloWorldClause extends Clause {
23 | /**
24 | * The name for the clause
25 | */
26 | o String name
27 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloworldstate/package.json:
--------------------------------------------------------------------------------
1 | {"name":"helloworldstate","displayName":"Hello World State","version":"0.14.0","description":"This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.","author":"Accord Project","license":"Apache-2.0","accordproject":{"template":"clause","cicero":"^0.25.0"},"keywords":["hello","world","greet"]}
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloworldstate/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.helloworldstate.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloworldstate/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/helloworldstate/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/installment-sale-ergo/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Installment Sale
3 |
4 | A simple clause for a sale paid in installments.
5 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/installment-sale-ergo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "installment-sale",
3 | "version": "0.1.0",
4 | "description": "This is a clause for a simple installment sale.",
5 | "author": "Accord Project",
6 | "license": "Apache-2.0",
7 | "accordproject": {
8 | "template": "contract",
9 | "cicero": "^0.25.0"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/installment-sale-ergo/request-last.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.installmentsale.ClosingPayment",
3 | "amount": 3229.525312499998
4 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/installment-sale-ergo/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.installmentsale.Installment",
3 | "amount": 2500.00
4 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/installment-sale-ergo/state.json:
--------------------------------------------------------------------------------
1 | { "$class": "org.accordproject.installmentsale.InstallmentSaleState",
2 | "status" : "WaitingForFirstDayOfNextMonth",
3 | "balance_remaining" : 10000.00,
4 | "total_paid" : 0.00,
5 | "next_payment_month" : 3 }
6 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/installment-sale-ergo/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{BUYER}} agrees to pay to {{SELLER}} the total sum e{{INITIAL_DUE}}, in the manner following:
2 |
3 | E{{DUE_AT_CLOSING}} is to be paid at closing, and the remaining balance of E{{TOTAL_DUE_BEFORE_CLOSING}} shall be paid as follows:
4 |
5 | E{{MIN_PAYMENT}} or more per month on the first day of each and every month, and continuing until the entire balance, including both principal and interest, shall be paid in full -- provided, however, that the entire balance due plus accrued interest and any other amounts due here-under shall be paid in full on or before 24 months.
6 |
7 | Monthly payments, which shall start on month {{FIRST_MONTH}}, include both principal and interest with interest at the rate of {{INTEREST_RATE}}%, computed monthly on the remaining balance from time to time unpaid.
8 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/installment-sale-ergo/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan" agrees to pay to "Ned" the total sum e10000, in the manner following:
2 |
3 | E500 is to be paid at closing, and the remaining balance of E9500 shall be paid as follows:
4 |
5 | E500 or more per month on the first day of each and every month, and continuing until the entire balance, including both principal and interest, shall be paid in full -- provided, however, that the entire balance due plus accrued interest and any other amounts due here-under shall be paid in full on or before 24 months.
6 |
7 | Monthly payments, which shall start on month 3, include both principal and interest with interest at the rate of 1.5%, computed monthly on the remaining balance from time to time unpaid.
8 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/ip-payment/README.md:
--------------------------------------------------------------------------------
1 |
2 | # IP Payment Clause
3 |
4 | A payment clause for an IP agreement, such as a trademark or a copyright licenses agreement.
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/ip-payment/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.ippayment@1.0.0
2 |
3 | import org.accordproject.time@0.3.0.Duration from https://models.accordproject.org/time@0.3.0.cto
4 |
5 | /**
6 | * The template model
7 | */
8 | @template
9 | asset IntellectualPropertyPaymentClause {
10 | /* royalty */
11 | o String royaltyText
12 | o Double royaltyRate
13 |
14 | /* sub-licensing */
15 | o String sublicensingRoyaltyText
16 | o Double sublicensingRoyaltyRate
17 |
18 | /* payment */
19 | o Duration paymentPeriod
20 | o Duration paymentPeriodWithPermission
21 | }
22 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/ip-payment/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ip-payment",
3 | "version": "0.8.2",
4 | "description": "This clause is a payment clause for IP agreement, such as trademark or copyright licenses aggreements.",
5 | "author": "Accord Project",
6 | "license": "Apache-2.0",
7 | "accordproject": {
8 | "template": "clause",
9 | "cicero": "^0.25.0"
10 | },
11 | "devDependencies": {
12 | "mocha": "5.2.0"
13 | },
14 | "scripts": {
15 | "test": "mocha --timeout 10000"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/ip-payment/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class":"org.accordproject.ippayment.PaymentRequest",
3 | "netSaleRevenue":1200.00,
4 | "sublicensingRevenue":450.00,
5 | "permissionGrantedBy":"04-05-2018"
6 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/ip-payment/state.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.runtime@0.2.0.ContractState"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/keystore/README.md:
--------------------------------------------------------------------------------
1 | ### To create a new keystore from scratch
2 |
3 | ```
4 | openssl genrsa -out key.pem 2048
5 | openssl req -new -sha256 -key key.pem -out csr.csr // enter 'password' for: A challenge password []:password
6 | openssl req -x509 -sha256 -days 365 -key key.pem -in csr.csr -out certificate.pem
7 | openssl pkcs12 -export -out keystore.p12 -inkey key.pem -in certificate.pem // enter 'password' when challenged
8 | ```
9 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/keystore/csr.csr:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE REQUEST-----
2 | MIICnzCCAYcCAQAwQTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk5ZMQwwCgYDVQQH
3 | DANOWUMxFzAVBgNVBAoMDkFjY29yZCBQcm9qZWN0MIIBIjANBgkqhkiG9w0BAQEF
4 | AAOCAQ8AMIIBCgKCAQEArsXUnNt3L0cH8Ms5kU/pjQmRzPdQ9qI4fHIFeq07FqcQ
5 | jf7ZECQcoNz0rlPg+RicUqvqEyk1wsvQdGthaygyz46Smt8Zyve9GWYxHWrQOZ98
6 | cAYIieMKP8YyRdL2E7CfUGfbtvrxgex/m18l4bUTbnG9WSvwrylY3P58VtTjYNGk
7 | nWSAMcU5MTLGFk8nIaw7WQtVTe9+9Y/XDs9j/orr+ak4gL0PpifzRpUMXioxW630
8 | uIoWV/P6riaRc1t2bDgDbngD82MfPaGdZUUsJMfP/D5jzWteMQmOU8A/qPYRDBw8
9 | Ktug7MAz/czZxNdCnvi9z8NrMKL3geWPy+HJfSEL6wIDAQABoBkwFwYJKoZIhvcN
10 | AQkHMQoMCHBhc3N3b3JkMA0GCSqGSIb3DQEBCwUAA4IBAQCaY0rcbucxcWQ6aVaA
11 | f/yycONtlo6BdLZpErhaZSPebTWi+4lTxb3BSuIAJLNMI+V3nRPgjaZS8qBQ9zb9
12 | d7WZIR/sbJmdgTTOSJ0AzOoSGyulKk/jVSjNjqF9wgDPnlPmpDIfPgEWxV7GiIfL
13 | z7et96uuXhkZa9PvHwpMs+2c4bovfHwHWF8Jt2kkBBrs1Ov42IjeTDrvOXB4D3KR
14 | 4J39fDPGUGIeM90tJul2ZMYgb4l+9Rg3ZPlnryRvnaSKtD1YppVnFoCygMP8i1c6
15 | fgQ6mp6+risAj/IBErHMSDuaMfRR2DMfNeMhWSGMxp2fxEC5VH0BpbDHz0Tyt/aF
16 | /g29
17 | -----END CERTIFICATE REQUEST-----
18 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/keystore/keystore.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-cli/test/data/keystore/keystore.p12
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/.gitignore:
--------------------------------------------------------------------------------
1 | data_out.json
2 | sample_out.md
3 | sample_out.json
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/data.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.latedeliveryandpenalty.TemplateModel","clauseId":"426d00d8-4293-4244-bd25-e66aa21eb0a4","forceMajeure":true,"penaltyDuration":{"$class":"org.accordproject.time.Duration","amount":9,"unit":"days"},"penaltyPercentage":7,"capPercentage":2,"termination":{"$class":"org.accordproject.time.Duration","amount":2,"unit":"weeks"},"fractionalPart":"days"}
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/data_err.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.foo.TemplateModel","clauseId":"426d00d8-4293-4244-bd25-e66aa21eb0a4","forceMajeure":true,"penaltyDuration":{"$class":"org.accordproject.time.Duration","amount":9,"unit":"days"},"penaltyPercentage":7,"capPercentage":2,"termination":{"$class":"org.accordproject.time.Duration","amount":2,"unit":"weeks"},"fractionalPart":"days"}
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "runtime": "es6",
7 | "template": "clause",
8 | "cicero": "^0.25.0"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/params.json:
--------------------------------------------------------------------------------
1 | { "request" :
2 | {
3 | "$class": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyRequest",
4 | "forceMajeure": false,
5 | "agreedDelivery": "2017-12-17T03:24:00Z",
6 | "deliveredAt": null,
7 | "goodsValue": 200.00
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/params_err.json:
--------------------------------------------------------------------------------
1 | { "request" :
2 | {
3 | "forceMajeure": false,
4 | "agreedDelivery": "December 17, 2017 03:24:00",
5 | "deliveredAt": null,
6 | "goodsValue": 200.00
7 | }
8 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyRequest",
3 | "forceMajeure": false,
4 | "agreedDelivery": "2017-12-17T03:24:00Z",
5 | "deliveredAt": null,
6 | "goodsValue": 200.00
7 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/request_err.json:
--------------------------------------------------------------------------------
1 | {
2 | "forceMajeure": false,
3 | "agreedDelivery": "December 17, 2017 03:24:00",
4 | "deliveredAt": null,
5 | "goodsValue": 200.00
6 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/state.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.runtime@0.2.0.State"
3 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty/text/sample_err.md:
--------------------------------------------------------------------------------
1 | XXX Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty_js/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty_js/model/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accord.test
2 |
3 |
4 | enum Status {
5 | o ON
6 | o OFF
7 | }
8 |
9 | concept Child {
10 | o String name
11 | }
12 |
13 | /**
14 | * A test concept
15 | */
16 | concept Foo {
17 | o String bar
18 | --> Participant p
19 | --> Asset a
20 | o Double d
21 | o Long l
22 | o DateTime t
23 | o Boolean b
24 | o Status s
25 | o Integer i
26 | o Child child
27 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty_js/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0",
8 | "runtime": "es6"
9 | },
10 | "keywords": []
11 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty_js/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyRequest","forceMajeure":false,"agreedDelivery":"2017-12-17T03:24:00Z","deliveredAt":null,"goodsValue":200}
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty_js/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty_js/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/latedeliveryandpenalty_js/text/sample_err.md:
--------------------------------------------------------------------------------
1 | XXX Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchive/README.md:
--------------------------------------------------------------------------------
1 | # Hello World State
2 |
3 | This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.
4 |
5 | ## Signature Info
6 | - PKCS#12 keystore file: keystore.p12
7 | - PKCS#12 keystore passphrase: password
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchive/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-cli/test/data/signedArchive/logo.png
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchive/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloworldstate@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, Obligation, State} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | asset HelloWorldState extends State {
15 | o Double counter
16 | }
17 |
18 | /**
19 | * The template model
20 | */
21 | @template
22 | asset HelloWorldClause extends Clause {
23 | /**
24 | * The name for the clause
25 | */
26 | o String name
27 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchive/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloworldstate",
3 | "displayName": "Hello World State",
4 | "version": "0.15.0",
5 | "description": "This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.",
6 | "author": "Accord Project",
7 | "license": "Apache-2.0",
8 | "accordproject": {
9 | "template": "clause",
10 | "cicero": "^0.25.0"
11 | },
12 | "devDependencies": {
13 | "cucumber": "^5.1.0"
14 | },
15 | "scripts": {
16 | "test": "cucumber-js test -r .cucumber.js"
17 | },
18 | "keywords": [
19 | "hello",
20 | "world",
21 | "greet"
22 | ]
23 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchive/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.helloworldstate.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchive/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchive/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchiveFail/README.md:
--------------------------------------------------------------------------------
1 | # Hello World State
2 |
3 | This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.
4 |
5 | ## Signature Info
6 | - PKCS#12 keystore file: keystore.p12
7 | - PKCS#12 keystore passphrase: password
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchiveFail/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-cli/test/data/signedArchiveFail/logo.png
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchiveFail/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloworldstate@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 |
7 | transaction MyRequest extends Request {
8 | o String input
9 | }
10 |
11 | transaction MyResponse extends Response {
12 | o String output
13 | }
14 |
15 | asset HelloWorldState extends State {
16 | o Double counter
17 | }
18 |
19 | /**
20 | * The template model
21 | */
22 | @template
23 | asset HelloWorldClause extends Clause {
24 | /**
25 | * The name for the clause
26 | */
27 | o String name
28 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchiveFail/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloworldstate",
3 | "displayName": "Hello World State",
4 | "version": "0.15.0",
5 | "description": "This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.",
6 | "author": "Accord Project",
7 | "license": "Apache-2.0",
8 | "accordproject": {
9 | "template": "clause",
10 | "cicero": "^0.25.0",
11 | "runtime": "es6"
12 | },
13 | "devDependencies": {
14 | "cucumber": "^5.1.0"
15 | },
16 | "scripts": {
17 | "test": "cucumber-js test -r .cucumber.js"
18 | },
19 | "keywords": [
20 | "hello",
21 | "world",
22 | "greet"
23 | ]
24 | }
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchiveFail/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.helloworldstate.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchiveFail/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-cli/test/data/signedArchiveFail/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/.eslintignore:
--------------------------------------------------------------------------------
1 | coverage
2 | node_modules
3 | out
4 | umd
5 | lib
6 | test/data
7 | src/grammars
8 | scripts
9 | dist
10 | webpack.config.js
11 |
--------------------------------------------------------------------------------
/packages/cicero-core/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to this project will be documented in this file.
4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5 |
6 | # [0.20.0-alpha.2](https://github.com/accordproject/cicero/compare/v0.13.5...v0.20.0-alpha.2) (2019-10-01)
7 |
8 | **Note:** Version bump only for package @accordproject/cicero-core
9 |
--------------------------------------------------------------------------------
/packages/cicero-core/NOTICE:
--------------------------------------------------------------------------------
1 | This module contains code derived from the Hyperledger Composer composer-common module (Apache 2 license).
--------------------------------------------------------------------------------
/packages/cicero-core/README.md:
--------------------------------------------------------------------------------
1 | # Cicero Core
2 |
3 | Core classes to manage the grammar, models and logic of Accord Project legal templates.
4 |
5 | ## Documentation
6 |
7 | http://docs.accordproject.org
8 |
9 | ## Installation
10 |
11 | ```
12 | npm install @accordproject/cicero-core --save
13 | ```
14 |
15 | ## License
16 | Accord Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Accord Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.
17 |
18 | © 2017-2019 Clause, Inc.
19 |
--------------------------------------------------------------------------------
/packages/cicero-core/babel-config.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-typescript"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/jsdoc.json:
--------------------------------------------------------------------------------
1 | {
2 | "tags": {
3 | "allowUnknownTags": true,
4 | "dictionaries": ["jsdoc", "closure"]
5 | },
6 | "source": {
7 | "include": [
8 | "./src",
9 | "./index.js"
10 | ],
11 | "includePattern": ".+\\.js(doc|x)?$"
12 | },
13 | "plugins": ["plugins/markdown"],
14 | "templates": {
15 | "logoFile": "",
16 | "cleverLinks": false,
17 | "monospaceLinks": false,
18 | "dateFormat": "ddd MMM Do YYYY",
19 | "outputSourceFiles": true,
20 | "outputSourcePath": true,
21 | "systemName": "Accord Project Cicero SDK",
22 | "footer": "",
23 | "copyright": "Released under the Apache License v2.0",
24 | "navType": "vertical",
25 | "theme": "spacelab",
26 | "linenums": true,
27 | "collapseSymbols": false,
28 | "inverseNav": true,
29 | "protocol": "html://",
30 | "methodHeadingReturns": false
31 | },
32 | "markdown": {
33 | "parser": "gfm",
34 | "hardwrap": true
35 | }
36 | }
--------------------------------------------------------------------------------
/packages/cicero-core/src/languages.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed under the Apache License, Version 2.0 (the "License");
3 | * you may not use this file except in compliance with the License.
4 | * You may obtain a copy of the License at
5 | *
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Unless required by applicable law or agreed to in writing, software
9 | * distributed under the License is distributed on an "AS IS" BASIS,
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | * See the License for the specific language governing permissions and
12 | * limitations under the License.
13 | */
14 |
15 | 'use strict';
16 |
17 | const LANGUAGES = ['es6', 'typescript'];
18 |
19 | module.exports = LANGUAGES;
20 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/allblocks/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: All Blocks
3 |
4 | Test all blocks can be roundtripped.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/allblocks/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | enum Gender {
6 | o MAN
7 | o WOMAN
8 | }
9 |
10 | participant Person identified by email{
11 | o String name
12 | o String email
13 | o Address address
14 | o Gender gender
15 | }
16 |
17 | concept Address {
18 | o String city
19 | o String country
20 | }
21 |
22 | /**
23 | * Defines the data model for the template
24 | */
25 | @template
26 | asset TemplateModel extends Clause {
27 | o Boolean booleanProperty
28 | o Person relationshipProperty
29 | o Address[] addresses
30 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/allblocks/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "allblocks",
3 | "version": "0.0.1",
4 | "description": "Test all blocks",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/allblocks/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | This is text
2 | {{#if booleanProperty}}This is optional text{{/if}}
3 | This is mode text
4 | {{#ulist addresses}}
5 | This is an address: {{city}}, {{country}}
6 | {{/ulist}}
7 |
8 | relationshipProperty:
9 | {{#with relationshipProperty}}
10 | Signed by {{name}} ({{email}})
11 | At: {{#with address}}{{city}}, {{country}}{{/with}}
12 | Of Gender: {{gender}}{{/with}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/allblocks/text/sample.md:
--------------------------------------------------------------------------------
1 | This is text
2 | This is optional text
3 | This is mode text
4 | - This is an address: "NY", "USA"
5 | - This is an address: "London", "UK"
6 |
7 | relationshipProperty:
8 |
9 | Signed by "John" ("foo@bar.com")
10 | At: "Park City", "USA"
11 | Of Gender: WOMAN
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/alltypes/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: All Types
3 |
4 | Test all types can be roundtripped.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/alltypes/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | enum Gender {
6 | o MAN
7 | o WOMAN
8 | }
9 |
10 | participant Customer identified by email{
11 | o String email
12 | }
13 |
14 | concept Address {
15 | o String city
16 | o String country
17 | }
18 |
19 | /**
20 | * Defines the data model for the template
21 | */
22 | @template
23 | asset TemplateModel extends Clause {
24 | o Double doubleProperty
25 | o Integer integerProperty
26 | o Long longProperty
27 | o String stringProperty
28 | o DateTime dateTimeProperty
29 | o Boolean booleanProperty
30 | o Gender enumProperty
31 | --> Customer relationshipProperty
32 | o Address conceptProperty
33 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/alltypes/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "alltypes",
3 | "version": "0.0.1",
4 | "description": "Test all types",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/alltypes/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "io.clause.latedeliveryandpenalty@0.1.0.LateDeliveryAndPenaltyRequest",
3 | "forceMajeure": false,
4 | "agreedDelivery": "December 17, 2017 03:24:00",
5 | "deliveredAt": null,
6 | "goodsValue": 200.00
7 | }
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/alltypes/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | doubleProperty: {{doubleProperty}}
2 | integerProperty: {{integerProperty}}
3 | longProperty: {{longProperty}}
4 | booleanProperty: {{booleanProperty}}
5 | stringProperty: {{stringProperty}}
6 | dateTimeProperty: {{dateTimeProperty}}
7 | enumProperty: {{enumProperty}}
8 | relationshipProperty: {{relationshipProperty}}
9 | conceptProperty: {{conceptProperty}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/alltypes/text/sample.md:
--------------------------------------------------------------------------------
1 | doubleProperty: 10.5
2 | integerProperty: 42
3 | longProperty: 128
4 | booleanProperty: true
5 | stringProperty: "foo"
6 | dateTimeProperty: 01/30/2018
7 | enumProperty: MAN
8 | relationshipProperty: "baz"
9 | conceptProperty: "Paris" "France"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-binding/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-binding/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o Double amount
12 | o String swag
13 | --> Participant participant
14 | o String maybeThing optional
15 | }
16 |
17 | /**
18 | * Defines the input data required by the template
19 | */
20 | transaction Payup extends Request {
21 | o String[] qualifierTest optional
22 | }
23 |
24 | /**
25 | * Defines the output data for the template
26 | */
27 | transaction CongaResponse extends Response {
28 | o String name
29 | o Double amount
30 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-binding/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-binding/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{articipant}} agrees to spend {{amount}} conga coins on {{swag}}. {{maybeThing}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-binding/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100 conga coins on "penguins". "thing"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-boolean-binding/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-boolean-binding/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o Double amount
12 | o String swag
13 | --> Participant participant
14 | o String maybeThing optional
15 | }
16 |
17 | /**
18 | * Defines the input data required by the template
19 | */
20 | transaction Payup extends Request {
21 | o String[] qualifierTest optional
22 | }
23 |
24 | /**
25 | * Defines the output data for the template
26 | */
27 | transaction CongaResponse extends Response {
28 | o String name
29 | o Double amount
30 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-boolean-binding/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-boolean-binding/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{#if participant}}foo{{/if}} agrees to spend {{amount}} conga coins on {{swag}}. {{maybeThing}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-boolean-binding/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100 conga coins on "penguins". "thing"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-boolean-binding/text/sampleErr.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agees to spend 100 conga coins on "penguins". "thing"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-copyright-license/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "copyright-license",
3 | "version": "0.0.1",
4 | "accordproject": {
5 | "template": "contract",
6 | "cicero": "^0.25.0"
7 | }
8 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-formatted-binding/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-formatted-binding/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o Double amount
12 | o String swag
13 | --> Participant participant
14 | o String maybeThing optional
15 | }
16 |
17 | /**
18 | * Defines the input data required by the template
19 | */
20 | transaction Payup extends Request {
21 | o String[] qualifierTest optional
22 | }
23 |
24 | /**
25 | * Defines the output data for the template
26 | */
27 | transaction CongaResponse extends Response {
28 | o String name
29 | o Double amount
30 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-formatted-binding/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-formatted-binding/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant as "YYYY/MM/DD"}} agrees to spend {{amount}} conga coins on {{swag}}. {{maybeThing}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-formatted-binding/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100 conga coins on "penguins". "thing"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-formatted-binding/text/sampleErr.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agees to spend 100 conga coins on "penguins". "thing"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-locale/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-locale/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 |
5 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
6 |
7 | /**
8 | * Defines the data model for the Conga template.
9 | */
10 | @template
11 | asset TemplateModel extends Clause {
12 | o Double amount
13 | o String swag
14 | --> Participant participant
15 | }
16 |
17 | /**
18 | * Defines the input data required by the template
19 | */
20 | transaction Payup extends Request {
21 | }
22 |
23 | /**
24 | * Defines the output data for the template
25 | */
26 | transaction MyResponse extends Response {
27 | o String name
28 | o Double amount
29 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-locale/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-locale/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{amount}} conga coins on {{swag}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-locale/text/sample_!.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100.0 conga coins on "penguins"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-logic/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-logic/model/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accord.test
2 |
3 |
4 | enum Status {
5 | o ON
6 | o OFF
7 | }
8 |
9 | concept Child {
10 | o String name
11 | }
12 |
13 | /**
14 | * A test concept
15 | */
16 | concept Foo {
17 | o String bar
18 | --> Participant p
19 | --> Asset a
20 | o Double d
21 | o Long l
22 | o DateTime t
23 | o Boolean b
24 | o Status s
25 | o Integer i
26 | o Child child
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-logic/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-logic/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-logic/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-logic/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-property/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-property/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o Double amount
12 | o String swag
13 | @AccordType("Word __ Word", "{% (d) => {return `${d[0]} ${d[2]}`;} %}")
14 | --> Participant participant
15 | }
16 |
17 | /**
18 | * Defines the input data required by the template
19 | */
20 | transaction Payup extends Request {
21 | }
22 |
23 | /**
24 | * Defines the output data for the template
25 | */
26 | transaction Response extends Response {
27 | o String name
28 | o Double amount
29 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-property/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-property/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{currency}}{{amount}} conga coins on {{swag}}.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/bad-property/text/sample.md:
--------------------------------------------------------------------------------
1 | Dan Selman agrees to spend 100.0 conga coins on "penguins". "thing"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ergo/README.md:
--------------------------------------------------------------------------------
1 | # Volume Discount (ordered list)
2 |
3 | A sample volume discount clause.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ergo/model/clause.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.volumediscountlist@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 |
5 | concept RateRange {
6 | o Double rate
7 | }
8 |
9 | asset VolumeDiscountContract extends Contract {
10 | o RateRange[] rates
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ergo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "volumediscountolist",
3 | "version": "0.2.0",
4 | "description": "A sample volume discount contract (ordered list).",
5 | "license": "Apache-2.0",
6 | "accordproject": {
7 | "template": "contract",
8 | "cicero": "^0.25.0"
9 | },
10 | "devDependencies": {
11 | "cucumber": "^5.1.0"
12 | },
13 | "scripts": {
14 | "test": "cucumber-js test -r .cucumber.js"
15 | },
16 | "keywords": ["volume", "discount", "contract", "agreement", "percentage", "percent", "rate", "flat", "monthly", "credit", "chargeback", "rejection", "deduction", "withholding"]
17 | }
18 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ergo/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.volumediscountlist.VolumeDiscountRequest",
3 | "netAnnualChargeVolume": 10.4
4 | }
5 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ergo/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | This is a list: {{#join rates separator=", "}}{{rate}}%{{/join}} (Average: {{% average(foreach r in rates return r.rate) %}})
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ergo/text/sample.md:
--------------------------------------------------------------------------------
1 | This is a list: 3.0%, 3.2%, 2.8% (Average: {{%3.0%}})
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse-error/README.md:
--------------------------------------------------------------------------------
1 | # Volume Discount
2 |
3 | A sample volume discount clause.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse-error/data.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.volumediscountlist.VolumeDiscountContract",
3 | "contractId": "2908c19d-3b11-41fa-a470-cffe6e3e77b3",
4 | "isActive": true
5 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse-error/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "elseblock",
3 | "version": "0.1.0",
4 | "description": "A sample volume discount contract (unordered list).",
5 | "license": "Apache-2.0",
6 | "accordproject": {
7 | "template": "contract",
8 | "cicero": "^0.25.0",
9 | "runtime": "es6"
10 | },
11 | "devDependencies": {
12 | "cucumber": "^5.1.0"
13 | },
14 | "scripts": {
15 | "test": "cucumber-js test -r .cucumber.js"
16 | },
17 | "keywords": [
18 | "volume",
19 | "discount",
20 | "contract",
21 | "agreement",
22 | "percentage",
23 | "percent",
24 | "rate",
25 | "flat",
26 | "monthly",
27 | "credit",
28 | "chargeback",
29 | "rejection",
30 | "deduction",
31 | "withholding"
32 | ]
33 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse-error/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.volumediscountlist.VolumeDiscountRequest","netAnnualChargeVolume":10.4}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse-error/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{#if isActive}}I'm active{{else}}I'm inactive{{/if}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse-error/text/sample.md:
--------------------------------------------------------------------------------
1 | I'm active
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse/README.md:
--------------------------------------------------------------------------------
1 | # Volume Discount
2 |
3 | A sample volume discount clause.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse/data.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.volumediscountlist.VolumeDiscountContract",
3 | "contractId": "2908c19d-3b11-41fa-a470-cffe6e3e77b3",
4 | "isActive": true
5 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "elseblock",
3 | "version": "0.1.0",
4 | "description": "A sample volume discount contract (unordered list).",
5 | "license": "Apache-2.0",
6 | "accordproject": {
7 | "template": "contract",
8 | "cicero": "^0.25.0",
9 | "runtime": "es6"
10 | },
11 | "devDependencies": {
12 | "cucumber": "^5.1.0"
13 | },
14 | "scripts": {
15 | "test": "cucumber-js test -r .cucumber.js"
16 | },
17 | "keywords": [
18 | "volume",
19 | "discount",
20 | "contract",
21 | "agreement",
22 | "percentage",
23 | "percent",
24 | "rate",
25 | "flat",
26 | "monthly",
27 | "credit",
28 | "chargeback",
29 | "rejection",
30 | "deduction",
31 | "withholding"
32 | ]
33 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.volumediscountlist.VolumeDiscountRequest","netAnnualChargeVolume":10.4}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{#if isActive}}I'm active{{else}}I'm inactive{{/if}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse/text/sample-err.md:
--------------------------------------------------------------------------------
1 | I'm not right
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse/text/sample-inactive.md:
--------------------------------------------------------------------------------
1 | I'm inactive
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ifelse/text/sample.md:
--------------------------------------------------------------------------------
1 | I'm active
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-join/README.md:
--------------------------------------------------------------------------------
1 | # Volume Discount (ordered list)
2 |
3 | A sample volume discount clause.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-join/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.volumediscountlist@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 |
5 | concept RateRange {
6 | o Double rate
7 | }
8 |
9 | asset VolumeDiscountContract extends Contract {
10 | o RateRange[] rates
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-join/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "volumediscountolist",
3 | "version": "0.2.0",
4 | "description": "A sample volume discount contract (ordered list).",
5 | "license": "Apache-2.0",
6 | "accordproject": {
7 | "template": "contract",
8 | "cicero": "^0.25.0"
9 | },
10 | "devDependencies": {
11 | "cucumber": "^5.1.0"
12 | },
13 | "scripts": {
14 | "test": "cucumber-js test -r .cucumber.js"
15 | },
16 | "keywords": [
17 | "volume",
18 | "discount",
19 | "contract",
20 | "agreement",
21 | "percentage",
22 | "percent",
23 | "rate",
24 | "flat",
25 | "monthly",
26 | "credit",
27 | "chargeback",
28 | "rejection",
29 | "deduction",
30 | "withholding"
31 | ],
32 | "dependencies": {
33 | "@accordproject/cicero-cli": "^0.20.1"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-join/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.volumediscountlist.VolumeDiscountRequest",
3 | "netAnnualChargeVolume": 10.4
4 | }
5 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-join/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | This is a list: {{#join rates separator=", "}}{{rate}}%{{/join}} (And more Text)
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-join/text/sample.md:
--------------------------------------------------------------------------------
1 | This is a list: 3.1%, 3.3%, 2.9% (And more Text)
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-olist/README.md:
--------------------------------------------------------------------------------
1 | # Volume Discount (ordered list)
2 |
3 | A sample volume discount clause.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-olist/model/clause.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.volumediscountlist@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 |
5 | concept RateRange {
6 | o Double volumeUpTo
7 | o Double volumeAbove
8 | o Double rate
9 | }
10 |
11 | asset VolumeDiscountContract extends Contract {
12 | o RateRange[] rates
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-olist/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "volumediscountolist",
3 | "version": "0.2.0",
4 | "description": "A sample volume discount contract (ordered list).",
5 | "license": "Apache-2.0",
6 | "accordproject": {
7 | "template": "contract",
8 | "cicero": "^0.25.0"
9 | },
10 | "devDependencies": {
11 | "cucumber": "^5.1.0"
12 | },
13 | "scripts": {
14 | "test": "cucumber-js test -r .cucumber.js"
15 | },
16 | "keywords": ["volume", "discount", "contract", "agreement", "percentage", "percent", "rate", "flat", "monthly", "credit", "chargeback", "rejection", "deduction", "withholding"]
17 | }
18 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-olist/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.volumediscountlist.VolumeDiscountRequest",
3 | "netAnnualChargeVolume": 10.4
4 | }
5 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-olist/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | This is a list
2 | {{#olist rates}}
3 | {{volumeAbove}}$ million <= Volume < {{volumeUpTo}}$ million : {{rate}}%
4 | {{/olist}}
5 |
6 | This is more text
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-olist/text/sample.md:
--------------------------------------------------------------------------------
1 | This is a list
2 | 1. 0.0$ million <= Volume < 1.0$ million : 3.1%
3 | 2. 1.0$ million <= Volume < 10.0$ million : 3.1%
4 | 3. 10.0$ million <= Volume < 50.0$ million : 2.9%
5 |
6 | This is more text
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ulist/README.md:
--------------------------------------------------------------------------------
1 | # Volume Discount (ordered list)
2 |
3 | A sample volume discount clause.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ulist/model/clause.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.volumediscountlist@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 |
5 | concept RateRange {
6 | o Double volumeUpTo
7 | o Double volumeAbove
8 | o Double rate
9 | }
10 |
11 | asset VolumeDiscountContract extends Contract {
12 | o RateRange[] rates
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ulist/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "volumediscountolist",
3 | "version": "0.2.0",
4 | "description": "A sample volume discount contract (ordered list).",
5 | "license": "Apache-2.0",
6 | "accordproject": {
7 | "template": "contract",
8 | "cicero": "^0.25.0"
9 | },
10 | "devDependencies": {
11 | "cucumber": "^5.1.0"
12 | },
13 | "scripts": {
14 | "test": "cucumber-js test -r .cucumber.js"
15 | },
16 | "keywords": ["volume", "discount", "contract", "agreement", "percentage", "percent", "rate", "flat", "monthly", "credit", "chargeback", "rejection", "deduction", "withholding"]
17 | }
18 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ulist/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.volumediscountlist.VolumeDiscountRequest",
3 | "netAnnualChargeVolume": 10.4
4 | }
5 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ulist/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | This is a list
2 | {{#ulist rates}}
3 | {{volumeAbove}}$ million <= Volume < {{volumeUpTo}}$ million : {{rate}}%
4 | {{/ulist}}
5 |
6 | This is more text
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/block-ulist/text/sample.md:
--------------------------------------------------------------------------------
1 | This is a list
2 | - 0.0$ million <= Volume < 1.0$ million : 3.1%
3 | - 1.0$ million <= Volume < 10.0$ million : 3.1%
4 | - 10.0$ million <= Volume < 50.0$ million : 2.9%
5 |
6 | This is more text
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/conga/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/conga/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | /**
4 | * Defines the data model for the Conga template.
5 | */
6 | @template
7 | asset TemplateModel {
8 | o Double amount
9 | o String swag
10 | --> Participant participant
11 | o String maybeThing optional
12 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/conga/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/conga/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{amount}} conga coins on {{swag}}. {{maybeThing}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/conga/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100.0 conga coins on "penguins". "thing"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/conga/text/sampleErr.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agees to spend 100 conga coins on "penguins". "thing"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/copyright-license/model/@models.accordproject.org.accordproject.party@0.2.0.cto:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed under the Apache License, Version 2.0 (the "License");
3 | * you may not use this file except in compliance with the License.
4 | * You may obtain a copy of the License at
5 | *
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Unless required by applicable law or agreed to in writing, software
9 | * distributed under the License is distributed on an "AS IS" BASIS,
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | * See the License for the specific language governing permissions and
12 | * limitations under the License.
13 | */
14 |
15 | concerto version "^3.0.0"
16 |
17 | namespace org.accordproject.party@0.2.0
18 |
19 | /* A party to a contract */
20 | participant Party identified by partyId {
21 | o String partyId
22 | }
23 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/copyright-license/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "copyright-license",
3 | "version": "0.0.1",
4 | "accordproject": {
5 | "template": "contract",
6 | "cicero": "^0.25.0"
7 | }
8 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/copyright-license/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class":"org.accordproject.copyrightlicense.PaymentRequest"
3 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/copyright-license_js/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "copyright-license",
3 | "version": "0.0.1",
4 | "accordproject": {
5 | "template": "contract",
6 | "cicero": "^0.25.0",
7 | "runtime": "es6"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/dummy.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/dummy.pdf
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests/README.md:
--------------------------------------------------------------------------------
1 | # Fixed interests
2 |
3 | A Fixed Interests Loan Clause, with a monthly Payment
4 |
5 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests/contract.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.interests.TemplateModel",
3 | "clauseId": "bbccaa82-12f8-462a-8fc6-2cb734811b47",
4 | "loanAmount": 100000,
5 | "rate": 2.5,
6 | "loanDuration": 15
7 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/fixed-interests/logo.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "fixed-interests",
3 | "version": "0.6.0",
4 | "description": "A Fixed Interests Loan Clause, with a monthly Payment",
5 | "author": "Accord Project",
6 | "license": "Apache-2.0",
7 | "accordproject": {
8 | "template": "clause",
9 | "cicero": "^0.25.0"
10 | },
11 | "devDependencies": {
12 | "cucumber": "^5.1.0"
13 | },
14 | "scripts": {
15 | "test": "cucumber-js test -r .cucumber.js"
16 | },
17 | "keywords": ["loan", "interests", "fixed", "principal"]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.interests.Request",
3 | "input": "test"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests/state.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.runtime@0.2.0.State"
3 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | ## Fixed rate loan
2 |
3 | This is a *fixed interest* loan to the amount of {{loanAmount as "K0,0.00"}}
4 | at the yearly interest rate of {{rate}}%
5 | with a loan term of {{loanDuration}},
6 | and monthly payments of {{% monthlyPaymentFormula(loanAmount,rate,loanDuration) as "K0,0.00" %}}
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests/text/sample.md:
--------------------------------------------------------------------------------
1 | ## Fixed rate loan
2 |
3 | This is a _fixed interest_ loan to the amount of £100,000.00
4 | at the yearly interest rate of 2.5%
5 | with a loan term of 15,
6 | and monthly payments of {{%I'm not sure which amount right now%}}
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/fixed-interests@0.6.0.cta:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/fixed-interests@0.6.0.cta
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0 0,0/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Amounts
3 |
4 | Test that MonetaryAmount can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0 0,0/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o Double amountProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0 0,0/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-amounts",
3 | "version": "0.0.1",
4 | "description": "Test formatted amounts",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0 0,0/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "amountProperty" : 34031.9
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0 0,0/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | amountProperty: {{amountProperty as "0 0,0"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0 0,0/text/sample.md:
--------------------------------------------------------------------------------
1 | amountProperty: 34 031,9
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0,0.0/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Amounts
3 |
4 | Test that a Double amount can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0,0.0/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o Double amountProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0,0.0/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-amounts",
3 | "version": "0.0.1",
4 | "description": "Test formatted amounts",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0,0.0/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "amountProperty" : 34031.9
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0,0.0/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | amountProperty: {{amountProperty as "0,0.0"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-amounts-0,0.0/text/sample.md:
--------------------------------------------------------------------------------
1 | amountProperty: 34,031.9
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmss.SSSZ/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmss.SSSZ/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmss.SSSZ/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmss.SSSZ/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2018-01-01T05:15:20.123+01:02"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmss.SSSZ/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty as "D MMM YYYY HH:mm:ss.SSSZ"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmss.SSSZ/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 1 Jan 2018 05:15:20.123+01:02
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmssZ/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmssZ/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmssZ/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmssZ/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2018-01-01T05:15:20.000+01:02"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmssZ/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty as "D MMM YYYY HH:mm:ssZ"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYY HHmmssZ/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 1 Jan 2018 05:15:20+01:02
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYYZ/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYYZ/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYYZ/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYYZ/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2018-01-01T00:00:00.000+01:02"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYYZ/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty as "D MMM YYYYZ"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMM YYYYZ/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 1 Jan 2018+01:02
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMMM YYYY HHmmss.SSSZ/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMMM YYYY HHmmss.SSSZ/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMMM YYYY HHmmss.SSSZ/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMMM YYYY HHmmss.SSSZ/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2018-01-01T05:15:20.123+01:02"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMMM YYYY HHmmss.SSSZ/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty as "D MMMM YYYY HH:mm:ss.SSSZ"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D MMMM YYYY HHmmss.SSSZ/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 1 January 2018 05:15:20.123+01:02
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D-M-YYYY H mmss.SSSZ/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D-M-YYYY H mmss.SSSZ/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D-M-YYYY H mmss.SSSZ/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D-M-YYYY H mmss.SSSZ/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2019-12-31T02:59:01.001+01:02"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D-M-YYYY H mmss.SSSZ/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty as "D-M-YYYY H mm:ss.SSSZ"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-D-M-YYYY H mmss.SSSZ/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 31-12-2019 2 59:01.001+01:02
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD-MMM-YYYY H mmss.SSSZ/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD-MMM-YYYY H mmss.SSSZ/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD-MMM-YYYY H mmss.SSSZ/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD-MMM-YYYY H mmss.SSSZ/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2019-01-04T02:59:01.001+01:02"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD-MMM-YYYY H mmss.SSSZ/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty as "DD-MMM-YYYY H mm:ss.SSSZ"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD-MMM-YYYY H mmss.SSSZ/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 04-Jan-2019 2 59:01.001+01:02
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD_MM_YYYY/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD_MM_YYYY/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD_MM_YYYY/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD_MM_YYYY/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2018-12-01T00:00:00.000+00:00"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD_MM_YYYY/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty as "DD/MM/YYYY"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-DD_MM_YYYY/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 01/12/2018
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-MM_DD_YYYY/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-MM_DD_YYYY/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-MM_DD_YYYY/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-MM_DD_YYYY/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2019-12-31T00:00:00.000+00:00"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-MM_DD_YYYY/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty as "MM/DD/YYYY"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-MM_DD_YYYY/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 12/31/2019
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-NOFORMAT/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Dates
3 |
4 | Test that DateTime can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-NOFORMAT/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test
2 |
3 | import org.accordproject.contract.Clause from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * Defines the data model for the template
7 | */
8 | @template
9 | asset TemplateModel extends Clause {
10 | o DateTime dateTimeProperty
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-NOFORMAT/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-dates",
3 | "version": "0.0.1",
4 | "description": "Test formatted dates",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-NOFORMAT/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "dateTimeProperty" : "2019-12-31T00:00:00.000+00:00"
4 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-NOFORMAT/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: {{dateTimeProperty}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-dates-NOFORMAT/text/sample.md:
--------------------------------------------------------------------------------
1 | dateTimeProperty: 12/31/2019
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0 0,0 CCC/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Monetary Amounts
3 |
4 | Test that MonetaryAmount can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0 0,0 CCC/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Contract, Clause} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.money@0.2.0.MonetaryAmount from https://models.accordproject.org/money@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the template
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o MonetaryAmount monetaryAmountProperty
12 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0 0,0 CCC/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-monetaryamounts",
3 | "version": "0.0.1",
4 | "description": "Test formatted monetary amounts",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0 0,0 CCC/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "monetaryAmountProperty" : {
4 | "$class" : "org.accordproject.money.MonetaryAmount",
5 | "currencyCode": "USD",
6 | "doubleValue": 34031.9
7 | }
8 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0 0,0 CCC/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | monetaryAmountProperty: {{monetaryAmountProperty as "0 0,0 CCC"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0 0,0 CCC/text/sample.md:
--------------------------------------------------------------------------------
1 | monetaryAmountProperty: 34 031,9 USD
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0,0.0 CCC/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Monetary Amounts
3 |
4 | Test that MonetaryAmount can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0,0.0 CCC/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Contract, Clause} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.money@0.2.0.MonetaryAmount from https://models.accordproject.org/money@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the template
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o MonetaryAmount monetaryAmountProperty
12 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0,0.0 CCC/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-monetaryamounts",
3 | "version": "0.0.1",
4 | "description": "Test formatted monteray amounts",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0,0.0 CCC/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "monetaryAmountProperty" : {
4 | "$class" : "org.accordproject.money.MonetaryAmount",
5 | "currencyCode": "USD",
6 | "doubleValue": 34031.9
7 | }
8 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0,0.0 CCC/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | monetaryAmountProperty: {{monetaryAmountProperty as "0,0.0 CCC"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-0,0.0 CCC/text/sample.md:
--------------------------------------------------------------------------------
1 | monetaryAmountProperty: 34,031.9 USD
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.0/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Monetary Amounts
3 |
4 | Test that MonetaryAmount can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.0/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Contract, Clause} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.money@0.2.0.MonetaryAmount from https://models.accordproject.org/money@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the template
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o MonetaryAmount monetaryAmountProperty1
12 | o MonetaryAmount monetaryAmountProperty2
13 | o MonetaryAmount monetaryAmountProperty3
14 | o MonetaryAmount monetaryAmountProperty4
15 | o MonetaryAmount monetaryAmountProperty5
16 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.0/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-monetaryamounts",
3 | "version": "0.0.1",
4 | "description": "Test formatted monetary amounts",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.0/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "monetaryAmountProperty1" : {
4 | "$class" : "org.accordproject.money.MonetaryAmount",
5 | "currencyCode": "USD",
6 | "doubleValue": 34031.9
7 | },
8 | "monetaryAmountProperty2" : {
9 | "$class" : "org.accordproject.money.MonetaryAmount",
10 | "currencyCode": "EUR",
11 | "doubleValue": 34031.9
12 | },
13 | "monetaryAmountProperty3" : {
14 | "$class" : "org.accordproject.money.MonetaryAmount",
15 | "currencyCode": "JPY",
16 | "doubleValue": 34031.9
17 | },
18 | "monetaryAmountProperty4" : {
19 | "$class" : "org.accordproject.money.MonetaryAmount",
20 | "currencyCode": "GBP",
21 | "doubleValue": 34031.9
22 | },
23 | "monetaryAmountProperty5" : {
24 | "$class" : "org.accordproject.money.MonetaryAmount",
25 | "currencyCode": "AUD",
26 | "doubleValue": 34031.9
27 | }
28 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.0/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | monetaryAmountProperty1: {{monetaryAmountProperty1 as "K0,0.0"}}
2 | monetaryAmountProperty2: {{monetaryAmountProperty2 as "K0,0.0"}}
3 | monetaryAmountProperty3: {{monetaryAmountProperty3 as "K0,0.0"}}
4 | monetaryAmountProperty4: {{monetaryAmountProperty4 as "K0,0.0"}}
5 | monetaryAmountProperty5: {{monetaryAmountProperty5 as "K0,0.0"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.0/text/sample.md:
--------------------------------------------------------------------------------
1 | monetaryAmountProperty1: $34,031.9
2 | monetaryAmountProperty2: €34,031.9
3 | monetaryAmountProperty3: ¥34,031.9
4 | monetaryAmountProperty4: £34,031.9
5 | monetaryAmountProperty5: AUD34,031.9
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.00/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Formatted Monetary Amounts
3 |
4 | Test that MonetaryAmount can have a custom format applied in a template
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.00/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.test@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Contract, Clause} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.money@0.3.0.MonetaryAmount from https://models.accordproject.org/money@0.3.0.cto
5 |
6 | /**
7 | * Defines the data model for the template
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o MonetaryAmount monetaryAmountProperty
12 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.00/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "formatted-monetaryamounts",
3 | "version": "0.0.1",
4 | "description": "Test formatted monetary amounts",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.00/text/expected.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class" : "org.accordproject.test.TemplateModel",
3 | "monetaryAmountProperty" : {
4 | "$class" : "org.accordproject.money.MonetaryAmount",
5 | "currencyCode": "USD",
6 | "doubleValue": 34031.94
7 | }
8 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.00/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | monetaryAmountProperty: {{monetaryAmountProperty as "K0,0.00"}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/formatted-monetaryamounts-K0,0.00/text/sample.md:
--------------------------------------------------------------------------------
1 | monetaryAmountProperty: $34,031.94
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloemit/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloemit@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | event Greeting extends Obligation {
15 | o String message
16 | }
17 |
18 | asset HelloWorldState extends State {
19 | o Double counter
20 | }
21 |
22 | /**
23 | * The template model
24 | */
25 | @template
26 | asset TemplateModel extends Clause {
27 | /**
28 | * The name for the clause
29 | */
30 | o String name
31 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloemit/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloemit",
3 | "version": "0.0.5",
4 | "description": "This is the Hello World of Accord Protocol Templates with Emit.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloemit/state.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.helloemit@1.0.0.HelloWorldState",
3 | "stateId": "org.accordproject.helloemit@1.0.0.HelloWorldState#0",
4 | "counter" : 0
5 | }
6 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloemit/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloemit/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule-bug/README.md:
--------------------------------------------------------------------------------
1 | # Hello Module
2 |
3 | This is the Hello World of Accord Protocol Templates (with two Ergo modules).
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule-bug/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.hellomodule@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | /**
15 | * The template model
16 | */
17 | @template
18 | asset HelloModuleClause extends Clause {
19 | /**
20 | * The name for the clause
21 | */
22 | o String name
23 | }
24 |
25 | // this is a change!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule-bug/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hellomodule",
3 | "version": "0.1.0",
4 | "description": "This is the Hello World of Accord Protocol Templates (with two Ergo modules).",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule-bug/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.hellomodule.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule-bug/state.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.runtime@0.2.0.State"
3 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule-bug/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule-bug/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule/README.md:
--------------------------------------------------------------------------------
1 | # Hello Module
2 |
3 | This is the Hello World of Accord Protocol Templates (with two Ergo modules).
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.hellomodule@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | /**
15 | * The template model
16 | */
17 | @template
18 | asset HelloModuleClause extends Clause {
19 | /**
20 | * The name for the clause
21 | */
22 | o String name
23 | }
24 |
25 | // this is a change!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hellomodule",
3 | "version": "0.1.0",
4 | "description": "This is the Hello World of Accord Protocol Templates (with two Ergo modules).",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.hellomodule.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule/state.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.runtime@0.2.0.State"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/hellomodule/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloworldstate/README.md:
--------------------------------------------------------------------------------
1 | # Hello World State
2 |
3 | This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.
4 |
5 | ## Signature Info
6 | - PKCS#12 keystore file: keystore.p12
7 | - PKCS#12 keystore passphrase: password
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloworldstate/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/helloworldstate/logo.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloworldstate/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloworldstate@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | asset HelloWorldState extends State {
15 | o Double counter
16 | }
17 |
18 | /**
19 | * The template model
20 | */
21 | @template
22 | asset HelloWorldClause extends Clause {
23 | /**
24 | * The name for the clause
25 | */
26 | o String name
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloworldstate/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloworldstate",
3 | "displayName": "Hello World State",
4 | "version": "0.15.0",
5 | "description": "This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.",
6 | "author": "Accord Project",
7 | "license": "Apache-2.0",
8 | "accordproject": {
9 | "template": "clause",
10 | "cicero": "^0.25.0",
11 | "runtime": "es6"
12 | },
13 | "devDependencies": {
14 | "cucumber": "^5.1.0"
15 | },
16 | "scripts": {
17 | "test": "cucumber-js test -r .cucumber.js"
18 | },
19 | "keywords": [
20 | "hello",
21 | "world",
22 | "greet"
23 | ]
24 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloworldstate/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.helloworldstate.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloworldstate/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/helloworldstate/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/js-ergo-inside/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/js-ergo-inside/model/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accord.test
2 |
3 |
4 | enum Status {
5 | o ON
6 | o OFF
7 | }
8 |
9 | concept Child {
10 | o String name
11 | }
12 |
13 | /**
14 | * A test concept
15 | */
16 | concept Foo {
17 | o String bar
18 | --> Participant p
19 | --> Asset a
20 | o Double d
21 | o Long l
22 | o DateTime t
23 | o Boolean b
24 | o Status s
25 | o Integer i
26 | o Child child
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/js-ergo-inside/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/js-ergo-inside/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/js-ergo-inside/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/js-ergo-inside/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/keystore/README.md:
--------------------------------------------------------------------------------
1 | ### To create a new keystore from scratch
2 |
3 | ```
4 | openssl genrsa -out key.pem 2048
5 | openssl req -new -sha256 -key key.pem -out csr.csr // enter 'password' for: A challenge password []:password
6 | openssl req -x509 -sha256 -days 365 -key key.pem -in csr.csr -out certificate.pem
7 | openssl pkcs12 -export -out keystore.p12 -inkey key.pem -in certificate.pem // enter 'password' when challenged
8 | ```
9 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/keystore/csr.csr:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE REQUEST-----
2 | MIICnzCCAYcCAQAwQTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk5ZMQwwCgYDVQQH
3 | DANOWUMxFzAVBgNVBAoMDkFjY29yZCBQcm9qZWN0MIIBIjANBgkqhkiG9w0BAQEF
4 | AAOCAQ8AMIIBCgKCAQEArsXUnNt3L0cH8Ms5kU/pjQmRzPdQ9qI4fHIFeq07FqcQ
5 | jf7ZECQcoNz0rlPg+RicUqvqEyk1wsvQdGthaygyz46Smt8Zyve9GWYxHWrQOZ98
6 | cAYIieMKP8YyRdL2E7CfUGfbtvrxgex/m18l4bUTbnG9WSvwrylY3P58VtTjYNGk
7 | nWSAMcU5MTLGFk8nIaw7WQtVTe9+9Y/XDs9j/orr+ak4gL0PpifzRpUMXioxW630
8 | uIoWV/P6riaRc1t2bDgDbngD82MfPaGdZUUsJMfP/D5jzWteMQmOU8A/qPYRDBw8
9 | Ktug7MAz/czZxNdCnvi9z8NrMKL3geWPy+HJfSEL6wIDAQABoBkwFwYJKoZIhvcN
10 | AQkHMQoMCHBhc3N3b3JkMA0GCSqGSIb3DQEBCwUAA4IBAQCaY0rcbucxcWQ6aVaA
11 | f/yycONtlo6BdLZpErhaZSPebTWi+4lTxb3BSuIAJLNMI+V3nRPgjaZS8qBQ9zb9
12 | d7WZIR/sbJmdgTTOSJ0AzOoSGyulKk/jVSjNjqF9wgDPnlPmpDIfPgEWxV7GiIfL
13 | z7et96uuXhkZa9PvHwpMs+2c4bovfHwHWF8Jt2kkBBrs1Ov42IjeTDrvOXB4D3KR
14 | 4J39fDPGUGIeM90tJul2ZMYgb4l+9Rg3ZPlnryRvnaSKtD1YppVnFoCygMP8i1c6
15 | fgQ6mp6+risAj/IBErHMSDuaMfRR2DMfNeMhWSGMxp2fxEC5VH0BpbDHz0Tyt/aF
16 | /g29
17 | -----END CERTIFICATE REQUEST-----
18 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/keystore/keystore.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/keystore/keystore.p12
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-cr/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # Clause Template: Late Delivery And Penalty
4 |
5 | ## Sample
6 |
7 |
8 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
9 |
10 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-cr/model/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accord.test
2 |
3 |
4 |
5 |
6 |
7 | enum Status {
8 | o ON
9 | o OFF
10 | }
11 |
12 | concept Child {
13 | o String name
14 | }
15 |
16 | /**
17 | * A test concept
18 | */
19 | concept Foo {
20 | o String bar
21 | --> Participant p
22 | --> Asset a
23 | o Double d
24 | o Long l
25 | o DateTime t
26 | o Boolean b
27 | o Status s
28 | o Integer i
29 | o Child child
30 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-cr/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-cr/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "io.clause.latedeliveryandpenalty@0.1.0.LateDeliveryAndPenaltyRequest",
3 | "forceMajeure": false,
4 | "agreedDelivery": "December 17, 2017 03:24:00",
5 | "deliveredAt": null,
6 | "goodsValue": 200.00
7 | }
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-cr/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty.
2 |
3 | In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-cr/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty.
2 |
3 | In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-cr/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty.
2 |
3 | In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-period/README.md:
--------------------------------------------------------------------------------
1 | # A Late Delivery And Penalty (Simple)
2 |
3 | A Late Delivery And Penalty clause (simple).
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-period/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "simplelatedeliveryandpenalty",
3 | "version": "0.2.1",
4 | "description": "A Late Delivery And Penalty clause (simple).",
5 | "license": "Apache-2.0",
6 | "accordproject": {
7 | "template": "contract",
8 | "cicero": "^0.25.0"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-period/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.simplelatedeliveryandpenalty.SimpleLateDeliveryAndPenaltyRequest",
3 | "agreedDelivery": "December 17, 2017 03:24:00",
4 | "deliveredAt": null,
5 | "goodsValue": 200.00
6 | }
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-period/state.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "org.accordproject.runtime@0.2.0.State"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-period/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery of Goods, {{buyer}} shall pay to {{seller}} a penalty amounting to {{penaltyPercentage}}% of the total value of the Goods for every {{penaltyPeriod}} of delay. The total amount of penalty shall not, however, exceed {{capPercentage}}% of the total value of the delayed goods. If the delay is more than {{maximumDelay}}, the Buyer is entitled to terminate this Contract.
2 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-period/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery of Goods, "Betty Buyer" shall pay to "Steve Seller" a penalty amounting to 10.5% of the total value of the Goods for every 6 months of delay. The total amount of penalty shall not, however, exceed 55.0% of the total value of the delayed goods. If the delay is more than 9 months, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/logic/logic.ts:
--------------------------------------------------------------------------------
1 | function trigger(request:any) : any {
2 | return 'hello!';
3 | }
4 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty-typescript",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "runtime": "typescript",
7 | "template": "clause",
8 | "cicero": "^0.25.0"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "io.clause.latedeliveryandpenalty@0.1.0.LateDeliveryAndPenaltyRequest",
3 | "forceMajeure": false,
4 | "agreedDelivery": "December 17, 2017 03:24:00",
5 | "deliveredAt": null,
6 | "goodsValue": 200.00
7 | }
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ----
3 | In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed.
4 |
5 | 1. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}.
6 | 1. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery.
7 | 1. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/text/sample-noforce.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ----
3 |
4 | In case of delayed delivery the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed.
5 | 1. Any fractional part of a days is to be considered a full days.
6 | 1. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery.
7 | 1. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/text/sample-updated.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ====
3 |
4 | In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed.
5 | - Any fractional part of a days is to be considered a full days.
6 | - The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery.
7 | - If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
8 |
9 | Adding all precentages in this clause yields: {{%9.0%}}.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ----
3 |
4 | In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed.
5 | 1. Any fractional part of a days is to be considered a full days.
6 | 2. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery.
7 | 3. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty-typescript/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ----
3 |
4 | In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed.
5 |
6 | 1. Any fractional part of a DAY is to be considered a full days.
7 | 1. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery.
8 | 1. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty.cta:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/latedeliveryandpenalty.cta
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "io.clause.latedeliveryandpenalty@0.1.0.LateDeliveryAndPenaltyRequest",
3 | "forceMajeure": false,
4 | "agreedDelivery": "December 17, 2017 03:24:00",
5 | "deliveredAt": null,
6 | "goodsValue": 200.00
7 | }
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ----
3 | In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed.
4 |
5 | 1. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}.
6 | 1. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery.
7 | 1. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty/text/sample-noforce.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ----
3 |
4 | In case of delayed delivery the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed.
5 | 1. Any fractional part of a days is to be considered a full days.
6 | 1. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery.
7 | 1. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty/text/sample-updated.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ====
3 |
4 | In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed.
5 | - Any fractional part of a days is to be considered a full days.
6 | - The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery.
7 | - If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
8 |
9 | Adding all precentages in this clause yields: {{%9.0%}}.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ----
3 |
4 | In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed.
5 | 1. Any fractional part of a days is to be considered a full days.
6 | 2. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery.
7 | 3. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty
2 | ----
3 |
4 | In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7.0% of the total value of the Equipment whose delivery has been delayed.
5 |
6 | 1. Any fractional part of a DAY is to be considered a full days.
7 | 1. The total amount of penalty shall not however, exceed 2.0% of the total value of the Equipment involved in late delivery.
8 | 1. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty_js/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty_js/model/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accord.test
2 |
3 |
4 | enum Status {
5 | o ON
6 | o OFF
7 | }
8 |
9 | concept Child {
10 | o String name
11 | }
12 |
13 | /**
14 | * A test concept
15 | */
16 | concept Foo {
17 | o String bar
18 | --> Participant p
19 | --> Asset a
20 | o Double d
21 | o Long l
22 | o DateTime t
23 | o Boolean b
24 | o Status s
25 | o Integer i
26 | o Child child
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty_js/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0",
8 | "runtime": "es6"
9 | },
10 | "keywords": []
11 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty_js/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "io.clause.latedeliveryandpenalty@0.1.0.LateDeliveryAndPenaltyRequest",
3 | "forceMajeure": false,
4 | "agreedDelivery": "December 17, 2017 03:24:00",
5 | "deliveredAt": null,
6 | "goodsValue": 200
7 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty_js/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty_js/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/latedeliveryandpenalty_js/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/locales-conga/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/locales-conga/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o Double amount
12 | o String swag
13 | --> Participant participant
14 | }
15 |
16 | /**
17 | * Defines the input data required by the template
18 | */
19 | transaction Payup extends Request {
20 | }
21 |
22 | /**
23 | * Defines the output data for the template
24 | */
25 | transaction CongaResponse extends Response {
26 | o String name
27 | o Double amount
28 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/locales-conga/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/locales-conga/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{amount}} conga coins on {{swag}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/locales-conga/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100.0 conga coins on "penguins"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/locales-conga/text/sample_fr.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" accepte de dépenser 100.0 conga coins sur "pingouins"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo@0.0.1.cta:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/logo@0.0.1.cta
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo@0.0.1/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/logo@0.0.1/logo.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo@0.0.1/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace logo.support.TemplateLogoClause
2 |
3 | import org.accordproject.contract.* from https://models.accordproject.org/accordproject/contract.cto
4 |
5 | /**
6 | * The template model
7 | */
8 | @template
9 | asset TemplateLogoClause extends Clause {
10 | o String firstName
11 | o String lastName
12 | }
13 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo@0.0.1/package.json:
--------------------------------------------------------------------------------
1 | {"name":"logo","version":"0.0.1","description":"Aman Sharma added logo suport","accordproject":{"template":"clause","cicero":"^0.25.0"},"keywords":[]}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo@0.0.1/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{firstName}} {{lastName}} added the support for logo and hence created this template for testing!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo@0.0.1/text/sample.md:
--------------------------------------------------------------------------------
1 | "Aman" "Sharma" added the support for logo and hence created this template for testing!
2 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo_128_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/logo_128_128.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo_256_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/logo_256_256.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo_corrupted.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/logo_corrupted.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/logo_wrong_mime.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/logo_wrong_mime.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/models/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accord.test@1.0.0
2 |
3 |
4 | enum Status {
5 | o ON
6 | o OFF
7 | }
8 |
9 | concept Child {
10 | o String name
11 | }
12 |
13 | /**
14 | * A test concept
15 | */
16 | concept Foo {
17 | o String bar
18 | --> Participant p
19 | --> Asset a
20 | o Double d
21 | o Long l
22 | o DateTime t
23 | o Boolean b
24 | o Status s
25 | o Integer i
26 | o Child child
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/models/time.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.time@0.3.0
2 |
3 | /**
4 | * Units for a duration. 24 hour days are assumed.
5 | */
6 | enum TemporalUnit {
7 | o SECOND
8 | o MINUTE
9 | o HOUR
10 | o DAY
11 | o WEEK
12 | o YEAR
13 | }
14 |
15 | /**
16 | * A duration. For example, 6 hours.
17 | */
18 | concept Duration {
19 | o Long amount
20 | o TemporalUnit unit
21 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/multiple-concepts/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/multiple-concepts/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | asset TemplateModel extends Clause {
10 | o Double amount
11 | o String swag
12 | --> Participant participant
13 | }
14 |
15 | /**
16 | * A duplicate data model for testing.
17 | */
18 | asset TemplateModel2 extends Clause {
19 | o Double amount
20 | o String swag
21 | --> Participant participant
22 | }
23 |
24 | /**
25 | * Defines the input data required by the template
26 | */
27 | transaction Payup extends Request {
28 | }
29 |
30 | /**
31 | * Defines the output data for the template
32 | */
33 | transaction CongaResponse extends Response {
34 | o String name
35 | o Double amount
36 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/multiple-concepts/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/multiple-concepts/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{amount}} conga coins on {{swag}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/multiple-concepts/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100.0 conga coins on "penguins"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-concepts/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-concepts/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 | /**
6 | * Defines the data model for the Conga template.
7 | */
8 | asset TemplateModel identified by id {
9 | o String id
10 | o Double amount
11 | o String swag
12 | --> Participant participant
13 | }
14 |
15 | /**
16 | * Defines the input data required by the template
17 | */
18 | transaction Payup extends Request {
19 | }
20 |
21 | /**
22 | * Defines the output data for the template
23 | */
24 | transaction CongaResponse extends Response {
25 | o String name
26 | o Double amount
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-concepts/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-concepts/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{amount}} conga coins on {{swag}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-concepts/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100.0 conga coins on "penguins"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-logic/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-logic/model/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accord.test
2 |
3 |
4 | enum Status {
5 | o ON
6 | o OFF
7 | }
8 |
9 | concept Child {
10 | o String name
11 | }
12 |
13 | /**
14 | * A test concept
15 | */
16 | concept Foo {
17 | o String bar
18 | --> Participant p
19 | --> Asset a
20 | o Double d
21 | o Long l
22 | o DateTime t
23 | o Boolean b
24 | o Status s
25 | o Integer i
26 | o Child child
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-logic/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "latedeliveryandpenalty",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-logic/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-logic/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-logic/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-packagejson/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-packagejson/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o Double amount
12 | o String swag
13 | --> Participant participant
14 | }
15 |
16 | /**
17 | * Defines the input data required by the template
18 | */
19 | transaction Payup extends Request {
20 | }
21 |
22 | /**
23 | * Defines the output data for the template
24 | */
25 | transaction CongaResponse extends Response {
26 | o String name
27 | o Double amount
28 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-packagejson/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{amount}} conga coins on {{swag}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-packagejson/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100.0 conga coins on "penguins"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-sample/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-sample/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o Double amount
12 | o String swag
13 | --> Participant participant
14 | }
15 |
16 | /**
17 | * Defines the input data required by the template
18 | */
19 | transaction Payup extends Request {
20 | }
21 |
22 | /**
23 | * Defines the output data for the template
24 | */
25 | transaction CongaResponse extends Response {
26 | o String name
27 | o Double amount
28 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-sample/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/no-sample/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{amount}} conga coins on {{swag}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/signing-template/helloworldstate/README.md:
--------------------------------------------------------------------------------
1 | # Hello World State
2 |
3 | This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.
4 |
5 | ## Signature Info
6 | - PKCS#12 keystore file: keystore.p12
7 | - PKCS#12 keystore passphrase: password
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/signing-template/helloworldstate/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/signing-template/helloworldstate/logo.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/signing-template/helloworldstate/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloworldstate@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | asset HelloWorldState extends State {
15 | o Double counter
16 | }
17 |
18 | /**
19 | * The template model
20 | */
21 | @template
22 | asset HelloWorldClause extends Clause {
23 | /**
24 | * The name for the clause
25 | */
26 | o String name
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/signing-template/helloworldstate/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloworldstate",
3 | "displayName": "Hello World State",
4 | "version": "0.15.0",
5 | "description": "This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.",
6 | "author": "Accord Project",
7 | "license": "Apache-2.0",
8 | "accordproject": {
9 | "template": "clause",
10 | "cicero": "^0.25.0",
11 | "runtime": "es6"
12 | },
13 | "devDependencies": {
14 | "cucumber": "^5.1.0"
15 | },
16 | "scripts": {
17 | "test": "cucumber-js test -r .cucumber.js"
18 | },
19 | "keywords": [
20 | "hello",
21 | "world",
22 | "greet"
23 | ]
24 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/signing-template/helloworldstate/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.helloworldstate.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/signing-template/helloworldstate/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/signing-template/helloworldstate/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/signing-template/keystore.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/signing-template/keystore.p12
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-decorator/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-decorator/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "template-decorator",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-decorator/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-decorator/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-decorator/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-logo/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/template-logo/logo.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-logo/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace logo.support.TemplateLogoClause@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 |
5 | /**
6 | * The template model
7 | */
8 | @template
9 | asset TemplateLogoClause extends Clause {
10 | o String firstName
11 | o String lastName
12 | }
13 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-logo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "logo",
3 | "version": "0.0.1",
4 | "description": "Aman Sharma added logo suport",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-logo/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{firstName}} {{lastName}} added the support for logo and hence created this template for testing!
2 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/template-logo/text/sample.md:
--------------------------------------------------------------------------------
1 | "Aman" "Sharma" added the support for logo and hence created this template for testing!
2 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.copyrightlicense
2 |
3 | transaction PaymentRequest {
4 | o String input
5 | }
6 |
7 | transaction PayOut {
8 | o Double amount
9 | }
10 |
11 | concept Contract {
12 | o Double amount
13 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/test2.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.copyrightlicenseNEW
2 |
3 | transaction PaymentRequest {
4 | o String input
5 | }
6 |
7 | transaction PayOut {
8 | o Double amount
9 | }
10 |
11 | concept FOO {
12 | o Double amount
13 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/test3.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.copyrightlicense
2 |
3 | enum Bar {
4 | o GRR
5 | o YAY
6 | }
7 |
8 | asset Baz identified by bazId {
9 | o String bazId
10 | }
11 |
12 | transaction PaymentRequest {
13 | o String input
14 | }
15 |
16 | transaction PayOut {
17 | o Double amount
18 | }
19 |
20 | concept FOO {
21 | o Double amount
22 | o Double maybeAmount optional
23 | o Integer someNumber
24 | o Integer[] someArray
25 | o Bar stuff
26 | --> Baz relationship
27 | }
28 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/text-only/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Late Delivery And Penalty
3 |
4 | ## Sample
5 |
6 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 2 days of delay penalty amounting to 10.5% of total value of the Equipment whose delivery has been delayed. Any fractional part of a day is to be considered a full day. The total amount of penalty shall not, however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.
7 |
8 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/text-only/model/test.cto:
--------------------------------------------------------------------------------
1 | namespace org.accord.test
2 |
3 |
4 | enum Status {
5 | o ON
6 | o OFF
7 | }
8 |
9 | concept Child {
10 | o String name
11 | }
12 |
13 | /**
14 | * A test concept
15 | */
16 | concept Foo {
17 | o String bar
18 | --> Participant p
19 | --> Asset a
20 | o Double d
21 | o Long l
22 | o DateTime t
23 | o Boolean b
24 | o Status s
25 | o Integer i
26 | o Child child
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/text-only/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "text-only",
3 | "version": "0.0.1",
4 | "description": "Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/text-only/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery{{#if forceMajeure}} except for Force Majeure cases,{{/if}} the Seller shall pay to the Buyer for every {{penaltyDuration}} of delay penalty amounting to {{penaltyPercentage}}% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a {{fractionalPart}} is to be considered a full {{fractionalPart}}. The total amount of penalty shall not however, exceed {{capPercentage}}% of the total value of the Equipment involved in late delivery. If the delay is more than {{termination}}, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/text-only/text/sample.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 days of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 weeks, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/text-only/text/sample_en.md:
--------------------------------------------------------------------------------
1 | Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, the Seller shall pay to the Buyer for every 9 DAY of delay penalty amounting to 7% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a DAY is to be considered a full DAY. The total amount of penalty shall not however, exceed 2% of the total value of the Equipment involved in late delivery. If the delay is more than 2 WEEK, the Buyer is entitled to terminate this Contract.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperDate/README.md:
--------------------------------------------------------------------------------
1 | # Hello World State
2 |
3 | This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperDate/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperDate/logo.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperDate/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloworldstate@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | asset HelloWorldState extends State {
15 | o Double counter
16 | }
17 |
18 | /**
19 | * The template model
20 | */
21 | @template
22 | asset HelloWorldClause extends Clause {
23 | /**
24 | * The name for the clause
25 | */
26 | o String name
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperDate/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloworldstate",
3 | "displayName": "Hello World State",
4 | "version": "0.15.0",
5 | "description": "This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.",
6 | "author": "Accord Project",
7 | "license": "Apache-2.0",
8 | "accordproject": {
9 | "template": "clause",
10 | "cicero": "^0.25.0",
11 | "runtime": "es6"
12 | },
13 | "devDependencies": {
14 | "cucumber": "^5.1.0"
15 | },
16 | "scripts": {
17 | "test": "cucumber-js test -r .cucumber.js"
18 | },
19 | "keywords": [
20 | "hello",
21 | "world",
22 | "greet"
23 | ]
24 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperDate/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.helloworldstate.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperDate/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperDate/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperSign/README.md:
--------------------------------------------------------------------------------
1 | # Hello World State
2 |
3 | This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperSign/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperSign/logo.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperSign/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloworldstate@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | asset HelloWorldState extends State {
15 | o Double counter
16 | }
17 |
18 | /**
19 | * The template model
20 | */
21 | @template
22 | asset HelloWorldClause extends Clause {
23 | /**
24 | * The name for the clause
25 | */
26 | o String name
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperSign/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloworldstate",
3 | "displayName": "Hello World State",
4 | "version": "0.15.0",
5 | "description": "This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.",
6 | "author": "Accord Project",
7 | "license": "Apache-2.0",
8 | "accordproject": {
9 | "template": "clause",
10 | "cicero": "^0.25.0",
11 | "runtime": "es6"
12 | },
13 | "devDependencies": {
14 | "cucumber": "^5.1.0"
15 | },
16 | "scripts": {
17 | "test": "cucumber-js test -r .cucumber.js"
18 | },
19 | "keywords": [
20 | "hello",
21 | "world",
22 | "greet"
23 | ]
24 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperSign/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.helloworldstate.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperSign/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateTamperSign/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateUnsigned/README.md:
--------------------------------------------------------------------------------
1 | # Hello World State
2 |
3 | This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.
4 |
5 | ## Signature Info
6 | - PKCS#12 keystore file: keystore.p12
7 | - PKCS#12 keystore passphrase: password
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateUnsigned/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/verifying-template-signature/helloworldstateUnsigned/logo.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateUnsigned/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.helloworldstate@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | asset HelloWorldState extends State {
15 | o Double counter
16 | }
17 |
18 | /**
19 | * The template model
20 | */
21 | @template
22 | asset HelloWorldClause extends Clause {
23 | /**
24 | * The name for the clause
25 | */
26 | o String name
27 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateUnsigned/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "helloworldstate",
3 | "displayName": "Hello World State",
4 | "version": "0.15.0",
5 | "description": "This is the stateful Hello World of Accord Project Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.",
6 | "author": "Accord Project",
7 | "license": "Apache-2.0",
8 | "accordproject": {
9 | "template": "clause",
10 | "cicero": "^0.25.0",
11 | "runtime": "es6"
12 | },
13 | "devDependencies": {
14 | "cucumber": "^5.1.0"
15 | },
16 | "scripts": {
17 | "test": "cucumber-js test -r .cucumber.js"
18 | },
19 | "keywords": [
20 | "hello",
21 | "world",
22 | "greet"
23 | ]
24 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateUnsigned/request.json:
--------------------------------------------------------------------------------
1 | {"$class":"org.accordproject.helloworldstate.MyRequest","input":"Accord Project"}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateUnsigned/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/verifying-template-signature/helloworldstateUnsigned/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Fred Blogs".
2 | Thank you!
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/with-node_modules/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Clause Template: Conga
3 |
4 | ## Sample
5 |
6 | "Dan Selman" agrees to spend 100.0 conga coins on swag
7 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/with-node_modules/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | /**
7 | * Defines the data model for the Conga template.
8 | */
9 | @template
10 | asset TemplateModel extends Clause {
11 | o Double amount
12 | o String swag
13 | --> Participant participant
14 | }
15 |
16 | /**
17 | * Defines the input data required by the template
18 | */
19 | transaction Payup extends Request {
20 | }
21 |
22 | /**
23 | * Defines the output data for the template
24 | */
25 | transaction CongaResponse extends Response {
26 | o String name
27 | o Double amount
28 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/with-node_modules/node_modules/my-model-package/models/nm_models.cto:
--------------------------------------------------------------------------------
1 | namespace org.accordproject.conga
2 |
3 | /**
4 | * Defines the data model for the Conga template.
5 | */
6 | @AccordTemplateModel("conga")
7 | concept TemplateModel {
8 | o Double amount
9 | o String swag
10 | --> Participant participant
11 | }
12 |
13 | /**
14 | * Defines the input data required by the template
15 | */
16 | transaction Payup {
17 | }
18 |
19 | /**
20 | * Defines the output data for the template
21 | */
22 | transaction Response {
23 | o String name
24 | o Double amount
25 | }
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/with-node_modules/node_modules/my-model-package/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "my-model-package",
3 | "version": "0.0.1"
4 | }
5 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/with-node_modules/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "conga",
3 | "version": "0.0.1",
4 | "description": "\"Dan Selman\" agrees to spend 100.0 conga coins on \"swag\"",
5 | "dependencies": {
6 | "my-model-package": "0.0.1"
7 | },
8 | "accordproject": {
9 | "template": "clause",
10 | "cicero": "^0.25.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/with-node_modules/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{participant}} agrees to spend {{amount}} conga coins on {{swag}}
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/with-node_modules/text/sample.md:
--------------------------------------------------------------------------------
1 | "Dan Selman" agrees to spend 100.0 conga coins on "penguins"
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/wrong-name-template-logo/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace logo.support.WrongNameTemplateLogoClause@1.0.0
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 |
5 | /**
6 | * The template model
7 | */
8 | @template
9 | asset WrongNameTemplateLogoClause extends Clause {
10 | o String firstName
11 | o String lastName
12 | }
13 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/wrong-name-template-logo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "wrong-name-logo",
3 | "version": "0.0.1",
4 | "description": "Aman Sharma added logo suport",
5 | "accordproject": {
6 | "template": "clause",
7 | "cicero": "^0.25.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/wrong-name-template-logo/symbol.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/cicero-core/test/data/wrong-name-template-logo/symbol.png
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/wrong-name-template-logo/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | {{firstName}} {{lastName}} added the support for logo and hence created this template for testing!
2 |
--------------------------------------------------------------------------------
/packages/cicero-core/test/data/wrong-name-template-logo/text/sample.md:
--------------------------------------------------------------------------------
1 | "Aman" "Sharma" added the support for logo and hence created this template for testing!
2 |
--------------------------------------------------------------------------------
/packages/generator-cicero-template/.eslintignore:
--------------------------------------------------------------------------------
1 | coverage
2 | node_modules
3 | out
4 | generators/app/templates/lib/
--------------------------------------------------------------------------------
/packages/generator-cicero-template/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
--------------------------------------------------------------------------------
/packages/generator-cicero-template/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | coverage
3 |
--------------------------------------------------------------------------------
/packages/generator-cicero-template/.yo-rc.json:
--------------------------------------------------------------------------------
1 | {
2 | "generator-node": {
3 | "promptValues": {
4 | "authorName": "Accord",
5 | "authorEmail": "danscode@selman.org",
6 | "authorUrl": "https://github.com/accordproject/cicero"
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/packages/generator-cicero-template/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to this project will be documented in this file.
4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5 |
6 | # [0.20.0-alpha.2](https://github.com/accordproject/cicero/compare/v0.13.5...v0.20.0-alpha.2) (2019-10-01)
7 |
8 | **Note:** Version bump only for package @accordproject/generator-cicero-template
9 |
--------------------------------------------------------------------------------
/packages/generator-cicero-template/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2017 Accord (https://github.com/accordproject/cicero)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 |
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/.cucumber.js:
--------------------------------------------------------------------------------
1 | require('@accordproject/cicero-test').Steps;
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /log
3 |
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/accordproject/template-archive/e7daf5555505c83208fb740b76101f00e02c32b5/packages/generator-cicero-template/generators/app/templates/logo.png
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/model/model.cto:
--------------------------------------------------------------------------------
1 | namespace <%= data.modelNamespace %>
2 |
3 | import org.accordproject.contract@0.2.0.{Clause, Contract} from https://models.accordproject.org/accordproject/contract@0.2.0.cto
4 | import org.accordproject.runtime@0.2.0.{Request, Response, State, Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
5 |
6 | transaction MyRequest extends Request {
7 | o String input
8 | }
9 |
10 | transaction MyResponse extends Response {
11 | o String output
12 | }
13 |
14 | /**
15 | * The model for the contract
16 | */
17 | @template
18 | asset MyContract extends Contract {
19 | /**
20 | * The name for the contract
21 | */
22 | o String name
23 | }
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "<%= data.templateName %>",
3 | "version": "0.0.0",
4 | "description": "Name of the person to greet: \"Dan\".\nThank you!",
5 | "author": "<%= data.author %>",
6 | "accordproject": {
7 | "template": "contract",
8 | "cicero": "^<%= data.engineVersion %>",
9 | "runtime": "es6"
10 | },
11 | "devDependencies": {
12 | "cucumber": "^5.1.0",
13 | "chai": "4.2.0",
14 | "@accordproject/cicero-cli": "^<%= data.engineVersion %>"
15 | },
16 | "scripts": {
17 | "test": "cucumber-js test -r .cucumber.js"
18 | }
19 | }
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "$class": "<%= data.modelNamespace %>.MyRequest",
3 | "input": "World"
4 | }
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/test/logic_default.feature:
--------------------------------------------------------------------------------
1 | Feature: HelloWorld
2 | This describe the expected behavior for an Accord Project's template
3 |
4 | Background:
5 | Given the default contract
6 |
7 | Scenario: The contract should Respond "Hello Dan World"
8 | When it receives the default request
9 | Then it should respond with
10 | """
11 | {
12 | "$class": "<%= data.modelNamespace %>.MyResponse",
13 | "output": "Hello Dan World"
14 | }
15 | """
16 |
17 |
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/text/grammar.tem.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: {{name}}.
2 | _Thank you!_
--------------------------------------------------------------------------------
/packages/generator-cicero-template/generators/app/templates/text/sample.md:
--------------------------------------------------------------------------------
1 | Name of the person to greet: "Dan".
2 | _Thank you!_
--------------------------------------------------------------------------------
/scripts/tag.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | /*
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | 'use strict';
17 |
18 | const semver = require('semver');
19 | const targetVersion = process.argv[2];
20 |
21 | if (!semver.valid(targetVersion)) {
22 | console.error(`Error: the version "${targetVersion}" is invalid!`);
23 | process.exit(1);
24 | }
25 |
26 | const prerelease = semver.prerelease(targetVersion);
27 | const tag = prerelease ? 'unstable' : 'latest';
28 |
29 | console.log(`::set-output name=tag::--tag=${tag}`);
30 |
--------------------------------------------------------------------------------