NewMigration
Should increace version_counter and create new record in Version Index
SetNewContractAddress
Should accept IN arguments: version string, contract name, contract address
This function should:
a. get version index which tethered to this version string
b. check if contract with that name already has been setted to this version string
c. if there are no entries for that contract name in current version, then set ContractAddresses[ContractName] = 0x...
[draft]
Upgradable svn for smart-contracts, which support smart-contract version control (May be considered as simple "proxy pattern" implementation)
synopsis -- contract which map version control number (string) to array of addresses
Contract variables
Functions
NewMigration Should increace version_counter and create new record in Version Index
SetNewContractAddress Should accept IN arguments: version string, contract name, contract address This function should: a. get version index which tethered to this version string b. check if contract with that name already has been setted to this version string c. if there are no entries for that contract name in current version, then set ContractAddresses[ContractName] = 0x...