@imtbl/sdk 0.1.4-alpha → 0.1.6-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.
@@ -1,200 +1,283 @@
1
- import 'ethers';
2
- import '@metamask/detect-provider';
3
- import '@ethersproject/providers';
4
-
5
- let $d176a05e966364ba$export$3bfad4d03ada24c4;
6
- (function(ConnectionProviders) {
7
- ConnectionProviders["METAMASK"] = "metamask";
8
- })($d176a05e966364ba$export$3bfad4d03ada24c4 || ($d176a05e966364ba$export$3bfad4d03ada24c4 = {}));
9
-
10
-
11
- let $a47e48dd2c04791b$export$c06e1e7429de6283;
12
- (function(ChainId) {
13
- ChainId[ChainId["ETHEREUM"] = 1] = "ETHEREUM";
14
- ChainId[ChainId["GOERLI"] = 5] = "GOERLI";
15
- ChainId[ChainId["POLYGON"] = 137] = "POLYGON";
16
- })($a47e48dd2c04791b$export$c06e1e7429de6283 || ($a47e48dd2c04791b$export$c06e1e7429de6283 = {}));
17
- ({
18
- [$a47e48dd2c04791b$export$c06e1e7429de6283.ETHEREUM]: {
19
- chainIdHex: "0x1",
20
- chainName: "Ethereum",
21
- rpcUrls: [
22
- "https://mainnet.infura.io/v3/"
23
- ],
24
- nativeCurrency: {
25
- name: "Ethereum",
26
- symbol: "ETH",
27
- decimals: 18
28
- },
29
- blockExplorerUrls: [
30
- "https://etherscan.io/"
31
- ]
32
- },
33
- [$a47e48dd2c04791b$export$c06e1e7429de6283.GOERLI]: {
34
- chainIdHex: "0x5",
35
- chainName: "Goerli",
36
- rpcUrls: [
37
- "https://goerli.infura.io/v3/"
38
- ],
39
- nativeCurrency: {
40
- name: "Goerli Eth",
41
- symbol: "ETH",
42
- decimals: 18
43
- },
44
- blockExplorerUrls: [
45
- "https://goerli.etherscan.io/"
46
- ]
47
- },
48
- [$a47e48dd2c04791b$export$c06e1e7429de6283.POLYGON]: {
49
- chainIdHex: "0x89",
50
- chainName: "Polygon",
51
- rpcUrls: [
52
- "https://polygon-rpc.com"
53
- ],
54
- nativeCurrency: {
55
- name: "MATIC",
56
- symbol: "MATIC",
57
- decimals: 18
58
- },
59
- blockExplorerUrls: [
60
- "https://polygonscan.com/"
61
- ]
62
- }
63
- });
64
- let $a47e48dd2c04791b$export$1f05a55fe0680cc7;
65
- (function(NetworkFilterTypes) {
66
- NetworkFilterTypes["ALL"] = "all";
67
- })($a47e48dd2c04791b$export$1f05a55fe0680cc7 || ($a47e48dd2c04791b$export$1f05a55fe0680cc7 = {}));
68
-
69
-
70
- let $08d5ddc39acd6833$export$fd9b17d87f4121d2;
71
- (function(TokenFilterTypes) {
72
- TokenFilterTypes["SWAP"] = "swap";
73
- TokenFilterTypes["BRIDGE"] = "bridge";
74
- TokenFilterTypes["ALL"] = "all";
75
- })($08d5ddc39acd6833$export$fd9b17d87f4121d2 || ($08d5ddc39acd6833$export$fd9b17d87f4121d2 = {}));
76
- let $4f91c5f280efe242$export$a75605c67ea83a5a;
77
- (function(WalletFilterTypes) {
78
- WalletFilterTypes["ALL"] = "all";
79
- WalletFilterTypes["DESKTOP"] = "desktop";
80
- WalletFilterTypes["MOBILE"] = "mobile";
81
- })($4f91c5f280efe242$export$a75605c67ea83a5a || ($4f91c5f280efe242$export$a75605c67ea83a5a = {}));
82
-
83
-
84
-
85
-
86
- /**
87
- * The different types of errors that can be returned by the checkout process.
88
- */ let $a8bc256d81a5e2c1$export$e3dc0620abde7f5a;
89
- (function(CheckoutErrorType) {
90
- CheckoutErrorType["PROVIDER_PREFERENCE_ERROR"] = "PROVIDER_PREFERENCE_ERROR";
91
- CheckoutErrorType["CONNECT_PROVIDER_ERROR"] = "CONNECT_PROVIDER_ERROR";
92
- CheckoutErrorType["GET_BALANCE_ERROR"] = "GET_BALANCE_ERROR";
93
- CheckoutErrorType["GET_ERC20_BALANCE_ERROR"] = "GET_ERC20_BALANCE_ERROR";
94
- CheckoutErrorType["GET_NETWORK_INFO_ERROR"] = "GET_NETWORK_INFO_ERROR";
95
- CheckoutErrorType["METAMASK_PROVIDER_ERROR"] = "METAMASK_PROVIDER_ERROR";
96
- CheckoutErrorType["CHAIN_NOT_SUPPORTED_ERROR"] = "CHAIN_NOT_SUPPORTED_ERROR";
97
- CheckoutErrorType["PROVIDER_REQUEST_MISSING_ERROR"] = "PROVIDER_REQUEST_MISSING_ERROR";
98
- CheckoutErrorType["PROVIDER_REQUEST_FAILED_ERROR"] = "PROVIDER_REQUEST_FAILED_ERROR";
99
- CheckoutErrorType["USER_REJECTED_REQUEST_ERROR"] = "USER_REJECTED_REQUEST_ERROR";
100
- CheckoutErrorType["TRANSACTION_ERROR"] = "TRANSACTION_ERROR";
101
- })($a8bc256d81a5e2c1$export$e3dc0620abde7f5a || ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a = {}));
102
- let $a8bc256d81a5e2c1$export$a22d4e0719ee6def;
103
- (function(CheckoutInternalErrorType) {
104
- CheckoutInternalErrorType["REJECTED_SWITCH_AFTER_ADDING_NETWORK"] = "REJECTED_SWITCH_AFTER_ADDING_NETWORK";
105
- })($a8bc256d81a5e2c1$export$a22d4e0719ee6def || ($a8bc256d81a5e2c1$export$a22d4e0719ee6def = {}));
106
- JSON.parse('[{"chainId":1},{"chainId":137}]');
107
- JSON.parse("[{\"address\":\"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0\",\"chainId\":137,\"name\":\"Matic\",\"symbol\":\"MATIC\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 38.4 33.5' style='enable-background:new 0 0 38.4 33.5;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%238247E5;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M29,10.2c-0.7-0.4-1.6-0.4-2.4,0L21,13.5l-3.8,2.1l-5.5,3.3c-0.7,0.4-1.6,0.4-2.4,0L5,16.3 c-0.7-0.4-1.2-1.2-1.2-2.1v-5c0-0.8,0.4-1.6,1.2-2.1l4.3-2.5c0.7-0.4,1.6-0.4,2.4,0L16,7.2c0.7,0.4,1.2,1.2,1.2,2.1v3.3l3.8-2.2V7 c0-0.8-0.4-1.6-1.2-2.1l-8-4.7c-0.7-0.4-1.6-0.4-2.4,0L1.2,5C0.4,5.4,0,6.2,0,7v9.4c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l5.5-3.2l3.8-2.2l5.5-3.2c0.7-0.4,1.6-0.4,2.4,0l4.3,2.5c0.7,0.4,1.2,1.2,1.2,2.1v5c0,0.8-0.4,1.6-1.2,2.1 L29,28.8c-0.7,0.4-1.6,0.4-2.4,0l-4.3-2.5c-0.7-0.4-1.2-1.2-1.2-2.1V21l-3.8,2.2v3.3c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l8.1-4.7c0.7-0.4,1.2-1.2,1.2-2.1V17c0-0.8-0.4-1.6-1.2-2.1L29,10.2z'/%3E%3C/g%3E%3C/svg%3E%0A\",\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"name\":\"Ethereum\",\"symbol\":\"ETH\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='100%25' height='100%25' version='1.1' shape-rendering='geometricPrecision' text-rendering='geometricPrecision' image-rendering='optimizeQuality' fill-rule='evenodd' clip-rule='evenodd'%0AviewBox='0 0 784.37 1277.39' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:xodm='http://www.corel.com/coreldraw/odm/2003'%3E%3Cg id='Layer_x0020_1'%3E%3Cmetadata id='CorelCorpID_0Corel-Layer'/%3E%3Cg id='_1421394342400'%3E%3Cg%3E%3Cpolygon fill='%23343434' fill-rule='nonzero' points='392.07,0 383.5,29.11 383.5,873.74 392.07,882.29 784.13,650.54 '/%3E%3Cpolygon fill='%238C8C8C' fill-rule='nonzero' points='392.07,0 -0,650.54 392.07,882.29 392.07,472.33 '/%3E%3Cpolygon fill='%233C3C3B' fill-rule='nonzero' points='392.07,956.52 387.24,962.41 387.24,1263.28 392.07,1277.38 784.37,724.89 '/%3E%3Cpolygon fill='%238C8C8C' fill-rule='nonzero' points='392.07,1277.38 392.07,956.52 -0,724.89 '/%3E%3Cpolygon fill='%23141414' fill-rule='nonzero' points='392.07,882.29 784.13,650.54 392.07,472.33 '/%3E%3Cpolygon fill='%23393939' fill-rule='nonzero' points='0,650.54 392.07,882.29 392.07,472.33 '/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A\",\"chainId\":1,\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"address\":\"0xF57e7e7C23978C3cAEC3C3548E3D615c346e79fF\",\"chainId\":1,\"name\":\"Immutable X\",\"symbol\":\"IMX\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 139 113' style='enable-background:new 0 0 139 113;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bclip-path:url(%23SVGID_00000053504646934646330740000009134454895836103350_);%7D .st1%7Bfill:%2317B5CB;%7D%0A%3C/style%3E%3Cg%3E%3Cdefs%3E%3Crect id='SVGID_1_' width='139' height='113'/%3E%3C/defs%3E%3CclipPath id='SVGID_00000035518931339590433170000002358037249938198420_'%3E%3Cuse xlink:href='%23SVGID_1_' style='overflow:visible;'/%3E%3C/clipPath%3E%3Cg style='clip-path:url(%23SVGID_00000035518931339590433170000002358037249938198420_);'%3E%3Cpath class='st1' d='M124.1,0h14.6L79.5,67.6c-1.5,1.7-1.6,4.3-0.1,6.1l34.1,39.7H98.3L66.8,76.6l-1.6-2c-1.5-1.7-1.4-4.4,0.1-6.1 L124.1,0z'/%3E%3Cpath class='st1' d='M91.2,73.7c-1-1.1-1.3-2.7-1-4.1c0.3-0.8,0.8-1.6,1.4-2.2l3.9-4.3l43.5,50.3h-13.8 C125.2,113.4,99.7,83.6,91.2,73.7z'/%3E%3Cpath class='st1' d='M15.2,113.4H0l46.6-53.9c1.5-1.7,1.5-4.3,0-6L0.4,0H15l46.5,53.9c1.2,1.6,1.4,3.9,0.1,5.4 C49.4,73.4,15.2,113.4,15.2,113.4z'/%3E%3Cpath class='st1' d='M40.6,0h-14l43.1,49.9c0,0,0.1-0.1,4.9-5.8c1.3-1.5,1.6-3.4,0.1-4.9C65.7,30,40.6,0,40.6,0z'/%3E%3Cpath class='st1' d='M82.6,34.8L112.5,0H98.3L82.7,18.2l-4.5,5.3c-1.5,1.7-1.6,4.3-0.1,6.1C79.2,30.9,82.6,34.8,82.6,34.8z'/%3E%3Cpath class='st1' d='M56.6,78.6l-29.9,34.8h14.1l15.6-18.2l4.5-5.3c1.5-1.7,1.6-4.3,0.1-6.1C59.9,82.5,56.6,78.6,56.6,78.6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A\",\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"address\":\"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0\",\"chainId\":1,\"name\":\"Matic\",\"symbol\":\"MATIC\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 38.4 33.5' style='enable-background:new 0 0 38.4 33.5;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%238247E5;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M29,10.2c-0.7-0.4-1.6-0.4-2.4,0L21,13.5l-3.8,2.1l-5.5,3.3c-0.7,0.4-1.6,0.4-2.4,0L5,16.3 c-0.7-0.4-1.2-1.2-1.2-2.1v-5c0-0.8,0.4-1.6,1.2-2.1l4.3-2.5c0.7-0.4,1.6-0.4,2.4,0L16,7.2c0.7,0.4,1.2,1.2,1.2,2.1v3.3l3.8-2.2V7 c0-0.8-0.4-1.6-1.2-2.1l-8-4.7c-0.7-0.4-1.6-0.4-2.4,0L1.2,5C0.4,5.4,0,6.2,0,7v9.4c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l5.5-3.2l3.8-2.2l5.5-3.2c0.7-0.4,1.6-0.4,2.4,0l4.3,2.5c0.7,0.4,1.2,1.2,1.2,2.1v5c0,0.8-0.4,1.6-1.2,2.1 L29,28.8c-0.7,0.4-1.6,0.4-2.4,0l-4.3-2.5c-0.7-0.4-1.2-1.2-1.2-2.1V21l-3.8,2.2v3.3c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l8.1-4.7c0.7-0.4,1.2-1.2,1.2-2.1V17c0-0.8-0.4-1.6-1.2-2.1L29,10.2z'/%3E%3C/g%3E%3C/svg%3E%0A\",\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"name\":\"Ethereum\",\"symbol\":\"ETH\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='100%25' height='100%25' version='1.1' shape-rendering='geometricPrecision' text-rendering='geometricPrecision' image-rendering='optimizeQuality' fill-rule='evenodd' clip-rule='evenodd'%0AviewBox='0 0 784.37 1277.39' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:xodm='http://www.corel.com/coreldraw/odm/2003'%3E%3Cg id='Layer_x0020_1'%3E%3Cmetadata id='CorelCorpID_0Corel-Layer'/%3E%3Cg id='_1421394342400'%3E%3Cg%3E%3Cpolygon fill='%23343434' fill-rule='nonzero' points='392.07,0 383.5,29.11 383.5,873.74 392.07,882.29 784.13,650.54 '/%3E%3Cpolygon fill='%238C8C8C' fill-rule='nonzero' points='392.07,0 -0,650.54 392.07,882.29 392.07,472.33 '/%3E%3Cpolygon fill='%233C3C3B' fill-rule='nonzero' points='392.07,956.52 387.24,962.41 387.24,1263.28 392.07,1277.38 784.37,724.89 '/%3E%3Cpolygon fill='%238C8C8C' fill-rule='nonzero' points='392.07,1277.38 392.07,956.52 -0,724.89 '/%3E%3Cpolygon fill='%23141414' fill-rule='nonzero' points='392.07,882.29 784.13,650.54 392.07,472.33 '/%3E%3Cpolygon fill='%23393939' fill-rule='nonzero' points='0,650.54 392.07,882.29 392.07,472.33 '/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A\",\"chainId\":5,\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"address\":\"0x1facdd0165489f373255a90304650e15481b2c85\",\"chainId\":5,\"name\":\"Immutable X\",\"symbol\":\"IMX\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 139 113' style='enable-background:new 0 0 139 113;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bclip-path:url(%23SVGID_00000053504646934646330740000009134454895836103350_);%7D .st1%7Bfill:%2317B5CB;%7D%0A%3C/style%3E%3Cg%3E%3Cdefs%3E%3Crect id='SVGID_1_' width='139' height='113'/%3E%3C/defs%3E%3CclipPath id='SVGID_00000035518931339590433170000002358037249938198420_'%3E%3Cuse xlink:href='%23SVGID_1_' style='overflow:visible;'/%3E%3C/clipPath%3E%3Cg style='clip-path:url(%23SVGID_00000035518931339590433170000002358037249938198420_);'%3E%3Cpath class='st1' d='M124.1,0h14.6L79.5,67.6c-1.5,1.7-1.6,4.3-0.1,6.1l34.1,39.7H98.3L66.8,76.6l-1.6-2c-1.5-1.7-1.4-4.4,0.1-6.1 L124.1,0z'/%3E%3Cpath class='st1' d='M91.2,73.7c-1-1.1-1.3-2.7-1-4.1c0.3-0.8,0.8-1.6,1.4-2.2l3.9-4.3l43.5,50.3h-13.8 C125.2,113.4,99.7,83.6,91.2,73.7z'/%3E%3Cpath class='st1' d='M15.2,113.4H0l46.6-53.9c1.5-1.7,1.5-4.3,0-6L0.4,0H15l46.5,53.9c1.2,1.6,1.4,3.9,0.1,5.4 C49.4,73.4,15.2,113.4,15.2,113.4z'/%3E%3Cpath class='st1' d='M40.6,0h-14l43.1,49.9c0,0,0.1-0.1,4.9-5.8c1.3-1.5,1.6-3.4,0.1-4.9C65.7,30,40.6,0,40.6,0z'/%3E%3Cpath class='st1' d='M82.6,34.8L112.5,0H98.3L82.7,18.2l-4.5,5.3c-1.5,1.7-1.6,4.3-0.1,6.1C79.2,30.9,82.6,34.8,82.6,34.8z'/%3E%3Cpath class='st1' d='M56.6,78.6l-29.9,34.8h14.1l15.6-18.2l4.5-5.3c1.5-1.7,1.6-4.3,0.1-6.1C59.9,82.5,56.6,78.6,56.6,78.6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A\",\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"address\":\"0x123456789\",\"chainId\":5,\"name\":\"Swap Coin\",\"symbol\":\"SWC\",\"decimals\":18,\"tokenFeatures\":[\"swap\",\"fakeFeature\"]},{\"address\":\"0x123456789\",\"chainId\":5,\"name\":\"Bridge Coin\",\"symbol\":\"BDC\",\"decimals\":18,\"tokenFeatures\":[\"bridge\",\"fakeFeature\"]}]");
108
- JSON.parse('[{"connectionProvider":"metamask","icon":"some-icon-url","name":"MetaMask","description":"complete web3 wallet solution","platform":["desktop"]},{"connectionProvider":"passport","icon":"pp-icon","name":"Passport","description":"Web3 with your email!","platform":["mobile","desktop"]},{"connectionProvider":"gamestop","icon":"gme-icon","name":"GameStop","description":"Never stopping the game!","platform":["mobile"]}]');
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import 'react';
109
3
 
