@imtbl/sdk 1.40.0-alpha.1 → 1.40.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 +4 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +102 -13
- package/dist/index.d.ts +415 -60
- package/dist/index.js +102 -13
- package/dist/minting_backend.d.ts +86 -85
- package/dist/minting_backend.js +97 -8
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +4 -4
- package/dist/webhook.d.ts +1252 -5
- package/dist/webhook.js +91 -1
- package/dist/x.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -185,7 +185,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
188
|
-
const SDK_VERSION$1 = '1.40.0-alpha.
|
|
188
|
+
const SDK_VERSION$1 = '1.40.0-alpha.2';
|
|
189
189
|
const getFrameParentDomain$1 = () => {
|
|
190
190
|
if (isNode$1()) {
|
|
191
191
|
return '';
|
|
@@ -14212,7 +14212,7 @@ class MultiRollupApiClients {
|
|
|
14212
14212
|
}
|
|
14213
14213
|
|
|
14214
14214
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14215
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.
|
|
14215
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.2' };
|
|
14216
14216
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
14217
14217
|
if (!basePath.trim()) {
|
|
14218
14218
|
throw Error('basePath can not be empty');
|
|
@@ -14284,7 +14284,7 @@ class APIError extends Error {
|
|
|
14284
14284
|
|
|
14285
14285
|
/* eslint-disable implicit-arrow-linebreak */
|
|
14286
14286
|
const defaultHeaders$1 = {
|
|
14287
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.0-alpha.
|
|
14287
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.0-alpha.2',
|
|
14288
14288
|
};
|
|
14289
14289
|
/**
|
|
14290
14290
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14758,7 +14758,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14758
14758
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14759
14759
|
class ApiConfiguration extends index$2.Configuration {
|
|
14760
14760
|
}
|
|
14761
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.
|
|
14761
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.2' };
|
|
14762
14762
|
/**
|
|
14763
14763
|
* @dev use createImmutableXConfiguration instead
|
|
14764
14764
|
*/
|
|
@@ -14799,7 +14799,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14799
14799
|
coreContractAddress,
|
|
14800
14800
|
registrationContractAddress,
|
|
14801
14801
|
registrationV4ContractAddress,
|
|
14802
|
-
sdkVersion: 'ts-immutable-sdk-1.40.0-alpha.
|
|
14802
|
+
sdkVersion: 'ts-immutable-sdk-1.40.0-alpha.2',
|
|
14803
14803
|
baseConfig,
|
|
14804
14804
|
});
|
|
14805
14805
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -60948,7 +60948,7 @@ const flattenProperties = (properties) => {
|
|
|
60948
60948
|
};
|
|
60949
60949
|
|
|
60950
60950
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
60951
|
-
const SDK_VERSION = '1.40.0-alpha.
|
|
60951
|
+
const SDK_VERSION = '1.40.0-alpha.2';
|
|
60952
60952
|
const getFrameParentDomain = () => {
|
|
60953
60953
|
if (isNode()) {
|
|
60954
60954
|
return '';
|
|
@@ -66266,7 +66266,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
66266
66266
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
66267
66267
|
};
|
|
66268
66268
|
|
|
66269
|
-
const SDK_VERSION_MARKER = '1.40.0-alpha.
|
|
66269
|
+
const SDK_VERSION_MARKER = '1.40.0-alpha.2';
|
|
66270
66270
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
66271
66271
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
66272
66272
|
|
|
@@ -72066,6 +72066,96 @@ const handle = async (body, env, handlers) => {
|
|
|
72066
72066
|
await handlers?.zkevmMintRequestUpdated(event);
|
|
72067
72067
|
}
|
|
72068
72068
|
break;
|
|
72069
|
+
case 'imtbl_zkevm_activity_mint':
|
|
72070
|
+
if (handlers?.zkEvmActivityMint) {
|
|
72071
|
+
await handlers?.zkEvmActivityMint(event);
|
|
72072
|
+
}
|
|
72073
|
+
break;
|
|
72074
|
+
case 'imtbl_zkevm_activity_burn':
|
|
72075
|
+
if (handlers?.zkEvmActivityBurn) {
|
|
72076
|
+
await handlers?.zkEvmActivityBurn(event);
|
|
72077
|
+
}
|
|
72078
|
+
break;
|
|
72079
|
+
case 'imtbl_zkevm_activity_transfer':
|
|
72080
|
+
if (handlers?.zkEvmActivityTransfer) {
|
|
72081
|
+
await handlers?.zkEvmActivityTransfer(event);
|
|
72082
|
+
}
|
|
72083
|
+
break;
|
|
72084
|
+
case 'imtbl_zkevm_activity_sale':
|
|
72085
|
+
if (handlers?.zkEvmActivitySale) {
|
|
72086
|
+
await handlers?.zkEvmActivitySale(event);
|
|
72087
|
+
}
|
|
72088
|
+
break;
|
|
72089
|
+
case 'imtbl_zkevm_activity_deposit':
|
|
72090
|
+
if (handlers?.zkEvmActivityDeposit) {
|
|
72091
|
+
await handlers?.zkEvmActivityDeposit(event);
|
|
72092
|
+
}
|
|
72093
|
+
break;
|
|
72094
|
+
case 'imtbl_zkevm_activity_withdrawal':
|
|
72095
|
+
if (handlers?.zkEvmActivityWithdrawal) {
|
|
72096
|
+
await handlers?.zkEvmActivityWithdrawal(event);
|
|
72097
|
+
}
|
|
72098
|
+
break;
|
|
72099
|
+
case 'imtbl_zkevm_collection_updated':
|
|
72100
|
+
if (handlers?.zkEvmCollectionUpdated) {
|
|
72101
|
+
await handlers?.zkEvmCollectionUpdated(event);
|
|
72102
|
+
}
|
|
72103
|
+
break;
|
|
72104
|
+
case 'imtbl_zkevm_nft_updated':
|
|
72105
|
+
if (handlers?.zkEvmNftUpdated) {
|
|
72106
|
+
await handlers?.zkEvmNftUpdated(event);
|
|
72107
|
+
}
|
|
72108
|
+
break;
|
|
72109
|
+
case 'imtbl_zkevm_metadata_updated':
|
|
72110
|
+
if (handlers?.zkEvmMetadataUpdated) {
|
|
72111
|
+
await handlers?.zkEvmMetadataUpdated(event);
|
|
72112
|
+
}
|
|
72113
|
+
break;
|
|
72114
|
+
case 'imtbl_zkevm_token_updated':
|
|
72115
|
+
if (handlers?.zkEvmTokenUpdated) {
|
|
72116
|
+
await handlers?.zkEvmTokenUpdated(event);
|
|
72117
|
+
}
|
|
72118
|
+
break;
|
|
72119
|
+
case 'imtbl_zkevm_order_updated':
|
|
72120
|
+
if (handlers?.zkEvmOrderUpdated) {
|
|
72121
|
+
await handlers?.zkEvmOrderUpdated(event);
|
|
72122
|
+
}
|
|
72123
|
+
break;
|
|
72124
|
+
case 'imtbl_zkevm_trade_created':
|
|
72125
|
+
if (handlers?.zkEvmTradeCreated) {
|
|
72126
|
+
await handlers?.zkEvmTradeCreated(event);
|
|
72127
|
+
}
|
|
72128
|
+
break;
|
|
72129
|
+
case 'imtbl_x_nft_created':
|
|
72130
|
+
if (handlers?.xNftCreated) {
|
|
72131
|
+
await handlers?.xNftCreated(event);
|
|
72132
|
+
}
|
|
72133
|
+
break;
|
|
72134
|
+
case 'imtbl_x_nft_updated':
|
|
72135
|
+
if (handlers?.xNftUpdated) {
|
|
72136
|
+
await handlers?.xNftUpdated(event);
|
|
72137
|
+
}
|
|
72138
|
+
break;
|
|
72139
|
+
case 'imtbl_x_order_accepted':
|
|
72140
|
+
if (handlers?.xOrderAccepted) {
|
|
72141
|
+
await handlers?.xOrderAccepted(event);
|
|
72142
|
+
}
|
|
72143
|
+
break;
|
|
72144
|
+
case 'imtbl_x_order_filled':
|
|
72145
|
+
if (handlers?.xOrderFilled) {
|
|
72146
|
+
await handlers?.xOrderFilled(event);
|
|
72147
|
+
}
|
|
72148
|
+
break;
|
|
72149
|
+
case 'imtbl_x_order_cancelled':
|
|
72150
|
+
if (handlers?.xOrderCancelled) {
|
|
72151
|
+
await handlers?.xOrderCancelled(event);
|
|
72152
|
+
}
|
|
72153
|
+
break;
|
|
72154
|
+
case 'imtbl_x_transfer_created':
|
|
72155
|
+
if (handlers?.xTransferCreated) {
|
|
72156
|
+
await handlers?.xTransferCreated(event);
|
|
72157
|
+
}
|
|
72158
|
+
break;
|
|
72069
72159
|
}
|
|
72070
72160
|
if (handlers?.all) {
|
|
72071
72161
|
await handlers?.all(event);
|
|
@@ -72620,9 +72710,7 @@ const processMint = async (mintingPersistence, event, logger = console) => {
|
|
|
72620
72710
|
|
|
72621
72711
|
const noopHandlers = {
|
|
72622
72712
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
72623
|
-
zkevmMintRequestUpdated: async (event) => { }
|
|
72624
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
72625
|
-
all: async (..._args) => { }
|
|
72713
|
+
zkevmMintRequestUpdated: async (event) => { }
|
|
72626
72714
|
};
|
|
72627
72715
|
class MintingBackendModule {
|
|
72628
72716
|
baseConfig;
|
|
@@ -72651,9 +72739,10 @@ class MintingBackendModule {
|
|
|
72651
72739
|
await handle(body, this.baseConfig.environment, {
|
|
72652
72740
|
zkevmMintRequestUpdated: async (event) => {
|
|
72653
72741
|
await processMint(this.persistence, event, this.logger);
|
|
72654
|
-
otherHandlers.zkevmMintRequestUpdated
|
|
72655
|
-
|
|
72656
|
-
|
|
72742
|
+
if (otherHandlers.zkevmMintRequestUpdated) {
|
|
72743
|
+
otherHandlers.zkevmMintRequestUpdated(event);
|
|
72744
|
+
}
|
|
72745
|
+
}
|
|
72657
72746
|
});
|
|
72658
72747
|
}
|
|
72659
72748
|
}
|