@agoric/vats 0.15.2-dev-ecf2d8e.0 → 0.15.2-other-dev-70beeb7.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/CHANGELOG.md +9 -0
- package/decentral-core-config.json +66 -0
- package/decentral-demo-config.json +155 -0
- package/decentral-devnet-config.json +216 -0
- package/decentral-itest-vaults-config.json +210 -0
- package/decentral-main-vaults-config.json +229 -0
- package/decentral-test-vaults-config.json +195 -0
- package/demo-proposals.json +5 -0
- package/exported.js +1 -1
- package/jsconfig.build.json +12 -0
- package/{tsconfig.json → jsconfig.json} +0 -3
- package/package.json +42 -32
- package/scripts/build-bundles.d.ts +3 -0
- package/scripts/build-bundles.d.ts.map +1 -0
- package/scripts/build-bundles.js +3 -8
- package/scripts/build-game1-start.d.ts +5 -0
- package/scripts/build-game1-start.d.ts.map +1 -0
- package/scripts/build-game1-start.js +34 -0
- package/scripts/build-walletFactory-upgrade.d.ts +5 -0
- package/scripts/build-walletFactory-upgrade.d.ts.map +1 -0
- package/scripts/build-walletFactory-upgrade.js +35 -0
- package/scripts/init-core.d.ts +5 -0
- package/scripts/init-core.d.ts.map +1 -0
- package/scripts/init-core.js +31 -0
- package/scripts/init-network.d.ts +5 -0
- package/scripts/init-network.d.ts.map +1 -0
- package/scripts/init-network.js +19 -0
- package/scripts/restart-vats.d.ts +5 -0
- package/scripts/restart-vats.d.ts.map +1 -0
- package/scripts/restart-vats.js +23 -0
- package/scripts/set-core-proposal-env.d.ts +3 -0
- package/scripts/set-core-proposal-env.d.ts.map +1 -0
- package/scripts/set-core-proposal-env.js +37 -0
- package/src/bridge.d.ts +3 -12
- package/src/bridge.d.ts.map +1 -1
- package/src/bridge.js +12 -24
- package/src/centralSupply.d.ts.map +1 -1
- package/src/centralSupply.js +3 -3
- package/src/core/basic-behaviors.d.ts +7 -7
- package/src/core/basic-behaviors.d.ts.map +1 -1
- package/src/core/basic-behaviors.js +50 -56
- package/src/core/boot-chain.d.ts +1 -1
- package/src/core/boot-chain.js +3 -3
- package/src/core/boot-sim.js +3 -3
- package/src/core/boot-solo.js +4 -4
- package/src/core/chain-behaviors.d.ts.map +1 -1
- package/src/core/chain-behaviors.js +23 -29
- package/src/core/client-behaviors.d.ts.map +1 -1
- package/src/core/client-behaviors.js +4 -5
- package/src/core/demoIssuers.d.ts +15 -17
- package/src/core/demoIssuers.d.ts.map +1 -1
- package/src/core/demoIssuers.js +36 -36
- package/src/core/lib-boot.d.ts +9 -11
- package/src/core/lib-boot.d.ts.map +1 -1
- package/src/core/lib-boot.js +22 -32
- package/src/core/promise-space.d.ts.map +1 -1
- package/src/core/promise-space.js +14 -14
- package/src/core/sim-behaviors.d.ts +1 -1
- package/src/core/sim-behaviors.d.ts.map +1 -1
- package/src/core/startWalletFactory.d.ts +62 -9
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/startWalletFactory.js +17 -26
- package/src/core/types.d.ts +820 -0
- package/src/core/types.d.ts.map +1 -0
- package/src/core/types.js +347 -0
- package/src/core/utils.d.ts +16 -18
- package/src/core/utils.d.ts.map +1 -1
- package/src/core/utils.js +30 -32
- package/src/crc.d.ts +6 -2
- package/src/crc.d.ts.map +1 -1
- package/src/crc.js +15 -5
- package/src/ibc.d.ts +5 -5
- package/src/ibc.d.ts.map +1 -1
- package/src/ibc.js +47 -27
- package/src/lib-board.d.ts +50 -49
- package/src/lib-board.d.ts.map +1 -1
- package/src/lib-board.js +39 -32
- package/src/mintHolder.d.ts +1 -3
- package/src/mintHolder.d.ts.map +1 -1
- package/src/mintHolder.js +8 -13
- package/src/nameHub.d.ts +2 -18
- package/src/nameHub.d.ts.map +1 -1
- package/src/nameHub.js +17 -26
- package/src/proposals/network-proposal.d.ts.map +1 -1
- package/src/proposals/network-proposal.js +12 -15
- package/src/proposals/restart-vats-proposal.d.ts +1 -1
- package/src/proposals/restart-vats-proposal.d.ts.map +1 -1
- package/src/proposals/restart-vats-proposal.js +5 -3
- package/src/provisionPool.d.ts +164 -0
- package/src/provisionPool.d.ts.map +1 -0
- package/src/provisionPool.js +113 -0
- package/src/provisionPoolKit.d.ts +408 -0
- package/src/provisionPoolKit.d.ts.map +1 -0
- package/src/provisionPoolKit.js +464 -0
- package/src/repl.js +1 -1
- package/src/tokens.d.ts +36 -0
- package/src/tokens.d.ts.map +1 -0
- package/src/tokens.js +37 -0
- package/src/types.d.ts +103 -84
- package/src/types.d.ts.map +1 -0
- package/src/types.js +97 -1
- package/src/vat-agoricNames.d.ts +1 -1
- package/src/vat-agoricNames.d.ts.map +1 -1
- package/src/vat-agoricNames.js +3 -2
- package/src/vat-bank.d.ts +58 -62
- package/src/vat-bank.d.ts.map +1 -1
- package/src/vat-bank.js +54 -62
- package/src/vat-board.d.ts +1 -1
- package/src/vat-bridge.d.ts +30 -2
- package/src/vat-bridge.d.ts.map +1 -1
- package/src/vat-mints.d.ts +12 -12
- package/src/vat-mints.d.ts.map +1 -1
- package/src/vat-mints.js +6 -6
- package/src/vat-network.d.ts +1 -1
- package/src/vat-network.d.ts.map +1 -1
- package/src/vat-network.js +1 -1
- package/src/vat-priceAuthority.d.ts +1 -1
- package/src/vat-provisioning.d.ts +1 -1
- package/src/vat-provisioning.d.ts.map +1 -1
- package/src/vat-provisioning.js +7 -11
- package/src/vat-sharing.d.ts +54 -0
- package/src/vat-sharing.d.ts.map +1 -0
- package/src/vat-sharing.js +14 -0
- package/src/vat-zoe.d.ts +0 -2
- package/src/vat-zoe.d.ts.map +1 -1
- package/src/vat-zoe.js +2 -8
- package/src/virtual-purse.d.ts +12 -37
- package/src/virtual-purse.d.ts.map +1 -1
- package/src/virtual-purse.js +36 -38
- package/src/walletFlags.d.ts +2 -2
- package/src/walletFlags.js +2 -1
- package/tools/authorityViz.d.ts +27 -0
- package/tools/authorityViz.d.ts.map +1 -0
- package/tools/authorityViz.js +272 -0
- package/tools/bank-utils.d.ts +1 -1
- package/tools/bank-utils.d.ts.map +1 -1
- package/tools/bank-utils.js +5 -12
- package/tools/board-utils.d.ts +19 -5
- package/tools/board-utils.d.ts.map +1 -1
- package/tools/board-utils.js +81 -29
- package/tools/boot-test-utils.d.ts +10 -9
- package/tools/boot-test-utils.d.ts.map +1 -1
- package/tools/boot-test-utils.js +16 -6
- package/tools/viz.mk +17 -0
- package/index.js +0 -11
- package/src/core/types-ambient.d.ts +0 -475
- package/src/core/types-ambient.js +0 -1
- package/src/proposals/zcf-proposal.d.ts +0 -30
- package/src/proposals/zcf-proposal.d.ts.map +0 -1
- package/src/proposals/zcf-proposal.js +0 -45
- package/tsconfig.build.json +0 -6
|
@@ -9,7 +9,7 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
|
|
|
9
9
|
vats: SwingsetVats;
|
|
10
10
|
vatPowers: {
|
|
11
11
|
[prop: string]: any;
|
|
12
|
-
D: DProxy
|
|
12
|
+
D: DProxy;
|
|
13
13
|
};
|
|
14
14
|
vatParameters: BootstrapVatParams;
|
|
15
15
|
runBehaviors: (manifest: unknown) => Promise<unknown>;
|
|
@@ -17,7 +17,7 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
|
|
|
17
17
|
} & ChainStorageVatParams & PromiseSpaceOf<{
|
|
18
18
|
economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
19
19
|
econCharterKit: {
|
|
20
|
-
creatorFacet: Awaited<ReturnType<typeof import("@agoric/inter-protocol/src/econCommitteeCharter.js")['
|
|
20
|
+
creatorFacet: Awaited<ReturnType<typeof import("@agoric/inter-protocol/src/econCommitteeCharter.js")['prepare']>>['creatorFacet'];
|
|
21
21
|
adminFacet: AdminFacet;
|
|
22
22
|
};
|
|
23
23
|
walletBridgeManager: import('../types.js').ScopedBridgeManager;
|
|
@@ -130,20 +130,73 @@ export function getManifestForWalletFactory({ restoreRef }: {
|
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
132
|
export type WalletFactoryStartResult = Awaited<ReturnType<typeof startFactoryInstance>>;
|
|
133
|
-
import { Stable } from
|
|
133
|
+
import { Stable } from "../tokens.js";
|
|
134
134
|
/**
|
|
135
135
|
* @param {ERef<ZoeService>} zoe
|
|
136
|
-
* @param {Installation<
|
|
137
|
-
* import('@agoric/smart-wallet/src/walletFactory').start
|
|
138
|
-
* >} inst
|
|
139
|
-
*
|
|
136
|
+
* @param {Installation<import('@agoric/smart-wallet/src/walletFactory').prepare>} inst
|
|
140
137
|
* @typedef {Awaited<ReturnType<typeof startFactoryInstance>>} WalletFactoryStartResult
|
|
141
138
|
*/
|
|
142
|
-
declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
139
|
+
declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<(zcf: ZCF<import("@agoric/smart-wallet/src/walletFactory").SmartWalletContractTerms>, privateArgs: {
|
|
143
140
|
storageNode: ERef<StorageNode>;
|
|
144
141
|
walletBridgeManager?: ERef<import("../types.js").ScopedBridgeManager> | undefined;
|
|
145
142
|
walletReviver?: ERef<import("@agoric/smart-wallet/src/walletFactory").WalletReviver> | undefined;
|
|
146
|
-
}, baggage:
|
|
143
|
+
}, baggage: MapStore<string, unknown>) => Promise<{
|
|
144
|
+
creatorFacet: {
|
|
145
|
+
provideSmartWallet(address: string, bank: ERef<import("../vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("../types.js").NameAdmin>): Promise<[wallet: {
|
|
146
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
|
|
147
|
+
getDepositFacet(): {
|
|
148
|
+
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
149
|
+
};
|
|
150
|
+
getOffersFacet(): {
|
|
151
|
+
executeOffer(offerSpec: import("@agoric/smart-wallet/src/offers.js").OfferSpec): Promise<void>;
|
|
152
|
+
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers.js").OfferId): Promise<void>;
|
|
153
|
+
};
|
|
154
|
+
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
155
|
+
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
156
|
+
getPublicTopics(): {
|
|
157
|
+
current: {
|
|
158
|
+
description: string;
|
|
159
|
+
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
160
|
+
storagePath: Promise<string>;
|
|
161
|
+
};
|
|
162
|
+
updates: {
|
|
163
|
+
description: string;
|
|
164
|
+
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
165
|
+
storagePath: Promise<string>;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}, isNew: boolean]>;
|
|
169
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
170
|
+
provideSmartWallet(address: string, bank: ERef<import("../vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("../types.js").NameAdmin>): Promise<[wallet: {
|
|
171
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
|
|
172
|
+
getDepositFacet(): {
|
|
173
|
+
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
174
|
+
};
|
|
175
|
+
getOffersFacet(): {
|
|
176
|
+
executeOffer(offerSpec: import("@agoric/smart-wallet/src/offers.js").OfferSpec): Promise<void>;
|
|
177
|
+
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers.js").OfferId): Promise<void>;
|
|
178
|
+
};
|
|
179
|
+
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
180
|
+
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
181
|
+
getPublicTopics(): {
|
|
182
|
+
current: {
|
|
183
|
+
description: string;
|
|
184
|
+
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
185
|
+
storagePath: Promise<string>;
|
|
186
|
+
};
|
|
187
|
+
updates: {
|
|
188
|
+
description: string;
|
|
189
|
+
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
190
|
+
storagePath: Promise<string>;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
}, isNew: boolean]>;
|
|
194
|
+
}>;
|
|
195
|
+
}>>): Promise<import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<(zcf: ZCF<import("@agoric/smart-wallet/src/walletFactory").SmartWalletContractTerms>, privateArgs: {
|
|
196
|
+
storageNode: ERef<StorageNode>;
|
|
197
|
+
walletBridgeManager?: ERef<import("../types.js").ScopedBridgeManager> | undefined;
|
|
198
|
+
walletReviver?: ERef<import("@agoric/smart-wallet/src/walletFactory").WalletReviver> | undefined;
|
|
199
|
+
}, baggage: MapStore<string, unknown>) => Promise<{
|
|
147
200
|
creatorFacet: {
|
|
148
201
|
provideSmartWallet(address: string, bank: ERef<import("../vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("../types.js").NameAdmin>): Promise<[wallet: {
|
|
149
202
|
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAyEO;;;;;;;;;;;;;;;;;mCAd6B,OAAO,qCAAqC,EAAE,+BAA+B;oBAC5F;QACpB,YAAkB,EAAE,QAAQ,WAAW,oEAA6D,SAAS,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;QACjI,UAAgB,EAAE,UAAU,CAAC;KACxB;yBACoB,OAAO,aAAa,EAAE,mBAAmB;kCAChC,OAAO,aAAa,EAAE,mBAAmB;;;;;8BAqL3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCE;AAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWN;uCAxRY,QAAQ,WAAW,2BAA2B,CAAC,CAAC;;AAH7D;;;;GAIG;AAEH,2CALW,KAAK,UAAU,CAAC,QAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIX"}
|
|
@@ -6,21 +6,18 @@ import { makeTracer, VBankAccount } from '@agoric/internal';
|
|
|
6
6
|
import { AmountMath } from '@agoric/ertp';
|
|
7
7
|
import { ParamTypes } from '@agoric/governance';
|
|
8
8
|
import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
|
|
9
|
-
import { Stable } from '@agoric/internal/src/tokens.js';
|
|
10
9
|
import {
|
|
11
10
|
makeHistoryReviver,
|
|
12
11
|
makeBoardRemote,
|
|
13
12
|
slotToBoardRemote,
|
|
14
13
|
} from '../../tools/board-utils.js';
|
|
14
|
+
import { Stable } from '../tokens.js';
|
|
15
15
|
|
|
16
16
|
const trace = makeTracer('StartWF');
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @param {ERef<ZoeService>} zoe
|
|
20
|
-
* @param {Installation<
|
|
21
|
-
* import('@agoric/smart-wallet/src/walletFactory').start
|
|
22
|
-
* >} inst
|
|
23
|
-
*
|
|
20
|
+
* @param {Installation<import('@agoric/smart-wallet/src/walletFactory').prepare>} inst
|
|
24
21
|
* @typedef {Awaited<ReturnType<typeof startFactoryInstance>>} WalletFactoryStartResult
|
|
25
22
|
*/
|
|
26
23
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -29,8 +26,8 @@ const startFactoryInstance = (zoe, inst) => E(zoe).startInstance(inst);
|
|
|
29
26
|
const StableUnit = BigInt(10 ** Stable.displayInfo.decimalPlaces);
|
|
30
27
|
|
|
31
28
|
/**
|
|
32
|
-
* Publish an arbitrary wallet state so that clients
|
|
33
|
-
* been provisioned.
|
|
29
|
+
* Publish an arbitrary wallet state so that clients
|
|
30
|
+
* can tell that a wallet has been provisioned.
|
|
34
31
|
*
|
|
35
32
|
* @param {string[]} oldAddresses
|
|
36
33
|
* @param {Marshaller} marshaller
|
|
@@ -56,28 +53,22 @@ const publishRevivableWalletState = async (
|
|
|
56
53
|
};
|
|
57
54
|
|
|
58
55
|
/**
|
|
59
|
-
* Register for PLEASE_PROVISION bridge messages and handle
|
|
60
|
-
* smart wallet from the wallet factory.
|
|
56
|
+
* Register for PLEASE_PROVISION bridge messages and handle
|
|
57
|
+
* them by providing a smart wallet from the wallet factory.
|
|
61
58
|
*
|
|
62
|
-
* @param {BootstrapPowers &
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* >['creatorFacet'];
|
|
72
|
-
* adminFacet: AdminFacet;
|
|
73
|
-
* };
|
|
74
|
-
* walletBridgeManager: import('../types.js').ScopedBridgeManager;
|
|
75
|
-
* provisionWalletBridgeManager: import('../types.js').ScopedBridgeManager;
|
|
76
|
-
* }>} powers
|
|
59
|
+
* @param {BootstrapPowers & ChainStorageVatParams & PromiseSpaceOf<{
|
|
60
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet
|
|
61
|
+
* econCharterKit: {
|
|
62
|
+
* creatorFacet: Awaited<ReturnType<import('@agoric/inter-protocol/src/econCommitteeCharter.js')['prepare']>>['creatorFacet'],
|
|
63
|
+
* adminFacet: AdminFacet,
|
|
64
|
+
* } ,
|
|
65
|
+
* walletBridgeManager: import('../types.js').ScopedBridgeManager;
|
|
66
|
+
* provisionWalletBridgeManager: import('../types.js').ScopedBridgeManager;
|
|
67
|
+
* }>} powers
|
|
77
68
|
* @param {{
|
|
78
69
|
* options?: {
|
|
79
|
-
* perAccountInitialValue?: bigint
|
|
80
|
-
* }
|
|
70
|
+
* perAccountInitialValue?: bigint,
|
|
71
|
+
* },
|
|
81
72
|
* }} [config]
|
|
82
73
|
*/
|
|
83
74
|
export const startWalletFactory = async (
|