@agoric/inter-protocol 0.16.2-dev-f8abc2e.0 → 0.16.2-dev-860d051.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/auctionBook.d.ts +1 -1
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +1 -1
- package/src/auction/auctioneer.d.ts +21 -7
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +1 -1
- package/src/auction/offerBook.d.ts +2 -2
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +1 -1
- package/src/auction/params.d.ts +2 -4
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +2 -2
- package/src/auction/scheduleMath.d.ts.map +1 -1
- package/src/auction/scheduler.d.ts +1 -1
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/util.d.ts +4 -4
- package/src/auction/util.d.ts.map +1 -1
- package/src/feeDistributor.d.ts +5 -5
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +2 -3
- package/src/interest.d.ts +4 -5
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +2 -3
- package/src/price/fluxAggregatorContract.d.ts +6 -7
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +2 -3
- package/src/price/fluxAggregatorKit.d.ts +4 -48
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +5 -9
- package/src/price/roundsManager.d.ts +37 -14
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +3 -4
- package/src/proposals/addAssetToVault.d.ts +1 -1
- package/src/proposals/addAssetToVault.d.ts.map +1 -1
- package/src/proposals/addAssetToVault.js +1 -1
- package/src/proposals/core-proposal.d.ts.map +1 -1
- package/src/proposals/core-proposal.js +0 -2
- package/src/proposals/econ-behaviors.d.ts +8 -10
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.js +2 -4
- package/src/proposals/startPSM.d.ts +7 -9
- package/src/proposals/startPSM.d.ts.map +1 -1
- package/src/proposals/startPSM.js +4 -4
- package/src/proposals/utils.d.ts +1 -1
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +13 -17
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +1 -2
- package/src/psm/psm.d.ts +2 -3
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +1 -1
- package/src/psm/types.d.ts +1 -1
- package/src/psm/types.d.ts.map +1 -1
- package/src/psm/types.js +1 -1
- package/src/reserve/assetReserve.d.ts +1 -1
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +1 -1
- package/src/vaultFactory/liquidation.d.ts +154 -16
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +4 -4
- package/src/vaultFactory/orderedVaultStore.d.ts +225 -17
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.js +2 -2
- package/src/vaultFactory/params.d.ts +14 -9
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +625 -62
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +2 -2
- package/src/vaultFactory/storeUtils.d.ts +1 -2
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/storeUtils.js +1 -1
- package/src/vaultFactory/types.d.ts +120 -11
- package/src/vaultFactory/types.d.ts.map +1 -1
- package/src/vaultFactory/types.js +10 -20
- package/src/vaultFactory/vault.d.ts +63 -5
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +2 -2
- package/src/vaultFactory/vaultDirector.d.ts +34 -34
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +21 -16
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -1
- package/src/vaultFactory/vaultHolder.d.ts +95 -17
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +1 -1
- package/src/vaultFactory/vaultKit.d.ts +74 -4
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +1 -1
- package/src/vaultFactory/vaultManager.d.ts +391 -41
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +3 -3
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-860d051.0+860d051",
|
|
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-860d051.0+860d051",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-860d051.0+860d051",
|
|
36
|
+
"@agoric/governance": "0.10.4-dev-860d051.0+860d051",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-860d051.0+860d051",
|
|
38
|
+
"@agoric/notifier": "0.6.3-dev-860d051.0+860d051",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-860d051.0+860d051",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-860d051.0+860d051",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-860d051.0+860d051",
|
|
42
|
+
"@agoric/vats": "0.15.2-dev-860d051.0+860d051",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-860d051.0+860d051",
|
|
44
44
|
"@endo/captp": "^4.1.0",
|
|
45
45
|
"@endo/eventual-send": "^1.2.0",
|
|
46
46
|
"@endo/far": "^1.1.0",
|
|
@@ -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-860d051.0+860d051",
|
|
54
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-860d051.0+860d051",
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-860d051.0+860d051",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-860d051.0+860d051",
|
|
57
57
|
"@endo/bundle-source": "^3.2.1",
|
|
58
58
|
"@endo/init": "^1.1.0",
|
|
59
59
|
"@endo/promise-kit": "^1.1.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"typeCoverage": {
|
|
86
86
|
"atLeast": 95.9
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "860d051e8c26975d244c211b061a8189f1718cab"
|
|
89
89
|
}
|
|
@@ -42,7 +42,6 @@ export type OfferSpec = {
|
|
|
42
42
|
} | {
|
|
43
43
|
offerBidScaling: Ratio;
|
|
44
44
|
});
|
|
45
|
-
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
46
45
|
export type BookDataNotification = {
|
|
47
46
|
/**
|
|
48
47
|
* identifies the priceAuthority and price
|
|
@@ -80,4 +79,5 @@ export type BookDataNotification = {
|
|
|
80
79
|
collateralAvailable: Amount<'nat'> | null;
|
|
81
80
|
};
|
|
82
81
|
export type AuctionBook = ReturnType<ReturnType<typeof prepareAuctionBook>>;
|
|
82
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
83
83
|
//# sourceMappingURL=auctionBook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctionBook.d.ts","sourceRoot":"","sources":["auctionBook.js"],"names":[],"mappings":"AAyEO,6CAHI,MAAM,KAAK,CAAC,mBACZ,MAAM,KAAK,CAAC,oCAiBtB;AA0BM,
|
|
1
|
+
{"version":3,"file":"auctionBook.d.ts","sourceRoot":"","sources":["auctionBook.js"],"names":[],"mappings":"AAyEO,6CAHI,MAAM,KAAK,CAAC,mBACZ,MAAM,KAAK,CAAC,oCAiBtB;AA0BM,0DAHI,GAAG,mBACH,OAAO,6CAA6C,EAAE,eAAe;IA6YxE;;;;;;;;OAQG;2BAPQ,OAAO,KAAK,CAAC,cACb,OAAO;IA6ElB,yCAAyC;+BAAlB,KAAK,GAAK,IAAI;;;;;IA4GrC;;;;OAIG;wBAHQ,SAAS,QACT,OAAO,aACP,OAAO;;;;;;;;;;;GAyFzB;wBA5tBY;IACZ,MAAU,EAAE,OAAO,KAAK,CAAC,CAAC;CACvB,GAAG;IACN,YAAgB,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,CACE;IACR,UAAoB,EAAE,KAAK,CAAC;CACnB,GACD;IACR,eAAyB,EAAE,KAAK,CAAC;CACxB,CACJ;;;;;gBA2BQ,KAAK,GAAG,IAAI;;;;;uBACZ,KAAK,GAAG,IAAI;;;;;uBAEZ,OAAO,KAAK,CAAC,GAAG,IAAI;;;;;2BAEpB,OAAO,KAAK,CAAC,GAAG,IAAI;;;;;oBAEpB,OAAO,KAAK,CAAC,GAAG,SAAS;;;;;qBAEzB,OAAO,KAAK,CAAC;;;;;yBAEb,OAAO,KAAK,CAAC,GAAG,IAAI;;0BA8qBpB,WAAW,WAAW,yBAAyB,CAAC,CAAC;6BA7rBpC,kBAAkB"}
|
|
@@ -3,9 +3,23 @@ export function distributeProportionalSharesWithLimits(unsoldCollateral: Amount<
|
|
|
3
3
|
amount: Amount<'nat'>;
|
|
4
4
|
goal: Amount<'nat'>;
|
|
5
5
|
}[], collateralSeat: ZCFSeat, bidHoldingSeat: ZCFSeat, collateralKeyword: string, reserveSeat: ZCFSeat, brand: Brand): TransferPart[];
|
|
6
|
-
export function start(zcf: ZCF<GovernanceTerms<
|
|
6
|
+
export function start(zcf: ZCF<GovernanceTerms<{
|
|
7
|
+
Electorate: "invitation";
|
|
8
|
+
StartFrequency: "relativeTime";
|
|
9
|
+
ClockStep: "relativeTime";
|
|
10
|
+
StartingRate: "nat";
|
|
11
|
+
LowestRate: "nat";
|
|
12
|
+
DiscountStep: "nat";
|
|
13
|
+
AuctionStartDelay: "relativeTime";
|
|
14
|
+
PriceLockPeriod: "relativeTime";
|
|
15
|
+
}> & {
|
|
7
16
|
timerService: import('@agoric/time').TimerService;
|
|
8
|
-
reservePublicFacet:
|
|
17
|
+
reservePublicFacet: GovernedPublicFacet<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
18
|
+
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
19
|
+
getPublicTopics(): {
|
|
20
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
21
|
+
};
|
|
22
|
+
}>>;
|
|
9
23
|
priceAuthority: PriceAuthority;
|
|
10
24
|
}>, privateArgs: {
|
|
11
25
|
initialPoserInvitation: Invitation;
|
|
@@ -14,13 +28,13 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
|
14
28
|
}, baggage: Baggage): Promise<{
|
|
15
29
|
publicFacet: GovernedPublicFacet<{
|
|
16
30
|
getElectorate: () => Amount<"set">;
|
|
17
|
-
getStartFrequency: () =>
|
|
18
|
-
getClockStep: () =>
|
|
31
|
+
getStartFrequency: () => RelativeTime;
|
|
32
|
+
getClockStep: () => RelativeTime;
|
|
19
33
|
getStartingRate: () => bigint;
|
|
20
34
|
getLowestRate: () => bigint;
|
|
21
35
|
getDiscountStep: () => bigint;
|
|
22
|
-
getAuctionStartDelay: () =>
|
|
23
|
-
getPriceLockPeriod: () =>
|
|
36
|
+
getAuctionStartDelay: () => RelativeTime;
|
|
37
|
+
getPriceLockPeriod: () => RelativeTime;
|
|
24
38
|
/** @param {Brand<'nat'>} collateralBrand */
|
|
25
39
|
makeBidInvitation(collateralBrand: Brand<'nat'>): Promise<Invitation<string, ({
|
|
26
40
|
maxBuy: Amount<"nat">;
|
|
@@ -72,9 +86,9 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
|
72
86
|
/** @typedef {AuctioneerContract['publicFacet']} AuctioneerPublicFacet */
|
|
73
87
|
/** @typedef {AuctioneerContract['creatorFacet']} AuctioneerCreatorFacet */
|
|
74
88
|
export const AuctionPFShape: import("@endo/patterns").Matcher;
|
|
75
|
-
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
76
89
|
export type AuctioneerContract = ContractOf<typeof start>;
|
|
77
90
|
export type AuctioneerPublicFacet = AuctioneerContract['publicFacet'];
|
|
78
91
|
export type AuctioneerCreatorFacet = AuctioneerContract['creatorFacet'];
|
|
79
92
|
import { auctioneerParamTypes } from './params.js';
|
|
93
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
80
94
|
//# sourceMappingURL=auctioneer.d.ts.map
|
|
@@ -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,
|
|
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;;;;;;;oBAEjC,cAAc;iBAG1B;IACV,sBAA0B,EAAE,UAAU,CAAC;IACvC,WAAe,EAAE,WAAW,CAAC;IAC7B,UAAc,EAAE,UAAU,CAAC;CACxB;;;;;;;;;;QA0OE,4CAA4C;2CAAhC,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;kBApCT,OAAO,KAAK,CAAC;;;;QAmG5B;;;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,8DAAkE;iCAJpD,WAAW,YAAY,CAAC;oCACxB,kBAAkB,CAAC,aAAa,CAAC;qCACjC,kBAAkB,CAAC,cAAc,CAAC;qCAxrBX,aAAa;6BAIvB,kBAAkB"}
|
|
@@ -35,7 +35,7 @@ import { auctioneerParamTypes } from './params.js';
|
|
|
35
35
|
import { makeScheduler } from './scheduler.js';
|
|
36
36
|
import { AuctionState } from './util.js';
|
|
37
37
|
|
|
38
|
-
/** @
|
|
38
|
+
/** @import {Baggage} from '@agoric/vat-data' */
|
|
39
39
|
|
|
40
40
|
const { Fail, quote: q } = assert;
|
|
41
41
|
const { add, multiply } = natSafeMath;
|
|
@@ -27,7 +27,6 @@ export function preparePriceBook(baggage: Baggage): (priceRatioPattern: any, col
|
|
|
27
27
|
updateReceived(key: any, sold: any): void;
|
|
28
28
|
exitAllSeats(): void;
|
|
29
29
|
}>;
|
|
30
|
-
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
31
30
|
export type BidderRecord = {
|
|
32
31
|
seat: ZCFSeat;
|
|
33
32
|
wanted: Amount<'nat'>;
|
|
@@ -36,10 +35,11 @@ export type BidderRecord = {
|
|
|
36
35
|
} & {
|
|
37
36
|
exitAfterBuy: boolean;
|
|
38
37
|
} & ({
|
|
39
|
-
bidScaling:
|
|
38
|
+
bidScaling: any;
|
|
40
39
|
price: undefined;
|
|
41
40
|
} | {
|
|
42
41
|
bidScaling: undefined;
|
|
43
42
|
price: Ratio;
|
|
44
43
|
});
|
|
44
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
45
45
|
//# sourceMappingURL=offerBook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"AAkDO
|
|
1
|
+
{"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"AAkDO;IAgBD;;;;;OAKG;cAJQ,OAAO,cACP,KAAK,UACL,OAAO,KAAK,CAAC,gBACb,OAAO;IAsBlB,gCAAgC;4BAApB,KAAK;;;;;GAqCpB;AAcI;IAgBD;;;;;OAKG;cAJQ,OAAO,SACP,KAAK,UACL,OAAO,KAAK,CAAC,gBACb,OAAO;;;;;;GA0DrB;;UAlMQ,OAAO;YACL,OAAO,KAAK,CAAC;YACb,QAAQ;cACN,OAAO,KAAK,CAAC;;kBACL,OAAO;;;WACS,SAAS;;gBACzB,SAAS;WAAS,KAAK;;6BAnBnB,kBAAkB"}
|
package/src/auction/offerBook.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
toScaledRateOfferKey,
|
|
13
13
|
} from './sortedOffers.js';
|
|
14
14
|
|
|
15
|
-
/** @
|
|
15
|
+
/** @import {Baggage} from '@agoric/vat-data' */
|
|
16
16
|
|
|
17
17
|
// multiple offers might be provided at the same time (since the time
|
|
18
18
|
// granularity is limited to blocks), so we increment a sequenceNumber with each
|
package/src/auction/params.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** @
|
|
2
|
-
/** @
|
|
1
|
+
/** @import {AsyncSpecTuple} from '@agoric/governance/src/contractGovernance/typedParamManager.js' */
|
|
2
|
+
/** @import {SyncSpecTuple} from '@agoric/governance/src/contractGovernance/typedParamManager.js' */
|
|
3
3
|
export const InvitationShape: import("@endo/patterns").Matcher;
|
|
4
4
|
/**
|
|
5
5
|
* In seconds, how often to start an auction. The auction will start at
|
|
@@ -130,8 +130,6 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
export type AsyncSpecTuple = import('@agoric/governance/src/contractGovernance/typedParamManager.js').AsyncSpecTuple;
|
|
134
|
-
export type SyncSpecTuple = import('@agoric/governance/src/contractGovernance/typedParamManager.js').SyncSpecTuple;
|
|
135
133
|
export type AuctionParams = {
|
|
136
134
|
ElectorateInvitationAmount: Amount<'set'>;
|
|
137
135
|
StartFrequency: RelativeTime;
|
|
@@ -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,qGAAqG;AACrG,oGAAoG;AAGpG,+DAAyD;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,sEASG;;;;;;;;;;;AA2BI,yLADK,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxB;AAQM,yDAJI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,OAC1E,GAAG,WACH,aAAa;;;;;;;;;GA0BvB;AAUM;;;;;;;;cAFI,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB;;gCAxGa,OAAO,KAAK,CAAC;;;kBAGb,MAAM;gBACN,MAAM;kBACN,MAAM;;;gBAGN,OAAO,cAAc,EAAE,UAAU;;kCAmGjC,WAAW,iCAAiC,CAAC"}
|
package/src/auction/params.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
import { TimeMath, RelativeTimeRecordShape } from '@agoric/time';
|
|
7
7
|
import { M } from '@agoric/store';
|
|
8
8
|
|
|
9
|
-
/** @
|
|
10
|
-
/** @
|
|
9
|
+
/** @import {AsyncSpecTuple} from '@agoric/governance/src/contractGovernance/typedParamManager.js' */
|
|
10
|
+
/** @import {SyncSpecTuple} from '@agoric/governance/src/contractGovernance/typedParamManager.js' */
|
|
11
11
|
|
|
12
12
|
// TODO duplicated with zoe/src/TypeGuards.js
|
|
13
13
|
export const InvitationShape = M.remotable('Invitation');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduleMath.d.ts","sourceRoot":"","sources":["scheduleMath.js"],"names":[],"mappings":"AAwCO,2CAJI,QAAQ,OAAO,aAAa,EAAE,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"scheduleMath.d.ts","sourceRoot":"","sources":["scheduleMath.js"],"names":[],"mappings":"AAwCO,2CAJI,QAAQ,OAAO,aAAa,EAAE,mBAAmB,CAAC,wBAEhD,OAAO,gBAAgB,EAAE,QAAQ,CAqE7C;AAcM,qDALI,OAAO,gBAAgB,EAAE,QAAQ,GAAG,IAAI,gBACxC,OAAO,gBAAgB,EAAE,QAAQ,GAAG,IAAI,oCAyBlD;AAQM,0DAHI,OAAO,gBAAgB,EAAE,QAAQ,GAC/B,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAiBxD"}
|
|
@@ -40,7 +40,7 @@ export type Schedule = {
|
|
|
40
40
|
endRate: NatValue;
|
|
41
41
|
startDelay: RelativeTime;
|
|
42
42
|
clockStep: RelativeTime;
|
|
43
|
-
lockTime?:
|
|
43
|
+
lockTime?: 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,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
|
|
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;;;;;;;;;;;;;;;;;;;eA6TV,OAAO,cAAc,EAAE,eAAe;aACtC,OAAO,cAAc,EAAE,eAAe;WACtC,QAAQ;aACR,QAAQ;;;;;;yBAQR,QAAQ,GAAG,IAAI;yBACf,QAAQ,GAAG,IAAI"}
|
package/src/auction/util.d.ts
CHANGED
|
@@ -9,18 +9,18 @@ export const AuctionState: {
|
|
|
9
9
|
};
|
|
10
10
|
export function makeBrandedRatioPattern(numeratorAmountShape: {
|
|
11
11
|
brand: Brand;
|
|
12
|
-
value:
|
|
12
|
+
value: any;
|
|
13
13
|
}, denominatorAmountShape: {
|
|
14
14
|
brand: Brand;
|
|
15
|
-
value:
|
|
15
|
+
value: any;
|
|
16
16
|
}): {
|
|
17
17
|
numerator: {
|
|
18
18
|
brand: Brand;
|
|
19
|
-
value:
|
|
19
|
+
value: any;
|
|
20
20
|
};
|
|
21
21
|
denominator: {
|
|
22
22
|
brand: Brand;
|
|
23
|
-
value:
|
|
23
|
+
value: any;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export function isScaledBidPriceHigher(bidScaling: Ratio, currentPrice: Ratio, oraclePrice: Ratio): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH,2BAFU;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAKhD;AAMK
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH,2BAFU;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAKhD;AAMK;WAHa,KAAK;;;WACL,KAAK;;;;eADL,KAAK;;;;eACL,KAAK;;;EAUxB;AASM,mDANI,KAAK,gBACL,KAAK,eACL,KAAK,GACH,OAAO,CAI6C;AAEjE,2CAA2C;AAC3C,wBADW,CAAC,KAAK,EAAE,UAAU,KAAK,KAAK,CAKnC;AAEG,4GAIN"}
|
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<
|
|
8
|
+
export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: 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;
|
|
@@ -16,7 +16,7 @@ export function makeShareConfig(destinations?: Record<string, ERef<FeeDestinatio
|
|
|
16
16
|
export function sharePayment(payment: Payment<'nat'>, issuer: ERef<Issuer<"nat">>, { shares, totalShares }: ShareConfig): Promise<void>;
|
|
17
17
|
export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
18
18
|
keywordShares: Record<Keyword, NatValue>;
|
|
19
|
-
timerService: ERef<
|
|
19
|
+
timerService: ERef<TimerService>;
|
|
20
20
|
collectionInterval: RelativeTime;
|
|
21
21
|
}): {
|
|
22
22
|
creatorFacet: {
|
|
@@ -104,7 +104,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
104
104
|
};
|
|
105
105
|
export function start(zcf: ZCF<[feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
106
106
|
keywordShares: Record<Keyword, NatValue>;
|
|
107
|
-
timerService: ERef<
|
|
107
|
+
timerService: ERef<TimerService>;
|
|
108
108
|
collectionInterval: RelativeTime;
|
|
109
109
|
}][1]>): Promise<{
|
|
110
110
|
creatorFacet: {
|
|
@@ -190,8 +190,6 @@ 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').RelativeTime;
|
|
194
|
-
export type TimerService = import('@agoric/time').TimerService;
|
|
195
193
|
export type FeeCollector = {
|
|
196
194
|
collectFees: () => ERef<Payment<"nat">>;
|
|
197
195
|
};
|
|
@@ -209,4 +207,6 @@ export type FeeDestination = {
|
|
|
209
207
|
export type ShareConfig = ReturnType<typeof makeShareConfig>;
|
|
210
208
|
export type FeeDistributorCreatorFacet = ReturnType<typeof makeFeeDistributor>['creatorFacet'];
|
|
211
209
|
export type FeeDistributorPublicFacet = ReturnType<typeof makeFeeDistributor>['publicFacet'];
|
|
210
|
+
import type { TimerService } from '@agoric/time';
|
|
211
|
+
import type { RelativeTime } from '@agoric/time';
|
|
212
212
|
//# sourceMappingURL=feeDistributor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"AAWA,2BAA2B;AAC3B,mBADW,YAAY,CAOrB;
|
|
1
|
+
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"AAWA,2BAA2B;AAC3B,mBADW,YAAY,CAOrB;AAgCK;;;;GASN;AAeM,oDAPI,MAAM,QAAQ,OAAO,CAAC,yFAiChC;AASM;;;;;;EAaN;AAWM,sCAJI,QAAQ,KAAK,CAAC,wDAEd,WAAW,iBA8DrB;AAUM;mBALa,OAAO,OAAO,EAAE,QAAQ,CAAC;;;;;;;;;;QAsCzC;;;;;WAKG;6CAFQ,MAAM;QA8BjB,oEAAoE;oDAAxD,OAAO,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC;;;;;QAQnD;;;;;;;;WAQG;+DAJQ,MAAM,UACN,OAAO,wBACP,WAAW;;;;;QAsCtB,qEAAqE;;QAQrE,iDAAiD;sCAArC,OAAO,OAAO,EAAE,MAAM,CAAC;;;;;;;QA7FnC;;;;;WAKG;6CAFQ,MAAM;QA8BjB,oEAAoE;oDAAxD,OAAO,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC;;;;;QAQnD;;;;;;;;WAQG;+DAJQ,MAAM,UACN,OAAO,wBACP,WAAW;;;;;QAsCtB,qEAAqE;;QAQrE,iDAAiD;sCAArC,OAAO,OAAO,EAAE,MAAM,CAAC;;;kCAnHzB,QAAQ,KAAK,CAAC;;;kCAAd,QAAQ,KAAK,CAAC;;;EAiI3B;AAMM,2BADK,IAAI;mBAtJI,OAAO,OAAO,EAAE,QAAQ,CAAC;;;GAsJS,CAAC,CAAC,CAAC;;;;;;;QAhHrD;;;;;WAKG;6CAFQ,MAAM;QA8BjB,oEAAoE;oDAAxD,OAAO,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC;;;;;QAQnD;;;;;;;;WAQG;+DAJQ,MAAM,UACN,OAAO,wBACP,WAAW;;;;;QAsCtB,qEAAqE;;QAQrE,iDAAiD;sCAArC,OAAO,OAAO,EAAE,MAAM,CAAC;;;;;;;QA7FnC;;;;;WAKG;6CAFQ,MAAM;QA8BjB,oEAAoE;oDAAxD,OAAO,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC;;;;;QAQnD;;;;;;;;WAQG;+DAJQ,MAAM,UACN,OAAO,wBACP,WAAW;;;;;QAsCtB,qEAAqE;;QAQrE,iDAAiD;sCAArC,OAAO,OAAO,EAAE,MAAM,CAAC;;;kCAnHzB,QAAQ,KAAK,CAAC;;;kCAAd,QAAQ,KAAK,CAAC;;;GA0I3B;;;;;kBA/Ta,MAAM,YAAY;6BAClB,MAAM,QAAQ,IAAI,CAAC;UACnB,MAAM,IAAI;;;+BAKV,MAAM,QAAQ,WAAW,MAAM,EAAE,KAAK,CAAC,CAAC;;;2BAgE1B,OAAO,sCAA2B,QAAQ,MAAM,CAAC;;0BAoB/D,WAAW,sBAAsB,CAAC;yCA6NlC,WAAW,yBAAyB,CAAC,CAAC,cAAc,CAAC;wCACrD,WAAW,yBAAyB,CAAC,CAAC,aAAa,CAAC;kCAnUnC,cAAc;kCADd,cAAc"}
|
package/src/feeDistributor.js
CHANGED
|
@@ -20,9 +20,8 @@ export const meta = {
|
|
|
20
20
|
harden(meta);
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @
|
|
24
|
-
*
|
|
25
|
-
* @typedef {import('@agoric/time').TimerService} TimerService
|
|
23
|
+
* @import {RelativeTime} from '@agoric/time'
|
|
24
|
+
* @import {TimerService} from '@agoric/time'
|
|
26
25
|
*/
|
|
27
26
|
|
|
28
27
|
/**
|
package/src/interest.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*
|
|
4
|
-
* @typedef {import('@agoric/time').RelativeTime} RelativeTime
|
|
2
|
+
* @import {Timestamp} from '@agoric/time'
|
|
3
|
+
* @import {RelativeTime} from '@agoric/time'
|
|
5
4
|
*/
|
|
6
5
|
export const SECONDS_PER_YEAR: bigint;
|
|
7
6
|
export function makeInterestCalculator(annualRate: Ratio, chargingPeriod: RelativeTime, recordingPeriod: RelativeTime): CalculatorKit;
|
|
@@ -24,6 +23,6 @@ export function chargeInterest(powers: {
|
|
|
24
23
|
latestInterestUpdate: Timestamp;
|
|
25
24
|
totalDebt: Amount<'nat'>;
|
|
26
25
|
};
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
import type { RelativeTime } from '@agoric/time';
|
|
27
|
+
import type { Timestamp } from '@agoric/time';
|
|
29
28
|
//# 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
|
|
1
|
+
{"version":3,"file":"interest.d.ts","sourceRoot":"","sources":["interest.js"],"names":[],"mappings":"AAYA;;;GAGG;AAEH,sCAAuD;AAchD,mDALI,KAAK,gEAGH,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;kBAEe,KAAK;;;;;wBAMC,KAAK;eACd,OAAO,KAAK,CAAC;;wBAIJ,KAAK;;eAEd,OAAO,KAAK,CAAC;EA+D5B;kCAvN8B,cAAc;+BADjB,cAAc"}
|
package/src/interest.js
CHANGED
|
@@ -11,9 +11,8 @@ import { Fail } from '@agoric/assert';
|
|
|
11
11
|
import { TimeMath } from '@agoric/time';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* @
|
|
15
|
-
*
|
|
16
|
-
* @typedef {import('@agoric/time').RelativeTime} RelativeTime
|
|
14
|
+
* @import {Timestamp} from '@agoric/time'
|
|
15
|
+
* @import {RelativeTime} from '@agoric/time'
|
|
17
16
|
*/
|
|
18
17
|
|
|
19
18
|
export const SECONDS_PER_YEAR = 60n * 60n * 24n * 365n;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*
|
|
4
|
-
* @typedef {import('@agoric/time').TimerService} TimerService
|
|
2
|
+
* @import {Baggage} from '@agoric/vat-data'
|
|
3
|
+
* @import {TimerService} from '@agoric/time'
|
|
5
4
|
*/
|
|
6
5
|
/** @type {ContractMeta} */
|
|
7
6
|
export const meta: ContractMeta;
|
|
8
|
-
export function start(zcf: ZCF<import(
|
|
7
|
+
export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig & {
|
|
9
8
|
timer: TimerService;
|
|
10
9
|
brandIn: Brand<'nat'>;
|
|
11
10
|
brandOut: Brand<'nat'>;
|
|
12
11
|
description: string;
|
|
13
|
-
unitAmountIn?: Amount<
|
|
12
|
+
unitAmountIn?: Amount<"nat"> | undefined;
|
|
14
13
|
}>, privateArgs: {
|
|
15
14
|
highPrioritySendersManager?: ({
|
|
16
15
|
add: (rawNamespace: string, address: string) => Promise<void>;
|
|
@@ -72,6 +71,6 @@ export function start(zcf: ZCF<import('./fluxAggregatorKit.js').ChainlinkConfig
|
|
|
72
71
|
};
|
|
73
72
|
}>;
|
|
74
73
|
}>;
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
import type { TimerService } from '@agoric/time';
|
|
75
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
77
76
|
//# sourceMappingURL=fluxAggregatorContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA
|
|
1
|
+
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK;;aAfS,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;iBACT,MAAM;;;;;;;;;;4BAMG,UAAU;;;iBAGrB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsI5B;kCAlL8B,cAAc;6BADnB,kBAAkB"}
|
|
@@ -13,9 +13,8 @@ import { prepareFluxAggregatorKit } from './fluxAggregatorKit.js';
|
|
|
13
13
|
|
|
14
14
|
const trace = makeTracer('FluxAgg', false);
|
|
15
15
|
/**
|
|
16
|
-
* @
|
|
17
|
-
*
|
|
18
|
-
* @typedef {import('@agoric/time').TimerService} TimerService
|
|
16
|
+
* @import {Baggage} from '@agoric/vat-data'
|
|
17
|
+
* @import {TimerService} from '@agoric/time'
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
/** @type {ContractMeta} */
|
|
@@ -3,7 +3,7 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
3
3
|
timer: TimerService;
|
|
4
4
|
brandIn: Brand<'nat'>;
|
|
5
5
|
brandOut: Brand<'nat'>;
|
|
6
|
-
unitAmountIn?: Amount<
|
|
6
|
+
unitAmountIn?: Amount<"nat"> | undefined;
|
|
7
7
|
}>, timerPresence: TimerService, quoteKit: import('./roundsManager.js').QuoteKit, storageNode: StorageNode, makeDurablePublishKit: () => PublishKit<any>, makeRecorder: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder): Promise<() => import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
8
8
|
creator: {
|
|
9
9
|
/**
|
|
@@ -34,44 +34,6 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
34
34
|
getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
|
|
35
35
|
/** @param {string} oracleId */
|
|
36
36
|
initOracle(oracleId: string): Promise<import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
37
|
-
/**
|
|
38
|
-
* @typedef {object} ChainlinkConfig
|
|
39
|
-
* @property {number} maxSubmissionCount
|
|
40
|
-
* @property {number} minSubmissionCount
|
|
41
|
-
* @property {bigint} restartDelay the number of rounds an Oracle has to wait
|
|
42
|
-
* before they can initiate a round
|
|
43
|
-
* @property {number} minSubmissionValue an immutable check for a lower bound of
|
|
44
|
-
* what submission values are accepted from an oracle
|
|
45
|
-
* @property {number} maxSubmissionValue an immutable check for an upper bound
|
|
46
|
-
* of what submission values are accepted from an oracle
|
|
47
|
-
* @property {number} timeout the number of seconds after the previous round
|
|
48
|
-
* that allowed to lapse before allowing an oracle to skip an unfinished
|
|
49
|
-
* round
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* Returns a maker for a single durable FluxAggregatorKit, closed over the
|
|
53
|
-
* prepare() arguments.
|
|
54
|
-
*
|
|
55
|
-
* The kit aggregates price inputs to produce a PriceAuthority. Unlike the
|
|
56
|
-
* simpler `priceAggregator.js`, this approximates the _Node Operator
|
|
57
|
-
* Aggregation_ logic of [Chainlink price
|
|
58
|
-
* feeds](https://blog.chain.link/levels-of-data-aggregation-in-chainlink-price-feeds/).
|
|
59
|
-
*
|
|
60
|
-
* @param {Baggage} baggage
|
|
61
|
-
* @param {ZCF<
|
|
62
|
-
* ChainlinkConfig & {
|
|
63
|
-
* timer: TimerService;
|
|
64
|
-
* brandIn: Brand<'nat'>;
|
|
65
|
-
* brandOut: Brand<'nat'>;
|
|
66
|
-
* unitAmountIn?: Amount<'nat'>;
|
|
67
|
-
* }
|
|
68
|
-
* >} zcf
|
|
69
|
-
* @param {TimerService} timerPresence
|
|
70
|
-
* @param {import('./roundsManager.js').QuoteKit} quoteKit
|
|
71
|
-
* @param {StorageNode} storageNode
|
|
72
|
-
* @param {() => PublishKit<any>} makeDurablePublishKit
|
|
73
|
-
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder} makeRecorder
|
|
74
|
-
*/
|
|
75
37
|
admin: {
|
|
76
38
|
disable(): void;
|
|
77
39
|
};
|
|
@@ -99,15 +61,6 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
99
61
|
};
|
|
100
62
|
};
|
|
101
63
|
}>>;
|
|
102
|
-
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
103
|
-
export type Timestamp = import('@agoric/time').Timestamp;
|
|
104
|
-
/**
|
|
105
|
-
* // TODO: use
|
|
106
|
-
* RelativeTime, not RelativeTimeValue
|
|
107
|
-
*/
|
|
108
|
-
export type RelativeTime = import('@agoric/time').RelativeTime;
|
|
109
|
-
export type RelativeTimeValue = import('@agoric/time').RelativeTimeValue;
|
|
110
|
-
export type TimerService = import('@agoric/time').TimerService;
|
|
111
64
|
export type RoundState = {
|
|
112
65
|
eligibleForSpecificRound: boolean;
|
|
113
66
|
queriedRoundId: bigint;
|
|
@@ -142,4 +95,7 @@ export type ChainlinkConfig = {
|
|
|
142
95
|
timeout: number;
|
|
143
96
|
};
|
|
144
97
|
export type FluxAggregatorKit = ReturnType<Awaited<ReturnType<typeof prepareFluxAggregatorKit>>>;
|
|
98
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
99
|
+
import type { TimerService } from '@agoric/time';
|
|
100
|
+
import type { Timestamp } from '@agoric/time';
|
|
145
101
|
//# sourceMappingURL=fluxAggregatorKit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":["fluxAggregatorKit.js"],"names":[],"mappings":"AAsBA,yDAA0D;
|
|
1
|
+
{"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":["fluxAggregatorKit.js"],"names":[],"mappings":"AAsBA,yDAA0D;AAgEnD;;aAXS,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;;2CAKlB,OAAO,oBAAoB,EAAE,QAAQ,eACrC,WAAW,yBACX,MAAM,WAAW,GAAG,CAAC,gBACrB,OAAO,6CAA6C,EAAE,YAAY;;QAmJrE;;;;;;;;;WASG;uCADQ,MAAM;;gBAiBX,8DAA8D;kCAAlD,OAAO,oBAAoB,EAAE,UAAU;;gBAAnD,8DAA8D;kCAAlD,OAAO,oBAAoB,EAAE,UAAU;;;;;;;QAqBzD,+BAA+B;+BAAnB,MAAM;;QAalB,+BAA+B;6BAAnB,MAAM;;;;;;;;;QAoBlB;;;;;;;;WAQG;mCAHQ,MAAM,kBACN,MAAM,GACJ,QAAQ,UAAU,CAAC;;;;;;;;;IAqDvC;;8BA5Ua,OAAO;oBACP,MAAM;sBACN,MAAM;;kBAEN,MAAM;iBACN,MAAM;;;wBAMN,MAAM;wBACN,MAAM;;;;;kBACN,MAAM;;;;;wBAEN,MAAM;;;;;wBAEN,MAAM;;;;;;aAEN,MAAM;;gCA2TN,WAAW,QAAQ,WAAW,+BAA+B,CAAC,CAAC,CAAC;6BA3VpD,kBAAkB;kCAKb,cAAc;+BAJjB,cAAc"}
|
|
@@ -23,16 +23,12 @@ const trace = makeTracer('FlxAgg', true);
|
|
|
23
23
|
export const INVITATION_MAKERS_DESC = 'oracle invitation';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* @
|
|
27
|
-
*
|
|
28
|
-
* @
|
|
29
|
-
*
|
|
30
|
-
* @typedef {import('@agoric/time').RelativeTime} RelativeTime // TODO: use
|
|
26
|
+
* @import {Baggage} from '@agoric/vat-data'
|
|
27
|
+
* @import {Timestamp} from '@agoric/time'
|
|
28
|
+
* @import {RelativeTime} from '@agoric/time'
|
|
31
29
|
* RelativeTime, not RelativeTimeValue
|
|
32
|
-
*
|
|
33
|
-
* @
|
|
34
|
-
*
|
|
35
|
-
* @typedef {import('@agoric/time').TimerService} TimerService
|
|
30
|
+
* @import {RelativeTimeValue} from '@agoric/time'
|
|
31
|
+
* @import {TimerService} from '@agoric/time'
|
|
36
32
|
*/
|
|
37
33
|
|
|
38
34
|
/** @type {(quote: PriceQuote) => PriceDescription} */
|