@agoric/inter-protocol 0.17.1-upgrade-23-dev-3121fd7.0.3121fd7 → 0.18.0-u23.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/c.log +1 -0
- package/src/auction/util.d.ts +0 -33
- package/src/auction/util.d.ts.map +0 -1
- package/src/clientSupport.d.ts +0 -124
- package/src/clientSupport.d.ts.map +0 -1
- package/src/collectFees.d.ts +0 -6
- package/src/collectFees.d.ts.map +0 -1
- package/src/contractSupport.d.ts +0 -36
- package/src/contractSupport.d.ts.map +0 -1
- package/src/econCommitteeCharter.d.ts +0 -54
- package/src/econCommitteeCharter.d.ts.map +0 -1
- package/src/feeDistributor.d.ts +0 -228
- package/src/feeDistributor.d.ts.map +0 -1
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/interest-math.d.ts +0 -5
- package/src/interest-math.d.ts.map +0 -1
- package/src/interest.d.ts +0 -42
- package/src/interest.d.ts.map +0 -1
- package/src/price/fluxAggregatorContract.d.ts +0 -95
- package/src/price/fluxAggregatorContract.d.ts.map +0 -1
- package/src/price/fluxAggregatorKit.d.ts +0 -114
- package/src/price/fluxAggregatorKit.d.ts.map +0 -1
- package/src/price/priceOracleKit.d.ts +0 -41
- package/src/price/priceOracleKit.d.ts.map +0 -1
- package/src/price/roundsManager.d.ts +0 -211
- package/src/price/roundsManager.d.ts.map +0 -1
- package/src/proposals/utils.d.ts +0 -27
- package/src/proposals/utils.d.ts.map +0 -1
- package/src/provisionPool.d.ts +0 -87
- package/src/provisionPool.d.ts.map +0 -1
- package/src/provisionPoolKit.d.ts +0 -81
- package/src/provisionPoolKit.d.ts.map +0 -1
- package/src/psm/psm.d.ts +0 -145
- package/src/psm/psm.d.ts.map +0 -1
- package/src/reserve/assetReserve.d.ts +0 -68
- package/src/reserve/assetReserve.d.ts.map +0 -1
- package/src/reserve/assetReserveKit.d.ts +0 -106
- package/src/reserve/assetReserveKit.d.ts.map +0 -1
- package/src/reserve/params.d.ts +0 -16
- package/src/reserve/params.d.ts.map +0 -1
- package/src/tokens.d.ts +0 -3
- package/src/tokens.d.ts.map +0 -1
- package/src/vaultFactory/burn.d.ts +0 -5
- package/src/vaultFactory/burn.d.ts.map +0 -1
- package/src/vaultFactory/math.d.ts +0 -13
- package/src/vaultFactory/math.d.ts.map +0 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +0 -94
- package/src/vaultFactory/orderedVaultStore.d.ts.map +0 -1
- package/src/vaultFactory/params.d.ts +0 -170
- package/src/vaultFactory/params.d.ts.map +0 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +0 -283
- package/src/vaultFactory/prioritizedVaults.d.ts.map +0 -1
- package/src/vaultFactory/storeUtils.d.ts +0 -30
- package/src/vaultFactory/storeUtils.d.ts.map +0 -1
- package/src/vaultFactory/types.d.ts +0 -137
- package/src/vaultFactory/types.d.ts.map +0 -1
- package/src/vaultFactory/vault.d.ts +0 -360
- package/src/vaultFactory/vault.d.ts.map +0 -1
- package/src/vaultFactory/vaultDirector.d.ts +0 -337
- package/src/vaultFactory/vaultDirector.d.ts.map +0 -1
- package/src/vaultFactory/vaultFactory.d.ts +0 -202
- package/src/vaultFactory/vaultFactory.d.ts.map +0 -1
- package/src/vaultFactory/vaultHolder.d.ts +0 -177
- package/src/vaultFactory/vaultHolder.d.ts.map +0 -1
- package/src/vaultFactory/vaultKit.d.ts +0 -38
- package/src/vaultFactory/vaultKit.d.ts.map +0 -1
- package/src/vaultFactory/vaultManager.d.ts +0 -526
- package/src/vaultFactory/vaultManager.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0-u23.0",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@agoric/base-zone": "0.
|
|
33
|
-
"@agoric/ertp": "0.
|
|
34
|
-
"@agoric/governance": "0.
|
|
35
|
-
"@agoric/internal": "0.
|
|
36
|
-
"@agoric/notifier": "0.
|
|
37
|
-
"@agoric/store": "0.
|
|
38
|
-
"@agoric/time": "0.
|
|
39
|
-
"@agoric/vat-data": "0.
|
|
40
|
-
"@agoric/vats": "0.
|
|
41
|
-
"@agoric/zoe": "0.
|
|
42
|
-
"@agoric/zone": "0.
|
|
32
|
+
"@agoric/base-zone": "0.3.0-u23.0",
|
|
33
|
+
"@agoric/ertp": "0.18.0-u23.0",
|
|
34
|
+
"@agoric/governance": "0.12.0-u23.0",
|
|
35
|
+
"@agoric/internal": "0.5.0-u23.0",
|
|
36
|
+
"@agoric/notifier": "0.8.0-u23.0",
|
|
37
|
+
"@agoric/store": "0.11.0-u23.0",
|
|
38
|
+
"@agoric/time": "0.5.0-u23.0",
|
|
39
|
+
"@agoric/vat-data": "0.7.0-u23.0",
|
|
40
|
+
"@agoric/vats": "0.17.0-u23.0",
|
|
41
|
+
"@agoric/zoe": "0.28.0-u23.0",
|
|
42
|
+
"@agoric/zone": "0.4.0-u23.0",
|
|
43
43
|
"@endo/captp": "^4.4.8",
|
|
44
44
|
"@endo/errors": "^1.2.13",
|
|
45
45
|
"@endo/eventual-send": "^1.3.4",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"jessie.js": "^0.3.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@agoric/smart-wallet": "0.
|
|
54
|
-
"@agoric/swingset-liveslots": "0.
|
|
55
|
-
"@agoric/swingset-vat": "0.
|
|
53
|
+
"@agoric/smart-wallet": "0.7.0-u23.0",
|
|
54
|
+
"@agoric/swingset-liveslots": "0.12.0-u23.0",
|
|
55
|
+
"@agoric/swingset-vat": "0.34.0-u23.0",
|
|
56
56
|
"@endo/bundle-source": "^4.1.2",
|
|
57
57
|
"@endo/init": "^1.1.12",
|
|
58
58
|
"@endo/promise-kit": "^1.1.13",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"typeCoverage": {
|
|
82
82
|
"atLeast": 95.3
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "1147be15b0704de17204d04e2407fa3192b98a1c"
|
|
85
85
|
}
|
package/src/c.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
make: *** No rule to make target `scenario2-run-chain'. Stop.
|
package/src/auction/util.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constants for Auction State.
|
|
3
|
-
*/
|
|
4
|
-
export type AuctionState = (typeof AuctionState)[keyof typeof AuctionState];
|
|
5
|
-
export namespace AuctionState {
|
|
6
|
-
let ACTIVE: "active";
|
|
7
|
-
let WAITING: "waiting";
|
|
8
|
-
}
|
|
9
|
-
export function makeBrandedRatioPattern(numeratorAmountShape: {
|
|
10
|
-
brand: Brand;
|
|
11
|
-
value: Pattern;
|
|
12
|
-
}, denominatorAmountShape: {
|
|
13
|
-
brand: Brand;
|
|
14
|
-
value: Pattern;
|
|
15
|
-
}): {
|
|
16
|
-
numerator: {
|
|
17
|
-
brand: Brand;
|
|
18
|
-
value: Pattern;
|
|
19
|
-
};
|
|
20
|
-
denominator: {
|
|
21
|
-
brand: Brand;
|
|
22
|
-
value: Pattern;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export function isScaledBidPriceHigher(bidScaling: Ratio, currentPrice: Ratio, oraclePrice: Ratio): boolean;
|
|
26
|
-
/** @type {(quote: PriceQuote) => Ratio} */
|
|
27
|
-
export const priceFrom: (quote: PriceQuote) => Ratio;
|
|
28
|
-
export function makeCancelTokenMaker(name: any): () => import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>;
|
|
29
|
-
import type { Brand } from '@agoric/ertp';
|
|
30
|
-
import type { Pattern } from '@endo/patterns';
|
|
31
|
-
import type { Ratio } from '@agoric/ertp';
|
|
32
|
-
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
33
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":";;;2BAgBU,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,4KAIN;2BAjD8B,cAAc;6BAFd,gBAAgB;2BAEhB,cAAc;gCADgD,4BAA4B"}
|
package/src/clientSupport.d.ts
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
export function lookupOfferIdForVault(vaultId: string, currentP: Promise<CurrentWalletRecord>): Promise<string>;
|
|
2
|
-
export function makeParseAmount(agoricNames: Pick<AgoricNamesRemotes, "brand" | "vbankAsset">, makeError?: (msg: string) => Error): (a: string) => Amount<"nat">;
|
|
3
|
-
export namespace Offers {
|
|
4
|
-
namespace fluxAggregator {
|
|
5
|
-
export { makePushPriceOffer as PushPrice };
|
|
6
|
-
}
|
|
7
|
-
namespace psm {
|
|
8
|
-
export { makePsmSwapOffer as swap };
|
|
9
|
-
}
|
|
10
|
-
namespace vaults {
|
|
11
|
-
export { makeOpenOffer as OpenVault };
|
|
12
|
-
export { makeAdjustOffer as AdjustBalances };
|
|
13
|
-
export { makeCloseOffer as CloseVault };
|
|
14
|
-
}
|
|
15
|
-
namespace reserve {
|
|
16
|
-
export { makeAddCollateralOffer as AddCollateral };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
import type { CurrentWalletRecord } from '@agoric/smart-wallet/src/smartWallet.js';
|
|
20
|
-
import type { AgoricNamesRemotes } from '@agoric/vats/tools/board-utils.js';
|
|
21
|
-
import type { Amount } from '@agoric/ertp';
|
|
22
|
-
/**
|
|
23
|
-
* @param {unknown} _agoricNames
|
|
24
|
-
* @param {{
|
|
25
|
-
* offerId: string;
|
|
26
|
-
* roundId?: bigint;
|
|
27
|
-
* unitPrice: bigint;
|
|
28
|
-
* }} opts
|
|
29
|
-
* @param {string} previousOffer
|
|
30
|
-
* @returns {OfferSpec}
|
|
31
|
-
*/
|
|
32
|
-
declare function makePushPriceOffer(_agoricNames: unknown, opts: {
|
|
33
|
-
offerId: string;
|
|
34
|
-
roundId?: bigint;
|
|
35
|
-
unitPrice: bigint;
|
|
36
|
-
}, previousOffer: string): OfferSpec;
|
|
37
|
-
/**
|
|
38
|
-
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
39
|
-
* @param {Instance<unknown>} instance
|
|
40
|
-
* @param {{ offerId: string; feePct?: number; pair: [string, string] } & (
|
|
41
|
-
* | { wantMinted: number }
|
|
42
|
-
* | { giveMinted: number }
|
|
43
|
-
* )} opts
|
|
44
|
-
* @returns {OfferSpec}
|
|
45
|
-
*/
|
|
46
|
-
declare function makePsmSwapOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, instance: Instance<unknown>, opts: {
|
|
47
|
-
offerId: string;
|
|
48
|
-
feePct?: number;
|
|
49
|
-
pair: [string, string];
|
|
50
|
-
} & ({
|
|
51
|
-
wantMinted: number;
|
|
52
|
-
} | {
|
|
53
|
-
giveMinted: number;
|
|
54
|
-
})): OfferSpec;
|
|
55
|
-
/**
|
|
56
|
-
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
57
|
-
* @param {{
|
|
58
|
-
* offerId: string;
|
|
59
|
-
* wantMinted: number;
|
|
60
|
-
* giveCollateral: number;
|
|
61
|
-
* collateralBrandKey: string;
|
|
62
|
-
* }} opts
|
|
63
|
-
* @returns {OfferSpec}
|
|
64
|
-
*/
|
|
65
|
-
declare function makeOpenOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, opts: {
|
|
66
|
-
offerId: string;
|
|
67
|
-
wantMinted: number;
|
|
68
|
-
giveCollateral: number;
|
|
69
|
-
collateralBrandKey: string;
|
|
70
|
-
}): OfferSpec;
|
|
71
|
-
/**
|
|
72
|
-
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
73
|
-
* @param {{
|
|
74
|
-
* offerId: string;
|
|
75
|
-
* collateralBrandKey?: string;
|
|
76
|
-
* giveCollateral?: number;
|
|
77
|
-
* wantCollateral?: number;
|
|
78
|
-
* giveMinted?: number;
|
|
79
|
-
* wantMinted?: number;
|
|
80
|
-
* }} opts
|
|
81
|
-
* @param {string} previousOffer
|
|
82
|
-
* @returns {OfferSpec}
|
|
83
|
-
*/
|
|
84
|
-
declare function makeAdjustOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, opts: {
|
|
85
|
-
offerId: string;
|
|
86
|
-
collateralBrandKey?: string;
|
|
87
|
-
giveCollateral?: number;
|
|
88
|
-
wantCollateral?: number;
|
|
89
|
-
giveMinted?: number;
|
|
90
|
-
wantMinted?: number;
|
|
91
|
-
}, previousOffer: string): OfferSpec;
|
|
92
|
-
/**
|
|
93
|
-
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
94
|
-
* @param {{
|
|
95
|
-
* offerId: string;
|
|
96
|
-
* collateralBrandKey?: string;
|
|
97
|
-
* giveMinted: number;
|
|
98
|
-
* }} opts
|
|
99
|
-
* @param {string} previousOffer
|
|
100
|
-
* @returns {OfferSpec}
|
|
101
|
-
*/
|
|
102
|
-
declare function makeCloseOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, opts: {
|
|
103
|
-
offerId: string;
|
|
104
|
-
collateralBrandKey?: string;
|
|
105
|
-
giveMinted: number;
|
|
106
|
-
}, previousOffer: string): OfferSpec;
|
|
107
|
-
/**
|
|
108
|
-
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
109
|
-
* @param {{
|
|
110
|
-
* offerId: string;
|
|
111
|
-
* give: number;
|
|
112
|
-
* collateralBrandKey: string;
|
|
113
|
-
* }} opts
|
|
114
|
-
* @returns {OfferSpec}
|
|
115
|
-
*/
|
|
116
|
-
declare function makeAddCollateralOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, opts: {
|
|
117
|
-
offerId: string;
|
|
118
|
-
give: number;
|
|
119
|
-
collateralBrandKey: string;
|
|
120
|
-
}): OfferSpec;
|
|
121
|
-
import type { OfferSpec } from '@agoric/smart-wallet/src/offers.js';
|
|
122
|
-
import type { Instance } from '@agoric/zoe';
|
|
123
|
-
export {};
|
|
124
|
-
//# sourceMappingURL=clientSupport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clientSupport.d.ts","sourceRoot":"","sources":["clientSupport.js"],"names":[],"mappings":"AAgKO,+CAJI,MAAM,YACN,OAAO,CAAC,mBAAmB,CAAC,GAC1B,OAAO,CAAC,MAAM,CAAC,CAW3B;AA0EM,6CAJI,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,YAAY,CAAC,cAChD,CAAC,GAAG,EAAE,MAAM,KAAK,KAAK,GACpB,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,KAAK,CAAC,CAmCtC;;;;;;;;;;;;;;;;;yCA1QmC,yCAAyC;wCAF1C,mCAAmC;4BAFxB,cAAc;AAgT9D;;;;;;;;;GASG;AACH,kDATW,OAAO,QACP;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,E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AC,kBAAkB,EAAE,OAAO,CAAC,QACjC;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,CAAC;CAC5B,GACS,SAAS,CAuBrB;+BA3S2B,oCAAoC;8BAFN,aAAa"}
|
package/src/collectFees.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export function makeCollectFeesInvitation(zcf: ZCF, feeSeat: ZCFSeat, feeBrand: Brand, keyword: string): Promise<Invitation<string>>;
|
|
2
|
-
import type { ZCF } from '@agoric/zoe';
|
|
3
|
-
import type { ZCFSeat } from '@agoric/zoe';
|
|
4
|
-
import type { Brand } from '@agoric/ertp';
|
|
5
|
-
import type { Invitation } from '@agoric/zoe';
|
|
6
|
-
//# sourceMappingURL=collectFees.d.ts.map
|
package/src/collectFees.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collectFees.d.ts","sourceRoot":"","sources":["collectFees.js"],"names":[],"mappings":"AAgBO,+CANI,GAAG,WACH,OAAO,YACP,KAAK,WACL,MAAM,GACJ,OAAO,CAAC,WAAW,MAAM,CAAC,CAAC,CAYvC;yBAvB0C,aAAa;6BAAb,aAAa;2BAChC,cAAc;gCADK,aAAa"}
|
package/src/contractSupport.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export namespace amountPattern {
|
|
2
|
-
let brand: import("@endo/patterns").Matcher;
|
|
3
|
-
let value: import("@endo/patterns").Matcher;
|
|
4
|
-
}
|
|
5
|
-
export namespace ratioPattern {
|
|
6
|
-
export { amountPattern as numerator };
|
|
7
|
-
export { amountPattern as denominator };
|
|
8
|
-
}
|
|
9
|
-
export function addSubtract<A extends Amount>(base: A, gain: A, loss: A): A;
|
|
10
|
-
export function subtractToEmpty<T extends Amount>(left: T, right: T): T;
|
|
11
|
-
export function assertOnlyKeys(proposal: ProposalRecord, keys: string[]): void;
|
|
12
|
-
export function allEmpty(amounts: Amount[]): boolean;
|
|
13
|
-
export function checkDebtLimit(debtLimit: Amount<"nat">, totalDebt: Amount<"nat">, toMint: Amount<"nat">): void;
|
|
14
|
-
export function makeNatAmountShape(brand: Brand, min?: NatValue): {
|
|
15
|
-
brand: Brand;
|
|
16
|
-
value: import("@endo/patterns").Matcher;
|
|
17
|
-
};
|
|
18
|
-
export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): import("@agoric/ertp/src/ratio.js").Ratio;
|
|
19
|
-
export type MetricsPublisherKit<T> = {
|
|
20
|
-
metricsPublication: IterationObserver<T>;
|
|
21
|
-
metricsSubscription: StoredSubscription<T>;
|
|
22
|
-
};
|
|
23
|
-
export type MetricsPublishKit<T> = {
|
|
24
|
-
metricsPublisher: Publisher<T>;
|
|
25
|
-
metricsSubscriber: StoredSubscriber<T>;
|
|
26
|
-
};
|
|
27
|
-
import type { Amount } from '@agoric/ertp';
|
|
28
|
-
import type { ProposalRecord } from '@agoric/zoe';
|
|
29
|
-
import type { Brand } from '@agoric/ertp';
|
|
30
|
-
import type { NatValue } from '@agoric/ertp';
|
|
31
|
-
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
32
|
-
import type { IterationObserver } from '@agoric/notifier';
|
|
33
|
-
import type { StoredSubscription } from '@agoric/notifier';
|
|
34
|
-
import type { Publisher } from '@agoric/notifier';
|
|
35
|
-
import type { StoredSubscriber } from '@agoric/notifier';
|
|
36
|
-
//# sourceMappingURL=contractSupport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AAiCO,4BANe,CAAC,SAAV,MAAQ,QACV,CAAC,QACD,CAAC,QACD,CAAC,GACC,CAAC,CAGyC;AAQhD,gCALe,CAAC,SAAV,MAAQ,QACV,CAAC,SACD,CAAC,GACC,CAAC,CAK2C;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAUM,0CAPI,OAAO,KAAK,CAAC,aACb,OAAO,KAAK,CAAC,UACb,OAAO,KAAK,CAAC,QAcvB;AAoBM,0CAHI,KAAK,QACL,QAAQ;;;EAGmC;AAG/C,0CADK,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,6CAEO;gCAtBtD,CAAC;wBAEA,kBAAkB,CAAC,CAAC;yBACpB,mBAAmB,CAAC,CAAC;;8BAItB,CAAC;sBAEA,UAAU,CAAC,CAAC;uBACZ,iBAAiB,CAAC,CAAC;;4BA5FR,cAAc;oCAKgB,aAAa;2BAJ5C,cAAc;8BACX,cAAc;sCAHoD,4BAA4B;uCAKnC,kBAAkB;wCAAlB,kBAAkB;+BAAlB,kBAAkB;sCAAlB,kBAAkB"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @import {MapStore, SetStore} from '@agoric/store';
|
|
3
|
-
* @import {Baggage} from '@agoric/vat-data';
|
|
4
|
-
* @import {TimestampValue} from '@agoric/time';
|
|
5
|
-
* @import {ContractMeta, Installation, Instance, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
6
|
-
* @import {GovernorCreatorFacet} from '@agoric/governance/src/types.js';
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @file This contract makes it possible for those who govern contracts to call
|
|
10
|
-
* for votes on changes. A more complete implementation would validate
|
|
11
|
-
* parameters, constrain deadlines and possibly split the ability to call for
|
|
12
|
-
* votes into separate capabilities for finer grain encapsulation.
|
|
13
|
-
*/
|
|
14
|
-
export const INVITATION_MAKERS_DESC: "charter member invitation";
|
|
15
|
-
/** @type {ContractMeta<typeof start>} */
|
|
16
|
-
export const meta: ContractMeta<typeof start>;
|
|
17
|
-
export function start(zcf: ZCF<{
|
|
18
|
-
binaryVoteCounterInstallation: Installation;
|
|
19
|
-
}>, _privateArgs: undefined, baggage: Baggage): Promise<{
|
|
20
|
-
creatorFacet: import("@endo/exo").Guarded<{
|
|
21
|
-
/**
|
|
22
|
-
* @param {Instance<unknown>} governedInstance
|
|
23
|
-
* @param {GovernorCreatorFacet<any>} governorFacet
|
|
24
|
-
* @param {string} [label] for diagnostic use only
|
|
25
|
-
*/
|
|
26
|
-
addInstance: (governedInstance: Instance<unknown>, governorFacet: GovernorCreatorFacet<any>, label?: string) => void;
|
|
27
|
-
makeCharterMemberInvitation: () => Promise<import("@agoric/zoe").Invitation<{
|
|
28
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
29
|
-
VoteOnParamChange: () => Promise<import("@agoric/zoe").Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
|
|
30
|
-
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<import("@agoric/zoe").Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
31
|
-
VoteOnApiCall: (instance: Instance<unknown>, methodName: string, methodArgs: string[], deadline: TimestampValue) => Promise<import("@agoric/zoe").Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
32
|
-
}>;
|
|
33
|
-
}, undefined>>;
|
|
34
|
-
}>;
|
|
35
|
-
}>;
|
|
36
|
-
export type ParamChangesOfferArgs = {
|
|
37
|
-
deadline: bigint;
|
|
38
|
-
instance: Instance<unknown>;
|
|
39
|
-
params: Record<string, unknown>;
|
|
40
|
-
/**
|
|
41
|
-
* paramPath is determined by contract
|
|
42
|
-
*/
|
|
43
|
-
path?: {
|
|
44
|
-
paramPath: unknown;
|
|
45
|
-
} | undefined;
|
|
46
|
-
};
|
|
47
|
-
import type { ContractMeta } from '@agoric/zoe';
|
|
48
|
-
import type { Installation } from '@agoric/zoe';
|
|
49
|
-
import type { ZCF } from '@agoric/zoe';
|
|
50
|
-
import type { Baggage } from '@agoric/vat-data';
|
|
51
|
-
import type { Instance } from '@agoric/zoe';
|
|
52
|
-
import type { GovernorCreatorFacet } from '@agoric/governance/src/types.js';
|
|
53
|
-
import type { TimestampValue } from '@agoric/time';
|
|
54
|
-
//# sourceMappingURL=econCommitteeCharter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH;;;;;GAKG;AAEH,qCAAsC,2BAA2B,CAAC;AAoBlE,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAMnC;AAQK,2BAJI,IAAI;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,gBACpD,SAAS,WACT,OAAO;;QAsHZ;;;;WAIG;wCAHQ,SAAS,OAAO,CAAC,iBACjB,qBAAqB,GAAG,CAAC,UACzB,MAAM;;;;;0CAzEV,SAAS,OAAO,CAAC,cACjB,MAAM,cACN,MAAM,EAAE,YACR,cAAc;;;;GAkF1B;;cAjKa,MAAM;cACN,SAAS,OAAO,CAAC;YACjB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;mBACV,OAAO;;;kCAlBmC,aAAa;kCAAb,aAAa;yBAAb,aAAa;6BAFxD,kBAAkB;8BAEyB,aAAa;0CAC3C,iCAAiC;oCAFvC,cAAc"}
|
package/src/feeDistributor.d.ts
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
/** @type {ContractMeta<typeof start>} */
|
|
2
|
-
export const meta: ContractMeta<typeof start>;
|
|
3
|
-
export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
|
|
4
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
5
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
6
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
7
|
-
}>;
|
|
8
|
-
export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: RelativeTime): void;
|
|
9
|
-
export function makeShareConfig(destinations?: Record<Keyword, ERef<FeeDestination>>, keywordShares?: Record<Keyword, NatValue>): {
|
|
10
|
-
shares: {
|
|
11
|
-
share: bigint;
|
|
12
|
-
destination: ERef<FeeDestination>;
|
|
13
|
-
}[];
|
|
14
|
-
totalShares: bigint;
|
|
15
|
-
};
|
|
16
|
-
export function sharePayment(payment: Payment<"nat">, issuer: ERef<Issuer<"nat">>, { shares, totalShares }: ShareConfig): Promise<void>;
|
|
17
|
-
export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
18
|
-
keywordShares: Record<Keyword, NatValue>;
|
|
19
|
-
timerService: ERef<TimerService>;
|
|
20
|
-
collectionInterval: RelativeTime;
|
|
21
|
-
}): {
|
|
22
|
-
creatorFacet: {
|
|
23
|
-
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
24
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
25
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
26
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
27
|
-
}>;
|
|
28
|
-
/**
|
|
29
|
-
* Start distributing fees from this collector.
|
|
30
|
-
*
|
|
31
|
-
* @param {string} debugName
|
|
32
|
-
* @param {ERef<FeeCollector>} collectorP
|
|
33
|
-
*/
|
|
34
|
-
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
|
|
35
|
-
/**
|
|
36
|
-
* @param {EOnly<DepositFacet>} depositFacet
|
|
37
|
-
*/
|
|
38
|
-
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
39
|
-
pushPayment: (payment: any, _issuer: any) => Promise<import("@agoric/ertp").NatAmount | import("@agoric/ertp").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
40
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
41
|
-
pushPayment: (payment: any, _issuer: any) => Promise<import("@agoric/ertp").NatAmount | import("@agoric/ertp").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Create a destination that generates invitations and makes Zoe offers.
|
|
45
|
-
*
|
|
46
|
-
* @param {ERef<ZoeService>} zoe
|
|
47
|
-
* @param {string} keyword
|
|
48
|
-
* @param {unknown} target
|
|
49
|
-
* @param {PropertyKey} makeInvitationMethod
|
|
50
|
-
* @param {unknown[]} [args]
|
|
51
|
-
*/
|
|
52
|
-
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
|
|
53
|
-
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
54
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
55
|
-
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
56
|
-
}>;
|
|
57
|
-
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
58
|
-
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
59
|
-
/** @param {Record<Keyword, bigint>} newShares */
|
|
60
|
-
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
61
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
62
|
-
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
63
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
64
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
65
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
66
|
-
}>;
|
|
67
|
-
/**
|
|
68
|
-
* Start distributing fees from this collector.
|
|
69
|
-
*
|
|
70
|
-
* @param {string} debugName
|
|
71
|
-
* @param {ERef<FeeCollector>} collectorP
|
|
72
|
-
*/
|
|
73
|
-
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
|
|
74
|
-
/**
|
|
75
|
-
* @param {EOnly<DepositFacet>} depositFacet
|
|
76
|
-
*/
|
|
77
|
-
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
78
|
-
pushPayment: (payment: any, _issuer: any) => Promise<import("@agoric/ertp").NatAmount | import("@agoric/ertp").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
79
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
80
|
-
pushPayment: (payment: any, _issuer: any) => Promise<import("@agoric/ertp").NatAmount | import("@agoric/ertp").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
81
|
-
}>;
|
|
82
|
-
/**
|
|
83
|
-
* Create a destination that generates invitations and makes Zoe offers.
|
|
84
|
-
*
|
|
85
|
-
* @param {ERef<ZoeService>} zoe
|
|
86
|
-
* @param {string} keyword
|
|
87
|
-
* @param {unknown} target
|
|
88
|
-
* @param {PropertyKey} makeInvitationMethod
|
|
89
|
-
* @param {unknown[]} [args]
|
|
90
|
-
*/
|
|
91
|
-
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
|
|
92
|
-
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
93
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
94
|
-
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
95
|
-
}>;
|
|
96
|
-
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
97
|
-
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
98
|
-
/** @param {Record<Keyword, bigint>} newShares */
|
|
99
|
-
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
100
|
-
}>;
|
|
101
|
-
publicFacet: {
|
|
102
|
-
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
103
|
-
getKeywordShares: () => Record<string, bigint>;
|
|
104
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
105
|
-
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
106
|
-
getKeywordShares: () => Record<string, bigint>;
|
|
107
|
-
}>;
|
|
108
|
-
};
|
|
109
|
-
export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promise<{
|
|
110
|
-
creatorFacet: {
|
|
111
|
-
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
112
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
113
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
114
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
115
|
-
}>;
|
|
116
|
-
/**
|
|
117
|
-
* Start distributing fees from this collector.
|
|
118
|
-
*
|
|
119
|
-
* @param {string} debugName
|
|
120
|
-
* @param {ERef<FeeCollector>} collectorP
|
|
121
|
-
*/
|
|
122
|
-
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
|
|
123
|
-
/**
|
|
124
|
-
* @param {EOnly<DepositFacet>} depositFacet
|
|
125
|
-
*/
|
|
126
|
-
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
127
|
-
pushPayment: (payment: any, _issuer: any) => Promise<import("@agoric/ertp").NatAmount | import("@agoric/ertp").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
128
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
129
|
-
pushPayment: (payment: any, _issuer: any) => Promise<import("@agoric/ertp").NatAmount | import("@agoric/ertp").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
130
|
-
}>;
|
|
131
|
-
/**
|
|
132
|
-
* Create a destination that generates invitations and makes Zoe offers.
|
|
133
|
-
*
|
|
134
|
-
* @param {ERef<ZoeService>} zoe
|
|
135
|
-
* @param {string} keyword
|
|
136
|
-
* @param {unknown} target
|
|
137
|
-
* @param {PropertyKey} makeInvitationMethod
|
|
138
|
-
* @param {unknown[]} [args]
|
|
139
|
-
*/
|
|
140
|
-
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
|
|
141
|
-
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
142
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
143
|
-
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
144
|
-
}>;
|
|
145
|
-
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
146
|
-
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
147
|
-
/** @param {Record<Keyword, bigint>} newShares */
|
|
148
|
-
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
149
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
150
|
-
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
151
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
152
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
153
|
-
collectFees: () => Promise<Payment<any, any>>;
|
|
154
|
-
}>;
|
|
155
|
-
/**
|
|
156
|
-
* Start distributing fees from this collector.
|
|
157
|
-
*
|
|
158
|
-
* @param {string} debugName
|
|
159
|
-
* @param {ERef<FeeCollector>} collectorP
|
|
160
|
-
*/
|
|
161
|
-
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
|
|
162
|
-
/**
|
|
163
|
-
* @param {EOnly<DepositFacet>} depositFacet
|
|
164
|
-
*/
|
|
165
|
-
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
166
|
-
pushPayment: (payment: any, _issuer: any) => Promise<import("@agoric/ertp").NatAmount | import("@agoric/ertp").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
167
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
168
|
-
pushPayment: (payment: any, _issuer: any) => Promise<import("@agoric/ertp").NatAmount | import("@agoric/ertp").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
169
|
-
}>;
|
|
170
|
-
/**
|
|
171
|
-
* Create a destination that generates invitations and makes Zoe offers.
|
|
172
|
-
*
|
|
173
|
-
* @param {ERef<ZoeService>} zoe
|
|
174
|
-
* @param {string} keyword
|
|
175
|
-
* @param {unknown} target
|
|
176
|
-
* @param {PropertyKey} makeInvitationMethod
|
|
177
|
-
* @param {unknown[]} [args]
|
|
178
|
-
*/
|
|
179
|
-
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
|
|
180
|
-
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
181
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
182
|
-
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
183
|
-
}>;
|
|
184
|
-
/** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
|
|
185
|
-
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
186
|
-
/** @param {Record<Keyword, bigint>} newShares */
|
|
187
|
-
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
188
|
-
}>;
|
|
189
|
-
publicFacet: {
|
|
190
|
-
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
191
|
-
getKeywordShares: () => Record<string, bigint>;
|
|
192
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
193
|
-
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
194
|
-
getKeywordShares: () => Record<string, bigint>;
|
|
195
|
-
}>;
|
|
196
|
-
}>;
|
|
197
|
-
export type FeeCollector = {
|
|
198
|
-
collectFees: () => ERef<Payment<"nat">>;
|
|
199
|
-
};
|
|
200
|
-
export type PeriodicFeeCollector = {
|
|
201
|
-
getCollector: () => FeeCollector;
|
|
202
|
-
collectAndDistributeNow: () => Promise<void>;
|
|
203
|
-
stop: () => void;
|
|
204
|
-
};
|
|
205
|
-
export type CollectibleContractFacet = {
|
|
206
|
-
makeCollectFeesInvitation: () => Promise<Invitation<string, never>>;
|
|
207
|
-
};
|
|
208
|
-
export type FeeDestination = {
|
|
209
|
-
pushPayment: (payment: Payment, issuer: ERef<Issuer>) => Promise<Amount>;
|
|
210
|
-
};
|
|
211
|
-
export type ShareConfig = ReturnType<typeof makeShareConfig>;
|
|
212
|
-
export type FeeDistributorCreatorFacet = ReturnType<typeof makeFeeDistributor>["creatorFacet"];
|
|
213
|
-
export type FeeDistributorPublicFacet = ReturnType<typeof makeFeeDistributor>["publicFacet"];
|
|
214
|
-
import type { ContractMeta } from '@agoric/zoe';
|
|
215
|
-
import type { ZoeService } from '@agoric/zoe';
|
|
216
|
-
import type { ERef } from '@agoric/vow';
|
|
217
|
-
import type { Payment } from '@agoric/ertp/src/types.js';
|
|
218
|
-
import type { TimerService } from '@agoric/time';
|
|
219
|
-
import type { RelativeTime } from '@agoric/time';
|
|
220
|
-
import type { Keyword } from '@agoric/zoe';
|
|
221
|
-
import type { NatValue } from '@agoric/ertp/src/types.js';
|
|
222
|
-
import type { Issuer } from '@agoric/ertp/src/types.js';
|
|
223
|
-
import type { DepositFacet } from '@agoric/ertp/src/types.js';
|
|
224
|
-
import type { EOnly } from '@endo/far';
|
|
225
|
-
import type { ZCF } from '@agoric/zoe';
|
|
226
|
-
import type { Invitation } from '@agoric/zoe';
|
|
227
|
-
import type { Amount } from '@agoric/ertp/src/types.js';
|
|
228
|
-
//# sourceMappingURL=feeDistributor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"AAmBA,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAOnC;AAgCK,8CAHI,KAAK,UAAU,CAAC,gBAChB,KAAK,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,OAAO,CAAC,WAAW,MAAM,EAAE,KAAK,CAAC,CAAC;;6BA+DzC;IACR,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1E;0BAmBU,UAAU,CAAC,OAAO,eAAe,CAAC;yCA+NlC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,cAAc,CAAC;wCACrD,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,aAAa,CAAC;kCAvVG,aAAa;gCAAb,aAAa;0BAC3D,aAAa;6BAF8B,2BAA2B;kCAmB9D,cAAc;kCADd,cAAc;6BAjBwB,aAAa;8BADhB,2BAA2B;4BAA3B,2BAA2B;kCAA3B,2BAA2B;2BADrE,WAAW;yBAEkC,aAAa;gCAAb,aAAa;4BADhB,2BAA2B"}
|
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
|
package/src/interest-math.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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
|
-
import type { Amount } from '@agoric/ertp';
|
|
4
|
-
import type { Ratio } from '@agoric/ertp/src/ratio.js';
|
|
5
|
-
//# sourceMappingURL=interest-math.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interest-math.d.ts","sourceRoot":"","sources":["interest-math.js"],"names":[],"mappings":"AAmCO,mDALI,OAAO,KAAK,CAAC,oBACb,KAAK,6BACL,KAAK,GACH,OAAO,KAAK,CAAC,CAiBzB;AAOM,sCAJI,OAAO,KAAK,CAAC,mBACb,KAAK,GACH,OAAO,KAAK,CAAC,CAIzB;4BAlDwC,cAAc;2BAC/B,2BAA2B"}
|
package/src/interest.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @import {Timestamp} from '@agoric/time'
|
|
3
|
-
* @import {RelativeTime} from '@agoric/time'
|
|
4
|
-
* @import {AdminFacet, InvitationAmount, Keyword, ZCFMint, ZCFSeat} from '@agoric/zoe';
|
|
5
|
-
* @import {AssetKind, Ratio} from '@agoric/ertp';
|
|
6
|
-
* @import {Calculate, CalculatorKit} from './vaultFactory/types.js';
|
|
7
|
-
* @import {MintAndTransfer} from './vaultFactory/types.js';
|
|
8
|
-
* @import {NatValue} from '@agoric/ertp';
|
|
9
|
-
* @import {Amount} from '@agoric/ertp';
|
|
10
|
-
*/
|
|
11
|
-
export const SECONDS_PER_YEAR: bigint;
|
|
12
|
-
export function makeInterestCalculator(annualRate: Ratio, chargingPeriod: RelativeTime, recordingPeriod: RelativeTime): CalculatorKit;
|
|
13
|
-
export function calculateCompoundedInterest(priorCompoundedInterest: Ratio, priorDebt: NatValue, newDebt: NatValue): import("@agoric/ertp/src/ratio.js").Ratio;
|
|
14
|
-
export function chargeInterest(powers: {
|
|
15
|
-
mint: ZCFMint<"nat">;
|
|
16
|
-
mintAndTransferWithFee: MintAndTransfer;
|
|
17
|
-
poolIncrementSeat: ZCFSeat;
|
|
18
|
-
seatAllocationKeyword: Keyword;
|
|
19
|
-
}, params: {
|
|
20
|
-
interestRate: Ratio;
|
|
21
|
-
chargingPeriod: RelativeTime;
|
|
22
|
-
recordingPeriod: RelativeTime;
|
|
23
|
-
}, prior: {
|
|
24
|
-
latestInterestUpdate: Timestamp;
|
|
25
|
-
compoundedInterest: Ratio;
|
|
26
|
-
totalDebt: Amount<"nat">;
|
|
27
|
-
}, accruedUntil: Timestamp): {
|
|
28
|
-
compoundedInterest: Ratio;
|
|
29
|
-
latestInterestUpdate: Timestamp;
|
|
30
|
-
totalDebt: Amount<"nat">;
|
|
31
|
-
};
|
|
32
|
-
import type { Ratio } from '@agoric/ertp';
|
|
33
|
-
import type { RelativeTime } from '@agoric/time';
|
|
34
|
-
import type { CalculatorKit } from './vaultFactory/types.js';
|
|
35
|
-
import type { NatValue } from '@agoric/ertp';
|
|
36
|
-
import type { ZCFMint } from '@agoric/zoe';
|
|
37
|
-
import type { MintAndTransfer } from './vaultFactory/types.js';
|
|
38
|
-
import type { ZCFSeat } from '@agoric/zoe';
|
|
39
|
-
import type { Keyword } from '@agoric/zoe';
|
|
40
|
-
import type { Timestamp } from '@agoric/time';
|
|
41
|
-
import type { Amount } from '@agoric/ertp';
|
|
42
|
-
//# sourceMappingURL=interest.d.ts.map
|