@agoric/zoe 0.26.3-dev-ae21a7e.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 +186 -196
- 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
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
export function prepareRecorder(baggage: MapStore<string, any>, marshaller: ERef<Marshaller>): (publisher: Publisher<unknown>, storageNode: StorageNode, valueShape?: TypedMatcher<unknown> | undefined) => {
|
|
2
|
-
getStorageNode(): StorageNode;
|
|
3
|
-
/**
|
|
4
|
-
* Memoizes the remote call to the storage node
|
|
5
|
-
*
|
|
6
|
-
* @returns {Promise<string>}
|
|
7
|
-
*/
|
|
8
|
-
getStoragePath(): Promise<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Marshalls before writing to storage or publisher to help ensure the two streams match.
|
|
11
|
-
*
|
|
12
|
-
* @param {unknown} value
|
|
13
|
-
* @returns {Promise<void>}
|
|
14
|
-
*/
|
|
15
|
-
write(value: unknown): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* Like `write` but prevents future writes and terminates the publisher.
|
|
18
|
-
*
|
|
19
|
-
* @param {unknown} value
|
|
20
|
-
* @returns {Promise<void>}
|
|
21
|
-
*/
|
|
22
|
-
writeFinal(value: unknown): Promise<void>;
|
|
23
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
24
|
-
getStorageNode(): StorageNode;
|
|
25
|
-
/**
|
|
26
|
-
* Memoizes the remote call to the storage node
|
|
27
|
-
*
|
|
28
|
-
* @returns {Promise<string>}
|
|
29
|
-
*/
|
|
30
|
-
getStoragePath(): Promise<string>;
|
|
31
|
-
/**
|
|
32
|
-
* Marshalls before writing to storage or publisher to help ensure the two streams match.
|
|
33
|
-
*
|
|
34
|
-
* @param {unknown} value
|
|
35
|
-
* @returns {Promise<void>}
|
|
36
|
-
*/
|
|
37
|
-
write(value: unknown): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Like `write` but prevents future writes and terminates the publisher.
|
|
40
|
-
*
|
|
41
|
-
* @param {unknown} value
|
|
42
|
-
* @returns {Promise<void>}
|
|
43
|
-
*/
|
|
44
|
-
writeFinal(value: unknown): Promise<void>;
|
|
45
|
-
}>;
|
|
46
|
-
export function defineRecorderKit({ makeRecorder, makeDurablePublishKit }: {
|
|
47
|
-
makeRecorder: MakeRecorder;
|
|
48
|
-
makeDurablePublishKit: ReturnType<typeof prepareDurablePublishKit>;
|
|
49
|
-
}): <T>(storageNode: StorageNode, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
|
|
50
|
-
export function defineERecorderKit({ makeRecorder, makeDurablePublishKit }: {
|
|
51
|
-
makeRecorder: MakeRecorder;
|
|
52
|
-
makeDurablePublishKit: ReturnType<typeof prepareDurablePublishKit>;
|
|
53
|
-
}): <T>(storageNodeP: ERef<StorageNode>, valueShape?: TypedMatcher<T> | undefined) => EventualRecorderKit<T>;
|
|
54
|
-
export function prepareRecorderKit(baggage: MapStore<string, any>, marshaller: ERef<Marshaller>): <T>(storageNode: StorageNode, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
|
|
55
|
-
export function prepareRecorderKitMakers(baggage: MapStore<string, any>, marshaller: ERef<Marshaller>): {
|
|
56
|
-
makeDurablePublishKit: (options?: {
|
|
57
|
-
valueDurability?: "mandatory" | undefined;
|
|
58
|
-
} | undefined) => {
|
|
59
|
-
publisher: {
|
|
60
|
-
publish(value: any): void;
|
|
61
|
-
finish(finalValue: any): void;
|
|
62
|
-
fail(reason: any): void;
|
|
63
|
-
};
|
|
64
|
-
subscriber: {
|
|
65
|
-
subscribeAfter(publishCount?: bigint): Promise<any>;
|
|
66
|
-
getUpdateSince(updateCount: any): any;
|
|
67
|
-
};
|
|
68
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
69
|
-
publisher: {
|
|
70
|
-
publish(value: any): void;
|
|
71
|
-
finish(finalValue: any): void;
|
|
72
|
-
fail(reason: any): void;
|
|
73
|
-
};
|
|
74
|
-
subscriber: {
|
|
75
|
-
subscribeAfter(publishCount?: bigint): Promise<any>;
|
|
76
|
-
getUpdateSince(updateCount: any): any;
|
|
77
|
-
};
|
|
78
|
-
}>;
|
|
79
|
-
makeRecorder: (publisher: Publisher<unknown>, storageNode: StorageNode, valueShape?: TypedMatcher<unknown> | undefined) => {
|
|
80
|
-
getStorageNode(): StorageNode;
|
|
81
|
-
/**
|
|
82
|
-
* Memoizes the remote call to the storage node
|
|
83
|
-
*
|
|
84
|
-
* @returns {Promise<string>}
|
|
85
|
-
*/
|
|
86
|
-
getStoragePath(): Promise<string>;
|
|
87
|
-
/**
|
|
88
|
-
* Marshalls before writing to storage or publisher to help ensure the two streams match.
|
|
89
|
-
*
|
|
90
|
-
* @param {unknown} value
|
|
91
|
-
* @returns {Promise<void>}
|
|
92
|
-
*/
|
|
93
|
-
write(value: unknown): Promise<void>;
|
|
94
|
-
/**
|
|
95
|
-
* Like `write` but prevents future writes and terminates the publisher.
|
|
96
|
-
*
|
|
97
|
-
* @param {unknown} value
|
|
98
|
-
* @returns {Promise<void>}
|
|
99
|
-
*/
|
|
100
|
-
writeFinal(value: unknown): Promise<void>;
|
|
101
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
102
|
-
getStorageNode(): StorageNode;
|
|
103
|
-
/**
|
|
104
|
-
* Memoizes the remote call to the storage node
|
|
105
|
-
*
|
|
106
|
-
* @returns {Promise<string>}
|
|
107
|
-
*/
|
|
108
|
-
getStoragePath(): Promise<string>;
|
|
109
|
-
/**
|
|
110
|
-
* Marshalls before writing to storage or publisher to help ensure the two streams match.
|
|
111
|
-
*
|
|
112
|
-
* @param {unknown} value
|
|
113
|
-
* @returns {Promise<void>}
|
|
114
|
-
*/
|
|
115
|
-
write(value: unknown): Promise<void>;
|
|
116
|
-
/**
|
|
117
|
-
* Like `write` but prevents future writes and terminates the publisher.
|
|
118
|
-
*
|
|
119
|
-
* @param {unknown} value
|
|
120
|
-
* @returns {Promise<void>}
|
|
121
|
-
*/
|
|
122
|
-
writeFinal(value: unknown): Promise<void>;
|
|
123
|
-
}>;
|
|
124
|
-
makeRecorderKit: <T>(storageNode: StorageNode, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
|
|
125
|
-
makeERecorderKit: <T_1>(storageNodeP: ERef<StorageNode>, valueShape?: TypedMatcher<T_1> | undefined) => EventualRecorderKit<T_1>;
|
|
126
|
-
};
|
|
127
|
-
export function prepareMockRecorderKitMakers(): {
|
|
128
|
-
storageNode: StorageNode & {
|
|
129
|
-
countSetValueCalls: () => number;
|
|
130
|
-
};
|
|
131
|
-
makeDurablePublishKit: (options?: {
|
|
132
|
-
valueDurability?: "mandatory" | undefined;
|
|
133
|
-
} | undefined) => {
|
|
134
|
-
publisher: {
|
|
135
|
-
publish(value: any): void;
|
|
136
|
-
finish(finalValue: any): void;
|
|
137
|
-
fail(reason: any): void;
|
|
138
|
-
};
|
|
139
|
-
subscriber: {
|
|
140
|
-
subscribeAfter(publishCount?: bigint): Promise<any>;
|
|
141
|
-
getUpdateSince(updateCount: any): any;
|
|
142
|
-
};
|
|
143
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
144
|
-
publisher: {
|
|
145
|
-
publish(value: any): void;
|
|
146
|
-
finish(finalValue: any): void;
|
|
147
|
-
fail(reason: any): void;
|
|
148
|
-
};
|
|
149
|
-
subscriber: {
|
|
150
|
-
subscribeAfter(publishCount?: bigint): Promise<any>;
|
|
151
|
-
getUpdateSince(updateCount: any): any;
|
|
152
|
-
};
|
|
153
|
-
}>;
|
|
154
|
-
makeRecorder: (publisher: Publisher<unknown>, storageNode: StorageNode, valueShape?: TypedMatcher<unknown> | undefined) => {
|
|
155
|
-
getStorageNode(): StorageNode;
|
|
156
|
-
/**
|
|
157
|
-
* Memoizes the remote call to the storage node
|
|
158
|
-
*
|
|
159
|
-
* @returns {Promise<string>}
|
|
160
|
-
*/
|
|
161
|
-
getStoragePath(): Promise<string>;
|
|
162
|
-
/**
|
|
163
|
-
* Marshalls before writing to storage or publisher to help ensure the two streams match.
|
|
164
|
-
*
|
|
165
|
-
* @param {unknown} value
|
|
166
|
-
* @returns {Promise<void>}
|
|
167
|
-
*/
|
|
168
|
-
write(value: unknown): Promise<void>;
|
|
169
|
-
/**
|
|
170
|
-
* Like `write` but prevents future writes and terminates the publisher.
|
|
171
|
-
*
|
|
172
|
-
* @param {unknown} value
|
|
173
|
-
* @returns {Promise<void>}
|
|
174
|
-
*/
|
|
175
|
-
writeFinal(value: unknown): Promise<void>;
|
|
176
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
177
|
-
getStorageNode(): StorageNode;
|
|
178
|
-
/**
|
|
179
|
-
* Memoizes the remote call to the storage node
|
|
180
|
-
*
|
|
181
|
-
* @returns {Promise<string>}
|
|
182
|
-
*/
|
|
183
|
-
getStoragePath(): Promise<string>;
|
|
184
|
-
/**
|
|
185
|
-
* Marshalls before writing to storage or publisher to help ensure the two streams match.
|
|
186
|
-
*
|
|
187
|
-
* @param {unknown} value
|
|
188
|
-
* @returns {Promise<void>}
|
|
189
|
-
*/
|
|
190
|
-
write(value: unknown): Promise<void>;
|
|
191
|
-
/**
|
|
192
|
-
* Like `write` but prevents future writes and terminates the publisher.
|
|
193
|
-
*
|
|
194
|
-
* @param {unknown} value
|
|
195
|
-
* @returns {Promise<void>}
|
|
196
|
-
*/
|
|
197
|
-
writeFinal(value: unknown): Promise<void>;
|
|
198
|
-
}>;
|
|
199
|
-
makeRecorderKit: <T>(storageNode: StorageNode, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
|
|
200
|
-
makeERecorderKit: <T_1>(storageNodeP: ERef<StorageNode>, valueShape?: TypedMatcher<T_1> | undefined) => EventualRecorderKit<T_1>;
|
|
201
|
-
};
|
|
202
|
-
export type Recorder<T> = {
|
|
203
|
-
getStorageNode(): StorageNode;
|
|
204
|
-
getStoragePath(): Promise<string>;
|
|
205
|
-
write(value: T): Promise<void>;
|
|
206
|
-
writeFinal(value: T): Promise<void>;
|
|
207
|
-
};
|
|
208
|
-
export type RecorderKit<T> = Pick<PublishKit<T>, 'subscriber'> & {
|
|
209
|
-
recorder: Recorder<T>;
|
|
210
|
-
};
|
|
211
|
-
export type EventualRecorderKit<T> = Pick<PublishKit<T>, 'subscriber'> & {
|
|
212
|
-
recorderP: ERef<Recorder<T>>;
|
|
213
|
-
};
|
|
214
|
-
export type MakeRecorder = ReturnType<typeof prepareRecorder>;
|
|
215
|
-
export type MakeRecorderKit = ReturnType<typeof defineRecorderKit>;
|
|
216
|
-
export type MakeERecorderKit = ReturnType<typeof defineERecorderKit>;
|
|
217
|
-
/**
|
|
218
|
-
* Stop-gap until https://github.com/Agoric/agoric-sdk/issues/6160
|
|
219
|
-
* explictly specify the type that the Pattern will verify through a match.
|
|
220
|
-
*
|
|
221
|
-
* This is a Pattern but since that's `any`, including in the typedef turns the
|
|
222
|
-
* whole thing to `any`.
|
|
223
|
-
*/
|
|
224
|
-
export type TypedMatcher<T> = {
|
|
225
|
-
validatedType?: T;
|
|
226
|
-
};
|
|
227
|
-
export type MatchedType<TM extends TypedMatcher<any>> = TM extends TypedMatcher<infer T> ? T : never;
|
|
228
|
-
import { prepareDurablePublishKit } from '@agoric/notifier';
|
|
229
|
-
//# sourceMappingURL=recorder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["recorder.js"],"names":[],"mappings":"AA4CO,4EAFI,KAAK,UAAU,CAAC;;IAmCrB;;;;OAIG;sBADU,QAAQ,MAAM,CAAC;IAa5B;;;;;OAKG;iBAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;IAa1B;;;;;OAKG;sBAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;;;IArC1B;;;;OAIG;sBADU,QAAQ,MAAM,CAAC;IAa5B;;;;;OAKG;iBAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;IAa1B;;;;;OAKG;sBAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;GAkB/B;AAWM,2EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,WAAW,+BAA+B,CAAC,CAAA;CAAC,oBAK9F,WAAW,8DAUvB;AAUM,4EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,WAAW,+BAA+B,CAAC,CAAA;CAAC,qBAK9F,KAAK,WAAW,CAAC,sEAY7B;AAaM,+EAFI,KAAK,UAAU,CAAC,oBA9Cd,WAAW,8DAuDvB;AAaM,qFAFI,KAAK,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;QAvIrB;;;;WAIG;0BADU,QAAQ,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;;;QArC1B;;;;WAIG;0BADU,QAAQ,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;;sCAgCnB,WAAW;0CAuBX,KAAK,WAAW,CAAC;EAmE7B;AAKM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QApKD;;;;WAIG;0BADU,QAAQ,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;;;QArC1B;;;;WAIG;0BADU,QAAQ,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,OAAO,GACL,QAAQ,IAAI,CAAC;;sCAgCnB,WAAW;0CAuBX,KAAK,WAAW,CAAC;EA+E7B;;sBA/NgC,WAAW;sBAAoB,QAAQ,MAAM,CAAC;iBAAe,CAAC,GAAG,QAAQ,IAAI,CAAC;sBAAoB,CAAC,GAAG,QAAQ,IAAI,CAAC;;6BAKvI,KAAK,WAAW,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAA;CAAE;qCAK7D,KAAK,WAAW,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG;IAAE,SAAS,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,CAAA;CAAE;2BAmGnE,WAAW,sBAAsB,CAAC;8BAuBlC,WAAW,wBAAwB,CAAC;+BA0BpC,WAAW,yBAAyB,CAAC;;;;;;;;8BA2EtC;IAAE,aAAa,CAAC,EAAE,CAAC,CAAA;CAAE;;yCAhQO,kBAAkB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export namespace natSafeMath {
|
|
2
|
-
let add: NatOp;
|
|
3
|
-
let subtract: NatOp;
|
|
4
|
-
let multiply: NatOp;
|
|
5
|
-
let floorDivide: NatOp;
|
|
6
|
-
let ceilDivide: NatOp;
|
|
7
|
-
let bankersDivide: NatOp;
|
|
8
|
-
let isGTE: (x: number | bigint, y: number | bigint) => boolean;
|
|
9
|
-
}
|
|
10
|
-
export type NatOp = (x: number | bigint, y: number | bigint) => NatValue;
|
|
11
|
-
//# sourceMappingURL=safeMath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"safeMath.d.ts","sourceRoot":"","sources":["safeMath.js"],"names":[],"mappings":";aAYa,KAAK;kBAGL,KAAK;kBAEL,KAAK;qBAEL,KAAK;oBAEL,KAAK;uBAQN,KAAK;;;wBA3BC,MAAM,GAAG,MAAM,KAAK,MAAM,GAAG,MAAM,KAAK,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stateMachine.d.ts","sourceRoot":"","sources":["stateMachine.js"],"names":[],"mappings":"AAUA;;;;EAYC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["statistics.js"],"names":[],"mappings":"AAgBO,oFAwBN;;aArCiB,CAAC,KAAK,CAAC,KAAK,CAAC;gBACb,CAAC,KAAK,MAAM,KAAK,CAAC;eAClB,CAAC,KAAK,CAAC,KAAK,OAAO"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { SubscriberShape };
|
|
2
|
-
export const PublicTopicShape: import("@endo/patterns").Matcher;
|
|
3
|
-
/**
|
|
4
|
-
* @template {object} T topic value
|
|
5
|
-
* @typedef {{
|
|
6
|
-
* description?: string,
|
|
7
|
-
* subscriber: Subscriber<T>,
|
|
8
|
-
* storagePath: ERef<string>,
|
|
9
|
-
* }} PublicTopic
|
|
10
|
-
*/
|
|
11
|
-
export const TopicsRecordShape: import("@endo/patterns").Matcher;
|
|
12
|
-
export function makeRecorderTopic<T>(description: string, recorderKit: import("./recorder.js").RecorderKit<T> | import("./recorder.js").EventualRecorderKit<T>): PublicTopic<T>;
|
|
13
|
-
export type PublicTopic<T extends unknown> = {
|
|
14
|
-
description?: string;
|
|
15
|
-
subscriber: Subscriber<T>;
|
|
16
|
-
storagePath: ERef<string>;
|
|
17
|
-
};
|
|
18
|
-
export type TopicsRecord = {
|
|
19
|
-
[topicName: string]: PublicTopic<unknown>;
|
|
20
|
-
};
|
|
21
|
-
import { SubscriberShape } from '@agoric/notifier';
|
|
22
|
-
//# sourceMappingURL=topics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["topics.js"],"names":[],"mappings":";AAMA,gEAME;AAEF;;;;;;;GAOG;AAEH,iEAA0E;AAcnE,kDAJI,MAAM,wHAYhB;6CA7BY;IACZ,WAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAc,EAAE,WAAW,CAAC,CAAC,CAAC;IAC9B,WAAe,EAAE,KAAK,MAAM,CAAC,CAAC;CAC3B;;;;gCApB4B,kBAAkB"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
type SeatGainsLossesRecord = {
|
|
2
|
-
seat: ZCFSeat;
|
|
3
|
-
/**
|
|
4
|
-
* - what the seat will
|
|
5
|
-
* gain as a result of this trade
|
|
6
|
-
*/
|
|
7
|
-
gains: AmountKeywordRecord;
|
|
8
|
-
/**
|
|
9
|
-
* - what the seat [will]
|
|
10
|
-
* give up as a result of this trade. Losses is optional, but can
|
|
11
|
-
* only be omitted if the keywords for both seats are the same.
|
|
12
|
-
* If losses is not defined, the gains of the other seat is
|
|
13
|
-
* subtracted.
|
|
14
|
-
*/
|
|
15
|
-
losses: AmountKeywordRecord;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* If two seats can satisfy each other's wants, trade enough to
|
|
19
|
-
* satisfy the wants of both seats and exit both seats.
|
|
20
|
-
*
|
|
21
|
-
* The surplus remains with the original seat. For example if seat A
|
|
22
|
-
* gives 5 moola and seat B only wants 3 moola, seat A retains 2
|
|
23
|
-
* moola.
|
|
24
|
-
*
|
|
25
|
-
* If the swap fails, no assets are transferred, both seats will fail,
|
|
26
|
-
* and the function throws.
|
|
27
|
-
*
|
|
28
|
-
* The keywords for both seats must match.
|
|
29
|
-
*/
|
|
30
|
-
type Swap = (zcf: ZCF, leftSeat: ZCFSeat, rightSeat: ZCFSeat) => string;
|
|
31
|
-
/**
|
|
32
|
-
* Swap such that both seats gain what they want and lose everything
|
|
33
|
-
* that they gave. Only good for exact and entire swaps where each
|
|
34
|
-
* seat wants everything that the other seat has. The benefit of using
|
|
35
|
-
* this method is that the keywords of each seat do not matter.
|
|
36
|
-
*
|
|
37
|
-
* If the swap fails, no assets are transferred, both seats will fail,
|
|
38
|
-
* and the function throws.
|
|
39
|
-
*/
|
|
40
|
-
type SwapExact = (zcf: ZCF, leftSeat: ZCFSeat, rightSeat: ZCFSeat) => string;
|
|
41
|
-
/**
|
|
42
|
-
* A mapping of keywords to keywords.
|
|
43
|
-
*/
|
|
44
|
-
type KeywordKeywordRecord = Record<Keyword, Keyword>;
|
|
45
|
-
/**
|
|
46
|
-
* Given a mapping of keywords to keywords, invert the keys and
|
|
47
|
-
* values. This is used to map the offers made to another contract
|
|
48
|
-
* back to the keywords used in the first contract.
|
|
49
|
-
*/
|
|
50
|
-
type Reverse = (keywordRecord?: KeywordKeywordRecord | undefined) => KeywordKeywordRecord;
|
|
51
|
-
/**
|
|
52
|
-
* Remap the keywords of an amountKeywordRecord, issuerKeywordRecord, or a
|
|
53
|
-
* PaymentPKeywordRecord according to a mapping. This is used to remap
|
|
54
|
-
* from keywords used in contractA to keywords used in contractB and
|
|
55
|
-
* vice versa in `offerTo`
|
|
56
|
-
*/
|
|
57
|
-
type MapKeywords = (keywordRecord: AmountKeywordRecord | PaymentPKeywordRecord | IssuerKeywordRecord | undefined, keywordMapping: KeywordKeywordRecord) => any;
|
|
58
|
-
type Ratio = {
|
|
59
|
-
numerator: Amount<'nat'>;
|
|
60
|
-
denominator: Amount<'nat'>;
|
|
61
|
-
};
|
|
62
|
-
type ScaleAmount = (amount: Amount<'nat'>, ratio: Ratio) => Amount<'nat'>;
|
|
63
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";UAMc,OAAO;;;;;WACP,mBAAmB;;;;;;;;YAEnB,mBAAmB;;;;;;;;;;;;;;;kBAqBtB,GAAG,YACH,OAAO,aACP,OAAO,KACL,MAAM;;;;;;;;;;uBAcR,GAAG,YACH,OAAO,aACP,OAAO,KACL,MAAM;;;;4BAIN,OAAO,OAAO,EAAC,OAAO,CAAC;;;;;;qEAYvB,oBAAoB;;;;;;;mCAWtB,mBAAmB,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,SAAS,kBAC7E,oBAAoB;;eAKjB,OAAO,KAAK,CAAC;iBACb,OAAO,KAAK,CAAC;;4BAKhB,OAAO,KAAK,CAAC,SACb,KAAK,KACH,OAAO,KAAK,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export const defaultAcceptanceMsg: "The offer has been accepted. Once the contract has been completed, please check your payout";
|
|
2
|
-
export function assertIssuerKeywords(zcf: any, expected: any): void;
|
|
3
|
-
export function satisfies(zcf: ZCF, seat: ZcfSeatPartial, update: AmountKeywordRecord): 0 | 1;
|
|
4
|
-
/** @type {Swap} */
|
|
5
|
-
export const swap: Swap;
|
|
6
|
-
/** @type {SwapExact} */
|
|
7
|
-
export const swapExact: SwapExact;
|
|
8
|
-
export function fitProposalShape(seat: ZCFSeat, proposalShape: Pattern): void;
|
|
9
|
-
export function assertProposalShape(seat: ZCFSeat, expected: ExpectedRecord): void;
|
|
10
|
-
export function assertNatAssetKind(zcf: any, brand: any): void;
|
|
11
|
-
export const depositToSeatSuccessMsg: "Deposit and reallocation successful.";
|
|
12
|
-
export function depositToSeat(zcf: ZCF, recipientSeat: ZCFSeat, amounts: AmountKeywordRecord, payments: PaymentPKeywordRecord): Promise<string>;
|
|
13
|
-
export function withdrawFromSeat(zcf: ZCF, seat: ZCFSeat, amounts: AmountKeywordRecord): Promise<PaymentPKeywordRecord>;
|
|
14
|
-
export function saveAllIssuers(zcf: ZCF, issuerKeywordRecord?: IssuerKeywordRecord): Promise<(IssuerRecord<any> | undefined)[]>;
|
|
15
|
-
/** @type {MapKeywords} */
|
|
16
|
-
export const mapKeywords: MapKeywords;
|
|
17
|
-
export function offerTo<Args extends unknown, Result extends unknown>(zcf: ZCF, invitation: ERef<Invitation<R, A>>, keywordMapping: KeywordKeywordRecord | undefined, proposal: Proposal, fromSeat: ZCFSeat, toSeat?: ZCFSeat | undefined, offerArgs?: Args | undefined): Promise<{
|
|
18
|
-
userSeatPromise: Promise<UserSeat<Result>>;
|
|
19
|
-
deposited: Promise<AmountKeywordRecord>;
|
|
20
|
-
}>;
|
|
21
|
-
export type ZcfSeatPartial = {
|
|
22
|
-
getProposal: () => ProposalRecord;
|
|
23
|
-
getCurrentAllocation: () => Allocation;
|
|
24
|
-
};
|
|
25
|
-
export type ExpectedRecord = {
|
|
26
|
-
want?: Record<string, null> | undefined;
|
|
27
|
-
give?: Record<string, null> | undefined;
|
|
28
|
-
exit?: Partial<Record<never, null>> | undefined;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=zoeHelpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zoeHelpers.d.ts","sourceRoot":"","sources":["zoeHelpers.js"],"names":[],"mappings":"AASA,iIAAkI;AAM3H,oEAON;AAuBM,+BALI,GAAG,QACH,cAAc,UACd,mBAAmB,GACjB,CAAC,GAAC,CAAC,CAOf;AAED,mBAAmB;AACnB,mBADW,IAAI,CAkBb;AAEF,wBAAwB;AACxB,wBADW,SAAS,CAqBlB;AAiBK,uCAHI,OAAO,iBACP,OAAO,QAIgD;AAsB3D,0CAHI,OAAO,YACP,cAAc,QA+BxB;AAGM,+DAGN;AAED,6EAA8E;AAavE,mCANI,GAAG,iBACH,OAAO,WACP,mBAAmB,YACnB,qBAAqB,GACnB,QAAQ,MAAM,CAAC,CA8B3B;AAYM,sCALI,GAAG,QACH,OAAO,WACP,mBAAmB,GACjB,QAAQ,qBAAqB,CAAC,CAQ1C;AAWM,oCAJI,GAAG,wBACH,mBAAmB,8CAgB7B;AAED,0BAA0B;AAC1B,0BADW,WAAW,CAYpB;AAiDK,2EAjCI,GAAG,sDAMH,oBAAoB,GAAG,SAAS,YAKhC,QAAQ,YAGR,OAAO;;eAU2D,QAAQ,mBAAmB,CAAC;GA+DxG;;iBAzVa,MAAM,cAAc;0BACpB,MAAM,UAAU"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trade one item for another.
|
|
3
|
-
* https://agoric.com/documentation/zoe/guide/contracts/atomic-swap.html
|
|
4
|
-
*
|
|
5
|
-
* The initial offer is { give: { Asset: A }, want: { Price: B } }.
|
|
6
|
-
* The outcome from the first offer is an invitation for the second party,
|
|
7
|
-
* who should offer { give: { Price: B }, want: { Asset: A } }, with a want
|
|
8
|
-
* amount no greater than the original's give, and a give amount at least as
|
|
9
|
-
* large as the original's want.
|
|
10
|
-
*
|
|
11
|
-
* @param {ZCF} zcf
|
|
12
|
-
*/
|
|
13
|
-
export function start(zcf: ZCF): {
|
|
14
|
-
creatorInvitation: Promise<Invitation<R, A>>;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=atomicSwap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atomicSwap.d.ts","sourceRoot":"","sources":["atomicSwap.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AACH,2BAFW,GAAG;;EAqCb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertBidSeat.d.ts","sourceRoot":"","sources":["assertBidSeat.js"],"names":[],"mappings":"AAGO,2EASN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"firstPriceLogic.d.ts","sourceRoot":"","sources":["firstPriceLogic.js"],"names":[],"mappings":"AAOO,wCAJI,GAAG,YACH,OAAO,YACP,MAAM,OAAO,CAAC,QAoDxB"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOT TO BE USED IN PRODUCTION CODE. BIDS ARE PUBLIC. An auction
|
|
3
|
-
* contract in which the seller offers an Asset for sale, and states a
|
|
4
|
-
* minimum price. The auction closes at the deadline specified by the
|
|
5
|
-
* timeAuthority, bidDuration, winnerPriceOption parameters in the terms provided by
|
|
6
|
-
* the creator of the contract instance.
|
|
7
|
-
* Winner price option can be `first-price` or `second-price`, default to `second-price`.
|
|
8
|
-
*
|
|
9
|
-
* startInstance() specifies the issuers and the terms. An invitation
|
|
10
|
-
* for the seller is returned as the creatorInvitation. The seller's
|
|
11
|
-
* offer should look like { give: { Asset: asset }, want: { Ask:
|
|
12
|
-
* minimumBidAmount}} The asset can be non-fungible, but the Ask
|
|
13
|
-
* amount should be of a fungible brand. The bidder invitations can be
|
|
14
|
-
* made by calling makeBidInvitation on the object returned from the
|
|
15
|
-
* seller's offer. Each bidder can submit an offer: { give: { Bid:
|
|
16
|
-
* null } want: { Asset: null } }.
|
|
17
|
-
*
|
|
18
|
-
* @param {ZCF<{
|
|
19
|
-
* timeAuthority: import('@agoric/time/src/types').TimerService,
|
|
20
|
-
* winnerPriceOption?: FIRST_PRICE | SECOND_PRICE,
|
|
21
|
-
* bidDuration: bigint,
|
|
22
|
-
* }>} zcf
|
|
23
|
-
*/
|
|
24
|
-
export function start(zcf: ZCF<{
|
|
25
|
-
timeAuthority: import('@agoric/time/src/types').TimerService;
|
|
26
|
-
winnerPriceOption?: "first-price" | "second-price" | undefined;
|
|
27
|
-
bidDuration: bigint;
|
|
28
|
-
}>): {
|
|
29
|
-
creatorInvitation: Promise<Invitation<R, A>>;
|
|
30
|
-
publicFacet: {
|
|
31
|
-
getCurrentBids: () => any[] | "Bids are hidden for \"second price\" auctions";
|
|
32
|
-
getSessionDetails: () => {
|
|
33
|
-
auctionedAssets: any;
|
|
34
|
-
minimumBid: any;
|
|
35
|
-
winnerPriceOption: string;
|
|
36
|
-
closesAfter: any;
|
|
37
|
-
bidDuration: bigint;
|
|
38
|
-
timeAuthority: import("@agoric/time/src/types").TimerService;
|
|
39
|
-
bids: string | any[];
|
|
40
|
-
};
|
|
41
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
42
|
-
getCurrentBids: () => any[] | "Bids are hidden for \"second price\" auctions";
|
|
43
|
-
getSessionDetails: () => {
|
|
44
|
-
auctionedAssets: any;
|
|
45
|
-
minimumBid: any;
|
|
46
|
-
winnerPriceOption: string;
|
|
47
|
-
closesAfter: any;
|
|
48
|
-
bidDuration: bigint;
|
|
49
|
-
timeAuthority: import("@agoric/time/src/types").TimerService;
|
|
50
|
-
bids: string | any[];
|
|
51
|
-
};
|
|
52
|
-
}>;
|
|
53
|
-
};
|
|
54
|
-
export const FIRST_PRICE: "first-price";
|
|
55
|
-
export const SECOND_PRICE: "second-price";
|
|
56
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;mBALkB,OAAO,wBAAwB,EAAE,YAAY;;iBAE/C,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;EA2HrB;AAlJD,wCAAkC;AAClC,0CAAoC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secondPriceLogic.d.ts","sourceRoot":"","sources":["secondPriceLogic.js"],"names":[],"mappings":"AAOO,wCAJI,GAAG,YACH,OAAO,YACP,MAAM,OAAO,CAAC,QA+DxB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is a very trivial contract to explain and test Zoe.
|
|
3
|
-
* AutomaticRefund just gives you back what you put in.
|
|
4
|
-
* AutomaticRefund tells Zoe to complete the
|
|
5
|
-
* offer, which gives the user their payout through Zoe. Other
|
|
6
|
-
* contracts will use these same steps, but they will have more
|
|
7
|
-
* sophisticated logic and interfaces.
|
|
8
|
-
*
|
|
9
|
-
* Since the contract doesn't attempt any reallocation, the offer can contain
|
|
10
|
-
* anything in `give` and `want`. The amount in `give` will be returned, and
|
|
11
|
-
* `want` will be ignored.
|
|
12
|
-
*
|
|
13
|
-
* @param {ZCF<{}>} zcf
|
|
14
|
-
*/
|
|
15
|
-
export function start(zcf: ZCF<{}>): {
|
|
16
|
-
creatorInvitation: Promise<Invitation<R, A>>;
|
|
17
|
-
publicFacet: {
|
|
18
|
-
getOffersCount: () => bigint;
|
|
19
|
-
makeInvitation: () => Promise<Invitation<R, A>>;
|
|
20
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
|
-
getOffersCount: () => bigint;
|
|
22
|
-
makeInvitation: () => Promise<Invitation<R, A>>;
|
|
23
|
-
}>;
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=automaticRefund.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automaticRefund.d.ts","sourceRoot":"","sources":["automaticRefund.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,2BAFW,IAAI,EAAE,CAAC;;;;;;;;;EAqBjB"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Autoswap is a rewrite of Uniswap. Please see the documentation for
|
|
3
|
-
* more https://agoric.com/documentation/zoe/guide/contracts/autoswap.html
|
|
4
|
-
*
|
|
5
|
-
* When the contract is instantiated, the two tokens (Central and Secondary) are
|
|
6
|
-
* specified in the issuerKeywordRecord. There is no behavioral difference
|
|
7
|
-
* between the two when trading; the names were chosen for consistency with our
|
|
8
|
-
* constant product AMM. When trading, use the keywords In and Out to specify
|
|
9
|
-
* the amount to be paid in, and the amount to be received.
|
|
10
|
-
*
|
|
11
|
-
* When adding or removing liquidity, the amounts deposited must be in
|
|
12
|
-
* proportion to the current balances in the pool. The amount of the Central
|
|
13
|
-
* asset is used as the basis. The Secondary assets must be added in proportion.
|
|
14
|
-
* If less Secondary is provided than required, we refuse the offer. If more is
|
|
15
|
-
* provided than is required, we return the excess.
|
|
16
|
-
*
|
|
17
|
-
* Before trading can take place, it is necessary to add liquidity using
|
|
18
|
-
* makeAddLiquidityInvitation(). Separate invitations are available for adding
|
|
19
|
-
* and removing liquidity, and for doing swaps. Other API operations support
|
|
20
|
-
* price checks and checking the size of the liquidity pool.
|
|
21
|
-
*
|
|
22
|
-
* The swap operation requires either the input amount or the output amount to
|
|
23
|
-
* be specified. makeSwapInInvitation treats the give amount as definitive,
|
|
24
|
-
* while makeSwapOutInvitation honors the want amount. With swapIn, a want
|
|
25
|
-
* amount can be specified, and if the offer can't be satisfied, the offer will
|
|
26
|
-
* be refunded. Similarly with swapOut, the want amount will be satisfied if
|
|
27
|
-
* possible. If more is provided as the give amount than necessary, the excess
|
|
28
|
-
* will be refunded. If not enough is provided, the offer will be refunded.
|
|
29
|
-
*
|
|
30
|
-
* The publicFacet can make new invitations (makeSwapInInvitation,
|
|
31
|
-
* makeSwapOutInvitation, makeAddLiquidityInvitation, and
|
|
32
|
-
* makeRemoveLiquidityInvitation), tell how much would be paid for a given input
|
|
33
|
-
* (getInputPrice), or how much would be earned by depositing a specified amount
|
|
34
|
-
* (getOutputPrice). In addition, there are requests for the LiquidityIssuer
|
|
35
|
-
* (getLiquidityIssuer), the current outstanding liquidity (getLiquiditySupply),
|
|
36
|
-
* and the current balances in the pool (getPoolAllocation).
|
|
37
|
-
*
|
|
38
|
-
* @param {ZCF} zcf
|
|
39
|
-
*/
|
|
40
|
-
export function start(zcf: ZCF): Promise<{
|
|
41
|
-
publicFacet: AutoswapPublicFacet;
|
|
42
|
-
}>;
|
|
43
|
-
//# sourceMappingURL=autoswap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoswap.d.ts","sourceRoot":"","sources":["autoswap.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,2BAFW,GAAG;;GAoVb"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This Barter Exchange accepts offers to trade arbitrary goods for other
|
|
3
|
-
* things. It doesn't require registration of Issuers. If two offers satisfy
|
|
4
|
-
* each other, it exchanges the specified amounts in each side's want clause.
|
|
5
|
-
* https://agoric.com/documentation/zoe/guide/contracts/barter-exchange.html
|
|
6
|
-
*
|
|
7
|
-
* The Barter Exchange only accepts offers that look like
|
|
8
|
-
* { give: { In: amount }, want: { Out: amount} }
|
|
9
|
-
* The want amount will be matched, while the give amount is a maximum. Each
|
|
10
|
-
* successful trader gets their `want` and may trade with counter-parties who
|
|
11
|
-
* specify any amount up to their specified `give`.
|
|
12
|
-
*
|
|
13
|
-
* @param {ZCF} zcf
|
|
14
|
-
*/
|
|
15
|
-
export function start(zcf: ZCF): {
|
|
16
|
-
publicFacet: {
|
|
17
|
-
makeInvitation: () => Promise<Invitation<R, A>>;
|
|
18
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
19
|
-
makeInvitation: () => Promise<Invitation<R, A>>;
|
|
20
|
-
}>;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=barterExchange.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"barterExchange.d.ts","sourceRoot":"","sources":["barterExchange.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,2BAFW,GAAG;;;;;;EA+Gb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calculateShares.d.ts","sourceRoot":"","sources":["calculateShares.js"],"names":[],"mappings":"AAeqB,0KAyBN"}
|