diff --git a/backend-modules/koios/src/it/java/com/bloxbean/cardano/client/backend/koios/it/KoiosEpochServiceIT.java b/backend-modules/koios/src/it/java/com/bloxbean/cardano/client/backend/koios/it/KoiosEpochServiceIT.java index 722199f1..923aaa5f 100644 --- a/backend-modules/koios/src/it/java/com/bloxbean/cardano/client/backend/koios/it/KoiosEpochServiceIT.java +++ b/backend-modules/koios/src/it/java/com/bloxbean/cardano/client/backend/koios/it/KoiosEpochServiceIT.java @@ -108,6 +108,6 @@ void testGetLatestProtocolParameters() throws ApiException { assertThat(protocolParams.getCostModels().get("PlutusV1").size(), is(166)); assertThat(protocolParams.getCostModels().get("PlutusV2").size(), is(175)); - assertThat(protocolParams.getCostModels().get("PlutusV3").size(), is(251)); + assertThat(protocolParams.getCostModels().get("PlutusV3").size(), greaterThan(251)); } } diff --git a/gradle.properties b/gradle.properties index 0fe9c2cf..f52d67cf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group = com.bloxbean.cardano artifactId = cardano-client-lib -version = 0.6.4-SNAPSHOT +version = 0.7.0-beta1 diff --git a/integration-test/src/it/java/com/bloxbean/cardano/client/function/ContractTxBuilderContextITTest.java b/integration-test/src/it/java/com/bloxbean/cardano/client/function/ContractTxBuilderContextITTest.java index b9d6dacc..b566ecc5 100644 --- a/integration-test/src/it/java/com/bloxbean/cardano/client/function/ContractTxBuilderContextITTest.java +++ b/integration-test/src/it/java/com/bloxbean/cardano/client/function/ContractTxBuilderContextITTest.java @@ -318,10 +318,11 @@ void customDatumCustomRedeemerGuessContractAndSumContract() throws CborSerializa TxSigner signer = SignerProviders.signerFrom(sender); + var txContext = TxBuilderContext.init(utxoSupplier, protocolParams); Transaction transaction = TxBuilderContext.init(utxoSupplier, protocolParams) .withSerializationEra(Era.Babbage) .build(builder); - Transaction signedTxn = signer.sign(transaction); + Transaction signedTxn = signer.sign(txContext, transaction); //Or build and sign in one call // Transaction signedTxn = TxBuilderContext.init(backendService) diff --git a/integration-test/src/it/java/com/bloxbean/cardano/client/function/StakeTransactionIT.java b/integration-test/src/it/java/com/bloxbean/cardano/client/function/StakeTransactionIT.java index f08701b2..d0ccacfd 100644 --- a/integration-test/src/it/java/com/bloxbean/cardano/client/function/StakeTransactionIT.java +++ b/integration-test/src/it/java/com/bloxbean/cardano/client/function/StakeTransactionIT.java @@ -219,7 +219,7 @@ void testStakeDelegation_addressKeyAsStakeKey() throws ApiException, CborSeriali .andThen(adjustChangeOutput(senderAddr1, 2)); TxSigner signer = SignerProviders.signerFrom(senderAccount1) - .andThen(transaction -> senderAccount1.signWithStakeKey(transaction)); + .andThen((context, transaction) -> senderAccount1.signWithStakeKey(transaction)); Transaction signedTransaction = TxBuilderContext.init(new DefaultUtxoSupplier(getBackendService().getUtxoService()), protocolParams) .buildAndSign(builder, signer); @@ -268,7 +268,7 @@ void testStakeDeRegistration_addressKeyAsStakeKey() throws ApiException, CborSer .andThen(adjustChangeOutput(senderAddr3, 2)); TxSigner signer = SignerProviders.signerFrom(senderAccount3) - .andThen(transaction -> TransactionSigner.INSTANCE.sign(transaction, stakeHdKeyPair)); + .andThen((context,transaction) -> TransactionSigner.INSTANCE.sign(transaction, stakeHdKeyPair)); Transaction signedTransaction = TxBuilderContext.init(new DefaultUtxoSupplier(getBackendService().getUtxoService()), protocolParams) .buildAndSign(builder, signer); @@ -319,7 +319,7 @@ void testStakeDelegationAnotherAccount() throws ApiException, CborSerializationE .andThen(adjustChangeOutput(senderAddr4, 2)); TxSigner signer = SignerProviders.signerFrom(senderAccount4) - .andThen(transaction -> senderAccount4.signWithStakeKey(transaction)); + .andThen((context,transaction) -> senderAccount4.signWithStakeKey(transaction)); Transaction signedTransaction = TxBuilderContext.init(new DefaultUtxoSupplier(getBackendService().getUtxoService()), protocolParams) .buildAndSign(builder, signer); @@ -365,8 +365,8 @@ void testWithdrawal() throws ApiException, CborSerializationException { .andThen(adjustChangeOutput(senderAddr5, 3)); TxSigner signer = SignerProviders.signerFrom(senderAccount5) - .andThen(transaction -> senderAccount5.signWithStakeKey(transaction)) - .andThen(transaction -> senderAccount6.signWithStakeKey(transaction)); + .andThen((context, transaction) -> senderAccount5.signWithStakeKey(transaction)) + .andThen((context,transaction) -> senderAccount6.signWithStakeKey(transaction)); Transaction signedTransaction = TxBuilderContext.init(new DefaultUtxoSupplier(getBackendService().getUtxoService()), protocolParams) .buildAndSign(builder, signer); @@ -471,8 +471,8 @@ void testStakeDelegation_scriptHashAsStakeKey() throws Exception { .andThen(adjustChangeOutput(delegationFeePaymentAddress, 3)); TxSigner signer = SignerProviders.signerFrom(delegationFeePaymentAccount) - .andThen(transaction -> TransactionSigner.INSTANCE.sign(transaction, policy.getPolicyKeys().get(0))) - .andThen(transaction -> TransactionSigner.INSTANCE.sign(transaction, policy.getPolicyKeys().get(1))); + .andThen((context, transaction) -> TransactionSigner.INSTANCE.sign(transaction, policy.getPolicyKeys().get(0))) + .andThen((context,transaction) -> TransactionSigner.INSTANCE.sign(transaction, policy.getPolicyKeys().get(1))); Transaction signedTransaction = TxBuilderContext.init(new DefaultUtxoSupplier(getBackendService().getUtxoService()), protocolParams) .buildAndSign(builder, signer); @@ -525,8 +525,8 @@ void testStakeDeRegistration_scriptHashAsStakeKey() throws ApiException, CborSer .andThen(adjustChangeOutput(senderAddr9, 3)); TxSigner signer = SignerProviders.signerFrom(senderAccount9) - .andThen(transaction -> TransactionSigner.INSTANCE.sign(transaction, policy.getPolicyKeys().get(0))) - .andThen(transaction -> TransactionSigner.INSTANCE.sign(transaction, policy.getPolicyKeys().get(1))); + .andThen((context, transaction) -> TransactionSigner.INSTANCE.sign(transaction, policy.getPolicyKeys().get(0))) + .andThen((context,transaction) -> TransactionSigner.INSTANCE.sign(transaction, policy.getPolicyKeys().get(1))); Transaction signedTransaction = TxBuilderContext.init(new DefaultUtxoSupplier(getBackendService().getUtxoService()), protocolParams) .buildAndSign(builder, signer);