110
4
  function $parcel$export(e, n, v, s) {
111
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
112
6
  }
113
- var $88e4c575901cd68c$exports = {};
7
+ var $207ed853f11d19d5$exports = {};
114
8
 
115
- $parcel$export($88e4c575901cd68c$exports, "IMTBLWidgetEvents", () => $88e4c575901cd68c$export$5a0ace85cae72d45);
116
- let $88e4c575901cd68c$export$5a0ace85cae72d45;
9
+ $parcel$export($207ed853f11d19d5$exports, "IMTBLWidgetEvents", () => $207ed853f11d19d5$export$5a0ace85cae72d45);
10
+ /**
11
+ * Enum representing the events emitted by the widgets.
12
+ */ let $207ed853f11d19d5$export$5a0ace85cae72d45;
117
13
  (function(IMTBLWidgetEvents) {
118
14
  IMTBLWidgetEvents["IMTBL_CONNECT_WIDGET_EVENT"] = "imtbl-connect-widget";
119
15
  IMTBLWidgetEvents["IMTBL_WALLET_WIDGET_EVENT"] = "imtbl-wallet-widget";
120
16
  IMTBLWidgetEvents["IMTBL_SWAP_WIDGET_EVENT"] = "imtbl-swap-widget";
121
17
  IMTBLWidgetEvents["IMTBL_BRIDGE_WIDGET_EVENT"] = "imtbl-bridge-widget";
122
18
  IMTBLWidgetEvents["IMTBL_BUY_WIDGET_EVENT"] = "imtbl-buy-widget";
123
- })($88e4c575901cd68c$export$5a0ace85cae72d45 || ($88e4c575901cd68c$export$5a0ace85cae72d45 = {}));
19
+ IMTBLWidgetEvents["IMTBL_ONRAMP_WIDGET_EVENT"] = "imtbl-onramp-widget";
20
+ })($207ed853f11d19d5$export$5a0ace85cae72d45 || ($207ed853f11d19d5$export$5a0ace85cae72d45 = {}));
124
21
 
125
22
 
126
- var $d71a87afc3136184$exports = {};
23
+ var $a85ecdbd885c58ad$exports = {};
127
24
 
128
- $parcel$export($d71a87afc3136184$exports, "ConnectEventType", () => $d71a87afc3136184$export$e72e7f9969a47dd3);
129
- let $d71a87afc3136184$export$e72e7f9969a47dd3;
25
+ $parcel$export($a85ecdbd885c58ad$exports, "ConnectEventType", () => $a85ecdbd885c58ad$export$e72e7f9969a47dd3);
26
+ let $a85ecdbd885c58ad$export$e72e7f9969a47dd3;
130
27
  (function(ConnectEventType) {
131
28
  ConnectEventType["SUCCESS"] = "success";
132
29
  ConnectEventType["FAILURE"] = "failure";
133
30
  ConnectEventType["CLOSE_WIDGET"] = "close-widget";
134
- })($d71a87afc3136184$export$e72e7f9969a47dd3 || ($d71a87afc3136184$export$e72e7f9969a47dd3 = {}));
31
+ })($a85ecdbd885c58ad$export$e72e7f9969a47dd3 || ($a85ecdbd885c58ad$export$e72e7f9969a47dd3 = {}));
135
32
 
136
33
 
137
- var $9d0f1783d4d36e8a$exports = {};
34
+ var $77b6aac5c353d4a9$exports = {};
138
35
 
