@imtbl/sdk 1.24.0-alpha.1 → 1.24.0-alpha.2
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 +21 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +25 -25
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +24 -7
- package/dist/index.js +24 -7
- package/dist/orderbook.js +18 -1
- package/dist/passport.js +4 -4
- package/dist/x.js +3 -3
- package/package.json +1 -1
package/dist/checkout.js
CHANGED
|
@@ -140,7 +140,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
143
|
-
const SDK_VERSION$1 = '1.24.0-alpha.
|
|
143
|
+
const SDK_VERSION$1 = '1.24.0-alpha.2';
|
|
144
144
|
const getReferrer$1 = () => {
|
|
145
145
|
if (isNode$1()) {
|
|
146
146
|
return '';
|
|
@@ -17551,7 +17551,7 @@ const flattenProperties = (properties) => {
|
|
|
17551
17551
|
};
|
|
17552
17552
|
|
|
17553
17553
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
17554
|
-
const SDK_VERSION = '1.24.0-alpha.
|
|
17554
|
+
const SDK_VERSION = '1.24.0-alpha.2';
|
|
17555
17555
|
const getReferrer = () => {
|
|
17556
17556
|
if (isNode()) {
|
|
17557
17557
|
return '';
|
|
@@ -22787,6 +22787,15 @@ class Seaport {
|
|
|
22787
22787
|
async fulfillOrder(order, account, extraData) {
|
|
22788
22788
|
const { orderComponents, tips } = this.mapImmutableOrderToSeaportOrderComponents(order);
|
|
22789
22789
|
const seaportLib = this.getSeaportLib(order);
|
|
22790
|
+
try {
|
|
22791
|
+
const signer = await this.provider.getSigner(account);
|
|
22792
|
+
const address = await signer.getAddress();
|
|
22793
|
+
// eslint-disable-next-line no-console
|
|
22794
|
+
console.log(`Fulfiller address: ${address}`);
|
|
22795
|
+
}
|
|
22796
|
+
catch {
|
|
22797
|
+
// no-op - this is for temporary debugging
|
|
22798
|
+
}
|
|
22790
22799
|
const { actions: seaportActions } = await seaportLib.fulfillOrders({
|
|
22791
22800
|
accountAddress: account,
|
|
22792
22801
|
fulfillOrderDetails: [
|
|
@@ -23091,6 +23100,14 @@ function getOrderbookConfig(environment) {
|
|
|
23091
23100
|
// safely instantiate a V6 provider for the V5 provider URL.
|
|
23092
23101
|
function convertToV6Provider(provider) {
|
|
23093
23102
|
const overwrittenProvider = new JsonRpcProvider(provider.connection.url);
|
|
23103
|
+
// eslint-disable-next-line no-console
|
|
23104
|
+
console.log('Overwritten provider getSigner method');
|
|
23105
|
+
// eslint-disable-next-line no-console
|
|
23106
|
+
console.log(overwrittenProvider.getSigner);
|
|
23107
|
+
// eslint-disable-next-line no-console
|
|
23108
|
+
console.log('Overwriter provider methods');
|
|
23109
|
+
// eslint-disable-next-line no-console
|
|
23110
|
+
console.log(JSON.stringify(Object.keys(overwrittenProvider), null, 2));
|
|
23094
23111
|
// Need to override the getSigner method to mimic V5 behaviour
|
|
23095
23112
|
overwrittenProvider.getSigner = async function getSigner(address) {
|
|
23096
23113
|
if (address == null) {
|
|
@@ -28258,7 +28275,7 @@ class APIError extends Error {
|
|
|
28258
28275
|
|
|
28259
28276
|
/* eslint-disable implicit-arrow-linebreak */
|
|
28260
28277
|
const defaultHeaders = {
|
|
28261
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.24.0-alpha.
|
|
28278
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.24.0-alpha.2',
|
|
28262
28279
|
};
|
|
28263
28280
|
/**
|
|
28264
28281
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -29689,7 +29706,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
29689
29706
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
29690
29707
|
};
|
|
29691
29708
|
|
|
29692
|
-
const SDK_VERSION_MARKER = '1.24.0-alpha.
|
|
29709
|
+
const SDK_VERSION_MARKER = '1.24.0-alpha.2';
|
|
29693
29710
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
29694
29711
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
29695
29712
|
|
package/dist/config.js
CHANGED
|
@@ -128,7 +128,7 @@ const flattenProperties = (properties) => {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
131
|
-
const SDK_VERSION = '1.24.0-alpha.
|
|
131
|
+
const SDK_VERSION = '1.24.0-alpha.2';
|
|
132
132
|
const getReferrer = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|