@imtbl/sdk 0.1.3 → 0.1.4-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/checkout_sdk.d.ts +932 -0
- package/dist/checkout_sdk.js +609 -0
- package/dist/checkout_widgets.d.ts +14458 -0
- package/dist/checkout_widgets.js +200 -0
- package/dist/immutablex_client.js +2 -2
- package/dist/index.cjs +1794 -40
- package/dist/index.d.ts +15188 -8
- package/dist/index.js +1795 -45
- package/dist/passport.d.ts +9935 -154
- package/dist/passport.js +520 -31
- package/dist/provider.d.ts +962 -0
- package/dist/provider.js +1139 -0
- package/package.json +13 -1
|
@@ -0,0 +1,200 @@
|
|
|
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"]}]');
|
|
109
|
+
|
|
110
|
+
function $parcel$export(e, n, v, s) {
|
|
111
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
112
|
+
}
|
|
113
|
+
var $88e4c575901cd68c$exports = {};
|
|
114
|
+
|
|
115
|
+
$parcel$export($88e4c575901cd68c$exports, "IMTBLWidgetEvents", () => $88e4c575901cd68c$export$5a0ace85cae72d45);
|
|
116
|
+
let $88e4c575901cd68c$export$5a0ace85cae72d45;
|
|
117
|
+
(function(IMTBLWidgetEvents) {
|
|
118
|
+
IMTBLWidgetEvents["IMTBL_CONNECT_WIDGET_EVENT"] = "imtbl-connect-widget";
|
|
119
|
+
IMTBLWidgetEvents["IMTBL_WALLET_WIDGET_EVENT"] = "imtbl-wallet-widget";
|
|
120
|
+
IMTBLWidgetEvents["IMTBL_SWAP_WIDGET_EVENT"] = "imtbl-swap-widget";
|
|
121
|
+
IMTBLWidgetEvents["IMTBL_BRIDGE_WIDGET_EVENT"] = "imtbl-bridge-widget";
|
|
122
|
+
IMTBLWidgetEvents["IMTBL_BUY_WIDGET_EVENT"] = "imtbl-buy-widget";
|
|
123
|
+
})($88e4c575901cd68c$export$5a0ace85cae72d45 || ($88e4c575901cd68c$export$5a0ace85cae72d45 = {}));
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
var $d71a87afc3136184$exports = {};
|
|
127
|
+
|
|
128
|
+
$parcel$export($d71a87afc3136184$exports, "ConnectEventType", () => $d71a87afc3136184$export$e72e7f9969a47dd3);
|
|
129
|
+
let $d71a87afc3136184$export$e72e7f9969a47dd3;
|
|
130
|
+
(function(ConnectEventType) {
|
|
131
|
+
ConnectEventType["SUCCESS"] = "success";
|
|
132
|
+
ConnectEventType["FAILURE"] = "failure";
|
|
133
|
+
ConnectEventType["CLOSE_WIDGET"] = "close-widget";
|
|
134
|
+
})($d71a87afc3136184$export$e72e7f9969a47dd3 || ($d71a87afc3136184$export$e72e7f9969a47dd3 = {}));
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
var $9d0f1783d4d36e8a$exports = {};
|
|
138
|
+
|
|
139
|
+
$parcel$export($9d0f1783d4d36e8a$exports, "WalletEventType", () => $9d0f1783d4d36e8a$export$d9be06b70b28c742);
|
|
140
|
+
//wallet widget events
|
|
141
|
+
let $9d0f1783d4d36e8a$export$d9be06b70b28c742;
|
|
142
|
+
(function(WalletEventType) {
|
|
143
|
+
WalletEventType["CLOSE_WIDGET"] = "close-widget";
|
|
144
|
+
WalletEventType["NETWORK_SWITCH"] = "network-switch";
|
|
145
|
+
})($9d0f1783d4d36e8a$export$d9be06b70b28c742 || ($9d0f1783d4d36e8a$export$d9be06b70b28c742 = {}));
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
var $5d497088f13bb116$exports = {};
|
|
149
|
+
|
|
150
|
+
$parcel$export($5d497088f13bb116$exports, "SwapEventType", () => $5d497088f13bb116$export$140a49745ab55563);
|
|
151
|
+
let $5d497088f13bb116$export$140a49745ab55563;
|
|
152
|
+
(function(SwapEventType) {
|
|
153
|
+
SwapEventType["SUCCESS"] = "success";
|
|
154
|
+
SwapEventType["FAILURE"] = "failure";
|
|
155
|
+
})($5d497088f13bb116$export$140a49745ab55563 || ($5d497088f13bb116$export$140a49745ab55563 = {}));
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
var $28a5fdc2f5e6c742$exports = {};
|
|
159
|
+
|
|
160
|
+
$parcel$export($28a5fdc2f5e6c742$exports, "BridgeEventType", () => $28a5fdc2f5e6c742$export$d1bfa21f7c76447a);
|
|
161
|
+
let $28a5fdc2f5e6c742$export$d1bfa21f7c76447a;
|
|
162
|
+
(function(BridgeEventType) {
|
|
163
|
+
BridgeEventType["CLOSE_WIDGET"] = "close-widget";
|
|
164
|
+
BridgeEventType["SUCCESS"] = "success";
|
|
165
|
+
BridgeEventType["FAILURE"] = "failure";
|
|
166
|
+
})($28a5fdc2f5e6c742$export$d1bfa21f7c76447a || ($28a5fdc2f5e6c742$export$d1bfa21f7c76447a = {}));
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
var $ede253beebe0de4a$exports = {};
|
|
170
|
+
|
|
171
|
+
$parcel$export($ede253beebe0de4a$exports, "BuyEventType", () => $ede253beebe0de4a$export$90db5fe1be5993c1);
|
|
172
|
+
let $ede253beebe0de4a$export$90db5fe1be5993c1;
|
|
173
|
+
(function(BuyEventType) {
|
|
174
|
+
BuyEventType["SUCCESS"] = "success";
|
|
175
|
+
BuyEventType["FAILURE"] = "failure";
|
|
176
|
+
BuyEventType["NOT_CONNECTED"] = "not_connected";
|
|
177
|
+
BuyEventType["CLOSE"] = "close";
|
|
178
|
+
})($ede253beebe0de4a$export$90db5fe1be5993c1 || ($ede253beebe0de4a$export$90db5fe1be5993c1 = {}));
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
var $9234b4c577442a97$exports = {};
|
|
182
|
+
|
|
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);
|
|
186
|
+
|
|
187
|
+
let $9234b4c577442a97$export$95be4ae94445245a;
|
|
188
|
+
(function(Network) {
|
|
189
|
+
Network["ETHEREUM"] = "Ethereum";
|
|
190
|
+
Network["GOERLI"] = "Goerli";
|
|
191
|
+
Network["POLYGON"] = "Polygon";
|
|
192
|
+
})($9234b4c577442a97$export$95be4ae94445245a || ($9234b4c577442a97$export$95be4ae94445245a = {}));
|
|
193
|
+
let $9234b4c577442a97$export$c88931fdc51854eb;
|
|
194
|
+
(function(WidgetTheme) {
|
|
195
|
+
WidgetTheme["LIGHT"] = "light";
|
|
196
|
+
WidgetTheme["DARK"] = "dark";
|
|
197
|
+
WidgetTheme["CUSTOM"] = "custom";
|
|
198
|
+
})($9234b4c577442a97$export$c88931fdc51854eb || ($9234b4c577442a97$export$c88931fdc51854eb = {}));
|
|
199
|
+
|
|
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 };
|
|
@@ -14,7 +14,7 @@ const PRODUCTION = () => {
|
|
|
14
14
|
chainID: 1,
|
|
15
15
|
coreContractAddress: '0x5FDCCA53617f4d2b9134B29090C87D01058e27e9',
|
|
16
16
|
registrationContractAddress: '0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c',
|
|
17
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
17
|
+
sdkVersion: 'ts-immutable-sdk-0.1.4-alpha',
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
// Set `sdkVersion` on config
|
|
@@ -24,7 +24,7 @@ const SANDBOX = () => {
|
|
|
24
24
|
chainID: 5,
|
|
25
25
|
coreContractAddress: '0x7917eDb51ecD6CdB3F9854c3cc593F33de10c623',
|
|
26
26
|
registrationContractAddress: '0x1C97Ada273C9A52253f463042f29117090Cd7D83',
|
|
27
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
27
|
+
sdkVersion: 'ts-immutable-sdk-0.1.4-alpha',
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
class ImxConfiguration {
|