Fix compilation errors after API parity changes

Update Market struct to match reference implementation with all required fields, add Clone trait to Rewards struct, fix Market initialization in decode.rs with proper field mappings, update test calls to use correct parameter types for get_sampling_markets method, remove broken example file that needs complete rewrite.
This commit is contained in:
floor-licker
2025-11-04 23:09:17 -05:00
parent 11765f9fc7
commit c5ac9537aa
6 changed files with 41 additions and 208 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ async fn test_connectivity(client: &ClobClient) -> Result<()> {
/// Get a valid token ID from the markets endpoint
async fn get_valid_token_id(client: &ClobClient) -> Result<String> {
let markets = client.get_sampling_markets(Some(10)).await?;
let markets = client.get_sampling_markets(None).await?;
if markets.data.is_empty() {
return Err(PolyfillError::api(404, "No markets found"));