@agoric/zoe 0.26.3-dev-2347e82.0 → 0.26.3-dev-5a4779a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/bundle-contractFacet-js-meta.json +86 -86
- package/bundles/bundle-contractFacet.js +1 -1
- package/exported.js +0 -1
- package/package.json +16 -16
- package/src/contractSupport/priceAuthority.d.ts +2 -0
- package/src/contractSupport/priceAuthority.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.js +4 -0
- package/src/contractSupport/priceAuthorityInitial.d.ts +1 -0
- package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityInitial.js +4 -0
- package/src/contractSupport/priceAuthorityTransform.d.ts +3 -1
- package/src/contractSupport/priceAuthorityTransform.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityTransform.js +4 -1
- package/src/contractSupport/priceQuote.d.ts +2 -0
- package/src/contractSupport/priceQuote.d.ts.map +1 -1
- package/src/contractSupport/priceQuote.js +4 -0
- package/src/contracts/callSpread/calculateShares.d.ts.map +1 -1
- package/src/contracts/callSpread/calculateShares.js +1 -1
- package/src/contracts/callSpread/fundedCallSpread.d.ts +4 -0
- package/src/contracts/callSpread/fundedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/fundedCallSpread.js +5 -1
- package/src/contracts/callSpread/payoffHandler.js +1 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts +1 -0
- package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/pricedCallSpread.js +5 -1
- package/src/contracts/callSpread/{types.d.ts → types-ambient.d.ts} +1 -1
- package/src/contracts/callSpread/types-ambient.d.ts.map +1 -0
- package/src/contracts/exported.js +3 -3
- package/src/contracts/loan/close.js +1 -1
- package/src/contracts/loan/index.d.ts +4 -0
- package/src/contracts/loan/index.d.ts.map +1 -1
- package/src/contracts/loan/index.js +4 -0
- package/src/contracts/loan/{types.d.ts → types-ambient.d.ts} +6 -6
- package/src/contracts/loan/types-ambient.d.ts.map +1 -0
- package/src/contracts/loan/{types.js → types-ambient.js} +5 -5
- package/src/contracts/priceAggregator.d.ts +2 -2
- package/src/contracts/priceAggregator.js +1 -1
- package/src/contracts/scaledPriceAuthority.d.ts +2 -1
- package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
- package/src/contracts/scaledPriceAuthority.js +4 -0
- package/src/contracts/{types.d.ts → types-ambient.d.ts} +1 -1
- package/src/contracts/types-ambient.d.ts.map +1 -0
- package/tools/fakePriceAuthority.d.ts +1 -0
- package/tools/fakePriceAuthority.d.ts.map +1 -1
- package/tools/fakePriceAuthority.js +3 -1
- package/tools/manualPriceAuthority.d.ts +4 -0
- package/tools/manualPriceAuthority.d.ts.map +1 -1
- package/tools/manualPriceAuthority.js +4 -0
- package/tools/manualTimer.d.ts.map +1 -1
- package/tools/manualTimer.js +0 -1
- package/tools/scriptedPriceAuthority.d.ts +4 -0
- package/tools/scriptedPriceAuthority.d.ts.map +1 -1
- package/tools/scriptedPriceAuthority.js +4 -0
- package/tools/types.js +2 -2
- package/src/contracts/callSpread/types.d.ts.map +0 -1
- package/src/contracts/loan/types.d.ts.map +0 -1
- package/src/contracts/types.d.ts.map +0 -1
- package/tools/types-ambient.d.ts +0 -142
- package/tools/types-ambient.d.ts.map +0 -1
- package/tools/types-ambient.js +0 -160
- /package/src/contracts/callSpread/{types.js → types-ambient.js} +0 -0
- /package/src/contracts/{types.js → types-ambient.js} +0 -0
package/exported.js
CHANGED
|
@@ -5,7 +5,6 @@ import './src/zoeService/types-ambient.js';
|
|
|
5
5
|
import './src/contractSupport/types-ambient.js';
|
|
6
6
|
import './src/contracts/exported.js';
|
|
7
7
|
import './src/types-ambient.js';
|
|
8
|
-
import './tools/types-ambient.js';
|
|
9
8
|
import '@agoric/notifier/exported.js';
|
|
10
9
|
import '@agoric/ertp/exported.js';
|
|
11
10
|
import '@agoric/store/exported.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-dev-
|
|
3
|
+
"version": "0.26.3-dev-5a4779a.0+5a4779a",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "yarn build:bundles",
|
|
12
12
|
"build:bundles": "node scripts/build-bundles.js",
|
|
13
|
-
"prepack": "
|
|
14
|
-
"postpack": "git clean -f '*.d.ts*'
|
|
13
|
+
"prepack": "tsc --build tsconfig.build.json",
|
|
14
|
+
"postpack": "git clean -f '*.d.ts*'",
|
|
15
15
|
"test": "ava --verbose",
|
|
16
16
|
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
|
|
17
17
|
"test:unit": "ava 'test/unitTests/**/test-*.js' -T 1m --verbose",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/assert": "0.6.1-dev-
|
|
47
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
48
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
49
|
-
"@agoric/internal": "0.3.3-dev-
|
|
50
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
51
|
-
"@agoric/store": "0.9.3-dev-
|
|
52
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
53
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
54
|
-
"@agoric/time": "0.3.3-dev-
|
|
55
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
46
|
+
"@agoric/assert": "0.6.1-dev-5a4779a.0+5a4779a",
|
|
47
|
+
"@agoric/base-zone": "0.1.1-dev-5a4779a.0+5a4779a",
|
|
48
|
+
"@agoric/ertp": "0.16.3-dev-5a4779a.0+5a4779a",
|
|
49
|
+
"@agoric/internal": "0.3.3-dev-5a4779a.0+5a4779a",
|
|
50
|
+
"@agoric/notifier": "0.6.3-dev-5a4779a.0+5a4779a",
|
|
51
|
+
"@agoric/store": "0.9.3-dev-5a4779a.0+5a4779a",
|
|
52
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-5a4779a.0+5a4779a",
|
|
53
|
+
"@agoric/swingset-vat": "0.32.3-dev-5a4779a.0+5a4779a",
|
|
54
|
+
"@agoric/time": "0.3.3-dev-5a4779a.0+5a4779a",
|
|
55
|
+
"@agoric/vat-data": "0.5.3-dev-5a4779a.0+5a4779a",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-5a4779a.0+5a4779a",
|
|
57
57
|
"@endo/bundle-source": "^3.2.2",
|
|
58
58
|
"@endo/captp": "^4.1.1",
|
|
59
59
|
"@endo/common": "^1.2.1",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"yargs-parser": "^21.1.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
71
|
+
"@agoric/kmarshal": "0.1.1-dev-5a4779a.0+5a4779a",
|
|
72
72
|
"@endo/init": "^1.1.1",
|
|
73
73
|
"ava": "^5.3.0",
|
|
74
74
|
"c8": "^9.1.0",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
"typeCoverage": {
|
|
142
142
|
"atLeast": 84.9
|
|
143
143
|
},
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "5a4779a5b0240bccd150607474d80beac23da3cd"
|
|
145
145
|
}
|
|
@@ -24,4 +24,6 @@ export function makeOnewayPriceAuthorityKit(opts: {
|
|
|
24
24
|
}): PriceAuthorityKit;
|
|
25
25
|
export type CompareAmount = (amount: Amount, amountLimit: Amount) => boolean;
|
|
26
26
|
export type Trigger = (createInstantQuote: PriceQuoteCreate) => Promise<void>;
|
|
27
|
+
import type { PriceQuoteCreate } from '@agoric/zoe/tools/types.js';
|
|
28
|
+
import type { PriceAuthorityKit } from '@agoric/zoe/tools/types.js';
|
|
27
29
|
//# sourceMappingURL=priceAuthority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthority.d.ts","sourceRoot":"","sources":["priceAuthority.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceAuthority.d.ts","sourceRoot":"","sources":["priceAuthority.js"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;;;;GAiBG;AAYI;iBARI,MAAM,CAAC,KAAK,CAAC;cACb,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;WACvB,IAAI,CAAC,OAAO,cAAc,EAAE,YAAY,CAAC;;mBAEzC,KAAK,CAAC,KAAK,CAAC;oBACZ,KAAK,CAAC,KAAK,CAAC;sBAyTtB;qCA7WU,MAAM,eACN,MAAM,KACJ,OAAO;gEAkBP,OAAO,CAAC,IAAI,CAAC;sCA7ByI,4BAA4B;uCAA5B,4BAA4B"}
|
|
@@ -8,6 +8,10 @@ import { makeTracer } from '@agoric/internal';
|
|
|
8
8
|
import { TimestampShape } from '@agoric/time';
|
|
9
9
|
import { M } from '@agoric/store';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery, PriceQuoteCreate, PriceAuthorityKit, PriceQuoteTrigger, MutableQuote,} from '@agoric/zoe/tools/types.js';
|
|
13
|
+
*/
|
|
14
|
+
|
|
11
15
|
const { quote: q, Fail } = assert;
|
|
12
16
|
|
|
13
17
|
const trace = makeTracer('PA', false);
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export function makeInitialTransform(priceOutPerIn: Ratio, priceAuthority: PriceAuthority, quoteMint: ERef<Mint<"set">>, brandIn: Brand<"nat">, brandOut: Brand<"nat">): PriceAuthority;
|
|
2
|
+
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
2
3
|
//# sourceMappingURL=priceAuthorityInitial.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthorityInitial.d.ts","sourceRoot":"","sources":["priceAuthorityInitial.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceAuthorityInitial.d.ts","sourceRoot":"","sources":["priceAuthorityInitial.js"],"names":[],"mappings":"AA8BO,oDAPI,KAAK,6CAEL,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WACjB,KAAK,CAAC,KAAK,CAAC,YACZ,KAAK,CAAC,KAAK,CAAC,kBA0FtB;oCAvG4F,4BAA4B"}
|
|
@@ -11,6 +11,10 @@ import { AmountMath } from '@agoric/ertp';
|
|
|
11
11
|
import { multiplyBy } from './ratio.js';
|
|
12
12
|
import { mintQuote } from './priceAuthorityTransform.js';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
16
|
+
*/
|
|
17
|
+
|
|
14
18
|
/**
|
|
15
19
|
* Override `makeQuoteNotifier`, `quoteGiven` to provide an initial price
|
|
16
20
|
* in case one is not yet available from the source.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function mintQuote(quoteBrand: Brand<"set">, amountIn: Amount<"nat">, amountOut: Amount<"nat">, timer: ERef<import("@agoric/time").TimerService>, timestamp: import("@agoric/time").Timestamp, quoteMint: ERef<Mint<"set">>): Promise<PriceQuote>;
|
|
2
2
|
export function makePriceAuthorityTransform({ quoteMint, sourcePriceAuthority, sourceBrandIn, sourceBrandOut, actualBrandIn, actualBrandOut, makeSourceAmountIn, makeSourceAmountOut, transformSourceAmountIn, transformSourceAmountOut, }: {
|
|
3
3
|
quoteMint: ERef<Mint<"set">>;
|
|
4
|
-
sourcePriceAuthority: ERef<PriceAuthority>;
|
|
4
|
+
sourcePriceAuthority: globalThis.ERef<PriceAuthority>;
|
|
5
5
|
sourceBrandIn: Brand<"nat">;
|
|
6
6
|
sourceBrandOut: Brand<"nat">;
|
|
7
7
|
actualBrandIn?: globalThis.Brand<"nat"> | undefined;
|
|
@@ -11,4 +11,6 @@ export function makePriceAuthorityTransform({ quoteMint, sourcePriceAuthority, s
|
|
|
11
11
|
transformSourceAmountIn?: ((sourceAmountIn: Amount<"nat">) => Amount<"nat">) | undefined;
|
|
12
12
|
transformSourceAmountOut?: ((sourceAmountOut: Amount<"nat">) => Amount<"nat">) | undefined;
|
|
13
13
|
}): Promise<PriceAuthority>;
|
|
14
|
+
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
15
|
+
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
14
16
|
//# sourceMappingURL=priceAuthorityTransform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthorityTransform.d.ts","sourceRoot":"","sources":["priceAuthorityTransform.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceAuthorityTransform.d.ts","sourceRoot":"","sources":["priceAuthorityTransform.js"],"names":[],"mappings":"AAoBO,sCARI,KAAK,CAAC,KAAK,CAAC,YACZ,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,SACb,IAAI,CAAC,OAAO,cAAc,EAAE,YAAY,CAAC,aACzC,OAAO,cAAc,EAAE,SAAS,aAChC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,uBAoB3B;AAeM;eAXI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;;mBAEjB,KAAK,CAAC,KAAK,CAAC;oBACZ,KAAK,CAAC,KAAK,CAAC;;;qCAGD,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC;uCAC9B,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC;gDAC1B,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC;kDAC9B,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC;4BA4N3D;gCAtQwF,4BAA4B;oCAA5B,4BAA4B"}
|
|
@@ -4,7 +4,10 @@ import { Fail, assert } from '@agoric/assert';
|
|
|
4
4
|
import { AmountMath } from '@agoric/ertp';
|
|
5
5
|
import { makeNotifier } from '@agoric/notifier';
|
|
6
6
|
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* @import {EOnly} from '@endo/eventual-send';
|
|
9
|
+
* @import {MutableQuote, PriceAuthority, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
10
|
+
*/
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* @param {Brand<'set'>} quoteBrand
|
|
@@ -4,4 +4,6 @@ export function getAmountOut(quote: PriceQuote): globalThis.Amount<"nat">;
|
|
|
4
4
|
/** @type {(quote: PriceQuote) => import('@agoric/time').Timestamp} */
|
|
5
5
|
export const getTimestamp: (quote: PriceQuote) => import("@agoric/time").Timestamp;
|
|
6
6
|
export function unitAmount(brand: Brand<"nat">): Promise<globalThis.Amount<"nat">>;
|
|
7
|
+
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
8
|
+
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
7
9
|
//# sourceMappingURL=priceQuote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"AAqBO,yEAIN;AAGM,yEAAgE;AAEhE,0EAAkE;AACzE,sEAAsE;AACtE,kDADkC,OAAO,cAAc,EAAE,SAAS,CACQ;AAGnE,kCADK,KAAK,CAAC,KAAK,CAAC,qCAMvB;gCAjC4F,4BAA4B;sCAA5B,4BAA4B"}
|
|
@@ -4,6 +4,10 @@ import { AmountMath } from '@agoric/ertp';
|
|
|
4
4
|
import { Nat } from '@endo/nat';
|
|
5
5
|
import { E } from '@endo/eventual-send';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
9
|
+
*/
|
|
10
|
+
|
|
7
11
|
const { Fail } = assert;
|
|
8
12
|
|
|
9
13
|
// PriceAuthorities return quotes as a pair of an amount and a payment, both
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateShares.d.ts","sourceRoot":"","sources":["calculateShares.js"],"names":[],"mappings":"iDA+
|
|
1
|
+
{"version":3,"file":"calculateShares.d.ts","sourceRoot":"","sources":["calculateShares.js"],"names":[],"mappings":"iDA+BQ,KAAK,SACF,OAAO,KAChB,CAAC,gBACC,OAAI,KAAK,CAAC,gBAEF,OAAO,KAAK,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {PriceAuthority} from '@agoric/zoe/tools/types.js';
|
|
3
|
+
*/
|
|
1
4
|
/**
|
|
2
5
|
* This contract implements a fully collateralized call spread. This is a
|
|
3
6
|
* combination of a call option bought at one strike price and a second call
|
|
@@ -57,4 +60,5 @@ export function start(zcf: ZCF<{
|
|
|
57
60
|
}>): Promise<{
|
|
58
61
|
creatorInvitation: Promise<Invitation<unknown, never>>;
|
|
59
62
|
}>;
|
|
63
|
+
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
60
64
|
//# sourceMappingURL=fundedCallSpread.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fundedCallSpread.d.ts","sourceRoot":"","sources":["fundedCallSpread.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH;;;;;;;;;GASG;AACH
|
|
1
|
+
{"version":3,"file":"fundedCallSpread.d.ts","sourceRoot":"","sources":["fundedCallSpread.js"],"names":[],"mappings":"AAaA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH;;;;;;;;;GASG;AACH;kBARiB,MAAM;kBACN,MAAM;sBACF,MAAM;;gBAEZ,MAAM;sBACA,MAAM;;;GA8E1B;oCAhIgC,4BAA4B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference path="./types.js" />
|
|
1
|
+
/// <reference path="./types-ambient.js" />
|
|
2
2
|
|
|
3
3
|
import { makePromiseKit } from '@endo/promise-kit';
|
|
4
4
|
import { E } from '@endo/eventual-send';
|
|
@@ -11,6 +11,10 @@ import {
|
|
|
11
11
|
import { makePayoffHandler } from './payoffHandler.js';
|
|
12
12
|
import { Position } from './position.js';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @import {PriceAuthority} from '@agoric/zoe/tools/types.js';
|
|
16
|
+
*/
|
|
17
|
+
|
|
14
18
|
/**
|
|
15
19
|
* This contract implements a fully collateralized call spread. This is a
|
|
16
20
|
* combination of a call option bought at one strike price and a second call
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricedCallSpread.d.ts","sourceRoot":"","sources":["pricedCallSpread.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pricedCallSpread.d.ts","sourceRoot":"","sources":["pricedCallSpread.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH;kBARiB,MAAM,CAAC,KAAK,CAAC;kBACb,MAAM,CAAC,KAAK,CAAC;sBACT,MAAM,CAAC,KAAK,CAAC;;gBAEnB,MAAM;sBACA,MAAM,CAAC,KAAK,CAAC;;;;;;;;;;;;;EA0GjC;oCA5J4F,4BAA4B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint @typescript-eslint/no-floating-promises: "warn" */
|
|
2
|
-
/// <reference path="./types.js" />
|
|
2
|
+
/// <reference path="./types-ambient.js" />
|
|
3
3
|
|
|
4
4
|
import { makePromiseKit } from '@endo/promise-kit';
|
|
5
5
|
import { E } from '@endo/eventual-send';
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
import { makePayoffHandler } from './payoffHandler.js';
|
|
16
16
|
import { Position } from './position.js';
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
20
|
+
*/
|
|
21
|
+
|
|
18
22
|
const { Fail } = assert;
|
|
19
23
|
|
|
20
24
|
const PERCENT_BASE = 100n;
|
|
@@ -27,4 +27,4 @@ type CalculateSharesReturn = {
|
|
|
27
27
|
type CalculateShares = (collateralBrand: Brand, price: Amount<"nat">, strikePrice1: Amount<"nat">, strikePrice2: Amount<"nat">) => CalculateSharesReturn;
|
|
28
28
|
type Make100Percent = (brand: Brand) => Ratio;
|
|
29
29
|
type Make0Percent = (brand: Brand) => Ratio;
|
|
30
|
-
//# sourceMappingURL=types.d.ts.map
|
|
30
|
+
//# sourceMappingURL=types-ambient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":"oBACa,MAAM,GAAG,OAAO;2CAKlB,YAAY,KACV,OAAO,CAAC,UAAU,CAAC;;qBAKlB,MAAM,IAAI;0BACT,oBAAoB;;;;;;;;eAQrB,KAAK;gBACL,KAAK;;;;;;;;;;;;;yCAcR,KAAK,SACL,MAAM,CAAC,KAAK,CAAC,gBACb,MAAM,CAAC,KAAK,CAAC,gBACb,MAAM,CAAC,KAAK,CAAC,KACX,qBAAqB;8BAKvB,KAAK,KACH,KAAK;4BAKP,KAAK,KACH,KAAK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference path="./types.js" />
|
|
1
|
+
/// <reference path="./types-ambient.js" />
|
|
2
2
|
// eslint-disable-next-line no-restricted-syntax
|
|
3
|
-
import './loan/types.js';
|
|
4
|
-
import './callSpread/types.js';
|
|
3
|
+
import './loan/types-ambient.js';
|
|
4
|
+
import './callSpread/types-ambient.js';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
3
|
+
*/
|
|
1
4
|
/**
|
|
2
5
|
* Add collateral of a particular brand and get a loan of another
|
|
3
6
|
* brand. Collateral (also known as margin) must be greater than the
|
|
@@ -61,4 +64,5 @@ export function start(zcf: ZCF<{
|
|
|
61
64
|
}>): Promise<{
|
|
62
65
|
creatorInvitation: Promise<Invitation<unknown, undefined>>;
|
|
63
66
|
}>;
|
|
67
|
+
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
64
68
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAQA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH;SARU,KAAK;sBACQ,QAAQ;;oBAEV,cAAc;kBAChB,KAAK;oBACH,MAAM;;;GAuC1B;oCA5F4F,4BAA4B"}
|
|
@@ -6,6 +6,10 @@ import {
|
|
|
6
6
|
} from '../../contractSupport/index.js';
|
|
7
7
|
import { makeLendInvitation } from './lend.js';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
11
|
+
*/
|
|
12
|
+
|
|
9
13
|
/**
|
|
10
14
|
* Add collateral of a particular brand and get a loan of another
|
|
11
15
|
* brand. Collateral (also known as margin) must be greater than the
|
|
@@ -24,7 +24,7 @@ type LoanTerms = {
|
|
|
24
24
|
* Used for getting the current value of collateral and setting
|
|
25
25
|
* liquidation triggers.
|
|
26
26
|
*/
|
|
27
|
-
priceAuthority: PriceAuthority;
|
|
27
|
+
priceAuthority: import("../../../tools/types.js").PriceAuthority;
|
|
28
28
|
periodNotifier: PeriodNotifier;
|
|
29
29
|
/**
|
|
30
30
|
* The rate in basis points that will be multiplied with the debt on
|
|
@@ -59,7 +59,7 @@ type BorrowerConfigProperties = {
|
|
|
59
59
|
* PromiseKit that includes a promise that resolves to a PriceQuote
|
|
60
60
|
* when liquidation is triggered
|
|
61
61
|
*/
|
|
62
|
-
liquidationPromiseKit: PromiseRecord<PriceQuote>;
|
|
62
|
+
liquidationPromiseKit: PromiseRecord<import("../../../tools/types.js").PriceQuote>;
|
|
63
63
|
};
|
|
64
64
|
type BorrowerConfigPropertiesMinusDebt = {
|
|
65
65
|
/**
|
|
@@ -71,7 +71,7 @@ type BorrowerConfigPropertiesMinusDebt = {
|
|
|
71
71
|
* PromiseKit that includes a promise that resolves to a PriceQuote
|
|
72
72
|
* when liquidation is triggered
|
|
73
73
|
*/
|
|
74
|
-
liquidationPromiseKit: PromiseRecord<PriceQuote>;
|
|
74
|
+
liquidationPromiseKit: PromiseRecord<import("../../../tools/types.js").PriceQuote>;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
77
|
* The loan has a lender, a borrower, and collateral escrowed.
|
|
@@ -121,7 +121,7 @@ type ConfigMinusGetDebt = {
|
|
|
121
121
|
liquidationPromiseKit: PromiseRecord<any>;
|
|
122
122
|
mmr?: bigint | undefined;
|
|
123
123
|
autoswapInstance: Handle<"Instance">;
|
|
124
|
-
priceAuthority: PriceAuthority;
|
|
124
|
+
priceAuthority: import("../../../tools/types.js").PriceAuthority;
|
|
125
125
|
periodNotifier: PeriodNotifier;
|
|
126
126
|
interestRate: bigint;
|
|
127
127
|
interestPeriod: import("@agoric/time").RelativeTime;
|
|
@@ -143,7 +143,7 @@ type BorrowFacet = {
|
|
|
143
143
|
* triggered the liquidation. This may be lower than expected if the
|
|
144
144
|
* price is moving quickly.
|
|
145
145
|
*/
|
|
146
|
-
getLiquidationPromise: () => Promise<PriceQuote>;
|
|
146
|
+
getLiquidationPromise: () => Promise<import("../../../tools/types.js").PriceQuote>;
|
|
147
147
|
/**
|
|
148
148
|
* Get the timestamp at which the debt was most recently recalculated.
|
|
149
149
|
*/
|
|
@@ -158,4 +158,4 @@ type BorrowFacet = {
|
|
|
158
158
|
*/
|
|
159
159
|
getRecentCollateralAmount: () => Amount;
|
|
160
160
|
};
|
|
161
|
-
//# sourceMappingURL=types.d.ts.map
|
|
161
|
+
//# sourceMappingURL=types-ambient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;;;;;sBACa,QAAQ,CAAC,OAAO,cAAc,EAAE,eAAe,CAAC;;;;;;;wBAUhD,QAAQ;;;;;;SAUP,KAAK;sBAGL,gBAAgB;;;;;oBAEhB,OAAO,yBAAyB,EAAE,cAAc;oBAKhD,cAAc;;;;;kBAEd,KAAK;oBAIL,OAAO,cAAc,EAAE,YAAY;eAEnC,KAAK;qBACL,KAAK;;;;;;gBAKL,OAAO;;;;;4BAMR,SAAS,GAAG,kBAAkB;;;;;;oBAQ7B,OAAO;;;;aAKP,MAAM,MAAM,CAAC,KAAK,CAAC;;;;;2BAInB,aAAa,CAAC,OAAO,yBAAyB,EAAE,UAAU,CAAC;;;;;;;oBAS3D,OAAO;;;;;2BAKP,aAAa,CAAC,OAAO,yBAAyB,EAAE,UAAU,CAAC;;;;;8BAO5D,oBAAoB,GAAG,wBAAwB;uCAM/C,oBAAoB,GAAG,iCAAiC;iCAM1D,GAAG,UACH,sBAAsB;gCAKtB,GAAG,UACH,SAAS,KACP,OAAO,CAAC,UAAU,CAAC;kCAKrB,GAAG,UACH,oBAAoB,KAClB,OAAO,CAAC,UAAU,CAAC;qCAKrB,GAAG,UACH,sBAAsB,KACpB,OAAO,CAAC,UAAU,CAAC;;;;;yCAQrB,GAAG,UACH,sBAAsB,KACpB,OAAO,CAAC,UAAU,CAAC;iDAKrB,oBAAoB;gCAKpB,MAAM,CAAC,KAAK,CAAC,gBACb,KAAK,KACH,MAAM,CAAC,KAAK,CAAC;;;;;;oBAKZ,cAAc;;;;kBAKd,MAAM,CAAC,KAAK,CAAC;;;;oBAIb,cAAc;kBAId,KAAK;;;;oBACL,OAAO,cAAc,EAAE,YAAY;SAInC,GAAG;wBAEH,+BAA+B;;;;;cAC/B,OAAO,cAAc,EAAE,SAAS;;;oBAMhC,OAAO;2BACP,aAAa,CAAC,GAAG,CAAC;;sBAElB,MAAM,CAAC,UAAU,CAAC;oBAClB,OAAO,yBAAyB,EAAE,cAAc;oBAChD,cAAc;kBACd,MAAM;oBACN,OAAO,cAAc,EAAE,YAAY;gBACnC,OAAO;;;;;;;6BAMP,MAAM,OAAO,CAAC,UAAU,CAAC;;;;iCAKzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;;2BAIzB,MAAM,OAAO,CAAC,OAAO,yBAAyB,EAAE,UAAU,CAAC;;;;iCAO3D,MAAM,OAAO,cAAc,EAAE,SAAS;;;;;qBAItC,MAAM,QAAQ,CAAC,MAAM,CAAC;;;;+BAKtB,MAAM,MAAM"}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
*
|
|
25
25
|
* @property {AutoswapInstance} autoswapInstance
|
|
26
26
|
*
|
|
27
|
-
* @property {PriceAuthority} priceAuthority
|
|
27
|
+
* @property {import('../../../tools/types.js').PriceAuthority} priceAuthority
|
|
28
28
|
*
|
|
29
29
|
* Used for getting the current value of collateral and setting
|
|
30
30
|
* liquidation triggers.
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
*
|
|
67
67
|
* A function to get the current debt
|
|
68
68
|
*
|
|
69
|
-
* @property {PromiseRecord<PriceQuote>} liquidationPromiseKit
|
|
69
|
+
* @property {PromiseRecord<import('../../../tools/types.js').PriceQuote>} liquidationPromiseKit
|
|
70
70
|
*
|
|
71
71
|
* PromiseKit that includes a promise that resolves to a PriceQuote
|
|
72
72
|
* when liquidation is triggered
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
81
81
|
* escrows it
|
|
82
82
|
*
|
|
83
|
-
* @property {PromiseRecord<PriceQuote>} liquidationPromiseKit
|
|
83
|
+
* @property {PromiseRecord<import('../../../tools/types.js').PriceQuote>} liquidationPromiseKit
|
|
84
84
|
*
|
|
85
85
|
* PromiseKit that includes a promise that resolves to a PriceQuote
|
|
86
86
|
* when liquidation is triggered
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
* @property {PromiseRecord<any>} liquidationPromiseKit
|
|
180
180
|
* @property {bigint} [mmr]
|
|
181
181
|
* @property {Handle<'Instance'>} autoswapInstance
|
|
182
|
-
* @property {PriceAuthority} priceAuthority
|
|
182
|
+
* @property {import('../../../tools/types.js').PriceAuthority} priceAuthority
|
|
183
183
|
* @property {PeriodNotifier} periodNotifier
|
|
184
184
|
* @property {bigint} interestRate
|
|
185
185
|
* @property {import('@agoric/time').RelativeTime} interestPeriod
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
*
|
|
199
199
|
* Make an invitation to add collateral to protect against liquidation
|
|
200
200
|
*
|
|
201
|
-
* @property {() => Promise<PriceQuote>} getLiquidationPromise
|
|
201
|
+
* @property {() => Promise<import('../../../tools/types.js').PriceQuote>} getLiquidationPromise
|
|
202
202
|
*
|
|
203
203
|
* Get a promise for a priceQuote that will resolve if liquidation
|
|
204
204
|
* occurs. The priceQuote is for the value of the collateral that
|
|
@@ -93,12 +93,12 @@ export function start(zcf: ZCF<{
|
|
|
93
93
|
initOracle: (oracleInstance?: string | Instance | undefined, query?: OracleQuery | undefined) => Promise<OracleAdmin<Price>>;
|
|
94
94
|
}>;
|
|
95
95
|
publicFacet: {
|
|
96
|
-
getPriceAuthority(): PriceAuthority;
|
|
96
|
+
getPriceAuthority(): import("@agoric/zoe/tools/types.js").PriceAuthority;
|
|
97
97
|
getSubscriber: () => globalThis.StoredSubscriber<unknown>;
|
|
98
98
|
/** Diagnostic tool */
|
|
99
99
|
getRoundCompleteNotifier(): Promise<globalThis.Notifier<any>>;
|
|
100
100
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
101
|
-
getPriceAuthority(): PriceAuthority;
|
|
101
|
+
getPriceAuthority(): import("@agoric/zoe/tools/types.js").PriceAuthority;
|
|
102
102
|
getSubscriber: () => globalThis.StoredSubscriber<unknown>;
|
|
103
103
|
/** Diagnostic tool */
|
|
104
104
|
getRoundCompleteNotifier(): Promise<globalThis.Notifier<any>>;
|
|
@@ -13,7 +13,6 @@ import { E } from '@endo/eventual-send';
|
|
|
13
13
|
import { Far } from '@endo/marshal';
|
|
14
14
|
import { notForProductionUse } from '@agoric/internal/src/magic-cookie-test-only.js';
|
|
15
15
|
|
|
16
|
-
import '../../tools/types-ambient.js';
|
|
17
16
|
import {
|
|
18
17
|
calculateMedian,
|
|
19
18
|
makeOnewayPriceAuthorityKit,
|
|
@@ -33,6 +32,7 @@ import {
|
|
|
33
32
|
|
|
34
33
|
/**
|
|
35
34
|
* @import {LegacyMap} from '@agoric/store'
|
|
35
|
+
* @import {PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
36
36
|
*/
|
|
37
37
|
/** @typedef {bigint | number | string} ParsableNumber */
|
|
38
38
|
/**
|
|
@@ -4,7 +4,7 @@ export function prepare(zcf: ZCF<ScaledPriceAuthorityOpts>, privateArgs: object,
|
|
|
4
4
|
}>;
|
|
5
5
|
}>;
|
|
6
6
|
export type ScaledPriceAuthorityOpts = {
|
|
7
|
-
sourcePriceAuthority: ERef<PriceAuthority>;
|
|
7
|
+
sourcePriceAuthority: globalThis.ERef<PriceAuthority>;
|
|
8
8
|
/**
|
|
9
9
|
* - sourceAmountIn:targetAmountIn
|
|
10
10
|
*/
|
|
@@ -18,4 +18,5 @@ export type ScaledPriceAuthorityOpts = {
|
|
|
18
18
|
*/
|
|
19
19
|
initialPrice?: Ratio | undefined;
|
|
20
20
|
};
|
|
21
|
+
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
21
22
|
//# sourceMappingURL=scaledPriceAuthority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaledPriceAuthority.d.ts","sourceRoot":"","sources":["scaledPriceAuthority.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scaledPriceAuthority.d.ts","sourceRoot":"","sources":["scaledPriceAuthority.js"],"names":[],"mappings":"AAqCO,6BALI,GAAG,CAAC,wBAAwB,CAAC,eAC7B,MAAM,WACN,OAAO,kBAAkB,EAAE,OAAO;;;;GAyD5C;;;;;;aAzEa,KAAK;;;;cACL,KAAK;;;;;;oCAP0E,4BAA4B"}
|
|
@@ -9,6 +9,10 @@ import { makeInitialTransform } from '../contractSupport/priceAuthorityInitial.j
|
|
|
9
9
|
import { makePriceAuthorityTransform } from '../contractSupport/priceAuthorityTransform.js';
|
|
10
10
|
import { provideQuoteMint } from '../contractSupport/priceAuthorityQuoteMint.js';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
14
|
+
*/
|
|
15
|
+
|
|
12
16
|
/**
|
|
13
17
|
* @typedef {object} ScaledPriceAuthorityOpts
|
|
14
18
|
* @property {ERef<PriceAuthority>} sourcePriceAuthority
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";oBAEc,MAAM,MAAM;uBACZ,MAAM,MAAM;;;yBAGZ,MAAM,OAAO,CAAC,UAAU,CAAC;;6BAE1B,oBAAoB,GAAG,oBAAoB;;2BAK1C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACnB,MAAM;iBACN,MAAM;2BACN,YAAY;kBACZ,MAAM;;;0BAGN,QAAQ;2BACR,qBAAqB;uBACrB,QAAQ;0BACR,oBAAoB;;;gBAGpB,CAAC,UAAU,EAAE,mBAAmB,KAAK,OAAO,CAAC,eAAe,CAAC;eAC7D,MAAM,MAAM;;;oBAKZ,MAAM,MAAM;oBACZ,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;;wBAKzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;0BAEzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;2BAGzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;gCAGzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;mCAEzB,MAAM,OAAO,CAAC,UAAU,CAAC;wBAEzB,MAAM,MAAM;;;;;wBACZ,MAAM,MAAM;;;;;mBAEZ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,KAAK,MAAM;;;;;oBAG7C,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM;;;;;uBAG7C,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC"}
|
|
@@ -27,4 +27,5 @@ export type FakePriceAuthorityOptions = {
|
|
|
27
27
|
quoteMint?: globalThis.ERef<globalThis.Mint<"set">> | undefined;
|
|
28
28
|
unitAmountIn?: globalThis.Amount<"nat"> | undefined;
|
|
29
29
|
};
|
|
30
|
+
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
30
31
|
//# sourceMappingURL=fakePriceAuthority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,gDAHW,yBAAyB,2BAsSnC;;mBApTa,KAAK,CAAC,KAAK,CAAC;oBACZ,KAAK,CAAC,KAAK,CAAC;;;WAGZ,IAAI,CAAC,OAAO,cAAc,EAAE,YAAY,CAAC;;;;;oCAjBsC,4BAA4B"}
|
|
@@ -10,7 +10,9 @@ import { TimeMath } from '@agoric/time';
|
|
|
10
10
|
|
|
11
11
|
import { natSafeMath } from '../src/contractSupport/index.js';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
15
|
+
*/
|
|
14
16
|
|
|
15
17
|
const { Fail } = assert;
|
|
16
18
|
const { coerceRelativeTimeRecord } = TimeMath;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
3
|
+
*/
|
|
1
4
|
/**
|
|
2
5
|
* @param {object} options
|
|
3
6
|
* @param {Brand<'nat'>} options.actualBrandIn
|
|
@@ -18,4 +21,5 @@ export function makeManualPriceAuthority(options: {
|
|
|
18
21
|
disable: () => void;
|
|
19
22
|
};
|
|
20
23
|
export type ManualPriceAuthority = ReturnType<typeof makeManualPriceAuthority>;
|
|
24
|
+
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
21
25
|
//# sourceMappingURL=manualPriceAuthority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manualPriceAuthority.d.ts","sourceRoot":"","sources":["manualPriceAuthority.js"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AACH;IAPiC,aAAa,EAAnC,KAAK,CAAC,KAAK,CAAC;IACU,cAAc,EAApC,KAAK,CAAC,KAAK,CAAC;IACG,YAAY,EAA3B,KAAK;IACwC,KAAK,EAAlD,OAAO,cAAc,EAAE,YAAY;IACR,cAAc
|
|
1
|
+
{"version":3,"file":"manualPriceAuthority.d.ts","sourceRoot":"","sources":["manualPriceAuthority.js"],"names":[],"mappings":"AAaA;;GAEG;AAEH;;;;;;;;GAQG;AACH;IAPiC,aAAa,EAAnC,KAAK,CAAC,KAAK,CAAC;IACU,cAAc,EAApC,KAAK,CAAC,KAAK,CAAC;IACG,YAAY,EAA3B,KAAK;IACwC,KAAK,EAAlD,OAAO,cAAc,EAAE,YAAY;IACR,cAAc;;cACV,CAAC,KAAK,KAAA,KAAK,IAAI;aAAW,MAAM,IAAI;EA8E7E;mCACa,UAAU,CAAC,OAAO,wBAAwB,CAAC;oCAzFoC,4BAA4B"}
|
|
@@ -11,6 +11,10 @@ import {
|
|
|
11
11
|
floorDivideBy,
|
|
12
12
|
} from '../src/contractSupport/index.js';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
16
|
+
*/
|
|
17
|
+
|
|
14
18
|
/**
|
|
15
19
|
* @param {object} options
|
|
16
20
|
* @param {Brand<'nat'>} options.actualBrandIn
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manualTimer.d.ts","sourceRoot":"","sources":["manualTimer.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"manualTimer.d.ts","sourceRoot":"","sources":["manualTimer.js"],"names":[],"mappings":";oCAaa;IACZ,QAAW,CAAC,EAAE,OAAO,cAAc,EAAE,YAAY,GAAG,MAAM,CAAC;IAC3D,kBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAKJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,mDANqB,GAAG,EAAE,KAAK,IAAI,wHAGtB,WAAW,CAuDvB"}
|
package/tools/manualTimer.js
CHANGED
|
@@ -3,7 +3,6 @@ import { bindAllMethods } from '@agoric/internal';
|
|
|
3
3
|
import { buildManualTimer as build } from '@agoric/swingset-vat/tools/manual-timer.js';
|
|
4
4
|
import { TimeMath } from '@agoric/time';
|
|
5
5
|
|
|
6
|
-
import './types-ambient.js';
|
|
7
6
|
import './internal-types.js';
|
|
8
7
|
|
|
9
8
|
const { Fail } = assert;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
3
|
+
*/
|
|
1
4
|
export function makeScriptedPriceAuthority(options: any): PriceAuthority;
|
|
5
|
+
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
2
6
|
//# sourceMappingURL=scriptedPriceAuthority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scriptedPriceAuthority.d.ts","sourceRoot":"","sources":["scriptedPriceAuthority.js"],"names":[],"mappings":"AAWA,yEAoFC"}
|
|
1
|
+
{"version":3,"file":"scriptedPriceAuthority.d.ts","sourceRoot":"","sources":["scriptedPriceAuthority.js"],"names":[],"mappings":"AAWA;;GAEG;AAEH,yEAoFC;oCAvF4F,4BAA4B"}
|
|
@@ -9,6 +9,10 @@ import {
|
|
|
9
9
|
makeOnewayPriceAuthorityKit,
|
|
10
10
|
} from '../src/contractSupport/index.js';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
14
|
+
*/
|
|
15
|
+
|
|
12
16
|
export function makeScriptedPriceAuthority(options) {
|
|
13
17
|
const {
|
|
14
18
|
actualBrandIn,
|