Skip to content

Commit 4a80028

Browse files
authored
Merge pull request #1508 from onflow/brian-doyle/contract-upgrade-tutorial
Add contract update tutorial
2 parents 6887cf9 + d527917 commit 4a80028

File tree

2 files changed

+830
-1
lines changed

2 files changed

+830
-1
lines changed

docs/blockchain-development-tutorials/cadence/cadence-advantages/index.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ keywords:
1212
- resource-oriented programming
1313
- transaction composition
1414
- script queries
15+
- contract upgrades
16+
- contract updatability
17+
- incremental upgrades
1518
---
1619

1720
# Cadence Advantages
@@ -28,9 +31,14 @@ Learn how to compose with someone else's on-chain contracts by writing a Cadence
2831

2932
Discover how Cadence scripts provide native data availability, allowing you to query any on-chain data directly from Flow's state without relying on external indexers or APIs. This comprehensive tutorial shows you how to build scripts that can discover and query NFT collections across multiple child accounts using Hybrid Custody, then extend it to include both NBA Top Shot and NFL All Day NFTs. You'll learn to filter and process NFT collections, extract specific metadata, and compare Cadence's native data availability with Solidity's limitations.
3033

34+
### [Upgrading Cadence Contracts]
35+
36+
Learn how to upgrade deployed Cadence contracts through multiple incremental upgrades while preserving existing state and maintaining the same contract address. This tutorial demonstrates Cadence's sophisticated contract upgrade system through two realistic scenarios: first adding an event to notify users when the counter reaches an even number, then extending the contract with additional functionality like incrementing by 2 and checking if numbers are even. You'll understand what can and cannot be changed during upgrades, perform multiple contract updates using Flow CLI, and test upgraded functionality with comprehensive transactions and scripts.
37+
3138
## Conclusion
3239

33-
Cadence's unique features—from resource-oriented programming to native data availability and seamless transaction composition—represent a fundamental advancement in smart contract development. These tutorials demonstrate how Cadence enables developers to build sophisticated applications with capabilities that simply aren't possible on other blockchain platforms, while maintaining security and developer experience as core principles.
40+
Cadence's unique features—from resource-oriented programming to native data availability, seamless transaction composition, and sophisticated contract upgrade capabilities—represent a fundamental advancement in smart contract development. These tutorials demonstrate how Cadence enables developers to build sophisticated applications with capabilities that simply aren't possible on other blockchain platforms, while maintaining security and developer experience as core principles.
3441

3542
[Compose with Cadence Transactions]: ./compose-with-cadence-transactions.md
3643
[Native Data Availability with Cadence Scripts]: ./native-data-availibility-with-cadence-scripts.md
44+
[Upgrading Cadence Contracts]: ./upgrading-cadence-contracts.md

0 commit comments

Comments
 (0)