@imtbl/checkout-sdk 2.4.14-alpha.0 → 2.4.14-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.
@@ -10,7 +10,7 @@ export { getGasPriceInWei, } from './gasEstimate';
10
10
  export { ChainId, ChainName, ChainSlug, CheckoutStatus, ExchangeType, FeeType, FundingStepType, GasEstimateType, GasTokenType, ItemType, WrappedBrowserProvider, NetworkFilterTypes, RoutingOutcomeType, TokenFilterTypes, TransactionOrGasType, WalletFilterTypes, WalletProviderName, WalletProviderRdns, } from './types';
11
11
  export type { EIP1193Provider, EIP6963ProviderInfo, EIP6963ProviderDetail, AddTokensConfig, } from './types';
12
12
  export type { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BridgeFundingStep, BuyOrder, BuyParams, BuyOverrides, BuyResult, BuyResultFailed, BuyResultInsufficientFunds, BuyResultSuccess, BuyResultFulfillmentsUnsettled, BuyToken, CancelParams, CancelOverrides, CancelResult, CancelResultFailed, CancelResultGasless, CancelResultSuccess, CancelResultFulfillmentsUnsettled, CheckConnectionParams, CheckConnectionResult, CheckoutModuleConfiguration, CheckoutOnRampConfiguration, CheckoutBridgeConfiguration, CheckoutSwapConfiguration, ConnectParams, ConnectResult, CreateProviderParams, DexConfig, ERC20ItemRequirement, ERC721Balance, ERC721ItemRequirement, FailedGaslessCancellation, Fee, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingStep, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasToken, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenInfoParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, ItemBalance, NativeItemRequirement, NetworkFilter, NetworkInfo, NoRouteOptions, NoRoutesFound, OnRampFundingStep, OrderFee, OnRampProviderFees, PendingGaslessCancellation, RemoteConfiguration, RoutesFound, RoutingOutcome, SellOrder, SellParams, SellResult, SellResultFailed, SellResultInsufficientFunds, SellResultSuccess, SellToken, SendTransactionParams, SendTransactionResult, SmartCheckoutInsufficient, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SmartCheckoutSufficient, SuccessfulGaslessCancellation, SwapFees, SwapFundingStep, SwitchNetworkParams, SwitchNetworkResult, TelemetryConfig, TokenAmountEstimate, TokenBalance, TokenFilter, TokenInfo, TransactionRequirement, WalletFilter, WalletInfo, SquidConfig, CheckoutWidgetsVersionConfig, } from './types';
13
- export { fetchRiskAssessment, isAddressSanctioned } from './riskAssessment';
13
+ export { fetchRiskAssessment, fetchRiskAssessmentV2, isAddressSanctioned, isSingleAddressSanctioned, resultHasSanctionedWallets, } from './riskAssessment';
14
14
  export type { AssessmentResult } from './riskAssessment';
15
15
  export type { ErrorType } from './errors';
16
16
  export { CheckoutErrorType, CheckoutError } from './errors';
@@ -0,0 +1,19 @@
1
+ export type RiskAssessmentResponse = {
2
+ address: string;
3
+ risk: RiskAssessmentLevel;
4
+ risk_reason: string;
5
+ };
6
+ export declare enum RiskAssessmentLevel {
7
+ LOW = "Low",
8
+ MEDIUM = "Medium",
9
+ HIGH = "High",
10
+ SEVERE = "Severe"
11
+ }
12
+ export type AssessmentResult = {
13
+ [address: string]: {
14
+ sanctioned: boolean;
15
+ };
16
+ };
17
+ export declare const isAddressSanctioned: (riskAssessment: AssessmentResult, address?: string) => boolean;
18
+ export declare const isSingleAddressSanctioned: (riskAssessment: AssessmentResult, address: string) => boolean;
19
+ export declare const resultHasSanctionedWallets: (riskAssessment: AssessmentResult) => boolean;
@@ -1 +1,3 @@
1
1
  export * from './riskAssessment';
2
+ export * from './riskAssessmentV2';
3
+ export * from './common';
@@ -1,14 +1,3 @@
1
1
  import { CheckoutConfiguration } from '../config';
2
- export declare enum RiskAssessmentLevel {
3
- LOW = "Low",
4
- MEDIUM = "Medium",
5
- HIGH = "High",
6
- SEVERE = "Severe"
7
- }
8
- export type AssessmentResult = {
9
- [address: string]: {
10
- sanctioned: boolean;
11
- };
12
- };
2
+ import { AssessmentResult } from './common';
13
3
  export declare const fetchRiskAssessment: (addresses: string[], config: CheckoutConfiguration) => Promise<AssessmentResult>;
14
- export declare const isAddressSanctioned: (riskAssessment: AssessmentResult, address?: string) => boolean;
@@ -0,0 +1,9 @@
1
+ import { CheckoutConfiguration } from '../config';
2
+ import { AssessmentResult } from './common';
3
+ type AssessmentData = {
4
+ address: string;
5
+ tokenAddr: string;
6
+ amount: bigint;
7
+ };
8
+ export declare const fetchRiskAssessmentV2: (assessmentData: AssessmentData[], config: CheckoutConfiguration) => Promise<AssessmentResult>;
9
+ export {};
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@imtbl/checkout-sdk",
3
3
  "description": "Immutable Checkout SDK",
4
- "version": "2.4.14-alpha.0",
4
+ "version": "2.4.14-alpha.1",
5
5
  "author": "immutable",
6
6
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
7
7
  "dependencies": {
8
- "@imtbl/blockchain-data": "2.4.14-alpha.0",
9
- "@imtbl/bridge-sdk": "2.4.14-alpha.0",
10
- "@imtbl/config": "2.4.14-alpha.0",
11
- "@imtbl/dex-sdk": "2.4.14-alpha.0",
12
- "@imtbl/generated-clients": "2.4.14-alpha.0",
13
- "@imtbl/metrics": "2.4.14-alpha.0",
14
- "@imtbl/orderbook": "2.4.14-alpha.0",
15
- "@imtbl/passport": "2.4.14-alpha.0",
8
+ "@imtbl/blockchain-data": "2.4.14-alpha.1",
9
+ "@imtbl/bridge-sdk": "2.4.14-alpha.1",
10
+ "@imtbl/config": "2.4.14-alpha.1",
11
+ "@imtbl/dex-sdk": "2.4.14-alpha.1",
12
+ "@imtbl/generated-clients": "2.4.14-alpha.1",
13
+ "@imtbl/metrics": "2.4.14-alpha.1",
14
+ "@imtbl/orderbook": "2.4.14-alpha.1",
15
+ "@imtbl/passport": "2.4.14-alpha.1",
16
16
  "@metamask/detect-provider": "^2.0.0",
17
17
  "axios": "^1.6.5",
18
18
  "ethers": "^6.13.4",