Skip to content

0.7.0-beta1

Pre-release
Pre-release
Compare
Choose a tag to compare
@satran004 satran004 released this 08 Jan 07:54
· 2 commits to master since this release
6fb5988

Key Highlights

  1. New Wallet API (Preview)
    A wrapper around the existing Account API that provides the capability to scan multiple addresses under the same wallet for UTxOs. It also keeps track of the derivation path to find the correct signer based on UTxO selection and it's compatible with QuickTx api.

    Examples: For examples, please check these integration tests

    Note: This API is in preview. It should not be used in production yet.

  2. [CIP 129] Gov Identifiers Implementation
    Implementation of the CIP 129 standard for governance identifiers.

  3. New completeAndWaitAsync methods in the QuickTx API
    These methods return a CompletableFuture to enable asynchronous waiting, instead of the current blocking implementation:

    CompletableFuture<TxResult> completeAndWaitAsync() 
    CompletableFuture<TxResult> completeAndWaitAsync(Consumer<String> logConsumer)
    CompletableFuture<TxResult> completeAndWaitAsync(Consumer<String> logConsumer, Executor executor)
    CompletableFuture<TxResult> completeAndWaitAsync(Duration checkInterval, Consumer<String> logConsumer)
    CompletableFuture<TxResult> completeAndWaitAsync(Duration checkInterval, Consumer<String> logConsumer, Executor executor)
  4. Refactoring of Value class : To include new utility methods. add, subtract (#457)

  5. New methods in MetadataBuillder : To simplify the creation of different types of metadata (#467)

Breaking Change

  • TxSigner.sign method signature update:
    The TxSigner.sign method now requires a TxBuilderContext parameter. If you build a transaction first and then sign it with a TxSigner, you must include the TxBuilderContext as part of the signing process.

Existing Code:

        TxSigner signer = SignerProviders.signerFrom(sender);
        
        Transaction transaction = TxBuilderContext.init(utxoSupplier, protocolParamsSupplier)
                .build(builder);
                
        Transaction signedTxn = signer.sign(transaction);

New Code :

        TxSigner signer = SignerProviders.signerFrom(sender);

        var txContext = TxBuilderContext.init(utxoSupplier, protocolParamsSupplier);
        Transaction transaction = txContext
                .build(builder);

        Transaction signedTxn = signer.sign(txContext, transaction);

What's Changed

  • #466 Convert JSON object to CBORMetadataMap and JSON Array to CBORMetadataList / New methods in MetadataBuilder by @satran004 in #467
  • chore: renamed plus and minus to add and subtract, added utility methods by @nemo83 in #457
  • 213 provide hd wallet implementation by @Kammerlo in #363
  • #469 CIP 129 Gov Id implemenations by @satran004 in #472
  • Koios/Ogmios - IndexOutofBound exception for PlutusV3 cost models by @satran004 in #475
  • #446 Support for CompletableFuture in QuickTxBuilder by @satran004 in #476
  • Update intro.md by @juv in #478

New Contributors

  • @juv made their first contribution in #478

Full Changelog: v0.6.2...v0.7.0-beta1