|
6 | 6 |
|
7 | 7 | import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate"; |
8 | 8 | import { StdFee } from "@cosmjs/amino"; |
9 | | -import { Timestamp, Uint64, Uint128, PoolConfig, Uint256, Binary, Schedule, InstantiateMsg, Coin, VestingConfig, ExecuteMsg, CreatePool, QueryMsg, Decimal256, AveragePriceResponse, LatestStreamedPriceResponse, PositionsResponse, PositionResponse, Addr, Params, Status, StreamResponse } from "./StreamSwapStream.types"; |
| 9 | +import { Timestamp, Uint64, Schedule, Uint128, PoolConfig, Uint256, Binary, InstantiateMsg, VestingConfig, Coin, ExecuteMsg, CreatePool, QueryMsg, Decimal256, AveragePriceResponse, LatestStreamedPriceResponse, PositionsResponse, PositionResponse, Addr, Params, Status, StreamResponse } from "./StreamSwapStream.types"; |
10 | 10 | export interface StreamSwapStreamReadOnlyInterface { |
11 | 11 | contractAddress: string; |
12 | 12 | params: () => Promise<Params>; |
@@ -107,10 +107,12 @@ export interface StreamSwapStreamInterface extends StreamSwapStreamReadOnlyInter |
107 | 107 | syncPosition: (fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>; |
108 | 108 | finalizeStream: ({ |
109 | 109 | createPool, |
110 | | - newTreasury |
| 110 | + newTreasury, |
| 111 | + salt |
111 | 112 | }: { |
112 | 113 | createPool?: CreatePool; |
113 | 114 | newTreasury?: string; |
| 115 | + salt?: Binary; |
114 | 116 | }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>; |
115 | 117 | exitStream: ({ |
116 | 118 | salt |
@@ -172,15 +174,18 @@ export class StreamSwapStreamClient extends StreamSwapStreamQueryClient implemen |
172 | 174 | }; |
173 | 175 | finalizeStream = async ({ |
174 | 176 | createPool, |
175 | | - newTreasury |
| 177 | + newTreasury, |
| 178 | + salt |
176 | 179 | }: { |
177 | 180 | createPool?: CreatePool; |
178 | 181 | newTreasury?: string; |
| 182 | + salt?: Binary; |
179 | 183 | }, fee: number | StdFee | "auto" = "auto", memo?: string, _funds?: Coin[]): Promise<ExecuteResult> => { |
180 | 184 | return await this.client.execute(this.sender, this.contractAddress, { |
181 | 185 | finalize_stream: { |
182 | 186 | create_pool: createPool, |
183 | | - new_treasury: newTreasury |
| 187 | + new_treasury: newTreasury, |
| 188 | + salt |
184 | 189 | } |
185 | 190 | }, fee, memo, _funds); |
186 | 191 | }; |
|
0 commit comments