@imtbl/sdk 0.38.0 → 0.39.1-alpha.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/blockchain_data.js +1 -1
- package/dist/browser/checkout/sdk.js +6 -6
- package/dist/browser/checkout/widgets.js +61 -58
- package/dist/checkout.d.ts +31 -14
- package/dist/checkout.js +816 -1047
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +12 -12
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1029 -1233
- package/dist/index.d.ts +31 -14
- package/dist/index.js +1059 -1263
- package/dist/passport.js +235 -208
- package/package.json +2 -2
package/dist/checkout.d.ts
CHANGED
|
@@ -11449,7 +11449,7 @@ type ExchangeContracts = {
|
|
|
11449
11449
|
coreFactory: string;
|
|
11450
11450
|
quoterV2: string;
|
|
11451
11451
|
peripheryRouter: string;
|
|
11452
|
-
|
|
11452
|
+
immutableSwapProxy: string;
|
|
11453
11453
|
};
|
|
11454
11454
|
/**
|
|
11455
11455
|
* Type representing an ERC20 token
|
|
@@ -11611,11 +11611,18 @@ type DexConfig = {
|
|
|
11611
11611
|
/** An array of tokens compatible with the DEX. */
|
|
11612
11612
|
tokens?: TokenInfo[];
|
|
11613
11613
|
};
|
|
11614
|
+
/**
|
|
11615
|
+
* A type representing the configuration for the Bridge for all the supported chains.
|
|
11616
|
+
*/
|
|
11617
|
+
type BridgeConfig = {
|
|
11618
|
+
/** An object containing the bridge configuration per chain */
|
|
11619
|
+
[chainId: string]: BridgeChainConfig;
|
|
11620
|
+
};
|
|
11614
11621
|
/**
|
|
11615
11622
|
* A type representing the configuration for the Bridge.
|
|
11616
11623
|
* @property {TokenInfo[] | undefined} tokens
|
|
11617
11624
|
*/
|
|
11618
|
-
type
|
|
11625
|
+
type BridgeChainConfig = {
|
|
11619
11626
|
/** An array of tokens compatible with the Bridge. */
|
|
11620
11627
|
tokens?: TokenInfo[];
|
|
11621
11628
|
};
|
|
@@ -12047,22 +12054,24 @@ type MethodsHeaders = Partial<{
|
|
|
12047
12054
|
[Key in Method as Lowercase<Key>]: AxiosHeaders;
|
|
12048
12055
|
} & {common: AxiosHeaders}>;
|
|
12049
12056
|
|
|
12050
|
-
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string
|
|
12057
|
+
type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean);
|
|
12058
|
+
|
|
12059
|
+
type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any;
|
|
12051
12060
|
|
|
12052
12061
|
declare class AxiosHeaders {
|
|
12053
12062
|
constructor(
|
|
12054
|
-
headers?: RawAxiosHeaders | AxiosHeaders
|
|
12063
|
+
headers?: RawAxiosHeaders | AxiosHeaders | string
|
|
12055
12064
|
);
|
|
12056
12065
|
|
|
12057
12066
|
[key: string]: any;
|
|
12058
12067
|
|
|
12059
12068
|
set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
12060
|
-
set(headers?: RawAxiosHeaders | AxiosHeaders, rewrite?: boolean): AxiosHeaders;
|
|
12069
|
+
set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
|
|
12061
12070
|
|
|
12062
12071
|
get(headerName: string, parser: RegExp): RegExpExecArray | null;
|
|
12063
|
-
get(headerName: string, matcher?: true |
|
|
12072
|
+
get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
|
|
12064
12073
|
|
|
12065
|
-
has(header: string, matcher?:
|
|
12074
|
+
has(header: string, matcher?: AxiosHeaderMatcher): boolean;
|
|
12066
12075
|
|
|
12067
12076
|
delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
|
|
12068
12077
|
|
|
@@ -12157,10 +12166,7 @@ interface AxiosBasicCredentials {
|
|
|
12157
12166
|
interface AxiosProxyConfig {
|
|
12158
12167
|
host: string;
|
|
12159
12168
|
port: number;
|
|
12160
|
-
auth?:
|
|
12161
|
-
username: string;
|
|
12162
|
-
password: string;
|
|
12163
|
-
};
|
|
12169
|
+
auth?: AxiosBasicCredentials;
|
|
12164
12170
|
protocol?: string;
|
|
12165
12171
|
}
|
|
12166
12172
|
|
|
@@ -12275,6 +12281,15 @@ type AxiosAdapterName = 'xhr' | 'http' | string;
|
|
|
12275
12281
|
|
|
12276
12282
|
type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
|
|
12277
12283
|
|
|
12284
|
+
type AddressFamily = 4 | 6 | undefined;
|
|
12285
|
+
|
|
12286
|
+
interface LookupAddressEntry {
|
|
12287
|
+
address: string;
|
|
12288
|
+
family?: AddressFamily;
|
|
12289
|
+
}
|
|
12290
|
+
|
|
12291
|
+
type LookupAddress = string | LookupAddressEntry;
|
|
12292
|
+
|
|
12278
12293
|
interface AxiosRequestConfig<D = any> {
|
|
12279
12294
|
url?: string;
|
|
12280
12295
|
method?: Method | string;
|
|
@@ -12316,9 +12331,10 @@ interface AxiosRequestConfig<D = any> {
|
|
|
12316
12331
|
FormData?: new (...args: any[]) => object;
|
|
12317
12332
|
};
|
|
12318
12333
|
formSerializer?: FormSerializerOptions;
|
|
12319
|
-
family?:
|
|
12320
|
-
lookup?: ((hostname: string, options: object, cb: (err: Error | null, address:
|
|
12321
|
-
((hostname: string, options: object) => Promise<[address:
|
|
12334
|
+
family?: AddressFamily;
|
|
12335
|
+
lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily) => void) => void) |
|
|
12336
|
+
((hostname: string, options: object) => Promise<[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress>);
|
|
12337
|
+
withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
|
|
12322
12338
|
}
|
|
12323
12339
|
|
|
12324
12340
|
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
|
|
@@ -12438,6 +12454,7 @@ declare class RemoteConfigFetcher {
|
|
|
12438
12454
|
private version;
|
|
12439
12455
|
constructor(httpClient: HttpClient, params: RemoteConfigParams);
|
|
12440
12456
|
private getEndpoint;
|
|
12457
|
+
private parseResponse;
|
|
12441
12458
|
private loadConfig;
|
|
12442
12459
|
private loadConfigTokens;
|
|
12443
12460
|
getConfig(key?: keyof RemoteConfiguration): Promise<RemoteConfiguration | RemoteConfiguration[keyof RemoteConfiguration] | undefined>;
|