139
- $parcel$export($9d0f1783d4d36e8a$exports, "WalletEventType", () => $9d0f1783d4d36e8a$export$d9be06b70b28c742);
140
- //wallet widget events
141
- let $9d0f1783d4d36e8a$export$d9be06b70b28c742;
36
+ $parcel$export($77b6aac5c353d4a9$exports, "WalletEventType", () => $77b6aac5c353d4a9$export$d9be06b70b28c742);
37
+ let $77b6aac5c353d4a9$export$d9be06b70b28c742;
142
38
  (function(WalletEventType) {
143
39
  WalletEventType["CLOSE_WIDGET"] = "close-widget";
144
40
  WalletEventType["NETWORK_SWITCH"] = "network-switch";
145
- })($9d0f1783d4d36e8a$export$d9be06b70b28c742 || ($9d0f1783d4d36e8a$export$d9be06b70b28c742 = {}));
41
+ WalletEventType["ADD_COINS"] = "add-coins";
42
+ WalletEventType["REQUEST_SWAP"] = "request-swap";
43
+ WalletEventType["REQUEST_BRIDGE"] = "request-bridge";
44
+ WalletEventType["REQUEST_ONRAMP"] = "request-onramp";
45
+ })($77b6aac5c353d4a9$export$d9be06b70b28c742 || ($77b6aac5c353d4a9$export$d9be06b70b28c742 = {}));
146
46
 
147
47
 
148
- var $5d497088f13bb116$exports = {};
48
+ var $53d219e7f6bf0cd6$exports = {};
149
49
 
