@imtbl/sdk 0.23.0-alpha → 0.23.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.js +2 -2
- package/dist/checkout_sdk.d.ts +19 -41
- package/dist/checkout_sdk.js +2 -2
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +6 -4
- package/dist/index.d.ts +65 -58
- package/dist/index.js +6 -4
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/checkout_sdk.d.ts
CHANGED
|
@@ -11222,11 +11222,6 @@ type ERC721ItemRequirement = {
|
|
|
11222
11222
|
id: string;
|
|
11223
11223
|
spenderAddress: string;
|
|
11224
11224
|
};
|
|
11225
|
-
/**
|
|
11226
|
-
* Represents the item requirements for a transaction.
|
|
11227
|
-
* NativeItem, ERC20Item or ERC721Item {@link Checkout.smartCheckout}.
|
|
11228
|
-
*/
|
|
11229
|
-
type ItemRequirement = NativeItem | ERC20Item | ERC721Item;
|
|
11230
11225
|
/**
|
|
11231
11226
|
* An enum representing the item types
|
|
11232
11227
|
* @enum {string}
|
|
@@ -11239,41 +11234,6 @@ declare enum ItemType {
|
|
|
11239
11234
|
ERC20 = "ERC20",
|
|
11240
11235
|
ERC721 = "ERC721"
|
|
11241
11236
|
}
|
|
11242
|
-
/**
|
|
11243
|
-
* Represents a native item.
|
|
11244
|
-
* @property {ItemType} type - The type indicate this is a native item.
|
|
11245
|
-
* @property {BigNumber} amount - The amount of the item.
|
|
11246
|
-
*/
|
|
11247
|
-
type NativeItem = {
|
|
11248
|
-
type: ItemType.NATIVE;
|
|
11249
|
-
amount: BigNumber;
|
|
11250
|
-
};
|
|
11251
|
-
/**
|
|
11252
|
-
* Represents an ERC20 item.
|
|
11253
|
-
* @property {ItemType} type - The type to indicate this is an ERC20 item.
|
|
11254
|
-
* @property {string} contractAddress - The contract address of the ERC20.
|
|
11255
|
-
* @property {BigNumber} amount - The amount of the item.
|
|
11256
|
-
* @property {string} spenderAddress - The contract address of the approver.
|
|
11257
|
-
*/
|
|
11258
|
-
type ERC20Item = {
|
|
11259
|
-
type: ItemType.ERC20;
|
|
11260
|
-
contractAddress: string;
|
|
11261
|
-
amount: BigNumber;
|
|
11262
|
-
spenderAddress: string;
|
|
11263
|
-
};
|
|
11264
|
-
/**
|
|
11265
|
-
* Represents an ERC721 item.
|
|
11266
|
-
* @property {ItemType} type - The type to indicate this is an ERC721 item.
|
|
11267
|
-
* @property {string} contractAddress - The contract address of the ERC721 collection.
|
|
11268
|
-
* @property {string} id - The ID of this ERC721 in the collection.
|
|
11269
|
-
* @property {string} spenderAddress - The contract address of the approver.
|
|
11270
|
-
*/
|
|
11271
|
-
type ERC721Item = {
|
|
11272
|
-
type: ItemType.ERC721;
|
|
11273
|
-
contractAddress: string;
|
|
11274
|
-
id: string;
|
|
11275
|
-
spenderAddress: string;
|
|
11276
|
-
};
|
|
11277
11237
|
/**
|
|
11278
11238
|
* An enum representing transaction or gas types
|
|
11279
11239
|
* @enum {string}
|
|
@@ -11610,6 +11570,24 @@ type AvailableRoutingOptions = {
|
|
|
11610
11570
|
swap?: boolean;
|
|
11611
11571
|
bridge?: boolean;
|
|
11612
11572
|
};
|
|
11573
|
+
type FundingRouteFeeEstimate = SwapRouteFeeEstimate | BridgeRouteFeeEstimate;
|
|
11574
|
+
type SwapRouteFeeEstimate = {
|
|
11575
|
+
type: FundingStepType.SWAP;
|
|
11576
|
+
estimatedAmount: BigNumber;
|
|
11577
|
+
token: TokenInfo;
|
|
11578
|
+
};
|
|
11579
|
+
type BridgeRouteFeeEstimate = {
|
|
11580
|
+
type: FundingStepType.BRIDGE;
|
|
11581
|
+
gasFee: {
|
|
11582
|
+
estimatedAmount: BigNumber;
|
|
11583
|
+
token?: TokenInfo;
|
|
11584
|
+
};
|
|
11585
|
+
bridgeFee: {
|
|
11586
|
+
estimatedAmount: BigNumber;
|
|
11587
|
+
token?: TokenInfo;
|
|
11588
|
+
};
|
|
11589
|
+
totalFees: BigNumber;
|
|
11590
|
+
};
|
|
11613
11591
|
/**
|
|
11614
11592
|
* Interface representing the parameters for {@link Checkout.buy}
|
|
11615
11593
|
* @property {Web3Provider} provider - The provider to use for the buy.
|
|
@@ -12300,4 +12278,4 @@ declare class Checkout {
|
|
|
12300
12278
|
getExchangeFeeEstimate(): Promise<OnRampProviderFees>;
|
|
12301
12279
|
}
|
|
12302
12280
|
|
|
12303
|
-
export { AllowedNetworkConfig, BuyOrder, BuyParams, BuyResult, BuyToken, CHECKOUT_API_BASE_URL, CancelParams, CancelResult, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutStatus, ConnectParams, ConnectResult, DexConfig, ERC20ItemRequirement, ERC721ItemRequirement, ErrorType, ExchangeType, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult,
|
|
12281
|
+
export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BuyOrder, BuyParams, BuyResult, BuyToken, CHECKOUT_API_BASE_URL, CancelParams, CancelResult, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutStatus, ConnectParams, ConnectResult, DexConfig, ERC20ItemRequirement, ERC721ItemRequirement, ErrorType, ExchangeType, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingRouteFeeEstimate, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, ItemBalance, ItemType, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, OrderFee, RemoteConfiguration, RoutingOutcome, RoutingOutcomeType, SellOrder, SellParams, SellResult, SellToken, SendTransactionParams, SendTransactionResult, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };
|
package/dist/checkout_sdk.js
CHANGED
|
@@ -19815,7 +19815,7 @@ class APIError extends Error {
|
|
|
19815
19815
|
|
|
19816
19816
|
/* eslint-disable implicit-arrow-linebreak */
|
|
19817
19817
|
const defaultHeaders = {
|
|
19818
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.23.
|
|
19818
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.23.1',
|
|
19819
19819
|
};
|
|
19820
19820
|
/**
|
|
19821
19821
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -24126,4 +24126,4 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
24126
24126
|
}
|
|
24127
24127
|
}
|
|
24128
24128
|
|
|
24129
|
-
export { $d85ad1457a3f1a83$export$161d4a74df65fc08 as CHECKOUT_API_BASE_URL, $0472f23319457bfb$export$c06e1e7429de6283 as ChainId, $0472f23319457bfb$export$b874c6b1dfe85e02 as ChainName, $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 as Checkout, $a8bc256d81a5e2c1$export$e3dc0620abde7f5a as CheckoutErrorType, $4b58188d47aafe8d$export$de7bcda3c490bf18 as CheckoutStatus, $e055e79256bbc1dd$export$80f4da0d409a629d as ExchangeType, $de275b98d2b651c3$export$788b1fd17f3dad84 as GasEstimateType, $4b58188d47aafe8d$export$537fa3efd10ed435 as GasTokenType, $4b58188d47aafe8d$export$1fc8f52ad1810e52 as ItemType, $a47e48dd2c04791b$export$1f05a55fe0680cc7 as NetworkFilterTypes, $08d5ddc39acd6833$export$fd9b17d87f4121d2 as TokenFilterTypes, $4b58188d47aafe8d$export$65c64e46348ee3c1 as TransactionOrGasType, $4f91c5f280efe242$export$a75605c67ea83a5a as WalletFilterTypes, $e768639828688ca3$export$2d7a51a18d87e21d as WalletProviderName };
|
|
24129
|
+
export { $d85ad1457a3f1a83$export$161d4a74df65fc08 as CHECKOUT_API_BASE_URL, $0472f23319457bfb$export$c06e1e7429de6283 as ChainId, $0472f23319457bfb$export$b874c6b1dfe85e02 as ChainName, $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 as Checkout, $a8bc256d81a5e2c1$export$e3dc0620abde7f5a as CheckoutErrorType, $4b58188d47aafe8d$export$de7bcda3c490bf18 as CheckoutStatus, $e055e79256bbc1dd$export$80f4da0d409a629d as ExchangeType, $4b58188d47aafe8d$export$6fbaa98ee06d03e8 as FundingStepType, $de275b98d2b651c3$export$788b1fd17f3dad84 as GasEstimateType, $4b58188d47aafe8d$export$537fa3efd10ed435 as GasTokenType, $4b58188d47aafe8d$export$1fc8f52ad1810e52 as ItemType, $a47e48dd2c04791b$export$1f05a55fe0680cc7 as NetworkFilterTypes, $4b58188d47aafe8d$export$d0616bd3e995b8be as RoutingOutcomeType, $08d5ddc39acd6833$export$fd9b17d87f4121d2 as TokenFilterTypes, $4b58188d47aafe8d$export$65c64e46348ee3c1 as TransactionOrGasType, $4f91c5f280efe242$export$a75605c67ea83a5a as WalletFilterTypes, $e768639828688ca3$export$2d7a51a18d87e21d as WalletProviderName };
|
package/dist/checkout_widgets.js
CHANGED
|
@@ -25,7 +25,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
|
|
|
25
25
|
})($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.23.
|
|
28
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.23.1";
|
|
29
29
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
30
30
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
31
31
|
|
|
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
16
16
|
chainID,
|
|
17
17
|
coreContractAddress,
|
|
18
18
|
registrationContractAddress,
|
|
19
|
-
sdkVersion: 'ts-immutable-sdk-0.23.
|
|
19
|
+
sdkVersion: 'ts-immutable-sdk-0.23.1',
|
|
20
20
|
});
|
|
21
21
|
/**
|
|
22
22
|
* Sets `sdkVersion` at the time of build
|