@imtbl/sdk 0.36.4 → 0.37.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/sdk.js +6 -6
- package/dist/browser/checkout/widgets.js +57 -57
- package/dist/checkout.d.ts +40 -24
- package/dist/checkout.js +463 -212
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +12 -12
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +466 -214
- package/dist/index.d.ts +45 -28
- package/dist/index.js +466 -214
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16183,7 +16183,7 @@ interface CreateListingParams {
|
|
|
16183
16183
|
}
|
|
16184
16184
|
type ListListingsParams = Omit<Parameters<typeof OrdersService.prototype.listListings>[0], 'chainName'>;
|
|
16185
16185
|
type ListTradesParams = Omit<Parameters<typeof OrdersService.prototype.listTrades>[0], 'chainName'>;
|
|
16186
|
-
declare enum FeeType {
|
|
16186
|
+
declare enum FeeType$1 {
|
|
16187
16187
|
MAKER_ECOSYSTEM = "MAKER_ECOSYSTEM",
|
|
16188
16188
|
TAKER_ECOSYSTEM = "TAKER_ECOSYSTEM",
|
|
16189
16189
|
PROTOCOL = "PROTOCOL",
|
|
@@ -16194,7 +16194,7 @@ interface FeeValue {
|
|
|
16194
16194
|
amount: string;
|
|
16195
16195
|
}
|
|
16196
16196
|
interface Fee$1 extends FeeValue {
|
|
16197
|
-
type: FeeType;
|
|
16197
|
+
type: FeeType$1;
|
|
16198
16198
|
}
|
|
16199
16199
|
declare enum TransactionPurpose {
|
|
16200
16200
|
APPROVAL = "APPROVAL",
|
|
@@ -16463,8 +16463,6 @@ type orderbook_d_CancelOrdersOnChainResponse = CancelOrdersOnChainResponse;
|
|
|
16463
16463
|
type orderbook_d_CreateListingParams = CreateListingParams;
|
|
16464
16464
|
type orderbook_d_ERC20Item = ERC20Item;
|
|
16465
16465
|
type orderbook_d_ERC721Item = ERC721Item;
|
|
16466
|
-
type orderbook_d_FeeType = FeeType;
|
|
16467
|
-
declare const orderbook_d_FeeType: typeof FeeType;
|
|
16468
16466
|
type orderbook_d_FeeValue = FeeValue;
|
|
16469
16467
|
type orderbook_d_FulfillBulkOrdersInsufficientBalanceResponse = FulfillBulkOrdersInsufficientBalanceResponse;
|
|
16470
16468
|
type orderbook_d_FulfillBulkOrdersResponse = FulfillBulkOrdersResponse;
|
|
@@ -16507,7 +16505,7 @@ declare namespace orderbook_d {
|
|
|
16507
16505
|
orderbook_d_ERC20Item as ERC20Item,
|
|
16508
16506
|
orderbook_d_ERC721Item as ERC721Item,
|
|
16509
16507
|
Fee$1 as Fee,
|
|
16510
|
-
|
|
16508
|
+
FeeType$1 as FeeType,
|
|
16511
16509
|
orderbook_d_FeeValue as FeeValue,
|
|
16512
16510
|
orderbook_d_FulfillBulkOrdersInsufficientBalanceResponse as FulfillBulkOrdersInsufficientBalanceResponse,
|
|
16513
16511
|
orderbook_d_FulfillBulkOrdersResponse as FulfillBulkOrdersResponse,
|
|
@@ -16846,15 +16844,15 @@ type NativeBuyToken = {
|
|
|
16846
16844
|
* Represents a ERC20 buy token
|
|
16847
16845
|
* @property {ItemType} type
|
|
16848
16846
|
* @property {string} amount
|
|
16849
|
-
* @property {string}
|
|
16847
|
+
* @property {string} tokenAddress
|
|
16850
16848
|
*/
|
|
16851
16849
|
type ERC20BuyToken = {
|
|
16852
16850
|
/** The type indicate this is a ERC20 token. */
|
|
16853
16851
|
type: ItemType.ERC20;
|
|
16854
16852
|
/** The amount of native token. */
|
|
16855
16853
|
amount: string;
|
|
16856
|
-
/** The
|
|
16857
|
-
|
|
16854
|
+
/** The token address of the ERC20. */
|
|
16855
|
+
tokenAddress: string;
|
|
16858
16856
|
};
|
|
16859
16857
|
/**
|
|
16860
16858
|
* The SellToken type
|
|
@@ -16895,16 +16893,16 @@ type NativeItemRequirement = {
|
|
|
16895
16893
|
/**
|
|
16896
16894
|
* Represents an ERC20 item requirement for a transaction.
|
|
16897
16895
|
* @property {ItemType.ERC20} type
|
|
16896
|
+
* @property {string} tokenAddress
|
|
16898
16897
|
* @property {string} amount
|
|
16899
|
-
* @property {string} contractAddress
|
|
16900
16898
|
* @property {string} spenderAddress
|
|
16901
16899
|
*/
|
|
16902
16900
|
type ERC20ItemRequirement = {
|
|
16903
16901
|
/** The type to indicate this is a ERC20 item requirement. */
|
|
16904
16902
|
type: ItemType.ERC20;
|
|
16903
|
+
/** The token address of the ERC20. */
|
|
16904
|
+
tokenAddress: string;
|
|
16905
16905
|
/** The amount of the item. */
|
|
16906
|
-
contractAddress: string;
|
|
16907
|
-
/** The contract address of the ERC20. */
|
|
16908
16906
|
amount: string;
|
|
16909
16907
|
/** The contract address of the approver. */
|
|
16910
16908
|
spenderAddress: string;
|
|
@@ -16998,14 +16996,14 @@ type NativeGas = {
|
|
|
16998
16996
|
/**
|
|
16999
16997
|
* Represents an ERC20 gas token.
|
|
17000
16998
|
* @property {GasTokenType} type
|
|
17001
|
-
* @property {string}
|
|
16999
|
+
* @property {string} tokenAddress
|
|
17002
17000
|
* @property {BigNumber} limit
|
|
17003
17001
|
*/
|
|
17004
17002
|
type ERC20Gas = {
|
|
17005
17003
|
/** The type to indicate this is an ERC20 gas token. */
|
|
17006
17004
|
type: GasTokenType.ERC20;
|
|
17007
|
-
/** The
|
|
17008
|
-
|
|
17005
|
+
/** The token address of the ERC20. */
|
|
17006
|
+
tokenAddress: string;
|
|
17009
17007
|
/** The gas limit. */
|
|
17010
17008
|
limit: BigNumber;
|
|
17011
17009
|
};
|
|
@@ -17113,6 +17111,8 @@ type FundingRoute = {
|
|
|
17113
17111
|
* @property {TokenInfo | undefined} token
|
|
17114
17112
|
*/
|
|
17115
17113
|
type Fee = {
|
|
17114
|
+
/** The type of fee */
|
|
17115
|
+
type: FeeType;
|
|
17116
17116
|
/** The amount of the fee */
|
|
17117
17117
|
amount: BigNumber;
|
|
17118
17118
|
/** The formatted amount of the fee */
|
|
@@ -17120,6 +17120,20 @@ type Fee = {
|
|
|
17120
17120
|
/** The token info for the fee */
|
|
17121
17121
|
token?: TokenInfo;
|
|
17122
17122
|
};
|
|
17123
|
+
/**
|
|
17124
|
+
* An enum representing the funding step types
|
|
17125
|
+
* @enum {string}
|
|
17126
|
+
* @property {string} GAS - If the fee is a gas fee.
|
|
17127
|
+
* @property {string} BRIDGE_FEE - If the fee is a bridge fee.
|
|
17128
|
+
* @property {string} SWAP_FEE - If the fee is a swap fee.
|
|
17129
|
+
* @property {string} IMMUTABLE_FEE - If the fee is an immutable fee.
|
|
17130
|
+
*/
|
|
17131
|
+
declare enum FeeType {
|
|
17132
|
+
GAS = "GAS",
|
|
17133
|
+
BRIDGE_FEE = "BRIDGE_FEE",
|
|
17134
|
+
SWAP_FEE = "SWAP_FEE",
|
|
17135
|
+
IMMUTABLE_FEE = "IMMUTABLE_FEE"
|
|
17136
|
+
}
|
|
17123
17137
|
type FundingStep = BridgeFundingStep | SwapFundingStep | OnRampFundingStep;
|
|
17124
17138
|
/**
|
|
17125
17139
|
* Represents a bridge funding route
|
|
@@ -17140,15 +17154,15 @@ type BridgeFundingStep = {
|
|
|
17140
17154
|
};
|
|
17141
17155
|
/**
|
|
17142
17156
|
* Represents the fees for a bridge funding step
|
|
17143
|
-
* @property {Fee}
|
|
17144
|
-
* @property {Fee}
|
|
17157
|
+
* @property {Fee} approvalGasFee
|
|
17158
|
+
* @property {Fee} bridgeGasFee
|
|
17145
17159
|
* @property {Fee[]} bridgeFees
|
|
17146
17160
|
*/
|
|
17147
17161
|
type BridgeFees = {
|
|
17148
|
-
/** The approval gas
|
|
17149
|
-
|
|
17150
|
-
/** The bridge gas
|
|
17151
|
-
|
|
17162
|
+
/** The approval gas fee for the bridge */
|
|
17163
|
+
approvalGasFee: Fee;
|
|
17164
|
+
/** The bridge gas fee for the bridge */
|
|
17165
|
+
bridgeGasFee: Fee;
|
|
17152
17166
|
/** Additional bridge fees for the bridge */
|
|
17153
17167
|
bridgeFees: Fee[];
|
|
17154
17168
|
};
|
|
@@ -17171,15 +17185,15 @@ type SwapFundingStep = {
|
|
|
17171
17185
|
};
|
|
17172
17186
|
/**
|
|
17173
17187
|
* Represents the fees for a swap funding step
|
|
17174
|
-
* @property {Fee}
|
|
17175
|
-
* @property {Fee}
|
|
17188
|
+
* @property {Fee} approvalGasFee
|
|
17189
|
+
* @property {Fee} swapGasFee
|
|
17176
17190
|
* @property {Fee[]} swapFees
|
|
17177
17191
|
*/
|
|
17178
17192
|
type SwapFees = {
|
|
17179
|
-
/** The approval gas
|
|
17180
|
-
|
|
17181
|
-
/** The swap gas
|
|
17182
|
-
|
|
17193
|
+
/** The approval gas fee for the swap */
|
|
17194
|
+
approvalGasFee: Fee;
|
|
17195
|
+
/** The swap gas fee for the swap */
|
|
17196
|
+
swapGasFee: Fee;
|
|
17183
17197
|
/** Additional swap fees for the swap */
|
|
17184
17198
|
swapFees: Fee[];
|
|
17185
17199
|
};
|
|
@@ -17548,10 +17562,10 @@ type ImxAddressConfig = {
|
|
|
17548
17562
|
};
|
|
17549
17563
|
/**
|
|
17550
17564
|
* A type representing the telemetry configurations.
|
|
17551
|
-
* @property {string}
|
|
17565
|
+
* @property {string} segmentPublishableKey
|
|
17552
17566
|
*/
|
|
17553
17567
|
type TelemetryConfig = {
|
|
17554
|
-
|
|
17568
|
+
segmentPublishableKey: string;
|
|
17555
17569
|
};
|
|
17556
17570
|
/**
|
|
17557
17571
|
* A type representing the required information to estimate gas for a transaction.
|
|
@@ -19022,6 +19036,8 @@ declare const checkout_d_ExchangeType: typeof ExchangeType;
|
|
|
19022
19036
|
type checkout_d_Fee = Fee;
|
|
19023
19037
|
type checkout_d_FeePercentage = FeePercentage;
|
|
19024
19038
|
type checkout_d_FeeToken = FeeToken;
|
|
19039
|
+
type checkout_d_FeeType = FeeType;
|
|
19040
|
+
declare const checkout_d_FeeType: typeof FeeType;
|
|
19025
19041
|
type checkout_d_FiatRampParams = FiatRampParams;
|
|
19026
19042
|
type checkout_d_FulfillmentTransaction = FulfillmentTransaction;
|
|
19027
19043
|
type checkout_d_FundingItem = FundingItem;
|
|
@@ -19213,6 +19229,7 @@ declare namespace checkout_d {
|
|
|
19213
19229
|
checkout_d_Fee as Fee,
|
|
19214
19230
|
checkout_d_FeePercentage as FeePercentage,
|
|
19215
19231
|
checkout_d_FeeToken as FeeToken,
|
|
19232
|
+
checkout_d_FeeType as FeeType,
|
|
19216
19233
|
checkout_d_FiatRampParams as FiatRampParams,
|
|
19217
19234
|
checkout_d_FulfillmentTransaction as FulfillmentTransaction,
|
|
19218
19235
|
checkout_d_FundingItem as FundingItem,
|