@imtbl/sdk 1.19.1 → 1.19.2-alpha.1
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/{BridgeWidget-0e6dc9fc.js → BridgeWidget-a1459601.js} +1 -1
- package/dist/browser/checkout/{HorizontalMenu-actual-63f9a7ac.js → HorizontalMenu-actual-08754aa6.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-cbf4c534.js → OnRampWidget-52218bd1.js} +1 -1
- package/dist/browser/checkout/{SaleWidget-74bb6163.js → SaleWidget-22fef0b5.js} +1 -1
- package/dist/browser/checkout/{SpendingCapHero-befba273.js → SpendingCapHero-90db2206.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-c6c55d7b.js → SwapWidget-3635434d.js} +1 -1
- package/dist/browser/checkout/{TopUpView-66f76dcd.js → TopUpView-67c26c0e.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-981ce2c4.js → WalletWidget-2ed51013.js} +1 -1
- package/dist/browser/checkout/{auto-track-aba15380.js → auto-track-05a079ed.js} +1 -1
- package/dist/browser/checkout/{balance-49045ab6.js → balance-0ee1be7d.js} +1 -1
- package/dist/browser/checkout/{index-e4d1b3c5.js → index-3f3f2ae3.js} +2 -2
- package/dist/browser/checkout/{index-49846640.js → index-43d8cc45.js} +1 -1
- package/dist/browser/checkout/{index-bad2450e.js → index-56a0f324.js} +1 -1
- package/dist/browser/checkout/{index-8f190120.js → index-5adbc757.js} +1 -1
- package/dist/browser/checkout/{index-69530f08.js → index-6c4db150.js} +1 -1
- package/dist/browser/checkout/{index-f5498873.js → index-b7601a04.js} +1 -1
- package/dist/browser/checkout/index-c652c950.js +1 -0
- package/dist/browser/checkout/{index-9562792d.js → index-db394721.js} +1 -1
- package/dist/browser/checkout/{index.umd-5778dcf0.js → index.umd-6ee30c1b.js} +1 -1
- package/dist/browser/checkout/{retry-f9c64060.js → retry-27ee3083.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +1 -1
- package/dist/checkout.d.ts +6 -2
- package/dist/checkout.js +7 -7
- package/dist/config.js +1 -1
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +33 -33
- package/dist/index.d.ts +6 -2
- package/dist/index.js +34 -34
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +29 -29
- package/dist/x.js +3 -3
- package/package.json +1 -1
- package/dist/browser/checkout/index-8394482c.js +0 -1
package/dist/checkout.d.ts
CHANGED
|
@@ -520,6 +520,10 @@ declare class JsonRpcProvider extends BaseProvider {
|
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
+
declare class StaticJsonRpcProvider extends JsonRpcProvider {
|
|
524
|
+
detectNetwork(): Promise<Network>;
|
|
525
|
+
}
|
|
526
|
+
|
|
523
527
|
declare type ExternalProvider = {
|
|
524
528
|
isMetaMask?: boolean;
|
|
525
529
|
isStatus?: boolean;
|
|
@@ -14345,11 +14349,11 @@ interface TokenInfo {
|
|
|
14345
14349
|
}
|
|
14346
14350
|
/**
|
|
14347
14351
|
* Interface representing the parameters for {@link Checkout.getTokenInfo}.
|
|
14348
|
-
* @property {Web3Provider |
|
|
14352
|
+
* @property {Web3Provider | StaticJsonRpcProvider} provider - The provider used to get the balance.
|
|
14349
14353
|
* @property {string} tokenAddress - The contract address of the token.
|
|
14350
14354
|
*/
|
|
14351
14355
|
interface GetTokenInfoParams {
|
|
14352
|
-
provider: Web3Provider |
|
|
14356
|
+
provider: Web3Provider | StaticJsonRpcProvider;
|
|
14353
14357
|
tokenAddress: string;
|
|
14354
14358
|
}
|
|
14355
14359
|
|
package/dist/checkout.js
CHANGED
|
@@ -2,7 +2,7 @@ import globalAxios, { HttpStatusCode as HttpStatusCode$2 } from 'axios';
|
|
|
2
2
|
import { memorise as memorise$1 } from 'lru-memorise';
|
|
3
3
|
import { getGlobalisedValue as getGlobalisedValue$3 } from 'global-const';
|
|
4
4
|
import { ethers, ContractFactory, utils as utils$2, Contract as Contract$1, BigNumber as BigNumber$1, providers, constants as constants$1 } from 'ethers';
|
|
5
|
-
import { Web3Provider,
|
|
5
|
+
import { Web3Provider, StaticJsonRpcProvider } from '@ethersproject/providers';
|
|
6
6
|
import detectEthereumProvider from '@metamask/detect-provider';
|
|
7
7
|
import * as Uniswap from '@uniswap/sdk-core';
|
|
8
8
|
import { TradeType, Percent } from '@uniswap/sdk-core';
|
|
@@ -139,7 +139,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
142
|
-
const SDK_VERSION$1 = '1.19.1';
|
|
142
|
+
const SDK_VERSION$1 = '1.19.2-alpha.1';
|
|
143
143
|
const getReferrer$1 = () => {
|
|
144
144
|
if (isNode$1()) {
|
|
145
145
|
return '';
|
|
@@ -17550,7 +17550,7 @@ const flattenProperties = (properties) => {
|
|
|
17550
17550
|
};
|
|
17551
17551
|
|
|
17552
17552
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
17553
|
-
const SDK_VERSION = '1.19.1';
|
|
17553
|
+
const SDK_VERSION = '1.19.2-alpha.1';
|
|
17554
17554
|
const getReferrer = () => {
|
|
17555
17555
|
if (isNode()) {
|
|
17556
17556
|
return '';
|
|
@@ -28036,7 +28036,7 @@ class APIError extends Error {
|
|
|
28036
28036
|
|
|
28037
28037
|
/* eslint-disable implicit-arrow-linebreak */
|
|
28038
28038
|
const defaultHeaders = {
|
|
28039
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.19.1',
|
|
28039
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.19.2-alpha.1',
|
|
28040
28040
|
};
|
|
28041
28041
|
/**
|
|
28042
28042
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -29467,7 +29467,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
29467
29467
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
29468
29468
|
};
|
|
29469
29469
|
|
|
29470
|
-
const SDK_VERSION_MARKER = '1.19.1';
|
|
29470
|
+
const SDK_VERSION_MARKER = '1.19.2-alpha.1';
|
|
29471
29471
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
29472
29472
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
29473
29473
|
|
|
@@ -30276,7 +30276,7 @@ async function bridgeToL2GasEstimator(readOnlyProviders, config) {
|
|
|
30276
30276
|
const toChainId = getL2ChainId(config);
|
|
30277
30277
|
const provider = readOnlyProviders.get(fromChainId);
|
|
30278
30278
|
if (!provider)
|
|
30279
|
-
throw new Error(`Missing
|
|
30279
|
+
throw new Error(`Missing StaticJsonRpcProvider for chain id: ${fromChainId}`);
|
|
30280
30280
|
try {
|
|
30281
30281
|
const tokenBridge = createBridgeInstance(fromChainId, toChainId, readOnlyProviders, config);
|
|
30282
30282
|
// This gas estimate does not include an ERC20 approval
|
|
@@ -31203,7 +31203,7 @@ async function createReadOnlyProviders(config, existingReadOnlyProviders) {
|
|
|
31203
31203
|
});
|
|
31204
31204
|
allowedNetworks.networks.forEach((networkInfo) => {
|
|
31205
31205
|
const rpcUrl = config.networkMap.get(networkInfo.chainId)?.rpcUrls[0];
|
|
31206
|
-
const provider = new
|
|
31206
|
+
const provider = new StaticJsonRpcProvider(rpcUrl);
|
|
31207
31207
|
readOnlyProviders.set(networkInfo.chainId, provider);
|
|
31208
31208
|
});
|
|
31209
31209
|
return readOnlyProviders;
|
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.19.1';
|
|
131
|
+
const SDK_VERSION = '1.19.2-alpha.1';
|
|
132
132
|
const getReferrer = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|