You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* incorporate split change logic
* incorporate split change logic
* incorporate split change logic
* minor modification to change combine logic
* minor modification to change combine logic
* minor modification to change combine logic
* integrate diff changes
* integrate diff changes and remove unused functions
* add change split test case. Modify txbuilder logic in handeling splits.
* Bump pytest from 7.0.1 to 7.1.1
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.0.1 to 7.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@7.0.1...7.1.1)
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected]>
* replace max fee with more accurately estimated fees
* replace max fee with more precise fee estimation
* remove max fee import
* modify format to be consistent with code base
* supports utxo queries using kupo
* support utxo query with Kupo
* reformat
* query utxo with Kupo when kupo url is provided
* remove the hardcoded genesis utxo in test_all file
* Create usage guides for Plutus and fix hyperlinks
* create separate section for datum/redeemer serialiation
* add -f flag to try to clean up the build if it exists
* Create usage guides for Plutus and fix hyperlinks
* create separate section for datum/redeemer serialiation
* add -f flag to try to clean up the build if it exists
* hdwallet implementation and unit test
* modify poetry
* modify poetry file
* modify poetry lock
* made changes to hdwallet and incorporated into bip32
* remove commented code block
* support utxo query with kupo
* move test_bip32
* update utxo query with kupo
* update plutus guide with vasil
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Yuanheng Wang <[email protected]>
Co-authored-by: Yuanheng Wang <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/source/guides/plutus.rst
+68Lines changed: 68 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -161,3 +161,71 @@ Taker/Unlocker provides collateral. Collateral has been introduced in Alonzo tra
161
161
162
162
The funds locked in script address is successfully retrieved to the taker address.
163
163
164
+
-------------
165
+
Vasil Upgrade
166
+
-------------
167
+
As part of the Basho phase of Cardano roadmap, the Vasil upgrade brings new capabilities on Plutus, namely reference inputs, inline datums, reference scripts, collateral output and Plutus V2 primitives.
168
+
169
+
- **Reference inputs** (`CIP-31 <https://cips.cardano.org/cips/cip31/>`_): This upgrade enables data sharing on-chain. Previously, datums were carried in transaction outputs; they stored and provided access to information on the blockchain. However, to access information in this datum, one had to spend the output that the datum was attached to. This required the re-creation of a spent output. The addition of reference inputs now allows developers to look at the datum without extra steps. This facilitates access to information stored on the blockchain without the need for spending and re-creating UTXOs. This can be useful for oracles and other use cases where state need to be inspected.
170
+
171
+
- **Inline datums** (`CIP-32 <https://cips.cardano.org/cips/cip32/>`_): Transaction datums were previously attached to outputs as hashes. With the implementation of inline datums, developers can now create scripts and attach datums directly to outputs instead of using their hashes. This simplifies how datums are used – a user can see the actual datum rather than supply it to match the given hash.
172
+
173
+
- **Reference scripts** (`CIP-33 <https://cips.cardano.org/cips/cip33/>`_): In Alonzo, when spending an output locked within a Plutus script, one had to include the script in the spending transaction. This increased the size of the script and caused certain delays in its processing. The reference scripts upgrade allows developers to reference a script without including it in each transaction. This significantly reduces transaction size, improves throughput, and reduces script execution costs (since the script only needs to be paid for once).
174
+
175
+
- **Explicit collateral output** (`CIP-40 <https://cips.cardano.org/cips/cip40/>`_): Transactions that call Plutus smart contracts are required to put up collateral to cover the potential cost of smart contract execution failure. If contract execution fails during phase 2 validation, all the funds stored in the chose UTXO for the collateral will be lost. After Vasil, user can specify a change address for the script collateral. If the script fails phase-2 validation, only the collateral amount will be taken, and the remaining funds will be sent to the change address.
176
+
177
+
- **Plutus V2 scripts**: The Vasil upgrade includes a new cost model that's lower than before, and developers will be able to see redeemers for all inputs rather than just the one being passed to the currently executing script.
178
+
179
+
Using the same FortyTwo example, now in Vasil, we show how reference scripts can be used. Reference script exists at a particular transaction output, and it can be used to witness UTxO at the corresponding script address::
With inline datum, we no longer have to include a datum within our transaction for our plutus spending scripts. Instead we can specify the transaction output where our datum exists to be used in conjunction with our Plutus spending script. This reduces the overall size of our transaction::
217
+
218
+
>>> utxo_to_spend = None
219
+
>>> # Speed the utxo that has both inline script and inline datum
220
+
>>> for utxo in chain_context.utxos(str(script_address)):
0 commit comments