@agoric/inter-protocol 0.16.2-dev-de2008a.0 → 0.16.2-dev-9d7a377.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 +9 -9
- package/src/auction/auctioneer.d.ts +10 -10
- package/src/auction/offerBook.d.ts +4 -4
- package/src/auction/params.d.ts +5 -5
- package/src/auction/scheduleMath.d.ts +3 -3
- package/src/auction/scheduler.d.ts +3 -3
- package/src/auction/sortedOffers.d.ts +1 -1
- package/src/auction/util.d.ts +2 -2
- package/src/clientSupport.d.ts +15 -15
- package/src/contractSupport.d.ts +3 -3
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +2 -2
- package/src/feeDistributor.d.ts +11 -11
- package/src/interest-math.d.ts +2 -2
- package/src/interest.d.ts +3 -3
- package/src/price/fluxAggregatorContract.d.ts +6 -6
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.d.ts +8 -8
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.d.ts +1 -1
- package/src/price/roundsManager.d.ts +9 -9
- package/src/proposals/add-auction.d.ts +69 -0
- package/src/proposals/add-auction.d.ts.map +1 -0
- package/src/proposals/add-auction.js +177 -0
- package/src/proposals/committee-proposal.d.ts +4 -4
- package/src/proposals/core-proposal.d.ts +1 -1
- package/src/proposals/econ-behaviors.d.ts +69 -283
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.js +1 -0
- package/src/proposals/price-feed-proposal.d.ts +3 -3
- package/src/proposals/startEconCommittee.d.ts +1 -1
- package/src/provisionPool.d.ts +22 -22
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +257 -233
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/psm/psm.d.ts +10 -10
- package/src/reserve/assetReserve.d.ts +6 -6
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.d.ts +11 -11
- package/src/tokens.d.ts +1 -1
- package/src/vaultFactory/liquidation.d.ts +11 -11
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/math.d.ts +2 -2
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/params.d.ts +9 -9
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +4 -4
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/proceeds.d.ts +16 -16
- package/src/vaultFactory/storeUtils.d.ts +3 -3
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/types.d.ts +8 -8
- package/src/vaultFactory/types.d.ts.map +1 -1
- package/src/vaultFactory/vault.d.ts +29 -29
- package/src/vaultFactory/vaultDirector.d.ts +10 -10
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +15 -18
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.d.ts +11 -11
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.d.ts +1 -1
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.d.ts +48 -48
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.16.2-dev-
|
|
3
|
+
"version": "0.16.2-dev-9d7a377.0+9d7a377",
|
|
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-9d7a377.0+9d7a377",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-9d7a377.0+9d7a377",
|
|
36
|
+
"@agoric/governance": "0.10.4-dev-9d7a377.0+9d7a377",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-9d7a377.0+9d7a377",
|
|
38
|
+
"@agoric/notifier": "0.6.3-dev-9d7a377.0+9d7a377",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-9d7a377.0+9d7a377",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-9d7a377.0+9d7a377",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-9d7a377.0+9d7a377",
|
|
42
|
+
"@agoric/vats": "0.15.2-dev-9d7a377.0+9d7a377",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-9d7a377.0+9d7a377",
|
|
44
44
|
"@endo/captp": "^4.1.1",
|
|
45
45
|
"@endo/eventual-send": "^1.2.1",
|
|
46
46
|
"@endo/far": "^1.1.1",
|
|
@@ -50,10 +50,10 @@
|
|
|
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-
|
|
53
|
+
"@agoric/smart-wallet": "0.5.4-dev-9d7a377.0+9d7a377",
|
|
54
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-9d7a377.0+9d7a377",
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-9d7a377.0+9d7a377",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-9d7a377.0+9d7a377",
|
|
57
57
|
"@endo/bundle-source": "^3.2.2",
|
|
58
58
|
"@endo/init": "^1.1.1",
|
|
59
59
|
"@endo/promise-kit": "^1.1.1",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"typeCoverage": {
|
|
86
86
|
"atLeast": 95.89
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "9d7a377c6315b72bafcede22ec58c52fb2a5adae"
|
|
89
89
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export function makeOfferSpecShape(bidBrand: Brand<
|
|
2
|
-
export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit: import(
|
|
1
|
+
export function makeOfferSpecShape(bidBrand: Brand<"nat">, collateralBrand: Brand<"nat">): import("@endo/patterns").Matcher;
|
|
2
|
+
export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit: import("@agoric/zoe/src/contractSupport/recorder.js").MakeRecorderKit): (bidBrand: globalThis.Brand<"nat">, collateralBrand: globalThis.Brand<"nat">, pAuthority: PriceAuthority, node: StorageNode) => import("@endo/exo").Guarded<{
|
|
3
3
|
/**
|
|
4
4
|
* @param {Amount<'nat'>} assetAmount
|
|
5
5
|
* @param {ZCFSeat} sourceSeat
|
|
@@ -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<
|
|
12
|
+
addAssets(assetAmount: Amount<"nat">, sourceSeat: ZCFSeat, proceedsGoal?: globalThis.Amount<"nat"> | undefined): void;
|
|
13
13
|
/** @type {(reduction: Ratio) => void} */
|
|
14
14
|
settleAtNewRate(reduction: Ratio): void;
|
|
15
15
|
getCurrentPrice(): Ratio | null;
|
|
@@ -34,7 +34,7 @@ export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit:
|
|
|
34
34
|
};
|
|
35
35
|
}>;
|
|
36
36
|
export type OfferSpec = {
|
|
37
|
-
maxBuy: Amount<
|
|
37
|
+
maxBuy: Amount<"nat">;
|
|
38
38
|
} & {
|
|
39
39
|
exitAfterBuy?: boolean;
|
|
40
40
|
} & ({
|
|
@@ -56,27 +56,27 @@ export type BookDataNotification = {
|
|
|
56
56
|
* The proceeds the sellers
|
|
57
57
|
* were targeting to raise
|
|
58
58
|
*/
|
|
59
|
-
startProceedsGoal: Amount<
|
|
59
|
+
startProceedsGoal: Amount<"nat"> | null;
|
|
60
60
|
/**
|
|
61
61
|
* The remainder of the
|
|
62
62
|
* proceeds the sellers were targeting to raise
|
|
63
63
|
*/
|
|
64
|
-
remainingProceedsGoal: Amount<
|
|
64
|
+
remainingProceedsGoal: Amount<"nat"> | null;
|
|
65
65
|
/**
|
|
66
66
|
* The proceeds raised so
|
|
67
67
|
* far in the auction
|
|
68
68
|
*/
|
|
69
|
-
proceedsRaised: Amount<
|
|
69
|
+
proceedsRaised: Amount<"nat"> | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* How much collateral was available
|
|
72
72
|
* for sale at the start. (If more is deposited later, it'll be added in.)
|
|
73
73
|
*/
|
|
74
|
-
startCollateral: Amount<
|
|
74
|
+
startCollateral: Amount<"nat">;
|
|
75
75
|
/**
|
|
76
76
|
* The amount of collateral
|
|
77
77
|
* remaining
|
|
78
78
|
*/
|
|
79
|
-
collateralAvailable: Amount<
|
|
79
|
+
collateralAvailable: Amount<"nat"> | null;
|
|
80
80
|
};
|
|
81
81
|
export type AuctionBook = ReturnType<ReturnType<typeof prepareAuctionBook>>;
|
|
82
82
|
import type { Baggage } from '@agoric/vat-data';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export function distributeProportionalSharesWithLimits(unsoldCollateral: Amount<
|
|
1
|
+
export function distributeProportionalSharesWithLimits(unsoldCollateral: Amount<"nat">, proceeds: Amount<"nat">, deposits: {
|
|
2
2
|
seat: ZCFSeat;
|
|
3
|
-
amount: Amount<
|
|
4
|
-
goal: Amount<
|
|
3
|
+
amount: Amount<"nat">;
|
|
4
|
+
goal: Amount<"nat">;
|
|
5
5
|
}[], collateralSeat: ZCFSeat, bidHoldingSeat: ZCFSeat, collateralKeyword: string, reserveSeat: ZCFSeat, brand: Brand): TransferPart[];
|
|
6
6
|
export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
7
7
|
Electorate: "invitation";
|
|
@@ -13,7 +13,7 @@ export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
|
13
13
|
AuctionStartDelay: "relativeTime";
|
|
14
14
|
PriceLockPeriod: "relativeTime";
|
|
15
15
|
}> & {
|
|
16
|
-
timerService: import(
|
|
16
|
+
timerService: import("@agoric/time").TimerService;
|
|
17
17
|
reservePublicFacet: globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
18
18
|
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
19
19
|
getPublicTopics(): {
|
|
@@ -36,7 +36,7 @@ export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
|
36
36
|
getAuctionStartDelay: () => RelativeTime;
|
|
37
37
|
getPriceLockPeriod: () => RelativeTime;
|
|
38
38
|
/** @param {Brand<'nat'>} collateralBrand */
|
|
39
|
-
makeBidInvitation(collateralBrand: Brand<
|
|
39
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, import("./auctionBook.js").OfferSpec>>;
|
|
40
40
|
getSchedules(): {
|
|
41
41
|
liveAuctionSchedule: import("./scheduler.js").Schedule | null;
|
|
42
42
|
nextAuctionSchedule: import("./scheduler.js").Schedule | null;
|
|
@@ -49,7 +49,7 @@ export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
|
49
49
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./scheduler.js").ScheduleNotification>;
|
|
50
50
|
};
|
|
51
51
|
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
52
|
-
goal: Amount<
|
|
52
|
+
goal: Amount<"nat">;
|
|
53
53
|
}>>;
|
|
54
54
|
}>;
|
|
55
55
|
creatorFacet: globalThis.GovernedCreatorFacet<{
|
|
@@ -59,7 +59,7 @@ export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
|
59
59
|
*/
|
|
60
60
|
addBrand(issuer: Issuer, kwd: Keyword): Promise<void>;
|
|
61
61
|
/** @returns {Promise<import('./scheduler.js').FullSchedule>} */
|
|
62
|
-
getSchedule(): Promise<import(
|
|
62
|
+
getSchedule(): Promise<import("./scheduler.js").FullSchedule>;
|
|
63
63
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
64
64
|
/**
|
|
65
65
|
* @param {Issuer} issuer
|
|
@@ -67,7 +67,7 @@ export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
|
67
67
|
*/
|
|
68
68
|
addBrand(issuer: Issuer, kwd: Keyword): Promise<void>;
|
|
69
69
|
/** @returns {Promise<import('./scheduler.js').FullSchedule>} */
|
|
70
|
-
getSchedule(): Promise<import(
|
|
70
|
+
getSchedule(): Promise<import("./scheduler.js").FullSchedule>;
|
|
71
71
|
}>>;
|
|
72
72
|
}>;
|
|
73
73
|
/** @typedef {ContractOf<typeof start>} AuctioneerContract */
|
|
@@ -75,8 +75,8 @@ export function start(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
|
75
75
|
/** @typedef {AuctioneerContract['creatorFacet']} AuctioneerCreatorFacet */
|
|
76
76
|
export const AuctionPFShape: import("@endo/patterns").Matcher;
|
|
77
77
|
export type AuctioneerContract = ContractOf<typeof start>;
|
|
78
|
-
export type AuctioneerPublicFacet = AuctioneerContract[
|
|
79
|
-
export type AuctioneerCreatorFacet = AuctioneerContract[
|
|
78
|
+
export type AuctioneerPublicFacet = AuctioneerContract["publicFacet"];
|
|
79
|
+
export type AuctioneerCreatorFacet = AuctioneerContract["creatorFacet"];
|
|
80
80
|
import { auctioneerParamTypes } from './params.js';
|
|
81
81
|
import type { Baggage } from '@agoric/vat-data';
|
|
82
82
|
//# sourceMappingURL=auctioneer.d.ts.map
|
|
@@ -5,7 +5,7 @@ export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: any,
|
|
|
5
5
|
* @param {Amount<'nat'>} wanted
|
|
6
6
|
* @param {boolean} exitAfterBuy
|
|
7
7
|
*/
|
|
8
|
-
add(seat: ZCFSeat, bidScaling: Ratio, wanted: Amount<
|
|
8
|
+
add(seat: ZCFSeat, bidScaling: Ratio, wanted: Amount<"nat">, exitAfterBuy: boolean): string;
|
|
9
9
|
/** @param {Ratio} bidScaling */
|
|
10
10
|
offersAbove(bidScaling: Ratio): [string, BidderRecord][];
|
|
11
11
|
hasOrders(): boolean;
|
|
@@ -20,7 +20,7 @@ export function preparePriceBook(baggage: Baggage): (priceRatioPattern: any, col
|
|
|
20
20
|
* @param {Amount<'nat'>} wanted
|
|
21
21
|
* @param {boolean} exitAfterBuy
|
|
22
22
|
*/
|
|
23
|
-
add(seat: ZCFSeat, price: Ratio, wanted: Amount<
|
|
23
|
+
add(seat: ZCFSeat, price: Ratio, wanted: Amount<"nat">, exitAfterBuy: boolean): string;
|
|
24
24
|
offersAbove(price: any): [string, BidderRecord][];
|
|
25
25
|
hasOrders(): boolean;
|
|
26
26
|
delete(key: any): void;
|
|
@@ -29,9 +29,9 @@ export function preparePriceBook(baggage: Baggage): (priceRatioPattern: any, col
|
|
|
29
29
|
}>;
|
|
30
30
|
export type BidderRecord = {
|
|
31
31
|
seat: ZCFSeat;
|
|
32
|
-
wanted: Amount<
|
|
32
|
+
wanted: Amount<"nat">;
|
|
33
33
|
seqNum: NatValue;
|
|
34
|
-
received: Amount<
|
|
34
|
+
received: Amount<"nat">;
|
|
35
35
|
} & {
|
|
36
36
|
exitAfterBuy: boolean;
|
|
37
37
|
} & ({
|
package/src/auction/params.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function makeAuctioneerParams({ ElectorateInvitationAmount, StartFrequenc
|
|
|
68
68
|
value: bigint;
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
|
-
export function makeAuctioneerParamManager(publisherKit: import(
|
|
71
|
+
export function makeAuctioneerParamManager(publisherKit: import("@agoric/notifier").StoredPublisherKit<GovernanceSubscriptionState>, zcf: ZCF, initial: AuctionParams): import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
72
72
|
Electorate: "invitation";
|
|
73
73
|
StartFrequency: "relativeTime";
|
|
74
74
|
ClockStep: "relativeTime";
|
|
@@ -84,14 +84,14 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
84
84
|
}, timer: ERef<import("@agoric/time").TimerService>, priceAuthority: ERef<PriceAuthority>, reservePublicFacet: ERef<globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
85
85
|
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
86
86
|
getPublicTopics(): {
|
|
87
|
-
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
|
|
87
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
88
88
|
};
|
|
89
89
|
}>>>, params: AuctionParams): {
|
|
90
90
|
priceAuthority: ERef<PriceAuthority>;
|
|
91
91
|
reservePublicFacet: ERef<globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
92
92
|
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
93
93
|
getPublicTopics(): {
|
|
94
|
-
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
|
|
94
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
95
95
|
};
|
|
96
96
|
}>>>;
|
|
97
97
|
timerService: ERef<import("@agoric/time").TimerService>;
|
|
@@ -131,7 +131,7 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
|
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
133
|
export type AuctionParams = {
|
|
134
|
-
ElectorateInvitationAmount: Amount<
|
|
134
|
+
ElectorateInvitationAmount: Amount<"set">;
|
|
135
135
|
StartFrequency: RelativeTime;
|
|
136
136
|
ClockStep: RelativeTime;
|
|
137
137
|
StartingRate: bigint;
|
|
@@ -139,7 +139,7 @@ export type AuctionParams = {
|
|
|
139
139
|
DiscountStep: bigint;
|
|
140
140
|
AuctionStartDelay: RelativeTime;
|
|
141
141
|
PriceLockPeriod: RelativeTime;
|
|
142
|
-
TimerBrand: import(
|
|
142
|
+
TimerBrand: import("@agoric/time").TimerBrand;
|
|
143
143
|
};
|
|
144
144
|
export type AuctionParamManager = ReturnType<typeof makeAuctioneerParamManager>;
|
|
145
145
|
//# sourceMappingURL=params.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function computeRoundTiming(params: Awaited<import(
|
|
2
|
-
export function nextDescendingStepTime(liveSchedule: import(
|
|
3
|
-
export function timeVsSchedule(time: Timestamp, schedule: import(
|
|
1
|
+
export function computeRoundTiming(params: Awaited<import("./params.js").AuctionParamManager>, baseTime: Timestamp): import("./scheduler.js").Schedule;
|
|
2
|
+
export function nextDescendingStepTime(liveSchedule: import("./scheduler.js").Schedule | null, nextSchedule: import("./scheduler.js").Schedule | null, now: Timestamp): Timestamp | null;
|
|
3
|
+
export function timeVsSchedule(time: Timestamp, schedule: import("./scheduler.js").Schedule): "before" | "during" | "endExactly" | "after";
|
|
4
4
|
//# sourceMappingURL=scheduleMath.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeScheduler(auctionDriver: AuctionDriver, timer: import(
|
|
1
|
+
export function makeScheduler(auctionDriver: AuctionDriver, timer: import("@agoric/time").TimerService, params: Awaited<import("./params.js").AuctionParamManager>, timerBrand: import("@agoric/time").TimerBrand, scheduleRecorder: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<ScheduleNotification>, paramUpdateSubscription: StoredSubscription<GovernanceSubscriptionState>): Promise<{
|
|
2
2
|
getSchedule: () => {
|
|
3
3
|
liveAuctionSchedule: Schedule | null;
|
|
4
4
|
nextAuctionSchedule: Schedule | null;
|
|
@@ -34,8 +34,8 @@ export type ScheduleNotification = {
|
|
|
34
34
|
nextDescendingStepTime: Timestamp | null;
|
|
35
35
|
};
|
|
36
36
|
export type Schedule = {
|
|
37
|
-
startTime: import(
|
|
38
|
-
endTime: import(
|
|
37
|
+
startTime: import("@agoric/time").TimestampRecord;
|
|
38
|
+
endTime: import("@agoric/time").TimestampRecord;
|
|
39
39
|
steps: NatValue;
|
|
40
40
|
endRate: NatValue;
|
|
41
41
|
startDelay: RelativeTime;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function toPartialOfferKey(offerPrice: Ratio): string;
|
|
2
2
|
export function toPriceOfferKey(offerPrice: Ratio, sequenceNumber: bigint): string;
|
|
3
|
-
export function fromPriceOfferKey(key: string, numBrand: Brand<
|
|
3
|
+
export function fromPriceOfferKey(key: string, numBrand: Brand<"nat">, denomBrand: Brand<"nat">, useDecimals: number): [normalizedPrice: Ratio, sequenceNumber: bigint];
|
|
4
4
|
/** @type {(rate: Ratio) => string} */
|
|
5
5
|
export const toBidScalingComparator: (rate: Ratio) => string;
|
|
6
6
|
export function toScaledRateOfferKey(rate: Ratio, sequenceNumber: bigint): string;
|
package/src/auction/util.d.ts
CHANGED
package/src/clientSupport.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export function lookupOfferIdForVault(vaultId: string, currentP: Promise<import(
|
|
2
|
-
export function makeParseAmount(agoricNames: Pick<import(
|
|
1
|
+
export function lookupOfferIdForVault(vaultId: string, currentP: Promise<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>): Promise<string>;
|
|
2
|
+
export function makeParseAmount(agoricNames: Pick<import("@agoric/vats/tools/board-utils.js").AgoricNamesRemotes, "brand" | "vbankAsset">, makeError?: (msg: string) => Error): (a: string) => Amount<"nat">;
|
|
3
3
|
export namespace Offers {
|
|
4
4
|
namespace auction {
|
|
5
5
|
export { makeBidOffer as Bid };
|
|
@@ -39,7 +39,7 @@ export namespace Offers {
|
|
|
39
39
|
* )} opts
|
|
40
40
|
* @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
|
|
41
41
|
*/
|
|
42
|
-
declare function makeBidOffer(agoricNames: Pick<import(
|
|
42
|
+
declare function makeBidOffer(agoricNames: Pick<import("@agoric/vats/tools/board-utils.js").AgoricNamesRemotes, "brand" | "vbankAsset">, opts: {
|
|
43
43
|
offerId: string;
|
|
44
44
|
give: string;
|
|
45
45
|
maxBuy: string;
|
|
@@ -48,7 +48,7 @@ declare function makeBidOffer(agoricNames: Pick<import('@agoric/vats/tools/board
|
|
|
48
48
|
price: number;
|
|
49
49
|
} | {
|
|
50
50
|
discount: number;
|
|
51
|
-
})): import(
|
|
51
|
+
})): import("@agoric/smart-wallet/src/offers.js").OfferSpec;
|
|
52
52
|
/**
|
|
53
53
|
* @param {unknown} _agoricNames
|
|
54
54
|
* @param {{
|
|
@@ -63,7 +63,7 @@ declare function makePushPriceOffer(_agoricNames: unknown, opts: {
|
|
|
63
63
|
offerId: string;
|
|
64
64
|
roundId?: bigint;
|
|
65
65
|
unitPrice: bigint;
|
|
66
|
-
}, previousOffer: string): import(
|
|
66
|
+
}, previousOffer: string): import("@agoric/smart-wallet/src/offers.js").OfferSpec;
|
|
67
67
|
/**
|
|
68
68
|
* @param {Pick<
|
|
69
69
|
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
@@ -76,7 +76,7 @@ declare function makePushPriceOffer(_agoricNames: unknown, opts: {
|
|
|
76
76
|
* )} opts
|
|
77
77
|
* @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
|
|
78
78
|
*/
|
|
79
|
-
declare function makePsmSwapOffer({ brand }: Pick<import(
|
|
79
|
+
declare function makePsmSwapOffer({ brand }: Pick<import("@agoric/vats/tools/board-utils.js").AgoricNamesRemotes, "brand">, instance: Instance, opts: {
|
|
80
80
|
offerId: string;
|
|
81
81
|
feePct?: number;
|
|
82
82
|
pair: [string, string];
|
|
@@ -84,7 +84,7 @@ declare function makePsmSwapOffer({ brand }: Pick<import('@agoric/vats/tools/boa
|
|
|
84
84
|
wantMinted: number;
|
|
85
85
|
} | {
|
|
86
86
|
giveMinted: number;
|
|
87
|
-
})): import(
|
|
87
|
+
})): import("@agoric/smart-wallet/src/offers.js").OfferSpec;
|
|
88
88
|
/**
|
|
89
89
|
* @param {Pick<
|
|
90
90
|
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
@@ -98,12 +98,12 @@ declare function makePsmSwapOffer({ brand }: Pick<import('@agoric/vats/tools/boa
|
|
|
98
98
|
* }} opts
|
|
99
99
|
* @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
|
|
100
100
|
*/
|
|
101
|
-
declare function makeOpenOffer({ brand }: Pick<import(
|
|
101
|
+
declare function makeOpenOffer({ brand }: Pick<import("@agoric/vats/tools/board-utils.js").AgoricNamesRemotes, "brand">, opts: {
|
|
102
102
|
offerId: string;
|
|
103
103
|
wantMinted: number;
|
|
104
104
|
giveCollateral: number;
|
|
105
105
|
collateralBrandKey: string;
|
|
106
|
-
}): import(
|
|
106
|
+
}): import("@agoric/smart-wallet/src/offers.js").OfferSpec;
|
|
107
107
|
/**
|
|
108
108
|
* @param {Pick<
|
|
109
109
|
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
@@ -120,14 +120,14 @@ declare function makeOpenOffer({ brand }: Pick<import('@agoric/vats/tools/board-
|
|
|
120
120
|
* @param {string} previousOffer
|
|
121
121
|
* @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
|
|
122
122
|
*/
|
|
123
|
-
declare function makeAdjustOffer({ brand }: Pick<import(
|
|
123
|
+
declare function makeAdjustOffer({ brand }: Pick<import("@agoric/vats/tools/board-utils.js").AgoricNamesRemotes, "brand">, opts: {
|
|
124
124
|
offerId: string;
|
|
125
125
|
collateralBrandKey?: string;
|
|
126
126
|
giveCollateral?: number;
|
|
127
127
|
wantCollateral?: number;
|
|
128
128
|
giveMinted?: number;
|
|
129
129
|
wantMinted?: number;
|
|
130
|
-
}, previousOffer: string): import(
|
|
130
|
+
}, previousOffer: string): import("@agoric/smart-wallet/src/offers.js").OfferSpec;
|
|
131
131
|
/**
|
|
132
132
|
* @param {Pick<
|
|
133
133
|
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
@@ -141,11 +141,11 @@ declare function makeAdjustOffer({ brand }: Pick<import('@agoric/vats/tools/boar
|
|
|
141
141
|
* @param {string} previousOffer
|
|
142
142
|
* @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
|
|
143
143
|
*/
|
|
144
|
-
declare function makeCloseOffer({ brand }: Pick<import(
|
|
144
|
+
declare function makeCloseOffer({ brand }: Pick<import("@agoric/vats/tools/board-utils.js").AgoricNamesRemotes, "brand">, opts: {
|
|
145
145
|
offerId: string;
|
|
146
146
|
collateralBrandKey?: string;
|
|
147
147
|
giveMinted: number;
|
|
148
|
-
}, previousOffer: string): import(
|
|
148
|
+
}, previousOffer: string): import("@agoric/smart-wallet/src/offers.js").OfferSpec;
|
|
149
149
|
/**
|
|
150
150
|
* @param {Pick<
|
|
151
151
|
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
@@ -158,10 +158,10 @@ declare function makeCloseOffer({ brand }: Pick<import('@agoric/vats/tools/board
|
|
|
158
158
|
* }} opts
|
|
159
159
|
* @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
|
|
160
160
|
*/
|
|
161
|
-
declare function makeAddCollateralOffer({ brand }: Pick<import(
|
|
161
|
+
declare function makeAddCollateralOffer({ brand }: Pick<import("@agoric/vats/tools/board-utils.js").AgoricNamesRemotes, "brand">, opts: {
|
|
162
162
|
offerId: string;
|
|
163
163
|
give: number;
|
|
164
164
|
collateralBrandKey: string;
|
|
165
|
-
}): import(
|
|
165
|
+
}): import("@agoric/smart-wallet/src/offers.js").OfferSpec;
|
|
166
166
|
export {};
|
|
167
167
|
//# sourceMappingURL=clientSupport.d.ts.map
|
package/src/contractSupport.d.ts
CHANGED
|
@@ -6,16 +6,16 @@ export namespace ratioPattern {
|
|
|
6
6
|
export { amountPattern as numerator };
|
|
7
7
|
export { amountPattern as denominator };
|
|
8
8
|
}
|
|
9
|
-
export function addSubtract<K extends globalThis.AssetKind>(base:
|
|
9
|
+
export function addSubtract<K extends globalThis.AssetKind>(base: Amount<K>, gain: Amount<K>, loss: Amount<K>): Amount<K>;
|
|
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;
|
|
13
|
-
export function checkDebtLimit(debtLimit: Amount<
|
|
13
|
+
export function checkDebtLimit(debtLimit: Amount<"nat">, totalDebt: Amount<"nat">, toMint: Amount<"nat">): void;
|
|
14
14
|
export function makeNatAmountShape(brand: Brand, min?: bigint | undefined): {
|
|
15
15
|
brand: globalThis.Brand;
|
|
16
16
|
value: import("@endo/patterns").Matcher;
|
|
17
17
|
};
|
|
18
|
-
export function quoteAsRatio(quoteAmount: Pick<PriceDescription,
|
|
18
|
+
export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): Ratio;
|
|
19
19
|
/**
|
|
20
20
|
* <T>
|
|
21
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA2BO,4BAFa,CAAC,
|
|
1
|
+
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA2BO,4BAFa,CAAC,qCAHV,MAAM,CAGG,CAAC,AAHF,CAAC,QACT,MAAM,CAEG,CAAC,AAFF,CAAC,QACT,MAAM,CACG,CAAC,AADF,CAAC,GACP,MAAM,CAAC,CAAC,CAAC,CAGiC;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,0CADK,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,SAEO;;;;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"}
|
|
@@ -9,7 +9,7 @@ export const INVITATION_MAKERS_DESC: "charter member invitation";
|
|
|
9
9
|
export const meta: ContractMeta;
|
|
10
10
|
export function start(zcf: ZCF<{
|
|
11
11
|
binaryVoteCounterInstallation: Installation;
|
|
12
|
-
}>, privateArgs: undefined, baggage: import(
|
|
12
|
+
}>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage): Promise<{
|
|
13
13
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
14
14
|
/**
|
|
15
15
|
* @param {Instance} governedInstance
|
|
@@ -21,7 +21,7 @@ export function start(zcf: ZCF<{
|
|
|
21
21
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
22
22
|
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
|
|
23
23
|
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
24
|
-
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import(
|
|
24
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
25
25
|
}>;
|
|
26
26
|
}, undefined>>;
|
|
27
27
|
}>;
|
package/src/feeDistributor.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export function makeShareConfig(destinations?: Record<string, ERef<FeeDestinatio
|
|
|
13
13
|
}[];
|
|
14
14
|
totalShares: bigint;
|
|
15
15
|
};
|
|
16
|
-
export function sharePayment(payment: Payment<
|
|
16
|
+
export function sharePayment(payment: Payment<"nat">, issuer: ERef<globalThis.Issuer<"nat">>, { shares, totalShares }: ShareConfig): Promise<void>;
|
|
17
17
|
export function makeFeeDistributor(feeIssuer: ERef<globalThis.Issuer<"nat">>, terms: {
|
|
18
18
|
keywordShares: Record<Keyword, NatValue>;
|
|
19
19
|
timerService: ERef<TimerService>;
|
|
@@ -37,7 +37,7 @@ export function makeFeeDistributor(feeIssuer: ERef<globalThis.Issuer<"nat">>, te
|
|
|
37
37
|
* import('@agoric/ertp/exported.js').DepositFacet
|
|
38
38
|
* >} depositFacet
|
|
39
39
|
*/
|
|
40
|
-
makeDepositFacetDestination: (depositFacet: import(
|
|
40
|
+
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
41
41
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
42
42
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
43
43
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -78,7 +78,7 @@ export function makeFeeDistributor(feeIssuer: ERef<globalThis.Issuer<"nat">>, te
|
|
|
78
78
|
* import('@agoric/ertp/exported.js').DepositFacet
|
|
79
79
|
* >} depositFacet
|
|
80
80
|
*/
|
|
81
|
-
makeDepositFacetDestination: (depositFacet: import(
|
|
81
|
+
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
82
82
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
83
83
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
84
84
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -103,10 +103,10 @@ export function makeFeeDistributor(feeIssuer: ERef<globalThis.Issuer<"nat">>, te
|
|
|
103
103
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
104
104
|
}>;
|
|
105
105
|
publicFacet: {
|
|
106
|
-
distributeFees: (payment: Payment<
|
|
106
|
+
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
107
107
|
getKeywordShares: () => Record<string, bigint>;
|
|
108
108
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
109
|
-
distributeFees: (payment: Payment<
|
|
109
|
+
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
110
110
|
getKeywordShares: () => Record<string, bigint>;
|
|
111
111
|
}>;
|
|
112
112
|
};
|
|
@@ -129,7 +129,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
129
129
|
* import('@agoric/ertp/exported.js').DepositFacet
|
|
130
130
|
* >} depositFacet
|
|
131
131
|
*/
|
|
132
|
-
makeDepositFacetDestination: (depositFacet: import(
|
|
132
|
+
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
133
133
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
134
134
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
135
135
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -170,7 +170,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
170
170
|
* import('@agoric/ertp/exported.js').DepositFacet
|
|
171
171
|
* >} depositFacet
|
|
172
172
|
*/
|
|
173
|
-
makeDepositFacetDestination: (depositFacet: import(
|
|
173
|
+
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
174
174
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
175
175
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
176
176
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -195,10 +195,10 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
195
195
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
196
196
|
}>;
|
|
197
197
|
publicFacet: {
|
|
198
|
-
distributeFees: (payment: Payment<
|
|
198
|
+
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
199
199
|
getKeywordShares: () => Record<string, bigint>;
|
|
200
200
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
201
|
-
distributeFees: (payment: Payment<
|
|
201
|
+
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
202
202
|
getKeywordShares: () => Record<string, bigint>;
|
|
203
203
|
}>;
|
|
204
204
|
}>;
|
|
@@ -217,8 +217,8 @@ export type FeeDestination = {
|
|
|
217
217
|
pushPayment: (payment: Payment, issuer: ERef<globalThis.Issuer>) => Promise<Amount>;
|
|
218
218
|
};
|
|
219
219
|
export type ShareConfig = ReturnType<typeof makeShareConfig>;
|
|
220
|
-
export type FeeDistributorCreatorFacet = ReturnType<typeof makeFeeDistributor>[
|
|
221
|
-
export type FeeDistributorPublicFacet = ReturnType<typeof makeFeeDistributor>[
|
|
220
|
+
export type FeeDistributorCreatorFacet = ReturnType<typeof makeFeeDistributor>["creatorFacet"];
|
|
221
|
+
export type FeeDistributorPublicFacet = ReturnType<typeof makeFeeDistributor>["publicFacet"];
|
|
222
222
|
import type { TimerService } from '@agoric/time';
|
|
223
223
|
import type { RelativeTime } from '@agoric/time';
|
|
224
224
|
//# sourceMappingURL=feeDistributor.d.ts.map
|
package/src/interest-math.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export function calculateCurrentDebt(debtSnapshot: Amount<
|
|
2
|
-
export function reverseInterest(debt: Amount<
|
|
1
|
+
export function calculateCurrentDebt(debtSnapshot: Amount<"nat">, interestSnapshot: Ratio, currentCompoundedInterest: Ratio): Amount<"nat">;
|
|
2
|
+
export function reverseInterest(debt: Amount<"nat">, interestApplied: Ratio): Amount<"nat">;
|
|
3
3
|
//# sourceMappingURL=interest-math.d.ts.map
|
package/src/interest.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export const SECONDS_PER_YEAR: bigint;
|
|
|
6
6
|
export function makeInterestCalculator(annualRate: Ratio, chargingPeriod: RelativeTime, recordingPeriod: RelativeTime): CalculatorKit;
|
|
7
7
|
export function calculateCompoundedInterest(priorCompoundedInterest: Ratio, priorDebt: NatValue, newDebt: NatValue): Ratio;
|
|
8
8
|
export function chargeInterest(powers: {
|
|
9
|
-
mint: ZCFMint<
|
|
9
|
+
mint: ZCFMint<"nat">;
|
|
10
10
|
mintAndTransferWithFee: MintAndTransfer;
|
|
11
11
|
poolIncrementSeat: ZCFSeat;
|
|
12
12
|
seatAllocationKeyword: Keyword;
|
|
@@ -17,11 +17,11 @@ export function chargeInterest(powers: {
|
|
|
17
17
|
}, prior: {
|
|
18
18
|
latestInterestUpdate: Timestamp;
|
|
19
19
|
compoundedInterest: Ratio;
|
|
20
|
-
totalDebt: Amount<
|
|
20
|
+
totalDebt: Amount<"nat">;
|
|
21
21
|
}, accruedUntil: Timestamp): {
|
|
22
22
|
compoundedInterest: Ratio;
|
|
23
23
|
latestInterestUpdate: Timestamp;
|
|
24
|
-
totalDebt: Amount<
|
|
24
|
+
totalDebt: Amount<"nat">;
|
|
25
25
|
};
|
|
26
26
|
import type { RelativeTime } from '@agoric/time';
|
|
27
27
|
import type { Timestamp } from '@agoric/time';
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
export const meta: ContractMeta;
|
|
7
7
|
export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig & {
|
|
8
8
|
timer: TimerService;
|
|
9
|
-
brandIn: Brand<
|
|
10
|
-
brandOut: Brand<
|
|
9
|
+
brandIn: Brand<"nat">;
|
|
10
|
+
brandOut: Brand<"nat">;
|
|
11
11
|
description: string;
|
|
12
|
-
unitAmountIn?: Amount<
|
|
12
|
+
unitAmountIn?: Amount<"nat">;
|
|
13
13
|
}>, privateArgs: {
|
|
14
|
-
highPrioritySendersManager?: import(
|
|
14
|
+
highPrioritySendersManager?: import("@agoric/internal/src/priority-senders.js").PrioritySendersManager;
|
|
15
15
|
initialPoserInvitation: Invitation;
|
|
16
16
|
marshaller: ERef<Marshaller<unknown>>;
|
|
17
17
|
namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>;
|
|
@@ -36,7 +36,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
|
|
|
36
36
|
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
|
|
37
37
|
}>;
|
|
38
38
|
oracle: import("@endo/exo").Guarded<{
|
|
39
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }:
|
|
39
|
+
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: PriceDatum): Promise<void>;
|
|
40
40
|
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
41
41
|
}>;
|
|
42
42
|
}, undefined>>;
|
|
@@ -47,7 +47,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
|
|
|
47
47
|
disable(): void;
|
|
48
48
|
};
|
|
49
49
|
oracle: {
|
|
50
|
-
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }:
|
|
50
|
+
pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: PriceDatum): Promise<void>;
|
|
51
51
|
getStatus(): import("./priceOracleKit.js").OracleStatus;
|
|
52
52
|
};
|
|
53
53
|
}>>;
|
|
@@ -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;;iCAID,OAAO,0CAA0C,EAAE,sBAAsB;4BAC9E,UAAU;;;iBAGrB,WAAW
|
|
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;;iCAID,OAAO,0CAA0C,EAAE,sBAAsB;4BAC9E,UAAU;;;iBAGrB,WAAW;;;;;;;;;;;;;;;;sCAwI8xF,OAAO,oBAAoB,EAAE,UAAU;;mEAAV,UAAU;;;6EA3Ij2F,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyIR;kCAlL8B,cAAc;6BADnB,kBAAkB"}
|