Skip to content

Commit

Permalink
chore: repair changed dropped from smartWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Jan 18, 2024
1 parent 017772d commit 51b96eb
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/smart-wallet/src/smartWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ export const prepareSmartWallet = (baggage, shared) => {
onFulfilled: M.call(updateShape, NotifierShape).returns(),
onRejected: M.call(M.any(), NotifierShape).returns(M.promise()),
});

const prepareAmountWatcher = () =>
prepareExoClass(
baggage,
Expand Down Expand Up @@ -420,20 +421,22 @@ export const prepareSmartWallet = (baggage, shared) => {
M.or(M.record(), M.undefined()),
).returns(M.promise()),
purseForBrand: M.call(BrandShape).returns(M.promise()),
logWalletInfo: M.call(M.any()).returns(),
logWalletError: M.call(M.any()).returns(),
// XXX is there a tighter guard for a bigMapStore than M.any()?
getLiveOfferPayments: M.call().returns(M.any()),
logWalletInfo: M.call().rest(M.arrayOf(M.any())).returns(),
logWalletError: M.call().rest(M.arrayOf(M.any())).returns(),
getLiveOfferPayments: M.call().returns(M.remotable('mapStore')),
}),

deposit: M.interface('depositFacetI', {
receive: M.callWhen(M.await(M.eref(PaymentShape))).returns(AmountShape),
}),
payments: M.interface('payments support', {
withdrawGive: M.call(AmountKeywordRecordShape).returns(
PaymentPKeywordRecordShape,
),
tryReclaimingWithdrawnPayments: M.call(M.string()).returns(M.promise()),
withdrawGive: M.call(
AmountKeywordRecordShape,
M.or(M.number(), M.string()),
).returns(PaymentPKeywordRecordShape),
tryReclaimingWithdrawnPayments: M.call(
M.or(M.number(), M.string()),
).returns(M.promise()),
}),
offers: M.interface('offers facet', {
executeOffer: M.call(shape.OfferSpec).returns(M.promise()),
Expand Down

0 comments on commit 51b96eb

Please sign in to comment.