@agoric/inter-protocol 0.16.2-dev-1145be3.0.1145be3 → 0.16.2-dev-b084a06.0.b084a06
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/util.d.ts +1 -0
- package/src/auction/util.d.ts.map +1 -1
- package/src/auction/util.js +1 -1
- package/src/clientSupport.d.ts +1 -0
- package/src/clientSupport.d.ts.map +1 -1
- package/src/clientSupport.js +1 -1
- package/src/collectFees.d.ts +4 -0
- package/src/collectFees.d.ts.map +1 -1
- package/src/collectFees.js +5 -0
- package/src/contractSupport.d.ts +9 -1
- package/src/contractSupport.d.ts.map +1 -1
- package/src/contractSupport.js +8 -1
- package/src/econCommitteeCharter.d.ts +11 -4
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/econCommitteeCharter.js +2 -2
- package/src/feeDistributor.d.ts +29 -19
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +3 -1
- package/src/index.js +0 -2
- package/src/interest.d.ts +8 -2
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +4 -2
- package/src/price/fluxAggregatorContract.d.ts +22 -7
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +9 -1
- package/src/price/fluxAggregatorKit.d.ts +8 -3
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +5 -0
- package/src/price/priceOracleKit.d.ts +1 -0
- package/src/price/priceOracleKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.js +1 -0
- package/src/price/roundsManager.d.ts +8 -3
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +5 -0
- package/src/proposals/addAssetToVault.js +7 -4
- package/src/proposals/committee-proposal.js +1 -0
- package/src/proposals/core-proposal.js +2 -0
- package/src/proposals/deploy-price-feeds.js +5 -1
- package/src/proposals/econ-behaviors.js +13 -9
- package/src/proposals/price-feed-proposal.js +3 -1
- package/src/proposals/replace-fee-distributor.js +2 -2
- package/src/proposals/replace-scaledPriceAuthorities.js +8 -2
- package/src/proposals/replaceElectorate.js +7 -1
- package/src/proposals/startPSM.js +7 -0
- package/src/proposals/upgrade-scaledPriceAuthorities.js +5 -0
- package/src/proposals/utils.d.ts +3 -0
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/proposals/utils.js +4 -0
- package/src/proposals/withdraw-reserve-proposal.js +1 -0
- package/src/provisionPool.d.ts +19 -9
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPool.js +4 -1
- package/src/provisionPoolKit.d.ts +9 -2
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +7 -1
- package/src/psm/psm.d.ts +27 -16
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +8 -4
- package/src/reserve/assetReserve.d.ts +13 -4
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +7 -1
- package/src/reserve/assetReserveKit.d.ts +5 -5
- package/src/reserve/params.d.ts +1 -1
- package/src/reserve/params.d.ts.map +1 -1
- package/src/reserve/params.js +1 -1
- package/src/vaultFactory/burn.d.ts +4 -1
- package/src/vaultFactory/burn.d.ts.map +1 -1
- package/src/vaultFactory/burn.js +5 -2
- package/src/vaultFactory/math.d.ts +1 -0
- package/src/vaultFactory/math.d.ts.map +1 -1
- package/src/vaultFactory/math.js +1 -0
- package/src/vaultFactory/orderedVaultStore.d.ts +30 -30
- package/src/vaultFactory/params.d.ts +13 -5
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +4 -2
- package/src/vaultFactory/prioritizedVaults.d.ts +79 -78
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +1 -0
- package/src/vaultFactory/storeUtils.d.ts +1 -0
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/storeUtils.js +1 -1
- package/src/vaultFactory/types-ambient.d.ts +18 -9
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +14 -16
- package/src/vaultFactory/vault.d.ts +19 -12
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +4 -1
- package/src/vaultFactory/vaultDirector.d.ts +58 -51
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +7 -5
- package/src/vaultFactory/vaultFactory.d.ts +22 -18
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +6 -4
- package/src/vaultFactory/vaultHolder.d.ts +48 -47
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +1 -0
- package/src/vaultFactory/vaultKit.d.ts +9 -8
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +1 -2
- package/src/vaultFactory/vaultManager.d.ts +66 -60
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":["fluxAggregatorKit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":["fluxAggregatorKit.js"],"names":[],"mappings":"AAuCA,qCAAsC,mBAAmB,CAAC;AAgEnD,kDAfI,OAAO,OACP,IACN,eAAe,GAAG;IAChB,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,MAAM,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,MAAM,KAAK,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,KAAK,CAAC,CAAC;CAC9B,CACF,iBACO,YAAY,YACZ,QAAQ,eACR,OAAO,WAAW,CAAC,yBACnB,MAAM,WAAW,GAAG,CAAC,gBACrB,YAAY;;QA8If;;;;;;;;;WASG;uCADQ,MAAM;;gBAiBX,iCAAiC;kCAArB,UAAU;;gBAAtB,iCAAiC;kCAArB,UAAU;;;;;;;QAqB5B,+BAA+B;+BAAnB,MAAM;;QAalB,+BAA+B;6BAAnB,MAAM;;;;;;;;;QAoBlB;;;;;;;;WAQG;mCAHQ,MAAM,kBACN,MAAM,GACJ,OAAO,CAAC,UAAU,CAAC;;;;;;;;;IAqDvC;;8BAvUa,OAAO;oBACP,MAAM;sBACN,MAAM;eACN,SAAS;kBACT,MAAM;iBACN,MAAM;;;wBAMN,MAAM;wBACN,MAAM;;;;;kBACN,MAAM;;;;;wBAEN,MAAM;;;;;wBAEN,MAAM;;;;;;aAEN,MAAM;;gCAsTN,QAAQ,QAAQ,OAAO,wBAAwB,CAAC,CAAC;6BAtVrC,kBAAkB;kCAKb,cAAc;2BAfrB,cAAc;4BACb,cAAc;yBAPR,aAAa;8BACjB,oBAAoB;iCAOjB,0CAA0C;4BAZjC,kBAAkB;gCAE5B,kBAAkB;kCAIhB,6CAA6C;gCAG/C,oBAAoB;oCAR4C,4BAA4B;sCAA5B,4BAA4B;iCAM3F,oBAAoB;+BActB,cAAc;6BAtBhB,WAAW"}
|
|
@@ -22,12 +22,17 @@ import { prepareRoundsManagerKit } from './roundsManager.js';
|
|
|
22
22
|
* @import {EReturn} from '@endo/far';
|
|
23
23
|
* @import {TypedPattern, Remote} from '@agoric/internal';
|
|
24
24
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
25
|
+
* @import {PublishKit} from '@agoric/notifier';
|
|
25
26
|
* @import {MapStore, SetStore} from '@agoric/store';
|
|
27
|
+
* @import {ZCF, ZCFSeat} from '@agoric/zoe';
|
|
26
28
|
* @import {QuoteKit} from './roundsManager.js';
|
|
27
29
|
* @import {MakeRecorder} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
28
30
|
* @import {LatestRound} from './roundsManager.js';
|
|
29
31
|
* @import {OracleKit} from './priceOracleKit.js';
|
|
30
32
|
* @import {PriceRound} from './roundsManager.js';
|
|
33
|
+
* @import {Brand} from '@agoric/ertp';
|
|
34
|
+
* @import {Amount} from '@agoric/ertp';
|
|
35
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
31
36
|
*/
|
|
32
37
|
|
|
33
38
|
const trace = makeTracer('FlxAgg', true);
|
|
@@ -36,5 +36,6 @@ export type MutableState = OracleStatus & {};
|
|
|
36
36
|
export type State = ImmutableState & MutableState;
|
|
37
37
|
export type OracleKit = EReturn<EReturn<typeof prepareOracleAdminKit>>;
|
|
38
38
|
import type { PriceRound } from './roundsManager.js';
|
|
39
|
+
import type { NatValue } from '@agoric/ertp';
|
|
39
40
|
import type { EReturn } from '@endo/far';
|
|
40
41
|
//# sourceMappingURL=priceOracleKit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceOracleKit.d.ts","sourceRoot":"","sources":["priceOracleKit.js"],"names":[],"mappings":"AAMA,qCAAsC,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"priceOracleKit.d.ts","sourceRoot":"","sources":["priceOracleKit.js"],"names":[],"mappings":"AAMA,qCAAsC,mBAAmB,CAAC;AAkEnD;;;;;QAcC;;;;WAIG;iEADQ,UAAU;QA0BrB,8BAA8B;qBAAhB,YAAY;;GAa/B;yBAjHU;IACR,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE;QACX,UAAU,EAAE,CACV,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,UAAU,KACf,OAAO,CAAC,YAAY,CAAC,CAAC;KAC5B,CAAC;CACH;yBAGU;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAE;;;uBAKpD,MAAM;sBACN,MAAM;sBACN,MAAM;cACN,MAAM;;6BAGP,QAAQ,CAAC,UAAU,GAAG,EAAE,CAAC;2BAEzB,YAAY,GAAG,EAAE;oBAEhB,cAAc,GAAG,YAAY;wBAyF7B,QAAQ,QAAQ,OAAO,qBAAqB,CAAC,CAAC;gCAxH/B,oBAAoB;8BACtB,cAAc;6BAFf,WAAW"}
|
|
@@ -79,7 +79,7 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<Chainli
|
|
|
79
79
|
/** @param {PriceQuoteValue} quote */
|
|
80
80
|
authenticateQuote(quote: PriceQuoteValue): Promise<{
|
|
81
81
|
quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
|
|
82
|
-
quotePayment:
|
|
82
|
+
quotePayment: import("@agoric/ertp").Payment<"set", PriceDescription>;
|
|
83
83
|
}>;
|
|
84
84
|
/**
|
|
85
85
|
* @param {object} param0
|
|
@@ -91,10 +91,10 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<Chainli
|
|
|
91
91
|
timestamp?: Timestamp | undefined;
|
|
92
92
|
}): ((priceQuery: any) => Promise<{
|
|
93
93
|
quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
|
|
94
|
-
quotePayment:
|
|
94
|
+
quotePayment: import("@agoric/ertp").Payment<"set", PriceDescription>;
|
|
95
95
|
}> | undefined) & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
|
|
96
96
|
quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
|
|
97
|
-
quotePayment:
|
|
97
|
+
quotePayment: import("@agoric/ertp").Payment<"set", PriceDescription>;
|
|
98
98
|
}> | undefined>;
|
|
99
99
|
/**
|
|
100
100
|
* @param {OracleStatus} status
|
|
@@ -196,11 +196,16 @@ export type MutableState = {
|
|
|
196
196
|
};
|
|
197
197
|
export type State = ImmutableState & MutableState;
|
|
198
198
|
import type { ChainlinkConfig } from './fluxAggregatorKit.js';
|
|
199
|
+
import type { Publisher } from '@agoric/notifier';
|
|
200
|
+
import type { Brand } from '@agoric/ertp';
|
|
199
201
|
import type { Recorder } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
200
202
|
import type { TimerService } from '@agoric/time';
|
|
203
|
+
import type { Amount } from '@agoric/ertp';
|
|
201
204
|
import type { OracleStatus } from './priceOracleKit.js';
|
|
202
205
|
import type { Timestamp } from '@agoric/time';
|
|
203
206
|
import type { PriceQuoteValue } from '@agoric/zoe/tools/types.js';
|
|
204
207
|
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
208
|
+
import type { NatValue } from '@agoric/ertp';
|
|
209
|
+
import type { IssuerKit } from '@agoric/ertp';
|
|
205
210
|
import type { MapStore } from '@agoric/store';
|
|
206
211
|
//# sourceMappingURL=roundsManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roundsManager.d.ts","sourceRoot":"","sources":["roundsManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"roundsManager.d.ts","sourceRoot":"","sources":["roundsManager.js"],"names":[],"mappings":"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"}
|
|
@@ -17,10 +17,15 @@ const { add, subtract, multiply, floorDivide, ceilDivide, isGTE } = natSafeMath;
|
|
|
17
17
|
/**
|
|
18
18
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
19
19
|
* @import {Timestamp, TimerService} from '@agoric/time'
|
|
20
|
+
* @import {Publisher} from '@agoric/notifier';
|
|
20
21
|
* @import {MapStore, SetStore} from '@agoric/store';
|
|
21
22
|
* @import {OracleStatus} from './priceOracleKit.js'
|
|
22
23
|
* @import {ChainlinkConfig} from './fluxAggregatorKit.js';
|
|
23
24
|
* @import {Recorder} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
25
|
+
* @import {NatValue} from '@agoric/ertp';
|
|
26
|
+
* @import {IssuerKit} from '@agoric/ertp';
|
|
27
|
+
* @import {Amount} from '@agoric/ertp';
|
|
28
|
+
* @import {Brand} from '@agoric/ertp';
|
|
24
29
|
*/
|
|
25
30
|
|
|
26
31
|
/** @type {string} */
|
|
@@ -31,8 +31,11 @@ export * from './startPSM.js';
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @import {EconomyBootstrapPowers} from './econ-behaviors.js'
|
|
34
|
-
* @import {FullSchedule} from '../auction/scheduler.js';
|
|
35
34
|
* @import {TimerService} from '@agoric/time';
|
|
35
|
+
* @import {Issuer, IssuerKit} from '@agoric/ertp';
|
|
36
|
+
* @import {prepare} from '@agoric/zoe/src/contracts/scaledPriceAuthority.js';
|
|
37
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
38
|
+
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
36
39
|
*/
|
|
37
40
|
|
|
38
41
|
/**
|
|
@@ -123,7 +126,7 @@ export const publishInterchainAssetFromBank = async (
|
|
|
123
126
|
};
|
|
124
127
|
|
|
125
128
|
/**
|
|
126
|
-
* @param {
|
|
129
|
+
* @param {EconomyBootstrapPowers} powers
|
|
127
130
|
* @param {object} config
|
|
128
131
|
* @param {object} config.options
|
|
129
132
|
* @param {InterchainAssetOptions} config.options.interchainAssetOptions
|
|
@@ -215,6 +218,7 @@ export const startScaledPriceAuthority = async (
|
|
|
215
218
|
|
|
216
219
|
const label = scaledPriceFeedName(issuerName);
|
|
217
220
|
|
|
221
|
+
/** @type {StartedInstanceKit<prepare>} */
|
|
218
222
|
const spaKit = await E(startUpgradable)({
|
|
219
223
|
installation: scaledPriceAuthority,
|
|
220
224
|
label,
|
|
@@ -222,7 +226,6 @@ export const startScaledPriceAuthority = async (
|
|
|
222
226
|
});
|
|
223
227
|
|
|
224
228
|
await E(priceAuthorityAdmin).registerPriceAuthority(
|
|
225
|
-
// @ts-expect-error The public facet should have getPriceAuthority
|
|
226
229
|
E(spaKit.publicFacet).getPriceAuthority(),
|
|
227
230
|
interchainBrand,
|
|
228
231
|
stableBrand,
|
|
@@ -233,7 +236,7 @@ export const startScaledPriceAuthority = async (
|
|
|
233
236
|
};
|
|
234
237
|
|
|
235
238
|
/**
|
|
236
|
-
* @param {
|
|
239
|
+
* @param {EconomyBootstrapPowers} powers
|
|
237
240
|
* @param {object} config
|
|
238
241
|
* @param {object} config.options
|
|
239
242
|
*/
|
|
@@ -8,6 +8,8 @@ import { ECON_COMMITTEE_MANIFEST } from './startEconCommittee.js';
|
|
|
8
8
|
* @import {EconomyBootstrapPowers} from './econ-behaviors.js';
|
|
9
9
|
* @import {BootstrapManifest} from '@agoric/vats/src/core/lib-boot.js';
|
|
10
10
|
* @import {BootstrapManifestPermit} from '@agoric/vats/src/core/lib-boot.js';
|
|
11
|
+
* @import {Instance} from '@agoric/zoe';
|
|
12
|
+
* @import {MapStore} from '@agoric/store';
|
|
11
13
|
*/
|
|
12
14
|
|
|
13
15
|
export * from './econ-behaviors.js';
|
|
@@ -27,6 +27,11 @@ export const DEFAULT_CONTRACT_TERMS = {
|
|
|
27
27
|
* @import {EconomyBootstrapPowers} from './econ-behaviors.js';
|
|
28
28
|
* @import {ChainlinkConfig} from '@agoric/inter-protocol/src/price/fluxAggregatorKit.js';
|
|
29
29
|
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
30
|
+
* @import {Installation, Instance} from '@agoric/zoe';
|
|
31
|
+
* @import {Brand} from '@agoric/ertp';
|
|
32
|
+
* @import {MapStore} from '@agoric/store';
|
|
33
|
+
* @import {NamedVatPowers} from '@agoric/vats/src/core/types.js';
|
|
34
|
+
* @import {PromiseSpaceOf} from '@agoric/vats/src/core/types.js';
|
|
30
35
|
*/
|
|
31
36
|
/** @import {FluxStartFn} from '@agoric/inter-protocol/src/price/fluxAggregatorContract.js'; */
|
|
32
37
|
|
|
@@ -287,7 +292,6 @@ export const deployPriceFeeds = async (powers, config) => {
|
|
|
287
292
|
);
|
|
288
293
|
}
|
|
289
294
|
|
|
290
|
-
// @ts-expect-error replaceScaledPriceAuthorities uses a subset of the powers.
|
|
291
295
|
await replaceScaledPriceAuthorities(powers, {
|
|
292
296
|
options: { scaledPARef },
|
|
293
297
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
|
-
/* eslint-disable @agoric/group-jsdoc-imports */
|
|
2
|
+
/* eslint-disable @agoric/group-jsdoc-imports -- due to conflicting `start` values */
|
|
3
3
|
|
|
4
4
|
import { AmountMath } from '@agoric/ertp';
|
|
5
5
|
import { deeplyFulfilledObject, makeTracer } from '@agoric/internal';
|
|
@@ -13,16 +13,23 @@ import { makeGovernedTerms as makeGovernedVFTerms } from '../vaultFactory/params
|
|
|
13
13
|
/**
|
|
14
14
|
* @import {GovernorCreatorFacet, GovernanceFacetKit, GovernorStartedInstallationKit} from '@agoric/governance/src/types.js';
|
|
15
15
|
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
16
|
-
* @import {
|
|
16
|
+
* @import {Amount, Brand, NatValue, Payment} from '@agoric/ertp';
|
|
17
|
+
* @import {AdminFacet, Instance} from '@agoric/zoe';
|
|
17
18
|
* @import {MapStore, SetStore} from '@agoric/store';
|
|
19
|
+
* @import {RelativeTime} from '@agoric/time';
|
|
20
|
+
* @import {WellKnownSpaces} from '@agoric/vats/src/core/types.js';
|
|
21
|
+
* @import {ChainBootstrapSpace} from '@agoric/vats/src/core/types.js';
|
|
22
|
+
* @import {PromiseSpaceOf} from '@agoric/vats/src/core/types.js';
|
|
23
|
+
* @import {CommitteeElectorateCreatorFacet} from '@agoric/governance/src/committee.js';
|
|
24
|
+
* @import {PeriodicFeeCollector} from '../feeDistributor.js';
|
|
18
25
|
*/
|
|
19
26
|
|
|
20
27
|
// Duplicated from vaultFactory/types-ambient.js to solve a CI problem.
|
|
21
28
|
// Not worth refactoring to DRY because vaultFactory is going away.
|
|
22
29
|
/**
|
|
23
30
|
* @typedef {object} InterestTiming
|
|
24
|
-
* @property {
|
|
25
|
-
* @property {
|
|
31
|
+
* @property {RelativeTime} chargingPeriod in seconds
|
|
32
|
+
* @property {RelativeTime} recordingPeriod in seconds
|
|
26
33
|
*/
|
|
27
34
|
|
|
28
35
|
const trace = makeTracer('RunEconBehaviors', true);
|
|
@@ -61,14 +68,11 @@ export const SECONDS_PER_WEEK = 7n * SECONDS_PER_DAY;
|
|
|
61
68
|
*
|
|
62
69
|
* @typedef {PromiseSpaceOf<{
|
|
63
70
|
* economicCommitteeKit: CommitteeStartResult;
|
|
64
|
-
* economicCommitteeCreatorFacet:
|
|
71
|
+
* economicCommitteeCreatorFacet: CommitteeElectorateCreatorFacet;
|
|
65
72
|
* feeDistributorKit: StartedInstanceKit<
|
|
66
73
|
* typeof import('../feeDistributor.js').start
|
|
67
74
|
* >;
|
|
68
|
-
* periodicFeeCollectors: MapStore<
|
|
69
|
-
* number,
|
|
70
|
-
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
71
|
-
* >;
|
|
75
|
+
* periodicFeeCollectors: MapStore<number, PeriodicFeeCollector>;
|
|
72
76
|
* psmKit: MapStore<Brand, PSMKit>;
|
|
73
77
|
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
74
78
|
* econCharterKit: EconCharterStartResult;
|
|
@@ -17,6 +17,8 @@ import {
|
|
|
17
17
|
* @import {ChainlinkConfig} from '@agoric/inter-protocol/src/price/fluxAggregatorKit.js';
|
|
18
18
|
* @import {EconomyBootstrapPowers} from './econ-behaviors.js';
|
|
19
19
|
* @import {start} from '@agoric/inter-protocol/src/price/fluxAggregatorContract.js';
|
|
20
|
+
* @import {Installation} from '@agoric/zoe';
|
|
21
|
+
* @import {ChainBootstrapSpace} from '@agoric/vats/src/core/types.js';
|
|
20
22
|
*/
|
|
21
23
|
|
|
22
24
|
// backwards compatibility
|
|
@@ -97,7 +99,7 @@ export const ensureOracleBrands = async (
|
|
|
97
99
|
* contractTerms: ChainlinkConfig;
|
|
98
100
|
* IN_BRAND_NAME: string;
|
|
99
101
|
* OUT_BRAND_NAME: string;
|
|
100
|
-
* priceAggregatorRef
|
|
102
|
+
* priceAggregatorRef?: Installation;
|
|
101
103
|
* };
|
|
102
104
|
* };
|
|
103
105
|
* }} config
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
import { deeplyFulfilledObject, makeTracer } from '@agoric/internal';
|
|
3
2
|
import { Stable } from '@agoric/internal/src/tokens.js';
|
|
4
3
|
import { makeScalarBigMapStore } from '@agoric/vat-data';
|
|
5
4
|
import { getInterfaceOf, E } from '@endo/far';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
|
-
* @import {EconomyBootstrapPowers} from './econ-behaviors';
|
|
7
|
+
* @import {EconomyBootstrapPowers} from './econ-behaviors.js';
|
|
9
8
|
* @import {start} from '@agoric/inter-protocol/src/feeDistributor.js';
|
|
9
|
+
* @import {StartedInstanceKit} from '@agoric/vats/src/core/types.js';
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
const trace = makeTracer('ReplaceFeeDistributer', true);
|
|
@@ -4,10 +4,16 @@ import { E } from '@endo/far';
|
|
|
4
4
|
import { startScaledPriceAuthority } from './addAssetToVault.js';
|
|
5
5
|
import { scaledPriceFeedName } from './utils.js';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
9
|
+
* @import {ChainBootstrapSpace} from '@agoric/vats/src/core/types.js';
|
|
10
|
+
* @import {EconomyBootstrapPowers} from './core-proposal.js';
|
|
11
|
+
*/
|
|
12
|
+
|
|
7
13
|
const trace = makeTracer('replaceScaledPA', true);
|
|
8
14
|
|
|
9
15
|
/**
|
|
10
|
-
* @param {
|
|
16
|
+
* @param {EconomyBootstrapPowers} powers
|
|
11
17
|
* @param {object} config
|
|
12
18
|
* @param {object} config.options
|
|
13
19
|
*/
|
|
@@ -32,7 +38,7 @@ export const replaceScaledPriceAuthority = async (powers, { options }) => {
|
|
|
32
38
|
* scaledPriceAuthorities. The existing contracts will be left behind to be
|
|
33
39
|
* cleaned up later.
|
|
34
40
|
*
|
|
35
|
-
* @param {
|
|
41
|
+
* @param {EconomyBootstrapPowers} powers
|
|
36
42
|
* @param {{ options: { scaledPARef: { bundleID: string } } }} options
|
|
37
43
|
*/
|
|
38
44
|
export const replaceScaledPriceAuthorities = async (powers, { options }) => {
|
|
@@ -17,7 +17,12 @@ import {
|
|
|
17
17
|
} from '@agoric/internal/src/lib-chainStorage.js';
|
|
18
18
|
import { provideRetiredInstances, reserveThenDeposit } from './utils.js';
|
|
19
19
|
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* @import {EconomyBootstrapPowers} from './econ-behaviors.js'
|
|
22
|
+
* @import {Instance, Invitation} from '@agoric/zoe';
|
|
23
|
+
* @import {MapStore} from '@agoric/store';
|
|
24
|
+
* @import {PromiseSpaceOf} from '@agoric/vats/src/core/types.js';
|
|
25
|
+
*/
|
|
21
26
|
/** @import {EconCharterStartResult} from './econ-behaviors.js' */
|
|
22
27
|
/** @import {CommitteeElectorateCreatorFacet} from '@agoric/governance/src/committee.js'; */
|
|
23
28
|
|
|
@@ -368,6 +373,7 @@ const startNewEconCharter = async ({
|
|
|
368
373
|
const terms = harden({
|
|
369
374
|
binaryVoteCounterInstallation: counterInstall,
|
|
370
375
|
});
|
|
376
|
+
/** @type {EconCharterStartResult} */
|
|
371
377
|
const startResult = await E(startUpgradable)({
|
|
372
378
|
label,
|
|
373
379
|
installation: charterInstall,
|
|
@@ -28,6 +28,13 @@ import {
|
|
|
28
28
|
* @import {BootstrapManifest} from '@agoric/vats/src/core/lib-boot.js'
|
|
29
29
|
* @import {PSMKit} from './econ-behaviors.js';
|
|
30
30
|
* @import {FeeMintAccess} from '@agoric/zoe';
|
|
31
|
+
* @import {GovernanceSubscriptionState, GovernorStartedInstallationKit} from '@agoric/governance/src/types.js';
|
|
32
|
+
* @import {Brand} from '@agoric/ertp';
|
|
33
|
+
* @import {Issuer} from '@agoric/ertp';
|
|
34
|
+
* @import {Mint} from '@agoric/ertp';
|
|
35
|
+
* @import {MapStore} from '@agoric/store';
|
|
36
|
+
* @import {ChainStorageVatParams, WellKnownSpaces} from '@agoric/vats/src/core/types.js';
|
|
37
|
+
* @import {ERef} from '@agoric/vow';
|
|
31
38
|
*/
|
|
32
39
|
/** @import {MetricsNotification} from '../psm/psm.js' */
|
|
33
40
|
/** @import {EconomyBootstrapPowers} from './econ-behaviors.js' */
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeTracer } from '@agoric/internal';
|
|
2
2
|
import { E } from '@endo/far';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @import {ChainBootstrapSpace} from '@agoric/vats/src/core/types.js';
|
|
6
|
+
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
7
|
+
*/
|
|
8
|
+
|
|
4
9
|
const trace = makeTracer('upgradeScaledPA', true);
|
|
5
10
|
|
|
6
11
|
/**
|
package/src/proposals/utils.d.ts
CHANGED
|
@@ -18,7 +18,10 @@ export function scaledPriceFeedName(issuerName: any): string;
|
|
|
18
18
|
export const sanitizePathSegment: (name: string) => string;
|
|
19
19
|
export function provideRetiredInstances(consume: Promise<MapStore>, produce: Producer<MapStore>): Promise<MapStore>;
|
|
20
20
|
import type { NameAdmin } from '@agoric/vats';
|
|
21
|
+
import type { ERef } from '@agoric/vow';
|
|
22
|
+
import type { Payment } from '@agoric/ertp';
|
|
21
23
|
import type { ScratchPad } from '@agoric/internal/src/scratch.js';
|
|
22
24
|
import type { Bundle } from '@agoric/swingset-vat';
|
|
23
25
|
import type { MapStore } from '@agoric/store';
|
|
26
|
+
import type { Producer } from '@agoric/vats/src/core/types.js';
|
|
24
27
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAuBO,mDAHI,KAAK,SAAS,CAAC,SACf,MAAM,EAAE,EAAE,sBAgCpB;AAOM,+CAJI,KAAK,SAAS,CAAC,SACf,MAAM,EAAE,GACN,OAAO,CAAC,GAAG,EAAE,CAAC,CAMxB;AAQI,8CALI,MAAM,uBACN,KAAK,SAAS,CAAC,QACf,MAAM,YACN,KAAK,OAAO,CAAC,EAAE,iBAwBzB;AA2BM,wCAPI,OAAO,CAAC;IACd,OAAO,EAAE,KAAK,UAAU,CAAC,CAAC;CAC3B,CAAC,mCAEF;IAAkE,UAAU,EAApE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,eAAe;CAAC;oCAkCD,UAAK,EAAE,UAAK,EAAE,SAAI;;GAkBzD;AAEM,iFACsC;AAEtC,6DAC+B;AAEtC,uCAAuC;AACvC,kCADW,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAKjC;AAUK,iDAJI,OAAO,CAAC,QAAQ,CAAC,WACjB,SAAS,QAAQ,CAAC,GAChB,OAAO,CAAC,QAAQ,CAAC,CAW7B;+BAjM2B,cAAc;0BAKnB,aAAa;6BADV,cAAc;gCAHX,iCAAiC;4BACrC,sBAAsB;8BAHV,eAAe;8BAOzB,gCAAgC"}
|
package/src/proposals/utils.js
CHANGED
|
@@ -11,6 +11,10 @@ import { makeScalarBigMapStore } from '@agoric/vat-data';
|
|
|
11
11
|
* @import {NameAdmin} from '@agoric/vats';
|
|
12
12
|
* @import {ScratchPad} from '@agoric/internal/src/scratch.js';
|
|
13
13
|
* @import {Bundle} from '@agoric/swingset-vat';
|
|
14
|
+
* @import {Installation} from '@agoric/zoe';
|
|
15
|
+
* @import {Payment} from '@agoric/ertp';
|
|
16
|
+
* @import {ERef} from '@agoric/vow';
|
|
17
|
+
* @import {Producer} from '@agoric/vats/src/core/types.js';
|
|
14
18
|
*/
|
|
15
19
|
|
|
16
20
|
/**
|
package/src/provisionPool.d.ts
CHANGED
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
* @import {Bank} from '@agoric/vats/src/vat-bank.js';
|
|
8
8
|
* @import {MetricsNotification} from './provisionPoolKit.js';
|
|
9
9
|
* @import {Baggage} from '@agoric/vat-data';
|
|
10
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
11
|
+
* @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
|
|
10
12
|
*/
|
|
11
|
-
/** @type {ContractMeta} */
|
|
12
|
-
export const meta: ContractMeta
|
|
13
|
+
/** @type {ContractMeta<typeof start>} */
|
|
14
|
+
export const meta: ContractMeta<typeof start>;
|
|
13
15
|
export function start(zcf: ZCF<ProvisionTerms>, privateArgs: {
|
|
14
16
|
poolBank: ERef<Bank>;
|
|
15
17
|
initialPoserInvitation: Invitation;
|
|
@@ -33,25 +35,31 @@ export function start(zcf: ZCF<ProvisionTerms>, privateArgs: {
|
|
|
33
35
|
}>;
|
|
34
36
|
}>;
|
|
35
37
|
getInvitation: (name: any) => Promise<Invitation>;
|
|
36
|
-
getLimitedCreatorFacet: () =>
|
|
37
|
-
|
|
38
|
+
getLimitedCreatorFacet: () => {
|
|
39
|
+
addRevivableAddresses: (oldAddresses: string[]) => void;
|
|
40
|
+
getWalletReviver: () => ERef<any>;
|
|
41
|
+
setReferences: (erefs: import("./provisionPoolKit.js").ProvisionPoolKitReferences) => Promise<void>;
|
|
42
|
+
makeHandler: () => ERef<import("@agoric/vats").BridgeHandler>;
|
|
43
|
+
initPSM: (brand: Brand, instance: import("@agoric/zoe/src/zoeService/utils.js").Instance<typeof import("./psm/psm.js").start>) => void;
|
|
44
|
+
};
|
|
45
|
+
getGovernedApis: () => import("@agoric/governance").GovernedApis;
|
|
38
46
|
getGovernedApiNames: () => string[];
|
|
39
47
|
setOfferFilter: (strings: any) => Promise<void>;
|
|
40
48
|
}>;
|
|
41
49
|
publicFacet: import("@endo/exo").Guarded<{
|
|
42
50
|
getAmount: (name: string) => Amount;
|
|
43
51
|
getBrand: (name: string) => Brand;
|
|
44
|
-
getInstance: (name: string) => Instance;
|
|
45
|
-
getInstallation: (name: string) => Installation;
|
|
46
|
-
getInvitationAmount: (name: string) => InvitationAmount;
|
|
52
|
+
getInstance: (name: string) => import("@agoric/zoe").Instance;
|
|
53
|
+
getInstallation: (name: string) => import("@agoric/zoe").Installation;
|
|
54
|
+
getInvitationAmount: (name: string) => import("@agoric/zoe").InvitationAmount;
|
|
47
55
|
getNat: (name: string) => bigint;
|
|
48
56
|
getRatio: (name: string) => import("@agoric/ertp").Ratio;
|
|
49
57
|
getString: (name: string) => string;
|
|
50
58
|
getTimestamp: (name: string) => import("@agoric/time").TimestampRecord;
|
|
51
59
|
getRelativeTime: (name: string) => import("@agoric/time").RelativeTimeRecord;
|
|
52
60
|
getUnknown: (name: string) => any;
|
|
53
|
-
getSubscription: () =>
|
|
54
|
-
getGovernedParams: () => ERef<
|
|
61
|
+
getSubscription: () => import("@agoric/notifier").StoredSubscription<import("@agoric/governance").GovernanceSubscriptionState>;
|
|
62
|
+
getGovernedParams: () => ERef<import("@agoric/governance").ParamStateRecord>;
|
|
55
63
|
getMetrics(): Promise<any>;
|
|
56
64
|
getPublicTopics(): Promise<any>;
|
|
57
65
|
}>;
|
|
@@ -67,7 +75,9 @@ import type { ZCF } from '@agoric/zoe';
|
|
|
67
75
|
import type { Bank } from '@agoric/vats/src/vat-bank.js';
|
|
68
76
|
import type { ERef } from '@endo/far';
|
|
69
77
|
import type { Invitation } from '@agoric/zoe';
|
|
78
|
+
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
70
79
|
import type { Remote } from '@agoric/internal';
|
|
80
|
+
import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
|
|
71
81
|
import type { MetricsNotification } from './provisionPoolKit.js';
|
|
72
82
|
import type { Amount } from '@agoric/ertp';
|
|
73
83
|
import type { Baggage } from '@agoric/vat-data';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisionPool.d.ts","sourceRoot":"","sources":["provisionPool.js"],"names":[],"mappings":"AAoBA
|
|
1
|
+
{"version":3,"file":"provisionPool.d.ts","sourceRoot":"","sources":["provisionPool.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;GAWG;AAEH,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAgBnC;AAoBK,2BAXI,IAAI,cAAc,CAAC,eACnB;IACN,QAAQ,EAAE,KAAK,IAAI,CAAC,CAAC;IACrB,sBAAsB,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7D,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EjB;;;;6BA3FY,aAAa,GACzB,gBAAoB;IACd,uBAAuB,EAAE,QAAQ,CAAC;CACnC,CAAC;kCAjCwD,aAAa;yBAAb,aAAa;0BAGrD,8BAA8B;0BAD9B,WAAW;gCAF6B,aAAa;iCAM9C,0CAA0C;4BAR/C,kBAAkB;gCASd,0CAA0C;yCAHjC,uBAAuB;4BALb,cAAc;6BAMpC,kBAAkB;2BANI,cAAc;mCACC,aAAa;qCAC1C,iCAAiC"}
|
package/src/provisionPool.js
CHANGED
|
@@ -27,10 +27,13 @@ import {
|
|
|
27
27
|
* @import {Bank} from '@agoric/vats/src/vat-bank.js';
|
|
28
28
|
* @import {MetricsNotification} from './provisionPoolKit.js';
|
|
29
29
|
* @import {Baggage} from '@agoric/vat-data';
|
|
30
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
31
|
+
* @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
|
|
30
32
|
*/
|
|
31
33
|
|
|
32
|
-
/** @type {ContractMeta} */
|
|
34
|
+
/** @type {ContractMeta<typeof start>} */
|
|
33
35
|
export const meta = {
|
|
36
|
+
// @ts-expect-error splitRecord loses the property keys
|
|
34
37
|
privateArgsShape: M.splitRecord(
|
|
35
38
|
{
|
|
36
39
|
poolBank: M.eref(M.remotable('bank')),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function prepareBridgeProvisionTool(zone: Zone): (bankManager: ERef<import("@endo/exo").Guarded<{
|
|
2
|
-
getAssetSubscription(): IterableEachTopic<AssetDescriptor>;
|
|
2
|
+
getAssetSubscription(): import("@agoric/notifier").IterableEachTopic<AssetDescriptor>;
|
|
3
3
|
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<import("@endo/far").EOnly<import("@agoric/ertp").DepositFacet>>;
|
|
4
4
|
getModuleAccountAddress(moduleName: string): Promise<string | null>;
|
|
5
5
|
addAsset(denom: string, issuerName: string, proposedName: string, kit: AssetIssuerKit & {
|
|
@@ -23,7 +23,13 @@ export function prepareProvisionPoolKit(zone: Zone, { makeRecorderKit, params, p
|
|
|
23
23
|
storageNode: ERemote<StorageNode>;
|
|
24
24
|
}) => Promise<ProvisionPoolKit>;
|
|
25
25
|
export type ProvisionPoolKit = {
|
|
26
|
-
machine:
|
|
26
|
+
machine: {
|
|
27
|
+
addRevivableAddresses: (oldAddresses: string[]) => void;
|
|
28
|
+
getWalletReviver: () => ERef<any>;
|
|
29
|
+
setReferences: (erefs: ProvisionPoolKitReferences) => Promise<void>;
|
|
30
|
+
makeHandler: () => ERef<BridgeHandler>;
|
|
31
|
+
initPSM: (brand: Brand, instance: Instance<typeof psmStart>) => void;
|
|
32
|
+
};
|
|
27
33
|
helper: any;
|
|
28
34
|
forHandler: any;
|
|
29
35
|
public: any;
|
|
@@ -66,6 +72,7 @@ import type { ZCF } from '@agoric/zoe';
|
|
|
66
72
|
import type { Brand } from '@agoric/ertp';
|
|
67
73
|
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
68
74
|
import type { ERemote } from '@agoric/internal';
|
|
75
|
+
import type { BridgeHandler } from '@agoric/vats';
|
|
69
76
|
import type { start as psmStart } from '@agoric/inter-protocol/src/psm/psm.js';
|
|
70
77
|
import type { Instance } from '@agoric/zoe/src/zoeService/utils.js';
|
|
71
78
|
import type { BankManager } from '@agoric/vats/src/vat-bank.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisionPoolKit.d.ts","sourceRoot":"","sources":["provisionPoolKit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provisionPoolKit.d.ts","sourceRoot":"","sources":["provisionPoolKit.js"],"names":[],"mappings":"AAiGO,iDAFI,IAAI;;;;;eA2gBgY,CAAC;;;;;;IAtf1Y,iCAAiC;oBAArB,aAAa;GA6B5B;AAYI,8CATI,IAAI,uEACJ;IACN,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,KAAK,IAAI,CAAC,CAAC;IACrB,GAAG,EAAE,GAAG,CAAC;IACT,uBAAuB,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;CACxE,gCA6bC;IAA2B,SAAS,EAA5B,MAAM,KAAK,CAAC;IACe,WAAW,EAAtC,QAAQ,WAAW,CAAC;CAC5B,KAAU,OAAO,CAAC,gBAAgB,CAAC,CAevC;+BAjjBY;IACR,OAAO,EAAE;QACP,qBAAqB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;QACxD,gBAAgB,EAAE,MAAM,KAAK,GAAG,CAAC,CAAC;QAClC,aAAa,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;QACpE,WAAW,EAAE,MAAM,KAAK,aAAa,CAAC,CAAC;QACvC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,eAAe,CAAC,KAAK,IAAI,CAAC;KACtE,CAAC;IACF,MAAM,EAAE,GAAG,CAAC;IACZ,UAAU,EAAE,GAAG,CAAC;IAChB,MAAM,EAAE,GAAG,CAAC;CACb;0BAIS,SAAS,eAAe,CAAC;;iBAKxB,KAAK,WAAW,CAAC;yBACjB,KAAK,SAAS,CAAC;mBACf,KAAK,wBAAwB,CAAC,cAAc,CAAC,CAAC;;;;;;;;;;wBAM9C,MAAM;;;;;yBACN,OAAO,KAAK,CAAC;;;;;0BAEb,OAAO,KAAK,CAAC;;0BA/CJ,cAAc;qCAKH,8BAA8B;0BAZzC,WAAW;6BAJc,cAAc;0BAK1B,8BAA8B;+BAItC,cAAc;mCAVV,sCAAsC;qCAcpC,6CAA6C;yBAVzD,aAAa;2BAHa,cAAc;iCAEhC,0CAA0C;6BADtC,kBAAkB;mCAcpB,cAAc;uCAPV,uCAAuC;8BADhD,qCAAqC;iCAF5B,8BAA8B;8CAKvB,6CAA6C;4BAVxC,cAAc"}
|
package/src/provisionPoolKit.js
CHANGED
|
@@ -55,7 +55,13 @@ const FIRST_LOWER_NEAR_KEYWORD = /^[a-z][a-zA-Z0-9_$]*$/;
|
|
|
55
55
|
// XXX when inferred, error TS2742: cannot be named without a reference to '../../../node_modules/@endo/exo/src/get-interface.js'. This is likely not portable. A type annotation is necessary.
|
|
56
56
|
/**
|
|
57
57
|
* @typedef {{
|
|
58
|
-
* machine:
|
|
58
|
+
* machine: {
|
|
59
|
+
* addRevivableAddresses: (oldAddresses: string[]) => void;
|
|
60
|
+
* getWalletReviver: () => ERef<any>;
|
|
61
|
+
* setReferences: (erefs: ProvisionPoolKitReferences) => Promise<void>;
|
|
62
|
+
* makeHandler: () => ERef<BridgeHandler>;
|
|
63
|
+
* initPSM: (brand: Brand, instance: Instance<typeof psmStart>) => void;
|
|
64
|
+
* };
|
|
59
65
|
* helper: any;
|
|
60
66
|
* forHandler: any;
|
|
61
67
|
* public: any;
|