@imtbl/sdk 1.24.0-alpha.1 → 1.24.0-alpha.3
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 +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.js +24 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +17 -17
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +27 -7
- package/dist/index.js +27 -7
- package/dist/orderbook.js +21 -1
- package/dist/passport.js +4 -4
- package/dist/x.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -181,7 +181,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
184
|
-
const SDK_VERSION$1 = '1.24.0-alpha.
|
|
184
|
+
const SDK_VERSION$1 = '1.24.0-alpha.3';
|
|
185
185
|
const getReferrer$1 = () => {
|
|
186
186
|
if (isNode$1()) {
|
|
187
187
|
return '';
|
|
@@ -13732,7 +13732,7 @@ class MultiRollupApiClients {
|
|
|
13732
13732
|
}
|
|
13733
13733
|
|
|
13734
13734
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13735
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.
|
|
13735
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.3' };
|
|
13736
13736
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13737
13737
|
if (!basePath.trim()) {
|
|
13738
13738
|
throw Error('basePath can not be empty');
|
|
@@ -13804,7 +13804,7 @@ class APIError extends Error {
|
|
|
13804
13804
|
|
|
13805
13805
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13806
13806
|
const defaultHeaders$1 = {
|
|
13807
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.24.0-alpha.
|
|
13807
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.24.0-alpha.3',
|
|
13808
13808
|
};
|
|
13809
13809
|
/**
|
|
13810
13810
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14278,7 +14278,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14278
14278
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14279
14279
|
class ApiConfiguration extends index$2.Configuration {
|
|
14280
14280
|
}
|
|
14281
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.
|
|
14281
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.3' };
|
|
14282
14282
|
/**
|
|
14283
14283
|
* @dev use createImmutableXConfiguration instead
|
|
14284
14284
|
*/
|
|
@@ -14317,7 +14317,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14317
14317
|
chainID,
|
|
14318
14318
|
coreContractAddress,
|
|
14319
14319
|
registrationContractAddress,
|
|
14320
|
-
sdkVersion: 'ts-immutable-sdk-1.24.0-alpha.
|
|
14320
|
+
sdkVersion: 'ts-immutable-sdk-1.24.0-alpha.3',
|
|
14321
14321
|
baseConfig,
|
|
14322
14322
|
});
|
|
14323
14323
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -27870,8 +27870,20 @@ class Seaport {
|
|
|
27870
27870
|
async fulfillOrder(order, account, extraData) {
|
|
27871
27871
|
const { orderComponents, tips } = this.mapImmutableOrderToSeaportOrderComponents(order);
|
|
27872
27872
|
const seaportLib = this.getSeaportLib(order);
|
|
27873
|
+
try {
|
|
27874
|
+
const signer = await this.provider.getSigner(account);
|
|
27875
|
+
const address = await signer.getAddress();
|
|
27876
|
+
// eslint-disable-next-line no-console
|
|
27877
|
+
console.log(`Fulfiller address: ${address}`);
|
|
27878
|
+
// eslint-disable-next-line no-console
|
|
27879
|
+
console.log(`Provided address: ${account}`);
|
|
27880
|
+
}
|
|
27881
|
+
catch {
|
|
27882
|
+
// no-op - this is for temporary debugging
|
|
27883
|
+
}
|
|
27873
27884
|
const { actions: seaportActions } = await seaportLib.fulfillOrders({
|
|
27874
27885
|
accountAddress: account,
|
|
27886
|
+
recipientAddress: account,
|
|
27875
27887
|
fulfillOrderDetails: [
|
|
27876
27888
|
{
|
|
27877
27889
|
order: {
|
|
@@ -28194,6 +28206,14 @@ function convertToV6Provider(provider) {
|
|
|
28194
28206
|
// provider has access to the address as a signer.
|
|
28195
28207
|
return new ethersV6.JsonRpcSigner(this, address);
|
|
28196
28208
|
};
|
|
28209
|
+
// eslint-disable-next-line no-console
|
|
28210
|
+
console.log('Overwritten provider getSigner method');
|
|
28211
|
+
// eslint-disable-next-line no-console
|
|
28212
|
+
console.log(overwrittenProvider.getSigner);
|
|
28213
|
+
// eslint-disable-next-line no-console
|
|
28214
|
+
console.log('Overwriter provider methods');
|
|
28215
|
+
// eslint-disable-next-line no-console
|
|
28216
|
+
console.log(JSON.stringify(Object.keys(overwrittenProvider), null, 2));
|
|
28197
28217
|
return overwrittenProvider;
|
|
28198
28218
|
}
|
|
28199
28219
|
class SeaportLibFactory {
|
|
@@ -45679,7 +45699,7 @@ const flattenProperties = (properties) => {
|
|
|
45679
45699
|
};
|
|
45680
45700
|
|
|
45681
45701
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45682
|
-
const SDK_VERSION = '1.24.0-alpha.
|
|
45702
|
+
const SDK_VERSION = '1.24.0-alpha.3';
|
|
45683
45703
|
const getReferrer = () => {
|
|
45684
45704
|
if (isNode()) {
|
|
45685
45705
|
return '';
|
|
@@ -50874,7 +50894,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50874
50894
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
50875
50895
|
};
|
|
50876
50896
|
|
|
50877
|
-
const SDK_VERSION_MARKER = '1.24.0-alpha.
|
|
50897
|
+
const SDK_VERSION_MARKER = '1.24.0-alpha.3';
|
|
50878
50898
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50879
50899
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50880
50900
|
|
package/dist/index.js
CHANGED
|
@@ -159,7 +159,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
162
|
-
const SDK_VERSION$1 = '1.24.0-alpha.
|
|
162
|
+
const SDK_VERSION$1 = '1.24.0-alpha.3';
|
|
163
163
|
const getReferrer$1 = () => {
|
|
164
164
|
if (isNode$1()) {
|
|
165
165
|
return '';
|
|
@@ -13710,7 +13710,7 @@ class MultiRollupApiClients {
|
|
|
13710
13710
|
}
|
|
13711
13711
|
|
|
13712
13712
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13713
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.
|
|
13713
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.3' };
|
|
13714
13714
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13715
13715
|
if (!basePath.trim()) {
|
|
13716
13716
|
throw Error('basePath can not be empty');
|
|
@@ -13782,7 +13782,7 @@ class APIError extends Error {
|
|
|
13782
13782
|
|
|
13783
13783
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13784
13784
|
const defaultHeaders$1 = {
|
|
13785
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.24.0-alpha.
|
|
13785
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.24.0-alpha.3',
|
|
13786
13786
|
};
|
|
13787
13787
|
/**
|
|
13788
13788
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14256,7 +14256,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14256
14256
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14257
14257
|
class ApiConfiguration extends index$2.Configuration {
|
|
14258
14258
|
}
|
|
14259
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.
|
|
14259
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.3' };
|
|
14260
14260
|
/**
|
|
14261
14261
|
* @dev use createImmutableXConfiguration instead
|
|
14262
14262
|
*/
|
|
@@ -14295,7 +14295,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14295
14295
|
chainID,
|
|
14296
14296
|
coreContractAddress,
|
|
14297
14297
|
registrationContractAddress,
|
|
14298
|
-
sdkVersion: 'ts-immutable-sdk-1.24.0-alpha.
|
|
14298
|
+
sdkVersion: 'ts-immutable-sdk-1.24.0-alpha.3',
|
|
14299
14299
|
baseConfig,
|
|
14300
14300
|
});
|
|
14301
14301
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -27848,8 +27848,20 @@ class Seaport {
|
|
|
27848
27848
|
async fulfillOrder(order, account, extraData) {
|
|
27849
27849
|
const { orderComponents, tips } = this.mapImmutableOrderToSeaportOrderComponents(order);
|
|
27850
27850
|
const seaportLib = this.getSeaportLib(order);
|
|
27851
|
+
try {
|
|
27852
|
+
const signer = await this.provider.getSigner(account);
|
|
27853
|
+
const address = await signer.getAddress();
|
|
27854
|
+
// eslint-disable-next-line no-console
|
|
27855
|
+
console.log(`Fulfiller address: ${address}`);
|
|
27856
|
+
// eslint-disable-next-line no-console
|
|
27857
|
+
console.log(`Provided address: ${account}`);
|
|
27858
|
+
}
|
|
27859
|
+
catch {
|
|
27860
|
+
// no-op - this is for temporary debugging
|
|
27861
|
+
}
|
|
27851
27862
|
const { actions: seaportActions } = await seaportLib.fulfillOrders({
|
|
27852
27863
|
accountAddress: account,
|
|
27864
|
+
recipientAddress: account,
|
|
27853
27865
|
fulfillOrderDetails: [
|
|
27854
27866
|
{
|
|
27855
27867
|
order: {
|
|
@@ -28172,6 +28184,14 @@ function convertToV6Provider(provider) {
|
|
|
28172
28184
|
// provider has access to the address as a signer.
|
|
28173
28185
|
return new JsonRpcSigner(this, address);
|
|
28174
28186
|
};
|
|
28187
|
+
// eslint-disable-next-line no-console
|
|
28188
|
+
console.log('Overwritten provider getSigner method');
|
|
28189
|
+
// eslint-disable-next-line no-console
|
|
28190
|
+
console.log(overwrittenProvider.getSigner);
|
|
28191
|
+
// eslint-disable-next-line no-console
|
|
28192
|
+
console.log('Overwriter provider methods');
|
|
28193
|
+
// eslint-disable-next-line no-console
|
|
28194
|
+
console.log(JSON.stringify(Object.keys(overwrittenProvider), null, 2));
|
|
28175
28195
|
return overwrittenProvider;
|
|
28176
28196
|
}
|
|
28177
28197
|
class SeaportLibFactory {
|
|
@@ -45657,7 +45677,7 @@ const flattenProperties = (properties) => {
|
|
|
45657
45677
|
};
|
|
45658
45678
|
|
|
45659
45679
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45660
|
-
const SDK_VERSION = '1.24.0-alpha.
|
|
45680
|
+
const SDK_VERSION = '1.24.0-alpha.3';
|
|
45661
45681
|
const getReferrer = () => {
|
|
45662
45682
|
if (isNode()) {
|
|
45663
45683
|
return '';
|
|
@@ -50852,7 +50872,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50852
50872
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
50853
50873
|
};
|
|
50854
50874
|
|
|
50855
|
-
const SDK_VERSION_MARKER = '1.24.0-alpha.
|
|
50875
|
+
const SDK_VERSION_MARKER = '1.24.0-alpha.3';
|
|
50856
50876
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50857
50877
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50858
50878
|
|
package/dist/orderbook.js
CHANGED
|
@@ -132,7 +132,7 @@ const flattenProperties = (properties) => {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
135
|
-
const SDK_VERSION = '1.24.0-alpha.
|
|
135
|
+
const SDK_VERSION = '1.24.0-alpha.3';
|
|
136
136
|
const getReferrer = () => {
|
|
137
137
|
if (isNode()) {
|
|
138
138
|
return '';
|
|
@@ -1333,8 +1333,20 @@ class Seaport {
|
|
|
1333
1333
|
async fulfillOrder(order, account, extraData) {
|
|
1334
1334
|
const { orderComponents, tips } = this.mapImmutableOrderToSeaportOrderComponents(order);
|
|
1335
1335
|
const seaportLib = this.getSeaportLib(order);
|
|
1336
|
+
try {
|
|
1337
|
+
const signer = await this.provider.getSigner(account);
|
|
1338
|
+
const address = await signer.getAddress();
|
|
1339
|
+
// eslint-disable-next-line no-console
|
|
1340
|
+
console.log(`Fulfiller address: ${address}`);
|
|
1341
|
+
// eslint-disable-next-line no-console
|
|
1342
|
+
console.log(`Provided address: ${account}`);
|
|
1343
|
+
}
|
|
1344
|
+
catch {
|
|
1345
|
+
// no-op - this is for temporary debugging
|
|
1346
|
+
}
|
|
1336
1347
|
const { actions: seaportActions } = await seaportLib.fulfillOrders({
|
|
1337
1348
|
accountAddress: account,
|
|
1349
|
+
recipientAddress: account,
|
|
1338
1350
|
fulfillOrderDetails: [
|
|
1339
1351
|
{
|
|
1340
1352
|
order: {
|
|
@@ -1657,6 +1669,14 @@ function convertToV6Provider(provider) {
|
|
|
1657
1669
|
// provider has access to the address as a signer.
|
|
1658
1670
|
return new JsonRpcSigner(this, address);
|
|
1659
1671
|
};
|
|
1672
|
+
// eslint-disable-next-line no-console
|
|
1673
|
+
console.log('Overwritten provider getSigner method');
|
|
1674
|
+
// eslint-disable-next-line no-console
|
|
1675
|
+
console.log(overwrittenProvider.getSigner);
|
|
1676
|
+
// eslint-disable-next-line no-console
|
|
1677
|
+
console.log('Overwriter provider methods');
|
|
1678
|
+
// eslint-disable-next-line no-console
|
|
1679
|
+
console.log(JSON.stringify(Object.keys(overwrittenProvider), null, 2));
|
|
1660
1680
|
return overwrittenProvider;
|
|
1661
1681
|
}
|
|
1662
1682
|
class SeaportLibFactory {
|
package/dist/passport.js
CHANGED
|
@@ -11446,7 +11446,7 @@ class MultiRollupApiClients {
|
|
|
11446
11446
|
}
|
|
11447
11447
|
|
|
11448
11448
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11449
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.
|
|
11449
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.3' };
|
|
11450
11450
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
11451
11451
|
if (!basePath.trim()) {
|
|
11452
11452
|
throw Error('basePath can not be empty');
|
|
@@ -11625,7 +11625,7 @@ const flattenProperties = (properties) => {
|
|
|
11625
11625
|
};
|
|
11626
11626
|
|
|
11627
11627
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
11628
|
-
const SDK_VERSION = '1.24.0-alpha.
|
|
11628
|
+
const SDK_VERSION = '1.24.0-alpha.3';
|
|
11629
11629
|
const getReferrer = () => {
|
|
11630
11630
|
if (isNode()) {
|
|
11631
11631
|
return '';
|
|
@@ -11875,7 +11875,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
|
|
|
11875
11875
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
11876
11876
|
class ApiConfiguration extends index$2.Configuration {
|
|
11877
11877
|
}
|
|
11878
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.
|
|
11878
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.3' };
|
|
11879
11879
|
/**
|
|
11880
11880
|
* @dev use createImmutableXConfiguration instead
|
|
11881
11881
|
*/
|
|
@@ -11914,7 +11914,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11914
11914
|
chainID,
|
|
11915
11915
|
coreContractAddress,
|
|
11916
11916
|
registrationContractAddress,
|
|
11917
|
-
sdkVersion: 'ts-immutable-sdk-1.24.0-alpha.
|
|
11917
|
+
sdkVersion: 'ts-immutable-sdk-1.24.0-alpha.3',
|
|
11918
11918
|
baseConfig,
|
|
11919
11919
|
});
|
|
11920
11920
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
package/dist/x.js
CHANGED
|
@@ -8954,7 +8954,7 @@ const flattenProperties = (properties) => {
|
|
|
8954
8954
|
};
|
|
8955
8955
|
|
|
8956
8956
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
8957
|
-
const SDK_VERSION = '1.24.0-alpha.
|
|
8957
|
+
const SDK_VERSION = '1.24.0-alpha.3';
|
|
8958
8958
|
const getReferrer = () => {
|
|
8959
8959
|
if (isNode()) {
|
|
8960
8960
|
return '';
|
|
@@ -9197,7 +9197,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
|
|
|
9197
9197
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
9198
9198
|
class ApiConfiguration extends index$2.Configuration {
|
|
9199
9199
|
}
|
|
9200
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.
|
|
9200
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.24.0-alpha.3' };
|
|
9201
9201
|
/**
|
|
9202
9202
|
* @dev use createImmutableXConfiguration instead
|
|
9203
9203
|
*/
|
|
@@ -9236,7 +9236,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
9236
9236
|
chainID,
|
|
9237
9237
|
coreContractAddress,
|
|
9238
9238
|
registrationContractAddress,
|
|
9239
|
-
sdkVersion: 'ts-immutable-sdk-1.24.0-alpha.
|
|
9239
|
+
sdkVersion: 'ts-immutable-sdk-1.24.0-alpha.3',
|
|
9240
9240
|
baseConfig,
|
|
9241
9241
|
});
|
|
9242
9242
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
package/package.json
CHANGED