@imtbl/sdk 0.6.0-alpha → 0.6.1-alpha

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.
@@ -684,6 +684,15 @@ interface GetAllBalancesParams {
684
684
  interface GetAllBalancesResult {
685
685
  balances: GetBalanceResult[];
686
686
  }
687
+ /**
688
+ * Interface representing the parameters for {@link Checkout.buy}
689
+ * @property {Web3Provider} provider - The provider to use for the buy.
690
+ * @property {string} orderId - The order ID.
691
+ */
692
+ interface BuyParams {
693
+ provider: Web3Provider;
694
+ orderId: string;
695
+ }
687
696
  interface CheckoutOverrides {
688
697
  }
689
698
  interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverrides> {
@@ -1064,7 +1073,9 @@ declare enum CheckoutErrorType {
1064
1073
  TRANSACTION_FAILED = "TRANSACTION_FAILED",
1065
1074
  INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
1066
1075
  UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT",
1067
- INVALID_GAS_ESTIMATE_TYPE = "INVALID_GAS_ESTIMATE_TYPE"
1076
+ INVALID_GAS_ESTIMATE_TYPE = "INVALID_GAS_ESTIMATE_TYPE",
1077
+ UNSUPPORTED_TOKEN_TYPE_ERROR = "UNSUPPORTED_TOKEN_TYPE_ERROR",
1078
+ GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR"
1068
1079
  }
1069
1080
  /**
1070
1081
  * Represents an error object with a specific type, optional message, and optional data.
@@ -1090,7 +1101,6 @@ declare class RemoteConfigFetcher {
1090
1101
  }
1091
1102
  declare class CheckoutConfiguration {
1092
1103
  readonly isDevelopment: boolean;
1093
- readonly isLocal: boolean;
1094
1104
  readonly isProduction: boolean;
1095
1105
  readonly remote: RemoteConfigFetcher;
1096
1106
  readonly environment: Environment;
@@ -1171,6 +1181,11 @@ declare class Checkout {
1171
1181
  * @returns {Promise<NetworkInfo>} A promise that resolves to the network information.
1172
1182
  */
1173
1183
  getNetworkInfo(params: GetNetworkParams): Promise<NetworkInfo>;
1184
+ /**
1185
+ * Determines the requirements for performing a buy.
1186
+ * @param {BuyParams} params - The parameters for the buy.
1187
+ */
1188
+ buy(params: BuyParams): Promise<void>;
1174
1189
  /**
1175
1190
  * Checks if the given object is a Web3 provider.
1176
1191
  * @param {Web3Provider} web3Provider - The object to check.
@@ -1185,4 +1200,4 @@ declare class Checkout {
1185
1200
  gasEstimate(params: GasEstimateParams): Promise<GasEstimateSwapResult | GasEstimateBridgeToL2Result>;
1186
1201
  }
1187
1202
 
1188
- export { AllowedNetworkConfig, CHECKOUT_API_BASE_URL, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, ConnectParams, ConnectResult, DexConfig, ErrorType, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, NetworkFilter, NetworkFilterTypes, NetworkInfo, RemoteConfiguration, SendTransactionParams, SendTransactionResult, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };
1203
+ export { AllowedNetworkConfig, BuyParams, CHECKOUT_API_BASE_URL, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, ConnectParams, ConnectResult, DexConfig, ErrorType, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, NetworkFilter, NetworkFilterTypes, NetworkInfo, RemoteConfiguration, SendTransactionParams, SendTransactionResult, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };