Skip to content

Commit

Permalink
Redraw contract lifecycle images, remove the rest of the page (#6550)
Browse files Browse the repository at this point in the history
  • Loading branch information
zliu41 authored Oct 10, 2024
1 parent fb82893 commit 719bd73
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ This transaction needs to do the following:
- Set a validity interval that starts no earlier than the auction's end time.

The off-chain code for building and submitting this transaction will be very similar to the code for the bidding transactions, so the details are left as an exercise.

Illustration of this transaction:

![Settlement](../../../static/img/tx4.png)
4 changes: 4 additions & 0 deletions doc/docusaurus/docs/auction-smart-contract/end-to-end/mint.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@ node mint-token-for-auction.mjs

and you should see a message "Minted a token at address ..." printed in the console.
Within a minute, you should be able to find the transaction using the transaction hash on [Cardanoscan](https://preview.cardanoscan.io/) and review its details.

Illustration of the minting transaction:

![Minting the token](../../../static/img/tx1.png)
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ node bid.mjs <minting-transaction-hash> bidder1 100000000
Replace `<minting-transaction-hash>` with the hash of the transaction we previously submitted for minting the token.
This hash is used by the off-chain code to locate the UTxO that contains the token.

Illustration of the first bid:

![First bid](../../../static/img/tx2.png)

After the first bidding transaction is confirmed, we can submit the second bid from bidder2, with a similar command:

```
Expand All @@ -53,6 +57,10 @@ node bid.mjs <bidder1-transaction-hash> bidder2 200000000

Replace `<bidder1-transaction-hash>` with the hash of the previous transaction.

Illustration of the second bid:

![Second bid](../../../static/img/tx3.png)

---

[^1]: Instead of including the script in the transaction, we can use a reference script, but to keep things simple, we won't discuss that here.
73 changes: 0 additions & 73 deletions doc/docusaurus/docs/auction-smart-contract/life-cycle.md

This file was deleted.

Binary file not shown.
Binary file removed doc/docusaurus/static/img/double-satisfaction.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added doc/docusaurus/static/img/tx1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/docusaurus/static/img/tx2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/docusaurus/static/img/tx3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/docusaurus/static/img/tx4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 719bd73

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Plutus Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.

Benchmark suite Current: 719bd73 Previous: fb82893 Ratio
validation-escrow-redeem_2-2 582.2 μs 402.1 μs 1.45
validation-escrow-redeem_2-3 583.7 μs 403.8 μs 1.45
validation-escrow-refund-1 222 μs 153.3 μs 1.45
validation-future-increase-margin-1 354.9 μs 246.7 μs 1.44
validation-future-increase-margin-2 768.9 μs 533.8 μs 1.44
validation-future-increase-margin-3 768.8 μs 581.5 μs 1.32
validation-future-increase-margin-4 699.2 μs 573.1 μs 1.22
validation-future-increase-margin-5 1154 μs 807 μs 1.43
validation-future-pay-out-1 354.4 μs 246.5 μs 1.44
validation-future-pay-out-2 766.3 μs 535 μs 1.43
validation-future-pay-out-3 767 μs 605.3 μs 1.27
validation-future-settle-early-4 864.6 μs 608.9 μs 1.42
validation-game-sm-success_1-1 551.1 μs 387 μs 1.42
validation-game-sm-success_1-2 285.4 μs 198.5 μs 1.44
validation-game-sm-success_1-3 913.5 μs 642.1 μs 1.42
validation-game-sm-success_1-4 330.7 μs 231.1 μs 1.43
validation-game-sm-success_2-1 553.1 μs 388.7 μs 1.42
validation-game-sm-success_2-2 285.7 μs 199.8 μs 1.43
validation-game-sm-success_2-3 919.2 μs 643.3 μs 1.43
validation-game-sm-success_2-4 294 μs 231.4 μs 1.27
validation-game-sm-success_2-5 729.3 μs 641.1 μs 1.14
validation-multisig-sm-1 516 μs 399.6 μs 1.29
validation-multisig-sm-2 548.8 μs 385.2 μs 1.42
validation-multisig-sm-3 558.3 μs 392.7 μs 1.42
validation-multisig-sm-4 561.2 μs 394.6 μs 1.42
validation-multisig-sm-5 789 μs 556.4 μs 1.42
validation-multisig-sm-8 557.8 μs 465.6 μs 1.20
validation-multisig-sm-9 561 μs 395 μs 1.42
validation-multisig-sm-10 788.5 μs 731 μs 1.08
validation-ping-pong-1 447.1 μs 331.2 μs 1.35
validation-ping-pong-2 390.8 μs 351.7 μs 1.11
validation-prism-2 588.5 μs 455.9 μs 1.29
validation-prism-3 528 μs 496.1 μs 1.06
validation-pubkey-1 203.1 μs 142.1 μs 1.43
validation-stablecoin_1-4 294.6 μs 248.7 μs 1.18
validation-stablecoin_1-5 1899 μs 1348 μs 1.41
validation-stablecoin_1-6 364.3 μs 256.2 μs 1.42
validation-stablecoin_2-1 1296 μs 911.8 μs 1.42
validation-stablecoin_2-2 278.7 μs 198.7 μs 1.40
validation-stablecoin_2-4 295.5 μs 266 μs 1.11
validation-decode-auction_1-1 274.5 μs 196.8 μs 1.39
validation-decode-auction_1-2 751.6 μs 533.1 μs 1.41
validation-decode-auction_1-3 752.5 μs 669.1 μs 1.12
validation-decode-crowdfunding-success-1 334.4 μs 314.5 μs 1.06
validation-decode-crowdfunding-success-2 335.6 μs 235.6 μs 1.42
validation-decode-crowdfunding-success-3 335.6 μs 263.4 μs 1.27
validation-decode-escrow-redeem_1-2 447.8 μs 368.1 μs 1.22
validation-decode-escrow-redeem_2-1 447.9 μs 315.6 μs 1.42
validation-decode-escrow-redeem_2-2 447.7 μs 397 μs 1.13
validation-decode-game-sm-success_1-3 699.8 μs 575.7 μs 1.22
validation-decode-game-sm-success_2-2 232.6 μs 196.7 μs 1.18
validation-decode-game-sm-success_2-5 726.6 μs 604.9 μs 1.20
validation-decode-game-sm-success_2-6 232 μs 163.4 μs 1.42
validation-decode-multisig-sm-1 827.1 μs 582.1 μs 1.42
validation-decode-multisig-sm-2 813.4 μs 583.6 μs 1.39
validation-decode-multisig-sm-3 815.1 μs 584.9 μs 1.39
validation-decode-multisig-sm-4 813.2 μs 584.7 μs 1.39
validation-decode-multisig-sm-5 812.9 μs 631.2 μs 1.29
validation-decode-stablecoin_1-2 232.1 μs 195 μs 1.19
nofib-clausify/formula1 4350 μs 4116 μs 1.06
nofib-clausify/formula4 36620 μs 33670 μs 1.09
nofib-clausify/formula5 77270 μs 73200 μs 1.06
marlowe-role-payout/195f522b596360690d04586a2563470f2214163435331a6622311f7323433f1c 241.8 μs 168.3 μs 1.44
marlowe-role-payout/1a20b465d48a585ffd622bd8dc26a498a3c12f930ab4feab3a5064cfb3bc536a 269.7 μs 205.7 μs 1.31
marlowe-role-payout/21a1426fb3fb3019d5dc93f210152e90b0a6e740ef509b1cdd423395f010e0ca 273.3 μs 250.4 μs 1.09
marlowe-role-payout/224ce46046fab9a17be4197622825f45cc0c59a6bd1604405148e43768c487ef 247.7 μs 172.3 μs 1.44
marlowe-role-payout/332c2b1c11383d1b373e1315201f1128010e0e1518332f273f141b23243f2a07 235.6 μs 164.4 μs 1.43
marlowe-role-payout/3565ee025317e065e8555eef288080276716366769aad89e03389f5ec4ce26d7 261 μs 181.9 μs 1.43
marlowe-role-payout/3569299fc986f5354d02e627a9eaa48ab46d5af52722307a0af72bae87e256dc 242.6 μs 169 μs 1.44
marlowe-role-payout/36866914aa07cf62ef36cf2cd64c7f240e3371e27bb9fff5464301678e809c40 243.5 μs 168.6 μs 1.44
marlowe-role-payout/371c10d2526fc0f09dbe9ed59e44dcd949270b27dc42035addd7ff9f7e0d05e7 295.8 μs 206.2 μs 1.43
marlowe-role-payout/3897ef714bba3e6821495b706c75f8d64264c3fdaa58a3826c808b5a768c303d 253.6 μs 177 μs 1.43
marlowe-role-payout/4121d88f14387d33ac5e1329618068e3848445cdd66b29e5ba382be2e02a174a 289.4 μs 201.4 μs 1.44
marlowe-role-payout/4299c7fcf093a5dbfe114c188e32ca199b571a7c25cb7f766bf49f12dab308be 268 μs 186.2 μs 1.44
marlowe-role-payout/452e17d16222a427707fa83f63ffb79f606cc25c755a18b1e3274c964ed5ec99 299.6 μs 208.8 μs 1.43
marlowe-role-payout/46f8d00030436e4da490a86b331fa6c3251425fb8c19556080e124d75bad7bd6 244.7 μs 170.7 μs 1.43
marlowe-role-payout/47364cfaf2c00f7d633283dce6cf84e4fd4e8228c0a0aa50e7c55f35c3ecaa1c 244.5 μs 170.8 μs 1.43
marlowe-role-payout/49b8275d0cb817be40865694ab05e3cfe5fc35fb43b78e7de68c1f3519b536bd 251.5 μs 177.4 μs 1.42
marlowe-role-payout/4dd7755b6ca1f0c9747c1fc0ee4da799f6f1c07108e980bd9f820911ad711ff2 326.1 μs 228.9 μs 1.42
marlowe-role-payout/4fbcfdb577a56b842d6f6938187a783f71d9da7519353e3da3ef0c564e1eb344 300.7 μs 211.2 μs 1.42
marlowe-role-payout/5a0725d49c733130eda8bc6ed5234f7f6ff8c9dd2d201e8806125e5fbcc081f9 257.8 μs 181.3 μs 1.42
marlowe-role-payout/5a2aae344e569a2c644dd9fa8c7b1f129850937eb562b7748c275f9e40bed596 243.9 μs 171.2 μs 1.42
marlowe-role-payout/5ade103e9530dd0d572fe1b053ea65ad925c6ebbe321e873ace8b804363fa82c 341.5 μs 238.5 μs 1.43
marlowe-role-payout/5d4c62a0671c65a14f6a15093e3efc4f1816d95a5a58fd92486bedaae8d9526b 284.5 μs 200.7 μs 1.42
marlowe-role-payout/5efe992e306e31cc857c64a62436ad2f9325acc5b4a74a8cebccdfd853ce63d2 252.5 μs 176.6 μs 1.43
marlowe-role-payout/622a7f3bc611b5149253c9189da022a9ff296f60a5b7c172a6dc286faa7284fa 293.7 μs 206.2 μs 1.42
marlowe-role-payout/6621a69217f09d91f42876a9c0cecf79de0e29bdd5b16c82c6c52cf959092ec4 269.8 μs 189.4 μs 1.42
marlowe-role-payout/674b0577409957172ad85223c765d17e94c27714276c49c38dfae0a47a561a1e 243.3 μs 168.8 μs 1.44
marlowe-role-payout/6b7bc2b9002a71b33cfd535d43f26334a283d0b9ad189b7cd74baac232c3b9fc 234 μs 164.5 μs 1.42

This comment was automatically generated by workflow using github-action-benchmark.

CC: @IntersectMBO/plutus-core

Please sign in to comment.