sigil-sdk · storage_market
Source declarations, signatures and documentation for storage_market.
Source: sigil/node/sigil-sdk/src/storage_market.rs. SHA-256: 59a1e22010659d410ddf0751d42050395dcfc34c3ce9487a7a02584c09bab5be.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
storage_market::derive_storage_pin_request_id
Derive the canonical storage pin request id before submitting a request.
pub fn derive_storage_pin_request_id(
chain_id: &str,
owner_did: &str,
artifact: &ArtifactCommitment,
duration_epochs: u64,
replication_factor: u16,
client_nonce: &str,
) -> Result<String, SdkError>;Source line: 19.
storage_market::derive_storage_contract_id
Derive the canonical storage contract id for a provider accepting a request.
pub fn derive_storage_contract_id(
chain_id: &str,
request_id: &str,
provider_did: &str,
) -> Result<String, SdkError>;Source line: 39.
storage_market::derive_storage_challenge_id
Derive the canonical storage challenge id before submitting a challenge.
pub fn derive_storage_challenge_id(
chain_id: &str,
contract_id: &str,
opened_at_height: u64,
client_nonce: &str,
) -> Result<String, SdkError>;Source line: 49.
storage_market::preflight_storage_pin_request
Preflight a pin request without reading chain state.
pub fn preflight_storage_pin_request(data: &StoragePinRequestData) -> Result<(), SdkError>;Source line: 60.
storage_market::preflight_storage_receipt
Preflight a provider receipt without reading chain state.
pub fn preflight_storage_receipt(receipt: &StoragePinReceipt) -> Result<(), SdkError>;Source line: 93.
storage_market::TransactionBuilder::storage_provider_register
Build StorageProviderRegister.
#[allow(clippy::too_many_arguments)]
pub fn storage_provider_register(
self,
provider_did: &str,
capacity_gib: u64,
regions: Vec<String>,
price_per_gib_epoch: u64,
retrieval_price_per_gib: u64,
replication_guarantee: u16,
stake: u64,
provider_pubkey: Vec<u8>,
client_nonce: &str,
) -> Transaction;Source line: 115.
storage_market::TransactionBuilder::storage_provider_update
Build StorageProviderUpdate.
#[allow(clippy::too_many_arguments)]
pub fn storage_provider_update(
self,
provider_did: &str,
capacity_gib: Option<u64>,
regions: Option<Vec<String>>,
price_per_gib_epoch: Option<u64>,
retrieval_price_per_gib: Option<u64>,
replication_guarantee: Option<u16>,
provider_pubkey: Option<Vec<u8>>,
client_nonce: &str,
) -> Transaction;Source line: 144.
storage_market::TransactionBuilder::storage_provider_exit
Build StorageProviderExit.
pub fn storage_provider_exit(self, provider_did: &str, client_nonce: &str) -> Transaction;Source line: 170.
storage_market::TransactionBuilder::storage_pin_request
Build StoragePinRequest.
#[allow(clippy::too_many_arguments)]
pub fn storage_pin_request(
self,
owner_did: &str,
artifact: ArtifactCommitment,
duration_epochs: u64,
replication_factor: u16,
max_price_per_gib_epoch: u64,
escrowed_amount: u64,
expires_at_height: Option<u64>,
client_nonce: &str,
) -> Result<Transaction, SdkError>;Source line: 181.
storage_market::TransactionBuilder::storage_pin_accept
Build StoragePinAccept.
pub fn storage_pin_accept(
self,
request_id: &str,
provider_did: &str,
accepted_price_per_gib_epoch: u64,
client_nonce: &str,
) -> Transaction;Source line: 207.
storage_market::TransactionBuilder::storage_receipt_settle
Build StorageReceiptSettle.
pub fn storage_receipt_settle(
self,
receipt: StoragePinReceipt,
) -> Result<Transaction, SdkError>;Source line: 223.
storage_market::TransactionBuilder::storage_challenge
Build StorageChallenge.
pub fn storage_challenge(
self,
contract_id: &str,
challenger_did: &str,
sample_indices: Vec<u64>,
response_window_blocks: u64,
client_nonce: &str,
) -> Transaction;Source line: 234.
storage_market::TransactionBuilder::storage_challenge_resolve
Build StorageChallengeResolve.
pub fn storage_challenge_resolve(
self,
challenge_id: &str,
proof: StorageChallengeProof,
) -> Transaction;Source line: 252.