@imtbl/sdk 0.17.5 → 0.18.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.js +2 -2
- package/dist/checkout_sdk.d.ts +8 -0
- package/dist/checkout_sdk.js +28 -8
- package/dist/checkout_widgets.d.ts +3 -3
- package/dist/checkout_widgets.js +17 -18
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +9 -9
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +446 -55
- package/dist/index.d.ts +34 -3
- package/dist/index.js +447 -56
- package/dist/passport.d.ts +22 -1
- package/dist/passport.js +402 -30
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13138,6 +13138,27 @@ declare class JsonRpcError extends Error {
|
|
|
13138
13138
|
constructor(code: ProviderErrorCode | RpcErrorCode, message: string);
|
|
13139
13139
|
}
|
|
13140
13140
|
|
|
13141
|
+
interface TypedDataPayload {
|
|
13142
|
+
types: {
|
|
13143
|
+
EIP712Domain: Array<{
|
|
13144
|
+
name: string;
|
|
13145
|
+
type: string;
|
|
13146
|
+
}>;
|
|
13147
|
+
[key: string]: Array<{
|
|
13148
|
+
name: string;
|
|
13149
|
+
type: string;
|
|
13150
|
+
}>;
|
|
13151
|
+
};
|
|
13152
|
+
domain: {
|
|
13153
|
+
name?: string;
|
|
13154
|
+
version?: string;
|
|
13155
|
+
chainId?: number;
|
|
13156
|
+
verifyingContract?: string;
|
|
13157
|
+
salt?: string;
|
|
13158
|
+
};
|
|
13159
|
+
primaryType: string;
|
|
13160
|
+
message: Record<string, any>;
|
|
13161
|
+
}
|
|
13141
13162
|
interface RequestArguments {
|
|
13142
13163
|
method: string;
|
|
13143
13164
|
params?: Array<any>;
|
|
@@ -13229,6 +13250,7 @@ declare const passport_d_ProviderEvent: typeof ProviderEvent;
|
|
|
13229
13250
|
type passport_d_RequestArguments = RequestArguments;
|
|
13230
13251
|
type passport_d_RpcErrorCode = RpcErrorCode;
|
|
13231
13252
|
declare const passport_d_RpcErrorCode: typeof RpcErrorCode;
|
|
13253
|
+
type passport_d_TypedDataPayload = TypedDataPayload;
|
|
13232
13254
|
type passport_d_UserProfile = UserProfile;
|
|
13233
13255
|
declare namespace passport_d {
|
|
13234
13256
|
export {
|
|
@@ -13249,6 +13271,7 @@ declare namespace passport_d {
|
|
|
13249
13271
|
passport_d_ProviderEvent as ProviderEvent,
|
|
13250
13272
|
passport_d_RequestArguments as RequestArguments,
|
|
13251
13273
|
passport_d_RpcErrorCode as RpcErrorCode,
|
|
13274
|
+
passport_d_TypedDataPayload as TypedDataPayload,
|
|
13252
13275
|
passport_d_UserProfile as UserProfile,
|
|
13253
13276
|
};
|
|
13254
13277
|
}
|
|
@@ -14520,6 +14543,7 @@ interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverri
|
|
|
14520
14543
|
type RemoteConfiguration = {
|
|
14521
14544
|
dex: DexConfig;
|
|
14522
14545
|
onramp: OnRampConfig;
|
|
14546
|
+
bridge: BridgeConfig;
|
|
14523
14547
|
allowedNetworks: AllowedNetworkConfig[];
|
|
14524
14548
|
gasEstimateTokens?: GasEstimateTokenConfig;
|
|
14525
14549
|
};
|
|
@@ -14561,6 +14585,13 @@ type DexConfig = {
|
|
|
14561
14585
|
overrides?: ExchangeOverrides;
|
|
14562
14586
|
tokens?: TokenInfo[];
|
|
14563
14587
|
};
|
|
14588
|
+
/**
|
|
14589
|
+
* A type representing the configuration for the Bridge.
|
|
14590
|
+
* @property {TokenInfo[] | undefined} tokens - An array of tokens compatible with the Bridge.
|
|
14591
|
+
*/
|
|
14592
|
+
type BridgeConfig = {
|
|
14593
|
+
tokens?: TokenInfo[];
|
|
14594
|
+
};
|
|
14564
14595
|
/**
|
|
14565
14596
|
* A type representing an allowed network.
|
|
14566
14597
|
* @property {number} chainId - The network chain id.
|
|
@@ -29813,9 +29844,9 @@ declare enum CheckoutWidgetTagNames {
|
|
|
29813
29844
|
*/
|
|
29814
29845
|
type SemanticVersion = {
|
|
29815
29846
|
major: number;
|
|
29816
|
-
minor
|
|
29817
|
-
patch
|
|
29818
|
-
prerelease
|
|
29847
|
+
minor?: number;
|
|
29848
|
+
patch?: number;
|
|
29849
|
+
prerelease?: 'alpha';
|
|
29819
29850
|
build?: number;
|
|
29820
29851
|
};
|
|
29821
29852
|
/**
|