@agoric/inter-protocol 0.16.2-dev-0282e58.0 → 0.16.2-dev-d492653.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/econCommitteeCharter.d.ts +2 -2
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/econCommitteeCharter.js +1 -1
- package/src/feeDistributor.d.ts +2 -2
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +1 -1
- package/src/proposals/econ-behaviors.d.ts +127 -133
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/reserve/assetReserve.d.ts +2 -2
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.16.2-dev-
|
|
3
|
+
"version": "0.16.2-dev-d492653.0+d492653",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/assert": "0.6.1-dev-
|
|
35
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
36
|
-
"@agoric/governance": "0.10.4-dev-
|
|
37
|
-
"@agoric/internal": "0.3.3-dev-
|
|
38
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
39
|
-
"@agoric/store": "0.9.3-dev-
|
|
40
|
-
"@agoric/time": "0.3.3-dev-
|
|
41
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
42
|
-
"@agoric/vats": "0.15.2-dev-
|
|
43
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-d492653.0+d492653",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-d492653.0+d492653",
|
|
36
|
+
"@agoric/governance": "0.10.4-dev-d492653.0+d492653",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-d492653.0+d492653",
|
|
38
|
+
"@agoric/notifier": "0.6.3-dev-d492653.0+d492653",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-d492653.0+d492653",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-d492653.0+d492653",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-d492653.0+d492653",
|
|
42
|
+
"@agoric/vats": "0.15.2-dev-d492653.0+d492653",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-d492653.0+d492653",
|
|
44
44
|
"@endo/captp": "^4.2.0",
|
|
45
45
|
"@endo/eventual-send": "^1.2.2",
|
|
46
46
|
"@endo/far": "^1.1.2",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"jessie.js": "^0.3.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
54
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
55
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
53
|
+
"@agoric/smart-wallet": "0.5.4-dev-d492653.0+d492653",
|
|
54
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-d492653.0+d492653",
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-d492653.0+d492653",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-d492653.0+d492653",
|
|
57
57
|
"@endo/bundle-source": "^3.2.3",
|
|
58
58
|
"@endo/init": "^1.1.2",
|
|
59
59
|
"@endo/promise-kit": "^1.1.2",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"typeCoverage": {
|
|
85
85
|
"atLeast": 95.81
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "d49265372b3cdd681558791b0c780e1c3062bdcc"
|
|
88
88
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* votes into separate capabilities for finer grain encapsulation.
|
|
6
6
|
*/
|
|
7
7
|
export const INVITATION_MAKERS_DESC: "charter member invitation";
|
|
8
|
-
/** @type {ContractMeta} */
|
|
9
|
-
export const meta: ContractMeta
|
|
8
|
+
/** @type {ContractMeta<typeof start>} */
|
|
9
|
+
export const meta: ContractMeta<typeof start>;
|
|
10
10
|
export function start(zcf: ZCF<{
|
|
11
11
|
binaryVoteCounterInstallation: Installation;
|
|
12
12
|
}>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAaA;;;;;GAKG;AAEH,iEAAkE;AAoBlE,
|
|
1
|
+
{"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAaA;;;;;GAKG;AAEH,iEAAkE;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,kBAAkB,EAAE,OAAO;;QAsHvC;;;;WAIG;wCAHQ,QAAQ,iBACR,oBAAoB,CAAC,GAAG,CAAC;;;;;0CAxE7B,QAAQ,cACR,MAAM,cACN,MAAM,EAAE,YACR,OAAO,cAAc,EAAE,cAAc;;;;GAkFjD;;cAjKa,MAAM;cACN,QAAQ;YACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;mBACV;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE"}
|
package/src/feeDistributor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** @type {ContractMeta} */
|
|
2
|
-
export const meta: ContractMeta
|
|
1
|
+
/** @type {ContractMeta<typeof start>} */
|
|
2
|
+
export const meta: ContractMeta<typeof start>;
|
|
3
3
|
export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
|
|
4
4
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
5
5
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"AAWA,
|
|
1
|
+
{"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"AAWA,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,oGAiChC;AASM;;;;;;EAaN;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,CAAC;mBAEV,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC;;;;;wCAvJlC,IAAI,CAAC,UAAU,CAAC,gBAChB,IAAI,CAAC,wBAAwB,CAAC;;;;;QA4LrC;;;;;WAKG;6CAFQ,MAAM,cACN,IAAI,CAAC,YAAY,CAAC;QA6B7B;;;;WAIG;oDAHQ,OAAO,WAAW,EAAE,KAAK,CACnC,OAAW,2BAA2B,EAAE,YAAY,CACjD;;;;;QASJ;;;;;;;;WAQG;oCALQ,IAAI,CAAC,UAAU,CAAC,WAChB,MAAM,UACN,OAAO,wBACP,WAAW;;;;;QA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{ContractMeta} */
|
|
12
|
+
/** @type {ContractMeta<typeof start>} */
|
|
13
13
|
export const meta = {
|
|
14
14
|
customTermsShape: {
|
|
15
15
|
keywordShares: KeywordSharesShape,
|
|
@@ -2,74 +2,71 @@ export const SECONDS_PER_MINUTE: 60n;
|
|
|
2
2
|
export const SECONDS_PER_HOUR: bigint;
|
|
3
3
|
export const SECONDS_PER_DAY: bigint;
|
|
4
4
|
export const SECONDS_PER_WEEK: bigint;
|
|
5
|
-
export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP, chainStorage, chainTimerService, diagnostics, zoe, economicCommitteeCreatorFacet: committeeCreator, }, produce: { reserveKit }, issuer: { consume: { [Stable.symbol]: centralIssuer }, }, instance: { produce: { reserve: reserveInstanceProducer, reserveGovernor }, }, installation: { consume: { contractGovernor: governorInstallation, reserve: reserveInstallation, }, }, }: EconomyBootstrapPowers): Promise<Installation<(zcf: ZCF
|
|
6
|
-
/** @typedef {Awaited<ReturnType<VFStart>>['publicFacet']} VaultFactoryPublicFacet */
|
|
7
|
-
/**
|
|
8
|
-
* @typedef {object} PSMKit
|
|
9
|
-
* @property {string} label
|
|
10
|
-
* @property {Instance} psm
|
|
11
|
-
* @property {Instance} psmGovernor
|
|
12
|
-
* @property {Awaited<
|
|
13
|
-
* ReturnType<
|
|
14
|
-
* Awaited<
|
|
15
|
-
* ReturnType<import('../psm/psm.js')['start']>
|
|
16
|
-
* >['creatorFacet']['getLimitedCreatorFacet']
|
|
17
|
-
* >
|
|
18
|
-
* >} psmCreatorFacet
|
|
19
|
-
* @property {GovernorCreatorFacet<import('../../src/psm/psm.js')['start']>} psmGovernorCreatorFacet
|
|
20
|
-
* @property {AdminFacet} psmAdminFacet
|
|
21
|
-
*/
|
|
22
|
-
/** @typedef {GovernanceFacetKit<import('../auction/auctioneer.js').start>} AuctioneerKit */
|
|
23
|
-
/**
|
|
24
|
-
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @typedef {PromiseSpaceOf<{
|
|
28
|
-
* economicCommitteeKit: CommitteeStartResult;
|
|
29
|
-
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
30
|
-
* feeDistributorKit: StartedInstanceKit<
|
|
31
|
-
* typeof import('../feeDistributor.js').start
|
|
32
|
-
* >;
|
|
33
|
-
* periodicFeeCollectors: MapStore<
|
|
34
|
-
* number,
|
|
35
|
-
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
36
|
-
* >;
|
|
37
|
-
* psmKit: MapStore<Brand, PSMKit>;
|
|
38
|
-
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
39
|
-
* econCharterKit: EconCharterStartResult;
|
|
40
|
-
* reserveKit: GovernanceFacetKit<
|
|
41
|
-
* import('../reserve/assetReserve.js')['start']
|
|
42
|
-
* >;
|
|
43
|
-
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
44
|
-
* auctioneerKit: AuctioneerKit;
|
|
45
|
-
* newAuctioneerKit: AuctioneerKit | undefined;
|
|
46
|
-
* minInitialDebt: NatValue;
|
|
47
|
-
* }>} EconomyBootstrapSpace
|
|
48
|
-
*/
|
|
49
|
-
/**
|
|
50
|
-
* @typedef {StartedInstanceKit<
|
|
51
|
-
* import('../econCommitteeCharter.js')['start']
|
|
52
|
-
* >} EconCharterStartResult
|
|
53
|
-
*/
|
|
54
|
-
/**
|
|
55
|
-
* @typedef {StartedInstanceKit<
|
|
56
|
-
* import('@agoric/governance/src/committee.js')['start']
|
|
57
|
-
* >} CommitteeStartResult
|
|
58
|
-
*/
|
|
59
|
-
/**
|
|
60
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
61
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
62
|
-
* vat config.
|
|
63
|
-
*
|
|
64
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
65
|
-
*
|
|
66
|
-
* In production called by @agoric/vats to bootstrap.
|
|
67
|
-
*/
|
|
68
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
69
|
-
/** @import {start as VFStart} from '../vaultFactory/vaultFactory.js' */ GovernanceTerms<{}> & {
|
|
5
|
+
export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP, chainStorage, chainTimerService, diagnostics, zoe, economicCommitteeCreatorFacet: committeeCreator, }, produce: { reserveKit }, issuer: { consume: { [Stable.symbol]: centralIssuer }, }, instance: { produce: { reserve: reserveInstanceProducer, reserveGovernor }, }, installation: { consume: { contractGovernor: governorInstallation, reserve: reserveInstallation, }, }, }: EconomyBootstrapPowers): Promise<Installation<(zcf: ZCF<GovernanceTerms<{}> & {
|
|
70
6
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
71
7
|
}>, privateArgs: {
|
|
72
|
-
feeMintAccess: FeeMintAccess;
|
|
8
|
+
feeMintAccess: FeeMintAccess; /**
|
|
9
|
+
* @typedef {object} PSMKit
|
|
10
|
+
* @property {string} label
|
|
11
|
+
* @property {Instance} psm
|
|
12
|
+
* @property {Instance} psmGovernor
|
|
13
|
+
* @property {Awaited<
|
|
14
|
+
* ReturnType<
|
|
15
|
+
* Awaited<
|
|
16
|
+
* ReturnType<import('../psm/psm.js')['start']>
|
|
17
|
+
* >['creatorFacet']['getLimitedCreatorFacet']
|
|
18
|
+
* >
|
|
19
|
+
* >} psmCreatorFacet
|
|
20
|
+
* @property {GovernorCreatorFacet<import('../../src/psm/psm.js')['start']>} psmGovernorCreatorFacet
|
|
21
|
+
* @property {AdminFacet} psmAdminFacet
|
|
22
|
+
*/
|
|
23
|
+
/** @typedef {GovernanceFacetKit<import('../auction/auctioneer.js').start>} AuctioneerKit */
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
26
|
+
*
|
|
27
|
+
*
|
|
28
|
+
* @typedef {PromiseSpaceOf<{
|
|
29
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
30
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
31
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
32
|
+
* typeof import('../feeDistributor.js').start
|
|
33
|
+
* >;
|
|
34
|
+
* periodicFeeCollectors: MapStore<
|
|
35
|
+
* number,
|
|
36
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
37
|
+
* >;
|
|
38
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
39
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
40
|
+
* econCharterKit: EconCharterStartResult;
|
|
41
|
+
* reserveKit: GovernanceFacetKit<
|
|
42
|
+
* import('../reserve/assetReserve.js')['start']
|
|
43
|
+
* >;
|
|
44
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
45
|
+
* auctioneerKit: AuctioneerKit;
|
|
46
|
+
* newAuctioneerKit: AuctioneerKit | undefined;
|
|
47
|
+
* minInitialDebt: NatValue;
|
|
48
|
+
* }>} EconomyBootstrapSpace
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* @typedef {StartedInstanceKit<
|
|
52
|
+
* import('../econCommitteeCharter.js')['start']
|
|
53
|
+
* >} EconCharterStartResult
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* @typedef {StartedInstanceKit<
|
|
57
|
+
* import('@agoric/governance/src/committee.js')['start']
|
|
58
|
+
* >} CommitteeStartResult
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
62
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
63
|
+
* vat config.
|
|
64
|
+
*
|
|
65
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
66
|
+
*
|
|
67
|
+
* In production called by @agoric/vats to bootstrap.
|
|
68
|
+
*/
|
|
69
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
73
70
|
initialPoserInvitation: Invitation;
|
|
74
71
|
marshaller: ERef<Marshaller>;
|
|
75
72
|
storageNode: ERef<StorageNode>;
|
|
@@ -500,74 +497,71 @@ export type EconomyBootstrapSpace = {
|
|
|
500
497
|
psmKit: Promise<globalThis.MapStore<globalThis.Brand, PSMKit>>;
|
|
501
498
|
anchorBalancePayments: Promise<globalThis.MapStore<globalThis.Brand, globalThis.Payment<"nat">>>;
|
|
502
499
|
econCharterKit: Promise<EconCharterStartResult>;
|
|
503
|
-
reserveKit: Promise<globalThis.GovernanceFacetKit<(zcf: ZCF
|
|
504
|
-
/** @typedef {Awaited<ReturnType<VFStart>>['publicFacet']} VaultFactoryPublicFacet */
|
|
505
|
-
/**
|
|
506
|
-
* @typedef {object} PSMKit
|
|
507
|
-
* @property {string} label
|
|
508
|
-
* @property {Instance} psm
|
|
509
|
-
* @property {Instance} psmGovernor
|
|
510
|
-
* @property {Awaited<
|
|
511
|
-
* ReturnType<
|
|
512
|
-
* Awaited<
|
|
513
|
-
* ReturnType<import('../psm/psm.js')['start']>
|
|
514
|
-
* >['creatorFacet']['getLimitedCreatorFacet']
|
|
515
|
-
* >
|
|
516
|
-
* >} psmCreatorFacet
|
|
517
|
-
* @property {GovernorCreatorFacet<import('../../src/psm/psm.js')['start']>} psmGovernorCreatorFacet
|
|
518
|
-
* @property {AdminFacet} psmAdminFacet
|
|
519
|
-
*/
|
|
520
|
-
/** @typedef {GovernanceFacetKit<import('../auction/auctioneer.js').start>} AuctioneerKit */
|
|
521
|
-
/**
|
|
522
|
-
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
523
|
-
*
|
|
524
|
-
*
|
|
525
|
-
* @typedef {PromiseSpaceOf<{
|
|
526
|
-
* economicCommitteeKit: CommitteeStartResult;
|
|
527
|
-
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
528
|
-
* feeDistributorKit: StartedInstanceKit<
|
|
529
|
-
* typeof import('../feeDistributor.js').start
|
|
530
|
-
* >;
|
|
531
|
-
* periodicFeeCollectors: MapStore<
|
|
532
|
-
* number,
|
|
533
|
-
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
534
|
-
* >;
|
|
535
|
-
* psmKit: MapStore<Brand, PSMKit>;
|
|
536
|
-
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
537
|
-
* econCharterKit: EconCharterStartResult;
|
|
538
|
-
* reserveKit: GovernanceFacetKit<
|
|
539
|
-
* import('../reserve/assetReserve.js')['start']
|
|
540
|
-
* >;
|
|
541
|
-
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
542
|
-
* auctioneerKit: AuctioneerKit;
|
|
543
|
-
* newAuctioneerKit: AuctioneerKit | undefined;
|
|
544
|
-
* minInitialDebt: NatValue;
|
|
545
|
-
* }>} EconomyBootstrapSpace
|
|
546
|
-
*/
|
|
547
|
-
/**
|
|
548
|
-
* @typedef {StartedInstanceKit<
|
|
549
|
-
* import('../econCommitteeCharter.js')['start']
|
|
550
|
-
* >} EconCharterStartResult
|
|
551
|
-
*/
|
|
552
|
-
/**
|
|
553
|
-
* @typedef {StartedInstanceKit<
|
|
554
|
-
* import('@agoric/governance/src/committee.js')['start']
|
|
555
|
-
* >} CommitteeStartResult
|
|
556
|
-
*/
|
|
557
|
-
/**
|
|
558
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
559
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
560
|
-
* vat config.
|
|
561
|
-
*
|
|
562
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
563
|
-
*
|
|
564
|
-
* In production called by @agoric/vats to bootstrap.
|
|
565
|
-
*/
|
|
566
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
567
|
-
/** @import {start as VFStart} from '../vaultFactory/vaultFactory.js' */ GovernanceTerms<{}> & {
|
|
500
|
+
reserveKit: Promise<globalThis.GovernanceFacetKit<(zcf: ZCF<GovernanceTerms<{}> & {
|
|
568
501
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
569
502
|
}>, privateArgs: {
|
|
570
|
-
feeMintAccess: FeeMintAccess;
|
|
503
|
+
feeMintAccess: FeeMintAccess; /**
|
|
504
|
+
* @typedef {object} PSMKit
|
|
505
|
+
* @property {string} label
|
|
506
|
+
* @property {Instance} psm
|
|
507
|
+
* @property {Instance} psmGovernor
|
|
508
|
+
* @property {Awaited<
|
|
509
|
+
* ReturnType<
|
|
510
|
+
* Awaited<
|
|
511
|
+
* ReturnType<import('../psm/psm.js')['start']>
|
|
512
|
+
* >['creatorFacet']['getLimitedCreatorFacet']
|
|
513
|
+
* >
|
|
514
|
+
* >} psmCreatorFacet
|
|
515
|
+
* @property {GovernorCreatorFacet<import('../../src/psm/psm.js')['start']>} psmGovernorCreatorFacet
|
|
516
|
+
* @property {AdminFacet} psmAdminFacet
|
|
517
|
+
*/
|
|
518
|
+
/** @typedef {GovernanceFacetKit<import('../auction/auctioneer.js').start>} AuctioneerKit */
|
|
519
|
+
/**
|
|
520
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
521
|
+
*
|
|
522
|
+
*
|
|
523
|
+
* @typedef {PromiseSpaceOf<{
|
|
524
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
525
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
526
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
527
|
+
* typeof import('../feeDistributor.js').start
|
|
528
|
+
* >;
|
|
529
|
+
* periodicFeeCollectors: MapStore<
|
|
530
|
+
* number,
|
|
531
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
532
|
+
* >;
|
|
533
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
534
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
535
|
+
* econCharterKit: EconCharterStartResult;
|
|
536
|
+
* reserveKit: GovernanceFacetKit<
|
|
537
|
+
* import('../reserve/assetReserve.js')['start']
|
|
538
|
+
* >;
|
|
539
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
540
|
+
* auctioneerKit: AuctioneerKit;
|
|
541
|
+
* newAuctioneerKit: AuctioneerKit | undefined;
|
|
542
|
+
* minInitialDebt: NatValue;
|
|
543
|
+
* }>} EconomyBootstrapSpace
|
|
544
|
+
*/
|
|
545
|
+
/**
|
|
546
|
+
* @typedef {StartedInstanceKit<
|
|
547
|
+
* import('../econCommitteeCharter.js')['start']
|
|
548
|
+
* >} EconCharterStartResult
|
|
549
|
+
*/
|
|
550
|
+
/**
|
|
551
|
+
* @typedef {StartedInstanceKit<
|
|
552
|
+
* import('@agoric/governance/src/committee.js')['start']
|
|
553
|
+
* >} CommitteeStartResult
|
|
554
|
+
*/
|
|
555
|
+
/**
|
|
556
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
557
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
558
|
+
* vat config.
|
|
559
|
+
*
|
|
560
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
561
|
+
*
|
|
562
|
+
* In production called by @agoric/vats to bootstrap.
|
|
563
|
+
*/
|
|
564
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
571
565
|
initialPoserInvitation: Invitation;
|
|
572
566
|
marshaller: ERef<Marshaller>;
|
|
573
567
|
storageNode: ERef<StorageNode>;
|
|
@@ -1093,7 +1087,7 @@ export type EconCharterStartResult = {
|
|
|
1093
1087
|
binaryVoteCounterInstallation: Installation;
|
|
1094
1088
|
}>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
1095
1089
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
1096
|
-
addInstance: (governedInstance: Instance
|
|
1090
|
+
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1097
1091
|
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1098
1092
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
1099
1093
|
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"econ-behaviors.d.ts","sourceRoot":"","sources":["econ-behaviors.js"],"names":[],"mappings":"AAgBA,qCAAsC;AACtC,sCAA0C;AAC1C,qCAAsD;AACtD,sCAAqD;AAwE9C,mcADK,sBAAsB,
|
|
1
|
+
{"version":3,"file":"econ-behaviors.d.ts","sourceRoot":"","sources":["econ-behaviors.js"],"names":[],"mappings":"AAgBA,qCAAsC;AACtC,sCAA0C;AAC1C,qCAAsD;AACtD,sCAAqD;AAwE9C,mcADK,sBAAsB,8BArExB,IAAI,mBAAyB,GAAE;IAAE,cAAqB,CAAE,2BAC9C,CAAC,CAAC;CAAO,CAAK,eAAiB;IAAC,eAAoB,aACxE,CACA,CAAA;;;;;;;;;;;;;;OAcG;IAEH,4FAA4F;IAE5F;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IAEH;;;;OAIG;IACH;;;;OAIG;IAEH;;;;;;;;OAQG;IAEH,6CAA6C;IAC7C,wBAlEyB,UACjB,CAAC;IAAA,YAAiB,KACtB,UAAU,CAAC,CAAC;IAAA,aACV,KAAO,WAAU,CAAC,CAAC;CAAK;;0BAqKhB,MAAM;;;oDA6FiB,OACjC,KAAC,CAAC;kDAgBC,OACD,KAAF,CAAC;;;;;;;;;KAtHJ;AAUM,oDAPI,sBAAsB,CAAC,SAAS,CAAC;IAET,cAAc;IACtB,OAAO;;;+BAEvB,MAAM,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EvB;AAUM,wSAPI,sBAAsB;IAEE,cAAc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AAyB,OAAO,kBAAkB,EAC/G,OAAK;;;;;;;;;;2CAAL,OAAK;;;;;;;;;;uBA1CiB,gCAAgC;wCAKjB,qCAAqC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** @type {ContractMeta} */
|
|
2
|
-
export const meta: ContractMeta
|
|
1
|
+
/** @type {ContractMeta<typeof start>} */
|
|
2
|
+
export const meta: ContractMeta<typeof start>;
|
|
3
3
|
export function start(zcf: ZCF<GovernanceTerms<{}> & {
|
|
4
4
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
5
5
|
}>, privateArgs: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetReserve.d.ts","sourceRoot":"","sources":["assetReserve.js"],"names":[],"mappings":"AAYA,
|
|
1
|
+
{"version":3,"file":"assetReserve.d.ts","sourceRoot":"","sources":["assetReserve.js"],"names":[],"mappings":"AAYA,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAGnC;AAgCK,2BAbI,GAAG,CACb,eAAmB,CAAC,EAAE,CAAC,GAAG;IAC1B,YAAkB,EAAE,CAAC,2BAA2B,CAAC,CAAC;CAC7C,CACF,eACO;IACV,aAAiB,EAAE,aAAa,CAAC;IACjC,sBAA0B,EAAE,UAAU,CAAC;IACvC,UAAc,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACjC,WAAe,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;CAChC;IA8DA,mEAAmE;;0BA4BqvD,MAAM;;;oDAAs5E,OAAO,KAAK,CAAC;kDAA8X,OAAO,KAAK,CAAC;;;IA1B5mJ,iEAAiE;;;;;;;GAKpE;sCA9FY;IACZ,4BAAgC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,0BAA8B,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD;;kCAgGU,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI;gCAC3B,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI;;;eAK3B,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI;oBACrC,MAAM,UAAU;sCAChB,MAAM,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;;sCAG5C,OAAO,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC;;;;uCAEjD,OAAO,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC;6BA1GnC,kBAAkB"}
|