@agoric/inter-protocol 0.16.2-upgrade-14-dev-0169c7e.0 → 0.16.2-upgrade-16-dev-8879538.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 +41 -34
- package/scripts/build-bundles.js +5 -21
- package/src/auction/auctionBook.d.ts +84 -0
- package/src/auction/auctionBook.d.ts.map +1 -0
- package/src/auction/auctionBook.js +135 -103
- package/src/auction/auctioneer.d.ts +83 -0
- package/src/auction/auctioneer.d.ts.map +1 -0
- package/src/auction/auctioneer.js +63 -49
- package/src/auction/offerBook.d.ts +45 -0
- package/src/auction/offerBook.d.ts.map +1 -0
- package/src/auction/offerBook.js +13 -12
- package/src/auction/params.d.ts +149 -0
- package/src/auction/params.d.ts.map +1 -0
- package/src/auction/params.js +10 -9
- package/src/auction/scheduleMath.d.ts +5 -0
- package/src/auction/scheduleMath.d.ts.map +1 -0
- package/src/auction/scheduleMath.js +17 -15
- package/src/auction/scheduler.d.ts +49 -0
- package/src/auction/scheduler.d.ts.map +1 -0
- package/src/auction/scheduler.js +51 -43
- package/src/auction/sortedOffers.d.ts +8 -0
- package/src/auction/sortedOffers.d.ts.map +1 -0
- package/src/auction/sortedOffers.js +9 -7
- package/src/auction/util.d.ts +32 -0
- package/src/auction/util.d.ts.map +1 -0
- package/src/auction/util.js +6 -4
- package/src/clientSupport.d.ts +167 -0
- package/src/clientSupport.d.ts.map +1 -0
- package/src/clientSupport.js +97 -40
- package/src/collectFees.d.ts +2 -0
- package/src/collectFees.d.ts.map +1 -0
- package/src/contractSupport.d.ts +28 -0
- package/src/contractSupport.d.ts.map +1 -0
- package/src/contractSupport.js +14 -12
- package/src/econCommitteeCharter.d.ts +39 -0
- package/src/econCommitteeCharter.d.ts.map +1 -0
- package/src/econCommitteeCharter.js +21 -20
- package/src/feeDistributor.d.ts +224 -0
- package/src/feeDistributor.d.ts.map +1 -0
- package/src/feeDistributor.js +37 -33
- package/src/index.d.ts +2 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +1 -0
- package/src/interest-math.d.ts +3 -0
- package/src/interest-math.d.ts.map +1 -0
- package/src/interest.d.ts +28 -0
- package/src/interest.d.ts.map +1 -0
- package/src/interest.js +21 -16
- package/src/price/README.md +13 -0
- package/src/price/fluxAggregatorContract.d.ts +70 -0
- package/src/price/fluxAggregatorContract.d.ts.map +1 -0
- package/src/price/fluxAggregatorContract.js +62 -55
- package/src/price/fluxAggregatorKit.d.ts +103 -0
- package/src/price/fluxAggregatorKit.d.ts.map +1 -0
- package/src/price/fluxAggregatorKit.js +50 -37
- package/src/price/priceOracleKit.d.ts +38 -0
- package/src/price/priceOracleKit.d.ts.map +1 -0
- package/src/price/priceOracleKit.js +11 -13
- package/src/price/roundsManager.d.ts +238 -0
- package/src/price/roundsManager.d.ts.map +1 -0
- package/src/price/roundsManager.js +77 -82
- package/src/proposals/README.md +2 -3
- package/src/proposals/add-auction.d.ts +69 -0
- package/src/proposals/add-auction.d.ts.map +1 -0
- package/src/proposals/add-auction.js +181 -0
- package/src/proposals/addAssetToVault.d.ts +160 -0
- package/src/proposals/addAssetToVault.d.ts.map +1 -0
- package/src/proposals/addAssetToVault.js +172 -38
- package/src/proposals/committee-proposal.d.ts +113 -0
- package/src/proposals/committee-proposal.d.ts.map +1 -0
- package/src/proposals/committee-proposal.js +25 -31
- package/src/proposals/core-proposal.d.ts +149 -0
- package/src/proposals/core-proposal.d.ts.map +1 -0
- package/src/proposals/core-proposal.js +9 -11
- package/src/proposals/econ-behaviors.d.ts +1169 -0
- package/src/proposals/econ-behaviors.d.ts.map +1 -0
- package/src/proposals/econ-behaviors.js +66 -45
- package/src/proposals/price-feed-proposal.d.ts +84 -0
- package/src/proposals/price-feed-proposal.d.ts.map +1 -0
- package/src/proposals/price-feed-proposal.js +108 -51
- package/src/proposals/startEconCommittee.d.ts +34 -0
- package/src/proposals/startEconCommittee.d.ts.map +1 -0
- package/src/proposals/startEconCommittee.js +2 -2
- package/src/proposals/startPSM.d.ts +59 -0
- package/src/proposals/startPSM.d.ts.map +1 -0
- package/src/proposals/startPSM.js +38 -27
- package/src/proposals/upgrade-scaledPriceAuthorities.d.ts +24 -0
- package/src/proposals/upgrade-scaledPriceAuthorities.d.ts.map +1 -0
- package/src/proposals/upgrade-scaledPriceAuthorities.js +78 -0
- package/src/proposals/upgrade-vaults.d.ts +35 -0
- package/src/proposals/upgrade-vaults.d.ts.map +1 -0
- package/src/proposals/upgrade-vaults.js +202 -0
- package/src/proposals/utils.d.ts +17 -0
- package/src/proposals/utils.d.ts.map +1 -0
- package/src/proposals/utils.js +34 -7
- package/src/provisionPool.d.ts +167 -0
- package/src/provisionPool.d.ts.map +1 -0
- package/src/provisionPool.js +122 -0
- package/src/provisionPoolKit.d.ts +770 -0
- package/src/provisionPoolKit.d.ts.map +1 -0
- package/src/provisionPoolKit.js +463 -0
- package/src/psm/psm.d.ts +122 -0
- package/src/psm/psm.d.ts.map +1 -0
- package/src/psm/psm.js +73 -69
- package/src/psm/types-ambient.d.ts +2 -0
- package/src/psm/types-ambient.d.ts.map +1 -0
- package/src/psm/types-ambient.js +3 -0
- package/src/reserve/assetReserve.d.ts +47 -0
- package/src/reserve/assetReserve.d.ts.map +1 -0
- package/src/reserve/assetReserve.js +28 -19
- package/src/reserve/assetReserveKit.d.ts +74 -0
- package/src/reserve/assetReserveKit.d.ts.map +1 -0
- package/src/reserve/assetReserveKit.js +18 -24
- package/src/reserve/params.d.ts +10 -0
- package/src/reserve/params.d.ts.map +1 -0
- package/src/tokens.d.ts +3 -0
- package/src/tokens.d.ts.map +1 -0
- package/src/tokens.js +5 -0
- package/src/vaultFactory/burn.d.ts +2 -0
- package/src/vaultFactory/burn.d.ts.map +1 -0
- package/src/vaultFactory/burn.js +1 -1
- package/src/vaultFactory/liquidation.d.ts +163 -0
- package/src/vaultFactory/liquidation.d.ts.map +1 -0
- package/src/vaultFactory/liquidation.js +36 -22
- package/src/vaultFactory/math.d.ts +11 -0
- package/src/vaultFactory/math.d.ts.map +1 -0
- package/src/vaultFactory/math.js +10 -9
- package/src/vaultFactory/orderedVaultStore.d.ts +360 -0
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -0
- package/src/vaultFactory/orderedVaultStore.js +8 -11
- package/src/vaultFactory/params.d.ts +145 -0
- package/src/vaultFactory/params.d.ts.map +1 -0
- package/src/vaultFactory/params.js +52 -24
- package/src/vaultFactory/prioritizedVaults.d.ts +992 -0
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -0
- package/src/vaultFactory/prioritizedVaults.js +4 -4
- package/src/vaultFactory/proceeds.d.ts +35 -0
- package/src/vaultFactory/proceeds.d.ts.map +1 -0
- package/src/vaultFactory/proceeds.js +26 -18
- package/src/vaultFactory/storeUtils.d.ts +25 -0
- package/src/vaultFactory/storeUtils.d.ts.map +1 -0
- package/src/vaultFactory/storeUtils.js +10 -12
- package/src/vaultFactory/types-ambient.d.ts +234 -0
- package/src/vaultFactory/types-ambient.d.ts.map +1 -0
- package/src/vaultFactory/{types.js → types-ambient.js} +42 -42
- package/src/vaultFactory/vault.d.ts +402 -0
- package/src/vaultFactory/vault.d.ts.map +1 -0
- package/src/vaultFactory/vault.js +99 -93
- package/src/vaultFactory/vaultDirector.d.ts +388 -0
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -0
- package/src/vaultFactory/vaultDirector.js +61 -50
- package/src/vaultFactory/vaultFactory.d.ts +277 -0
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -0
- package/src/vaultFactory/vaultFactory.js +49 -32
- package/src/vaultFactory/vaultHolder.d.ts +270 -0
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -0
- package/src/vaultFactory/vaultHolder.js +10 -14
- package/src/vaultFactory/vaultKit.d.ts +102 -0
- package/src/vaultFactory/vaultKit.d.ts.map +1 -0
- package/src/vaultFactory/vaultKit.js +5 -4
- package/src/vaultFactory/vaultManager.d.ts +819 -0
- package/src/vaultFactory/vaultManager.d.ts.map +1 -0
- package/src/vaultFactory/vaultManager.js +248 -151
- package/CHANGELOG.md +0 -1066
- package/exported.js +0 -2
- package/scripts/add-collateral-core.js +0 -113
- package/scripts/deploy-contracts.js +0 -100
- package/scripts/init-core.js +0 -200
- package/scripts/invite-committee-core.js +0 -42
- package/scripts/manual-price-feed.js +0 -117
- package/scripts/price-feed-core.js +0 -104
- package/scripts/start-local-chain.sh +0 -84
- package/src/psm/types.js +0 -3
- package/src/typeGuards.js +0 -13
- package/src/vaultFactory/type-imports.js +0 -4
|
@@ -0,0 +1,770 @@
|
|
|
1
|
+
export function makeBridgeProvisionTool(sendInitialPayment: (depositBank: ERef<Bank>) => Promise<void>, onProvisioned: () => void): ({ bankManager, namesByAddressAdmin, walletFactory, }: ProvisionPoolKitReferences) => {
|
|
2
|
+
fromBridge: (obj: any) => Promise<void>;
|
|
3
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
4
|
+
fromBridge: (obj: any) => Promise<void>;
|
|
5
|
+
}>;
|
|
6
|
+
export function prepareProvisionPoolKit(baggage: import("@agoric/vat-data").Baggage, { makeRecorderKit, params, poolBank, zcf }: {
|
|
7
|
+
makeRecorderKit: import("@agoric/zoe/src/contractSupport/recorder.js").MakeRecorderKit;
|
|
8
|
+
params: any;
|
|
9
|
+
poolBank: ERef<Bank>;
|
|
10
|
+
zcf: ZCF;
|
|
11
|
+
}): ({ poolBrand, storageNode }: {
|
|
12
|
+
poolBrand: Brand<"nat">;
|
|
13
|
+
storageNode: ERef<globalThis.StorageNode>;
|
|
14
|
+
}) => Promise<import("@endo/exo").GuardedKit<{
|
|
15
|
+
machine: {
|
|
16
|
+
/** @param {string[]} oldAddresses */
|
|
17
|
+
addRevivableAddresses(oldAddresses: string[]): void;
|
|
18
|
+
getWalletReviver(): import("@endo/exo").Guarded<{
|
|
19
|
+
/** @param {string} address */
|
|
20
|
+
reviveWallet(address: string): Promise<{
|
|
21
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
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: OfferId): Promise<void>;
|
|
28
|
+
}>;
|
|
29
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
30
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
31
|
+
getPublicTopics(): {
|
|
32
|
+
current: {
|
|
33
|
+
description: string;
|
|
34
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
35
|
+
storagePath: Promise<string>;
|
|
36
|
+
};
|
|
37
|
+
updates: {
|
|
38
|
+
description: string;
|
|
39
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
40
|
+
storagePath: Promise<string>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
repairWalletForIncarnation2(key: object): void;
|
|
44
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
45
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
46
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
47
|
+
receive(payment: Payment): Promise<Amount>;
|
|
48
|
+
}>;
|
|
49
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
50
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
51
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
52
|
+
}>;
|
|
53
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
54
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
55
|
+
getPublicTopics(): {
|
|
56
|
+
current: {
|
|
57
|
+
description: string;
|
|
58
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
59
|
+
storagePath: Promise<string>;
|
|
60
|
+
};
|
|
61
|
+
updates: {
|
|
62
|
+
description: string;
|
|
63
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
64
|
+
storagePath: Promise<string>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
repairWalletForIncarnation2(key: object): void;
|
|
68
|
+
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
69
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
70
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
71
|
+
receive(payment: Payment): Promise<Amount>;
|
|
72
|
+
}>;
|
|
73
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
74
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
75
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
76
|
+
}>;
|
|
77
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
78
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
79
|
+
getPublicTopics(): {
|
|
80
|
+
current: {
|
|
81
|
+
description: string;
|
|
82
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
83
|
+
storagePath: Promise<string>;
|
|
84
|
+
};
|
|
85
|
+
updates: {
|
|
86
|
+
description: string;
|
|
87
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
88
|
+
storagePath: Promise<string>;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
repairWalletForIncarnation2(key: object): void;
|
|
92
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
93
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
94
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
95
|
+
receive(payment: Payment): Promise<Amount>;
|
|
96
|
+
}>;
|
|
97
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
98
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
99
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
100
|
+
}>;
|
|
101
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
102
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
103
|
+
getPublicTopics(): {
|
|
104
|
+
current: {
|
|
105
|
+
description: string;
|
|
106
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
107
|
+
storagePath: Promise<string>;
|
|
108
|
+
};
|
|
109
|
+
updates: {
|
|
110
|
+
description: string;
|
|
111
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
112
|
+
storagePath: Promise<string>;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
repairWalletForIncarnation2(key: object): void;
|
|
116
|
+
}>> & import("@endo/marshal").RemotableObject>;
|
|
117
|
+
/**
|
|
118
|
+
* @param {string} address
|
|
119
|
+
* @returns {boolean} isRevive
|
|
120
|
+
*/
|
|
121
|
+
ackWallet(address: string): boolean;
|
|
122
|
+
}>;
|
|
123
|
+
/** @param {ProvisionPoolKitReferences} erefs */
|
|
124
|
+
setReferences(erefs: ProvisionPoolKitReferences): Promise<void>;
|
|
125
|
+
makeHandler(): {
|
|
126
|
+
fromBridge: (obj: any) => Promise<void>;
|
|
127
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
128
|
+
fromBridge: (obj: any) => Promise<void>;
|
|
129
|
+
}>;
|
|
130
|
+
/**
|
|
131
|
+
* @param {Brand} brand
|
|
132
|
+
* @param {PsmInstance} instance
|
|
133
|
+
*/
|
|
134
|
+
initPSM(brand: Brand, instance: PsmInstance): void;
|
|
135
|
+
};
|
|
136
|
+
walletReviver: {
|
|
137
|
+
/** @param {string} address */
|
|
138
|
+
reviveWallet(address: string): Promise<{
|
|
139
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
140
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
141
|
+
receive(payment: Payment): Promise<Amount>;
|
|
142
|
+
}>;
|
|
143
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
144
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
145
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
146
|
+
}>;
|
|
147
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
148
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
149
|
+
getPublicTopics(): {
|
|
150
|
+
current: {
|
|
151
|
+
description: string;
|
|
152
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
153
|
+
storagePath: Promise<string>;
|
|
154
|
+
};
|
|
155
|
+
updates: {
|
|
156
|
+
description: string;
|
|
157
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
158
|
+
storagePath: Promise<string>;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
repairWalletForIncarnation2(key: object): void;
|
|
162
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
163
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
164
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
165
|
+
receive(payment: Payment): Promise<Amount>;
|
|
166
|
+
}>;
|
|
167
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
168
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
169
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
170
|
+
}>;
|
|
171
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
172
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
173
|
+
getPublicTopics(): {
|
|
174
|
+
current: {
|
|
175
|
+
description: string;
|
|
176
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
177
|
+
storagePath: Promise<string>;
|
|
178
|
+
};
|
|
179
|
+
updates: {
|
|
180
|
+
description: string;
|
|
181
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
182
|
+
storagePath: Promise<string>;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
repairWalletForIncarnation2(key: object): void;
|
|
186
|
+
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
187
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
188
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
189
|
+
receive(payment: Payment): Promise<Amount>;
|
|
190
|
+
}>;
|
|
191
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
192
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
193
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
194
|
+
}>;
|
|
195
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
196
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
197
|
+
getPublicTopics(): {
|
|
198
|
+
current: {
|
|
199
|
+
description: string;
|
|
200
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
201
|
+
storagePath: Promise<string>;
|
|
202
|
+
};
|
|
203
|
+
updates: {
|
|
204
|
+
description: string;
|
|
205
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
206
|
+
storagePath: Promise<string>;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
repairWalletForIncarnation2(key: object): void;
|
|
210
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
211
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
212
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
213
|
+
receive(payment: Payment): Promise<Amount>;
|
|
214
|
+
}>;
|
|
215
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
216
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
217
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
218
|
+
}>;
|
|
219
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
220
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
221
|
+
getPublicTopics(): {
|
|
222
|
+
current: {
|
|
223
|
+
description: string;
|
|
224
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
225
|
+
storagePath: Promise<string>;
|
|
226
|
+
};
|
|
227
|
+
updates: {
|
|
228
|
+
description: string;
|
|
229
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
230
|
+
storagePath: Promise<string>;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
repairWalletForIncarnation2(key: object): void;
|
|
234
|
+
}>> & import("@endo/marshal").RemotableObject>;
|
|
235
|
+
/**
|
|
236
|
+
* @param {string} address
|
|
237
|
+
* @returns {boolean} isRevive
|
|
238
|
+
*/
|
|
239
|
+
ackWallet(address: string): boolean;
|
|
240
|
+
};
|
|
241
|
+
helper: {
|
|
242
|
+
publishMetrics(): void;
|
|
243
|
+
onTrade(converted: any): void;
|
|
244
|
+
onSendFunds(provided: any): void;
|
|
245
|
+
onProvisioned(): void;
|
|
246
|
+
/** @param {ERef<Bank>} destBank */
|
|
247
|
+
sendInitialPayment(destBank: ERef<Bank>): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* @param {object} [options]
|
|
250
|
+
* @param {MetricsNotification} [options.metrics]
|
|
251
|
+
*/
|
|
252
|
+
start({ metrics }?: {
|
|
253
|
+
metrics?: MetricsNotification | undefined;
|
|
254
|
+
} | undefined): void;
|
|
255
|
+
/**
|
|
256
|
+
* @param {ERef<Payment>} payIn
|
|
257
|
+
* @param {Amount} amount
|
|
258
|
+
* @param {PsmInstance} instance
|
|
259
|
+
*/
|
|
260
|
+
swap(payIn: ERef<globalThis.Payment>, amount: Amount, instance: PsmInstance): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
261
|
+
};
|
|
262
|
+
public: {
|
|
263
|
+
getPublicTopics(): {
|
|
264
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<MetricsNotification>;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
}>>;
|
|
268
|
+
export type PsmInstance = import("@agoric/zoe/src/zoeService/utils.js").Instance<(zcf: ZCF<GovernanceTerms<{
|
|
269
|
+
GiveMintedFee: "ratio";
|
|
270
|
+
WantMintedFee: "ratio";
|
|
271
|
+
MintLimit: "amount";
|
|
272
|
+
}> & {
|
|
273
|
+
anchorBrand: Brand<"nat">;
|
|
274
|
+
anchorPerMinted: Ratio;
|
|
275
|
+
}>, privateArgs: {
|
|
276
|
+
feeMintAccess: FeeMintAccess;
|
|
277
|
+
initialPoserInvitation: Invitation;
|
|
278
|
+
storageNode: StorageNode;
|
|
279
|
+
marshaller: Marshaller;
|
|
280
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
281
|
+
creatorFacet: import("@endo/exo").Guarded<{
|
|
282
|
+
getParamMgrRetriever: () => {
|
|
283
|
+
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
284
|
+
GiveMintedFee: "ratio";
|
|
285
|
+
MintLimit: "amount";
|
|
286
|
+
WantMintedFee: "ratio";
|
|
287
|
+
} & {
|
|
288
|
+
Electorate: "invitation";
|
|
289
|
+
}>;
|
|
290
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
291
|
+
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
292
|
+
GiveMintedFee: "ratio";
|
|
293
|
+
MintLimit: "amount";
|
|
294
|
+
WantMintedFee: "ratio";
|
|
295
|
+
} & {
|
|
296
|
+
Electorate: "invitation";
|
|
297
|
+
}>;
|
|
298
|
+
}>;
|
|
299
|
+
getInvitation: (name: any) => Promise<Invitation<unknown, undefined>>; /** @param {string} address */
|
|
300
|
+
getLimitedCreatorFacet: () => import("@endo/exo").Guarded<{
|
|
301
|
+
getRewardAllocation(): Allocation;
|
|
302
|
+
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
303
|
+
makeRestoreMetricsInvitation(): Promise<Invitation<void, Omit<import("@agoric/inter-protocol/src/psm/psm.js").MetricsNotification, "anchorPoolBalance">>>;
|
|
304
|
+
}>;
|
|
305
|
+
getGovernedApis: () => globalThis.GovernedApis;
|
|
306
|
+
getGovernedApiNames: () => string[];
|
|
307
|
+
setOfferFilter: (strings: any) => Promise<void>;
|
|
308
|
+
}>;
|
|
309
|
+
publicFacet: import("@endo/exo").Guarded<{
|
|
310
|
+
getAmount: (name: string) => Amount;
|
|
311
|
+
getBrand: (name: string) => globalThis.Brand;
|
|
312
|
+
getInstance: (name: string) => Instance;
|
|
313
|
+
getInstallation: (name: string) => Installation<any>;
|
|
314
|
+
getInvitationAmount: (name: string) => import("@agoric/ertp/src/types.js").SetAmount<InvitationDetails>;
|
|
315
|
+
getNat: (name: string) => bigint;
|
|
316
|
+
getRatio: (name: string) => Ratio;
|
|
317
|
+
getString: (name: string) => string;
|
|
318
|
+
getTimestamp: (name: string) => import("@agoric/time").TimestampRecord;
|
|
319
|
+
getRelativeTime: (name: string) => import("@agoric/time").RelativeTimeRecord;
|
|
320
|
+
getUnknown: (name: string) => any;
|
|
321
|
+
getSubscription: () => globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
322
|
+
getGovernedParams: () => ERef<globalThis.ParamStateRecord>;
|
|
323
|
+
getMetrics(): globalThis.Subscriber<import("@agoric/inter-protocol/src/psm/psm.js").MetricsNotification>;
|
|
324
|
+
getPoolBalance(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
325
|
+
getPublicTopics(): {
|
|
326
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("@agoric/inter-protocol/src/psm/psm.js").MetricsNotification>;
|
|
327
|
+
};
|
|
328
|
+
makeWantMintedInvitation(): Promise<Invitation<void, undefined>>;
|
|
329
|
+
makeGiveMintedInvitation(): Promise<Invitation<void, undefined>>;
|
|
330
|
+
}>;
|
|
331
|
+
}>>;
|
|
332
|
+
export type ProvisionPoolKitReferences = {
|
|
333
|
+
bankManager: ERef<import("@endo/exo").Guarded<{
|
|
334
|
+
getAssetSubscription(): globalThis.IterableEachTopic<import("@agoric/vats/src/vat-bank.js").AssetDescriptor>;
|
|
335
|
+
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<{
|
|
336
|
+
/**
|
|
337
|
+
* Deposit all the contents of payment
|
|
338
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
339
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
340
|
+
* payment, throw an error.
|
|
341
|
+
*
|
|
342
|
+
* If payment is a promise, throw an error.
|
|
343
|
+
*/
|
|
344
|
+
receive: (args_0: globalThis.Payment, args_1?: globalThis.Pattern) => ERef<Amount>;
|
|
345
|
+
}>;
|
|
346
|
+
getModuleAccountAddress(moduleName: string): Promise<string | null>;
|
|
347
|
+
addAsset(denom: string, issuerName: string, proposedName: string, kit: AssetIssuerKit & {
|
|
348
|
+
payment?: ERef<Payment<"nat">>;
|
|
349
|
+
}): Promise<void>;
|
|
350
|
+
getBankForAddress(address: string): Promise<Bank>;
|
|
351
|
+
}>>;
|
|
352
|
+
namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>;
|
|
353
|
+
walletFactory: ERef<{
|
|
354
|
+
provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats/src/types.js").NameAdmin>): Promise<[wallet: {
|
|
355
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
356
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
357
|
+
receive(payment: Payment): Promise<Amount>;
|
|
358
|
+
}>;
|
|
359
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
360
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
361
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
362
|
+
}>;
|
|
363
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
364
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
365
|
+
getPublicTopics(): {
|
|
366
|
+
current: {
|
|
367
|
+
description: string;
|
|
368
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
369
|
+
storagePath: Promise<string>;
|
|
370
|
+
};
|
|
371
|
+
updates: {
|
|
372
|
+
description: string;
|
|
373
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
374
|
+
storagePath: Promise<string>;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
repairWalletForIncarnation2(key: object): void;
|
|
378
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
379
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
380
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
381
|
+
receive(payment: Payment): Promise<Amount>;
|
|
382
|
+
}>;
|
|
383
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
384
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
385
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
386
|
+
}>;
|
|
387
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
388
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
389
|
+
getPublicTopics(): {
|
|
390
|
+
current: {
|
|
391
|
+
description: string;
|
|
392
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
393
|
+
storagePath: Promise<string>;
|
|
394
|
+
};
|
|
395
|
+
updates: {
|
|
396
|
+
description: string;
|
|
397
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
398
|
+
storagePath: Promise<string>;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
repairWalletForIncarnation2(key: object): void;
|
|
402
|
+
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
403
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
404
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
405
|
+
receive(payment: Payment): Promise<Amount>;
|
|
406
|
+
}>;
|
|
407
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
408
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
409
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
410
|
+
}>;
|
|
411
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
412
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
413
|
+
getPublicTopics(): {
|
|
414
|
+
current: {
|
|
415
|
+
description: string;
|
|
416
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
417
|
+
storagePath: Promise<string>;
|
|
418
|
+
};
|
|
419
|
+
updates: {
|
|
420
|
+
description: string;
|
|
421
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
422
|
+
storagePath: Promise<string>;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
repairWalletForIncarnation2(key: object): void;
|
|
426
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
427
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
428
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
429
|
+
receive(payment: Payment): Promise<Amount>;
|
|
430
|
+
}>;
|
|
431
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
432
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
433
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
434
|
+
}>;
|
|
435
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
436
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
437
|
+
getPublicTopics(): {
|
|
438
|
+
current: {
|
|
439
|
+
description: string;
|
|
440
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
441
|
+
storagePath: Promise<string>;
|
|
442
|
+
};
|
|
443
|
+
updates: {
|
|
444
|
+
description: string;
|
|
445
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
446
|
+
storagePath: Promise<string>;
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
repairWalletForIncarnation2(key: object): void;
|
|
450
|
+
}>> & import("@endo/marshal").RemotableObject, isNew: boolean]>;
|
|
451
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
452
|
+
provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats/src/types.js").NameAdmin>): Promise<[wallet: {
|
|
453
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
454
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
455
|
+
receive(payment: Payment): Promise<Amount>;
|
|
456
|
+
}>;
|
|
457
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
458
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
459
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
460
|
+
}>;
|
|
461
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
462
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
463
|
+
getPublicTopics(): {
|
|
464
|
+
current: {
|
|
465
|
+
description: string;
|
|
466
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
467
|
+
storagePath: Promise<string>;
|
|
468
|
+
};
|
|
469
|
+
updates: {
|
|
470
|
+
description: string;
|
|
471
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
472
|
+
storagePath: Promise<string>;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
repairWalletForIncarnation2(key: object): void;
|
|
476
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
477
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
478
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
479
|
+
receive(payment: Payment): Promise<Amount>;
|
|
480
|
+
}>;
|
|
481
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
482
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
483
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
484
|
+
}>;
|
|
485
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
486
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
487
|
+
getPublicTopics(): {
|
|
488
|
+
current: {
|
|
489
|
+
description: string;
|
|
490
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
491
|
+
storagePath: Promise<string>;
|
|
492
|
+
};
|
|
493
|
+
updates: {
|
|
494
|
+
description: string;
|
|
495
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
496
|
+
storagePath: Promise<string>;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
repairWalletForIncarnation2(key: object): void;
|
|
500
|
+
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
501
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
502
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
503
|
+
receive(payment: Payment): Promise<Amount>;
|
|
504
|
+
}>;
|
|
505
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
506
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
507
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
508
|
+
}>;
|
|
509
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
510
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
511
|
+
getPublicTopics(): {
|
|
512
|
+
current: {
|
|
513
|
+
description: string;
|
|
514
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
515
|
+
storagePath: Promise<string>;
|
|
516
|
+
};
|
|
517
|
+
updates: {
|
|
518
|
+
description: string;
|
|
519
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
520
|
+
storagePath: Promise<string>;
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
repairWalletForIncarnation2(key: object): void;
|
|
524
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
525
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
526
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
527
|
+
receive(payment: Payment): Promise<Amount>;
|
|
528
|
+
}>;
|
|
529
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
530
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
531
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
532
|
+
}>;
|
|
533
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
534
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
535
|
+
getPublicTopics(): {
|
|
536
|
+
current: {
|
|
537
|
+
description: string;
|
|
538
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
539
|
+
storagePath: Promise<string>;
|
|
540
|
+
};
|
|
541
|
+
updates: {
|
|
542
|
+
description: string;
|
|
543
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
544
|
+
storagePath: Promise<string>;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
repairWalletForIncarnation2(key: object): void;
|
|
548
|
+
}>> & import("@endo/marshal").RemotableObject, isNew: boolean]>;
|
|
549
|
+
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
550
|
+
provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats/src/types.js").NameAdmin>): Promise<[wallet: {
|
|
551
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
552
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
553
|
+
receive(payment: Payment): Promise<Amount>;
|
|
554
|
+
}>;
|
|
555
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
556
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
557
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
558
|
+
}>;
|
|
559
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
560
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
561
|
+
getPublicTopics(): {
|
|
562
|
+
current: {
|
|
563
|
+
description: string;
|
|
564
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
565
|
+
storagePath: Promise<string>;
|
|
566
|
+
};
|
|
567
|
+
updates: {
|
|
568
|
+
description: string;
|
|
569
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
570
|
+
storagePath: Promise<string>;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
repairWalletForIncarnation2(key: object): void;
|
|
574
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
575
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
576
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
577
|
+
receive(payment: Payment): Promise<Amount>;
|
|
578
|
+
}>;
|
|
579
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
580
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
581
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
582
|
+
}>;
|
|
583
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
584
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
585
|
+
getPublicTopics(): {
|
|
586
|
+
current: {
|
|
587
|
+
description: string;
|
|
588
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
589
|
+
storagePath: Promise<string>;
|
|
590
|
+
};
|
|
591
|
+
updates: {
|
|
592
|
+
description: string;
|
|
593
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
594
|
+
storagePath: Promise<string>;
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
repairWalletForIncarnation2(key: object): void;
|
|
598
|
+
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
599
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
600
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
601
|
+
receive(payment: Payment): Promise<Amount>;
|
|
602
|
+
}>;
|
|
603
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
604
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
605
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
606
|
+
}>;
|
|
607
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
608
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
609
|
+
getPublicTopics(): {
|
|
610
|
+
current: {
|
|
611
|
+
description: string;
|
|
612
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
613
|
+
storagePath: Promise<string>;
|
|
614
|
+
};
|
|
615
|
+
updates: {
|
|
616
|
+
description: string;
|
|
617
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
618
|
+
storagePath: Promise<string>;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
repairWalletForIncarnation2(key: object): void;
|
|
622
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
623
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
624
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
625
|
+
receive(payment: Payment): Promise<Amount>;
|
|
626
|
+
}>;
|
|
627
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
628
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
629
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
630
|
+
}>;
|
|
631
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
632
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
633
|
+
getPublicTopics(): {
|
|
634
|
+
current: {
|
|
635
|
+
description: string;
|
|
636
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
637
|
+
storagePath: Promise<string>;
|
|
638
|
+
};
|
|
639
|
+
updates: {
|
|
640
|
+
description: string;
|
|
641
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
642
|
+
storagePath: Promise<string>;
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
repairWalletForIncarnation2(key: object): void;
|
|
646
|
+
}>> & import("@endo/marshal").RemotableObject, isNew: boolean]>;
|
|
647
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
648
|
+
provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats/src/types.js").NameAdmin>): Promise<[wallet: {
|
|
649
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
650
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
651
|
+
receive(payment: Payment): Promise<Amount>;
|
|
652
|
+
}>;
|
|
653
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
654
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
655
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
656
|
+
}>;
|
|
657
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
658
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
659
|
+
getPublicTopics(): {
|
|
660
|
+
current: {
|
|
661
|
+
description: string;
|
|
662
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
663
|
+
storagePath: Promise<string>;
|
|
664
|
+
};
|
|
665
|
+
updates: {
|
|
666
|
+
description: string;
|
|
667
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
668
|
+
storagePath: Promise<string>;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
repairWalletForIncarnation2(key: object): void;
|
|
672
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
673
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
674
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
675
|
+
receive(payment: Payment): Promise<Amount>;
|
|
676
|
+
}>;
|
|
677
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
678
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
679
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
680
|
+
}>;
|
|
681
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
682
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
683
|
+
getPublicTopics(): {
|
|
684
|
+
current: {
|
|
685
|
+
description: string;
|
|
686
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
687
|
+
storagePath: Promise<string>;
|
|
688
|
+
};
|
|
689
|
+
updates: {
|
|
690
|
+
description: string;
|
|
691
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
692
|
+
storagePath: Promise<string>;
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
repairWalletForIncarnation2(key: object): void;
|
|
696
|
+
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
697
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
698
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
699
|
+
receive(payment: Payment): Promise<Amount>;
|
|
700
|
+
}>;
|
|
701
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
702
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
703
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
704
|
+
}>;
|
|
705
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
706
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
707
|
+
getPublicTopics(): {
|
|
708
|
+
current: {
|
|
709
|
+
description: string;
|
|
710
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
711
|
+
storagePath: Promise<string>;
|
|
712
|
+
};
|
|
713
|
+
updates: {
|
|
714
|
+
description: string;
|
|
715
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
716
|
+
storagePath: Promise<string>;
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
repairWalletForIncarnation2(key: object): void;
|
|
720
|
+
} & import("../../../node_modules/@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
721
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
|
|
722
|
+
getDepositFacet(): import("@endo/exo").Guarded<{
|
|
723
|
+
receive(payment: Payment): Promise<Amount>;
|
|
724
|
+
}>;
|
|
725
|
+
getOffersFacet(): import("@endo/exo").Guarded<{
|
|
726
|
+
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
727
|
+
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
728
|
+
}>;
|
|
729
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
730
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
731
|
+
getPublicTopics(): {
|
|
732
|
+
current: {
|
|
733
|
+
description: string;
|
|
734
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
735
|
+
storagePath: Promise<string>;
|
|
736
|
+
};
|
|
737
|
+
updates: {
|
|
738
|
+
description: string;
|
|
739
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
740
|
+
storagePath: Promise<string>;
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
repairWalletForIncarnation2(key: object): void;
|
|
744
|
+
}>> & import("@endo/marshal").RemotableObject, isNew: boolean]>;
|
|
745
|
+
}>> & import("@endo/marshal").RemotableObject>;
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* Metrics naming scheme is that nouns are
|
|
749
|
+
* present values and past-participles are accumulative.
|
|
750
|
+
*/
|
|
751
|
+
export type MetricsNotification = {
|
|
752
|
+
/**
|
|
753
|
+
* count of new wallets provisioned
|
|
754
|
+
*/
|
|
755
|
+
walletsProvisioned: bigint;
|
|
756
|
+
/**
|
|
757
|
+
* running sum of Minted provided
|
|
758
|
+
* to new wallets
|
|
759
|
+
*/
|
|
760
|
+
totalMintedProvided: import("@agoric/ertp/src/types.js").NatAmount;
|
|
761
|
+
/**
|
|
762
|
+
* running sum of Minted ever
|
|
763
|
+
* received by the contract from PSM
|
|
764
|
+
*/
|
|
765
|
+
totalMintedConverted: import("@agoric/ertp/src/types.js").NatAmount;
|
|
766
|
+
};
|
|
767
|
+
import type { Bank } from '@agoric/vats/src/vat-bank.js';
|
|
768
|
+
import type { ERef } from '@endo/far';
|
|
769
|
+
import type { Amount } from '@agoric/ertp/src/types.js';
|
|
770
|
+
//# sourceMappingURL=provisionPoolKit.d.ts.map
|