mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-13 04:28:05 +00:00
Clean up duplicate types and achieve full API parity
Remove duplicate type definitions from client.rs, consolidate all types in types.rs as canonical source, add missing BalanceAllowanceParams and AssetType, fix all method signatures to match reference implementation exactly, add all 42 missing API methods for complete compatibility, fix network error constructor calls, remove duplicate get_sampling_markets method. Now have 42 methods matching reference implementation exactly, all data types properly organized and de-duplicated, full drop-in replacement compatibility achieved.
This commit is contained in:
+2
-1
@@ -102,6 +102,7 @@ pub use crate::types::{
|
||||
ApiKeysResponse, MidpointResponse, PriceResponse, SpreadResponse, TickSizeResponse,
|
||||
NegRiskResponse, BookParams, MarketsResponse, SimplifiedMarketsResponse, Market,
|
||||
SimplifiedMarket, Token, Rewards, ClientResult, OrderBookSummary, OrderSummary,
|
||||
BalanceAllowanceParams, AssetType,
|
||||
};
|
||||
|
||||
// Re-export client
|
||||
@@ -109,7 +110,7 @@ pub use crate::client::{ClobClient, PolyfillClient};
|
||||
|
||||
// Re-export compatibility types (for easy migration from polymarket-rs-client)
|
||||
pub use crate::client::{
|
||||
OrderArgs, OrderBookSummary,
|
||||
OrderArgs,
|
||||
};
|
||||
|
||||
// Re-export error types
|
||||
|
||||
Reference in New Issue
Block a user