@agoric/zoe 0.27.0-upgrade-20-dev-ef71cfd.0 → 0.27.0-upgrade-19-devnet-dev-5428c4d.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 +275 -270
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +29 -29
- package/src/cleanProposal.d.ts +0 -2
- package/src/cleanProposal.d.ts.map +1 -1
- package/src/cleanProposal.js +2 -4
- package/src/contractFacet/exit.d.ts +1 -1
- package/src/contractFacet/exit.d.ts.map +1 -1
- package/src/contractFacet/internal-types.d.ts +8 -0
- package/src/contractFacet/internal-types.d.ts.map +1 -0
- package/src/contractFacet/internal-types.js +15 -0
- package/src/contractFacet/offerHandlerStorage.d.ts +1 -1
- package/src/contractFacet/rightsConservation.d.ts.map +1 -1
- package/src/contractFacet/rightsConservation.js +1 -0
- package/src/contractFacet/{types.ts → types-ambient.d.ts} +29 -66
- package/src/contractFacet/types-ambient.js +1 -0
- package/src/contractFacet/vatRoot.d.ts +2 -8
- package/src/contractFacet/vatRoot.d.ts.map +1 -1
- package/src/contractFacet/vatRoot.js +4 -5
- package/src/contractFacet/zcfMint.d.ts +2 -3
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfMint.js +7 -7
- package/src/contractFacet/zcfSeat.js +2 -2
- package/src/contractFacet/zcfZygote.d.ts +1 -9
- package/src/contractFacet/zcfZygote.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.js +5 -17
- package/src/contractSupport/atomicTransfer.d.ts +0 -6
- package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
- package/src/contractSupport/atomicTransfer.js +0 -4
- package/src/contractSupport/bondingCurves.js +1 -1
- package/src/contractSupport/index.d.ts +2 -2
- package/src/contractSupport/index.js +19 -2
- package/src/contractSupport/priceAuthorityInitial.d.ts +0 -2
- package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityInitial.js +1 -3
- package/src/contractSupport/ratio.d.ts +37 -0
- package/src/contractSupport/ratio.d.ts.map +1 -0
- package/src/contractSupport/ratio.js +419 -0
- package/src/contractSupport/safeMath.d.ts +11 -0
- package/src/contractSupport/safeMath.d.ts.map +1 -0
- package/src/contractSupport/safeMath.js +49 -0
- package/src/contractSupport/types-ambient.d.ts.map +1 -1
- package/src/contractSupport/types-ambient.js +0 -1
- package/src/contractSupport/zoeHelpers.d.ts +1 -6
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contractSupport/zoeHelpers.js +0 -1
- package/src/contracts/atomicSwap.d.ts +1 -1
- package/src/contracts/auction/index.d.ts +3 -3
- package/src/contracts/automaticRefund.d.ts +3 -3
- package/src/contracts/autoswap.d.ts +0 -4
- package/src/contracts/autoswap.d.ts.map +1 -1
- package/src/contracts/autoswap.js +0 -4
- package/src/contracts/barterExchange.d.ts +2 -2
- package/src/contracts/callSpread/fundedCallSpread.d.ts +1 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts +4 -4
- package/src/contracts/coveredCall-durable.d.ts +1 -1
- package/src/contracts/coveredCall.d.ts +1 -1
- package/src/contracts/loan/index.d.ts +1 -1
- package/src/contracts/loan/types-ambient.d.ts +13 -13
- package/src/contracts/loan/types-ambient.d.ts.map +1 -1
- package/src/contracts/loan/types-ambient.js +17 -17
- package/src/contracts/mintPayments.d.ts +2 -2
- package/src/contracts/oracle.d.ts +0 -3
- package/src/contracts/oracle.d.ts.map +1 -1
- package/src/contracts/oracle.js +0 -1
- package/src/contracts/priceAggregator.d.ts +0 -2
- package/src/contracts/priceAggregator.d.ts.map +1 -1
- package/src/contracts/priceAggregator.js +8 -10
- package/src/contracts/scaledPriceAuthority.d.ts +0 -1
- package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
- package/src/contracts/scaledPriceAuthority.js +0 -1
- package/src/contracts/sellItems.d.ts +1 -1
- package/src/contracts/simpleExchange.d.ts +0 -5
- package/src/contracts/simpleExchange.d.ts.map +1 -1
- package/src/contracts/simpleExchange.js +0 -4
- package/src/contracts/types-ambient.d.ts +7 -7
- package/src/contracts/types-ambient.d.ts.map +1 -1
- package/src/contracts/types-ambient.js +7 -7
- package/src/contracts/valueVow.contract.d.ts +2 -5
- package/src/contracts/valueVow.contract.d.ts.map +1 -1
- package/src/contracts/valueVow.contract.js +0 -1
- package/src/instanceRecordStorage.d.ts.map +1 -1
- package/src/instanceRecordStorage.js +1 -3
- package/src/internal-types.d.ts +5 -15
- package/src/internal-types.d.ts.map +1 -1
- package/src/internal-types.js +4 -9
- package/src/issuerRecord.d.ts +2 -3
- package/src/issuerRecord.d.ts.map +1 -1
- package/src/issuerRecord.js +2 -6
- package/src/issuerStorage.d.ts +2 -3
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/issuerStorage.js +5 -6
- package/src/typeGuards.d.ts +6 -10
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +5 -7
- package/src/types-ambient.d.ts +40 -0
- package/src/types-ambient.d.ts.map +1 -1
- package/src/types-ambient.js +42 -4
- package/src/zoeService/feeMint.d.ts +0 -1
- package/src/zoeService/feeMint.d.ts.map +1 -1
- package/src/zoeService/feeMint.js +0 -4
- package/src/zoeService/installationStorage.d.ts +2 -3
- package/src/zoeService/installationStorage.d.ts.map +1 -1
- package/src/zoeService/installationStorage.js +5 -2
- package/src/zoeService/internal-types.d.ts +3 -11
- package/src/zoeService/internal-types.d.ts.map +1 -1
- package/src/zoeService/internal-types.js +3 -9
- package/src/zoeService/invitationQueries.d.ts +3 -3
- package/src/zoeService/invitationQueries.js +3 -3
- package/src/zoeService/makeInvitation.d.ts +0 -1
- package/src/zoeService/makeInvitation.d.ts.map +1 -1
- package/src/zoeService/makeInvitation.js +0 -3
- package/src/zoeService/offer/offer.d.ts +0 -1
- package/src/zoeService/offer/offer.d.ts.map +1 -1
- package/src/zoeService/offer/offer.js +1 -3
- package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
- package/src/zoeService/originalZoeSeat.js +1 -0
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +2 -0
- package/src/zoeService/types-ambient.d.ts +226 -0
- package/src/zoeService/types-ambient.d.ts.map +1 -1
- package/src/zoeService/types-ambient.js +327 -4
- package/src/zoeService/utils.d.ts +5 -13
- package/src/zoeService/utils.test-d.ts +0 -1
- package/src/zoeService/zoe.d.ts +1 -11
- package/src/zoeService/zoe.d.ts.map +1 -1
- package/src/zoeService/zoe.js +1 -8
- package/src/zoeService/zoeSeat.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.js +2 -1
- package/src/zoeService/zoeStorageManager.d.ts +5 -5
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +3 -4
- package/tools/fakeVatAdmin.d.ts +2 -9
- package/tools/fakeVatAdmin.d.ts.map +1 -1
- package/tools/fakeVatAdmin.js +10 -18
- package/tools/manualPriceAuthority.d.ts +1 -4
- package/tools/manualPriceAuthority.d.ts.map +1 -1
- package/tools/manualPriceAuthority.js +0 -1
- package/tools/scriptedOracle.d.ts +2 -6
- package/tools/scriptedOracle.d.ts.map +1 -1
- package/tools/scriptedOracle.js +0 -4
- package/tools/setup-zoe.d.ts +6 -12
- package/tools/setup-zoe.d.ts.map +1 -1
- package/tools/setup-zoe.js +5 -38
- package/tools/test-utils.d.ts +1 -1
- package/tools/test-utils.js +1 -1
- package/tools/types.d.ts +0 -1
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +0 -1
- package/src/contractFacet/types.d.ts +0 -184
- package/src/contractFacet/types.d.ts.map +0 -1
- package/src/types-index.d.ts +0 -4
- package/src/types-index.js +0 -2
- package/src/types.d.ts +0 -29
- package/src/types.d.ts.map +0 -1
- package/src/types.ts +0 -44
- package/src/zoeService/types.d.ts +0 -238
- package/src/zoeService/types.d.ts.map +0 -1
- package/src/zoeService/types.ts +0 -307
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* @param {ZCF<{}>} zcf
|
|
14
14
|
*/
|
|
15
15
|
export function start(zcf: ZCF<{}>): {
|
|
16
|
-
creatorInvitation: Promise<
|
|
16
|
+
creatorInvitation: Promise<Invitation<unknown, never>>;
|
|
17
17
|
publicFacet: {
|
|
18
18
|
getOffersCount: () => bigint;
|
|
19
|
-
makeInvitation: () => Promise<
|
|
19
|
+
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
20
20
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
21
|
getOffersCount: () => bigint;
|
|
22
|
-
makeInvitation: () => Promise<
|
|
22
|
+
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
23
23
|
}>;
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=automaticRefund.d.ts.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @import {OfferHandler, ZCF} from '@agoric/zoe';
|
|
3
|
-
*/
|
|
4
1
|
/**
|
|
5
2
|
* Autoswap is a rewrite of Uniswap. Please see the documentation for
|
|
6
3
|
* more https://agoric.com/documentation/zoe/guide/contracts/autoswap.html
|
|
@@ -43,5 +40,4 @@
|
|
|
43
40
|
export function start(zcf: ZCF): Promise<{
|
|
44
41
|
publicFacet: AutoswapPublicFacet;
|
|
45
42
|
}>;
|
|
46
|
-
import type { ZCF } from '@agoric/zoe';
|
|
47
43
|
//# sourceMappingURL=autoswap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoswap.d.ts","sourceRoot":"","sources":["autoswap.js"],"names":[],"mappings":"AAeA
|
|
1
|
+
{"version":3,"file":"autoswap.d.ts","sourceRoot":"","sources":["autoswap.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,2BAFW,GAAG;;GAwVb"}
|
|
@@ -13,10 +13,6 @@ import {
|
|
|
13
13
|
calcSecondaryRequired,
|
|
14
14
|
} from '../contractSupport/index.js';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* @import {OfferHandler, ZCF} from '@agoric/zoe';
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
16
|
/**
|
|
21
17
|
* Autoswap is a rewrite of Uniswap. Please see the documentation for
|
|
22
18
|
* more https://agoric.com/documentation/zoe/guide/contracts/autoswap.html
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export function start(zcf: ZCF): {
|
|
16
16
|
publicFacet: {
|
|
17
|
-
makeInvitation: () => Promise<
|
|
17
|
+
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
18
18
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
19
|
-
makeInvitation: () => Promise<
|
|
19
|
+
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
20
20
|
}>;
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=barterExchange.d.ts.map
|
|
@@ -58,7 +58,7 @@ export function start(zcf: ZCF<{
|
|
|
58
58
|
expiration: bigint;
|
|
59
59
|
underlyingAmount: Amount;
|
|
60
60
|
}>): Promise<{
|
|
61
|
-
creatorInvitation: Promise<
|
|
61
|
+
creatorInvitation: Promise<Invitation<unknown, never>>;
|
|
62
62
|
}>;
|
|
63
63
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
64
64
|
//# sourceMappingURL=fundedCallSpread.d.ts.map
|
|
@@ -53,13 +53,13 @@ export function start(zcf: ZCF<{
|
|
|
53
53
|
}>): {
|
|
54
54
|
creatorFacet: {
|
|
55
55
|
makeInvitationPair: (longCollateralShare: any) => {
|
|
56
|
-
longInvitation: Promise<
|
|
57
|
-
shortInvitation: Promise<
|
|
56
|
+
longInvitation: Promise<Invitation<unknown, never>>;
|
|
57
|
+
shortInvitation: Promise<Invitation<unknown, never>>;
|
|
58
58
|
};
|
|
59
59
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
60
60
|
makeInvitationPair: (longCollateralShare: any) => {
|
|
61
|
-
longInvitation: Promise<
|
|
62
|
-
shortInvitation: Promise<
|
|
61
|
+
longInvitation: Promise<Invitation<unknown, never>>;
|
|
62
|
+
shortInvitation: Promise<Invitation<unknown, never>>;
|
|
63
63
|
};
|
|
64
64
|
}>;
|
|
65
65
|
};
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export function start(zcf: ZCF, _privateArgs: unknown, instanceBaggage: import("@agoric/vat-data").Baggage): Promise<{
|
|
17
17
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
18
|
-
makeInvitation(): Promise<
|
|
18
|
+
makeInvitation(): Promise<Invitation<unknown, never>>;
|
|
19
19
|
}>;
|
|
20
20
|
}>;
|
|
21
21
|
//# sourceMappingURL=coveredCall-durable.d.ts.map
|
|
@@ -62,7 +62,7 @@ export function start(zcf: ZCF<{
|
|
|
62
62
|
interestRate: Ratio;
|
|
63
63
|
interestPeriod: bigint;
|
|
64
64
|
}>): Promise<{
|
|
65
|
-
creatorInvitation: Promise<
|
|
65
|
+
creatorInvitation: Promise<Invitation<unknown, undefined>>;
|
|
66
66
|
}>;
|
|
67
67
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
68
68
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -39,7 +39,7 @@ type LenderSeatProperty = {
|
|
|
39
39
|
/**
|
|
40
40
|
* The ZCFSeat representing the lender's position in the contract.
|
|
41
41
|
*/
|
|
42
|
-
lenderSeat:
|
|
42
|
+
lenderSeat: ZCFSeat;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* The loan now has a lenderSeat, which is added to the config.
|
|
@@ -50,7 +50,7 @@ type BorrowerConfigProperties = {
|
|
|
50
50
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
51
51
|
* escrows it
|
|
52
52
|
*/
|
|
53
|
-
collateralSeat:
|
|
53
|
+
collateralSeat: ZCFSeat;
|
|
54
54
|
/**
|
|
55
55
|
* A function to get the current debt
|
|
56
56
|
*/
|
|
@@ -66,7 +66,7 @@ type BorrowerConfigPropertiesMinusDebt = {
|
|
|
66
66
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
67
67
|
* escrows it
|
|
68
68
|
*/
|
|
69
|
-
collateralSeat:
|
|
69
|
+
collateralSeat: ZCFSeat;
|
|
70
70
|
/**
|
|
71
71
|
* PromiseKit that includes a promise that resolves to a PriceQuote
|
|
72
72
|
* when liquidation is triggered
|
|
@@ -78,15 +78,15 @@ type BorrowerConfigPropertiesMinusDebt = {
|
|
|
78
78
|
*/
|
|
79
79
|
type LoanConfigWithBorrower = LoanConfigWithLender & BorrowerConfigProperties;
|
|
80
80
|
type LoanConfigWithBorrowerMinusDebt = LoanConfigWithLender & BorrowerConfigPropertiesMinusDebt;
|
|
81
|
-
type ScheduleLiquidation = (zcf:
|
|
82
|
-
type MakeLendInvitation = (zcf:
|
|
83
|
-
type MakeBorrowInvitation = (zcf:
|
|
84
|
-
type MakeCloseLoanInvitation = (zcf:
|
|
81
|
+
type ScheduleLiquidation = (zcf: ZCF, config: LoanConfigWithBorrower) => any;
|
|
82
|
+
type MakeLendInvitation = (zcf: ZCF, config: LoanTerms) => Promise<Invitation>;
|
|
83
|
+
type MakeBorrowInvitation = (zcf: ZCF, config: LoanConfigWithLender) => Promise<Invitation>;
|
|
84
|
+
type MakeCloseLoanInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Promise<Invitation>;
|
|
85
85
|
/**
|
|
86
86
|
* Allows holder to add collateral to the contract. Exits the seat
|
|
87
87
|
* after adding.
|
|
88
88
|
*/
|
|
89
|
-
type MakeAddCollateralInvitation = (zcf:
|
|
89
|
+
type MakeAddCollateralInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Promise<Invitation>;
|
|
90
90
|
type MakeDebtCalculator = (debtCalculatorConfig: DebtCalculatorConfig) => any;
|
|
91
91
|
type CalcInterestFn = (oldDebt: Amount<"nat">, interestRate: Ratio) => Amount<"nat">;
|
|
92
92
|
type DebtCalculatorConfig = {
|
|
@@ -108,7 +108,7 @@ type DebtCalculatorConfig = {
|
|
|
108
108
|
* the period at which the outstanding debt increases by the interestRate
|
|
109
109
|
*/
|
|
110
110
|
interestPeriod: import("@agoric/time").RelativeTime;
|
|
111
|
-
zcf:
|
|
111
|
+
zcf: ZCF;
|
|
112
112
|
configMinusGetDebt: LoanConfigWithBorrowerMinusDebt;
|
|
113
113
|
/**
|
|
114
114
|
* The starting point from which to calculate
|
|
@@ -117,7 +117,7 @@ type DebtCalculatorConfig = {
|
|
|
117
117
|
basetime: import("@agoric/time").Timestamp;
|
|
118
118
|
};
|
|
119
119
|
type ConfigMinusGetDebt = {
|
|
120
|
-
collateralSeat:
|
|
120
|
+
collateralSeat: ZCFSeat;
|
|
121
121
|
liquidationPromiseKit: PromiseRecord<any>;
|
|
122
122
|
mmr?: bigint | undefined;
|
|
123
123
|
autoswapInstance: Handle<"Instance">;
|
|
@@ -125,18 +125,18 @@ type ConfigMinusGetDebt = {
|
|
|
125
125
|
periodNotifier: PeriodNotifier;
|
|
126
126
|
interestRate: bigint;
|
|
127
127
|
interestPeriod: import("@agoric/time").RelativeTime;
|
|
128
|
-
lenderSeat:
|
|
128
|
+
lenderSeat: ZCFSeat;
|
|
129
129
|
};
|
|
130
130
|
type BorrowFacet = {
|
|
131
131
|
/**
|
|
132
132
|
* Make an invitation to close the loan by repaying the debt
|
|
133
133
|
* (including interest).
|
|
134
134
|
*/
|
|
135
|
-
makeCloseLoanInvitation: () => Promise<
|
|
135
|
+
makeCloseLoanInvitation: () => Promise<Invitation>;
|
|
136
136
|
/**
|
|
137
137
|
* Make an invitation to add collateral to protect against liquidation
|
|
138
138
|
*/
|
|
139
|
-
makeAddCollateralInvitation: () => Promise<
|
|
139
|
+
makeAddCollateralInvitation: () => Promise<Invitation>;
|
|
140
140
|
/**
|
|
141
141
|
* Get a promise for a priceQuote that will resolve if liquidation
|
|
142
142
|
* occurs. The priceQuote is for the value of the collateral that
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* @typedef LenderSeatProperty
|
|
46
|
-
* @property {
|
|
46
|
+
* @property {ZCFSeat} lenderSeat
|
|
47
47
|
*
|
|
48
48
|
* The ZCFSeat representing the lender's position in the contract.
|
|
49
49
|
*/
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
/**
|
|
58
58
|
* @typedef BorrowerConfigProperties
|
|
59
59
|
*
|
|
60
|
-
* @property {
|
|
60
|
+
* @property {ZCFSeat} collateralSeat
|
|
61
61
|
*
|
|
62
62
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
63
63
|
* escrows it
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
/**
|
|
76
76
|
* @typedef BorrowerConfigPropertiesMinusDebt
|
|
77
77
|
*
|
|
78
|
-
* @property {
|
|
78
|
+
* @property {ZCFSeat} collateralSeat
|
|
79
79
|
*
|
|
80
80
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
81
81
|
* escrows it
|
|
@@ -99,29 +99,29 @@
|
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* @callback ScheduleLiquidation
|
|
102
|
-
* @param {
|
|
102
|
+
* @param {ZCF} zcf
|
|
103
103
|
* @param {LoanConfigWithBorrower} config
|
|
104
104
|
*/
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* @callback MakeLendInvitation
|
|
108
|
-
* @param {
|
|
108
|
+
* @param {ZCF} zcf
|
|
109
109
|
* @param {LoanTerms} config
|
|
110
|
-
* @returns {Promise<
|
|
110
|
+
* @returns {Promise<Invitation>} lendInvitation
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* @callback MakeBorrowInvitation
|
|
115
|
-
* @param {
|
|
115
|
+
* @param {ZCF} zcf
|
|
116
116
|
* @param {LoanConfigWithLender} config
|
|
117
|
-
* @returns {Promise<
|
|
117
|
+
* @returns {Promise<Invitation>} borrowInvitation
|
|
118
118
|
*/
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @callback MakeCloseLoanInvitation
|
|
122
|
-
* @param {
|
|
122
|
+
* @param {ZCF} zcf
|
|
123
123
|
* @param {LoanConfigWithBorrower} config
|
|
124
|
-
* @returns {Promise<
|
|
124
|
+
* @returns {Promise<Invitation>} closeLoanInvitation
|
|
125
125
|
*/
|
|
126
126
|
|
|
127
127
|
/**
|
|
@@ -129,9 +129,9 @@
|
|
|
129
129
|
* after adding.
|
|
130
130
|
*
|
|
131
131
|
* @callback MakeAddCollateralInvitation
|
|
132
|
-
* @param {
|
|
132
|
+
* @param {ZCF} zcf
|
|
133
133
|
* @param {LoanConfigWithBorrower} config
|
|
134
|
-
* @returns {Promise<
|
|
134
|
+
* @returns {Promise<Invitation>} addCollateralInvitation
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
137
|
/**
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
*
|
|
167
167
|
* the period at which the outstanding debt increases by the interestRate
|
|
168
168
|
*
|
|
169
|
-
* @property {
|
|
169
|
+
* @property {ZCF} zcf
|
|
170
170
|
*
|
|
171
171
|
* @property {LoanConfigWithBorrowerMinusDebt} configMinusGetDebt
|
|
172
172
|
* @property {import('@agoric/time').Timestamp} basetime The starting point from which to calculate
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* @typedef {object} ConfigMinusGetDebt
|
|
178
|
-
* @property {
|
|
178
|
+
* @property {ZCFSeat} collateralSeat
|
|
179
179
|
* @property {PromiseRecord<any>} liquidationPromiseKit
|
|
180
180
|
* @property {bigint} [mmr]
|
|
181
181
|
* @property {Handle<'Instance'>} autoswapInstance
|
|
@@ -183,18 +183,18 @@
|
|
|
183
183
|
* @property {PeriodNotifier} periodNotifier
|
|
184
184
|
* @property {bigint} interestRate
|
|
185
185
|
* @property {import('@agoric/time').RelativeTime} interestPeriod
|
|
186
|
-
* @property {
|
|
186
|
+
* @property {ZCFSeat} lenderSeat
|
|
187
187
|
*/
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* @typedef {object} BorrowFacet
|
|
191
191
|
*
|
|
192
|
-
* @property {() => Promise<
|
|
192
|
+
* @property {() => Promise<Invitation>} makeCloseLoanInvitation
|
|
193
193
|
*
|
|
194
194
|
* Make an invitation to close the loan by repaying the debt
|
|
195
195
|
* (including interest).
|
|
196
196
|
*
|
|
197
|
-
* @property {() => Promise<
|
|
197
|
+
* @property {() => Promise<Invitation>} makeAddCollateralInvitation
|
|
198
198
|
*
|
|
199
199
|
* Make an invitation to add collateral to protect against liquidation
|
|
200
200
|
*
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export function start(zcf: ZCF): Promise<{
|
|
17
17
|
creatorFacet: {
|
|
18
|
-
makeInvitation: (value?: bigint) => Promise<
|
|
18
|
+
makeInvitation: (value?: bigint) => Promise<Invitation<string, undefined>>;
|
|
19
19
|
getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
20
20
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
|
-
makeInvitation: (value?: bigint) => Promise<
|
|
21
|
+
makeInvitation: (value?: bigint) => Promise<Invitation<string, undefined>>;
|
|
22
22
|
getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
23
23
|
}>;
|
|
24
24
|
publicFacet: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export type OracleContract = ContractOf<typeof start>;
|
|
2
2
|
export type OracleStart = typeof start;
|
|
3
3
|
/**
|
|
4
|
-
* @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
5
4
|
* @import {ContractOf} from '../zoeService/utils.js';
|
|
6
5
|
*/
|
|
7
6
|
/**
|
|
@@ -28,6 +27,4 @@ export function start(zcf: ZCF): Promise<{
|
|
|
28
27
|
}>;
|
|
29
28
|
}>;
|
|
30
29
|
import type { ContractOf } from '../zoeService/utils.js';
|
|
31
|
-
import type { ZCF } from '@agoric/zoe';
|
|
32
|
-
import type { Invitation } from '@agoric/zoe';
|
|
33
30
|
//# sourceMappingURL=oracle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["oracle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["oracle.js"],"names":[],"mappings":"6BA4Gc,WAAW,OAAO,KAAK,CAAC;0BACxB,OAAO,KAAK;AAtG1B;;GAEG;AAEH;;;;GAIG;AACH,2BAFW,GAAG;;;;;;;QAkDV,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;QAhBvB,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;GAwB1B;gCAhG4B,wBAAwB"}
|
package/src/contracts/oracle.js
CHANGED
|
@@ -105,7 +105,5 @@ export function start(zcf: ZCF<{
|
|
|
105
105
|
}>;
|
|
106
106
|
}>;
|
|
107
107
|
import type { ContractOf } from '../zoeService/utils.js';
|
|
108
|
-
import type { ZCF } from '@agoric/zoe';
|
|
109
108
|
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
110
|
-
import type { Invitation } from '@agoric/zoe';
|
|
111
109
|
//# sourceMappingURL=priceAggregator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAggregator.d.ts","sourceRoot":"","sources":["priceAggregator.js"],"names":[],"mappings":"6BAqCc,MAAM,GAAG,MAAM,GAAG,MAAM;oCAEzB,QAAQ,CAAC,cAAc,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;oBAGlD,cAAc,GAAG,KAAK;
|
|
1
|
+
{"version":3,"file":"priceAggregator.d.ts","sourceRoot":"","sources":["priceAggregator.js"],"names":[],"mappings":"6BAqCc,MAAM,GAAG,MAAM,GAAG,MAAM;oCAEzB,QAAQ,CAAC,cAAc,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;oBAGlD,cAAc,GAAG,KAAK;sCAklBtB,WAAW,OAAO,KAAK,CAAC;AA7kBtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,2BAbW,GAAG,CAAC;IACZ,KAAK,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC3B,CAAC,eACM;IACR,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAChD,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;CAC9B;;QA+WA;;;;;;;;;WASG;2CADQ,QAAQ,GAAG,MAAM;mBAaG,WAAW,CAAC,KAAK,CAAC;8BAAoB;gBAAC,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;aAAC;;;;;QA0CtI,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;sCAHQ,QAAQ,GAAG,MAAM,UACjB,WAAW,KACT,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;QA/ExC;;;;;;;;;WASG;2CADQ,QAAQ,GAAG,MAAM;mBAaG,WAAW,CAAC,KAAK,CAAC;8BAAoB;gBAAC,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;aAAC;;;;;QA0CtI,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;sCAHQ,QAAQ,GAAG,MAAM,UACjB,WAAW,KACT,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;;;;QAmHxC,sBAAsB;;;;;QAAtB,sBAAsB;;;GAOzB;gCAvlB4B,wBAAwB;sCACwB,4BAA4B"}
|
|
@@ -12,29 +12,29 @@ import { Fail, q } from '@endo/errors';
|
|
|
12
12
|
import { E } from '@endo/eventual-send';
|
|
13
13
|
import { Far } from '@endo/marshal';
|
|
14
14
|
|
|
15
|
+
import {
|
|
16
|
+
calculateMedian,
|
|
17
|
+
makeOnewayPriceAuthorityKit,
|
|
18
|
+
makePriceQuoteIssuer,
|
|
19
|
+
} from '../contractSupport/index.js';
|
|
15
20
|
import {
|
|
16
21
|
addRatios,
|
|
17
22
|
assertParsableNumber,
|
|
18
|
-
calculateMedian,
|
|
19
23
|
ceilDivideBy,
|
|
20
24
|
floorMultiplyBy,
|
|
21
|
-
makeOnewayPriceAuthorityKit,
|
|
22
|
-
makePriceQuoteIssuer,
|
|
23
25
|
makeRatio,
|
|
24
26
|
makeRatioFromAmounts,
|
|
25
27
|
multiplyRatios,
|
|
26
28
|
parseRatio,
|
|
27
29
|
ratioGTE,
|
|
28
30
|
ratiosSame,
|
|
29
|
-
} from '../contractSupport/
|
|
31
|
+
} from '../contractSupport/ratio.js';
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* @import {LegacyMap} from '@agoric/store'
|
|
33
35
|
* @import {ContractOf} from '../zoeService/utils.js';
|
|
34
36
|
* @import {PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
35
|
-
* @import {Invitation, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
36
37
|
*/
|
|
37
|
-
|
|
38
38
|
/** @typedef {bigint | number | string} ParsableNumber */
|
|
39
39
|
/**
|
|
40
40
|
* @typedef {Readonly<ParsableNumber | { data: ParsableNumber }>} OraclePriceSubmission
|
|
@@ -588,10 +588,8 @@ const start = async (zcf, privateArgs) => {
|
|
|
588
588
|
|
|
589
589
|
// Obtain the oracle's publicFacet.
|
|
590
590
|
assert(oracleInstance);
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
await E(zoe).getPublicFacet(oracleInstance)
|
|
594
|
-
);
|
|
591
|
+
/** @type {import('./oracle.js').OracleContract['publicFacet']} */
|
|
592
|
+
const oracle = await E(zoe).getPublicFacet(oracleInstance);
|
|
595
593
|
assert(records.has(record), 'Oracle record is already deleted');
|
|
596
594
|
|
|
597
595
|
/** @type {import('@agoric/time').Timestamp} */
|
|
@@ -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;;;;GA2D5C;;0BA5Ea,IAAI,CAAC,cAAc,CAAC;;;;aACpB,KAAK;;;;cACL,KAAK;;;;;;oCAP0E,4BAA4B"}
|
|
@@ -11,7 +11,6 @@ import { provideQuoteMint } from '../contractSupport/priceAuthorityQuoteMint.js'
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
14
|
-
* @import {ZCF} from '@agoric/zoe';
|
|
15
14
|
*/
|
|
16
15
|
|
|
17
16
|
/**
|
|
@@ -24,7 +24,7 @@ export function start(zcf: ZCF<{
|
|
|
24
24
|
pricePerItem: Amount<"nat">;
|
|
25
25
|
}>): {
|
|
26
26
|
creatorFacet: SellItemsCreatorFacet;
|
|
27
|
-
creatorInvitation: Promise<
|
|
27
|
+
creatorInvitation: Promise<Invitation<string, undefined>>;
|
|
28
28
|
publicFacet: SellItemsPublicFacet;
|
|
29
29
|
};
|
|
30
30
|
//# sourceMappingURL=sellItems.d.ts.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
3
|
-
*/
|
|
4
1
|
/**
|
|
5
2
|
* SimpleExchange is an exchange with a simple matching algorithm, which allows
|
|
6
3
|
* an unlimited number of parties to create new orders or accept existing
|
|
@@ -37,6 +34,4 @@ export function start(zcf: ZCF): {
|
|
|
37
34
|
}>;
|
|
38
35
|
}>;
|
|
39
36
|
};
|
|
40
|
-
import type { ZCF } from '@agoric/zoe';
|
|
41
|
-
import type { Invitation } from '@agoric/zoe';
|
|
42
37
|
//# sourceMappingURL=simpleExchange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleExchange.d.ts","sourceRoot":"","sources":["simpleExchange.js"],"names":[],"mappings":"AAUA
|
|
1
|
+
{"version":3,"file":"simpleExchange.d.ts","sourceRoot":"","sources":["simpleExchange.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BAFW,GAAG;;;;;;;;;;;;;;EA+Gb"}
|
|
@@ -8,10 +8,6 @@ import {
|
|
|
8
8
|
assertIssuerKeywords,
|
|
9
9
|
} from '../contractSupport/zoeHelpers.js';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
11
|
/**
|
|
16
12
|
* SimpleExchange is an exchange with a simple matching algorithm, which allows
|
|
17
13
|
* an unlimited number of parties to create new orders or accept existing
|
|
@@ -3,7 +3,7 @@ type SellItemsPublicFacet = {
|
|
|
3
3
|
getAvailableItems: () => Amount;
|
|
4
4
|
};
|
|
5
5
|
type SellItemsCreatorOnly = {
|
|
6
|
-
makeBuyerInvitation: () => Promise<
|
|
6
|
+
makeBuyerInvitation: () => Promise<Invitation>;
|
|
7
7
|
};
|
|
8
8
|
type SellItemsCreatorFacet = SellItemsPublicFacet & SellItemsCreatorOnly;
|
|
9
9
|
type SellItemsParameters = {
|
|
@@ -25,36 +25,36 @@ type MintAndSellNFTCreatorFacet = {
|
|
|
25
25
|
};
|
|
26
26
|
type AutomaticRefundPublicFacet = {
|
|
27
27
|
getOffersCount: () => bigint;
|
|
28
|
-
makeInvitation: () => Promise<
|
|
28
|
+
makeInvitation: () => Promise<Invitation>;
|
|
29
29
|
};
|
|
30
30
|
type AutoswapPublicFacet = {
|
|
31
31
|
/**
|
|
32
32
|
* synonym for
|
|
33
33
|
* makeSwapInInvitation
|
|
34
34
|
*/
|
|
35
|
-
makeSwapInvitation: () => Promise<
|
|
35
|
+
makeSwapInvitation: () => Promise<Invitation>;
|
|
36
36
|
/**
|
|
37
37
|
* make an invitation
|
|
38
38
|
* that allows one to do a swap in which the In amount is specified and the Out
|
|
39
39
|
* amount is calculated
|
|
40
40
|
*/
|
|
41
|
-
makeSwapInInvitation: () => Promise<
|
|
41
|
+
makeSwapInInvitation: () => Promise<Invitation>;
|
|
42
42
|
/**
|
|
43
43
|
* make an invitation
|
|
44
44
|
* that allows one to do a swap in which the Out amount is specified and the In
|
|
45
45
|
* amount is calculated
|
|
46
46
|
*/
|
|
47
|
-
makeSwapOutInvitation: () => Promise<
|
|
47
|
+
makeSwapOutInvitation: () => Promise<Invitation>;
|
|
48
48
|
/**
|
|
49
49
|
* make an
|
|
50
50
|
* invitation that allows one to add liquidity to the pool.
|
|
51
51
|
*/
|
|
52
|
-
makeAddLiquidityInvitation: () => Promise<
|
|
52
|
+
makeAddLiquidityInvitation: () => Promise<Invitation>;
|
|
53
53
|
/**
|
|
54
54
|
* make an
|
|
55
55
|
* invitation that allows one to remove liquidity from the pool.
|
|
56
56
|
*/
|
|
57
|
-
makeRemoveLiquidityInvitation: () => Promise<
|
|
57
|
+
makeRemoveLiquidityInvitation: () => Promise<Invitation>;
|
|
58
58
|
getLiquidityIssuer: () => Issuer;
|
|
59
59
|
/**
|
|
60
60
|
* get the current value of
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @property {() => Amount} getAvailableItems
|
|
5
5
|
*
|
|
6
6
|
* @typedef {object} SellItemsCreatorOnly
|
|
7
|
-
* @property {() => Promise<
|
|
7
|
+
* @property {() => Promise<Invitation>} makeBuyerInvitation
|
|
8
8
|
*
|
|
9
9
|
* @typedef {SellItemsPublicFacet & SellItemsCreatorOnly} SellItemsCreatorFacet
|
|
10
10
|
*/
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
/**
|
|
32
32
|
* @typedef {object} AutomaticRefundPublicFacet
|
|
33
33
|
* @property {() => bigint} getOffersCount
|
|
34
|
-
* @property {() => Promise<
|
|
34
|
+
* @property {() => Promise<Invitation>} makeInvitation
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* @typedef {object} AutoswapPublicFacet
|
|
39
|
-
* @property {() => Promise<
|
|
39
|
+
* @property {() => Promise<Invitation>} makeSwapInvitation synonym for
|
|
40
40
|
* makeSwapInInvitation
|
|
41
|
-
* @property {() => Promise<
|
|
41
|
+
* @property {() => Promise<Invitation>} makeSwapInInvitation make an invitation
|
|
42
42
|
* that allows one to do a swap in which the In amount is specified and the Out
|
|
43
43
|
* amount is calculated
|
|
44
|
-
* @property {() => Promise<
|
|
44
|
+
* @property {() => Promise<Invitation>} makeSwapOutInvitation make an invitation
|
|
45
45
|
* that allows one to do a swap in which the Out amount is specified and the In
|
|
46
46
|
* amount is calculated
|
|
47
|
-
* @property {() => Promise<
|
|
47
|
+
* @property {() => Promise<Invitation>} makeAddLiquidityInvitation make an
|
|
48
48
|
* invitation that allows one to add liquidity to the pool.
|
|
49
|
-
* @property {() => Promise<
|
|
49
|
+
* @property {() => Promise<Invitation>} makeRemoveLiquidityInvitation make an
|
|
50
50
|
* invitation that allows one to remove liquidity from the pool.
|
|
51
51
|
* @property {() => Issuer} getLiquidityIssuer
|
|
52
52
|
* @property {() => bigint} getLiquiditySupply get the current value of
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @import {ContractMeta, HandleOffer, ZCF} from '@agoric/zoe';
|
|
3
2
|
* @import { Baggage } from '@agoric/vat-data';
|
|
4
3
|
*/
|
|
5
4
|
/** @type {ContractMeta<typeof start>} */
|
|
@@ -8,13 +7,11 @@ export function start(zcf: ZCF<{}>, _privateArgs: undefined, baggage: Baggage):
|
|
|
8
7
|
publicFacet: import("@endo/exo").Guarded<{
|
|
9
8
|
getValue(): import("@agoric/vow").Vow<any>;
|
|
10
9
|
setValue(value: any): void;
|
|
11
|
-
makeGetterInvitation(): Promise<
|
|
12
|
-
makeSetterInvitation(): Promise<
|
|
10
|
+
makeGetterInvitation(): Promise<Invitation<import("@agoric/vow").Vow<any>, undefined>>;
|
|
11
|
+
makeSetterInvitation(): Promise<Invitation<void, {
|
|
13
12
|
value: unknown;
|
|
14
13
|
}>>;
|
|
15
14
|
}>;
|
|
16
15
|
};
|
|
17
|
-
import type { ContractMeta } from '@agoric/zoe';
|
|
18
|
-
import type { ZCF } from '@agoric/zoe';
|
|
19
16
|
import type { Baggage } from '@agoric/vat-data';
|
|
20
17
|
//# sourceMappingURL=valueVow.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valueVow.contract.d.ts","sourceRoot":"","sources":["valueVow.contract.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"valueVow.contract.d.ts","sourceRoot":"","sources":["valueVow.contract.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAGnC;AAYK,2BAJI,GAAG,CAAC,EAAE,CAAC,gBACP,SAAS,WACT,OAAO;;;;;;mBA8B4B,OAAO;;;EAWpD;6BAzD2B,kBAAkB"}
|