@reown/walletkit 1.2.3 → 1.2.4-canary-ca-1
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/index.cjs.js +4396 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4379 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12934 -38
- package/dist/index.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client.d.ts +2 -0
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/constants/chainAbstraction.d.ts +11 -0
- package/dist/types/constants/chainAbstraction.d.ts.map +1 -0
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/constants/index.d.ts.map +1 -1
- package/dist/types/controllers/chainAbstraction.d.ts +27 -0
- package/dist/types/controllers/chainAbstraction.d.ts.map +1 -0
- package/dist/types/controllers/engine.d.ts +8 -0
- package/dist/types/controllers/engine.d.ts.map +1 -1
- package/dist/types/libs/yttrium/package.json +16 -0
- package/dist/types/libs/yttrium/yttrium.d.ts +284 -0
- package/dist/types/types/chainAbstraction.d.ts +53 -0
- package/dist/types/types/chainAbstraction.d.ts.map +1 -0
- package/dist/types/types/client.d.ts +8 -0
- package/dist/types/types/client.d.ts.map +1 -1
- package/dist/types/types/engine.d.ts +8 -0
- package/dist/types/types/engine.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/utils/decompress.d.ts +2 -0
- package/dist/types/utils/decompress.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/package.json +9 -7
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export enum Currency {
|
|
4
|
+
Usd = 0,
|
|
5
|
+
Eur = 1,
|
|
6
|
+
Gbp = 2,
|
|
7
|
+
Aud = 3,
|
|
8
|
+
Cad = 4,
|
|
9
|
+
Inr = 5,
|
|
10
|
+
Jpy = 6,
|
|
11
|
+
Btc = 7,
|
|
12
|
+
Eth = 8,
|
|
13
|
+
}
|
|
14
|
+
export interface Metadata {
|
|
15
|
+
fundingFrom: FundingMetadata[];
|
|
16
|
+
initialTransaction: InitialTransactionMetadata;
|
|
17
|
+
/**
|
|
18
|
+
* The number of milliseconds to delay before calling `/status` after getting successful transaction receipts from all sent transactions.
|
|
19
|
+
* Not switching to Duration yet because Kotlin maps this to a native `duration` type but this requires API version 26 but we support 23.
|
|
20
|
+
* https://reown-inc.slack.com/archives/C07HQ8RCGD8/p1738740204879269
|
|
21
|
+
*/
|
|
22
|
+
checkIn: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface InitialTransactionMetadata {
|
|
26
|
+
transferTo: Address;
|
|
27
|
+
amount: U256;
|
|
28
|
+
tokenContract: Address;
|
|
29
|
+
symbol: string;
|
|
30
|
+
decimals: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface FundingMetadata {
|
|
34
|
+
chainId: string;
|
|
35
|
+
tokenContract: Address;
|
|
36
|
+
symbol: string;
|
|
37
|
+
amount: U256;
|
|
38
|
+
bridgingFee: U256;
|
|
39
|
+
decimals: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface PrepareResponseAvailable {
|
|
43
|
+
orchestrationId: string;
|
|
44
|
+
initialTransaction: Transaction;
|
|
45
|
+
transactions: Transaction[];
|
|
46
|
+
metadata: Metadata;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface PrepareResponseNotRequired {
|
|
50
|
+
initialTransaction: Transaction;
|
|
51
|
+
transactions: Transaction[];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type PrepareResponseSuccess = PrepareResponseAvailable | PrepareResponseNotRequired;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Bridging check error response that should be returned as a normal HTTP 200
|
|
58
|
+
* response
|
|
59
|
+
*/
|
|
60
|
+
export interface PrepareResponseError {
|
|
61
|
+
error: BridgingError;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type BridgingError = "NO_ROUTES_AVAILABLE" | "INSUFFICIENT_FUNDS" | "INSUFFICIENT_GAS_FUNDS";
|
|
65
|
+
|
|
66
|
+
export type PrepareResponse = PrepareResponseSuccess | PrepareResponseError;
|
|
67
|
+
|
|
68
|
+
export type StatusResponse = ({ status: "PENDING" } & StatusResponsePendingObject) | ({ status: "COMPLETED" } & StatusResponseCompleted) | ({ status: "ERROR" } & StatusResponseError);
|
|
69
|
+
|
|
70
|
+
export interface StatusResponseError {
|
|
71
|
+
createdAt: number;
|
|
72
|
+
error: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface StatusResponseCompleted {
|
|
76
|
+
createdAt: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface StatusResponsePendingObject {
|
|
80
|
+
createdAt: number;
|
|
81
|
+
/**
|
|
82
|
+
* Polling interval in ms for the client
|
|
83
|
+
*/
|
|
84
|
+
checkIn: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface PulseMetadata {
|
|
88
|
+
url: Url | undefined;
|
|
89
|
+
bundleId: string | undefined;
|
|
90
|
+
sdkVersion: string;
|
|
91
|
+
sdkPlatform: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface Transaction {
|
|
95
|
+
chainId: string;
|
|
96
|
+
from: Address;
|
|
97
|
+
to: Address;
|
|
98
|
+
value: U256;
|
|
99
|
+
input: Bytes;
|
|
100
|
+
gasLimit: U64;
|
|
101
|
+
nonce: U64;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface FeeEstimatedTransaction {
|
|
105
|
+
chainId: string;
|
|
106
|
+
from: Address;
|
|
107
|
+
to: Address;
|
|
108
|
+
value: U256;
|
|
109
|
+
input: Bytes;
|
|
110
|
+
gasLimit: U64;
|
|
111
|
+
nonce: U64;
|
|
112
|
+
maxFeePerGas: U128;
|
|
113
|
+
maxPriorityFeePerGas: U128;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type PrepareDetailedResponseSuccess = { available: UiFields } | { notRequired: PrepareResponseNotRequired };
|
|
117
|
+
|
|
118
|
+
export type PrepareDetailedResponse = { success: PrepareDetailedResponseSuccess } | { error: PrepareResponseError };
|
|
119
|
+
|
|
120
|
+
export interface ExecuteDetails {
|
|
121
|
+
initialTxnReceipt: TransactionReceipt;
|
|
122
|
+
initialTxnHash: B256;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface Amount {
|
|
126
|
+
symbol: string;
|
|
127
|
+
amount: U256;
|
|
128
|
+
unit: number;
|
|
129
|
+
formatted: string;
|
|
130
|
+
/**
|
|
131
|
+
* Special case that assumes the currency is USD and `unit` is at least 2 decimals
|
|
132
|
+
*/
|
|
133
|
+
formattedAlt: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type Hex = `0x${string}`;
|
|
137
|
+
export type Address = Hex;
|
|
138
|
+
export type Bytes = Hex;
|
|
139
|
+
export type U64 = Hex;
|
|
140
|
+
export type U128 = Hex;
|
|
141
|
+
export type U256 = Hex;
|
|
142
|
+
export type B256 = Hex;
|
|
143
|
+
export type Url = string;
|
|
144
|
+
export type TransactionReceipt = {};
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
export interface Call {
|
|
148
|
+
to: Address;
|
|
149
|
+
value: U256;
|
|
150
|
+
input: Bytes;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface TransactionFee {
|
|
154
|
+
fee: Amount;
|
|
155
|
+
localFee: Amount;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface TxnDetails {
|
|
159
|
+
transaction: FeeEstimatedTransaction;
|
|
160
|
+
transactionHashToSign: B256;
|
|
161
|
+
fee: TransactionFee;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface UiFields {
|
|
165
|
+
routeResponse: PrepareResponseAvailable;
|
|
166
|
+
route: TxnDetails[];
|
|
167
|
+
localRouteTotal: Amount;
|
|
168
|
+
bridge: TransactionFee[];
|
|
169
|
+
localBridgeTotal: Amount;
|
|
170
|
+
initial: TxnDetails;
|
|
171
|
+
localTotal: Amount;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export class Client {
|
|
175
|
+
free(): void;
|
|
176
|
+
constructor(project_id: string, pulse_metadata: PulseMetadata);
|
|
177
|
+
prepare(chain_id: string, from: string, call: Call): Promise<PrepareResponse>;
|
|
178
|
+
get_ui_fields(prepare_response: PrepareResponseAvailable, local_currency: Currency): Promise<UiFields>;
|
|
179
|
+
prepare_detailed(chain_id: string, from: string, call: Call, local_currency: Currency): Promise<PrepareDetailedResponse>;
|
|
180
|
+
status(orchestration_id: string): Promise<StatusResponse>;
|
|
181
|
+
wait_for_success(orchestration_id: string, check_in_ms: bigint): Promise<StatusResponseCompleted>;
|
|
182
|
+
wait_for_success_with_timeout(orchestration_id: string, check_in_ms: bigint, timeout_ms: bigint): Promise<StatusResponseCompleted>;
|
|
183
|
+
execute(ui_fields: UiFields, route_txn_sigs: string[], initial_txn_sig: string): Promise<ExecuteDetails>;
|
|
184
|
+
erc20_token_balance(chain_id: string, token: string, owner: string): Promise<string>;
|
|
185
|
+
}
|
|
186
|
+
export class Config {
|
|
187
|
+
private constructor();
|
|
188
|
+
free(): void;
|
|
189
|
+
static local(): Config;
|
|
190
|
+
static pimlico(): Config;
|
|
191
|
+
endpoints: Endpoints;
|
|
192
|
+
}
|
|
193
|
+
export class Endpoint {
|
|
194
|
+
free(): void;
|
|
195
|
+
constructor(base_url: string, api_key: string);
|
|
196
|
+
static local_rpc(): Endpoint;
|
|
197
|
+
static local_bundler(): Endpoint;
|
|
198
|
+
static local_paymaster(): Endpoint;
|
|
199
|
+
base_url: string;
|
|
200
|
+
api_key: string;
|
|
201
|
+
}
|
|
202
|
+
export class Endpoints {
|
|
203
|
+
free(): void;
|
|
204
|
+
constructor(rpc: Endpoint, bundler: Endpoint, paymaster: Endpoint);
|
|
205
|
+
static live(): Endpoints;
|
|
206
|
+
static local(): Endpoints;
|
|
207
|
+
static pimlico(): Endpoints;
|
|
208
|
+
rpc: Endpoint;
|
|
209
|
+
bundler: Endpoint;
|
|
210
|
+
paymaster: Endpoint;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
214
|
+
|
|
215
|
+
export interface InitOutput {
|
|
216
|
+
readonly memory: WebAssembly.Memory;
|
|
217
|
+
readonly __wbg_config_free: (a: number, b: number) => void;
|
|
218
|
+
readonly __wbg_get_config_endpoints: (a: number) => number;
|
|
219
|
+
readonly __wbg_set_config_endpoints: (a: number, b: number) => void;
|
|
220
|
+
readonly config_local: () => number;
|
|
221
|
+
readonly config_pimlico: () => number;
|
|
222
|
+
readonly __wbg_endpoints_free: (a: number, b: number) => void;
|
|
223
|
+
readonly __wbg_get_endpoints_rpc: (a: number) => number;
|
|
224
|
+
readonly __wbg_set_endpoints_rpc: (a: number, b: number) => void;
|
|
225
|
+
readonly __wbg_get_endpoints_bundler: (a: number) => number;
|
|
226
|
+
readonly __wbg_set_endpoints_bundler: (a: number, b: number) => void;
|
|
227
|
+
readonly __wbg_get_endpoints_paymaster: (a: number) => number;
|
|
228
|
+
readonly __wbg_set_endpoints_paymaster: (a: number, b: number) => void;
|
|
229
|
+
readonly endpoints_new: (a: number, b: number, c: number) => number;
|
|
230
|
+
readonly endpoints_live: () => number;
|
|
231
|
+
readonly endpoints_local: () => number;
|
|
232
|
+
readonly endpoints_pimlico: () => number;
|
|
233
|
+
readonly __wbg_endpoint_free: (a: number, b: number) => void;
|
|
234
|
+
readonly __wbg_get_endpoint_base_url: (a: number) => [number, number];
|
|
235
|
+
readonly __wbg_set_endpoint_base_url: (a: number, b: number, c: number) => void;
|
|
236
|
+
readonly __wbg_get_endpoint_api_key: (a: number) => [number, number];
|
|
237
|
+
readonly __wbg_set_endpoint_api_key: (a: number, b: number, c: number) => void;
|
|
238
|
+
readonly endpoint_new: (a: number, b: number, c: number, d: number) => number;
|
|
239
|
+
readonly endpoint_local_rpc: () => number;
|
|
240
|
+
readonly endpoint_local_bundler: () => number;
|
|
241
|
+
readonly endpoint_local_paymaster: () => number;
|
|
242
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
243
|
+
readonly client_new: (a: number, b: number, c: any) => number;
|
|
244
|
+
readonly client_prepare: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
245
|
+
readonly client_get_ui_fields: (a: number, b: any, c: number) => any;
|
|
246
|
+
readonly client_prepare_detailed: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
247
|
+
readonly client_status: (a: number, b: number, c: number) => any;
|
|
248
|
+
readonly client_wait_for_success: (a: number, b: number, c: number, d: bigint) => any;
|
|
249
|
+
readonly client_wait_for_success_with_timeout: (a: number, b: number, c: number, d: bigint, e: bigint) => any;
|
|
250
|
+
readonly client_execute: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
251
|
+
readonly client_erc20_token_balance: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
252
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
253
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
254
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
255
|
+
readonly __externref_table_alloc: () => number;
|
|
256
|
+
readonly __wbindgen_export_4: WebAssembly.Table;
|
|
257
|
+
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
258
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
259
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heb3f862823f1d1fd: (a: number, b: number) => void;
|
|
260
|
+
readonly closure779_externref_shim: (a: number, b: number, c: any) => void;
|
|
261
|
+
readonly closure1018_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
262
|
+
readonly __wbindgen_start: () => void;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
266
|
+
/**
|
|
267
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
268
|
+
* a precompiled `WebAssembly.Module`.
|
|
269
|
+
*
|
|
270
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
271
|
+
*
|
|
272
|
+
* @returns {InitOutput}
|
|
273
|
+
*/
|
|
274
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
278
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
279
|
+
*
|
|
280
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
281
|
+
*
|
|
282
|
+
* @returns {Promise<InitOutput>}
|
|
283
|
+
*/
|
|
284
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { IWalletKitEngine } from "./engine";
|
|
2
|
+
import type { InitialTransactionMetadata, Transaction, Client, PrepareDetailedResponseSuccess, PrepareResponseAvailable, UiFields, FundingMetadata, Hex } from "./../libs/yttrium";
|
|
3
|
+
export declare namespace ChainAbstractionTypes {
|
|
4
|
+
export { Transaction };
|
|
5
|
+
export { InitialTransactionMetadata };
|
|
6
|
+
export { PrepareDetailedResponseSuccess };
|
|
7
|
+
export { PrepareResponseAvailable };
|
|
8
|
+
export { UiFields };
|
|
9
|
+
export { FundingMetadata };
|
|
10
|
+
export { Hex };
|
|
11
|
+
export type ERC20BalanceResponse = ReturnType<Client["erc20_token_balance"]>;
|
|
12
|
+
export type PrepareDetailedResponse = ReturnType<Client["prepare_detailed"]>;
|
|
13
|
+
export type PrepareResponse = ReturnType<Client["prepare"]>;
|
|
14
|
+
export type StatusResponse = ReturnType<Client["status"]>;
|
|
15
|
+
export type UiFieldsResponse = ReturnType<Client["get_ui_fields"]>;
|
|
16
|
+
export type ExecuteResult = ReturnType<Client["execute"]>;
|
|
17
|
+
export type OrchestrationId = string;
|
|
18
|
+
export type SignedTransaction = string;
|
|
19
|
+
export type PartialTransaction = {
|
|
20
|
+
from: Hex;
|
|
21
|
+
to: Hex;
|
|
22
|
+
input: Hex;
|
|
23
|
+
chainId: string;
|
|
24
|
+
value?: Hex;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare abstract class IChainAbstraction {
|
|
28
|
+
engine: IWalletKitEngine;
|
|
29
|
+
constructor(engine: IWalletKitEngine);
|
|
30
|
+
abstract prepare(params: {
|
|
31
|
+
transaction: ChainAbstractionTypes.PartialTransaction;
|
|
32
|
+
}): ChainAbstractionTypes.PrepareResponse;
|
|
33
|
+
abstract prepareDetailed(params: {
|
|
34
|
+
transaction: ChainAbstractionTypes.PartialTransaction;
|
|
35
|
+
}): ChainAbstractionTypes.PrepareDetailedResponse;
|
|
36
|
+
abstract status(params: {
|
|
37
|
+
orchestrationId: ChainAbstractionTypes.OrchestrationId;
|
|
38
|
+
}): ChainAbstractionTypes.StatusResponse;
|
|
39
|
+
abstract getERC20Balance(params: {
|
|
40
|
+
chainId: string;
|
|
41
|
+
tokenAddress: string;
|
|
42
|
+
ownerAddress: string;
|
|
43
|
+
}): ChainAbstractionTypes.ERC20BalanceResponse;
|
|
44
|
+
abstract getPrepareDetails(params: {
|
|
45
|
+
orchestrationId: ChainAbstractionTypes.OrchestrationId;
|
|
46
|
+
}): ChainAbstractionTypes.UiFieldsResponse;
|
|
47
|
+
abstract execute(params: {
|
|
48
|
+
orchestrationId: ChainAbstractionTypes.OrchestrationId;
|
|
49
|
+
bridgeSignedTransactions: ChainAbstractionTypes.SignedTransaction[];
|
|
50
|
+
initialSignedTransaction: ChainAbstractionTypes.SignedTransaction;
|
|
51
|
+
}): ChainAbstractionTypes.ExecuteResult;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=chainAbstraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chainAbstraction.d.ts","sourceRoot":"","sources":["../../../src/types/chainAbstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,KAAK,EACV,0BAA0B,EAC1B,WAAW,EACX,MAAM,EACN,8BAA8B,EAC9B,wBAAwB,EACxB,QAAQ,EACR,eAAe,EACf,GAAG,EACJ,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACtC,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC1C,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC7E,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC7E,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5D,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1D,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IACnE,MAAM,MAAM,aAAa,GAAG,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CACxC"}
|
|
@@ -68,6 +68,13 @@ export declare abstract class IWalletKit {
|
|
|
68
68
|
abstract core: ICore;
|
|
69
69
|
abstract metadata: WalletKitTypes.Metadata;
|
|
70
70
|
abstract signConfig?: WalletKitTypes.SignConfig;
|
|
71
|
+
abstract chainAbstraction: {
|
|
72
|
+
prepare: IWalletKitEngine["prepare"];
|
|
73
|
+
status: IWalletKitEngine["status"];
|
|
74
|
+
getPrepareDetails: IWalletKitEngine["getPrepareDetails"];
|
|
75
|
+
execute: IWalletKitEngine["execute"];
|
|
76
|
+
prepareDetailed: IWalletKitEngine["prepareDetailed"];
|
|
77
|
+
};
|
|
71
78
|
constructor(opts: WalletKitTypes.Options);
|
|
72
79
|
abstract pair: IWalletKitEngine["pair"];
|
|
73
80
|
abstract approveSession: IWalletKitEngine["approveSession"];
|
|
@@ -84,6 +91,7 @@ export declare abstract class IWalletKit {
|
|
|
84
91
|
abstract approveSessionAuthenticate: IWalletKitEngine["approveSessionAuthenticate"];
|
|
85
92
|
abstract formatAuthMessage: IWalletKitEngine["formatAuthMessage"];
|
|
86
93
|
abstract rejectSessionAuthenticate: IWalletKitEngine["rejectSessionAuthenticate"];
|
|
94
|
+
abstract getERC20Balance: IWalletKitEngine["getERC20Balance"];
|
|
87
95
|
abstract on: <E extends WalletKitTypes.Event>(event: E, listener: (args: WalletKitTypes.EventArguments[E]) => void) => EventEmitter;
|
|
88
96
|
abstract once: <E extends WalletKitTypes.Event>(event: E, listener: (args: WalletKitTypes.EventArguments[E]) => void) => EventEmitter;
|
|
89
97
|
abstract off: <E extends WalletKitTypes.Event>(event: E, listener: (args: WalletKitTypes.EventArguments[E]) => void) => EventEmitter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/types/client.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,EAAE,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,SAAS,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CAAC,SAAS,cAAc,CAAC,KAAK,EAClD,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,KACvD,YAAY,CAAC;IAElB,SAAgB,cAAc,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,KAAK,EAC7D,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,KACvD,YAAY,CAAC;CACnB"}
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import { ErrorResponse, JsonRpcResponse } from "@walletconnect/jsonrpc-utils";
|
|
3
3
|
import { ISignClient, PendingRequestTypes, ProposalTypes, SessionTypes, EchoClientTypes, AuthTypes } from "@walletconnect/types";
|
|
4
4
|
import { IWalletKit, WalletKitTypes } from "./client";
|
|
5
|
+
import { IChainAbstraction } from "./chainAbstraction";
|
|
5
6
|
import EventEmitter from "events";
|
|
6
7
|
export declare abstract class IWalletKitEngine {
|
|
7
8
|
client: IWalletKit;
|
|
8
9
|
abstract signClient: ISignClient;
|
|
10
|
+
abstract chainAbstraction: IChainAbstraction;
|
|
9
11
|
constructor(client: IWalletKit);
|
|
10
12
|
abstract init(): Promise<void>;
|
|
11
13
|
abstract pair(params: {
|
|
@@ -62,6 +64,12 @@ export declare abstract class IWalletKitEngine {
|
|
|
62
64
|
reason: ErrorResponse;
|
|
63
65
|
}): Promise<void>;
|
|
64
66
|
abstract registerDeviceToken(params: EchoClientTypes.RegisterDeviceTokenParams): Promise<void>;
|
|
67
|
+
abstract prepare: IChainAbstraction["prepare"];
|
|
68
|
+
abstract status: IChainAbstraction["status"];
|
|
69
|
+
abstract getERC20Balance: IChainAbstraction["getERC20Balance"];
|
|
70
|
+
abstract getPrepareDetails: IChainAbstraction["getPrepareDetails"];
|
|
71
|
+
abstract execute: IChainAbstraction["execute"];
|
|
72
|
+
abstract prepareDetailed: IChainAbstraction["prepareDetailed"];
|
|
65
73
|
abstract on: <E extends WalletKitTypes.Event>(event: E, listener: (args: WalletKitTypes.EventArguments[E]) => void) => EventEmitter;
|
|
66
74
|
abstract once: <E extends WalletKitTypes.Event>(event: E, listener: (args: WalletKitTypes.EventArguments[E]) => void) => EventEmitter;
|
|
67
75
|
abstract off: <E extends WalletKitTypes.Event>(event: E, listener: (args: WalletKitTypes.EventArguments[E]) => void) => EventEmitter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../src/types/engine.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,SAAS,EACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,8BAAsB,gBAAgB;
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../src/types/engine.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,SAAS,EACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,8BAAsB,gBAAgB;IAIjB,MAAM,EAAE,UAAU;IAHrC,SAAgB,UAAU,EAAE,WAAW,CAAC;IACxC,SAAgB,gBAAgB,EAAE,iBAAiB,CAAC;gBAEjC,MAAM,EAAE,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AC,SAAS,cAAc,CAAC,KAAK,EACjD,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,KACvD,YAAY,CAAC;IAElB,SAAgB,IAAI,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,KAAK,EACnD,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,KACvD,YAAY,CAAC;IAElB,SAAgB,GAAG,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,KAAK,EAClD,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,KACvD,YAAY,CAAC;IAElB,SAAgB,cAAc,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,KAAK,EAC7D,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,KACvD,YAAY,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/walletkit",
|
|
3
3
|
"description": "WalletKit for WalletConnect Protocol",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4-canary-ca-1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Reown, Inc.",
|
|
7
7
|
"homepage": "https://github.com/reown-com/",
|
|
@@ -28,18 +28,20 @@
|
|
|
28
28
|
"build": "npm run build:pre; npm run build:source; npm run build:types",
|
|
29
29
|
"test": "vitest run --dir test --no-threads",
|
|
30
30
|
"lint": "eslint -c '../../.eslintrc' --fix './src/**/*.ts'",
|
|
31
|
-
"prettier": "prettier --check '{src,test}/**/*.{js,ts,jsx,tsx}'"
|
|
31
|
+
"prettier": "prettier --ignore-path ./.prettierignore --check '{src,test}/**/*.{js,ts,jsx,tsx}'"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@walletconnect/core": "2.
|
|
34
|
+
"@walletconnect/core": "2.20.1",
|
|
35
35
|
"@walletconnect/jsonrpc-provider": "1.0.14",
|
|
36
36
|
"@walletconnect/jsonrpc-utils": "1.0.8",
|
|
37
37
|
"@walletconnect/logger": "2.1.2",
|
|
38
|
-
"@walletconnect/sign-client": "2.
|
|
39
|
-
"@walletconnect/types": "2.
|
|
40
|
-
"@walletconnect/utils": "2.
|
|
38
|
+
"@walletconnect/sign-client": "2.20.1",
|
|
39
|
+
"@walletconnect/types": "2.20.1",
|
|
40
|
+
"@walletconnect/utils": "2.20.1",
|
|
41
|
+
"brotli": "^1.3.3"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@ethersproject/wallet": "5.7.0"
|
|
44
|
+
"@ethersproject/wallet": "5.7.0",
|
|
45
|
+
"@types/brotli": "^1.3.3"
|
|
44
46
|
}
|
|
45
47
|
}
|