@imtbl/sdk 0.27.8 → 0.27.10
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 +1 -1
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +19 -5
- package/dist/checkout_sdk.js +122 -71
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +255 -175
- package/dist/index.d.ts +20 -5
- package/dist/index.js +238 -158
- package/dist/passport.d.ts +1 -0
- package/dist/passport.js +116 -87
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14687,6 +14687,7 @@ declare enum PassportErrorType {
|
|
|
14687
14687
|
SILENT_LOGIN_ERROR = "SILENT_LOGIN_ERROR",
|
|
14688
14688
|
REFRESH_TOKEN_ERROR = "REFRESH_TOKEN_ERROR",
|
|
14689
14689
|
USER_REGISTRATION_ERROR = "USER_REGISTRATION_ERROR",
|
|
14690
|
+
USER_NOT_REGISTERED_ERROR = "USER_NOT_REGISTERED_ERROR",
|
|
14690
14691
|
LOGOUT_ERROR = "LOGOUT_ERROR",
|
|
14691
14692
|
TRANSFER_ERROR = "TRANSFER_ERROR",
|
|
14692
14693
|
CREATE_ORDER_ERROR = "CREATE_ORDER_ERROR",
|
|
@@ -16085,7 +16086,8 @@ declare namespace provider_d {
|
|
|
16085
16086
|
}
|
|
16086
16087
|
|
|
16087
16088
|
/**
|
|
16088
|
-
*
|
|
16089
|
+
* Type representing an ERC20 token
|
|
16090
|
+
* @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
|
|
16089
16091
|
* @property {number} chainId - The chain ID
|
|
16090
16092
|
* @property {string} address - The token address
|
|
16091
16093
|
* @property {number} decimals - The token decimals
|
|
@@ -16101,7 +16103,8 @@ type ERC20 = {
|
|
|
16101
16103
|
name?: string;
|
|
16102
16104
|
};
|
|
16103
16105
|
/**
|
|
16104
|
-
*
|
|
16106
|
+
* Type representing a native token
|
|
16107
|
+
* @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
|
|
16105
16108
|
* @property {number} chainId - The chain ID
|
|
16106
16109
|
* @property {number} decimals - The token decimals
|
|
16107
16110
|
* @property {string | undefined} symbol - The token symbol or undefined if it is not available
|
|
@@ -16114,13 +16117,25 @@ type Native = {
|
|
|
16114
16117
|
symbol?: string;
|
|
16115
16118
|
name?: string;
|
|
16116
16119
|
};
|
|
16117
|
-
|
|
16120
|
+
/**
|
|
16121
|
+
* Type representing a token, either an {@link ERC20} or {@link Native}
|
|
16122
|
+
*/
|
|
16123
|
+
type Coin = ERC20 | Native;
|
|
16124
|
+
/**
|
|
16125
|
+
* Type representing the overrides for the {@link Exchange} module
|
|
16126
|
+
* @property {string} rpcURL - The RPC URL for the chain
|
|
16127
|
+
* @property {ExchangeContracts} exchangeContracts - The DEX contract addresses
|
|
16128
|
+
* @property {ERC20[]} commonRoutingTokens - The tokens used to find available pools for a swap
|
|
16129
|
+
* @property {Coin} nativeToken - The native token of the chain
|
|
16130
|
+
* @property {ERC20} wrappedNativeToken - The wrapped native token of the chain
|
|
16131
|
+
*/
|
|
16132
|
+
type ExchangeOverrides = {
|
|
16118
16133
|
rpcURL: string;
|
|
16119
16134
|
exchangeContracts: ExchangeContracts;
|
|
16120
16135
|
commonRoutingTokens: ERC20[];
|
|
16121
|
-
nativeToken:
|
|
16136
|
+
nativeToken: Coin;
|
|
16122
16137
|
wrappedNativeToken: ERC20;
|
|
16123
|
-
}
|
|
16138
|
+
};
|
|
16124
16139
|
|
|
16125
16140
|
/**
|
|
16126
16141
|
* @typedef {string} Address - Represents an Ethereum address.
|