-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realms as EOAs #1579
Comments
I understand that it's challenging to explain, so let's delve into more specifics: The realm should not be viewed merely as a "code package." Rather, it's more accurately an addressable entity (with a std.Address format) that can be part of the caller stack. This includes being the direct caller, having the ability to send and receive native coins, and possessing other grcXXX assets. Commonalities between a code realm and a user realm include:
However, they differ in several ways:
To draw a parallel with Ethereum, both a user and a contract, identified by their 0xabcdef keys, can own assets or execute calls. Although they don't use the term "realm," there exists a similar concept where a single term is needed to refer to the caller, which could be a vault contract, a DAO contract, a wallet, or a multisig. Thank you, Leon, for addressing this question. I'll continue to ponder if there are additional aspects to include. |
To wrap this issue up: a realm is an addressable entity. It can be a User Realm, or a Code Realm. This is reflected in the This will soon be reflected in the upcoming documentation revamp. |
In order to write unambiguous documentation, I would like to better understand the reason behind why we say that Realms can also be users. What is the idea behind making this connection, and how can we disambiguate it?
In most of our docs, Realms are simply smart contracts written in Gno. However, in some cases, like when trying to explain that
PrevRealm()
can return the following in case the previous caller was an EOA:Or when explaining the
Realm.IsUser()
function, more clarification on this topic would be very needed.It seems to me that I am missing what the concept of Realms in Gno really means.
The text was updated successfully, but these errors were encountered: