NEWTON
Asked
6 months ago
79
views
2
Is it possible to use Solidity's abi.encode and abi.decode in Cairo? Our periphery contract uses these 2 functions in EVM to send a tx to the core contracts, and then if a condition is met the core contract calls back the router like so:
router -> core -> router
An example of this can be found here:
router: https://github.com/CygnusDAO/periphery/blob/main/contracts/cygnus-periphery/CygnusAltairX.sol#L758
core: https://github.com/CygnusDAO/core/blob/main/contracts/cygnus-core/CygnusBorrow.sol#L145
Thanks!
Anubis
asked
6 months ago
0
Accepted answer
The one answer I found was from 0xEvolve [if you read this, feel free to add more details]:
I guess you don’t have a similar approach Just pass felt or felt packs and that should do the trick For now there is not a real typing system in Cairo
Will come in 1.0 tho
answered
6 months ago
Why abi of warp compiled contract does not match original solidity abi?
Is there any way to abi-encode calldata to pass to `account.execute`?
Is there a Cairo equivalent to Keccak256(abi.encode(parameters))?
Are transpiled contracts only interactable with the warp cli?
Has anyone implemented a minimal proxy in Cairo lang?
What if my solidity contract contains Assembly or special EVM calls ?
How to get the contract ABI?
Can you explain Cairo v0.10 usage functions as expressions?
How do I run a Pathfinder node?
Are there rewards for running a Pathfinder node?
What will the bundler ecosystem look like in Account Abstraction?
Nethermind's warp error: JavaScript heap out of memory
How do I connect my DAPP to Starknet testnet using starknetjs?
What is ArgentX?