@cityofzion/blockchain-service 1.13.3 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interfaces.d.ts +3 -0
- package/package.json +1 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -240,6 +240,7 @@ export type SwapServiceToken<BSName extends string = string> = {
|
|
|
240
240
|
addressTemplateUrl?: string;
|
|
241
241
|
txTemplateUrl?: string;
|
|
242
242
|
network?: string;
|
|
243
|
+
hasExtraId: boolean;
|
|
243
244
|
};
|
|
244
245
|
export type SwapServiceLoadableValue<T> = {
|
|
245
246
|
loading: boolean;
|
|
@@ -259,6 +260,7 @@ export type SwapServiceEvents<BSName extends string = string> = {
|
|
|
259
260
|
tokenToUse: (token: SwapServiceLoadableValue<SwapServiceToken<BSName>>) => void | Promise<void>;
|
|
260
261
|
availableTokensToUse: (tokens: SwapServiceLoadableValue<SwapServiceToken<BSName>[]>) => void | Promise<void>;
|
|
261
262
|
addressToReceive: (account: SwapServiceValidateValue<string>) => void | Promise<void>;
|
|
263
|
+
extraIdToReceive: (extraIdToReceive: SwapServiceValidateValue<string>) => void;
|
|
262
264
|
amountToReceive: (amount: SwapServiceLoadableValue<string>) => void | Promise<void>;
|
|
263
265
|
tokenToReceive: (token: SwapServiceLoadableValue<SwapServiceToken<BSName>>) => void | Promise<void>;
|
|
264
266
|
availableTokensToReceive: (tokens: SwapServiceLoadableValue<SwapServiceToken<BSName>[]>) => void | Promise<void>;
|
|
@@ -285,6 +287,7 @@ export interface SwapService<BSName extends string = string> {
|
|
|
285
287
|
setAmountToUse(amount: string | null): Promise<void>;
|
|
286
288
|
setTokenToReceive(token: SwapServiceToken<BSName> | null): Promise<void>;
|
|
287
289
|
setAddressToReceive(address: string | null): Promise<void>;
|
|
290
|
+
setExtraIdToReceive(extraId: string | null): Promise<void>;
|
|
288
291
|
swap(): Promise<SwapServiceSwapResult>;
|
|
289
292
|
calculateFee(): Promise<string>;
|
|
290
293
|
}
|