@agoric/inter-protocol 0.16.2-other-dev-3eb1a1d.0 → 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 +36 -35
- package/src/auction/auctionBook.d.ts +9 -7
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +58 -32
- package/src/auction/auctionMath.d.ts +1 -1
- package/src/auction/auctionMath.d.ts.map +1 -1
- package/src/auction/auctioneer.d.ts +19 -13
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +25 -12
- package/src/auction/offerBook.d.ts +3 -2
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +5 -1
- package/src/auction/params.d.ts +16 -7
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +12 -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 +9 -4
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/scheduler.js +14 -6
- package/src/auction/util.d.ts +2 -1
- package/src/auction/util.d.ts.map +1 -1
- package/src/auction/util.js +4 -1
- package/src/clientSupport.d.ts +29 -73
- package/src/clientSupport.d.ts.map +1 -1
- package/src/clientSupport.js +29 -128
- package/src/contractSupport.d.ts +2 -2
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +15 -8
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/econCommitteeCharter.js +14 -8
- package/src/feeDistributor.d.ts +43 -49
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +7 -3
- package/src/index.js +1 -1
- package/src/interest-math.d.ts +1 -0
- package/src/interest-math.d.ts.map +1 -1
- package/src/interest-math.js +5 -1
- package/src/interest.d.ts +3 -1
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +2 -5
- package/src/price/README.md +1 -1
- package/src/price/fluxAggregatorContract.d.ts +20 -11
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +17 -9
- package/src/price/fluxAggregatorKit.d.ts +15 -9
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +15 -9
- package/src/price/priceOracleKit.d.ts +4 -2
- package/src/price/priceOracleKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.js +7 -2
- package/src/price/roundsManager.d.ts +8 -6
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +5 -2
- package/src/proposals/add-auction.js +38 -4
- package/src/proposals/addAssetToVault.js +8 -4
- package/src/proposals/committee-proposal.js +10 -5
- package/src/proposals/core-proposal.js +9 -3
- package/src/proposals/deploy-price-feeds.js +35 -7
- package/src/proposals/econ-behaviors.js +33 -12
- package/src/proposals/price-feed-proposal.js +10 -3
- package/src/proposals/replace-fee-distributor.js +12 -6
- package/src/proposals/replaceElectorate.js +105 -16
- package/src/proposals/startEconCommittee.js +5 -1
- package/src/proposals/startPSM.js +7 -4
- package/src/proposals/upgrade-vaults.js +15 -5
- package/src/proposals/utils.d.ts +8 -4
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/proposals/utils.js +32 -9
- package/src/proposals/withdraw-reserve-proposal.js +63 -0
- package/src/provisionPool.d.ts +34 -120
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPool.js +43 -21
- package/src/provisionPoolKit.d.ts +43 -328
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +210 -120
- package/src/psm/psm.d.ts +20 -13
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +18 -12
- package/src/reserve/assetReserve.d.ts +18 -6
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +26 -23
- package/src/reserve/assetReserveKit.d.ts +38 -6
- package/src/reserve/assetReserveKit.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.js +117 -7
- package/src/reserve/params.d.ts +9 -3
- package/src/reserve/params.d.ts.map +1 -1
- package/src/reserve/params.js +8 -2
- package/src/vaultFactory/burn.d.ts +1 -1
- package/src/vaultFactory/burn.d.ts.map +1 -1
- package/src/vaultFactory/burn.js +1 -1
- package/src/vaultFactory/liquidation.d.ts +7 -3
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +14 -12
- package/src/vaultFactory/math.d.ts +1 -1
- package/src/vaultFactory/math.d.ts.map +1 -1
- package/src/vaultFactory/math.js +1 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +21 -20
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.js +4 -2
- package/src/vaultFactory/params.d.ts +25 -9
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +29 -11
- package/src/vaultFactory/prioritizedVaults.d.ts +70 -69
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +5 -2
- package/src/vaultFactory/storeUtils.d.ts +2 -2
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.d.ts +2 -2
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +6 -2
- package/src/vaultFactory/vault.d.ts +34 -30
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +19 -15
- package/src/vaultFactory/vaultDirector.d.ts +81 -63
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +38 -24
- package/src/vaultFactory/vaultFactory.d.ts +35 -22
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +27 -17
- package/src/vaultFactory/vaultHolder.d.ts +77 -29
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +12 -4
- package/src/vaultFactory/vaultKit.d.ts +12 -8
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +12 -5
- package/src/vaultFactory/vaultManager.d.ts +102 -88
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +86 -53
- package/src/proposals/add-auction.d.ts +0 -109
- package/src/proposals/add-auction.d.ts.map +0 -1
- package/src/proposals/addAssetToVault.d.ts +0 -173
- package/src/proposals/addAssetToVault.d.ts.map +0 -1
- package/src/proposals/committee-proposal.d.ts +0 -113
- package/src/proposals/committee-proposal.d.ts.map +0 -1
- package/src/proposals/core-proposal.d.ts +0 -149
- package/src/proposals/core-proposal.d.ts.map +0 -1
- package/src/proposals/deploy-price-feeds.d.ts +0 -76
- package/src/proposals/deploy-price-feeds.d.ts.map +0 -1
- package/src/proposals/econ-behaviors.d.ts +0 -541
- package/src/proposals/econ-behaviors.d.ts.map +0 -1
- package/src/proposals/price-feed-proposal.d.ts +0 -84
- package/src/proposals/price-feed-proposal.d.ts.map +0 -1
- package/src/proposals/replace-fee-distributor.d.ts +0 -48
- package/src/proposals/replace-fee-distributor.d.ts.map +0 -1
- package/src/proposals/replace-scaledPriceAuthorities.d.ts +0 -30
- package/src/proposals/replace-scaledPriceAuthorities.d.ts.map +0 -1
- package/src/proposals/replaceElectorate.d.ts +0 -55
- package/src/proposals/replaceElectorate.d.ts.map +0 -1
- package/src/proposals/startEconCommittee.d.ts +0 -34
- package/src/proposals/startEconCommittee.d.ts.map +0 -1
- package/src/proposals/startPSM.d.ts +0 -59
- package/src/proposals/startPSM.d.ts.map +0 -1
- package/src/proposals/upgrade-scaledPriceAuthorities.d.ts +0 -24
- package/src/proposals/upgrade-scaledPriceAuthorities.d.ts.map +0 -1
- package/src/proposals/upgrade-vaults.d.ts +0 -41
- package/src/proposals/upgrade-vaults.d.ts.map +0 -1
|
@@ -1,336 +1,38 @@
|
|
|
1
|
-
export function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export function prepareBridgeProvisionTool(zone: Zone): (bankManager: ERef<import("@endo/exo").Guarded<{
|
|
2
|
+
getAssetSubscription(): IterableEachTopic<AssetDescriptor>;
|
|
3
|
+
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<import("jessie.js").EOnly<import("@agoric/ertp").DepositFacet>>;
|
|
4
|
+
getModuleAccountAddress(moduleName: string): Promise<string | null>;
|
|
5
|
+
addAsset(denom: string, issuerName: string, proposedName: string, kit: AssetIssuerKit & {
|
|
6
|
+
payment?: ERef<Payment<"nat">>;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
getBankForAddress(address: string): Promise<Bank>;
|
|
9
|
+
}>>, walletFactory: ERef<import("@endo/exo").Guarded<{
|
|
10
|
+
provideSmartWallet(address: string, bank: ERef<Bank>, namesByAddressAdmin: ERef<NameAdmin>): Promise<[wallet: import("@agoric/smart-wallet/src/smartWallet").SmartWallet, isNew: boolean]>;
|
|
11
|
+
}>>, namesByAddressAdmin: ERef<NameAdmin>, forHandler: any) => import("@endo/exo").Guarded<{
|
|
12
|
+
/** @param {BridgeMessage} obj */
|
|
13
|
+
fromBridge(obj: BridgeMessage): Promise<void>;
|
|
5
14
|
}>;
|
|
6
|
-
export function prepareProvisionPoolKit(
|
|
7
|
-
makeRecorderKit:
|
|
15
|
+
export function prepareProvisionPoolKit(zone: Zone, { makeRecorderKit, params, poolBank, zcf, makeBridgeProvisionTool }: {
|
|
16
|
+
makeRecorderKit: MakeRecorderKit;
|
|
8
17
|
params: any;
|
|
9
|
-
poolBank:
|
|
18
|
+
poolBank: ERef<Bank>;
|
|
10
19
|
zcf: ZCF;
|
|
20
|
+
makeBridgeProvisionTool: ReturnType<typeof prepareBridgeProvisionTool>;
|
|
11
21
|
}): ({ poolBrand, storageNode }: {
|
|
12
22
|
poolBrand: Brand<"nat">;
|
|
13
|
-
storageNode:
|
|
14
|
-
}) => Promise<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
23
|
-
receive(payment: Payment): Promise<Amount>;
|
|
24
|
-
}>;
|
|
25
|
-
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
26
|
-
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
27
|
-
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers").OfferId): Promise<void>;
|
|
28
|
-
}>;
|
|
29
|
-
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
30
|
-
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
31
|
-
getPublicTopics(): {
|
|
32
|
-
current: {
|
|
33
|
-
description: string;
|
|
34
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
35
|
-
storagePath: Promise<string>;
|
|
36
|
-
};
|
|
37
|
-
updates: {
|
|
38
|
-
description: string;
|
|
39
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
40
|
-
storagePath: Promise<string>;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
} & import("../../../node_modules/@endo/exo/src/get-interface").GetInterfaceGuard<{
|
|
44
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
45
|
-
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
46
|
-
receive(payment: Payment): Promise<Amount>;
|
|
47
|
-
}>;
|
|
48
|
-
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
49
|
-
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
50
|
-
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers").OfferId): Promise<void>;
|
|
51
|
-
}>;
|
|
52
|
-
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
53
|
-
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
54
|
-
getPublicTopics(): {
|
|
55
|
-
current: {
|
|
56
|
-
description: string;
|
|
57
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
58
|
-
storagePath: Promise<string>;
|
|
59
|
-
};
|
|
60
|
-
updates: {
|
|
61
|
-
description: string;
|
|
62
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
63
|
-
storagePath: Promise<string>;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
67
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
68
|
-
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
69
|
-
receive(payment: Payment): Promise<Amount>;
|
|
70
|
-
}>;
|
|
71
|
-
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
72
|
-
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
73
|
-
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers").OfferId): Promise<void>;
|
|
74
|
-
}>;
|
|
75
|
-
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
76
|
-
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
77
|
-
getPublicTopics(): {
|
|
78
|
-
current: {
|
|
79
|
-
description: string;
|
|
80
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
81
|
-
storagePath: Promise<string>;
|
|
82
|
-
};
|
|
83
|
-
updates: {
|
|
84
|
-
description: string;
|
|
85
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
86
|
-
storagePath: Promise<string>;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
} & import("../../../node_modules/@endo/exo/src/get-interface").GetInterfaceGuard<{
|
|
90
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
91
|
-
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
92
|
-
receive(payment: Payment): Promise<Amount>;
|
|
93
|
-
}>;
|
|
94
|
-
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
95
|
-
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
96
|
-
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers").OfferId): Promise<void>;
|
|
97
|
-
}>;
|
|
98
|
-
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
99
|
-
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
100
|
-
getPublicTopics(): {
|
|
101
|
-
current: {
|
|
102
|
-
description: string;
|
|
103
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
104
|
-
storagePath: Promise<string>;
|
|
105
|
-
};
|
|
106
|
-
updates: {
|
|
107
|
-
description: string;
|
|
108
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
109
|
-
storagePath: Promise<string>;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
}>> & import("@endo/pass-style").RemotableObject>;
|
|
113
|
-
/**
|
|
114
|
-
* @param {string} address
|
|
115
|
-
* @returns {boolean} isRevive
|
|
116
|
-
*/
|
|
117
|
-
ackWallet(address: string): boolean;
|
|
118
|
-
}>;
|
|
119
|
-
/** @param {ProvisionPoolKitReferences} erefs */
|
|
120
|
-
setReferences(erefs: ProvisionPoolKitReferences): Promise<void>;
|
|
121
|
-
makeHandler(): {
|
|
122
|
-
fromBridge: (obj: any) => Promise<void>;
|
|
123
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
124
|
-
fromBridge: (obj: any) => Promise<void>;
|
|
125
|
-
}>;
|
|
126
|
-
/**
|
|
127
|
-
* @param {Brand} brand
|
|
128
|
-
* @param {PsmInstance} instance
|
|
129
|
-
*/
|
|
130
|
-
initPSM(brand: Brand, instance: PsmInstance): void;
|
|
131
|
-
};
|
|
132
|
-
walletReviver: {
|
|
133
|
-
/** @param {string} address */
|
|
134
|
-
reviveWallet(address: string): Promise<{
|
|
135
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
136
|
-
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
137
|
-
receive(payment: Payment): Promise<Amount>;
|
|
138
|
-
}>;
|
|
139
|
-
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
140
|
-
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
141
|
-
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers").OfferId): Promise<void>;
|
|
142
|
-
}>;
|
|
143
|
-
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
144
|
-
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
145
|
-
getPublicTopics(): {
|
|
146
|
-
current: {
|
|
147
|
-
description: string;
|
|
148
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
149
|
-
storagePath: Promise<string>;
|
|
150
|
-
};
|
|
151
|
-
updates: {
|
|
152
|
-
description: string;
|
|
153
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
154
|
-
storagePath: Promise<string>;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
} & import("../../../node_modules/@endo/exo/src/get-interface").GetInterfaceGuard<{
|
|
158
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
159
|
-
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
160
|
-
receive(payment: Payment): Promise<Amount>;
|
|
161
|
-
}>;
|
|
162
|
-
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
163
|
-
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
164
|
-
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers").OfferId): Promise<void>;
|
|
165
|
-
}>;
|
|
166
|
-
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
167
|
-
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
168
|
-
getPublicTopics(): {
|
|
169
|
-
current: {
|
|
170
|
-
description: string;
|
|
171
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
172
|
-
storagePath: Promise<string>;
|
|
173
|
-
};
|
|
174
|
-
updates: {
|
|
175
|
-
description: string;
|
|
176
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
177
|
-
storagePath: Promise<string>;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
181
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
182
|
-
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
183
|
-
receive(payment: Payment): Promise<Amount>;
|
|
184
|
-
}>;
|
|
185
|
-
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
186
|
-
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
187
|
-
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers").OfferId): Promise<void>;
|
|
188
|
-
}>;
|
|
189
|
-
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
190
|
-
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
191
|
-
getPublicTopics(): {
|
|
192
|
-
current: {
|
|
193
|
-
description: string;
|
|
194
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
195
|
-
storagePath: Promise<string>;
|
|
196
|
-
};
|
|
197
|
-
updates: {
|
|
198
|
-
description: string;
|
|
199
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
200
|
-
storagePath: Promise<string>;
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
} & import("../../../node_modules/@endo/exo/src/get-interface").GetInterfaceGuard<{
|
|
204
|
-
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
205
|
-
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
206
|
-
receive(payment: Payment): Promise<Amount>;
|
|
207
|
-
}>;
|
|
208
|
-
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
209
|
-
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
210
|
-
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers").OfferId): Promise<void>;
|
|
211
|
-
}>;
|
|
212
|
-
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
213
|
-
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
214
|
-
getPublicTopics(): {
|
|
215
|
-
current: {
|
|
216
|
-
description: string;
|
|
217
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").CurrentWalletRecord>;
|
|
218
|
-
storagePath: Promise<string>;
|
|
219
|
-
};
|
|
220
|
-
updates: {
|
|
221
|
-
description: string;
|
|
222
|
-
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet").UpdateRecord>;
|
|
223
|
-
storagePath: Promise<string>;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
}>> & import("@endo/pass-style").RemotableObject>;
|
|
227
|
-
/**
|
|
228
|
-
* @param {string} address
|
|
229
|
-
* @returns {boolean} isRevive
|
|
230
|
-
*/
|
|
231
|
-
ackWallet(address: string): boolean;
|
|
232
|
-
};
|
|
233
|
-
helper: {
|
|
234
|
-
publishMetrics(): void;
|
|
235
|
-
onTrade(converted: any): void;
|
|
236
|
-
onSendFunds(provided: any): void;
|
|
237
|
-
onProvisioned(): void;
|
|
238
|
-
/** @param {ERef<Bank>} destBank */
|
|
239
|
-
sendInitialPayment(destBank: ERef<Bank>): Promise<void>;
|
|
240
|
-
/**
|
|
241
|
-
* @param {ERef<Purse>} exchangePurse
|
|
242
|
-
* @param {ERef<Brand>} brand
|
|
243
|
-
*/
|
|
244
|
-
watchCurrentAmount(exchangePurse: ERef<Purse>, brand: ERef<Brand>): void;
|
|
245
|
-
watchAssetSubscription(): Promise<undefined>;
|
|
246
|
-
/**
|
|
247
|
-
* @param {object} [options]
|
|
248
|
-
* @param {MetricsNotification} [options.metrics]
|
|
249
|
-
*/
|
|
250
|
-
start({ metrics }?: {
|
|
251
|
-
metrics?: MetricsNotification | undefined;
|
|
252
|
-
} | undefined): void;
|
|
253
|
-
/**
|
|
254
|
-
* @param {ERef<Payment>} payIn
|
|
255
|
-
* @param {Amount} amount
|
|
256
|
-
* @param {PsmInstance} instance
|
|
257
|
-
*/
|
|
258
|
-
swap(payIn: ERef<Payment>, amount: Amount, instance: PsmInstance): Promise<import("@agoric/ertp").NatAmount>;
|
|
259
|
-
};
|
|
260
|
-
public: {
|
|
261
|
-
getPublicTopics(): {
|
|
262
|
-
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<MetricsNotification>;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
}>>;
|
|
266
|
-
export type PsmInstance = import("@agoric/zoe/src/zoeService/utils.js").Instance<(zcf: ZCF<GovernanceTerms<{
|
|
267
|
-
GiveMintedFee: "ratio";
|
|
268
|
-
WantMintedFee: "ratio";
|
|
269
|
-
MintLimit: "amount";
|
|
270
|
-
}> & {
|
|
271
|
-
anchorBrand: Brand<"nat">;
|
|
272
|
-
anchorPerMinted: Ratio;
|
|
273
|
-
}>, privateArgs: {
|
|
274
|
-
feeMintAccess: FeeMintAccess;
|
|
275
|
-
initialPoserInvitation: Invitation;
|
|
276
|
-
storageNode: StorageNode;
|
|
277
|
-
marshaller: Marshaller;
|
|
278
|
-
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
279
|
-
creatorFacet: import("@endo/exo").Guarded<{
|
|
280
|
-
getParamMgrRetriever: () => {
|
|
281
|
-
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager").TypedParamManager<{
|
|
282
|
-
GiveMintedFee: "ratio";
|
|
283
|
-
MintLimit: "amount";
|
|
284
|
-
WantMintedFee: "ratio";
|
|
285
|
-
} & {
|
|
286
|
-
Electorate: "invitation";
|
|
287
|
-
}>;
|
|
288
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
289
|
-
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager").TypedParamManager<{
|
|
290
|
-
GiveMintedFee: "ratio";
|
|
291
|
-
MintLimit: "amount";
|
|
292
|
-
WantMintedFee: "ratio";
|
|
293
|
-
} & {
|
|
294
|
-
Electorate: "invitation";
|
|
295
|
-
}>;
|
|
296
|
-
}>;
|
|
297
|
-
getInvitation: (name: any) => Promise<Invitation<unknown, undefined>>;
|
|
298
|
-
getLimitedCreatorFacet: () => import("@endo/exo").Guarded<{
|
|
299
|
-
getRewardAllocation(): Allocation;
|
|
300
|
-
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
301
|
-
makeRestoreMetricsInvitation(): Promise<Invitation<void, Omit<import("@agoric/inter-protocol/src/psm/psm.js").MetricsNotification, "anchorPoolBalance">>>;
|
|
302
|
-
}>;
|
|
303
|
-
getGovernedApis: () => GovernedApis;
|
|
304
|
-
getGovernedApiNames: () => string[];
|
|
305
|
-
setOfferFilter: (strings: any) => Promise<void>;
|
|
306
|
-
}>;
|
|
307
|
-
publicFacet: import("@endo/exo").Guarded<{
|
|
308
|
-
getAmount: (name: string) => Amount;
|
|
309
|
-
getBrand: (name: string) => Brand;
|
|
310
|
-
getInstance: (name: string) => Instance;
|
|
311
|
-
getInstallation: (name: string) => Installation;
|
|
312
|
-
getInvitationAmount: (name: string) => InvitationAmount;
|
|
313
|
-
getNat: (name: string) => bigint;
|
|
314
|
-
getRatio: (name: string) => Ratio;
|
|
315
|
-
getString: (name: string) => string;
|
|
316
|
-
getTimestamp: (name: string) => import("@agoric/time").TimestampRecord;
|
|
317
|
-
getRelativeTime: (name: string) => import("@agoric/time").RelativeTimeRecord;
|
|
318
|
-
getUnknown: (name: string) => any;
|
|
319
|
-
getSubscription: () => globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
320
|
-
getGovernedParams: () => ERef<globalThis.ParamStateRecord>;
|
|
321
|
-
getMetrics(): globalThis.Subscriber<import("@agoric/inter-protocol/src/psm/psm.js").MetricsNotification>;
|
|
322
|
-
getPoolBalance(): import("@agoric/ertp").NatAmount;
|
|
323
|
-
getPublicTopics(): {
|
|
324
|
-
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("@agoric/inter-protocol/src/psm/psm.js").MetricsNotification>;
|
|
325
|
-
};
|
|
326
|
-
makeWantMintedInvitation(): Promise<Invitation<void, undefined>>;
|
|
327
|
-
makeGiveMintedInvitation(): Promise<Invitation<void, undefined>>;
|
|
328
|
-
}>;
|
|
329
|
-
}>>;
|
|
23
|
+
storageNode: ERemote<StorageNode>;
|
|
24
|
+
}) => Promise<ProvisionPoolKit>;
|
|
25
|
+
export type ProvisionPoolKit = {
|
|
26
|
+
machine: any;
|
|
27
|
+
helper: any;
|
|
28
|
+
forHandler: any;
|
|
29
|
+
public: any;
|
|
30
|
+
};
|
|
31
|
+
export type PsmInstance = Instance<typeof psmStart>;
|
|
330
32
|
export type ProvisionPoolKitReferences = {
|
|
331
33
|
bankManager: ERef<BankManager>;
|
|
332
|
-
namesByAddressAdmin: ERef<
|
|
333
|
-
walletFactory: ERef<
|
|
34
|
+
namesByAddressAdmin: ERef<NameAdmin>;
|
|
35
|
+
walletFactory: ERef<WalletFactoryStartResult["creatorFacet"]>;
|
|
334
36
|
};
|
|
335
37
|
/**
|
|
336
38
|
* Metrics naming scheme is that nouns are
|
|
@@ -352,8 +54,21 @@ export type MetricsNotification = {
|
|
|
352
54
|
*/
|
|
353
55
|
totalMintedConverted: Amount<"nat">;
|
|
354
56
|
};
|
|
355
|
-
import type {
|
|
57
|
+
import type { Zone } from '@agoric/zone';
|
|
58
|
+
import type { AssetDescriptor } from '@agoric/vats/src/vat-bank.js';
|
|
356
59
|
import type { ERef } from '@endo/far';
|
|
357
|
-
import type {
|
|
60
|
+
import type { Payment } from '@agoric/ertp';
|
|
61
|
+
import type { Bank } from '@agoric/vats/src/vat-bank.js';
|
|
62
|
+
import type { NameAdmin } from '@agoric/vats';
|
|
63
|
+
import type { BridgeMessage } from '@agoric/cosmic-swingset/src/types.js';
|
|
64
|
+
import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
65
|
+
import type { ZCF } from '@agoric/zoe';
|
|
66
|
+
import type { Brand } from '@agoric/ertp';
|
|
67
|
+
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
68
|
+
import type { ERemote } from '@agoric/internal';
|
|
69
|
+
import type { start as psmStart } from '@agoric/inter-protocol/src/psm/psm.js';
|
|
70
|
+
import type { Instance } from '@agoric/zoe/src/zoeService/utils.js';
|
|
358
71
|
import type { BankManager } from '@agoric/vats/src/vat-bank.js';
|
|
72
|
+
import type { WalletFactoryStartResult } from '@agoric/vats/src/core/startWalletFactory.js';
|
|
73
|
+
import type { Amount } from '@agoric/ertp';
|
|
359
74
|
//# sourceMappingURL=provisionPoolKit.d.ts.map
|
|
@@ -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":"AA2FO,iDAFI,IAAI;;;;;eA2gBud,CAAC;;;;;;IAtfje,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;+BA3iBY;IACR,OAAO,EAAE,GAAG,CAAC;IACb,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;;0BAzCJ,cAAc;qCAKH,8BAA8B;0BAZzC,WAAW;6BAJc,cAAc;0BAK1B,8BAA8B;+BAItC,cAAc;mCAVV,sCAAsC;qCAcpC,6CAA6C;yBAVzD,aAAa;2BAHa,cAAc;iCAEhC,0CAA0C;6BADtC,kBAAkB;uCAOhB,uCAAuC;8BADhD,qCAAqC;iCAF5B,8BAA8B;8CAKvB,6CAA6C;4BAVxC,cAAc"}
|