150
- $parcel$export($5d497088f13bb116$exports, "SwapEventType", () => $5d497088f13bb116$export$140a49745ab55563);
151
- let $5d497088f13bb116$export$140a49745ab55563;
50
+ $parcel$export($53d219e7f6bf0cd6$exports, "SwapEventType", () => $53d219e7f6bf0cd6$export$140a49745ab55563);
51
+ /**
52
+ * Represents an event object emitted by the Swap Widget.
53
+ * @property {SwapEventType} type - The type of the event.
54
+ * @property {T} data - The data contained in the event.
55
+ */ let $53d219e7f6bf0cd6$export$140a49745ab55563;
152
56
  (function(SwapEventType) {
153
57
  SwapEventType["SUCCESS"] = "success";
154
58
  SwapEventType["FAILURE"] = "failure";
155
- })($5d497088f13bb116$export$140a49745ab55563 || ($5d497088f13bb116$export$140a49745ab55563 = {}));
59
+ })($53d219e7f6bf0cd6$export$140a49745ab55563 || ($53d219e7f6bf0cd6$export$140a49745ab55563 = {}));
156
60
 
157
61
 
158
- var $28a5fdc2f5e6c742$exports = {};
62
+ var $15cc9e120aa6f3bf$exports = {};
159
63
 
160
- $parcel$export($28a5fdc2f5e6c742$exports, "BridgeEventType", () => $28a5fdc2f5e6c742$export$d1bfa21f7c76447a);
161
- let $28a5fdc2f5e6c742$export$d1bfa21f7c76447a;
64
+ $parcel$export($15cc9e120aa6f3bf$exports, "BridgeEventType", () => $15cc9e120aa6f3bf$export$d1bfa21f7c76447a);
65
+ /**
66
+ * Represents an event object emitted by the Bridge Widget.
67
+ * @property {BridgeEventType} type - The type of the event.
68
+ * @property {T} data - The data associated with the event.
69
+ */ let $15cc9e120aa6f3bf$export$d1bfa21f7c76447a;
162
70
  (function(BridgeEventType) {
163
71
  BridgeEventType["CLOSE_WIDGET"] = "close-widget";
164
72
  BridgeEventType["SUCCESS"] = "success";
165
73
  BridgeEventType["FAILURE"] = "failure";
166
- })($28a5fdc2f5e6c742$export$d1bfa21f7c76447a || ($28a5fdc2f5e6c742$export$d1bfa21f7c76447a = {}));
74
+ })($15cc9e120aa6f3bf$export$d1bfa21f7c76447a || ($15cc9e120aa6f3bf$export$d1bfa21f7c76447a = {}));
167
75
 
168
76
 
169
- var $ede253beebe0de4a$exports = {};
77
+ var $98cbcca465beec95$exports = {};
170
78
 
171
- $parcel$export($ede253beebe0de4a$exports, "BuyEventType", () => $ede253beebe0de4a$export$90db5fe1be5993c1);
172
- let $ede253beebe0de4a$export$90db5fe1be5993c1;
79
+ $parcel$export($98cbcca465beec95$exports, "BuyEventType", () => $98cbcca465beec95$export$90db5fe1be5993c1);
80
+ /**
81
+ * Represents an event object emitted by the Buy Widget.
82
+ * @property {BuyEventType} type - The type of the event.
83
+ * @property {T} data - The data contained in the event.
84
+ */ let $98cbcca465beec95$export$90db5fe1be5993c1;
173
85
  (function(BuyEventType) {
174
86
  BuyEventType["SUCCESS"] = "success";
175
87
  BuyEventType["FAILURE"] = "failure";
176
88
  BuyEventType["NOT_CONNECTED"] = "not_connected";
177
89
  BuyEventType["CLOSE"] = "close";
178
- })($ede253beebe0de4a$export$90db5fe1be5993c1 || ($ede253beebe0de4a$export$90db5fe1be5993c1 = {}));
90
+ })($98cbcca465beec95$export$90db5fe1be5993c1 || ($98cbcca465beec95$export$90db5fe1be5993c1 = {}));
179
91
 
180
92
 
181
- var $9234b4c577442a97$exports = {};
93
+ var $66ceef112c0ee49e$exports = {};
182
94
 
183
- $parcel$export($9234b4c577442a97$exports, "Network", () => $9234b4c577442a97$export$95be4ae94445245a);
184
- $parcel$export($9234b4c577442a97$exports, "WidgetTheme", () => $9234b4c577442a97$export$c88931fdc51854eb);
185
- $parcel$export($9234b4c577442a97$exports, "ConnectionProviders", () => $d176a05e966364ba$export$3bfad4d03ada24c4);
95
+ $parcel$export($66ceef112c0ee49e$exports, "OnRampEventType", () => $66ceef112c0ee49e$export$66ec39c0924078d8);
96
+ let $66ceef112c0ee49e$export$66ec39c0924078d8;
97
+ $66ceef112c0ee49e$export$66ec39c0924078d8 || ($66ceef112c0ee49e$export$66ec39c0924078d8 = {});
186
98
 
