@imtbl/sdk 0.1.7 → 0.1.8-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 +1598 -0
- package/dist/blockchain-data.js +1258 -0
- package/dist/browser/checkout.js +2 -0
- package/dist/checkout_sdk.d.ts +967 -0
- package/dist/checkout_sdk.js +752 -0
- package/dist/checkout_widgets.d.ts +15428 -0
- package/dist/checkout_widgets.js +281 -0
- package/dist/erc20.d.ts +3 -0
- package/dist/erc20.js +4 -0
- package/dist/erc721-permissioned-mintable.d.ts +3 -0
- package/dist/erc721-permissioned-mintable.js +4 -0
- package/dist/immutablex_client.js +15 -6
- package/dist/index.cjs +5279 -1157
- package/dist/index.d.ts +23513 -6293
- package/dist/index.js +5690 -1584
- package/dist/orderbook.d.ts +64 -0
- package/dist/orderbook.js +1848 -0
- package/dist/passport.d.ts +1 -0
- package/dist/passport.js +93 -102
- package/package.json +34 -2
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
|
|
4
|
+
var Environment;
|
|
5
|
+
(function (Environment) {
|
|
6
|
+
Environment["PRODUCTION"] = "production";
|
|
7
|
+
Environment["SANDBOX"] = "sandbox";
|
|
8
|
+
})(Environment || (Environment = {}));
|
|
9
|
+
|
|
10
|
+
function $parcel$export(e, n, v, s) {
|
|
11
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
12
|
+
}
|
|
13
|
+
// Definitions | Events
|
|
14
|
+
var $207ed853f11d19d5$exports = {};
|
|
15
|
+
|
|
16
|
+
$parcel$export($207ed853f11d19d5$exports, "IMTBLWidgetEvents", () => $207ed853f11d19d5$export$5a0ace85cae72d45);
|
|
17
|
+
let $207ed853f11d19d5$export$5a0ace85cae72d45;
|
|
18
|
+
(function(IMTBLWidgetEvents) {
|
|
19
|
+
IMTBLWidgetEvents["IMTBL_CONNECT_WIDGET_EVENT"] = "imtbl-connect-widget";
|
|
20
|
+
IMTBLWidgetEvents["IMTBL_WALLET_WIDGET_EVENT"] = "imtbl-wallet-widget";
|
|
21
|
+
IMTBLWidgetEvents["IMTBL_SWAP_WIDGET_EVENT"] = "imtbl-swap-widget";
|
|
22
|
+
IMTBLWidgetEvents["IMTBL_BRIDGE_WIDGET_EVENT"] = "imtbl-bridge-widget";
|
|
23
|
+
IMTBLWidgetEvents["IMTBL_BUY_WIDGET_EVENT"] = "imtbl-buy-widget";
|
|
24
|
+
IMTBLWidgetEvents["IMTBL_ONRAMP_WIDGET_EVENT"] = "imtbl-onramp-widget";
|
|
25
|
+
})($207ed853f11d19d5$export$5a0ace85cae72d45 || ($207ed853f11d19d5$export$5a0ace85cae72d45 = {}));
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var $a85ecdbd885c58ad$exports = {};
|
|
29
|
+
|
|
30
|
+
$parcel$export($a85ecdbd885c58ad$exports, "ConnectEventType", () => $a85ecdbd885c58ad$export$e72e7f9969a47dd3);
|
|
31
|
+
let $a85ecdbd885c58ad$export$e72e7f9969a47dd3;
|
|
32
|
+
(function(ConnectEventType) {
|
|
33
|
+
ConnectEventType["CLOSE_WIDGET"] = "close-widget";
|
|
34
|
+
ConnectEventType["SUCCESS"] = "success";
|
|
35
|
+
ConnectEventType["FAILURE"] = "failure";
|
|
36
|
+
})($a85ecdbd885c58ad$export$e72e7f9969a47dd3 || ($a85ecdbd885c58ad$export$e72e7f9969a47dd3 = {}));
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
var $77b6aac5c353d4a9$exports = {};
|
|
40
|
+
|
|
41
|
+
$parcel$export($77b6aac5c353d4a9$exports, "WalletEventType", () => $77b6aac5c353d4a9$export$d9be06b70b28c742);
|
|
42
|
+
/**
|
|
43
|
+
* Enum representing possible Wallet Widget event types.
|
|
44
|
+
*/ let $77b6aac5c353d4a9$export$d9be06b70b28c742;
|
|
45
|
+
(function(WalletEventType) {
|
|
46
|
+
WalletEventType["CLOSE_WIDGET"] = "close-widget";
|
|
47
|
+
WalletEventType["NETWORK_SWITCH"] = "network-switch";
|
|
48
|
+
WalletEventType["DISCONNECT_WALLET"] = "disconnect-wallet";
|
|
49
|
+
})($77b6aac5c353d4a9$export$d9be06b70b28c742 || ($77b6aac5c353d4a9$export$d9be06b70b28c742 = {}));
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var $53d219e7f6bf0cd6$exports = {};
|
|
53
|
+
|
|
54
|
+
$parcel$export($53d219e7f6bf0cd6$exports, "SwapEventType", () => $53d219e7f6bf0cd6$export$140a49745ab55563);
|
|
55
|
+
/**
|
|
56
|
+
* Enum representing possible Swap Widget event types.
|
|
57
|
+
*/ let $53d219e7f6bf0cd6$export$140a49745ab55563;
|
|
58
|
+
(function(SwapEventType) {
|
|
59
|
+
SwapEventType["CLOSE_WIDGET"] = "close-widget";
|
|
60
|
+
SwapEventType["SUCCESS"] = "success";
|
|
61
|
+
SwapEventType["FAILURE"] = "failure";
|
|
62
|
+
SwapEventType["REJECTED"] = "rejected";
|
|
63
|
+
})($53d219e7f6bf0cd6$export$140a49745ab55563 || ($53d219e7f6bf0cd6$export$140a49745ab55563 = {}));
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
var $15cc9e120aa6f3bf$exports = {};
|
|
67
|
+
|
|
68
|
+
$parcel$export($15cc9e120aa6f3bf$exports, "BridgeEventType", () => $15cc9e120aa6f3bf$export$d1bfa21f7c76447a);
|
|
69
|
+
/**
|
|
70
|
+
* Enum of possible Bridge Widget event types.
|
|
71
|
+
*/ let $15cc9e120aa6f3bf$export$d1bfa21f7c76447a;
|
|
72
|
+
(function(BridgeEventType) {
|
|
73
|
+
BridgeEventType["CLOSE_WIDGET"] = "close-widget";
|
|
74
|
+
BridgeEventType["SUCCESS"] = "success";
|
|
75
|
+
BridgeEventType["FAILURE"] = "failure";
|
|
76
|
+
})($15cc9e120aa6f3bf$export$d1bfa21f7c76447a || ($15cc9e120aa6f3bf$export$d1bfa21f7c76447a = {}));
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
var $98cbcca465beec95$exports = {};
|
|
80
|
+
|
|
81
|
+
$parcel$export($98cbcca465beec95$exports, "BuyEventType", () => $98cbcca465beec95$export$90db5fe1be5993c1);
|
|
82
|
+
/**
|
|
83
|
+
* Enum representing possible Buy Widget event types.
|
|
84
|
+
*/ let $98cbcca465beec95$export$90db5fe1be5993c1;
|
|
85
|
+
(function(BuyEventType) {
|
|
86
|
+
BuyEventType["CLOSE_WIDGET"] = "close-widget";
|
|
87
|
+
BuyEventType["SUCCESS"] = "success";
|
|
88
|
+
BuyEventType["FAILURE"] = "failure";
|
|
89
|
+
BuyEventType["NOT_CONNECTED"] = "not_connected";
|
|
90
|
+
})($98cbcca465beec95$export$90db5fe1be5993c1 || ($98cbcca465beec95$export$90db5fe1be5993c1 = {}));
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
var $ad06b030b1a3ba34$exports = {};
|
|
94
|
+
|
|
95
|
+
$parcel$export($ad06b030b1a3ba34$exports, "OrchestrationEventType", () => $ad06b030b1a3ba34$export$b80d2daf830437b9);
|
|
96
|
+
let $ad06b030b1a3ba34$export$b80d2daf830437b9;
|
|
97
|
+
(function(OrchestrationEventType) {
|
|
98
|
+
OrchestrationEventType["REQUEST_CONNECT"] = "request-connect";
|
|
99
|
+
OrchestrationEventType["REQUEST_WALLET"] = "request-wallet";
|
|
100
|
+
OrchestrationEventType["REQUEST_SWAP"] = "request-swap";
|
|
101
|
+
OrchestrationEventType["REQUEST_BRIDGE"] = "request-bridge";
|
|
102
|
+
OrchestrationEventType["REQUEST_ONRAMP"] = "request-onramp";
|
|
103
|
+
})($ad06b030b1a3ba34$export$b80d2daf830437b9 || ($ad06b030b1a3ba34$export$b80d2daf830437b9 = {}));
|
|
104
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
105
|
+
|
|
106
|
+
var $045213b18e9f1f94$exports = {};
|
|
107
|
+
|
|
108
|
+
$parcel$export($045213b18e9f1f94$exports, "Network", () => $045213b18e9f1f94$export$95be4ae94445245a);
|
|
109
|
+
$parcel$export($045213b18e9f1f94$exports, "WidgetTheme", () => $045213b18e9f1f94$export$c88931fdc51854eb);
|
|
110
|
+
$parcel$export($045213b18e9f1f94$exports, "CheckoutWidgetTagNames", () => $045213b18e9f1f94$export$75be0f6af9650f2c);
|
|
111
|
+
/**
|
|
112
|
+
* Enum representing the networks supported by Checkout.
|
|
113
|
+
*/ let $045213b18e9f1f94$export$95be4ae94445245a;
|
|
114
|
+
(function(Network) {
|
|
115
|
+
Network["ETHEREUM"] = "Ethereum";
|
|
116
|
+
Network["SEPOLIA"] = "Sepolia";
|
|
117
|
+
Network["IMTBL_ZKEVM_TESTNET"] = "Immutable zkEVM Testnet";
|
|
118
|
+
Network["IMTBL_ZKEVM_DEVNET"] = "Immutable zkEVM Devnet";
|
|
119
|
+
Network["POLYGON_ZKEVM_TESTNET"] = "Polygon zkEVM Testnet";
|
|
120
|
+
Network["POLYGON_ZKEVM"] = "Polygon zkEVM";
|
|
121
|
+
})($045213b18e9f1f94$export$95be4ae94445245a || ($045213b18e9f1f94$export$95be4ae94445245a = {}));
|
|
122
|
+
let $045213b18e9f1f94$export$c88931fdc51854eb;
|
|
123
|
+
(function(WidgetTheme) {
|
|
124
|
+
WidgetTheme["LIGHT"] = "light";
|
|
125
|
+
WidgetTheme["DARK"] = "dark";
|
|
126
|
+
WidgetTheme["CUSTOM"] = "custom";
|
|
127
|
+
})($045213b18e9f1f94$export$c88931fdc51854eb || ($045213b18e9f1f94$export$c88931fdc51854eb = {}));
|
|
128
|
+
let $045213b18e9f1f94$export$75be0f6af9650f2c;
|
|
129
|
+
(function(CheckoutWidgetTagNames) {
|
|
130
|
+
CheckoutWidgetTagNames["CONNECT"] = "imtbl-connect";
|
|
131
|
+
CheckoutWidgetTagNames["WALLET"] = "imtbl-wallet";
|
|
132
|
+
CheckoutWidgetTagNames["SWAP"] = "imtbl-swap";
|
|
133
|
+
CheckoutWidgetTagNames["BUY"] = "imtbl-buy";
|
|
134
|
+
CheckoutWidgetTagNames["BRIDGE"] = "imtbl-bridge";
|
|
135
|
+
CheckoutWidgetTagNames["EXAMPLE"] = "imtbl-example";
|
|
136
|
+
})($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
var $1f969328e5988c99$exports = {};
|
|
140
|
+
|
|
141
|
+
$parcel$export($1f969328e5988c99$exports, "BridgeReact", () => $1f969328e5988c99$export$30f61ebf204c69f6);
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
function $1f969328e5988c99$export$30f61ebf204c69f6(props) {
|
|
145
|
+
const { providerPreference: providerPreference , fromContractAddress: fromContractAddress , amount: amount , fromNetwork: fromNetwork } = props;
|
|
146
|
+
const config = window.ImtblCheckoutWidgetConfig;
|
|
147
|
+
return /*#__PURE__*/ (jsx)("imtbl-bridge", {
|
|
148
|
+
widgetConfig: config,
|
|
149
|
+
providerPreference: providerPreference,
|
|
150
|
+
fromContractAddress: fromContractAddress ?? "",
|
|
151
|
+
fromNetwork: fromNetwork ?? "",
|
|
152
|
+
amount: amount ?? ""
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
var $f22931ca9e2f35b6$exports = {};
|
|
158
|
+
|
|
159
|
+
$parcel$export($f22931ca9e2f35b6$exports, "BuyReact", () => $f22931ca9e2f35b6$export$d13582032b79b401);
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
function $f22931ca9e2f35b6$export$d13582032b79b401(props) {
|
|
163
|
+
const { providerPreference: providerPreference , orderId: orderId } = props;
|
|
164
|
+
const config = window.ImtblCheckoutWidgetConfig;
|
|
165
|
+
return /*#__PURE__*/ (jsx)("imtbl-buy", {
|
|
166
|
+
widgetConfig: config,
|
|
167
|
+
providerPreference: providerPreference,
|
|
168
|
+
orderId: orderId
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
var $f2083cd30e2f5c56$exports = {};
|
|
174
|
+
|
|
175
|
+
$parcel$export($f2083cd30e2f5c56$exports, "ConnectReact", () => $f2083cd30e2f5c56$export$49d62957f420a1e2);
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
function $f2083cd30e2f5c56$export$49d62957f420a1e2(props) {
|
|
179
|
+
const { providerPreference: providerPreference } = props;
|
|
180
|
+
const config = window.ImtblCheckoutWidgetConfig;
|
|
181
|
+
return /*#__PURE__*/ (jsx)("imtbl-connect", {
|
|
182
|
+
widgetConfig: config,
|
|
183
|
+
providerPreference: providerPreference ?? "metamask"
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
var $a4fbb8e3a6aeff58$exports = {};
|
|
189
|
+
|
|
190
|
+
$parcel$export($a4fbb8e3a6aeff58$exports, "SwapReact", () => $a4fbb8e3a6aeff58$export$971e031379577f4);
|
|
191
|
+
/* eslint-disable max-len */
|
|
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
|
+
widgetConfig: config,
|
|
198
|
+
providerPreference: providerPreference,
|
|
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
|
+
function $89d55ace0f8f1c07$export$ceaac94f34dba154(props) {
|
|
212
|
+
const { providerPreference: providerPreference , useConnectWidget: useConnectWidget } = props;
|
|
213
|
+
const config = window.ImtblCheckoutWidgetConfig;
|
|
214
|
+
return /*#__PURE__*/ (jsx)("imtbl-wallet", {
|
|
215
|
+
widgetConfig: config,
|
|
216
|
+
useConnectWidget: useConnectWidget?.toString(),
|
|
217
|
+
providerPreference: providerPreference ?? "metamask"
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
var $d087956fd1002f80$exports = {};
|
|
223
|
+
|
|
224
|
+
$parcel$export($d087956fd1002f80$exports, "ExampleReact", () => $d087956fd1002f80$export$fa517eee6594d26c);
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
function $d087956fd1002f80$export$fa517eee6594d26c(props) {
|
|
229
|
+
const { providerPreference: // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
230
|
+
providerPreference , environment: environment , theme: theme } = props;
|
|
231
|
+
return /*#__PURE__*/ (jsx)("imtbl-example", {
|
|
232
|
+
environment: environment ?? (Environment).SANDBOX,
|
|
233
|
+
theme: theme ?? "dark",
|
|
234
|
+
providerPreference: providerPreference
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
var $430e3eda76fa4d5f$exports = {};
|
|
240
|
+
|
|
241
|
+
$parcel$export($430e3eda76fa4d5f$exports, "CheckoutWidgets", () => $430e3eda76fa4d5f$export$af210a0808087845);
|
|
242
|
+
$parcel$export($430e3eda76fa4d5f$exports, "UpdateConfig", () => $430e3eda76fa4d5f$export$bf1548ba7e61c17f);
|
|
243
|
+
$parcel$export($430e3eda76fa4d5f$exports, "SetProvider", () => $430e3eda76fa4d5f$export$931068bc678f0d73);
|
|
244
|
+
function $430e3eda76fa4d5f$export$af210a0808087845(config) {
|
|
245
|
+
const checkoutWidgetJS = document.createElement("script");
|
|
246
|
+
checkoutWidgetJS.setAttribute("src", "http://localhost:3000/lib/js/imtbl-checkout.js");
|
|
247
|
+
document.head.appendChild(checkoutWidgetJS);
|
|
248
|
+
window.ImtblCheckoutWidgetConfig = JSON.stringify(config);
|
|
249
|
+
}
|
|
250
|
+
function $430e3eda76fa4d5f$export$bf1548ba7e61c17f(config) {
|
|
251
|
+
window.ImtblCheckoutWidgetConfig = JSON.stringify(config);
|
|
252
|
+
}
|
|
253
|
+
function $430e3eda76fa4d5f$export$931068bc678f0d73(tagName, provider) {
|
|
254
|
+
if (!provider) {
|
|
255
|
+
// eslint-disable-next-line no-console
|
|
256
|
+
console.error("no provider parsed");
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
const elements = document.getElementsByTagName(tagName);
|
|
260
|
+
const widget = elements[0];
|
|
261
|
+
let attempts = 0;
|
|
262
|
+
const maxAttempts = 10;
|
|
263
|
+
let timer;
|
|
264
|
+
const attemptToSetProvider = ()=>{
|
|
265
|
+
try {
|
|
266
|
+
widget.setProvider(provider);
|
|
267
|
+
window.clearInterval(timer);
|
|
268
|
+
} catch (err) {
|
|
269
|
+
attempts++;
|
|
270
|
+
if (attempts >= maxAttempts) {
|
|
271
|
+
window.clearInterval(timer);
|
|
272
|
+
// eslint-disable-next-line no-console
|
|
273
|
+
console.error("failed to set the provider");
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
timer = window.setInterval(attemptToSetProvider, 10);
|
|
278
|
+
attemptToSetProvider();
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export { $15cc9e120aa6f3bf$export$d1bfa21f7c76447a as BridgeEventType, $1f969328e5988c99$export$30f61ebf204c69f6 as BridgeReact, $98cbcca465beec95$export$90db5fe1be5993c1 as BuyEventType, $f22931ca9e2f35b6$export$d13582032b79b401 as BuyReact, $045213b18e9f1f94$export$75be0f6af9650f2c as CheckoutWidgetTagNames, $430e3eda76fa4d5f$export$af210a0808087845 as CheckoutWidgets, $a85ecdbd885c58ad$export$e72e7f9969a47dd3 as ConnectEventType, $f2083cd30e2f5c56$export$49d62957f420a1e2 as ConnectReact, $d087956fd1002f80$export$fa517eee6594d26c as ExampleReact, $207ed853f11d19d5$export$5a0ace85cae72d45 as IMTBLWidgetEvents, $045213b18e9f1f94$export$95be4ae94445245a as Network, $ad06b030b1a3ba34$export$b80d2daf830437b9 as OrchestrationEventType, $430e3eda76fa4d5f$export$931068bc678f0d73 as SetProvider, $53d219e7f6bf0cd6$export$140a49745ab55563 as SwapEventType, $a4fbb8e3a6aeff58$export$971e031379577f4 as SwapReact, $430e3eda76fa4d5f$export$bf1548ba7e61c17f as UpdateConfig, $77b6aac5c353d4a9$export$d9be06b70b28c742 as WalletEventType, $89d55ace0f8f1c07$export$ceaac94f34dba154 as WalletReact, $045213b18e9f1f94$export$c88931fdc51854eb as WidgetTheme };
|
package/dist/erc20.d.ts
ADDED
package/dist/erc20.js
ADDED
|
@@ -8,24 +8,33 @@ var Environment;
|
|
|
8
8
|
})(Environment || (Environment = {}));
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* createImmutableXConfiguration to create a custom ImmutableXConfiguration
|
|
12
|
+
* other than the production and sandbox defined below.
|
|
12
13
|
*/
|
|
13
|
-
const
|
|
14
|
+
const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress, registrationContractAddress, }) => Config.createConfig({
|
|
15
|
+
basePath,
|
|
16
|
+
chainID,
|
|
17
|
+
coreContractAddress,
|
|
18
|
+
registrationContractAddress,
|
|
19
|
+
sdkVersion: 'ts-immutable-sdk-0.1.8-alpha',
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Sets `sdkVersion` at the time of build
|
|
23
|
+
*/
|
|
24
|
+
const production = () => createImmutableXConfiguration({
|
|
14
25
|
basePath: 'https://api.x.immutable.com',
|
|
15
26
|
chainID: 1,
|
|
16
27
|
coreContractAddress: '0x5FDCCA53617f4d2b9134B29090C87D01058e27e9',
|
|
17
28
|
registrationContractAddress: '0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c',
|
|
18
|
-
sdkVersion: 'ts-immutable-sdk-0.0.0',
|
|
19
29
|
});
|
|
20
30
|
/**
|
|
21
|
-
*
|
|
31
|
+
* Sets `sdkVersion` at the time of build
|
|
22
32
|
*/
|
|
23
|
-
const sandbox = () =>
|
|
33
|
+
const sandbox = () => createImmutableXConfiguration({
|
|
24
34
|
basePath: 'https://api.sandbox.x.immutable.com',
|
|
25
35
|
chainID: 5,
|
|
26
36
|
coreContractAddress: '0x7917eDb51ecD6CdB3F9854c3cc593F33de10c623',
|
|
27
37
|
registrationContractAddress: '0x1C97Ada273C9A52253f463042f29117090Cd7D83',
|
|
28
|
-
sdkVersion: 'ts-immutable-sdk-0.0.0',
|
|
29
38
|
});
|
|
30
39
|
class ImxConfiguration {
|
|
31
40
|
immutableXConfig;
|