@imtbl/sdk 0.30.4 → 0.30.5
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 +1 -1
- package/dist/checkout_sdk.js +11 -11
- 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 +13 -13
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -13
- package/dist/orderbook.d.ts +2 -2
- package/dist/orderbook.js +9 -9
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/checkout_sdk.js
CHANGED
|
@@ -16526,13 +16526,13 @@ function mapFromOpenApiOrder(order) {
|
|
|
16526
16526
|
return {
|
|
16527
16527
|
type: 'ERC20',
|
|
16528
16528
|
contractAddress: item.contract_address,
|
|
16529
|
-
amount: item.
|
|
16529
|
+
amount: item.amount,
|
|
16530
16530
|
};
|
|
16531
16531
|
}
|
|
16532
16532
|
if (item.item_type === 'NATIVE') {
|
|
16533
16533
|
return {
|
|
16534
16534
|
type: 'NATIVE',
|
|
16535
|
-
amount: item.
|
|
16535
|
+
amount: item.amount,
|
|
16536
16536
|
};
|
|
16537
16537
|
}
|
|
16538
16538
|
throw new Error('Buy items must be either ERC20 or NATIVE');
|
|
@@ -16580,13 +16580,13 @@ function mapFromOpenApiTrade(trade) {
|
|
|
16580
16580
|
return {
|
|
16581
16581
|
type: 'ERC20',
|
|
16582
16582
|
contractAddress: item.contract_address,
|
|
16583
|
-
amount: item.
|
|
16583
|
+
amount: item.amount,
|
|
16584
16584
|
};
|
|
16585
16585
|
}
|
|
16586
16586
|
if (item.item_type === 'NATIVE') {
|
|
16587
16587
|
return {
|
|
16588
16588
|
type: 'NATIVE',
|
|
16589
|
-
amount: item.
|
|
16589
|
+
amount: item.amount,
|
|
16590
16590
|
};
|
|
16591
16591
|
}
|
|
16592
16592
|
throw new Error('Buy items must be either ERC20 or NATIVE');
|
|
@@ -16726,8 +16726,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
|
|
|
16726
16726
|
switch (buyItem.item_type) {
|
|
16727
16727
|
case 'NATIVE':
|
|
16728
16728
|
return {
|
|
16729
|
-
startAmount: buyItem.
|
|
16730
|
-
endAmount: buyItem.
|
|
16729
|
+
startAmount: buyItem.amount,
|
|
16730
|
+
endAmount: buyItem.amount,
|
|
16731
16731
|
itemType: ItemType$1.NATIVE,
|
|
16732
16732
|
recipient: order.account_address,
|
|
16733
16733
|
token: constants$1.AddressZero,
|
|
@@ -16735,8 +16735,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
|
|
|
16735
16735
|
};
|
|
16736
16736
|
case 'ERC20':
|
|
16737
16737
|
return {
|
|
16738
|
-
startAmount: buyItem.
|
|
16739
|
-
endAmount: buyItem.
|
|
16738
|
+
startAmount: buyItem.amount,
|
|
16739
|
+
endAmount: buyItem.amount,
|
|
16740
16740
|
itemType: ItemType$1.ERC20,
|
|
16741
16741
|
recipient: order.account_address,
|
|
16742
16742
|
token: buyItem.contract_address || constants$1.AddressZero,
|
|
@@ -17057,7 +17057,7 @@ class ImmutableApiClient {
|
|
|
17057
17057
|
=== ItemType$1.NATIVE
|
|
17058
17058
|
? 'NATIVE'
|
|
17059
17059
|
: 'ERC20',
|
|
17060
|
-
|
|
17060
|
+
amount: orderComponents.consideration[0].startAmount,
|
|
17061
17061
|
contract_address: orderComponents.consideration[0].token,
|
|
17062
17062
|
},
|
|
17063
17063
|
],
|
|
@@ -20911,7 +20911,7 @@ class APIError extends Error {
|
|
|
20911
20911
|
|
|
20912
20912
|
/* eslint-disable implicit-arrow-linebreak */
|
|
20913
20913
|
const defaultHeaders = {
|
|
20914
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.30.
|
|
20914
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.30.5',
|
|
20915
20915
|
};
|
|
20916
20916
|
/**
|
|
20917
20917
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -25626,7 +25626,7 @@ async function getItemRequirementsFromRequirements(provider, requirements) {
|
|
|
25626
25626
|
return itemRequirements;
|
|
25627
25627
|
}
|
|
25628
25628
|
|
|
25629
|
-
const SDK_VERSION_MARKER = '0.30.
|
|
25629
|
+
const SDK_VERSION_MARKER = '0.30.5';
|
|
25630
25630
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
25631
25631
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
25632
25632
|
|
|
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
17
17
|
chainID,
|
|
18
18
|
coreContractAddress,
|
|
19
19
|
registrationContractAddress,
|
|
20
|
-
sdkVersion: 'ts-immutable-sdk-0.30.
|
|
20
|
+
sdkVersion: 'ts-immutable-sdk-0.30.5',
|
|
21
21
|
});
|
|
22
22
|
/**
|
|
23
23
|
* Sets `sdkVersion` at the time of build
|