187
- let $9234b4c577442a97$export$95be4ae94445245a;
99
+
100
+ var $14d7a2bbb79e0dae$exports = {};
101
+
102
+ $parcel$export($14d7a2bbb79e0dae$exports, "Network", () => $14d7a2bbb79e0dae$export$95be4ae94445245a);
103
+ $parcel$export($14d7a2bbb79e0dae$exports, "WidgetTheme", () => $14d7a2bbb79e0dae$export$c88931fdc51854eb);
104
+ $parcel$export($14d7a2bbb79e0dae$exports, "WidgetConnectionProviders", () => $14d7a2bbb79e0dae$export$2f61dde3bdc320cb);
105
+ $parcel$export($14d7a2bbb79e0dae$exports, "CheckoutWidgetTagNames", () => $14d7a2bbb79e0dae$export$75be0f6af9650f2c);
106
+ /**
107
+ * Enum representing the networks supported by Checkout.
108
+ */ let $14d7a2bbb79e0dae$export$95be4ae94445245a;
188
109
  (function(Network) {
189
110
  Network["ETHEREUM"] = "Ethereum";
190
111
  Network["GOERLI"] = "Goerli";
191
112
  Network["POLYGON"] = "Polygon";
192
- })($9234b4c577442a97$export$95be4ae94445245a || ($9234b4c577442a97$export$95be4ae94445245a = {}));
193
- let $9234b4c577442a97$export$c88931fdc51854eb;
113
+ })($14d7a2bbb79e0dae$export$95be4ae94445245a || ($14d7a2bbb79e0dae$export$95be4ae94445245a = {}));
114
+ let $14d7a2bbb79e0dae$export$c88931fdc51854eb;
194
115
  (function(WidgetTheme) {
195
116
  WidgetTheme["LIGHT"] = "light";
196
117
  WidgetTheme["DARK"] = "dark";
197
118
  WidgetTheme["CUSTOM"] = "custom";
198
- })($9234b4c577442a97$export$c88931fdc51854eb || ($9234b4c577442a97$export$c88931fdc51854eb = {}));
119
+ })($14d7a2bbb79e0dae$export$c88931fdc51854eb || ($14d7a2bbb79e0dae$export$c88931fdc51854eb = {}));
120
+ let $14d7a2bbb79e0dae$export$2f61dde3bdc320cb;
121
+ (function(WidgetConnectionProviders) {
122
+ WidgetConnectionProviders["METAMASK"] = "metamask";
123
+ })($14d7a2bbb79e0dae$export$2f61dde3bdc320cb || ($14d7a2bbb79e0dae$export$2f61dde3bdc320cb = {}));
124
+ let $14d7a2bbb79e0dae$export$75be0f6af9650f2c;
125
+ (function(CheckoutWidgetTagNames) {
126
+ CheckoutWidgetTagNames["CONNECT"] = "imtbl-connect";
127
+ CheckoutWidgetTagNames["WALLET"] = "imtbl-wallet";
128
+ CheckoutWidgetTagNames["SWAP"] = "imtbl-swap";
129
+ CheckoutWidgetTagNames["BUY"] = "imtbl-buy";
130
+ CheckoutWidgetTagNames["BRIDGE"] = "imtbl-bridge";
131
+ CheckoutWidgetTagNames["EXAMPLE"] = "imtbl-example";
132
+ })($14d7a2bbb79e0dae$export$75be0f6af9650f2c || ($14d7a2bbb79e0dae$export$75be0f6af9650f2c = {}));
133
+
134
+
135
+ var $1f969328e5988c99$exports = {};
136
+
137
+ $parcel$export($1f969328e5988c99$exports, "BridgeReact", () => $1f969328e5988c99$export$30f61ebf204c69f6);
138
+
139
+
140
+
141
+ function $1f969328e5988c99$export$30f61ebf204c69f6(props) {
142
+ const { providerPreference: providerPreference , fromContractAddress: fromContractAddress , amount: amount , fromNetwork: fromNetwork } = props;
143
+ const config = window.ImtblCheckoutWidgetConfig;
144
+ return /*#__PURE__*/ (jsx)("imtbl-bridge", {
145
+ providerPreference: providerPreference ?? ($14d7a2bbb79e0dae$export$2f61dde3bdc320cb).METAMASK,
146
+ theme: config.theme ?? ($14d7a2bbb79e0dae$export$c88931fdc51854eb).DARK,
147
+ fromContractAddress: fromContractAddress ?? "",
148
+ fromNetwork: fromNetwork ?? "",
149
+ amount: amount ?? ""
150
+ });
151
+ }
152
+
153
+
154
+ var $f22931ca9e2f35b6$exports = {};
155
+
156
+ $parcel$export($f22931ca9e2f35b6$exports, "BuyReact", () => $f22931ca9e2f35b6$export$d13582032b79b401);
157
+
158
+
159
+
160
+ function $f22931ca9e2f35b6$export$d13582032b79b401(props) {
161
+ const { providerPreference: providerPreference , orderId: orderId } = props;
162
+ const config = window.ImtblCheckoutWidgetConfig;
163
+ return /*#__PURE__*/ (jsx)("imtbl-buy", {
164
+ providerPreference: providerPreference ?? ($14d7a2bbb79e0dae$export$2f61dde3bdc320cb).METAMASK,
165
+ theme: config.theme ?? ($14d7a2bbb79e0dae$export$c88931fdc51854eb).DARK,
166
+ orderId: orderId
167
+ });
168
+ }
169
+
170
+
171
+ var $f2083cd30e2f5c56$exports = {};
172
+
173
+ $parcel$export($f2083cd30e2f5c56$exports, "ConnectReact", () => $f2083cd30e2f5c56$export$49d62957f420a1e2);
174
+
175
+
176
+
177
+ function $f2083cd30e2f5c56$export$49d62957f420a1e2(props) {
178
+ const { providerPreference: providerPreference } = props;
179
+ const config = window.ImtblCheckoutWidgetConfig;
180
+ return /*#__PURE__*/ (jsx)("imtbl-connect", {
181
+ providerPreference: providerPreference ?? ($14d7a2bbb79e0dae$export$2f61dde3bdc320cb).METAMASK,
182
+ theme: config.theme ?? ($14d7a2bbb79e0dae$export$c88931fdc51854eb).DARK
183
+ });
184
+ }
185
+
186
+
187
+ var $a4fbb8e3a6aeff58$exports = {};
188
+
189
+ $parcel$export($a4fbb8e3a6aeff58$exports, "SwapReact", () => $a4fbb8e3a6aeff58$export$971e031379577f4);
190
+
191
+
192
+
193
+ function $a4fbb8e3a6aeff58$export$971e031379577f4(props) {
194
+ const { providerPreference: providerPreference , fromContractAddress: fromContractAddress , amount: amount , toContractAddress: toContractAddress } = props;
195
+ const config = window.ImtblCheckoutWidgetConfig;
196
+ return /*#__PURE__*/ (jsx)("imtbl-swap", {
197
+ providerPreference: providerPreference ?? ($14d7a2bbb79e0dae$export$2f61dde3bdc320cb).METAMASK,
198
+ theme: config.theme ?? ($14d7a2bbb79e0dae$export$c88931fdc51854eb).DARK,
199
+ fromContractAddress: fromContractAddress ?? "",
200
+ toContractAddress: toContractAddress ?? "",
201
+ amount: amount ?? ""
202
+ });
203
+ }
204
+
205
+
206
+ var $89d55ace0f8f1c07$exports = {};
207
+
208
+ $parcel$export($89d55ace0f8f1c07$exports, "WalletReact", () => $89d55ace0f8f1c07$export$ceaac94f34dba154);
209
+
210
+
211
+
212
+ function $89d55ace0f8f1c07$export$ceaac94f34dba154(props) {
213
+ const { providerPreference: providerPreference , isBridgeEnabled: isBridgeEnabled , isOnRampEnabled: isOnRampEnabled , isSwapEnabled: isSwapEnabled } = props;
214
+ const config = window.ImtblCheckoutWidgetConfig;
215
+ // isOnRampEnabled, isBridgeEnabled, isSwapEnabled is a boolean type for better devExp
216
+ // converting them to string for compatible webComponent properties
217
+ return /*#__PURE__*/ (jsx)("imtbl-wallet", {
218
+ providerPreference: providerPreference ?? ($14d7a2bbb79e0dae$export$2f61dde3bdc320cb).METAMASK,
219
+ theme: config.theme ?? ($14d7a2bbb79e0dae$export$c88931fdc51854eb).DARK,
220
+ isBridgeEnabled: isBridgeEnabled?.toString(),
221
+ isSwapEnabled: isSwapEnabled?.toString(),
222
+ isOnRampEnabled: isOnRampEnabled?.toString()
223
+ });
224
+ }
225
+
226
+
227
+ var $d087956fd1002f80$exports = {};
228
+
229
+ $parcel$export($d087956fd1002f80$exports, "ExampleReact", () => $d087956fd1002f80$export$fa517eee6594d26c);
230
+
231
+
232
+
233
+ function $d087956fd1002f80$export$fa517eee6594d26c(props) {
234
+ const { providerPreference: providerPreference , fromContractAddress: fromContractAddress , amount: amount , fromNetwork: fromNetwork } = props;
235
+ const config = window.ImtblCheckoutWidgetConfig;
236
+ return /*#__PURE__*/ (jsx)("imtbl-example", {
237
+ providerPreference: providerPreference ?? ($14d7a2bbb79e0dae$export$2f61dde3bdc320cb).METAMASK,
238
+ theme: config.theme ?? ($14d7a2bbb79e0dae$export$c88931fdc51854eb).DARK
239
+ });
240
+ }
241
+
242
+
243
+ var $fa90757d8d7a0962$exports = {};
244
+
245
+ $parcel$export($fa90757d8d7a0962$exports, "CheckoutWidgets", () => $fa90757d8d7a0962$export$af210a0808087845);
246
+ $parcel$export($fa90757d8d7a0962$exports, "UpdateConfig", () => $fa90757d8d7a0962$export$bf1548ba7e61c17f);
247
+ $parcel$export($fa90757d8d7a0962$exports, "SetProvider", () => $fa90757d8d7a0962$export$931068bc678f0d73);
248
+ function $fa90757d8d7a0962$export$af210a0808087845(config) {
249
+ var checkoutWidgetJS = document.createElement("script");
250
+ checkoutWidgetJS.setAttribute("src", "http://localhost:3000/lib/js/imtbl-checkout.js");
251
+ document.head.appendChild(checkoutWidgetJS);
252
+ window.ImtblCheckoutWidgetConfig = config;
253
+ }
254
+ function $fa90757d8d7a0962$export$bf1548ba7e61c17f(config) {
255
+ window.ImtblCheckoutWidgetConfig = config;
256
+ }
257
+ function $fa90757d8d7a0962$export$931068bc678f0d73(tagName, provider) {
258
+ if (!provider) {
259
+ console.error("no provider parsed");
260
+ return;
261
+ }
262
+ const elements = document.getElementsByTagName(tagName);
263
+ const widget = elements[0];
264
+ let attempts = 0;
265
+ const maxAttempts = 10;
266
+ let timer;
267
+ const attemptToSetProvider = ()=>{
268
+ try {
269
+ widget.setProvider(provider);
270
+ window.clearInterval(timer);
271
+ } catch (err) {
272
+ attempts++;
273
+ if (attempts >= maxAttempts) {
274
+ window.clearInterval(timer);
275
+ console.error("failed to set the provider");
276
+ }
277
+ }
278
+ };
279
+ timer = window.setInterval(attemptToSetProvider, 10);
280
+ attemptToSetProvider();
281
+ }
199
282
 
