@agoric/zoe 0.26.3-dev-52bc8ec.0 → 0.26.3-dev-fb2e7f5.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 +181 -181
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +11 -11
- package/src/contracts/loan/liquidate.d.ts +1 -12
- package/src/contracts/loan/liquidate.d.ts.map +1 -1
- package/src/contracts/loan/liquidate.js +3 -1
- package/src/contracts/loan/scheduleLiquidation.d.ts.map +1 -1
- package/src/contracts/loan/scheduleLiquidation.js +1 -0
- package/src/contracts/loan/types.d.ts +0 -1
- package/src/contracts/loan/types.d.ts.map +1 -1
- package/src/contracts/loan/types.js +0 -7
- package/src/contracts/mintPayments.d.ts +14 -6
- package/src/contracts/mintPayments.d.ts.map +1 -1
- package/src/contracts/mintPayments.js +1 -1
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-fb2e7f5.0+fb2e7f5",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/assert": "0.6.1-dev-
|
|
47
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
48
|
-
"@agoric/internal": "0.3.3-dev-
|
|
49
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
52
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
53
|
-
"@agoric/time": "0.3.3-dev-
|
|
54
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
46
|
+
"@agoric/assert": "0.6.1-dev-fb2e7f5.0+fb2e7f5",
|
|
47
|
+
"@agoric/ertp": "0.16.3-dev-fb2e7f5.0+fb2e7f5",
|
|
48
|
+
"@agoric/internal": "0.3.3-dev-fb2e7f5.0+fb2e7f5",
|
|
49
|
+
"@agoric/notifier": "0.6.3-dev-fb2e7f5.0+fb2e7f5",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-fb2e7f5.0+fb2e7f5",
|
|
51
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-fb2e7f5.0+fb2e7f5",
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-fb2e7f5.0+fb2e7f5",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-fb2e7f5.0+fb2e7f5",
|
|
54
|
+
"@agoric/vat-data": "0.5.3-dev-fb2e7f5.0+fb2e7f5",
|
|
55
55
|
"@endo/bundle-source": "^2.5.2",
|
|
56
56
|
"@endo/captp": "^3.1.2",
|
|
57
57
|
"@endo/eventual-send": "^0.17.3",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"publishConfig": {
|
|
134
134
|
"access": "public"
|
|
135
135
|
},
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "fb2e7f5dec80c6bf17a16483fb3b956fced41029"
|
|
137
137
|
}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
export function doLiquidation(zcf: any, collateralSeat: any, autoswapPublicFacetP: any, lenderSeat: any, loanBrand: any): Promise<void>;
|
|
2
|
-
|
|
3
|
-
* This function is triggered by the priceAuthority when the value of the
|
|
4
|
-
* collateral is below the mmr. The function performs the
|
|
5
|
-
* liquidation and then shuts down the contract. Note that if a
|
|
6
|
-
* liquidation occurs, the borrower gets nothing and they can take no
|
|
7
|
-
* further action.
|
|
8
|
-
*
|
|
9
|
-
* For simplicity, we will sell all collateral.
|
|
10
|
-
*
|
|
11
|
-
* @type {Liquidate}
|
|
12
|
-
*/
|
|
13
|
-
export const liquidate: Liquidate;
|
|
2
|
+
export function liquidate(zcf: ZCF, config: LoanConfigWithBorrower): Promise<void>;
|
|
14
3
|
//# sourceMappingURL=liquidate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liquidate.d.ts","sourceRoot":"","sources":["liquidate.js"],"names":[],"mappings":"AAKO,wIA6CN;
|
|
1
|
+
{"version":3,"file":"liquidate.d.ts","sourceRoot":"","sources":["liquidate.js"],"names":[],"mappings":"AAKO,wIA6CN;AAeM,+BAJI,GAAG,UACH,sBAAsB,GACpB,QAAQ,IAAI,CAAC,CAiBzB"}
|
|
@@ -59,7 +59,9 @@ export const doLiquidation = async (
|
|
|
59
59
|
*
|
|
60
60
|
* For simplicity, we will sell all collateral.
|
|
61
61
|
*
|
|
62
|
-
* @
|
|
62
|
+
* @param {ZCF} zcf
|
|
63
|
+
* @param {LoanConfigWithBorrower} config
|
|
64
|
+
* @returns {Promise<void>}
|
|
63
65
|
*/
|
|
64
66
|
export const liquidate = async (zcf, config) => {
|
|
65
67
|
const { collateralSeat, autoswapInstance, lenderSeat, loanBrand } = config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduleLiquidation.d.ts","sourceRoot":"","sources":["scheduleLiquidation.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scheduleLiquidation.d.ts","sourceRoot":"","sources":["scheduleLiquidation.js"],"names":[],"mappings":"AAWA,kCAAkC;AAClC,kCADW,mBAAmB,CAsD5B"}
|
|
@@ -87,7 +87,6 @@ type MakeCloseLoanInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Pro
|
|
|
87
87
|
* after adding.
|
|
88
88
|
*/
|
|
89
89
|
type MakeAddCollateralInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Promise<Invitation>;
|
|
90
|
-
type Liquidate = (zcf: ZCF, config: LoanConfigWithBorrower) => void;
|
|
91
90
|
type MakeDebtCalculator = (debtCalculatorConfig: DebtCalculatorConfig) => any;
|
|
92
91
|
type CalcInterestFn = (oldDebt: Amount<'nat'>, interestRate: Ratio) => Amount<'nat'>;
|
|
93
92
|
type DebtCalculatorConfig = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;;sBACa,SAAS,OAAO,wBAAwB,EAAE,eAAe,CAAC;;;;;;;wBAU1D,QAAQ;;;;;;SAUP,KAAK;sBAGL,gBAAgB;;;;;oBAEhB,cAAc;oBAKd,cAAc;;;;;kBAEd,KAAK;oBAIL,OAAO,wBAAwB,EAAE,YAAY;eAE7C,KAAK;qBACL,KAAK;;;;;;gBAKL,OAAO;;;;;4BAMR,SAAS,GAAG,kBAAkB;;;;;;oBAQ7B,OAAO;;;;aAKP,MAAM,OAAO,KAAK,CAAC;;;;;2BAInB,cAAc,UAAU,CAAC;;;;;;;oBASzB,OAAO;;;;;2BAKP,cAAc,UAAU,CAAC;;;;;8BAO1B,oBAAoB,GAAG,wBAAwB;uCAM/C,oBAAoB,GAAG,iCAAiC;iCAM1D,GAAG,UACH,sBAAsB;gCAKtB,GAAG,UACH,SAAS,KACP,QAAQ,UAAU,CAAC;kCAKrB,GAAG,UACH,oBAAoB,KAClB,QAAQ,UAAU,CAAC;qCAKrB,GAAG,UACH,sBAAsB,KACpB,QAAQ,UAAU,CAAC;;;;;yCAQrB,GAAG,UACH,sBAAsB,KACpB,QAAQ,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;;sBACa,SAAS,OAAO,wBAAwB,EAAE,eAAe,CAAC;;;;;;;wBAU1D,QAAQ;;;;;;SAUP,KAAK;sBAGL,gBAAgB;;;;;oBAEhB,cAAc;oBAKd,cAAc;;;;;kBAEd,KAAK;oBAIL,OAAO,wBAAwB,EAAE,YAAY;eAE7C,KAAK;qBACL,K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|
|
|
137
|
-
/**
|
|
138
|
-
* @callback Liquidate
|
|
139
|
-
* @param {ZCF} zcf
|
|
140
|
-
* @param {LoanConfigWithBorrower} config
|
|
141
|
-
* @returns {void}
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
137
|
/**
|
|
145
138
|
* @callback MakeDebtCalculator
|
|
146
139
|
* @param {DebtCalculatorConfig} debtCalculatorConfig
|
|
@@ -11,12 +11,20 @@
|
|
|
11
11
|
* invitations for them, which when used to make an offer, will payout
|
|
12
12
|
* the specified amount of tokens.
|
|
13
13
|
*
|
|
14
|
-
* @
|
|
14
|
+
* @param {ZCF} zcf
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
export function start(zcf: ZCF): Promise<{
|
|
17
|
+
creatorFacet: {
|
|
18
|
+
makeInvitation: (value?: bigint) => Promise<Invitation<R, A>>;
|
|
19
|
+
getTokenIssuer: () => Issuer<"nat">;
|
|
20
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
|
+
makeInvitation: (value?: bigint) => Promise<Invitation<R, A>>;
|
|
22
|
+
getTokenIssuer: () => Issuer<"nat">;
|
|
23
|
+
}>;
|
|
24
|
+
publicFacet: {
|
|
25
|
+
getTokenIssuer: () => Issuer<"nat">;
|
|
26
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
27
|
+
getTokenIssuer: () => Issuer<"nat">;
|
|
28
|
+
}>;
|
|
21
29
|
}>;
|
|
22
30
|
//# sourceMappingURL=mintPayments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintPayments.d.ts","sourceRoot":"","sources":["mintPayments.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,
|
|
1
|
+
{"version":3,"file":"mintPayments.d.ts","sourceRoot":"","sources":["mintPayments.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,2BAFW,GAAG;;;;;;;;;;;;;GAyCb"}
|
|
@@ -14,7 +14,7 @@ import { AmountMath } from '@agoric/ertp';
|
|
|
14
14
|
* invitations for them, which when used to make an offer, will payout
|
|
15
15
|
* the specified amount of tokens.
|
|
16
16
|
*
|
|
17
|
-
* @
|
|
17
|
+
* @param {ZCF} zcf
|
|
18
18
|
*/
|
|
19
19
|
const start = async zcf => {
|
|
20
20
|
// Create the internal token mint for a fungible digital asset. Note
|