@imtbl/sdk 1.66.1 → 1.68.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-B9T-qbph.js → blockchain_data-CCKsao-2.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-DdZHY_JS.js → AddTokensWidget-DS4GOnbQ.js} +151 -107
- package/dist/browser/checkout/{BridgeWidget-CzoLGKzK.js → BridgeWidget-DNdm4P40.js} +23 -13
- package/dist/browser/checkout/{CommerceWidget-BGemG9RB.js → CommerceWidget-C4yziPs9.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-BwfapqZO.js → CryptoFiatProvider-D6MFlvbF.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-ngVXQGn_.js → EllipsizedText-CJWQB2xz.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-BpgS4Cf3.js → FeesBreakdown-CZuqljfy.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-C0qfeRAh.js → HandoverContent-rAxG25Cv.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-Dx2XkuTt.js → OnRampWidget-DRayHgnD.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-N4DUeD2I.js → SaleWidget-DztSk2UN.js} +71 -19
- package/dist/browser/checkout/{SpendingCapHero-BeqEPpR_.js → SpendingCapHero-BTLwIZz3.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-DiA9c6Zu.js → SwapWidget-BUjL8E1t.js} +9 -9
- package/dist/browser/checkout/{retry-aLeSin3J.js → TokenImage-d3u0ZvQH.js} +15 -15
- package/dist/browser/checkout/{TopUpView-BBUB2cpE.js → TopUpView-XlT3otoq.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-DiwEKXIx.js → WalletApproveHero-BU16nd9U.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-BNCipG33.js → WalletWidget-BxBGnI3n.js} +4 -4
- package/dist/browser/checkout/{auto-track-CwlqwwA6.js → auto-track-VXPmwspo.js} +1 -1
- package/dist/browser/checkout/{index-DS1USgQr.js → index--CfNdaMn.js} +2 -2
- package/dist/browser/checkout/{index-PJGxH105.js → index-BdoW5GHq.js} +1 -1
- package/dist/browser/checkout/{index-bA3tzuB3.js → index-BlQEiUzF.js} +1 -1
- package/dist/browser/checkout/{index-R3d13MqX.js → index-BurH9x3O.js} +1 -1
- package/dist/browser/checkout/{index-DVVgTW38.js → index-CB9YWdxS.js} +128 -55
- package/dist/browser/checkout/{index-Ze29sipG.js → index-CLK98XCj.js} +1 -1
- package/dist/browser/checkout/{index-BdohR2SR.js → index-D4f54ZFm.js} +1 -1
- package/dist/browser/checkout/{index-HL3njUMr.js → index-DY-H1U96.js} +1 -1
- package/dist/browser/checkout/{index-lFfbeyAV.js → index-LSVL9_fH.js} +1 -1
- package/dist/browser/checkout/{index.umd-_yYKRbcT.js → index.umd-eURePKSp.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-D0l_aPl9.js → useInterval-B8niXF8W.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +373 -194
- package/dist/{checkout-CZ8Ekr5g.js → checkout-C071Fxzs.js} +50 -19
- package/dist/checkout.d.ts +47 -29
- package/dist/checkout.js +5 -5
- package/dist/{config-B-S2GgWx.js → config-DHULaE6i.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-BqBIqxw_.js → index-BCUBql_R.js} +4 -4
- package/dist/{index-B8OpSizY.js → index-BcVQ_2aR.js} +1 -1
- package/dist/{index-Drj8RVbj.js → index-BdcecID3.js} +1 -1
- package/dist/{index-D9UCgdaj.js → index-C3og99BK.js} +3 -3
- package/dist/{index-DkQZpG9P.js → index-DCGG33Y4.js} +1 -1
- package/dist/{index-B0RD2JVo.js → index-Dr4o8k-B.js} +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +51 -20
- package/dist/index.d.ts +28 -8
- package/dist/index.js +14 -14
- package/dist/{minting_backend-CbsoaB6S.js → minting_backend-D25wDjzr.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-DctAuD-W.js → orderbook-CN5EL0vL.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-BOcQMNRG.js → passport-DD0zBIJH.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-Cdi0qezX.js → webhook-a1yb-34L.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-AiomNseI.js → x-Ccm5bhWI.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-BdcecID3.js';
|
|
2
2
|
import globalAxios, { HttpStatusCode as HttpStatusCode$1 } from 'axios';
|
|
3
3
|
import { ethers, BigNumber as BigNumber$1, ContractFactory, utils as utils$2, Contract as Contract$1 } from 'ethers';
|
|
4
4
|
import { Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
|
|
@@ -8,8 +8,8 @@ import assert from 'assert';
|
|
|
8
8
|
import { FeeAmount, Route, SwapQuoter, Pool, Trade, toHex as toHex$1, encodeRouteToPath } from '@uniswap/v3-sdk';
|
|
9
9
|
import { keccak256 as keccak256$1 } from '@ethersproject/solidity';
|
|
10
10
|
import { SwapRouter, PaymentsExtended } from '@uniswap/router-sdk';
|
|
11
|
-
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-
|
|
12
|
-
import { B as BlockchainData } from './index-
|
|
11
|
+
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-DCGG33Y4.js';
|
|
12
|
+
import { B as BlockchainData } from './index-C3og99BK.js';
|
|
13
13
|
import detectEthereumProvider from '@metamask/detect-provider';
|
|
14
14
|
import semver from 'semver';
|
|
15
15
|
|
|
@@ -19207,7 +19207,7 @@ const flattenProperties = (properties) => {
|
|
|
19207
19207
|
};
|
|
19208
19208
|
|
|
19209
19209
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
19210
|
-
const SDK_VERSION = '1.
|
|
19210
|
+
const SDK_VERSION = '1.68.0';
|
|
19211
19211
|
const getFrameParentDomain = () => {
|
|
19212
19212
|
if (isNode()) {
|
|
19213
19213
|
return '';
|
|
@@ -24316,7 +24316,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
24316
24316
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
24317
24317
|
};
|
|
24318
24318
|
|
|
24319
|
-
const SDK_VERSION_MARKER = '1.
|
|
24319
|
+
const SDK_VERSION_MARKER = '1.68.0';
|
|
24320
24320
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
24321
24321
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
24322
24322
|
|
|
@@ -28959,18 +28959,40 @@ function determineWidgetsVersion(validatedBuildVersion, initVersionProvided, ver
|
|
|
28959
28959
|
return latestCompatibleVersion(validatedBuildVersion, versionConfig.compatibleVersionMarkers);
|
|
28960
28960
|
}
|
|
28961
28961
|
|
|
28962
|
-
|
|
28963
|
-
|
|
28962
|
+
var RiskAssessmentLevel;
|
|
28963
|
+
(function (RiskAssessmentLevel) {
|
|
28964
|
+
RiskAssessmentLevel["LOW"] = "Low";
|
|
28965
|
+
RiskAssessmentLevel["MEDIUM"] = "Medium";
|
|
28966
|
+
RiskAssessmentLevel["HIGH"] = "High";
|
|
28967
|
+
RiskAssessmentLevel["SEVERE"] = "Severe";
|
|
28968
|
+
})(RiskAssessmentLevel || (RiskAssessmentLevel = {}));
|
|
28969
|
+
const fetchRiskAssessment = async (addresses, config) => {
|
|
28970
|
+
const result = Object.fromEntries(addresses.map((address) => [address.toLowerCase(), { sanctioned: false }]));
|
|
28971
|
+
const riskConfig = (await config.remote.getConfig('riskAssessment'));
|
|
28972
|
+
if (!riskConfig?.enabled) {
|
|
28973
|
+
return result;
|
|
28974
|
+
}
|
|
28964
28975
|
try {
|
|
28965
|
-
const
|
|
28966
|
-
|
|
28967
|
-
|
|
28976
|
+
const riskLevels = riskConfig?.levels.map((l) => l.toLowerCase()) ?? [];
|
|
28977
|
+
const response = await globalAxios.post(`${IMMUTABLE_API_BASE_URL[config.environment]}/v1/sanctions/check`, {
|
|
28978
|
+
addresses,
|
|
28979
|
+
});
|
|
28980
|
+
for (const assessment of response.data) {
|
|
28981
|
+
result[assessment.address.toLowerCase()].sanctioned = riskLevels.includes(assessment.risk.toLowerCase());
|
|
28968
28982
|
}
|
|
28983
|
+
return result;
|
|
28969
28984
|
}
|
|
28970
28985
|
catch (error) {
|
|
28971
|
-
|
|
28986
|
+
// eslint-disable-next-line no-console
|
|
28987
|
+
console.error('Error fetching risk assessment', error);
|
|
28988
|
+
return result;
|
|
28989
|
+
}
|
|
28990
|
+
};
|
|
28991
|
+
const isAddressSanctioned = (riskAssessment, address) => {
|
|
28992
|
+
if (address) {
|
|
28993
|
+
return riskAssessment[address.toLowerCase()].sanctioned;
|
|
28972
28994
|
}
|
|
28973
|
-
return
|
|
28995
|
+
return Object.values(riskAssessment).some((assessment) => assessment.sanctioned);
|
|
28974
28996
|
};
|
|
28975
28997
|
|
|
28976
28998
|
const SANDBOX_CONFIGURATION = {
|
|
@@ -29127,13 +29149,21 @@ class Checkout {
|
|
|
29127
29149
|
return checkIsWalletConnected(web3Provider);
|
|
29128
29150
|
}
|
|
29129
29151
|
/**
|
|
29130
|
-
*
|
|
29131
|
-
* @param {string}
|
|
29132
|
-
* @
|
|
29133
|
-
|
|
29152
|
+
* Fetches the risk assessment for the given addresses.
|
|
29153
|
+
* @param {string[]} addresses - The addresses to assess.
|
|
29154
|
+
* @returns {Promise<AssessmentResult>} - A promise that resolves to the risk assessment result.
|
|
29155
|
+
*/
|
|
29156
|
+
async getRiskAssessment(addresses) {
|
|
29157
|
+
return await fetchRiskAssessment(addresses, this.config);
|
|
29158
|
+
}
|
|
29159
|
+
/**
|
|
29160
|
+
* Helper method that checks if given risk assessment results contain sanctioned addresses.
|
|
29161
|
+
* @param {AssessmentResult} assessment - Risk assessment to analyse.
|
|
29162
|
+
* @param {string | undefined} address - If defined, only sanctions for the given address will be checked.
|
|
29163
|
+
* @returns {boolean} - Result of the check.
|
|
29134
29164
|
*/
|
|
29135
|
-
|
|
29136
|
-
return
|
|
29165
|
+
checkIsAddressSanctioned(assessment, address) {
|
|
29166
|
+
return isAddressSanctioned(assessment, address);
|
|
29137
29167
|
}
|
|
29138
29168
|
/**
|
|
29139
29169
|
* Connects to a blockchain network using the specified provider.
|
|
@@ -29474,10 +29504,11 @@ var checkout = /*#__PURE__*/Object.freeze({
|
|
|
29474
29504
|
get WalletProviderRdns () { return WalletProviderRdns; },
|
|
29475
29505
|
get WidgetTheme () { return WidgetTheme; },
|
|
29476
29506
|
get WidgetType () { return WidgetType; },
|
|
29507
|
+
fetchRiskAssessment: fetchRiskAssessment,
|
|
29477
29508
|
getMetaMaskProviderDetail: getMetaMaskProviderDetail,
|
|
29478
29509
|
getPassportProviderDetail: getPassportProviderDetail,
|
|
29479
29510
|
isAddressSanctioned: isAddressSanctioned,
|
|
29480
29511
|
validateProvider: validateProvider
|
|
29481
29512
|
});
|
|
29482
29513
|
|
|
29483
|
-
export { AddTokensEventType as A, BlockExplorerService as B, ChainId as C, WalletProviderName as D, ExchangeType as E, FeeType as F, GasEstimateType as G, WalletProviderRdns as H, IMMUTABLE_API_BASE_URL as I, WidgetTheme as J, WidgetType as K,
|
|
29514
|
+
export { AddTokensEventType as A, BlockExplorerService as B, ChainId as C, WalletProviderName as D, ExchangeType as E, FeeType as F, GasEstimateType as G, WalletProviderRdns as H, IMMUTABLE_API_BASE_URL as I, WidgetTheme as J, WidgetType as K, fetchRiskAssessment as L, getMetaMaskProviderDetail as M, NetworkFilterTypes as N, OnRampEventType as O, ProviderEventType as P, getPassportProviderDetail as Q, RoutingOutcomeType as R, SaleEventType as S, TokenFilterTypes as T, isAddressSanctioned as U, validateProvider as V, WalletEventType as W, BridgeEventType as a, ChainName as b, checkout as c, ChainSlug as d, Checkout as e, CheckoutConfiguration as f, CheckoutError as g, CheckoutErrorType as h, CheckoutStatus as i, CommerceEventType as j, CommerceFailureEventType as k, CommerceFlowType as l, CommerceSuccessEventType as m, CommerceUserActionEventType as n, ConnectEventType as o, ConnectTargetLayer as p, FundingStepType as q, GasTokenType as r, IMTBLWidgetEvents as s, ItemType as t, OrchestrationEventType as u, SalePaymentTypes as v, SwapDirection as w, SwapEventType as x, TransactionOrGasType as y, WalletFilterTypes as z };
|
package/dist/checkout.d.ts
CHANGED
|
@@ -546,27 +546,6 @@ declare class Web3Provider extends JsonRpcProvider {
|
|
|
546
546
|
send(method: string, params: Array<any>): Promise<any>;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
declare enum Environment {
|
|
550
|
-
PRODUCTION = "production",
|
|
551
|
-
SANDBOX = "sandbox"
|
|
552
|
-
}
|
|
553
|
-
declare class ImmutableConfiguration {
|
|
554
|
-
readonly environment: Environment;
|
|
555
|
-
readonly rateLimitingKey?: string;
|
|
556
|
-
readonly apiKey?: string;
|
|
557
|
-
readonly publishableKey?: string;
|
|
558
|
-
constructor(options: {
|
|
559
|
-
environment: Environment;
|
|
560
|
-
rateLimitingKey?: string;
|
|
561
|
-
apiKey?: string;
|
|
562
|
-
publishableKey?: string;
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
interface ModuleConfiguration<T> {
|
|
566
|
-
baseConfig: ImmutableConfiguration;
|
|
567
|
-
overrides?: T;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
549
|
// TypeScript Version: 4.7
|
|
571
550
|
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
|
572
551
|
|
|
@@ -10531,6 +10510,27 @@ declare class ImxApiClients {
|
|
|
10531
10510
|
constructor(config: ImmutableAPIConfiguration);
|
|
10532
10511
|
}
|
|
10533
10512
|
|
|
10513
|
+
declare enum Environment {
|
|
10514
|
+
PRODUCTION = "production",
|
|
10515
|
+
SANDBOX = "sandbox"
|
|
10516
|
+
}
|
|
10517
|
+
declare class ImmutableConfiguration {
|
|
10518
|
+
readonly environment: Environment;
|
|
10519
|
+
readonly rateLimitingKey?: string;
|
|
10520
|
+
readonly apiKey?: string;
|
|
10521
|
+
readonly publishableKey?: string;
|
|
10522
|
+
constructor(options: {
|
|
10523
|
+
environment: Environment;
|
|
10524
|
+
rateLimitingKey?: string;
|
|
10525
|
+
apiKey?: string;
|
|
10526
|
+
publishableKey?: string;
|
|
10527
|
+
});
|
|
10528
|
+
}
|
|
10529
|
+
interface ModuleConfiguration<T> {
|
|
10530
|
+
baseConfig: ImmutableConfiguration;
|
|
10531
|
+
overrides?: T;
|
|
10532
|
+
}
|
|
10533
|
+
|
|
10534
10534
|
declare class ApiConfiguration extends Configuration {
|
|
10535
10535
|
}
|
|
10536
10536
|
interface EthConfiguration {
|
|
@@ -12719,6 +12719,8 @@ type RemoteConfiguration = {
|
|
|
12719
12719
|
squid?: SquidConfig;
|
|
12720
12720
|
/** The checkout version info. */
|
|
12721
12721
|
checkoutWidgetsVersion: CheckoutWidgetsVersionConfig;
|
|
12722
|
+
/** Risk assessment config. */
|
|
12723
|
+
riskAssessment?: RiskAssessmentConfig;
|
|
12722
12724
|
};
|
|
12723
12725
|
/**
|
|
12724
12726
|
* A type representing the configuration for the Add Tokens.
|
|
@@ -12891,6 +12893,10 @@ type ChainTokensConfig = {
|
|
|
12891
12893
|
type CheckoutWidgetsVersionConfig = {
|
|
12892
12894
|
compatibleVersionMarkers: string[];
|
|
12893
12895
|
};
|
|
12896
|
+
type RiskAssessmentConfig = {
|
|
12897
|
+
enabled: boolean;
|
|
12898
|
+
levels: string[];
|
|
12899
|
+
};
|
|
12894
12900
|
|
|
12895
12901
|
/**
|
|
12896
12902
|
* Interface representing the params of {@link Checkout.connect}.
|
|
@@ -14601,6 +14607,14 @@ type WidgetsInit = {
|
|
|
14601
14607
|
version?: SemanticVersion;
|
|
14602
14608
|
};
|
|
14603
14609
|
|
|
14610
|
+
type AssessmentResult = {
|
|
14611
|
+
[address: string]: {
|
|
14612
|
+
sanctioned: boolean;
|
|
14613
|
+
};
|
|
14614
|
+
};
|
|
14615
|
+
declare const fetchRiskAssessment: (addresses: string[], config: CheckoutConfiguration) => Promise<AssessmentResult>;
|
|
14616
|
+
declare const isAddressSanctioned: (riskAssessment: AssessmentResult, address?: string) => boolean;
|
|
14617
|
+
|
|
14604
14618
|
declare class Checkout {
|
|
14605
14619
|
private readOnlyProviders;
|
|
14606
14620
|
private httpClient;
|
|
@@ -14651,12 +14665,18 @@ declare class Checkout {
|
|
|
14651
14665
|
*/
|
|
14652
14666
|
checkIsWalletConnected(params: CheckConnectionParams): Promise<CheckConnectionResult>;
|
|
14653
14667
|
/**
|
|
14654
|
-
*
|
|
14655
|
-
* @param {string}
|
|
14656
|
-
* @
|
|
14657
|
-
* @returns {Promise<boolean>} - A promise that resolves to the result of the check.
|
|
14668
|
+
* Fetches the risk assessment for the given addresses.
|
|
14669
|
+
* @param {string[]} addresses - The addresses to assess.
|
|
14670
|
+
* @returns {Promise<AssessmentResult>} - A promise that resolves to the risk assessment result.
|
|
14658
14671
|
*/
|
|
14659
|
-
|
|
14672
|
+
getRiskAssessment(addresses: string[]): Promise<AssessmentResult>;
|
|
14673
|
+
/**
|
|
14674
|
+
* Helper method that checks if given risk assessment results contain sanctioned addresses.
|
|
14675
|
+
* @param {AssessmentResult} assessment - Risk assessment to analyse.
|
|
14676
|
+
* @param {string | undefined} address - If defined, only sanctions for the given address will be checked.
|
|
14677
|
+
* @returns {boolean} - Result of the check.
|
|
14678
|
+
*/
|
|
14679
|
+
checkIsAddressSanctioned(assessment: AssessmentResult, address?: string): boolean;
|
|
14660
14680
|
/**
|
|
14661
14681
|
* Connects to a blockchain network using the specified provider.
|
|
14662
14682
|
* @param {ConnectParams} params - The parameters for connecting to the network.
|
|
@@ -14889,8 +14909,6 @@ declare const getMetaMaskProviderDetail: (provider: EIP1193Provider) => EIP6963P
|
|
|
14889
14909
|
|
|
14890
14910
|
declare function validateProvider(config: CheckoutConfiguration, web3Provider: Web3Provider, validateProviderOptions?: ValidateProviderOptions): Promise<Web3Provider>;
|
|
14891
14911
|
|
|
14892
|
-
declare const isAddressSanctioned: (address: string, environment: Environment) => Promise<boolean>;
|
|
14893
|
-
|
|
14894
14912
|
/**
|
|
14895
14913
|
* Enum representing different types of errors that can occur during the checkout process.
|
|
14896
14914
|
*/
|
|
@@ -14973,4 +14991,4 @@ declare class BlockExplorerService {
|
|
|
14973
14991
|
static getTransactionLink(chainId: ChainId, hash: string): string | undefined;
|
|
14974
14992
|
}
|
|
14975
14993
|
|
|
14976
|
-
export { type AddTokensConfig, type AddTokensConnectSuccess, AddTokensEventType, type AddTokensFailed, type AddTokensSuccess, type AddTokensWidgetConfiguration, type AddTokensWidgetParams, type AllowedNetworkConfig, type AvailableRoutingOptions, type BalanceDelta, BlockExplorerService, type BridgeClaimWithdrawalFailed, type BridgeClaimWithdrawalSuccess, BridgeEventType, type BridgeFailed, type BridgeFundingStep, type BridgeTransactionSent, type BridgeWidgetConfiguration, type BridgeWidgetParams, type BuyOrder, type BuyOverrides, type BuyParams, type BuyResult, type BuyResultFailed, type BuyResultFulfillmentsUnsettled, type BuyResultInsufficientFunds, type BuyResultSuccess, type BuyToken, type CancelOverrides, type CancelParams, type CancelResult, type CancelResultFailed, type CancelResultFulfillmentsUnsettled, type CancelResultGasless, type CancelResultSuccess, ChainId, ChainName, ChainSlug, type CheckConnectionParams, type CheckConnectionResult, Checkout, type CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutError, CheckoutErrorType, type CheckoutModuleConfiguration, type CheckoutOnRampConfiguration, CheckoutStatus, type CheckoutSwapConfiguration, type CheckoutWidgetsConfig, type CheckoutWidgetsVersionConfig, type CommerceAddTokensConnectSuccessEvent, type CommerceAddTokensFailureEvent, type CommerceAddTokensSuccessEvent, type CommerceBridgeClaimWithdrawalFailedEvent, type CommerceBridgeClaimWithdrawalSuccessEvent, type CommerceBridgeFailureEvent, type CommerceBridgeSuccessEvent, type CommerceConnectFailureEvent, type CommerceConnectSuccessEvent, CommerceEventType, type CommerceFailureEvent, CommerceFailureEventType, CommerceFlowType, type CommerceNetworkSwitchEvent, type CommerceOnRampFailureEvent, type CommerceOnRampSuccessEvent, type CommercePaymentMethodSelectedEvent, type CommercePaymentTokenSelectedEvent, type CommerceProviderUpdatedEvent, type CommerceSaleFailureEvent, type CommerceSaleSuccessEvent, type CommerceSaleSuccessfulTransactionEvent, type CommerceSuccessEvent, CommerceSuccessEventType, type CommerceSwapFailureEvent, type CommerceSwapRejectedEvent, type CommerceSwapSuccessEvent, type CommerceUserActionEvent, CommerceUserActionEventType, type CommerceWidgetAddTokensFlowParams, type CommerceWidgetBridgeFlowParams, type CommerceWidgetConfiguration, type CommerceWidgetConnectFlowParams, type CommerceWidgetFlowParams, type CommerceWidgetOnRampFlowParams, type CommerceWidgetParams, type CommerceWidgetSaleFlowParams, type CommerceWidgetSwapFlowParams, type CommerceWidgetWalletFlowParams, ConnectEventType, type ConnectParams, type ConnectResult, ConnectTargetLayer, type ConnectWidgetConfiguration, type ConnectWidgetParams, type ConnectionFailed, type ConnectionSuccess, type CreateProviderParams, type CreateProviderResult, type DexConfig, type EIP1193Provider, type EIP6963ProviderDetail, type EIP6963ProviderInfo, type ERC20ItemRequirement, type ERC721Balance, type ERC721ItemRequirement, type ErrorType, ExchangeType, type FailedGaslessCancellation, type Fee$1 as Fee, type FeePercentage, type FeeToken, FeeType, type FiatRampParams, type FulfillmentTransaction, type FundingItem, type FundingRoute, type FundingStep, FundingStepType, type GasAmount, type GasEstimateBridgeToL2Result, type GasEstimateParams, type GasEstimateSwapResult, type GasEstimateTokenConfig, GasEstimateType, type GasToken, GasTokenType, type GetAllBalancesParams, type GetAllBalancesResult, type GetBalanceParams, type GetBalanceResult, type GetNetworkAllowListParams, type GetNetworkAllowListResult, type GetNetworkParams, type GetTokenAllowListParams, type GetTokenAllowListResult, type GetTokenInfoParams, type GetWalletAllowListParams, type GetWalletAllowListResult, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, type IWidgetsFactory, type ItemBalance, ItemType, type LanguageChanged, type NativeItemRequirement, type NetworkFilter, NetworkFilterTypes, type NetworkInfo, type NoRouteOptions, type NoRoutesFound, OnRampEventType, type OnRampFailed, type OnRampFundingStep, type OnRampProviderFees, type OnRampSuccess, type OnRampWidgetParams, type OnrampWidgetConfiguration, type OrchestrationEvent, type OrchestrationEventData, OrchestrationEventType, type OrderFee, type PendingGaslessCancellation, type ProviderEvent, ProviderEventType, type ProviderUpdated, type RemoteConfiguration, type RequestAddTokensEvent, type RequestBridgeEvent, type RequestConnectEvent, type RequestGoBackEvent, type RequestOnrampEvent, type RequestSwapEvent, type RequestWalletEvent, type RoutesFound, type RoutingOutcome, RoutingOutcomeType, SaleEventType, type SaleFailed, type SaleItem, type SalePaymentMethod, type SalePaymentToken, SalePaymentTypes, type SaleSuccess, type SaleTransactionSuccess, type SaleWidgetConfiguration, type SaleWidgetParams, type SellOrder, type SellParams, type SellResult, type SellResultFailed, type SellResultInsufficientFunds, type SellResultSuccess, type SellToken, type SemanticVersion, type SendTransactionParams, type SendTransactionResult, type SmartCheckoutInsufficient, type SmartCheckoutParams, type SmartCheckoutResult, type SmartCheckoutRouter, type SmartCheckoutSufficient, type SquidConfig, type SuccessfulGaslessCancellation, SwapDirection, SwapEventType, type SwapFailed, type SwapFees, type SwapFundingStep, type SwapRejected, type SwapSuccess, type SwapWidgetConfiguration, type SwapWidgetParams, type SwitchNetworkParams, type SwitchNetworkResult, type TelemetryConfig, type TokenAmountEstimate, type TokenBalance, type TokenFilter, TokenFilterTypes, type TokenInfo, TransactionOrGasType, type TransactionRequirement, type WalletConnectConfig, type WalletConnectManager, type WalletConnectProviderChanged, type WalletDisconnect, WalletEventType, type WalletFilter, WalletFilterTypes, type WalletInfo, type WalletNetworkSwitch, WalletProviderName, WalletProviderRdns, type WalletWidgetConfiguration, type WalletWidgetParams, type Widget, type WidgetConfiguration, type WidgetConfigurations, type WidgetEvent, type WidgetEventData, type WidgetEventTypes, type WidgetLanguage, type WidgetParameters, type WidgetProperties, WidgetTheme, WidgetType, getMetaMaskProviderDetail, getPassportProviderDetail, isAddressSanctioned, validateProvider };
|
|
14994
|
+
export { type AddTokensConfig, type AddTokensConnectSuccess, AddTokensEventType, type AddTokensFailed, type AddTokensSuccess, type AddTokensWidgetConfiguration, type AddTokensWidgetParams, type AllowedNetworkConfig, type AssessmentResult, type AvailableRoutingOptions, type BalanceDelta, BlockExplorerService, type BridgeClaimWithdrawalFailed, type BridgeClaimWithdrawalSuccess, BridgeEventType, type BridgeFailed, type BridgeFundingStep, type BridgeTransactionSent, type BridgeWidgetConfiguration, type BridgeWidgetParams, type BuyOrder, type BuyOverrides, type BuyParams, type BuyResult, type BuyResultFailed, type BuyResultFulfillmentsUnsettled, type BuyResultInsufficientFunds, type BuyResultSuccess, type BuyToken, type CancelOverrides, type CancelParams, type CancelResult, type CancelResultFailed, type CancelResultFulfillmentsUnsettled, type CancelResultGasless, type CancelResultSuccess, ChainId, ChainName, ChainSlug, type CheckConnectionParams, type CheckConnectionResult, Checkout, type CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutError, CheckoutErrorType, type CheckoutModuleConfiguration, type CheckoutOnRampConfiguration, CheckoutStatus, type CheckoutSwapConfiguration, type CheckoutWidgetsConfig, type CheckoutWidgetsVersionConfig, type CommerceAddTokensConnectSuccessEvent, type CommerceAddTokensFailureEvent, type CommerceAddTokensSuccessEvent, type CommerceBridgeClaimWithdrawalFailedEvent, type CommerceBridgeClaimWithdrawalSuccessEvent, type CommerceBridgeFailureEvent, type CommerceBridgeSuccessEvent, type CommerceConnectFailureEvent, type CommerceConnectSuccessEvent, CommerceEventType, type CommerceFailureEvent, CommerceFailureEventType, CommerceFlowType, type CommerceNetworkSwitchEvent, type CommerceOnRampFailureEvent, type CommerceOnRampSuccessEvent, type CommercePaymentMethodSelectedEvent, type CommercePaymentTokenSelectedEvent, type CommerceProviderUpdatedEvent, type CommerceSaleFailureEvent, type CommerceSaleSuccessEvent, type CommerceSaleSuccessfulTransactionEvent, type CommerceSuccessEvent, CommerceSuccessEventType, type CommerceSwapFailureEvent, type CommerceSwapRejectedEvent, type CommerceSwapSuccessEvent, type CommerceUserActionEvent, CommerceUserActionEventType, type CommerceWidgetAddTokensFlowParams, type CommerceWidgetBridgeFlowParams, type CommerceWidgetConfiguration, type CommerceWidgetConnectFlowParams, type CommerceWidgetFlowParams, type CommerceWidgetOnRampFlowParams, type CommerceWidgetParams, type CommerceWidgetSaleFlowParams, type CommerceWidgetSwapFlowParams, type CommerceWidgetWalletFlowParams, ConnectEventType, type ConnectParams, type ConnectResult, ConnectTargetLayer, type ConnectWidgetConfiguration, type ConnectWidgetParams, type ConnectionFailed, type ConnectionSuccess, type CreateProviderParams, type CreateProviderResult, type DexConfig, type EIP1193Provider, type EIP6963ProviderDetail, type EIP6963ProviderInfo, type ERC20ItemRequirement, type ERC721Balance, type ERC721ItemRequirement, type ErrorType, ExchangeType, type FailedGaslessCancellation, type Fee$1 as Fee, type FeePercentage, type FeeToken, FeeType, type FiatRampParams, type FulfillmentTransaction, type FundingItem, type FundingRoute, type FundingStep, FundingStepType, type GasAmount, type GasEstimateBridgeToL2Result, type GasEstimateParams, type GasEstimateSwapResult, type GasEstimateTokenConfig, GasEstimateType, type GasToken, GasTokenType, type GetAllBalancesParams, type GetAllBalancesResult, type GetBalanceParams, type GetBalanceResult, type GetNetworkAllowListParams, type GetNetworkAllowListResult, type GetNetworkParams, type GetTokenAllowListParams, type GetTokenAllowListResult, type GetTokenInfoParams, type GetWalletAllowListParams, type GetWalletAllowListResult, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, type IWidgetsFactory, type ItemBalance, ItemType, type LanguageChanged, type NativeItemRequirement, type NetworkFilter, NetworkFilterTypes, type NetworkInfo, type NoRouteOptions, type NoRoutesFound, OnRampEventType, type OnRampFailed, type OnRampFundingStep, type OnRampProviderFees, type OnRampSuccess, type OnRampWidgetParams, type OnrampWidgetConfiguration, type OrchestrationEvent, type OrchestrationEventData, OrchestrationEventType, type OrderFee, type PendingGaslessCancellation, type ProviderEvent, ProviderEventType, type ProviderUpdated, type RemoteConfiguration, type RequestAddTokensEvent, type RequestBridgeEvent, type RequestConnectEvent, type RequestGoBackEvent, type RequestOnrampEvent, type RequestSwapEvent, type RequestWalletEvent, type RoutesFound, type RoutingOutcome, RoutingOutcomeType, SaleEventType, type SaleFailed, type SaleItem, type SalePaymentMethod, type SalePaymentToken, SalePaymentTypes, type SaleSuccess, type SaleTransactionSuccess, type SaleWidgetConfiguration, type SaleWidgetParams, type SellOrder, type SellParams, type SellResult, type SellResultFailed, type SellResultInsufficientFunds, type SellResultSuccess, type SellToken, type SemanticVersion, type SendTransactionParams, type SendTransactionResult, type SmartCheckoutInsufficient, type SmartCheckoutParams, type SmartCheckoutResult, type SmartCheckoutRouter, type SmartCheckoutSufficient, type SquidConfig, type SuccessfulGaslessCancellation, SwapDirection, SwapEventType, type SwapFailed, type SwapFees, type SwapFundingStep, type SwapRejected, type SwapSuccess, type SwapWidgetConfiguration, type SwapWidgetParams, type SwitchNetworkParams, type SwitchNetworkResult, type TelemetryConfig, type TokenAmountEstimate, type TokenBalance, type TokenFilter, TokenFilterTypes, type TokenInfo, TransactionOrGasType, type TransactionRequirement, type WalletConnectConfig, type WalletConnectManager, type WalletConnectProviderChanged, type WalletDisconnect, WalletEventType, type WalletFilter, WalletFilterTypes, type WalletInfo, type WalletNetworkSwitch, WalletProviderName, WalletProviderRdns, type WalletWidgetConfiguration, type WalletWidgetParams, type Widget, type WidgetConfiguration, type WidgetConfigurations, type WidgetEvent, type WidgetEventData, type WidgetEventTypes, type WidgetLanguage, type WidgetParameters, type WidgetProperties, WidgetTheme, WidgetType, fetchRiskAssessment, getMetaMaskProviderDetail, getPassportProviderDetail, isAddressSanctioned, validateProvider };
|
package/dist/checkout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AddTokensEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutError, h as CheckoutErrorType, i as CheckoutStatus, j as CommerceEventType, k as CommerceFailureEventType, l as CommerceFlowType, m as CommerceSuccessEventType, n as CommerceUserActionEventType, o as ConnectEventType, p as ConnectTargetLayer, E as ExchangeType, F as FeeType, q as FundingStepType, G as GasEstimateType, r as GasTokenType, I as IMMUTABLE_API_BASE_URL, s as IMTBLWidgetEvents, t as ItemType, N as NetworkFilterTypes, O as OnRampEventType, u as OrchestrationEventType, P as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, v as SalePaymentTypes, w as SwapDirection, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, D as WalletProviderName, H as WalletProviderRdns, J as WidgetTheme, K as WidgetType, L as
|
|
2
|
-
import './index-
|
|
1
|
+
export { A as AddTokensEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutError, h as CheckoutErrorType, i as CheckoutStatus, j as CommerceEventType, k as CommerceFailureEventType, l as CommerceFlowType, m as CommerceSuccessEventType, n as CommerceUserActionEventType, o as ConnectEventType, p as ConnectTargetLayer, E as ExchangeType, F as FeeType, q as FundingStepType, G as GasEstimateType, r as GasTokenType, I as IMMUTABLE_API_BASE_URL, s as IMTBLWidgetEvents, t as ItemType, N as NetworkFilterTypes, O as OnRampEventType, u as OrchestrationEventType, P as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, v as SalePaymentTypes, w as SwapDirection, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, D as WalletProviderName, H as WalletProviderRdns, J as WidgetTheme, K as WidgetType, L as fetchRiskAssessment, M as getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V as validateProvider } from './checkout-C071Fxzs.js';
|
|
2
|
+
import './index-BdcecID3.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import 'lru-memorise';
|
|
5
5
|
import 'global-const';
|
|
@@ -10,13 +10,13 @@ import 'assert';
|
|
|
10
10
|
import '@uniswap/v3-sdk';
|
|
11
11
|
import '@ethersproject/solidity';
|
|
12
12
|
import '@uniswap/router-sdk';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-DCGG33Y4.js';
|
|
14
14
|
import 'form-data';
|
|
15
15
|
import '@opensea/seaport-js/lib/constants';
|
|
16
16
|
import 'ethers-v6';
|
|
17
17
|
import 'merkletreejs';
|
|
18
18
|
import '@opensea/seaport-js';
|
|
19
|
-
import './index-
|
|
20
|
-
import './index-
|
|
19
|
+
import './index-C3og99BK.js';
|
|
20
|
+
import './index-Dr4o8k-B.js';
|
|
21
21
|
import '@metamask/detect-provider';
|
|
22
22
|
import 'semver';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-BdcecID3.js';
|
|
2
2
|
|
|
3
3
|
var config = /*#__PURE__*/Object.freeze({
|
|
4
4
|
__proto__: null,
|
package/dist/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-BdcecID3.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'lru-memorise';
|
|
4
4
|
import 'global-const';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as index$2, I as ImxApiClients } from './index-
|
|
2
|
-
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { d as index$2, I as ImxApiClients } from './index-Dr4o8k-B.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-BdcecID3.js';
|
|
3
3
|
import globalAxios from 'axios';
|
|
4
4
|
import { keccak256 } from '@ethersproject/keccak256';
|
|
5
5
|
import { toUtf8Bytes } from '@ethersproject/strings';
|
|
@@ -16,7 +16,7 @@ import '@ethersproject/abstract-signer';
|
|
|
16
16
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
17
17
|
class ApiConfiguration extends index$2.Configuration {
|
|
18
18
|
}
|
|
19
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.68.0' };
|
|
20
20
|
/**
|
|
21
21
|
* @dev use createImmutableXConfiguration instead
|
|
22
22
|
*/
|
|
@@ -57,7 +57,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
57
57
|
coreContractAddress,
|
|
58
58
|
registrationContractAddress,
|
|
59
59
|
registrationV4ContractAddress,
|
|
60
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.68.0',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -158,7 +158,7 @@ const flattenProperties = (properties) => {
|
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
161
|
-
const SDK_VERSION = '1.
|
|
161
|
+
const SDK_VERSION = '1.68.0';
|
|
162
162
|
const getFrameParentDomain = () => {
|
|
163
163
|
if (isNode()) {
|
|
164
164
|
return '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as index$1 } from './index-
|
|
2
|
-
import { E as Environment, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
import { a as index$1 } from './index-Dr4o8k-B.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-BdcecID3.js';
|
|
3
3
|
import globalAxios from 'axios';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ class APIError extends Error {
|
|
|
21
21
|
|
|
22
22
|
/* eslint-disable implicit-arrow-linebreak */
|
|
23
23
|
const defaultHeaders = {
|
|
24
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.68.0',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-BdcecID3.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
3
|
import FormData from 'form-data';
|
|
4
4
|
import { OrderType as OrderType$1, ItemType as ItemType$1 } from '@opensea/seaport-js/lib/constants';
|
|
@@ -13527,7 +13527,7 @@ class MultiRollupApiClients {
|
|
|
13527
13527
|
}
|
|
13528
13528
|
|
|
13529
13529
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13530
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
13530
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.68.0' };
|
|
13531
13531
|
const createConfig = ({ basePath, headers, }) => {
|
|
13532
13532
|
if (!basePath.trim()) {
|
|
13533
13533
|
throw Error('basePath can not be empty');
|