From 12368680e7cb723c12484bd28111246efce04769 Mon Sep 17 00:00:00 2001 From: Vitor Marthendal Nunes Date: Sun, 3 Nov 2024 01:26:07 -0300 Subject: [PATCH] docs: fix example links (#2958) fix: example links --- src/actions/public/getBlock.ts | 2 +- src/actions/public/getLogs.ts | 2 +- src/actions/public/getTransaction.ts | 2 +- .../public/getTransactionConfirmations.ts | 2 +- src/actions/public/getTransactionReceipt.ts | 2 +- src/actions/public/readContract.ts | 2 +- src/actions/public/simulateContract.ts | 2 +- .../public/waitForTransactionReceipt.ts | 2 +- src/actions/public/watchBlockNumber.ts | 2 +- src/actions/public/watchBlocks.ts | 2 +- src/actions/wallet/deployContract.ts | 2 +- src/actions/wallet/sendTransaction.ts | 2 +- src/actions/wallet/writeContract.ts | 2 +- src/clients/decorators/public.ts | 22 +++++++++---------- src/clients/decorators/wallet.ts | 6 ++--- src/zksync/decorators/eip712.ts | 4 ++-- 16 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/actions/public/getBlock.ts b/src/actions/public/getBlock.ts index 6221d4f73f..e8aaf2ea99 100644 --- a/src/actions/public/getBlock.ts +++ b/src/actions/public/getBlock.ts @@ -67,7 +67,7 @@ export type GetBlockErrorType = * Returns information about a block at a block number, hash, or tag. * * - Docs: https://viem.sh/docs/actions/public/getBlock - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/fetching-blocks + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_fetching-blocks * - JSON-RPC Methods: * - Calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbynumber) for `blockNumber` & `blockTag`. * - Calls [`eth_getBlockByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbyhash) for `blockHash`. diff --git a/src/actions/public/getLogs.ts b/src/actions/public/getLogs.ts index ee21eaa3d8..269c9bc560 100644 --- a/src/actions/public/getLogs.ts +++ b/src/actions/public/getLogs.ts @@ -115,7 +115,7 @@ export type GetLogsErrorType = * Returns a list of event logs matching the provided parameters. * * - Docs: https://viem.sh/docs/actions/public/getLogs - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/filters-and-logs/event-logs + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/logs_event-logs * - JSON-RPC Methods: [`eth_getLogs`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs) * * @param client - Client to use diff --git a/src/actions/public/getTransaction.ts b/src/actions/public/getTransaction.ts index 96016d8590..556625a131 100644 --- a/src/actions/public/getTransaction.ts +++ b/src/actions/public/getTransaction.ts @@ -68,7 +68,7 @@ export type GetTransactionErrorType = * Returns information about a [Transaction](https://viem.sh/docs/glossary/terms#transaction) given a hash or block identifier. * * - Docs: https://viem.sh/docs/actions/public/getTransaction - * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions + * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_fetching-transactions * - JSON-RPC Methods: [`eth_getTransactionByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionByHash) * * @param client - Client to use diff --git a/src/actions/public/getTransactionConfirmations.ts b/src/actions/public/getTransactionConfirmations.ts index 7ff7e6a7dd..6d2fe2a7d5 100644 --- a/src/actions/public/getTransactionConfirmations.ts +++ b/src/actions/public/getTransactionConfirmations.ts @@ -40,7 +40,7 @@ export type GetTransactionConfirmationsErrorType = * Returns the number of blocks passed (confirmations) since the transaction was processed on a block. * * - Docs: https://viem.sh/docs/actions/public/getTransactionConfirmations - * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions + * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_fetching-transactions * - JSON-RPC Methods: [`eth_getTransactionConfirmations`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionConfirmations) * * @param client - Client to use diff --git a/src/actions/public/getTransactionReceipt.ts b/src/actions/public/getTransactionReceipt.ts index 2140f6feb6..97413f57c0 100644 --- a/src/actions/public/getTransactionReceipt.ts +++ b/src/actions/public/getTransactionReceipt.ts @@ -31,7 +31,7 @@ export type GetTransactionReceiptErrorType = * Returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms#transaction-receipt) given a [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash. * * - Docs: https://viem.sh/docs/actions/public/getTransactionReceipt - * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions + * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_fetching-transactions * - JSON-RPC Methods: [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionreceipt) * * @param client - Client to use diff --git a/src/actions/public/readContract.ts b/src/actions/public/readContract.ts index 22c3423183..b2a5fe237b 100644 --- a/src/actions/public/readContract.ts +++ b/src/actions/public/readContract.ts @@ -73,7 +73,7 @@ export type ReadContractErrorType = GetContractErrorReturnType< * Calls a read-only function on a contract, and returns the response. * * - Docs: https://viem.sh/docs/contract/readContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/reading-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_reading-contracts * * A "read-only" function (constant function) on a Solidity contract is denoted by a `view` or `pure` keyword. They can only read the state of the contract, and cannot make any changes to it. Since read-only methods do not change the state of the contract, they do not require any gas to be executed, and can be called by any user without the need to pay for gas. * diff --git a/src/actions/public/simulateContract.ts b/src/actions/public/simulateContract.ts index 46c755d2e1..a5f0e73f81 100644 --- a/src/actions/public/simulateContract.ts +++ b/src/actions/public/simulateContract.ts @@ -193,7 +193,7 @@ export type SimulateContractErrorType = * Simulates/validates a contract interaction. This is useful for retrieving **return data** and **revert reasons** of contract write functions. * * - Docs: https://viem.sh/docs/contract/simulateContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/writing-to-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_writing-to-contracts * * This function does not require gas to execute and _**does not**_ change the state of the blockchain. It is almost identical to [`readContract`](https://viem.sh/docs/contract/readContract), but also supports contract write functions. * diff --git a/src/actions/public/waitForTransactionReceipt.ts b/src/actions/public/waitForTransactionReceipt.ts index 9a46f76780..bcbaed3f19 100644 --- a/src/actions/public/waitForTransactionReceipt.ts +++ b/src/actions/public/waitForTransactionReceipt.ts @@ -95,7 +95,7 @@ export type WaitForTransactionReceiptErrorType = * Waits for the [Transaction](https://viem.sh/docs/glossary/terms#transaction) to be included on a [Block](https://viem.sh/docs/glossary/terms#block) (one confirmation), and then returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms#transaction-receipt). * * - Docs: https://viem.sh/docs/actions/public/waitForTransactionReceipt - * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions + * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_sending-transactions * - JSON-RPC Methods: * - Polls [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt) on each block until it has been processed. * - If a Transaction has been replaced: diff --git a/src/actions/public/watchBlockNumber.ts b/src/actions/public/watchBlockNumber.ts index 6d5fd3abec..7c9b1ca8b1 100644 --- a/src/actions/public/watchBlockNumber.ts +++ b/src/actions/public/watchBlockNumber.ts @@ -56,7 +56,7 @@ export type WatchBlockNumberErrorType = PollErrorType | ErrorType * Watches and returns incoming block numbers. * * - Docs: https://viem.sh/docs/actions/public/watchBlockNumber - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_watching-blocks * - JSON-RPC Methods: * - When `poll: true`, calls [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber) on a polling interval. * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newHeads"` event. diff --git a/src/actions/public/watchBlocks.ts b/src/actions/public/watchBlocks.ts index 0ecd26d8bb..54bfbf7dc9 100644 --- a/src/actions/public/watchBlocks.ts +++ b/src/actions/public/watchBlocks.ts @@ -75,7 +75,7 @@ export type WatchBlocksErrorType = * Watches and returns information for incoming blocks. * * - Docs: https://viem.sh/docs/actions/public/watchBlocks - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_watching-blocks * - JSON-RPC Methods: * - When `poll: true`, calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getBlockByNumber) on a polling interval. * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newHeads"` event. diff --git a/src/actions/wallet/deployContract.ts b/src/actions/wallet/deployContract.ts index a171aef58e..855b5bfe88 100644 --- a/src/actions/wallet/deployContract.ts +++ b/src/actions/wallet/deployContract.ts @@ -47,7 +47,7 @@ export type DeployContractErrorType = SendTransactionErrorType | ErrorType * Deploys a contract to the network, given bytecode and constructor arguments. * * - Docs: https://viem.sh/docs/contract/deployContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/deploying-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_deploying-contracts * * @param client - Client to use * @param parameters - {@link DeployContractParameters} diff --git a/src/actions/wallet/sendTransaction.ts b/src/actions/wallet/sendTransaction.ts index 447446e42a..dbfd372085 100644 --- a/src/actions/wallet/sendTransaction.ts +++ b/src/actions/wallet/sendTransaction.ts @@ -104,7 +104,7 @@ export type SendTransactionErrorType = * Creates, signs, and sends a new transaction to the network. * * - Docs: https://viem.sh/docs/actions/wallet/sendTransaction - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_sending-transactions * - JSON-RPC Methods: * - JSON-RPC Accounts: [`eth_sendTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendtransaction) * - Local Accounts: [`eth_sendRawTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction) diff --git a/src/actions/wallet/writeContract.ts b/src/actions/wallet/writeContract.ts index a48aef24a7..91219837a4 100644 --- a/src/actions/wallet/writeContract.ts +++ b/src/actions/wallet/writeContract.ts @@ -103,7 +103,7 @@ export type WriteContractErrorType = * Executes a write function on a contract. * * - Docs: https://viem.sh/docs/contract/writeContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/writing-to-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_writing-to-contracts * * A "write" function on a Solidity contract modifies the state of the blockchain. These types of functions require gas to be executed, and hence a [Transaction](https://viem.sh/docs/glossary/terms) is needed to be broadcast in order to change the state. * diff --git a/src/clients/decorators/public.ts b/src/clients/decorators/public.ts index 5c9c525bff..8cbb01386e 100644 --- a/src/clients/decorators/public.ts +++ b/src/clients/decorators/public.ts @@ -552,7 +552,7 @@ export type PublicActions< * Returns information about a block at a block number, hash, or tag. * * - Docs: https://viem.sh/docs/actions/public/getBlock - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/fetching-blocks + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_fetching-blocks * - JSON-RPC Methods: * - Calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbynumber) for `blockNumber` & `blockTag`. * - Calls [`eth_getBlockByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbyhash) for `blockHash`. @@ -580,7 +580,7 @@ export type PublicActions< * Returns the number of the most recent block seen. * * - Docs: https://viem.sh/docs/actions/public/getBlockNumber - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/fetching-blocks + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_fetching-blocks * - JSON-RPC Methods: [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber) * * @param args - {@link GetBlockNumberParameters} @@ -1110,7 +1110,7 @@ export type PublicActions< * Returns a list of event logs matching the provided parameters. * * - Docs: https://viem.sh/docs/actions/public/getLogs - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/filters-and-logs/event-logs + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/logs_event-logs * - JSON-RPC Methods: [`eth_getLogs`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs) * * @param args - {@link GetLogsParameters} @@ -1224,7 +1224,7 @@ export type PublicActions< * Returns information about a [Transaction](https://viem.sh/docs/glossary/terms#transaction) given a hash or block identifier. * * - Docs: https://viem.sh/docs/actions/public/getTransaction - * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions + * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_fetching-transactions * - JSON-RPC Methods: [`eth_getTransactionByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionByHash) * * @param args - {@link GetTransactionParameters} @@ -1249,7 +1249,7 @@ export type PublicActions< * Returns the number of blocks passed (confirmations) since the transaction was processed on a block. * * - Docs: https://viem.sh/docs/actions/public/getTransactionConfirmations - * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions + * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_fetching-transactions * - JSON-RPC Methods: [`eth_getTransactionConfirmations`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionConfirmations) * * @param args - {@link GetTransactionConfirmationsParameters} @@ -1298,7 +1298,7 @@ export type PublicActions< * Returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms#transaction-receipt) given a [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash. * * - Docs: https://viem.sh/docs/actions/public/getTransactionReceipt - * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions + * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_fetching-transactions * - JSON-RPC Methods: [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt) * * @param args - {@link GetTransactionReceiptParameters} @@ -1428,7 +1428,7 @@ export type PublicActions< * Calls a read-only function on a contract, and returns the response. * * - Docs: https://viem.sh/docs/contract/readContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/reading-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_reading-contracts * * @remarks * A "read-only" function (constant function) on a Solidity contract is denoted by a `view` or `pure` keyword. They can only read the state of the contract, and cannot make any changes to it. Since read-only methods do not change the state of the contract, they do not require any gas to be executed, and can be called by any user without the need to pay for gas. @@ -1493,7 +1493,7 @@ export type PublicActions< * Simulates/validates a contract interaction. This is useful for retrieving **return data** and **revert reasons** of contract write functions. * * - Docs: https://viem.sh/docs/contract/simulateContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/writing-to-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_writing-to-contracts * * @remarks * This function does not require gas to execute and _**does not**_ change the state of the blockchain. It is almost identical to [`readContract`](https://viem.sh/docs/contract/readContract), but also supports contract write functions. @@ -1615,7 +1615,7 @@ export type PublicActions< * Waits for the [Transaction](https://viem.sh/docs/glossary/terms#transaction) to be included on a [Block](https://viem.sh/docs/glossary/terms#block) (one confirmation), and then returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms#transaction-receipt). If the Transaction reverts, then the action will throw an error. * * - Docs: https://viem.sh/docs/actions/public/waitForTransactionReceipt - * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions + * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_sending-transactions * - JSON-RPC Methods: * - Polls [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt) on each block until it has been processed. * - If a Transaction has been replaced: @@ -1656,7 +1656,7 @@ export type PublicActions< * Watches and returns incoming block numbers. * * - Docs: https://viem.sh/docs/actions/public/watchBlockNumber - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_watching-blocks * - JSON-RPC Methods: * - When `poll: true`, calls [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber) on a polling interval. * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newHeads"` event. @@ -1683,7 +1683,7 @@ export type PublicActions< * Watches and returns information for incoming blocks. * * - Docs: https://viem.sh/docs/actions/public/watchBlocks - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_watching-blocks * - JSON-RPC Methods: * - When `poll: true`, calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getBlockByNumber) on a polling interval. * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newHeads"` event. diff --git a/src/clients/decorators/wallet.ts b/src/clients/decorators/wallet.ts index f0ebe8ad8f..2103bd93f0 100644 --- a/src/clients/decorators/wallet.ts +++ b/src/clients/decorators/wallet.ts @@ -112,7 +112,7 @@ export type WalletActions< * Deploys a contract to the network, given bytecode and constructor arguments. * * - Docs: https://viem.sh/docs/contract/deployContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/deploying-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_deploying-contracts * * @param args - {@link DeployContractParameters} * @returns The [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash. {@link DeployContractReturnType} @@ -337,7 +337,7 @@ export type WalletActions< * Creates, signs, and sends a new transaction to the network. * * - Docs: https://viem.sh/docs/actions/wallet/sendTransaction - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_sending-transactions * - JSON-RPC Methods: * - JSON-RPC Accounts: [`eth_sendTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendtransaction) * - Local Accounts: [`eth_sendRawTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction) @@ -631,7 +631,7 @@ export type WalletActions< * Executes a write function on a contract. * * - Docs: https://viem.sh/docs/contract/writeContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/writing-to-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_writing-to-contracts * * A "write" function on a Solidity contract modifies the state of the blockchain. These types of functions require gas to be executed, and hence a [Transaction](https://viem.sh/docs/glossary/terms) is needed to be broadcast in order to change the state. * diff --git a/src/zksync/decorators/eip712.ts b/src/zksync/decorators/eip712.ts index 148e8c13c6..415868511f 100644 --- a/src/zksync/decorators/eip712.ts +++ b/src/zksync/decorators/eip712.ts @@ -127,7 +127,7 @@ export type Eip712WalletActions< * Deploys a contract to the network, given bytecode and constructor arguments using EIP712 transaction. * * - Docs: https://viem.sh/docs/contract/deployContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/deploying-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_deploying-contracts * * @param args - {@link DeployContractParameters} * @returns The [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash. {@link DeployContractReturnType} @@ -167,7 +167,7 @@ export type Eip712WalletActions< * Executes a write function on a contract. * * - Docs: https://viem.sh/docs/contract/writeContract - * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/writing-to-contracts + * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_writing-to-contracts * * A "write" function on a Solidity contract modifies the state of the blockchain. These types of functions require gas to be executed, and hence a [Transaction](https://viem.sh/docs/glossary/terms) is needed to be broadcast in order to change the state. *