Proxy Contract #6452
Unanswered
EngAbdalrhman
asked this question in
Q&A
Proxy Contract
#6452
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a KYC smart contract and I want to provide the upgradable feature so I can add more functions or add more fields to the struct in the future.
I have learned about proxies and the way I separate the storage and the code and I saw the transparent proxy, UUPs, and diamond proxy in my case, I think I have to use diamond especially when I have used UUPs the smart contract exceeds the limit of 24KB so I have to divide the smart contract to many contracts using the diamond mechanism.
i saw many resources talking about diamond mechanism implementation but I don't get how to use it with my smart contract and i saw someone who uses louper he just deployed the main diamond and then deployed the smart contracts he wished to add to diamond and used louper to write or read from each contract but i don't see where is the benefits from this because i want one smart contract that users connect to it by a dapp and when they call a function they get it from the updated place also the storage keeps saving the data so we always connect to one place to fetch the data from and if i would add another fields i could add to somewhere as extended fields.
also, i saw another way to use diamond but i didn't get it why we did such way, and if i tried to use i can't add my array of structs that store the data of persons to TestState.
the UUPs method i tried to use:
Currently, i am working on remix because it is easier and i will move to hardhat later.
Beta Was this translation helpful? Give feedback.
All reactions