Skip to content

Commit

Permalink
chore(swap): generated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Mar 12, 2024
1 parent b0151da commit 7028fce
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions contract/test/snapshots/test-swap-wallet.js.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Snapshot report for `test/test-swap-wallet.js`

The actual snapshot is saved in `test-swap-wallet.js.snap`.

Generated by [AVA](https://avajs.dev).

## basic swap

> alice makes offer
{
id: 'alice-swap-1',
invitationSpec: {
instance: Object @Alleged: InstanceHandle {},
invitationArgs: [
[
Object @Alleged: BLD issuer {},
Object @Alleged: ZDEFAULT issuer {},
],
],
publicInvitationMaker: 'makeFirstInvitation',
source: 'contract',
},
offerArgs: {
addr: 'agoric1jack',
},
proposal: {
give: {
Fee: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 1n,
},
MagicBeans: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 5n,
},
},
want: {
Cow: {
brand: Object @Alleged: BLD brand {},
value: 10n,
},
},
},
}

> jack makes offer
{
id: 'jack-123',
invitationSpec: {
description: 'matchOffer',
instance: Object @Alleged: InstanceHandle {},
source: 'purse',
},
proposal: {
give: {
Cow: {
brand: Object @Alleged: BLD brand {},
value: 10n,
},
},
want: {
MagicBeans: {
brand: Object @Alleged: ZDEFAULT brand {},
value: 5n,
},
},
},
}
Binary file added contract/test/snapshots/test-swap-wallet.js.snap
Binary file not shown.

0 comments on commit 7028fce

Please sign in to comment.