Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Spark MarketRegistry Contract Rust SDK
The Spark MarketRegistry Contract SDK is designed for interacting with the Spark MarketRegistry contract.
There are a set of transactional methods such as deploy
, register/unregister owner methods and markets
getter method. Given below a detailed explanation of every contract method.
SparkRegistryContract Type
Transactional SparkMarketContract Owner Methods
Contract Deployment
pub async
Deploys a new market registry contract with given owner.
owner
The owner of the market registry contract that manages market list.
Returns a new instance of SparkRegistryContract type.
Register new Market
pub async
Registers a new market by owner.
self
The SparkMarketContract instance.
market
The market contract id.
Returns a call result
Unregister Market
pub async
Unregisters a market by owner.
self
The SparkMarketContract instance.
market
The market contract id.
Returns a call result
SparkRegistryContract Getter Methods
Markets Info
pub async
Retrieves user account inforamtion.
self
The SparkMarketContract instance.
assets
The asset pair array [(base_asst_id, quote_asset_id)].
Returns an asset pair and optional market contract id array
Config
;
Retrieves contract configurables.
Returns an Option of owner identity and contract version