@agoric/inter-protocol 0.16.2-dev-82cced2.0 → 0.16.2-dev-354c092.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/package.json +16 -16
- package/src/auction/auctioneer.d.ts +5 -5
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +1 -1
- package/src/auction/params.d.ts +11 -11
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +2 -2
- package/src/auction/scheduleMath.js +1 -1
- package/src/auction/scheduler.d.ts +4 -4
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/scheduler.js +4 -4
- package/src/feeDistributor.d.ts +3 -3
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +2 -2
- package/src/interest.d.ts +4 -4
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +2 -2
- package/src/price/fluxAggregatorContract.d.ts +2 -2
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +1 -1
- package/src/price/fluxAggregatorKit.d.ts +158 -6
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +5 -5
- package/src/price/roundsManager.d.ts +6 -6
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +2 -2
- package/src/proposals/addAssetToVault.js +1 -1
- package/src/proposals/econ-behaviors.d.ts +10 -10
- package/src/provisionPool.d.ts +4 -4
- package/src/provisionPoolKit.d.ts +4 -4
- package/src/psm/psm.d.ts +4 -4
- package/src/vaultFactory/liquidation.d.ts +4 -4
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +5 -5
- package/src/vaultFactory/params.d.ts +6 -6
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +1 -1
- package/src/vaultFactory/types.d.ts +4 -4
- package/src/vaultFactory/types.d.ts.map +1 -1
- package/src/vaultFactory/types.js +4 -4
- package/src/vaultFactory/vaultDirector.d.ts +23 -23
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +6 -6
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -1
- package/src/vaultFactory/vaultManager.d.ts +1 -1
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +1 -1
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-354c092.0+354c092",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/assert": "0.6.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-
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-354c092.0+354c092",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-354c092.0+354c092",
|
|
36
|
+
"@agoric/governance": "0.10.4-dev-354c092.0+354c092",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-354c092.0+354c092",
|
|
38
|
+
"@agoric/notifier": "0.6.3-dev-354c092.0+354c092",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-354c092.0+354c092",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-354c092.0+354c092",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-354c092.0+354c092",
|
|
42
|
+
"@agoric/vats": "0.15.2-dev-354c092.0+354c092",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-354c092.0+354c092",
|
|
44
44
|
"@endo/captp": "^3.1.4",
|
|
45
45
|
"@endo/eventual-send": "^0.17.5",
|
|
46
46
|
"@endo/far": "^0.2.21",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"jessie.js": "^0.3.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
54
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
55
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
53
|
+
"@agoric/smart-wallet": "0.5.4-dev-354c092.0+354c092",
|
|
54
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-354c092.0+354c092",
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-354c092.0+354c092",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-354c092.0+354c092",
|
|
57
57
|
"@endo/bundle-source": "^2.7.0",
|
|
58
58
|
"@endo/init": "^0.5.59",
|
|
59
59
|
"@endo/promise-kit": "^0.2.59",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"typeCoverage": {
|
|
86
86
|
"atLeast": 93.45
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "354c09254ac91e9dc97ca97f6bef291b2cafabb6"
|
|
89
89
|
}
|
|
@@ -13,7 +13,7 @@ export function start(zcf: ZCF<GovernanceTerms<{
|
|
|
13
13
|
AuctionStartDelay: "relativeTime";
|
|
14
14
|
PriceLockPeriod: "relativeTime";
|
|
15
15
|
}> & {
|
|
16
|
-
timerService: import('@agoric/time
|
|
16
|
+
timerService: import('@agoric/time').TimerService;
|
|
17
17
|
reservePublicFacet: AssetReservePublicFacet;
|
|
18
18
|
priceAuthority: PriceAuthority;
|
|
19
19
|
}>, privateArgs: {
|
|
@@ -23,13 +23,13 @@ export function start(zcf: ZCF<GovernanceTerms<{
|
|
|
23
23
|
}, baggage: Baggage): Promise<{
|
|
24
24
|
publicFacet: GovernedPublicFacet<{
|
|
25
25
|
getElectorate: () => Amount<"set">;
|
|
26
|
-
getStartFrequency: () => import("@agoric/time
|
|
27
|
-
getClockStep: () => import("@agoric/time
|
|
26
|
+
getStartFrequency: () => import("@agoric/time").RelativeTime;
|
|
27
|
+
getClockStep: () => import("@agoric/time").RelativeTime;
|
|
28
28
|
getStartingRate: () => bigint;
|
|
29
29
|
getLowestRate: () => bigint;
|
|
30
30
|
getDiscountStep: () => bigint;
|
|
31
|
-
getAuctionStartDelay: () => import("@agoric/time
|
|
32
|
-
getPriceLockPeriod: () => import("@agoric/time
|
|
31
|
+
getAuctionStartDelay: () => import("@agoric/time").RelativeTime;
|
|
32
|
+
getPriceLockPeriod: () => import("@agoric/time").RelativeTime;
|
|
33
33
|
/** @param {Brand<'nat'>} collateralBrand */
|
|
34
34
|
makeBidInvitation(collateralBrand: Brand<'nat'>): Promise<Invitation<R, A>>;
|
|
35
35
|
getSchedules(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"AA8KO,yEAXI,OAAO,KAAK,CAAC,YACb,OAAO,KAAK,CAAC,YACb;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,KAAK,CAAC,CAAC;IAAC,IAAI,EAAE,OAAO,KAAK,CAAC,CAAA;CAAE,EAAE,kBAC/D,OAAO,kBACP,OAAO,qBAEP,MAAM,eAEN,OAAO,SACP,KAAK,kBAgNf;AAiBM;;;;;;;;;;kBAZc,OAAO,
|
|
1
|
+
{"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"AA8KO,yEAXI,OAAO,KAAK,CAAC,YACb,OAAO,KAAK,CAAC,YACb;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,KAAK,CAAC,CAAC;IAAC,IAAI,EAAE,OAAO,KAAK,CAAC,CAAA;CAAE,EAAE,kBAC/D,OAAO,kBACP,OAAO,qBAEP,MAAM,eAEN,OAAO,SACP,KAAK,kBAgNf;AAiBM;;;;;;;;;;kBAZc,OAAO,cAAc,EAAE,YAAY;wBAC7B,uBAAuB;oBAC3B,cAAc;iBAG1B;IACV,sBAA0B,EAAE,UAAU,CAAC;IACvC,WAAe,EAAE,WAAW,CAAC;IAC7B,UAAc,EAAE,UAAU,CAAC;CACxB,WACO,OAAO;;;;;;;;;;QAyOZ,4CAA4C;2CAAhC,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;QA+DxB;;;WAGG;yBAFQ,MAAM,OACN,OAAO;QAwBlB,gEAAgE;uBAAlD,QAAQ,OAAO,gBAAgB,EAAE,YAAY,CAAC;;QA1B5D;;;WAGG;yBAFQ,MAAM,OACN,OAAO;QAwBlB,gEAAgE;uBAAlD,QAAQ,OAAO,gBAAgB,EAAE,YAAY,CAAC;;GAQjE;AAED,6DAA6D;AAC7D,yEAAyE;AACzE,2EAA2E;AAE3E,iCAAkE;sBAtrBpD,OAAO,kBAAkB,EAAE,OAAO;iCAkrBlC,WAAW,YAAY,CAAC;oCACxB,kBAAkB,CAAC,aAAa,CAAC;qCACjC,kBAAkB,CAAC,cAAc,CAAC;qCAxrBX,aAAa"}
|
|
@@ -383,7 +383,7 @@ export const distributeProportionalSharesWithLimits = (
|
|
|
383
383
|
/**
|
|
384
384
|
* @param {ZCF<
|
|
385
385
|
* GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
386
|
-
* timerService: import('@agoric/time
|
|
386
|
+
* timerService: import('@agoric/time').TimerService;
|
|
387
387
|
* reservePublicFacet: AssetReservePublicFacet;
|
|
388
388
|
* priceAuthority: PriceAuthority;
|
|
389
389
|
* }
|
package/src/auction/params.d.ts
CHANGED
|
@@ -41,19 +41,19 @@ export function makeAuctioneerParams({ ElectorateInvitationAmount, StartFrequenc
|
|
|
41
41
|
};
|
|
42
42
|
StartFrequency: {
|
|
43
43
|
type: "relativeTime";
|
|
44
|
-
value: import("@agoric/time
|
|
44
|
+
value: import("@agoric/time").RelativeTimeRecord;
|
|
45
45
|
};
|
|
46
46
|
ClockStep: {
|
|
47
47
|
type: "relativeTime";
|
|
48
|
-
value: import("@agoric/time
|
|
48
|
+
value: import("@agoric/time").RelativeTimeRecord;
|
|
49
49
|
};
|
|
50
50
|
AuctionStartDelay: {
|
|
51
51
|
type: "relativeTime";
|
|
52
|
-
value: import("@agoric/time
|
|
52
|
+
value: import("@agoric/time").RelativeTimeRecord;
|
|
53
53
|
};
|
|
54
54
|
PriceLockPeriod: {
|
|
55
55
|
type: "relativeTime";
|
|
56
|
-
value: import("@agoric/time
|
|
56
|
+
value: import("@agoric/time").RelativeTimeRecord;
|
|
57
57
|
};
|
|
58
58
|
StartingRate: {
|
|
59
59
|
type: "nat";
|
|
@@ -81,7 +81,7 @@ export function makeAuctioneerParamManager(publisherKit: import('@agoric/notifie
|
|
|
81
81
|
export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _marshaller }: {
|
|
82
82
|
storageNode: ERef<StorageNode>;
|
|
83
83
|
marshaller: ERef<Marshaller>;
|
|
84
|
-
}, timer: ERef<
|
|
84
|
+
}, timer: ERef<import('@agoric/time').TimerService>, priceAuthority: ERef<PriceAuthority>, reservePublicFacet: ERef<AssetReservePublicFacet>, params: AuctionParams): {
|
|
85
85
|
priceAuthority: ERef<PriceAuthority>;
|
|
86
86
|
reservePublicFacet: ERef<GovernedPublicFacet<{
|
|
87
87
|
makeAddCollateralInvitation(): Promise<Invitation<R, A>>;
|
|
@@ -89,7 +89,7 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
89
89
|
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
|
|
90
90
|
};
|
|
91
91
|
}>>;
|
|
92
|
-
timerService: ERef<
|
|
92
|
+
timerService: ERef<import("@agoric/time").TimerService>;
|
|
93
93
|
governedParams: {
|
|
94
94
|
Electorate: {
|
|
95
95
|
type: "invitation";
|
|
@@ -97,19 +97,19 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
97
97
|
};
|
|
98
98
|
StartFrequency: {
|
|
99
99
|
type: "relativeTime";
|
|
100
|
-
value: import("@agoric/time
|
|
100
|
+
value: import("@agoric/time").RelativeTimeRecord;
|
|
101
101
|
};
|
|
102
102
|
ClockStep: {
|
|
103
103
|
type: "relativeTime";
|
|
104
|
-
value: import("@agoric/time
|
|
104
|
+
value: import("@agoric/time").RelativeTimeRecord;
|
|
105
105
|
};
|
|
106
106
|
AuctionStartDelay: {
|
|
107
107
|
type: "relativeTime";
|
|
108
|
-
value: import("@agoric/time
|
|
108
|
+
value: import("@agoric/time").RelativeTimeRecord;
|
|
109
109
|
};
|
|
110
110
|
PriceLockPeriod: {
|
|
111
111
|
type: "relativeTime";
|
|
112
|
-
value: import("@agoric/time
|
|
112
|
+
value: import("@agoric/time").RelativeTimeRecord;
|
|
113
113
|
};
|
|
114
114
|
StartingRate: {
|
|
115
115
|
type: "nat";
|
|
@@ -136,7 +136,7 @@ export type AuctionParams = {
|
|
|
136
136
|
DiscountStep: bigint;
|
|
137
137
|
AuctionStartDelay: RelativeTime;
|
|
138
138
|
PriceLockPeriod: RelativeTime;
|
|
139
|
-
TimerBrand: import('@agoric/time
|
|
139
|
+
TimerBrand: import('@agoric/time').TimerBrand;
|
|
140
140
|
};
|
|
141
141
|
export type AuctionParamManager = ReturnType<typeof makeAuctioneerParamManager>;
|
|
142
142
|
//# sourceMappingURL=params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAQA,wHAAwH;AACxH,sHAAsH;AAGtH,kCAAyD;AAEzD;;;;;;GAMG;AACH,+CAAgD;AAChD,gDAAgD;AAChD,qCAAsC;AACtC,iFAAiF;AACjF,8CAA+C;AAC/C,4DAA4D;AAC5D,0CAA2C;AAC3C,4EAA4E;AAC5E,8CAA+C;AAC/C;;;GAGG;AACH,sDAAuD;AAIvD,kDAAmD;AAEnD,yCASG;;;;;;;;;;;AA2BI,yLADK,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxB;AAQM,yDAJI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,OAC1E,GAAG,WACH,aAAa;;;;;;;;;GA0BvB;AAUM,0FANI;IAAE,WAAW,EAAE,KAAK,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,KAAK,UAAU,CAAC,CAAA;CAAE,SAChE,KAAK,
|
|
1
|
+
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAQA,wHAAwH;AACxH,sHAAsH;AAGtH,kCAAyD;AAEzD;;;;;;GAMG;AACH,+CAAgD;AAChD,gDAAgD;AAChD,qCAAsC;AACtC,iFAAiF;AACjF,8CAA+C;AAC/C,4DAA4D;AAC5D,0CAA2C;AAC3C,4EAA4E;AAC5E,8CAA+C;AAC/C;;;GAGG;AACH,sDAAuD;AAIvD,kDAAmD;AAEnD,yCASG;;;;;;;;;;;AA2BI,yLADK,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxB;AAQM,yDAJI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,OAC1E,GAAG,WACH,aAAa;;;;;;;;;GA0BvB;AAUM,0FANI;IAAE,WAAW,EAAE,KAAK,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,KAAK,UAAU,CAAC,CAAA;CAAE,SAChE,KAAK,OAAO,cAAc,EAAE,YAAY,CAAC,kBACzC,KAAK,cAAc,CAAC,sBACpB,KAAK,uBAAuB,CAAC,UAC7B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB;6BAhKa,OAAO,gEAAgE,EAAE,cAAc;4BACvF,OAAO,gEAAgE,EAAE,aAAa;;gCAuDtF,OAAO,KAAK,CAAC;oBACb,YAAY;eACZ,YAAY;kBACZ,MAAM;gBACN,MAAM;kBACN,MAAM;uBACN,YAAY;qBACZ,YAAY;gBACZ,OAAO,cAAc,EAAE,UAAU;;kCAmGjC,WAAW,iCAAiC,CAAC"}
|
package/src/auction/params.js
CHANGED
|
@@ -70,7 +70,7 @@ export const auctioneerParamTypes = harden({
|
|
|
70
70
|
* @property {bigint} DiscountStep
|
|
71
71
|
* @property {RelativeTime} AuctionStartDelay
|
|
72
72
|
* @property {RelativeTime} PriceLockPeriod
|
|
73
|
-
* @property {import('@agoric/time
|
|
73
|
+
* @property {import('@agoric/time').TimerBrand} TimerBrand
|
|
74
74
|
*/
|
|
75
75
|
|
|
76
76
|
/** @param {AuctionParams} initial */
|
|
@@ -147,7 +147,7 @@ harden(makeAuctioneerParamManager);
|
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* @param {{ storageNode: ERef<StorageNode>; marshaller: ERef<Marshaller> }} caps
|
|
150
|
-
* @param {ERef<
|
|
150
|
+
* @param {ERef<import('@agoric/time').TimerService>} timer
|
|
151
151
|
* @param {ERef<PriceAuthority>} priceAuthority
|
|
152
152
|
* @param {ERef<AssetReservePublicFacet>} reservePublicFacet
|
|
153
153
|
* @param {AuctionParams} params
|
|
@@ -83,7 +83,7 @@ export const computeRoundTiming = (params, baseTime) => {
|
|
|
83
83
|
// computed start is `startDelay + baseTime + freq - (baseTime mod freq)`.
|
|
84
84
|
// That is, if there are hourly starts, we add an hour to the time, and
|
|
85
85
|
// subtract baseTime mod freq. Then we add the delay.
|
|
86
|
-
/** @type {import('@agoric/time
|
|
86
|
+
/** @type {import('@agoric/time').TimestampRecord} */
|
|
87
87
|
const startTime = TimeMath.addAbsRel(
|
|
88
88
|
TimeMath.addAbsRel(
|
|
89
89
|
baseTime,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeScheduler(auctionDriver: AuctionDriver, timer: import('@agoric/time
|
|
1
|
+
export function makeScheduler(auctionDriver: AuctionDriver, timer: import('@agoric/time').TimerService, params: Awaited<import('./params.js').AuctionParamManager>, timerBrand: import('@agoric/time').TimerBrand, scheduleRecorder: import('@agoric/zoe/src/contractSupport/recorder.js').Recorder<ScheduleNotification>, paramUpdateSubscription: StoredSubscription<GovernanceSubscriptionState>): Promise<{
|
|
2
2
|
getSchedule: () => {
|
|
3
3
|
liveAuctionSchedule: Schedule | null;
|
|
4
4
|
nextAuctionSchedule: Schedule | null;
|
|
@@ -34,13 +34,13 @@ export type ScheduleNotification = {
|
|
|
34
34
|
nextDescendingStepTime: Timestamp | null;
|
|
35
35
|
};
|
|
36
36
|
export type Schedule = {
|
|
37
|
-
startTime: import('@agoric/time
|
|
38
|
-
endTime: import('@agoric/time
|
|
37
|
+
startTime: import('@agoric/time').TimestampRecord;
|
|
38
|
+
endTime: import('@agoric/time').TimestampRecord;
|
|
39
39
|
steps: NatValue;
|
|
40
40
|
endRate: NatValue;
|
|
41
41
|
startDelay: RelativeTime;
|
|
42
42
|
clockStep: RelativeTime;
|
|
43
|
-
lockTime?: import("@agoric/time
|
|
43
|
+
lockTime?: import("@agoric/time").Timestamp | undefined;
|
|
44
44
|
};
|
|
45
45
|
export type FullSchedule = {
|
|
46
46
|
nextAuctionSchedule: Schedule | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["scheduler.js"],"names":[],"mappings":"AA+EO,6CAPI,aAAa,SACb,OAAO,
|
|
1
|
+
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["scheduler.js"],"names":[],"mappings":"AA+EO,6CAPI,aAAa,SACb,OAAO,cAAc,EAAE,YAAY,UACnC,QAAQ,OAAO,aAAa,EAAE,mBAAmB,CAAC,cAClD,OAAO,cAAc,EAAE,UAAU,oBACjC,OAAO,6CAA6C,EAAE,QAAQ,CAAC,oBAAoB,CAAC,2BACpF,mBAAmB,2BAA2B,CAAC;;;;;;;;;;;;IA2RzD;;yBA5Ta,MAAM,IAAI;cACV,MAAM,IAAI;gBACV,MAAM,IAAI;mBACV,MAAM,IAAI;;;;;;;qBAKV,SAAS,GAAG,IAAI;;;;mBAEhB,SAAS,GAAG,IAAI;;;;;4BAChB,SAAS,GAAG,IAAI;;;eAqThB,OAAO,cAAc,EAAE,eAAe;aACtC,OAAO,cAAc,EAAE,eAAe;WACtC,QAAQ;aACR,QAAQ;gBACR,YAAY;eACZ,YAAY;;;;yBAMZ,QAAQ,GAAG,IAAI;yBACf,QAAQ,GAAG,IAAI"}
|
package/src/auction/scheduler.js
CHANGED
|
@@ -71,9 +71,9 @@ const nominalStartTime = nextSchedule =>
|
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @param {AuctionDriver} auctionDriver
|
|
74
|
-
* @param {import('@agoric/time
|
|
74
|
+
* @param {import('@agoric/time').TimerService} timer
|
|
75
75
|
* @param {Awaited<import('./params.js').AuctionParamManager>} params
|
|
76
|
-
* @param {import('@agoric/time
|
|
76
|
+
* @param {import('@agoric/time').TimerBrand} timerBrand
|
|
77
77
|
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').Recorder<ScheduleNotification>} scheduleRecorder
|
|
78
78
|
* @param {StoredSubscription<GovernanceSubscriptionState>} paramUpdateSubscription
|
|
79
79
|
*/
|
|
@@ -362,8 +362,8 @@ export const makeScheduler = async (
|
|
|
362
362
|
|
|
363
363
|
/**
|
|
364
364
|
* @typedef {object} Schedule
|
|
365
|
-
* @property {import('@agoric/time
|
|
366
|
-
* @property {import('@agoric/time
|
|
365
|
+
* @property {import('@agoric/time').TimestampRecord} startTime
|
|
366
|
+
* @property {import('@agoric/time').TimestampRecord} endTime
|
|
367
367
|
* @property {NatValue} steps
|
|
368
368
|
* @property {NatValue} endRate
|
|
369
369
|
* @property {RelativeTime} startDelay
|
package/src/feeDistributor.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ER
|
|
|
5
5
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
6
6
|
collectFees: () => Promise<Payment<any>>;
|
|
7
7
|
}>;
|
|
8
|
-
export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: import("@agoric/time
|
|
8
|
+
export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: import("@agoric/time").RelativeTime | undefined): void;
|
|
9
9
|
export function makeShareConfig(destinations?: Record<string, ERef<FeeDestination>> | undefined, keywordShares?: Record<string, bigint> | undefined): {
|
|
10
10
|
shares: {
|
|
11
11
|
share: bigint;
|
|
@@ -190,8 +190,8 @@ export function start(zcf: ZCF<[feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
190
190
|
getKeywordShares: () => Record<string, bigint>;
|
|
191
191
|
}>;
|
|
192
192
|
}>;
|
|
193
|
-
export type RelativeTime = import('@agoric/time
|
|
194
|
-
export type TimerService = import('@agoric/time
|
|
193
|
+
export type RelativeTime = import('@agoric/time').RelativeTime;
|
|
194
|
+
export type TimerService = import('@agoric/time').TimerService;
|
|
195
195
|
export type FeeCollector = {
|
|
196
196
|
collectFees: () => ERef<Payment<'nat'>>;
|
|
197
197
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"AAWA,2BAA2B;AAC3B,mBADW,YAAY,CAOrB;AAiCK,8CAHI,KAAK,UAAU,CAAC,gBAChB,KAAK,wBAAwB,CAAC;;;;GAWxC;AAeM,oDAPI,MAAM,QAAQ,OAAO,CAAC,gBAEtB,KAAK,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"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"}
|
package/src/feeDistributor.js
CHANGED
|
@@ -20,9 +20,9 @@ export const meta = {
|
|
|
20
20
|
harden(meta);
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @typedef {import('@agoric/time
|
|
23
|
+
* @typedef {import('@agoric/time').RelativeTime} RelativeTime
|
|
24
24
|
*
|
|
25
|
-
* @typedef {import('@agoric/time
|
|
25
|
+
* @typedef {import('@agoric/time').TimerService} TimerService
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/**
|
package/src/interest.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import('@agoric/time
|
|
2
|
+
* @typedef {import('@agoric/time').Timestamp} Timestamp
|
|
3
3
|
*
|
|
4
|
-
* @typedef {import('@agoric/time
|
|
4
|
+
* @typedef {import('@agoric/time').RelativeTime} RelativeTime
|
|
5
5
|
*/
|
|
6
6
|
export const SECONDS_PER_YEAR: bigint;
|
|
7
7
|
export function makeInterestCalculator(annualRate: Ratio, chargingPeriod: RelativeTime, recordingPeriod: RelativeTime): CalculatorKit;
|
|
@@ -24,6 +24,6 @@ export function chargeInterest(powers: {
|
|
|
24
24
|
latestInterestUpdate: Timestamp;
|
|
25
25
|
totalDebt: Amount<'nat'>;
|
|
26
26
|
};
|
|
27
|
-
export type Timestamp = import('@agoric/time
|
|
28
|
-
export type RelativeTime = import('@agoric/time
|
|
27
|
+
export type Timestamp = import('@agoric/time').Timestamp;
|
|
28
|
+
export type RelativeTime = import('@agoric/time').RelativeTime;
|
|
29
29
|
//# 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":"AAYA;;;;GAIG;AAEH,sCAAuD;AAchD,mDALI,KAAK,kBACL,YAAY,mBACZ,YAAY,GACV,aAAa,CA+EzB;AASM,qEAJI,KAAK,aACL,QAAQ,WACR,QAAQ,SAalB;AAyCM,uCAvBI;IACV,IAAQ,EAAE,QAAQ,KAAK,CAAC,CAAC;IACzB,sBAA0B,EAAE,eAAe,CAAC;IAC5C,iBAAqB,EAAE,OAAO,CAAC;IAC/B,qBAAyB,EAAE,OAAO,CAAC;CAChC,UACO;IACV,YAAgB,EAAE,KAAK,CAAC;IACxB,cAAkB,EAAE,YAAY,CAAC;IACjC,eAAmB,EAAE,YAAY,CAAC;CAC/B;0BAEuB,SAAS;wBACX,KAAK;eACd,OAAO,KAAK,CAAC;iBAElB,SAAS;wBAEK,KAAK;0BACH,SAAS;eACpB,OAAO,KAAK,CAAC;EA+D5B;wBAzNY,OAAO,
|
|
1
|
+
{"version":3,"file":"interest.d.ts","sourceRoot":"","sources":["interest.js"],"names":[],"mappings":"AAYA;;;;GAIG;AAEH,sCAAuD;AAchD,mDALI,KAAK,kBACL,YAAY,mBACZ,YAAY,GACV,aAAa,CA+EzB;AASM,qEAJI,KAAK,aACL,QAAQ,WACR,QAAQ,SAalB;AAyCM,uCAvBI;IACV,IAAQ,EAAE,QAAQ,KAAK,CAAC,CAAC;IACzB,sBAA0B,EAAE,eAAe,CAAC;IAC5C,iBAAqB,EAAE,OAAO,CAAC;IAC/B,qBAAyB,EAAE,OAAO,CAAC;CAChC,UACO;IACV,YAAgB,EAAE,KAAK,CAAC;IACxB,cAAkB,EAAE,YAAY,CAAC;IACjC,eAAmB,EAAE,YAAY,CAAC;CAC/B;0BAEuB,SAAS;wBACX,KAAK;eACd,OAAO,KAAK,CAAC;iBAElB,SAAS;wBAEK,KAAK;0BACH,SAAS;eACpB,OAAO,KAAK,CAAC;EA+D5B;wBAzNY,OAAO,cAAc,EAAE,SAAS;2BAEhC,OAAO,cAAc,EAAE,YAAY"}
|
package/src/interest.js
CHANGED
|
@@ -11,9 +11,9 @@ import { Fail } from '@agoric/assert';
|
|
|
11
11
|
import { TimeMath } from '@agoric/time';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* @typedef {import('@agoric/time
|
|
14
|
+
* @typedef {import('@agoric/time').Timestamp} Timestamp
|
|
15
15
|
*
|
|
16
|
-
* @typedef {import('@agoric/time
|
|
16
|
+
* @typedef {import('@agoric/time').RelativeTime} RelativeTime
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export const SECONDS_PER_YEAR = 60n * 60n * 24n * 365n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @typedef {import('@agoric/vat-data').Baggage} Baggage
|
|
3
3
|
*
|
|
4
|
-
* @typedef {import('@agoric/time
|
|
4
|
+
* @typedef {import('@agoric/time').TimerService} TimerService
|
|
5
5
|
*/
|
|
6
6
|
/** @type {ContractMeta} */
|
|
7
7
|
export const meta: ContractMeta;
|
|
@@ -108,5 +108,5 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
111
|
-
export type TimerService = import('@agoric/time
|
|
111
|
+
export type TimerService = import('@agoric/time').TimerService;
|
|
112
112
|
//# sourceMappingURL=fluxAggregatorContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;;GAIG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK;WAhBO,YAAY;aACV,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;iBACT,MAAM;;;;;;;;;;4BAMG,UAAU;gBACtB,KAAK,UAAU,CAAC;yBACP,KAAK,OAAO,cAAc,EAAE,SAAS,CAAC;iBAC9C,WAAW;YAElB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmIjB;sBAnLY,OAAO,kBAAkB,EAAE,OAAO;2BAElC,OAAO,
|
|
1
|
+
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;;GAIG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK;WAhBO,YAAY;aACV,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;iBACT,MAAM;;;;;;;;;;4BAMG,UAAU;gBACtB,KAAK,UAAU,CAAC;yBACP,KAAK,OAAO,cAAc,EAAE,SAAS,CAAC;iBAC9C,WAAW;YAElB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmIjB;sBAnLY,OAAO,kBAAkB,EAAE,OAAO;2BAElC,OAAO,cAAc,EAAE,YAAY"}
|
|
@@ -15,7 +15,7 @@ const trace = makeTracer('FluxAgg', false);
|
|
|
15
15
|
/**
|
|
16
16
|
* @typedef {import('@agoric/vat-data').Baggage} Baggage
|
|
17
17
|
*
|
|
18
|
-
* @typedef {import('@agoric/time
|
|
18
|
+
* @typedef {import('@agoric/time').TimerService} TimerService
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/** @type {ContractMeta} */
|
|
@@ -22,6 +22,44 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
22
22
|
getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
|
|
23
23
|
/** @param {string} oracleId */
|
|
24
24
|
initOracle(oracleId: string): Promise<{
|
|
25
|
+
/**
|
|
26
|
+
* @typedef {object} ChainlinkConfig
|
|
27
|
+
* @property {number} maxSubmissionCount
|
|
28
|
+
* @property {number} minSubmissionCount
|
|
29
|
+
* @property {bigint} restartDelay the number of rounds an Oracle has to wait
|
|
30
|
+
* before they can initiate a round
|
|
31
|
+
* @property {number} minSubmissionValue an immutable check for a lower bound of
|
|
32
|
+
* what submission values are accepted from an oracle
|
|
33
|
+
* @property {number} maxSubmissionValue an immutable check for an upper bound
|
|
34
|
+
* of what submission values are accepted from an oracle
|
|
35
|
+
* @property {number} timeout the number of seconds after the previous round
|
|
36
|
+
* that allowed to lapse before allowing an oracle to skip an unfinished
|
|
37
|
+
* round
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Returns a maker for a single durable FluxAggregatorKit, closed over the
|
|
41
|
+
* prepare() arguments.
|
|
42
|
+
*
|
|
43
|
+
* The kit aggregates price inputs to produce a PriceAuthority. Unlike the
|
|
44
|
+
* simpler `priceAggregator.js`, this approximates the _Node Operator
|
|
45
|
+
* Aggregation_ logic of [Chainlink price
|
|
46
|
+
* feeds](https://blog.chain.link/levels-of-data-aggregation-in-chainlink-price-feeds/).
|
|
47
|
+
*
|
|
48
|
+
* @param {Baggage} baggage
|
|
49
|
+
* @param {ZCF<
|
|
50
|
+
* ChainlinkConfig & {
|
|
51
|
+
* timer: TimerService;
|
|
52
|
+
* brandIn: Brand<'nat'>;
|
|
53
|
+
* brandOut: Brand<'nat'>;
|
|
54
|
+
* unitAmountIn?: Amount<'nat'>;
|
|
55
|
+
* }
|
|
56
|
+
* >} zcf
|
|
57
|
+
* @param {TimerService} timerPresence
|
|
58
|
+
* @param {import('./roundsManager.js').QuoteKit} quoteKit
|
|
59
|
+
* @param {StorageNode} storageNode
|
|
60
|
+
* @param {() => PublishKit<any>} makeDurablePublishKit
|
|
61
|
+
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder} makeRecorder
|
|
62
|
+
*/
|
|
25
63
|
admin: {
|
|
26
64
|
disable(): void;
|
|
27
65
|
};
|
|
@@ -30,6 +68,44 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
30
68
|
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
31
69
|
};
|
|
32
70
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
71
|
+
/**
|
|
72
|
+
* @typedef {object} ChainlinkConfig
|
|
73
|
+
* @property {number} maxSubmissionCount
|
|
74
|
+
* @property {number} minSubmissionCount
|
|
75
|
+
* @property {bigint} restartDelay the number of rounds an Oracle has to wait
|
|
76
|
+
* before they can initiate a round
|
|
77
|
+
* @property {number} minSubmissionValue an immutable check for a lower bound of
|
|
78
|
+
* what submission values are accepted from an oracle
|
|
79
|
+
* @property {number} maxSubmissionValue an immutable check for an upper bound
|
|
80
|
+
* of what submission values are accepted from an oracle
|
|
81
|
+
* @property {number} timeout the number of seconds after the previous round
|
|
82
|
+
* that allowed to lapse before allowing an oracle to skip an unfinished
|
|
83
|
+
* round
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Returns a maker for a single durable FluxAggregatorKit, closed over the
|
|
87
|
+
* prepare() arguments.
|
|
88
|
+
*
|
|
89
|
+
* The kit aggregates price inputs to produce a PriceAuthority. Unlike the
|
|
90
|
+
* simpler `priceAggregator.js`, this approximates the _Node Operator
|
|
91
|
+
* Aggregation_ logic of [Chainlink price
|
|
92
|
+
* feeds](https://blog.chain.link/levels-of-data-aggregation-in-chainlink-price-feeds/).
|
|
93
|
+
*
|
|
94
|
+
* @param {Baggage} baggage
|
|
95
|
+
* @param {ZCF<
|
|
96
|
+
* ChainlinkConfig & {
|
|
97
|
+
* timer: TimerService;
|
|
98
|
+
* brandIn: Brand<'nat'>;
|
|
99
|
+
* brandOut: Brand<'nat'>;
|
|
100
|
+
* unitAmountIn?: Amount<'nat'>;
|
|
101
|
+
* }
|
|
102
|
+
* >} zcf
|
|
103
|
+
* @param {TimerService} timerPresence
|
|
104
|
+
* @param {import('./roundsManager.js').QuoteKit} quoteKit
|
|
105
|
+
* @param {StorageNode} storageNode
|
|
106
|
+
* @param {() => PublishKit<any>} makeDurablePublishKit
|
|
107
|
+
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder} makeRecorder
|
|
108
|
+
*/
|
|
33
109
|
admin: {
|
|
34
110
|
disable(): void;
|
|
35
111
|
};
|
|
@@ -74,6 +150,44 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
74
150
|
getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
|
|
75
151
|
/** @param {string} oracleId */
|
|
76
152
|
initOracle(oracleId: string): Promise<{
|
|
153
|
+
/**
|
|
154
|
+
* @typedef {object} ChainlinkConfig
|
|
155
|
+
* @property {number} maxSubmissionCount
|
|
156
|
+
* @property {number} minSubmissionCount
|
|
157
|
+
* @property {bigint} restartDelay the number of rounds an Oracle has to wait
|
|
158
|
+
* before they can initiate a round
|
|
159
|
+
* @property {number} minSubmissionValue an immutable check for a lower bound of
|
|
160
|
+
* what submission values are accepted from an oracle
|
|
161
|
+
* @property {number} maxSubmissionValue an immutable check for an upper bound
|
|
162
|
+
* of what submission values are accepted from an oracle
|
|
163
|
+
* @property {number} timeout the number of seconds after the previous round
|
|
164
|
+
* that allowed to lapse before allowing an oracle to skip an unfinished
|
|
165
|
+
* round
|
|
166
|
+
*/
|
|
167
|
+
/**
|
|
168
|
+
* Returns a maker for a single durable FluxAggregatorKit, closed over the
|
|
169
|
+
* prepare() arguments.
|
|
170
|
+
*
|
|
171
|
+
* The kit aggregates price inputs to produce a PriceAuthority. Unlike the
|
|
172
|
+
* simpler `priceAggregator.js`, this approximates the _Node Operator
|
|
173
|
+
* Aggregation_ logic of [Chainlink price
|
|
174
|
+
* feeds](https://blog.chain.link/levels-of-data-aggregation-in-chainlink-price-feeds/).
|
|
175
|
+
*
|
|
176
|
+
* @param {Baggage} baggage
|
|
177
|
+
* @param {ZCF<
|
|
178
|
+
* ChainlinkConfig & {
|
|
179
|
+
* timer: TimerService;
|
|
180
|
+
* brandIn: Brand<'nat'>;
|
|
181
|
+
* brandOut: Brand<'nat'>;
|
|
182
|
+
* unitAmountIn?: Amount<'nat'>;
|
|
183
|
+
* }
|
|
184
|
+
* >} zcf
|
|
185
|
+
* @param {TimerService} timerPresence
|
|
186
|
+
* @param {import('./roundsManager.js').QuoteKit} quoteKit
|
|
187
|
+
* @param {StorageNode} storageNode
|
|
188
|
+
* @param {() => PublishKit<any>} makeDurablePublishKit
|
|
189
|
+
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder} makeRecorder
|
|
190
|
+
*/
|
|
77
191
|
admin: {
|
|
78
192
|
disable(): void;
|
|
79
193
|
};
|
|
@@ -82,6 +196,44 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
82
196
|
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
83
197
|
};
|
|
84
198
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
199
|
+
/**
|
|
200
|
+
* @typedef {object} ChainlinkConfig
|
|
201
|
+
* @property {number} maxSubmissionCount
|
|
202
|
+
* @property {number} minSubmissionCount
|
|
203
|
+
* @property {bigint} restartDelay the number of rounds an Oracle has to wait
|
|
204
|
+
* before they can initiate a round
|
|
205
|
+
* @property {number} minSubmissionValue an immutable check for a lower bound of
|
|
206
|
+
* what submission values are accepted from an oracle
|
|
207
|
+
* @property {number} maxSubmissionValue an immutable check for an upper bound
|
|
208
|
+
* of what submission values are accepted from an oracle
|
|
209
|
+
* @property {number} timeout the number of seconds after the previous round
|
|
210
|
+
* that allowed to lapse before allowing an oracle to skip an unfinished
|
|
211
|
+
* round
|
|
212
|
+
*/
|
|
213
|
+
/**
|
|
214
|
+
* Returns a maker for a single durable FluxAggregatorKit, closed over the
|
|
215
|
+
* prepare() arguments.
|
|
216
|
+
*
|
|
217
|
+
* The kit aggregates price inputs to produce a PriceAuthority. Unlike the
|
|
218
|
+
* simpler `priceAggregator.js`, this approximates the _Node Operator
|
|
219
|
+
* Aggregation_ logic of [Chainlink price
|
|
220
|
+
* feeds](https://blog.chain.link/levels-of-data-aggregation-in-chainlink-price-feeds/).
|
|
221
|
+
*
|
|
222
|
+
* @param {Baggage} baggage
|
|
223
|
+
* @param {ZCF<
|
|
224
|
+
* ChainlinkConfig & {
|
|
225
|
+
* timer: TimerService;
|
|
226
|
+
* brandIn: Brand<'nat'>;
|
|
227
|
+
* brandOut: Brand<'nat'>;
|
|
228
|
+
* unitAmountIn?: Amount<'nat'>;
|
|
229
|
+
* }
|
|
230
|
+
* >} zcf
|
|
231
|
+
* @param {TimerService} timerPresence
|
|
232
|
+
* @param {import('./roundsManager.js').QuoteKit} quoteKit
|
|
233
|
+
* @param {StorageNode} storageNode
|
|
234
|
+
* @param {() => PublishKit<any>} makeDurablePublishKit
|
|
235
|
+
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder} makeRecorder
|
|
236
|
+
*/
|
|
85
237
|
admin: {
|
|
86
238
|
disable(): void;
|
|
87
239
|
};
|
|
@@ -110,14 +262,14 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
110
262
|
};
|
|
111
263
|
}>>;
|
|
112
264
|
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
113
|
-
export type Timestamp = import('@agoric/time
|
|
265
|
+
export type Timestamp = import('@agoric/time').Timestamp;
|
|
114
266
|
/**
|
|
115
|
-
* //
|
|
116
|
-
*
|
|
267
|
+
* // TODO: use
|
|
268
|
+
* RelativeTime, not RelativeTimeValue
|
|
117
269
|
*/
|
|
118
|
-
export type RelativeTime = import('@agoric/time
|
|
119
|
-
export type RelativeTimeValue = import('@agoric/time
|
|
120
|
-
export type TimerService = import('@agoric/time
|
|
270
|
+
export type RelativeTime = import('@agoric/time').RelativeTime;
|
|
271
|
+
export type RelativeTimeValue = import('@agoric/time').RelativeTimeValue;
|
|
272
|
+
export type TimerService = import('@agoric/time').TimerService;
|
|
121
273
|
export type RoundState = {
|
|
122
274
|
eligibleForSpecificRound: boolean;
|
|
123
275
|
queriedRoundId: bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":["fluxAggregatorKit.js"],"names":[],"mappings":"AAsBA,yDAA0D;AAoEnD,kDAfI,OAAO;WAGJ,YAAY;aACV,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;;mBAIlB,YAAY,YACZ,OAAO,oBAAoB,EAAE,QAAQ,eACrC,WAAW,yBACX,MAAM,WAAW,GAAG,CAAC,gBACrB,OAAO,6CAA6C,EAAE,YAAY;;QAmJrE;;;;;;;;;WASG;uCADQ,MAAM;QAsCjB,+BAA+B;+BAAnB,MAAM;;QAalB,+BAA+B;6BAAnB,MAAM
|
|
1
|
+
{"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":["fluxAggregatorKit.js"],"names":[],"mappings":"AAsBA,yDAA0D;AAoEnD,kDAfI,OAAO;WAGJ,YAAY;aACV,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;;mBAIlB,YAAY,YACZ,OAAO,oBAAoB,EAAE,QAAQ,eACrC,WAAW,yBACX,MAAM,WAAW,GAAG,CAAC,gBACrB,OAAO,6CAA6C,EAAE,YAAY;;QAmJrE;;;;;;;;;WASG;uCADQ,MAAM;QAsCjB,+BAA+B;+BAAnB,MAAM;;QAalB,+BAA+B;6BAAnB,MAAM;YAnP1B;;;;;;;;;;;;;eAaG;YAEH;;;;;;;;;;;;;;;;;;;;;;;eAuBG;;;;;;;;;YAtCH;;;;;;;;;;;;;eAaG;YAEH;;;;;;;;;;;;;;;;;;;;;;;eAuBG;;;;;;;;;QAiOK;;;;;;;;WAQG;mCAHQ,MAAM,kBACN,MAAM,GACJ,QAAQ,UAAU,CAAC;;;;;;;;;;;QAtFhC;;;;;;;;;WASG;uCADQ,MAAM;QAsCjB,+BAA+B;+BAAnB,MAAM;;QAalB,+BAA+B;6BAAnB,MAAM;YAnP1B;;;;;;;;;;;;;eAaG;YAEH;;;;;;;;;;;;;;;;;;;;;;;eAuBG;;;;;;;;;YAtCH;;;;;;;;;;;;;eAaG;YAEH;;;;;;;;;;;;;;;;;;;;;;;eAuBG;;;;;;;;;QAiOK;;;;;;;;WAQG;mCAHQ,MAAM,kBACN,MAAM,GACJ,QAAQ,UAAU,CAAC;;;;;;;;;IAqDvC;sBA7VY,OAAO,kBAAkB,EAAE,OAAO;wBAElC,OAAO,cAAc,EAAE,SAAS;;;;;2BAEhC,OAAO,cAAc,EAAE,YAAY;gCAGnC,OAAO,cAAc,EAAE,iBAAiB;2BAExC,OAAO,cAAc,EAAE,YAAY;;8BAQlC,OAAO;oBACP,MAAM;sBACN,MAAM;eACN,SAAS;kBACT,MAAM;iBACN,MAAM;;;wBAMN,MAAM;wBACN,MAAM;;;;;kBACN,MAAM;;;;;wBAEN,MAAM;;;;;wBAEN,MAAM;;;;;;aAEN,MAAM;;gCA2TN,WAAW,QAAQ,WAAW,+BAA+B,CAAC,CAAC,CAAC"}
|
|
@@ -25,14 +25,14 @@ export const INVITATION_MAKERS_DESC = 'oracle invitation';
|
|
|
25
25
|
/**
|
|
26
26
|
* @typedef {import('@agoric/vat-data').Baggage} Baggage
|
|
27
27
|
*
|
|
28
|
-
* @typedef {import('@agoric/time
|
|
28
|
+
* @typedef {import('@agoric/time').Timestamp} Timestamp
|
|
29
29
|
*
|
|
30
|
-
* @typedef {import('@agoric/time
|
|
31
|
-
*
|
|
30
|
+
* @typedef {import('@agoric/time').RelativeTime} RelativeTime // TODO: use
|
|
31
|
+
* RelativeTime, not RelativeTimeValue
|
|
32
32
|
*
|
|
33
|
-
* @typedef {import('@agoric/time
|
|
33
|
+
* @typedef {import('@agoric/time').RelativeTimeValue} RelativeTimeValue
|
|
34
34
|
*
|
|
35
|
-
* @typedef {import('@agoric/time
|
|
35
|
+
* @typedef {import('@agoric/time').TimerService} TimerService
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/** @type {(quote: PriceQuote) => PriceDescription} */
|