Posted on c/ElrondDevelopers 1 mwf81318617c/ElrondDevelopers 2 years ago I'm a bit confused by what you wrote ? How exactly does your first struct look like? Comment 1 Comments bog8304552146 2years ago These is the entire set #[derive(TypeAbi, TopEncode, TopDecode, ManagedVecItem, NestedEncode, NestedDecode)] pub struct VariableContractSettings { pub token_id: TokenIdentifier, pub min_amount: BigUint, pub pull_items: ManagedVec>, } #[derive(TypeAbi, TopEncode, TopDecode, ManagedVecItem, NestedEncode, NestedDecode)] pub struct Pull { pub id: u32, pub locking_time_span: u64, pub apy_configuration: ManagedVec, } #[derive(TypeAbi, TopEncode, TopDecode, ManagedVecItem, NestedEncode, NestedDecode)] pub struct ApyConfiguration { pub id: u32, pub apy: u64, pub start_timestamp: u64, pub end_timestamp: u64, }
These is the entire set #[derive(TypeAbi, TopEncode, TopDecode, ManagedVecItem, NestedEncode, NestedDecode)] pub struct VariableContractSettings {
pub token_id: TokenIdentifier,
pub min_amount: BigUint,
pub pull_items: ManagedVec>,
}
#[derive(TypeAbi, TopEncode, TopDecode, ManagedVecItem, NestedEncode, NestedDecode)]
pub struct Pull {
pub id: u32,
pub locking_time_span: u64,
pub apy_configuration: ManagedVec,
}
#[derive(TypeAbi, TopEncode, TopDecode, ManagedVecItem, NestedEncode, NestedDecode)]
pub struct ApyConfiguration {
pub id: u32,
pub apy: u64,
pub start_timestamp: u64,
pub end_timestamp: u64,
}