200
- export { $28a5fdc2f5e6c742$export$d1bfa21f7c76447a as BridgeEventType, $ede253beebe0de4a$export$90db5fe1be5993c1 as BuyEventType, $d71a87afc3136184$export$e72e7f9969a47dd3 as ConnectEventType, $d176a05e966364ba$export$3bfad4d03ada24c4 as ConnectionProviders, $88e4c575901cd68c$export$5a0ace85cae72d45 as IMTBLWidgetEvents, $9234b4c577442a97$export$95be4ae94445245a as Network, $5d497088f13bb116$export$140a49745ab55563 as SwapEventType, $9d0f1783d4d36e8a$export$d9be06b70b28c742 as WalletEventType, $9234b4c577442a97$export$c88931fdc51854eb as WidgetTheme };
283
+ export { $15cc9e120aa6f3bf$export$d1bfa21f7c76447a as BridgeEventType, $1f969328e5988c99$export$30f61ebf204c69f6 as BridgeReact, $98cbcca465beec95$export$90db5fe1be5993c1 as BuyEventType, $f22931ca9e2f35b6$export$d13582032b79b401 as BuyReact, $14d7a2bbb79e0dae$export$75be0f6af9650f2c as CheckoutWidgetTagNames, $fa90757d8d7a0962$export$af210a0808087845 as CheckoutWidgets, $a85ecdbd885c58ad$export$e72e7f9969a47dd3 as ConnectEventType, $f2083cd30e2f5c56$export$49d62957f420a1e2 as ConnectReact, $d087956fd1002f80$export$fa517eee6594d26c as ExampleReact, $207ed853f11d19d5$export$5a0ace85cae72d45 as IMTBLWidgetEvents, $14d7a2bbb79e0dae$export$95be4ae94445245a as Network, $66ceef112c0ee49e$export$66ec39c0924078d8 as OnRampEventType, $fa90757d8d7a0962$export$931068bc678f0d73 as SetProvider, $53d219e7f6bf0cd6$export$140a49745ab55563 as SwapEventType, $a4fbb8e3a6aeff58$export$971e031379577f4 as SwapReact, $fa90757d8d7a0962$export$bf1548ba7e61c17f as UpdateConfig, $77b6aac5c353d4a9$export$d9be06b70b28c742 as WalletEventType, $89d55ace0f8f1c07$export$ceaac94f34dba154 as WalletReact, $14d7a2bbb79e0dae$export$2f61dde3bdc320cb as WidgetConnectionProviders, $14d7a2bbb79e0dae$export$c88931fdc51854eb as WidgetTheme };
@@ -9985,7 +9985,7 @@ declare class ImmutableXClient {
9985
9985
  getDeposit(request: DepositsApiGetDepositRequest): Promise<Deposit>;
9986
9986
  /**
9987
9987
  * Get a list of Deposits
9988
- * @param request - optional request object containing the parameters to be provided in the API request
9988
+ * @param request - optional object containing the parameters to be provided in the API request
9989
9989
  * @returns a promise that resolves with the requested list of Deposits
9990
9990
  * @throws {@link index.IMXError}
9991
9991
  */
@@ -10006,7 +10006,7 @@ declare class ImmutableXClient {
10006
10006
  getAsset(request: AssetsApiGetAssetRequest): Promise<Asset>;
10007
10007
  /**
10008
10008
  * Get a list of Assets
10009
- * @param request - optional request object containing the parameters to be provided in the API request
10009
+ * @param request - optional object containing the parameters to be provided in the API request
10010
10010
  * @returns a promise that resolves with the requested list of Assets
10011
10011
  * @throws {@link index.IMXError}
10012
10012
  */
@@ -10035,7 +10035,7 @@ declare class ImmutableXClient {
10035
10035
  listCollectionFilters(request: CollectionsApiListCollectionFiltersRequest): Promise<CollectionFilter>;
10036
10036
  /**
10037
10037
  * Get a list of Collections
10038
- * @param request - optional request object containing the parameters to be provided in the API request
10038
+ * @param request - optional object containing the parameters to be provided in the API request
10039
10039
  * @returns a promise that resolves with the requested list of Collections
10040
10040
  * @throws {@link index.IMXError}
10041
10041
  */
@@ -10161,7 +10161,7 @@ declare class ImmutableXClient {
10161
10161
  getMint(request: MintsApiGetMintRequest): Promise<Mint[]>;
10162
10162
  /**
10163
10163
  * Get a list of Mints
10164
- * @param request optional request object containing the parameters to be provided in the API request
10164
+ * @param request optional object containing the parameters to be provided in the API request
10165
10165
  * @returns a promise that resolves with the requested list of Mints
10166
10166
  * @throws {@link index.IMXError}
10167
10167
  */
@@ -10176,7 +10176,7 @@ declare class ImmutableXClient {
10176
10176
  mint(ethSigner: Signer, request: UnsignedMintRequest): Promise<MintTokensResponse>;
10177
10177
  /**
10178
10178
  * Get a list of Withdrawals
10179
- * @param request - optional request object containing the parameters to be provided in the API request
10179
+ * @param request - optional object containing the parameters to be provided in the API request
10180
10180
  * @returns a promise that resolves with the requested list of Withdrawals
10181
10181
  * @throws {@link index.IMXError}
10182
10182
  */
@@ -10197,7 +10197,7 @@ declare class ImmutableXClient {
10197
10197
  getOrder(request: OrdersApiGetOrderRequest): Promise<Order>;
10198
10198
  /**
10199
10199
  * Get a list of Orders
10200
- * @param request - optional request object containing the parameters to be provided in the API request
10200
+ * @param request - optional object containing the parameters to be provided in the API request
10201
10201
  * @returns a promise that resolves with the requested list of Orders
10202
10202
  * @throws {@link index.IMXError}
10203
10203
  */
@@ -10211,7 +10211,7 @@ declare class ImmutableXClient {
10211
10211
  getTrade(request: TradesApiGetTradeRequest): Promise<Trade>;
10212
10212
  /**
10213
10213
  * Get a list of Trades
10214
- * @param request - optional request object containing the parameters to be provided in the API request
10214
+ * @param request - optional object containing the parameters to be provided in the API request
10215
10215
  * @returns a promise that resolves with the requested list of Trades
10216
10216
  * @throws {@link index.IMXError}
10217
10217
  */
@@ -10225,7 +10225,7 @@ declare class ImmutableXClient {
10225
10225
  getToken(request: TokensApiGetTokenRequest): Promise<TokenDetails>;
10226
10226
  /**
10227
10227
  * Get a list of Tokens
10228
- * @param request - optional request object containing the parameters to be provided in the API request
10228
+ * @param request - optional object containing the parameters to be provided in the API request
10229
10229
  * @returns a promise that resolves with the requested list of Tokens
10230
10230
  * @throws {@link index.IMXError}
10231
10231
  */
@@ -10239,7 +10239,7 @@ declare class ImmutableXClient {
10239
10239
  getTransfer(request: TransfersApiGetTransferRequest): Promise<Transfer>;
10240
10240
  /**
10241
10241
  * Get a list of Transfers
10242
- * @param request - optional request object containing the parameters to be provided in the API request
10242
+ * @param request - optional object containing the parameters to be provided in the API request
10243
10243
  * @returns a promise that resolves with the requested list of Transfers
10244
10244
  * @throws {@link index.IMXError}
10245
10245
  */