@gearbox-protocol/deploy-tools 5.4.4 → 5.5.1
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/index.mjs +640 -229
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1042,20 +1042,35 @@ var require_option = __commonJS({
|
|
|
1042
1042
|
const flagParts = flags.split(/[ |,]+/).concat("guard");
|
|
1043
1043
|
if (shortFlagExp.test(flagParts[0])) shortFlag = flagParts.shift();
|
|
1044
1044
|
if (longFlagExp.test(flagParts[0])) longFlag = flagParts.shift();
|
|
1045
|
-
if (
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1045
|
+
if (!shortFlag && shortFlagExp.test(flagParts[0]))
|
|
1046
|
+
shortFlag = flagParts.shift();
|
|
1047
|
+
if (!shortFlag && longFlagExp.test(flagParts[0])) {
|
|
1048
|
+
shortFlag = longFlag;
|
|
1049
|
+
longFlag = flagParts.shift();
|
|
1050
|
+
}
|
|
1051
|
+
if (flagParts[0].startsWith("-")) {
|
|
1052
|
+
const unsupportedFlag = flagParts[0];
|
|
1053
|
+
const baseError = `option creation failed due to '${unsupportedFlag}' in option flags '${flags}'`;
|
|
1054
|
+
if (/^-[^-][^-]/.test(unsupportedFlag))
|
|
1055
|
+
throw new Error(
|
|
1056
|
+
`${baseError}
|
|
1057
|
+
- a short flag is a single dash and a single character
|
|
1058
|
+
- either use a single dash and a single character (for a short flag)
|
|
1059
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`
|
|
1060
|
+
);
|
|
1061
|
+
if (shortFlagExp.test(unsupportedFlag))
|
|
1062
|
+
throw new Error(`${baseError}
|
|
1063
|
+
- too many short flags`);
|
|
1064
|
+
if (longFlagExp.test(unsupportedFlag))
|
|
1065
|
+
throw new Error(`${baseError}
|
|
1066
|
+
- too many long flags`);
|
|
1067
|
+
throw new Error(`${baseError}
|
|
1068
|
+
- unrecognised flag format`);
|
|
1069
|
+
}
|
|
1070
|
+
if (shortFlag === void 0 && longFlag === void 0)
|
|
1054
1071
|
throw new Error(
|
|
1055
|
-
`
|
|
1072
|
+
`option creation failed due to no flags found in '${flags}'.`
|
|
1056
1073
|
);
|
|
1057
|
-
if (!(shortFlag || longFlag) || flagParts[0].startsWith("-"))
|
|
1058
|
-
throw new Error(`invalid Option flags: '${flags}'`);
|
|
1059
1074
|
return { shortFlag, longFlag };
|
|
1060
1075
|
}
|
|
1061
1076
|
exports2.Option = Option2;
|
|
@@ -1783,7 +1798,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1783
1798
|
* @example
|
|
1784
1799
|
* program
|
|
1785
1800
|
* .option('-p, --pepper', 'add pepper')
|
|
1786
|
-
* .option('
|
|
1801
|
+
* .option('--pt, --pizza-type <TYPE>', 'type of pizza') // required option-argument
|
|
1787
1802
|
* .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default
|
|
1788
1803
|
* .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function
|
|
1789
1804
|
*
|
|
@@ -4244,7 +4259,7 @@ var init_size = __esm({
|
|
|
4244
4259
|
var version2;
|
|
4245
4260
|
var init_version2 = __esm({
|
|
4246
4261
|
"../../node_modules/viem/_esm/errors/version.js"() {
|
|
4247
|
-
version2 = "2.22.
|
|
4262
|
+
version2 = "2.22.10";
|
|
4248
4263
|
}
|
|
4249
4264
|
});
|
|
4250
4265
|
|
|
@@ -7293,7 +7308,7 @@ var init_rpc = __esm({
|
|
|
7293
7308
|
super(cause, {
|
|
7294
7309
|
code: _MethodNotSupportedRpcError.code,
|
|
7295
7310
|
name: "MethodNotSupportedRpcError",
|
|
7296
|
-
shortMessage: `Method${method ? ` "${method}"` : ""} is not
|
|
7311
|
+
shortMessage: `Method${method ? ` "${method}"` : ""} is not supported.`
|
|
7297
7312
|
});
|
|
7298
7313
|
}
|
|
7299
7314
|
};
|
|
@@ -161123,7 +161138,7 @@ var require_version29 = __commonJS({
|
|
|
161123
161138
|
"use strict";
|
|
161124
161139
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
161125
161140
|
exports2.version = void 0;
|
|
161126
|
-
exports2.version = "2.22.
|
|
161141
|
+
exports2.version = "2.22.10";
|
|
161127
161142
|
}
|
|
161128
161143
|
});
|
|
161129
161144
|
|
|
@@ -164886,7 +164901,7 @@ var require_rpc = __commonJS({
|
|
|
164886
164901
|
super(cause, {
|
|
164887
164902
|
code: _MethodNotSupportedRpcError.code,
|
|
164888
164903
|
name: "MethodNotSupportedRpcError",
|
|
164889
|
-
shortMessage: `Method${method ? ` "${method}"` : ""} is not
|
|
164904
|
+
shortMessage: `Method${method ? ` "${method}"` : ""} is not supported.`
|
|
164890
164905
|
});
|
|
164891
164906
|
}
|
|
164892
164907
|
};
|
|
@@ -173601,10 +173616,19 @@ var require_buildRequest = __commonJS({
|
|
|
173601
173616
|
var stringify_js_1 = require_stringify();
|
|
173602
173617
|
function buildRequest2(request, options = {}) {
|
|
173603
173618
|
return async (args, overrideOptions = {}) => {
|
|
173604
|
-
const { dedupe = false, retryDelay = 150, retryCount = 3, uid: uid2 } = {
|
|
173619
|
+
const { dedupe = false, methods, retryDelay = 150, retryCount = 3, uid: uid2 } = {
|
|
173605
173620
|
...options,
|
|
173606
173621
|
...overrideOptions
|
|
173607
173622
|
};
|
|
173623
|
+
const { method } = args;
|
|
173624
|
+
if (methods?.exclude?.includes(method))
|
|
173625
|
+
throw new rpc_js_1.MethodNotSupportedRpcError(new Error("method not supported"), {
|
|
173626
|
+
method
|
|
173627
|
+
});
|
|
173628
|
+
if (methods?.include && !methods.include.includes(method))
|
|
173629
|
+
throw new rpc_js_1.MethodNotSupportedRpcError(new Error("method not supported"), {
|
|
173630
|
+
method
|
|
173631
|
+
});
|
|
173608
173632
|
const requestId = dedupe ? (0, keccak256_js_1.keccak256)((0, toHex_js_1.stringToHex)(`${uid2}.${(0, stringify_js_1.stringify)(args)}`)) : void 0;
|
|
173609
173633
|
return (0, withDedupe_js_1.withDedupe)(() => (0, withRetry_js_1.withRetry)(async () => {
|
|
173610
173634
|
try {
|
|
@@ -173714,7 +173738,7 @@ var require_createTransport = __commonJS({
|
|
|
173714
173738
|
exports2.createTransport = createTransport3;
|
|
173715
173739
|
var buildRequest_js_1 = require_buildRequest();
|
|
173716
173740
|
var uid_js_1 = require_uid();
|
|
173717
|
-
function createTransport3({ key, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
|
|
173741
|
+
function createTransport3({ key, methods, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
|
|
173718
173742
|
const uid2 = (0, uid_js_1.uid)();
|
|
173719
173743
|
return {
|
|
173720
173744
|
config: {
|
|
@@ -173726,7 +173750,7 @@ var require_createTransport = __commonJS({
|
|
|
173726
173750
|
timeout,
|
|
173727
173751
|
type
|
|
173728
173752
|
},
|
|
173729
|
-
request: (0, buildRequest_js_1.buildRequest)(request, { retryCount, retryDelay, uid: uid2 }),
|
|
173753
|
+
request: (0, buildRequest_js_1.buildRequest)(request, { methods, retryCount, retryDelay, uid: uid2 }),
|
|
173730
173754
|
value
|
|
173731
173755
|
};
|
|
173732
173756
|
}
|
|
@@ -173741,9 +173765,10 @@ var require_custom = __commonJS({
|
|
|
173741
173765
|
exports2.custom = custom2;
|
|
173742
173766
|
var createTransport_js_1 = require_createTransport();
|
|
173743
173767
|
function custom2(provider, config = {}) {
|
|
173744
|
-
const { key = "custom", name = "Custom Provider", retryDelay } = config;
|
|
173768
|
+
const { key = "custom", methods, name = "Custom Provider", retryDelay } = config;
|
|
173745
173769
|
return ({ retryCount: defaultRetryCount }) => (0, createTransport_js_1.createTransport)({
|
|
173746
173770
|
key,
|
|
173771
|
+
methods,
|
|
173747
173772
|
name,
|
|
173748
173773
|
request: provider.request.bind(provider),
|
|
173749
173774
|
retryCount: config.retryCount ?? defaultRetryCount,
|
|
@@ -174065,7 +174090,7 @@ var require_http2 = __commonJS({
|
|
|
174065
174090
|
var http_js_1 = require_http();
|
|
174066
174091
|
var createTransport_js_1 = require_createTransport();
|
|
174067
174092
|
function http2(url, config = {}) {
|
|
174068
|
-
const { batch, fetchOptions, key = "http", name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay } = config;
|
|
174093
|
+
const { batch, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay } = config;
|
|
174069
174094
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
|
174070
174095
|
const { batchSize = 1e3, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
|
|
174071
174096
|
const retryCount = config.retryCount ?? retryCount_;
|
|
@@ -174081,6 +174106,7 @@ var require_http2 = __commonJS({
|
|
|
174081
174106
|
});
|
|
174082
174107
|
return (0, createTransport_js_1.createTransport)({
|
|
174083
174108
|
key,
|
|
174109
|
+
methods,
|
|
174084
174110
|
name,
|
|
174085
174111
|
async request({ method, params }) {
|
|
174086
174112
|
const body = { method, params };
|
|
@@ -185149,7 +185175,7 @@ var require_webSocket2 = __commonJS({
|
|
|
185149
185175
|
var webSocket_js_1 = require_webSocket();
|
|
185150
185176
|
var createTransport_js_1 = require_createTransport();
|
|
185151
185177
|
function webSocket(url, config = {}) {
|
|
185152
|
-
const { keepAlive, key = "webSocket", name = "WebSocket JSON-RPC", reconnect, retryDelay } = config;
|
|
185178
|
+
const { keepAlive, key = "webSocket", methods, name = "WebSocket JSON-RPC", reconnect, retryDelay } = config;
|
|
185153
185179
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
|
185154
185180
|
const retryCount = config.retryCount ?? retryCount_;
|
|
185155
185181
|
const timeout = timeout_ ?? config.timeout ?? 1e4;
|
|
@@ -185158,6 +185184,7 @@ var require_webSocket2 = __commonJS({
|
|
|
185158
185184
|
throw new transport_js_1.UrlRequiredError();
|
|
185159
185185
|
return (0, createTransport_js_1.createTransport)({
|
|
185160
185186
|
key,
|
|
185187
|
+
methods,
|
|
185161
185188
|
name,
|
|
185162
185189
|
async request({ method, params }) {
|
|
185163
185190
|
const body = { method, params };
|
|
@@ -187590,7 +187617,7 @@ var require_simulate_tx_accessor3 = __commonJS({
|
|
|
187590
187617
|
"56288": "eip155",
|
|
187591
187618
|
"57000": "eip155",
|
|
187592
187619
|
"57054": "canonical",
|
|
187593
|
-
"57073": "eip155",
|
|
187620
|
+
"57073": ["eip155", "canonical"],
|
|
187594
187621
|
"58008": "canonical",
|
|
187595
187622
|
"59140": ["canonical", "eip155"],
|
|
187596
187623
|
"59144": ["canonical", "eip155"],
|
|
@@ -187627,6 +187654,7 @@ var require_simulate_tx_accessor3 = __commonJS({
|
|
|
187627
187654
|
"534351": ["canonical", "eip155"],
|
|
187628
187655
|
"534352": ["canonical", "eip155"],
|
|
187629
187656
|
"534353": "eip155",
|
|
187657
|
+
"543210": "zksync",
|
|
187630
187658
|
"555666": "canonical",
|
|
187631
187659
|
"622277": "canonical",
|
|
187632
187660
|
"656476": ["eip155", "canonical"],
|
|
@@ -187866,6 +187894,7 @@ var require_simulate_tx_accessor4 = __commonJS({
|
|
|
187866
187894
|
"43114": "canonical",
|
|
187867
187895
|
"44787": "canonical",
|
|
187868
187896
|
"54211": "canonical",
|
|
187897
|
+
"57054": "canonical",
|
|
187869
187898
|
"57073": "canonical",
|
|
187870
187899
|
"59140": "canonical",
|
|
187871
187900
|
"59141": "canonical",
|
|
@@ -188537,7 +188566,7 @@ var require_proxy_factory6 = __commonJS({
|
|
|
188537
188566
|
"56288": "eip155",
|
|
188538
188567
|
"57000": "eip155",
|
|
188539
188568
|
"57054": "canonical",
|
|
188540
|
-
"57073": "eip155",
|
|
188569
|
+
"57073": ["eip155", "canonical"],
|
|
188541
188570
|
"58008": "canonical",
|
|
188542
188571
|
"59140": ["canonical", "eip155"],
|
|
188543
188572
|
"59144": ["canonical", "eip155"],
|
|
@@ -188574,6 +188603,7 @@ var require_proxy_factory6 = __commonJS({
|
|
|
188574
188603
|
"534351": ["canonical", "eip155"],
|
|
188575
188604
|
"534352": ["canonical", "eip155"],
|
|
188576
188605
|
"534353": "eip155",
|
|
188606
|
+
"543210": "zksync",
|
|
188577
188607
|
"555666": "canonical",
|
|
188578
188608
|
"622277": "canonical",
|
|
188579
188609
|
"656476": ["eip155", "canonical"],
|
|
@@ -188925,6 +188955,7 @@ var require_safe_proxy_factory2 = __commonJS({
|
|
|
188925
188955
|
"43114": "canonical",
|
|
188926
188956
|
"44787": "canonical",
|
|
188927
188957
|
"54211": "canonical",
|
|
188958
|
+
"57054": "canonical",
|
|
188928
188959
|
"57073": "canonical",
|
|
188929
188960
|
"59140": "canonical",
|
|
188930
188961
|
"59141": "canonical",
|
|
@@ -189589,7 +189620,7 @@ var require_compatibility_fallback_handler3 = __commonJS({
|
|
|
189589
189620
|
"56288": "eip155",
|
|
189590
189621
|
"57000": "eip155",
|
|
189591
189622
|
"57054": "canonical",
|
|
189592
|
-
"57073": "eip155",
|
|
189623
|
+
"57073": ["eip155", "canonical"],
|
|
189593
189624
|
"58008": "canonical",
|
|
189594
189625
|
"59140": ["canonical", "eip155"],
|
|
189595
189626
|
"59144": ["canonical", "eip155"],
|
|
@@ -189626,6 +189657,7 @@ var require_compatibility_fallback_handler3 = __commonJS({
|
|
|
189626
189657
|
"534351": ["canonical", "eip155"],
|
|
189627
189658
|
"534352": ["canonical", "eip155"],
|
|
189628
189659
|
"534353": "eip155",
|
|
189660
|
+
"543210": "zksync",
|
|
189629
189661
|
"555666": "canonical",
|
|
189630
189662
|
"622277": "canonical",
|
|
189631
189663
|
"656476": ["eip155", "canonical"],
|
|
@@ -190139,6 +190171,7 @@ var require_compatibility_fallback_handler4 = __commonJS({
|
|
|
190139
190171
|
"43114": "canonical",
|
|
190140
190172
|
"44787": "canonical",
|
|
190141
190173
|
"54211": "canonical",
|
|
190174
|
+
"57054": "canonical",
|
|
190142
190175
|
"57073": "canonical",
|
|
190143
190176
|
"59140": "canonical",
|
|
190144
190177
|
"59141": "canonical",
|
|
@@ -190659,6 +190692,7 @@ var require_safe = __commonJS({
|
|
|
190659
190692
|
"43114": "canonical",
|
|
190660
190693
|
"44787": "canonical",
|
|
190661
190694
|
"54211": "canonical",
|
|
190695
|
+
"57054": "canonical",
|
|
190662
190696
|
"57073": "canonical",
|
|
190663
190697
|
"59140": "canonical",
|
|
190664
190698
|
"59141": "canonical",
|
|
@@ -191966,7 +192000,7 @@ var require_gnosis_safe4 = __commonJS({
|
|
|
191966
192000
|
"56288": "eip155",
|
|
191967
192001
|
"57000": "eip155",
|
|
191968
192002
|
"57054": "canonical",
|
|
191969
|
-
"57073": "eip155",
|
|
192003
|
+
"57073": ["eip155", "canonical"],
|
|
191970
192004
|
"58008": "canonical",
|
|
191971
192005
|
"59140": ["canonical", "eip155"],
|
|
191972
192006
|
"59144": ["canonical", "eip155"],
|
|
@@ -192003,6 +192037,7 @@ var require_gnosis_safe4 = __commonJS({
|
|
|
192003
192037
|
"534351": ["canonical", "eip155"],
|
|
192004
192038
|
"534352": ["canonical", "eip155"],
|
|
192005
192039
|
"534353": "eip155",
|
|
192040
|
+
"543210": "zksync",
|
|
192006
192041
|
"555666": "canonical",
|
|
192007
192042
|
"622277": "canonical",
|
|
192008
192043
|
"656476": ["eip155", "canonical"],
|
|
@@ -196058,6 +196093,7 @@ var require_safe_l22 = __commonJS({
|
|
|
196058
196093
|
"43114": "canonical",
|
|
196059
196094
|
"44787": "canonical",
|
|
196060
196095
|
"54211": "canonical",
|
|
196096
|
+
"57054": "canonical",
|
|
196061
196097
|
"57073": "canonical",
|
|
196062
196098
|
"59140": "canonical",
|
|
196063
196099
|
"59141": "canonical",
|
|
@@ -197470,7 +197506,7 @@ var require_gnosis_safe_l22 = __commonJS({
|
|
|
197470
197506
|
"56288": "eip155",
|
|
197471
197507
|
"57000": "eip155",
|
|
197472
197508
|
"57054": "canonical",
|
|
197473
|
-
"57073": "eip155",
|
|
197509
|
+
"57073": ["eip155", "canonical"],
|
|
197474
197510
|
"58008": "canonical",
|
|
197475
197511
|
"59140": ["canonical", "eip155"],
|
|
197476
197512
|
"60808": ["canonical", "eip155"],
|
|
@@ -197507,6 +197543,7 @@ var require_gnosis_safe_l22 = __commonJS({
|
|
|
197507
197543
|
"534351": ["canonical", "eip155"],
|
|
197508
197544
|
"534352": ["canonical", "eip155"],
|
|
197509
197545
|
"534353": "eip155",
|
|
197546
|
+
"543210": "zksync",
|
|
197510
197547
|
"555666": "canonical",
|
|
197511
197548
|
"622277": "canonical",
|
|
197512
197549
|
"656476": ["eip155", "canonical"],
|
|
@@ -198994,7 +199031,7 @@ var require_multi_send5 = __commonJS({
|
|
|
198994
199031
|
"56288": "eip155",
|
|
198995
199032
|
"57000": "eip155",
|
|
198996
199033
|
"57054": "canonical",
|
|
198997
|
-
"57073": "eip155",
|
|
199034
|
+
"57073": ["eip155", "canonical"],
|
|
198998
199035
|
"58008": "canonical",
|
|
198999
199036
|
"59140": ["canonical", "eip155"],
|
|
199000
199037
|
"59144": ["canonical", "eip155"],
|
|
@@ -199031,6 +199068,7 @@ var require_multi_send5 = __commonJS({
|
|
|
199031
199068
|
"534351": ["canonical", "eip155"],
|
|
199032
199069
|
"534352": ["canonical", "eip155"],
|
|
199033
199070
|
"534353": "eip155",
|
|
199071
|
+
"543210": "zksync",
|
|
199034
199072
|
"555666": "canonical",
|
|
199035
199073
|
"622277": "canonical",
|
|
199036
199074
|
"656476": ["eip155", "canonical"],
|
|
@@ -199239,6 +199277,7 @@ var require_multi_send6 = __commonJS({
|
|
|
199239
199277
|
"43114": "canonical",
|
|
199240
199278
|
"44787": "canonical",
|
|
199241
199279
|
"54211": "canonical",
|
|
199280
|
+
"57054": "canonical",
|
|
199242
199281
|
"57073": "canonical",
|
|
199243
199282
|
"59140": "canonical",
|
|
199244
199283
|
"59141": "canonical",
|
|
@@ -199567,7 +199606,7 @@ var require_multi_send_call_only3 = __commonJS({
|
|
|
199567
199606
|
"56288": "eip155",
|
|
199568
199607
|
"57000": "eip155",
|
|
199569
199608
|
"57054": "canonical",
|
|
199570
|
-
"57073": "eip155",
|
|
199609
|
+
"57073": ["eip155", "canonical"],
|
|
199571
199610
|
"58008": "canonical",
|
|
199572
199611
|
"59140": ["canonical", "eip155"],
|
|
199573
199612
|
"59144": ["canonical", "eip155"],
|
|
@@ -199604,6 +199643,7 @@ var require_multi_send_call_only3 = __commonJS({
|
|
|
199604
199643
|
"534351": ["canonical", "eip155"],
|
|
199605
199644
|
"534352": ["canonical", "eip155"],
|
|
199606
199645
|
"534353": "eip155",
|
|
199646
|
+
"543210": "zksync",
|
|
199607
199647
|
"555666": "canonical",
|
|
199608
199648
|
"622277": "canonical",
|
|
199609
199649
|
"656476": ["eip155", "canonical"],
|
|
@@ -199807,6 +199847,7 @@ var require_multi_send_call_only4 = __commonJS({
|
|
|
199807
199847
|
"43114": "canonical",
|
|
199808
199848
|
"44787": "canonical",
|
|
199809
199849
|
"54211": "canonical",
|
|
199850
|
+
"57054": "canonical",
|
|
199810
199851
|
"57073": "canonical",
|
|
199811
199852
|
"59140": "canonical",
|
|
199812
199853
|
"59141": "canonical",
|
|
@@ -200130,7 +200171,7 @@ var require_create_call3 = __commonJS({
|
|
|
200130
200171
|
"56288": "eip155",
|
|
200131
200172
|
"57000": "eip155",
|
|
200132
200173
|
"57054": "canonical",
|
|
200133
|
-
"57073": "eip155",
|
|
200174
|
+
"57073": ["eip155", "canonical"],
|
|
200134
200175
|
"58008": "canonical",
|
|
200135
200176
|
"59140": ["canonical", "eip155"],
|
|
200136
200177
|
"59144": ["canonical", "eip155"],
|
|
@@ -200167,6 +200208,7 @@ var require_create_call3 = __commonJS({
|
|
|
200167
200208
|
"534351": ["canonical", "eip155"],
|
|
200168
200209
|
"534352": ["canonical", "eip155"],
|
|
200169
200210
|
"534353": "eip155",
|
|
200211
|
+
"543210": "zksync",
|
|
200170
200212
|
"555666": "canonical",
|
|
200171
200213
|
"622277": "canonical",
|
|
200172
200214
|
"656476": ["eip155", "canonical"],
|
|
@@ -200423,6 +200465,7 @@ var require_create_call4 = __commonJS({
|
|
|
200423
200465
|
"43114": "canonical",
|
|
200424
200466
|
"44787": "canonical",
|
|
200425
200467
|
"54211": "canonical",
|
|
200468
|
+
"57054": "canonical",
|
|
200426
200469
|
"57073": "canonical",
|
|
200427
200470
|
"59140": "canonical",
|
|
200428
200471
|
"59141": "canonical",
|
|
@@ -200799,7 +200842,7 @@ var require_sign_message_lib3 = __commonJS({
|
|
|
200799
200842
|
"56288": "eip155",
|
|
200800
200843
|
"57000": "eip155",
|
|
200801
200844
|
"57054": "canonical",
|
|
200802
|
-
"57073": "eip155",
|
|
200845
|
+
"57073": ["eip155", "canonical"],
|
|
200803
200846
|
"58008": "canonical",
|
|
200804
200847
|
"59140": ["canonical", "eip155"],
|
|
200805
200848
|
"59144": ["canonical", "eip155"],
|
|
@@ -200836,6 +200879,7 @@ var require_sign_message_lib3 = __commonJS({
|
|
|
200836
200879
|
"534351": ["canonical", "eip155"],
|
|
200837
200880
|
"534352": ["canonical", "eip155"],
|
|
200838
200881
|
"534353": "eip155",
|
|
200882
|
+
"543210": "zksync",
|
|
200839
200883
|
"555666": "canonical",
|
|
200840
200884
|
"622277": "canonical",
|
|
200841
200885
|
"656476": ["eip155", "canonical"],
|
|
@@ -201071,6 +201115,7 @@ var require_sign_message_lib4 = __commonJS({
|
|
|
201071
201115
|
"43114": "canonical",
|
|
201072
201116
|
"44787": "canonical",
|
|
201073
201117
|
"54211": "canonical",
|
|
201118
|
+
"57054": "canonical",
|
|
201074
201119
|
"57073": "canonical",
|
|
201075
201120
|
"59140": "canonical",
|
|
201076
201121
|
"59141": "canonical",
|
|
@@ -201234,6 +201279,7 @@ var require_safe_migration = __commonJS({
|
|
|
201234
201279
|
"43111": "canonical",
|
|
201235
201280
|
"43114": "canonical",
|
|
201236
201281
|
"44787": "canonical",
|
|
201282
|
+
"57054": "canonical",
|
|
201237
201283
|
"57073": "canonical",
|
|
201238
201284
|
"59144": "canonical",
|
|
201239
201285
|
"81457": "canonical",
|
|
@@ -201431,6 +201477,7 @@ var require_safe_to_l2_migration = __commonJS({
|
|
|
201431
201477
|
"43111": "canonical",
|
|
201432
201478
|
"43114": "canonical",
|
|
201433
201479
|
"44787": "canonical",
|
|
201480
|
+
"57054": "canonical",
|
|
201434
201481
|
"57073": "canonical",
|
|
201435
201482
|
"59144": "canonical",
|
|
201436
201483
|
"81457": "canonical",
|
|
@@ -201686,6 +201733,7 @@ var require_safe_to_l2_setup = __commonJS({
|
|
|
201686
201733
|
"43111": "canonical",
|
|
201687
201734
|
"43114": "canonical",
|
|
201688
201735
|
"44787": "canonical",
|
|
201736
|
+
"57054": "canonical",
|
|
201689
201737
|
"57073": "canonical",
|
|
201690
201738
|
"59144": "canonical",
|
|
201691
201739
|
"81457": "canonical",
|
|
@@ -207630,6 +207678,41 @@ var require_alephZero = __commonJS({
|
|
|
207630
207678
|
}
|
|
207631
207679
|
});
|
|
207632
207680
|
|
|
207681
|
+
// ../../node_modules/viem/_cjs/chains/definitions/alephZeroTestnet.js
|
|
207682
|
+
var require_alephZeroTestnet = __commonJS({
|
|
207683
|
+
"../../node_modules/viem/_cjs/chains/definitions/alephZeroTestnet.js"(exports2) {
|
|
207684
|
+
"use strict";
|
|
207685
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
207686
|
+
exports2.alephZeroTestnet = void 0;
|
|
207687
|
+
var defineChain_js_1 = require_defineChain();
|
|
207688
|
+
exports2.alephZeroTestnet = (0, defineChain_js_1.defineChain)({
|
|
207689
|
+
id: 2039,
|
|
207690
|
+
name: "Aleph Zero Testnet",
|
|
207691
|
+
nativeCurrency: { name: "TZERO", symbol: "TZERO", decimals: 18 },
|
|
207692
|
+
rpcUrls: {
|
|
207693
|
+
default: {
|
|
207694
|
+
http: ["https://rpc.alephzero-testnet.gelato.digital"],
|
|
207695
|
+
webSocket: ["wss://ws.alephzero-testnet.gelato.digital"]
|
|
207696
|
+
}
|
|
207697
|
+
},
|
|
207698
|
+
blockExplorers: {
|
|
207699
|
+
default: {
|
|
207700
|
+
name: "Aleph Zero EVM Testnet explorer",
|
|
207701
|
+
url: "https://evm-explorer-testnet.alephzero.org",
|
|
207702
|
+
apiUrl: "https://evm-explorer-testnet.alephzero.org/api"
|
|
207703
|
+
}
|
|
207704
|
+
},
|
|
207705
|
+
contracts: {
|
|
207706
|
+
multicall3: {
|
|
207707
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
207708
|
+
blockCreated: 2861745
|
|
207709
|
+
}
|
|
207710
|
+
},
|
|
207711
|
+
testnet: true
|
|
207712
|
+
});
|
|
207713
|
+
}
|
|
207714
|
+
});
|
|
207715
|
+
|
|
207633
207716
|
// ../../node_modules/viem/_cjs/chains/definitions/alienX.js
|
|
207634
207717
|
var require_alienX = __commonJS({
|
|
207635
207718
|
"../../node_modules/viem/_cjs/chains/definitions/alienX.js"(exports2) {
|
|
@@ -208303,6 +208386,39 @@ var require_arthera = __commonJS({
|
|
|
208303
208386
|
}
|
|
208304
208387
|
});
|
|
208305
208388
|
|
|
208389
|
+
// ../../node_modules/viem/_cjs/chains/definitions/artheraTestnet.js
|
|
208390
|
+
var require_artheraTestnet = __commonJS({
|
|
208391
|
+
"../../node_modules/viem/_cjs/chains/definitions/artheraTestnet.js"(exports2) {
|
|
208392
|
+
"use strict";
|
|
208393
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
208394
|
+
exports2.artheraTestnet = void 0;
|
|
208395
|
+
var defineChain_js_1 = require_defineChain();
|
|
208396
|
+
exports2.artheraTestnet = (0, defineChain_js_1.defineChain)({
|
|
208397
|
+
id: 10243,
|
|
208398
|
+
name: "Arthera Testnet",
|
|
208399
|
+
nativeCurrency: { name: "Arthera", symbol: "AA", decimals: 18 },
|
|
208400
|
+
rpcUrls: {
|
|
208401
|
+
default: {
|
|
208402
|
+
http: ["https://rpc-test.arthera.net"]
|
|
208403
|
+
}
|
|
208404
|
+
},
|
|
208405
|
+
blockExplorers: {
|
|
208406
|
+
default: {
|
|
208407
|
+
name: "Arthera EVM Explorer",
|
|
208408
|
+
url: "https://explorer-test.arthera.net",
|
|
208409
|
+
apiUrl: "https://explorer-test.arthera.net/api"
|
|
208410
|
+
}
|
|
208411
|
+
},
|
|
208412
|
+
contracts: {
|
|
208413
|
+
multicall3: {
|
|
208414
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
208415
|
+
blockCreated: 22051
|
|
208416
|
+
}
|
|
208417
|
+
}
|
|
208418
|
+
});
|
|
208419
|
+
}
|
|
208420
|
+
});
|
|
208421
|
+
|
|
208306
208422
|
// ../../node_modules/viem/_cjs/chains/definitions/assetChain.js
|
|
208307
208423
|
var require_assetChain = __commonJS({
|
|
208308
208424
|
"../../node_modules/viem/_cjs/chains/definitions/assetChain.js"(exports2) {
|
|
@@ -213809,6 +213925,40 @@ var require_gnosisChiado = __commonJS({
|
|
|
213809
213925
|
}
|
|
213810
213926
|
});
|
|
213811
213927
|
|
|
213928
|
+
// ../../node_modules/viem/_cjs/chains/definitions/goat.js
|
|
213929
|
+
var require_goat = __commonJS({
|
|
213930
|
+
"../../node_modules/viem/_cjs/chains/definitions/goat.js"(exports2) {
|
|
213931
|
+
"use strict";
|
|
213932
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
213933
|
+
exports2.goat = void 0;
|
|
213934
|
+
var defineChain_js_1 = require_defineChain();
|
|
213935
|
+
exports2.goat = (0, defineChain_js_1.defineChain)({
|
|
213936
|
+
id: 2345,
|
|
213937
|
+
name: "GOAT",
|
|
213938
|
+
nativeCurrency: {
|
|
213939
|
+
decimals: 18,
|
|
213940
|
+
name: "Bitcoin",
|
|
213941
|
+
symbol: "BTC"
|
|
213942
|
+
},
|
|
213943
|
+
rpcUrls: {
|
|
213944
|
+
default: { http: ["https://rpc.goat.network"] }
|
|
213945
|
+
},
|
|
213946
|
+
blockExplorers: {
|
|
213947
|
+
default: {
|
|
213948
|
+
name: "Goat Explorer",
|
|
213949
|
+
url: "https://explorer.goat.network"
|
|
213950
|
+
}
|
|
213951
|
+
},
|
|
213952
|
+
contracts: {
|
|
213953
|
+
multicall3: {
|
|
213954
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
213955
|
+
blockCreated: 0
|
|
213956
|
+
}
|
|
213957
|
+
}
|
|
213958
|
+
});
|
|
213959
|
+
}
|
|
213960
|
+
});
|
|
213961
|
+
|
|
213812
213962
|
// ../../node_modules/viem/_cjs/chains/definitions/gobi.js
|
|
213813
213963
|
var require_gobi = __commonJS({
|
|
213814
213964
|
"../../node_modules/viem/_cjs/chains/definitions/gobi.js"(exports2) {
|
|
@@ -217771,6 +217921,64 @@ var require_nautilus = __commonJS({
|
|
|
217771
217921
|
}
|
|
217772
217922
|
});
|
|
217773
217923
|
|
|
217924
|
+
// ../../node_modules/viem/_cjs/chains/definitions/near.js
|
|
217925
|
+
var require_near = __commonJS({
|
|
217926
|
+
"../../node_modules/viem/_cjs/chains/definitions/near.js"(exports2) {
|
|
217927
|
+
"use strict";
|
|
217928
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
217929
|
+
exports2.near = void 0;
|
|
217930
|
+
var defineChain_js_1 = require_defineChain();
|
|
217931
|
+
exports2.near = (0, defineChain_js_1.defineChain)({
|
|
217932
|
+
id: 397,
|
|
217933
|
+
name: "NEAR Protocol",
|
|
217934
|
+
nativeCurrency: {
|
|
217935
|
+
decimals: 18,
|
|
217936
|
+
name: "NEAR",
|
|
217937
|
+
symbol: "NEAR"
|
|
217938
|
+
},
|
|
217939
|
+
rpcUrls: {
|
|
217940
|
+
default: { http: ["https://eth-rpc.mainnet.near.org"] }
|
|
217941
|
+
},
|
|
217942
|
+
blockExplorers: {
|
|
217943
|
+
default: {
|
|
217944
|
+
name: "NEAR Explorer",
|
|
217945
|
+
url: "https://eth-explorer.near.org"
|
|
217946
|
+
}
|
|
217947
|
+
},
|
|
217948
|
+
testnet: false
|
|
217949
|
+
});
|
|
217950
|
+
}
|
|
217951
|
+
});
|
|
217952
|
+
|
|
217953
|
+
// ../../node_modules/viem/_cjs/chains/definitions/nearTestnet.js
|
|
217954
|
+
var require_nearTestnet = __commonJS({
|
|
217955
|
+
"../../node_modules/viem/_cjs/chains/definitions/nearTestnet.js"(exports2) {
|
|
217956
|
+
"use strict";
|
|
217957
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
217958
|
+
exports2.nearTestnet = void 0;
|
|
217959
|
+
var defineChain_js_1 = require_defineChain();
|
|
217960
|
+
exports2.nearTestnet = (0, defineChain_js_1.defineChain)({
|
|
217961
|
+
id: 398,
|
|
217962
|
+
name: "NEAR Protocol Testnet",
|
|
217963
|
+
nativeCurrency: {
|
|
217964
|
+
decimals: 18,
|
|
217965
|
+
name: "NEAR",
|
|
217966
|
+
symbol: "NEAR"
|
|
217967
|
+
},
|
|
217968
|
+
rpcUrls: {
|
|
217969
|
+
default: { http: ["https://eth-rpc.testnet.near.org"] }
|
|
217970
|
+
},
|
|
217971
|
+
blockExplorers: {
|
|
217972
|
+
default: {
|
|
217973
|
+
name: "NEAR Explorer",
|
|
217974
|
+
url: "https://eth-explorer-testnet.near.org"
|
|
217975
|
+
}
|
|
217976
|
+
},
|
|
217977
|
+
testnet: true
|
|
217978
|
+
});
|
|
217979
|
+
}
|
|
217980
|
+
});
|
|
217981
|
+
|
|
217774
217982
|
// ../../node_modules/viem/_cjs/chains/definitions/neonDevnet.js
|
|
217775
217983
|
var require_neonDevnet = __commonJS({
|
|
217776
217984
|
"../../node_modules/viem/_cjs/chains/definitions/neonDevnet.js"(exports2) {
|
|
@@ -221422,6 +221630,66 @@ var require_snaxTestnet = __commonJS({
|
|
|
221422
221630
|
}
|
|
221423
221631
|
});
|
|
221424
221632
|
|
|
221633
|
+
// ../../node_modules/viem/_cjs/chains/definitions/soneium.js
|
|
221634
|
+
var require_soneium = __commonJS({
|
|
221635
|
+
"../../node_modules/viem/_cjs/chains/definitions/soneium.js"(exports2) {
|
|
221636
|
+
"use strict";
|
|
221637
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
221638
|
+
exports2.soneium = void 0;
|
|
221639
|
+
var chainConfig_js_1 = require_chainConfig2();
|
|
221640
|
+
var defineChain_js_1 = require_defineChain();
|
|
221641
|
+
var sourceId3 = 1;
|
|
221642
|
+
exports2.soneium = (0, defineChain_js_1.defineChain)({
|
|
221643
|
+
...chainConfig_js_1.chainConfig,
|
|
221644
|
+
id: 1868,
|
|
221645
|
+
name: "Soneium Mainnet",
|
|
221646
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
221647
|
+
rpcUrls: {
|
|
221648
|
+
default: {
|
|
221649
|
+
http: ["https://rpc.soneium.org"]
|
|
221650
|
+
}
|
|
221651
|
+
},
|
|
221652
|
+
blockExplorers: {
|
|
221653
|
+
default: {
|
|
221654
|
+
name: "Blockscout",
|
|
221655
|
+
url: "https://soneium.blockscout.com",
|
|
221656
|
+
apiUrl: "https://soneium.blockscout.com/api"
|
|
221657
|
+
}
|
|
221658
|
+
},
|
|
221659
|
+
contracts: {
|
|
221660
|
+
...chainConfig_js_1.chainConfig.contracts,
|
|
221661
|
+
disputeGameFactory: {
|
|
221662
|
+
[sourceId3]: {
|
|
221663
|
+
address: "0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"
|
|
221664
|
+
}
|
|
221665
|
+
},
|
|
221666
|
+
l2OutputOracle: {
|
|
221667
|
+
[sourceId3]: {
|
|
221668
|
+
address: "0x0000000000000000000000000000000000000000"
|
|
221669
|
+
}
|
|
221670
|
+
},
|
|
221671
|
+
portal: {
|
|
221672
|
+
[sourceId3]: {
|
|
221673
|
+
address: "0x88e529a6ccd302c948689cd5156c83d4614fae92",
|
|
221674
|
+
blockCreated: 7061266
|
|
221675
|
+
}
|
|
221676
|
+
},
|
|
221677
|
+
l1StandardBridge: {
|
|
221678
|
+
[sourceId3]: {
|
|
221679
|
+
address: "0xeb9bf100225c214efc3e7c651ebbadcf85177607",
|
|
221680
|
+
blockCreated: 7061266
|
|
221681
|
+
}
|
|
221682
|
+
},
|
|
221683
|
+
multicall3: {
|
|
221684
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
221685
|
+
blockCreated: 1
|
|
221686
|
+
}
|
|
221687
|
+
},
|
|
221688
|
+
sourceId: sourceId3
|
|
221689
|
+
});
|
|
221690
|
+
}
|
|
221691
|
+
});
|
|
221692
|
+
|
|
221425
221693
|
// ../../node_modules/viem/_cjs/chains/definitions/soneiumMinato.js
|
|
221426
221694
|
var require_soneiumMinato = __commonJS({
|
|
221427
221695
|
"../../node_modules/viem/_cjs/chains/definitions/soneiumMinato.js"(exports2) {
|
|
@@ -224835,16 +225103,17 @@ var require_chains2 = __commonJS({
|
|
|
224835
225103
|
"../../node_modules/viem/_cjs/chains/index.js"(exports2) {
|
|
224836
225104
|
"use strict";
|
|
224837
225105
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
224838
|
-
exports2.
|
|
224839
|
-
exports2.
|
|
224840
|
-
exports2.
|
|
224841
|
-
exports2.
|
|
224842
|
-
exports2.
|
|
224843
|
-
exports2.
|
|
224844
|
-
exports2.
|
|
224845
|
-
exports2.
|
|
224846
|
-
exports2.
|
|
224847
|
-
exports2.
|
|
225106
|
+
exports2.bitgert = exports2.bifrost = exports2.bevmMainnet = exports2.berachainTestnetbArtio = exports2.berachainTestnet = exports2.bearNetworkChainTestnet = exports2.bearNetworkChainMainnet = exports2.beamTestnet = exports2.beam = exports2.baseSepolia = exports2.baseGoerli = exports2.base = exports2.bahamut = exports2.b3Sepolia = exports2.b3 = exports2.avalancheFuji = exports2.avalanche = exports2.auroria = exports2.auroraTestnet = exports2.aurora = exports2.atletaOlympia = exports2.astarZkyoto = exports2.astarZkEVM = exports2.astar = exports2.assetChainTestnet = exports2.assetChain = exports2.artheraTestnet = exports2.arthera = exports2.artelaTestnet = exports2.areonNetworkTestnet = exports2.areonNetwork = exports2.arbitrumSepolia = exports2.arbitrumNova = exports2.arbitrumGoerli = exports2.arbitrum = exports2.apexTestnet = exports2.apeChain = exports2.anvil = exports2.ancient8Sepolia = exports2.ancient8 = exports2.alienxHalTestnet = exports2.alienx = exports2.alephZeroTestnet = exports2.alephZero = exports2.aioz = exports2.adf = exports2.acria = exports2.acala = exports2.abstractTestnet = exports2.abey = void 0;
|
|
225107
|
+
exports2.cronoszkEVMTestnet = exports2.cronoszkEVM = exports2.cronosTestnet = exports2.cronos = exports2.creatorTestnet = exports2.crab = exports2.cornTestnet = exports2.corn = exports2.coreDao = exports2.confluxESpaceTestnet = exports2.confluxESpace = exports2.coinex = exports2.coinbit = exports2.classic = exports2.citreaTestnet = exports2.chips = exports2.chiliz = exports2.chang = exports2.celoAlfajores = exports2.celo = exports2.canto = exports2.cannon = exports2.bxnTestnet = exports2.bxn = exports2.btrTestnet = exports2.btr = exports2.bsquaredTestnet = exports2.bsquared = exports2.bscTestnet = exports2.bscGreenfield = exports2.bsc = exports2.bronosTestnet = exports2.bronos = exports2.bounceBitTestnet = exports2.bounceBit = exports2.botanixTestnet = exports2.boolBetaMainnet = exports2.bobSepolia = exports2.bobaSepolia = exports2.boba = exports2.bob = exports2.blastSepolia = exports2.blast = exports2.bitTorrentTestnet = exports2.bitTorrent = exports2.bitrock = exports2.bitlayerTestnet = exports2.bitlayer = exports2.bitkubTestnet = exports2.bitkub = void 0;
|
|
225108
|
+
exports2.fantomTestnet = exports2.fantomSonicTestnet = exports2.fantom = exports2.exsatTestnet = exports2.exsat = exports2.expanse = exports2.excelonMainnet = exports2.evmosTestnet = exports2.evmos = exports2.etherlinkTestnet = exports2.etherlink = exports2.eosTestnet = exports2.eos = exports2.eon = exports2.enuls = exports2.energy = exports2.elysiumTestnet = exports2.electroneumTestnet = exports2.electroneum = exports2.elastosTestnet = exports2.elastos = exports2.ektaTestnet = exports2.ekta = exports2.edgewareTestnet = exports2.edgeware = exports2.edgelessTestnet = exports2.edgeless = exports2.dymension = exports2.dustboyIoT = exports2.dreyerxTestnet = exports2.dreyerxMainnet = exports2.dosChainTestnet = exports2.dosChain = exports2.dogechain = exports2.dodochainTestnet = exports2.disChain = exports2.diode = exports2.dfk = exports2.degen = exports2.defichainEvmTestnet = exports2.defichainEvm = exports2.dchainTestnet = exports2.dchain = exports2.darwinia = exports2.dailyNetworkTestnet = exports2.dailyNetwork = exports2.cyberTestnet = exports2.cyber = exports2.curtis = exports2.crossbell = void 0;
|
|
225109
|
+
exports2.holesky = exports2.hemiSepolia = exports2.hela = exports2.hederaTestnet = exports2.hederaPreviewnet = exports2.hedera = exports2.hashkeyTestnet = exports2.harmonyOne = exports2.hardhat = exports2.haqqTestedge2 = exports2.haqqMainnet = exports2.ham = exports2.guruTestnet = exports2.guruNetwork = exports2.gravity = exports2.goerli = exports2.godwoken = exports2.goChain = exports2.gobi = exports2.goat = exports2.gnosisChiado = exports2.gnosis = exports2.glideL2Protocol = exports2.glideL1Protocol = exports2.genesys = exports2.geist = exports2.garnet = exports2.fusionTestnet = exports2.fusion = exports2.fuseSparknet = exports2.fuse = exports2.funkiSepolia = exports2.funkiMainnet = exports2.fraxtalTestnet = exports2.fraxtal = exports2.foundry = exports2.forma = exports2.fluenceTestnet = exports2.fluenceStage = exports2.fluence = exports2.flowTestnet = exports2.flowPreviewnet = exports2.flowMainnet = exports2.flareTestnet = exports2.flare = exports2.fireChain = exports2.filecoinHyperspace = exports2.filecoinCalibration = exports2.filecoin = exports2.fibo = void 0;
|
|
225110
|
+
exports2.lukso = exports2.loop = exports2.localhost = exports2.liskSepolia = exports2.lisk = exports2.lineaTestnet = exports2.lineaSepolia = exports2.lineaGoerli = exports2.linea = exports2.lightlinkPhoenix = exports2.lightlinkPegasus = exports2.lavita = exports2.l3xTestnet = exports2.l3x = exports2.kromaSepolia = exports2.kroma = exports2.koi = exports2.klaytnBaobab = exports2.kairos = exports2.kaia = exports2.klaytn = exports2.kinto = exports2.kcc = exports2.kavaTestnet = exports2.kava = exports2.kardiaChain = exports2.kakarotStarknetSepolia = exports2.kakarotSepolia = exports2.karura = exports2.jbcTestnet = exports2.jbc = exports2.iSunCoin = exports2.iotexTestnet = exports2.iotex = exports2.iotaTestnet = exports2.iota = exports2.inkSepolia = exports2.ink = exports2.initVerseGenesis = exports2.inEVM = exports2.immutableZkEvmTestnet = exports2.immutableZkEvm = exports2.idchain = exports2.hychainTestnet = exports2.hychain = exports2.humanodeTestnet5 = exports2.humanode = exports2.huddle01Testnet = exports2.huddle01Mainnet = exports2.hpb = void 0;
|
|
225111
|
+
exports2.neoxT4 = exports2.neoxMainnet = exports2.neonMainnet = exports2.neonDevnet = exports2.nearTestnet = exports2.near = exports2.nautilus = exports2.nahmii = exports2.morphSepolia = exports2.morphHolesky = exports2.morph = exports2.moonriver = exports2.moonbeamDev = exports2.moonbeam = exports2.moonbaseAlpha = exports2.modeTestnet = exports2.mode = exports2.mitosisTestnet = exports2.mintSepoliaTestnet = exports2.mint = exports2.mevTestnet = exports2.mev = exports2.metisGoerli = exports2.metis = exports2.meterTestnet = exports2.meter = exports2.metalL2 = exports2.metadium = exports2.metachainIstanbul = exports2.metachain = exports2.merlin = exports2.meld = exports2.mekong = exports2.mchVerse = exports2.matchainTestnet = exports2.matchain = exports2.mapProtocol = exports2.mantleTestnet = exports2.mantleSepoliaTestnet = exports2.mantle = exports2.mantaTestnet = exports2.mantaSepoliaTestnet = exports2.manta = exports2.mandala = exports2.mainnet = exports2.lyra = exports2.lycan = exports2.lumiaTestnet = exports2.lumiaMainnet = exports2.luksoTestnet = void 0;
|
|
225112
|
+
exports2.rollux = exports2.rivalz = exports2.reyaNetwork = exports2.rei = exports2.redstone = exports2.redbellyTestnet = exports2.redbellyMainnet = exports2.real = exports2.qTestnet = exports2.qMainnet = exports2.ql1 = exports2.pulsechainV4 = exports2.pulsechain = exports2.polygonZkEvmTestnet = exports2.polygonZkEvmCardona = exports2.polygonZkEvm = exports2.polygonMumbai = exports2.polygonAmoy = exports2.polygon = exports2.polterTestnet = exports2.plumeTestnet = exports2.plumeDevnet = exports2.plume = exports2.plinga = exports2.playfiAlbireo = exports2.planq = exports2.phoenix = exports2.pgnTestnet = exports2.pgn = exports2.palmTestnet = exports2.palm = exports2.otimDevnet = exports2.orderlySepolia = exports2.orderly = exports2.optopiaTestnet = exports2.optopia = exports2.optimismSepolia = exports2.optimismGoerli = exports2.optimism = exports2.opBNBTestnet = exports2.opBNB = exports2.oortMainnetDev = exports2.oneWorld = exports2.omax = exports2.okc = exports2.odysseyTestnet = exports2.oasys = exports2.oasisTestnet = exports2.nexilix = exports2.nexi = void 0;
|
|
225113
|
+
exports2.soneium = exports2.snaxTestnet = exports2.snax = exports2.sketchpad = exports2.skaleTitanTestnet = exports2.skaleTitan = exports2.skaleRazor = exports2.skaleNebulaTestnet = exports2.skaleNebula = exports2.skaleHumanProtocol = exports2.skaleExorde = exports2.skaleEuropaTestnet = exports2.skaleEuropa = exports2.skaleCryptoColosseum = exports2.skaleCryptoBlades = exports2.skaleCalypsoTestnet = exports2.skaleCalypso = exports2.skaleBlockBrawlers = exports2.sixProtocol = exports2.siliconSepolia = exports2.silicon = exports2.shimmerTestnet = exports2.shimmer = exports2.shiden = exports2.shibariumTestnet = exports2.shibarium = exports2.shardeumSphinx = exports2.shapeSepolia = exports2.shape = exports2.sepolia = exports2.seiTestnet = exports2.seiDevnet = exports2.sei = exports2.scrollSepolia = exports2.satoshiVMTestnet = exports2.satoshiVM = exports2.sapphireTestnet = exports2.sapphire = exports2.sanko = exports2.saigon = exports2.saga = exports2.saakuru = exports2.rss3Sepolia = exports2.rss3 = exports2.rootstockTestnet = exports2.rootstock = exports2.rootPorcini = exports2.root = exports2.ronin = exports2.rolluxTestnet = void 0;
|
|
225114
|
+
exports2.unique = exports2.unichainSepolia = exports2.ultronTestnet = exports2.ultron = exports2.ubiq = exports2.tron = exports2.treasureTopaz = exports2.treasure = exports2.tomb = exports2.tiktrixTestnet = exports2.thunderTestnet = exports2.thunderCore = exports2.thetaTestnet = exports2.theta = exports2.that = exports2.thaiChain = exports2.ternoa = exports2.tenet = exports2.telosTestnet = exports2.telos = exports2.telcoinTestnet = exports2.taraxaTestnet = exports2.taraxa = exports2.taikoTestnetSepolia = exports2.taikoKatla = exports2.taikoJolnir = exports2.taikoHekla = exports2.taiko = exports2.syscoinTestnet = exports2.syscoin = exports2.swissdlt = exports2.swanSaturnTestnet = exports2.swanProximaTestnet = exports2.swan = exports2.superseedSepolia = exports2.superseed = exports2.superposition = exports2.superlumio = exports2.stratis = exports2.storyTestnet = exports2.storyOdyssey = exports2.step = exports2.spicy = exports2.sophonTestnet = exports2.sophon = exports2.songbirdTestnet = exports2.songbird = exports2.sonicTestnet = exports2.sonic = exports2.soneiumMinato = void 0;
|
|
225115
|
+
exports2.zkSyncLocalNode = exports2.zksyncLocalHyperchainL1 = exports2.zksyncLocalHyperchain = exports2.zksyncLocalCustomHyperchain = exports2.zksyncInMemoryNode = exports2.zkSyncInMemoryNode = exports2.zksync = exports2.zkSync = exports2.zkLinkNovaSepoliaTestnet = exports2.zkLinkNova = exports2.zkFairTestnet = exports2.zkFair = exports2.zircuitTestnet = exports2.zircuit = exports2.zilliqaTestnet = exports2.zilliqa = exports2.zhejiang = exports2.zetachainAthensTestnet = exports2.zetachain = exports2.zeniq = exports2.zenchainTestnet = exports2.yooldoVerseTestnet = exports2.yooldoVerse = exports2.xrSepolia = exports2.xrOne = exports2.xLayerTestnet = exports2.x1Testnet = exports2.xLayer = exports2.xdcTestnet = exports2.xdc = exports2.xaiTestnet = exports2.xai = exports2.worldLand = exports2.worldchainSepolia = exports2.worldchain = exports2.wemixTestnet = exports2.wemix = exports2.weaveVMAlphanet = exports2.wanchainTestnet = exports2.wanchain = exports2.visionTestnet = exports2.vision = exports2.victionTestnet = exports2.viction = exports2.velas = exports2.vechain = exports2.vanar = exports2.unreal = exports2.uniqueQuartz = exports2.uniqueOpal = void 0;
|
|
225116
|
+
exports2.zoraTestnet = exports2.zoraSepolia = exports2.zora = exports2.zksyncSepoliaTestnet = exports2.zkSyncSepoliaTestnet = exports2.zksyncLocalNode = void 0;
|
|
224848
225117
|
var abey_js_1 = require_abey();
|
|
224849
225118
|
Object.defineProperty(exports2, "abey", { enumerable: true, get: function() {
|
|
224850
225119
|
return abey_js_1.abey;
|
|
@@ -224873,6 +225142,10 @@ var require_chains2 = __commonJS({
|
|
|
224873
225142
|
Object.defineProperty(exports2, "alephZero", { enumerable: true, get: function() {
|
|
224874
225143
|
return alephZero_js_1.alephZero;
|
|
224875
225144
|
} });
|
|
225145
|
+
var alephZeroTestnet_js_1 = require_alephZeroTestnet();
|
|
225146
|
+
Object.defineProperty(exports2, "alephZeroTestnet", { enumerable: true, get: function() {
|
|
225147
|
+
return alephZeroTestnet_js_1.alephZeroTestnet;
|
|
225148
|
+
} });
|
|
224876
225149
|
var alienX_js_1 = require_alienX();
|
|
224877
225150
|
Object.defineProperty(exports2, "alienx", { enumerable: true, get: function() {
|
|
224878
225151
|
return alienX_js_1.alienx;
|
|
@@ -224933,6 +225206,10 @@ var require_chains2 = __commonJS({
|
|
|
224933
225206
|
Object.defineProperty(exports2, "arthera", { enumerable: true, get: function() {
|
|
224934
225207
|
return arthera_js_1.arthera;
|
|
224935
225208
|
} });
|
|
225209
|
+
var artheraTestnet_js_1 = require_artheraTestnet();
|
|
225210
|
+
Object.defineProperty(exports2, "artheraTestnet", { enumerable: true, get: function() {
|
|
225211
|
+
return artheraTestnet_js_1.artheraTestnet;
|
|
225212
|
+
} });
|
|
224936
225213
|
var assetChain_js_1 = require_assetChain();
|
|
224937
225214
|
Object.defineProperty(exports2, "assetChain", { enumerable: true, get: function() {
|
|
224938
225215
|
return assetChain_js_1.assetChain;
|
|
@@ -225557,6 +225834,10 @@ var require_chains2 = __commonJS({
|
|
|
225557
225834
|
Object.defineProperty(exports2, "gnosisChiado", { enumerable: true, get: function() {
|
|
225558
225835
|
return gnosisChiado_js_1.gnosisChiado;
|
|
225559
225836
|
} });
|
|
225837
|
+
var goat_js_1 = require_goat();
|
|
225838
|
+
Object.defineProperty(exports2, "goat", { enumerable: true, get: function() {
|
|
225839
|
+
return goat_js_1.goat;
|
|
225840
|
+
} });
|
|
225560
225841
|
var gobi_js_1 = require_gobi();
|
|
225561
225842
|
Object.defineProperty(exports2, "gobi", { enumerable: true, get: function() {
|
|
225562
225843
|
return gobi_js_1.gobi;
|
|
@@ -226009,6 +226290,14 @@ var require_chains2 = __commonJS({
|
|
|
226009
226290
|
Object.defineProperty(exports2, "nautilus", { enumerable: true, get: function() {
|
|
226010
226291
|
return nautilus_js_1.nautilus;
|
|
226011
226292
|
} });
|
|
226293
|
+
var near_js_1 = require_near();
|
|
226294
|
+
Object.defineProperty(exports2, "near", { enumerable: true, get: function() {
|
|
226295
|
+
return near_js_1.near;
|
|
226296
|
+
} });
|
|
226297
|
+
var nearTestnet_js_1 = require_nearTestnet();
|
|
226298
|
+
Object.defineProperty(exports2, "nearTestnet", { enumerable: true, get: function() {
|
|
226299
|
+
return nearTestnet_js_1.nearTestnet;
|
|
226300
|
+
} });
|
|
226012
226301
|
var neonDevnet_js_1 = require_neonDevnet();
|
|
226013
226302
|
Object.defineProperty(exports2, "neonDevnet", { enumerable: true, get: function() {
|
|
226014
226303
|
return neonDevnet_js_1.neonDevnet;
|
|
@@ -226425,6 +226714,10 @@ var require_chains2 = __commonJS({
|
|
|
226425
226714
|
Object.defineProperty(exports2, "snaxTestnet", { enumerable: true, get: function() {
|
|
226426
226715
|
return snaxTestnet_js_1.snaxTestnet;
|
|
226427
226716
|
} });
|
|
226717
|
+
var soneium_js_1 = require_soneium();
|
|
226718
|
+
Object.defineProperty(exports2, "soneium", { enumerable: true, get: function() {
|
|
226719
|
+
return soneium_js_1.soneium;
|
|
226720
|
+
} });
|
|
226428
226721
|
var soneiumMinato_js_1 = require_soneiumMinato();
|
|
226429
226722
|
Object.defineProperty(exports2, "soneiumMinato", { enumerable: true, get: function() {
|
|
226430
226723
|
return soneiumMinato_js_1.soneiumMinato;
|
|
@@ -230607,8 +230900,14 @@ var require_utils31 = __commonJS({
|
|
|
230607
230900
|
"../../node_modules/@noble/hashes/utils.js"(exports2) {
|
|
230608
230901
|
"use strict";
|
|
230609
230902
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
230610
|
-
exports2.Hash = exports2.nextTick = exports2.byteSwapIfBE = exports2.
|
|
230903
|
+
exports2.Hash = exports2.nextTick = exports2.byteSwapIfBE = exports2.isLE = void 0;
|
|
230611
230904
|
exports2.isBytes = isBytes5;
|
|
230905
|
+
exports2.u8 = u8;
|
|
230906
|
+
exports2.u32 = u322;
|
|
230907
|
+
exports2.createView = createView3;
|
|
230908
|
+
exports2.rotr = rotr3;
|
|
230909
|
+
exports2.rotl = rotl;
|
|
230910
|
+
exports2.byteSwap = byteSwap2;
|
|
230612
230911
|
exports2.byteSwap32 = byteSwap322;
|
|
230613
230912
|
exports2.bytesToHex = bytesToHex3;
|
|
230614
230913
|
exports2.hexToBytes = hexToBytes3;
|
|
@@ -230626,23 +230925,29 @@ var require_utils31 = __commonJS({
|
|
|
230626
230925
|
function isBytes5(a) {
|
|
230627
230926
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
230628
230927
|
}
|
|
230629
|
-
|
|
230630
|
-
|
|
230631
|
-
|
|
230632
|
-
|
|
230633
|
-
|
|
230634
|
-
|
|
230635
|
-
|
|
230636
|
-
|
|
230637
|
-
|
|
230638
|
-
|
|
230928
|
+
function u8(arr) {
|
|
230929
|
+
return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
230930
|
+
}
|
|
230931
|
+
function u322(arr) {
|
|
230932
|
+
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
230933
|
+
}
|
|
230934
|
+
function createView3(arr) {
|
|
230935
|
+
return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
230936
|
+
}
|
|
230937
|
+
function rotr3(word, shift) {
|
|
230938
|
+
return word << 32 - shift | word >>> shift;
|
|
230939
|
+
}
|
|
230940
|
+
function rotl(word, shift) {
|
|
230941
|
+
return word << shift | word >>> 32 - shift >>> 0;
|
|
230942
|
+
}
|
|
230639
230943
|
exports2.isLE = (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
|
230640
|
-
|
|
230641
|
-
|
|
230642
|
-
|
|
230944
|
+
function byteSwap2(word) {
|
|
230945
|
+
return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
|
|
230946
|
+
}
|
|
230947
|
+
exports2.byteSwapIfBE = exports2.isLE ? (n) => n : (n) => byteSwap2(n);
|
|
230643
230948
|
function byteSwap322(arr) {
|
|
230644
230949
|
for (let i = 0; i < arr.length; i++) {
|
|
230645
|
-
arr[i] = (
|
|
230950
|
+
arr[i] = byteSwap2(arr[i]);
|
|
230646
230951
|
}
|
|
230647
230952
|
}
|
|
230648
230953
|
var hexes3 = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
|
|
@@ -230777,8 +231082,10 @@ var require_md3 = __commonJS({
|
|
|
230777
231082
|
"../../node_modules/@noble/hashes/_md.js"(exports2) {
|
|
230778
231083
|
"use strict";
|
|
230779
231084
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
230780
|
-
exports2.HashMD =
|
|
231085
|
+
exports2.HashMD = void 0;
|
|
230781
231086
|
exports2.setBigUint64 = setBigUint643;
|
|
231087
|
+
exports2.Chi = Chi3;
|
|
231088
|
+
exports2.Maj = Maj3;
|
|
230782
231089
|
var _assert_js_1 = require_assert4();
|
|
230783
231090
|
var utils_js_1 = require_utils31();
|
|
230784
231091
|
function setBigUint643(view, byteOffset, value, isLE2) {
|
|
@@ -230793,10 +231100,12 @@ var require_md3 = __commonJS({
|
|
|
230793
231100
|
view.setUint32(byteOffset + h, wh, isLE2);
|
|
230794
231101
|
view.setUint32(byteOffset + l, wl, isLE2);
|
|
230795
231102
|
}
|
|
230796
|
-
|
|
230797
|
-
|
|
230798
|
-
|
|
230799
|
-
|
|
231103
|
+
function Chi3(a, b, c) {
|
|
231104
|
+
return a & b ^ ~a & c;
|
|
231105
|
+
}
|
|
231106
|
+
function Maj3(a, b, c) {
|
|
231107
|
+
return a & b ^ a & c ^ b & c;
|
|
231108
|
+
}
|
|
230800
231109
|
var HashMD3 = class extends utils_js_1.Hash {
|
|
230801
231110
|
constructor(blockLen, outputLen, padOffset, isLE2) {
|
|
230802
231111
|
super();
|
|
@@ -231765,7 +232074,7 @@ var require_weierstrass3 = __commonJS({
|
|
|
231765
232074
|
exports2.SWUFpSqrtRatio = SWUFpSqrtRatio2;
|
|
231766
232075
|
exports2.mapToCurveSimpleSWU = mapToCurveSimpleSWU2;
|
|
231767
232076
|
var curve_js_1 = require_curve5();
|
|
231768
|
-
var
|
|
232077
|
+
var modular_js_1 = require_modular3();
|
|
231769
232078
|
var ut = require_utils24();
|
|
231770
232079
|
var utils_js_1 = require_utils24();
|
|
231771
232080
|
function validateSigVerOpts2(opts) {
|
|
@@ -231915,7 +232224,7 @@ var require_weierstrass3 = __commonJS({
|
|
|
231915
232224
|
function weierstrassPoints2(opts) {
|
|
231916
232225
|
const CURVE = validatePointOpts2(opts);
|
|
231917
232226
|
const { Fp } = CURVE;
|
|
231918
|
-
const Fn =
|
|
232227
|
+
const Fn = (0, modular_js_1.Field)(CURVE.n, CURVE.nBitLength);
|
|
231919
232228
|
const toBytes4 = CURVE.toBytes || ((_c, point, _isCompressed) => {
|
|
231920
232229
|
const a = point.toAffine();
|
|
231921
232230
|
return ut.concatBytes(Uint8Array.from([4]), Fp.toBytes(a.x), Fp.toBytes(a.y));
|
|
@@ -231953,7 +232262,7 @@ var require_weierstrass3 = __commonJS({
|
|
|
231953
232262
|
throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key);
|
|
231954
232263
|
}
|
|
231955
232264
|
if (wrapPrivateKey)
|
|
231956
|
-
num2 =
|
|
232265
|
+
num2 = (0, modular_js_1.mod)(num2, N);
|
|
231957
232266
|
ut.aInRange("private key", num2, _1n7, N);
|
|
231958
232267
|
return num2;
|
|
231959
232268
|
}
|
|
@@ -232327,10 +232636,10 @@ var require_weierstrass3 = __commonJS({
|
|
|
232327
232636
|
const compressedLen = Fp.BYTES + 1;
|
|
232328
232637
|
const uncompressedLen = 2 * Fp.BYTES + 1;
|
|
232329
232638
|
function modN2(a) {
|
|
232330
|
-
return
|
|
232639
|
+
return (0, modular_js_1.mod)(a, CURVE_ORDER);
|
|
232331
232640
|
}
|
|
232332
232641
|
function invN(a) {
|
|
232333
|
-
return
|
|
232642
|
+
return (0, modular_js_1.invert)(a, CURVE_ORDER);
|
|
232334
232643
|
}
|
|
232335
232644
|
const { ProjectivePoint: Point2, normPrivateKeyToScalar, weierstrassEquation, isWithinCurveOrder } = weierstrassPoints2({
|
|
232336
232645
|
...CURVE,
|
|
@@ -232468,8 +232777,8 @@ var require_weierstrass3 = __commonJS({
|
|
|
232468
232777
|
* (groupLen + ceil(groupLen / 2)) with modulo bias being negligible.
|
|
232469
232778
|
*/
|
|
232470
232779
|
randomPrivateKey: () => {
|
|
232471
|
-
const length =
|
|
232472
|
-
return
|
|
232780
|
+
const length = (0, modular_js_1.getMinHashLength)(CURVE.n);
|
|
232781
|
+
return (0, modular_js_1.mapHashToField)(CURVE.randomBytes(length), CURVE.n);
|
|
232473
232782
|
},
|
|
232474
232783
|
/**
|
|
232475
232784
|
* Creates precompute table for an arbitrary EC point. Makes point "cached".
|
|
@@ -232699,7 +233008,7 @@ var require_weierstrass3 = __commonJS({
|
|
|
232699
233008
|
return sqrtRatio;
|
|
232700
233009
|
}
|
|
232701
233010
|
function mapToCurveSimpleSWU2(Fp, opts) {
|
|
232702
|
-
|
|
233011
|
+
(0, modular_js_1.validateField)(Fp);
|
|
232703
233012
|
if (!Fp.isValid(opts.A) || !Fp.isValid(opts.B) || !Fp.isValid(opts.Z))
|
|
232704
233013
|
throw new Error("mapToCurveSimpleSWU: invalid opts");
|
|
232705
233014
|
const sqrtRatio = SWUFpSqrtRatio2(Fp, opts.Z);
|
|
@@ -238563,7 +238872,7 @@ var require_PasskeyClient = __commonJS({
|
|
|
238563
238872
|
throw new Error("invalid signature encoding");
|
|
238564
238873
|
}
|
|
238565
238874
|
};
|
|
238566
|
-
const view = new DataView(signature);
|
|
238875
|
+
const view = new DataView(signature instanceof ArrayBuffer ? signature : signature instanceof Uint8Array ? signature.buffer : new Uint8Array(signature).buffer);
|
|
238567
238876
|
check(view.getUint8(0) === 48);
|
|
238568
238877
|
check(view.getUint8(1) === view.byteLength - 2);
|
|
238569
238878
|
const readInt = (offset) => {
|
|
@@ -266670,6 +266979,42 @@ var require_createPasskeyDeploymentTransaction = __commonJS({
|
|
|
266670
266979
|
}
|
|
266671
266980
|
});
|
|
266672
266981
|
|
|
266982
|
+
// ../../node_modules/@safe-global/protocol-kit/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.js
|
|
266983
|
+
var require_generateOnChainIdentifier = __commonJS({
|
|
266984
|
+
"../../node_modules/@safe-global/protocol-kit/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.js"(exports2) {
|
|
266985
|
+
"use strict";
|
|
266986
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
266987
|
+
exports2.generateHash = void 0;
|
|
266988
|
+
var viem_1 = require_cjs3();
|
|
266989
|
+
function generateHash(input, size4) {
|
|
266990
|
+
const fullHash = (0, viem_1.keccak256)((0, viem_1.toHex)(input));
|
|
266991
|
+
return (0, viem_1.toHex)(fullHash.slice(-size4)).replace("0x", "");
|
|
266992
|
+
}
|
|
266993
|
+
exports2.generateHash = generateHash;
|
|
266994
|
+
function generateOnChainIdentifier({ project, platform = "Web", tool, toolVersion }) {
|
|
266995
|
+
const identifierPrefix = "5afe";
|
|
266996
|
+
const identifierVersion = "00";
|
|
266997
|
+
const projectHash = generateHash(project, 20);
|
|
266998
|
+
const platformHash = generateHash(platform, 3);
|
|
266999
|
+
const toolHash = generateHash(tool, 3);
|
|
267000
|
+
const toolVersionHash = generateHash(toolVersion, 3);
|
|
267001
|
+
return `${identifierPrefix}${identifierVersion}${projectHash}${platformHash}${toolHash}${toolVersionHash}`;
|
|
267002
|
+
}
|
|
267003
|
+
exports2.default = generateOnChainIdentifier;
|
|
267004
|
+
}
|
|
267005
|
+
});
|
|
267006
|
+
|
|
267007
|
+
// ../../node_modules/@safe-global/protocol-kit/dist/src/utils/getProtocolKitVersion.js
|
|
267008
|
+
var require_getProtocolKitVersion = __commonJS({
|
|
267009
|
+
"../../node_modules/@safe-global/protocol-kit/dist/src/utils/getProtocolKitVersion.js"(exports2) {
|
|
267010
|
+
"use strict";
|
|
267011
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
267012
|
+
exports2.getProtocolKitVersion = void 0;
|
|
267013
|
+
var getProtocolKitVersion = () => "5.2.0";
|
|
267014
|
+
exports2.getProtocolKitVersion = getProtocolKitVersion;
|
|
267015
|
+
}
|
|
267016
|
+
});
|
|
267017
|
+
|
|
266673
267018
|
// ../../node_modules/@safe-global/protocol-kit/dist/src/Safe.js
|
|
266674
267019
|
var require_Safe2 = __commonJS({
|
|
266675
267020
|
"../../node_modules/@safe-global/protocol-kit/dist/src/Safe.js"(exports2) {
|
|
@@ -266699,6 +267044,7 @@ var require_Safe2 = __commonJS({
|
|
|
266699
267044
|
var _Safe_fallbackHandlerManager;
|
|
266700
267045
|
var _Safe_MAGIC_VALUE;
|
|
266701
267046
|
var _Safe_MAGIC_VALUE_BYTES;
|
|
267047
|
+
var _Safe_onchainIdentifier;
|
|
266702
267048
|
var _Safe_initializeProtocolKit;
|
|
266703
267049
|
var _Safe_addPreValidatedSignature;
|
|
266704
267050
|
var _Safe_isReadyToExecute;
|
|
@@ -266724,6 +267070,8 @@ var require_Safe2 = __commonJS({
|
|
|
266724
267070
|
var types_3 = require_types12();
|
|
266725
267071
|
var getPasskeyOwnerAddress_1 = __importDefault4(require_getPasskeyOwnerAddress());
|
|
266726
267072
|
var createPasskeyDeploymentTransaction_1 = __importDefault4(require_createPasskeyDeploymentTransaction());
|
|
267073
|
+
var generateOnChainIdentifier_1 = __importDefault4(require_generateOnChainIdentifier());
|
|
267074
|
+
var getProtocolKitVersion_1 = require_getProtocolKitVersion();
|
|
266727
267075
|
var EQ_OR_GT_1_4_1 = ">=1.4.1";
|
|
266728
267076
|
var EQ_OR_GT_1_3_0 = ">=1.3.0";
|
|
266729
267077
|
var Safe = class {
|
|
@@ -266740,6 +267088,11 @@ var require_Safe2 = __commonJS({
|
|
|
266740
267088
|
_Safe_MAGIC_VALUE_BYTES.set(
|
|
266741
267089
|
this,
|
|
266742
267090
|
"0x20c13b0b"
|
|
267091
|
+
// on-chain Analytics
|
|
267092
|
+
);
|
|
267093
|
+
_Safe_onchainIdentifier.set(
|
|
267094
|
+
this,
|
|
267095
|
+
""
|
|
266743
267096
|
/**
|
|
266744
267097
|
* Creates an instance of the Safe Core SDK.
|
|
266745
267098
|
* @param config - Ethers Safe configuration
|
|
@@ -267687,6 +268040,25 @@ var require_Safe2 = __commonJS({
|
|
|
267687
268040
|
}
|
|
267688
268041
|
}
|
|
267689
268042
|
const signerAddress = await __classPrivateFieldGet5(this, _Safe_safeProvider, "f").getSignerAddress();
|
|
268043
|
+
if (__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f")) {
|
|
268044
|
+
const encodedTransaction = await this.getEncodedTransaction(signedSafeTransaction);
|
|
268045
|
+
const transaction2 = {
|
|
268046
|
+
to: await this.getAddress(),
|
|
268047
|
+
value: 0n,
|
|
268048
|
+
data: encodedTransaction + __classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f")
|
|
268049
|
+
};
|
|
268050
|
+
const signer = await __classPrivateFieldGet5(this, _Safe_safeProvider, "f").getExternalSigner();
|
|
268051
|
+
if (!signer) {
|
|
268052
|
+
throw new Error("A signer must be set");
|
|
268053
|
+
}
|
|
268054
|
+
const hash2 = await signer.sendTransaction({
|
|
268055
|
+
...transaction2,
|
|
268056
|
+
account: signer.account,
|
|
268057
|
+
...options
|
|
268058
|
+
});
|
|
268059
|
+
const provider = __classPrivateFieldGet5(this, _Safe_safeProvider, "f").getExternalProvider();
|
|
268060
|
+
return (0, utils_1.toTxResult)(provider, hash2, options);
|
|
268061
|
+
}
|
|
267690
268062
|
const txResponse = await __classPrivateFieldGet5(this, _Safe_contractManager, "f").safeContract.execTransaction(signedSafeTransaction, {
|
|
267691
268063
|
from: signerAddress,
|
|
267692
268064
|
...options
|
|
@@ -267745,6 +268117,9 @@ var require_Safe2 = __commonJS({
|
|
|
267745
268117
|
throw new Error("Safe already deployed");
|
|
267746
268118
|
}
|
|
267747
268119
|
const safeDeploymentTransaction = await this.createSafeDeploymentTransaction();
|
|
268120
|
+
if (safeDeploymentTransaction.data.endsWith(__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f"))) {
|
|
268121
|
+
safeDeploymentTransaction.data = safeDeploymentTransaction.data.replace(__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f"), "");
|
|
268122
|
+
}
|
|
267748
268123
|
const safeDeploymentBatchTransaction = {
|
|
267749
268124
|
to: safeDeploymentTransaction.to,
|
|
267750
268125
|
value: safeDeploymentTransaction.value,
|
|
@@ -267758,7 +268133,12 @@ var require_Safe2 = __commonJS({
|
|
|
267758
268133
|
operation: types_kit_1.OperationType.Call
|
|
267759
268134
|
};
|
|
267760
268135
|
const transactions = [safeDeploymentBatchTransaction, safeBatchTransaction];
|
|
267761
|
-
const safeDeploymentBatch = await this.createTransactionBatch(
|
|
268136
|
+
const safeDeploymentBatch = await this.createTransactionBatch(
|
|
268137
|
+
transactions,
|
|
268138
|
+
transactionOptions,
|
|
268139
|
+
!!__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f")
|
|
268140
|
+
// include the on chain identifier
|
|
268141
|
+
);
|
|
267762
268142
|
return safeDeploymentBatch;
|
|
267763
268143
|
}
|
|
267764
268144
|
/**
|
|
@@ -267817,6 +268197,9 @@ var require_Safe2 = __commonJS({
|
|
|
267817
268197
|
BigInt(saltNonce)
|
|
267818
268198
|
])
|
|
267819
268199
|
};
|
|
268200
|
+
if (__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f")) {
|
|
268201
|
+
safeDeployTransactionData.data += __classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f");
|
|
268202
|
+
}
|
|
267820
268203
|
return safeDeployTransactionData;
|
|
267821
268204
|
}
|
|
267822
268205
|
/**
|
|
@@ -267827,10 +268210,11 @@ var require_Safe2 = __commonJS({
|
|
|
267827
268210
|
* @function createTransactionBatch
|
|
267828
268211
|
* @param {MetaTransactionData[]} transactions - An array of MetaTransactionData objects to be batched together.
|
|
267829
268212
|
* @param {TransactionOption} [transactionOptions] - Optional TransactionOption object to specify additional options for the transaction batch.
|
|
268213
|
+
* @param {boolean} [includeOnchainIdentifier=false] - A flag indicating whether to append the onchain identifier to the data field of the resulting transaction.
|
|
267830
268214
|
* @returns {Promise<Transaction>} A Promise that resolves with the created transaction batch.
|
|
267831
268215
|
*
|
|
267832
268216
|
*/
|
|
267833
|
-
async createTransactionBatch(transactions, transactionOptions) {
|
|
268217
|
+
async createTransactionBatch(transactions, transactionOptions, includeOnchainIdentifier = false) {
|
|
267834
268218
|
const multiSendCallOnlyContract = __classPrivateFieldGet5(this, _Safe_contractManager, "f").multiSendCallOnlyContract;
|
|
267835
268219
|
const batchData = multiSendCallOnlyContract.encode("multiSend", [
|
|
267836
268220
|
(0, types_3.asHex)((0, utils_3.encodeMultiSendData)(transactions))
|
|
@@ -267843,10 +268227,16 @@ var require_Safe2 = __commonJS({
|
|
|
267843
268227
|
value: "0",
|
|
267844
268228
|
data: batchData
|
|
267845
268229
|
};
|
|
268230
|
+
if (includeOnchainIdentifier) {
|
|
268231
|
+
transactionBatch.data += __classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f");
|
|
268232
|
+
}
|
|
267846
268233
|
return transactionBatch;
|
|
267847
268234
|
}
|
|
268235
|
+
getOnchainIdentifier() {
|
|
268236
|
+
return __classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f");
|
|
268237
|
+
}
|
|
267848
268238
|
};
|
|
267849
|
-
_a = Safe, _Safe_predictedSafe = /* @__PURE__ */ new WeakMap(), _Safe_safeProvider = /* @__PURE__ */ new WeakMap(), _Safe_contractManager = /* @__PURE__ */ new WeakMap(), _Safe_ownerManager = /* @__PURE__ */ new WeakMap(), _Safe_moduleManager = /* @__PURE__ */ new WeakMap(), _Safe_guardManager = /* @__PURE__ */ new WeakMap(), _Safe_fallbackHandlerManager = /* @__PURE__ */ new WeakMap(), _Safe_MAGIC_VALUE = /* @__PURE__ */ new WeakMap(), _Safe_MAGIC_VALUE_BYTES = /* @__PURE__ */ new WeakMap(), _Safe_instances = /* @__PURE__ */ new WeakSet(), _Safe_initializeProtocolKit = /**
|
|
268239
|
+
_a = Safe, _Safe_predictedSafe = /* @__PURE__ */ new WeakMap(), _Safe_safeProvider = /* @__PURE__ */ new WeakMap(), _Safe_contractManager = /* @__PURE__ */ new WeakMap(), _Safe_ownerManager = /* @__PURE__ */ new WeakMap(), _Safe_moduleManager = /* @__PURE__ */ new WeakMap(), _Safe_guardManager = /* @__PURE__ */ new WeakMap(), _Safe_fallbackHandlerManager = /* @__PURE__ */ new WeakMap(), _Safe_MAGIC_VALUE = /* @__PURE__ */ new WeakMap(), _Safe_MAGIC_VALUE_BYTES = /* @__PURE__ */ new WeakMap(), _Safe_onchainIdentifier = /* @__PURE__ */ new WeakMap(), _Safe_instances = /* @__PURE__ */ new WeakSet(), _Safe_initializeProtocolKit = /**
|
|
267850
268240
|
* Initializes the Safe Core SDK instance.
|
|
267851
268241
|
* @param config - Safe configuration
|
|
267852
268242
|
* @throws "Signer must be connected to a provider"
|
|
@@ -267855,7 +268245,16 @@ var require_Safe2 = __commonJS({
|
|
|
267855
268245
|
* @throws "MultiSendCallOnly contract is not deployed on the current network"
|
|
267856
268246
|
*/
|
|
267857
268247
|
async function _Safe_initializeProtocolKit2(config) {
|
|
267858
|
-
const { provider, signer, isL1SafeSingleton, contractNetworks } = config;
|
|
268248
|
+
const { provider, signer, isL1SafeSingleton, contractNetworks, onchainAnalytics } = config;
|
|
268249
|
+
if (onchainAnalytics?.project) {
|
|
268250
|
+
const { project, platform } = onchainAnalytics;
|
|
268251
|
+
__classPrivateFieldSet5(this, _Safe_onchainIdentifier, (0, generateOnChainIdentifier_1.default)({
|
|
268252
|
+
project,
|
|
268253
|
+
platform,
|
|
268254
|
+
tool: "protocol-kit",
|
|
268255
|
+
toolVersion: (0, getProtocolKitVersion_1.getProtocolKitVersion)()
|
|
268256
|
+
}), "f");
|
|
268257
|
+
}
|
|
267859
268258
|
__classPrivateFieldSet5(this, _Safe_safeProvider, await SafeProvider_1.default.init({
|
|
267860
268259
|
provider,
|
|
267861
268260
|
signer,
|
|
@@ -268069,8 +268468,8 @@ var require_src9 = __commonJS({
|
|
|
268069
268468
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
268070
268469
|
};
|
|
268071
268470
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
268072
|
-
exports2.
|
|
268073
|
-
exports2.getPasskeyOwnerAddress = void 0;
|
|
268471
|
+
exports2.EthSafeTransaction = exports2.createPasskeyClient = exports2.SafeProvider = exports2.generateTypedData = exports2.hashSafeMessage = exports2.getSafeAddressFromDeploymentTx = exports2.getEip712MessageTypes = exports2.getEip712TxTypes = exports2.preimageSafeMessageHash = exports2.preimageSafeTransactionHash = exports2.buildSignatureBytes = exports2.buildContractSignature = exports2.generateEIP712Signature = exports2.generateSignature = exports2.validateEthereumAddress = exports2.validateEip3770Address = exports2.standardizeSafeTransactionData = exports2.getPredictedSafeAddressInitCode = exports2.predictSafeAddress = exports2.isGasTokenCompatibleWithHandlePayment = exports2.getSafeWebAuthnSharedSignerContract = exports2.getSafeWebAuthnSignerFactoryContract = exports2.getSignMessageLibContract = exports2.getSafeContract = exports2.getSafeProxyFactoryContract = exports2.getMultiSendContract = exports2.getMultiSendCallOnlyContract = exports2.getERC20Decimals = exports2.getCreateCallContract = exports2.getCompatibilityFallbackHandlerContract = exports2.encodeSetupCallData = exports2.encodeMultiSendData = exports2.encodeCreateProxyWithNonce = exports2.SignMessageLibBaseContract = exports2.SafeProxyFactoryBaseContract = exports2.SafeBaseContract = exports2.PREDETERMINED_SALT_NONCE = exports2.generateOnChainIdentifier = exports2.MultiSendBaseContract = exports2.MultiSendCallOnlyBaseContract = exports2.EthSafeSignature = exports2.DEFAULT_SAFE_VERSION = exports2.createERC20TokenTransferTransaction = exports2.CreateCallBaseContract = exports2.ContractManager = exports2.extractPasskeyData = exports2.estimateSafeDeploymentGas = exports2.estimateSafeTxGas = exports2.estimateTxGas = exports2.estimateTxBaseGas = void 0;
|
|
268472
|
+
exports2.getPasskeyOwnerAddress = exports2.EthSafeMessage = void 0;
|
|
268074
268473
|
var Safe_1 = __importDefault4(require_Safe2());
|
|
268075
268474
|
var SafeProvider_1 = __importDefault4(require_SafeProvider());
|
|
268076
268475
|
exports2.SafeProvider = SafeProvider_1.default;
|
|
@@ -268230,6 +268629,8 @@ var require_src9 = __commonJS({
|
|
|
268230
268629
|
} });
|
|
268231
268630
|
var getPasskeyOwnerAddress_1 = __importDefault4(require_getPasskeyOwnerAddress());
|
|
268232
268631
|
exports2.getPasskeyOwnerAddress = getPasskeyOwnerAddress_1.default;
|
|
268632
|
+
var generateOnChainIdentifier_1 = __importDefault4(require_generateOnChainIdentifier());
|
|
268633
|
+
exports2.generateOnChainIdentifier = generateOnChainIdentifier_1.default;
|
|
268233
268634
|
__exportStar4(require_types13(), exports2);
|
|
268234
268635
|
exports2.default = Safe_1.default;
|
|
268235
268636
|
}
|
|
@@ -342646,10 +343047,19 @@ function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shoul
|
|
|
342646
343047
|
init_stringify();
|
|
342647
343048
|
function buildRequest(request, options = {}) {
|
|
342648
343049
|
return async (args, overrideOptions = {}) => {
|
|
342649
|
-
const { dedupe = false, retryDelay = 150, retryCount = 3, uid: uid2 } = {
|
|
343050
|
+
const { dedupe = false, methods, retryDelay = 150, retryCount = 3, uid: uid2 } = {
|
|
342650
343051
|
...options,
|
|
342651
343052
|
...overrideOptions
|
|
342652
343053
|
};
|
|
343054
|
+
const { method } = args;
|
|
343055
|
+
if (methods?.exclude?.includes(method))
|
|
343056
|
+
throw new MethodNotSupportedRpcError(new Error("method not supported"), {
|
|
343057
|
+
method
|
|
343058
|
+
});
|
|
343059
|
+
if (methods?.include && !methods.include.includes(method))
|
|
343060
|
+
throw new MethodNotSupportedRpcError(new Error("method not supported"), {
|
|
343061
|
+
method
|
|
343062
|
+
});
|
|
342653
343063
|
const requestId = dedupe ? keccak256(stringToHex(`${uid2}.${stringify(args)}`)) : void 0;
|
|
342654
343064
|
return withDedupe(() => withRetry(async () => {
|
|
342655
343065
|
try {
|
|
@@ -342770,7 +343180,7 @@ function shouldRetry(error) {
|
|
|
342770
343180
|
}
|
|
342771
343181
|
|
|
342772
343182
|
// ../../node_modules/viem/_esm/clients/transports/createTransport.js
|
|
342773
|
-
function createTransport({ key, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
|
|
343183
|
+
function createTransport({ key, methods, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
|
|
342774
343184
|
const uid2 = uid();
|
|
342775
343185
|
return {
|
|
342776
343186
|
config: {
|
|
@@ -342782,7 +343192,7 @@ function createTransport({ key, name, request, retryCount = 3, retryDelay = 150,
|
|
|
342782
343192
|
timeout,
|
|
342783
343193
|
type
|
|
342784
343194
|
},
|
|
342785
|
-
request: buildRequest(request, { retryCount, retryDelay, uid: uid2 }),
|
|
343195
|
+
request: buildRequest(request, { methods, retryCount, retryDelay, uid: uid2 }),
|
|
342786
343196
|
value
|
|
342787
343197
|
};
|
|
342788
343198
|
}
|
|
@@ -343057,7 +343467,7 @@ function getHttpRpcClient(url, options = {}) {
|
|
|
343057
343467
|
|
|
343058
343468
|
// ../../node_modules/viem/_esm/clients/transports/http.js
|
|
343059
343469
|
function http(url, config = {}) {
|
|
343060
|
-
const { batch, fetchOptions, key = "http", name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay } = config;
|
|
343470
|
+
const { batch, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay } = config;
|
|
343061
343471
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
|
343062
343472
|
const { batchSize = 1e3, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
|
|
343063
343473
|
const retryCount = config.retryCount ?? retryCount_;
|
|
@@ -343073,6 +343483,7 @@ function http(url, config = {}) {
|
|
|
343073
343483
|
});
|
|
343074
343484
|
return createTransport({
|
|
343075
343485
|
key,
|
|
343486
|
+
methods,
|
|
343076
343487
|
name,
|
|
343077
343488
|
async request({ method, params }) {
|
|
343078
343489
|
const body = { method, params };
|
|
@@ -383146,7 +383557,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
383146
383557
|
if (existing?.loaded) {
|
|
383147
383558
|
return existing;
|
|
383148
383559
|
}
|
|
383149
|
-
const feed = this
|
|
383560
|
+
const feed = this.create(data);
|
|
383150
383561
|
this.#feeds.upsert(data.baseParams.addr, feed);
|
|
383151
383562
|
return feed;
|
|
383152
383563
|
}
|
|
@@ -383168,7 +383579,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
383168
383579
|
pools
|
|
383169
383580
|
);
|
|
383170
383581
|
for (const data of feedsData) {
|
|
383171
|
-
const feed = this
|
|
383582
|
+
const feed = this.create({ baseParams: data });
|
|
383172
383583
|
this.#feeds.upsert(feed.address, feed);
|
|
383173
383584
|
}
|
|
383174
383585
|
}
|
|
@@ -383183,7 +383594,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
383183
383594
|
marketConfigurators,
|
|
383184
383595
|
pools
|
|
383185
383596
|
);
|
|
383186
|
-
const feeds = feedsData.map((data) => this
|
|
383597
|
+
const feeds = feedsData.map((data) => this.create({ baseParams: data }));
|
|
383187
383598
|
const updates = await this.#generatePriceFeedsUpdateTxs(feeds);
|
|
383188
383599
|
return createRawTx(
|
|
383189
383600
|
getChainContractAddress({
|
|
@@ -383262,7 +383673,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
383262
383673
|
this.logger?.debug(`loaded ${result.length} updatable price feeds`);
|
|
383263
383674
|
return result;
|
|
383264
383675
|
}
|
|
383265
|
-
|
|
383676
|
+
create(data) {
|
|
383266
383677
|
const contractType = bytes32ToString(
|
|
383267
383678
|
data.baseParams.contractType
|
|
383268
383679
|
);
|
|
@@ -409901,149 +410312,6 @@ var AccountOpener = class extends SDKConstruct {
|
|
|
409901
410312
|
return quota / PERCENTAGE_FACTOR * PERCENTAGE_FACTOR;
|
|
409902
410313
|
}
|
|
409903
410314
|
};
|
|
409904
|
-
var SDKExample = class {
|
|
409905
|
-
#sdk;
|
|
409906
|
-
#logger;
|
|
409907
|
-
constructor(logger2) {
|
|
409908
|
-
this.#logger = logger2;
|
|
409909
|
-
}
|
|
409910
|
-
async run(opts) {
|
|
409911
|
-
const {
|
|
409912
|
-
addressProvider: ap,
|
|
409913
|
-
addressProviderJson,
|
|
409914
|
-
marketConfigurator: mc,
|
|
409915
|
-
marketConfiguratorJson,
|
|
409916
|
-
anvilUrl = "http://127.0.0.1:8545",
|
|
409917
|
-
outFile
|
|
409918
|
-
} = opts;
|
|
409919
|
-
const addressProvider = await this.#readConfigAddress(
|
|
409920
|
-
"addressProvider",
|
|
409921
|
-
ap,
|
|
409922
|
-
addressProviderJson
|
|
409923
|
-
);
|
|
409924
|
-
const marketConfigurator = await this.#readConfigAddress(
|
|
409925
|
-
"marketConfigurator",
|
|
409926
|
-
mc,
|
|
409927
|
-
marketConfiguratorJson
|
|
409928
|
-
);
|
|
409929
|
-
this.#sdk = await GearboxSDK.attach({
|
|
409930
|
-
rpcURLs: [anvilUrl],
|
|
409931
|
-
timeout: 48e4,
|
|
409932
|
-
addressProvider,
|
|
409933
|
-
logger: this.#logger,
|
|
409934
|
-
ignoreUpdateablePrices: true,
|
|
409935
|
-
marketConfigurators: [marketConfigurator]
|
|
409936
|
-
});
|
|
409937
|
-
await this.#safeMigrateFaucet(addressProvider);
|
|
409938
|
-
const puTx = await this.#sdk.priceFeeds.getUpdatePriceFeedsTx([
|
|
409939
|
-
marketConfigurator
|
|
409940
|
-
]);
|
|
409941
|
-
const updater = createWalletClient({
|
|
409942
|
-
account: privateKeyToAccount(
|
|
409943
|
-
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
|
|
409944
|
-
// well-known anvil private key
|
|
409945
|
-
),
|
|
409946
|
-
transport: http(anvilUrl)
|
|
409947
|
-
});
|
|
409948
|
-
const publicClient = createPublicClient({
|
|
409949
|
-
transport: http(anvilUrl)
|
|
409950
|
-
});
|
|
409951
|
-
const hash2 = await sendRawTx(updater, { tx: puTx });
|
|
409952
|
-
await publicClient.waitForTransactionReceipt({ hash: hash2 });
|
|
409953
|
-
await this.#sdk.marketRegister.loadMarkets([marketConfigurator], true);
|
|
409954
|
-
this.#logger?.info("attached sdk");
|
|
409955
|
-
if (outFile) {
|
|
409956
|
-
try {
|
|
409957
|
-
await writeFile2(
|
|
409958
|
-
outFile,
|
|
409959
|
-
json_stringify(this.#sdk.stateHuman()),
|
|
409960
|
-
"utf-8"
|
|
409961
|
-
);
|
|
409962
|
-
} catch (e) {
|
|
409963
|
-
this.#logger?.error(`failed to write to ${outFile}: ${e}`);
|
|
409964
|
-
}
|
|
409965
|
-
}
|
|
409966
|
-
}
|
|
409967
|
-
async #readConfigAddress(name, value, file) {
|
|
409968
|
-
let result = value;
|
|
409969
|
-
if (!result) {
|
|
409970
|
-
if (!file) {
|
|
409971
|
-
throw new Error(`${name} is not specified`);
|
|
409972
|
-
}
|
|
409973
|
-
this.#logger?.debug(`reading ${name} json ${file}`);
|
|
409974
|
-
const apFile = await readFile3(file, "utf-8").then(JSON.parse);
|
|
409975
|
-
result = apFile[name];
|
|
409976
|
-
}
|
|
409977
|
-
if (!result) {
|
|
409978
|
-
throw new Error(`${name} is not specified`);
|
|
409979
|
-
}
|
|
409980
|
-
if (!isAddress(result)) {
|
|
409981
|
-
throw new Error(`${name} is not a valid address: ${result}`);
|
|
409982
|
-
}
|
|
409983
|
-
this.#logger?.info(`using ${name} ${result}`);
|
|
409984
|
-
return result;
|
|
409985
|
-
}
|
|
409986
|
-
async #safeMigrateFaucet(addressProvider) {
|
|
409987
|
-
try {
|
|
409988
|
-
await this.#migrateFaucet(addressProvider);
|
|
409989
|
-
this.#logger?.info("faucet migrated successfully");
|
|
409990
|
-
} catch (e) {
|
|
409991
|
-
this.#logger?.error(`faucet migration failed: ${e}`);
|
|
409992
|
-
}
|
|
409993
|
-
}
|
|
409994
|
-
/**
|
|
409995
|
-
* Migrates faucet from address provider v3 to v3.1
|
|
409996
|
-
* @param addressProvider 3.1 address provider
|
|
409997
|
-
*/
|
|
409998
|
-
async #migrateFaucet(addressProvider) {
|
|
409999
|
-
const anvil = createAnvilClient({
|
|
410000
|
-
chain: this.sdk.provider.chain,
|
|
410001
|
-
transport: this.sdk.provider.transport
|
|
410002
|
-
});
|
|
410003
|
-
const [faucetAddr, owner] = await anvil.multicall({
|
|
410004
|
-
contracts: [
|
|
410005
|
-
{
|
|
410006
|
-
abi: iAddressProviderV3Abi,
|
|
410007
|
-
address: ADDRESS_PROVIDER[this.sdk.provider.networkType],
|
|
410008
|
-
functionName: "getAddressOrRevert",
|
|
410009
|
-
args: [stringToHex("FAUCET", { size: 32 }), 0n]
|
|
410010
|
-
},
|
|
410011
|
-
{
|
|
410012
|
-
abi: iAddressProviderV3_1Abi,
|
|
410013
|
-
address: addressProvider,
|
|
410014
|
-
functionName: "owner",
|
|
410015
|
-
args: []
|
|
410016
|
-
}
|
|
410017
|
-
],
|
|
410018
|
-
allowFailure: false
|
|
410019
|
-
});
|
|
410020
|
-
this.#logger?.debug(`faucet address: ${faucetAddr}, owner: ${owner}`);
|
|
410021
|
-
await anvil.impersonateAccount({ address: owner });
|
|
410022
|
-
await anvil.setBalance({
|
|
410023
|
-
address: owner,
|
|
410024
|
-
value: parseEther("100")
|
|
410025
|
-
});
|
|
410026
|
-
const hash2 = await anvil.writeContract({
|
|
410027
|
-
chain: anvil.chain,
|
|
410028
|
-
account: owner,
|
|
410029
|
-
address: addressProvider,
|
|
410030
|
-
abi: iAddressProviderV3_1Abi,
|
|
410031
|
-
functionName: "setAddress",
|
|
410032
|
-
args: [stringToHex("FAUCET", { size: 32 }), faucetAddr, true]
|
|
410033
|
-
});
|
|
410034
|
-
const receipt = await anvil.waitForTransactionReceipt({ hash: hash2 });
|
|
410035
|
-
await anvil.stopImpersonatingAccount({ address: owner });
|
|
410036
|
-
if (receipt.status === "reverted") {
|
|
410037
|
-
throw new Error("faucet migration reverted");
|
|
410038
|
-
}
|
|
410039
|
-
}
|
|
410040
|
-
get sdk() {
|
|
410041
|
-
if (!this.#sdk) {
|
|
410042
|
-
throw new Error("sdk is not attached");
|
|
410043
|
-
}
|
|
410044
|
-
return this.#sdk;
|
|
410045
|
-
}
|
|
410046
|
-
};
|
|
410047
410315
|
var iaclAbi2 = [
|
|
410048
410316
|
{
|
|
410049
410317
|
type: "function",
|
|
@@ -411419,6 +411687,149 @@ var iCreditManagerV3Abi2 = [
|
|
|
411419
411687
|
name: "SetCreditConfigurator"
|
|
411420
411688
|
}
|
|
411421
411689
|
];
|
|
411690
|
+
var SDKExample = class {
|
|
411691
|
+
#sdk;
|
|
411692
|
+
#logger;
|
|
411693
|
+
constructor(logger2) {
|
|
411694
|
+
this.#logger = logger2;
|
|
411695
|
+
}
|
|
411696
|
+
async run(opts) {
|
|
411697
|
+
const {
|
|
411698
|
+
addressProvider: ap,
|
|
411699
|
+
addressProviderJson,
|
|
411700
|
+
marketConfigurator: mc,
|
|
411701
|
+
marketConfiguratorJson,
|
|
411702
|
+
anvilUrl = "http://127.0.0.1:8545",
|
|
411703
|
+
outFile
|
|
411704
|
+
} = opts;
|
|
411705
|
+
const addressProvider = await this.#readConfigAddress(
|
|
411706
|
+
"addressProvider",
|
|
411707
|
+
ap,
|
|
411708
|
+
addressProviderJson
|
|
411709
|
+
);
|
|
411710
|
+
const marketConfigurator = await this.#readConfigAddress(
|
|
411711
|
+
"marketConfigurator",
|
|
411712
|
+
mc,
|
|
411713
|
+
marketConfiguratorJson
|
|
411714
|
+
);
|
|
411715
|
+
this.#sdk = await GearboxSDK.attach({
|
|
411716
|
+
rpcURLs: [anvilUrl],
|
|
411717
|
+
timeout: 48e4,
|
|
411718
|
+
addressProvider,
|
|
411719
|
+
logger: this.#logger,
|
|
411720
|
+
ignoreUpdateablePrices: true,
|
|
411721
|
+
marketConfigurators: [marketConfigurator]
|
|
411722
|
+
});
|
|
411723
|
+
await this.#safeMigrateFaucet(addressProvider);
|
|
411724
|
+
const puTx = await this.#sdk.priceFeeds.getUpdatePriceFeedsTx([
|
|
411725
|
+
marketConfigurator
|
|
411726
|
+
]);
|
|
411727
|
+
const updater = createWalletClient({
|
|
411728
|
+
account: privateKeyToAccount(
|
|
411729
|
+
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
|
|
411730
|
+
// well-known anvil private key
|
|
411731
|
+
),
|
|
411732
|
+
transport: http(anvilUrl)
|
|
411733
|
+
});
|
|
411734
|
+
const publicClient = createPublicClient({
|
|
411735
|
+
transport: http(anvilUrl)
|
|
411736
|
+
});
|
|
411737
|
+
const hash2 = await sendRawTx(updater, { tx: puTx });
|
|
411738
|
+
await publicClient.waitForTransactionReceipt({ hash: hash2 });
|
|
411739
|
+
await this.#sdk.marketRegister.loadMarkets([marketConfigurator], true);
|
|
411740
|
+
this.#logger?.info("attached sdk");
|
|
411741
|
+
if (outFile) {
|
|
411742
|
+
try {
|
|
411743
|
+
await writeFile2(
|
|
411744
|
+
outFile,
|
|
411745
|
+
json_stringify(this.#sdk.stateHuman()),
|
|
411746
|
+
"utf-8"
|
|
411747
|
+
);
|
|
411748
|
+
} catch (e) {
|
|
411749
|
+
this.#logger?.error(`failed to write to ${outFile}: ${e}`);
|
|
411750
|
+
}
|
|
411751
|
+
}
|
|
411752
|
+
}
|
|
411753
|
+
async #readConfigAddress(name, value, file) {
|
|
411754
|
+
let result = value;
|
|
411755
|
+
if (!result) {
|
|
411756
|
+
if (!file) {
|
|
411757
|
+
throw new Error(`${name} is not specified`);
|
|
411758
|
+
}
|
|
411759
|
+
this.#logger?.debug(`reading ${name} json ${file}`);
|
|
411760
|
+
const apFile = await readFile3(file, "utf-8").then(JSON.parse);
|
|
411761
|
+
result = apFile[name];
|
|
411762
|
+
}
|
|
411763
|
+
if (!result) {
|
|
411764
|
+
throw new Error(`${name} is not specified`);
|
|
411765
|
+
}
|
|
411766
|
+
if (!isAddress(result)) {
|
|
411767
|
+
throw new Error(`${name} is not a valid address: ${result}`);
|
|
411768
|
+
}
|
|
411769
|
+
this.#logger?.info(`using ${name} ${result}`);
|
|
411770
|
+
return result;
|
|
411771
|
+
}
|
|
411772
|
+
async #safeMigrateFaucet(addressProvider) {
|
|
411773
|
+
try {
|
|
411774
|
+
await this.#migrateFaucet(addressProvider);
|
|
411775
|
+
this.#logger?.info("faucet migrated successfully");
|
|
411776
|
+
} catch (e) {
|
|
411777
|
+
this.#logger?.error(`faucet migration failed: ${e}`);
|
|
411778
|
+
}
|
|
411779
|
+
}
|
|
411780
|
+
/**
|
|
411781
|
+
* Migrates faucet from address provider v3 to v3.1
|
|
411782
|
+
* @param addressProvider 3.1 address provider
|
|
411783
|
+
*/
|
|
411784
|
+
async #migrateFaucet(addressProvider) {
|
|
411785
|
+
const anvil = createAnvilClient({
|
|
411786
|
+
chain: this.sdk.provider.chain,
|
|
411787
|
+
transport: this.sdk.provider.transport
|
|
411788
|
+
});
|
|
411789
|
+
const [faucetAddr, owner] = await anvil.multicall({
|
|
411790
|
+
contracts: [
|
|
411791
|
+
{
|
|
411792
|
+
abi: iAddressProviderV3Abi,
|
|
411793
|
+
address: ADDRESS_PROVIDER[this.sdk.provider.networkType],
|
|
411794
|
+
functionName: "getAddressOrRevert",
|
|
411795
|
+
args: [stringToHex("FAUCET", { size: 32 }), 0n]
|
|
411796
|
+
},
|
|
411797
|
+
{
|
|
411798
|
+
abi: iAddressProviderV3_1Abi,
|
|
411799
|
+
address: addressProvider,
|
|
411800
|
+
functionName: "owner",
|
|
411801
|
+
args: []
|
|
411802
|
+
}
|
|
411803
|
+
],
|
|
411804
|
+
allowFailure: false
|
|
411805
|
+
});
|
|
411806
|
+
this.#logger?.debug(`faucet address: ${faucetAddr}, owner: ${owner}`);
|
|
411807
|
+
await anvil.impersonateAccount({ address: owner });
|
|
411808
|
+
await anvil.setBalance({
|
|
411809
|
+
address: owner,
|
|
411810
|
+
value: parseEther("100")
|
|
411811
|
+
});
|
|
411812
|
+
const hash2 = await anvil.writeContract({
|
|
411813
|
+
chain: anvil.chain,
|
|
411814
|
+
account: owner,
|
|
411815
|
+
address: addressProvider,
|
|
411816
|
+
abi: iAddressProviderV3_1Abi,
|
|
411817
|
+
functionName: "setAddress",
|
|
411818
|
+
args: [stringToHex("FAUCET", { size: 32 }), faucetAddr, true]
|
|
411819
|
+
});
|
|
411820
|
+
const receipt = await anvil.waitForTransactionReceipt({ hash: hash2 });
|
|
411821
|
+
await anvil.stopImpersonatingAccount({ address: owner });
|
|
411822
|
+
if (receipt.status === "reverted") {
|
|
411823
|
+
throw new Error("faucet migration reverted");
|
|
411824
|
+
}
|
|
411825
|
+
}
|
|
411826
|
+
get sdk() {
|
|
411827
|
+
if (!this.#sdk) {
|
|
411828
|
+
throw new Error("sdk is not attached");
|
|
411829
|
+
}
|
|
411830
|
+
return this.#sdk;
|
|
411831
|
+
}
|
|
411832
|
+
};
|
|
411422
411833
|
async function setLTZero(anvil, cm, logger2) {
|
|
411423
411834
|
const aclAddr = await anvil.readContract({
|
|
411424
411835
|
address: cm.creditConfigurator,
|
|
@@ -418441,7 +418852,7 @@ function getRenderer(opts) {
|
|
|
418441
418852
|
var package_default = {
|
|
418442
418853
|
name: "@gearbox-protocol/deploy-tools",
|
|
418443
418854
|
description: "Gearbox deploy tools",
|
|
418444
|
-
version: "5.
|
|
418855
|
+
version: "5.5.1",
|
|
418445
418856
|
homepage: "https://gearbox.fi",
|
|
418446
418857
|
keywords: [
|
|
418447
418858
|
"gearbox"
|