v0.93.0
fuel-service-user
released this
30 Jul 14:20
·
265 commits
to master
since this release
Summary
In this release, we:
- Limited deployment to contracts up to 100kb
- Remove the
awaitExecution
flag and its associated functionality - Upgraded
forc
to v0.62.0 - Refactored
getTransactionCost
method forProvider
andAccount
- Expanded our documentation for connectors
Breaking
- Features
- #2796 - Deploy contract validation, by @danielbate
- Chores
- #2820 - Remove
awaitExecution
functionality, by @Torres-ssf - #2643 - Refactored the
getTransactionCost
method, by @petertonysmith94
- #2820 - Remove
Features
- #2755 - Add testing to
create-fuels
, by @danielbate
Fixes
- #2853 - Add back
create fuels
template metadata, by @Dhaiwat10 - #2815 - Make properties of configurables optional in typegen, by @Torres-ssf
- #2843 - Export interfaces in typegen, by @DefiCake
Chores
- #2798 - Handle
create fuels
template scenarios for insufficient funds, by @Dhaiwat10 - #2579 - Integrate
launchTestNode
into current test suites, by @maschad - #2794 - Upgrading
forc
to0.62.0
, by @arboleya
Docs
- #2772 - Add more comments around the
create-fuels
template app, by @Dhaiwat10 - #2786 - Added connector documentation, by @petertonysmith94
Migration Notes
Features
#2796 - Deploy contract validation
ErrorCode.INVALID_TRANSACTION_TYPE
was migrated to ErrorCode.UNSUPPORTED_TRANSACTION_TYPE
.
// before
const code = ErrorCode.INVALID_TRANSACTION_TYPE;
// after
const code = ErrorCode.UNSUPPORTED_TRANSACTION_TYPE;
Chores
#2820 - Remove awaitExecution
functionality
It is no longer possible to submit transactions using the awaitExecution
flag and wait for the transaction to be processed at submission:
// before
const response = await account.sendTransaction(transactionRequest, { awaitExecution: true });
// after
const submit = await account.sendTransaction(transactionRequest);
const response = await submit.waitForResult();
#2643 - Refactored the getTransactionCost
method
Refactored functionality for Provider.getTransactionCost
to Account.getTransactionCost
and changed estimation parameter from quantitiesToContract
to quantities
.
// before
const provider = Provider.create(...);
const account = Wallet.generate({ ... }) || new Predicate(...);
const quantities: Array<CoinQuantityLike> = [
{ amount: 1000, assetId: provider.getBaseAssetId() }
];
const cost = provider.getTransactionCost(txRequest, {
resourceOwner: account,
quantitiesToContract: quantities,
})
// after
const provider = Provider.create(...);
const account = Wallet.generate({ ... }) || new Predicate(...);
const quantities: Array<CoinQuantityLike> = [
{ amount: 1000, assetId: provider.getBaseAssetId() }
];
const cost = account.getTransactionCost(txRequest, { quantities });