@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/index.cjs
CHANGED
|
@@ -3792,7 +3792,7 @@ class MultiRollupApiClients {
|
|
|
3792
3792
|
}
|
|
3793
3793
|
|
|
3794
3794
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3795
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.30.
|
|
3795
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.30.5' };
|
|
3796
3796
|
const createConfig = ({ basePath, headers, }) => {
|
|
3797
3797
|
if (!basePath.trim()) {
|
|
3798
3798
|
throw Error('basePath can not be empty');
|
|
@@ -3852,7 +3852,7 @@ class APIError extends Error {
|
|
|
3852
3852
|
|
|
3853
3853
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3854
3854
|
const defaultHeaders = {
|
|
3855
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.30.
|
|
3855
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.30.5',
|
|
3856
3856
|
};
|
|
3857
3857
|
/**
|
|
3858
3858
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4263,7 +4263,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4263
4263
|
chainID,
|
|
4264
4264
|
coreContractAddress,
|
|
4265
4265
|
registrationContractAddress,
|
|
4266
|
-
sdkVersion: 'ts-immutable-sdk-0.30.
|
|
4266
|
+
sdkVersion: 'ts-immutable-sdk-0.30.5',
|
|
4267
4267
|
});
|
|
4268
4268
|
/**
|
|
4269
4269
|
* Sets `sdkVersion` at the time of build
|
|
@@ -11870,13 +11870,13 @@ function mapFromOpenApiOrder(order) {
|
|
|
11870
11870
|
return {
|
|
11871
11871
|
type: 'ERC20',
|
|
11872
11872
|
contractAddress: item.contract_address,
|
|
11873
|
-
amount: item.
|
|
11873
|
+
amount: item.amount,
|
|
11874
11874
|
};
|
|
11875
11875
|
}
|
|
11876
11876
|
if (item.item_type === 'NATIVE') {
|
|
11877
11877
|
return {
|
|
11878
11878
|
type: 'NATIVE',
|
|
11879
|
-
amount: item.
|
|
11879
|
+
amount: item.amount,
|
|
11880
11880
|
};
|
|
11881
11881
|
}
|
|
11882
11882
|
throw new Error('Buy items must be either ERC20 or NATIVE');
|
|
@@ -11924,13 +11924,13 @@ function mapFromOpenApiTrade(trade) {
|
|
|
11924
11924
|
return {
|
|
11925
11925
|
type: 'ERC20',
|
|
11926
11926
|
contractAddress: item.contract_address,
|
|
11927
|
-
amount: item.
|
|
11927
|
+
amount: item.amount,
|
|
11928
11928
|
};
|
|
11929
11929
|
}
|
|
11930
11930
|
if (item.item_type === 'NATIVE') {
|
|
11931
11931
|
return {
|
|
11932
11932
|
type: 'NATIVE',
|
|
11933
|
-
amount: item.
|
|
11933
|
+
amount: item.amount,
|
|
11934
11934
|
};
|
|
11935
11935
|
}
|
|
11936
11936
|
throw new Error('Buy items must be either ERC20 or NATIVE');
|
|
@@ -12070,8 +12070,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
|
|
|
12070
12070
|
switch (buyItem.item_type) {
|
|
12071
12071
|
case 'NATIVE':
|
|
12072
12072
|
return {
|
|
12073
|
-
startAmount: buyItem.
|
|
12074
|
-
endAmount: buyItem.
|
|
12073
|
+
startAmount: buyItem.amount,
|
|
12074
|
+
endAmount: buyItem.amount,
|
|
12075
12075
|
itemType: ItemType$1.NATIVE,
|
|
12076
12076
|
recipient: order.account_address,
|
|
12077
12077
|
token: ethers.constants.AddressZero,
|
|
@@ -12079,8 +12079,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
|
|
|
12079
12079
|
};
|
|
12080
12080
|
case 'ERC20':
|
|
12081
12081
|
return {
|
|
12082
|
-
startAmount: buyItem.
|
|
12083
|
-
endAmount: buyItem.
|
|
12082
|
+
startAmount: buyItem.amount,
|
|
12083
|
+
endAmount: buyItem.amount,
|
|
12084
12084
|
itemType: ItemType$1.ERC20,
|
|
12085
12085
|
recipient: order.account_address,
|
|
12086
12086
|
token: buyItem.contract_address || ethers.constants.AddressZero,
|
|
@@ -12401,7 +12401,7 @@ class ImmutableApiClient {
|
|
|
12401
12401
|
=== ItemType$1.NATIVE
|
|
12402
12402
|
? 'NATIVE'
|
|
12403
12403
|
: 'ERC20',
|
|
12404
|
-
|
|
12404
|
+
amount: orderComponents.consideration[0].startAmount,
|
|
12405
12405
|
contract_address: orderComponents.consideration[0].token,
|
|
12406
12406
|
},
|
|
12407
12407
|
],
|
|
@@ -34022,7 +34022,7 @@ async function getItemRequirementsFromRequirements(provider, requirements) {
|
|
|
34022
34022
|
return itemRequirements;
|
|
34023
34023
|
}
|
|
34024
34024
|
|
|
34025
|
-
const SDK_VERSION_MARKER = '0.30.
|
|
34025
|
+
const SDK_VERSION_MARKER = '0.30.5';
|
|
34026
34026
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
34027
34027
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
34028
34028
|
|
package/dist/index.d.ts
CHANGED
|
@@ -14949,7 +14949,7 @@ type ERC20Item$1 = {
|
|
|
14949
14949
|
/**
|
|
14950
14950
|
* A string representing the starting price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum).
|
|
14951
14951
|
*/
|
|
14952
|
-
|
|
14952
|
+
amount: string;
|
|
14953
14953
|
};
|
|
14954
14954
|
|
|
14955
14955
|
type ERC721Item$1 = {
|
|
@@ -14975,7 +14975,7 @@ type NativeItem$1 = {
|
|
|
14975
14975
|
/**
|
|
14976
14976
|
* A string representing the starting price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum).
|
|
14977
14977
|
*/
|
|
14978
|
-
|
|
14978
|
+
amount: string;
|
|
14979
14979
|
};
|
|
14980
14980
|
|
|
14981
14981
|
type Item = (NativeItem$1 | ERC20Item$1 | ERC721Item$1);
|
package/dist/index.js
CHANGED
|
@@ -3770,7 +3770,7 @@ class MultiRollupApiClients {
|
|
|
3770
3770
|
}
|
|
3771
3771
|
|
|
3772
3772
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3773
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.30.
|
|
3773
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.30.5' };
|
|
3774
3774
|
const createConfig = ({ basePath, headers, }) => {
|
|
3775
3775
|
if (!basePath.trim()) {
|
|
3776
3776
|
throw Error('basePath can not be empty');
|
|
@@ -3830,7 +3830,7 @@ class APIError extends Error {
|
|
|
3830
3830
|
|
|
3831
3831
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3832
3832
|
const defaultHeaders = {
|
|
3833
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.30.
|
|
3833
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.30.5',
|
|
3834
3834
|
};
|
|
3835
3835
|
/**
|
|
3836
3836
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4241,7 +4241,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4241
4241
|
chainID,
|
|
4242
4242
|
coreContractAddress,
|
|
4243
4243
|
registrationContractAddress,
|
|
4244
|
-
sdkVersion: 'ts-immutable-sdk-0.30.
|
|
4244
|
+
sdkVersion: 'ts-immutable-sdk-0.30.5',
|
|
4245
4245
|
});
|
|
4246
4246
|
/**
|
|
4247
4247
|
* Sets `sdkVersion` at the time of build
|
|
@@ -11848,13 +11848,13 @@ function mapFromOpenApiOrder(order) {
|
|
|
11848
11848
|
return {
|
|
11849
11849
|
type: 'ERC20',
|
|
11850
11850
|
contractAddress: item.contract_address,
|
|
11851
|
-
amount: item.
|
|
11851
|
+
amount: item.amount,
|
|
11852
11852
|
};
|
|
11853
11853
|
}
|
|
11854
11854
|
if (item.item_type === 'NATIVE') {
|
|
11855
11855
|
return {
|
|
11856
11856
|
type: 'NATIVE',
|
|
11857
|
-
amount: item.
|
|
11857
|
+
amount: item.amount,
|
|
11858
11858
|
};
|
|
11859
11859
|
}
|
|
11860
11860
|
throw new Error('Buy items must be either ERC20 or NATIVE');
|
|
@@ -11902,13 +11902,13 @@ function mapFromOpenApiTrade(trade) {
|
|
|
11902
11902
|
return {
|
|
11903
11903
|
type: 'ERC20',
|
|
11904
11904
|
contractAddress: item.contract_address,
|
|
11905
|
-
amount: item.
|
|
11905
|
+
amount: item.amount,
|
|
11906
11906
|
};
|
|
11907
11907
|
}
|
|
11908
11908
|
if (item.item_type === 'NATIVE') {
|
|
11909
11909
|
return {
|
|
11910
11910
|
type: 'NATIVE',
|
|
11911
|
-
amount: item.
|
|
11911
|
+
amount: item.amount,
|
|
11912
11912
|
};
|
|
11913
11913
|
}
|
|
11914
11914
|
throw new Error('Buy items must be either ERC20 or NATIVE');
|
|
@@ -12048,8 +12048,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
|
|
|
12048
12048
|
switch (buyItem.item_type) {
|
|
12049
12049
|
case 'NATIVE':
|
|
12050
12050
|
return {
|
|
12051
|
-
startAmount: buyItem.
|
|
12052
|
-
endAmount: buyItem.
|
|
12051
|
+
startAmount: buyItem.amount,
|
|
12052
|
+
endAmount: buyItem.amount,
|
|
12053
12053
|
itemType: ItemType$1.NATIVE,
|
|
12054
12054
|
recipient: order.account_address,
|
|
12055
12055
|
token: constants$1.AddressZero,
|
|
@@ -12057,8 +12057,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
|
|
|
12057
12057
|
};
|
|
12058
12058
|
case 'ERC20':
|
|
12059
12059
|
return {
|
|
12060
|
-
startAmount: buyItem.
|
|
12061
|
-
endAmount: buyItem.
|
|
12060
|
+
startAmount: buyItem.amount,
|
|
12061
|
+
endAmount: buyItem.amount,
|
|
12062
12062
|
itemType: ItemType$1.ERC20,
|
|
12063
12063
|
recipient: order.account_address,
|
|
12064
12064
|
token: buyItem.contract_address || constants$1.AddressZero,
|
|
@@ -12379,7 +12379,7 @@ class ImmutableApiClient {
|
|
|
12379
12379
|
=== ItemType$1.NATIVE
|
|
12380
12380
|
? 'NATIVE'
|
|
12381
12381
|
: 'ERC20',
|
|
12382
|
-
|
|
12382
|
+
amount: orderComponents.consideration[0].startAmount,
|
|
12383
12383
|
contract_address: orderComponents.consideration[0].token,
|
|
12384
12384
|
},
|
|
12385
12385
|
],
|
|
@@ -34000,7 +34000,7 @@ async function getItemRequirementsFromRequirements(provider, requirements) {
|
|
|
34000
34000
|
return itemRequirements;
|
|
34001
34001
|
}
|
|
34002
34002
|
|
|
34003
|
-
const SDK_VERSION_MARKER = '0.30.
|
|
34003
|
+
const SDK_VERSION_MARKER = '0.30.5';
|
|
34004
34004
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
34005
34005
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
34006
34006
|
|
package/dist/orderbook.d.ts
CHANGED
|
@@ -761,7 +761,7 @@ type ERC20Item$1 = {
|
|
|
761
761
|
/**
|
|
762
762
|
* A string representing the starting price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum).
|
|
763
763
|
*/
|
|
764
|
-
|
|
764
|
+
amount: string;
|
|
765
765
|
};
|
|
766
766
|
|
|
767
767
|
type ERC721Item$1 = {
|
|
@@ -787,7 +787,7 @@ type NativeItem$1 = {
|
|
|
787
787
|
/**
|
|
788
788
|
* A string representing the starting price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum).
|
|
789
789
|
*/
|
|
790
|
-
|
|
790
|
+
amount: string;
|
|
791
791
|
};
|
|
792
792
|
|
|
793
793
|
type Item = (NativeItem$1 | ERC20Item$1 | ERC721Item$1);
|
package/dist/orderbook.js
CHANGED
|
@@ -679,13 +679,13 @@ function mapFromOpenApiOrder(order) {
|
|
|
679
679
|
return {
|
|
680
680
|
type: 'ERC20',
|
|
681
681
|
contractAddress: item.contract_address,
|
|
682
|
-
amount: item.
|
|
682
|
+
amount: item.amount,
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
685
|
if (item.item_type === 'NATIVE') {
|
|
686
686
|
return {
|
|
687
687
|
type: 'NATIVE',
|
|
688
|
-
amount: item.
|
|
688
|
+
amount: item.amount,
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
691
|
throw new Error('Buy items must be either ERC20 or NATIVE');
|
|
@@ -733,13 +733,13 @@ function mapFromOpenApiTrade(trade) {
|
|
|
733
733
|
return {
|
|
734
734
|
type: 'ERC20',
|
|
735
735
|
contractAddress: item.contract_address,
|
|
736
|
-
amount: item.
|
|
736
|
+
amount: item.amount,
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
739
|
if (item.item_type === 'NATIVE') {
|
|
740
740
|
return {
|
|
741
741
|
type: 'NATIVE',
|
|
742
|
-
amount: item.
|
|
742
|
+
amount: item.amount,
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
throw new Error('Buy items must be either ERC20 or NATIVE');
|
|
@@ -879,8 +879,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
|
|
|
879
879
|
switch (buyItem.item_type) {
|
|
880
880
|
case 'NATIVE':
|
|
881
881
|
return {
|
|
882
|
-
startAmount: buyItem.
|
|
883
|
-
endAmount: buyItem.
|
|
882
|
+
startAmount: buyItem.amount,
|
|
883
|
+
endAmount: buyItem.amount,
|
|
884
884
|
itemType: ItemType.NATIVE,
|
|
885
885
|
recipient: order.account_address,
|
|
886
886
|
token: constants$1.AddressZero,
|
|
@@ -888,8 +888,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
|
|
|
888
888
|
};
|
|
889
889
|
case 'ERC20':
|
|
890
890
|
return {
|
|
891
|
-
startAmount: buyItem.
|
|
892
|
-
endAmount: buyItem.
|
|
891
|
+
startAmount: buyItem.amount,
|
|
892
|
+
endAmount: buyItem.amount,
|
|
893
893
|
itemType: ItemType.ERC20,
|
|
894
894
|
recipient: order.account_address,
|
|
895
895
|
token: buyItem.contract_address || constants$1.AddressZero,
|
|
@@ -1210,7 +1210,7 @@ class ImmutableApiClient {
|
|
|
1210
1210
|
=== ItemType.NATIVE
|
|
1211
1211
|
? 'NATIVE'
|
|
1212
1212
|
: 'ERC20',
|
|
1213
|
-
|
|
1213
|
+
amount: orderComponents.consideration[0].startAmount,
|
|
1214
1214
|
contract_address: orderComponents.consideration[0].token,
|
|
1215
1215
|
},
|
|
1216
1216
|
],
|
package/dist/passport.js
CHANGED
|
@@ -2191,7 +2191,7 @@ class MultiRollupApiClients {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
|
|
2193
2193
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2194
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.30.
|
|
2194
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.30.5' };
|
|
2195
2195
|
const createConfig = ({ basePath, headers, }) => {
|
|
2196
2196
|
if (!basePath.trim()) {
|
|
2197
2197
|
throw Error('basePath can not be empty');
|
|
@@ -2247,7 +2247,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
2247
2247
|
chainID,
|
|
2248
2248
|
coreContractAddress,
|
|
2249
2249
|
registrationContractAddress,
|
|
2250
|
-
sdkVersion: 'ts-immutable-sdk-0.30.
|
|
2250
|
+
sdkVersion: 'ts-immutable-sdk-0.30.5',
|
|
2251
2251
|
});
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED