@agoric/inter-protocol 0.16.2-dev-89cb9d4.0.89cb9d4 → 0.16.2-dev-1c96426.0.1c96426
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/package.json +16 -16
- package/src/auction/auctionBook.d.ts +1 -0
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +1 -0
- package/src/auction/auctionMath.d.ts +1 -0
- package/src/auction/auctionMath.d.ts.map +1 -1
- package/src/auction/auctionMath.js +1 -0
- package/src/auction/auctioneer.d.ts +6 -5
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +1 -0
- package/src/auction/offerBook.d.ts +1 -0
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +1 -0
- package/src/auction/params.d.ts +5 -2
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +2 -1
- package/src/auction/scheduleMath.d.ts +1 -0
- package/src/auction/scheduleMath.d.ts.map +1 -1
- package/src/auction/scheduleMath.js +1 -0
- package/src/auction/scheduler.d.ts +3 -1
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/scheduler.js +8 -1
- package/src/auction/sortedOffers.d.ts +1 -0
- package/src/auction/sortedOffers.d.ts.map +1 -1
- package/src/auction/sortedOffers.js +4 -0
- package/src/auction/util.d.ts +2 -1
- package/src/auction/util.d.ts.map +1 -1
- package/src/auction/util.js +1 -0
- package/src/contractSupport.d.ts +1 -1
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +3 -3
- package/src/feeDistributor.d.ts +17 -17
- package/src/interest-math.d.ts +1 -0
- package/src/interest-math.d.ts.map +1 -1
- package/src/interest-math.js +1 -0
- package/src/interest.d.ts +6 -0
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +3 -0
- package/src/price/fluxAggregatorContract.d.ts +2 -2
- package/src/price/fluxAggregatorKit.d.ts +1 -1
- package/src/price/roundsManager.d.ts +1 -1
- package/src/proposals/replace-fee-distributor.js +1 -0
- package/src/proposals/startPSM.js +1 -0
- package/src/proposals/upgrade-vaults.js +2 -2
- package/src/proposals/utils.d.ts +2 -1
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/proposals/utils.js +4 -0
- package/src/provisionPool.d.ts +2 -2
- package/src/provisionPoolKit.d.ts +2 -2
- package/src/psm/psm.d.ts +4 -2
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +1 -0
- package/src/psm/types-ambient.d.ts +1 -1
- package/src/psm/types-ambient.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.d.ts +2 -2
- package/src/vaultFactory/liquidation.d.ts +2 -0
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +2 -0
- package/src/vaultFactory/math.d.ts +1 -0
- package/src/vaultFactory/math.d.ts.map +1 -1
- package/src/vaultFactory/math.js +4 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +12 -12
- package/src/vaultFactory/params.d.ts +6 -0
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +6 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +31 -29
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +2 -0
- package/src/vaultFactory/proceeds.d.ts +1 -0
- package/src/vaultFactory/proceeds.d.ts.map +1 -1
- package/src/vaultFactory/proceeds.js +4 -1
- package/src/vaultFactory/storeUtils.d.ts +7 -3
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/storeUtils.js +8 -2
- package/src/vaultFactory/types-ambient.d.ts +39 -46
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +23 -16
- package/src/vaultFactory/vault.d.ts +10 -4
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +8 -2
- package/src/vaultFactory/vaultDirector.d.ts +39 -33
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +6 -1
- package/src/vaultFactory/vaultFactory.d.ts +23 -22
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -0
- package/src/vaultFactory/vaultHolder.d.ts +10 -8
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +1 -0
- package/src/vaultFactory/vaultKit.d.ts +4 -3
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +1 -0
- package/src/vaultFactory/vaultManager.d.ts +46 -36
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +13 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.16.2-dev-
|
|
3
|
+
"version": "0.16.2-dev-1c96426.0.1c96426",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
35
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
36
|
-
"@agoric/governance": "0.10.4-dev-
|
|
37
|
-
"@agoric/internal": "0.3.3-dev-
|
|
38
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
39
|
-
"@agoric/store": "0.9.3-dev-
|
|
40
|
-
"@agoric/time": "0.3.3-dev-
|
|
41
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
42
|
-
"@agoric/vats": "0.15.2-dev-
|
|
43
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
44
|
-
"@agoric/zone": "0.2.3-dev-
|
|
34
|
+
"@agoric/base-zone": "0.1.1-dev-1c96426.0.1c96426",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-1c96426.0.1c96426",
|
|
36
|
+
"@agoric/governance": "0.10.4-dev-1c96426.0.1c96426",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-1c96426.0.1c96426",
|
|
38
|
+
"@agoric/notifier": "0.6.3-dev-1c96426.0.1c96426",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-1c96426.0.1c96426",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-1c96426.0.1c96426",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-1c96426.0.1c96426",
|
|
42
|
+
"@agoric/vats": "0.15.2-dev-1c96426.0.1c96426",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-1c96426.0.1c96426",
|
|
44
|
+
"@agoric/zone": "0.2.3-dev-1c96426.0.1c96426",
|
|
45
45
|
"@endo/captp": "^4.4.8",
|
|
46
46
|
"@endo/errors": "^1.2.13",
|
|
47
47
|
"@endo/eventual-send": "^1.3.4",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"jessie.js": "^0.3.4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
56
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
55
|
+
"@agoric/smart-wallet": "0.5.4-dev-1c96426.0.1c96426",
|
|
56
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-1c96426.0.1c96426",
|
|
57
|
+
"@agoric/swingset-vat": "0.32.3-dev-1c96426.0.1c96426",
|
|
58
58
|
"@endo/bundle-source": "^4.1.2",
|
|
59
59
|
"@endo/init": "^1.1.12",
|
|
60
60
|
"@endo/promise-kit": "^1.1.13",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"typeCoverage": {
|
|
86
86
|
"atLeast": 95.65
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "1c964266ed3fcaf6d44c7fed7262d448679273d0"
|
|
89
89
|
}
|
|
@@ -145,5 +145,6 @@ import type { Baggage } from '@agoric/vat-data';
|
|
|
145
145
|
import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
146
146
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
147
147
|
import type { Remote } from '@agoric/internal';
|
|
148
|
+
import type { Ratio } from '@agoric/ertp';
|
|
148
149
|
import type { EReturn } from '@endo/far';
|
|
149
150
|
//# sourceMappingURL=auctionBook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctionBook.d.ts","sourceRoot":"","sources":["auctionBook.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auctionBook.d.ts","sourceRoot":"","sources":["auctionBook.js"],"names":[],"mappings":"AAiFO,6CAHI,KAAK,CAAC,KAAK,CAAC,mBACZ,KAAK,CAAC,KAAK,CAAC,oCAiBtB;AAwBM,4CAJI,OAAO,OACP,GAAG,mBACH,eAAe,sJA8pBhB,UAAU;;QAriBZ;;;;;;WAMG;+BAFQ,MAAM,SACN,KAAK,GAAG,SAAS;QAW5B;;;;;;;WAOG;2BAHQ,MAAM,kBACN,MAAM,SACN,KAAK,GAAG,SAAS;QAW5B;;;;;;WAMG;qBAFQ,OAAO,oBACP,MAAM,CAAC,KAAK,CAAC;QA+DxB;;;;;;;;;;;WAWG;+BANQ,OAAO,SACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,+BAErB;YAAsB,SAAS,EAAvB,OAAO;YACQ,YAAY;SAAC;QAsCvC;;;;;;;;;;;WAWG;mCANQ,OAAO,cACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,+BAErB;YAAsB,SAAS,EAAvB,OAAO;YACQ,YAAY;SAAC;;;;;QAyHvC;;;;;;;;WAQG;+BAPQ,MAAM,CAAC,KAAK,CAAC,cACb,OAAO,iBACP,MAAM,CAAC,KAAK,CAAC;mCA2ED,KAAK,GAAK,IAAI;;;;;QAuGrC;;;;WAIG;4BAHQ,SAAS,QACT,OAAO,aACP,OAAO;;;;;;;;;;;;GAqFqB,CAAC,MAAM,CAAC,CAItD;wBAxtBY;IACR,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CACvB,GAAG;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,CACE;IACE,UAAU,EAAE,KAAK,CAAC;CACnB,GACD;IACE,eAAe,EAAE,KAAK,CAAC;CACxB,CACJ;;;;;gBAyBQ,KAAK,GAAG,IAAI;;;;;uBACZ,KAAK,GAAG,IAAI;;;;;uBAEZ,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI;;;;;2BAEpB,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI;;;;;oBAEpB,MAAM,CAAC,KAAK,CAAC,GAAG,SAAS;;;;;qBAEzB,MAAM,CAAC,KAAK,CAAC;;;;;yBAEb,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI;;0BA4qBpB,QAAQ,QAAQ,OAAO,kBAAkB,CAAC,CAAC;6BA5vB/B,kBAAkB;qCAGV,6CAA6C;oCAF9C,4BAA4B;4BACtB,kBAAkB;2BAEjC,cAAc;6BALZ,WAAW"}
|
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
* @import {PriceAuthority} from '@agoric/zoe/tools/types.js';
|
|
34
34
|
* @import {TypedPattern, Remote} from '@agoric/internal';
|
|
35
35
|
* @import {MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
36
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
36
37
|
*/
|
|
37
38
|
|
|
38
39
|
const { makeEmpty } = AmountMath;
|
|
@@ -14,4 +14,5 @@ export function amountsToSettle({ bidAlloc, collateralWanted, collateralAvailabl
|
|
|
14
14
|
collateralTarget: import("@agoric/ertp").NatAmount;
|
|
15
15
|
};
|
|
16
16
|
import type { Amount } from '@agoric/ertp/src/types.js';
|
|
17
|
+
import type { Ratio } from '@agoric/ertp/src/ratio.js';
|
|
17
18
|
//# sourceMappingURL=auctionMath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctionMath.d.ts","sourceRoot":"","sources":["auctionMath.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auctionMath.d.ts","sourceRoot":"","sources":["auctionMath.js"],"names":[],"mappings":"AAqBO,8HARJ;IAAyB,QAAQ,EAAzB,OAAO,KAAK,CAAC;IACI,gBAAgB,EAAjC,OAAO,KAAK,CAAC;IACI,mBAAmB,EAApC,OAAO,KAAK,CAAC;IACJ,eAAe,EAAxB,KAAK;IACmB,qBAAqB,EAA7C,OAAO,KAAK,CAAC,GAAG,IAAI;CAE5B,QAAQ,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI;;;;;;;;EA6DlC;4BAzEwB,2BAA2B;2BAC5B,2BAA2B"}
|
|
@@ -14,13 +14,13 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
|
14
14
|
}, baggage: Baggage): Promise<{
|
|
15
15
|
publicFacet: globalThis.GovernedPublicFacet<{
|
|
16
16
|
getElectorate: () => import("@agoric/ertp").SetAmount<import("@endo/patterns").Key>;
|
|
17
|
-
getStartFrequency: () => RelativeTime;
|
|
18
|
-
getClockStep: () => RelativeTime;
|
|
17
|
+
getStartFrequency: () => import("@agoric/time").RelativeTime;
|
|
18
|
+
getClockStep: () => import("@agoric/time").RelativeTime;
|
|
19
19
|
getStartingRate: () => bigint;
|
|
20
20
|
getLowestRate: () => bigint;
|
|
21
21
|
getDiscountStep: () => bigint;
|
|
22
|
-
getAuctionStartDelay: () => RelativeTime;
|
|
23
|
-
getPriceLockPeriod: () => RelativeTime;
|
|
22
|
+
getAuctionStartDelay: () => import("@agoric/time").RelativeTime;
|
|
23
|
+
getPriceLockPeriod: () => import("@agoric/time").RelativeTime;
|
|
24
24
|
/** @param {Brand<'nat'>} collateralBrand */
|
|
25
25
|
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<globalThis.Invitation<string, OfferSpec>>;
|
|
26
26
|
getSchedules(): {
|
|
@@ -46,7 +46,7 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
|
46
46
|
addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
|
|
47
47
|
/** @returns {Promise<FullSchedule>} */
|
|
48
48
|
getSchedule(): Promise<FullSchedule>;
|
|
49
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
49
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
50
50
|
/**
|
|
51
51
|
* @param {Issuer<'nat'>} issuer
|
|
52
52
|
* @param {Keyword} kwd
|
|
@@ -65,6 +65,7 @@ export type AuctioneerPublicFacet = AuctioneerContract["publicFacet"];
|
|
|
65
65
|
export type AuctioneerCreatorFacet = AuctioneerContract["creatorFacet"];
|
|
66
66
|
import { auctioneerParamTypes } from './params.js';
|
|
67
67
|
import type { TimerService } from '@agoric/time';
|
|
68
|
+
import type { AssetReservePublicFacet } from '../reserve/assetReserve.js';
|
|
68
69
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
69
70
|
import type { Remote } from '@agoric/internal';
|
|
70
71
|
import type { Baggage } from '@agoric/vat-data';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"AA2LO,yEAXI,MAAM,CAAC,KAAK,CAAC,YACb,MAAM,CAAC,KAAK,CAAC,YACb;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAAE,EAAE,kBAC/D,OAAO,kBACP,OAAO,qBAEP,MAAM,eAEN,OAAO,SACP,KAAK,6BAgNf;AAiBM,2BAdI,GAAG,CACT,eAAe,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAC7C,YAAY,EAAE,YAAY,CAAC;IAC3B,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,cAAc,EAAE,cAAc,CAAC;CAChC,CACF,eACO;IACN,sBAAsB,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;CAChC,WACO,OAAO;;;;;;;;;;QAyOZ,4CAA4C;2CAAhC,KAAK,CAAC,KAAK,CAAC;;;;;;;;;;;;;kBApCT,MAAM,CAAC,KAAK,CAAC;;;;QAkG5B;;;WAGG;yBAFQ,MAAM,CAAC,KAAK,CAAC,OACb,OAAO;QAyBlB,uCAAuC;uBAAzB,OAAO,CAAC,YAAY,CAAC;;QA3BnC;;;WAGG;yBAFQ,MAAM,CAAC,KAAK,CAAC,OACb,OAAO;QAyBlB,uCAAuC;uBAAzB,OAAO,CAAC,YAAY,CAAC;;GAQxC;AAED,6DAA6D;AAC7D,yEAAyE;AACzE,2EAA2E;AAE3E,8DAAkE;iCAJpD,WAAW,OAAO,KAAK,CAAC;oCACxB,kBAAkB,CAAC,aAAa,CAAC;qCACjC,kBAAkB,CAAC,cAAc,CAAC;qCArsBX,aAAa;kCAUnB,cAAc;6CAKH,4BAA4B;oCANuB,4BAA4B;4BAJlF,kBAAkB;6BAE/B,kBAAkB;+BAMhB,kBAAkB;0CADP,gBAAgB;kCAExB,gBAAgB;gCANlB,qCAAqC"}
|
|
@@ -46,6 +46,7 @@ import { AuctionState } from './util.js';
|
|
|
46
46
|
* @import {ScheduleNotification} from './scheduler.js';
|
|
47
47
|
* @import {OfferSpec} from './auctionBook.js';
|
|
48
48
|
* @import {FullSchedule} from './scheduler.js';
|
|
49
|
+
* @import {AssetReservePublicFacet} from '../reserve/assetReserve.js';
|
|
49
50
|
*/
|
|
50
51
|
|
|
51
52
|
const BASIS_POINTS = 10_000n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"AAuDO,8CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,cACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,gBACb,OAAO;IAsBlB,gCAAgC;4BAApB,KAAK;;;;;GAqCpB;AAcI,0CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,SACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,gBACb,OAAO;;;;;;GA0DrB;2BAnMU;IACR,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,MAAM,EAAE,QAAQ,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CACzB,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,GAAG,CAC1B;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GACzC;IAAE,UAAU,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAC1C;6BAvBoB,kBAAkB;6BACb,gBAAgB;2BACvB,cAAc"}
|
package/src/auction/offerBook.js
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
* @import {MapStore} from '@agoric/store';
|
|
17
17
|
* @import {Baggage} from '@agoric/vat-data';
|
|
18
18
|
* @import {Key, Pattern} from '@endo/patterns';
|
|
19
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
// multiple offers might be provided at the same time (since the time
|
package/src/auction/params.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* @import {Remote} from '@agoric/internal';
|
|
6
6
|
* @import {TimerBrand} from '@agoric/time';
|
|
7
7
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
8
|
-
* @import {TimerService} from '@agoric/time';
|
|
8
|
+
* @import {RelativeTime, TimerService} from '@agoric/time';
|
|
9
|
+
* @import {AssetReservePublicFacet} from '../reserve/assetReserve.js';
|
|
9
10
|
*/
|
|
10
11
|
export const InvitationShape: import("@endo/patterns").Matcher;
|
|
11
12
|
/**
|
|
@@ -93,7 +94,7 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
93
94
|
reservePublicFacet: globalThis.ERef<globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
94
95
|
makeAddCollateralInvitation(): Promise<globalThis.Invitation<string, never>>;
|
|
95
96
|
getPublicTopics(): {
|
|
96
|
-
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
|
|
97
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
97
98
|
};
|
|
98
99
|
}>>>;
|
|
99
100
|
timerService: globalThis.ERef<TimerService>;
|
|
@@ -149,5 +150,7 @@ import type { StoredPublisherKit } from '@agoric/notifier';
|
|
|
149
150
|
import type { Remote } from '@agoric/internal';
|
|
150
151
|
import type { TimerService } from '@agoric/time';
|
|
151
152
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
153
|
+
import type { AssetReservePublicFacet } from '../reserve/assetReserve.js';
|
|
154
|
+
import type { RelativeTime } from '@agoric/time';
|
|
152
155
|
import type { TimerBrand } from '@agoric/time';
|
|
153
156
|
//# sourceMappingURL=params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AAGH,+DAAyD;AAEzD;;;;;;GAMG;AACH,8BAA+B,gBAAgB,CAAC;AAChD,gDAAgD;AAChD,yBAA0B,WAAW,CAAC;AACtC,iFAAiF;AACjF,+BAAgC,cAAc,CAAC;AAC/C,4DAA4D;AAC5D,6BAA8B,YAAY,CAAC;AAC3C,4EAA4E;AAC5E,+BAAgC,cAAc,CAAC;AAC/C;;;GAGG;AACH,kCAAmC,mBAAmB,CAAC;AAIvD,gCAAiC,iBAAiB,CAAC;AAEnD,sEASG;;;;;;;;;;;AA2BI,yLADK,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxB;AAQM,yDAJI,mBAAmB,2BAA2B,CAAC,OAC/C,GAAG,WACH,aAAa;;;;;;;;;GA0BvB;AAcM,0FATI;IACN,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;CAChC,SACO,IAAI,CAAC,YAAY,CAAC,kBAClB,IAAI,CAAC,cAAc,CAAC,sBACpB,IAAI,CAAC,uBAAuB,CAAC,UAC7B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB;;gCA5Ga,MAAM,CAAC,KAAK,CAAC;oBACb,YAAY;eACZ,YAAY;kBACZ,MAAM;gBACN,MAAM;kBACN,MAAM;uBACN,YAAY;qBACZ,YAAY;gBACZ,UAAU;;iCA0EV,UAAU,CAAC,OAAO,oBAAoB,CAAC;kCA6BvC,UAAU,CAAC,OAAO,0BAA0B,CAAC;wCAzKtB,kBAAkB;4BAF9B,kBAAkB;kCAGE,cAAc;oCAJkC,4BAA4B;6CAK/E,4BAA4B;kCADzB,cAAc;gCAF9B,cAAc"}
|
package/src/auction/params.js
CHANGED
|
@@ -13,7 +13,8 @@ import { M } from '@agoric/store';
|
|
|
13
13
|
* @import {Remote} from '@agoric/internal';
|
|
14
14
|
* @import {TimerBrand} from '@agoric/time';
|
|
15
15
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
16
|
-
* @import {TimerService} from '@agoric/time';
|
|
16
|
+
* @import {RelativeTime, TimerService} from '@agoric/time';
|
|
17
|
+
* @import {AssetReservePublicFacet} from '../reserve/assetReserve.js';
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
// TODO duplicated with zoe/src/TypeGuards.js
|
|
@@ -4,4 +4,5 @@ export function timeVsSchedule(time: Timestamp, schedule: Schedule): "before" |
|
|
|
4
4
|
import type { AuctionParamManager } from './params.js';
|
|
5
5
|
import type { TimestampRecord } from '@agoric/time';
|
|
6
6
|
import type { Schedule } from './scheduler.js';
|
|
7
|
+
import type { Timestamp } from '@agoric/time';
|
|
7
8
|
//# sourceMappingURL=scheduleMath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduleMath.d.ts","sourceRoot":"","sources":["scheduleMath.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scheduleMath.d.ts","sourceRoot":"","sources":["scheduleMath.js"],"names":[],"mappings":"AA+CO,2CAJI,OAAO,CAAC,mBAAmB,CAAC,YAC5B,eAAe,GACb,QAAQ,CAqEpB;AAcM,qDALI,QAAQ,GAAG,IAAI,gBACf,QAAQ,GAAG,IAAI,OACf,SAAS,GACP,SAAS,GAAG,IAAI,CAuB5B;AAQM,qCAJI,SAAS,YACT,QAAQ,GACN,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAiBxD;yCAnKqC,aAAa;qCADjB,cAAc;8BAErB,gBAAgB;+BACf,cAAc"}
|
|
@@ -9,6 +9,7 @@ import { assertAllDefined, makeTracer } from '@agoric/internal';
|
|
|
9
9
|
* @import {TimestampRecord} from '@agoric/time';
|
|
10
10
|
* @import {AuctionParamManager} from './params.js';
|
|
11
11
|
* @import {Schedule} from './scheduler.js';
|
|
12
|
+
* @import {Timestamp} from '@agoric/time';
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
const { subtract, multiply, floorDivide } = natSafeMath;
|
|
@@ -4,7 +4,7 @@ export function makeScheduler(auctionDriver: AuctionDriver, timer: TimerService,
|
|
|
4
4
|
nextAuctionSchedule: Schedule | null;
|
|
5
5
|
};
|
|
6
6
|
getAuctionState: () => AuctionState;
|
|
7
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
7
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
8
8
|
getSchedule: () => {
|
|
9
9
|
liveAuctionSchedule: Schedule | null;
|
|
10
10
|
nextAuctionSchedule: Schedule | null;
|
|
@@ -51,5 +51,7 @@ import type { AuctionParamManager } from './params.js';
|
|
|
51
51
|
import type { TimerBrand } from '@agoric/time';
|
|
52
52
|
import type { Recorder } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
53
53
|
import { AuctionState } from './util.js';
|
|
54
|
+
import type { Timestamp } from '@agoric/time';
|
|
54
55
|
import type { TimestampRecord } from '@agoric/time';
|
|
56
|
+
import type { RelativeTime } from '@agoric/time';
|
|
55
57
|
//# sourceMappingURL=scheduler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["scheduler.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["scheduler.js"],"names":[],"mappings":"AAwFO,6CAPI,aAAa,SACb,YAAY,UACZ,OAAO,CAAC,mBAAmB,CAAC,cAC5B,UAAU,oBACV,SAAS,oBAAoB,CAAC,2BAC9B,kBAAkB,CAAC,2BAA2B,CAAC;;;;;;;;;;;;IA+RzD;;yBAhUa,MAAM,IAAI;cACV,MAAM,IAAI;gBACV,MAAM,IAAI;mBACV,MAAM,IAAI;;;;;;;qBAKV,SAAS,GAAG,IAAI;;;;mBAEhB,SAAS,GAAG,IAAI;;;;;4BAChB,SAAS,GAAG,IAAI;;;eAyThB,eAAe;aACf,eAAe;WACf,QAAQ;aACR,QAAQ;gBACR,YAAY;eACZ,YAAY;;;;yBAMZ,QAAQ,GAAG,IAAI;yBACf,QAAQ,GAAG,IAAI;;kCAtXE,cAAc;yCACP,aAAa;gCACtB,cAAc;8BAChB,6CAA6C;6BAXrB,WAAW;+BAalC,cAAc;qCADR,cAAc;kCAEjB,cAAc"}
|
package/src/auction/scheduler.js
CHANGED
|
@@ -18,6 +18,8 @@ import {
|
|
|
18
18
|
* @import {TimerBrand} from '@agoric/time';
|
|
19
19
|
* @import {Recorder} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
20
20
|
* @import {TimestampRecord} from '@agoric/time';
|
|
21
|
+
* @import {Timestamp} from '@agoric/time';
|
|
22
|
+
* @import {RelativeTime} from '@agoric/time';
|
|
21
23
|
*/
|
|
22
24
|
|
|
23
25
|
const trace = makeTracer('SCHED', true);
|
|
@@ -99,7 +101,12 @@ export const makeScheduler = async (
|
|
|
99
101
|
*/
|
|
100
102
|
let liveSchedule = null;
|
|
101
103
|
|
|
102
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* @returns {Promise<{
|
|
106
|
+
* now: Timestamp;
|
|
107
|
+
* nextSchedule: Schedule | null;
|
|
108
|
+
* }>}
|
|
109
|
+
*/
|
|
103
110
|
const initializeNextSchedule = async () => {
|
|
104
111
|
return E.when(
|
|
105
112
|
// XXX manualTimer returns a bigint, not a timeRecord.
|
|
@@ -5,4 +5,5 @@ export function fromPriceOfferKey(key: string, numBrand: Brand<"nat">, denomBran
|
|
|
5
5
|
export const toBidScalingComparator: (rate: Ratio) => string;
|
|
6
6
|
export function toScaledRateOfferKey(rate: Ratio, sequenceNumber: bigint): string;
|
|
7
7
|
export function fromScaledRateOfferKey(key: string, brand: Brand, useDecimals: number): [normalizedPrice: Ratio, sequenceNumber: bigint];
|
|
8
|
+
import type { Ratio } from '@agoric/ertp';
|
|
8
9
|
//# sourceMappingURL=sortedOffers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sortedOffers.d.ts","sourceRoot":"","sources":["sortedOffers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sortedOffers.d.ts","sourceRoot":"","sources":["sortedOffers.js"],"names":[],"mappings":"AAiCO,8CAFI,KAAK,UAMf;AAUM,4CALI,KAAK,kBACL,MAAM,GACJ,MAAM,CAWlB;AAqCM,uCANI,MAAM,YACN,KAAK,CAAC,KAAK,CAAC,cACZ,KAAK,CAAC,KAAK,CAAC,eACZ,MAAM,GACJ,CAAC,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,CAS5D;AAED,sCAAsC;AACtC,qCADW,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAKhC;AAUK,2CALI,KAAK,kBACL,MAAM,GACJ,MAAM,CAWlB;AAUM,4CALI,MAAM,SACN,KAAK,eACL,MAAM,GACJ,CAAC,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,CAQ5D;2BA/HuB,cAAc"}
|
|
@@ -10,6 +10,10 @@ import { RatioShape } from '@agoric/ertp';
|
|
|
10
10
|
|
|
11
11
|
import { decodeData, encodeData } from '../vaultFactory/storeUtils.js';
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
15
|
+
*/
|
|
16
|
+
|
|
13
17
|
/**
|
|
14
18
|
* @file we use a floating point representation of the price or rate as the
|
|
15
19
|
* first part of the key in the store. The second part is the sequence number
|
package/src/auction/util.d.ts
CHANGED
|
@@ -25,7 +25,8 @@ export function makeBrandedRatioPattern(numeratorAmountShape: {
|
|
|
25
25
|
export function isScaledBidPriceHigher(bidScaling: Ratio, currentPrice: Ratio, oraclePrice: Ratio): boolean;
|
|
26
26
|
/** @type {(quote: PriceQuote) => Ratio} */
|
|
27
27
|
export const priceFrom: (quote: PriceQuote) => Ratio;
|
|
28
|
-
export function makeCancelTokenMaker(name: any): () => RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>;
|
|
28
|
+
export function makeCancelTokenMaker(name: any): () => import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>;
|
|
29
29
|
import type { Pattern } from '@endo/patterns';
|
|
30
|
+
import type { Ratio } from '@agoric/ertp';
|
|
30
31
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
31
32
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":";;;2BAkBU,CAAC,OAAO,YAAY,EAAE,MAAM,OAAO,YAAY,CAAC;;;;;AAYnD,8DAHI;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,0BAChC;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE;;eADvB,KAAK;eAAS,OAAO;;;eACrB,KAAK;eAAS,OAAO;;EAUxC;AASM,mDANI,KAAK,gBACL,KAAK,eACL,KAAK,GACH,OAAO,CAI6C;AAEjE,2CAA2C;AAC3C,wBADW,CAAC,KAAK,EAAE,UAAU,KAAK,KAAK,CAKnC;AAEG,4KAIN;6BAnD8B,gBAAgB;2BAEvB,cAAc;gCADuD,4BAA4B"}
|
package/src/auction/util.js
CHANGED
|
@@ -10,6 +10,7 @@ import { Far } from '@endo/marshal';
|
|
|
10
10
|
/**
|
|
11
11
|
* @import {Key, Pattern} from '@endo/patterns';
|
|
12
12
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
13
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
/**
|
package/src/contractSupport.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export function makeNatAmountShape(brand: Brand, min?: NatValue): {
|
|
|
15
15
|
brand: globalThis.Brand;
|
|
16
16
|
value: import("@endo/patterns").Matcher;
|
|
17
17
|
};
|
|
18
|
-
export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): import("@agoric/ertp/src/ratio").Ratio;
|
|
18
|
+
export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): import("@agoric/ertp/src/ratio.js").Ratio;
|
|
19
19
|
export type MetricsPublisherKit<T> = {
|
|
20
20
|
metricsPublication: IterationObserver<T>;
|
|
21
21
|
metricsSubscription: StoredSubscription<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA4BO,4BANe,CAAC,SAAT,MAAO,QACV,CAAC,QACD,CAAC,QACD,CAAC,GACC,CAAC,CAGyC;AAQhD,gCALe,CAAC,SAAT,MAAO,QACV,CAAC,SACD,CAAC,GACC,CAAC,CAK2C;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAUM,0CAPI,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,UACb,MAAM,CAAC,KAAK,CAAC,QAcvB;AAoBM,0CAHI,KAAK,QACL,QAAQ;;;EAGmC;AAG/C,0CADK,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA4BO,4BANe,CAAC,SAAT,MAAO,QACV,CAAC,QACD,CAAC,QACD,CAAC,GACC,CAAC,CAGyC;AAQhD,gCALe,CAAC,SAAT,MAAO,QACV,CAAC,SACD,CAAC,GACC,CAAC,CAK2C;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAUM,0CAPI,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,UACb,MAAM,CAAC,KAAK,CAAC,QAcvB;AAoBM,0CAHI,KAAK,QACL,QAAQ;;;EAGmC;AAG/C,0CADK,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,6CAEO;gCAtBtD,CAAC;wBAEA,iBAAiB,CAAC,CAAC,CAAC;yBACpB,kBAAkB,CAAC,CAAC,CAAC;;8BAItB,CAAC;sBAEA,SAAS,CAAC,CAAC,CAAC;uBACZ,gBAAgB,CAAC,CAAC,CAAC;;sCAvF6D,4BAA4B"}
|
|
@@ -24,9 +24,9 @@ export function start(zcf: ZCF<{
|
|
|
24
24
|
addInstance: (governedInstance: Instance<unknown>, governorFacet: GovernorCreatorFacet<any>, label?: string) => void;
|
|
25
25
|
makeCharterMemberInvitation: () => Promise<globalThis.Invitation<{
|
|
26
26
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
27
|
-
VoteOnParamChange: () => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
|
|
28
|
-
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
|
|
29
|
-
VoteOnApiCall: (instance: Instance<unknown>, methodName: string, methodArgs: string[], deadline: TimestampValue) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
|
|
27
|
+
VoteOnParamChange: () => Promise<globalThis.Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
|
|
28
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<globalThis.Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
29
|
+
VoteOnApiCall: (instance: Instance<unknown>, methodName: string, methodArgs: string[], deadline: TimestampValue) => Promise<globalThis.Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
30
30
|
}>;
|
|
31
31
|
}, undefined>>;
|
|
32
32
|
}>;
|
package/src/feeDistributor.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const meta: ContractMeta<typeof start>;
|
|
3
3
|
export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
|
|
4
4
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
5
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
5
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
6
6
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
7
7
|
}>;
|
|
8
8
|
export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: RelativeTime): void;
|
|
@@ -22,7 +22,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
22
22
|
creatorFacet: {
|
|
23
23
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
24
24
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
25
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
25
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
26
26
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
27
27
|
}>;
|
|
28
28
|
/**
|
|
@@ -37,7 +37,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
37
37
|
*/
|
|
38
38
|
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
39
39
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
40
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
40
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
41
41
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
42
42
|
}>;
|
|
43
43
|
/**
|
|
@@ -51,17 +51,17 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
51
51
|
*/
|
|
52
52
|
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
|
|
53
53
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
54
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
54
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
55
55
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
56
56
|
}>;
|
|
57
57
|
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
58
58
|
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
59
59
|
/** @param {Record<Keyword, bigint>} newShares */
|
|
60
60
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
61
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
61
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
62
62
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
63
63
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
64
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
64
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
65
65
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
66
66
|
}>;
|
|
67
67
|
/**
|
|
@@ -76,7 +76,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
76
76
|
*/
|
|
77
77
|
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
78
78
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
79
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
79
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
80
80
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
81
81
|
}>;
|
|
82
82
|
/**
|
|
@@ -90,7 +90,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
90
90
|
*/
|
|
91
91
|
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
|
|
92
92
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
93
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
93
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
94
94
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
95
95
|
}>;
|
|
96
96
|
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
@@ -101,7 +101,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
101
101
|
publicFacet: {
|
|
102
102
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
103
103
|
getKeywordShares: () => Record<string, bigint>;
|
|
104
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
104
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
105
105
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
106
106
|
getKeywordShares: () => Record<string, bigint>;
|
|
107
107
|
}>;
|
|
@@ -110,7 +110,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
110
110
|
creatorFacet: {
|
|
111
111
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
112
112
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
113
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
113
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
114
114
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
115
115
|
}>;
|
|
116
116
|
/**
|
|
@@ -125,7 +125,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
125
125
|
*/
|
|
126
126
|
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
127
127
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
128
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
128
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
129
129
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
130
130
|
}>;
|
|
131
131
|
/**
|
|
@@ -139,17 +139,17 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
139
139
|
*/
|
|
140
140
|
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
|
|
141
141
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
142
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
142
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
143
143
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
144
144
|
}>;
|
|
145
145
|
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
146
146
|
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
147
147
|
/** @param {Record<Keyword, bigint>} newShares */
|
|
148
148
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
149
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
149
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
150
150
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
151
151
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
152
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
152
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
153
153
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
154
154
|
}>;
|
|
155
155
|
/**
|
|
@@ -164,7 +164,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
164
164
|
*/
|
|
165
165
|
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
166
166
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
167
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
167
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
168
168
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
@@ -178,7 +178,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
178
178
|
*/
|
|
179
179
|
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
|
|
180
180
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
181
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
181
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
182
182
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
183
183
|
}>;
|
|
184
184
|
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
@@ -189,7 +189,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
189
189
|
publicFacet: {
|
|
190
190
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
191
191
|
getKeywordShares: () => Record<string, bigint>;
|
|
192
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
192
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
193
193
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
194
194
|
getKeywordShares: () => Record<string, bigint>;
|
|
195
195
|
}>;
|
package/src/interest-math.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export function calculateCurrentDebt(debtSnapshot: Amount<"nat">, interestSnapshot: Ratio, currentCompoundedInterest: Ratio): Amount<"nat">;
|
|
2
2
|
export function reverseInterest(debt: Amount<"nat">, interestApplied: Ratio): Amount<"nat">;
|
|
3
3
|
import type { Amount } from '@agoric/ertp';
|
|
4
|
+
import type { Ratio } from '@agoric/ertp/src/ratio.js';
|
|
4
5
|
//# sourceMappingURL=interest-math.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interest-math.d.ts","sourceRoot":"","sources":["interest-math.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interest-math.d.ts","sourceRoot":"","sources":["interest-math.js"],"names":[],"mappings":"AAqCO,mDALI,OAAO,KAAK,CAAC,oBACb,KAAK,6BACL,KAAK,GACH,OAAO,KAAK,CAAC,CAiBzB;AAOM,sCAJI,OAAO,KAAK,CAAC,mBACb,KAAK,GACH,OAAO,KAAK,CAAC,CAIzB;4BAlDwC,cAAc;2BAC/B,2BAA2B"}
|
package/src/interest-math.js
CHANGED
package/src/interest.d.ts
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* @import {Timestamp} from '@agoric/time'
|
|
3
3
|
* @import {RelativeTime} from '@agoric/time'
|
|
4
4
|
* @import {AdminFacet, InvitationAmount, ZCFMint} from '@agoric/zoe';
|
|
5
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
6
|
+
* @import {Calculate, CalculatorKit} from './vaultFactory/types-ambient.js';
|
|
7
|
+
* @import {MintAndTransfer} from './vaultFactory/types-ambient.js';
|
|
5
8
|
*/
|
|
6
9
|
export const SECONDS_PER_YEAR: bigint;
|
|
7
10
|
export function makeInterestCalculator(annualRate: Ratio, chargingPeriod: RelativeTime, recordingPeriod: RelativeTime): CalculatorKit;
|
|
@@ -24,7 +27,10 @@ export function chargeInterest(powers: {
|
|
|
24
27
|
latestInterestUpdate: Timestamp;
|
|
25
28
|
totalDebt: Amount<"nat">;
|
|
26
29
|
};
|
|
30
|
+
import type { Ratio } from '@agoric/ertp';
|
|
27
31
|
import type { RelativeTime } from '@agoric/time';
|
|
32
|
+
import type { CalculatorKit } from './vaultFactory/types-ambient.js';
|
|
28
33
|
import type { ZCFMint } from '@agoric/zoe';
|
|
34
|
+
import type { MintAndTransfer } from './vaultFactory/types-ambient.js';
|
|
29
35
|
import type { Timestamp } from '@agoric/time';
|
|
30
36
|
//# sourceMappingURL=interest.d.ts.map
|
package/src/interest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interest.d.ts","sourceRoot":"","sources":["interest.js"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"interest.d.ts","sourceRoot":"","sources":["interest.js"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AAEH,sCAAuD;AAchD,mDALI,KAAK,kBACL,YAAY,mBACZ,YAAY,GACV,aAAa,CA+EzB;AASM,qEAJI,KAAK,aACL,QAAQ,WACR,QAAQ,6CAalB;AAyCM,uCAvBI;IACN,IAAI,EAAE,QAAQ,KAAK,CAAC,CAAC;IACrB,sBAAsB,EAAE,eAAe,CAAC;IACxC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAChC,UACO;IACN,YAAY,EAAE,KAAK,CAAC;IACpB,cAAc,EAAE,YAAY,CAAC;IAC7B,eAAe,EAAE,YAAY,CAAC;CAC/B,SACO;IACN,oBAAoB,EAAE,SAAS,CAAC;IAChC,kBAAkB,EAAE,KAAK,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1B,gBACO,SAAS,GACP;IACR,kBAAkB,EAAE,KAAK,CAAC;IAC1B,oBAAoB,EAAE,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1B,CA8DH;2BAzNuB,cAAc;kCAFP,cAAc;mCAGF,iCAAiC;6BAFpB,aAAa;qCAGnC,iCAAiC;+BALvC,cAAc"}
|
package/src/interest.js
CHANGED
|
@@ -10,6 +10,9 @@ import { TimeMath } from '@agoric/time';
|
|
|
10
10
|
* @import {Timestamp} from '@agoric/time'
|
|
11
11
|
* @import {RelativeTime} from '@agoric/time'
|
|
12
12
|
* @import {AdminFacet, InvitationAmount, ZCFMint} from '@agoric/zoe';
|
|
13
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
14
|
+
* @import {Calculate, CalculatorKit} from './vaultFactory/types-ambient.js';
|
|
15
|
+
* @import {MintAndTransfer} from './vaultFactory/types-ambient.js';
|
|
13
16
|
*/
|
|
14
17
|
|
|
15
18
|
export const SECONDS_PER_YEAR = 60n * 60n * 24n * 365n;
|