@agoric/zoe 0.26.3-dev-da3b8a8.0 → 0.26.3-dev-afcbcd7.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/bundles/bundle-contractFacet-js-meta.json +185 -195
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +15 -12
- package/src/contractFacet/zcfZygote.js +3 -4
- package/src/contractSupport/ratio.js +1 -1
- package/src/contracts/callSpread/calculateShares.js +1 -1
- package/src/contracts/callSpread/fundedCallSpread.js +1 -1
- package/src/contracts/callSpread/payoffHandler.js +1 -1
- package/src/contracts/callSpread/pricedCallSpread.js +1 -1
- package/src/contracts/exported.js +1 -1
- package/src/contracts/loan/close.js +1 -1
- package/src/contracts/priceAggregator.js +1 -1
- package/src/zoeService/escrowStorage.js +1 -1
- package/src/zoeService/zoe.js +3 -4
- package/src/zoeService/zoeStorageManager.js +1 -1
- package/bundles/bundle-contractFacet.d.ts +0 -7
- package/bundles/bundle-contractFacet.d.ts.map +0 -1
- package/src/cleanProposal.d.ts +0 -9
- package/src/cleanProposal.d.ts.map +0 -1
- package/src/contractFacet/allocationMath.d.ts +0 -7
- package/src/contractFacet/allocationMath.d.ts.map +0 -1
- package/src/contractFacet/evalContractCode.d.ts +0 -2
- package/src/contractFacet/evalContractCode.d.ts.map +0 -1
- package/src/contractFacet/exit.d.ts +0 -2
- package/src/contractFacet/exit.d.ts.map +0 -1
- package/src/contractFacet/internal-types.d.ts +0 -8
- package/src/contractFacet/internal-types.d.ts.map +0 -1
- package/src/contractFacet/offerHandlerStorage.d.ts +0 -5
- package/src/contractFacet/offerHandlerStorage.d.ts.map +0 -1
- package/src/contractFacet/offerSafety.d.ts +0 -34
- package/src/contractFacet/offerSafety.d.ts.map +0 -1
- package/src/contractFacet/reallocate.d.ts +0 -3
- package/src/contractFacet/reallocate.d.ts.map +0 -1
- package/src/contractFacet/rightsConservation.d.ts +0 -12
- package/src/contractFacet/rightsConservation.d.ts.map +0 -1
- package/src/contractFacet/vatRoot.d.ts +0 -14
- package/src/contractFacet/vatRoot.d.ts.map +0 -1
- package/src/contractFacet/zcfMint.d.ts +0 -6
- package/src/contractFacet/zcfMint.d.ts.map +0 -1
- package/src/contractFacet/zcfSeat.d.ts +0 -3
- package/src/contractFacet/zcfSeat.d.ts.map +0 -1
- package/src/contractFacet/zcfZygote.d.ts +0 -3
- package/src/contractFacet/zcfZygote.d.ts.map +0 -1
- package/src/contractSupport/atomicTransfer.d.ts +0 -6
- package/src/contractSupport/atomicTransfer.d.ts.map +0 -1
- package/src/contractSupport/bondingCurves.d.ts +0 -6
- package/src/contractSupport/bondingCurves.d.ts.map +0 -1
- package/src/contractSupport/durability.d.ts +0 -5
- package/src/contractSupport/durability.d.ts.map +0 -1
- package/src/contractSupport/index.d.ts +0 -13
- package/src/contractSupport/index.d.ts.map +0 -1
- package/src/contractSupport/priceAuthority.d.ts +0 -37
- package/src/contractSupport/priceAuthority.d.ts.map +0 -1
- package/src/contractSupport/priceAuthorityInitial.d.ts +0 -3
- package/src/contractSupport/priceAuthorityInitial.d.ts.map +0 -1
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts +0 -2
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +0 -1
- package/src/contractSupport/priceAuthorityTransform.d.ts +0 -15
- package/src/contractSupport/priceAuthorityTransform.d.ts.map +0 -1
- package/src/contractSupport/priceQuote.d.ts +0 -7
- package/src/contractSupport/priceQuote.d.ts.map +0 -1
- package/src/contractSupport/ratio.d.ts +0 -28
- package/src/contractSupport/ratio.d.ts.map +0 -1
- package/src/contractSupport/recorder.d.ts +0 -229
- package/src/contractSupport/recorder.d.ts.map +0 -1
- package/src/contractSupport/safeMath.d.ts +0 -11
- package/src/contractSupport/safeMath.d.ts.map +0 -1
- package/src/contractSupport/stateMachine.d.ts +0 -6
- package/src/contractSupport/stateMachine.d.ts.map +0 -1
- package/src/contractSupport/statistics.d.ts +0 -7
- package/src/contractSupport/statistics.d.ts.map +0 -1
- package/src/contractSupport/topics.d.ts +0 -22
- package/src/contractSupport/topics.d.ts.map +0 -1
- package/src/contractSupport/types.d.ts +0 -63
- package/src/contractSupport/types.d.ts.map +0 -1
- package/src/contractSupport/zoeHelpers.d.ts +0 -30
- package/src/contractSupport/zoeHelpers.d.ts.map +0 -1
- package/src/contracts/atomicSwap.d.ts +0 -16
- package/src/contracts/atomicSwap.d.ts.map +0 -1
- package/src/contracts/auction/assertBidSeat.d.ts +0 -2
- package/src/contracts/auction/assertBidSeat.d.ts.map +0 -1
- package/src/contracts/auction/firstPriceLogic.d.ts +0 -2
- package/src/contracts/auction/firstPriceLogic.d.ts.map +0 -1
- package/src/contracts/auction/index.d.ts +0 -56
- package/src/contracts/auction/index.d.ts.map +0 -1
- package/src/contracts/auction/secondPriceLogic.d.ts +0 -2
- package/src/contracts/auction/secondPriceLogic.d.ts.map +0 -1
- package/src/contracts/automaticRefund.d.ts +0 -25
- package/src/contracts/automaticRefund.d.ts.map +0 -1
- package/src/contracts/autoswap.d.ts +0 -43
- package/src/contracts/autoswap.d.ts.map +0 -1
- package/src/contracts/barterExchange.d.ts +0 -22
- package/src/contracts/barterExchange.d.ts.map +0 -1
- package/src/contracts/callSpread/calculateShares.d.ts +0 -2
- package/src/contracts/callSpread/calculateShares.d.ts.map +0 -1
- package/src/contracts/callSpread/fundedCallSpread.d.ts +0 -60
- package/src/contracts/callSpread/fundedCallSpread.d.ts.map +0 -1
- package/src/contracts/callSpread/payoffHandler.d.ts +0 -11
- package/src/contracts/callSpread/payoffHandler.d.ts.map +0 -1
- package/src/contracts/callSpread/percent.d.ts +0 -3
- package/src/contracts/callSpread/percent.d.ts.map +0 -1
- package/src/contracts/callSpread/position.d.ts +0 -10
- package/src/contracts/callSpread/position.d.ts.map +0 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts +0 -66
- package/src/contracts/callSpread/pricedCallSpread.d.ts.map +0 -1
- package/src/contracts/callSpread/types.d.ts +0 -30
- package/src/contracts/callSpread/types.d.ts.map +0 -1
- package/src/contracts/coveredCall-durable.d.ts +0 -23
- package/src/contracts/coveredCall-durable.d.ts.map +0 -1
- package/src/contracts/coveredCall.d.ts +0 -64
- package/src/contracts/coveredCall.d.ts.map +0 -1
- package/src/contracts/exported.d.ts +0 -2
- package/src/contracts/exported.d.ts.map +0 -1
- package/src/contracts/loan/addCollateral.d.ts +0 -3
- package/src/contracts/loan/addCollateral.d.ts.map +0 -1
- package/src/contracts/loan/borrow.d.ts +0 -3
- package/src/contracts/loan/borrow.d.ts.map +0 -1
- package/src/contracts/loan/close.d.ts +0 -3
- package/src/contracts/loan/close.d.ts.map +0 -1
- package/src/contracts/loan/index.d.ts +0 -64
- package/src/contracts/loan/index.d.ts.map +0 -1
- package/src/contracts/loan/lend.d.ts +0 -3
- package/src/contracts/loan/lend.d.ts.map +0 -1
- package/src/contracts/loan/liquidate.d.ts +0 -3
- package/src/contracts/loan/liquidate.d.ts.map +0 -1
- package/src/contracts/loan/scheduleLiquidation.d.ts +0 -3
- package/src/contracts/loan/scheduleLiquidation.d.ts.map +0 -1
- package/src/contracts/loan/types.d.ts +0 -161
- package/src/contracts/loan/types.d.ts.map +0 -1
- package/src/contracts/loan/updateDebt.d.ts +0 -11
- package/src/contracts/loan/updateDebt.d.ts.map +0 -1
- package/src/contracts/mintAndSellNFT.d.ts +0 -28
- package/src/contracts/mintAndSellNFT.d.ts.map +0 -1
- package/src/contracts/mintPayments.d.ts +0 -30
- package/src/contracts/mintPayments.d.ts.map +0 -1
- package/src/contracts/oracle.d.ts +0 -26
- package/src/contracts/oracle.d.ts.map +0 -1
- package/src/contracts/otcDesk.d.ts +0 -79
- package/src/contracts/otcDesk.d.ts.map +0 -1
- package/src/contracts/priceAggregator.d.ts +0 -91
- package/src/contracts/priceAggregator.d.ts.map +0 -1
- package/src/contracts/priceAggregatorTypes.d.ts +0 -77
- package/src/contracts/priceAggregatorTypes.d.ts.map +0 -1
- package/src/contracts/scaledPriceAuthority.d.ts +0 -23
- package/src/contracts/scaledPriceAuthority.d.ts.map +0 -1
- package/src/contracts/sellItems.d.ts +0 -30
- package/src/contracts/sellItems.d.ts.map +0 -1
- package/src/contracts/simpleExchange.d.ts +0 -37
- package/src/contracts/simpleExchange.d.ts.map +0 -1
- package/src/contracts/types.d.ts +0 -80
- package/src/contracts/types.d.ts.map +0 -1
- package/src/handleWarning.d.ts +0 -3
- package/src/handleWarning.d.ts.map +0 -1
- package/src/instanceRecordStorage.d.ts +0 -2
- package/src/instanceRecordStorage.d.ts.map +0 -1
- package/src/internal-types.d.ts +0 -177
- package/src/internal-types.d.ts.map +0 -1
- package/src/issuerRecord.d.ts +0 -3
- package/src/issuerRecord.d.ts.map +0 -1
- package/src/issuerStorage.d.ts +0 -14
- package/src/issuerStorage.d.ts.map +0 -1
- package/src/makeHandle.d.ts +0 -4
- package/src/makeHandle.d.ts.map +0 -1
- package/src/objArrayConversion.d.ts +0 -5
- package/src/objArrayConversion.d.ts.map +0 -1
- package/src/typeGuards.d.ts +0 -168
- package/src/typeGuards.d.ts.map +0 -1
- package/src/types.d.ts +0 -45
- package/src/types.d.ts.map +0 -1
- package/src/zoeService/createZCFVat.d.ts +0 -2
- package/src/zoeService/createZCFVat.d.ts.map +0 -1
- package/src/zoeService/escrowStorage.d.ts +0 -7
- package/src/zoeService/escrowStorage.d.ts.map +0 -1
- package/src/zoeService/feeMint.d.ts +0 -30
- package/src/zoeService/feeMint.d.ts.map +0 -1
- package/src/zoeService/installationStorage.d.ts +0 -35
- package/src/zoeService/installationStorage.d.ts.map +0 -1
- package/src/zoeService/instanceAdminStorage.d.ts +0 -123
- package/src/zoeService/instanceAdminStorage.d.ts.map +0 -1
- package/src/zoeService/internal-types.d.ts +0 -90
- package/src/zoeService/internal-types.d.ts.map +0 -1
- package/src/zoeService/invitationQueries.d.ts +0 -6
- package/src/zoeService/invitationQueries.d.ts.map +0 -1
- package/src/zoeService/makeInvitation.d.ts +0 -5
- package/src/zoeService/makeInvitation.d.ts.map +0 -1
- package/src/zoeService/offer/burnInvitation.d.ts +0 -5
- package/src/zoeService/offer/burnInvitation.d.ts.map +0 -1
- package/src/zoeService/offer/offer.d.ts +0 -2
- package/src/zoeService/offer/offer.d.ts.map +0 -1
- package/src/zoeService/startInstance.d.ts +0 -4
- package/src/zoeService/startInstance.d.ts.map +0 -1
- package/src/zoeService/types.d.ts +0 -226
- package/src/zoeService/types.d.ts.map +0 -1
- package/src/zoeService/zoe.d.ts +0 -61
- package/src/zoeService/zoe.d.ts.map +0 -1
- package/src/zoeService/zoeSeat.d.ts +0 -56
- package/src/zoeService/zoeSeat.d.ts.map +0 -1
- package/src/zoeService/zoeStorageManager.d.ts +0 -75
- package/src/zoeService/zoeStorageManager.d.ts.map +0 -1
- package/tools/fakePriceAuthority.d.ts +0 -30
- package/tools/fakePriceAuthority.d.ts.map +0 -1
- package/tools/fakeVatAdmin.d.ts +0 -103
- package/tools/fakeVatAdmin.d.ts.map +0 -1
- package/tools/internal-types.d.ts +0 -12
- package/tools/internal-types.d.ts.map +0 -1
- package/tools/manualPriceAuthority.d.ts +0 -20
- package/tools/manualPriceAuthority.d.ts.map +0 -1
- package/tools/manualTimer.d.ts +0 -44
- package/tools/manualTimer.d.ts.map +0 -1
- package/tools/prepare-test-env-ava.d.ts +0 -2
- package/tools/prepare-test-env-ava.d.ts.map +0 -1
- package/tools/prepare-test-env.d.ts +0 -2
- package/tools/prepare-test-env.d.ts.map +0 -1
- package/tools/priceAuthorityRegistry.d.ts +0 -20
- package/tools/priceAuthorityRegistry.d.ts.map +0 -1
- package/tools/scriptedOracle.d.ts +0 -27
- package/tools/scriptedOracle.d.ts.map +0 -1
- package/tools/scriptedPriceAuthority.d.ts +0 -2
- package/tools/scriptedPriceAuthority.d.ts.map +0 -1
- package/tools/setup-zoe.d.ts +0 -35
- package/tools/setup-zoe.d.ts.map +0 -1
- package/tools/types-ambient.d.ts +0 -142
- package/tools/types-ambient.d.ts.map +0 -1
- package/tools/types.d.ts +0 -142
- package/tools/types.d.ts.map +0 -1
package/src/internal-types.d.ts
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
type SeatData = {
|
|
2
|
-
proposal: ProposalRecord;
|
|
3
|
-
initialAllocation: Allocation;
|
|
4
|
-
seatHandle: SeatHandle;
|
|
5
|
-
offerArgs?: object;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Given an allocation, withdraw payments to create a payout
|
|
9
|
-
*/
|
|
10
|
-
type WithdrawPayments = (allocation: Allocation) => PaymentPKeywordRecord;
|
|
11
|
-
type WithdrawFacet = {
|
|
12
|
-
withdrawPayments: (allocation: Allocation) => PaymentPKeywordRecord;
|
|
13
|
-
};
|
|
14
|
-
type InstanceAdminHelper = {
|
|
15
|
-
exitZoeSeatAdmin: (zoeSeatAdmin: ZoeSeatAdmin) => void;
|
|
16
|
-
hasExited: (zoeSeatAdmin: ZoeSeatAdmin) => boolean;
|
|
17
|
-
};
|
|
18
|
-
type ZoeSeatAdminKit = {
|
|
19
|
-
userSeat: UserSeat;
|
|
20
|
-
zoeSeatAdmin: ZoeSeatAdmin;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Make the Zoe seat admin, user seat and a notifier
|
|
24
|
-
*/
|
|
25
|
-
type MakeZoeSeatAdminKit = (initialAllocation: Allocation, instanceAdminHelper: InstanceAdminHelper, proposal: ProposalRecord, withdrawFacet: WithdrawFacet, exitObj: ERef<ExitObj>, offerResult?: ERef<unknown>, baggage: MapStore<string, any>) => ZoeSeatAdminKit;
|
|
26
|
-
type ZoeSeatAdminExit = (completion?: Completion) => void;
|
|
27
|
-
type ZoeSeatAdmin = {
|
|
28
|
-
replaceAllocation: (allocation: Allocation) => void;
|
|
29
|
-
exit: ZoeSeatAdminExit;
|
|
30
|
-
/**
|
|
31
|
-
* called with the reason
|
|
32
|
-
* for calling fail on this seat, where reason is normally an instanceof Error.
|
|
33
|
-
*/
|
|
34
|
-
fail: ShutdownWithFailure;
|
|
35
|
-
getExitSubscriber: () => Subscriber<AmountKeywordRecord>;
|
|
36
|
-
};
|
|
37
|
-
type HandleOfferResult = {
|
|
38
|
-
offerResultPromise: Promise<unknown>;
|
|
39
|
-
exitObj: ExitObj;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* The seatHandle may be created in either the Zoe or ZCF vat,
|
|
43
|
-
* depending on whether the seat comes from a normal offer or a
|
|
44
|
-
* request by the contract for an "empty" seat.
|
|
45
|
-
*/
|
|
46
|
-
type InstanceAdmin = {
|
|
47
|
-
assertAcceptingOffers: () => void;
|
|
48
|
-
makeUserSeat: (invitationHandle: InvitationHandle, initialAllocation: Allocation, proposal: ProposalRecord, offerArgs?: object) => UserSeat;
|
|
49
|
-
makeNoEscrowSeat: MakeNoEscrowSeat;
|
|
50
|
-
getInstance: () => Instance;
|
|
51
|
-
getPublicFacet: () => object;
|
|
52
|
-
getIssuers: () => IssuerKeywordRecord;
|
|
53
|
-
getBrands: () => BrandKeywordRecord;
|
|
54
|
-
getTerms: () => object;
|
|
55
|
-
getOfferFilter: () => string[];
|
|
56
|
-
getInstallation: () => Installation;
|
|
57
|
-
exitAllSeats: (completion: Completion) => void;
|
|
58
|
-
failAllSeats: ShutdownWithFailure;
|
|
59
|
-
stopAcceptingOffers: () => void;
|
|
60
|
-
isBlocked: (string: string) => boolean;
|
|
61
|
-
initDelayedState: (handleOfferObj: HandleOfferObj, publicFacet: unknown) => void;
|
|
62
|
-
setOfferFilter: (strings: string[]) => void;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* The seatHandle may be created in either the Zoe or ZCF vat,
|
|
66
|
-
* depending on whether the seat comes from a normal offer or a
|
|
67
|
-
* request by the contract for an "empty" seat.
|
|
68
|
-
*/
|
|
69
|
-
type HandleOfferObj = {
|
|
70
|
-
handleOffer: (invitationHandle: InvitationHandle, seatData: SeatData) => HandleOfferResult;
|
|
71
|
-
};
|
|
72
|
-
type ZoeInstanceAdminMakeInvitation = (invitationHandle: InvitationHandle, description: string, customDetails?: Record<string, any> | undefined, proposalShape?: Pattern) => Invitation;
|
|
73
|
-
type ZoeInstanceAdmin = {
|
|
74
|
-
makeInvitation: ZoeInstanceAdminMakeInvitation;
|
|
75
|
-
saveIssuer: (issuerP: ERef<Issuer>, keyword: Keyword) => Promise<IssuerRecord>;
|
|
76
|
-
makeZoeMint: MakeZoeMint;
|
|
77
|
-
registerFeeMint: RegisterFeeMint;
|
|
78
|
-
makeNoEscrowSeat: MakeNoEscrowSeat;
|
|
79
|
-
replaceAllocations: ReplaceAllocations;
|
|
80
|
-
exitAllSeats: (completion: Completion) => void;
|
|
81
|
-
failAllSeats: ShutdownWithFailure;
|
|
82
|
-
exitSeat: (seatHandle: SeatHandle, completion: Completion) => void;
|
|
83
|
-
failSeat: (seatHandle: SeatHandle, reason: Error) => void;
|
|
84
|
-
stopAcceptingOffers: () => void;
|
|
85
|
-
setOfferFilter: (strings: Array<string>) => void;
|
|
86
|
-
getOfferFilter: () => Array<string>;
|
|
87
|
-
getExitSubscriber: (seatHandle: SeatHandle) => Subscriber<AmountKeywordRecord>;
|
|
88
|
-
};
|
|
89
|
-
type RegisterFeeMint = (keyword: Keyword, allegedFeeMintAccess: FeeMintAccess) => ZoeMint<'nat'>;
|
|
90
|
-
type WrapIssuerKitWithZoeMint = (keyword: Keyword, localIssuerKit: IssuerKit) => any;
|
|
91
|
-
type MakeZoeMint = (keyword: Keyword, assetKind?: AssetKind | undefined, displayInfo?: AdditionalDisplayInfo | undefined, options?: Partial<{
|
|
92
|
-
elementShape: any;
|
|
93
|
-
}> | undefined) => ZoeMint;
|
|
94
|
-
type MakeNoEscrowSeat = (initialAllocation: Allocation, proposal: ProposalRecord, exitObj: ExitObj, seatHandle: SeatHandle) => UserSeat;
|
|
95
|
-
type ReplaceAllocations = (seatHandleAllocations: SeatHandleAllocation[]) => any;
|
|
96
|
-
type SeatHandleAllocation = {
|
|
97
|
-
seatHandle: SeatHandle;
|
|
98
|
-
allocation: Allocation;
|
|
99
|
-
};
|
|
100
|
-
type ZoeMint<K extends AssetKind = AssetKind> = {
|
|
101
|
-
getIssuerRecord: () => IssuerRecord<K>;
|
|
102
|
-
mintAndEscrow: (totalToMint: Amount<K>) => void;
|
|
103
|
-
/**
|
|
104
|
-
* Note that the burning is asynchronous, and so may not have happened by
|
|
105
|
-
* the time withdrawAndBurn returns. We rely on our other bookkeeping so that
|
|
106
|
-
* these assets are assumed burned elsewhere, so no one will try to access
|
|
107
|
-
* them even before they are actually burned.
|
|
108
|
-
*/
|
|
109
|
-
withdrawAndBurn: (totalToBurn: Amount<K>) => void;
|
|
110
|
-
};
|
|
111
|
-
type ZCFRoot = {
|
|
112
|
-
startZcf: StartZcf;
|
|
113
|
-
restartContract: RestartContract;
|
|
114
|
-
};
|
|
115
|
-
type ExecuteContractResult = {
|
|
116
|
-
creatorFacet: object;
|
|
117
|
-
creatorInvitation?: Promise<Invitation<R, A>> | undefined;
|
|
118
|
-
publicFacet: object;
|
|
119
|
-
handleOfferObj: HandleOfferObj;
|
|
120
|
-
};
|
|
121
|
-
type StartZcf = (zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, instanceRecordFromZoe: InstanceRecord, issuerStorageFromZoe: IssuerRecords, privateArgs?: object) => Promise<ExecuteContractResult>;
|
|
122
|
-
type RestartContract = (privateArgs?: object) => Promise<ExecuteUpgradeableContractResult>;
|
|
123
|
-
type MakeExitObj = (proposal: ProposalRecord, zoeSeatAdmin: ZCFSeat) => ExitObj;
|
|
124
|
-
type ExitObj = {
|
|
125
|
-
exit: () => void;
|
|
126
|
-
};
|
|
127
|
-
type SeatHandle = Handle<'Seat'>;
|
|
128
|
-
/**
|
|
129
|
-
* Get the assetKind for a brand known by Zoe
|
|
130
|
-
*
|
|
131
|
-
* To be deleted when brands have a property for assetKind
|
|
132
|
-
*/
|
|
133
|
-
type GetAssetKindByBrand = (brand: Brand) => AssetKind;
|
|
134
|
-
type IssuerRecords = Array<IssuerRecord>;
|
|
135
|
-
type MakeZCFSeat = (seatData: SeatData) => ZCFSeat;
|
|
136
|
-
/**
|
|
137
|
-
* Drops all of the references in the seat-related weakStores by
|
|
138
|
-
* dropping the stores
|
|
139
|
-
*/
|
|
140
|
-
type DropAllReferences = () => void;
|
|
141
|
-
type ZcfSeatManager = {
|
|
142
|
-
makeZCFSeat: MakeZCFSeat;
|
|
143
|
-
reallocate: Reallocate;
|
|
144
|
-
dropAllReferences: DropAllReferences;
|
|
145
|
-
};
|
|
146
|
-
type ZcfMintReallocator = {
|
|
147
|
-
reallocate: (zcfSeat: ZCFSeat, newAllocation: Allocation) => void;
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* The SeatManager holds the active zcfSeats and can reallocate and
|
|
151
|
-
* make new zcfSeats.
|
|
152
|
-
*/
|
|
153
|
-
type CreateSeatManager = (zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, getAssetKindByBrand: GetAssetKindByBrand, shutdownWithFailure: ShutdownWithFailure, zcfBaggage: MapStore<string, any>) => {
|
|
154
|
-
seatManager: ZcfSeatManager;
|
|
155
|
-
zcfMintReallocator: ZcfMintReallocator;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Add an issuer and its keyword to the instanceRecord for the
|
|
159
|
-
* contract instance
|
|
160
|
-
*/
|
|
161
|
-
type InstanceStateAddIssuer = (keyword: Keyword, issuerRecord: IssuerRecord) => void;
|
|
162
|
-
type InstanceStateGetTerms = () => AnyTerms;
|
|
163
|
-
type InstanceStateGetInstallation = () => Installation;
|
|
164
|
-
type InstanceRecordGetIssuers = () => IssuerKeywordRecord;
|
|
165
|
-
type InstanceRecordGetBrands = () => BrandKeywordRecord;
|
|
166
|
-
type InstanceState = {
|
|
167
|
-
addIssuer: InstanceStateAddIssuer;
|
|
168
|
-
getInstanceRecord: GetInstanceRecord;
|
|
169
|
-
getTerms: InstanceStateGetTerms;
|
|
170
|
-
getInstallation: InstanceStateGetInstallation;
|
|
171
|
-
getIssuers: InstanceRecordGetIssuers;
|
|
172
|
-
getBrands: InstanceRecordGetBrands;
|
|
173
|
-
assertUniqueKeyword: (keyword: Keyword) => void;
|
|
174
|
-
};
|
|
175
|
-
type GetInstanceRecord = () => InstanceRecord;
|
|
176
|
-
type IssuerStorageGetIssuerRecords = (issuers: Issuer[]) => IssuerRecords;
|
|
177
|
-
//# sourceMappingURL=internal-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":"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"}
|
package/src/issuerRecord.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export function makeIssuerRecord<K extends AssetKind>(brand: Brand<K>, issuer: Issuer<K>, displayInfo: DisplayInfo<K>): IssuerRecord<K>;
|
|
2
|
-
export function assertFullIssuerRecord(issuerRecord: IssuerRecord): asserts issuerRecord is Required<IssuerRecord<AssetKind>>;
|
|
3
|
-
//# sourceMappingURL=issuerRecord.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"AAaO,wIAMH;AAMG,qDAHI,YAAY,6DAOtB"}
|
package/src/issuerStorage.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function provideIssuerStorage(zcfBaggage: MapStore<string, any>): {
|
|
2
|
-
storeIssuerKeywordRecord: (uncleanIssuerKeywordRecord: IssuerKeywordRecord) => Promise<{
|
|
3
|
-
issuers: IssuerKeywordRecord;
|
|
4
|
-
brands: BrandKeywordRecord;
|
|
5
|
-
}>;
|
|
6
|
-
storeIssuer: (issuerP: ERef<Issuer>) => Promise<IssuerRecord>;
|
|
7
|
-
storeIssuerRecord: (issuerRecord: IssuerRecord) => IssuerRecord;
|
|
8
|
-
getAssetKindByBrand: GetAssetKindByBrand;
|
|
9
|
-
getBrandForIssuer: <K extends AssetKind>(issuer: Issuer<K>) => Brand<K>;
|
|
10
|
-
getIssuerForBrand: <K_1 extends AssetKind>(brand: Brand<K_1>) => Issuer<K_1>;
|
|
11
|
-
getIssuerRecords: IssuerStorageGetIssuerRecords;
|
|
12
|
-
instantiate: (issuerRecords?: any[]) => void;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=issuerStorage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AAgBO;2DA2HM,mBAAmB;iBACE,mBAAmB;gBACpB,kBAAkB;;2BAxDtC,KAAK,MAAM,CAAC,KACV,QAAQ,YAAY,CAAC;sCAzBvB,YAAY,KACV,YAAY;;;;;;EAyJ1B"}
|
package/src/makeHandle.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export function defineDurableHandle<H extends string>(baggage: MapStore<string, any>, handleType: H): H extends "Instance" ? () => Instance : () => Handle<H>;
|
|
2
|
-
export function makeHandle<H extends string>(handleType: H): H extends "Instance" ? Instance : Handle<H>;
|
|
3
|
-
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
4
|
-
//# sourceMappingURL=makeHandle.d.ts.map
|
package/src/makeHandle.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeHandle.d.ts","sourceRoot":"","sources":["makeHandle.js"],"names":[],"mappings":"AAkBO,mIAFmC,QAAQ,mBAajD;AAUM,yGAKN;sBAlCa,OAAO,kBAAkB,EAAE,OAAO"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export function arrayToObj<T, U extends PropertyName>(array: T[], keys: U[]): Record<U, T>;
|
|
2
|
-
export function assertSubset(whole: string[], part: string[]): void;
|
|
3
|
-
export type Primitive = bigint | boolean | null | number | string | symbol | undefined;
|
|
4
|
-
export type PropertyName = string | number | symbol;
|
|
5
|
-
//# sourceMappingURL=objArrayConversion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"objArrayConversion.d.ts","sourceRoot":"","sources":["objArrayConversion.js"],"names":[],"mappings":"AAaO,2FAON;AAQM,oCAHI,MAAM,EAAE,QACR,MAAM,EAAE,QAQlB;wBA/BY,MAAM,GAAC,OAAO,GAAC,IAAI,GAAC,MAAM,GAAC,MAAM,GAAC,MAAM,GAAC,SAAS;2BAClD,MAAM,GAAC,MAAM,GAAC,MAAM"}
|
package/src/typeGuards.d.ts
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
export const KeywordShape: import("@endo/patterns").Matcher;
|
|
2
|
-
export const InvitationHandleShape: import("@endo/patterns").Matcher;
|
|
3
|
-
export const InvitationShape: import("@endo/patterns").Matcher;
|
|
4
|
-
export const InstanceHandleShape: import("@endo/patterns").Matcher;
|
|
5
|
-
export const InstallationShape: import("@endo/patterns").Matcher;
|
|
6
|
-
export const SeatShape: import("@endo/patterns").Matcher;
|
|
7
|
-
export const AmountKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
8
|
-
export const AmountPatternKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
9
|
-
export const PaymentPKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
10
|
-
export const IssuerKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
11
|
-
export const IssuerPKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
12
|
-
export const BrandKeywordRecordShape: import("@endo/patterns").Matcher;
|
|
13
|
-
export const IssuerRecordShape: import("@endo/patterns").Matcher;
|
|
14
|
-
export namespace TermsShape {
|
|
15
|
-
export { IssuerKeywordRecordShape as issuers };
|
|
16
|
-
export { BrandKeywordRecordShape as brands };
|
|
17
|
-
}
|
|
18
|
-
export namespace InstanceRecordShape {
|
|
19
|
-
export { InstallationShape as installation };
|
|
20
|
-
export { InstanceHandleShape as instance };
|
|
21
|
-
export let terms: import("@endo/patterns").Matcher;
|
|
22
|
-
}
|
|
23
|
-
export const HandleI: import("@endo/patterns").InterfaceGuard<{}>;
|
|
24
|
-
export function makeHandleShape(name: any): import("@endo/patterns").Matcher;
|
|
25
|
-
export const TimerShape: import("@endo/patterns").Matcher;
|
|
26
|
-
export namespace FullProposalShape {
|
|
27
|
-
export { AmountPatternKeywordRecordShape as want };
|
|
28
|
-
export { AmountKeywordRecordShape as give };
|
|
29
|
-
export let exit: import("@endo/patterns").Matcher;
|
|
30
|
-
}
|
|
31
|
-
/** @see {Proposal} type */
|
|
32
|
-
export const ProposalShape: import("@endo/patterns").Matcher;
|
|
33
|
-
export const EmptyProposalShape: import("@endo/patterns").Matcher;
|
|
34
|
-
export function isOnDemandExitRule(exit: any): boolean;
|
|
35
|
-
export function isWaivedExitRule(exit: ExitRule): exit is WaivedExitRule;
|
|
36
|
-
export function isAfterDeadlineExitRule(exit: ExitRule): exit is AfterDeadlineExitRule;
|
|
37
|
-
export const InvitationElementShape: import("@endo/patterns").Matcher;
|
|
38
|
-
export const OfferHandlerI: import("@endo/patterns").InterfaceGuard<{
|
|
39
|
-
handle: import("@endo/patterns").MethodGuard;
|
|
40
|
-
}>;
|
|
41
|
-
export const SeatHandleAllocationsShape: import("@endo/patterns").Matcher;
|
|
42
|
-
export const ZoeMintShape: import("@endo/patterns").Matcher;
|
|
43
|
-
export const ZoeMintI: import("@endo/patterns").InterfaceGuard<{
|
|
44
|
-
getIssuerRecord: import("@endo/patterns").MethodGuard;
|
|
45
|
-
mintAndEscrow: import("@endo/patterns").MethodGuard;
|
|
46
|
-
withdrawAndBurn: import("@endo/patterns").MethodGuard;
|
|
47
|
-
}>;
|
|
48
|
-
export const ZcfMintI: import("@endo/patterns").InterfaceGuard<{
|
|
49
|
-
getIssuerRecord: import("@endo/patterns").MethodGuard;
|
|
50
|
-
mintGains: import("@endo/patterns").MethodGuard;
|
|
51
|
-
burnLosses: import("@endo/patterns").MethodGuard;
|
|
52
|
-
}>;
|
|
53
|
-
export const FeeMintAccessShape: import("@endo/patterns").Matcher;
|
|
54
|
-
export const ExitObjectI: import("@endo/patterns").InterfaceGuard<{
|
|
55
|
-
exit: import("@endo/patterns").MethodGuard;
|
|
56
|
-
}>;
|
|
57
|
-
export const ExitObjectShape: import("@endo/patterns").Matcher;
|
|
58
|
-
export const InstanceAdminShape: import("@endo/patterns").Matcher;
|
|
59
|
-
export const InstanceAdminI: import("@endo/patterns").InterfaceGuard<{
|
|
60
|
-
makeInvitation: import("@endo/patterns").MethodGuard;
|
|
61
|
-
saveIssuer: import("@endo/patterns").MethodGuard;
|
|
62
|
-
makeNoEscrowSeat: import("@endo/patterns").MethodGuard;
|
|
63
|
-
exitAllSeats: import("@endo/patterns").MethodGuard;
|
|
64
|
-
failAllSeats: import("@endo/patterns").MethodGuard;
|
|
65
|
-
exitSeat: import("@endo/patterns").MethodGuard;
|
|
66
|
-
failSeat: import("@endo/patterns").MethodGuard;
|
|
67
|
-
makeZoeMint: import("@endo/patterns").MethodGuard;
|
|
68
|
-
registerFeeMint: import("@endo/patterns").MethodGuard;
|
|
69
|
-
replaceAllocations: import("@endo/patterns").MethodGuard;
|
|
70
|
-
stopAcceptingOffers: import("@endo/patterns").MethodGuard;
|
|
71
|
-
setOfferFilter: import("@endo/patterns").MethodGuard;
|
|
72
|
-
getOfferFilter: import("@endo/patterns").MethodGuard;
|
|
73
|
-
getExitSubscriber: import("@endo/patterns").MethodGuard;
|
|
74
|
-
isBlocked: import("@endo/patterns").MethodGuard;
|
|
75
|
-
}>;
|
|
76
|
-
export namespace InstanceStorageManagerIKit {
|
|
77
|
-
let instanceStorageManager: import("@endo/patterns").InterfaceGuard<{
|
|
78
|
-
getTerms: import("@endo/patterns").MethodGuard;
|
|
79
|
-
getIssuers: import("@endo/patterns").MethodGuard;
|
|
80
|
-
getBrands: import("@endo/patterns").MethodGuard;
|
|
81
|
-
getInstallation: import("@endo/patterns").MethodGuard;
|
|
82
|
-
getInvitationIssuer: import("@endo/patterns").MethodGuard;
|
|
83
|
-
saveIssuer: import("@endo/patterns").MethodGuard;
|
|
84
|
-
makeZoeMint: import("@endo/patterns").MethodGuard;
|
|
85
|
-
registerFeeMint: import("@endo/patterns").MethodGuard;
|
|
86
|
-
getInstanceRecord: import("@endo/patterns").MethodGuard;
|
|
87
|
-
getIssuerRecords: import("@endo/patterns").MethodGuard;
|
|
88
|
-
getWithdrawFacet: import("@endo/patterns").MethodGuard;
|
|
89
|
-
initInstanceAdmin: import("@endo/patterns").MethodGuard;
|
|
90
|
-
deleteInstanceAdmin: import("@endo/patterns").MethodGuard;
|
|
91
|
-
makeInvitation: import("@endo/patterns").MethodGuard;
|
|
92
|
-
getRoot: import("@endo/patterns").MethodGuard;
|
|
93
|
-
getAdminNode: import("@endo/patterns").MethodGuard;
|
|
94
|
-
}>;
|
|
95
|
-
let withdrawFacet: import("@endo/patterns").InterfaceGuard<{
|
|
96
|
-
withdrawPayments: import("@endo/patterns").MethodGuard;
|
|
97
|
-
}>;
|
|
98
|
-
let helpers: import("@endo/patterns").InterfaceGuard<{
|
|
99
|
-
wrapIssuerKitWithZoeMint: import("@endo/patterns").MethodGuard;
|
|
100
|
-
}>;
|
|
101
|
-
}
|
|
102
|
-
export const BundleCapShape: import("@endo/patterns").Matcher;
|
|
103
|
-
export const BundleShape: import("@endo/patterns").Matcher;
|
|
104
|
-
export const UnwrappedInstallationShape: import("@endo/patterns").Matcher;
|
|
105
|
-
export namespace ZoeStorageManagerIKit {
|
|
106
|
-
let zoeServiceDataAccess: import("@endo/patterns").InterfaceGuard<{
|
|
107
|
-
getTerms: import("@endo/patterns").MethodGuard;
|
|
108
|
-
getIssuers: import("@endo/patterns").MethodGuard;
|
|
109
|
-
getBrands: import("@endo/patterns").MethodGuard;
|
|
110
|
-
getInstallation: import("@endo/patterns").MethodGuard;
|
|
111
|
-
getInvitationIssuer: import("@endo/patterns").MethodGuard;
|
|
112
|
-
getBundleIDFromInstallation: import("@endo/patterns").MethodGuard;
|
|
113
|
-
installBundle: import("@endo/patterns").MethodGuard;
|
|
114
|
-
installBundleID: import("@endo/patterns").MethodGuard;
|
|
115
|
-
getPublicFacet: import("@endo/patterns").MethodGuard;
|
|
116
|
-
getOfferFilter: import("@endo/patterns").MethodGuard;
|
|
117
|
-
getProposalShapeForInvitation: import("@endo/patterns").MethodGuard;
|
|
118
|
-
}>;
|
|
119
|
-
let makeOfferAccess: import("@endo/patterns").InterfaceGuard<{
|
|
120
|
-
getAssetKindByBrand: import("@endo/patterns").MethodGuard;
|
|
121
|
-
getInstanceAdmin: import("@endo/patterns").MethodGuard;
|
|
122
|
-
getProposalShapeForInvitation: import("@endo/patterns").MethodGuard;
|
|
123
|
-
getInvitationIssuer: import("@endo/patterns").MethodGuard;
|
|
124
|
-
depositPayments: import("@endo/patterns").MethodGuard;
|
|
125
|
-
}>;
|
|
126
|
-
let startInstanceAccess: import("@endo/patterns").InterfaceGuard<{
|
|
127
|
-
makeZoeInstanceStorageManager: import("@endo/patterns").MethodGuard;
|
|
128
|
-
unwrapInstallation: import("@endo/patterns").MethodGuard;
|
|
129
|
-
}>;
|
|
130
|
-
let invitationIssuerAccess: import("@endo/patterns").InterfaceGuard<{
|
|
131
|
-
getInvitationIssuer: import("@endo/patterns").MethodGuard;
|
|
132
|
-
}>;
|
|
133
|
-
}
|
|
134
|
-
export const ZoeServiceI: import("@endo/patterns").InterfaceGuard<{
|
|
135
|
-
install: import("@endo/patterns").MethodGuard;
|
|
136
|
-
installBundleID: import("@endo/patterns").MethodGuard;
|
|
137
|
-
startInstance: import("@endo/patterns").MethodGuard;
|
|
138
|
-
offer: import("@endo/patterns").MethodGuard;
|
|
139
|
-
getOfferFilter: import("@endo/patterns").MethodGuard;
|
|
140
|
-
getInvitationIssuer: import("@endo/patterns").MethodGuard;
|
|
141
|
-
getFeeIssuer: import("@endo/patterns").MethodGuard;
|
|
142
|
-
getBrands: import("@endo/patterns").MethodGuard;
|
|
143
|
-
getIssuers: import("@endo/patterns").MethodGuard;
|
|
144
|
-
getPublicFacet: import("@endo/patterns").MethodGuard;
|
|
145
|
-
getTerms: import("@endo/patterns").MethodGuard;
|
|
146
|
-
getInstallationForInstance: import("@endo/patterns").MethodGuard;
|
|
147
|
-
getBundleIDFromInstallation: import("@endo/patterns").MethodGuard;
|
|
148
|
-
getInstallation: import("@endo/patterns").MethodGuard;
|
|
149
|
-
getInstance: import("@endo/patterns").MethodGuard;
|
|
150
|
-
getConfiguration: import("@endo/patterns").MethodGuard;
|
|
151
|
-
getInvitationDetails: import("@endo/patterns").MethodGuard;
|
|
152
|
-
getProposalShapeForInvitation: import("@endo/patterns").MethodGuard;
|
|
153
|
-
}>;
|
|
154
|
-
export const AdminFacetI: import("@endo/patterns").InterfaceGuard<{
|
|
155
|
-
getVatShutdownPromise: import("@endo/patterns").MethodGuard;
|
|
156
|
-
restartContract: import("@endo/patterns").MethodGuard;
|
|
157
|
-
upgradeContract: import("@endo/patterns").MethodGuard;
|
|
158
|
-
}>;
|
|
159
|
-
export const SeatDataShape: import("@endo/patterns").Matcher;
|
|
160
|
-
export const HandleOfferI: import("@endo/patterns").InterfaceGuard<{
|
|
161
|
-
handleOffer: import("@endo/patterns").MethodGuard;
|
|
162
|
-
}>;
|
|
163
|
-
export namespace PriceQuoteShape {
|
|
164
|
-
export { AmountShape as quoteAmount };
|
|
165
|
-
export let quotePayment: any;
|
|
166
|
-
}
|
|
167
|
-
import { AmountShape } from '@agoric/ertp';
|
|
168
|
-
//# sourceMappingURL=typeGuards.d.ts.map
|
package/src/typeGuards.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAgBA,4DAAuC;AAEvC,qEAAqE;AACrE,+DAAyD;AACzD,mEAAiE;AACjE,iEAA6D;AAC7D,yDAA6C;AAE7C,wEAA8E;AAC9E,+EAGE;AACF,0EAGE;AACF,wEAA8E;AAC9E,yEAGE;AACF,uEAA4E;AAE5E,iEAOE;;;;;;;;;;AAaF,kEAAiD;AAE1C,6EAA4D;AACnE,0DAAmD;;;;;;AA0BnD,2BAA2B;AAC3B,6DAAsE;AAEtE,kEAIG;AAEI,uDAGN;AAMM,uCAHI,QAAQ,0BAMlB;AAMM,8CAHI,QAAQ,iCAMlB;AAED,sEAKG;AAEH;;GAEG;AAEH,0EAKE;AAEF,4DAAmD;AACnD;;;;GAIG;AAEH;;;;GASG;AAEH,kEAA+D;AAE/D;;GAEG;AAEH,+DAAsD;AACtD,kEAA+D;AAC/D;;;;;;;;;;;;;;;;GAiCG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDH,8DAAuD;AACvD,2DAGE;AAEF,0EAUE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DF;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;GAIG;AAEH,6DASE;AAEF;;GAKG;;;;;4BA7XI,cAAc"}
|
package/src/types.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A type constructor for an opaque type
|
|
3
|
-
* identified by the H string. This uses an intersection type
|
|
4
|
-
* ('MyHandle' & {}) to tag the handle's type even though the actual
|
|
5
|
-
* value is just an empty object.
|
|
6
|
-
*/
|
|
7
|
-
type Handle<H extends string> = H & typeof import("@endo/marshal").Remotable;
|
|
8
|
-
type Keyword = string;
|
|
9
|
-
/**
|
|
10
|
-
* - an opaque handle for an invitation
|
|
11
|
-
*/
|
|
12
|
-
type InvitationHandle = Handle<'Invitation'>;
|
|
13
|
-
type IssuerKeywordRecord = Record<Keyword, Issuer<any>>;
|
|
14
|
-
type IssuerPKeywordRecord = Record<Keyword, ERef<Issuer<any>>>;
|
|
15
|
-
type BrandKeywordRecord = Record<Keyword, Brand<any>>;
|
|
16
|
-
type StandardTerms = {
|
|
17
|
-
/**
|
|
18
|
-
* - record with
|
|
19
|
-
* keywords keys, issuer values
|
|
20
|
-
*/
|
|
21
|
-
issuers: IssuerKeywordRecord;
|
|
22
|
-
/**
|
|
23
|
-
* - record with keywords
|
|
24
|
-
* keys, brand values
|
|
25
|
-
*/
|
|
26
|
-
brands: BrandKeywordRecord;
|
|
27
|
-
};
|
|
28
|
-
type AnyTerms = StandardTerms & Record<string, any>;
|
|
29
|
-
type InstanceRecord = {
|
|
30
|
-
installation: Installation;
|
|
31
|
-
instance: import("./zoeService/utils.js").Instance<any>;
|
|
32
|
-
/**
|
|
33
|
-
* - contract parameters
|
|
34
|
-
*/
|
|
35
|
-
terms: AnyTerms;
|
|
36
|
-
};
|
|
37
|
-
type IssuerRecord<K extends AssetKind = AssetKind> = {
|
|
38
|
-
brand: Brand<K>;
|
|
39
|
-
issuer: Issuer<K>;
|
|
40
|
-
assetKind: K;
|
|
41
|
-
displayInfo?: DisplayInfo<K> | undefined;
|
|
42
|
-
};
|
|
43
|
-
type Allocation<K extends AssetKind = AssetKind> = AmountKeywordRecord;
|
|
44
|
-
type Invitation<R extends unknown = unknown, A extends unknown = never> = Payment<'set'>;
|
|
45
|
-
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;gCAMa,CAAC,2CAAoC;eAOrC,MAAM;;;;wBACN,OAAO,YAAY,CAAC;2BACpB,OAAO,OAAO,EAAE,OAAO,GAAG,CAAC,CAAC;4BAC5B,OAAO,OAAO,EAAE,KAAK,OAAO,GAAG,CAAC,CAAC,CAAC;0BAClC,OAAO,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC;;;;;;aAK1B,mBAAmB;;;;;YAEnB,kBAAkB;;gBAGnB,aAAa,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC;;kBAGlC,YAAY;cACZ,OAAO,uBAAuB,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;WAC7C,QAAQ;;;WAMR,MAAM,CAAC,CAAC;YACR,OAAO,CAAC,CAAC;eACT,CAAC;;;mDAGF,mBAAmB;0EAMnB,QAAQ,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createZCFVat.d.ts","sourceRoot":"","sources":["createZCFVat.js"],"names":[],"mappings":"AAMO,qEAcN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"escrowStorage.d.ts","sourceRoot":"","sources":["escrowStorage.js"],"names":[],"mappings":"AAkBO;;;;;EAkHN"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export namespace defaultFeeIssuerConfig {
|
|
2
|
-
let name: "ZDEFAULT";
|
|
3
|
-
let assetKind: "nat";
|
|
4
|
-
namespace displayInfo {
|
|
5
|
-
export let decimalPlaces: number;
|
|
6
|
-
let assetKind_1: "nat";
|
|
7
|
-
export { assetKind_1 as assetKind };
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @param {import('@agoric/vat-data').Baggage} zoeBaggage
|
|
12
|
-
* @param {FeeIssuerConfig} feeIssuerConfig
|
|
13
|
-
* @param {ShutdownWithFailure} shutdownZoeVat
|
|
14
|
-
*/
|
|
15
|
-
export function prepareFeeMint(zoeBaggage: MapStore<string, any>, feeIssuerConfig: FeeIssuerConfig, shutdownZoeVat: ShutdownWithFailure): {
|
|
16
|
-
feeMint: {
|
|
17
|
-
getFeeIssuerKit(allegedFeeMintAccess: any): any;
|
|
18
|
-
getFeeIssuer(): any;
|
|
19
|
-
getFeeBrand(): any;
|
|
20
|
-
};
|
|
21
|
-
feeMintAccess: {};
|
|
22
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
23
|
-
feeMint: {
|
|
24
|
-
getFeeIssuerKit(allegedFeeMintAccess: any): any;
|
|
25
|
-
getFeeIssuer(): any;
|
|
26
|
-
getFeeBrand(): any;
|
|
27
|
-
};
|
|
28
|
-
feeMintAccess: {};
|
|
29
|
-
}>;
|
|
30
|
-
//# sourceMappingURL=feeMint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feeMint.d.ts","sourceRoot":"","sources":["feeMint.js"],"names":[],"mappings":";;;;;;;;;AA2BA;;;;GAIG;AACH,mFAHW,eAAe,kBACf,mBAAmB;;;;;;;;;;;;;;GAsD7B"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export function makeInstallationStorage(getBundleCapForID: GetBundleCapForID, zoeBaggage: MapStore<string, any>): {
|
|
2
|
-
installBundle(allegedBundle: any, bundleLabel: any): any;
|
|
3
|
-
installBundleID(bundleID: any, bundleLabel?: any): Promise<Installation<any>>;
|
|
4
|
-
unwrapInstallation(installation: any): {
|
|
5
|
-
bundleCap: any;
|
|
6
|
-
bundleID: string;
|
|
7
|
-
installation: any;
|
|
8
|
-
bundle?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
bundle: SourceBundle;
|
|
11
|
-
installation: any;
|
|
12
|
-
bundleCap?: undefined;
|
|
13
|
-
bundleID?: undefined;
|
|
14
|
-
};
|
|
15
|
-
getBundleIDFromInstallation(allegedInstallation: any): any;
|
|
16
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
17
|
-
installBundle(allegedBundle: any, bundleLabel: any): any;
|
|
18
|
-
installBundleID(bundleID: any, bundleLabel?: any): Promise<Installation<any>>;
|
|
19
|
-
unwrapInstallation(installation: any): {
|
|
20
|
-
bundleCap: any;
|
|
21
|
-
bundleID: string;
|
|
22
|
-
installation: any;
|
|
23
|
-
bundle?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
bundle: SourceBundle;
|
|
26
|
-
installation: any;
|
|
27
|
-
bundleCap?: undefined;
|
|
28
|
-
bundleID?: undefined;
|
|
29
|
-
};
|
|
30
|
-
getBundleIDFromInstallation(allegedInstallation: any): any;
|
|
31
|
-
}>;
|
|
32
|
-
export type BundleCap = import('@agoric/swingset-vat').BundleCap;
|
|
33
|
-
export type BundleID = import('@agoric/swingset-vat').BundleID;
|
|
34
|
-
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
35
|
-
//# sourceMappingURL=installationStorage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"AAuBO,2DAHI,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4I3B;wBAjJc,OAAO,sBAAsB,EAAE,SAAS;uBACxC,OAAO,sBAAsB,EAAE,QAAQ;sBACxC,OAAO,kBAAkB,EAAE,OAAO"}
|