@imtbl/sdk 0.1.8-alpha.2 → 0.1.9-alpha
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 +402 -110
- package/dist/blockchain-data.js +1699 -232
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +163 -68
- package/dist/checkout_sdk.js +570 -215
- package/dist/checkout_widgets.d.ts +63 -156
- package/dist/checkout_widgets.js +20 -80
- package/dist/erc20.d.ts +180 -11
- package/dist/erc20.js +22 -22
- package/dist/erc721-permissioned-mintable.d.ts +258 -84
- package/dist/erc721-permissioned-mintable.js +134 -114
- package/dist/immutablex_client.js +1 -1
- package/dist/index.cjs +6966 -1834
- package/dist/index.d.ts +712 -413
- package/dist/index.js +6988 -1855
- package/dist/orderbook.d.ts +16 -16
- package/dist/orderbook.js +221 -114
- package/dist/passport.d.ts +3 -4
- package/dist/passport.js +3681 -436
- package/package.json +6 -1
|
@@ -11060,7 +11060,13 @@ declare namespace React {
|
|
|
11060
11060
|
type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
|
|
11061
11061
|
|
|
11062
11062
|
type JSXElementConstructor<P> =
|
|
11063
|
-
| ((
|
|
11063
|
+
| ((
|
|
11064
|
+
props: P,
|
|
11065
|
+
/**
|
|
11066
|
+
* @deprecated https://legacy.react/ts5.0js.org/docs/legacy-context.html#referencing-context-in-stateless-function-components
|
|
11067
|
+
*/
|
|
11068
|
+
deprecatedLegacyContext?: any,
|
|
11069
|
+
) => ReactElement<any, any> | null)
|
|
11064
11070
|
| (new (props: P) => Component<any, any>);
|
|
11065
11071
|
|
|
11066
11072
|
interface RefObject<T> {
|
|
@@ -11221,6 +11227,10 @@ declare namespace React {
|
|
|
11221
11227
|
* @deprecated Use either `ReactNode[]` if you need an array or `Iterable<ReactNode>` if its passed to a host component.
|
|
11222
11228
|
*/
|
|
11223
11229
|
interface ReactNodeArray extends ReadonlyArray<ReactNode> {}
|
|
11230
|
+
/**
|
|
11231
|
+
* WARNING: Not related to `React.Fragment`.
|
|
11232
|
+
* @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
|
|
11233
|
+
*/
|
|
11224
11234
|
type ReactFragment = Iterable<ReactNode>;
|
|
11225
11235
|
|
|
11226
11236
|
/**
|
|
@@ -11233,7 +11243,7 @@ declare namespace React {
|
|
|
11233
11243
|
| ReactElement
|
|
11234
11244
|
| string
|
|
11235
11245
|
| number
|
|
11236
|
-
|
|
|
11246
|
+
| Iterable<ReactNode>
|
|
11237
11247
|
| ReactPortal
|
|
11238
11248
|
| boolean
|
|
11239
11249
|
| null
|
|
@@ -12611,6 +12621,16 @@ declare namespace React {
|
|
|
12611
12621
|
*/
|
|
12612
12622
|
'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
|
|
12613
12623
|
/** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
|
|
12624
|
+
/**
|
|
12625
|
+
* Defines a string value that labels the current element, which is intended to be converted into Braille.
|
|
12626
|
+
* @see aria-label.
|
|
12627
|
+
*/
|
|
12628
|
+
'aria-braillelabel'?: string | undefined;
|
|
12629
|
+
/**
|
|
12630
|
+
* Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
|
|
12631
|
+
* @see aria-roledescription.
|
|
12632
|
+
*/
|
|
12633
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
12614
12634
|
'aria-busy'?: Booleanish | undefined;
|
|
12615
12635
|
/**
|
|
12616
12636
|
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
@@ -12627,6 +12647,11 @@ declare namespace React {
|
|
|
12627
12647
|
* @see aria-colcount @see aria-colspan.
|
|
12628
12648
|
*/
|
|
12629
12649
|
'aria-colindex'?: number | undefined;
|
|
12650
|
+
/**
|
|
12651
|
+
* Defines a human readable text alternative of aria-colindex.
|
|
12652
|
+
* @see aria-rowindextext.
|
|
12653
|
+
*/
|
|
12654
|
+
'aria-colindextext'?: string | undefined;
|
|
12630
12655
|
/**
|
|
12631
12656
|
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
12632
12657
|
* @see aria-colindex @see aria-rowspan.
|
|
@@ -12644,6 +12669,11 @@ declare namespace React {
|
|
|
12644
12669
|
* @see aria-labelledby
|
|
12645
12670
|
*/
|
|
12646
12671
|
'aria-describedby'?: string | undefined;
|
|
12672
|
+
/**
|
|
12673
|
+
* Defines a string value that describes or annotates the current element.
|
|
12674
|
+
* @see related aria-describedby.
|
|
12675
|
+
*/
|
|
12676
|
+
'aria-description'?: string | undefined;
|
|
12647
12677
|
/**
|
|
12648
12678
|
* Identifies the element that provides a detailed, extended description for the object.
|
|
12649
12679
|
* @see aria-describedby.
|
|
@@ -12757,6 +12787,11 @@ declare namespace React {
|
|
|
12757
12787
|
* @see aria-rowcount @see aria-rowspan.
|
|
12758
12788
|
*/
|
|
12759
12789
|
'aria-rowindex'?: number | undefined;
|
|
12790
|
+
/**
|
|
12791
|
+
* Defines a human readable text alternative of aria-rowindex.
|
|
12792
|
+
* @see aria-colindextext.
|
|
12793
|
+
*/
|
|
12794
|
+
'aria-rowindextext'?: string | undefined;
|
|
12760
12795
|
/**
|
|
12761
12796
|
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
12762
12797
|
* @see aria-rowindex @see aria-colspan.
|
|
@@ -13313,6 +13348,7 @@ declare namespace React {
|
|
|
13313
13348
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
13314
13349
|
as?: string | undefined;
|
|
13315
13350
|
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
13351
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
13316
13352
|
href?: string | undefined;
|
|
13317
13353
|
hrefLang?: string | undefined;
|
|
13318
13354
|
integrity?: string | undefined;
|
|
@@ -13919,6 +13955,7 @@ declare namespace React {
|
|
|
13919
13955
|
ruby: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
13920
13956
|
s: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
13921
13957
|
samp: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
13958
|
+
search: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
13922
13959
|
slot: DetailedHTMLFactory<SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
|
|
13923
13960
|
script: DetailedHTMLFactory<ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
|
|
13924
13961
|
section: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
@@ -14274,6 +14311,7 @@ declare global {
|
|
|
14274
14311
|
ruby: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
14275
14312
|
s: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
14276
14313
|
samp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
14314
|
+
search: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
14277
14315
|
slot: React.DetailedHTMLProps<React.SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
|
|
14278
14316
|
script: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
|
|
14279
14317
|
section: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
@@ -14948,9 +14986,9 @@ declare enum Environment {
|
|
|
14948
14986
|
}
|
|
14949
14987
|
|
|
14950
14988
|
/**
|
|
14951
|
-
* Enum representing the
|
|
14989
|
+
* Enum representing the avaiable wallet providers to use when creating a provider
|
|
14952
14990
|
*/
|
|
14953
|
-
declare enum
|
|
14991
|
+
declare enum WalletProviderName {
|
|
14954
14992
|
METAMASK = "metamask"
|
|
14955
14993
|
}
|
|
14956
14994
|
|
|
@@ -14964,10 +15002,10 @@ declare enum BridgeEventType {
|
|
|
14964
15002
|
}
|
|
14965
15003
|
/**
|
|
14966
15004
|
* Type representing a Bridge Widget event with type SUCCESS
|
|
14967
|
-
* @property {
|
|
15005
|
+
* @property {string} transactionHash - The transactionHash of the bridge transaction
|
|
14968
15006
|
*/
|
|
14969
15007
|
type BridgeSuccess = {
|
|
14970
|
-
|
|
15008
|
+
transactionHash: string;
|
|
14971
15009
|
};
|
|
14972
15010
|
/**
|
|
14973
15011
|
* Type representing a Bridge Widget event with type FAILURE
|
|
@@ -14978,42 +15016,6 @@ type BridgeFailed = {
|
|
|
14978
15016
|
reason: string;
|
|
14979
15017
|
timestamp: number;
|
|
14980
15018
|
};
|
|
14981
|
-
/**
|
|
14982
|
-
* Enum representing possible Buy Widget event types.
|
|
14983
|
-
*/
|
|
14984
|
-
declare enum BuyEventType {
|
|
14985
|
-
CLOSE_WIDGET = "close-widget",
|
|
14986
|
-
SUCCESS = "success",
|
|
14987
|
-
FAILURE = "failure",
|
|
14988
|
-
NOT_CONNECTED = "not_connected"
|
|
14989
|
-
}
|
|
14990
|
-
/**
|
|
14991
|
-
* Type representing a Buy Widget event with type CLOSE.
|
|
14992
|
-
*/
|
|
14993
|
-
type BuyClose = {};
|
|
14994
|
-
/**
|
|
14995
|
-
* Type representing a Buy Widget event with type NOT_CONNECTED.
|
|
14996
|
-
* @property {string} providerPreference - The preferred provider used for the connection within the Buy Widget.
|
|
14997
|
-
*/
|
|
14998
|
-
type BuyNotConnected = {
|
|
14999
|
-
providerPreference: string;
|
|
15000
|
-
};
|
|
15001
|
-
/**
|
|
15002
|
-
* Type representing a Buy Widget event with type SUCCESS.
|
|
15003
|
-
* @property {number} timestamp - The timestamp of the successful buy.
|
|
15004
|
-
*/
|
|
15005
|
-
type BuySuccess = {
|
|
15006
|
-
timestamp: number;
|
|
15007
|
-
};
|
|
15008
|
-
/**
|
|
15009
|
-
* Type representing a Buy Widget event with type FAILURE.
|
|
15010
|
-
* @property {string} reason - The reason why the buy failed.
|
|
15011
|
-
* @property {number} timestamp - The timestamp of the failed buy.
|
|
15012
|
-
*/
|
|
15013
|
-
type BuyFailed = {
|
|
15014
|
-
reason: string;
|
|
15015
|
-
timestamp: number;
|
|
15016
|
-
};
|
|
15017
15019
|
/**
|
|
15018
15020
|
* Enum representing possible Connect Widget event types.
|
|
15019
15021
|
*/
|
|
@@ -15027,7 +15029,8 @@ declare enum ConnectEventType {
|
|
|
15027
15029
|
* @property {ConnectionProviders} providerPreference - The user's preferred connection provider.
|
|
15028
15030
|
*/
|
|
15029
15031
|
type ConnectionSuccess = {
|
|
15030
|
-
|
|
15032
|
+
provider: Web3Provider;
|
|
15033
|
+
providerName: WalletProviderName | undefined;
|
|
15031
15034
|
};
|
|
15032
15035
|
/**
|
|
15033
15036
|
* Type representing a Connect Widget event with type FAILURE.
|
|
@@ -15076,7 +15079,7 @@ declare enum SwapEventType {
|
|
|
15076
15079
|
* @property {number} timestamp - The timestamp of the successful swap.
|
|
15077
15080
|
*/
|
|
15078
15081
|
type SwapSuccess = {
|
|
15079
|
-
|
|
15082
|
+
transactionHash: string;
|
|
15080
15083
|
};
|
|
15081
15084
|
/**
|
|
15082
15085
|
* Type representing a Swap Widget with type FAILURE.
|
|
@@ -15112,6 +15115,7 @@ declare enum WalletEventType {
|
|
|
15112
15115
|
type WalletNetworkSwitchEvent = {
|
|
15113
15116
|
network: string;
|
|
15114
15117
|
chainId: number;
|
|
15118
|
+
provider: Web3Provider;
|
|
15115
15119
|
};
|
|
15116
15120
|
type WalletDisconnectWalletEvent = {};
|
|
15117
15121
|
/**
|
|
@@ -15121,17 +15125,15 @@ declare enum IMTBLWidgetEvents {
|
|
|
15121
15125
|
IMTBL_CONNECT_WIDGET_EVENT = "imtbl-connect-widget",
|
|
15122
15126
|
IMTBL_WALLET_WIDGET_EVENT = "imtbl-wallet-widget",
|
|
15123
15127
|
IMTBL_SWAP_WIDGET_EVENT = "imtbl-swap-widget",
|
|
15124
|
-
IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget"
|
|
15125
|
-
IMTBL_BUY_WIDGET_EVENT = "imtbl-buy-widget",
|
|
15126
|
-
IMTBL_ONRAMP_WIDGET_EVENT = "imtbl-onramp-widget"
|
|
15128
|
+
IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget"
|
|
15127
15129
|
}
|
|
15128
15130
|
/**
|
|
15129
15131
|
* Represents an event object emitted by any of the widgets.
|
|
15130
|
-
* @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType
|
|
15132
|
+
* @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType} type - The type of the event.
|
|
15131
15133
|
* @property {T} data - The data contained in the event.
|
|
15132
15134
|
*/
|
|
15133
15135
|
type WidgetEvent<T> = {
|
|
15134
|
-
type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType
|
|
15136
|
+
type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType;
|
|
15135
15137
|
data: T;
|
|
15136
15138
|
};
|
|
15137
15139
|
declare global {
|
|
@@ -15144,11 +15146,6 @@ declare global {
|
|
|
15144
15146
|
'imtbl-wallet': ImtblWalletProps;
|
|
15145
15147
|
'imtbl-swap': ImtblSwapProps;
|
|
15146
15148
|
'imtbl-bridge': ImtblBridgeProps;
|
|
15147
|
-
'imtbl-buy': ImtblBuyProps;
|
|
15148
|
-
'imtbl-example': ImtblExampleProps;
|
|
15149
|
-
'imtbl-transition-example': ImtblTransitionExampleProps;
|
|
15150
|
-
'imtbl-inner-widget-example': ImtblInnerWidgetExampleProps;
|
|
15151
|
-
'imtbl-outer-widget-example': ImtblOuterWidgetExampleProps;
|
|
15152
15149
|
}
|
|
15153
15150
|
}
|
|
15154
15151
|
interface ImmutableWebComponent {
|
|
@@ -15163,7 +15160,7 @@ declare global {
|
|
|
15163
15160
|
* @property {string} environment - The environment configuration
|
|
15164
15161
|
*/
|
|
15165
15162
|
interface ImtblConnectProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15166
|
-
|
|
15163
|
+
walletProvider?: string;
|
|
15167
15164
|
widgetConfig?: string;
|
|
15168
15165
|
}
|
|
15169
15166
|
/**
|
|
@@ -15173,8 +15170,7 @@ interface ImtblConnectProps extends React.DetailedHTMLProps<React.HTMLAttributes
|
|
|
15173
15170
|
* @property {string} environment - The environment configuration
|
|
15174
15171
|
*/
|
|
15175
15172
|
interface ImtblWalletProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15176
|
-
|
|
15177
|
-
useConnectWidget?: string;
|
|
15173
|
+
walletProvider?: string;
|
|
15178
15174
|
widgetConfig?: string;
|
|
15179
15175
|
}
|
|
15180
15176
|
/**
|
|
@@ -15187,9 +15183,8 @@ interface ImtblWalletProps extends React.DetailedHTMLProps<React.HTMLAttributes<
|
|
|
15187
15183
|
* @property {string} toContractAddress - The contract address of the destination token.
|
|
15188
15184
|
*/
|
|
15189
15185
|
interface ImtblSwapProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15190
|
-
|
|
15186
|
+
walletProvider?: string;
|
|
15191
15187
|
widgetConfig?: string;
|
|
15192
|
-
useConnectWidget?: string;
|
|
15193
15188
|
amount: string;
|
|
15194
15189
|
fromContractAddress: string;
|
|
15195
15190
|
toContractAddress: string;
|
|
@@ -15204,69 +15199,12 @@ interface ImtblSwapProps extends React.DetailedHTMLProps<React.HTMLAttributes<HT
|
|
|
15204
15199
|
* @property {string} amount - The amount to bridge.
|
|
15205
15200
|
*/
|
|
15206
15201
|
interface ImtblBridgeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15207
|
-
|
|
15202
|
+
walletProvider?: string;
|
|
15208
15203
|
widgetConfig?: string;
|
|
15209
15204
|
fromContractAddress: string;
|
|
15210
15205
|
fromNetwork: string;
|
|
15211
15206
|
amount: string;
|
|
15212
15207
|
}
|
|
15213
|
-
/**
|
|
15214
|
-
* Props for the Example Widget component
|
|
15215
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
15216
|
-
* @property {string} theme - The theme to use.
|
|
15217
|
-
* @property {string} environment - The environment configuration
|
|
15218
|
-
* @experimental
|
|
15219
|
-
*/
|
|
15220
|
-
interface ImtblExampleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15221
|
-
providerPreference: string;
|
|
15222
|
-
theme: string;
|
|
15223
|
-
environment: string;
|
|
15224
|
-
}
|
|
15225
|
-
/**
|
|
15226
|
-
* Props for the Buy Widget component
|
|
15227
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
15228
|
-
* @property {string} theme - The theme to use.
|
|
15229
|
-
* @property {string} environment - The environment configuration
|
|
15230
|
-
* @property {string} orderId - The id of the order to buy.
|
|
15231
|
-
*/
|
|
15232
|
-
interface ImtblBuyProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15233
|
-
providerPreference: string;
|
|
15234
|
-
widgetConfig?: string;
|
|
15235
|
-
orderId: string;
|
|
15236
|
-
}
|
|
15237
|
-
/**
|
|
15238
|
-
* Props for the TransitionExample Widget component
|
|
15239
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
15240
|
-
* @property {string} theme - The theme to use.
|
|
15241
|
-
* @property {string} environment - The environment configuration
|
|
15242
|
-
*/
|
|
15243
|
-
interface ImtblTransitionExampleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15244
|
-
providerPreference: string;
|
|
15245
|
-
theme: string;
|
|
15246
|
-
environment: string;
|
|
15247
|
-
}
|
|
15248
|
-
/**
|
|
15249
|
-
* Props for the InnerWidgetExample Widget component
|
|
15250
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
15251
|
-
* @property {string} theme - The theme to use.
|
|
15252
|
-
* @property {string} environment - The environment configuration
|
|
15253
|
-
*/
|
|
15254
|
-
interface ImtblInnerWidgetExampleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15255
|
-
providerPreference: string;
|
|
15256
|
-
theme: string;
|
|
15257
|
-
environment: string;
|
|
15258
|
-
}
|
|
15259
|
-
/**
|
|
15260
|
-
* Props for the OuterWidgetExample Widget component
|
|
15261
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
15262
|
-
* @property {string} theme - The theme to use.
|
|
15263
|
-
* @property {string} environment - The environment configuration
|
|
15264
|
-
*/
|
|
15265
|
-
interface ImtblOuterWidgetExampleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
15266
|
-
providerPreference: string;
|
|
15267
|
-
theme: string;
|
|
15268
|
-
environment: string;
|
|
15269
|
-
}
|
|
15270
15208
|
/**
|
|
15271
15209
|
* Enum representing the networks supported by Checkout.
|
|
15272
15210
|
*/
|
|
@@ -15293,9 +15231,7 @@ declare enum CheckoutWidgetTagNames {
|
|
|
15293
15231
|
CONNECT = "imtbl-connect",
|
|
15294
15232
|
WALLET = "imtbl-wallet",
|
|
15295
15233
|
SWAP = "imtbl-swap",
|
|
15296
|
-
|
|
15297
|
-
BRIDGE = "imtbl-bridge",
|
|
15298
|
-
EXAMPLE = "imtbl-example"
|
|
15234
|
+
BRIDGE = "imtbl-bridge"
|
|
15299
15235
|
}
|
|
15300
15236
|
/**
|
|
15301
15237
|
* Represents the configuration options for the Checkout Widgets.
|
|
@@ -15314,14 +15250,14 @@ type CheckoutWidgetsConfig = {
|
|
|
15314
15250
|
};
|
|
15315
15251
|
/**
|
|
15316
15252
|
* Interface representing the props for the Bridge Widget component.
|
|
15317
|
-
* @property {string}
|
|
15253
|
+
* @property {string} walletProvider - The preferred provider for the Bridge Widget
|
|
15318
15254
|
* (default: "metamask").
|
|
15319
15255
|
* @property {string} fromContractAddress - The contract address to send tokens from.
|
|
15320
15256
|
* @property {string} amount - The amount of tokens to send.
|
|
15321
15257
|
* @property {Network} fromNetwork - The network to send tokens from.
|
|
15322
15258
|
*/
|
|
15323
15259
|
interface BridgeReactProps {
|
|
15324
|
-
|
|
15260
|
+
walletProvider?: WalletProviderName;
|
|
15325
15261
|
fromContractAddress?: string;
|
|
15326
15262
|
amount?: string;
|
|
15327
15263
|
fromNetwork?: Network;
|
|
@@ -15332,29 +15268,13 @@ interface BridgeReactProps {
|
|
|
15332
15268
|
* @returns {JSX.Element} - The rendered Bridge Widget component.
|
|
15333
15269
|
*/
|
|
15334
15270
|
declare function BridgeReact(props: BridgeReactProps): JSX.Element;
|
|
15335
|
-
/**
|
|
15336
|
-
* Interface representing the props for the Buy Widget component.
|
|
15337
|
-
* @property {string} providerPreference - The preferred provider for the Buy Widget
|
|
15338
|
-
* (default: "metamask").
|
|
15339
|
-
* @property {string} orderId - The ID that identifies the open buy order associated to the assets to buy.
|
|
15340
|
-
*/
|
|
15341
|
-
interface BuyReactProps {
|
|
15342
|
-
providerPreference: string;
|
|
15343
|
-
orderId: string;
|
|
15344
|
-
}
|
|
15345
|
-
/**
|
|
15346
|
-
* A React functional component that renders the Checkout Buy Widget.
|
|
15347
|
-
* @param {BuyReactProps} props - The props for the Buy Widget component.
|
|
15348
|
-
* @returns {JSX.Element} - The rendered Buy Widget component.
|
|
15349
|
-
*/
|
|
15350
|
-
declare function BuyReact(props: BuyReactProps): JSX.Element;
|
|
15351
15271
|
/**
|
|
15352
15272
|
* Interface representing the props for the Connect Widget component.
|
|
15353
15273
|
* @property {string} providerPreference - The preferred provider for the Connect Widget
|
|
15354
15274
|
* (default: "metamask").
|
|
15355
15275
|
*/
|
|
15356
15276
|
interface ConnectReactProps {
|
|
15357
|
-
|
|
15277
|
+
walletProvider?: string;
|
|
15358
15278
|
}
|
|
15359
15279
|
/**
|
|
15360
15280
|
* A React functional component that renders the Checkout Connect Widget.
|
|
@@ -15364,13 +15284,13 @@ interface ConnectReactProps {
|
|
|
15364
15284
|
declare function ConnectReact(props: ConnectReactProps): JSX.Element;
|
|
15365
15285
|
/**
|
|
15366
15286
|
* Interface representing the props for the Swap Widget component.
|
|
15367
|
-
* @property {string}
|
|
15287
|
+
* @property {string} walletProvider - The preferred provider for the Swap Widget (default: "metamask"}).
|
|
15368
15288
|
* @property {string} fromContractAddress - The contract address to swap tokens from.
|
|
15369
15289
|
* @property {string} amount - The amount of tokens to send.
|
|
15370
15290
|
* @property {Network} toContractAddress - The contract address to swap tokens to.
|
|
15371
15291
|
*/
|
|
15372
15292
|
interface SwapReactProps {
|
|
15373
|
-
|
|
15293
|
+
walletProvider?: WalletProviderName;
|
|
15374
15294
|
fromContractAddress?: string;
|
|
15375
15295
|
amount?: string;
|
|
15376
15296
|
toContractAddress?: string;
|
|
@@ -15387,8 +15307,7 @@ declare function SwapReact(props: SwapReactProps): JSX.Element;
|
|
|
15387
15307
|
* (default: "metamask").
|
|
15388
15308
|
*/
|
|
15389
15309
|
interface WalletReactProps {
|
|
15390
|
-
|
|
15391
|
-
useConnectWidget?: boolean;
|
|
15310
|
+
walletProvider?: WalletProviderName;
|
|
15392
15311
|
}
|
|
15393
15312
|
/**
|
|
15394
15313
|
* A React functional component that renders the Checkout Wallet Widget.
|
|
@@ -15396,18 +15315,6 @@ interface WalletReactProps {
|
|
|
15396
15315
|
* @returns {JSX.Element} - The rendered Wallet Widget component.
|
|
15397
15316
|
*/
|
|
15398
15317
|
declare function WalletReact(props: WalletReactProps): JSX$1.Element;
|
|
15399
|
-
/**
|
|
15400
|
-
* Interface representing the props for the Example Widget component.
|
|
15401
|
-
* @experimental
|
|
15402
|
-
*/
|
|
15403
|
-
interface ExampleReactProps extends CheckoutWidgetsConfig {
|
|
15404
|
-
providerPreference: string;
|
|
15405
|
-
}
|
|
15406
|
-
/**
|
|
15407
|
-
* A React functional component that renders the Checkout Example Widget.
|
|
15408
|
-
* @experimental
|
|
15409
|
-
*/
|
|
15410
|
-
declare function ExampleReact(props: ExampleReactProps): JSX$1.Element;
|
|
15411
15318
|
/**
|
|
15412
15319
|
* CheckoutWidgets allows to inject the Checkout Widgets into your application.
|
|
15413
15320
|
* @param {CheckoutWidgetsConfig|undefined} config - Checkout Widget global configurations.
|
|
@@ -15425,4 +15332,4 @@ declare function UpdateConfig(config: CheckoutWidgetsConfig): void;
|
|
|
15425
15332
|
*/
|
|
15426
15333
|
declare function SetProvider(tagName: CheckoutWidgetTagNames, provider: Web3Provider | null): void;
|
|
15427
15334
|
|
|
15428
|
-
export { BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess,
|
|
15335
|
+
export { BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectReact, ConnectReactProps, ConnectionFailed, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblConnectProps, ImtblSwapProps, ImtblWalletProps, Network, OrchestrationEventType, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SetProvider, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme };
|