Closed snissn closed 1 year ago
@snissn this could be something interesting to do if we first create some kind of utility functions to handle filecoin addresses on solidity (check, convert from string to bytes, from bytes to string, etc). Until we don't have something like that, it will be impossible to do it.
Depends on #241
263 for background.
Many of the types / structs being used specify the type of filecoin address variables in bytes. For example: in DataCapAPI.burnFrom DataCapAPI.sol calls by address into DataCapTypes.ActorID -> DataCapTypes.BurnFromMethodNum with params:
so a solidity user will need to construct bytes owner. Can this be moved to a filecoin id?
Below is a non exhaustive list of such parameters that can be changed:
MinerAPI.sol
DataCapAPI.sol
MarketAPI.sol
Precompiles.sol
SendAPI.sol
types/AccountTypes.sol
types/InitTypes.sol
[x] bytes code_cid should be 20 bytes
[x] Filecoin addresses: id_address, robust_address, subaddress
types/MarketTypes.sol
types/MinerTypes.sol
types/PowerTypes.sol
types/VerifRegTypes.sol
:link: zboto Link