@imtbl/sdk 0.1.9-alpha → 0.1.9-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.d.ts +22 -3
- package/dist/blockchain-data.js +62 -329
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +58 -11
- package/dist/checkout_sdk.js +76 -87
- package/dist/checkout_widgets.d.ts +49 -34
- package/dist/checkout_widgets.js +81 -41
- package/dist/erc721-permissioned-mintable.d.ts +4 -4
- package/dist/erc721-permissioned-mintable.js +4 -4
- package/dist/immutablex_client.js +1 -1
- package/dist/index.cjs +259 -485
- package/dist/index.d.ts +133 -54
- package/dist/index.js +255 -483
- package/dist/orderbook.d.ts +2 -2
- package/dist/orderbook.js +8 -8
- package/dist/passport.d.ts +1 -1
- package/dist/passport.js +27 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="global.d.ts" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import { BlockchainDataConfiguration, BlockchainDataModuleConfiguration as BlockchainDataModuleConfiguration$1, ProviderConfiguration as ProviderConfiguration$1 } from 'config';
|
|
3
|
+
import { BlockchainDataConfiguration, BlockchainDataModuleConfiguration as BlockchainDataModuleConfiguration$1, ProviderConfiguration as ProviderConfiguration$1, ExchangeContracts } from 'config';
|
|
4
4
|
import { OrderbookModuleConfiguration } from 'config/config';
|
|
5
5
|
import { ListingResult, ListListingsResult } from 'openapi/sdk';
|
|
6
6
|
import { ListListingsParams, PrepareListingParams, PrepareListingResponse, CreateListingParams, FulfillOrderResponse, CancelOrderResponse as CancelOrderResponse$1 } from 'types';
|
|
@@ -1003,6 +1003,25 @@ interface NFT {
|
|
|
1003
1003
|
* https://openapi-generator.tech
|
|
1004
1004
|
* Do not edit the class manually.
|
|
1005
1005
|
*/
|
|
1006
|
+
/**
|
|
1007
|
+
* @type NFTMetadataAttributeValue
|
|
1008
|
+
* The metadata trait value
|
|
1009
|
+
* @export
|
|
1010
|
+
*/
|
|
1011
|
+
type NFTMetadataAttributeValue = boolean | number | string;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Immutable X API
|
|
1015
|
+
* Immutable Multi Rollup API
|
|
1016
|
+
*
|
|
1017
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1018
|
+
* Contact: support@immutable.com
|
|
1019
|
+
*
|
|
1020
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1021
|
+
* https://openapi-generator.tech
|
|
1022
|
+
* Do not edit the class manually.
|
|
1023
|
+
*/
|
|
1024
|
+
|
|
1006
1025
|
/**
|
|
1007
1026
|
*
|
|
1008
1027
|
* @export
|
|
@@ -1016,11 +1035,11 @@ interface NFTMetadataAttribute {
|
|
|
1016
1035
|
*/
|
|
1017
1036
|
'trait_type': string;
|
|
1018
1037
|
/**
|
|
1019
|
-
*
|
|
1020
|
-
* @type {
|
|
1038
|
+
*
|
|
1039
|
+
* @type {NFTMetadataAttributeValue}
|
|
1021
1040
|
* @memberof NFTMetadataAttribute
|
|
1022
1041
|
*/
|
|
1023
|
-
'value':
|
|
1042
|
+
'value': NFTMetadataAttributeValue;
|
|
1024
1043
|
}
|
|
1025
1044
|
|
|
1026
1045
|
/**
|
|
@@ -12804,7 +12823,7 @@ declare class Orderbook {
|
|
|
12804
12823
|
* the unsigned approval transaction, the typed order message for signing and
|
|
12805
12824
|
* the order components that can be submitted to `createListing` with a signature.
|
|
12806
12825
|
*/
|
|
12807
|
-
prepareListing({
|
|
12826
|
+
prepareListing({ makerAddress, sell, buy, orderExpiry, }: PrepareListingParams): Promise<PrepareListingResponse>;
|
|
12808
12827
|
/**
|
|
12809
12828
|
* Create an order
|
|
12810
12829
|
* @param {CreateListingParams} createListingParams - create an order with the given params.
|
|
@@ -12819,7 +12838,7 @@ declare class Orderbook {
|
|
|
12819
12838
|
* @param {string} fulfillerAddress - The address of the account fulfilling the order.
|
|
12820
12839
|
* @return {FulfillOrderResponse} Approval and fulfilment transactions.
|
|
12821
12840
|
*/
|
|
12822
|
-
fulfillOrder(listingId: string,
|
|
12841
|
+
fulfillOrder(listingId: string, takerAddress: string): Promise<FulfillOrderResponse>;
|
|
12823
12842
|
/**
|
|
12824
12843
|
* Get an unsigned cancel order transaction. Orders can only be cancelled by
|
|
12825
12844
|
* the account that created them.
|
|
@@ -12841,6 +12860,20 @@ type Address = string;
|
|
|
12841
12860
|
*/
|
|
12842
12861
|
type FungibleToken = Address | 'NATIVE';
|
|
12843
12862
|
|
|
12863
|
+
type TokenInfo$1 = {
|
|
12864
|
+
chainId: number;
|
|
12865
|
+
address: string;
|
|
12866
|
+
decimals: number;
|
|
12867
|
+
symbol?: string;
|
|
12868
|
+
name?: string;
|
|
12869
|
+
};
|
|
12870
|
+
interface ExchangeOverrides {
|
|
12871
|
+
rpcURL: string;
|
|
12872
|
+
exchangeContracts: ExchangeContracts;
|
|
12873
|
+
commonRoutingTokens: TokenInfo$1[];
|
|
12874
|
+
nativeToken: TokenInfo$1;
|
|
12875
|
+
}
|
|
12876
|
+
|
|
12844
12877
|
/**
|
|
12845
12878
|
* Enum representing the supported chains with their corresponding IDs.
|
|
12846
12879
|
*/
|
|
@@ -12920,12 +12953,6 @@ interface NetworkInfo {
|
|
|
12920
12953
|
nativeCurrency: TokenInfo;
|
|
12921
12954
|
isSupported: boolean;
|
|
12922
12955
|
}
|
|
12923
|
-
/**
|
|
12924
|
-
* Enum representing the list of default supported providers.
|
|
12925
|
-
*/
|
|
12926
|
-
declare enum ConnectionProviders {
|
|
12927
|
-
METAMASK = "metamask"
|
|
12928
|
-
}
|
|
12929
12956
|
interface ConnectParams {
|
|
12930
12957
|
provider: Web3Provider;
|
|
12931
12958
|
}
|
|
@@ -13010,6 +13037,10 @@ interface TokenAmountEstimate {
|
|
|
13010
13037
|
estimatedAmount?: BigNumber;
|
|
13011
13038
|
token?: TokenInfo;
|
|
13012
13039
|
}
|
|
13040
|
+
declare const CHECKOUT_API_BASE_URL: {
|
|
13041
|
+
sandbox: string;
|
|
13042
|
+
production: string;
|
|
13043
|
+
};
|
|
13013
13044
|
/**
|
|
13014
13045
|
* Object mapping the list of supported networks with the corresponding RPC urls.
|
|
13015
13046
|
*/
|
|
@@ -13154,10 +13185,10 @@ type CreateProviderResult = {
|
|
|
13154
13185
|
};
|
|
13155
13186
|
/**
|
|
13156
13187
|
* Interface representing a wallet filter to be used in {@link GetWalletAllowListParams}.
|
|
13157
|
-
* @property {
|
|
13188
|
+
* @property {WalletProviderName} connectionProvider - The connection provider to filter wallets by.
|
|
13158
13189
|
*/
|
|
13159
13190
|
interface WalletFilter {
|
|
13160
|
-
|
|
13191
|
+
walletProvider: WalletProviderName;
|
|
13161
13192
|
}
|
|
13162
13193
|
/**
|
|
13163
13194
|
* Interface representing the parameters for {@link Checkout.getWalletAllowList}.
|
|
@@ -13170,13 +13201,13 @@ interface GetWalletAllowListParams {
|
|
|
13170
13201
|
}
|
|
13171
13202
|
/**
|
|
13172
13203
|
* Interface representing information about a wallet used in {@link GetWalletAllowListResult}.
|
|
13173
|
-
* @property {
|
|
13204
|
+
* @property {WalletProviderName} connectionProvider - The connection provider for the wallet.
|
|
13174
13205
|
* @property {string} name - The name of the wallet.
|
|
13175
13206
|
* @property {string} description - A description of the wallet.
|
|
13176
13207
|
* @property {string} icon - The URL/data:image of an icon for the wallet.
|
|
13177
13208
|
*/
|
|
13178
13209
|
interface WalletInfo {
|
|
13179
|
-
|
|
13210
|
+
walletProvider: WalletProviderName;
|
|
13180
13211
|
name: string;
|
|
13181
13212
|
description: string;
|
|
13182
13213
|
icon: string;
|
|
@@ -13228,9 +13259,42 @@ type ErrorType = {
|
|
|
13228
13259
|
[key: string]: string;
|
|
13229
13260
|
};
|
|
13230
13261
|
};
|
|
13262
|
+
type AllowedNetworkConfig = {
|
|
13263
|
+
chainId: number;
|
|
13264
|
+
};
|
|
13265
|
+
type GasEstimateBridgeToL2TokenConfig = {
|
|
13266
|
+
gasTokenAddress: string | 'NATIVE';
|
|
13267
|
+
fromAddress: string;
|
|
13268
|
+
};
|
|
13269
|
+
type GasEstimateSwapTokenConfig = {
|
|
13270
|
+
inAddress: string;
|
|
13271
|
+
outAddress: string;
|
|
13272
|
+
};
|
|
13273
|
+
type GasEstimateTokenConfig = {
|
|
13274
|
+
[key: string]: {
|
|
13275
|
+
bridgeToL2Addresses?: GasEstimateBridgeToL2TokenConfig;
|
|
13276
|
+
swapAddresses?: GasEstimateSwapTokenConfig;
|
|
13277
|
+
};
|
|
13278
|
+
};
|
|
13279
|
+
type DexConfig = {
|
|
13280
|
+
overrides?: ExchangeOverrides;
|
|
13281
|
+
};
|
|
13282
|
+
type RemoteConfiguration = {
|
|
13283
|
+
dex: DexConfig;
|
|
13284
|
+
allowedNetworks: AllowedNetworkConfig[];
|
|
13285
|
+
gasEstimateTokens?: GasEstimateTokenConfig;
|
|
13286
|
+
};
|
|
13287
|
+
type RemoteConfigParams = {
|
|
13288
|
+
environment: Environment;
|
|
13289
|
+
};
|
|
13290
|
+
declare class RemoteConfigFetcher {
|
|
13291
|
+
constructor(params: RemoteConfigParams);
|
|
13292
|
+
get(key?: keyof RemoteConfiguration): Promise<RemoteConfiguration | RemoteConfiguration[keyof RemoteConfiguration] | undefined>;
|
|
13293
|
+
}
|
|
13231
13294
|
declare class CheckoutConfiguration {
|
|
13232
13295
|
readonly environment: Environment;
|
|
13233
13296
|
readonly networkMap: NetworkMap;
|
|
13297
|
+
readonly remoteConfigFetcher: RemoteConfigFetcher;
|
|
13234
13298
|
constructor(config: CheckoutModuleConfiguration);
|
|
13235
13299
|
}
|
|
13236
13300
|
declare class Checkout {
|
|
@@ -27795,11 +27859,11 @@ declare enum ConnectEventType {
|
|
|
27795
27859
|
}
|
|
27796
27860
|
/**
|
|
27797
27861
|
* Type representing a Connect Widget event with type SUCCESS.
|
|
27798
|
-
* @property {
|
|
27862
|
+
* @property {WalletProviderName} walletProvider - The user's preferred connection provider.
|
|
27799
27863
|
*/
|
|
27800
27864
|
type ConnectionSuccess = {
|
|
27801
27865
|
provider: Web3Provider;
|
|
27802
|
-
|
|
27866
|
+
walletProvider: WalletProviderName | undefined;
|
|
27803
27867
|
};
|
|
27804
27868
|
/**
|
|
27805
27869
|
* Type representing a Connect Widget event with type FAILURE.
|
|
@@ -27816,10 +27880,10 @@ declare enum OrchestrationEventType {
|
|
|
27816
27880
|
REQUEST_ONRAMP = "request-onramp"
|
|
27817
27881
|
}
|
|
27818
27882
|
type RequestConnectEvent = {
|
|
27819
|
-
|
|
27883
|
+
walletProvider: string;
|
|
27820
27884
|
};
|
|
27821
27885
|
type RequestWalletEvent = {
|
|
27822
|
-
|
|
27886
|
+
walletProvider: string;
|
|
27823
27887
|
};
|
|
27824
27888
|
type RequestSwapEvent = {
|
|
27825
27889
|
fromTokenAddress: string;
|
|
@@ -27924,17 +27988,15 @@ declare global {
|
|
|
27924
27988
|
}
|
|
27925
27989
|
/**
|
|
27926
27990
|
* Props for the Connect Widget component
|
|
27927
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
27928
27991
|
* @property {string} theme - The theme to use.
|
|
27929
27992
|
* @property {string} environment - The environment configuration
|
|
27930
27993
|
*/
|
|
27931
27994
|
interface ImtblConnectProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27932
|
-
walletProvider?: string;
|
|
27933
27995
|
widgetConfig?: string;
|
|
27934
27996
|
}
|
|
27935
27997
|
/**
|
|
27936
27998
|
* Props for the Wallet Widget component
|
|
27937
|
-
* @property {string}
|
|
27999
|
+
* @property {string} walletProvider - The preferred wallet provider to connect to.
|
|
27938
28000
|
* @property {string} theme - The theme to use.
|
|
27939
28001
|
* @property {string} environment - The environment configuration
|
|
27940
28002
|
*/
|
|
@@ -27944,7 +28006,7 @@ interface ImtblWalletProps extends React.DetailedHTMLProps<React.HTMLAttributes<
|
|
|
27944
28006
|
}
|
|
27945
28007
|
/**
|
|
27946
28008
|
* Props for the Swap Widget component
|
|
27947
|
-
* @property {string}
|
|
28009
|
+
* @property {string} walletProvider - The preferred wallet provider to connect to.
|
|
27948
28010
|
* @property {string} theme - The theme to use.
|
|
27949
28011
|
* @property {string} environment - The environment configuration
|
|
27950
28012
|
* @property {string} amount - The amount to swap.
|
|
@@ -27960,18 +28022,16 @@ interface ImtblSwapProps extends React.DetailedHTMLProps<React.HTMLAttributes<HT
|
|
|
27960
28022
|
}
|
|
27961
28023
|
/**
|
|
27962
28024
|
* Props for the Bridge Widget component
|
|
27963
|
-
* @property {string}
|
|
28025
|
+
* @property {string} walletProvider - The preferred wallet provider to connect to.
|
|
27964
28026
|
* @property {string} theme - The theme to use.
|
|
27965
28027
|
* @property {string} environment - The environment configuration
|
|
27966
28028
|
* @property {string} fromContractAddress - The contract address of the source token.
|
|
27967
|
-
* @property {string} fromNetwork - The network of the source token.
|
|
27968
28029
|
* @property {string} amount - The amount to bridge.
|
|
27969
28030
|
*/
|
|
27970
28031
|
interface ImtblBridgeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27971
28032
|
walletProvider?: string;
|
|
27972
28033
|
widgetConfig?: string;
|
|
27973
28034
|
fromContractAddress: string;
|
|
27974
|
-
fromNetwork: string;
|
|
27975
28035
|
amount: string;
|
|
27976
28036
|
}
|
|
27977
28037
|
/**
|
|
@@ -27981,9 +28041,7 @@ declare enum Network {
|
|
|
27981
28041
|
ETHEREUM = "Ethereum",
|
|
27982
28042
|
SEPOLIA = "Sepolia",
|
|
27983
28043
|
IMTBL_ZKEVM_TESTNET = "Immutable zkEVM Testnet",
|
|
27984
|
-
IMTBL_ZKEVM_DEVNET = "Immutable zkEVM Devnet"
|
|
27985
|
-
POLYGON_ZKEVM_TESTNET = "Polygon zkEVM Testnet",
|
|
27986
|
-
POLYGON_ZKEVM = "Polygon zkEVM"
|
|
28044
|
+
IMTBL_ZKEVM_DEVNET = "Immutable zkEVM Devnet"
|
|
27987
28045
|
}
|
|
27988
28046
|
/**
|
|
27989
28047
|
* Enum representing the themes for the Checkout widgets.
|
|
@@ -28002,10 +28060,35 @@ declare enum CheckoutWidgetTagNames {
|
|
|
28002
28060
|
SWAP = "imtbl-swap",
|
|
28003
28061
|
BRIDGE = "imtbl-bridge"
|
|
28004
28062
|
}
|
|
28063
|
+
/**
|
|
28064
|
+
* Represents the version of the Checkout Widgets to use defaults to (0.1.9-alpha)
|
|
28065
|
+
* @property {number} major - The major version of the widgets, must specify a major version even if it is 0, otherwise version defaults to (0.1.9-alpha)
|
|
28066
|
+
* @property {number} minor - The minor version of the widgets, leaving this blank will pickup all new minor versions released
|
|
28067
|
+
* @property {number} patch - The patch version of the widgets, leaving this blank will pickup all new patch versions released
|
|
28068
|
+
* @property {string} prerelease - The prerelease version of the widgets, can only be 'alpha' or 'beta', will be used in preference of build if it is also specified. Do not use in production.
|
|
28069
|
+
* @property {number} build - The build version of the widgets, this should not be used in production and will only be used for rare cases when a specific testing is required
|
|
28070
|
+
*
|
|
28071
|
+
* @example
|
|
28072
|
+
* { major: 0 } - use default version 0.1.9-alpha
|
|
28073
|
+
*
|
|
28074
|
+
* { major: 1 } - use version 1.x.x, pickup all new minor and patch versions released
|
|
28075
|
+
*
|
|
28076
|
+
* { major: 1, minor: 1 } - use version 1.1.x, pickup all new patch versions released
|
|
28077
|
+
*
|
|
28078
|
+
* { major: 1, minor: 2, patch: 3 } - use version 1.2.3 specifically
|
|
28079
|
+
*/
|
|
28080
|
+
type SemanticVersion = {
|
|
28081
|
+
major: number;
|
|
28082
|
+
minor?: number;
|
|
28083
|
+
patch?: number;
|
|
28084
|
+
prerelease?: 'alpha' | 'beta';
|
|
28085
|
+
build?: number;
|
|
28086
|
+
};
|
|
28005
28087
|
/**
|
|
28006
28088
|
* Represents the configuration options for the Checkout Widgets.
|
|
28007
28089
|
* @property {WidgetTheme} theme - The theme of the Checkout Widget (default: "DARK")
|
|
28008
28090
|
* @property {Environment} environment - The environment configuration (default: "SANDBOX")
|
|
28091
|
+
* @property {SemanticVersion} version - The version of the checkout widgets js file to use (default: "0.1.0")
|
|
28009
28092
|
* @property {boolean} isOnRampEnabled - Enable on-ramp top-up method (default: "true")
|
|
28010
28093
|
* @property {boolean} isSwapEnabled - Enable swap top-up method (default: "true")
|
|
28011
28094
|
* @property {boolean} isBridgeEnabled - Enable bridge top-up method (default: "true")
|
|
@@ -28013,6 +28096,7 @@ declare enum CheckoutWidgetTagNames {
|
|
|
28013
28096
|
type CheckoutWidgetsConfig = {
|
|
28014
28097
|
theme?: WidgetTheme;
|
|
28015
28098
|
environment?: Environment;
|
|
28099
|
+
version?: SemanticVersion;
|
|
28016
28100
|
isOnRampEnabled?: boolean;
|
|
28017
28101
|
isSwapEnabled?: boolean;
|
|
28018
28102
|
isBridgeEnabled?: boolean;
|
|
@@ -28023,13 +28107,12 @@ type CheckoutWidgetsConfig = {
|
|
|
28023
28107
|
* (default: "metamask").
|
|
28024
28108
|
* @property {string} fromContractAddress - The contract address to send tokens from.
|
|
28025
28109
|
* @property {string} amount - The amount of tokens to send.
|
|
28026
|
-
* @property {Network} fromNetwork - The network to send tokens from.
|
|
28027
28110
|
*/
|
|
28028
28111
|
interface BridgeReactProps {
|
|
28029
28112
|
walletProvider?: WalletProviderName;
|
|
28113
|
+
provider?: Web3Provider;
|
|
28030
28114
|
fromContractAddress?: string;
|
|
28031
28115
|
amount?: string;
|
|
28032
|
-
fromNetwork?: Network;
|
|
28033
28116
|
}
|
|
28034
28117
|
/**
|
|
28035
28118
|
* A React functional component that renders the Checkout Bridge Widget.
|
|
@@ -28037,20 +28120,11 @@ interface BridgeReactProps {
|
|
|
28037
28120
|
* @returns {JSX.Element} - The rendered Bridge Widget component.
|
|
28038
28121
|
*/
|
|
28039
28122
|
declare function BridgeReact(props: BridgeReactProps): JSX.Element;
|
|
28040
|
-
/**
|
|
28041
|
-
* Interface representing the props for the Connect Widget component.
|
|
28042
|
-
* @property {string} providerPreference - The preferred provider for the Connect Widget
|
|
28043
|
-
* (default: "metamask").
|
|
28044
|
-
*/
|
|
28045
|
-
interface ConnectReactProps {
|
|
28046
|
-
walletProvider?: string;
|
|
28047
|
-
}
|
|
28048
28123
|
/**
|
|
28049
28124
|
* A React functional component that renders the Checkout Connect Widget.
|
|
28050
|
-
* @param {ConnectReactProps} props - The props for the Connect Widget component.
|
|
28051
28125
|
* @returns {JSX.Element} - The rendered Connect Widget component.
|
|
28052
28126
|
*/
|
|
28053
|
-
declare function ConnectReact(
|
|
28127
|
+
declare function ConnectReact(): JSX.Element;
|
|
28054
28128
|
/**
|
|
28055
28129
|
* Interface representing the props for the Swap Widget component.
|
|
28056
28130
|
* @property {string} walletProvider - The preferred provider for the Swap Widget (default: "metamask"}).
|
|
@@ -28060,6 +28134,7 @@ declare function ConnectReact(props: ConnectReactProps): JSX.Element;
|
|
|
28060
28134
|
*/
|
|
28061
28135
|
interface SwapReactProps {
|
|
28062
28136
|
walletProvider?: WalletProviderName;
|
|
28137
|
+
provider?: Web3Provider;
|
|
28063
28138
|
fromContractAddress?: string;
|
|
28064
28139
|
amount?: string;
|
|
28065
28140
|
toContractAddress?: string;
|
|
@@ -28072,11 +28147,12 @@ interface SwapReactProps {
|
|
|
28072
28147
|
declare function SwapReact(props: SwapReactProps): JSX.Element;
|
|
28073
28148
|
/**
|
|
28074
28149
|
* Interface representing the props for the Wallet Widget component.
|
|
28075
|
-
* @property {string}
|
|
28150
|
+
* @property {string} walletProvider - The preferred provider for the Wallet Widget
|
|
28076
28151
|
* (default: "metamask").
|
|
28077
28152
|
*/
|
|
28078
28153
|
interface WalletReactProps {
|
|
28079
28154
|
walletProvider?: WalletProviderName;
|
|
28155
|
+
provider?: Web3Provider;
|
|
28080
28156
|
}
|
|
28081
28157
|
/**
|
|
28082
28158
|
* A React functional component that renders the Checkout Wallet Widget.
|
|
@@ -28084,6 +28160,15 @@ interface WalletReactProps {
|
|
|
28084
28160
|
* @returns {JSX.Element} - The rendered Wallet Widget component.
|
|
28085
28161
|
*/
|
|
28086
28162
|
declare function WalletReact(props: WalletReactProps): JSX$1.Element;
|
|
28163
|
+
declare const DEFAULT_CHECKOUT_VERSION = "0.1.9-alpha";
|
|
28164
|
+
/**
|
|
28165
|
+
* Checking for valid version numbers input.
|
|
28166
|
+
* 0 is a valid value for major, minor and/or patch
|
|
28167
|
+
* The current release process only includes the checkout script in 'alpha' builds
|
|
28168
|
+
* so we must append '-alpha' to valid versions in order to load the script properly.
|
|
28169
|
+
* This may change in the future depending on the relase process.
|
|
28170
|
+
*/
|
|
28171
|
+
declare function validateAndBuildVersion(version: SemanticVersion | undefined): string;
|
|
28087
28172
|
/**
|
|
28088
28173
|
* CheckoutWidgets allows to inject the Checkout Widgets into your application.
|
|
28089
28174
|
* @param {CheckoutWidgetsConfig|undefined} config - Checkout Widget global configurations.
|
|
@@ -28094,12 +28179,6 @@ declare function CheckoutWidgets(config?: CheckoutWidgetsConfig): void;
|
|
|
28094
28179
|
* @param {CheckoutWidgetsConfig} config - new Checkout Widget global configurations.
|
|
28095
28180
|
*/
|
|
28096
28181
|
declare function UpdateConfig(config: CheckoutWidgetsConfig): void;
|
|
28097
|
-
/**
|
|
28098
|
-
* SetProvider allows to set the provider for an existing Checkout Widgets instance.
|
|
28099
|
-
* @param {CheckoutWidgetTagNames} tagName - target Checkout Widget widget.
|
|
28100
|
-
* @param {Web3Provider} provider - the provider to connect to the blockchain network.
|
|
28101
|
-
*/
|
|
28102
|
-
declare function SetProvider(tagName: CheckoutWidgetTagNames, provider: Web3Provider | null): void;
|
|
28103
28182
|
|
|
28104
28183
|
/* Autogenerated file. Do not edit manually. */
|
|
28105
28184
|
/* tslint:disable */
|
|
@@ -28301,27 +28380,27 @@ declare class ERC721PermissionedMintable {
|
|
|
28301
28380
|
/**
|
|
28302
28381
|
* @returns a populated transaction for the setApprovalForAll contract function
|
|
28303
28382
|
*/
|
|
28304
|
-
|
|
28383
|
+
populateSetApprovalForAll(operator: PromiseOrValue<string>, approved: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
28305
28384
|
from?: PromiseOrValue<string>;
|
|
28306
28385
|
}): Promise<PopulatedTransaction>;
|
|
28307
28386
|
/**
|
|
28308
28387
|
* @returns a populated transaction for the setBaseURI contract function
|
|
28309
28388
|
*/
|
|
28310
|
-
|
|
28389
|
+
populateSetBaseURI(baseURI_: PromiseOrValue<string>, overrides?: Overrides & {
|
|
28311
28390
|
from?: PromiseOrValue<string>;
|
|
28312
28391
|
}): Promise<PopulatedTransaction>;
|
|
28313
28392
|
/**
|
|
28314
28393
|
* @returns a populated transaction for the setContractURI contract function
|
|
28315
28394
|
*/
|
|
28316
|
-
|
|
28395
|
+
populateSetContractURI(_contractURI: PromiseOrValue<string>, overrides?: Overrides & {
|
|
28317
28396
|
from?: PromiseOrValue<string>;
|
|
28318
28397
|
}): Promise<PopulatedTransaction>;
|
|
28319
28398
|
/**
|
|
28320
28399
|
* @returns a populated transaction for the setRoyaltyAllowlistRegistry contract function
|
|
28321
28400
|
*/
|
|
28322
|
-
|
|
28401
|
+
populateSetRoyaltyAllowlistRegistry(_royaltyAllowlist: PromiseOrValue<string>, overrides?: Overrides & {
|
|
28323
28402
|
from?: PromiseOrValue<string>;
|
|
28324
28403
|
}): Promise<PopulatedTransaction>;
|
|
28325
28404
|
}
|
|
28326
28405
|
|
|
28327
|
-
export { APIError, BlockchainData, BlockchainDataModuleConfiguration, BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, ChainId, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectReact,
|
|
28406
|
+
export { APIError, BlockchainData, BlockchainDataModuleConfiguration, BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, CHECKOUT_API_BASE_URL, ChainId, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectReact, ConnectResult, ConnectionFailed, ConnectionSuccess, DEFAULT_CHECKOUT_VERSION, ERC20, ERC721PermissionedMintable, Environment, ErrorType, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateType, GenericIMXProvider, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, IMTBLWidgetEvents, IMXProvider, ImmutableConfiguration, ImmutableXClient, ImtblBridgeProps, ImtblConnectProps, ImtblSwapProps, ImtblWalletProps, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, MetaMaskIMXProvider, ModuleConfiguration, Network, NetworkFilter, NetworkFilterTypes, NetworkInfo, Networks, OrchestrationEventType, Orderbook, Passport, PassportError, PassportModuleConfiguration, PassportOverrides, ProviderConfiguration, RPC_URL_MAP, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SemanticVersion, SendTransactionParams, SendTransactionResult, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, UpdateConfig, UserProfile, WalletDisconnectWalletEvent, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitchEvent, WalletProviderName, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey, module, validateAndBuildVersion };
|