Skip to content

Commit

Permalink
generate ts code (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjatosba authored Dec 8, 2024
1 parent ce21081 commit a0fe881
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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;
}

0 comments on commit a0fe881

Please sign in to comment.