@marlowe.io/marlowe-object
Advanced tools
Comparing version 0.2.0-alpha-22 to 0.2.0-beta
@@ -109,3 +109,3 @@ import { l as lib, R as ReferenceGuard, T as TokenGuard, L as LabelGuard } from './index-1828698b.js'; | ||
CondGuard, | ||
ReferenceGuard | ||
ReferenceGuard, | ||
])); | ||
@@ -173,3 +173,3 @@ /** | ||
lib.boolean, | ||
ReferenceGuard | ||
ReferenceGuard, | ||
])); | ||
@@ -261,3 +261,11 @@ | ||
*/ | ||
const ContractGuard = lib.recursion("Contract", () => lib.union([G.Close, PayGuard, IfGuard, WhenGuard, LetGuard, AssertGuard, ReferenceGuard])); | ||
const ContractGuard = lib.recursion("Contract", () => lib.union([ | ||
G.Close, | ||
PayGuard, | ||
IfGuard, | ||
WhenGuard, | ||
LetGuard, | ||
AssertGuard, | ||
ReferenceGuard, | ||
])); | ||
@@ -271,3 +279,3 @@ /** | ||
type: lib.literal("party"), | ||
value: PartyGuard | ||
value: PartyGuard, | ||
}); | ||
@@ -281,3 +289,3 @@ /** | ||
type: lib.literal("value"), | ||
value: ValueGuard | ||
value: ValueGuard, | ||
}); | ||
@@ -291,3 +299,3 @@ /** | ||
type: lib.literal("observation"), | ||
value: ObservationGuard | ||
value: ObservationGuard, | ||
}); | ||
@@ -301,3 +309,3 @@ /** | ||
type: lib.literal("token"), | ||
value: TokenGuard | ||
value: TokenGuard, | ||
}); | ||
@@ -311,3 +319,3 @@ /** | ||
type: lib.literal("contract"), | ||
value: ContractGuard | ||
value: ContractGuard, | ||
}); | ||
@@ -321,3 +329,3 @@ /** | ||
type: lib.literal("action"), | ||
value: ActionGuard | ||
value: ActionGuard, | ||
}); | ||
@@ -328,3 +336,10 @@ /** | ||
*/ | ||
const ObjectTypeGuard = lib.union([ObjectPartyGuard, ObjectValueGuard, ObjectObservationGuard, ObjectTokenGuard, ObjectContractGuard, ObjectActionGuard]); | ||
const ObjectTypeGuard = lib.union([ | ||
ObjectPartyGuard, | ||
ObjectValueGuard, | ||
ObjectObservationGuard, | ||
ObjectTokenGuard, | ||
ObjectContractGuard, | ||
ObjectActionGuard, | ||
]); | ||
/** | ||
@@ -331,0 +346,0 @@ * {@link !io-ts-usage | Dynamic type guard} for the {@link Bundle | bundle type}. |
import * as t from "io-ts/lib/index.js"; | ||
import { close } from "@marlowe.io/language-core-v1"; | ||
import { close, } from "@marlowe.io/language-core-v1"; | ||
import * as G from "@marlowe.io/language-core-v1/guards"; | ||
@@ -69,2 +69,10 @@ import { ObservationGuard, } from "./value-and-observation.js"; | ||
*/ | ||
export const ContractGuard = t.recursion("Contract", () => t.union([G.Close, PayGuard, IfGuard, WhenGuard, LetGuard, AssertGuard, ReferenceGuard])); | ||
export const ContractGuard = t.recursion("Contract", () => t.union([ | ||
G.Close, | ||
PayGuard, | ||
IfGuard, | ||
WhenGuard, | ||
LetGuard, | ||
AssertGuard, | ||
ReferenceGuard, | ||
])); |
@@ -21,3 +21,3 @@ /** | ||
export { ChoiceIdGuard as ChoiceId } from "./choices.js"; | ||
export { ReferenceGuard as Reference, LabelGuard as Label } from "./reference.js"; | ||
export { ReferenceGuard as Reference, LabelGuard as Label, } from "./reference.js"; | ||
export { PartyGuard as Party } from "./participants.js"; | ||
@@ -24,0 +24,0 @@ export { PayeeAccountGuard as PayeeAccount, PayeePartyGuard as PayeeParty, AccountIdGuard as AccountId, } from "./payee.js"; |
@@ -23,3 +23,3 @@ /** | ||
export { ChoiceIdGuard as ChoiceId } from "./choices.js"; | ||
export { ReferenceGuard as Reference, LabelGuard as Label } from "./reference.js"; | ||
export { ReferenceGuard as Reference, LabelGuard as Label, } from "./reference.js"; | ||
export { PartyGuard as Party } from "./participants.js"; | ||
@@ -26,0 +26,0 @@ export { PayeeAccountGuard as PayeeAccount, PayeePartyGuard as PayeeParty, AccountIdGuard as AccountId, } from "./payee.js"; |
@@ -8,4 +8,4 @@ export { Action, Deposit, Notify, Choice } from "./actions.js"; | ||
export { Token, CoreToken, TokenName, lovelace } from "./token.js"; | ||
export { Let, If, When, Contract, Pay, Close, Assert, Case, NormalCase, MerkleizedCase, Timeout } from "./contract.js"; | ||
export { Let, If, When, Contract, Pay, Close, Assert, Case, NormalCase, MerkleizedCase, Timeout, } from "./contract.js"; | ||
export { ObjectType, Bundle, ObjectParty, ObjectValue, ObjectObservation, ObjectToken, ObjectContract, ObjectAction, } from "./object.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -7,3 +7,3 @@ import * as t from "io-ts/lib/index.js"; | ||
import { TokenGuard } from "./token.js"; | ||
import { ValueGuard, ObservationGuard } from "./value-and-observation.js"; | ||
import { ValueGuard, ObservationGuard, } from "./value-and-observation.js"; | ||
/** | ||
@@ -16,3 +16,3 @@ * {@link !io-ts-usage | Dynamic type guard} for the {@link ObjectParty | object party type}. | ||
type: t.literal("party"), | ||
value: PartyGuard | ||
value: PartyGuard, | ||
}); | ||
@@ -26,3 +26,3 @@ /** | ||
type: t.literal("value"), | ||
value: ValueGuard | ||
value: ValueGuard, | ||
}); | ||
@@ -36,3 +36,3 @@ /** | ||
type: t.literal("observation"), | ||
value: ObservationGuard | ||
value: ObservationGuard, | ||
}); | ||
@@ -46,3 +46,3 @@ /** | ||
type: t.literal("token"), | ||
value: TokenGuard | ||
value: TokenGuard, | ||
}); | ||
@@ -56,3 +56,3 @@ /** | ||
type: t.literal("contract"), | ||
value: ContractGuard | ||
value: ContractGuard, | ||
}); | ||
@@ -66,3 +66,3 @@ /** | ||
type: t.literal("action"), | ||
value: ActionGuard | ||
value: ActionGuard, | ||
}); | ||
@@ -73,3 +73,10 @@ /** | ||
*/ | ||
export const ObjectTypeGuard = t.union([ObjectPartyGuard, ObjectValueGuard, ObjectObservationGuard, ObjectTokenGuard, ObjectContractGuard, ObjectActionGuard]); | ||
export const ObjectTypeGuard = t.union([ | ||
ObjectPartyGuard, | ||
ObjectValueGuard, | ||
ObjectObservationGuard, | ||
ObjectTokenGuard, | ||
ObjectContractGuard, | ||
ObjectActionGuard, | ||
]); | ||
/** | ||
@@ -76,0 +83,0 @@ * {@link !io-ts-usage | Dynamic type guard} for the {@link Bundle | bundle type}. |
import * as t from "io-ts/lib/index.js"; | ||
import { Token as CoreToken, lovelace, TokenName } from '@marlowe.io/language-core-v1'; | ||
import { Reference } from './reference.js'; | ||
import { Token as CoreToken, lovelace, TokenName } from "@marlowe.io/language-core-v1"; | ||
import { Reference } from "./reference.js"; | ||
export { CoreToken, lovelace, TokenName }; | ||
@@ -5,0 +5,0 @@ /** |
import * as t from "io-ts/lib/index.js"; | ||
import * as G from '@marlowe.io/language-core-v1/guards'; | ||
import { lovelace } from '@marlowe.io/language-core-v1'; | ||
import { ReferenceGuard } from './reference.js'; | ||
import * as G from "@marlowe.io/language-core-v1/guards"; | ||
import { lovelace, } from "@marlowe.io/language-core-v1"; | ||
import { ReferenceGuard } from "./reference.js"; | ||
export { lovelace }; | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,4 +5,4 @@ import * as t from "io-ts/lib/index.js"; | ||
import { Token } from "./token.js"; | ||
import { Constant, TimeIntervalStart, TimeIntervalEnd, UseValue, ValueId } from '@marlowe.io/language-core-v1'; | ||
import { Reference } from './reference.js'; | ||
import { Constant, TimeIntervalStart, TimeIntervalEnd, UseValue, ValueId } from "@marlowe.io/language-core-v1"; | ||
import { Reference } from "./reference.js"; | ||
export { Constant, TimeIntervalStart, TimeIntervalEnd, UseValue, ValueId }; | ||
@@ -9,0 +9,0 @@ /** |
import * as t from "io-ts/lib/index.js"; | ||
import * as G from '@marlowe.io/language-core-v1/guards'; | ||
import * as G from "@marlowe.io/language-core-v1/guards"; | ||
import { ChoiceIdGuard } from "./choices.js"; | ||
import { AccountIdGuard } from "./payee.js"; | ||
import { TokenGuard } from "./token.js"; | ||
import { ReferenceGuard } from './reference.js'; | ||
import { ReferenceGuard } from "./reference.js"; | ||
/** | ||
@@ -67,3 +67,3 @@ * {@link !io-ts-usage | Dynamic type guard} for the {@link AvailableMoney | available money type}. | ||
CondGuard, | ||
ReferenceGuard | ||
ReferenceGuard, | ||
])); | ||
@@ -131,3 +131,3 @@ /** | ||
t.boolean, | ||
ReferenceGuard | ||
ReferenceGuard, | ||
])); |
{ | ||
"name": "@marlowe.io/marlowe-object", | ||
"version": "0.2.0-alpha-22", | ||
"version": "0.2.0-beta", | ||
"description": "Large contract support", | ||
@@ -40,3 +40,3 @@ "repository": "https://github.com/input-output-hk/marlowe-ts-sdk", | ||
"dependencies": { | ||
"@marlowe.io/language-core-v1": "0.2.0-alpha-22", | ||
"@marlowe.io/language-core-v1": "0.2.0-beta", | ||
"date-fns": "2.29.3", | ||
@@ -43,0 +43,0 @@ "fp-ts": "^2.16.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
405591
10609
+ Added@marlowe.io/adapter@0.2.0-beta(transitive)
+ Added@marlowe.io/language-core-v1@0.2.0-beta(transitive)
- Removed@marlowe.io/language-core-v1@0.2.0-alpha-22(transitive)