-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from input-output-hk/workspaces
Initial version of workspaces
- Loading branch information
Showing
155 changed files
with
1,507 additions
and
1,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Post-integration | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
deploy-docs: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📥 Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🧰 Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: 🧰 Setup nix | ||
uses: cachix/install-nix-action@v22 | ||
with: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 🔨 Build Docs | ||
run: | | ||
nix develop --show-trace --command bash -c "npm i && npm run build && npm run docs" | ||
- name: 📘 Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: './docs' | ||
|
||
- name: 📘 Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ tsconfig.tsbuildinfo | |
result | ||
source | ||
dist | ||
test-dist | ||
|
||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,6 @@ | ||
module.exports = { | ||
|
||
testEnvironment: "node", | ||
projects: [ | ||
{ | ||
displayName: "e2e test", | ||
testMatch: ["./**/*.spec.e2e.ts"], | ||
runner: "jest-serial-runner", | ||
extensionsToTreatAsEsm: ['.ts'], | ||
preset: 'ts-jest/presets/default-esm', | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1' | ||
}, | ||
globalSetup: "./dotenv/dotenv-test.js", | ||
setupFilesAfterEnv: ["./jest.config.console.js"], | ||
transform: { | ||
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest` | ||
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest` | ||
'^.+\\.m?[tj]sx?$': [ | ||
'ts-jest', | ||
{ | ||
useESM: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
displayName: "unit test", | ||
testMatch: ["./**/*.spec.ts"], | ||
extensionsToTreatAsEsm: ['.ts'], | ||
preset: 'ts-jest/presets/default-esm', | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1' | ||
}, | ||
globalSetup: "./dotenv/dotenv-test.js", | ||
setupFilesAfterEnv: ["./jest.config.console.js"], | ||
transform: { | ||
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest` | ||
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest` | ||
'^.+\\.m?[tj]sx?$': [ | ||
'ts-jest', | ||
{ | ||
useESM: true, | ||
}, | ||
], | ||
}, | ||
} | ||
'<rootDir>/packages/language/core/v1/test/jest.unit.config.mjs' | ||
] | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# @marlowe/language-core-v1 | ||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "@marlowe/language-core-v1", | ||
"version": "0.1.0-beta", | ||
"description": "Library to manipulate Marlowe Core contracts", | ||
"repository": "https://github.com/input-output-hk/marlowe-ts-sdk", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"contributors": [ | ||
"Nicolas Henin <nicolas.henin@iohk.io> (https://iohk.io)", | ||
"Hernan Rajchert <hernan.rajchert@iohk.io> (https://iohk.io)", | ||
"Bjorn Kihlberg <bjorn.kihlberg@iohk.io> (https://iohk.io)" | ||
], | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"build": "tsc --build src", | ||
"clean": "tsc --build --clean src ", | ||
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config test/jest.unit.config.mjs" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
".": "./dist/semantics/contract/index.js", | ||
"./examples": "./dist/examples/index.js", | ||
"./next": "./dist/semantics/next/index.js", | ||
"./environment": "./dist/semantics/environment.js", | ||
"./state": "./dist/semantics/state.js" | ||
}, | ||
|
||
"dependencies": { | ||
"@blockfrost/blockfrost-js": "5.2.0", | ||
"@blockfrost/openapi": "0.1.54", | ||
"@emurgo/cardano-serialization-lib-browser":"11.4.0", | ||
"@types/deep-equal": "1.0.1", | ||
"@types/qs" : "6.9.7", | ||
"qs" : "6.11.1" , | ||
"axios": "^1.3.3", | ||
"axios-curlirize": "^2.0.0", | ||
"date-fns": "2.29.3", | ||
"deep-equal": "1.0.1", | ||
"dotenv": "^16.0.3", | ||
"fp-ts": "^2.16.0", | ||
"json-bigint": "^1.0.0", | ||
"lucid-cardano": "0.9.4", | ||
"ts-adt": "^2.0.2", | ||
"ts-pattern": "^4.2.0", | ||
"retry-ts":"0.1.4", | ||
"newtype-ts":"0.3.5", | ||
"monocle-ts":"2.3.13", | ||
"io-ts":"2.2.20", | ||
"io-ts-types":"0.5.19", | ||
"io-ts-bigint":"2.0.1", | ||
"jsonbigint-io-ts-reporters":"2.0.1" | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
...e/core/v1/examples/contract-one-notify.ts → ...re/v1/src/examples/contract-one-notify.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
/* eslint-disable sort-keys-fix/sort-keys-fix */ | ||
|
||
import { Contract } from "../semantics/contract"; | ||
import { close } from "../semantics/contract/close"; | ||
import { Timeout } from "../semantics/contract/when"; | ||
import { Contract } from "../semantics/contract/index.js"; | ||
import { close } from "../semantics/contract/close.js"; | ||
import { Timeout } from "../semantics/contract/when/index.js"; | ||
|
||
|
||
/** | ||
* Marlowe Example : A contract with One Step (one true notify) | ||
*/ | ||
|
||
export const oneNotifyTrue : (notifyTimeout:Timeout) => Contract | ||
= (notifyTimeout) => | ||
export const oneNotifyTrue : (notifyTimeout:Timeout) => Contract | ||
= (notifyTimeout) => | ||
({ when :[{ case :{ notify_if: true } | ||
, then : close}] | ||
, timeout : notifyTimeout | ||
, timeout_continuation : close}) | ||
|
||
|
Oops, something went wrong.