@@ -34,7 +34,7 @@ transfer. Creating an account hook is analogous to adding a function to a smart
3434with the account's privileges when calling Hedera system contracts, just as a smart contract's functions do.
3535
3636Unlike smart contracts, which must encapsulate trust guarantees for multiple parties, lambda hooks belong to a single
37- owner who can directly update their storage via a new ` LambdaSStore ` transaction that acts on EVM storage slots. This
37+ owner who can directly update their storage via a new ` HookStore ` transaction that acts on EVM storage slots. This
3838permits fast, heap adjustments to a lambda's behavior with less overhead than a typical ` ConsensusSubmitMessage ` ; and
3939far less overhead than a ` ContractCall ` .
4040
@@ -461,15 +461,15 @@ message LambdaStorageSlot {
461461}
462462```
463463
464- After an entity has a lambda, a new ` LambdaSStore ` transaction supports efficiently updating the lambda's storage. It
464+ After an entity has a lambda, a new ` HookStore ` transaction supports efficiently updating the lambda's storage. It
465465must be signed by either the entity's controlling key or the admin key set in the lambda's ` HookCreationDetails ` .
466466``` protobuf
467467/**
468468 * Adds or removes key/value pairs in the storage of a lambda.
469469 * <p>
470470 * Either the lambda owner's key or the lambda's admin key must sign this transaction.
471471 */
472- message LambdaSStoreTransactionBody {
472+ message HookStoreTransactionBody {
473473 /**
474474 * The id of the lambda whose storage is being updated.
475475 */
@@ -1066,7 +1066,7 @@ contract OneTimeCodeTransferAllowance is IHieroAccountAllowanceHook {
10661066```
10671067
10681068As great aficionados of the project, we see one day that ` 0.0.X ` holds our favorite NFT of all, serial ` 123 ` ; and that a
1069- ` LambdaSStore ` from ` 0.0.X ` set the storage slot with key ` 0x00 ` to the hash
1069+ ` HookStore ` from ` 0.0.X ` set the storage slot with key ` 0x00 ` to the hash
10701070` 0xc7eba0ccc01e89eb5c2f8e450b820ee9bb6af63e812f7ea12681cfdc454c4687 ` . We rush to solve the puzzle, and deduce the
10711071passcode is the string, ` "These violent delights have violent ends" ` . Now we can transfer the NFT to our account ` 0.0.U `
10721072by submitting a ` CryptoTransfer ` with,
@@ -1088,7 +1088,7 @@ NftTransfer {
10881088
10891089Compare this example to the pure smart contract approach, where the project's team would need to write a more complex
10901090smart contract that is aware of what serial number it currently holds, and makes calls to the HTS system contract to
1091- distribute NFTs. Instead of the team using ` LambdaSStore ` to update the passcode with less overhead and cost to
1091+ distribute NFTs. Instead of the team using ` HookStore ` to update the passcode with less overhead and cost to
10921092the network than even a ` ConsensusSubmitMessage ` , they would need to submit a ` ContractCall ` . Instead of us using a
10931093` CryptoTransfer ` to collect our prize with maximum legibility and minimum cost, we would also need to submit a
10941094` ContractCall ` to the project's smart contract with a significantly higher gas limit.
0 commit comments