@imtbl/sdk 1.24.0-alpha.4 → 1.24.0-alpha.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 +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.js +12 -12
- 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 +15 -15
- package/dist/index.js +15 -15
- package/dist/orderbook.js +9 -9
- 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.5';
|
|
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.5';
|
|
17555
17555
|
const getReferrer = () => {
|
|
17556
17556
|
if (isNode()) {
|
|
17557
17557
|
return '';
|
|
@@ -22648,12 +22648,12 @@ function getOrderComponentsFromMessage(orderMessage) {
|
|
|
22648
22648
|
// This can always be overwritten by the user signing the transaction
|
|
22649
22649
|
function prepareTransaction(transactionMethods,
|
|
22650
22650
|
// chainId is required for EIP155
|
|
22651
|
-
chainId) {
|
|
22651
|
+
chainId, callerAddress) {
|
|
22652
22652
|
return async () => {
|
|
22653
22653
|
const v6ContractTransaction = await transactionMethods.buildTransaction();
|
|
22654
22654
|
const v5PopulatedTransaction = {
|
|
22655
22655
|
to: v6ContractTransaction.to,
|
|
22656
|
-
from:
|
|
22656
|
+
from: callerAddress,
|
|
22657
22657
|
type: v6ContractTransaction.type,
|
|
22658
22658
|
maxFeePerGas: v6ContractTransaction.maxFeePerGas
|
|
22659
22659
|
? BigNumber$1.from(v6ContractTransaction.maxFeePerGas)
|
|
@@ -22762,7 +22762,7 @@ class Seaport {
|
|
|
22762
22762
|
listingActions.push({
|
|
22763
22763
|
type: ActionType.TRANSACTION,
|
|
22764
22764
|
purpose: TransactionPurpose.APPROVAL,
|
|
22765
|
-
buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId),
|
|
22765
|
+
buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId, offerer),
|
|
22766
22766
|
});
|
|
22767
22767
|
}
|
|
22768
22768
|
const createAction = seaportActions.find((action) => action.type === 'create');
|
|
@@ -22812,7 +22812,7 @@ class Seaport {
|
|
|
22812
22812
|
if (approvalAction) {
|
|
22813
22813
|
fulfillmentActions.push({
|
|
22814
22814
|
type: ActionType.TRANSACTION,
|
|
22815
|
-
buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId),
|
|
22815
|
+
buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId, account),
|
|
22816
22816
|
purpose: TransactionPurpose.APPROVAL,
|
|
22817
22817
|
});
|
|
22818
22818
|
}
|
|
@@ -22822,7 +22822,7 @@ class Seaport {
|
|
|
22822
22822
|
}
|
|
22823
22823
|
fulfillmentActions.push({
|
|
22824
22824
|
type: ActionType.TRANSACTION,
|
|
22825
|
-
buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods, (await this.provider.getNetwork()).chainId),
|
|
22825
|
+
buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods, (await this.provider.getNetwork()).chainId, account),
|
|
22826
22826
|
purpose: TransactionPurpose.FULFILL_ORDER,
|
|
22827
22827
|
});
|
|
22828
22828
|
return {
|
|
@@ -22852,7 +22852,7 @@ class Seaport {
|
|
|
22852
22852
|
if (approvalAction) {
|
|
22853
22853
|
fulfillmentActions.push({
|
|
22854
22854
|
type: ActionType.TRANSACTION,
|
|
22855
|
-
buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId),
|
|
22855
|
+
buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId, account),
|
|
22856
22856
|
purpose: TransactionPurpose.APPROVAL,
|
|
22857
22857
|
});
|
|
22858
22858
|
}
|
|
@@ -22862,7 +22862,7 @@ class Seaport {
|
|
|
22862
22862
|
}
|
|
22863
22863
|
fulfillmentActions.push({
|
|
22864
22864
|
type: ActionType.TRANSACTION,
|
|
22865
|
-
buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods, (await this.provider.getNetwork()).chainId),
|
|
22865
|
+
buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods, (await this.provider.getNetwork()).chainId, account),
|
|
22866
22866
|
purpose: TransactionPurpose.FULFILL_ORDER,
|
|
22867
22867
|
});
|
|
22868
22868
|
return {
|
|
@@ -22879,7 +22879,7 @@ class Seaport {
|
|
|
22879
22879
|
const cancellationTransaction = await seaportLib.cancelOrders(orderComponents, account);
|
|
22880
22880
|
return {
|
|
22881
22881
|
type: ActionType.TRANSACTION,
|
|
22882
|
-
buildTransaction: prepareTransaction(cancellationTransaction, (await this.provider.getNetwork()).chainId),
|
|
22882
|
+
buildTransaction: prepareTransaction(cancellationTransaction, (await this.provider.getNetwork()).chainId, account),
|
|
22883
22883
|
purpose: TransactionPurpose.CANCEL,
|
|
22884
22884
|
};
|
|
22885
22885
|
}
|
|
@@ -28273,7 +28273,7 @@ class APIError extends Error {
|
|
|
28273
28273
|
|
|
28274
28274
|
/* eslint-disable implicit-arrow-linebreak */
|
|
28275
28275
|
const defaultHeaders = {
|
|
28276
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.24.0-alpha.
|
|
28276
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.24.0-alpha.5',
|
|
28277
28277
|
};
|
|
28278
28278
|
/**
|
|
28279
28279
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -29704,7 +29704,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
29704
29704
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
29705
29705
|
};
|
|
29706
29706
|
|
|
29707
|
-
const SDK_VERSION_MARKER = '1.24.0-alpha.
|
|
29707
|
+
const SDK_VERSION_MARKER = '1.24.0-alpha.5';
|
|
29708
29708
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
29709
29709
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
29710
29710
|
|
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.5';
|
|
132
132
|
const getReferrer = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|