@agoric/inter-protocol 0.16.2-other-dev-fbe72e7.0.fbe72e7 → 0.16.2-other-dev-d15096d.0.d15096d
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 +17 -17
- package/src/auction/auctionBook.d.ts +3 -1
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +7 -6
- package/src/auction/auctioneer.d.ts +15 -10
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +23 -12
- package/src/auction/params.d.ts +14 -6
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +11 -4
- package/src/auction/scheduleMath.d.ts +5 -3
- package/src/auction/scheduleMath.d.ts.map +1 -1
- package/src/auction/scheduleMath.js +11 -7
- package/src/auction/scheduler.d.ts +8 -3
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/scheduler.js +14 -6
- package/src/clientSupport.d.ts +28 -73
- package/src/clientSupport.d.ts.map +1 -1
- package/src/clientSupport.js +24 -128
- package/src/econCommitteeCharter.d.ts +9 -5
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/econCommitteeCharter.js +10 -8
- package/src/feeDistributor.d.ts +10 -16
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +3 -3
- package/src/index.js +1 -1
- package/src/price/fluxAggregatorContract.d.ts +14 -5
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +17 -9
- package/src/price/fluxAggregatorKit.d.ts +11 -6
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +12 -7
- package/src/price/priceOracleKit.d.ts +2 -1
- package/src/price/priceOracleKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.js +2 -1
- package/src/price/roundsManager.d.ts +6 -4
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +4 -2
- package/src/proposals/add-auction.js +7 -2
- package/src/proposals/addAssetToVault.js +7 -3
- package/src/proposals/committee-proposal.js +10 -5
- package/src/proposals/core-proposal.js +9 -3
- package/src/proposals/deploy-price-feeds.js +7 -4
- package/src/proposals/econ-behaviors.js +14 -9
- package/src/proposals/price-feed-proposal.js +10 -3
- package/src/proposals/replace-fee-distributor.js +7 -4
- package/src/proposals/startEconCommittee.js +5 -1
- package/src/proposals/startPSM.js +7 -4
- package/src/proposals/upgrade-vaults.js +9 -4
- package/src/proposals/utils.d.ts +6 -4
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/proposals/utils.js +8 -8
- package/src/proposals/withdraw-reserve-proposal.js +1 -1
- package/src/provisionPool.d.ts +16 -8
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPool.js +15 -9
- package/src/provisionPoolKit.d.ts +19 -74
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +26 -22
- package/src/psm/psm.d.ts +5 -6
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +12 -11
- package/src/reserve/assetReserve.d.ts +3 -2
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +10 -6
- package/src/reserve/assetReserveKit.d.ts +6 -3
- package/src/reserve/assetReserveKit.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.js +7 -5
- package/src/vaultFactory/burn.js +1 -1
- package/src/vaultFactory/liquidation.d.ts +5 -3
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +9 -7
- package/src/vaultFactory/orderedVaultStore.d.ts +2 -2
- package/src/vaultFactory/params.d.ts +20 -7
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +24 -9
- package/src/vaultFactory/prioritizedVaults.d.ts +12 -12
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +1 -0
- package/src/vaultFactory/vault.d.ts +23 -20
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +17 -14
- package/src/vaultFactory/vaultDirector.d.ts +28 -16
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +28 -22
- package/src/vaultFactory/vaultFactory.d.ts +17 -52
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +22 -16
- package/src/vaultFactory/vaultHolder.d.ts +9 -5
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +8 -4
- package/src/vaultFactory/vaultKit.d.ts +4 -1
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +7 -4
- package/src/vaultFactory/vaultManager.d.ts +37 -25
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +28 -15
package/src/clientSupport.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
export function lookupOfferIdForVault(vaultId: string, currentP: Promise<
|
|
2
|
-
export function makeParseAmount(agoricNames: Pick<
|
|
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
3
|
export namespace Offers {
|
|
4
|
-
namespace auction {
|
|
5
|
-
export { makeBidOffer as Bid };
|
|
6
|
-
}
|
|
7
4
|
namespace fluxAggregator {
|
|
8
5
|
export { makePushPriceOffer as PushPrice };
|
|
9
6
|
}
|
|
@@ -19,37 +16,9 @@ export namespace Offers {
|
|
|
19
16
|
export { makeAddCollateralOffer as AddCollateral };
|
|
20
17
|
}
|
|
21
18
|
}
|
|
19
|
+
import type { CurrentWalletRecord } from '@agoric/smart-wallet/src/smartWallet.js';
|
|
20
|
+
import type { AgoricNamesRemotes } from '@agoric/vats/tools/board-utils.js';
|
|
22
21
|
import type { Amount } from '@agoric/ertp';
|
|
23
|
-
/**
|
|
24
|
-
* @param {Pick<
|
|
25
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
26
|
-
* 'brand' | 'vbankAsset'
|
|
27
|
-
* >} agoricNames
|
|
28
|
-
* @param {{
|
|
29
|
-
* offerId: string;
|
|
30
|
-
* give: string;
|
|
31
|
-
* maxBuy: string;
|
|
32
|
-
* wantMinimum?: string;
|
|
33
|
-
* } & (
|
|
34
|
-
* | {
|
|
35
|
-
* price: number;
|
|
36
|
-
* }
|
|
37
|
-
* | {
|
|
38
|
-
* discount: number; // -1 to 1. e.g. 0.10 for 10% discount, -0.05 for 5% markup
|
|
39
|
-
* }
|
|
40
|
-
* )} opts
|
|
41
|
-
* @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
|
|
42
|
-
*/
|
|
43
|
-
declare function makeBidOffer(agoricNames: Pick<import("@agoric/vats/tools/board-utils.js").AgoricNamesRemotes, "brand" | "vbankAsset">, opts: {
|
|
44
|
-
offerId: string;
|
|
45
|
-
give: string;
|
|
46
|
-
maxBuy: string;
|
|
47
|
-
wantMinimum?: string;
|
|
48
|
-
} & ({
|
|
49
|
-
price: number;
|
|
50
|
-
} | {
|
|
51
|
-
discount: number;
|
|
52
|
-
})): import("@agoric/smart-wallet/src/offers.js").OfferSpec;
|
|
53
22
|
/**
|
|
54
23
|
* @param {unknown} _agoricNames
|
|
55
24
|
* @param {{
|
|
@@ -58,26 +27,23 @@ declare function makeBidOffer(agoricNames: Pick<import("@agoric/vats/tools/board
|
|
|
58
27
|
* unitPrice: bigint;
|
|
59
28
|
* }} opts
|
|
60
29
|
* @param {string} previousOffer
|
|
61
|
-
* @returns {
|
|
30
|
+
* @returns {OfferSpec}
|
|
62
31
|
*/
|
|
63
32
|
declare function makePushPriceOffer(_agoricNames: unknown, opts: {
|
|
64
33
|
offerId: string;
|
|
65
34
|
roundId?: bigint;
|
|
66
35
|
unitPrice: bigint;
|
|
67
|
-
}, previousOffer: string):
|
|
36
|
+
}, previousOffer: string): OfferSpec;
|
|
68
37
|
/**
|
|
69
|
-
* @param {Pick<
|
|
70
|
-
*
|
|
71
|
-
* 'brand'
|
|
72
|
-
* >} agoricNames
|
|
73
|
-
* @param {Instance} instance
|
|
38
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
39
|
+
* @param {Instance<unknown>} instance
|
|
74
40
|
* @param {{ offerId: string; feePct?: number; pair: [string, string] } & (
|
|
75
41
|
* | { wantMinted: number }
|
|
76
42
|
* | { giveMinted: number }
|
|
77
43
|
* )} opts
|
|
78
|
-
* @returns {
|
|
44
|
+
* @returns {OfferSpec}
|
|
79
45
|
*/
|
|
80
|
-
declare function makePsmSwapOffer({ brand }: Pick<
|
|
46
|
+
declare function makePsmSwapOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, instance: Instance<unknown>, opts: {
|
|
81
47
|
offerId: string;
|
|
82
48
|
feePct?: number;
|
|
83
49
|
pair: [string, string];
|
|
@@ -85,31 +51,25 @@ declare function makePsmSwapOffer({ brand }: Pick<import("@agoric/vats/tools/boa
|
|
|
85
51
|
wantMinted: number;
|
|
86
52
|
} | {
|
|
87
53
|
giveMinted: number;
|
|
88
|
-
})):
|
|
54
|
+
})): OfferSpec;
|
|
89
55
|
/**
|
|
90
|
-
* @param {Pick<
|
|
91
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
92
|
-
* 'brand'
|
|
93
|
-
* >} agoricNames
|
|
56
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
94
57
|
* @param {{
|
|
95
58
|
* offerId: string;
|
|
96
59
|
* wantMinted: number;
|
|
97
60
|
* giveCollateral: number;
|
|
98
61
|
* collateralBrandKey: string;
|
|
99
62
|
* }} opts
|
|
100
|
-
* @returns {
|
|
63
|
+
* @returns {OfferSpec}
|
|
101
64
|
*/
|
|
102
|
-
declare function makeOpenOffer({ brand }: Pick<
|
|
65
|
+
declare function makeOpenOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, opts: {
|
|
103
66
|
offerId: string;
|
|
104
67
|
wantMinted: number;
|
|
105
68
|
giveCollateral: number;
|
|
106
69
|
collateralBrandKey: string;
|
|
107
|
-
}):
|
|
70
|
+
}): OfferSpec;
|
|
108
71
|
/**
|
|
109
|
-
* @param {Pick<
|
|
110
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
111
|
-
* 'brand'
|
|
112
|
-
* >} agoricNames
|
|
72
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
113
73
|
* @param {{
|
|
114
74
|
* offerId: string;
|
|
115
75
|
* collateralBrandKey?: string;
|
|
@@ -119,50 +79,45 @@ declare function makeOpenOffer({ brand }: Pick<import("@agoric/vats/tools/board-
|
|
|
119
79
|
* wantMinted?: number;
|
|
120
80
|
* }} opts
|
|
121
81
|
* @param {string} previousOffer
|
|
122
|
-
* @returns {
|
|
82
|
+
* @returns {OfferSpec}
|
|
123
83
|
*/
|
|
124
|
-
declare function makeAdjustOffer({ brand }: Pick<
|
|
84
|
+
declare function makeAdjustOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, opts: {
|
|
125
85
|
offerId: string;
|
|
126
86
|
collateralBrandKey?: string;
|
|
127
87
|
giveCollateral?: number;
|
|
128
88
|
wantCollateral?: number;
|
|
129
89
|
giveMinted?: number;
|
|
130
90
|
wantMinted?: number;
|
|
131
|
-
}, previousOffer: string):
|
|
91
|
+
}, previousOffer: string): OfferSpec;
|
|
132
92
|
/**
|
|
133
|
-
* @param {Pick<
|
|
134
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
135
|
-
* 'brand'
|
|
136
|
-
* >} agoricNames
|
|
93
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
137
94
|
* @param {{
|
|
138
95
|
* offerId: string;
|
|
139
96
|
* collateralBrandKey?: string;
|
|
140
97
|
* giveMinted: number;
|
|
141
98
|
* }} opts
|
|
142
99
|
* @param {string} previousOffer
|
|
143
|
-
* @returns {
|
|
100
|
+
* @returns {OfferSpec}
|
|
144
101
|
*/
|
|
145
|
-
declare function makeCloseOffer({ brand }: Pick<
|
|
102
|
+
declare function makeCloseOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, opts: {
|
|
146
103
|
offerId: string;
|
|
147
104
|
collateralBrandKey?: string;
|
|
148
105
|
giveMinted: number;
|
|
149
|
-
}, previousOffer: string):
|
|
106
|
+
}, previousOffer: string): OfferSpec;
|
|
150
107
|
/**
|
|
151
|
-
* @param {Pick<
|
|
152
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
153
|
-
* 'brand'
|
|
154
|
-
* >} agoricNames
|
|
108
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
155
109
|
* @param {{
|
|
156
110
|
* offerId: string;
|
|
157
111
|
* give: number;
|
|
158
112
|
* collateralBrandKey: string;
|
|
159
113
|
* }} opts
|
|
160
|
-
* @returns {
|
|
114
|
+
* @returns {OfferSpec}
|
|
161
115
|
*/
|
|
162
|
-
declare function makeAddCollateralOffer({ brand }: Pick<
|
|
116
|
+
declare function makeAddCollateralOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, opts: {
|
|
163
117
|
offerId: string;
|
|
164
118
|
give: number;
|
|
165
119
|
collateralBrandKey: string;
|
|
166
|
-
}):
|
|
120
|
+
}): OfferSpec;
|
|
121
|
+
import type { OfferSpec } from '@agoric/smart-wallet/src/offers.js';
|
|
167
122
|
export {};
|
|
168
123
|
//# sourceMappingURL=clientSupport.d.ts.map
|
|
@@ -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":"AA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Ac,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,iBACO,MAAM,GACJ,SAAS,CAiBrB;AAED;;;;;;;;;GASG;AACH,2CATW,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,QACjC;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB,iBACO,MAAM,GACJ,SAAS,CAcrB;AA6HD;;;;;;;;GAQG;AACH,mDARW,IAAI,CAAC,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"}
|
package/src/clientSupport.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
import { Fail } from '@endo/errors';
|
|
4
3
|
import { AmountMath } from '@agoric/ertp';
|
|
5
|
-
import {
|
|
6
|
-
import { parseRatio } from '@agoric/ertp/src/ratio.js';
|
|
4
|
+
import { Fail } from '@endo/errors';
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @import {Amount, Brand, Payment, Purse} from '@agoric/ertp';
|
|
10
8
|
* @import {Proposal} from '@agoric/zoe';
|
|
9
|
+
* @import {AgoricNamesRemotes} from '@agoric/vats/tools/board-utils.js';
|
|
10
|
+
* @import {OfferSpec} from '@agoric/smart-wallet/src/offers.js';
|
|
11
|
+
* @import {CurrentWalletRecord} from '@agoric/smart-wallet/src/smartWallet.js';
|
|
12
|
+
* @import {BoardRemote} from '@agoric/internal/src/marshal/board-client-utils.js';
|
|
13
|
+
* @import {OfferMaker} from '@agoric/smart-wallet/src/types.js';
|
|
11
14
|
*/
|
|
12
15
|
|
|
13
16
|
// XXX support other decimal places
|
|
@@ -20,10 +23,7 @@ const scaleDecimals = num => BigInt(num * Number(COSMOS_UNIT));
|
|
|
20
23
|
/**
|
|
21
24
|
* Give/want
|
|
22
25
|
*
|
|
23
|
-
* @param {Pick<
|
|
24
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
25
|
-
* 'brand'
|
|
26
|
-
* >} agoricNames
|
|
26
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
27
27
|
* @param {{ giveMinted?: number; wantMinted?: number }
|
|
28
28
|
* | {
|
|
29
29
|
* collateralBrandKey: string;
|
|
@@ -67,17 +67,14 @@ const makeVaultProposal = ({ brand }, opts) => {
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* @param {Pick<
|
|
71
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
72
|
-
* 'brand'
|
|
73
|
-
* >} agoricNames
|
|
70
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
74
71
|
* @param {{
|
|
75
72
|
* offerId: string;
|
|
76
73
|
* wantMinted: number;
|
|
77
74
|
* giveCollateral: number;
|
|
78
75
|
* collateralBrandKey: string;
|
|
79
76
|
* }} opts
|
|
80
|
-
* @returns {
|
|
77
|
+
* @returns {OfferSpec}
|
|
81
78
|
*/
|
|
82
79
|
const makeOpenOffer = ({ brand }, opts) => {
|
|
83
80
|
const proposal = makeVaultProposal({ brand }, opts);
|
|
@@ -103,10 +100,7 @@ const makeOpenOffer = ({ brand }, opts) => {
|
|
|
103
100
|
};
|
|
104
101
|
|
|
105
102
|
/**
|
|
106
|
-
* @param {Pick<
|
|
107
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
108
|
-
* 'brand'
|
|
109
|
-
* >} agoricNames
|
|
103
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
110
104
|
* @param {{
|
|
111
105
|
* offerId: string;
|
|
112
106
|
* collateralBrandKey?: string;
|
|
@@ -116,7 +110,7 @@ const makeOpenOffer = ({ brand }, opts) => {
|
|
|
116
110
|
* wantMinted?: number;
|
|
117
111
|
* }} opts
|
|
118
112
|
* @param {string} previousOffer
|
|
119
|
-
* @returns {
|
|
113
|
+
* @returns {OfferSpec}
|
|
120
114
|
*/
|
|
121
115
|
const makeAdjustOffer = ({ brand }, opts, previousOffer) => {
|
|
122
116
|
// NB: not really a Proposal because the brands are not remotes
|
|
@@ -136,17 +130,14 @@ const makeAdjustOffer = ({ brand }, opts, previousOffer) => {
|
|
|
136
130
|
};
|
|
137
131
|
|
|
138
132
|
/**
|
|
139
|
-
* @param {Pick<
|
|
140
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
141
|
-
* 'brand'
|
|
142
|
-
* >} agoricNames
|
|
133
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
143
134
|
* @param {{
|
|
144
135
|
* offerId: string;
|
|
145
136
|
* collateralBrandKey?: string;
|
|
146
137
|
* giveMinted: number;
|
|
147
138
|
* }} opts
|
|
148
139
|
* @param {string} previousOffer
|
|
149
|
-
* @returns {
|
|
140
|
+
* @returns {OfferSpec}
|
|
150
141
|
*/
|
|
151
142
|
const makeCloseOffer = ({ brand }, opts, previousOffer) => {
|
|
152
143
|
const proposal = makeVaultProposal({ brand }, opts);
|
|
@@ -164,9 +155,7 @@ const makeCloseOffer = ({ brand }, opts, previousOffer) => {
|
|
|
164
155
|
|
|
165
156
|
/**
|
|
166
157
|
* @param {string} vaultId
|
|
167
|
-
* @param {Promise<
|
|
168
|
-
* import('@agoric/smart-wallet/src/smartWallet.js').CurrentWalletRecord
|
|
169
|
-
* >} currentP
|
|
158
|
+
* @param {Promise<CurrentWalletRecord>} currentP
|
|
170
159
|
* @returns {Promise<string>} offer id in which the vault was made
|
|
171
160
|
*/
|
|
172
161
|
export const lookupOfferIdForVault = async (vaultId, currentP) => {
|
|
@@ -181,10 +170,7 @@ export const lookupOfferIdForVault = async (vaultId, currentP) => {
|
|
|
181
170
|
};
|
|
182
171
|
|
|
183
172
|
/**
|
|
184
|
-
* @param {Record<
|
|
185
|
-
* string,
|
|
186
|
-
* import('@agoric/internal/src/marshal.js').BoardRemote
|
|
187
|
-
* >} brands
|
|
173
|
+
* @param {Record<string, BoardRemote>} brands
|
|
188
174
|
* @param {{ wantMinted: number; giveMinted?: undefined }
|
|
189
175
|
* | { giveMinted: number; wantMinted?: undefined }} opts
|
|
190
176
|
* @param {number} [fee]
|
|
@@ -214,16 +200,13 @@ const makePsmProposal = (brands, opts, fee = 0, anchor = 'AUSD') => {
|
|
|
214
200
|
};
|
|
215
201
|
|
|
216
202
|
/**
|
|
217
|
-
* @param {Pick<
|
|
218
|
-
*
|
|
219
|
-
* 'brand'
|
|
220
|
-
* >} agoricNames
|
|
221
|
-
* @param {Instance} instance
|
|
203
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
204
|
+
* @param {Instance<unknown>} instance
|
|
222
205
|
* @param {{ offerId: string; feePct?: number; pair: [string, string] } & (
|
|
223
206
|
* | { wantMinted: number }
|
|
224
207
|
* | { giveMinted: number }
|
|
225
208
|
* )} opts
|
|
226
|
-
* @returns {
|
|
209
|
+
* @returns {OfferSpec}
|
|
227
210
|
*/
|
|
228
211
|
const makePsmSwapOffer = ({ brand }, instance, opts) => {
|
|
229
212
|
const method =
|
|
@@ -254,10 +237,7 @@ const makePsmSwapOffer = ({ brand }, instance, opts) => {
|
|
|
254
237
|
};
|
|
255
238
|
|
|
256
239
|
/**
|
|
257
|
-
* @param {Pick<
|
|
258
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
259
|
-
* 'brand' | 'vbankAsset'
|
|
260
|
-
* >} agoricNames
|
|
240
|
+
* @param {Pick<AgoricNamesRemotes, 'brand' | 'vbankAsset'>} agoricNames
|
|
261
241
|
* @param {(msg: string) => Error} makeError error constructor
|
|
262
242
|
* @returns {(a: string) => Amount<'nat'>}
|
|
263
243
|
*/
|
|
@@ -297,91 +277,13 @@ export const makeParseAmount =
|
|
|
297
277
|
};
|
|
298
278
|
|
|
299
279
|
/**
|
|
300
|
-
* @param {Pick<
|
|
301
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
302
|
-
* 'brand' | 'vbankAsset'
|
|
303
|
-
* >} agoricNames
|
|
304
|
-
* @param {{
|
|
305
|
-
* offerId: string;
|
|
306
|
-
* give: string;
|
|
307
|
-
* maxBuy: string;
|
|
308
|
-
* wantMinimum?: string;
|
|
309
|
-
* } & (
|
|
310
|
-
* | {
|
|
311
|
-
* price: number;
|
|
312
|
-
* }
|
|
313
|
-
* | {
|
|
314
|
-
* discount: number; // -1 to 1. e.g. 0.10 for 10% discount, -0.05 for 5% markup
|
|
315
|
-
* }
|
|
316
|
-
* )} opts
|
|
317
|
-
* @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
|
|
318
|
-
*/
|
|
319
|
-
const makeBidOffer = (agoricNames, opts) => {
|
|
320
|
-
assertAllDefined({
|
|
321
|
-
offerId: opts.offerId,
|
|
322
|
-
give: opts.give,
|
|
323
|
-
maxBuy: opts.maxBuy,
|
|
324
|
-
});
|
|
325
|
-
const parseAmount = makeParseAmount(agoricNames);
|
|
326
|
-
const proposal = {
|
|
327
|
-
give: { Bid: parseAmount(opts.give) },
|
|
328
|
-
...(opts.wantMinimum
|
|
329
|
-
? { want: { Collateral: parseAmount(opts.wantMinimum) } }
|
|
330
|
-
: {}),
|
|
331
|
-
};
|
|
332
|
-
const istBrand = proposal.give.Bid.brand;
|
|
333
|
-
const maxBuy = parseAmount(opts.maxBuy);
|
|
334
|
-
|
|
335
|
-
const bounds = (x, lo, hi) => {
|
|
336
|
-
assert(x >= lo && x <= hi);
|
|
337
|
-
return x;
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
assert(
|
|
341
|
-
'price' in opts || 'discount' in opts,
|
|
342
|
-
'must specify price or discount',
|
|
343
|
-
);
|
|
344
|
-
/** @type {import('./auction/auctionBook.js').OfferSpec} */
|
|
345
|
-
const offerArgs =
|
|
346
|
-
'price' in opts
|
|
347
|
-
? {
|
|
348
|
-
maxBuy: parseAmount(opts.maxBuy),
|
|
349
|
-
offerPrice: parseRatio(opts.price, istBrand, maxBuy.brand),
|
|
350
|
-
}
|
|
351
|
-
: {
|
|
352
|
-
maxBuy,
|
|
353
|
-
offerBidScaling: parseRatio(
|
|
354
|
-
(1 - bounds(opts.discount, -1, 1)).toFixed(2),
|
|
355
|
-
istBrand,
|
|
356
|
-
istBrand,
|
|
357
|
-
),
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
/** @type {import('@agoric/smart-wallet/src/offers.js').OfferSpec} */
|
|
361
|
-
const offerSpec = {
|
|
362
|
-
id: opts.offerId,
|
|
363
|
-
invitationSpec: {
|
|
364
|
-
source: 'agoricContract',
|
|
365
|
-
instancePath: ['auctioneer'],
|
|
366
|
-
callPipe: [['makeBidInvitation', [maxBuy.brand]]],
|
|
367
|
-
},
|
|
368
|
-
proposal,
|
|
369
|
-
offerArgs,
|
|
370
|
-
};
|
|
371
|
-
return offerSpec;
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* @param {Pick<
|
|
376
|
-
* import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
|
|
377
|
-
* 'brand'
|
|
378
|
-
* >} agoricNames
|
|
280
|
+
* @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
|
|
379
281
|
* @param {{
|
|
380
282
|
* offerId: string;
|
|
381
283
|
* give: number;
|
|
382
284
|
* collateralBrandKey: string;
|
|
383
285
|
* }} opts
|
|
384
|
-
* @returns {
|
|
286
|
+
* @returns {OfferSpec}
|
|
385
287
|
*/
|
|
386
288
|
const makeAddCollateralOffer = ({ brand }, opts) => {
|
|
387
289
|
/** @type {AmountKeywordRecord} */
|
|
@@ -393,7 +295,7 @@ const makeAddCollateralOffer = ({ brand }, opts) => {
|
|
|
393
295
|
),
|
|
394
296
|
};
|
|
395
297
|
|
|
396
|
-
/** @type {
|
|
298
|
+
/** @type {OfferSpec} */
|
|
397
299
|
const offerSpec = {
|
|
398
300
|
id: opts.offerId,
|
|
399
301
|
invitationSpec: {
|
|
@@ -414,7 +316,7 @@ const makeAddCollateralOffer = ({ brand }, opts) => {
|
|
|
414
316
|
* unitPrice: bigint;
|
|
415
317
|
* }} opts
|
|
416
318
|
* @param {string} previousOffer
|
|
417
|
-
* @returns {
|
|
319
|
+
* @returns {OfferSpec}
|
|
418
320
|
*/
|
|
419
321
|
const makePushPriceOffer = (_agoricNames, opts, previousOffer) => {
|
|
420
322
|
return {
|
|
@@ -432,15 +334,9 @@ const makePushPriceOffer = (_agoricNames, opts, previousOffer) => {
|
|
|
432
334
|
};
|
|
433
335
|
|
|
434
336
|
/**
|
|
435
|
-
* @satisfies {Record<
|
|
436
|
-
* string,
|
|
437
|
-
* Record<string, import('@agoric/smart-wallet/src/types.js').OfferMaker>
|
|
438
|
-
* >}
|
|
337
|
+
* @satisfies {Record<string, Record<string, OfferMaker>>}
|
|
439
338
|
*/
|
|
440
339
|
export const Offers = {
|
|
441
|
-
auction: {
|
|
442
|
-
Bid: makeBidOffer,
|
|
443
|
-
},
|
|
444
340
|
fluxAggregator: {
|
|
445
341
|
PushPrice: makePushPriceOffer,
|
|
446
342
|
},
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {MapStore, SetStore} from '@agoric/store';
|
|
3
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
4
|
+
* @import {TimestampValue} from '@agoric/time';
|
|
3
5
|
*/
|
|
4
6
|
/**
|
|
5
7
|
* @file This contract makes it possible for those who govern contracts to call
|
|
@@ -12,26 +14,26 @@ export const INVITATION_MAKERS_DESC: "charter member invitation";
|
|
|
12
14
|
export const meta: ContractMeta<typeof start>;
|
|
13
15
|
export function start(zcf: ZCF<{
|
|
14
16
|
binaryVoteCounterInstallation: Installation;
|
|
15
|
-
}>, privateArgs: undefined, baggage:
|
|
17
|
+
}>, privateArgs: undefined, baggage: Baggage): Promise<{
|
|
16
18
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
17
19
|
/**
|
|
18
|
-
* @param {Instance} governedInstance
|
|
20
|
+
* @param {Instance<unknown>} governedInstance
|
|
19
21
|
* @param {GovernorCreatorFacet<any>} governorFacet
|
|
20
22
|
* @param {string} [label] for diagnostic use only
|
|
21
23
|
*/
|
|
22
|
-
addInstance: (governedInstance: Instance
|
|
24
|
+
addInstance: (governedInstance: Instance<unknown>, governorFacet: GovernorCreatorFacet<any>, label?: string) => void;
|
|
23
25
|
makeCharterMemberInvitation: () => Promise<globalThis.Invitation<{
|
|
24
26
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
25
27
|
VoteOnParamChange: () => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
|
|
26
28
|
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
|
|
27
|
-
VoteOnApiCall: (instance: Instance
|
|
29
|
+
VoteOnApiCall: (instance: Instance<unknown>, methodName: string, methodArgs: string[], deadline: TimestampValue) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
|
|
28
30
|
}>;
|
|
29
31
|
}, undefined>>;
|
|
30
32
|
}>;
|
|
31
33
|
}>;
|
|
32
34
|
export type ParamChangesOfferArgs = {
|
|
33
35
|
deadline: bigint;
|
|
34
|
-
instance: Instance
|
|
36
|
+
instance: Instance<unknown>;
|
|
35
37
|
params: Record<string, unknown>;
|
|
36
38
|
/**
|
|
37
39
|
* paramPath is determined by contract
|
|
@@ -40,4 +42,6 @@ export type ParamChangesOfferArgs = {
|
|
|
40
42
|
paramPath: unknown;
|
|
41
43
|
} | undefined;
|
|
42
44
|
};
|
|
45
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
46
|
+
import type { TimestampValue } from '@agoric/time';
|
|
43
47
|
//# sourceMappingURL=econCommitteeCharter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAaA
|
|
1
|
+
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH;;;;;GAKG;AAEH,qCAAsC,2BAA2B,CAAC;AAoBlE,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAMnC;AAQK,2BAJI,GAAG,CAAC;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,eACpD,SAAS,WACT,OAAO;;QAsHZ;;;;WAIG;wCAHQ,QAAQ,CAAC,OAAO,CAAC,iBACjB,oBAAoB,CAAC,GAAG,CAAC,UACzB,MAAM;;;;;0CAzEV,QAAQ,CAAC,OAAO,CAAC,cACjB,MAAM,cACN,MAAM,EAAE,YACR,cAAc;;;;GAkF1B;;cAjKa,MAAM;cACN,QAAQ,CAAC,OAAO,CAAC;YACjB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;mBACV,OAAO;;;6BAlBR,kBAAkB;oCACX,cAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
|
-
/// <reference types="@agoric/governance/exported" />
|
|
3
|
-
/// <reference types="@agoric/zoe/exported" />
|
|
2
|
+
/// <reference types="@agoric/governance/exported.js" />
|
|
3
|
+
/// <reference types="@agoric/zoe/exported.js" />
|
|
4
4
|
|
|
5
5
|
import { M, mustMatch } from '@agoric/store';
|
|
6
6
|
import { TimestampShape } from '@agoric/time';
|
|
@@ -13,6 +13,8 @@ import { E } from '@endo/far';
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @import {MapStore, SetStore} from '@agoric/store';
|
|
16
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
17
|
+
* @import {TimestampValue} from '@agoric/time';
|
|
16
18
|
*/
|
|
17
19
|
|
|
18
20
|
/**
|
|
@@ -27,7 +29,7 @@ export const INVITATION_MAKERS_DESC = 'charter member invitation';
|
|
|
27
29
|
/**
|
|
28
30
|
* @typedef {object} ParamChangesOfferArgs
|
|
29
31
|
* @property {bigint} deadline
|
|
30
|
-
* @property {Instance} instance
|
|
32
|
+
* @property {Instance<unknown>} instance
|
|
31
33
|
* @property {Record<string, unknown>} params
|
|
32
34
|
* @property {{ paramPath: unknown }} [path] paramPath is determined by contract
|
|
33
35
|
*/
|
|
@@ -54,11 +56,11 @@ harden(meta);
|
|
|
54
56
|
/**
|
|
55
57
|
* @param {ZCF<{ binaryVoteCounterInstallation: Installation }>} zcf
|
|
56
58
|
* @param {undefined} privateArgs
|
|
57
|
-
* @param {
|
|
59
|
+
* @param {Baggage} baggage
|
|
58
60
|
*/
|
|
59
61
|
export const start = async (zcf, privateArgs, baggage) => {
|
|
60
62
|
const { binaryVoteCounterInstallation: counter } = zcf.getTerms();
|
|
61
|
-
/** @type {MapStore<Instance
|
|
63
|
+
/** @type {MapStore<Instance<unknown>, GovernorCreatorFacet<any>>} */
|
|
62
64
|
const instanceToGovernor = provideDurableMapStore(
|
|
63
65
|
baggage,
|
|
64
66
|
'instanceToGovernor',
|
|
@@ -102,10 +104,10 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
102
104
|
};
|
|
103
105
|
|
|
104
106
|
/**
|
|
105
|
-
* @param {Instance} instance
|
|
107
|
+
* @param {Instance<unknown>} instance
|
|
106
108
|
* @param {string} methodName
|
|
107
109
|
* @param {string[]} methodArgs
|
|
108
|
-
* @param {
|
|
110
|
+
* @param {TimestampValue} deadline
|
|
109
111
|
*/
|
|
110
112
|
const makeApiInvocationInvitation = (
|
|
111
113
|
instance,
|
|
@@ -173,7 +175,7 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
173
175
|
CharterCreatorI,
|
|
174
176
|
{
|
|
175
177
|
/**
|
|
176
|
-
* @param {Instance} governedInstance
|
|
178
|
+
* @param {Instance<unknown>} governedInstance
|
|
177
179
|
* @param {GovernorCreatorFacet<any>} governorFacet
|
|
178
180
|
* @param {string} [label] for diagnostic use only
|
|
179
181
|
*/
|
package/src/feeDistributor.d.ts
CHANGED
|
@@ -33,11 +33,9 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
33
33
|
*/
|
|
34
34
|
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
|
|
35
35
|
/**
|
|
36
|
-
* @param {
|
|
37
|
-
* import('@agoric/ertp/src/types.js').DepositFacet
|
|
38
|
-
* >} depositFacet
|
|
36
|
+
* @param {EOnly<DepositFacet>} depositFacet
|
|
39
37
|
*/
|
|
40
|
-
makeDepositFacetDestination: (depositFacet:
|
|
38
|
+
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
41
39
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
42
40
|
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
43
41
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -74,11 +72,9 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
|
|
|
74
72
|
*/
|
|
75
73
|
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
|
|
76
74
|
/**
|
|
77
|
-
* @param {
|
|
78
|
-
* import('@agoric/ertp/src/types.js').DepositFacet
|
|
79
|
-
* >} depositFacet
|
|
75
|
+
* @param {EOnly<DepositFacet>} depositFacet
|
|
80
76
|
*/
|
|
81
|
-
makeDepositFacetDestination: (depositFacet:
|
|
77
|
+
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
82
78
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
83
79
|
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
84
80
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -125,11 +121,9 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
125
121
|
*/
|
|
126
122
|
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
|
|
127
123
|
/**
|
|
128
|
-
* @param {
|
|
129
|
-
* import('@agoric/ertp/src/types.js').DepositFacet
|
|
130
|
-
* >} depositFacet
|
|
124
|
+
* @param {EOnly<DepositFacet>} depositFacet
|
|
131
125
|
*/
|
|
132
|
-
makeDepositFacetDestination: (depositFacet:
|
|
126
|
+
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
133
127
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
134
128
|
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
135
129
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -166,11 +160,9 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
|
|
|
166
160
|
*/
|
|
167
161
|
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
|
|
168
162
|
/**
|
|
169
|
-
* @param {
|
|
170
|
-
* import('@agoric/ertp/src/types.js').DepositFacet
|
|
171
|
-
* >} depositFacet
|
|
163
|
+
* @param {EOnly<DepositFacet>} depositFacet
|
|
172
164
|
*/
|
|
173
|
-
makeDepositFacetDestination: (depositFacet:
|
|
165
|
+
makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
|
|
174
166
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
175
167
|
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
176
168
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -221,4 +213,6 @@ export type FeeDistributorCreatorFacet = ReturnType<typeof makeFeeDistributor>["
|
|
|
221
213
|
export type FeeDistributorPublicFacet = ReturnType<typeof makeFeeDistributor>["publicFacet"];
|
|
222
214
|
import type { TimerService } from '@agoric/time';
|
|
223
215
|
import type { RelativeTime } from '@agoric/time';
|
|
216
|
+
import type { DepositFacet } from '@agoric/ertp/src/types.js';
|
|
217
|
+
import type { EOnly } from '@endo/far';
|
|
224
218
|
//# sourceMappingURL=feeDistributor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"AAiBA,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAOnC;AAgCK,8CAHI,IAAI,CAAC,UAAU,CAAC,gBAChB,IAAI,CAAC,wBAAwB,CAAC;;;;GAWxC;AAeM,oDAPI,MAAM,OAAO,CAAC,OAAO,CAAC,gBAEtB,IAAI,CAAC,YAAY,CAAC,uBAElB,YAAY,QA6BtB;AASM,+CAHI,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,kBACrC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC;;;;;;EAenC;AAWM,sCAJI,OAAO,CAAC,KAAK,CAAC,UACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,2BACnB,WAAW,iBA8DrB;AAUM,8CAPI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAA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