@agoric/inter-protocol 0.16.2-dev-aa68d8f.0 → 0.16.2-dev-651b051.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 +26 -26
- package/src/auction/auctionBook.d.ts +1 -1
- package/src/auction/auctioneer.d.ts +6 -6
- 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/params.d.ts +2 -2
- package/src/auction/scheduler.d.ts +1 -1
- package/src/auction/sortedOffers.d.ts.map +1 -1
- package/src/auction/sortedOffers.js +1 -0
- package/src/auction/util.d.ts +1 -1
- package/src/auction/util.d.ts.map +1 -1
- package/src/contractSupport.d.ts +1 -7
- package/src/contractSupport.d.ts.map +1 -1
- package/src/contractSupport.js +7 -7
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/econCommitteeCharter.js +1 -0
- package/src/feeDistributor.d.ts +17 -17
- package/src/price/fluxAggregatorContract.d.ts +2 -2
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +1 -0
- package/src/price/fluxAggregatorKit.d.ts +1 -1
- package/src/price/roundsManager.d.ts +20 -8
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +1 -1
- package/src/proposals/add-auction.d.ts.map +1 -1
- package/src/proposals/add-auction.js +5 -1
- package/src/proposals/core-proposal.js +1 -1
- package/src/proposals/econ-behaviors.d.ts +76 -100
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.js +4 -0
- package/src/proposals/startPSM.d.ts.map +1 -1
- package/src/proposals/startPSM.js +2 -0
- package/src/provisionPool.d.ts +7 -5
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPool.js +4 -1
- package/src/provisionPoolKit.d.ts +17 -17
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +3 -3
- package/src/psm/psm.d.ts +3 -3
- package/src/vaultFactory/liquidation.d.ts +12 -12
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/math.d.ts +4 -4
- package/src/vaultFactory/orderedVaultStore.d.ts +34 -34
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/params.d.ts +6 -6
- package/src/vaultFactory/prioritizedVaults.d.ts +197 -77
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/storeUtils.d.ts +2 -2
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.d.ts +6 -6
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/vault.d.ts +27 -19
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +12 -2
- package/src/vaultFactory/vaultDirector.d.ts +23 -23
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +20 -20
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.d.ts +20 -20
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +1 -0
- package/src/vaultFactory/vaultKit.d.ts +8 -8
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.d.ts +45 -45
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +2 -0
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-651b051.0+651b051",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,32 +31,32 @@
|
|
|
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-
|
|
44
|
-
"@endo/captp": "^4.
|
|
45
|
-
"@endo/eventual-send": "^1.2.
|
|
46
|
-
"@endo/far": "^1.1.
|
|
47
|
-
"@endo/marshal": "^1.
|
|
48
|
-
"@endo/nat": "^5.0.
|
|
49
|
-
"@endo/promise-kit": "^1.1.
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-651b051.0+651b051",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-651b051.0+651b051",
|
|
36
|
+
"@agoric/governance": "0.10.4-dev-651b051.0+651b051",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-651b051.0+651b051",
|
|
38
|
+
"@agoric/notifier": "0.6.3-dev-651b051.0+651b051",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-651b051.0+651b051",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-651b051.0+651b051",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-651b051.0+651b051",
|
|
42
|
+
"@agoric/vats": "0.15.2-dev-651b051.0+651b051",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-651b051.0+651b051",
|
|
44
|
+
"@endo/captp": "^4.2.0",
|
|
45
|
+
"@endo/eventual-send": "^1.2.2",
|
|
46
|
+
"@endo/far": "^1.1.2",
|
|
47
|
+
"@endo/marshal": "^1.5.0",
|
|
48
|
+
"@endo/nat": "^5.0.7",
|
|
49
|
+
"@endo/promise-kit": "^1.1.2",
|
|
50
50
|
"jessie.js": "^0.3.4"
|
|
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-
|
|
57
|
-
"@endo/bundle-source": "^3.2.
|
|
58
|
-
"@endo/init": "^1.1.
|
|
59
|
-
"@endo/promise-kit": "^1.1.
|
|
53
|
+
"@agoric/smart-wallet": "0.5.4-dev-651b051.0+651b051",
|
|
54
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-651b051.0+651b051",
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-651b051.0+651b051",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-651b051.0+651b051",
|
|
57
|
+
"@endo/bundle-source": "^3.2.3",
|
|
58
|
+
"@endo/init": "^1.1.2",
|
|
59
|
+
"@endo/promise-kit": "^1.1.2",
|
|
60
60
|
"@fast-check/ava": "^1.1.5",
|
|
61
61
|
"ava": "^5.3.0",
|
|
62
62
|
"c8": "^9.1.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
85
|
"typeCoverage": {
|
|
86
|
-
"atLeast": 95.
|
|
86
|
+
"atLeast": 95.86
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "651b05136f236230c67c8b40224540c585beaa54"
|
|
89
89
|
}
|
|
@@ -9,7 +9,7 @@ export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit:
|
|
|
9
9
|
* sell more if there is more than one supplier of collateral, and
|
|
10
10
|
* they request inconsistent limits.
|
|
11
11
|
*/
|
|
12
|
-
addAssets(assetAmount: Amount<"nat">, sourceSeat: ZCFSeat, proceedsGoal?:
|
|
12
|
+
addAssets(assetAmount: Amount<"nat">, sourceSeat: ZCFSeat, proceedsGoal?: import("@agoric/ertp/exported.js").NatAmount | undefined): void;
|
|
13
13
|
/** @type {(reduction: Ratio) => void} */
|
|
14
14
|
settleAtNewRate(reduction: Ratio): void;
|
|
15
15
|
getCurrentPrice(): Ratio | null;
|
|
@@ -27,7 +27,7 @@ export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
|
27
27
|
marshaller: Marshaller;
|
|
28
28
|
}, baggage: Baggage): Promise<{
|
|
29
29
|
publicFacet: globalThis.GovernedPublicFacet<{
|
|
30
|
-
getElectorate: () =>
|
|
30
|
+
getElectorate: () => import("@agoric/ertp/exported.js").SetAmount<import("@endo/patterns").Key>;
|
|
31
31
|
getStartFrequency: () => RelativeTime;
|
|
32
32
|
getClockStep: () => RelativeTime;
|
|
33
33
|
getStartingRate: () => bigint;
|
|
@@ -54,18 +54,18 @@ export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
|
54
54
|
}>;
|
|
55
55
|
creatorFacet: globalThis.GovernedCreatorFacet<{
|
|
56
56
|
/**
|
|
57
|
-
* @param {Issuer} issuer
|
|
57
|
+
* @param {Issuer<'nat'>} issuer
|
|
58
58
|
* @param {Keyword} kwd
|
|
59
59
|
*/
|
|
60
|
-
addBrand(issuer: Issuer
|
|
60
|
+
addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
|
|
61
61
|
/** @returns {Promise<import('./scheduler.js').FullSchedule>} */
|
|
62
62
|
getSchedule(): Promise<import("./scheduler.js").FullSchedule>;
|
|
63
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
63
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
64
64
|
/**
|
|
65
|
-
* @param {Issuer} issuer
|
|
65
|
+
* @param {Issuer<'nat'>} issuer
|
|
66
66
|
* @param {Keyword} kwd
|
|
67
67
|
*/
|
|
68
|
-
addBrand(issuer: Issuer
|
|
68
|
+
addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
|
|
69
69
|
/** @returns {Promise<import('./scheduler.js').FullSchedule>} */
|
|
70
70
|
getSchedule(): Promise<import("./scheduler.js").FullSchedule>;
|
|
71
71
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"AAiLO,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,kBAgNf;AAiBM;;;;;;;;;;kBAZc,OAAO,cAAc,EAAE,YAAY;;;;;;;;iBAK7C;IACV,sBAA0B,EAAE,UAAU,CAAC;IACvC,WAAe,EAAE,WAAW,CAAC;IAC7B,UAAc,EAAE,UAAU,CAAC;CACxB;;;;;;;;;;QA0OE,4CAA4C;2CAAhC,KAAK,CAAC,KAAK,CAAC;;;;;;;;;;;;;kBApCT,MAAM,CAAC,KAAK,CAAC;;;;QAmG5B;;;WAGG;yBAFQ,MAAM,
|
|
1
|
+
{"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"AAiLO,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,kBAgNf;AAiBM;;;;;;;;;;kBAZc,OAAO,cAAc,EAAE,YAAY;;;;;;;;iBAK7C;IACV,sBAA0B,EAAE,UAAU,CAAC;IACvC,WAAe,EAAE,WAAW,CAAC;IAC7B,UAAc,EAAE,UAAU,CAAC;CACxB;;;;;;;;;;QA0OE,4CAA4C;2CAAhC,KAAK,CAAC,KAAK,CAAC;;;;;;;;;;;;;kBApCT,MAAM,CAAC,KAAK,CAAC;;;;QAmG5B;;;WAGG;yBAFQ,MAAM,CAAC,KAAK,CAAC,OACb,OAAO;QAwBlB,gEAAgE;uBAAlD,OAAO,CAAC,OAAO,gBAAgB,EAAE,YAAY,CAAC;;QA1B5D;;;WAGG;yBAFQ,MAAM,CAAC,KAAK,CAAC,OACb,OAAO;QAwBlB,gEAAgE;uBAAlD,OAAO,CAAC,OAAO,gBAAgB,EAAE,YAAY,CAAC;;GAQjE;AAED,6DAA6D;AAC7D,yEAAyE;AACzE,2EAA2E;AAE3E,8DAAkE;iCAJpD,UAAU,CAAC,OAAO,KAAK,CAAC;oCACxB,kBAAkB,CAAC,aAAa,CAAC;qCACjC,kBAAkB,CAAC,cAAc,CAAC;qCA3rBX,aAAa;oCAM2C,4BAA4B;6BAD/F,kBAAkB"}
|
|
@@ -693,7 +693,7 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
693
693
|
const creatorFacet = makeFarGovernorFacet(
|
|
694
694
|
Far('Auctioneer creatorFacet', {
|
|
695
695
|
/**
|
|
696
|
-
* @param {Issuer} issuer
|
|
696
|
+
* @param {Issuer<'nat'>} issuer
|
|
697
697
|
* @param {Keyword} kwd
|
|
698
698
|
*/
|
|
699
699
|
async addBrand(issuer, kwd) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern:
|
|
1
|
+
export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: globalThis.Pattern, collateralBrand: globalThis.Brand) => import("@endo/exo").Guarded<{
|
|
2
2
|
/**
|
|
3
3
|
* @param {ZCFSeat} seat
|
|
4
4
|
* @param {Ratio} bidScaling
|
|
@@ -13,7 +13,7 @@ export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: any,
|
|
|
13
13
|
updateReceived(key: any, sold: any): void;
|
|
14
14
|
exitAllSeats(): void;
|
|
15
15
|
}>;
|
|
16
|
-
export function preparePriceBook(baggage: Baggage): (priceRatioPattern:
|
|
16
|
+
export function preparePriceBook(baggage: Baggage): (priceRatioPattern: globalThis.Pattern, collateralBrand: globalThis.Brand) => import("@endo/exo").Guarded<{
|
|
17
17
|
/**
|
|
18
18
|
* @param {ZCFSeat} seat
|
|
19
19
|
* @param {Ratio} price
|
package/src/auction/params.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export namespace auctioneerParamTypes {
|
|
|
40
40
|
export function makeAuctioneerParams({ ElectorateInvitationAmount, StartFrequency, ClockStep, LowestRate, StartingRate, DiscountStep, AuctionStartDelay, PriceLockPeriod, TimerBrand, }: AuctionParams): {
|
|
41
41
|
Electorate: {
|
|
42
42
|
type: "invitation";
|
|
43
|
-
value:
|
|
43
|
+
value: import("@agoric/ertp/exported.js").SetAmount<import("@endo/patterns").Key>;
|
|
44
44
|
};
|
|
45
45
|
StartFrequency: {
|
|
46
46
|
type: "relativeTime";
|
|
@@ -101,7 +101,7 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
101
101
|
governedParams: {
|
|
102
102
|
Electorate: {
|
|
103
103
|
type: "invitation";
|
|
104
|
-
value:
|
|
104
|
+
value: import("@agoric/ertp/exported.js").SetAmount<import("@endo/patterns").Key>;
|
|
105
105
|
};
|
|
106
106
|
StartFrequency: {
|
|
107
107
|
type: "relativeTime";
|
|
@@ -4,7 +4,7 @@ export function makeScheduler(auctionDriver: AuctionDriver, timer: import("@agor
|
|
|
4
4
|
nextAuctionSchedule: Schedule | null;
|
|
5
5
|
};
|
|
6
6
|
getAuctionState: () => "active" | "waiting";
|
|
7
|
-
} & 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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sortedOffers.d.ts","sourceRoot":"","sources":["sortedOffers.js"],"names":[],"mappings":"AA8BO,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,
|
|
1
|
+
{"version":3,"file":"sortedOffers.d.ts","sourceRoot":"","sources":["sortedOffers.js"],"names":[],"mappings":"AA8BO,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"}
|
|
@@ -88,6 +88,7 @@ const bidScalingRatioFromKey = (bidScaleFloat, numBrand, useDecimals) => {
|
|
|
88
88
|
* @returns {[normalizedPrice: Ratio, sequenceNumber: bigint]}
|
|
89
89
|
*/
|
|
90
90
|
export const fromPriceOfferKey = (key, numBrand, denomBrand, useDecimals) => {
|
|
91
|
+
// @ts-expect-error XXX
|
|
91
92
|
const [pricePart, sequenceNumberPart] = decodeData(key);
|
|
92
93
|
return [
|
|
93
94
|
priceRatioFromFloat(pricePart, numBrand, denomBrand, useDecimals),
|
package/src/auction/util.d.ts
CHANGED
|
@@ -27,6 +27,6 @@ export function makeBrandedRatioPattern(numeratorAmountShape: {
|
|
|
27
27
|
export function isScaledBidPriceHigher(bidScaling: Ratio, currentPrice: Ratio, oraclePrice: Ratio): boolean;
|
|
28
28
|
/** @type {(quote: PriceQuote) => Ratio} */
|
|
29
29
|
export const priceFrom: (quote: PriceQuote) => Ratio;
|
|
30
|
-
export function makeCancelTokenMaker(name: any): () => import("@endo/eventual-send").RemotableBrand<{}, {}>;
|
|
30
|
+
export function makeCancelTokenMaker(name: any): () => import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>;
|
|
31
31
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
32
32
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AASA,8HAA8H;AAE9H;;;;GAIG;AACH,2BAFU;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAKhD;AAMK,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,+CADkC,KAAK,CAKnC;AAEG,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AASA,8HAA8H;AAE9H;;;;GAIG;AACH,2BAFU;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAKhD;AAMK,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,+CADkC,KAAK,CAKnC;AAEG,4KAIN;gCA/C6F,4BAA4B"}
|
package/src/contractSupport.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export namespace ratioPattern {
|
|
|
6
6
|
export { amountPattern as numerator };
|
|
7
7
|
export { amountPattern as denominator };
|
|
8
8
|
}
|
|
9
|
-
export function addSubtract<
|
|
9
|
+
export function addSubtract<A extends globalThis.Amount>(base: A, gain: A, loss: A): A;
|
|
10
10
|
export function subtractToEmpty<T extends globalThis.Amount>(left: T, right: T): T;
|
|
11
11
|
export function assertOnlyKeys(proposal: ProposalRecord, keys: string[]): void;
|
|
12
12
|
export function allEmpty(amounts: Amount[]): boolean;
|
|
@@ -16,16 +16,10 @@ export function makeNatAmountShape(brand: Brand, min?: bigint | undefined): {
|
|
|
16
16
|
value: import("@endo/patterns").Matcher;
|
|
17
17
|
};
|
|
18
18
|
export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): Ratio;
|
|
19
|
-
/**
|
|
20
|
-
* <T>
|
|
21
|
-
*/
|
|
22
19
|
export type MetricsPublisherKit<T> = {
|
|
23
20
|
metricsPublication: IterationObserver<T>;
|
|
24
21
|
metricsSubscription: StoredSubscription<T>;
|
|
25
22
|
};
|
|
26
|
-
/**
|
|
27
|
-
* <T>
|
|
28
|
-
*/
|
|
29
23
|
export type MetricsPublishKit<T> = {
|
|
30
24
|
metricsPublisher: Publisher<T>;
|
|
31
25
|
metricsSubscriber: StoredSubscriber<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA6BO,
|
|
1
|
+
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA6BO,4BAFM,CAAC,kCAAD,CAAC,AAHF,QAGC,CAAC,AAFF,QAEC,CAAC,AADF,GACC,CAAC,CAGyC;AAQhD,gCAFM,CAAC,kCAAD,CAAC,AAFF,SAEC,CAAC,AADF,GACC,CAAC,CAK2C;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAQM,0CALI,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,UACb,MAAM,CAAC,KAAK,CAAC,QASvB;AAoBM,0CAHI,KAAK;;;EAIsC;AAG/C,mGAC4D;gCAnBlC,CAAC;wBADpB,iBAAiB,CACE,CAAC,AADD,CAAC;yBACpB,kBAAkB,CAAC,CAAC,CAAC;;8BAOJ,CAAC;sBADlB,SAAS,CACQ,CAAC,AADP,CAAC;uBACZ,gBAAgB,CAAC,CAAC,CAAC;;sCApF6D,4BAA4B"}
|
package/src/contractSupport.js
CHANGED
|
@@ -21,11 +21,11 @@ export const ratioPattern = harden({
|
|
|
21
21
|
* proposal. We use two Amounts because an Amount cannot represent a negative
|
|
22
22
|
* number (so we use a "loss" that will be subtracted).
|
|
23
23
|
*
|
|
24
|
-
* @template {
|
|
25
|
-
* @param {
|
|
26
|
-
* @param {
|
|
27
|
-
* @param {
|
|
28
|
-
* @returns {
|
|
24
|
+
* @template {Amount} A
|
|
25
|
+
* @param {A} base
|
|
26
|
+
* @param {A} gain
|
|
27
|
+
* @param {A} loss
|
|
28
|
+
* @returns {A}
|
|
29
29
|
*/
|
|
30
30
|
export const addSubtract = (base, gain, loss) =>
|
|
31
31
|
AmountMath.subtract(AmountMath.add(base, gain), loss);
|
|
@@ -79,14 +79,14 @@ export const checkDebtLimit = (debtLimit, totalDebt, toMint) => {
|
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* @template T
|
|
82
|
-
* @typedef {object} MetricsPublisherKit
|
|
82
|
+
* @typedef {object} MetricsPublisherKit
|
|
83
83
|
* @property {IterationObserver<T>} metricsPublication
|
|
84
84
|
* @property {StoredSubscription<T>} metricsSubscription
|
|
85
85
|
*/
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* @template T
|
|
89
|
-
* @typedef {object} MetricsPublishKit
|
|
89
|
+
* @typedef {object} MetricsPublishKit
|
|
90
90
|
* @property {Publisher<T>} metricsPublisher
|
|
91
91
|
* @property {StoredSubscriber<T>} metricsSubscriber
|
|
92
92
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAcA;;;;;GAKG;AAEH,iEAAkE;AAoBlE,2BAA2B;AAC3B,mBADW,YAAY,CAMrB;AAQK,2BAJI,GAAG,CAAC;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,eACpD,SAAS,WACT,OAAO,kBAAkB,EAAE,OAAO;;
|
|
1
|
+
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAcA;;;;;GAKG;AAEH,iEAAkE;AAoBlE,2BAA2B;AAC3B,mBADW,YAAY,CAMrB;AAQK,2BAJI,GAAG,CAAC;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,eACpD,SAAS,WACT,OAAO,kBAAkB,EAAE,OAAO;;QAsHvC;;;;WAIG;wCAHQ,QAAQ,iBACR,oBAAoB,CAAC,GAAG,CAAC;;;;;0CAxE7B,QAAQ,cACR,MAAM,cACN,MAAM,EAAE,YACR,OAAO,cAAc,EAAE,cAAc;;;;GAkFjD;;cAjKa,MAAM;cACN,QAAQ;YACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;mBACV;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE"}
|
package/src/feeDistributor.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const meta: ContractMeta;
|
|
3
3
|
export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
|
|
4
4
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
5
|
-
} & 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>>;
|
|
7
7
|
}>;
|
|
8
8
|
export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: globalThis.ERef<TimerService>, collectionInterval?: RelativeTime | undefined): 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>>;
|
|
25
|
-
} & 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>>;
|
|
27
27
|
}>;
|
|
28
28
|
/**
|
|
@@ -39,7 +39,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
39
39
|
*/
|
|
40
40
|
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
41
41
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
42
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
42
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
43
43
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
@@ -53,17 +53,17 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
53
53
|
*/
|
|
54
54
|
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
|
|
55
55
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
56
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
56
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
57
57
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
58
58
|
}>;
|
|
59
59
|
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
60
60
|
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
61
61
|
/** @param {Record<Keyword, bigint>} newShares */
|
|
62
62
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
63
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
63
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
64
64
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
65
65
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
66
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
66
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
67
67
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
@@ -80,7 +80,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
80
80
|
*/
|
|
81
81
|
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
82
82
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
83
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
83
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
84
84
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
85
85
|
}>;
|
|
86
86
|
/**
|
|
@@ -94,7 +94,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
94
94
|
*/
|
|
95
95
|
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
|
|
96
96
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
97
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
97
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
98
98
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
99
99
|
}>;
|
|
100
100
|
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
@@ -105,7 +105,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
105
105
|
publicFacet: {
|
|
106
106
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
107
107
|
getKeywordShares: () => Record<string, bigint>;
|
|
108
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
108
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
109
109
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
110
110
|
getKeywordShares: () => Record<string, bigint>;
|
|
111
111
|
}>;
|
|
@@ -114,7 +114,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
114
114
|
creatorFacet: {
|
|
115
115
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
116
116
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
117
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
117
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
118
118
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
119
119
|
}>;
|
|
120
120
|
/**
|
|
@@ -131,7 +131,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
131
131
|
*/
|
|
132
132
|
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
133
133
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
134
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
134
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
135
135
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
136
136
|
}>;
|
|
137
137
|
/**
|
|
@@ -145,17 +145,17 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
145
145
|
*/
|
|
146
146
|
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
|
|
147
147
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
148
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
148
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
149
149
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
150
150
|
}>;
|
|
151
151
|
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
152
152
|
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
153
153
|
/** @param {Record<Keyword, bigint>} newShares */
|
|
154
154
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
155
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
155
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
156
156
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
157
157
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
158
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
158
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
159
159
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
160
160
|
}>;
|
|
161
161
|
/**
|
|
@@ -172,7 +172,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
172
172
|
*/
|
|
173
173
|
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
174
174
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
175
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
175
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
176
176
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
177
177
|
}>;
|
|
178
178
|
/**
|
|
@@ -186,7 +186,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
186
186
|
*/
|
|
187
187
|
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
|
|
188
188
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
189
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
189
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
190
190
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
191
191
|
}>;
|
|
192
192
|
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
@@ -197,7 +197,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
197
197
|
publicFacet: {
|
|
198
198
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
199
199
|
getKeywordShares: () => Record<string, bigint>;
|
|
200
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
200
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
201
201
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
202
202
|
getKeywordShares: () => Record<string, bigint>;
|
|
203
203
|
}>;
|
|
@@ -22,7 +22,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
|
|
|
22
22
|
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
23
23
|
Electorate: "invitation";
|
|
24
24
|
}>;
|
|
25
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
25
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
26
26
|
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
27
27
|
Electorate: "invitation";
|
|
28
28
|
}>;
|
|
@@ -32,7 +32,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
|
|
|
32
32
|
makeOracleInvitation(oracleId: string): Promise<Invitation<{
|
|
33
33
|
invitationMakers: {
|
|
34
34
|
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
|
|
35
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
35
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
36
36
|
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
|
|
37
37
|
}>;
|
|
38
38
|
oracle: import("@endo/exo").Guarded<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK;;aAfS,KAAK,CAAC,KAAK,CAAC;cACX,KAAK,CAAC,KAAK,CAAC;iBACT,MAAM;mBACJ,MAAM,CAAC,KAAK,CAAC;iBAGxB;IACV,0BAA8B,CAAC,EAAE,OAAO,0CAA0C,EAAE,sBAAsB,CAAC;IAC3G,sBAA0B,EAAE,UAAU,CAAC;IACvC,UAAc,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACjC,mBAAuB,EAAE,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,CAAC;IAChE,WAAe,EAAE,WAAW,CAAC;CAC1B;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK;;aAfS,KAAK,CAAC,KAAK,CAAC;cACX,KAAK,CAAC,KAAK,CAAC;iBACT,MAAM;mBACJ,MAAM,CAAC,KAAK,CAAC;iBAGxB;IACV,0BAA8B,CAAC,EAAE,OAAO,0CAA0C,EAAE,sBAAsB,CAAC;IAC3G,sBAA0B,EAAE,UAAU,CAAC;IACvC,UAAc,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACjC,mBAAuB,EAAE,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,CAAC;IAChE,WAAe,EAAE,WAAW,CAAC;CAC1B;;;;;;;;;;;;;;;sCAwI45F,OAAO,oBAAoB,EAAE,UAAU;;mEAAV,UAAU;;;6EA5It8F,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0IR;kCAnL8B,cAAc;6BADnB,kBAAkB"}
|
|
@@ -67,6 +67,7 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
67
67
|
|
|
68
68
|
// xxx uses contract baggage as issuerBagage, assumes one issuer in this contract
|
|
69
69
|
/** @type {import('./roundsManager.js').QuoteKit} */
|
|
70
|
+
// @ts-expect-error cast
|
|
70
71
|
const quoteIssuerKit = prepareIssuerKit(
|
|
71
72
|
baggage,
|
|
72
73
|
'quote',
|
|
@@ -20,7 +20,7 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
20
20
|
invitationMakers: {
|
|
21
21
|
/** @param {import('./roundsManager.js').PriceRound} result */
|
|
22
22
|
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
|
|
23
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
23
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
24
24
|
/** @param {import('./roundsManager.js').PriceRound} result */
|
|
25
25
|
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
|
|
26
26
|
}>;
|
|
@@ -78,8 +78,8 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
|
|
|
78
78
|
contract: {
|
|
79
79
|
/** @param {PriceQuoteValue} quote */
|
|
80
80
|
authenticateQuote(quote: PriceQuoteValue): Promise<{
|
|
81
|
-
quoteAmount:
|
|
82
|
-
quotePayment: globalThis.Payment<"set">;
|
|
81
|
+
quoteAmount: import("@agoric/ertp/exported.js").SetAmount<PriceDescription>;
|
|
82
|
+
quotePayment: globalThis.Payment<"set", PriceDescription>;
|
|
83
83
|
}>;
|
|
84
84
|
/**
|
|
85
85
|
* @param {object} param0
|
|
@@ -90,11 +90,11 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
|
|
|
90
90
|
overrideValueOut?: number | undefined;
|
|
91
91
|
timestamp?: Timestamp | undefined;
|
|
92
92
|
}): ((priceQuery: any) => Promise<{
|
|
93
|
-
quoteAmount:
|
|
94
|
-
quotePayment: globalThis.Payment<"set">;
|
|
95
|
-
}> | undefined) & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
|
|
96
|
-
quoteAmount:
|
|
97
|
-
quotePayment: globalThis.Payment<"set">;
|
|
93
|
+
quoteAmount: import("@agoric/ertp/exported.js").SetAmount<PriceDescription>;
|
|
94
|
+
quotePayment: globalThis.Payment<"set", PriceDescription>;
|
|
95
|
+
}> | undefined) & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
|
|
96
|
+
quoteAmount: import("@agoric/ertp/exported.js").SetAmount<PriceDescription>;
|
|
97
|
+
quotePayment: globalThis.Payment<"set", PriceDescription>;
|
|
98
98
|
}> | undefined>;
|
|
99
99
|
/**
|
|
100
100
|
* @param {OracleStatus} status
|
|
@@ -177,7 +177,18 @@ export type RoundDetails = {
|
|
|
177
177
|
minSubmissions: number;
|
|
178
178
|
roundTimeout: number;
|
|
179
179
|
};
|
|
180
|
-
export type QuoteKit =
|
|
180
|
+
export type QuoteKit = {
|
|
181
|
+
mint: globalThis.Mint<"set", PriceDescription>;
|
|
182
|
+
/**
|
|
183
|
+
* Externally useful only if this
|
|
184
|
+
* issuer uses recovery sets. Can be used to get the recovery set associated
|
|
185
|
+
* with minted payments that are still live.
|
|
186
|
+
*/
|
|
187
|
+
mintRecoveryPurse: globalThis.Purse<"set", PriceDescription>;
|
|
188
|
+
issuer: globalThis.Issuer<"set", PriceDescription>;
|
|
189
|
+
brand: globalThis.Brand<"set">;
|
|
190
|
+
displayInfo: globalThis.DisplayInfo;
|
|
191
|
+
};
|
|
181
192
|
export type HeldParams = {
|
|
182
193
|
readonly maxSubmissionCount: number;
|
|
183
194
|
readonly minSubmissionCount: number;
|
|
@@ -223,4 +234,5 @@ import type { TimerService } from '@agoric/time';
|
|
|
223
234
|
import type { OracleStatus } from './priceOracleKit.js';
|
|
224
235
|
import type { Timestamp } from '@agoric/time';
|
|
225
236
|
import type { PriceQuoteValue } from '@agoric/zoe/tools/types.js';
|
|
237
|
+
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
226
238
|
//# sourceMappingURL=roundsManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roundsManager.d.ts","sourceRoot":"","sources":["roundsManager.js"],"names":[],"mappings":"AAyBA,qBAAqB;AACrB,wBADW,MAAM,CAC4B;AAmEtC;cAxBU,QAAQ;qBACD,SAAS,CAAC,IAAI,CAAC;aACvB,KAAK,CAAC,KAAK,CAAC;cACX,KAAK,CAAC,KAAK,CAAC;0BACA,OAAO,6CAA6C,EAAE,QAAQ,CAAC,WAAW,CAAC;;;kBAmD5D,MAAM,CAAC,KAAK,CAAC;;;QAwDjD,8BAA8B;sCAAlB,MAAM;QAQlB;;;WAGG;+CADQ,MAAM;QAQjB,8BAA8B;oCAAlB,MAAM;QASlB,8BAA8B;6BAAlB,MAAM;QAMlB;;;;WAIG;oCAHQ,MAAM,uCAEN,MAAM;QA4CjB;;;WAGG;8CAFQ,MAAM,QACN,MAAM;QAOjB;;;;;WAKG;iCAJQ,MAAM;QAoBjB;;;;;WAKG;qCAJQ,MAAM,WACN,MAAM;QA0BjB;;;WAGG;8BAFQ,MAAM;QAYjB;;;WAGG;0BAFQ,MAAM;QA0BjB;;;WAGG;mCAFQ,MAAM;QAiCjB;;;WAGG;yCAFQ,MAAM;QA4BjB;;;;;WAKG;2DAHQ,MAAM,8BAEJ,MAAM,GAAG,IAAI;;;QA8B1B,qCAAqC;;;;;QAQrC;;;;WAIG;;YAFwB,gBAAgB;YACb,SAAS;;;;;;;;QAwEvC;;;;WAIG;uEAFQ,MAAM;QAoBjB;;;;;;WAMG;iCAFQ,MAAM,GAAG,MAAM,GACb,OAAO,CAAC,SAAS,CAAC;QAwB/B,kEAAkE;gCAA7C,MAAM,GAAK,QAAQ,CAAC,YAAY,GAAG,KAAK,CAAC;QAS9D;;;;;;;WAOG;;;;;;;;;;QAwDH;;;;;WAKG;uFADQ,UAAU;;GA+D1B;yBAprBU;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAE;0BAEpD,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE;wBAG/D,KAAK,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;;;;YAI3B,MAAM;;;;;;;;;;;;;;;;;qBAKN,MAAM;;;iBAQN,MAAM,EAAE;oBACR,MAAM;oBACN,MAAM;kBACN,MAAM
|
|
1
|
+
{"version":3,"file":"roundsManager.d.ts","sourceRoot":"","sources":["roundsManager.js"],"names":[],"mappings":"AAyBA,qBAAqB;AACrB,wBADW,MAAM,CAC4B;AAmEtC;cAxBU,QAAQ;qBACD,SAAS,CAAC,IAAI,CAAC;aACvB,KAAK,CAAC,KAAK,CAAC;cACX,KAAK,CAAC,KAAK,CAAC;0BACA,OAAO,6CAA6C,EAAE,QAAQ,CAAC,WAAW,CAAC;;;kBAmD5D,MAAM,CAAC,KAAK,CAAC;;;QAwDjD,8BAA8B;sCAAlB,MAAM;QAQlB;;;WAGG;+CADQ,MAAM;QAQjB,8BAA8B;oCAAlB,MAAM;QASlB,8BAA8B;6BAAlB,MAAM;QAMlB;;;;WAIG;oCAHQ,MAAM,uCAEN,MAAM;QA4CjB;;;WAGG;8CAFQ,MAAM,QACN,MAAM;QAOjB;;;;;WAKG;iCAJQ,MAAM;QAoBjB;;;;;WAKG;qCAJQ,MAAM,WACN,MAAM;QA0BjB;;;WAGG;8BAFQ,MAAM;QAYjB;;;WAGG;0BAFQ,MAAM;QA0BjB;;;WAGG;mCAFQ,MAAM;QAiCjB;;;WAGG;yCAFQ,MAAM;QA4BjB;;;;;WAKG;2DAHQ,MAAM,8BAEJ,MAAM,GAAG,IAAI;;;QA8B1B,qCAAqC;;;;;QAQrC;;;;WAIG;;YAFwB,gBAAgB;YACb,SAAS;;;;;;;;QAwEvC;;;;WAIG;uEAFQ,MAAM;QAoBjB;;;;;;WAMG;iCAFQ,MAAM,GAAG,MAAM,GACb,OAAO,CAAC,SAAS,CAAC;QAwB/B,kEAAkE;gCAA7C,MAAM,GAAK,QAAQ,CAAC,YAAY,GAAG,KAAK,CAAC;QAS9D;;;;;;;WAOG;;;;;;;;;;QAwDH;;;;;WAKG;uFADQ,UAAU;;GA+D1B;yBAprBU;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAE;0BAEpD,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE;wBAG/D,KAAK,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;;;;YAI3B,MAAM;;;;;;;;;;;;;;;;;qBAKN,MAAM;;;iBAQN,MAAM,EAAE;oBACR,MAAM;oBACN,MAAM;kBACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAQH,QAAQ;8BACD,SAAS,CAAC,IAAI,CAAC;sBACvB,KAAK,CAAC,KAAK,CAAC;uBACX,KAAK,CAAC,KAAK,CAAC;mCACA,OAAO,6CAA6C,EAAE,QAAQ,CAAC,WAAW,CAAC;;;6BAK3F,QAAQ,CACpB,UAAc,GAAG;IACjB,OAAa,EAAE,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC9C,MAAY,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACtC,MAAY,EAAE,MAAM,CAAC;CAChB,CACF;2BAES;IACZ,qBAAyB,EAAE,MAAM,QAAE;IACnC,gBAAoB,EAAE,MAAM,CAAC;CAC1B;oBAEU,cAAc,GAAG,YAAY;kCAzED,cAAc;kCACzB,qBAAqB;+BADV,cAAc;qCADqC,4BAA4B;sCAA5B,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-auction.d.ts","sourceRoot":"","sources":["add-auction.js"],"names":[],"mappings":"AASO,8bADK,OAAO,qBAAqB,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"add-auction.d.ts","sourceRoot":"","sources":["add-auction.js"],"names":[],"mappings":"AASO,8bADK,OAAO,qBAAqB,EAAE,sBAAsB,iBA0I/D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BG;AAGI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEN;uBAjLsB,gCAAgC"}
|
|
@@ -121,11 +121,15 @@ export const addAuction = async ({
|
|
|
121
121
|
const { Bid: _istIssuer, ...auctionIssuers } = allIssuers;
|
|
122
122
|
await Promise.all(
|
|
123
123
|
Object.keys(auctionIssuers).map(kwd =>
|
|
124
|
-
E(governedCreatorFacet).addBrand(
|
|
124
|
+
E(governedCreatorFacet).addBrand(
|
|
125
|
+
/** @type {Issuer<'nat'>} */ (auctionIssuers[kwd]),
|
|
126
|
+
kwd,
|
|
127
|
+
),
|
|
125
128
|
),
|
|
126
129
|
);
|
|
127
130
|
|
|
128
131
|
newAuctioneerKit.resolve(
|
|
132
|
+
// @ts-expect-error XXX governance types
|
|
129
133
|
harden({
|
|
130
134
|
label: 'auctioneer',
|
|
131
135
|
creatorFacet: governedCreatorFacet,
|
|
@@ -27,7 +27,7 @@ export const storeInterContractStartKits = async ({
|
|
|
27
27
|
},
|
|
28
28
|
}) => {
|
|
29
29
|
/**
|
|
30
|
-
* @param {Promise<MapStore<
|
|
30
|
+
* @param {Promise<MapStore<Instance, { instance: Instance }>>} storeP
|
|
31
31
|
* @param {Promise<{ instance: Instance }>[]} kitPs
|
|
32
32
|
*/
|
|
33
33
|
const storeAll = async (storeP, kitPs) => {
|