keep-starknet-strange / zaun

Solidity contracts for the Starknet Decentralized Protocol proposal
Apache License 2.0
12 stars 13 forks source link

dev: macro for generating contract trait implementation #11

Open EvolveArt opened 5 months ago

EvolveArt commented 5 months ago

Current Behavior

We are currently writing manually all the functions implementations for our wrapper trait that calls the underlying generated alloy implementaiton. This is very repetitive and error prone.

See here for an example.

Expected Behavior

We would like to have a macro that we can derive from or simply call like callable_contract! which would generate this implementation for us.