repo stringlengths 5 53 | pr_number int32 1 321k | task_type stringclasses 2
values | issue_text stringlengths 0 81.2k | pr_title stringlengths 1 319 | pr_body stringlengths 0 105k | base_sha stringlengths 40 40 | head_sha stringlengths 40 40 | gold_diff stringlengths 0 202M | changed_files listlengths 0 100 | review_threads listlengths 0 100 | test_patch stringlengths 0 23.4M | merged bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
FuelLabs/fuels-rs | 1,599 | comment_to_fix | feat: add support for AWS KMS | ```suggestion
``` | 57dd2e5a6d490ce67b282ddee7f59491e5e0aa0b | a8c86ccbeff56a4a41cac703311ab6fb3baadf4f | diff --git a/packages/fuels-accounts/Cargo.toml b/packages/fuels-accounts/Cargo.toml
index 069b04ac8e..9948e36dfd 100644
--- a/packages/fuels-accounts/Cargo.toml
+++ b/packages/fuels-accounts/Cargo.toml
@@ -11,6 +11,10 @@ description = "Fuel Rust SDK accounts."
[dependencies]
async-trait = { workspace = true, defau... | [
"packages/fuels-accounts/Cargo.toml"
] | [
{
"comment": "```suggestion\r\n```",
"path": "packages/fuels-accounts/Cargo.toml",
"hunk": "@@ -11,6 +11,12 @@ description = \"Fuel Rust SDK accounts.\"\n \n [dependencies]\n async-trait = { workspace = true, default-features = false }\n+\n+# AWS KMS client",
"resolving_sha": "a8c86ccbeff56a4a41cac7... | true | ||
FuelLabs/fuels-rs | 1,599 | comment_to_fix | feat: add support for AWS KMS | We should either wrap the `AwsClient` or `pub use` it so that users can import the type without having to have the `aws-sdk-*` crates. | 57dd2e5a6d490ce67b282ddee7f59491e5e0aa0b | a8c86ccbeff56a4a41cac703311ab6fb3baadf4f | diff --git a/packages/fuels-accounts/src/kms/aws/wallet.rs b/packages/fuels-accounts/src/kms/aws/wallet.rs
new file mode 100644
index 0000000000..90d9992d8b
--- /dev/null
+++ b/packages/fuels-accounts/src/kms/aws/wallet.rs
@@ -0,0 +1,281 @@
+use crate::accounts_utils::try_provider_error;
+use crate::provider::Provider;... | [
"packages/fuels-accounts/src/kms/aws/wallet.rs"
] | [
{
"comment": "We should either wrap the `AwsClient` or `pub use` it so that users can import the type without having to have the `aws-sdk-*` crates.",
"path": "packages/fuels-accounts/src/kms/aws/wallet.rs",
"hunk": "@@ -0,0 +1,284 @@\n+use crate::accounts_utils::try_provider_error;\n+use crate::kms::aw... | true | ||
FuelLabs/fuels-rs | 1,599 | comment_to_fix | feat: add support for AWS KMS | I'd stop the test at the successful deployment of the contract using the aws wallet.
Testing whether transfers work for ordinary wallets is done elsewhere. | 57dd2e5a6d490ce67b282ddee7f59491e5e0aa0b | a8c86ccbeff56a4a41cac703311ab6fb3baadf4f | diff --git a/e2e/tests/aws.rs b/e2e/tests/aws.rs
new file mode 100644
index 0000000000..683c3bf103
--- /dev/null
+++ b/e2e/tests/aws.rs
@@ -0,0 +1,68 @@
+#[cfg(test)]
+mod tests {
+ use anyhow::Result;
+ use e2e::e2e_helpers::start_aws_kms;
+ use fuels::accounts::kms::AwsWallet;
+ use fuels::accounts::{Acco... | [
"e2e/tests/aws.rs"
] | [
{
"comment": "I'd stop the test at the successful deployment of the contract using the aws wallet. \r\n\r\nTesting whether transfers work for ordinary wallets is done elsewhere.",
"path": "e2e/tests/aws.rs",
"hunk": "@@ -0,0 +1,90 @@\n+#[cfg(test)]\n+mod tests {\n+ use anyhow::Result;\n+ use e2e::... | true | ||
FuelLabs/fuels-rs | 1,599 | comment_to_fix | feat: add support for AWS KMS | A bit shorter.
```suggestion
let total_base_balance = wallet.get_asset_balance(&AssetId::zeroed()).await?;
assert_eq!(total_base_balance, amount);
``` | 57dd2e5a6d490ce67b282ddee7f59491e5e0aa0b | a8c86ccbeff56a4a41cac703311ab6fb3baadf4f | diff --git a/e2e/tests/aws.rs b/e2e/tests/aws.rs
new file mode 100644
index 0000000000..683c3bf103
--- /dev/null
+++ b/e2e/tests/aws.rs
@@ -0,0 +1,68 @@
+#[cfg(test)]
+mod tests {
+ use anyhow::Result;
+ use e2e::e2e_helpers::start_aws_kms;
+ use fuels::accounts::kms::AwsWallet;
+ use fuels::accounts::{Acco... | [
"e2e/tests/aws.rs"
] | [
{
"comment": "A bit shorter.\r\n```suggestion\r\n let total_base_balance = wallet.get_asset_balance(&AssetId::zeroed()).await?;\r\n assert_eq!(total_base_balance, amount);\r\n```",
"path": "e2e/tests/aws.rs",
"hunk": "@@ -0,0 +1,90 @@\n+#[cfg(test)]\n+mod tests {\n+ use anyhow::Result;\... | true | ||
FuelLabs/fuels-rs | 1,599 | comment_to_fix | feat: add support for AWS KMS | You can import them from `fuels::*` better to try that way first since we're now committed to reexporting their types as part of our public API. | 57dd2e5a6d490ce67b282ddee7f59491e5e0aa0b | a8c86ccbeff56a4a41cac703311ab6fb3baadf4f | diff --git a/e2e/src/aws_kms.rs b/e2e/src/aws_kms.rs
new file mode 100644
index 0000000000..62a77ab052
--- /dev/null
+++ b/e2e/src/aws_kms.rs
@@ -0,0 +1,167 @@
+use fuels::accounts::kms::{
+ aws_config::{defaults, BehaviorVersion, Region},
+ aws_sdk_kms::{
+ config::Credentials,
+ types::{KeySpec, K... | [
"e2e/src/aws_kms.rs"
] | [
{
"comment": "You can import them from `fuels::*` better to try that way first since we're now committed to reexporting their types as part of our public API.",
"path": "e2e/src/aws_kms.rs",
"hunk": "@@ -0,0 +1,149 @@\n+use anyhow::Context;\n+use aws_sdk_kms::config::{Credentials, Region};",
"resolv... | true | ||
FuelLabs/fuels-rs | 1,599 | comment_to_fix | feat: add support for AWS KMS | These are fine to come directly from `aws_sdk_kms` instead of `fuels` since they're not part of the `fuels` public API. | 57dd2e5a6d490ce67b282ddee7f59491e5e0aa0b | a8c86ccbeff56a4a41cac703311ab6fb3baadf4f | diff --git a/e2e/src/aws_kms.rs b/e2e/src/aws_kms.rs
new file mode 100644
index 0000000000..62a77ab052
--- /dev/null
+++ b/e2e/src/aws_kms.rs
@@ -0,0 +1,167 @@
+use fuels::accounts::kms::{
+ aws_config::{defaults, BehaviorVersion, Region},
+ aws_sdk_kms::{
+ config::Credentials,
+ types::{KeySpec, K... | [
"e2e/src/aws_kms.rs"
] | [
{
"comment": "These are fine to come directly from `aws_sdk_kms` instead of `fuels` since they're not part of the `fuels` public API. ",
"path": "e2e/src/aws_kms.rs",
"hunk": "@@ -0,0 +1,149 @@\n+use anyhow::Context;\n+use aws_sdk_kms::config::{Credentials, Region};\n+use fuels::accounts::kms::{AwsClien... | true | ||
FuelLabs/fuels-rs | 1,599 | comment_to_fix | feat: add support for AWS KMS | I'd remove this, it's not the goal of this test, funding was tested above. | 57dd2e5a6d490ce67b282ddee7f59491e5e0aa0b | a8c86ccbeff56a4a41cac703311ab6fb3baadf4f | diff --git a/e2e/tests/aws.rs b/e2e/tests/aws.rs
new file mode 100644
index 0000000000..683c3bf103
--- /dev/null
+++ b/e2e/tests/aws.rs
@@ -0,0 +1,68 @@
+#[cfg(test)]
+mod tests {
+ use anyhow::Result;
+ use e2e::e2e_helpers::start_aws_kms;
+ use fuels::accounts::kms::AwsWallet;
+ use fuels::accounts::{Acco... | [
"e2e/tests/aws.rs"
] | [
{
"comment": "I'd remove this, it's not the goal of this test, funding was tested above.",
"path": "e2e/tests/aws.rs",
"hunk": "@@ -0,0 +1,76 @@\n+#[cfg(test)]\n+mod tests {\n+ use anyhow::Result;\n+ use e2e::e2e_helpers::start_aws_kms;\n+ use fuels::accounts::kms::AwsWallet;\n+ use fuels::a... | true | ||
FuelLabs/fuels-rs | 1,583 | issue_to_patch | Support new policies: Expiration and Owner
Support the new expiration policy, and transaction owner policy
https://github.com/FuelLabs/fuel-vm/pull/871
https://github.com/FuelLabs/fuel-vm/pull/872 | feat: add `expiration` transaction policy | closes: https://github.com/FuelLabs/fuels-rs/issues/1577
# Release notes
In this release, we:
- Added the `expiration` transaction policy. Now the user can limit until which block height the transaction is valid.
# Breaking Changes
- added `expiration: Option<u64>` field to `TxPolicies` struct
- `Transaction`... | bf125886ffe5df5d4f673cef951e806c24de4436 | 4e7bad9667dc25b932a71e8869349b2d54adaf43 | diff --git a/docs/src/calling-contracts/tx-policies.md b/docs/src/calling-contracts/tx-policies.md
index c02d839642..12eadfd2db 100644
--- a/docs/src/calling-contracts/tx-policies.md
+++ b/docs/src/calling-contracts/tx-policies.md
@@ -13,8 +13,9 @@ Where:
1. **Tip** - amount to pay the block producer to prioritize the... | [
"docs/src/calling-contracts/tx-policies.md",
"docs/src/custom-transactions/transaction-builders.md",
"e2e/tests/contracts.rs",
"e2e/tests/predicates.rs",
"e2e/tests/providers.rs",
"e2e/tests/scripts.rs",
"e2e/tests/wallets.rs",
"examples/contracts/src/lib.rs",
"examples/cookbook/src/lib.rs",
"pack... | [
{
"comment": "should we a setter `with_expiration` here, like we have for maturity",
"path": "packages/fuels-core/src/types/wrappers/transaction.rs",
"hunk": "@@ -248,6 +260,8 @@ pub trait Transaction:\n \n fn with_maturity(self, maturity: u32) -> Self;\n \n+ fn expiration(&self) -> Option<u64>;"... | diff --git a/e2e/tests/contracts.rs b/e2e/tests/contracts.rs
index b41ce21bb8..b2618a27bf 100644
--- a/e2e/tests/contracts.rs
+++ b/e2e/tests/contracts.rs
@@ -385,7 +385,7 @@ async fn mult_call_has_same_estimated_and_used_gas() -> Result<()> {
}
#[tokio::test]
-async fn contract_method_call_respects_maturity() -> R... | true |
FuelLabs/fuels-rs | 1,583 | comment_to_fix | feat: add `expiration` transaction policy | should we a setter `with_expiration` here, like we have for maturity | bf125886ffe5df5d4f673cef951e806c24de4436 | 4e7bad9667dc25b932a71e8869349b2d54adaf43 | diff --git a/packages/fuels-core/src/types/wrappers/transaction.rs b/packages/fuels-core/src/types/wrappers/transaction.rs
index 992aaa134d..6d673bf822 100644
--- a/packages/fuels-core/src/types/wrappers/transaction.rs
+++ b/packages/fuels-core/src/types/wrappers/transaction.rs
@@ -4,8 +4,8 @@ use async_trait::async_tr... | [
"packages/fuels-core/src/types/wrappers/transaction.rs"
] | [
{
"comment": "should we a setter `with_expiration` here, like we have for maturity",
"path": "packages/fuels-core/src/types/wrappers/transaction.rs",
"hunk": "@@ -248,6 +260,8 @@ pub trait Transaction:\n \n fn with_maturity(self, maturity: u32) -> Self;\n \n+ fn expiration(&self) -> Option<u64>;"... | true | ||
FuelLabs/fuels-rs | 1,583 | comment_to_fix | feat: add `expiration` transaction policy | At some point, we should discuss how we want to approach testing for features like this, where we cover various transaction and input types. It feels like the level of granularity here (and in other cases) might be higher than what we actually benefit from. | bf125886ffe5df5d4f673cef951e806c24de4436 | 4e7bad9667dc25b932a71e8869349b2d54adaf43 | diff --git a/e2e/tests/predicates.rs b/e2e/tests/predicates.rs
index 6759a2003e..e68b994e48 100644
--- a/e2e/tests/predicates.rs
+++ b/e2e/tests/predicates.rs
@@ -1245,3 +1245,80 @@ async fn predicate_configurables_in_blobs() -> Result<()> {
Ok(())
}
+
+#[tokio::test]
+async fn predicate_transfer_respects_matur... | [
"e2e/tests/predicates.rs"
] | [
{
"comment": "At some point, we should discuss how we want to approach testing for features like this, where we cover various transaction and input types. It feels like the level of granularity here (and in other cases) might be higher than what we actually benefit from.",
"path": "e2e/tests/predicates.rs",... | true | ||
FuelLabs/fuels-rs | 1,583 | comment_to_fix | feat: add `expiration` transaction policy | Why move away from `setup_program_test`? | bf125886ffe5df5d4f673cef951e806c24de4436 | 4e7bad9667dc25b932a71e8869349b2d54adaf43 | diff --git a/e2e/tests/contracts.rs b/e2e/tests/contracts.rs
index b41ce21bb8..b2618a27bf 100644
--- a/e2e/tests/contracts.rs
+++ b/e2e/tests/contracts.rs
@@ -385,7 +385,7 @@ async fn mult_call_has_same_estimated_and_used_gas() -> Result<()> {
}
#[tokio::test]
-async fn contract_method_call_respects_maturity() -> R... | [
"e2e/tests/contracts.rs"
] | [
{
"comment": "Why move away from `setup_program_test`? ",
"path": "e2e/tests/contracts.rs",
"hunk": "@@ -385,37 +385,57 @@ async fn mult_call_has_same_estimated_and_used_gas() -> Result<()> {\n }\n \n #[tokio::test]\n-async fn contract_method_call_respects_maturity() -> Result<()> {\n- setup_program_... | true | ||
FuelLabs/fuels-rs | 1,583 | comment_to_fix | feat: add `expiration` transaction policy | Why the manual block generation? | bf125886ffe5df5d4f673cef951e806c24de4436 | 4e7bad9667dc25b932a71e8869349b2d54adaf43 | diff --git a/e2e/tests/predicates.rs b/e2e/tests/predicates.rs
index 6759a2003e..e68b994e48 100644
--- a/e2e/tests/predicates.rs
+++ b/e2e/tests/predicates.rs
@@ -1245,3 +1245,80 @@ async fn predicate_configurables_in_blobs() -> Result<()> {
Ok(())
}
+
+#[tokio::test]
+async fn predicate_transfer_respects_matur... | [
"e2e/tests/predicates.rs"
] | [
{
"comment": "Why the manual block generation?",
"path": "e2e/tests/predicates.rs",
"hunk": "@@ -1000,6 +1000,7 @@ async fn tx_id_not_changed_after_adding_witnesses() -> Result<()> {\n tx.append_witness(witness2.into())?;\n let tx_id_after_witnesses = tx.id(chain_id);\n \n+ provider.produce_b... | true | ||
FuelLabs/fuels-rs | 1,574 | issue_to_patch | chore: use total_fee from the transaction status once refactoring exposes it | feat!: use `total_gas` and `total_fee` from tx status | closes: https://github.com/FuelLabs/fuels-rs/issues/1394
# Release notes
In this release, we:
- Expose the tx status from succeeded translations in higher level APIs. The tx status holds the `total_gas` and `total_fee` used.
# Summary
In this PR we expose the tx status from succeeded translations in our highe... | fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/docs/src/calling-contracts/cost-estimation.md b/docs/src/calling-contracts/cost-estimation.md
index 696cea4341..10eca39fa6 100644
--- a/docs/src/calling-contracts/cost-estimation.md
+++ b/docs/src/calling-contracts/cost-estimation.md
@@ -6,6 +6,8 @@ With the function `estimate_transaction_cost(tolerance: O... | [
"docs/src/calling-contracts/cost-estimation.md",
"e2e/tests/configurables.rs",
"e2e/tests/contracts.rs",
"e2e/tests/logs.rs",
"e2e/tests/predicates.rs",
"e2e/tests/providers.rs",
"e2e/tests/scripts.rs",
"e2e/tests/storage.rs",
"e2e/tests/types_contracts.rs",
"e2e/tests/types_predicates.rs",
"e2e... | [
{
"comment": "Might be better to add a name to the magic number, let's us remember just why we did the `-1` there without needing to add a comment on every occurrence.",
"path": "e2e/tests/predicates.rs",
"hunk": "@@ -173,12 +166,11 @@ async fn spend_predicate_coins_messages_basic() -> Result<()> {\n \n... | diff --git a/e2e/tests/configurables.rs b/e2e/tests/configurables.rs
index d9a002d56b..3bfb29997b 100644
--- a/e2e/tests/configurables.rs
+++ b/e2e/tests/configurables.rs
@@ -18,7 +18,8 @@ async fn contract_default_configurables() -> Result<()> {
LoadConfiguration::default(),
)?
.deploy_if_not_exists... | true |
FuelLabs/fuels-rs | 1,574 | comment_to_fix | feat!: use `total_gas` and `total_fee` from tx status | Might be better to add a name to the magic number, let's us remember just why we did the `-1` there without needing to add a comment on every occurrence. | fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/e2e/tests/predicates.rs b/e2e/tests/predicates.rs
index e68b994e48..3c11e72c9b 100644
--- a/e2e/tests/predicates.rs
+++ b/e2e/tests/predicates.rs
@@ -115,7 +115,7 @@ async fn transfer_coins_and_messages_to_predicate() -> Result<()> {
let num_coins = 16;
let num_messages = 32;
let amount = 64... | [
"e2e/tests/predicates.rs"
] | [
{
"comment": "Might be better to add a name to the magic number, let's us remember just why we did the `-1` there without needing to add a comment on every occurrence.",
"path": "e2e/tests/predicates.rs",
"hunk": "@@ -173,12 +166,11 @@ async fn spend_predicate_coins_messages_basic() -> Result<()> {\n \n... | true | ||
FuelLabs/fuels-rs | 1,574 | comment_to_fix | feat!: use `total_gas` and `total_fee` from tx status | We should probably mention in the release notes somewhere, and maybe the pub docs of `TransactionCost` that the `gas_used` is now the total gas, including both script gas and regular gas.
Otherwise, someone might get surprised by the bump.
Also, since we're reporting details such as `metered_bytes_size`, we might... | fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/examples/contracts/src/lib.rs b/examples/contracts/src/lib.rs
index b1f067f4a8..09ca507801 100644
--- a/examples/contracts/src/lib.rs
+++ b/examples/contracts/src/lib.rs
@@ -50,7 +50,8 @@ mod tests {
LoadConfiguration::default(),
)?
.deploy(&wallet, TxPolicies::default())
- ... | [
"examples/contracts/src/lib.rs"
] | [
{
"comment": "We should probably mention in the release notes somewhere, and maybe the pub docs of `TransactionCost` that the `gas_used` is now the total gas, including both script gas and regular gas.\r\n\r\nOtherwise, someone might get surprised by the bump.\r\n\r\nAlso, since we're reporting details such as ... | true | ||
FuelLabs/fuels-rs | 1,574 | comment_to_fix | feat!: use `total_gas` and `total_fee` from tx status | Make it non exhaustive? | fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/packages/fuels-core/src/types/tx_response.rs b/packages/fuels-core/src/types/tx_response.rs
new file mode 100644
index 0000000000..e298fd4f41
--- /dev/null
+++ b/packages/fuels-core/src/types/tx_response.rs
@@ -0,0 +1,8 @@
+use super::tx_status::Success;
+use fuel_tx::TxId;
+
+#[derive(Clone, Debug)]
+pub ... | [
"packages/fuels-core/src/types/tx_response.rs"
] | [
{
"comment": "Make it non exhaustive?",
"path": "packages/fuels-core/src/types/tx_response.rs",
"hunk": "@@ -0,0 +1,19 @@\n+use fuel_tx::{Receipt, TxId};\n+\n+use crate::sealed::Sealed;\n+\n+#[derive(Clone, Debug)]\n+pub struct TxResponse<T: TxResponseType = TxId> {",
"resolving_sha": "b58623202acba... | true | ||
FuelLabs/fuels-rs | 1,574 | comment_to_fix | feat!: use `total_gas` and `total_fee` from tx status | Some thoughts on the new struct:
I'd go for a `Option<TxResponse>`, since there is no case where you can have a tx response without having the id of the submitted transaction.
Maybe even a `Option<TxStatus>` and a `Option<TxId>` instead of the tx response.
Or, perhaps have the `TxStatus::Success` be a newtype... | fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/packages/fuels-programs/src/responses/call.rs b/packages/fuels-programs/src/responses/call.rs
index 91ebcf102c..f8041e7559 100644
--- a/packages/fuels-programs/src/responses/call.rs
+++ b/packages/fuels-programs/src/responses/call.rs
@@ -1,57 +1,32 @@
use std::fmt::Debug;
-use fuel_tx::{Bytes32, Receipt... | [
"packages/fuels-programs/src/responses/call.rs"
] | [
{
"comment": "Some thoughts on the new struct:\r\n\r\nI'd go for a `Option<TxResponse>`, since there is no case where you can have a tx response without having the id of the submitted transaction.\r\n\r\nMaybe even a `Option<TxStatus>` and a `Option<TxId>` instead of the tx response. \r\n\r\nOr, perhaps have th... | true | ||
FuelLabs/fuels-rs | 1,574 | comment_to_fix | feat!: use `total_gas` and `total_fee` from tx status | ```suggestion
> **Note** `script_gas` refers to the part of the gas spent on the script execution.
``` | fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/docs/src/calling-contracts/cost-estimation.md b/docs/src/calling-contracts/cost-estimation.md
index 696cea4341..10eca39fa6 100644
--- a/docs/src/calling-contracts/cost-estimation.md
+++ b/docs/src/calling-contracts/cost-estimation.md
@@ -6,6 +6,8 @@ With the function `estimate_transaction_cost(tolerance: O... | [
"docs/src/calling-contracts/cost-estimation.md"
] | [
{
"comment": "```suggestion\r\n> **Note** `script_gas` refers to the part of the gas spent on the script execution.\r\n```",
"path": "docs/src/calling-contracts/cost-estimation.md",
"hunk": "@@ -6,6 +6,8 @@ With the function `estimate_transaction_cost(tolerance: Option<f64>, block_horiz\n {{#include ../... | true | ||
FuelLabs/fuels-rs | 1,574 | comment_to_fix | feat!: use `total_gas` and `total_fee` from tx status | Maybe, for consistency's sake, extract this into a struct as well? | fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/packages/fuels-core/src/types/tx_status.rs b/packages/fuels-core/src/types/tx_status.rs
index c5dff11402..daf65addb3 100644
--- a/packages/fuels-core/src/types/tx_status.rs
+++ b/packages/fuels-core/src/types/tx_status.rs
@@ -15,43 +15,91 @@ use crate::{
types::errors::{transaction::Reason, Error, Res... | [
"packages/fuels-core/src/types/tx_status.rs"
] | [
{
"comment": "Maybe, for consistency's sake, extract this into a struct as well?",
"path": "packages/fuels-core/src/types/tx_status.rs",
"hunk": "@@ -15,11 +15,16 @@ use crate::{\n types::errors::{transaction::Reason, Error, Result},\n };\n \n+#[derive(Debug, Clone)]\n+pub struct Success {\n+ pub... | true | ||
FuelLabs/fuels-rs | 1,574 | comment_to_fix | feat!: use `total_gas` and `total_fee` from tx status | we might forget what this -1 was after a while | fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/e2e/tests/predicates.rs b/e2e/tests/predicates.rs
index e68b994e48..3c11e72c9b 100644
--- a/e2e/tests/predicates.rs
+++ b/e2e/tests/predicates.rs
@@ -115,7 +115,7 @@ async fn transfer_coins_and_messages_to_predicate() -> Result<()> {
let num_coins = 16;
let num_messages = 32;
let amount = 64... | [
"e2e/tests/predicates.rs"
] | [
{
"comment": "we might forget what this -1 was after a while",
"path": "e2e/tests/predicates.rs",
"hunk": "@@ -115,7 +115,7 @@ async fn transfer_coins_and_messages_to_predicate() -> Result<()> {\n let num_coins = 16;\n let num_messages = 32;\n let amount = 64;\n- let total_balance = (num_... | true | ||
FuelLabs/fuels-rs | 1,574 | comment_to_fix | feat!: use `total_gas` and `total_fee` from tx status | `Reason::SqueezedOut` is misplaced.
IMO the error message doesn't need to convey details about how structures are processed internally ("cannot take x from y").
Something like `transactions was not yet included` contains just enough info.
| fcf2acb6fb1a84c9afb44f3e6c8c57b11f14df65 | b58623202acbad229c2838b3e97e593d29e7c02d | diff --git a/packages/fuels-core/src/types/tx_status.rs b/packages/fuels-core/src/types/tx_status.rs
index c5dff11402..daf65addb3 100644
--- a/packages/fuels-core/src/types/tx_status.rs
+++ b/packages/fuels-core/src/types/tx_status.rs
@@ -15,43 +15,91 @@ use crate::{
types::errors::{transaction::Reason, Error, Res... | [
"packages/fuels-core/src/types/tx_status.rs"
] | [
{
"comment": "`Reason::SqueezedOut` is misplaced. \r\n\r\nIMO the error message doesn't need to convey details about how structures are processed internally (\"cannot take x from y\").\r\nSomething like `transactions was not yet included` contains just enough info.\r\n\r\n\r\n",
"path": "packages/fuels-core... | true | ||
FuelLabs/fuels-ts | 3,920 | issue_to_patch | chore: deprecate helpers related to `InvocationScope` | # Release notes
In this release, we:
- Deprecate function signature in `InvocationScope` helper methods
# Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire PR** myself (preferably,... | 55ad0034ccd96ccacdd1861277baec706ccb1ed5 | c2b188bcbde2b570e439cb0adcf36c4d526e0091 | diff --git a/.changeset/lazy-coins-tease.md b/.changeset/lazy-coins-tease.md
new file mode 100644
index 00000000000..0b0dd20a414
--- /dev/null
+++ b/.changeset/lazy-coins-tease.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/program": patch
+---
+
+chore: deprecate helpers related to `InvocationScope`
diff --git a/packages/program/... | [
".changeset/lazy-coins-tease.md",
"packages/program/src/contract-call-script.ts",
"packages/program/src/response.ts",
"packages/program/src/script-request.ts"
] | [] | true | ||
FuelLabs/fuels-ts | 3,903 | issue_to_patch | chore: Upgraded `forc` to `0.66.8` | # Release notes
In this release, we:
- Upgraded `forc` to `0.68.6`
# Checklist
- [X] All **changes** are **covered** by **tests** (or not applicable)
- [X] All **changes** are **documented** (or not applicable)
- [X] I **reviewed** the **entire PR** myself (preferably, on GH UI)
- [X] I **described** all... | d8073855d7fc28439941c5242d1acae41cb65b32 | ead0b6824478cdf96e872403e007dd9cd0b9dff5 | diff --git a/.changeset/lucky-needles-greet.md b/.changeset/lucky-needles-greet.md
new file mode 100644
index 00000000000..9651dc9e21d
--- /dev/null
+++ b/.changeset/lucky-needles-greet.md
@@ -0,0 +1,7 @@
+---
+"@fuel-ts/abi-typegen": patch
+"@fuel-ts/versions": patch
+"@internal/forc": patch
+---
+
+chore: Upgraded `f... | [
".changeset/lucky-needles-greet.md",
"apps/create-fuels-counter-guide/fuel-toolchain.toml",
"internal/forc/VERSION",
"packages/abi-typegen/test/fixtures/templates/contract-with-configurable/main.hbs",
"packages/abi-typegen/test/fixtures/templates/contract/main.hbs",
"packages/abi-typegen/test/fixtures/tem... | [] | diff --git a/packages/abi-typegen/test/fixtures/templates/contract-with-configurable/main.hbs b/packages/abi-typegen/test/fixtures/templates/contract-with-configurable/main.hbs
index d6840c81bd4..3fb509316be 100644
--- a/packages/abi-typegen/test/fixtures/templates/contract-with-configurable/main.hbs
+++ b/packages/abi... | true | |
FuelLabs/fuels-ts | 3,514 | issue_to_patch | Make `Provider` initialization `sync` again
Looking back, I think making the `Provider` instantiation `async` may have been a mistake.
A few cons:
- Unnatural / Non-Standard
- Protected constructor
- Requires the parent function/context to be `async`
- Users have no control over when the first HTTP requests are... | feat!: making `provider` initialization `sync` again | <!-- LINEAR: closes TS-759 -->
<!-- LINEAR: relates to -->
- Closes #3509
# Release notes
In this release, we:
- Made `Provider` constructor `public` and `sync` again
# Summary
The first implementation got it backward, but now things are back in place:
- Constructor is `sync` and `public` again
... | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/.changeset/old-laws-film.md b/.changeset/old-laws-film.md
new file mode 100644
index 00000000000..e53b47c828f
--- /dev/null
+++ b/.changeset/old-laws-film.md
@@ -0,0 +1,11 @@
+---
+"@fuel-ts/contract": minor
+"@fuel-ts/account": minor
+"@fuel-ts/program": minor
+"@fuel-ts/recipes": minor
+"@fuel-ts/script"... | [
".changeset/old-laws-film.md",
"apps/create-fuels-counter-guide/src/main.tsx",
"apps/demo-typegen/src/demo.test.ts",
"apps/docs/.eslintrc.cjs",
"apps/docs/src/guide/contracts/snippets/call-parameters/forward.ts",
"apps/docs/src/guide/contracts/snippets/call-parameters/gas-fee.ts",
"apps/docs/src/guide/c... | [
{
"comment": "```suggestion\r\n baseAssetId,\r\n```",
"path": "apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts",
"hunk": "@@ -26,7 +28,7 @@ const amountToPredicate = 10_000_000;\n const fundPredicateTx = await sender.transfer(\n predicate.address,\n amountToPredicate,\n- pr... | diff --git a/apps/demo-typegen/src/demo.test.ts b/apps/demo-typegen/src/demo.test.ts
index f9b0c654d44..d52c7bf2383 100644
--- a/apps/demo-typegen/src/demo.test.ts
+++ b/apps/demo-typegen/src/demo.test.ts
@@ -169,11 +169,11 @@ test('Example predicate', async () => {
data: predicateData,
});
- const tx = awai... | true |
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
baseAssetId,
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts b/apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts
index 2b24bcefaa4..398185453d2 100644
--- a/apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts
+++ b/apps/docs/src/guide/predicates/snippets... | [
"apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts"
] | [
{
"comment": "```suggestion\r\n baseAssetId,\r\n```",
"path": "apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts",
"hunk": "@@ -26,7 +28,7 @@ const amountToPredicate = 10_000_000;\n const fundPredicateTx = await sender.transfer(\n predicate.address,\n amountToPredicate,\n- pr... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
baseAssetId
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts b/apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts
index 2b24bcefaa4..398185453d2 100644
--- a/apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts
+++ b/apps/docs/src/guide/predicates/snippets... | [
"apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts"
] | [
{
"comment": "```suggestion\r\n baseAssetId\r\n```",
"path": "apps/docs/src/guide/predicates/snippets/cookbook/transferring-assets.ts",
"hunk": "@@ -49,7 +51,7 @@ const amountToReceiver = 200;\n const transferFromPredicateTx = await predicate.transfer(\n receiver.address,\n amountToReceiver,\n- pr... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | Wouldn't changing these methods to be async make this PR a breaking change? I agree with the reasoning - they should be async. | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/packages/account/src/providers/provider.ts b/packages/account/src/providers/provider.ts
index 5f9ffe88f42..201c4dad7bf 100644
--- a/packages/account/src/providers/provider.ts
+++ b/packages/account/src/providers/provider.ts
@@ -465,7 +465,7 @@ export default class Provider {
* @param options - Addition... | [
"packages/account/src/providers/provider.ts"
] | [
{
"comment": "Wouldn't changing these methods to be async make this PR a breaking change? I agree with the reasoning - they should be async.",
"path": "packages/account/src/providers/provider.ts",
"hunk": "@@ -814,10 +811,11 @@ Supported fuel-core version: ${supportedVersion}.`\n *\n * @returns th... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
quantities: [{ amount, assetId: baseAssetId }],
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/packages/fuel-gauge/src/transaction-summary.test.ts b/packages/fuel-gauge/src/transaction-summary.test.ts
index b230bdd69da..06edf5d69eb 100644
--- a/packages/fuel-gauge/src/transaction-summary.test.ts
+++ b/packages/fuel-gauge/src/transaction-summary.test.ts
@@ -94,7 +94,7 @@ describe('TransactionSummary'... | [
"packages/fuel-gauge/src/transaction-summary.test.ts"
] | [
{
"comment": "```suggestion\r\n quantities: [{ amount, assetId: baseAssetId }],\r\n```",
"path": "packages/fuel-gauge/src/transaction-summary.test.ts",
"hunk": "@@ -824,7 +833,10 @@ describe('TransactionSummary', () => {\n fromType: AddressType.account,\n toType: AddressType.c... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
expect(operations[0].assetsSent?.[0].assetId).toEqual(baseAssetId);
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/packages/fuel-gauge/src/transaction-summary.test.ts b/packages/fuel-gauge/src/transaction-summary.test.ts
index b230bdd69da..06edf5d69eb 100644
--- a/packages/fuel-gauge/src/transaction-summary.test.ts
+++ b/packages/fuel-gauge/src/transaction-summary.test.ts
@@ -94,7 +94,7 @@ describe('TransactionSummary'... | [
"packages/fuel-gauge/src/transaction-summary.test.ts"
] | [
{
"comment": "```suggestion\r\n expect(operations[0].assetsSent?.[0].assetId).toEqual(baseAssetId);\r\n```",
"path": "packages/fuel-gauge/src/transaction-summary.test.ts",
"hunk": "@@ -856,7 +868,7 @@ describe('TransactionSummary', () => {\n expect(operations[0].to?.chain).toEqual(ChainName.e... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
const newBalance = await receiver.getBalance(assetId);
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/apps/docs/src/guide/transactions/snippets/transaction.ts b/apps/docs/src/guide/transactions/snippets/transaction.ts
index 312dcd9ccc1..1a429f759c0 100644
--- a/apps/docs/src/guide/transactions/snippets/transaction.ts
+++ b/apps/docs/src/guide/transactions/snippets/transaction.ts
@@ -6,16 +6,16 @@ import {
... | [
"apps/docs/src/guide/transactions/snippets/transaction.ts"
] | [
{
"comment": "```suggestion\r\nconst newBalance = await receiver.getBalance(assetId);\r\n```",
"path": "apps/docs/src/guide/transactions/snippets/transaction.ts",
"hunk": "@@ -6,16 +6,16 @@ import {\n WALLET_PVT_KEY_2,\n } from '../../../env';\n \n-const provider = await Provider.create(LOCAL_NETWORK_... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
assetId?: BytesLike,
```
Doesn't look like it needs to change | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/packages/account/src/account.ts b/packages/account/src/account.ts
index 60484577999..546c5c00c3a 100644
--- a/packages/account/src/account.ts
+++ b/packages/account/src/account.ts
@@ -56,13 +56,13 @@ export type TxParamsType = Pick<
export type TransferParams = {
destination: string | AbstractAddress;
... | [
"packages/account/src/account.ts"
] | [
{
"comment": "```suggestion\r\n assetId?: BytesLike,\r\n```\r\n\r\nDoesn't look like it needs to change",
"path": "packages/account/src/account.ts",
"hunk": "@@ -437,7 +440,7 @@ export class Account extends AbstractAccount {\n async transferToContract(\n contractId: string | AbstractAddress,\n ... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/packages/program/src/functions/base-invocation-scope.ts b/packages/program/src/functions/base-invocation-scope.ts
index 7312fdaec0c..a4f75a0598b 100644
--- a/packages/program/src/functions/base-invocation-scope.ts
+++ b/packages/program/src/functions/base-invocation-scope.ts
@@ -87,28 +87,19 @@ export clas... | [
"packages/program/src/functions/base-invocation-scope.ts"
] | [
{
"comment": "```suggestion\r\n```",
"path": "packages/program/src/functions/base-invocation-scope.ts",
"hunk": "@@ -318,11 +309,11 @@ export class BaseInvocationScope<TReturn = any> {\n */\n addTransfer(transferParams: TransferParams) {\n const { amount, destination, assetId } = transferParams... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
"fuels": patch
"create-fuels": patch
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/.changeset/old-laws-film.md b/.changeset/old-laws-film.md
new file mode 100644
index 00000000000..e53b47c828f
--- /dev/null
+++ b/.changeset/old-laws-film.md
@@ -0,0 +1,11 @@
+---
+"@fuel-ts/contract": minor
+"@fuel-ts/account": minor
+"@fuel-ts/program": minor
+"@fuel-ts/recipes": minor
+"@fuel-ts/script"... | [
".changeset/old-laws-film.md"
] | [
{
"comment": "```suggestion\r\n\"fuels\": patch\r\n\"create-fuels\": patch\r\n```",
"path": ".changeset/old-laws-film.md",
"hunk": "@@ -0,0 +1,10 @@\n+---\n+\"@fuel-ts/contract\": patch\n+\"@fuel-ts/account\": patch\n+\"@fuel-ts/program\": patch\n+\"@fuel-ts/recipes\": patch\n+\"@fuel-ts/script\": patch... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | Why was this skipped? | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/packages/account/src/providers/provider.test.ts b/packages/account/src/providers/provider.test.ts
index d9775e3252d..cf20f316843 100644
--- a/packages/account/src/providers/provider.test.ts
+++ b/packages/account/src/providers/provider.test.ts
@@ -91,7 +91,7 @@ describe('Provider', () => {
} = launche... | [
"packages/account/src/providers/provider.test.ts"
] | [
{
"comment": "Why was this skipped?",
"path": "packages/account/src/providers/provider.test.ts",
"hunk": "@@ -1131,22 +1132,22 @@ describe('Provider', () => {\n using launched = await setupTestProviderAndWallets();\n const { provider } = launched;\n \n- const gasConfig = provider.getGasConfig... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
const cacheIsPresent = !nodeInfo || !chain;
if (!ignoreCache && cacheIsPresent) {
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/packages/account/src/providers/provider.ts b/packages/account/src/providers/provider.ts
index 5f9ffe88f42..201c4dad7bf 100644
--- a/packages/account/src/providers/provider.ts
+++ b/packages/account/src/providers/provider.ts
@@ -465,7 +465,7 @@ export default class Provider {
* @param options - Addition... | [
"packages/account/src/providers/provider.ts"
] | [
{
"comment": "```suggestion\r\n const cacheIsPresent = !nodeInfo || !chain;\r\n if (!ignoreCache && cacheIsPresent) {\r\n```",
"path": "packages/account/src/providers/provider.ts",
"hunk": "@@ -611,40 +605,36 @@ export default class Provider {\n * @returns A promise that resolves to the Chain a... | true | ||
FuelLabs/fuels-ts | 3,514 | comment_to_fix | feat!: making `provider` initialization `sync` again | ```suggestion
feat!: making `provider` initialization `sync` again
``` | 10612b2605e3480b114a4384d9432590d6bbf900 | 5632de76624dbdfeaf1ffb446c8907775b60a7be | diff --git a/.changeset/old-laws-film.md b/.changeset/old-laws-film.md
new file mode 100644
index 00000000000..e53b47c828f
--- /dev/null
+++ b/.changeset/old-laws-film.md
@@ -0,0 +1,11 @@
+---
+"@fuel-ts/contract": minor
+"@fuel-ts/account": minor
+"@fuel-ts/program": minor
+"@fuel-ts/recipes": minor
+"@fuel-ts/script"... | [
".changeset/old-laws-film.md"
] | [
{
"comment": "```suggestion\r\nfeat!: making `provider` initialization `sync` again\r\n```",
"path": ".changeset/old-laws-film.md",
"hunk": "@@ -0,0 +1,11 @@\n+---\n+\"@fuel-ts/contract\": minor\n+\"@fuel-ts/account\": minor\n+\"@fuel-ts/program\": minor\n+\"@fuel-ts/recipes\": minor\n+\"@fuel-ts/script... | true | ||
FuelLabs/fuels-ts | 3,871 | issue_to_patch | `getAllDecodedLogs` Throws Error When `CALL` Receipt Does Not Exists
When decoding logs from a transaction, the helper [getAllDecodedLogs](https://github.com/FuelLabs/fuels-ts/blob/015c976c78e1968460e9960e700544e324b945c8/packages/account/src/providers/transaction-response/getAllDecodedLogs.ts#L41-L48) checks whether ... | fix: ensure contract call receipt exists when decoding logs | - Closes #3872
# Release notes
In this release, we:
- Fixed error with missing `CALL` receipt in `getAllDecodedLogs`
# Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire PR** my... | 03b151b1d9e9c20cec51d840256fb2cad20701b7 | 5a50e21a5c40db7a042896bbf7b87024dc5a5376 | diff --git a/.changeset/bright-steaks-wave.md b/.changeset/bright-steaks-wave.md
new file mode 100644
index 00000000000..6aed675dfc2
--- /dev/null
+++ b/.changeset/bright-steaks-wave.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": patch
+---
+
+fix: ensure contract call receipt exists when decoding logs
diff --git a/packa... | [
".changeset/bright-steaks-wave.md",
"packages/account/src/providers/transaction-response/getAllDecodedLogs.ts",
"packages/fuel-gauge/src/revert-error.test.ts"
] | [] | diff --git a/packages/fuel-gauge/src/revert-error.test.ts b/packages/fuel-gauge/src/revert-error.test.ts
index fa19a30dc5a..612b4703fed 100644
--- a/packages/fuel-gauge/src/revert-error.test.ts
+++ b/packages/fuel-gauge/src/revert-error.test.ts
@@ -1,11 +1,17 @@
import { ErrorCode, FuelError } from '@fuel-ts/errors';
... | true |
FuelLabs/fuels-ts | 3,953 | issue_to_patch | chore: migrate to npm oidc auth | # Release notes
In this release, we:
- Migrated NPM to use new OIDC-based flows for package publishing
# Summary
NPM has deprecated token-based publishing flows and is encouraging all publishers to migrate to OIDC-based authentication. This auth method uses the GitHub Actions workflow, repo name & env name ... | 78a100ad9a203946416730ef29af6bfb908b0fd7 | f0192e9b3cb9353199d50aab4a91800c293792e4 | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index edc919df02c..e41e1150a26 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -13,6 +13,11 @@ env:
VERCEL_TS_DOCS_PROJECT_ID: "prj_iBhTlkv2hj2E6BiA3GeacxgNHIEL"
VERCEL_TS_DOCS_API_PROJECT_ID: "prj_hBy... | [
".github/workflows/release.yaml"
] | [
{
"comment": "### Missing provenance configuration breaks OIDC npm authentication\n\n**High Severity**\n\n<!-- DESCRIPTION START -->\nThe migration to OIDC-based npm publishing removes `NODE_AUTH_TOKEN` but doesn't add the required provenance configuration. For npm OIDC authentication to work, either the `--pro... | true | ||
FuelLabs/fuels-ts | 3,953 | comment_to_fix | chore: migrate to npm oidc auth | ### Missing provenance configuration breaks OIDC npm authentication
**High Severity**
<!-- DESCRIPTION START -->
The migration to OIDC-based npm publishing removes `NODE_AUTH_TOKEN` but doesn't add the required provenance configuration. For npm OIDC authentication to work, either the `--provenance` flag or `NPM_CONFI... | 78a100ad9a203946416730ef29af6bfb908b0fd7 | f0192e9b3cb9353199d50aab4a91800c293792e4 | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index edc919df02c..e41e1150a26 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -13,6 +13,11 @@ env:
VERCEL_TS_DOCS_PROJECT_ID: "prj_iBhTlkv2hj2E6BiA3GeacxgNHIEL"
VERCEL_TS_DOCS_API_PROJECT_ID: "prj_hBy... | [
".github/workflows/release.yaml"
] | [
{
"comment": "### Missing provenance configuration breaks OIDC npm authentication\n\n**High Severity**\n\n<!-- DESCRIPTION START -->\nThe migration to OIDC-based npm publishing removes `NODE_AUTH_TOKEN` but doesn't add the required provenance configuration. For npm OIDC authentication to work, either the `--pro... | true | ||
FuelLabs/fuels-ts | 3,952 | issue_to_patch | ci(release): `v0.103.0` @ `master` | # Summary
In this release, we:
- Updated devnet chainId from 0 to 1119889111
# Breaking
- Features
- [#3951](https://github.com/FuelLabs/fuels-ts/pull/3951) - Update devnet Chain ID, by [@nelitow](https://github.com/nelitow)
---
# Migration Notes
## Features
### [#3951 - Update devnet Chain ID](https://github... | 014a606ad0260041a734b66dce78c9449566b258 | 79b0a6c3ed59b663929a510571a80083d6fa8dc3 | diff --git a/.changeset/chilly-pans-work.md b/.changeset/chilly-pans-work.md
deleted file mode 100644
index 1ccc4d543f6..00000000000
--- a/.changeset/chilly-pans-work.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@fuel-ts/account": minor
----
-
-feat!: Update devnet Chain ID
diff --git a/internal/check-imports/CHANGELOG.md b... | [
".changeset/chilly-pans-work.md",
"internal/check-imports/CHANGELOG.md",
"internal/check-imports/package.json",
"packages/abi-coder/CHANGELOG.md",
"packages/abi-coder/package.json",
"packages/abi-typegen/CHANGELOG.md",
"packages/abi-typegen/package.json",
"packages/account/CHANGELOG.md",
"packages/a... | [] | true | ||
FuelLabs/fuels-ts | 3,951 | issue_to_patch | feat!: Update devnet Chain ID | # Release notes
In this release, we:
- Updated devnet chainId from 0 to 1119889111
# Summary
This PR updates the devnet chainId constant from 0 to 1119889111 as part of the Fuel Ignition Sepolia Devnet chainId migration.
**Changes:**
- Updated `CHAIN_IDS.fuel.devnet` from `0` to `1119889111` in `packages/account/s... | 0e78414d505be4d01fdf1e1477afaeba9e244c34 | 23db2cd101974503fa2ba30b46eabf6c9fc9768b | diff --git a/.changeset/chilly-pans-work.md b/.changeset/chilly-pans-work.md
new file mode 100644
index 00000000000..1ccc4d543f6
--- /dev/null
+++ b/.changeset/chilly-pans-work.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": minor
+---
+
+feat!: Update devnet Chain ID
diff --git a/packages/account/src/providers/chains.ts ... | [
".changeset/chilly-pans-work.md",
"packages/account/src/providers/chains.ts"
] | [] | true | ||
FuelLabs/fuels-ts | 3,949 | issue_to_patch | ci(deps): bump actions/download-artifact from 4 to 6 | Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/download-artifact/releases">actions/download-artifact's releases</a>.</em></p>
<blockquote>
<h2>v6.0.0</h2>
<h2>What's Changed</... | 9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2 | 99a192633b5e8a7b4c5d107c921aecd6a03e14a0 | diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index a05291d72dd..b0bece23680 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -165,13 +165,13 @@ jobs:
run: mkdir -p coverage/environments
- name: Download Coverage Artifact for Node Tests
- us... | [
".github/workflows/test.yaml"
] | [] | true | ||
FuelLabs/fuels-ts | 3,936 | issue_to_patch | ci(release): `v0.102.0` @ `master` | # Summary
In this release, we:
- Undecodable logs will no longer throw errors on program calls
- Update fuel-core support to v0.47.1
- Add support to new policy owner
- Add logic and tests for support unknown policy types.
- Updated `fuel-core` to `0.44.0` and `@fuels/vm-asm` to `0.62.0`.
# Features
- [#3933](https... | 215f9f295c272b80de625aa4d18bdc71bd9a3308 | ec749e3ccabd7156a04f2fa6802c14e30c39ecec | diff --git a/.changeset/beige-days-listen.md b/.changeset/beige-days-listen.md
deleted file mode 100644
index 742a0787bf7..00000000000
--- a/.changeset/beige-days-listen.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@fuel-ts/contract": patch
----
-
-fix: configurables constants on createTransactionRequest not been set
diff -... | [
".changeset/beige-days-listen.md",
".changeset/full-carpets-lose.md",
".changeset/loud-months-change.md",
".changeset/shiny-laws-agree.md",
".changeset/sour-humans-judge.md",
"internal/check-imports/CHANGELOG.md",
"internal/check-imports/package.json",
"internal/fuel-core/CHANGELOG.md",
"internal/fu... | [] | true | ||
FuelLabs/fuels-ts | 3,933 | issue_to_patch | Ensure undecodable logs no longer throw an error on program calls
# Summary
The scenario is:
- Have an upgradable contract
- Upgrade the contract and change only its logs
- Send a transaction to the contract that succeeds, using the old ABI
- The SDK will throw, because even if the transaction was successful, it coul... | feat: ensure that undecodable logs no longer throw | - Closes #3932
# Release notes
In this release, we:
- Undecodable logs will no longer throw errors on program calls
# Summary
When we encounter an undecodable log, we will put the raw format within the logs in the following structure:
```ts
{
__decoded: false,
data: '0xff',
logId: '1... | c9e0c5a7b7e1c8295260e013df0720a2757f49d1 | 90df0341067aa7bb5be95127d4bacd870b7c8aa2 | diff --git a/.changeset/shiny-laws-agree.md b/.changeset/shiny-laws-agree.md
new file mode 100644
index 00000000000..30fd48f33f7
--- /dev/null
+++ b/.changeset/shiny-laws-agree.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": patch
+---
+
+feat: ensure that undecodable logs no longer throw
diff --git a/packages/account/src... | [
".changeset/shiny-laws-agree.md",
"packages/account/src/providers/transaction-response/getAllDecodedLogs.ts",
"packages/account/src/providers/transaction-response/getDecodedLogs.ts",
"packages/account/src/providers/utils/extract-tx-error.ts",
"packages/fuel-gauge/src/advanced-logging.test.ts"
] | [
{
"comment": "### Bug: Null Log Handling Causes TypeError\n\n<!-- **Medium Severity** -->\n\n<!-- DESCRIPTION START -->\nThe `decodedLogs` filter can throw a `TypeError` if a log entry is `null`. Although `typeof null === 'object'`, the `in` operator then fails when checking for `__decoded` on a `null` value, m... | diff --git a/packages/fuel-gauge/src/advanced-logging.test.ts b/packages/fuel-gauge/src/advanced-logging.test.ts
index c5390bbf67e..5f81842d3bd 100644
--- a/packages/fuel-gauge/src/advanced-logging.test.ts
+++ b/packages/fuel-gauge/src/advanced-logging.test.ts
@@ -1,6 +1,6 @@
import type { FuelError } from '@fuel-ts/e... | true |
FuelLabs/fuels-ts | 3,933 | comment_to_fix | feat: ensure that undecodable logs no longer throw | ### Bug: Null Log Handling Causes TypeError
<!-- **Medium Severity** -->
<!-- DESCRIPTION START -->
The `decodedLogs` filter can throw a `TypeError` if a log entry is `null`. Although `typeof null === 'object'`, the `in` operator then fails when checking for `__decoded` on a `null` value, making the error extraction ... | c9e0c5a7b7e1c8295260e013df0720a2757f49d1 | 90df0341067aa7bb5be95127d4bacd870b7c8aa2 | diff --git a/packages/account/src/providers/utils/extract-tx-error.ts b/packages/account/src/providers/utils/extract-tx-error.ts
index a6cb5723e63..f62565b8fb4 100644
--- a/packages/account/src/providers/utils/extract-tx-error.ts
+++ b/packages/account/src/providers/utils/extract-tx-error.ts
@@ -222,5 +222,14 @@ export... | [
"packages/account/src/providers/utils/extract-tx-error.ts"
] | [
{
"comment": "### Bug: Null Log Handling Causes TypeError\n\n<!-- **Medium Severity** -->\n\n<!-- DESCRIPTION START -->\nThe `decodedLogs` filter can throw a `TypeError` if a log entry is `null`. Although `typeof null === 'object'`, the `in` operator then fails when checking for `__decoded` on a `null` value, m... | true | ||
FuelLabs/fuels-ts | 3,950 | issue_to_patch | Upgrade fuel-core version to v0.47.1
This new version includes a new policy owner.
On this issue, we must:
- Ensure new policies do no break parsing to ensure they are future proof.
- Add parsing for the new policy owner. | feat: add support for fuel-core v0.47.1 | Closes #3948
# Release notes
In this release, we:
- Update fuel-core support to v0.47.1
- Add support to new policy owner
- Add logic and tests for support unknown policy types.
# Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [ ] All **changes** are **documented** ... | 7d78325af8a4875439824080b881383c61896b19 | d5858310d16ecb44bf21c19d8e69c9c30ac47e77 | diff --git a/.changeset/sour-humans-judge.md b/.changeset/sour-humans-judge.md
new file mode 100644
index 00000000000..e4483dec07c
--- /dev/null
+++ b/.changeset/sour-humans-judge.md
@@ -0,0 +1,8 @@
+---
+"@fuel-ts/transactions": patch
+"@internal/fuel-core": patch
+"@fuel-ts/versions": patch
+"@fuel-ts/account": patch... | [
".changeset/sour-humans-judge.md",
".github/workflows/pr-validate-changesets.yaml",
".github/workflows/publish-preview.yaml",
".github/workflows/release.yaml",
"apps/create-fuels-counter-guide/fuel-toolchain.toml",
"internal/fuel-core/VERSION",
"link-check.config.json",
"packages/account/src/providers... | [
{
"comment": "[nit] While not needed right now, it might be worth future proofing this to support u64's since that is the actual capacity of the policyTypes. >>> 0 is only u32.",
"path": "packages/transactions/src/coders/policy.ts",
"hunk": "@@ -61,6 +68,16 @@ function validateDuplicatedPolicies(polici... | diff --git a/packages/account/src/providers/transaction-request/transaction-request.test.ts b/packages/account/src/providers/transaction-request/transaction-request.test.ts
index 073b4597c90..f77bb6d01c0 100644
--- a/packages/account/src/providers/transaction-request/transaction-request.test.ts
+++ b/packages/account/s... | true |
FuelLabs/fuels-ts | 3,950 | comment_to_fix | feat: add support for fuel-core v0.47.1 | [nit] While not needed right now, it might be worth future proofing this to support u64's since that is the actual capacity of the policyTypes. >>> 0 is only u32. | 7d78325af8a4875439824080b881383c61896b19 | d5858310d16ecb44bf21c19d8e69c9c30ac47e77 | diff --git a/packages/transactions/src/coders/policy.ts b/packages/transactions/src/coders/policy.ts
index 1dcac8c7cf8..384a1569329 100644
--- a/packages/transactions/src/coders/policy.ts
+++ b/packages/transactions/src/coders/policy.ts
@@ -1,4 +1,4 @@
-import { BigNumberCoder, Coder, NumberCoder } from '@fuel-ts/abi-c... | [
"packages/transactions/src/coders/policy.ts"
] | [
{
"comment": "[nit] While not needed right now, it might be worth future proofing this to support u64's since that is the actual capacity of the policyTypes. >>> 0 is only u32.",
"path": "packages/transactions/src/coders/policy.ts",
"hunk": "@@ -61,6 +68,16 @@ function validateDuplicatedPolicies(polici... | true | ||
FuelLabs/fuels-ts | 3,946 | issue_to_patch | chore: remove codeowners | # Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire PR** myself (preferably, on GH UI)
- [x] I **described** all **Breaking Changes** (or there's none)
| 25bb824cc89bcc273f55fbf1d3e46818b85976b5 | 5036ade9a3a8391188841c46ce9e5db6a4612620 | diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index d199c3e5185..dd567eed513 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1,1 +1,1 @@
-* @Torres-ssf @petertonysmith94 @luizstacio @LuizAsFight @helciofranco @nelitow
+* @luizstacio @LuizAsFight @helciofranco @nelitow
| [
".github/CODEOWNERS"
] | [] | true | ||
FuelLabs/fuels-ts | 3,944 | issue_to_patch | fix: configurables constants on createTransactionRequest not been set | # Summary
ContractFactory.createTransactionRequest allows to pass configurableConstants, but does not use them. It is both confusing because the default ones will be used, and because the returned contract ID will not match with the one returned by the deploy method, which uses the configurables.
# Checklist
-... | e0e44221c489469e2bfa9467a138a04e4a4b906e | 182cb3b2ad74ce60c5e753ee1fd61c81506f0c4e | diff --git a/.changeset/beige-days-listen.md b/.changeset/beige-days-listen.md
new file mode 100644
index 00000000000..742a0787bf7
--- /dev/null
+++ b/.changeset/beige-days-listen.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/contract": patch
+---
+
+fix: configurables constants on createTransactionRequest not been set
diff --git... | [
".changeset/beige-days-listen.md",
".gitignore",
"packages/contract/src/contract-factory.ts",
"packages/fuel-gauge/src/contract-factory.test.ts"
] | [] | diff --git a/packages/fuel-gauge/src/contract-factory.test.ts b/packages/fuel-gauge/src/contract-factory.test.ts
index 892143083ad..6191a4ca577 100644
--- a/packages/fuel-gauge/src/contract-factory.test.ts
+++ b/packages/fuel-gauge/src/contract-factory.test.ts
@@ -1,7 +1,7 @@
import type { Account, TransactionResult }... | true | |
FuelLabs/fuels-ts | 3,940 | issue_to_patch | chore: expose `assembleTransferToContractScript` method | # Summary
- Exposed the `assembleTransferToContractScript` method
# Checklist
- [X] All **changes** are **covered** by **tests** (or not applicable)
- [X] All **changes** are **documented** (or not applicable)
- [X] I **reviewed** the **entire PR** myself (preferably, on GH UI)
- [X] I **described** all **B... | 3a9f99da5779027f6356a2f39e623ea20d6051fe | 53b00439927f6bdba085699ca1df8ba4b19d65d4 | diff --git a/.changeset/loud-months-change.md b/.changeset/loud-months-change.md
new file mode 100644
index 00000000000..67074580cc9
--- /dev/null
+++ b/.changeset/loud-months-change.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": patch
+---
+
+chore: expose `assembleTransferToContractScript` method
diff --git a/packages/... | [
".changeset/loud-months-change.md",
"packages/account/src/index.ts",
"packages/account/src/utils/formatTransferToContractScriptData.ts"
] | [] | true | ||
FuelLabs/fuels-ts | 3,938 | issue_to_patch | chore!: breaking change for `fuel-core@v0.44.0` | # Summary
- Breaking change for the following PR:
- #3901
# Breaking Changes
- `fuel-core` release [`v0.44.0`](https://github.com/FuelLabs/fuel-core/releases/tag/v0.44.0) is a breaking change.
# Checklist
- [X] All **changes** are **covered** by **tests** (or not applicable)
- [X] All **changes** ar... | 5b3bb62720228a71e7c21ddde5b2824ed56b67f1 | 2a5d07b82845497503ae6ed82908f3f7b20d3b3d | diff --git a/.changeset/full-carpets-lose.md b/.changeset/full-carpets-lose.md
index 90b55d28e1d..8b91dec33d7 100644
--- a/.changeset/full-carpets-lose.md
+++ b/.changeset/full-carpets-lose.md
@@ -1,11 +1,11 @@
---
-"@internal/fuel-core": patch
-"@fuel-ts/account": patch
-"@fuel-ts/contract": patch
-"fuels": patch
-"@... | [
".changeset/full-carpets-lose.md",
".changeset/hungry-clouds-switch.md"
] | [] | true | ||
FuelLabs/fuels-ts | 3,937 | issue_to_patch | chore!: breaking change for `fuel-core@v0.44.0` | # Summary
- Breaking change for the following PR:
- #3901
# Breaking Changes
- `fuel-core` release [`v0.44.0`](https://github.com/FuelLabs/fuel-core/releases/tag/v0.44.0) is a breaking change.
# Checklist
- [X] All **changes** are **covered** by **tests** (or not applicable)
- [X] All **changes** ar... | f4be76c0b0fcbfa76d9b30b30b70ec85269018ed | 6f894bc1ff5e7e59f71929b42835728d8adf649a | diff --git a/.changeset/hungry-clouds-switch.md b/.changeset/hungry-clouds-switch.md
new file mode 100644
index 00000000000..ca09a37d275
--- /dev/null
+++ b/.changeset/hungry-clouds-switch.md
@@ -0,0 +1,5 @@
+---
+"@internal/fuel-core": minor
+---
+
+chore!: breaking change for `fuel-core@v0.44.0`
| [
".changeset/hungry-clouds-switch.md"
] | [
{
"comment": "```suggestion\n\"@internal/fuel-core\": minor\n```",
"path": ".changeset/hungry-clouds-switch.md",
"hunk": "@@ -0,0 +1,27 @@\n+---\n+\"@internal/check-imports\": minor\n+\"@internal/check-tests\": minor\n+\"@internal/forc\": minor\n+\"@internal/fuel-core\": minor\n+\"@fuel-ts/abi-coder\": ... | true | ||
FuelLabs/fuels-ts | 3,937 | comment_to_fix | chore!: breaking change for `fuel-core@v0.44.0` | ```suggestion
"@internal/fuel-core": minor
``` | f4be76c0b0fcbfa76d9b30b30b70ec85269018ed | 6f894bc1ff5e7e59f71929b42835728d8adf649a | diff --git a/.changeset/hungry-clouds-switch.md b/.changeset/hungry-clouds-switch.md
new file mode 100644
index 00000000000..ca09a37d275
--- /dev/null
+++ b/.changeset/hungry-clouds-switch.md
@@ -0,0 +1,5 @@
+---
+"@internal/fuel-core": minor
+---
+
+chore!: breaking change for `fuel-core@v0.44.0`
| [
".changeset/hungry-clouds-switch.md"
] | [
{
"comment": "```suggestion\n\"@internal/fuel-core\": minor\n```",
"path": ".changeset/hungry-clouds-switch.md",
"hunk": "@@ -0,0 +1,27 @@\n+---\n+\"@internal/check-imports\": minor\n+\"@internal/check-tests\": minor\n+\"@internal/forc\": minor\n+\"@internal/fuel-core\": minor\n+\"@fuel-ts/abi-coder\": ... | true | ||
FuelLabs/fuels-ts | 3,901 | issue_to_patch | Upgrade `fuel-core` to `0.44.0`
Changelog:
- https://github.com/FuelLabs/fuel-core/releases/tag/v0.44.0
The list above appears flat, but based on the PR below, it seems we have a few breaking changes:
- https://github.com/FuelLabs/fuel-core/pull/3025 | chore: upgrade `fuel-core` to `0.44.0` | - Closes #3898
# Release notes
In this release, we:
- Updated `fuel-core` to `0.44.0` and `@fuels/vm-asm` to `0.62.0`.
# Summary
Although in the new release, the errors for `INSUFFICIENT_FUNDS` and `MAX_COINS_REACHED` are distinct again. The max coin error is never returned. I believe this is due to the ... | bce0f79ed13dca6b0f6b992b4501cdcfad140932 | 45430b237788817c8169a88c9d2557479173a835 | diff --git a/.changeset/full-carpets-lose.md b/.changeset/full-carpets-lose.md
new file mode 100644
index 00000000000..90b55d28e1d
--- /dev/null
+++ b/.changeset/full-carpets-lose.md
@@ -0,0 +1,11 @@
+---
+"@internal/fuel-core": patch
+"@fuel-ts/account": patch
+"@fuel-ts/contract": patch
+"fuels": patch
+"@fuel-ts/pro... | [
".changeset/full-carpets-lose.md",
".fuel-core/configs/chainConfig.json",
"apps/create-fuels-counter-guide/fuel-toolchain.toml",
"apps/demo-bun-fuels/src/bun.test.ts",
"apps/demo-fuels/src/index.test.ts",
"apps/demo-nextjs/package.json",
"apps/demo-react-vite/package.json",
"apps/demo-typegen/src/demo... | [
{
"comment": "```suggestion\r\nchore: upgrade `fuel-core` to `0.44.0`\r\n```",
"path": ".changeset/full-carpets-lose.md",
"hunk": "@@ -0,0 +1,8 @@\n+---\n+\"@internal/fuel-core\": minor\n+\"@fuel-ts/versions\": minor\n+\"@fuel-ts/account\": minor\n+\"@fuel-ts/errors\": minor\n+---\n+\n+chore!: upgrade `... | diff --git a/apps/demo-bun-fuels/src/bun.test.ts b/apps/demo-bun-fuels/src/bun.test.ts
index a14426c5dae..d46f3035fd0 100644
--- a/apps/demo-bun-fuels/src/bun.test.ts
+++ b/apps/demo-bun-fuels/src/bun.test.ts
@@ -72,6 +72,7 @@ describe('ExampleContract', () => {
} = launched;
const unfundedWallet = Wallet.g... | true |
FuelLabs/fuels-ts | 3,901 | comment_to_fix | chore: upgrade `fuel-core` to `0.44.0` | ```suggestion
chore: upgrade `fuel-core` to `0.44.0`
``` | bce0f79ed13dca6b0f6b992b4501cdcfad140932 | 45430b237788817c8169a88c9d2557479173a835 | diff --git a/.changeset/full-carpets-lose.md b/.changeset/full-carpets-lose.md
new file mode 100644
index 00000000000..90b55d28e1d
--- /dev/null
+++ b/.changeset/full-carpets-lose.md
@@ -0,0 +1,11 @@
+---
+"@internal/fuel-core": patch
+"@fuel-ts/account": patch
+"@fuel-ts/contract": patch
+"fuels": patch
+"@fuel-ts/pro... | [
".changeset/full-carpets-lose.md"
] | [
{
"comment": "```suggestion\r\nchore: upgrade `fuel-core` to `0.44.0`\r\n```",
"path": ".changeset/full-carpets-lose.md",
"hunk": "@@ -0,0 +1,8 @@\n+---\n+\"@internal/fuel-core\": minor\n+\"@fuel-ts/versions\": minor\n+\"@fuel-ts/account\": minor\n+\"@fuel-ts/errors\": minor\n+---\n+\n+chore!: upgrade `... | true | ||
FuelLabs/fuels-ts | 3,901 | comment_to_fix | chore: upgrade `fuel-core` to `0.44.0` | ```suggestion
---
"@internal/fuel-core": patch
"@fuel-ts/account": patch
"@fuel-ts/contract": patch
"fuels": patch
"@fuel-ts/programs": patch
"@fuel-ts/utils": patch
"@fuel-ts/versions": patch
---
``` | bce0f79ed13dca6b0f6b992b4501cdcfad140932 | 45430b237788817c8169a88c9d2557479173a835 | diff --git a/.changeset/full-carpets-lose.md b/.changeset/full-carpets-lose.md
new file mode 100644
index 00000000000..90b55d28e1d
--- /dev/null
+++ b/.changeset/full-carpets-lose.md
@@ -0,0 +1,11 @@
+---
+"@internal/fuel-core": patch
+"@fuel-ts/account": patch
+"@fuel-ts/contract": patch
+"fuels": patch
+"@fuel-ts/pro... | [
".changeset/full-carpets-lose.md"
] | [
{
"comment": "```suggestion\r\n---\r\n\"@internal/fuel-core\": patch\r\n\"@fuel-ts/account\": patch\r\n\"@fuel-ts/contract\": patch\r\n\"fuels\": patch\r\n\"@fuel-ts/programs\": patch\r\n\"@fuel-ts/utils\": patch\r\n\"@fuel-ts/versions\": patch\r\n---\r\n```",
"path": ".changeset/full-carpets-lose.md",
... | true | ||
FuelLabs/fuels-ts | 3,901 | comment_to_fix | chore: upgrade `fuel-core` to `0.44.0` | ```suggestion
"@fuel-ts/program": patch
``` | bce0f79ed13dca6b0f6b992b4501cdcfad140932 | 45430b237788817c8169a88c9d2557479173a835 | diff --git a/.changeset/full-carpets-lose.md b/.changeset/full-carpets-lose.md
new file mode 100644
index 00000000000..90b55d28e1d
--- /dev/null
+++ b/.changeset/full-carpets-lose.md
@@ -0,0 +1,11 @@
+---
+"@internal/fuel-core": patch
+"@fuel-ts/account": patch
+"@fuel-ts/contract": patch
+"fuels": patch
+"@fuel-ts/pro... | [
".changeset/full-carpets-lose.md"
] | [
{
"comment": "```suggestion\r\n\"@fuel-ts/program\": patch\r\n```",
"path": ".changeset/full-carpets-lose.md",
"hunk": "@@ -0,0 +1,11 @@\n+---\n+\"@internal/fuel-core\": patch\n+\"@fuel-ts/account\": patch\n+\"@fuel-ts/contract\": patch\n+\"fuels\": patch\n+\"@fuel-ts/programs\": patch",
"resolving_... | true | ||
FuelLabs/fuels-ts | 3,901 | comment_to_fix | chore: upgrade `fuel-core` to `0.44.0` | I wonder why we are using `undefined` here? | bce0f79ed13dca6b0f6b992b4501cdcfad140932 | 45430b237788817c8169a88c9d2557479173a835 | diff --git a/packages/utils/src/utils/types.ts b/packages/utils/src/utils/types.ts
index 662649b8dd8..66341f8d74b 100644
--- a/packages/utils/src/utils/types.ts
+++ b/packages/utils/src/utils/types.ts
@@ -85,6 +85,7 @@ interface GasCosts {
mul: number;
muli: number;
mldv: number;
+ niop: number | undefined;
... | [
"packages/utils/src/utils/types.ts"
] | [
{
"comment": "I wonder why we are using `undefined` here?",
"path": "packages/utils/src/utils/types.ts",
"hunk": "@@ -85,6 +85,7 @@ interface GasCosts {\n mul: number;\n muli: number;\n mldv: number;\n+ niop: number | undefined;",
"resolving_sha": "45430b237788817c8169a88c9d2557479173a835",
... | true | ||
FuelLabs/fuels-ts | 3,934 | issue_to_patch | fix: added missing envs for Vercel release | # Summary
Missed some envs for the release workflow to allow for Vercel to be deployed
# Checklist
- [X] All **changes** are **covered** by **tests** (or not applicable)
- [X] All **changes** are **documented** (or not applicable)
- [X] I **reviewed** the **entire PR** myself (preferably, on GH UI)
- [X] I ... | e4cf8aff8909ad39e2db85454eb7d981df31133f | 458954f295f1aea3ac9d2e1ccae603bdc171581b | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 6d634c84c23..57be643080a 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -8,6 +8,12 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}
+env:
+ VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }... | [
".github/workflows/release.yaml"
] | [] | true | ||
FuelLabs/fuels-ts | 3,912 | issue_to_patch | ci(release): `v0.101.3` @ `master` | # Summary
In this release, we:
- Implemented the auto-consolidation flow to detect when the max UTXO limit has been reached.
- Added helper function for consolidating coins (`consolidateCoins`).
- Added method for consolidating non-base assets.
- Added the JSON ABI error entry to `FuelError.metadata` property
- Added... | c8b6d0ee6331970bef02a23ce14cf0aa101c2920 | f5d9e97c3f45a9dd228a411d57c0fa657404af24 | diff --git a/.changeset/beige-berries-train.md b/.changeset/beige-berries-train.md
deleted file mode 100644
index 1efaeaff8f7..00000000000
--- a/.changeset/beige-berries-train.md
+++ /dev/null
@@ -1,4 +0,0 @@
----
----
-
-chore: fix vercel deployment workflow
\ No newline at end of file
diff --git a/.changeset/cyan-pan... | [
".changeset/beige-berries-train.md",
".changeset/cyan-pandas-know.md",
".changeset/dry-towns-swim.md",
".changeset/hungry-webs-join.md",
".changeset/lazy-coins-tease.md",
".changeset/spicy-waves-throw.md",
".changeset/stale-news-go.md",
".changeset/wild-dryers-retire.md",
"internal/check-imports/CHA... | [] | true | ||
FuelLabs/fuels-ts | 3,929 | issue_to_patch | feat: added auto-consolidation of coins | - Related to #3808
# Release notes
In this release, we:
- Implemented the auto-consolidation flow to detect when the max UTXO limit has been reached.
- Added helper function for consolidating coins (`consolidateCoins`).
# Summary
With our previous implementation for consolidating coins, we encountered ... | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/.changeset/spicy-waves-throw.md b/.changeset/spicy-waves-throw.md
new file mode 100644
index 00000000000..bcfc09c6db9
--- /dev/null
+++ b/.changeset/spicy-waves-throw.md
@@ -0,0 +1,8 @@
+---
+"@fuel-ts/account": patch
+"@fuel-ts/contract": patch
+"@fuel-ts/program": patch
+"@fuel-ts/errors": patch
+---
+
+... | [
".changeset/spicy-waves-throw.md",
"packages/account/src/account.test.ts",
"packages/account/src/account.ts",
"packages/account/src/connectors/fuel-connector.ts",
"packages/account/src/connectors/types/connector-types.ts",
"packages/account/src/connectors/types/events.ts",
"packages/account/src/consolid... | [
{
"comment": "callback hell, promise.then, promise.catch, are problems solved by `await` , which helps to write async code in a sync way, improving readability. \r\n\r\ncan we simplify it using try catch only? also on another places that the same is being done",
"path": "packages/account/src/account.ts",
... | diff --git a/packages/account/src/account.test.ts b/packages/account/src/account.test.ts
index 409d91fc4c4..de3076dee54 100644
--- a/packages/account/src/account.test.ts
+++ b/packages/account/src/account.test.ts
@@ -287,10 +287,14 @@ describe('Account', () => {
{ amount: bn(fee), assetId: await provider.getBase... | true | |
FuelLabs/fuels-ts | 3,929 | comment_to_fix | feat: added auto-consolidation of coins | callback hell, promise.then, promise.catch, are problems solved by `await` , which helps to write async code in a sync way, improving readability.
can we simplify it using try catch only? also on another places that the same is being done | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/packages/account/src/account.ts b/packages/account/src/account.ts
index f9789247b8a..7575c7bc00c 100644
--- a/packages/account/src/account.ts
+++ b/packages/account/src/account.ts
@@ -55,6 +55,11 @@ import {
import { mergeQuantities } from './providers/utils/merge-quantities';
import { serializeProviderC... | [
"packages/account/src/account.ts"
] | [
{
"comment": "callback hell, promise.then, promise.catch, are problems solved by `await` , which helps to write async code in a sync way, improving readability. \r\n\r\ncan we simplify it using try catch only? also on another places that the same is being done",
"path": "packages/account/src/account.ts",
... | true | ||
FuelLabs/fuels-ts | 3,929 | comment_to_fix | feat: added auto-consolidation of coins | why is `shouldAutoConsolidate` being passed around on a lot of functions? user should not need to know if he needs to pass `shouldAutoConsolidate` to this functions, this should be auto-detected and handled by the ts-sdk | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/packages/account/src/account.ts b/packages/account/src/account.ts
index f9789247b8a..7575c7bc00c 100644
--- a/packages/account/src/account.ts
+++ b/packages/account/src/account.ts
@@ -55,6 +55,11 @@ import {
import { mergeQuantities } from './providers/utils/merge-quantities';
import { serializeProviderC... | [
"packages/account/src/account.ts"
] | [
{
"comment": "why is `shouldAutoConsolidate` being passed around on a lot of functions? user should not need to know if he needs to pass `shouldAutoConsolidate` to this functions, this should be auto-detected and handled by the ts-sdk",
"path": "packages/account/src/account.ts",
"hunk": "@@ -432,15 +480... | true | ||
FuelLabs/fuels-ts | 3,929 | comment_to_fix | feat: added auto-consolidation of coins | why were this functions removed? can this be a breaking change? | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/packages/account/src/account.ts b/packages/account/src/account.ts
index f9789247b8a..7575c7bc00c 100644
--- a/packages/account/src/account.ts
+++ b/packages/account/src/account.ts
@@ -55,6 +55,11 @@ import {
import { mergeQuantities } from './providers/utils/merge-quantities';
import { serializeProviderC... | [
"packages/account/src/account.ts"
] | [
{
"comment": "why were this functions removed? can this be a breaking change?",
"path": "packages/account/src/account.ts",
"hunk": "@@ -1153,59 +1265,6 @@ export class Account extends AbstractAccount implements WithAddress {\n }\n }\n \n- /** @hidden * */\n- private async estimateAndFundTransact... | true | ||
FuelLabs/fuels-ts | 3,929 | comment_to_fix | feat: added auto-consolidation of coins | can this be done with `const` instead? | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/packages/account/src/utils/consolidate-coins.ts b/packages/account/src/utils/consolidate-coins.ts
new file mode 100644
index 00000000000..e9fb6a1e3a0
--- /dev/null
+++ b/packages/account/src/utils/consolidate-coins.ts
@@ -0,0 +1,238 @@
+import { Address } from '@fuel-ts/address';
+import { ErrorCode, FuelE... | [
"packages/account/src/utils/consolidate-coins.ts"
] | [
{
"comment": "can this be done with `const` instead?",
"path": "packages/account/src/utils/consolidate-coins.ts",
"hunk": "@@ -0,0 +1,241 @@\n+import { Address } from '@fuel-ts/address';\n+import { ErrorCode, FuelError } from '@fuel-ts/errors';\n+import { bn } from '@fuel-ts/math';\n+import { OutputType... | true | ||
FuelLabs/fuels-ts | 3,929 | comment_to_fix | feat: added auto-consolidation of coins | was this `onTransactionStart` needed for connectors integration? if yes for what? | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/packages/account/src/utils/consolidate-coins.ts b/packages/account/src/utils/consolidate-coins.ts
new file mode 100644
index 00000000000..e9fb6a1e3a0
--- /dev/null
+++ b/packages/account/src/utils/consolidate-coins.ts
@@ -0,0 +1,238 @@
+import { Address } from '@fuel-ts/address';
+import { ErrorCode, FuelE... | [
"packages/account/src/utils/consolidate-coins.ts"
] | [
{
"comment": "was this `onTransactionStart` needed for connectors integration? if yes for what?",
"path": "packages/account/src/utils/consolidate-coins.ts",
"hunk": "@@ -0,0 +1,241 @@\n+import { Address } from '@fuel-ts/address';\n+import { ErrorCode, FuelError } from '@fuel-ts/errors';\n+import { bn } ... | true | ||
FuelLabs/fuels-ts | 3,929 | comment_to_fix | feat: added auto-consolidation of coins | as the txs are being sent sequentially, why do we need the funding / dust logic?
we could simplify by doing like this?
1- get all coins
2- sort bigger coins first
3- put 255 coins in the tx
4- put 1 output
5- wait tx success
6- repeat until user has only 1 coin | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/packages/account/src/utils/consolidate-coins.ts b/packages/account/src/utils/consolidate-coins.ts
new file mode 100644
index 00000000000..e9fb6a1e3a0
--- /dev/null
+++ b/packages/account/src/utils/consolidate-coins.ts
@@ -0,0 +1,238 @@
+import { Address } from '@fuel-ts/address';
+import { ErrorCode, FuelE... | [
"packages/account/src/utils/consolidate-coins.ts"
] | [
{
"comment": "as the txs are being sent sequentially, why do we need the funding / dust logic? \r\n\r\nwe could simplify by doing like this?\r\n1- get all coins\r\n2- sort bigger coins first\r\n3- put 255 coins in the tx\r\n4- put 1 output\r\n5- wait tx success\r\n6- repeat until user has only 1 coin",
"pat... | true | ||
FuelLabs/fuels-ts | 3,929 | comment_to_fix | feat: added auto-consolidation of coins | ```suggestion
"@fuel-ts/account": patch
"@fuel-ts/contract": patch
"@fuel-ts/program": patch
``` | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/.changeset/spicy-waves-throw.md b/.changeset/spicy-waves-throw.md
new file mode 100644
index 00000000000..bcfc09c6db9
--- /dev/null
+++ b/.changeset/spicy-waves-throw.md
@@ -0,0 +1,8 @@
+---
+"@fuel-ts/account": patch
+"@fuel-ts/contract": patch
+"@fuel-ts/program": patch
+"@fuel-ts/errors": patch
+---
+
+... | [
".changeset/spicy-waves-throw.md"
] | [
{
"comment": "```suggestion\n\"@fuel-ts/account\": patch\n\"@fuel-ts/contract\": patch\n\"@fuel-ts/program\": patch\n```",
"path": ".changeset/spicy-waves-throw.md",
"hunk": "@@ -0,0 +1,7 @@\n+---\n+\"@fuel-ts/account\": patch\n+\"@fuel-ts/program\": patch",
"resolving_sha": "15fc369f5557285739d4e39... | true | ||
FuelLabs/fuels-ts | 3,929 | comment_to_fix | feat: added auto-consolidation of coins | why we need retry here? is it to try again after consolidation? if that's the case I believe the user should do the action manually after consolidation | eefaa749833f7d609f6a9b4fd3d62ce33863ff0b | 15fc369f5557285739d4e39443973ccdc88b774f | diff --git a/packages/program/src/functions/base-invocation-scope.ts b/packages/program/src/functions/base-invocation-scope.ts
index 731afdbdc72..40f709ac384 100644
--- a/packages/program/src/functions/base-invocation-scope.ts
+++ b/packages/program/src/functions/base-invocation-scope.ts
@@ -11,8 +11,10 @@ import type ... | [
"packages/program/src/functions/base-invocation-scope.ts"
] | [
{
"comment": "why we need retry here? is it to try again after consolidation? if that's the case I believe the user should do the action manually after consolidation",
"path": "packages/program/src/functions/base-invocation-scope.ts",
"hunk": "@@ -290,31 +294,48 @@ export class BaseInvocationScope<TRetu... | true | ||
FuelLabs/fuels-ts | 3,923 | issue_to_patch | Implement UTXO Consolidation Helpers (for non-base assets)
Follow-up after:
- https://github.com/FuelLabs/fuels-ts/issues/3645
It should extend the consolidation capabilities for dealing with non-base assets. | feat: consolidate non-base asset | - Closes #3855
# Release notes
In this release, we:
- Added method for consolidating non-base assets.
# Checklist
- [X] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire PR** myself (preferabl... | 9810db53d70f86f5225b14d9e27f9498bf9c63ff | 30753767b129ec5ff9fb95425a4112e22185332a | diff --git a/.changeset/wild-dryers-retire.md b/.changeset/wild-dryers-retire.md
new file mode 100644
index 00000000000..eb64aad403c
--- /dev/null
+++ b/.changeset/wild-dryers-retire.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": patch
+---
+
+feat: consolidate non-base asset
diff --git a/apps/docs/src/guide/cookbook/com... | [
".changeset/wild-dryers-retire.md",
"apps/docs/src/guide/cookbook/combining-utxos.md",
"packages/account/src/account.ts",
"packages/account/src/consolidate-coins.test.ts"
] | [
{
"comment": "Was this intended to test a consolidation for the non-base asset?",
"path": "packages/account/src/consolidate-coins.test.ts",
"hunk": "@@ -449,4 +439,316 @@ describe('consolidate-coins', () => {\n );\n });\n });\n+\n+ describe('Non-base asset', () => {\n+ it('should consoli... | diff --git a/packages/account/src/consolidate-coins.test.ts b/packages/account/src/consolidate-coins.test.ts
index c90a181de4f..b7386bd394e 100644
--- a/packages/account/src/consolidate-coins.test.ts
+++ b/packages/account/src/consolidate-coins.test.ts
@@ -138,166 +138,156 @@ describe('consolidate-coins', () => {
... | true |
FuelLabs/fuels-ts | 3,923 | comment_to_fix | feat: consolidate non-base asset | Was this intended to test a consolidation for the non-base asset? | 9810db53d70f86f5225b14d9e27f9498bf9c63ff | 30753767b129ec5ff9fb95425a4112e22185332a | diff --git a/packages/account/src/consolidate-coins.test.ts b/packages/account/src/consolidate-coins.test.ts
index c90a181de4f..b7386bd394e 100644
--- a/packages/account/src/consolidate-coins.test.ts
+++ b/packages/account/src/consolidate-coins.test.ts
@@ -138,166 +138,156 @@ describe('consolidate-coins', () => {
... | [
"packages/account/src/consolidate-coins.test.ts"
] | [
{
"comment": "Was this intended to test a consolidation for the non-base asset?",
"path": "packages/account/src/consolidate-coins.test.ts",
"hunk": "@@ -449,4 +439,316 @@ describe('consolidate-coins', () => {\n );\n });\n });\n+\n+ describe('Non-base asset', () => {\n+ it('should consoli... | true | ||
FuelLabs/fuels-ts | 3,923 | comment_to_fix | feat: consolidate non-base asset | Was this intended to test a consolidation for the non-base asset? | 9810db53d70f86f5225b14d9e27f9498bf9c63ff | 30753767b129ec5ff9fb95425a4112e22185332a | diff --git a/packages/account/src/consolidate-coins.test.ts b/packages/account/src/consolidate-coins.test.ts
index c90a181de4f..b7386bd394e 100644
--- a/packages/account/src/consolidate-coins.test.ts
+++ b/packages/account/src/consolidate-coins.test.ts
@@ -138,166 +138,156 @@ describe('consolidate-coins', () => {
... | [
"packages/account/src/consolidate-coins.test.ts"
] | [
{
"comment": "Was this intended to test a consolidation for the non-base asset?",
"path": "packages/account/src/consolidate-coins.test.ts",
"hunk": "@@ -449,4 +439,316 @@ describe('consolidate-coins', () => {\n );\n });\n });\n+\n+ describe('Non-base asset', () => {\n+ it('should consoli... | true | ||
FuelLabs/fuels-ts | 3,923 | comment_to_fix | feat: consolidate non-base asset | Was this intended to test a consolidation for the non-base asset? | 9810db53d70f86f5225b14d9e27f9498bf9c63ff | 30753767b129ec5ff9fb95425a4112e22185332a | diff --git a/packages/account/src/consolidate-coins.test.ts b/packages/account/src/consolidate-coins.test.ts
index c90a181de4f..b7386bd394e 100644
--- a/packages/account/src/consolidate-coins.test.ts
+++ b/packages/account/src/consolidate-coins.test.ts
@@ -138,166 +138,156 @@ describe('consolidate-coins', () => {
... | [
"packages/account/src/consolidate-coins.test.ts"
] | [
{
"comment": "Was this intended to test a consolidation for the non-base asset?",
"path": "packages/account/src/consolidate-coins.test.ts",
"hunk": "@@ -449,4 +439,316 @@ describe('consolidate-coins', () => {\n );\n });\n });\n+\n+ describe('Non-base asset', () => {\n+ it('should consoli... | true | ||
FuelLabs/fuels-ts | 3,923 | comment_to_fix | feat: consolidate non-base asset | Was this intended to test a consolidation for the non-base asset? | 9810db53d70f86f5225b14d9e27f9498bf9c63ff | 30753767b129ec5ff9fb95425a4112e22185332a | diff --git a/packages/account/src/consolidate-coins.test.ts b/packages/account/src/consolidate-coins.test.ts
index c90a181de4f..b7386bd394e 100644
--- a/packages/account/src/consolidate-coins.test.ts
+++ b/packages/account/src/consolidate-coins.test.ts
@@ -138,166 +138,156 @@ describe('consolidate-coins', () => {
... | [
"packages/account/src/consolidate-coins.test.ts"
] | [
{
"comment": "Was this intended to test a consolidation for the non-base asset?",
"path": "packages/account/src/consolidate-coins.test.ts",
"hunk": "@@ -449,4 +439,316 @@ describe('consolidate-coins', () => {\n );\n });\n });\n+\n+ describe('Non-base asset', () => {\n+ it('should consoli... | true | ||
FuelLabs/fuels-ts | 3,915 | issue_to_patch | chore: fix vercel deployment workflow | # Summary
- Fixes the broken release pipeline
- Fixes the broken preview URL in PR comments
# Checklist
- [X] All **changes** are **covered** by **tests** (or not applicable)
- [X] All **changes** are **documented** (or not applicable)
- [X] I **reviewed** the **entire PR** myself (preferably, on GH UI)
- ... | 7def0a56632cf3d49428b97caf5cc9ce7cedc403 | f2abda4c1002a46cd7eb3e87ff5fca6b87cb375e | diff --git a/.changeset/beige-berries-train.md b/.changeset/beige-berries-train.md
new file mode 100644
index 00000000000..1efaeaff8f7
--- /dev/null
+++ b/.changeset/beige-berries-train.md
@@ -0,0 +1,4 @@
+---
+---
+
+chore: fix vercel deployment workflow
\ No newline at end of file
diff --git a/.github/workflows/publi... | [
".changeset/beige-berries-train.md",
".github/workflows/publish-preview.yaml",
".github/workflows/release.yaml"
] | [] | true | ||
FuelLabs/fuels-ts | 3,921 | issue_to_patch | chore: add JSON ABI error entry to `FuelError.metadata` | # Release notes
In this release, we:
- Added the JSON ABI error entry to `FuelError.metadata` property
# Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire PR** myself (preferably, ... | 4e018a571a5b576d93c933da449e2a78d5d1c633 | 8da7ac4b56a15bd6ac9df5d5016b923a64329bfb | diff --git a/.changeset/cyan-pandas-know.md b/.changeset/cyan-pandas-know.md
new file mode 100644
index 00000000000..6c76bd10dfb
--- /dev/null
+++ b/.changeset/cyan-pandas-know.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": patch
+---
+
+chore: add JSON ABI error entry to `FuelError.metadata`
diff --git a/packages/accoun... | [
".changeset/cyan-pandas-know.md",
"packages/account/src/providers/utils/extract-tx-error.ts",
"packages/fuel-gauge/src/revert-error.test.ts"
] | [] | diff --git a/packages/fuel-gauge/src/revert-error.test.ts b/packages/fuel-gauge/src/revert-error.test.ts
index 2e32f00afc1..5a86d62afb7 100644
--- a/packages/fuel-gauge/src/revert-error.test.ts
+++ b/packages/fuel-gauge/src/revert-error.test.ts
@@ -386,7 +386,7 @@ describe('Revert Error Testing', () => {
} = launc... | true | |
FuelLabs/fuels-ts | 3,913 | issue_to_patch | Fail gracefully when response body is not defined or null
## Summary
Incoming from the [forum](https://forum.fuel.network/t/getting-error-while-calling-sender-transfer/9254)
When performing a request, and the response body is `undefined` or `null`, we should handle this scenario gracefully and report potential issue... | chore: handling for malformed response body | - Closes #3909
# Release notes
<!--
Use this only if this PR requires a mention in the Release
Notes Summary. Valuable features and critical fixes are good
examples. For everything else, please delete the whole section.
-->
In this release, we:
- Added detection and handling for malformed response body... | c73a41703370c9feeed6585fa16c8f5f719a110d | 12e40749d2c3c1c7f7b71915d3fb327d9fcab326 | diff --git a/.changeset/hungry-webs-join.md b/.changeset/hungry-webs-join.md
new file mode 100644
index 00000000000..23ce5963bd1
--- /dev/null
+++ b/.changeset/hungry-webs-join.md
@@ -0,0 +1,6 @@
+---
+"@fuel-ts/account": patch
+"@fuel-ts/errors": patch
+---
+
+chore: handling for malformed response body
diff --git a/a... | [
".changeset/hungry-webs-join.md",
"apps/docs/src/guide/errors/index.md",
"packages/account/src/providers/provider.test.ts",
"packages/account/src/providers/provider.ts",
"packages/errors/src/error-codes.ts"
] | [] | diff --git a/packages/account/src/providers/provider.test.ts b/packages/account/src/providers/provider.test.ts
index abe9ee48fc9..7f167cb5fb1 100644
--- a/packages/account/src/providers/provider.test.ts
+++ b/packages/account/src/providers/provider.test.ts
@@ -45,16 +45,13 @@ import { serializeChain, serializeNodeInfo,... | true |
FuelLabs/fuels-ts | 3,904 | issue_to_patch | chore: upgrade `esbuild` dependency | Bumps the npm_and_yarn group with 1 update in the / directory: [esbuild](https://github.com/evanw/esbuild).
Updates `esbuild` from 0.25.2 to 0.25.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/evanw/esbuild/releases">esbuild's releases</a>.</em></p>
<blockquote>
<h2>v0.25.... | b03dad84d171ee3972dccb339243cefbb5d1af63 | 81846575857e64b8f596950aee26fddf3034e427 | diff --git a/.changeset/dry-towns-swim.md b/.changeset/dry-towns-swim.md
new file mode 100644
index 00000000000..3914180f501
--- /dev/null
+++ b/.changeset/dry-towns-swim.md
@@ -0,0 +1,5 @@
+---
+"fuels": patch
+---
+
+chore: upgrade `esbuild` dependency
diff --git a/packages/fuels/package.json b/packages/fuels/package... | [
".changeset/dry-towns-swim.md",
"packages/fuels/package.json",
"pnpm-lock.yaml"
] | [] | true | ||
FuelLabs/fuels-ts | 3,908 | issue_to_patch | chore: migrate Vercel builds | # Summary
The latest `fuel-core` [PR](https://github.com/FuelLabs/fuels-ts/pull/3901) was failing to build the `docs` or `templates` in Vercel. This was due to an error while using `fuel-core` in the build (see error below). As we have no control over the [build image](https://vercel.com/docs/builds/build-image/buil... | b0aa1065e0537a6a1e3e1663261d0dee72257a48 | b7820d54bb84940710987c8754c2097dc2ded0c9 | diff --git a/.github/actions/ci-setup/action.yaml b/.github/actions/ci-setup/action.yaml
index d7aff1c20e8..798421bde04 100644
--- a/.github/actions/ci-setup/action.yaml
+++ b/.github/actions/ci-setup/action.yaml
@@ -29,3 +29,9 @@ runs:
with:
version: ${{ inputs.pnpm-version }}
run_install: tru... | [
".github/actions/ci-setup/action.yaml",
".github/actions/vercel-deploy/action.yaml",
".github/workflows/publish-preview.yaml",
".github/workflows/release.yaml"
] | [] | true | ||
FuelLabs/fuels-ts | 3,911 | issue_to_patch | Add Object Parameter Support to TransactionResponse Constructor
The current `TransactionResponse` constructor only accepts positional parameters, making it difficult to maintain and extend as the number of parameters grows.
We should add support for an object parameter in the constructor to allow configuration via a ... | chore: add object parameter support to `TransactionResponse` constructor | - Closes #3910
# Release notes
In this release, we:
- Add support for object parameter at `TransactionResponse` constructor
# Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire ... | 365cfa84866e05db41820bd0c30cd8ba942c726f | 47f96723d3724b72890ec60de2b1efda8dee3ce4 | diff --git a/.changeset/stale-news-go.md b/.changeset/stale-news-go.md
new file mode 100644
index 00000000000..4e8435a7e7e
--- /dev/null
+++ b/.changeset/stale-news-go.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": patch
+---
+
+chore: add object parameter support to `TransactionResponse` constructor
diff --git a/package... | [
".changeset/stale-news-go.md",
"packages/account/src/providers/provider.test.ts",
"packages/account/src/providers/provider.ts",
"packages/account/src/providers/transaction-response/transaction-response.ts",
"packages/account/src/providers/utils/transaction-response-serialization.ts"
] | [] | diff --git a/packages/account/src/providers/provider.test.ts b/packages/account/src/providers/provider.test.ts
index cc56870bfd2..abe9ee48fc9 100644
--- a/packages/account/src/providers/provider.test.ts
+++ b/packages/account/src/providers/provider.test.ts
@@ -1103,7 +1103,11 @@ describe('Provider', () => {
);
... | true |
FuelLabs/fuels-ts | 3,894 | issue_to_patch | Add support for ABI Error Types
Here is the RFC:
- https://github.com/FuelLabs/sway-rfcs/blob/master/rfcs/0014-abi-errors.md
Related Sway issue:
- https://github.com/FuelLabs/sway/issues/6765 | feat: implement support for new ABI error codes | - Closes #3807
# Release notes
In this release, we:
- Implement support for new ABI error codes
# Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire PR** myself (preferably, on G... | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/.changeset/hot-results-happen.md b/.changeset/hot-results-happen.md
new file mode 100644
index 00000000000..5b3ad19d9fe
--- /dev/null
+++ b/.changeset/hot-results-happen.md
@@ -0,0 +1,11 @@
+---
+"@fuel-ts/transactions": patch
+"@fuel-ts/abi-typegen": patch
+"@fuel-ts/abi-coder": patch
+"@fuel-ts/versions"... | [
".changeset/hot-results-happen.md",
"apps/create-fuels-counter-guide/fuel-toolchain.toml",
"internal/forc/VERSION",
"packages/abi-coder/src/index.ts",
"packages/abi-coder/src/types/JsonAbiNew.ts",
"packages/abi-coder/src/utils/transpile-abi.ts",
"packages/abi-typegen/src/abi/Abi.ts",
"packages/abi-typ... | [
{
"comment": "Why have we removed `FAILED_UNKNOWN_SIGNAL`?",
"path": "packages/transactions/src/configs.ts",
"hunk": "@@ -40,7 +40,8 @@ export const FAILED_ASSERT_SIGNAL = '0xffffffffffff0004';\n // Revert with this value for a failing call to `std::assert::assert_ne`.\n export const FAILED_ASSERT_NE_SI... | diff --git a/packages/fuel-gauge/src/revert-error.test.ts b/packages/fuel-gauge/src/revert-error.test.ts
index 612b4703fed..2e32f00afc1 100644
--- a/packages/fuel-gauge/src/revert-error.test.ts
+++ b/packages/fuel-gauge/src/revert-error.test.ts
@@ -1,12 +1,13 @@
import { ErrorCode, FuelError } from '@fuel-ts/errors';
... | true |
FuelLabs/fuels-ts | 3,894 | comment_to_fix | feat: implement support for new ABI error codes | Why have we removed `FAILED_UNKNOWN_SIGNAL`? | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/packages/transactions/src/configs.ts b/packages/transactions/src/configs.ts
index bee093067d7..9608ba041f0 100644
--- a/packages/transactions/src/configs.ts
+++ b/packages/transactions/src/configs.ts
@@ -40,7 +40,8 @@ export const FAILED_ASSERT_SIGNAL = '0xffffffffffff0004';
// Revert with this value for ... | [
"packages/transactions/src/configs.ts"
] | [
{
"comment": "Why have we removed `FAILED_UNKNOWN_SIGNAL`?",
"path": "packages/transactions/src/configs.ts",
"hunk": "@@ -40,7 +40,8 @@ export const FAILED_ASSERT_SIGNAL = '0xffffffffffff0004';\n // Revert with this value for a failing call to `std::assert::assert_ne`.\n export const FAILED_ASSERT_NE_SI... | true | ||
FuelLabs/fuels-ts | 3,894 | comment_to_fix | feat: implement support for new ABI error codes | ```suggestion
col: number;
``` | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/packages/abi-coder/src/types/JsonAbiNew.ts b/packages/abi-coder/src/types/JsonAbiNew.ts
index 6aff2ad11c1..036c13eaf92 100644
--- a/packages/abi-coder/src/types/JsonAbiNew.ts
+++ b/packages/abi-coder/src/types/JsonAbiNew.ts
@@ -12,6 +12,7 @@ export interface JsonAbi {
readonly loggedTypes: readonly Logg... | [
"packages/abi-coder/src/types/JsonAbiNew.ts"
] | [
{
"comment": "```suggestion\r\n col: number;\r\n```",
"path": "packages/abi-coder/src/types/JsonAbiNew.ts",
"hunk": "@@ -99,3 +100,16 @@ export interface Configurable {\n readonly concreteTypeId: string;\n readonly offset: number;\n }\n+\n+export interface ErrorPosition {\n+ pkg: string;\n+ file:... | true | ||
FuelLabs/fuels-ts | 3,894 | comment_to_fix | feat: implement support for new ABI error codes | What does `pkg` represent? | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/packages/abi-coder/src/types/JsonAbiNew.ts b/packages/abi-coder/src/types/JsonAbiNew.ts
index 6aff2ad11c1..036c13eaf92 100644
--- a/packages/abi-coder/src/types/JsonAbiNew.ts
+++ b/packages/abi-coder/src/types/JsonAbiNew.ts
@@ -12,6 +12,7 @@ export interface JsonAbi {
readonly loggedTypes: readonly Logg... | [
"packages/abi-coder/src/types/JsonAbiNew.ts"
] | [
{
"comment": "What does `pkg` represent?",
"path": "packages/abi-coder/src/types/JsonAbiNew.ts",
"hunk": "@@ -99,3 +100,16 @@ export interface Configurable {\n readonly concreteTypeId: string;\n readonly offset: number;\n }\n+\n+export interface ErrorPosition {\n+ pkg: string;",
"resolving_sha"... | true | ||
FuelLabs/fuels-ts | 3,894 | comment_to_fix | feat: implement support for new ABI error codes | ```suggestion
col: number;
``` | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/packages/abi-typegen/src/types/interfaces/JsonAbi.ts b/packages/abi-typegen/src/types/interfaces/JsonAbi.ts
index eed9fee4d46..2aaa51598ae 100644
--- a/packages/abi-typegen/src/types/interfaces/JsonAbi.ts
+++ b/packages/abi-typegen/src/types/interfaces/JsonAbi.ts
@@ -8,6 +8,7 @@ export interface JsonAbiOld... | [
"packages/abi-typegen/src/types/interfaces/JsonAbi.ts"
] | [
{
"comment": "```suggestion\r\n col: number;\r\n```",
"path": "packages/abi-typegen/src/types/interfaces/JsonAbi.ts",
"hunk": "@@ -55,3 +56,14 @@ export interface JsonAbiConfigurable {\n configurableType: JsonAbiArgument;\n offset: number;\n }\n+\n+export interface JsonAbiErrorCode {\n+ pos: {\n... | true | ||
FuelLabs/fuels-ts | 3,894 | comment_to_fix | feat: implement support for new ABI error codes | ```suggestion
col: number;
``` | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/packages/abi-typegen/src/types/interfaces/JsonAbiNew.ts b/packages/abi-typegen/src/types/interfaces/JsonAbiNew.ts
index 6aff2ad11c1..036c13eaf92 100644
--- a/packages/abi-typegen/src/types/interfaces/JsonAbiNew.ts
+++ b/packages/abi-typegen/src/types/interfaces/JsonAbiNew.ts
@@ -12,6 +12,7 @@ export interf... | [
"packages/abi-typegen/src/types/interfaces/JsonAbiNew.ts"
] | [
{
"comment": "```suggestion\r\n col: number;\r\n```",
"path": "packages/abi-typegen/src/types/interfaces/JsonAbiNew.ts",
"hunk": "@@ -99,3 +100,16 @@ export interface Configurable {\n readonly concreteTypeId: string;\n readonly offset: number;\n }\n+\n+export interface ErrorPosition {\n+ pkg: stri... | true | ||
FuelLabs/fuels-ts | 3,894 | comment_to_fix | feat: implement support for new ABI error codes | ```suggestion
return assembleRevertError(receipts, logs, metadata, statusReason, abis);
```
`assembleRevertError` is exported, so ideally we wouldn't change it's signature. | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/packages/account/src/providers/utils/extract-tx-error.ts b/packages/account/src/providers/utils/extract-tx-error.ts
index c76f34991b2..da4f470cbd7 100644
--- a/packages/account/src/providers/utils/extract-tx-error.ts
+++ b/packages/account/src/providers/utils/extract-tx-error.ts
@@ -1,6 +1,6 @@
+import typ... | [
"packages/account/src/providers/utils/extract-tx-error.ts"
] | [
{
"comment": "```suggestion\r\n return assembleRevertError(receipts, logs, metadata, statusReason, abis);\r\n```\r\n\r\n`assembleRevertError` is exported, so ideally we wouldn't change it's signature.",
"path": "packages/account/src/providers/utils/extract-tx-error.ts",
"hunk": "@@ -147,5 +220,5 @@ exp... | true | ||
FuelLabs/fuels-ts | 3,894 | comment_to_fix | feat: implement support for new ABI error codes | ```suggestion
return makeErrorCode({ code, value });
``` | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/packages/abi-typegen/src/utils/parseErrorCodes.ts b/packages/abi-typegen/src/utils/parseErrorCodes.ts
new file mode 100644
index 00000000000..54487f4d4b8
--- /dev/null
+++ b/packages/abi-typegen/src/utils/parseErrorCodes.ts
@@ -0,0 +1,18 @@
+import type { ErrorCode } from '../abi/errors/ErrorCode';
+import... | [
"packages/abi-typegen/src/utils/parseErrorCodes.ts"
] | [
{
"comment": "```suggestion\r\n return makeErrorCode({ code, value });\r\n```",
"path": "packages/abi-typegen/src/utils/parseErrorCodes.ts",
"hunk": "@@ -0,0 +1,19 @@\n+import { ErrorCode } from '../abi/errors/ErrorCode';\n+import type { IType } from '../types/interfaces/IType';\n+import type { JsonA... | true | ||
FuelLabs/fuels-ts | 3,894 | comment_to_fix | feat: implement support for new ABI error codes | Can't see these utilised in `packages/fuel-gauge/src/revert-error.test.ts` | 34b77dc327004eabd0f5619ac45b8c8e063bb9e0 | 4155d0b4bb2034acd5cbf59ae15f10fb5ac0731c | diff --git a/packages/fuel-gauge/test/fixtures/forc-projects/script-error/src/main.sw b/packages/fuel-gauge/test/fixtures/forc-projects/script-error/src/main.sw
new file mode 100644
index 00000000000..2fa2486b456
--- /dev/null
+++ b/packages/fuel-gauge/test/fixtures/forc-projects/script-error/src/main.sw
@@ -0,0 +1,25 ... | [
"packages/fuel-gauge/test/fixtures/forc-projects/script-error/src/main.sw"
] | [
{
"comment": "Can't see these utilised in `packages/fuel-gauge/src/revert-error.test.ts`",
"path": "packages/fuel-gauge/test/fixtures/forc-projects/script-error/src/main.sw",
"hunk": "@@ -0,0 +1,25 @@\n+script;\n+\n+#[error_type]\n+enum MyError {\n+ #[error(m = \"error A\")]\n+ A: (),\n+ #[erro... | true | ||
FuelLabs/fuels-ts | 3,899 | issue_to_patch | ci(release): `v0.101.2` @ `master` | # Summary
In this release, we:
- Implement support for new ABI error codes
- Populated transaction summary property `calls` with invoked contract `fn` and `args`
- Deprecated Node 18 - upgrade to a newer version of Node.
- Upgraded `forc` to `0.68.6`
# Features
- [#3894](https://github.com/FuelLabs/fuels-ts/pull/3894... | bfb62ad6029bad39ebaaf79dd8fef0a1b6d781d7 | 014580a0b1d60d1410fbd881c23dedad7fe88a1d | diff --git a/.changeset/angry-donuts-enter.md b/.changeset/angry-donuts-enter.md
deleted file mode 100644
index 1f3ba4a5ee2..00000000000
--- a/.changeset/angry-donuts-enter.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@fuel-ts/account": patch
----
-
-fix: contract operation summary for multi-calls
diff --git a/.changeset/cu... | [
".changeset/angry-donuts-enter.md",
".changeset/curvy-olives-hear.md",
".changeset/dark-pets-travel.md",
".changeset/fresh-kings-matter.md",
".changeset/hot-results-happen.md",
".changeset/lucky-needles-greet.md",
".changeset/smooth-papayas-stick.md",
"internal/check-imports/CHANGELOG.md",
"internal... | [] | true | ||
FuelLabs/fuels-ts | 3,905 | issue_to_patch | chore: update CODEOWNERS | # Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire PR** myself (preferably, on GH UI)
- [x] I **described** all **Breaking Changes** (or there's none)
| 0d710657c987fdc2277613b326568772009a9e6f | 4fc94f5a4dc485588a777425ad7e1094347baabf | diff --git a/.changeset/dark-pets-travel.md b/.changeset/dark-pets-travel.md
new file mode 100644
index 00000000000..40c355a8f1a
--- /dev/null
+++ b/.changeset/dark-pets-travel.md
@@ -0,0 +1,4 @@
+---
+---
+
+chore: update CODEOWNERS
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 3fed9e1b8a4..d199c3e5185 10... | [
".changeset/dark-pets-travel.md",
".github/CODEOWNERS"
] | [] | true | ||
FuelLabs/fuels-ts | 3,889 | issue_to_patch | chore: updated dependencies | Bumps the npm_and_yarn group with 3 updates in the / directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite), [next](https://github.com/vercel/next.js) and [esbuild](https://github.com/evanw/esbuild).
Bumps the npm_and_yarn group with 1 update in the /apps/create-fuels-counter-guide directory: [vite](... | 909c3fb3034a3b6ad0f7534d14a9c668ce92c8cf | aad7e10377c3500ec056c553112eb18e3cb5e996 | diff --git a/.changeset/curvy-olives-hear.md b/.changeset/curvy-olives-hear.md
new file mode 100644
index 00000000000..6f4b572e1a9
--- /dev/null
+++ b/.changeset/curvy-olives-hear.md
@@ -0,0 +1,6 @@
+---
+"fuels": patch
+"create-fuels": patch
+---
+
+chore: updated dependencies
diff --git a/apps/create-fuels-counter-gu... | [
".changeset/curvy-olives-hear.md",
"apps/create-fuels-counter-guide/package.json",
"apps/demo-nextjs/package.json",
"apps/demo-react-vite/package.json",
"apps/demo-wallet-sdk-react/package.json",
"package.json",
"packages/fuels/package.json",
"pnpm-lock.yaml",
"templates/nextjs/package.json",
"tem... | [] | true | ||
FuelLabs/fuels-ts | 3,900 | issue_to_patch | ci(deps): bump dawidd6/action-download-artifact from 9 to 10 | Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 9 to 10.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dawidd6/action-download-artifact/releases">dawidd6/action-download-artifact's releases</a>.</em></p>
<blockquote>
<h2>v10... | 8c19d93c82dcd1dd30f2ea889fd268e0b93c4dad | 2a79edcd4ca9d9a069703876f53c85696d73bf9a | diff --git a/.changeset/smooth-papayas-stick.md b/.changeset/smooth-papayas-stick.md
new file mode 100644
index 00000000000..45f40a6dcb2
--- /dev/null
+++ b/.changeset/smooth-papayas-stick.md
@@ -0,0 +1,4 @@
+---
+---
+
+chore: updated GitHub action `download-artifact` from `9` to `10`
diff --git a/.github/workflows/te... | [
".changeset/smooth-papayas-stick.md",
".github/workflows/test.yaml"
] | [] | true | ||
FuelLabs/fuels-ts | 3,902 | issue_to_patch | chore: support Node 24 - depreciate Node 18 | - Related to #3524
# Release notes
In this release, we:
- Deprecated Node 18 - upgrade to a newer version of Node.
# Summary
Removed support for Node 18 due to the version no longer being maintained.
# Checklist
- [X] All **changes** are **covered** by **tests** (or not applicable)
- [X] All **ch... | ec2ac46d2b3dd3944d4b07c18b612a47b8979796 | 7cf7cda1539e2b333233af283296c21c43fc9f08 | diff --git a/.changeset/fresh-kings-matter.md b/.changeset/fresh-kings-matter.md
new file mode 100644
index 00000000000..fe56b4809cf
--- /dev/null
+++ b/.changeset/fresh-kings-matter.md
@@ -0,0 +1,23 @@
+---
+"create-fuels": patch
+"@fuel-ts/transactions": patch
+"@fuel-ts/abi-typegen": patch
+"@fuel-ts/abi-coder": pat... | [
".changeset/fresh-kings-matter.md",
".github/workflows/test.yaml",
"package.json",
"packages/abi-coder/package.json",
"packages/abi-typegen/package.json",
"packages/account/package.json",
"packages/address/package.json",
"packages/contract/package.json",
"packages/create-fuels/package.json",
"pack... | [] | true | ||
FuelLabs/fuels-ts | 3,897 | issue_to_patch | Assembling a transaction summary using multicall incorrectly sets contract operations
Follow on from #2530, assembling a transaction summary from a multicall is not building the operations correctly. Whilst it no longer throws, the second operation uses the call from the first operation.
I had proposed a solution us... | fix: contract operation summary for multi-calls | - Closes #3706
# Release notes
In this release, we:
- Populated transaction summary property `calls` with invoked contract `fn` and `args`
# Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** t... | b575c6ea0f07740864dc6002d67104c82561974e | 6308d037400d92eb75affdf65ce9fdda8bd675ba | diff --git a/.changeset/angry-donuts-enter.md b/.changeset/angry-donuts-enter.md
new file mode 100644
index 00000000000..1f3ba4a5ee2
--- /dev/null
+++ b/.changeset/angry-donuts-enter.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": patch
+---
+
+fix: contract operation summary for multi-calls
diff --git a/packages/account/... | [
".changeset/angry-donuts-enter.md",
"packages/account/src/providers/transaction-summary/call.ts",
"packages/account/src/providers/transaction-summary/operations.test.ts",
"packages/account/src/providers/transaction-summary/operations.ts",
"packages/account/test/fixtures/transaction-summary.ts",
"packages/... | [] | diff --git a/packages/account/src/providers/transaction-summary/operations.test.ts b/packages/account/src/providers/transaction-summary/operations.test.ts
index b7b5e0c7e69..ae6aa836943 100644
--- a/packages/account/src/providers/transaction-summary/operations.test.ts
+++ b/packages/account/src/providers/transaction-su... | true |
FuelLabs/fuels-ts | 3,893 | issue_to_patch | ci(release): `v0.101.1` @ `master` | # Summary
In this release, we:
- Made `Account.signTransaction` returns `TransactionRequest` or `string`
# Chores
- [#3895](https://github.com/FuelLabs/fuels-ts/pull/3895) - Made `Account.signTransaction` returns `TransactionRequest`, by [@Torres-ssf](https://github.com/Torres-ssf) | 52dfa5b02735a507dea611f40ed369cdd97ea6c9 | 92abba9522097fdcc48c5ba2bacfcc1446dfc242 | diff --git a/.changeset/good-horses-speak.md b/.changeset/good-horses-speak.md
deleted file mode 100644
index 8773ae16bfa..00000000000
--- a/.changeset/good-horses-speak.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@fuel-ts/account": patch
----
-
-chore: made `Account.signTransaction` returns `TransactionRequest`
diff --git... | [
".changeset/good-horses-speak.md",
".changeset/slow-lands-shave.md",
"internal/check-imports/CHANGELOG.md",
"internal/check-imports/package.json",
"packages/abi-coder/CHANGELOG.md",
"packages/abi-coder/package.json",
"packages/abi-typegen/CHANGELOG.md",
"packages/abi-typegen/package.json",
"packages... | [] | true | ||
FuelLabs/fuels-ts | 3,895 | issue_to_patch | Make Connectors `signTransaction` Method Return `TransactionRequest`
We need to update the `signTransaction` method in the [Connector](https://github.com/FuelLabs/fuels-ts/blob/67b3c80db53e5f2c73e52212811656b71f2509d0/packages/account/src/connectors/fuel-connector.ts#L21) interface to return a `TransactionRequest`.
A... | chore: made `Account.signTransaction` returns `TransactionRequest` | - Closes #3896
# Release notes
In this release, we:
- Made `Account.signTransaction` returns `TransactionRequest` or `string`
# Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entir... | 67b3c80db53e5f2c73e52212811656b71f2509d0 | 154d85b54acdb9e902cc6432882723d7983136aa | diff --git a/.changeset/good-horses-speak.md b/.changeset/good-horses-speak.md
new file mode 100644
index 00000000000..8773ae16bfa
--- /dev/null
+++ b/.changeset/good-horses-speak.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/account": patch
+---
+
+chore: made `Account.signTransaction` returns `TransactionRequest`
diff --git a/p... | [
".changeset/good-horses-speak.md",
"packages/account/src/account.ts",
"packages/account/src/connectors/fuel-connector.ts",
"packages/account/src/connectors/types/connector-types.ts",
"packages/account/src/providers/transaction-request/transaction-request.ts"
] | [] | true | |
FuelLabs/fuels-ts | 3,892 | issue_to_patch | chore: update CODEOWNERS file | # Checklist
- [x] All **changes** are **covered** by **tests** (or not applicable)
- [x] All **changes** are **documented** (or not applicable)
- [x] I **reviewed** the **entire PR** myself (preferably, on GH UI)
- [x] I **described** all **Breaking Changes** (or there's none)
| 4ceb8984097cda8e87fb36236b594d86baed8a80 | 7ef01235aaa9bebf36df8a4b79996fa8229e4b72 | diff --git a/.changeset/slow-lands-shave.md b/.changeset/slow-lands-shave.md
new file mode 100644
index 00000000000..1243c1c670f
--- /dev/null
+++ b/.changeset/slow-lands-shave.md
@@ -0,0 +1,4 @@
+---
+---
+
+chore: update CODEOWNERS file
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 231305310b0..3fed9e1b8... | [
".changeset/slow-lands-shave.md",
".github/CODEOWNERS"
] | [] | true | ||
FuelLabs/fuels-ts | 3,884 | issue_to_patch | ci(release): `v0.101.0` @ `master` | # Summary
In this release, we:
- Added method `setData` to `Predicate` class
- Added support for on-the-fly modifications to `TransactionRequest` when using `InvocationScope`
- Made `provider.assembleTx()` to consider `reserveGas` when setting TX `gasLimit`
- Enforced Predicate's `data` property when the Predicate ha... | 68df54a2da76ff7fd5a3d058651d8af1caec961e | 03ba4dde988181f86023c97c5118fbdb2acdc261 | diff --git a/.changeset/bumpy-states-do.md b/.changeset/bumpy-states-do.md
deleted file mode 100644
index 0ee2b530e91..00000000000
--- a/.changeset/bumpy-states-do.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@fuel-ts/program": minor
----
-
-chore!: remove `BaseInvocationScope.getTransactionId()`
diff --git a/.changeset/cur... | [
".changeset/bumpy-states-do.md",
".changeset/curvy-coats-laugh.md",
".changeset/eighty-lies-end.md",
".changeset/huge-stars-attend.md",
".changeset/loud-bags-deny.md",
".changeset/rare-kids-grab.md",
"internal/check-imports/CHANGELOG.md",
"internal/check-imports/package.json",
"packages/abi-coder/CH... | [] | true | ||
FuelLabs/fuels-ts | 3,864 | issue_to_patch | Remove `BaseInvocationScope.getTransactionId`
We have a [getTransactionId](https://github.com/FuelLabs/fuels-ts/blob/0fb6fa8e7d964e9c56eaa5e5554fde660f438bf4/packages/program/src/functions/base-invocation-scope.ts#L475) method on the `BaseInvocationScope`. It is very unlikely that the transaction ID that this method o... | chore!: remove `BaseInvocationScope.getTransactionId()` | - Closes #3538
# Release notes
In this release, we:
- Removed `BaseInvocationScope.getTransactionId()`
# Summary
Removed `getTransactionId()` from the `BaseInvocationScope` as this value is unlikely to be the actual submitted tx ID, as a contract call is funded on `.call()`.
# Breaking Changes
- `g... | e91eb6c892529ced9f660447a041e2ef5ed77ba5 | ff5bc73e958cbfc0bced31fc9e342305d1a1a19e | diff --git a/.changeset/bumpy-states-do.md b/.changeset/bumpy-states-do.md
new file mode 100644
index 00000000000..0ee2b530e91
--- /dev/null
+++ b/.changeset/bumpy-states-do.md
@@ -0,0 +1,5 @@
+---
+"@fuel-ts/program": minor
+---
+
+chore!: remove `BaseInvocationScope.getTransactionId()`
diff --git a/apps/docs/src/guid... | [
".changeset/bumpy-states-do.md",
"apps/docs/src/guide/scripts/custom-script-call.md",
"apps/docs/src/guide/scripts/snippets/script-with-configurable.ts",
"packages/program/src/functions/base-invocation-scope.ts"
] | [] | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.