@reown/walletkit 1.1.2-canary-wasm-5 → 1.1.2-canary.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,136 +0,0 @@
1
- import { IWalletKitEngine } from "./engine";
2
- export declare namespace ChainAbstractionTypes {
3
- type InitialTransaction = {
4
- from: string;
5
- to: string;
6
- chainId: string;
7
- value?: string;
8
- input?: string;
9
- data?: string;
10
- };
11
- type Transaction = {
12
- from: string;
13
- to: string;
14
- value: string;
15
- chainId: string;
16
- gasLimit: string;
17
- input: string;
18
- nonce: string;
19
- maxFeePerGas: string;
20
- maxPriorityFeePerGas: string;
21
- };
22
- type InitialTransactionMetadata = {
23
- symbol: string;
24
- amount: string;
25
- decimals: number;
26
- tokenContract: string;
27
- transferTo: string;
28
- };
29
- type FulfilmentStatusResponse = {
30
- createdAt: number;
31
- status: "completed";
32
- };
33
- type FulfilmentStatusHandlerResponse = {
34
- createdAt: number;
35
- } & ({
36
- status: "completed";
37
- } | {
38
- status: "pending";
39
- checkIn: number;
40
- } | {
41
- status: "error";
42
- reason: string;
43
- });
44
- type PrepareFulfilmentResponse = {
45
- status: "not_required";
46
- } | {
47
- status: "available";
48
- data: {
49
- fulfilmentId: string;
50
- checkIn: number;
51
- transactions: Transaction[];
52
- funding: FundingFrom[];
53
- initialTransaction: Transaction;
54
- initialTransactionMetadata: InitialTransactionMetadata;
55
- };
56
- } | {
57
- status: "error";
58
- reason: string;
59
- };
60
- type FundingFrom = {
61
- tokenContract: string;
62
- amount: string;
63
- chainId: string;
64
- symbol: string;
65
- decimals: number;
66
- };
67
- type PrepareFulfilmentHandlerResult = {
68
- status: "error";
69
- reason: string;
70
- } | {
71
- status: "not_required";
72
- } | {
73
- status: "available";
74
- data: {
75
- orchestrationId: string;
76
- checkIn: number;
77
- metadata: {
78
- fundingFrom: FundingFrom[];
79
- initialTransaction: InitialTransactionMetadata;
80
- };
81
- transactions: Transaction[];
82
- initialTransaction: Transaction;
83
- };
84
- };
85
- type EstimateFeesResponse = {
86
- maxFeePerGas: string;
87
- maxPriorityFeePerGas: string;
88
- };
89
- type ERC20BalanceResponse = {
90
- balance: string;
91
- };
92
- type TotalFee = {
93
- symbol: string;
94
- amount: string;
95
- unit: number;
96
- formatted: string;
97
- formattedAlt: string;
98
- };
99
- type TransactionFee = {
100
- fee: TotalFee;
101
- localFee: TotalFee;
102
- };
103
- type TransactionDetails = {
104
- transaction: Transaction;
105
- eip1559: EstimateFeesResponse;
106
- transactionFee: TransactionFee;
107
- };
108
- type FulfilmentDetailsResponse = {
109
- routeDetails: TransactionDetails[];
110
- initialTransactionDetails: TransactionDetails;
111
- bridgeDetails: TransactionFee[];
112
- totalFee: TotalFee;
113
- };
114
- }
115
- export declare abstract class IChainAbstraction {
116
- engine: IWalletKitEngine;
117
- constructor(engine: IWalletKitEngine);
118
- abstract prepareFulfilment(params: {
119
- transaction: ChainAbstractionTypes.InitialTransaction;
120
- }): Promise<ChainAbstractionTypes.PrepareFulfilmentResponse>;
121
- abstract fulfilmentStatus(params: {
122
- fulfilmentId: string;
123
- }): Promise<ChainAbstractionTypes.FulfilmentStatusResponse>;
124
- abstract estimateFees(params: {
125
- chainId: string;
126
- }): Promise<ChainAbstractionTypes.EstimateFeesResponse>;
127
- abstract getERC20Balance(params: {
128
- chainId: string;
129
- tokenAddress: string;
130
- ownerAddress: string;
131
- }): Promise<ChainAbstractionTypes.ERC20BalanceResponse>;
132
- abstract getFulfilmentDetails(params: {
133
- fulfilmentId: string;
134
- }): Promise<ChainAbstractionTypes.FulfilmentDetailsResponse>;
135
- }
136
- //# sourceMappingURL=chainAbstraction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chainAbstraction.d.ts","sourceRoot":"","sources":["../../../src/types/chainAbstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,KAAK,kBAAkB,GAAG;QACxB,IAAI,EAAE,MAAM,CAAC;Q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":3,"file":"decompress.d.ts","sourceRoot":"","sources":["../../../src/utils/decompress.ts"],"names":[],"mappings":"AAEA,wBAAsB,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAK1E"}