@agoric/inter-protocol 0.17.0-u19.2 → 0.17.0-u21.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 +33 -32
- package/src/auction/auctionBook.d.ts +2 -2
- package/src/auction/auctioneer.d.ts +5 -4
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +2 -0
- package/src/auction/offerBook.d.ts +3 -2
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +5 -1
- package/src/auction/params.d.ts +2 -1
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +1 -0
- package/src/auction/scheduler.d.ts +1 -1
- package/src/auction/util.d.ts +2 -1
- package/src/auction/util.d.ts.map +1 -1
- package/src/auction/util.js +4 -1
- package/src/clientSupport.d.ts +1 -0
- package/src/clientSupport.d.ts.map +1 -1
- package/src/clientSupport.js +6 -1
- package/src/contractSupport.d.ts +1 -1
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +4 -4
- package/src/feeDistributor.d.ts +17 -17
- package/src/interest-math.js +1 -1
- package/src/interest.d.ts +3 -1
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +2 -5
- package/src/price/fluxAggregatorContract.d.ts +6 -6
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.d.ts +4 -4
- package/src/price/roundsManager.d.ts +1 -1
- package/src/proposals/addAssetToVault.js +1 -1
- package/src/proposals/econ-behaviors.js +17 -3
- package/src/proposals/upgrade-vaults.js +1 -2
- package/src/provisionPool.d.ts +17 -5
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPool.js +17 -11
- package/src/provisionPoolKit.d.ts +26 -11
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +111 -51
- package/src/psm/psm.d.ts +10 -6
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +1 -0
- package/src/reserve/assetReserve.d.ts +12 -2
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +4 -0
- package/src/reserve/assetReserveKit.d.ts +30 -2
- package/src/reserve/assetReserveKit.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.js +108 -1
- package/src/reserve/params.d.ts +5 -1
- package/src/reserve/params.d.ts.map +1 -1
- package/src/reserve/params.js +4 -0
- package/src/vaultFactory/liquidation.d.ts +2 -0
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +5 -5
- package/src/vaultFactory/math.js +1 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +19 -18
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.js +4 -2
- package/src/vaultFactory/params.d.ts +5 -2
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +5 -2
- package/src/vaultFactory/prioritizedVaults.d.ts +58 -57
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +5 -2
- package/src/vaultFactory/storeUtils.d.ts +2 -2
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.d.ts +2 -2
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +5 -2
- package/src/vaultFactory/vault.d.ts +9 -9
- package/src/vaultFactory/vaultDirector.d.ts +46 -44
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +2 -0
- package/src/vaultFactory/vaultFactory.d.ts +62 -15
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +6 -2
- package/src/vaultFactory/vaultHolder.d.ts +32 -32
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +4 -0
- package/src/vaultFactory/vaultKit.d.ts +6 -6
- package/src/vaultFactory/vaultManager.d.ts +61 -58
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +4 -2
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.17.0-
|
|
3
|
+
"version": "0.17.0-u21.0",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^20.9 || ^22.11"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "yarn build:bundles",
|
|
12
12
|
"build:bundles": "node ./scripts/build-bundles.js",
|
|
13
|
-
"prepack": "tsc --build tsconfig.build.json",
|
|
13
|
+
"prepack": "yarn run -T tsc --build tsconfig.build.json",
|
|
14
14
|
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
|
|
15
15
|
"test": "ava",
|
|
16
16
|
"test:c8": "c8 --all $C8_OPTIONS ava",
|
|
17
17
|
"test:xs": "exit 0",
|
|
18
18
|
"lint-fix": "yarn lint:eslint --fix",
|
|
19
|
-
"lint": "run-s --continue-on-error lint:*",
|
|
20
|
-
"lint:eslint": "eslint .",
|
|
21
|
-
"lint:types": "tsc"
|
|
19
|
+
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
20
|
+
"lint:eslint": "yarn run -T eslint .",
|
|
21
|
+
"lint:types": "yarn run -T tsc"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -31,35 +31,36 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/
|
|
35
|
-
"@agoric/
|
|
36
|
-
"@agoric/
|
|
37
|
-
"@agoric/
|
|
38
|
-
"@agoric/
|
|
39
|
-
"@agoric/
|
|
40
|
-
"@agoric/
|
|
41
|
-
"@agoric/
|
|
42
|
-
"@agoric/
|
|
43
|
-
"@agoric/
|
|
44
|
-
"@
|
|
45
|
-
"@endo/
|
|
46
|
-
"@endo/
|
|
47
|
-
"@endo/
|
|
48
|
-
"@endo/
|
|
49
|
-
"@endo/
|
|
50
|
-
"@endo/
|
|
34
|
+
"@agoric/base-zone": "workspace:*",
|
|
35
|
+
"@agoric/ertp": "workspace:*",
|
|
36
|
+
"@agoric/governance": "workspace:*",
|
|
37
|
+
"@agoric/internal": "workspace:*",
|
|
38
|
+
"@agoric/notifier": "workspace:*",
|
|
39
|
+
"@agoric/store": "workspace:*",
|
|
40
|
+
"@agoric/time": "workspace:*",
|
|
41
|
+
"@agoric/vat-data": "workspace:*",
|
|
42
|
+
"@agoric/vats": "workspace:*",
|
|
43
|
+
"@agoric/zoe": "workspace:*",
|
|
44
|
+
"@agoric/zone": "workspace:*",
|
|
45
|
+
"@endo/captp": "^4.4.5",
|
|
46
|
+
"@endo/errors": "^1.2.10",
|
|
47
|
+
"@endo/eventual-send": "^1.3.1",
|
|
48
|
+
"@endo/far": "^1.1.11",
|
|
49
|
+
"@endo/marshal": "^1.6.4",
|
|
50
|
+
"@endo/nat": "^5.1.0",
|
|
51
|
+
"@endo/promise-kit": "^1.1.10",
|
|
51
52
|
"jessie.js": "^0.3.4"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"@agoric/smart-wallet": "
|
|
55
|
-
"@agoric/swingset-liveslots": "
|
|
56
|
-
"@agoric/swingset-vat": "
|
|
57
|
-
"@endo/bundle-source": "^
|
|
58
|
-
"@endo/init": "^1.1.
|
|
59
|
-
"@endo/promise-kit": "^1.1.
|
|
55
|
+
"@agoric/smart-wallet": "workspace:*",
|
|
56
|
+
"@agoric/swingset-liveslots": "workspace:*",
|
|
57
|
+
"@agoric/swingset-vat": "workspace:*",
|
|
58
|
+
"@endo/bundle-source": "^4.0.0",
|
|
59
|
+
"@endo/init": "^1.1.9",
|
|
60
|
+
"@endo/promise-kit": "^1.1.10",
|
|
60
61
|
"@fast-check/ava": "^1.1.5",
|
|
61
62
|
"ava": "^5.3.0",
|
|
62
|
-
"c8": "^10.1.
|
|
63
|
+
"c8": "^10.1.3",
|
|
63
64
|
"deep-object-diff": "^1.1.9",
|
|
64
65
|
"import-meta-resolve": "^4.1.0"
|
|
65
66
|
},
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
"access": "public"
|
|
83
84
|
},
|
|
84
85
|
"typeCoverage": {
|
|
85
|
-
"atLeast": 95.
|
|
86
|
+
"atLeast": 95.72
|
|
86
87
|
},
|
|
87
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "e4dd46857133403d584bcf822a81817b355532f9"
|
|
88
89
|
}
|
|
@@ -84,8 +84,8 @@ export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit:
|
|
|
84
84
|
*/
|
|
85
85
|
addOffer(offerSpec: OfferSpec, seat: ZCFSeat, trySettle: boolean): void;
|
|
86
86
|
getSeats(): {
|
|
87
|
-
collateralSeat: ZCFSeat;
|
|
88
|
-
bidHoldingSeat: ZCFSeat;
|
|
87
|
+
collateralSeat: globalThis.ZCFSeat;
|
|
88
|
+
bidHoldingSeat: globalThis.ZCFSeat;
|
|
89
89
|
};
|
|
90
90
|
exitAllSeats(): void;
|
|
91
91
|
endAuction(): void;
|
|
@@ -2,7 +2,7 @@ export function distributeProportionalSharesWithLimits(unsoldCollateral: Amount<
|
|
|
2
2
|
seat: ZCFSeat;
|
|
3
3
|
amount: Amount<"nat">;
|
|
4
4
|
goal: Amount<"nat">;
|
|
5
|
-
}[], collateralSeat: ZCFSeat, bidHoldingSeat: ZCFSeat, collateralKeyword: string, reserveSeat: ZCFSeat, brand: Brand): TransferPart[];
|
|
5
|
+
}[], collateralSeat: ZCFSeat, bidHoldingSeat: ZCFSeat, collateralKeyword: string, reserveSeat: ZCFSeat, brand: Brand): globalThis.TransferPart[];
|
|
6
6
|
export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
7
7
|
timerService: import("@agoric/time").TimerService;
|
|
8
8
|
reservePublicFacet: AssetReservePublicFacet;
|
|
@@ -22,7 +22,7 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
|
22
22
|
getAuctionStartDelay: () => RelativeTime;
|
|
23
23
|
getPriceLockPeriod: () => RelativeTime;
|
|
24
24
|
/** @param {Brand<'nat'>} collateralBrand */
|
|
25
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, import("./auctionBook.js").OfferSpec>>;
|
|
25
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<globalThis.Invitation<string, import("./auctionBook.js").OfferSpec>>;
|
|
26
26
|
getSchedules(): {
|
|
27
27
|
liveAuctionSchedule: import("./scheduler.js").Schedule | null;
|
|
28
28
|
nextAuctionSchedule: import("./scheduler.js").Schedule | null;
|
|
@@ -34,7 +34,7 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
|
34
34
|
} | {
|
|
35
35
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./scheduler.js").ScheduleNotification>;
|
|
36
36
|
};
|
|
37
|
-
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
37
|
+
makeDepositInvitation: () => Promise<globalThis.Invitation<string, {
|
|
38
38
|
goal: Amount<"nat">;
|
|
39
39
|
}>>;
|
|
40
40
|
}>;
|
|
@@ -46,7 +46,7 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
|
|
|
46
46
|
addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
|
|
47
47
|
/** @returns {Promise<import('./scheduler.js').FullSchedule>} */
|
|
48
48
|
getSchedule(): Promise<import("./scheduler.js").FullSchedule>;
|
|
49
|
-
} &
|
|
49
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
50
50
|
/**
|
|
51
51
|
* @param {Issuer<'nat'>} issuer
|
|
52
52
|
* @param {Keyword} kwd
|
|
@@ -66,4 +66,5 @@ export type AuctioneerCreatorFacet = AuctioneerContract["creatorFacet"];
|
|
|
66
66
|
import { auctioneerParamTypes } from './params.js';
|
|
67
67
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
68
68
|
import type { Baggage } from '@agoric/vat-data';
|
|
69
|
+
import type { ContractOf } from '@agoric/zoe/src/zoeService/utils.js';
|
|
69
70
|
//# sourceMappingURL=auctioneer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"AAoLO,yEAXI,MAAM,CAAC,KAAK,CAAC,YACb,MAAM,CAAC,KAAK,CAAC,YACb;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAAE,EAAE,kBAC/D,OAAO,kBACP,OAAO,qBAEP,MAAM,eAEN,OAAO,SACP,KAAK,6BAgNf;AAiBM,2BAdI,GAAG,CACT,eAAe,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAC7C,YAAY,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IAClD,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,cAAc,EAAE,cAAc,CAAC;CAChC,CACF,eACO;IACN,sBAAsB,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;CACxB,WACO,OAAO;;;;;;;;;;QAqOZ,4CAA4C;2CAAhC,KAAK,CAAC,KAAK,CAAC;;;;;;;;;;;;;kBApCT,MAAM,CAAC,KAAK,CAAC;;;;QAkG5B;;;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,WAAW,OAAO,KAAK,CAAC;oCACxB,kBAAkB,CAAC,aAAa,CAAC;qCACjC,kBAAkB,CAAC,cAAc,CAAC;qCA1rBX,aAAa;oCAS2C,4BAA4B;6BAF/F,kBAAkB;gCACf,qCAAqC"}
|
|
@@ -36,7 +36,9 @@ import { AuctionState } from './util.js';
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* @import {TypedPattern} from '@agoric/internal';
|
|
39
|
+
* @import {MapStore} from '@agoric/store';
|
|
39
40
|
* @import {Baggage} from '@agoric/vat-data';
|
|
41
|
+
* @import {ContractOf} from '@agoric/zoe/src/zoeService/utils.js';
|
|
40
42
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
41
43
|
*/
|
|
42
44
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern:
|
|
1
|
+
export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: 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: glob
|
|
|
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: Pattern, collateralBrand: globalThis.Brand) => import("@endo/exo").Guarded<{
|
|
17
17
|
/**
|
|
18
18
|
* @param {ZCFSeat} seat
|
|
19
19
|
* @param {Ratio} price
|
|
@@ -42,4 +42,5 @@ export type BidderRecord = {
|
|
|
42
42
|
price: Ratio;
|
|
43
43
|
});
|
|
44
44
|
import type { Baggage } from '@agoric/vat-data';
|
|
45
|
+
import type { Pattern } from '@endo/patterns';
|
|
45
46
|
//# sourceMappingURL=offerBook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"AAsDO,8CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,cACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,gBACb,OAAO;IAsBlB,gCAAgC;4BAApB,KAAK;;;;;GAqCpB;AAcI,0CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,SACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,gBACb,OAAO;;;;;;GA0DrB;2BAnMU;IACR,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,MAAM,EAAE,QAAQ,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CACzB,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,GAAG,CAC1B;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GACzC;IAAE,UAAU,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAC1C;6BAtBoB,kBAAkB;6BACb,gBAAgB"}
|
package/src/auction/offerBook.js
CHANGED
|
@@ -12,7 +12,11 @@ import {
|
|
|
12
12
|
toScaledRateOfferKey,
|
|
13
13
|
} from './sortedOffers.js';
|
|
14
14
|
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* @import {MapStore} from '@agoric/store';
|
|
17
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
18
|
+
* @import {Key, Pattern} from '@endo/patterns';
|
|
19
|
+
*/
|
|
16
20
|
|
|
17
21
|
// multiple offers might be provided at the same time (since the time
|
|
18
22
|
// granularity is limited to blocks), so we increment a sequenceNumber with each
|
package/src/auction/params.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
87
87
|
}, timer: ERef<import("@agoric/time").TimerService>, priceAuthority: ERef<PriceAuthority>, reservePublicFacet: ERef<AssetReservePublicFacet>, params: AuctionParams): {
|
|
88
88
|
priceAuthority: globalThis.ERef<PriceAuthority>;
|
|
89
89
|
reservePublicFacet: globalThis.ERef<globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
90
|
-
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
90
|
+
makeAddCollateralInvitation(): Promise<globalThis.Invitation<string, never>>;
|
|
91
91
|
getPublicTopics(): {
|
|
92
92
|
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
|
|
93
93
|
};
|
|
@@ -139,6 +139,7 @@ export type AuctionParams = {
|
|
|
139
139
|
PriceLockPeriod: RelativeTime;
|
|
140
140
|
TimerBrand: import("@agoric/time").TimerBrand;
|
|
141
141
|
};
|
|
142
|
+
export type AuctionParamRecord = ReturnType<typeof makeAuctioneerParams>;
|
|
142
143
|
export type AuctionParamManager = ReturnType<typeof makeAuctioneerParamManager>;
|
|
143
144
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
144
145
|
//# sourceMappingURL=params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAQA;;;;GAIG;AAGH,+DAAyD;AAEzD;;;;;;GAMG;AACH,8BAA+B,gBAAgB,CAAC;AAChD,gDAAgD;AAChD,yBAA0B,WAAW,CAAC;AACtC,iFAAiF;AACjF,+BAAgC,cAAc,CAAC;AAC/C,4DAA4D;AAC5D,6BAA8B,YAAY,CAAC;AAC3C,4EAA4E;AAC5E,+BAAgC,cAAc,CAAC;AAC/C;;;GAGG;AACH,kCAAmC,mBAAmB,CAAC;AAIvD,gCAAiC,iBAAiB,CAAC;AAEnD,sEASG;;;;;;;;;;;AA2BI,yLADK,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxB;AAQM,yDAJI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,OAC1E,GAAG,WACH,aAAa;;;;;;;;;GA0BvB;
|
|
1
|
+
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAQA;;;;GAIG;AAGH,+DAAyD;AAEzD;;;;;;GAMG;AACH,8BAA+B,gBAAgB,CAAC;AAChD,gDAAgD;AAChD,yBAA0B,WAAW,CAAC;AACtC,iFAAiF;AACjF,+BAAgC,cAAc,CAAC;AAC/C,4DAA4D;AAC5D,6BAA8B,YAAY,CAAC;AAC3C,4EAA4E;AAC5E,+BAAgC,cAAc,CAAC;AAC/C;;;GAGG;AACH,kCAAmC,mBAAmB,CAAC;AAIvD,gCAAiC,iBAAiB,CAAC;AAEnD,sEASG;;;;;;;;;;;AA2BI,yLADK,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxB;AAQM,yDAJI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,OAC1E,GAAG,WACH,aAAa;;;;;;;;;GA0BvB;AAWM,0FANI;IAAE,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;CAAE,SAChE,IAAI,CAAC,OAAO,cAAc,EAAE,YAAY,CAAC,kBACzC,IAAI,CAAC,cAAc,CAAC,sBACpB,IAAI,CAAC,uBAAuB,CAAC,UAC7B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB;;gCAzGa,MAAM,CAAC,KAAK,CAAC;oBACb,YAAY;eACZ,YAAY;kBACZ,MAAM;gBACN,MAAM;kBACN,MAAM;uBACN,YAAY;qBACZ,YAAY;gBACZ,OAAO,cAAc,EAAE,UAAU;;iCA0EjC,UAAU,CAAC,OAAO,oBAAoB,CAAC;kCA0BvC,UAAU,CAAC,OAAO,0BAA0B,CAAC;oCApKkC,4BAA4B"}
|
package/src/auction/params.js
CHANGED
|
@@ -147,6 +147,7 @@ export const makeAuctioneerParamManager = (publisherKit, zcf, initial) => {
|
|
|
147
147
|
);
|
|
148
148
|
};
|
|
149
149
|
harden(makeAuctioneerParamManager);
|
|
150
|
+
/** @typedef {ReturnType<typeof makeAuctioneerParams>} AuctionParamRecord */
|
|
150
151
|
|
|
151
152
|
/**
|
|
152
153
|
* @param {{ storageNode: ERef<StorageNode>; marshaller: ERef<Marshaller> }} caps
|
|
@@ -4,7 +4,7 @@ export function makeScheduler(auctionDriver: AuctionDriver, timer: import("@agor
|
|
|
4
4
|
nextAuctionSchedule: Schedule | null;
|
|
5
5
|
};
|
|
6
6
|
getAuctionState: () => AuctionState;
|
|
7
|
-
} &
|
|
7
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
8
8
|
getSchedule: () => {
|
|
9
9
|
liveAuctionSchedule: Schedule | null;
|
|
10
10
|
nextAuctionSchedule: Schedule | null;
|
package/src/auction/util.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export function makeBrandedRatioPattern(numeratorAmountShape: {
|
|
|
25
25
|
export function isScaledBidPriceHigher(bidScaling: Ratio, currentPrice: Ratio, oraclePrice: Ratio): boolean;
|
|
26
26
|
/** @type {(quote: PriceQuote) => Ratio} */
|
|
27
27
|
export const priceFrom: (quote: PriceQuote) => Ratio;
|
|
28
|
-
export function makeCancelTokenMaker(name: any): () =>
|
|
28
|
+
export function makeCancelTokenMaker(name: any): () => RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>;
|
|
29
|
+
import type { Pattern } from '@endo/patterns';
|
|
29
30
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
30
31
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":";;;2BAiBU,CAAC,OAAO,YAAY,EAAE,MAAM,OAAO,YAAY,CAAC;;;;;AAYnD,8DAHI;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,0BAChC;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE;;eADvB,KAAK;eAAS,OAAO;;;eACrB,KAAK;eAAS,OAAO;;EAUxC;AASM,mDANI,KAAK,gBACL,KAAK,eACL,KAAK,GACH,OAAO,CAI6C;AAEjE,2CAA2C;AAC3C,wBADW,CAAC,KAAK,EAAE,UAAU,KAAK,KAAK,CAKnC;AAEG,oJAIN;6BAlD8B,gBAAgB;gCAC8C,4BAA4B"}
|
package/src/auction/util.js
CHANGED
|
@@ -7,7 +7,10 @@ import {
|
|
|
7
7
|
} from '@agoric/zoe/src/contractSupport/index.js';
|
|
8
8
|
import { Far } from '@endo/marshal';
|
|
9
9
|
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @import {Key, Pattern} from '@endo/patterns';
|
|
12
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
13
|
+
*/
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* Constants for Auction State.
|
package/src/clientSupport.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientSupport.d.ts","sourceRoot":"","sources":["clientSupport.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clientSupport.d.ts","sourceRoot":"","sources":["clientSupport.js"],"names":[],"mappings":"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"}
|
package/src/clientSupport.js
CHANGED
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
import { Fail } from '@endo/errors';
|
|
4
4
|
import { AmountMath } from '@agoric/ertp';
|
|
5
5
|
import { assertAllDefined } from '@agoric/internal';
|
|
6
|
-
import { parseRatio } from '@agoric/
|
|
6
|
+
import { parseRatio } from '@agoric/ertp/src/ratio.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @import {Amount, Brand, Payment, Purse} from '@agoric/ertp';
|
|
10
|
+
* @import {Proposal} from '@agoric/zoe';
|
|
11
|
+
*/
|
|
7
12
|
|
|
8
13
|
// XXX support other decimal places
|
|
9
14
|
const COSMOS_UNIT = 1_000_000n;
|
package/src/contractSupport.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export function makeNatAmountShape(brand: Brand, min?: NatValue): {
|
|
|
15
15
|
brand: globalThis.Brand;
|
|
16
16
|
value: import("@endo/patterns").Matcher;
|
|
17
17
|
};
|
|
18
|
-
export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): Ratio;
|
|
18
|
+
export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): import("@agoric/ertp/src/ratio").Ratio;
|
|
19
19
|
export type MetricsPublisherKit<T> = {
|
|
20
20
|
metricsPublication: IterationObserver<T>;
|
|
21
21
|
metricsSubscription: StoredSubscription<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA4BO,4BANe,CAAC,SAAT,MAAO,QACV,CAAC,QACD,CAAC,QACD,CAAC,GACC,CAAC,CAGyC;AAQhD,gCALe,CAAC,SAAT,MAAO,QACV,CAAC,SACD,CAAC,GACC,CAAC,CAK2C;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAUM,0CAPI,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,UACb,MAAM,CAAC,KAAK,CAAC,QAcvB;AAoBM,0CAHI,KAAK,QACL,QAAQ;;;EAGmC;AAG/C,0CADK,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA4BO,4BANe,CAAC,SAAT,MAAO,QACV,CAAC,QACD,CAAC,QACD,CAAC,GACC,CAAC,CAGyC;AAQhD,gCALe,CAAC,SAAT,MAAO,QACV,CAAC,SACD,CAAC,GACC,CAAC,CAK2C;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAUM,0CAPI,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,UACb,MAAM,CAAC,KAAK,CAAC,QAcvB;AAoBM,0CAHI,KAAK,QACL,QAAQ;;;EAGmC;AAG/C,0CADK,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,0CAEO;gCAtBtD,CAAC;wBAEA,iBAAiB,CAAC,CAAC,CAAC;yBACpB,kBAAkB,CAAC,CAAC,CAAC;;8BAItB,CAAC;sBAEA,SAAS,CAAC,CAAC,CAAC;uBACZ,gBAAgB,CAAC,CAAC,CAAC;;sCAvF6D,4BAA4B"}
|
|
@@ -17,11 +17,11 @@ export function start(zcf: ZCF<{
|
|
|
17
17
|
* @param {string} [label] for diagnostic use only
|
|
18
18
|
*/
|
|
19
19
|
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string) => void;
|
|
20
|
-
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
20
|
+
makeCharterMemberInvitation: () => Promise<globalThis.Invitation<{
|
|
21
21
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
22
|
-
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
|
|
23
|
-
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
|
|
24
|
-
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
|
|
22
|
+
VoteOnParamChange: () => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
|
|
23
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
|
|
24
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
|
|
25
25
|
}>;
|
|
26
26
|
}, undefined>>;
|
|
27
27
|
}>;
|
package/src/feeDistributor.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const meta: ContractMeta<typeof start>;
|
|
3
3
|
export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
|
|
4
4
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
5
|
-
} &
|
|
5
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
6
6
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
7
7
|
}>;
|
|
8
8
|
export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: RelativeTime): void;
|
|
@@ -22,7 +22,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
22
22
|
creatorFacet: {
|
|
23
23
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
24
24
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
25
|
-
} &
|
|
25
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
26
26
|
collectFees: () => Promise<globalThis.Payment<any, 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/src/types.js").DepositFacet>) => {
|
|
41
41
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
42
|
-
} &
|
|
42
|
+
} & 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[]) => {
|
|
55
55
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
56
|
-
} &
|
|
56
|
+
} & 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
|
-
} &
|
|
63
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
64
64
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
65
65
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
66
|
-
} &
|
|
66
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
67
67
|
collectFees: () => Promise<globalThis.Payment<any, 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/src/types.js").DepositFacet>) => {
|
|
82
82
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
83
|
-
} &
|
|
83
|
+
} & 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[]) => {
|
|
96
96
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
97
|
-
} &
|
|
97
|
+
} & 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
|
-
} &
|
|
108
|
+
} & 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, any>>;
|
|
117
|
-
} &
|
|
117
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
118
118
|
collectFees: () => Promise<globalThis.Payment<any, 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/src/types.js").DepositFacet>) => {
|
|
133
133
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
134
|
-
} &
|
|
134
|
+
} & 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[]) => {
|
|
147
147
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
148
|
-
} &
|
|
148
|
+
} & 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
|
-
} &
|
|
155
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
156
156
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
157
157
|
collectFees: () => Promise<globalThis.Payment<any, any>>;
|
|
158
|
-
} &
|
|
158
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
159
159
|
collectFees: () => Promise<globalThis.Payment<any, 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/src/types.js").DepositFacet>) => {
|
|
174
174
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
175
|
-
} &
|
|
175
|
+
} & 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[]) => {
|
|
188
188
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
189
|
-
} &
|
|
189
|
+
} & 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
|
-
} &
|
|
200
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
201
201
|
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
202
202
|
getKeywordShares: () => Record<string, bigint>;
|
|
203
203
|
}>;
|
package/src/interest-math.js
CHANGED
package/src/interest.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {Timestamp} from '@agoric/time'
|
|
3
3
|
* @import {RelativeTime} from '@agoric/time'
|
|
4
|
+
* @import {AdminFacet, InvitationAmount, ZCFMint} from '@agoric/zoe';
|
|
4
5
|
*/
|
|
5
6
|
export const SECONDS_PER_YEAR: bigint;
|
|
6
7
|
export function makeInterestCalculator(annualRate: Ratio, chargingPeriod: RelativeTime, recordingPeriod: RelativeTime): CalculatorKit;
|
|
7
|
-
export function calculateCompoundedInterest(priorCompoundedInterest: Ratio, priorDebt: NatValue, newDebt: NatValue): Ratio;
|
|
8
|
+
export function calculateCompoundedInterest(priorCompoundedInterest: Ratio, priorDebt: NatValue, newDebt: NatValue): import("@agoric/ertp/src/ratio.js").Ratio;
|
|
8
9
|
export function chargeInterest(powers: {
|
|
9
10
|
mint: ZCFMint<"nat">;
|
|
10
11
|
mintAndTransferWithFee: MintAndTransfer;
|
|
@@ -24,5 +25,6 @@ export function chargeInterest(powers: {
|
|
|
24
25
|
totalDebt: Amount<"nat">;
|
|
25
26
|
};
|
|
26
27
|
import type { RelativeTime } from '@agoric/time';
|
|
28
|
+
import type { ZCFMint } from '@agoric/zoe';
|
|
27
29
|
import type { Timestamp } from '@agoric/time';
|
|
28
30
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"interest.d.ts","sourceRoot":"","sources":["interest.js"],"names":[],"mappings":"AAQA;;;;GAIG;AAEH,sCAAuD;AAchD,mDALI,KAAK,kBACL,YAAY,mBACZ,YAAY,GACV,aAAa,CA+EzB;AASM,qEAJI,KAAK,aACL,QAAQ,WACR,QAAQ,6CAalB;AAyCM,uCAvBI;IACN,IAAI,EAAE,QAAQ,KAAK,CAAC,CAAC;IACrB,sBAAsB,EAAE,eAAe,CAAC;IACxC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAChC,UACO;IACN,YAAY,EAAE,KAAK,CAAC;IACpB,cAAc,EAAE,YAAY,CAAC;IAC7B,eAAe,EAAE,YAAY,CAAC;CAC/B,SACO;IACN,oBAAoB,EAAE,SAAS,CAAC;IAChC,kBAAkB,EAAE,KAAK,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1B,gBACO,SAAS,GACP;IACR,kBAAkB,EAAE,KAAK,CAAC;IAC1B,oBAAoB,EAAE,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1B,CA8DH;kCAxN8B,cAAc;6BACW,aAAa;+BAFzC,cAAc"}
|
package/src/interest.js
CHANGED
|
@@ -3,16 +3,13 @@
|
|
|
3
3
|
import { Fail } from '@endo/errors';
|
|
4
4
|
import { AmountMath } from '@agoric/ertp';
|
|
5
5
|
import { natSafeMath } from '@agoric/zoe/src/contractSupport/index.js';
|
|
6
|
-
import {
|
|
7
|
-
makeRatio,
|
|
8
|
-
multiplyRatios,
|
|
9
|
-
quantize,
|
|
10
|
-
} from '@agoric/zoe/src/contractSupport/ratio.js';
|
|
6
|
+
import { makeRatio, multiplyRatios, quantize } from '@agoric/ertp/src/ratio.js';
|
|
11
7
|
import { TimeMath } from '@agoric/time';
|
|
12
8
|
|
|
13
9
|
/**
|
|
14
10
|
* @import {Timestamp} from '@agoric/time'
|
|
15
11
|
* @import {RelativeTime} from '@agoric/time'
|
|
12
|
+
* @import {AdminFacet, InvitationAmount, ZCFMint} from '@agoric/zoe';
|
|
16
13
|
*/
|
|
17
14
|
|
|
18
15
|
export const SECONDS_PER_YEAR = 60n * 60n * 24n * 365n;
|
|
@@ -22,18 +22,18 @@ 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
|
-
} &
|
|
25
|
+
} & 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
|
}>;
|
|
29
29
|
}>;
|
|
30
|
-
getInvitation: (name: any) => Promise<Invitation
|
|
30
|
+
getInvitation: (name: any) => Promise<globalThis.Invitation>;
|
|
31
31
|
getLimitedCreatorFacet: () => import("@endo/exo").Guarded<{
|
|
32
|
-
makeOracleInvitation(oracleId: string): Promise<Invitation<{
|
|
32
|
+
makeOracleInvitation(oracleId: string): Promise<globalThis.Invitation<{
|
|
33
33
|
invitationMakers: {
|
|
34
|
-
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
|
|
35
|
-
} &
|
|
36
|
-
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
|
|
34
|
+
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
|
|
35
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
36
|
+
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
|
|
37
37
|
}>;
|
|
38
38
|
oracle: import("@endo/exo").Guarded<{
|
|
39
39
|
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: PriceDatum): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK,2BAlBI,GAAG,CACb,OAAW,wBAAwB,EAAE,eAAe,GAAG;IACjD,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC9B,CACF,eACO;IACN,0BAA0B,CAAC,EAAE,OAAO,0CAA0C,EAAE,sBAAsB,CAAC;IACvG,sBAAsB,EAAE,UAAU,CAAC;IACnC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,mBAAmB,EAAE,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,CAAC;IAC5D,WAAW,EAAE,WAAW,CAAC;CAC1B,WACO,OAAO
|
|
1
|
+
{"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK,2BAlBI,GAAG,CACb,OAAW,wBAAwB,EAAE,eAAe,GAAG;IACjD,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC9B,CACF,eACO;IACN,0BAA0B,CAAC,EAAE,OAAO,0CAA0C,EAAE,sBAAsB,CAAC;IACvG,sBAAsB,EAAE,UAAU,CAAC;IACnC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,mBAAmB,EAAE,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,CAAC;IAC5D,WAAW,EAAE,WAAW,CAAC;CAC1B,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqIjB;0BAGa,OAAO,KAAK;kCAtLK,cAAc;6BADnB,kBAAkB"}
|