@imtbl/sdk 1.57.0 → 1.58.0
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-BtWkKJIA.js → blockchain_data-Tn79t2TG.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-C_PbSgrh.js → AddFundsWidget-CQ8eDnA4.js} +134 -145
- package/dist/browser/checkout/{BridgeWidget-n8xOPTQ2.js → BridgeWidget-BODgt1Sl.js} +8 -8
- package/dist/browser/checkout/{CheckoutWidget-kQ-Im8vB.js → CheckoutWidget-BIu60m93.js} +16 -16
- package/dist/browser/checkout/{EllipsizedText-Ppn9TC1R.js → EllipsizedText-BezxpXlh.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-k6lIF8xc.js → FeesBreakdown-G2U4Al4H.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-8S6KoHhH.js → HandoverContent-D5DaYSVN.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-v4Op5f05.js → OnRampWidget-_RKv23W3.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-CmGSUnEX.js → SaleWidget-Dnxay7PT.js} +13 -13
- package/dist/browser/checkout/{SpendingCapHero-CDj3Iw9j.js → SpendingCapHero-CS1MBdgx.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-DDg7cV7V.js → SwapWidget-uVOkXbBB.js} +8 -8
- package/dist/browser/checkout/{TopUpView-C_ACzI2Q.js → TopUpView-IETrf6SF.js} +2 -2
- package/dist/browser/checkout/{WalletWidget--bOcJPeF.js → WalletWidget-0PhjwOoc.js} +5 -5
- package/dist/browser/checkout/{auto-track-BNEtiRai.js → auto-track-Cxa9AlDh.js} +1 -1
- package/dist/browser/checkout/{balance-3-nAoqgO.js → balance-B1D3omi8.js} +3 -3
- package/dist/browser/checkout/{index-BMKU17nO.js → index-4h8fLbUy.js} +1 -1
- package/dist/browser/checkout/{index-iN9TbfIB.js → index-5i4ytcU4.js} +1 -1
- package/dist/browser/checkout/{index-BD7XwXYb.js → index-BaCEegez.js} +1 -1
- package/dist/browser/checkout/{index-9nmTUuc5.js → index-CxBBl_z8.js} +1 -1
- package/dist/browser/checkout/{index-WUiS3XIP.js → index-D1EnuFx8.js} +2 -2
- package/dist/browser/checkout/{index-ClpwX2z9.js → index-DVt2j3lK.js} +130 -28
- package/dist/browser/checkout/{index-DUWR3KD0.js → index-OynKJ8Cq.js} +1 -1
- package/dist/browser/checkout/{index-D6xurPdk.js → index-TAnDlCww.js} +1 -1
- package/dist/browser/checkout/{index-BZOpAz8z.js → index-aSIb1jOx.js} +1 -1
- package/dist/browser/checkout/{index.umd--iUfBvJV.js → index.umd-ca2LA9_o.js} +1 -1
- package/dist/browser/checkout/{retry-D5EXmyEZ.js → retry-CJesv1Z0.js} +1 -1
- package/dist/browser/checkout/sdk.js +5 -5
- package/dist/browser/checkout/{useInterval-Tf0MmB55.js → useInterval-tTXFxNm-.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +241 -150
- package/dist/{checkout-YSKtCNzS.js → checkout-DN5Kz6FE.js} +7 -8
- package/dist/checkout.d.ts +30 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-lzHVTMnS.js → config-Il8NWBhS.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-B4K4memG.js → index-BmFOXDhV.js} +4 -4
- package/dist/{index-Cl5xYcTa.js → index-BvAP3MCR.js} +1 -1
- package/dist/{index-DCJMvVVX.js → index-CCO9QhXx.js} +1 -1
- package/dist/{index-DCRICFBo.js → index-CPNtDMZA.js} +1 -1
- package/dist/{index-BBLIOOxO.js → index-CnIu4Ekm.js} +1 -1
- package/dist/{index-C2PMWCyz.js → index-PXJvJIbg.js} +3 -3
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +14 -13
- package/dist/index.d.ts +30 -5
- package/dist/index.js +14 -14
- package/dist/{minting_backend-BeyswK6a.js → minting_backend-C6AVNuF-.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-DgElnB3K.js → orderbook-DYF6OPtl.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-zkpBoEch.js → passport-BtDa-0e1.js} +8 -6
- package/dist/passport.d.ts +5 -0
- package/dist/passport.js +4 -4
- package/dist/{webhook-niZzHikY.js → webhook-DtqDevFb.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-CGvwkxPx.js → x-DFHzAdlx.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -218,7 +218,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
221
|
-
const SDK_VERSION$1 = '1.
|
|
221
|
+
const SDK_VERSION$1 = '1.58.0';
|
|
222
222
|
const getFrameParentDomain$1 = () => {
|
|
223
223
|
if (isNode$1()) {
|
|
224
224
|
return '';
|
|
@@ -14192,7 +14192,7 @@ class MultiRollupApiClients {
|
|
|
14192
14192
|
}
|
|
14193
14193
|
|
|
14194
14194
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14195
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
14195
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.58.0' };
|
|
14196
14196
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
14197
14197
|
if (!basePath.trim()) {
|
|
14198
14198
|
throw Error('basePath can not be empty');
|
|
@@ -14264,7 +14264,7 @@ class APIError extends Error {
|
|
|
14264
14264
|
|
|
14265
14265
|
/* eslint-disable implicit-arrow-linebreak */
|
|
14266
14266
|
const defaultHeaders$1 = {
|
|
14267
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
14267
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.58.0',
|
|
14268
14268
|
};
|
|
14269
14269
|
/**
|
|
14270
14270
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14754,7 +14754,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14754
14754
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14755
14755
|
class ApiConfiguration extends index$2.Configuration {
|
|
14756
14756
|
}
|
|
14757
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
14757
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.58.0' };
|
|
14758
14758
|
/**
|
|
14759
14759
|
* @dev use createImmutableXConfiguration instead
|
|
14760
14760
|
*/
|
|
@@ -14795,7 +14795,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14795
14795
|
coreContractAddress,
|
|
14796
14796
|
registrationContractAddress,
|
|
14797
14797
|
registrationV4ContractAddress,
|
|
14798
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
14798
|
+
sdkVersion: 'ts-immutable-sdk-1.58.0',
|
|
14799
14799
|
baseConfig,
|
|
14800
14800
|
});
|
|
14801
14801
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -25150,9 +25150,10 @@ class PassportConfiguration {
|
|
|
25150
25150
|
relayerUrl;
|
|
25151
25151
|
multiRollupConfig;
|
|
25152
25152
|
crossSdkBridgeEnabled;
|
|
25153
|
+
jsonRpcReferrer;
|
|
25153
25154
|
forceScwDeployBeforeMessageSignature;
|
|
25154
25155
|
popupOverlayOptions;
|
|
25155
|
-
constructor({ baseConfig, overrides, crossSdkBridgeEnabled, forceScwDeployBeforeMessageSignature, popupOverlayOptions, ...oidcConfiguration }) {
|
|
25156
|
+
constructor({ baseConfig, overrides, crossSdkBridgeEnabled, jsonRpcReferrer, forceScwDeployBeforeMessageSignature, popupOverlayOptions, ...oidcConfiguration }) {
|
|
25156
25157
|
validateConfiguration(oidcConfiguration, [
|
|
25157
25158
|
'clientId',
|
|
25158
25159
|
'redirectUri',
|
|
@@ -25160,6 +25161,7 @@ class PassportConfiguration {
|
|
|
25160
25161
|
this.oidcConfiguration = oidcConfiguration;
|
|
25161
25162
|
this.baseConfig = baseConfig;
|
|
25162
25163
|
this.crossSdkBridgeEnabled = crossSdkBridgeEnabled || false;
|
|
25164
|
+
this.jsonRpcReferrer = jsonRpcReferrer || '';
|
|
25163
25165
|
this.forceScwDeployBeforeMessageSignature = forceScwDeployBeforeMessageSignature || false;
|
|
25164
25166
|
this.popupOverlayOptions = popupOverlayOptions || {
|
|
25165
25167
|
disableGenericPopupOverlay: false,
|
|
@@ -26476,12 +26478,12 @@ class ZkEvmProvider {
|
|
|
26476
26478
|
this.#config = config;
|
|
26477
26479
|
this.#guardianClient = guardianClient;
|
|
26478
26480
|
this.#passportEventEmitter = passportEventEmitter;
|
|
26479
|
-
if (config.
|
|
26481
|
+
if (config.jsonRpcReferrer) {
|
|
26480
26482
|
// StaticJsonRpcProvider by default sets the referrer as "client".
|
|
26481
26483
|
// On Unreal 4 this errors as the browser used is expecting a valid URL.
|
|
26482
26484
|
this.#rpcProvider = new providers.StaticJsonRpcProvider({
|
|
26483
26485
|
url: this.#config.zkEvmRpcUrl,
|
|
26484
|
-
fetchOptions: { referrer:
|
|
26486
|
+
fetchOptions: { referrer: config.jsonRpcReferrer },
|
|
26485
26487
|
});
|
|
26486
26488
|
}
|
|
26487
26489
|
else {
|
|
@@ -49443,7 +49445,7 @@ const flattenProperties = (properties) => {
|
|
|
49443
49445
|
};
|
|
49444
49446
|
|
|
49445
49447
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
49446
|
-
const SDK_VERSION = '1.
|
|
49448
|
+
const SDK_VERSION = '1.58.0';
|
|
49447
49449
|
const getFrameParentDomain = () => {
|
|
49448
49450
|
if (isNode()) {
|
|
49449
49451
|
return '';
|
|
@@ -53867,9 +53869,8 @@ var AddFundsEventType;
|
|
|
53867
53869
|
AddFundsEventType["CLOSE_WIDGET"] = "close-widget";
|
|
53868
53870
|
AddFundsEventType["LANGUAGE_CHANGED"] = "language-changed";
|
|
53869
53871
|
AddFundsEventType["CONNECT_SUCCESS"] = "connect-success";
|
|
53870
|
-
AddFundsEventType["
|
|
53871
|
-
AddFundsEventType["
|
|
53872
|
-
AddFundsEventType["REQUEST_SWAP"] = "request-swap";
|
|
53872
|
+
AddFundsEventType["SUCCESS"] = "success";
|
|
53873
|
+
AddFundsEventType["FAILURE"] = "failure";
|
|
53873
53874
|
})(AddFundsEventType || (AddFundsEventType = {}));
|
|
53874
53875
|
|
|
53875
53876
|
/**
|
|
@@ -54552,7 +54553,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
54552
54553
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
54553
54554
|
};
|
|
54554
54555
|
|
|
54555
|
-
const SDK_VERSION_MARKER = '1.
|
|
54556
|
+
const SDK_VERSION_MARKER = '1.58.0';
|
|
54556
54557
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
54557
54558
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
54558
54559
|
|
package/dist/index.d.ts
CHANGED
|
@@ -21286,6 +21286,11 @@ interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverri
|
|
|
21286
21286
|
* and not directly on the web.
|
|
21287
21287
|
*/
|
|
21288
21288
|
crossSdkBridgeEnabled?: boolean;
|
|
21289
|
+
/**
|
|
21290
|
+
* Optional referrer URL to be sent with JSON-RPC requests.
|
|
21291
|
+
* If specified, this value will be passed as the referrer in fetch options.
|
|
21292
|
+
*/
|
|
21293
|
+
jsonRpcReferrer?: string;
|
|
21289
21294
|
/**
|
|
21290
21295
|
* Options for disabling the Passport popup overlays.
|
|
21291
21296
|
*/
|
|
@@ -24346,6 +24351,8 @@ type RemoteConfiguration = {
|
|
|
24346
24351
|
onramp: OnRampConfig;
|
|
24347
24352
|
/** The config used for the Bridge. */
|
|
24348
24353
|
bridge: BridgeConfig;
|
|
24354
|
+
/** The config used for Add Funds */
|
|
24355
|
+
addfunds: AddFundsConfig;
|
|
24349
24356
|
/** An array representing the allowed networks. */
|
|
24350
24357
|
allowedNetworks: AllowedNetworkConfig[];
|
|
24351
24358
|
/** The config for the tokens used to estimate gas. */
|
|
@@ -24359,6 +24366,14 @@ type RemoteConfiguration = {
|
|
|
24359
24366
|
/** The checkout version info. */
|
|
24360
24367
|
checkoutWidgetsVersion: CheckoutWidgetsVersionConfig;
|
|
24361
24368
|
};
|
|
24369
|
+
/**
|
|
24370
|
+
* A type representing the configuration for the Add Funds.
|
|
24371
|
+
* @property {TokenInfo[] | undefined} tokens
|
|
24372
|
+
*/
|
|
24373
|
+
type AddFundsConfig = {
|
|
24374
|
+
/** A boolean value for enabling/disabling Add Funds */
|
|
24375
|
+
enabled: boolean;
|
|
24376
|
+
};
|
|
24362
24377
|
/**
|
|
24363
24378
|
* A type representing the fee structure for an OnRamp provider
|
|
24364
24379
|
* @property {string | undefined} minPercentage
|
|
@@ -25551,12 +25566,19 @@ type RequestOnrampEvent = {
|
|
|
25551
25566
|
/**
|
|
25552
25567
|
* Represents the add funds event object when the add funds widget is requested.
|
|
25553
25568
|
*/
|
|
25554
|
-
type RequestAddFundsEvent = {
|
|
25569
|
+
type RequestAddFundsEvent = {
|
|
25570
|
+
/** Token address of the fund to be added */
|
|
25571
|
+
toTokenAddress?: string;
|
|
25572
|
+
/** Amount of the fund to be added */
|
|
25573
|
+
toAmount?: string;
|
|
25574
|
+
/** Whether to show a back button on the first screen, on click triggers REQUEST_GO_BACK event */
|
|
25575
|
+
showBackButton?: boolean;
|
|
25576
|
+
};
|
|
25555
25577
|
/**
|
|
25556
25578
|
* Represents the object provide after go back event is requested
|
|
25557
25579
|
*/
|
|
25558
25580
|
type RequestGoBackEvent = {};
|
|
25559
|
-
type OrchestrationEventData = RequestConnectEvent | RequestWalletEvent | RequestSwapEvent | RequestBridgeEvent | RequestOnrampEvent | RequestGoBackEvent;
|
|
25581
|
+
type OrchestrationEventData = RequestConnectEvent | RequestWalletEvent | RequestSwapEvent | RequestBridgeEvent | RequestOnrampEvent | RequestGoBackEvent | RequestAddFundsEvent;
|
|
25560
25582
|
|
|
25561
25583
|
/**
|
|
25562
25584
|
* Enum of possible OnRamp Widget event types.
|
|
@@ -25594,9 +25616,8 @@ declare enum AddFundsEventType {
|
|
|
25594
25616
|
CLOSE_WIDGET = "close-widget",
|
|
25595
25617
|
LANGUAGE_CHANGED = "language-changed",
|
|
25596
25618
|
CONNECT_SUCCESS = "connect-success",
|
|
25597
|
-
|
|
25598
|
-
|
|
25599
|
-
REQUEST_SWAP = "request-swap"
|
|
25619
|
+
SUCCESS = "success",
|
|
25620
|
+
FAILURE = "failure"
|
|
25600
25621
|
}
|
|
25601
25622
|
/**
|
|
25602
25623
|
* Represents a successful add funds transaction.
|
|
@@ -25770,6 +25791,8 @@ type AddFundsWidgetParams = {
|
|
|
25770
25791
|
toAmount?: string;
|
|
25771
25792
|
/** Whether to show a back button on the first screen, on click triggers REQUEST_GO_BACK event */
|
|
25772
25793
|
showBackButton?: boolean;
|
|
25794
|
+
/** The destination wallet provider, when requiring to lock destination of funds */
|
|
25795
|
+
toProvider?: Web3Provider;
|
|
25773
25796
|
};
|
|
25774
25797
|
|
|
25775
25798
|
declare enum ConnectTargetLayer {
|
|
@@ -26075,6 +26098,8 @@ type WidgetEventData = {
|
|
|
26075
26098
|
[WidgetType.ADD_FUNDS]: {
|
|
26076
26099
|
[AddFundsEventType.CLOSE_WIDGET]: {};
|
|
26077
26100
|
[AddFundsEventType.CONNECT_SUCCESS]: AddFundsConnectSuccess;
|
|
26101
|
+
[AddFundsEventType.SUCCESS]: AddFundsSuccess;
|
|
26102
|
+
[AddFundsEventType.FAILURE]: AddFundsFailed;
|
|
26078
26103
|
} & OrchestrationMapping & ProviderEventMapping;
|
|
26079
26104
|
};
|
|
26080
26105
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { c as config } from './config-
|
|
2
|
-
export { b as blockchainData } from './blockchain_data-
|
|
3
|
-
export { p as passport } from './passport-
|
|
4
|
-
export { o as orderbook } from './orderbook-
|
|
5
|
-
export { c as checkout } from './checkout-
|
|
6
|
-
export { x } from './x-
|
|
7
|
-
export { w as webhook } from './webhook-
|
|
8
|
-
export { m as mintingBackend } from './minting_backend-
|
|
9
|
-
import './index-
|
|
1
|
+
export { c as config } from './config-Il8NWBhS.js';
|
|
2
|
+
export { b as blockchainData } from './blockchain_data-Tn79t2TG.js';
|
|
3
|
+
export { p as passport } from './passport-BtDa-0e1.js';
|
|
4
|
+
export { o as orderbook } from './orderbook-DYF6OPtl.js';
|
|
5
|
+
export { c as checkout } from './checkout-DN5Kz6FE.js';
|
|
6
|
+
export { x } from './x-DFHzAdlx.js';
|
|
7
|
+
export { w as webhook } from './webhook-DtqDevFb.js';
|
|
8
|
+
export { m as mintingBackend } from './minting_backend-C6AVNuF-.js';
|
|
9
|
+
import './index-CCO9QhXx.js';
|
|
10
10
|
import 'axios';
|
|
11
11
|
import 'lru-memorise';
|
|
12
12
|
import 'global-const';
|
|
13
|
-
import './index-
|
|
14
|
-
import './index-
|
|
15
|
-
import './index-
|
|
13
|
+
import './index-PXJvJIbg.js';
|
|
14
|
+
import './index-BvAP3MCR.js';
|
|
15
|
+
import './index-BmFOXDhV.js';
|
|
16
16
|
import '@ethersproject/keccak256';
|
|
17
17
|
import '@ethersproject/strings';
|
|
18
18
|
import 'bn.js';
|
|
@@ -35,7 +35,7 @@ import 'events';
|
|
|
35
35
|
import '@0xsequence/abi';
|
|
36
36
|
import '@0xsequence/core';
|
|
37
37
|
import 'uuid';
|
|
38
|
-
import './index-
|
|
38
|
+
import './index-CPNtDMZA.js';
|
|
39
39
|
import 'form-data';
|
|
40
40
|
import '@opensea/seaport-js/lib/constants';
|
|
41
41
|
import 'ethers-v6';
|
|
@@ -49,5 +49,5 @@ import '@metamask/detect-provider';
|
|
|
49
49
|
import 'semver';
|
|
50
50
|
import '@ethersproject/units';
|
|
51
51
|
import '@ethersproject/bignumber';
|
|
52
|
-
import './index-
|
|
52
|
+
import './index-CnIu4Ekm.js';
|
|
53
53
|
import 'sns-validator';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BlockchainData } from './index-
|
|
2
|
-
import { h as handle } from './index-
|
|
3
|
-
import { t as track, e as setEnvironment, f as setPublishableApiKey } from './index-
|
|
1
|
+
import { B as BlockchainData } from './index-PXJvJIbg.js';
|
|
2
|
+
import { h as handle } from './index-CnIu4Ekm.js';
|
|
3
|
+
import { t as track, e as setEnvironment, f as setPublishableApiKey } from './index-CCO9QhXx.js';
|
|
4
4
|
|
|
5
5
|
const moduleName = 'minting_backend_sdk';
|
|
6
6
|
const trackInitializePersistencePG = () => {
|
package/dist/minting_backend.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { M as MintingBackendModule, a as mintingPersistencePg, b as mintingPersistencePrismaSqlite, p as processMint, r as recordMint, s as submitMintingRequests } from './minting_backend-
|
|
2
|
-
import './index-
|
|
3
|
-
import './index-
|
|
1
|
+
export { M as MintingBackendModule, a as mintingPersistencePg, b as mintingPersistencePrismaSqlite, p as processMint, r as recordMint, s as submitMintingRequests } from './minting_backend-C6AVNuF-.js';
|
|
2
|
+
import './index-PXJvJIbg.js';
|
|
3
|
+
import './index-BvAP3MCR.js';
|
|
4
4
|
import 'axios';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-CCO9QhXx.js';
|
|
6
6
|
import 'lru-memorise';
|
|
7
7
|
import 'global-const';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CnIu4Ekm.js';
|
|
9
9
|
import 'sns-validator';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-
|
|
1
|
+
import { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-CPNtDMZA.js';
|
|
2
2
|
|
|
3
3
|
var orderbook = /*#__PURE__*/Object.freeze({
|
|
4
4
|
__proto__: null,
|
package/dist/orderbook.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-
|
|
2
|
-
import './index-
|
|
1
|
+
export { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-CPNtDMZA.js';
|
|
2
|
+
import './index-CCO9QhXx.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import 'lru-memorise';
|
|
5
5
|
import 'global-const';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import globalAxios, { isAxiosError } from 'axios';
|
|
2
|
-
import { M as MultiRollupApiClients, c as createConfig, m as multiRollupConfig, a as index$1, I as ImxApiClients, b as imxApiConfig } from './index-
|
|
3
|
-
import { I as IMXClient, s as signRaw, c as convertToSignableToken, g as generateLegacyStarkPrivateKey, a as createStarkSigner } from './index-
|
|
4
|
-
import { s as setPassportClientId, t as track, b as trackFlow, c as trackError, u as utils, i as identify, g as getDetail, D as Detail, d as trackDuration, E as Environment } from './index-
|
|
2
|
+
import { M as MultiRollupApiClients, c as createConfig, m as multiRollupConfig, a as index$1, I as ImxApiClients, b as imxApiConfig } from './index-BvAP3MCR.js';
|
|
3
|
+
import { I as IMXClient, s as signRaw, c as convertToSignableToken, g as generateLegacyStarkPrivateKey, a as createStarkSigner } from './index-BmFOXDhV.js';
|
|
4
|
+
import { s as setPassportClientId, t as track, b as trackFlow, c as trackError, u as utils, i as identify, g as getDetail, D as Detail, d as trackDuration, E as Environment } from './index-CCO9QhXx.js';
|
|
5
5
|
import { UserManager, User, ErrorTimeout, ErrorResponse, InMemoryWebStorage, WebStorageStateStore } from 'oidc-client-ts';
|
|
6
6
|
import * as crypto from 'crypto';
|
|
7
7
|
import jwt_decode from 'jwt-decode';
|
|
@@ -1750,9 +1750,10 @@ class PassportConfiguration {
|
|
|
1750
1750
|
relayerUrl;
|
|
1751
1751
|
multiRollupConfig;
|
|
1752
1752
|
crossSdkBridgeEnabled;
|
|
1753
|
+
jsonRpcReferrer;
|
|
1753
1754
|
forceScwDeployBeforeMessageSignature;
|
|
1754
1755
|
popupOverlayOptions;
|
|
1755
|
-
constructor({ baseConfig, overrides, crossSdkBridgeEnabled, forceScwDeployBeforeMessageSignature, popupOverlayOptions, ...oidcConfiguration }) {
|
|
1756
|
+
constructor({ baseConfig, overrides, crossSdkBridgeEnabled, jsonRpcReferrer, forceScwDeployBeforeMessageSignature, popupOverlayOptions, ...oidcConfiguration }) {
|
|
1756
1757
|
validateConfiguration(oidcConfiguration, [
|
|
1757
1758
|
'clientId',
|
|
1758
1759
|
'redirectUri',
|
|
@@ -1760,6 +1761,7 @@ class PassportConfiguration {
|
|
|
1760
1761
|
this.oidcConfiguration = oidcConfiguration;
|
|
1761
1762
|
this.baseConfig = baseConfig;
|
|
1762
1763
|
this.crossSdkBridgeEnabled = crossSdkBridgeEnabled || false;
|
|
1764
|
+
this.jsonRpcReferrer = jsonRpcReferrer || '';
|
|
1763
1765
|
this.forceScwDeployBeforeMessageSignature = forceScwDeployBeforeMessageSignature || false;
|
|
1764
1766
|
this.popupOverlayOptions = popupOverlayOptions || {
|
|
1765
1767
|
disableGenericPopupOverlay: false,
|
|
@@ -3076,12 +3078,12 @@ class ZkEvmProvider {
|
|
|
3076
3078
|
this.#config = config;
|
|
3077
3079
|
this.#guardianClient = guardianClient;
|
|
3078
3080
|
this.#passportEventEmitter = passportEventEmitter;
|
|
3079
|
-
if (config.
|
|
3081
|
+
if (config.jsonRpcReferrer) {
|
|
3080
3082
|
// StaticJsonRpcProvider by default sets the referrer as "client".
|
|
3081
3083
|
// On Unreal 4 this errors as the browser used is expecting a valid URL.
|
|
3082
3084
|
this.#rpcProvider = new StaticJsonRpcProvider({
|
|
3083
3085
|
url: this.#config.zkEvmRpcUrl,
|
|
3084
|
-
fetchOptions: { referrer:
|
|
3086
|
+
fetchOptions: { referrer: config.jsonRpcReferrer },
|
|
3085
3087
|
});
|
|
3086
3088
|
}
|
|
3087
3089
|
else {
|
package/dist/passport.d.ts
CHANGED
|
@@ -11106,6 +11106,11 @@ interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverri
|
|
|
11106
11106
|
* and not directly on the web.
|
|
11107
11107
|
*/
|
|
11108
11108
|
crossSdkBridgeEnabled?: boolean;
|
|
11109
|
+
/**
|
|
11110
|
+
* Optional referrer URL to be sent with JSON-RPC requests.
|
|
11111
|
+
* If specified, this value will be passed as the referrer in fetch options.
|
|
11112
|
+
*/
|
|
11113
|
+
jsonRpcReferrer?: string;
|
|
11109
11114
|
/**
|
|
11110
11115
|
* Options for disabling the Passport popup overlays.
|
|
11111
11116
|
*/
|
package/dist/passport.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { J as JsonRpcError, P as Passport, a as PassportError, b as ProviderErrorCode, c as ProviderEvent, R as RpcErrorCode } from './passport-
|
|
1
|
+
export { J as JsonRpcError, P as Passport, a as PassportError, b as ProviderErrorCode, c as ProviderEvent, R as RpcErrorCode } from './passport-BtDa-0e1.js';
|
|
2
2
|
import 'axios';
|
|
3
|
-
import './index-
|
|
4
|
-
import './index-
|
|
5
|
-
import './index-
|
|
3
|
+
import './index-BvAP3MCR.js';
|
|
4
|
+
import './index-BmFOXDhV.js';
|
|
5
|
+
import './index-CCO9QhXx.js';
|
|
6
6
|
import 'lru-memorise';
|
|
7
7
|
import 'global-const';
|
|
8
8
|
import '@ethersproject/keccak256';
|
package/dist/webhook.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as ImxConfiguration, c as convertToSignableToken, s as signRaw, e as exportContracts, d as signMessage, E as EncodingApi, M as MintsApi, f as signRegisterEthAddress, A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, D as DepositsApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, v as production, w as sandbox, x as serializePackedSignature, y as starkEcOrder } from './index-
|
|
2
|
-
import { d as index$2 } from './index-
|
|
1
|
+
import { b as ImxConfiguration, c as convertToSignableToken, s as signRaw, e as exportContracts, d as signMessage, E as EncodingApi, M as MintsApi, f as signRegisterEthAddress, A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, D as DepositsApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, v as production, w as sandbox, x as serializePackedSignature, y as starkEcOrder } from './index-BmFOXDhV.js';
|
|
2
|
+
import { d as index$2 } from './index-BvAP3MCR.js';
|
|
3
3
|
import { isAxiosError } from 'axios';
|
|
4
4
|
import * as encUtils from 'enc-utils';
|
|
5
5
|
import { parseUnits } from '@ethersproject/units';
|
|
6
6
|
import { BigNumber } from '@ethersproject/bignumber';
|
|
7
7
|
import { ethers } from 'ethers';
|
|
8
8
|
import detectEthereumProvider from '@metamask/detect-provider';
|
|
9
|
-
import { E as Environment, I as ImmutableConfiguration } from './index-
|
|
9
|
+
import { E as Environment, I as ImmutableConfiguration } from './index-CCO9QhXx.js';
|
|
10
10
|
import { Signer } from '@ethersproject/abstract-signer';
|
|
11
11
|
|
|
12
12
|
function isChainValid(chainID, config) {
|
package/dist/x.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, e as Contracts, D as DepositsApi, E as EncodingApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, b as ImxConfiguration, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, M as MintsApi, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, a as imxClientCreateStarkSigner, g as imxClientGenerateLegacyStarkPrivateKey, v as production, w as sandbox, x as serializePackedSignature, f as signRegisterEthAddress, y as starkEcOrder } from './index-
|
|
2
|
-
export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-
|
|
3
|
-
export { E as Environment, I as ImmutableConfiguration } from './index-
|
|
1
|
+
export { A as ApiConfiguration, h as AssetsApi, B as BalancesApi, C as CollectionsApi, e as Contracts, D as DepositsApi, E as EncodingApi, i as ExchangesApi, I as IMXClient, j as IMXError, k as ImmutableX, b as ImxConfiguration, l as MetadataApi, m as MetadataRefreshesApi, n as MetadataSchemaRequestTypeEnum, M as MintsApi, N as NftCheckoutPrimaryApi, O as OrdersApi, P as ProjectsApi, T as TokensApi, o as TradesApi, p as TransfersApi, U as UsersApi, W as WithdrawalsApi, q as createConfig, r as createImmutableXConfiguration, a as createStarkSigner, g as generateLegacyStarkPrivateKey, t as generateStarkPrivateKey, u as imxClientConfig, a as imxClientCreateStarkSigner, g as imxClientGenerateLegacyStarkPrivateKey, v as production, w as sandbox, x as serializePackedSignature, f as signRegisterEthAddress, y as starkEcOrder } from './index-BmFOXDhV.js';
|
|
2
|
+
export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-DFHzAdlx.js';
|
|
3
|
+
export { E as Environment, I as ImmutableConfiguration } from './index-CCO9QhXx.js';
|
|
4
4
|
export { Signer as EthSigner } from '@ethersproject/abstract-signer';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-BvAP3MCR.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '@ethersproject/keccak256';
|
|
8
8
|
import '@ethersproject/strings';
|
package/package.json
CHANGED