Open
Description
Describe the bug
Structs used in contract calls, but not in any models, are not being exported.
To Reproduce
Generate typescript bindings for a contract with a call like this...
(from pistols/dev branch)
// https://github.com/underware-gg/pistols/blob/dev/dojo/src/systems/bank.cairo
use pistols::models::pool::{PoolType, LordsReleaseBill};
#[starknet::interface]
pub trait IBank<TState> {
// ...
fn release_lords_from_fame_to_be_burned(ref self: TState, bills: Span<LordsReleaseBill>) -> u128;
// ...
}
// https://github.com/underware-gg/pistols/blob/dev/dojo/src/systems/tokens/duelist_token.cairo
pub trait IDuelistTokenProtected<TState> {
// ...
fn transfer_rewards(ref self: TState, challenge: Challenge, tournament_id: u64, bonus: DuelBonus) -> (RewardValues, RewardValues);
// ...
}
Expected behaviour
All structs used in system calls should be converted to Typescript.