Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate ts code #109

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contracts/stream/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ pub fn query_stream(deps: Deps, _env: Env) -> StdResult<StreamResponse> {
url: stream_info.url,
current_streamed_price: stream.current_streamed_price,
stream_admin: stream_info.stream_admin.into_string(),
threshold: stream.threshold,
};
Ok(stream)
}
Expand Down
4 changes: 3 additions & 1 deletion packages/types/src/stream/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub struct StreamResponse {
pub dist_index: Decimal256,
/// Last updated time of stream.
pub last_updated: Timestamp,

/// Out asset of the stream.
pub out_asset: Coin,
/// Total number of remaining out tokens at the time of update.
pub out_remaining: Uint256,
Expand All @@ -126,6 +126,8 @@ pub struct StreamResponse {
pub status: Status,
/// Address of the stream admin.
pub stream_admin: String,
/// Threshold for the stream to be finalized.
pub threshold: Option<Uint256>,
}

#[cw_serde]
Expand Down
2 changes: 2 additions & 0 deletions ts/types/StreamSwapStream.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@ export interface StreamResponse {
in_denom: string;
in_supply: Uint256;
last_updated: Timestamp;
name: string;
out_asset: Coin;
out_remaining: Uint256;
shares: Uint256;
spent_in: Uint256;
start_time: Timestamp;
status: Status;
stream_admin: string;
threshold?: Uint256 | null;
treasury: string;
url?: string | null;
}
Loading