@spicenet-io/spiceflow-ui 1.9.39 → 1.9.40
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/hooks/useStatus/index.d.ts +1 -1
- package/dist/index.cjs.js +13 -13
- package/dist/index.d.ts +0 -1
- package/dist/index.js +13 -13
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/relayer/index.d.ts +1 -10
- package/package.json +1 -1
- package/dist/types/relayer.d.ts +0 -24
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CreateActionRequest, CreateActionResponse, ExecuteStepRequest } from "../../types/unified";
|
|
2
2
|
import { SwapStep } from "../../types/status";
|
|
3
3
|
import { ChainBatch } from "../../types/authorization";
|
|
4
|
-
import { RelayerSubmitRequest, RelayerSubmitResponse } from "@/types/relayer";
|
|
5
4
|
export declare const RELAYER_API_URL: string;
|
|
6
5
|
export declare class RelayerService {
|
|
7
6
|
private baseUrl;
|
|
@@ -13,7 +12,7 @@ export declare class RelayerService {
|
|
|
13
12
|
checkStepStatus(intentId: string, stepId: number): Promise<{
|
|
14
13
|
success: boolean;
|
|
15
14
|
data: {
|
|
16
|
-
status: "created" | "executing" | "success" | "reverted";
|
|
15
|
+
status: "created" | "executing" | "success" | "reverted" | "error";
|
|
17
16
|
transactionHash?: string;
|
|
18
17
|
};
|
|
19
18
|
}>;
|
|
@@ -40,14 +39,6 @@ export declare class RelayerService {
|
|
|
40
39
|
amount?: string;
|
|
41
40
|
errorMessage?: string;
|
|
42
41
|
}>;
|
|
43
|
-
submitTransaction(request: RelayerSubmitRequest): Promise<RelayerSubmitResponse>;
|
|
44
|
-
checkStepStatusSubmitRoute(intentId: string, stepId: number): Promise<{
|
|
45
|
-
success: boolean;
|
|
46
|
-
data: {
|
|
47
|
-
status: "created" | "executing" | "success" | "reverted";
|
|
48
|
-
transactionHash?: string;
|
|
49
|
-
};
|
|
50
|
-
}>;
|
|
51
42
|
}
|
|
52
43
|
export declare const relayerService: RelayerService;
|
|
53
44
|
export declare const createInitialSteps: (chainBatches: ChainBatch[], customGetChainName?: (chainId: number) => string) => SwapStep[];
|
package/package.json
CHANGED
package/dist/types/relayer.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Authorization, Call } from "./authorization";
|
|
2
|
-
export interface RelayerSubmitRequest {
|
|
3
|
-
address: string;
|
|
4
|
-
authorization: Authorization[];
|
|
5
|
-
intentAuthorization: {
|
|
6
|
-
signature: string;
|
|
7
|
-
chainBatches: Array<{
|
|
8
|
-
hash: string;
|
|
9
|
-
chainId: bigint;
|
|
10
|
-
calls: Call[];
|
|
11
|
-
recentBlock: bigint;
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
tokenTransfers: Array<Array<{
|
|
15
|
-
tokenAddress: string;
|
|
16
|
-
tokenAmount: bigint;
|
|
17
|
-
sender?: string;
|
|
18
|
-
receiver?: string;
|
|
19
|
-
}>>;
|
|
20
|
-
}
|
|
21
|
-
export interface RelayerSubmitResponse {
|
|
22
|
-
hash: string;
|
|
23
|
-
intentId: string;
|
|
24
|
-
}
|