@imtbl/sdk 0.36.5 → 0.38.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/blockchain_data.js +1 -1
- package/dist/browser/checkout/sdk.js +6 -6
- package/dist/browser/checkout/widgets.js +58 -58
- package/dist/checkout.d.ts +633 -194
- package/dist/checkout.js +222 -106
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +227 -110
- package/dist/index.d.ts +510 -66
- package/dist/index.js +227 -110
- package/dist/passport.js +2 -2
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,381 @@ declare namespace config_d {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
// TypeScript Version: 4.7
|
|
55
|
+
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
|
56
|
+
|
|
57
|
+
interface RawAxiosHeaders {
|
|
58
|
+
[key: string]: AxiosHeaderValue;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
type MethodsHeaders = Partial<{
|
|
62
|
+
[Key in Method$1 as Lowercase<Key>]: AxiosHeaders;
|
|
63
|
+
} & {common: AxiosHeaders}>;
|
|
64
|
+
|
|
65
|
+
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
|
|
66
|
+
|
|
67
|
+
declare class AxiosHeaders {
|
|
68
|
+
constructor(
|
|
69
|
+
headers?: RawAxiosHeaders | AxiosHeaders
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
|
|
74
|
+
set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
75
|
+
set(headers?: RawAxiosHeaders | AxiosHeaders, rewrite?: boolean): AxiosHeaders;
|
|
76
|
+
|
|
77
|
+
get(headerName: string, parser: RegExp): RegExpExecArray | null;
|
|
78
|
+
get(headerName: string, matcher?: true | AxiosHeaderMatcher): AxiosHeaderValue;
|
|
79
|
+
|
|
80
|
+
has(header: string, matcher?: true | AxiosHeaderMatcher): boolean;
|
|
81
|
+
|
|
82
|
+
delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
|
|
83
|
+
|
|
84
|
+
clear(matcher?: AxiosHeaderMatcher): boolean;
|
|
85
|
+
|
|
86
|
+
normalize(format: boolean): AxiosHeaders;
|
|
87
|
+
|
|
88
|
+
concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
|
|
89
|
+
|
|
90
|
+
toJSON(asStrings?: boolean): RawAxiosHeaders;
|
|
91
|
+
|
|
92
|
+
static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
|
|
93
|
+
|
|
94
|
+
static accessor(header: string | string[]): AxiosHeaders;
|
|
95
|
+
|
|
96
|
+
static concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
|
|
97
|
+
|
|
98
|
+
setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
99
|
+
getContentType(parser?: RegExp): RegExpExecArray | null;
|
|
100
|
+
getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
101
|
+
hasContentType(matcher?: AxiosHeaderMatcher): boolean;
|
|
102
|
+
|
|
103
|
+
setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
104
|
+
getContentLength(parser?: RegExp): RegExpExecArray | null;
|
|
105
|
+
getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
106
|
+
hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
|
|
107
|
+
|
|
108
|
+
setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
109
|
+
getAccept(parser?: RegExp): RegExpExecArray | null;
|
|
110
|
+
getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
111
|
+
hasAccept(matcher?: AxiosHeaderMatcher): boolean;
|
|
112
|
+
|
|
113
|
+
setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
114
|
+
getUserAgent(parser?: RegExp): RegExpExecArray | null;
|
|
115
|
+
getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
116
|
+
hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
|
|
117
|
+
|
|
118
|
+
setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
119
|
+
getContentEncoding(parser?: RegExp): RegExpExecArray | null;
|
|
120
|
+
getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
121
|
+
hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
|
|
122
|
+
|
|
123
|
+
setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
124
|
+
getAuthorization(parser?: RegExp): RegExpExecArray | null;
|
|
125
|
+
getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
126
|
+
hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
|
|
127
|
+
|
|
128
|
+
[Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent' | 'Content-Encoding' | 'Authorization';
|
|
132
|
+
|
|
133
|
+
type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
|
|
134
|
+
|
|
135
|
+
type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & {
|
|
136
|
+
[Key in CommonRequestHeadersList]: AxiosHeaderValue;
|
|
137
|
+
} & {
|
|
138
|
+
'Content-Type': ContentType
|
|
139
|
+
}>;
|
|
140
|
+
|
|
141
|
+
type AxiosRequestHeaders$1 = RawAxiosRequestHeaders & AxiosHeaders;
|
|
142
|
+
|
|
143
|
+
type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding';
|
|
144
|
+
|
|
145
|
+
type RawCommonResponseHeaders = {
|
|
146
|
+
[Key in CommonResponseHeadersList]: AxiosHeaderValue;
|
|
147
|
+
} & {
|
|
148
|
+
"set-cookie": string[];
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
|
|
152
|
+
|
|
153
|
+
type AxiosResponseHeaders$1 = RawAxiosResponseHeaders & AxiosHeaders;
|
|
154
|
+
|
|
155
|
+
interface AxiosRequestTransformer$1 {
|
|
156
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders$1): any;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
interface AxiosResponseTransformer$1 {
|
|
160
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders$1, status?: number): any;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface AxiosAdapter$1 {
|
|
164
|
+
(config: InternalAxiosRequestConfig): AxiosPromise$1;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface AxiosBasicCredentials$1 {
|
|
168
|
+
username: string;
|
|
169
|
+
password: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface AxiosProxyConfig$1 {
|
|
173
|
+
host: string;
|
|
174
|
+
port: number;
|
|
175
|
+
auth?: {
|
|
176
|
+
username: string;
|
|
177
|
+
password: string;
|
|
178
|
+
};
|
|
179
|
+
protocol?: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
type Method$1 =
|
|
183
|
+
| 'get' | 'GET'
|
|
184
|
+
| 'delete' | 'DELETE'
|
|
185
|
+
| 'head' | 'HEAD'
|
|
186
|
+
| 'options' | 'OPTIONS'
|
|
187
|
+
| 'post' | 'POST'
|
|
188
|
+
| 'put' | 'PUT'
|
|
189
|
+
| 'patch' | 'PATCH'
|
|
190
|
+
| 'purge' | 'PURGE'
|
|
191
|
+
| 'link' | 'LINK'
|
|
192
|
+
| 'unlink' | 'UNLINK';
|
|
193
|
+
|
|
194
|
+
type ResponseType$1 =
|
|
195
|
+
| 'arraybuffer'
|
|
196
|
+
| 'blob'
|
|
197
|
+
| 'document'
|
|
198
|
+
| 'json'
|
|
199
|
+
| 'text'
|
|
200
|
+
| 'stream';
|
|
201
|
+
|
|
202
|
+
type responseEncoding$1 =
|
|
203
|
+
| 'ascii' | 'ASCII'
|
|
204
|
+
| 'ansi' | 'ANSI'
|
|
205
|
+
| 'binary' | 'BINARY'
|
|
206
|
+
| 'base64' | 'BASE64'
|
|
207
|
+
| 'base64url' | 'BASE64URL'
|
|
208
|
+
| 'hex' | 'HEX'
|
|
209
|
+
| 'latin1' | 'LATIN1'
|
|
210
|
+
| 'ucs-2' | 'UCS-2'
|
|
211
|
+
| 'ucs2' | 'UCS2'
|
|
212
|
+
| 'utf-8' | 'UTF-8'
|
|
213
|
+
| 'utf8' | 'UTF8'
|
|
214
|
+
| 'utf16le' | 'UTF16LE';
|
|
215
|
+
|
|
216
|
+
interface TransitionalOptions$1 {
|
|
217
|
+
silentJSONParsing?: boolean;
|
|
218
|
+
forcedJSONParsing?: boolean;
|
|
219
|
+
clarifyTimeoutError?: boolean;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
interface GenericAbortSignal {
|
|
223
|
+
readonly aborted: boolean;
|
|
224
|
+
onabort?: ((...args: any) => any) | null;
|
|
225
|
+
addEventListener?: (...args: any) => any;
|
|
226
|
+
removeEventListener?: (...args: any) => any;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
interface FormDataVisitorHelpers {
|
|
230
|
+
defaultVisitor: SerializerVisitor;
|
|
231
|
+
convertValue: (value: any) => any;
|
|
232
|
+
isVisitable: (value: any) => boolean;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface SerializerVisitor {
|
|
236
|
+
(
|
|
237
|
+
this: GenericFormData,
|
|
238
|
+
value: any,
|
|
239
|
+
key: string | number,
|
|
240
|
+
path: null | Array<string | number>,
|
|
241
|
+
helpers: FormDataVisitorHelpers
|
|
242
|
+
): boolean;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface SerializerOptions {
|
|
246
|
+
visitor?: SerializerVisitor;
|
|
247
|
+
dots?: boolean;
|
|
248
|
+
metaTokens?: boolean;
|
|
249
|
+
indexes?: boolean | null;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// tslint:disable-next-line
|
|
253
|
+
interface FormSerializerOptions extends SerializerOptions {
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
interface ParamEncoder {
|
|
257
|
+
(value: any, defaultEncoder: (value: any) => any): any;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
interface CustomParamsSerializer {
|
|
261
|
+
(params: Record<string, any>, options?: ParamsSerializerOptions): string;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
interface ParamsSerializerOptions extends SerializerOptions {
|
|
265
|
+
encode?: ParamEncoder;
|
|
266
|
+
serialize?: CustomParamsSerializer;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
type MaxUploadRate = number;
|
|
270
|
+
|
|
271
|
+
type MaxDownloadRate = number;
|
|
272
|
+
|
|
273
|
+
type BrowserProgressEvent = any;
|
|
274
|
+
|
|
275
|
+
interface AxiosProgressEvent {
|
|
276
|
+
loaded: number;
|
|
277
|
+
total?: number;
|
|
278
|
+
progress?: number;
|
|
279
|
+
bytes: number;
|
|
280
|
+
rate?: number;
|
|
281
|
+
estimated?: number;
|
|
282
|
+
upload?: boolean;
|
|
283
|
+
download?: boolean;
|
|
284
|
+
event?: BrowserProgressEvent;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
type Milliseconds = number;
|
|
288
|
+
|
|
289
|
+
type AxiosAdapterName = 'xhr' | 'http' | string;
|
|
290
|
+
|
|
291
|
+
type AxiosAdapterConfig = AxiosAdapter$1 | AxiosAdapterName;
|
|
292
|
+
|
|
293
|
+
interface AxiosRequestConfig$1<D = any> {
|
|
294
|
+
url?: string;
|
|
295
|
+
method?: Method$1 | string;
|
|
296
|
+
baseURL?: string;
|
|
297
|
+
transformRequest?: AxiosRequestTransformer$1 | AxiosRequestTransformer$1[];
|
|
298
|
+
transformResponse?: AxiosResponseTransformer$1 | AxiosResponseTransformer$1[];
|
|
299
|
+
headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
|
|
300
|
+
params?: any;
|
|
301
|
+
paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
|
|
302
|
+
data?: D;
|
|
303
|
+
timeout?: Milliseconds;
|
|
304
|
+
timeoutErrorMessage?: string;
|
|
305
|
+
withCredentials?: boolean;
|
|
306
|
+
adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
|
|
307
|
+
auth?: AxiosBasicCredentials$1;
|
|
308
|
+
responseType?: ResponseType$1;
|
|
309
|
+
responseEncoding?: responseEncoding$1 | string;
|
|
310
|
+
xsrfCookieName?: string;
|
|
311
|
+
xsrfHeaderName?: string;
|
|
312
|
+
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
313
|
+
onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
314
|
+
maxContentLength?: number;
|
|
315
|
+
validateStatus?: ((status: number) => boolean) | null;
|
|
316
|
+
maxBodyLength?: number;
|
|
317
|
+
maxRedirects?: number;
|
|
318
|
+
maxRate?: number | [MaxUploadRate, MaxDownloadRate];
|
|
319
|
+
beforeRedirect?: (options: Record<string, any>, responseDetails: { headers: Record<string, string> }) => void;
|
|
320
|
+
socketPath?: string | null;
|
|
321
|
+
transport?: any;
|
|
322
|
+
httpAgent?: any;
|
|
323
|
+
httpsAgent?: any;
|
|
324
|
+
proxy?: AxiosProxyConfig$1 | false;
|
|
325
|
+
cancelToken?: CancelToken$1;
|
|
326
|
+
decompress?: boolean;
|
|
327
|
+
transitional?: TransitionalOptions$1;
|
|
328
|
+
signal?: GenericAbortSignal;
|
|
329
|
+
insecureHTTPParser?: boolean;
|
|
330
|
+
env?: {
|
|
331
|
+
FormData?: new (...args: any[]) => object;
|
|
332
|
+
};
|
|
333
|
+
formSerializer?: FormSerializerOptions;
|
|
334
|
+
family?: 4 | 6 | undefined;
|
|
335
|
+
lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: string, family: number) => void) => void) |
|
|
336
|
+
((hostname: string, options: object) => Promise<[address: string, family: number] | string>);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig$1<D> {
|
|
340
|
+
headers: AxiosRequestHeaders$1;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
interface HeadersDefaults$1 {
|
|
344
|
+
common: RawAxiosRequestHeaders;
|
|
345
|
+
delete: RawAxiosRequestHeaders;
|
|
346
|
+
get: RawAxiosRequestHeaders;
|
|
347
|
+
head: RawAxiosRequestHeaders;
|
|
348
|
+
post: RawAxiosRequestHeaders;
|
|
349
|
+
put: RawAxiosRequestHeaders;
|
|
350
|
+
patch: RawAxiosRequestHeaders;
|
|
351
|
+
options?: RawAxiosRequestHeaders;
|
|
352
|
+
purge?: RawAxiosRequestHeaders;
|
|
353
|
+
link?: RawAxiosRequestHeaders;
|
|
354
|
+
unlink?: RawAxiosRequestHeaders;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
interface AxiosDefaults$1<D = any> extends Omit<AxiosRequestConfig$1<D>, 'headers'> {
|
|
358
|
+
headers: HeadersDefaults$1;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface AxiosResponse$1<T = any, D = any> {
|
|
362
|
+
data: T;
|
|
363
|
+
status: number;
|
|
364
|
+
statusText: string;
|
|
365
|
+
headers: RawAxiosResponseHeaders | AxiosResponseHeaders$1;
|
|
366
|
+
config: InternalAxiosRequestConfig<D>;
|
|
367
|
+
request?: any;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
type AxiosPromise$1<T = any> = Promise<AxiosResponse$1<T>>;
|
|
371
|
+
|
|
372
|
+
interface Cancel$1 {
|
|
373
|
+
message: string | undefined;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
interface CancelToken$1 {
|
|
377
|
+
promise: Promise<Cancel$1>;
|
|
378
|
+
reason?: Cancel$1;
|
|
379
|
+
throwIfRequested(): void;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
interface AxiosInterceptorOptions {
|
|
383
|
+
synchronous?: boolean;
|
|
384
|
+
runWhen?: (config: InternalAxiosRequestConfig) => boolean;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
interface AxiosInterceptorManager$1<V> {
|
|
388
|
+
use(onFulfilled?: ((value: V) => V | Promise<V>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number;
|
|
389
|
+
eject(id: number): void;
|
|
390
|
+
clear(): void;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
declare class Axios$1 {
|
|
394
|
+
constructor(config?: AxiosRequestConfig$1);
|
|
395
|
+
defaults: AxiosDefaults$1;
|
|
396
|
+
interceptors: {
|
|
397
|
+
request: AxiosInterceptorManager$1<InternalAxiosRequestConfig>;
|
|
398
|
+
response: AxiosInterceptorManager$1<AxiosResponse$1>;
|
|
399
|
+
};
|
|
400
|
+
getUri(config?: AxiosRequestConfig$1): string;
|
|
401
|
+
request<T = any, R = AxiosResponse$1<T>, D = any>(config: AxiosRequestConfig$1<D>): Promise<R>;
|
|
402
|
+
get<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
403
|
+
delete<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
404
|
+
head<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
405
|
+
options<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
406
|
+
post<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
407
|
+
put<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
408
|
+
patch<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
409
|
+
postForm<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
410
|
+
putForm<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
411
|
+
patchForm<T = any, R = AxiosResponse$1<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
interface AxiosInstance$1 extends Axios$1 {
|
|
415
|
+
<T = any, R = AxiosResponse$1<T>, D = any>(config: AxiosRequestConfig$1<D>): Promise<R>;
|
|
416
|
+
<T = any, R = AxiosResponse$1<T>, D = any>(url: string, config?: AxiosRequestConfig$1<D>): Promise<R>;
|
|
417
|
+
|
|
418
|
+
defaults: Omit<AxiosDefaults$1, 'headers'> & {
|
|
419
|
+
headers: HeadersDefaults$1 & {
|
|
420
|
+
[key: string]: AxiosHeaderValue
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
interface GenericFormData {
|
|
426
|
+
append(name: string, value: any, options?: any): any;
|
|
427
|
+
}
|
|
428
|
+
|
|
54
429
|
/**
|
|
55
430
|
* Immutable zkEVM API
|
|
56
431
|
* Immutable Multi Rollup API
|
|
@@ -16183,7 +16558,7 @@ interface CreateListingParams {
|
|
|
16183
16558
|
}
|
|
16184
16559
|
type ListListingsParams = Omit<Parameters<typeof OrdersService.prototype.listListings>[0], 'chainName'>;
|
|
16185
16560
|
type ListTradesParams = Omit<Parameters<typeof OrdersService.prototype.listTrades>[0], 'chainName'>;
|
|
16186
|
-
declare enum FeeType {
|
|
16561
|
+
declare enum FeeType$1 {
|
|
16187
16562
|
MAKER_ECOSYSTEM = "MAKER_ECOSYSTEM",
|
|
16188
16563
|
TAKER_ECOSYSTEM = "TAKER_ECOSYSTEM",
|
|
16189
16564
|
PROTOCOL = "PROTOCOL",
|
|
@@ -16194,7 +16569,7 @@ interface FeeValue {
|
|
|
16194
16569
|
amount: string;
|
|
16195
16570
|
}
|
|
16196
16571
|
interface Fee$1 extends FeeValue {
|
|
16197
|
-
type: FeeType;
|
|
16572
|
+
type: FeeType$1;
|
|
16198
16573
|
}
|
|
16199
16574
|
declare enum TransactionPurpose {
|
|
16200
16575
|
APPROVAL = "APPROVAL",
|
|
@@ -16463,8 +16838,6 @@ type orderbook_d_CancelOrdersOnChainResponse = CancelOrdersOnChainResponse;
|
|
|
16463
16838
|
type orderbook_d_CreateListingParams = CreateListingParams;
|
|
16464
16839
|
type orderbook_d_ERC20Item = ERC20Item;
|
|
16465
16840
|
type orderbook_d_ERC721Item = ERC721Item;
|
|
16466
|
-
type orderbook_d_FeeType = FeeType;
|
|
16467
|
-
declare const orderbook_d_FeeType: typeof FeeType;
|
|
16468
16841
|
type orderbook_d_FeeValue = FeeValue;
|
|
16469
16842
|
type orderbook_d_FulfillBulkOrdersInsufficientBalanceResponse = FulfillBulkOrdersInsufficientBalanceResponse;
|
|
16470
16843
|
type orderbook_d_FulfillBulkOrdersResponse = FulfillBulkOrdersResponse;
|
|
@@ -16507,7 +16880,7 @@ declare namespace orderbook_d {
|
|
|
16507
16880
|
orderbook_d_ERC20Item as ERC20Item,
|
|
16508
16881
|
orderbook_d_ERC721Item as ERC721Item,
|
|
16509
16882
|
Fee$1 as Fee,
|
|
16510
|
-
|
|
16883
|
+
FeeType$1 as FeeType,
|
|
16511
16884
|
orderbook_d_FeeValue as FeeValue,
|
|
16512
16885
|
orderbook_d_FulfillBulkOrdersInsufficientBalanceResponse as FulfillBulkOrdersInsufficientBalanceResponse,
|
|
16513
16886
|
orderbook_d_FulfillBulkOrdersResponse as FulfillBulkOrdersResponse,
|
|
@@ -16846,15 +17219,15 @@ type NativeBuyToken = {
|
|
|
16846
17219
|
* Represents a ERC20 buy token
|
|
16847
17220
|
* @property {ItemType} type
|
|
16848
17221
|
* @property {string} amount
|
|
16849
|
-
* @property {string}
|
|
17222
|
+
* @property {string} tokenAddress
|
|
16850
17223
|
*/
|
|
16851
17224
|
type ERC20BuyToken = {
|
|
16852
17225
|
/** The type indicate this is a ERC20 token. */
|
|
16853
17226
|
type: ItemType.ERC20;
|
|
16854
17227
|
/** The amount of native token. */
|
|
16855
17228
|
amount: string;
|
|
16856
|
-
/** The
|
|
16857
|
-
|
|
17229
|
+
/** The token address of the ERC20. */
|
|
17230
|
+
tokenAddress: string;
|
|
16858
17231
|
};
|
|
16859
17232
|
/**
|
|
16860
17233
|
* The SellToken type
|
|
@@ -16895,16 +17268,16 @@ type NativeItemRequirement = {
|
|
|
16895
17268
|
/**
|
|
16896
17269
|
* Represents an ERC20 item requirement for a transaction.
|
|
16897
17270
|
* @property {ItemType.ERC20} type
|
|
17271
|
+
* @property {string} tokenAddress
|
|
16898
17272
|
* @property {string} amount
|
|
16899
|
-
* @property {string} contractAddress
|
|
16900
17273
|
* @property {string} spenderAddress
|
|
16901
17274
|
*/
|
|
16902
17275
|
type ERC20ItemRequirement = {
|
|
16903
17276
|
/** The type to indicate this is a ERC20 item requirement. */
|
|
16904
17277
|
type: ItemType.ERC20;
|
|
17278
|
+
/** The token address of the ERC20. */
|
|
17279
|
+
tokenAddress: string;
|
|
16905
17280
|
/** The amount of the item. */
|
|
16906
|
-
contractAddress: string;
|
|
16907
|
-
/** The contract address of the ERC20. */
|
|
16908
17281
|
amount: string;
|
|
16909
17282
|
/** The contract address of the approver. */
|
|
16910
17283
|
spenderAddress: string;
|
|
@@ -16998,14 +17371,14 @@ type NativeGas = {
|
|
|
16998
17371
|
/**
|
|
16999
17372
|
* Represents an ERC20 gas token.
|
|
17000
17373
|
* @property {GasTokenType} type
|
|
17001
|
-
* @property {string}
|
|
17374
|
+
* @property {string} tokenAddress
|
|
17002
17375
|
* @property {BigNumber} limit
|
|
17003
17376
|
*/
|
|
17004
17377
|
type ERC20Gas = {
|
|
17005
17378
|
/** The type to indicate this is an ERC20 gas token. */
|
|
17006
17379
|
type: GasTokenType.ERC20;
|
|
17007
|
-
/** The
|
|
17008
|
-
|
|
17380
|
+
/** The token address of the ERC20. */
|
|
17381
|
+
tokenAddress: string;
|
|
17009
17382
|
/** The gas limit. */
|
|
17010
17383
|
limit: BigNumber;
|
|
17011
17384
|
};
|
|
@@ -17113,6 +17486,8 @@ type FundingRoute = {
|
|
|
17113
17486
|
* @property {TokenInfo | undefined} token
|
|
17114
17487
|
*/
|
|
17115
17488
|
type Fee = {
|
|
17489
|
+
/** The type of fee */
|
|
17490
|
+
type: FeeType;
|
|
17116
17491
|
/** The amount of the fee */
|
|
17117
17492
|
amount: BigNumber;
|
|
17118
17493
|
/** The formatted amount of the fee */
|
|
@@ -17120,6 +17495,20 @@ type Fee = {
|
|
|
17120
17495
|
/** The token info for the fee */
|
|
17121
17496
|
token?: TokenInfo;
|
|
17122
17497
|
};
|
|
17498
|
+
/**
|
|
17499
|
+
* An enum representing the funding step types
|
|
17500
|
+
* @enum {string}
|
|
17501
|
+
* @property {string} GAS - If the fee is a gas fee.
|
|
17502
|
+
* @property {string} BRIDGE_FEE - If the fee is a bridge fee.
|
|
17503
|
+
* @property {string} SWAP_FEE - If the fee is a swap fee.
|
|
17504
|
+
* @property {string} IMMUTABLE_FEE - If the fee is an immutable fee.
|
|
17505
|
+
*/
|
|
17506
|
+
declare enum FeeType {
|
|
17507
|
+
GAS = "GAS",
|
|
17508
|
+
BRIDGE_FEE = "BRIDGE_FEE",
|
|
17509
|
+
SWAP_FEE = "SWAP_FEE",
|
|
17510
|
+
IMMUTABLE_FEE = "IMMUTABLE_FEE"
|
|
17511
|
+
}
|
|
17123
17512
|
type FundingStep = BridgeFundingStep | SwapFundingStep | OnRampFundingStep;
|
|
17124
17513
|
/**
|
|
17125
17514
|
* Represents a bridge funding route
|
|
@@ -17140,15 +17529,15 @@ type BridgeFundingStep = {
|
|
|
17140
17529
|
};
|
|
17141
17530
|
/**
|
|
17142
17531
|
* Represents the fees for a bridge funding step
|
|
17143
|
-
* @property {Fee}
|
|
17144
|
-
* @property {Fee}
|
|
17532
|
+
* @property {Fee} approvalGasFee
|
|
17533
|
+
* @property {Fee} bridgeGasFee
|
|
17145
17534
|
* @property {Fee[]} bridgeFees
|
|
17146
17535
|
*/
|
|
17147
17536
|
type BridgeFees = {
|
|
17148
|
-
/** The approval gas
|
|
17149
|
-
|
|
17150
|
-
/** The bridge gas
|
|
17151
|
-
|
|
17537
|
+
/** The approval gas fee for the bridge */
|
|
17538
|
+
approvalGasFee: Fee;
|
|
17539
|
+
/** The bridge gas fee for the bridge */
|
|
17540
|
+
bridgeGasFee: Fee;
|
|
17152
17541
|
/** Additional bridge fees for the bridge */
|
|
17153
17542
|
bridgeFees: Fee[];
|
|
17154
17543
|
};
|
|
@@ -17171,15 +17560,15 @@ type SwapFundingStep = {
|
|
|
17171
17560
|
};
|
|
17172
17561
|
/**
|
|
17173
17562
|
* Represents the fees for a swap funding step
|
|
17174
|
-
* @property {Fee}
|
|
17175
|
-
* @property {Fee}
|
|
17563
|
+
* @property {Fee} approvalGasFee
|
|
17564
|
+
* @property {Fee} swapGasFee
|
|
17176
17565
|
* @property {Fee[]} swapFees
|
|
17177
17566
|
*/
|
|
17178
17567
|
type SwapFees = {
|
|
17179
|
-
/** The approval gas
|
|
17180
|
-
|
|
17181
|
-
/** The swap gas
|
|
17182
|
-
|
|
17568
|
+
/** The approval gas fee for the swap */
|
|
17569
|
+
approvalGasFee: Fee;
|
|
17570
|
+
/** The swap gas fee for the swap */
|
|
17571
|
+
swapGasFee: Fee;
|
|
17183
17572
|
/** Additional swap fees for the swap */
|
|
17184
17573
|
swapFees: Fee[];
|
|
17185
17574
|
};
|
|
@@ -17442,12 +17831,14 @@ interface CheckoutBridgeConfiguration extends CheckoutFeatureConfiguration {
|
|
|
17442
17831
|
* @property {CheckoutSwapConfiguration} swap - To configure the swap feature.
|
|
17443
17832
|
* @property {CheckoutBridgeConfiguration} bridge - To configure the bridge feature.
|
|
17444
17833
|
* @property {Passport} passport - To enable passport wallet integration.
|
|
17834
|
+
* @property {string} publishableKey - To identify your integration for tracking and analytics purposes.
|
|
17445
17835
|
*/
|
|
17446
17836
|
interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverrides> {
|
|
17447
17837
|
onRamp?: CheckoutOnRampConfiguration;
|
|
17448
17838
|
swap?: CheckoutSwapConfiguration;
|
|
17449
17839
|
bridge?: CheckoutBridgeConfiguration;
|
|
17450
17840
|
passport?: Passport;
|
|
17841
|
+
publishableKey?: string;
|
|
17451
17842
|
}
|
|
17452
17843
|
/**
|
|
17453
17844
|
* A type representing various remotely defined configurations which are
|
|
@@ -17948,23 +18339,38 @@ interface FiatRampParams {
|
|
|
17948
18339
|
passport?: any;
|
|
17949
18340
|
}
|
|
17950
18341
|
|
|
18342
|
+
declare class HttpClient {
|
|
18343
|
+
protected config: any;
|
|
18344
|
+
protected axiosInstance: AxiosInstance$1;
|
|
18345
|
+
constructor(config?: CheckoutModuleConfiguration);
|
|
18346
|
+
private shouldAddPublishableKey;
|
|
18347
|
+
private setupInterceptors;
|
|
18348
|
+
private processResponse;
|
|
18349
|
+
request(config: AxiosRequestConfig$1): Promise<AxiosResponse$1<any, any>>;
|
|
18350
|
+
get(url: string, config?: AxiosRequestConfig$1): Promise<AxiosResponse$1<any, any>>;
|
|
18351
|
+
post(url: string, data?: any, config?: AxiosRequestConfig$1): Promise<AxiosResponse$1<any, any>>;
|
|
18352
|
+
put(url: string, data?: any, config?: AxiosRequestConfig$1): Promise<AxiosResponse$1<any, any>>;
|
|
18353
|
+
delete(url: string, data?: any, config?: AxiosRequestConfig$1): Promise<AxiosResponse$1<any, any>>;
|
|
18354
|
+
}
|
|
18355
|
+
|
|
17951
18356
|
type RemoteConfigParams = {
|
|
17952
18357
|
isDevelopment: boolean;
|
|
17953
18358
|
isProduction: boolean;
|
|
17954
18359
|
};
|
|
17955
18360
|
declare class RemoteConfigFetcher {
|
|
18361
|
+
private httpClient;
|
|
17956
18362
|
private isDevelopment;
|
|
17957
18363
|
private isProduction;
|
|
17958
18364
|
private configCache;
|
|
17959
18365
|
private tokensCache;
|
|
17960
18366
|
private version;
|
|
17961
|
-
constructor(params: RemoteConfigParams);
|
|
17962
|
-
private static makeHttpRequest;
|
|
18367
|
+
constructor(httpClient: HttpClient, params: RemoteConfigParams);
|
|
17963
18368
|
private getEndpoint;
|
|
17964
18369
|
private loadConfig;
|
|
17965
18370
|
private loadConfigTokens;
|
|
17966
18371
|
getConfig(key?: keyof RemoteConfiguration): Promise<RemoteConfiguration | RemoteConfiguration[keyof RemoteConfiguration] | undefined>;
|
|
17967
18372
|
getTokensConfig(chainId: ChainId): Promise<ChainTokensConfig>;
|
|
18373
|
+
getHttpClient: () => HttpClient;
|
|
17968
18374
|
}
|
|
17969
18375
|
|
|
17970
18376
|
declare class CheckoutConfiguration {
|
|
@@ -17976,7 +18382,7 @@ declare class CheckoutConfiguration {
|
|
|
17976
18382
|
readonly remote: RemoteConfigFetcher;
|
|
17977
18383
|
readonly environment: Environment;
|
|
17978
18384
|
readonly networkMap: NetworkMap;
|
|
17979
|
-
constructor(config: CheckoutModuleConfiguration);
|
|
18385
|
+
constructor(config: CheckoutModuleConfiguration, httpClient: HttpClient);
|
|
17980
18386
|
}
|
|
17981
18387
|
|
|
17982
18388
|
interface FiatRampWidgetParams {
|
|
@@ -18018,7 +18424,42 @@ declare enum WidgetTheme {
|
|
|
18018
18424
|
type WidgetConfiguration = {
|
|
18019
18425
|
/** The theme of the Checkout Widget (default: "DARK") */
|
|
18020
18426
|
theme?: WidgetTheme;
|
|
18427
|
+
language?: WidgetLanguage;
|
|
18021
18428
|
};
|
|
18429
|
+
/**
|
|
18430
|
+
* Widget Language represents the language options for the Checkout Widgets.
|
|
18431
|
+
*/
|
|
18432
|
+
type WidgetLanguage = 'en' | 'ja' | 'ko' | 'zh';
|
|
18433
|
+
|
|
18434
|
+
/**
|
|
18435
|
+
* Connect Widget Configuration represents the configuration options for the Connect Widget.
|
|
18436
|
+
*/
|
|
18437
|
+
type ConnectWidgetConfiguration = {} & WidgetConfiguration;
|
|
18438
|
+
|
|
18439
|
+
/**
|
|
18440
|
+
* Bridge Widget Configuration represents the configuration options for the Bridge Widget.
|
|
18441
|
+
*/
|
|
18442
|
+
type BridgeWidgetConfiguration = {} & WidgetConfiguration;
|
|
18443
|
+
|
|
18444
|
+
/**
|
|
18445
|
+
* Wallet Widget Configuration represents the configuration options for the Wallet Widget.
|
|
18446
|
+
*/
|
|
18447
|
+
type WalletWidgetConfiguration = {} & WidgetConfiguration;
|
|
18448
|
+
|
|
18449
|
+
/**
|
|
18450
|
+
* Swap Widget Configuration represents the configuration options for the Swap Widget.
|
|
18451
|
+
*/
|
|
18452
|
+
type SwapWidgetConfiguration = {} & WidgetConfiguration;
|
|
18453
|
+
|
|
18454
|
+
/**
|
|
18455
|
+
* Onramp Widget Configuration represents the configuration options for the Onramp Widget.
|
|
18456
|
+
*/
|
|
18457
|
+
type OnrampWidgetConfiguration = {} & WidgetConfiguration;
|
|
18458
|
+
|
|
18459
|
+
/**
|
|
18460
|
+
* Sale Widget Configuration represents the configuration options for the Sale Widget.
|
|
18461
|
+
*/
|
|
18462
|
+
type SaleWidgetConfiguration = {} & WidgetConfiguration;
|
|
18022
18463
|
|
|
18023
18464
|
/**
|
|
18024
18465
|
* Enum representing the events emitted by the widgets.
|
|
@@ -18044,6 +18485,12 @@ declare enum ProviderEventType {
|
|
|
18044
18485
|
type ProviderUpdated = {
|
|
18045
18486
|
provider: Web3Provider;
|
|
18046
18487
|
};
|
|
18488
|
+
/**
|
|
18489
|
+
* Payload type for the LANGUAGE_CHANGED event
|
|
18490
|
+
*/
|
|
18491
|
+
type LanguageChanged = {
|
|
18492
|
+
language: WidgetLanguage;
|
|
18493
|
+
};
|
|
18047
18494
|
|
|
18048
18495
|
/**
|
|
18049
18496
|
* Enum representing possible Connect Widget event types.
|
|
@@ -18051,7 +18498,8 @@ type ProviderUpdated = {
|
|
|
18051
18498
|
declare enum ConnectEventType {
|
|
18052
18499
|
CLOSE_WIDGET = "close-widget",
|
|
18053
18500
|
SUCCESS = "success",
|
|
18054
|
-
FAILURE = "failure"
|
|
18501
|
+
FAILURE = "failure",
|
|
18502
|
+
LANGUAGE_CHANGED = "language-changed"
|
|
18055
18503
|
}
|
|
18056
18504
|
/**
|
|
18057
18505
|
* Represents a successful connection.
|
|
@@ -18079,7 +18527,8 @@ type ConnectionFailed = {
|
|
|
18079
18527
|
declare enum WalletEventType {
|
|
18080
18528
|
CLOSE_WIDGET = "close-widget",
|
|
18081
18529
|
NETWORK_SWITCH = "network-switch",
|
|
18082
|
-
DISCONNECT_WALLET = "disconnect-wallet"
|
|
18530
|
+
DISCONNECT_WALLET = "disconnect-wallet",
|
|
18531
|
+
LANGUAGE_CHANGED = "language-changed"
|
|
18083
18532
|
}
|
|
18084
18533
|
/**
|
|
18085
18534
|
* Represents an event that is triggered when the user switches the network in their wallet.
|
|
@@ -18107,7 +18556,8 @@ declare enum SwapEventType {
|
|
|
18107
18556
|
CLOSE_WIDGET = "close-widget",
|
|
18108
18557
|
SUCCESS = "success",
|
|
18109
18558
|
FAILURE = "failure",
|
|
18110
|
-
REJECTED = "rejected"
|
|
18559
|
+
REJECTED = "rejected",
|
|
18560
|
+
LANGUAGE_CHANGED = "language-changed"
|
|
18111
18561
|
}
|
|
18112
18562
|
/**
|
|
18113
18563
|
* Represents a successful swap transaction.
|
|
@@ -18148,7 +18598,8 @@ declare enum SaleEventType {
|
|
|
18148
18598
|
SUCCESS = "success",
|
|
18149
18599
|
FAILURE = "failure",
|
|
18150
18600
|
REJECTED = "rejected",
|
|
18151
|
-
TRANSACTION_SUCCESS = "transaction-success"
|
|
18601
|
+
TRANSACTION_SUCCESS = "transaction-success",
|
|
18602
|
+
LANGUAGE_CHANGED = "language-changed"
|
|
18152
18603
|
}
|
|
18153
18604
|
/**
|
|
18154
18605
|
* Represents a successful Sale transaction.
|
|
@@ -18197,7 +18648,8 @@ type SaleTransactionSuccess = {
|
|
|
18197
18648
|
declare enum BridgeEventType {
|
|
18198
18649
|
CLOSE_WIDGET = "close-widget",
|
|
18199
18650
|
FAILURE = "failure",
|
|
18200
|
-
TRANSACTION_SENT = "transaction-sent"
|
|
18651
|
+
TRANSACTION_SENT = "transaction-sent",
|
|
18652
|
+
LANGUAGE_CHANGED = "language-changed"
|
|
18201
18653
|
}
|
|
18202
18654
|
/**
|
|
18203
18655
|
* Represents a successful bridge transaction.
|
|
@@ -18289,7 +18741,8 @@ type OrchestrationEventData = RequestConnectEvent | RequestWalletEvent | Request
|
|
|
18289
18741
|
declare enum OnRampEventType {
|
|
18290
18742
|
CLOSE_WIDGET = "close-widget",
|
|
18291
18743
|
SUCCESS = "success",
|
|
18292
|
-
FAILURE = "failure"
|
|
18744
|
+
FAILURE = "failure",
|
|
18745
|
+
LANGUAGE_CHANGED = "language-changed"
|
|
18293
18746
|
}
|
|
18294
18747
|
/**
|
|
18295
18748
|
* Represents a successful on-ramp transaction.
|
|
@@ -18315,7 +18768,10 @@ declare enum ConnectTargetLayer {
|
|
|
18315
18768
|
LAYER1 = "LAYER1",
|
|
18316
18769
|
LAYER2 = "LAYER2"
|
|
18317
18770
|
}
|
|
18318
|
-
type ConnectWidgetParams = {
|
|
18771
|
+
type ConnectWidgetParams = {
|
|
18772
|
+
/** The language to use for the connect widget */
|
|
18773
|
+
language?: WidgetLanguage;
|
|
18774
|
+
};
|
|
18319
18775
|
|
|
18320
18776
|
/**
|
|
18321
18777
|
* Bridge Widget parameters
|
|
@@ -18330,6 +18786,8 @@ type BridgeWidgetParams = {
|
|
|
18330
18786
|
amount?: string;
|
|
18331
18787
|
/** The wallet provider name to use for the bridge widget */
|
|
18332
18788
|
walletProviderName?: WalletProviderName;
|
|
18789
|
+
/** The language to use for the bridge widget */
|
|
18790
|
+
language?: WidgetLanguage;
|
|
18333
18791
|
};
|
|
18334
18792
|
|
|
18335
18793
|
/**
|
|
@@ -18339,6 +18797,8 @@ type BridgeWidgetParams = {
|
|
|
18339
18797
|
type WalletWidgetParams = {
|
|
18340
18798
|
/** The wallet provider name to use for the wallet widget */
|
|
18341
18799
|
walletProviderName?: WalletProviderName;
|
|
18800
|
+
/** The language to use for the wallet widget */
|
|
18801
|
+
language?: WidgetLanguage;
|
|
18342
18802
|
};
|
|
18343
18803
|
|
|
18344
18804
|
/**
|
|
@@ -18357,6 +18817,8 @@ type SwapWidgetParams = {
|
|
|
18357
18817
|
toTokenAddress?: string;
|
|
18358
18818
|
/** The wallet provider name to use for the swap widget */
|
|
18359
18819
|
walletProviderName?: WalletProviderName;
|
|
18820
|
+
/** The language to use for the swap widget */
|
|
18821
|
+
language?: WidgetLanguage;
|
|
18360
18822
|
};
|
|
18361
18823
|
|
|
18362
18824
|
/**
|
|
@@ -18372,6 +18834,8 @@ type OnRampWidgetParams = {
|
|
|
18372
18834
|
amount?: string;
|
|
18373
18835
|
/** The wallet provider name to use for the onramp widget */
|
|
18374
18836
|
walletProviderName?: WalletProviderName;
|
|
18837
|
+
/** The language to use for the onramp widget */
|
|
18838
|
+
language?: WidgetLanguage;
|
|
18375
18839
|
};
|
|
18376
18840
|
|
|
18377
18841
|
/**
|
|
@@ -18391,6 +18855,8 @@ type SaleWidgetParams = {
|
|
|
18391
18855
|
items?: SaleItem[];
|
|
18392
18856
|
/** The wallet provider name to default to if no web3Provider is passed */
|
|
18393
18857
|
walletProviderName?: WalletProviderName;
|
|
18858
|
+
/** The language to use for the sales widget */
|
|
18859
|
+
language?: WidgetLanguage;
|
|
18394
18860
|
};
|
|
18395
18861
|
/**
|
|
18396
18862
|
* A product to be purchased
|
|
@@ -18413,36 +18879,6 @@ type SaleItem = {
|
|
|
18413
18879
|
description: string;
|
|
18414
18880
|
};
|
|
18415
18881
|
|
|
18416
|
-
/**
|
|
18417
|
-
* Connect Widget Configuration represents the configuration options for the Connect Widget.
|
|
18418
|
-
*/
|
|
18419
|
-
type ConnectWidgetConfiguration = {} & WidgetConfiguration;
|
|
18420
|
-
|
|
18421
|
-
/**
|
|
18422
|
-
* Bridge Widget Configuration represents the configuration options for the Bridge Widget.
|
|
18423
|
-
*/
|
|
18424
|
-
type BridgeWidgetConfiguration = {} & WidgetConfiguration;
|
|
18425
|
-
|
|
18426
|
-
/**
|
|
18427
|
-
* Wallet Widget Configuration represents the configuration options for the Wallet Widget.
|
|
18428
|
-
*/
|
|
18429
|
-
type WalletWidgetConfiguration = {} & WidgetConfiguration;
|
|
18430
|
-
|
|
18431
|
-
/**
|
|
18432
|
-
* Swap Widget Configuration represents the configuration options for the Swap Widget.
|
|
18433
|
-
*/
|
|
18434
|
-
type SwapWidgetConfiguration = {} & WidgetConfiguration;
|
|
18435
|
-
|
|
18436
|
-
/**
|
|
18437
|
-
* Onramp Widget Configuration represents the configuration options for the Onramp Widget.
|
|
18438
|
-
*/
|
|
18439
|
-
type OnrampWidgetConfiguration = {} & WidgetConfiguration;
|
|
18440
|
-
|
|
18441
|
-
/**
|
|
18442
|
-
* Sale Widget Configuration represents the configuration options for the Sale Widget.
|
|
18443
|
-
*/
|
|
18444
|
-
type SaleWidgetConfiguration = {} & WidgetConfiguration;
|
|
18445
|
-
|
|
18446
18882
|
/**
|
|
18447
18883
|
* Enum representing the list of widget types.
|
|
18448
18884
|
*/
|
|
@@ -18682,6 +19118,7 @@ type WidgetsInit = {
|
|
|
18682
19118
|
|
|
18683
19119
|
declare class Checkout {
|
|
18684
19120
|
private readOnlyProviders;
|
|
19121
|
+
private httpClient;
|
|
18685
19122
|
readonly config: CheckoutConfiguration;
|
|
18686
19123
|
readonly fiatRampService: FiatRampService;
|
|
18687
19124
|
readonly availability: AvailabilityService;
|
|
@@ -19022,6 +19459,8 @@ declare const checkout_d_ExchangeType: typeof ExchangeType;
|
|
|
19022
19459
|
type checkout_d_Fee = Fee;
|
|
19023
19460
|
type checkout_d_FeePercentage = FeePercentage;
|
|
19024
19461
|
type checkout_d_FeeToken = FeeToken;
|
|
19462
|
+
type checkout_d_FeeType = FeeType;
|
|
19463
|
+
declare const checkout_d_FeeType: typeof FeeType;
|
|
19025
19464
|
type checkout_d_FiatRampParams = FiatRampParams;
|
|
19026
19465
|
type checkout_d_FulfillmentTransaction = FulfillmentTransaction;
|
|
19027
19466
|
type checkout_d_FundingItem = FundingItem;
|
|
@@ -19058,6 +19497,7 @@ type checkout_d_IWidgetsFactory = IWidgetsFactory;
|
|
|
19058
19497
|
type checkout_d_ItemBalance = ItemBalance;
|
|
19059
19498
|
type checkout_d_ItemType = ItemType;
|
|
19060
19499
|
declare const checkout_d_ItemType: typeof ItemType;
|
|
19500
|
+
type checkout_d_LanguageChanged = LanguageChanged;
|
|
19061
19501
|
type checkout_d_NativeItemRequirement = NativeItemRequirement;
|
|
19062
19502
|
type checkout_d_NetworkFilter = NetworkFilter;
|
|
19063
19503
|
type checkout_d_NetworkFilterTypes = NetworkFilterTypes;
|
|
@@ -19152,6 +19592,7 @@ type checkout_d_WidgetConfigurations = WidgetConfigurations;
|
|
|
19152
19592
|
type checkout_d_WidgetEvent<T extends WidgetType, KEventName extends keyof WidgetEventData[T]> = WidgetEvent<T, KEventName>;
|
|
19153
19593
|
type checkout_d_WidgetEventData = WidgetEventData;
|
|
19154
19594
|
type checkout_d_WidgetEventTypes = WidgetEventTypes;
|
|
19595
|
+
type checkout_d_WidgetLanguage = WidgetLanguage;
|
|
19155
19596
|
type checkout_d_WidgetParameters = WidgetParameters;
|
|
19156
19597
|
type checkout_d_WidgetProperties<T extends WidgetType> = WidgetProperties<T>;
|
|
19157
19598
|
type checkout_d_WidgetTheme = WidgetTheme;
|
|
@@ -19213,6 +19654,7 @@ declare namespace checkout_d {
|
|
|
19213
19654
|
checkout_d_Fee as Fee,
|
|
19214
19655
|
checkout_d_FeePercentage as FeePercentage,
|
|
19215
19656
|
checkout_d_FeeToken as FeeToken,
|
|
19657
|
+
checkout_d_FeeType as FeeType,
|
|
19216
19658
|
checkout_d_FiatRampParams as FiatRampParams,
|
|
19217
19659
|
checkout_d_FulfillmentTransaction as FulfillmentTransaction,
|
|
19218
19660
|
checkout_d_FundingItem as FundingItem,
|
|
@@ -19244,6 +19686,7 @@ declare namespace checkout_d {
|
|
|
19244
19686
|
checkout_d_IWidgetsFactory as IWidgetsFactory,
|
|
19245
19687
|
checkout_d_ItemBalance as ItemBalance,
|
|
19246
19688
|
checkout_d_ItemType as ItemType,
|
|
19689
|
+
checkout_d_LanguageChanged as LanguageChanged,
|
|
19247
19690
|
checkout_d_NativeItemRequirement as NativeItemRequirement,
|
|
19248
19691
|
checkout_d_NetworkFilter as NetworkFilter,
|
|
19249
19692
|
checkout_d_NetworkFilterTypes as NetworkFilterTypes,
|
|
@@ -19326,6 +19769,7 @@ declare namespace checkout_d {
|
|
|
19326
19769
|
checkout_d_WidgetEvent as WidgetEvent,
|
|
19327
19770
|
checkout_d_WidgetEventData as WidgetEventData,
|
|
19328
19771
|
checkout_d_WidgetEventTypes as WidgetEventTypes,
|
|
19772
|
+
checkout_d_WidgetLanguage as WidgetLanguage,
|
|
19329
19773
|
checkout_d_WidgetParameters as WidgetParameters,
|
|
19330
19774
|
checkout_d_WidgetProperties as WidgetProperties,
|
|
19331
19775
|
checkout_d_WidgetTheme as WidgetTheme,
|