Skip to content

Commit

Permalink
Improve explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Dec 12, 2024
1 parent 3c5b24d commit 3ae369c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions explanations/contract.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
This is a vault resource in a smart contract that can be stored in a users account.
This smart contract defines a vault resource designed to be stored within a user's account. The vault serves as a secure container for managing a user's token balance, tracking the total amount of tokens held while providing essential functionality for withdrawing and depositing tokens.

It keeps track of the total balance of tokens as well as the functions to withdraw and deposit tokens.

Interfaces such as Provider, Receiver, and Balance are included that allow users to send you money when executing a transaction.
The vault incorporates key interfaces such as Provider, Receiver, and Balance, which enable token transactions. These interfaces allow users to send and receive tokens efficiently during transactions, ensuring compatibility and interoperability within the broader ecosystem. By integrating these interfaces, the vault resource facilitates streamlined token management and enables robust interactions between accounts in the smart contract.
6 changes: 3 additions & 3 deletions explanations/transaction.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Here we are creating a new Vault resource into an account.
This transaction creates a new Vault resource and stores it securely within the user's private storage. The Vault serves as a container for managing tokens within the account.

When that is created and stored into their private storage, we then create public capabilities that others can use to check balance, or deposit tokens.
After storing the Vault, the transaction establishes public capabilities linked to it. These capabilities allow others to interact with the Vault, enabling actions such as checking its balance or depositing tokens. This setup ensures the Vault is both accessible for approved interactions and protected within the account's private storage.

Once we do that, we check to make sure that the capabilities were indeed created and then we are done with the transaction.
Finally, the transaction verifies that the public capabilities were successfully created, ensuring the Vault is properly set up for use.

0 comments on commit 3ae369c

Please sign in to comment.