deroproject / derohe

DERO Homomorphic Encryption Blockchain Protocol
Other
209 stars 82 forks source link

Add DVM Function: APPEND_SC_CODE #175

Closed lcances closed 6 months ago

lcances commented 7 months ago

Description

Add a DVM function to append code to an already existing smart contract (without erasing old code). The function is called APPEND_SC_CODE and aim to solve the following problem:

As TX parameter consume gasStorage, and Store also consume gasStorage UPDATE_SC_CODE is limited to 10k characters. That mean if your new code is bigger than 10k, you cannot update your SC. (unless you want to remove features)

The new function will allow for the following:

Fixes # (issue)

Type of change

Please select the right one.

Which part is impacted ?

Checklist:

License

Im am contributing & releasing the code under DERO Research License (which can be found here).

lcances commented 6 months ago

Well I am closing this PR because I have a better understanding of the whole situation.

I will soon propose two different approaches. One specific for the UPDATE_SC_CODE in particular, another one a bit more general.

See you soon