@gearbox-protocol/deploy-tools 5.5.0 → 5.5.2
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 +1231 -543
- package/package.json +3 -3
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
|
*
|
|
@@ -4136,15 +4151,15 @@ var init_structs = __esm({
|
|
|
4136
4151
|
// ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/parseAbi.js
|
|
4137
4152
|
function parseAbi(signatures) {
|
|
4138
4153
|
const structs = parseStructs(signatures);
|
|
4139
|
-
const
|
|
4154
|
+
const abi33 = [];
|
|
4140
4155
|
const length = signatures.length;
|
|
4141
4156
|
for (let i = 0; i < length; i++) {
|
|
4142
4157
|
const signature = signatures[i];
|
|
4143
4158
|
if (isStructSignature(signature))
|
|
4144
4159
|
continue;
|
|
4145
|
-
|
|
4160
|
+
abi33.push(parseSignature(signature, structs));
|
|
4146
4161
|
}
|
|
4147
|
-
return
|
|
4162
|
+
return abi33;
|
|
4148
4163
|
}
|
|
4149
4164
|
var init_parseAbi = __esm({
|
|
4150
4165
|
"../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/parseAbi.js"() {
|
|
@@ -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.11";
|
|
4248
4263
|
}
|
|
4249
4264
|
});
|
|
4250
4265
|
|
|
@@ -5813,9 +5828,9 @@ var init_toFunctionSelector = __esm({
|
|
|
5813
5828
|
|
|
5814
5829
|
// ../../node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
5815
5830
|
function getAbiItem(parameters) {
|
|
5816
|
-
const { abi:
|
|
5831
|
+
const { abi: abi33, args = [], name } = parameters;
|
|
5817
5832
|
const isSelector = isHex(name, { strict: false });
|
|
5818
|
-
const abiItems =
|
|
5833
|
+
const abiItems = abi33.filter((abiItem) => {
|
|
5819
5834
|
if (isSelector) {
|
|
5820
5835
|
if (abiItem.type === "function")
|
|
5821
5836
|
return toFunctionSelector(abiItem) === name;
|
|
@@ -5945,11 +5960,11 @@ var init_parseAccount = __esm({
|
|
|
5945
5960
|
|
|
5946
5961
|
// ../../node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
5947
5962
|
function prepareEncodeFunctionData(parameters) {
|
|
5948
|
-
const { abi:
|
|
5949
|
-
let abiItem =
|
|
5963
|
+
const { abi: abi33, args, functionName } = parameters;
|
|
5964
|
+
let abiItem = abi33[0];
|
|
5950
5965
|
if (functionName) {
|
|
5951
5966
|
const item = getAbiItem({
|
|
5952
|
-
abi:
|
|
5967
|
+
abi: abi33,
|
|
5953
5968
|
args,
|
|
5954
5969
|
name: functionName
|
|
5955
5970
|
});
|
|
@@ -5978,12 +5993,12 @@ var init_prepareEncodeFunctionData = __esm({
|
|
|
5978
5993
|
// ../../node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
5979
5994
|
function encodeFunctionData(parameters) {
|
|
5980
5995
|
const { args } = parameters;
|
|
5981
|
-
const { abi:
|
|
5996
|
+
const { abi: abi33, functionName } = (() => {
|
|
5982
5997
|
if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
|
|
5983
5998
|
return parameters;
|
|
5984
5999
|
return prepareEncodeFunctionData(parameters);
|
|
5985
6000
|
})();
|
|
5986
|
-
const abiItem =
|
|
6001
|
+
const abiItem = abi33[0];
|
|
5987
6002
|
const signature = functionName;
|
|
5988
6003
|
const data = "inputs" in abiItem && abiItem.inputs ? encodeAbiParameters(abiItem.inputs, args ?? []) : void 0;
|
|
5989
6004
|
return concatHex([signature, data ?? "0x"]);
|
|
@@ -6478,11 +6493,11 @@ var init_decodeAbiParameters = __esm({
|
|
|
6478
6493
|
|
|
6479
6494
|
// ../../node_modules/viem/_esm/utils/abi/decodeErrorResult.js
|
|
6480
6495
|
function decodeErrorResult(parameters) {
|
|
6481
|
-
const { abi:
|
|
6496
|
+
const { abi: abi33, data } = parameters;
|
|
6482
6497
|
const signature = slice(data, 0, 4);
|
|
6483
6498
|
if (signature === "0x")
|
|
6484
6499
|
throw new AbiDecodingZeroDataError();
|
|
6485
|
-
const abi_ = [...
|
|
6500
|
+
const abi_ = [...abi33 || [], solidityError, solidityPanic];
|
|
6486
6501
|
const abiItem = abi_.find((x) => x.type === "error" && signature === toFunctionSelector(formatAbiItem2(x)));
|
|
6487
6502
|
if (!abiItem)
|
|
6488
6503
|
throw new AbiErrorSignatureNotFoundError(signature, {
|
|
@@ -6825,8 +6840,8 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
6825
6840
|
}
|
|
6826
6841
|
};
|
|
6827
6842
|
ContractFunctionExecutionError = class extends BaseError2 {
|
|
6828
|
-
constructor(cause, { abi:
|
|
6829
|
-
const abiItem = getAbiItem({ abi:
|
|
6843
|
+
constructor(cause, { abi: abi33, args, contractAddress, docsPath: docsPath6, functionName, sender }) {
|
|
6844
|
+
const abiItem = getAbiItem({ abi: abi33, args, name: functionName });
|
|
6830
6845
|
const formattedArgs = abiItem ? formatAbiItemWithArgs({
|
|
6831
6846
|
abiItem,
|
|
6832
6847
|
args,
|
|
@@ -6892,7 +6907,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
6892
6907
|
writable: true,
|
|
6893
6908
|
value: void 0
|
|
6894
6909
|
});
|
|
6895
|
-
this.abi =
|
|
6910
|
+
this.abi = abi33;
|
|
6896
6911
|
this.args = args;
|
|
6897
6912
|
this.cause = cause;
|
|
6898
6913
|
this.contractAddress = contractAddress;
|
|
@@ -6901,14 +6916,14 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
6901
6916
|
}
|
|
6902
6917
|
};
|
|
6903
6918
|
ContractFunctionRevertedError = class extends BaseError2 {
|
|
6904
|
-
constructor({ abi:
|
|
6919
|
+
constructor({ abi: abi33, data, functionName, message }) {
|
|
6905
6920
|
let cause;
|
|
6906
6921
|
let decodedData = void 0;
|
|
6907
6922
|
let metaMessages;
|
|
6908
6923
|
let reason;
|
|
6909
6924
|
if (data && data !== "0x") {
|
|
6910
6925
|
try {
|
|
6911
|
-
decodedData = decodeErrorResult({ abi:
|
|
6926
|
+
decodedData = decodeErrorResult({ abi: abi33, data });
|
|
6912
6927
|
const { abiItem, errorName, args: errorArgs } = decodedData;
|
|
6913
6928
|
if (errorName === "Error") {
|
|
6914
6929
|
reason = errorArgs[0];
|
|
@@ -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
|
};
|
|
@@ -10615,10 +10630,10 @@ var init_isAddressEqual = __esm({
|
|
|
10615
10630
|
|
|
10616
10631
|
// ../../node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
|
|
10617
10632
|
function decodeFunctionResult(parameters) {
|
|
10618
|
-
const { abi:
|
|
10619
|
-
let abiItem =
|
|
10633
|
+
const { abi: abi33, args, functionName, data } = parameters;
|
|
10634
|
+
let abiItem = abi33[0];
|
|
10620
10635
|
if (functionName) {
|
|
10621
|
-
const item = getAbiItem({ abi:
|
|
10636
|
+
const item = getAbiItem({ abi: abi33, args, name: functionName });
|
|
10622
10637
|
if (!item)
|
|
10623
10638
|
throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath4 });
|
|
10624
10639
|
abiItem = item;
|
|
@@ -11454,10 +11469,10 @@ var init_chain = __esm({
|
|
|
11454
11469
|
|
|
11455
11470
|
// ../../node_modules/viem/_esm/utils/abi/encodeDeployData.js
|
|
11456
11471
|
function encodeDeployData(parameters) {
|
|
11457
|
-
const { abi:
|
|
11472
|
+
const { abi: abi33, args, bytecode } = parameters;
|
|
11458
11473
|
if (!args || args.length === 0)
|
|
11459
11474
|
return bytecode;
|
|
11460
|
-
const description =
|
|
11475
|
+
const description = abi33.find((x) => "type" in x && x.type === "constructor");
|
|
11461
11476
|
if (!description)
|
|
11462
11477
|
throw new AbiConstructorNotFoundError({ docsPath: docsPath5 });
|
|
11463
11478
|
if (!("inputs" in description))
|
|
@@ -21389,13 +21404,13 @@ var require_interface = __commonJS({
|
|
|
21389
21404
|
function Interface2(fragments) {
|
|
21390
21405
|
var _newTarget = this.constructor;
|
|
21391
21406
|
var _this = this;
|
|
21392
|
-
var
|
|
21407
|
+
var abi33 = [];
|
|
21393
21408
|
if (typeof fragments === "string") {
|
|
21394
|
-
|
|
21409
|
+
abi33 = JSON.parse(fragments);
|
|
21395
21410
|
} else {
|
|
21396
|
-
|
|
21411
|
+
abi33 = fragments;
|
|
21397
21412
|
}
|
|
21398
|
-
(0, properties_1.defineReadOnly)(this, "fragments",
|
|
21413
|
+
(0, properties_1.defineReadOnly)(this, "fragments", abi33.map(function(fragment) {
|
|
21399
21414
|
return fragments_1.Fragment.from(fragment);
|
|
21400
21415
|
}).filter(function(fragment) {
|
|
21401
21416
|
return fragment != null;
|
|
@@ -21449,15 +21464,15 @@ var require_interface = __commonJS({
|
|
|
21449
21464
|
if (format === fragments_1.FormatTypes.sighash) {
|
|
21450
21465
|
logger2.throwArgumentError("interface does not support formatting sighash", "format", format);
|
|
21451
21466
|
}
|
|
21452
|
-
var
|
|
21467
|
+
var abi33 = this.fragments.map(function(fragment) {
|
|
21453
21468
|
return fragment.format(format);
|
|
21454
21469
|
});
|
|
21455
21470
|
if (format === fragments_1.FormatTypes.json) {
|
|
21456
|
-
return JSON.stringify(
|
|
21471
|
+
return JSON.stringify(abi33.map(function(j) {
|
|
21457
21472
|
return JSON.parse(j);
|
|
21458
21473
|
}));
|
|
21459
21474
|
}
|
|
21460
|
-
return
|
|
21475
|
+
return abi33;
|
|
21461
21476
|
};
|
|
21462
21477
|
Interface2.getAbiCoder = function() {
|
|
21463
21478
|
return abi_coder_1.defaultAbiCoder;
|
|
@@ -37156,14 +37171,14 @@ var require_lib29 = __commonJS({
|
|
|
37156
37171
|
if (typeof compilerOutput === "string") {
|
|
37157
37172
|
compilerOutput = JSON.parse(compilerOutput);
|
|
37158
37173
|
}
|
|
37159
|
-
var
|
|
37174
|
+
var abi33 = compilerOutput.abi;
|
|
37160
37175
|
var bytecode = null;
|
|
37161
37176
|
if (compilerOutput.bytecode) {
|
|
37162
37177
|
bytecode = compilerOutput.bytecode;
|
|
37163
37178
|
} else if (compilerOutput.evm && compilerOutput.evm.bytecode) {
|
|
37164
37179
|
bytecode = compilerOutput.evm.bytecode;
|
|
37165
37180
|
}
|
|
37166
|
-
return new this(
|
|
37181
|
+
return new this(abi33, bytecode, signer);
|
|
37167
37182
|
};
|
|
37168
37183
|
ContractFactory2.getInterface = function(contractInterface) {
|
|
37169
37184
|
return Contract.getInterface(contractInterface);
|
|
@@ -50258,7 +50273,7 @@ var require_node_gyp_build = __commonJS({
|
|
|
50258
50273
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
50259
50274
|
var vars = process.config && process.config.variables || {};
|
|
50260
50275
|
var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
|
|
50261
|
-
var
|
|
50276
|
+
var abi33 = process.versions.modules;
|
|
50262
50277
|
var runtime = isElectron() ? "electron" : isNwjs() ? "node-webkit" : "node";
|
|
50263
50278
|
var arch = process.env.npm_config_arch || os2.arch();
|
|
50264
50279
|
var platform = process.env.npm_config_platform || os2.platform();
|
|
@@ -50290,7 +50305,7 @@ var require_node_gyp_build = __commonJS({
|
|
|
50290
50305
|
"platform=" + platform,
|
|
50291
50306
|
"arch=" + arch,
|
|
50292
50307
|
"runtime=" + runtime,
|
|
50293
|
-
"abi=" +
|
|
50308
|
+
"abi=" + abi33,
|
|
50294
50309
|
"uv=" + uv,
|
|
50295
50310
|
armv ? "armv=" + armv : "",
|
|
50296
50311
|
"libc=" + libc,
|
|
@@ -50306,7 +50321,7 @@ var require_node_gyp_build = __commonJS({
|
|
|
50306
50321
|
if (!tuple) return;
|
|
50307
50322
|
var prebuilds = path11.join(dir2, "prebuilds", tuple.name);
|
|
50308
50323
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
50309
|
-
var candidates = parsed.filter(matchTags(runtime,
|
|
50324
|
+
var candidates = parsed.filter(matchTags(runtime, abi33));
|
|
50310
50325
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
50311
50326
|
if (winner) return path11.join(prebuilds, winner.file);
|
|
50312
50327
|
}
|
|
@@ -50371,11 +50386,11 @@ var require_node_gyp_build = __commonJS({
|
|
|
50371
50386
|
}
|
|
50372
50387
|
return tags;
|
|
50373
50388
|
}
|
|
50374
|
-
function matchTags(runtime2,
|
|
50389
|
+
function matchTags(runtime2, abi34) {
|
|
50375
50390
|
return function(tags) {
|
|
50376
50391
|
if (tags == null) return false;
|
|
50377
50392
|
if (tags.runtime && tags.runtime !== runtime2 && !runtimeAgnostic(tags)) return false;
|
|
50378
|
-
if (tags.abi && tags.abi !==
|
|
50393
|
+
if (tags.abi && tags.abi !== abi34 && !tags.napi) return false;
|
|
50379
50394
|
if (tags.uv && tags.uv !== uv) return false;
|
|
50380
50395
|
if (tags.armv && tags.armv !== armv) return false;
|
|
50381
50396
|
if (tags.libc && tags.libc !== libc) return false;
|
|
@@ -111721,17 +111736,17 @@ var require_interface2 = __commonJS({
|
|
|
111721
111736
|
* Create a new Interface for the %%fragments%%.
|
|
111722
111737
|
*/
|
|
111723
111738
|
constructor(fragments) {
|
|
111724
|
-
let
|
|
111739
|
+
let abi33 = [];
|
|
111725
111740
|
if (typeof fragments === "string") {
|
|
111726
|
-
|
|
111741
|
+
abi33 = JSON.parse(fragments);
|
|
111727
111742
|
} else {
|
|
111728
|
-
|
|
111743
|
+
abi33 = fragments;
|
|
111729
111744
|
}
|
|
111730
111745
|
this.#functions = /* @__PURE__ */ new Map();
|
|
111731
111746
|
this.#errors = /* @__PURE__ */ new Map();
|
|
111732
111747
|
this.#events = /* @__PURE__ */ new Map();
|
|
111733
111748
|
const frags = [];
|
|
111734
|
-
for (const a of
|
|
111749
|
+
for (const a of abi33) {
|
|
111735
111750
|
try {
|
|
111736
111751
|
frags.push(fragments_js_1.Fragment.from(a));
|
|
111737
111752
|
} catch (error) {
|
|
@@ -111795,16 +111810,16 @@ var require_interface2 = __commonJS({
|
|
|
111795
111810
|
*/
|
|
111796
111811
|
format(minimal) {
|
|
111797
111812
|
const format = minimal ? "minimal" : "full";
|
|
111798
|
-
const
|
|
111799
|
-
return
|
|
111813
|
+
const abi33 = this.fragments.map((f) => f.format(format));
|
|
111814
|
+
return abi33;
|
|
111800
111815
|
}
|
|
111801
111816
|
/**
|
|
111802
111817
|
* Return the JSON-encoded ABI. This is the format Solidiy
|
|
111803
111818
|
* returns.
|
|
111804
111819
|
*/
|
|
111805
111820
|
formatJson() {
|
|
111806
|
-
const
|
|
111807
|
-
return JSON.stringify(
|
|
111821
|
+
const abi33 = this.fragments.map((f) => f.format("json"));
|
|
111822
|
+
return JSON.stringify(abi33.map((j) => JSON.parse(j)));
|
|
111808
111823
|
}
|
|
111809
111824
|
/**
|
|
111810
111825
|
* The ABI coder that will be used to encode and decode binary
|
|
@@ -114572,12 +114587,12 @@ var require_contract = __commonJS({
|
|
|
114572
114587
|
* optionally connected to a %%runner%% to perform operations on behalf
|
|
114573
114588
|
* of.
|
|
114574
114589
|
*/
|
|
114575
|
-
constructor(target,
|
|
114590
|
+
constructor(target, abi33, runner, _deployTx) {
|
|
114576
114591
|
(0, index_js_3.assertArgument)(typeof target === "string" || (0, index_js_2.isAddressable)(target), "invalid value for Contract target", "target", target);
|
|
114577
114592
|
if (runner == null) {
|
|
114578
114593
|
runner = null;
|
|
114579
114594
|
}
|
|
114580
|
-
const iface = index_js_1.Interface.from(
|
|
114595
|
+
const iface = index_js_1.Interface.from(abi33);
|
|
114581
114596
|
(0, index_js_3.defineProperties)(this, { target, runner, interface: iface });
|
|
114582
114597
|
Object.defineProperty(this, internal, { value: {} });
|
|
114583
114598
|
let addrPromise;
|
|
@@ -114940,10 +114955,10 @@ var require_contract = __commonJS({
|
|
|
114940
114955
|
/**
|
|
114941
114956
|
* Create a new Class for the %%abi%%.
|
|
114942
114957
|
*/
|
|
114943
|
-
static buildClass(
|
|
114958
|
+
static buildClass(abi33) {
|
|
114944
114959
|
class CustomContract extends _BaseContract {
|
|
114945
114960
|
constructor(address, runner = null) {
|
|
114946
|
-
super(address,
|
|
114961
|
+
super(address, abi33, runner);
|
|
114947
114962
|
}
|
|
114948
114963
|
}
|
|
114949
114964
|
return CustomContract;
|
|
@@ -114951,11 +114966,11 @@ var require_contract = __commonJS({
|
|
|
114951
114966
|
/**
|
|
114952
114967
|
* Create a new BaseContract with a specified Interface.
|
|
114953
114968
|
*/
|
|
114954
|
-
static from(target,
|
|
114969
|
+
static from(target, abi33, runner) {
|
|
114955
114970
|
if (runner == null) {
|
|
114956
114971
|
runner = null;
|
|
114957
114972
|
}
|
|
114958
|
-
const contract = new this(target,
|
|
114973
|
+
const contract = new this(target, abi33, runner);
|
|
114959
114974
|
return contract;
|
|
114960
114975
|
}
|
|
114961
114976
|
};
|
|
@@ -114999,8 +115014,8 @@ var require_factory = __commonJS({
|
|
|
114999
115014
|
* The %%bytecode%% may be the ``bytecode`` property within the
|
|
115000
115015
|
* standard Solidity JSON output.
|
|
115001
115016
|
*/
|
|
115002
|
-
constructor(
|
|
115003
|
-
const iface = index_js_1.Interface.from(
|
|
115017
|
+
constructor(abi33, bytecode, runner) {
|
|
115018
|
+
const iface = index_js_1.Interface.from(abi33);
|
|
115004
115019
|
if (bytecode instanceof Uint8Array) {
|
|
115005
115020
|
bytecode = (0, index_js_3.hexlify)((0, index_js_3.getBytes)(bytecode));
|
|
115006
115021
|
} else {
|
|
@@ -115070,14 +115085,14 @@ var require_factory = __commonJS({
|
|
|
115070
115085
|
if (typeof output === "string") {
|
|
115071
115086
|
output = JSON.parse(output);
|
|
115072
115087
|
}
|
|
115073
|
-
const
|
|
115088
|
+
const abi33 = output.abi;
|
|
115074
115089
|
let bytecode = "";
|
|
115075
115090
|
if (output.bytecode) {
|
|
115076
115091
|
bytecode = output.bytecode;
|
|
115077
115092
|
} else if (output.evm && output.evm.bytecode) {
|
|
115078
115093
|
bytecode = output.evm.bytecode;
|
|
115079
115094
|
}
|
|
115080
|
-
return new this(
|
|
115095
|
+
return new this(abi33, bytecode, runner);
|
|
115081
115096
|
}
|
|
115082
115097
|
};
|
|
115083
115098
|
exports2.ContractFactory = ContractFactory;
|
|
@@ -120005,8 +120020,8 @@ var require_provider_etherscan = __commonJS({
|
|
|
120005
120020
|
action: "getabi",
|
|
120006
120021
|
address
|
|
120007
120022
|
});
|
|
120008
|
-
const
|
|
120009
|
-
return new index_js_2.Contract(address,
|
|
120023
|
+
const abi33 = JSON.parse(resp);
|
|
120024
|
+
return new index_js_2.Contract(address, abi33, this);
|
|
120010
120025
|
} catch (error) {
|
|
120011
120026
|
return null;
|
|
120012
120027
|
}
|
|
@@ -145112,9 +145127,9 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
145112
145127
|
var vars = process.config && process.config.variables || {};
|
|
145113
145128
|
var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
|
|
145114
145129
|
var versions = process.versions;
|
|
145115
|
-
var
|
|
145130
|
+
var abi33 = versions.modules;
|
|
145116
145131
|
if (versions.deno || process.isBun) {
|
|
145117
|
-
|
|
145132
|
+
abi33 = "unsupported";
|
|
145118
145133
|
}
|
|
145119
145134
|
var runtime = isElectron() ? "electron" : "node";
|
|
145120
145135
|
var arch = process.arch;
|
|
@@ -145161,7 +145176,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
145161
145176
|
"platform=" + platform,
|
|
145162
145177
|
"arch=" + arch,
|
|
145163
145178
|
"runtime=" + runtime,
|
|
145164
|
-
"abi=" +
|
|
145179
|
+
"abi=" + abi33,
|
|
145165
145180
|
"uv=" + uv,
|
|
145166
145181
|
armv ? "armv=" + armv : "",
|
|
145167
145182
|
"libc=" + libc,
|
|
@@ -145179,7 +145194,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
145179
145194
|
}
|
|
145180
145195
|
function resolveFile(prebuilds) {
|
|
145181
145196
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
145182
|
-
var candidates = parsed.filter(matchTags(runtime,
|
|
145197
|
+
var candidates = parsed.filter(matchTags(runtime, abi33));
|
|
145183
145198
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
145184
145199
|
if (winner) return path11.join(prebuilds, winner.file);
|
|
145185
145200
|
}
|
|
@@ -145244,11 +145259,11 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
145244
145259
|
}
|
|
145245
145260
|
return tags;
|
|
145246
145261
|
}
|
|
145247
|
-
function matchTags(runtime2,
|
|
145262
|
+
function matchTags(runtime2, abi34) {
|
|
145248
145263
|
return function(tags) {
|
|
145249
145264
|
if (tags == null) return false;
|
|
145250
145265
|
if (tags.runtime !== runtime2 && !runtimeAgnostic(tags)) return false;
|
|
145251
|
-
if (tags.abi !==
|
|
145266
|
+
if (tags.abi !== abi34 && !tags.napi) return false;
|
|
145252
145267
|
if (tags.uv && tags.uv !== uv) return false;
|
|
145253
145268
|
if (tags.armv && tags.armv !== armv) return false;
|
|
145254
145269
|
if (tags.libc && tags.libc !== libc) return false;
|
|
@@ -151412,11 +151427,11 @@ var require_formatAbi = __commonJS({
|
|
|
151412
151427
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
151413
151428
|
exports2.formatAbi = formatAbi;
|
|
151414
151429
|
var formatAbiItem_js_1 = require_formatAbiItem();
|
|
151415
|
-
function formatAbi(
|
|
151430
|
+
function formatAbi(abi33) {
|
|
151416
151431
|
const signatures = [];
|
|
151417
|
-
const length =
|
|
151432
|
+
const length = abi33.length;
|
|
151418
151433
|
for (let i = 0; i < length; i++) {
|
|
151419
|
-
const abiItem =
|
|
151434
|
+
const abiItem = abi33[i];
|
|
151420
151435
|
const signature = (0, formatAbiItem_js_1.formatAbiItem)(abiItem);
|
|
151421
151436
|
signatures.push(signature);
|
|
151422
151437
|
}
|
|
@@ -152179,15 +152194,15 @@ var require_parseAbi = __commonJS({
|
|
|
152179
152194
|
var utils_js_1 = require_utils15();
|
|
152180
152195
|
function parseAbi3(signatures) {
|
|
152181
152196
|
const structs = (0, structs_js_1.parseStructs)(signatures);
|
|
152182
|
-
const
|
|
152197
|
+
const abi33 = [];
|
|
152183
152198
|
const length = signatures.length;
|
|
152184
152199
|
for (let i = 0; i < length; i++) {
|
|
152185
152200
|
const signature = signatures[i];
|
|
152186
152201
|
if ((0, signatures_js_1.isStructSignature)(signature))
|
|
152187
152202
|
continue;
|
|
152188
|
-
|
|
152203
|
+
abi33.push((0, utils_js_1.parseSignature)(signature, structs));
|
|
152189
152204
|
}
|
|
152190
|
-
return
|
|
152205
|
+
return abi33;
|
|
152191
152206
|
}
|
|
152192
152207
|
}
|
|
152193
152208
|
});
|
|
@@ -160079,11 +160094,11 @@ var require_formatAbi2 = __commonJS({
|
|
|
160079
160094
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
160080
160095
|
exports2.formatAbi = formatAbi;
|
|
160081
160096
|
var formatAbiItem_js_1 = require_formatAbiItem2();
|
|
160082
|
-
function formatAbi(
|
|
160097
|
+
function formatAbi(abi33) {
|
|
160083
160098
|
const signatures = [];
|
|
160084
|
-
const length =
|
|
160099
|
+
const length = abi33.length;
|
|
160085
160100
|
for (let i = 0; i < length; i++) {
|
|
160086
|
-
const abiItem =
|
|
160101
|
+
const abiItem = abi33[i];
|
|
160087
160102
|
const signature = (0, formatAbiItem_js_1.formatAbiItem)(abiItem);
|
|
160088
160103
|
signatures.push(signature);
|
|
160089
160104
|
}
|
|
@@ -160823,15 +160838,15 @@ var require_parseAbi2 = __commonJS({
|
|
|
160823
160838
|
var utils_js_1 = require_utils16();
|
|
160824
160839
|
function parseAbi3(signatures) {
|
|
160825
160840
|
const structs = (0, structs_js_1.parseStructs)(signatures);
|
|
160826
|
-
const
|
|
160841
|
+
const abi33 = [];
|
|
160827
160842
|
const length = signatures.length;
|
|
160828
160843
|
for (let i = 0; i < length; i++) {
|
|
160829
160844
|
const signature = signatures[i];
|
|
160830
160845
|
if ((0, signatures_js_1.isStructSignature)(signature))
|
|
160831
160846
|
continue;
|
|
160832
|
-
|
|
160847
|
+
abi33.push((0, utils_js_1.parseSignature)(signature, structs));
|
|
160833
160848
|
}
|
|
160834
|
-
return
|
|
160849
|
+
return abi33;
|
|
160835
160850
|
}
|
|
160836
160851
|
}
|
|
160837
160852
|
});
|
|
@@ -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.11";
|
|
161127
161142
|
}
|
|
161128
161143
|
});
|
|
161129
161144
|
|
|
@@ -163126,9 +163141,9 @@ var require_getAbiItem = __commonJS({
|
|
|
163126
163141
|
var toEventSelector_js_1 = require_toEventSelector();
|
|
163127
163142
|
var toFunctionSelector_js_1 = require_toFunctionSelector();
|
|
163128
163143
|
function getAbiItem2(parameters) {
|
|
163129
|
-
const { abi:
|
|
163144
|
+
const { abi: abi33, args = [], name } = parameters;
|
|
163130
163145
|
const isSelector = (0, isHex_js_1.isHex)(name, { strict: false });
|
|
163131
|
-
const abiItems =
|
|
163146
|
+
const abiItems = abi33.filter((abiItem) => {
|
|
163132
163147
|
if (isSelector) {
|
|
163133
163148
|
if (abiItem.type === "function")
|
|
163134
163149
|
return (0, toFunctionSelector_js_1.toFunctionSelector)(abiItem) === name;
|
|
@@ -163253,10 +163268,10 @@ var require_encodeEventTopics = __commonJS({
|
|
|
163253
163268
|
var getAbiItem_js_1 = require_getAbiItem();
|
|
163254
163269
|
var docsPath6 = "/docs/contract/encodeEventTopics";
|
|
163255
163270
|
function encodeEventTopics2(parameters) {
|
|
163256
|
-
const { abi:
|
|
163257
|
-
let abiItem =
|
|
163271
|
+
const { abi: abi33, eventName, args } = parameters;
|
|
163272
|
+
let abiItem = abi33[0];
|
|
163258
163273
|
if (eventName) {
|
|
163259
|
-
const item = (0, getAbiItem_js_1.getAbiItem)({ abi:
|
|
163274
|
+
const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi33, name: eventName });
|
|
163260
163275
|
if (!item)
|
|
163261
163276
|
throw new abi_js_1.AbiEventNotFoundError(eventName, { docsPath: docsPath6 });
|
|
163262
163277
|
abiItem = item;
|
|
@@ -163317,12 +163332,12 @@ var require_createContractEventFilter = __commonJS({
|
|
|
163317
163332
|
var toHex_js_1 = require_toHex();
|
|
163318
163333
|
var createFilterRequestScope_js_1 = require_createFilterRequestScope();
|
|
163319
163334
|
async function createContractEventFilter2(client, parameters) {
|
|
163320
|
-
const { address, abi:
|
|
163335
|
+
const { address, abi: abi33, args, eventName, fromBlock, strict, toBlock } = parameters;
|
|
163321
163336
|
const getRequest = (0, createFilterRequestScope_js_1.createFilterRequestScope)(client, {
|
|
163322
163337
|
method: "eth_newFilter"
|
|
163323
163338
|
});
|
|
163324
163339
|
const topics = eventName ? (0, encodeEventTopics_js_1.encodeEventTopics)({
|
|
163325
|
-
abi:
|
|
163340
|
+
abi: abi33,
|
|
163326
163341
|
args,
|
|
163327
163342
|
eventName
|
|
163328
163343
|
}) : void 0;
|
|
@@ -163338,7 +163353,7 @@ var require_createContractEventFilter = __commonJS({
|
|
|
163338
163353
|
]
|
|
163339
163354
|
});
|
|
163340
163355
|
return {
|
|
163341
|
-
abi:
|
|
163356
|
+
abi: abi33,
|
|
163342
163357
|
args,
|
|
163343
163358
|
eventName,
|
|
163344
163359
|
id,
|
|
@@ -163376,11 +163391,11 @@ var require_prepareEncodeFunctionData = __commonJS({
|
|
|
163376
163391
|
var getAbiItem_js_1 = require_getAbiItem();
|
|
163377
163392
|
var docsPath6 = "/docs/contract/encodeFunctionData";
|
|
163378
163393
|
function prepareEncodeFunctionData2(parameters) {
|
|
163379
|
-
const { abi:
|
|
163380
|
-
let abiItem =
|
|
163394
|
+
const { abi: abi33, args, functionName } = parameters;
|
|
163395
|
+
let abiItem = abi33[0];
|
|
163381
163396
|
if (functionName) {
|
|
163382
163397
|
const item = (0, getAbiItem_js_1.getAbiItem)({
|
|
163383
|
-
abi:
|
|
163398
|
+
abi: abi33,
|
|
163384
163399
|
args,
|
|
163385
163400
|
name: functionName
|
|
163386
163401
|
});
|
|
@@ -163409,12 +163424,12 @@ var require_encodeFunctionData = __commonJS({
|
|
|
163409
163424
|
var prepareEncodeFunctionData_js_1 = require_prepareEncodeFunctionData();
|
|
163410
163425
|
function encodeFunctionData2(parameters) {
|
|
163411
163426
|
const { args } = parameters;
|
|
163412
|
-
const { abi:
|
|
163427
|
+
const { abi: abi33, functionName } = (() => {
|
|
163413
163428
|
if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
|
|
163414
163429
|
return parameters;
|
|
163415
163430
|
return (0, prepareEncodeFunctionData_js_1.prepareEncodeFunctionData)(parameters);
|
|
163416
163431
|
})();
|
|
163417
|
-
const abiItem =
|
|
163432
|
+
const abiItem = abi33[0];
|
|
163418
163433
|
const signature = functionName;
|
|
163419
163434
|
const data = "inputs" in abiItem && abiItem.inputs ? (0, encodeAbiParameters_js_1.encodeAbiParameters)(abiItem.inputs, args ?? []) : void 0;
|
|
163420
163435
|
return (0, concat_js_1.concatHex)([signature, data ?? "0x"]);
|
|
@@ -163946,11 +163961,11 @@ var require_decodeErrorResult = __commonJS({
|
|
|
163946
163961
|
var decodeAbiParameters_js_1 = require_decodeAbiParameters();
|
|
163947
163962
|
var formatAbiItem_js_1 = require_formatAbiItem3();
|
|
163948
163963
|
function decodeErrorResult2(parameters) {
|
|
163949
|
-
const { abi:
|
|
163964
|
+
const { abi: abi33, data } = parameters;
|
|
163950
163965
|
const signature = (0, slice_js_1.slice)(data, 0, 4);
|
|
163951
163966
|
if (signature === "0x")
|
|
163952
163967
|
throw new abi_js_1.AbiDecodingZeroDataError();
|
|
163953
|
-
const abi_ = [...
|
|
163968
|
+
const abi_ = [...abi33 || [], solidity_js_1.solidityError, solidity_js_1.solidityPanic];
|
|
163954
163969
|
const abiItem = abi_.find((x) => x.type === "error" && signature === (0, toFunctionSelector_js_1.toFunctionSelector)((0, formatAbiItem_js_1.formatAbiItem)(x)));
|
|
163955
163970
|
if (!abiItem)
|
|
163956
163971
|
throw new abi_js_1.AbiErrorSignatureNotFoundError(signature, {
|
|
@@ -164372,8 +164387,8 @@ ${(0, stateOverride_js_1.prettyStateOverride)(stateOverride)}`;
|
|
|
164372
164387
|
};
|
|
164373
164388
|
exports2.CallExecutionError = CallExecutionError2;
|
|
164374
164389
|
var ContractFunctionExecutionError2 = class extends base_js_1.BaseError {
|
|
164375
|
-
constructor(cause, { abi:
|
|
164376
|
-
const abiItem = (0, getAbiItem_js_1.getAbiItem)({ abi:
|
|
164390
|
+
constructor(cause, { abi: abi33, args, contractAddress, docsPath: docsPath6, functionName, sender }) {
|
|
164391
|
+
const abiItem = (0, getAbiItem_js_1.getAbiItem)({ abi: abi33, args, name: functionName });
|
|
164377
164392
|
const formattedArgs = abiItem ? (0, formatAbiItemWithArgs_js_1.formatAbiItemWithArgs)({
|
|
164378
164393
|
abiItem,
|
|
164379
164394
|
args,
|
|
@@ -164439,7 +164454,7 @@ ${(0, stateOverride_js_1.prettyStateOverride)(stateOverride)}`;
|
|
|
164439
164454
|
writable: true,
|
|
164440
164455
|
value: void 0
|
|
164441
164456
|
});
|
|
164442
|
-
this.abi =
|
|
164457
|
+
this.abi = abi33;
|
|
164443
164458
|
this.args = args;
|
|
164444
164459
|
this.cause = cause;
|
|
164445
164460
|
this.contractAddress = contractAddress;
|
|
@@ -164449,14 +164464,14 @@ ${(0, stateOverride_js_1.prettyStateOverride)(stateOverride)}`;
|
|
|
164449
164464
|
};
|
|
164450
164465
|
exports2.ContractFunctionExecutionError = ContractFunctionExecutionError2;
|
|
164451
164466
|
var ContractFunctionRevertedError2 = class extends base_js_1.BaseError {
|
|
164452
|
-
constructor({ abi:
|
|
164467
|
+
constructor({ abi: abi33, data, functionName, message }) {
|
|
164453
164468
|
let cause;
|
|
164454
164469
|
let decodedData = void 0;
|
|
164455
164470
|
let metaMessages;
|
|
164456
164471
|
let reason;
|
|
164457
164472
|
if (data && data !== "0x") {
|
|
164458
164473
|
try {
|
|
164459
|
-
decodedData = (0, decodeErrorResult_js_1.decodeErrorResult)({ abi:
|
|
164474
|
+
decodedData = (0, decodeErrorResult_js_1.decodeErrorResult)({ abi: abi33, data });
|
|
164460
164475
|
const { abiItem, errorName, args: errorArgs } = decodedData;
|
|
164461
164476
|
if (errorName === "Error") {
|
|
164462
164477
|
reason = errorArgs[0];
|
|
@@ -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
|
};
|
|
@@ -165049,7 +165064,7 @@ var require_getContractError = __commonJS({
|
|
|
165049
165064
|
var request_js_1 = require_request();
|
|
165050
165065
|
var rpc_js_1 = require_rpc();
|
|
165051
165066
|
var EXECUTION_REVERTED_ERROR_CODE2 = 3;
|
|
165052
|
-
function getContractError2(err, { abi:
|
|
165067
|
+
function getContractError2(err, { abi: abi33, address, args, docsPath: docsPath6, functionName, sender }) {
|
|
165053
165068
|
const error = err instanceof contract_js_1.RawContractError ? err : err instanceof base_js_1.BaseError ? err.walk((err2) => "data" in err2) || err.walk() : {};
|
|
165054
165069
|
const { code, data, details, message, shortMessage } = error;
|
|
165055
165070
|
const cause = (() => {
|
|
@@ -165057,7 +165072,7 @@ var require_getContractError = __commonJS({
|
|
|
165057
165072
|
return new contract_js_1.ContractFunctionZeroDataError({ functionName });
|
|
165058
165073
|
if ([EXECUTION_REVERTED_ERROR_CODE2, rpc_js_1.InternalRpcError.code].includes(code) && (data || details || message || shortMessage)) {
|
|
165059
165074
|
return new contract_js_1.ContractFunctionRevertedError({
|
|
165060
|
-
abi:
|
|
165075
|
+
abi: abi33,
|
|
165061
165076
|
data: typeof data === "object" ? data.data : data,
|
|
165062
165077
|
functionName,
|
|
165063
165078
|
message: error instanceof request_js_1.RpcRequestError ? details : shortMessage ?? message
|
|
@@ -165066,7 +165081,7 @@ var require_getContractError = __commonJS({
|
|
|
165066
165081
|
return err;
|
|
165067
165082
|
})();
|
|
165068
165083
|
return new contract_js_1.ContractFunctionExecutionError(cause, {
|
|
165069
|
-
abi:
|
|
165084
|
+
abi: abi33,
|
|
165070
165085
|
args,
|
|
165071
165086
|
contractAddress: address,
|
|
165072
165087
|
docsPath: docsPath6,
|
|
@@ -170048,9 +170063,9 @@ var require_estimateContractGas = __commonJS({
|
|
|
170048
170063
|
var getAction_js_1 = require_getAction();
|
|
170049
170064
|
var estimateGas_js_1 = require_estimateGas2();
|
|
170050
170065
|
async function estimateContractGas2(client, parameters) {
|
|
170051
|
-
const { abi:
|
|
170066
|
+
const { abi: abi33, address, args, functionName, dataSuffix, ...request } = parameters;
|
|
170052
170067
|
const data = (0, encodeFunctionData_js_1.encodeFunctionData)({
|
|
170053
|
-
abi:
|
|
170068
|
+
abi: abi33,
|
|
170054
170069
|
args,
|
|
170055
170070
|
functionName
|
|
170056
170071
|
});
|
|
@@ -170064,7 +170079,7 @@ var require_estimateContractGas = __commonJS({
|
|
|
170064
170079
|
} catch (error) {
|
|
170065
170080
|
const account = request.account ? (0, parseAccount_js_1.parseAccount)(request.account) : void 0;
|
|
170066
170081
|
throw (0, getContractError_js_1.getContractError)(error, {
|
|
170067
|
-
abi:
|
|
170082
|
+
abi: abi33,
|
|
170068
170083
|
address,
|
|
170069
170084
|
args,
|
|
170070
170085
|
docsPath: "/docs/contract/estimateContractGas",
|
|
@@ -170108,15 +170123,15 @@ var require_decodeEventLog = __commonJS({
|
|
|
170108
170123
|
var formatAbiItem_js_1 = require_formatAbiItem3();
|
|
170109
170124
|
var docsPath6 = "/docs/contract/decodeEventLog";
|
|
170110
170125
|
function decodeEventLog2(parameters) {
|
|
170111
|
-
const { abi:
|
|
170126
|
+
const { abi: abi33, data, strict: strict_, topics } = parameters;
|
|
170112
170127
|
const strict = strict_ ?? true;
|
|
170113
170128
|
const [signature, ...argTopics] = topics;
|
|
170114
170129
|
if (!signature)
|
|
170115
170130
|
throw new abi_js_1.AbiEventSignatureEmptyTopicsError({ docsPath: docsPath6 });
|
|
170116
170131
|
const abiItem = (() => {
|
|
170117
|
-
if (
|
|
170118
|
-
return
|
|
170119
|
-
return
|
|
170132
|
+
if (abi33.length === 1)
|
|
170133
|
+
return abi33[0];
|
|
170134
|
+
return abi33.find((x) => x.type === "event" && signature === (0, toEventSelector_js_1.toEventSelector)((0, formatAbiItem_js_1.formatAbiItem)(x)));
|
|
170120
170135
|
})();
|
|
170121
170136
|
if (!(abiItem && "name" in abiItem) || abiItem.type !== "event")
|
|
170122
170137
|
throw new abi_js_1.AbiEventSignatureNotFoundError(signature, { docsPath: docsPath6 });
|
|
@@ -170196,7 +170211,7 @@ var require_parseEventLogs = __commonJS({
|
|
|
170196
170211
|
var toEventSelector_js_1 = require_toEventSelector();
|
|
170197
170212
|
var decodeEventLog_js_1 = require_decodeEventLog();
|
|
170198
170213
|
function parseEventLogs2(parameters) {
|
|
170199
|
-
const { abi:
|
|
170214
|
+
const { abi: abi33, args, logs, strict = true } = parameters;
|
|
170200
170215
|
const eventName = (() => {
|
|
170201
170216
|
if (!parameters.eventName)
|
|
170202
170217
|
return void 0;
|
|
@@ -170206,7 +170221,7 @@ var require_parseEventLogs = __commonJS({
|
|
|
170206
170221
|
})();
|
|
170207
170222
|
return logs.map((log2) => {
|
|
170208
170223
|
try {
|
|
170209
|
-
const abiItem =
|
|
170224
|
+
const abiItem = abi33.find((abiItem2) => abiItem2.type === "event" && log2.topics[0] === (0, toEventSelector_js_1.toEventSelector)(abiItem2));
|
|
170210
170225
|
if (!abiItem)
|
|
170211
170226
|
return null;
|
|
170212
170227
|
const event = (0, decodeEventLog_js_1.decodeEventLog)({
|
|
@@ -170367,9 +170382,9 @@ var require_getContractEvents = __commonJS({
|
|
|
170367
170382
|
var getAction_js_1 = require_getAction();
|
|
170368
170383
|
var getLogs_js_1 = require_getLogs();
|
|
170369
170384
|
async function getContractEvents2(client, parameters) {
|
|
170370
|
-
const { abi:
|
|
170371
|
-
const event = eventName ? (0, getAbiItem_js_1.getAbiItem)({ abi:
|
|
170372
|
-
const events = !event ?
|
|
170385
|
+
const { abi: abi33, address, args, blockHash, eventName, fromBlock, toBlock, strict } = parameters;
|
|
170386
|
+
const event = eventName ? (0, getAbiItem_js_1.getAbiItem)({ abi: abi33, name: eventName }) : void 0;
|
|
170387
|
+
const events = !event ? abi33.filter((x) => x.type === "event") : void 0;
|
|
170373
170388
|
return (0, getAction_js_1.getAction)(client, getLogs_js_1.getLogs, "getLogs")({
|
|
170374
170389
|
address,
|
|
170375
170390
|
args,
|
|
@@ -170395,10 +170410,10 @@ var require_decodeFunctionResult = __commonJS({
|
|
|
170395
170410
|
var getAbiItem_js_1 = require_getAbiItem();
|
|
170396
170411
|
var docsPath6 = "/docs/contract/decodeFunctionResult";
|
|
170397
170412
|
function decodeFunctionResult2(parameters) {
|
|
170398
|
-
const { abi:
|
|
170399
|
-
let abiItem =
|
|
170413
|
+
const { abi: abi33, args, functionName, data } = parameters;
|
|
170414
|
+
let abiItem = abi33[0];
|
|
170400
170415
|
if (functionName) {
|
|
170401
|
-
const item = (0, getAbiItem_js_1.getAbiItem)({ abi:
|
|
170416
|
+
const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi33, args, name: functionName });
|
|
170402
170417
|
if (!item)
|
|
170403
170418
|
throw new abi_js_1.AbiFunctionNotFoundError(functionName, { docsPath: docsPath6 });
|
|
170404
170419
|
abiItem = item;
|
|
@@ -171953,10 +171968,10 @@ var require_encodeDeployData = __commonJS({
|
|
|
171953
171968
|
var encodeAbiParameters_js_1 = require_encodeAbiParameters();
|
|
171954
171969
|
var docsPath6 = "/docs/contract/encodeDeployData";
|
|
171955
171970
|
function encodeDeployData2(parameters) {
|
|
171956
|
-
const { abi:
|
|
171971
|
+
const { abi: abi33, args, bytecode } = parameters;
|
|
171957
171972
|
if (!args || args.length === 0)
|
|
171958
171973
|
return bytecode;
|
|
171959
|
-
const description =
|
|
171974
|
+
const description = abi33.find((x) => "type" in x && x.type === "constructor");
|
|
171960
171975
|
if (!description)
|
|
171961
171976
|
throw new abi_js_1.AbiConstructorNotFoundError({ docsPath: docsPath6 });
|
|
171962
171977
|
if (!("inputs" in description))
|
|
@@ -172495,9 +172510,9 @@ var require_readContract = __commonJS({
|
|
|
172495
172510
|
var getAction_js_1 = require_getAction();
|
|
172496
172511
|
var call_js_1 = require_call();
|
|
172497
172512
|
async function readContract2(client, parameters) {
|
|
172498
|
-
const { abi:
|
|
172513
|
+
const { abi: abi33, address, args, functionName, ...rest2 } = parameters;
|
|
172499
172514
|
const calldata = (0, encodeFunctionData_js_1.encodeFunctionData)({
|
|
172500
|
-
abi:
|
|
172515
|
+
abi: abi33,
|
|
172501
172516
|
args,
|
|
172502
172517
|
functionName
|
|
172503
172518
|
});
|
|
@@ -172508,14 +172523,14 @@ var require_readContract = __commonJS({
|
|
|
172508
172523
|
to: address
|
|
172509
172524
|
});
|
|
172510
172525
|
return (0, decodeFunctionResult_js_1.decodeFunctionResult)({
|
|
172511
|
-
abi:
|
|
172526
|
+
abi: abi33,
|
|
172512
172527
|
args,
|
|
172513
172528
|
functionName,
|
|
172514
172529
|
data: data || "0x"
|
|
172515
172530
|
});
|
|
172516
172531
|
} catch (error) {
|
|
172517
172532
|
throw (0, getContractError_js_1.getContractError)(error, {
|
|
172518
|
-
abi:
|
|
172533
|
+
abi: abi33,
|
|
172519
172534
|
address,
|
|
172520
172535
|
args,
|
|
172521
172536
|
docsPath: "/docs/contract/readContract",
|
|
@@ -172539,9 +172554,9 @@ var require_simulateContract = __commonJS({
|
|
|
172539
172554
|
var getAction_js_1 = require_getAction();
|
|
172540
172555
|
var call_js_1 = require_call();
|
|
172541
172556
|
async function simulateContract2(client, parameters) {
|
|
172542
|
-
const { abi:
|
|
172557
|
+
const { abi: abi33, address, args, dataSuffix, functionName, ...callRequest } = parameters;
|
|
172543
172558
|
const account = callRequest.account ? (0, parseAccount_js_1.parseAccount)(callRequest.account) : client.account;
|
|
172544
|
-
const calldata = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi:
|
|
172559
|
+
const calldata = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi: abi33, args, functionName });
|
|
172545
172560
|
try {
|
|
172546
172561
|
const { data } = await (0, getAction_js_1.getAction)(client, call_js_1.call, "call")({
|
|
172547
172562
|
batch: false,
|
|
@@ -172551,12 +172566,12 @@ var require_simulateContract = __commonJS({
|
|
|
172551
172566
|
account
|
|
172552
172567
|
});
|
|
172553
172568
|
const result = (0, decodeFunctionResult_js_1.decodeFunctionResult)({
|
|
172554
|
-
abi:
|
|
172569
|
+
abi: abi33,
|
|
172555
172570
|
args,
|
|
172556
172571
|
functionName,
|
|
172557
172572
|
data: data || "0x"
|
|
172558
172573
|
});
|
|
172559
|
-
const minimizedAbi =
|
|
172574
|
+
const minimizedAbi = abi33.filter((abiItem) => "name" in abiItem && abiItem.name === parameters.functionName);
|
|
172560
172575
|
return {
|
|
172561
172576
|
result,
|
|
172562
172577
|
request: {
|
|
@@ -172571,7 +172586,7 @@ var require_simulateContract = __commonJS({
|
|
|
172571
172586
|
};
|
|
172572
172587
|
} catch (error) {
|
|
172573
172588
|
throw (0, getContractError_js_1.getContractError)(error, {
|
|
172574
|
-
abi:
|
|
172589
|
+
abi: abi33,
|
|
172575
172590
|
address,
|
|
172576
172591
|
args,
|
|
172577
172592
|
docsPath: "/docs/contract/simulateContract",
|
|
@@ -172813,7 +172828,7 @@ var require_watchContractEvent = __commonJS({
|
|
|
172813
172828
|
var getFilterChanges_js_1 = require_getFilterChanges();
|
|
172814
172829
|
var uninstallFilter_js_1 = require_uninstallFilter();
|
|
172815
172830
|
function watchContractEvent2(client, parameters) {
|
|
172816
|
-
const { abi:
|
|
172831
|
+
const { abi: abi33, address, args, batch = true, eventName, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ } = parameters;
|
|
172817
172832
|
const enablePolling = (() => {
|
|
172818
172833
|
if (typeof poll_ !== "undefined")
|
|
172819
172834
|
return poll_;
|
|
@@ -172848,7 +172863,7 @@ var require_watchContractEvent = __commonJS({
|
|
|
172848
172863
|
if (!initialized) {
|
|
172849
172864
|
try {
|
|
172850
172865
|
filter = await (0, getAction_js_1.getAction)(client, createContractEventFilter_js_1.createContractEventFilter, "createContractEventFilter")({
|
|
172851
|
-
abi:
|
|
172866
|
+
abi: abi33,
|
|
172852
172867
|
address,
|
|
172853
172868
|
args,
|
|
172854
172869
|
eventName,
|
|
@@ -172868,7 +172883,7 @@ var require_watchContractEvent = __commonJS({
|
|
|
172868
172883
|
const blockNumber = await (0, getAction_js_1.getAction)(client, getBlockNumber_js_1.getBlockNumber, "getBlockNumber")({});
|
|
172869
172884
|
if (previousBlockNumber && previousBlockNumber < blockNumber) {
|
|
172870
172885
|
logs = await (0, getAction_js_1.getAction)(client, getContractEvents_js_1.getContractEvents, "getContractEvents")({
|
|
172871
|
-
abi:
|
|
172886
|
+
abi: abi33,
|
|
172872
172887
|
address,
|
|
172873
172888
|
args,
|
|
172874
172889
|
eventName,
|
|
@@ -172932,7 +172947,7 @@ var require_watchContractEvent = __commonJS({
|
|
|
172932
172947
|
return client.transport;
|
|
172933
172948
|
})();
|
|
172934
172949
|
const topics = eventName ? (0, encodeEventTopics_js_1.encodeEventTopics)({
|
|
172935
|
-
abi:
|
|
172950
|
+
abi: abi33,
|
|
172936
172951
|
eventName,
|
|
172937
172952
|
args
|
|
172938
172953
|
}) : [];
|
|
@@ -172944,7 +172959,7 @@ var require_watchContractEvent = __commonJS({
|
|
|
172944
172959
|
const log2 = data.result;
|
|
172945
172960
|
try {
|
|
172946
172961
|
const { eventName: eventName2, args: args2 } = (0, decodeEventLog_js_1.decodeEventLog)({
|
|
172947
|
-
abi:
|
|
172962
|
+
abi: abi33,
|
|
172948
172963
|
data: log2.data,
|
|
172949
172964
|
topics: log2.topics,
|
|
172950
172965
|
strict: strict_
|
|
@@ -173242,14 +173257,14 @@ var require_writeContract = __commonJS({
|
|
|
173242
173257
|
var getAction_js_1 = require_getAction();
|
|
173243
173258
|
var sendTransaction_js_1 = require_sendTransaction();
|
|
173244
173259
|
async function writeContract2(client, parameters) {
|
|
173245
|
-
const { abi:
|
|
173260
|
+
const { abi: abi33, account: account_ = client.account, address, args, dataSuffix, functionName, ...request } = parameters;
|
|
173246
173261
|
if (typeof account_ === "undefined")
|
|
173247
173262
|
throw new account_js_1.AccountNotFoundError({
|
|
173248
173263
|
docsPath: "/docs/contract/writeContract"
|
|
173249
173264
|
});
|
|
173250
173265
|
const account = account_ ? (0, parseAccount_js_1.parseAccount)(account_) : null;
|
|
173251
173266
|
const data = (0, encodeFunctionData_js_1.encodeFunctionData)({
|
|
173252
|
-
abi:
|
|
173267
|
+
abi: abi33,
|
|
173253
173268
|
args,
|
|
173254
173269
|
functionName
|
|
173255
173270
|
});
|
|
@@ -173262,7 +173277,7 @@ var require_writeContract = __commonJS({
|
|
|
173262
173277
|
});
|
|
173263
173278
|
} catch (error) {
|
|
173264
173279
|
throw (0, getContractError_js_1.getContractError)(error, {
|
|
173265
|
-
abi:
|
|
173280
|
+
abi: abi33,
|
|
173266
173281
|
address,
|
|
173267
173282
|
args,
|
|
173268
173283
|
docsPath: "/docs/contract/writeContract",
|
|
@@ -173290,7 +173305,7 @@ var require_getContract = __commonJS({
|
|
|
173290
173305
|
var simulateContract_js_1 = require_simulateContract();
|
|
173291
173306
|
var watchContractEvent_js_1 = require_watchContractEvent();
|
|
173292
173307
|
var writeContract_js_1 = require_writeContract();
|
|
173293
|
-
function getContract2({ abi:
|
|
173308
|
+
function getContract2({ abi: abi33, address, client: client_ }) {
|
|
173294
173309
|
const client = client_;
|
|
173295
173310
|
const [publicClient, walletClient] = (() => {
|
|
173296
173311
|
if (!client)
|
|
@@ -173309,7 +173324,7 @@ var require_getContract = __commonJS({
|
|
|
173309
173324
|
let hasReadFunction = false;
|
|
173310
173325
|
let hasWriteFunction = false;
|
|
173311
173326
|
let hasEvent = false;
|
|
173312
|
-
for (const item of
|
|
173327
|
+
for (const item of abi33) {
|
|
173313
173328
|
if (item.type === "function")
|
|
173314
173329
|
if (item.stateMutability === "view" || item.stateMutability === "pure")
|
|
173315
173330
|
hasReadFunction = true;
|
|
@@ -173327,7 +173342,7 @@ var require_getContract = __commonJS({
|
|
|
173327
173342
|
return (...parameters) => {
|
|
173328
173343
|
const { args, options } = getFunctionParameters2(parameters);
|
|
173329
173344
|
return (0, getAction_js_1.getAction)(publicClient, readContract_js_1.readContract, "readContract")({
|
|
173330
|
-
abi:
|
|
173345
|
+
abi: abi33,
|
|
173331
173346
|
address,
|
|
173332
173347
|
functionName,
|
|
173333
173348
|
args,
|
|
@@ -173342,7 +173357,7 @@ var require_getContract = __commonJS({
|
|
|
173342
173357
|
return (...parameters) => {
|
|
173343
173358
|
const { args, options } = getFunctionParameters2(parameters);
|
|
173344
173359
|
return (0, getAction_js_1.getAction)(publicClient, simulateContract_js_1.simulateContract, "simulateContract")({
|
|
173345
|
-
abi:
|
|
173360
|
+
abi: abi33,
|
|
173346
173361
|
address,
|
|
173347
173362
|
functionName,
|
|
173348
173363
|
args,
|
|
@@ -173355,10 +173370,10 @@ var require_getContract = __commonJS({
|
|
|
173355
173370
|
contract.createEventFilter = new Proxy({}, {
|
|
173356
173371
|
get(_, eventName) {
|
|
173357
173372
|
return (...parameters) => {
|
|
173358
|
-
const abiEvent =
|
|
173373
|
+
const abiEvent = abi33.find((x) => x.type === "event" && x.name === eventName);
|
|
173359
173374
|
const { args, options } = getEventParameters2(parameters, abiEvent);
|
|
173360
173375
|
return (0, getAction_js_1.getAction)(publicClient, createContractEventFilter_js_1.createContractEventFilter, "createContractEventFilter")({
|
|
173361
|
-
abi:
|
|
173376
|
+
abi: abi33,
|
|
173362
173377
|
address,
|
|
173363
173378
|
eventName,
|
|
173364
173379
|
args,
|
|
@@ -173370,10 +173385,10 @@ var require_getContract = __commonJS({
|
|
|
173370
173385
|
contract.getEvents = new Proxy({}, {
|
|
173371
173386
|
get(_, eventName) {
|
|
173372
173387
|
return (...parameters) => {
|
|
173373
|
-
const abiEvent =
|
|
173388
|
+
const abiEvent = abi33.find((x) => x.type === "event" && x.name === eventName);
|
|
173374
173389
|
const { args, options } = getEventParameters2(parameters, abiEvent);
|
|
173375
173390
|
return (0, getAction_js_1.getAction)(publicClient, getContractEvents_js_1.getContractEvents, "getContractEvents")({
|
|
173376
|
-
abi:
|
|
173391
|
+
abi: abi33,
|
|
173377
173392
|
address,
|
|
173378
173393
|
eventName,
|
|
173379
173394
|
args,
|
|
@@ -173385,10 +173400,10 @@ var require_getContract = __commonJS({
|
|
|
173385
173400
|
contract.watchEvent = new Proxy({}, {
|
|
173386
173401
|
get(_, eventName) {
|
|
173387
173402
|
return (...parameters) => {
|
|
173388
|
-
const abiEvent =
|
|
173403
|
+
const abiEvent = abi33.find((x) => x.type === "event" && x.name === eventName);
|
|
173389
173404
|
const { args, options } = getEventParameters2(parameters, abiEvent);
|
|
173390
173405
|
return (0, getAction_js_1.getAction)(publicClient, watchContractEvent_js_1.watchContractEvent, "watchContractEvent")({
|
|
173391
|
-
abi:
|
|
173406
|
+
abi: abi33,
|
|
173392
173407
|
address,
|
|
173393
173408
|
eventName,
|
|
173394
173409
|
args,
|
|
@@ -173406,7 +173421,7 @@ var require_getContract = __commonJS({
|
|
|
173406
173421
|
return (...parameters) => {
|
|
173407
173422
|
const { args, options } = getFunctionParameters2(parameters);
|
|
173408
173423
|
return (0, getAction_js_1.getAction)(walletClient, writeContract_js_1.writeContract, "writeContract")({
|
|
173409
|
-
abi:
|
|
173424
|
+
abi: abi33,
|
|
173410
173425
|
address,
|
|
173411
173426
|
functionName,
|
|
173412
173427
|
args,
|
|
@@ -173424,7 +173439,7 @@ var require_getContract = __commonJS({
|
|
|
173424
173439
|
const { args, options } = getFunctionParameters2(parameters);
|
|
173425
173440
|
const client2 = publicClient ?? walletClient;
|
|
173426
173441
|
return (0, getAction_js_1.getAction)(client2, estimateContractGas_js_1.estimateContractGas, "estimateContractGas")({
|
|
173427
|
-
abi:
|
|
173442
|
+
abi: abi33,
|
|
173428
173443
|
address,
|
|
173429
173444
|
functionName,
|
|
173430
173445
|
args,
|
|
@@ -173436,7 +173451,7 @@ var require_getContract = __commonJS({
|
|
|
173436
173451
|
});
|
|
173437
173452
|
}
|
|
173438
173453
|
contract.address = address;
|
|
173439
|
-
contract.abi =
|
|
173454
|
+
contract.abi = abi33;
|
|
173440
173455
|
return contract;
|
|
173441
173456
|
}
|
|
173442
173457
|
function getFunctionParameters2(values) {
|
|
@@ -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 };
|
|
@@ -175036,7 +175062,7 @@ var require_getEip712Domain = __commonJS({
|
|
|
175036
175062
|
const { address, factory, factoryData } = parameters;
|
|
175037
175063
|
try {
|
|
175038
175064
|
const [fields, name, version5, chainId, verifyingContract, salt, extensions] = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract, "readContract")({
|
|
175039
|
-
abi:
|
|
175065
|
+
abi: abi33,
|
|
175040
175066
|
address,
|
|
175041
175067
|
functionName: "eip712Domain",
|
|
175042
175068
|
factory,
|
|
@@ -175061,7 +175087,7 @@ var require_getEip712Domain = __commonJS({
|
|
|
175061
175087
|
throw error;
|
|
175062
175088
|
}
|
|
175063
175089
|
}
|
|
175064
|
-
var
|
|
175090
|
+
var abi33 = [
|
|
175065
175091
|
{
|
|
175066
175092
|
inputs: [],
|
|
175067
175093
|
name: "eip712Domain",
|
|
@@ -179389,9 +179415,9 @@ var require_decodeFunctionData = __commonJS({
|
|
|
179389
179415
|
var decodeAbiParameters_js_1 = require_decodeAbiParameters();
|
|
179390
179416
|
var formatAbiItem_js_1 = require_formatAbiItem3();
|
|
179391
179417
|
function decodeFunctionData2(parameters) {
|
|
179392
|
-
const { abi:
|
|
179418
|
+
const { abi: abi33, data } = parameters;
|
|
179393
179419
|
const signature = (0, slice_js_1.slice)(data, 0, 4);
|
|
179394
|
-
const description =
|
|
179420
|
+
const description = abi33.find((x) => x.type === "function" && signature === (0, toFunctionSelector_js_1.toFunctionSelector)((0, formatAbiItem_js_1.formatAbiItem)(x)));
|
|
179395
179421
|
if (!description)
|
|
179396
179422
|
throw new abi_js_1.AbiFunctionSignatureNotFoundError(signature, {
|
|
179397
179423
|
docsPath: "/docs/contract/decodeFunctionData"
|
|
@@ -179418,10 +179444,10 @@ var require_encodeErrorResult = __commonJS({
|
|
|
179418
179444
|
var getAbiItem_js_1 = require_getAbiItem();
|
|
179419
179445
|
var docsPath6 = "/docs/contract/encodeErrorResult";
|
|
179420
179446
|
function encodeErrorResult(parameters) {
|
|
179421
|
-
const { abi:
|
|
179422
|
-
let abiItem =
|
|
179447
|
+
const { abi: abi33, errorName, args } = parameters;
|
|
179448
|
+
let abiItem = abi33[0];
|
|
179423
179449
|
if (errorName) {
|
|
179424
|
-
const item = (0, getAbiItem_js_1.getAbiItem)({ abi:
|
|
179450
|
+
const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi33, args, name: errorName });
|
|
179425
179451
|
if (!item)
|
|
179426
179452
|
throw new abi_js_1.AbiErrorNotFoundError(errorName, { docsPath: docsPath6 });
|
|
179427
179453
|
abiItem = item;
|
|
@@ -179452,10 +179478,10 @@ var require_encodeFunctionResult = __commonJS({
|
|
|
179452
179478
|
var getAbiItem_js_1 = require_getAbiItem();
|
|
179453
179479
|
var docsPath6 = "/docs/contract/encodeFunctionResult";
|
|
179454
179480
|
function encodeFunctionResult(parameters) {
|
|
179455
|
-
const { abi:
|
|
179456
|
-
let abiItem =
|
|
179481
|
+
const { abi: abi33, functionName, result } = parameters;
|
|
179482
|
+
let abiItem = abi33[0];
|
|
179457
179483
|
if (functionName) {
|
|
179458
|
-
const item = (0, getAbiItem_js_1.getAbiItem)({ abi:
|
|
179484
|
+
const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi33, name: functionName });
|
|
179459
179485
|
if (!item)
|
|
179460
179486
|
throw new abi_js_1.AbiFunctionNotFoundError(functionName, { docsPath: docsPath6 });
|
|
179461
179487
|
abiItem = item;
|
|
@@ -181738,9 +181764,9 @@ var require_multicall2 = __commonJS({
|
|
|
181738
181764
|
let currentChunk = 0;
|
|
181739
181765
|
let currentChunkSize = 0;
|
|
181740
181766
|
for (let i = 0; i < contracts2.length; i++) {
|
|
181741
|
-
const { abi:
|
|
181767
|
+
const { abi: abi33, address, args, functionName } = contracts2[i];
|
|
181742
181768
|
try {
|
|
181743
|
-
const callData = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi:
|
|
181769
|
+
const callData = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi: abi33, args, functionName });
|
|
181744
181770
|
currentChunkSize += (callData.length - 2) / 2;
|
|
181745
181771
|
if (batchSize > 0 && currentChunkSize > batchSize && chunkedCalls[currentChunk].length > 0) {
|
|
181746
181772
|
currentChunk++;
|
|
@@ -181757,7 +181783,7 @@ var require_multicall2 = __commonJS({
|
|
|
181757
181783
|
];
|
|
181758
181784
|
} catch (err) {
|
|
181759
181785
|
const error = (0, getContractError_js_1.getContractError)(err, {
|
|
181760
|
-
abi:
|
|
181786
|
+
abi: abi33,
|
|
181761
181787
|
address,
|
|
181762
181788
|
args,
|
|
181763
181789
|
docsPath: "/docs/contract/multicall",
|
|
@@ -181803,14 +181829,14 @@ var require_multicall2 = __commonJS({
|
|
|
181803
181829
|
for (let j = 0; j < aggregate3Result.length; j++) {
|
|
181804
181830
|
const { returnData, success } = aggregate3Result[j];
|
|
181805
181831
|
const { callData } = chunkedCalls[i][j];
|
|
181806
|
-
const { abi:
|
|
181832
|
+
const { abi: abi33, address, functionName, args } = contracts2[results.length];
|
|
181807
181833
|
try {
|
|
181808
181834
|
if (callData === "0x")
|
|
181809
181835
|
throw new abi_js_1.AbiDecodingZeroDataError();
|
|
181810
181836
|
if (!success)
|
|
181811
181837
|
throw new contract_js_1.RawContractError({ data: returnData });
|
|
181812
181838
|
const result2 = (0, decodeFunctionResult_js_1.decodeFunctionResult)({
|
|
181813
|
-
abi:
|
|
181839
|
+
abi: abi33,
|
|
181814
181840
|
args,
|
|
181815
181841
|
data: returnData,
|
|
181816
181842
|
functionName
|
|
@@ -181818,7 +181844,7 @@ var require_multicall2 = __commonJS({
|
|
|
181818
181844
|
results.push(allowFailure ? { result: result2, status: "success" } : result2);
|
|
181819
181845
|
} catch (err) {
|
|
181820
181846
|
const error = (0, getContractError_js_1.getContractError)(err, {
|
|
181821
|
-
abi:
|
|
181847
|
+
abi: abi33,
|
|
181822
181848
|
address,
|
|
181823
181849
|
args,
|
|
181824
181850
|
docsPath: "/docs/contract/multicall",
|
|
@@ -183142,13 +183168,13 @@ var require_simulate = __commonJS({
|
|
|
183142
183168
|
return result.map((block2, i) => ({
|
|
183143
183169
|
...(0, block_js_1.formatBlock)(block2),
|
|
183144
183170
|
calls: block2.calls.map((call2, j) => {
|
|
183145
|
-
const { abi:
|
|
183171
|
+
const { abi: abi33, args, functionName, to } = blocks[i].calls[j];
|
|
183146
183172
|
const data = call2.error?.data ?? call2.returnData;
|
|
183147
183173
|
const gasUsed = BigInt(call2.gasUsed);
|
|
183148
183174
|
const logs = call2.logs?.map((log2) => (0, log_js_1.formatLog)(log2));
|
|
183149
183175
|
const status = call2.status === "0x1" ? "success" : "failure";
|
|
183150
|
-
const result2 =
|
|
183151
|
-
abi:
|
|
183176
|
+
const result2 = abi33 ? (0, decodeFunctionResult_js_1.decodeFunctionResult)({
|
|
183177
|
+
abi: abi33,
|
|
183152
183178
|
data,
|
|
183153
183179
|
functionName
|
|
183154
183180
|
}) : null;
|
|
@@ -183163,7 +183189,7 @@ var require_simulate = __commonJS({
|
|
|
183163
183189
|
if (!error2)
|
|
183164
183190
|
return void 0;
|
|
183165
183191
|
return (0, getContractError_js_1.getContractError)(error2, {
|
|
183166
|
-
abi:
|
|
183192
|
+
abi: abi33 ?? [],
|
|
183167
183193
|
address: to,
|
|
183168
183194
|
args,
|
|
183169
183195
|
functionName: functionName ?? "<unknown>"
|
|
@@ -184850,8 +184876,8 @@ var require_deployContract = __commonJS({
|
|
|
184850
184876
|
var encodeDeployData_js_1 = require_encodeDeployData();
|
|
184851
184877
|
var sendTransaction_js_1 = require_sendTransaction();
|
|
184852
184878
|
function deployContract2(walletClient, parameters) {
|
|
184853
|
-
const { abi:
|
|
184854
|
-
const calldata = (0, encodeDeployData_js_1.encodeDeployData)({ abi:
|
|
184879
|
+
const { abi: abi33, args, bytecode, ...request } = parameters;
|
|
184880
|
+
const calldata = (0, encodeDeployData_js_1.encodeDeployData)({ abi: abi33, args, bytecode });
|
|
184855
184881
|
return (0, sendTransaction_js_1.sendTransaction)(walletClient, {
|
|
184856
184882
|
...request,
|
|
184857
184883
|
data: calldata
|
|
@@ -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 };
|
|
@@ -185285,10 +185312,10 @@ var require_decodeDeployData = __commonJS({
|
|
|
185285
185312
|
var decodeAbiParameters_js_1 = require_decodeAbiParameters();
|
|
185286
185313
|
var docsPath6 = "/docs/contract/decodeDeployData";
|
|
185287
185314
|
function decodeDeployData(parameters) {
|
|
185288
|
-
const { abi:
|
|
185315
|
+
const { abi: abi33, bytecode, data } = parameters;
|
|
185289
185316
|
if (data === bytecode)
|
|
185290
185317
|
return { bytecode };
|
|
185291
|
-
const description =
|
|
185318
|
+
const description = abi33.find((x) => "type" in x && x.type === "constructor");
|
|
185292
185319
|
if (!description)
|
|
185293
185320
|
throw new abi_js_1.AbiConstructorNotFoundError({ docsPath: docsPath6 });
|
|
185294
185321
|
if (!("inputs" in description))
|
|
@@ -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) {
|
|
@@ -222090,6 +222358,45 @@ var require_swanSaturnTestnet = __commonJS({
|
|
|
222090
222358
|
}
|
|
222091
222359
|
});
|
|
222092
222360
|
|
|
222361
|
+
// ../../node_modules/viem/_cjs/chains/definitions/swellchain.js
|
|
222362
|
+
var require_swellchain = __commonJS({
|
|
222363
|
+
"../../node_modules/viem/_cjs/chains/definitions/swellchain.js"(exports2) {
|
|
222364
|
+
"use strict";
|
|
222365
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
222366
|
+
exports2.swellchain = void 0;
|
|
222367
|
+
var chainConfig_js_1 = require_chainConfig2();
|
|
222368
|
+
var defineChain_js_1 = require_defineChain();
|
|
222369
|
+
exports2.swellchain = (0, defineChain_js_1.defineChain)({
|
|
222370
|
+
...chainConfig_js_1.chainConfig,
|
|
222371
|
+
id: 1923,
|
|
222372
|
+
name: "Swellchain",
|
|
222373
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
222374
|
+
rpcUrls: {
|
|
222375
|
+
default: {
|
|
222376
|
+
http: [
|
|
222377
|
+
"https://swell-mainnet.alt.technology",
|
|
222378
|
+
"https://rpc.ankr.com/swell"
|
|
222379
|
+
]
|
|
222380
|
+
}
|
|
222381
|
+
},
|
|
222382
|
+
blockExplorers: {
|
|
222383
|
+
default: {
|
|
222384
|
+
name: "Swell Explorer",
|
|
222385
|
+
url: "https://explorer.swellnetwork.io",
|
|
222386
|
+
apiUrl: "https://explorer.swellnetwork.io/api"
|
|
222387
|
+
}
|
|
222388
|
+
},
|
|
222389
|
+
contracts: {
|
|
222390
|
+
...chainConfig_js_1.chainConfig.contracts,
|
|
222391
|
+
multicall3: {
|
|
222392
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
222393
|
+
blockCreated: 1
|
|
222394
|
+
}
|
|
222395
|
+
}
|
|
222396
|
+
});
|
|
222397
|
+
}
|
|
222398
|
+
});
|
|
222399
|
+
|
|
222093
222400
|
// ../../node_modules/viem/_cjs/chains/definitions/swissdlt.js
|
|
222094
222401
|
var require_swissdlt = __commonJS({
|
|
222095
222402
|
"../../node_modules/viem/_cjs/chains/definitions/swissdlt.js"(exports2) {
|
|
@@ -222920,6 +223227,35 @@ var require_ubiq = __commonJS({
|
|
|
222920
223227
|
}
|
|
222921
223228
|
});
|
|
222922
223229
|
|
|
223230
|
+
// ../../node_modules/viem/_cjs/chains/definitions/ultraTestnet.js
|
|
223231
|
+
var require_ultraTestnet = __commonJS({
|
|
223232
|
+
"../../node_modules/viem/_cjs/chains/definitions/ultraTestnet.js"(exports2) {
|
|
223233
|
+
"use strict";
|
|
223234
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
223235
|
+
exports2.ultraTestnet = void 0;
|
|
223236
|
+
var defineChain_js_1 = require_defineChain();
|
|
223237
|
+
exports2.ultraTestnet = (0, defineChain_js_1.defineChain)({
|
|
223238
|
+
id: 18881,
|
|
223239
|
+
name: "Ultra EVM Testnet",
|
|
223240
|
+
nativeCurrency: {
|
|
223241
|
+
decimals: 18,
|
|
223242
|
+
name: "Ultra Token",
|
|
223243
|
+
symbol: "UOS"
|
|
223244
|
+
},
|
|
223245
|
+
rpcUrls: {
|
|
223246
|
+
default: { http: ["https://evm.test.ultra.eosusa.io"] }
|
|
223247
|
+
},
|
|
223248
|
+
blockExplorers: {
|
|
223249
|
+
default: {
|
|
223250
|
+
name: "Ultra EVM Testnet Explorer",
|
|
223251
|
+
url: "https://evmexplorer.testnet.ultra.io"
|
|
223252
|
+
}
|
|
223253
|
+
},
|
|
223254
|
+
testnet: true
|
|
223255
|
+
});
|
|
223256
|
+
}
|
|
223257
|
+
});
|
|
223258
|
+
|
|
222923
223259
|
// ../../node_modules/viem/_cjs/chains/definitions/ultron.js
|
|
222924
223260
|
var require_ultron = __commonJS({
|
|
222925
223261
|
"../../node_modules/viem/_cjs/chains/definitions/ultron.js"(exports2) {
|
|
@@ -224835,16 +225171,17 @@ var require_chains2 = __commonJS({
|
|
|
224835
225171
|
"../../node_modules/viem/_cjs/chains/index.js"(exports2) {
|
|
224836
225172
|
"use strict";
|
|
224837
225173
|
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.
|
|
225174
|
+
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;
|
|
225175
|
+
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;
|
|
225176
|
+
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;
|
|
225177
|
+
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;
|
|
225178
|
+
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;
|
|
225179
|
+
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;
|
|
225180
|
+
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;
|
|
225181
|
+
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;
|
|
225182
|
+
exports2.ultronTestnet = exports2.ultron = exports2.ultraTestnet = 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.swellchain = 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;
|
|
225183
|
+
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 = exports2.unique = exports2.unichainSepolia = void 0;
|
|
225184
|
+
exports2.zoraTestnet = exports2.zoraSepolia = exports2.zora = exports2.zksyncSepoliaTestnet = exports2.zkSyncSepoliaTestnet = exports2.zksyncLocalNode = exports2.zkSyncLocalNode = exports2.zksyncLocalHyperchainL1 = void 0;
|
|
224848
225185
|
var abey_js_1 = require_abey();
|
|
224849
225186
|
Object.defineProperty(exports2, "abey", { enumerable: true, get: function() {
|
|
224850
225187
|
return abey_js_1.abey;
|
|
@@ -224873,6 +225210,10 @@ var require_chains2 = __commonJS({
|
|
|
224873
225210
|
Object.defineProperty(exports2, "alephZero", { enumerable: true, get: function() {
|
|
224874
225211
|
return alephZero_js_1.alephZero;
|
|
224875
225212
|
} });
|
|
225213
|
+
var alephZeroTestnet_js_1 = require_alephZeroTestnet();
|
|
225214
|
+
Object.defineProperty(exports2, "alephZeroTestnet", { enumerable: true, get: function() {
|
|
225215
|
+
return alephZeroTestnet_js_1.alephZeroTestnet;
|
|
225216
|
+
} });
|
|
224876
225217
|
var alienX_js_1 = require_alienX();
|
|
224877
225218
|
Object.defineProperty(exports2, "alienx", { enumerable: true, get: function() {
|
|
224878
225219
|
return alienX_js_1.alienx;
|
|
@@ -224933,6 +225274,10 @@ var require_chains2 = __commonJS({
|
|
|
224933
225274
|
Object.defineProperty(exports2, "arthera", { enumerable: true, get: function() {
|
|
224934
225275
|
return arthera_js_1.arthera;
|
|
224935
225276
|
} });
|
|
225277
|
+
var artheraTestnet_js_1 = require_artheraTestnet();
|
|
225278
|
+
Object.defineProperty(exports2, "artheraTestnet", { enumerable: true, get: function() {
|
|
225279
|
+
return artheraTestnet_js_1.artheraTestnet;
|
|
225280
|
+
} });
|
|
224936
225281
|
var assetChain_js_1 = require_assetChain();
|
|
224937
225282
|
Object.defineProperty(exports2, "assetChain", { enumerable: true, get: function() {
|
|
224938
225283
|
return assetChain_js_1.assetChain;
|
|
@@ -225557,6 +225902,10 @@ var require_chains2 = __commonJS({
|
|
|
225557
225902
|
Object.defineProperty(exports2, "gnosisChiado", { enumerable: true, get: function() {
|
|
225558
225903
|
return gnosisChiado_js_1.gnosisChiado;
|
|
225559
225904
|
} });
|
|
225905
|
+
var goat_js_1 = require_goat();
|
|
225906
|
+
Object.defineProperty(exports2, "goat", { enumerable: true, get: function() {
|
|
225907
|
+
return goat_js_1.goat;
|
|
225908
|
+
} });
|
|
225560
225909
|
var gobi_js_1 = require_gobi();
|
|
225561
225910
|
Object.defineProperty(exports2, "gobi", { enumerable: true, get: function() {
|
|
225562
225911
|
return gobi_js_1.gobi;
|
|
@@ -226009,6 +226358,14 @@ var require_chains2 = __commonJS({
|
|
|
226009
226358
|
Object.defineProperty(exports2, "nautilus", { enumerable: true, get: function() {
|
|
226010
226359
|
return nautilus_js_1.nautilus;
|
|
226011
226360
|
} });
|
|
226361
|
+
var near_js_1 = require_near();
|
|
226362
|
+
Object.defineProperty(exports2, "near", { enumerable: true, get: function() {
|
|
226363
|
+
return near_js_1.near;
|
|
226364
|
+
} });
|
|
226365
|
+
var nearTestnet_js_1 = require_nearTestnet();
|
|
226366
|
+
Object.defineProperty(exports2, "nearTestnet", { enumerable: true, get: function() {
|
|
226367
|
+
return nearTestnet_js_1.nearTestnet;
|
|
226368
|
+
} });
|
|
226012
226369
|
var neonDevnet_js_1 = require_neonDevnet();
|
|
226013
226370
|
Object.defineProperty(exports2, "neonDevnet", { enumerable: true, get: function() {
|
|
226014
226371
|
return neonDevnet_js_1.neonDevnet;
|
|
@@ -226425,6 +226782,10 @@ var require_chains2 = __commonJS({
|
|
|
226425
226782
|
Object.defineProperty(exports2, "snaxTestnet", { enumerable: true, get: function() {
|
|
226426
226783
|
return snaxTestnet_js_1.snaxTestnet;
|
|
226427
226784
|
} });
|
|
226785
|
+
var soneium_js_1 = require_soneium();
|
|
226786
|
+
Object.defineProperty(exports2, "soneium", { enumerable: true, get: function() {
|
|
226787
|
+
return soneium_js_1.soneium;
|
|
226788
|
+
} });
|
|
226428
226789
|
var soneiumMinato_js_1 = require_soneiumMinato();
|
|
226429
226790
|
Object.defineProperty(exports2, "soneiumMinato", { enumerable: true, get: function() {
|
|
226430
226791
|
return soneiumMinato_js_1.soneiumMinato;
|
|
@@ -226501,6 +226862,10 @@ var require_chains2 = __commonJS({
|
|
|
226501
226862
|
Object.defineProperty(exports2, "swanSaturnTestnet", { enumerable: true, get: function() {
|
|
226502
226863
|
return swanSaturnTestnet_js_1.swanSaturnTestnet;
|
|
226503
226864
|
} });
|
|
226865
|
+
var swellchain_js_1 = require_swellchain();
|
|
226866
|
+
Object.defineProperty(exports2, "swellchain", { enumerable: true, get: function() {
|
|
226867
|
+
return swellchain_js_1.swellchain;
|
|
226868
|
+
} });
|
|
226504
226869
|
var swissdlt_js_1 = require_swissdlt();
|
|
226505
226870
|
Object.defineProperty(exports2, "swissdlt", { enumerable: true, get: function() {
|
|
226506
226871
|
return swissdlt_js_1.swissdlt;
|
|
@@ -226609,6 +226974,10 @@ var require_chains2 = __commonJS({
|
|
|
226609
226974
|
Object.defineProperty(exports2, "ubiq", { enumerable: true, get: function() {
|
|
226610
226975
|
return ubiq_js_1.ubiq;
|
|
226611
226976
|
} });
|
|
226977
|
+
var ultraTestnet_js_1 = require_ultraTestnet();
|
|
226978
|
+
Object.defineProperty(exports2, "ultraTestnet", { enumerable: true, get: function() {
|
|
226979
|
+
return ultraTestnet_js_1.ultraTestnet;
|
|
226980
|
+
} });
|
|
226612
226981
|
var ultron_js_1 = require_ultron();
|
|
226613
226982
|
Object.defineProperty(exports2, "ultron", { enumerable: true, get: function() {
|
|
226614
226983
|
return ultron_js_1.ultron;
|
|
@@ -227554,21 +227923,21 @@ var require_BaseContract2 = __commonJS({
|
|
|
227554
227923
|
return this.contractAddress;
|
|
227555
227924
|
};
|
|
227556
227925
|
this.encode = (functionToEncode, args) => {
|
|
227557
|
-
const
|
|
227926
|
+
const abi33 = this.contractAbi;
|
|
227558
227927
|
const functionName = functionToEncode;
|
|
227559
227928
|
const params = args;
|
|
227560
227929
|
return (0, viem_1.encodeFunctionData)({
|
|
227561
|
-
abi:
|
|
227930
|
+
abi: abi33,
|
|
227562
227931
|
functionName,
|
|
227563
227932
|
args: params
|
|
227564
227933
|
});
|
|
227565
227934
|
};
|
|
227566
227935
|
this.estimateGas = async (functionToEstimate, args, options = {}) => {
|
|
227567
227936
|
const contractOptions = this.convertOptions(options);
|
|
227568
|
-
const
|
|
227937
|
+
const abi33 = this.contractAbi;
|
|
227569
227938
|
const params = args;
|
|
227570
227939
|
return (0, actions_1.estimateContractGas)(this.runner, {
|
|
227571
|
-
abi:
|
|
227940
|
+
abi: abi33,
|
|
227572
227941
|
functionName: functionToEstimate,
|
|
227573
227942
|
address: this.getAddress(),
|
|
227574
227943
|
args: params,
|
|
@@ -230607,8 +230976,14 @@ var require_utils31 = __commonJS({
|
|
|
230607
230976
|
"../../node_modules/@noble/hashes/utils.js"(exports2) {
|
|
230608
230977
|
"use strict";
|
|
230609
230978
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
230610
|
-
exports2.Hash = exports2.nextTick = exports2.byteSwapIfBE = exports2.
|
|
230979
|
+
exports2.Hash = exports2.nextTick = exports2.byteSwapIfBE = exports2.isLE = void 0;
|
|
230611
230980
|
exports2.isBytes = isBytes5;
|
|
230981
|
+
exports2.u8 = u8;
|
|
230982
|
+
exports2.u32 = u322;
|
|
230983
|
+
exports2.createView = createView3;
|
|
230984
|
+
exports2.rotr = rotr3;
|
|
230985
|
+
exports2.rotl = rotl;
|
|
230986
|
+
exports2.byteSwap = byteSwap2;
|
|
230612
230987
|
exports2.byteSwap32 = byteSwap322;
|
|
230613
230988
|
exports2.bytesToHex = bytesToHex3;
|
|
230614
230989
|
exports2.hexToBytes = hexToBytes3;
|
|
@@ -230626,23 +231001,29 @@ var require_utils31 = __commonJS({
|
|
|
230626
231001
|
function isBytes5(a) {
|
|
230627
231002
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
230628
231003
|
}
|
|
230629
|
-
|
|
230630
|
-
|
|
230631
|
-
|
|
230632
|
-
|
|
230633
|
-
|
|
230634
|
-
|
|
230635
|
-
|
|
230636
|
-
|
|
230637
|
-
|
|
230638
|
-
|
|
231004
|
+
function u8(arr) {
|
|
231005
|
+
return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
231006
|
+
}
|
|
231007
|
+
function u322(arr) {
|
|
231008
|
+
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
231009
|
+
}
|
|
231010
|
+
function createView3(arr) {
|
|
231011
|
+
return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
231012
|
+
}
|
|
231013
|
+
function rotr3(word, shift) {
|
|
231014
|
+
return word << 32 - shift | word >>> shift;
|
|
231015
|
+
}
|
|
231016
|
+
function rotl(word, shift) {
|
|
231017
|
+
return word << shift | word >>> 32 - shift >>> 0;
|
|
231018
|
+
}
|
|
230639
231019
|
exports2.isLE = (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
|
230640
|
-
|
|
230641
|
-
|
|
230642
|
-
|
|
231020
|
+
function byteSwap2(word) {
|
|
231021
|
+
return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
|
|
231022
|
+
}
|
|
231023
|
+
exports2.byteSwapIfBE = exports2.isLE ? (n) => n : (n) => byteSwap2(n);
|
|
230643
231024
|
function byteSwap322(arr) {
|
|
230644
231025
|
for (let i = 0; i < arr.length; i++) {
|
|
230645
|
-
arr[i] = (
|
|
231026
|
+
arr[i] = byteSwap2(arr[i]);
|
|
230646
231027
|
}
|
|
230647
231028
|
}
|
|
230648
231029
|
var hexes3 = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
|
|
@@ -230777,8 +231158,10 @@ var require_md3 = __commonJS({
|
|
|
230777
231158
|
"../../node_modules/@noble/hashes/_md.js"(exports2) {
|
|
230778
231159
|
"use strict";
|
|
230779
231160
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
230780
|
-
exports2.HashMD =
|
|
231161
|
+
exports2.HashMD = void 0;
|
|
230781
231162
|
exports2.setBigUint64 = setBigUint643;
|
|
231163
|
+
exports2.Chi = Chi3;
|
|
231164
|
+
exports2.Maj = Maj3;
|
|
230782
231165
|
var _assert_js_1 = require_assert4();
|
|
230783
231166
|
var utils_js_1 = require_utils31();
|
|
230784
231167
|
function setBigUint643(view, byteOffset, value, isLE2) {
|
|
@@ -230793,10 +231176,12 @@ var require_md3 = __commonJS({
|
|
|
230793
231176
|
view.setUint32(byteOffset + h, wh, isLE2);
|
|
230794
231177
|
view.setUint32(byteOffset + l, wl, isLE2);
|
|
230795
231178
|
}
|
|
230796
|
-
|
|
230797
|
-
|
|
230798
|
-
|
|
230799
|
-
|
|
231179
|
+
function Chi3(a, b, c) {
|
|
231180
|
+
return a & b ^ ~a & c;
|
|
231181
|
+
}
|
|
231182
|
+
function Maj3(a, b, c) {
|
|
231183
|
+
return a & b ^ a & c ^ b & c;
|
|
231184
|
+
}
|
|
230800
231185
|
var HashMD3 = class extends utils_js_1.Hash {
|
|
230801
231186
|
constructor(blockLen, outputLen, padOffset, isLE2) {
|
|
230802
231187
|
super();
|
|
@@ -231765,7 +232150,7 @@ var require_weierstrass3 = __commonJS({
|
|
|
231765
232150
|
exports2.SWUFpSqrtRatio = SWUFpSqrtRatio2;
|
|
231766
232151
|
exports2.mapToCurveSimpleSWU = mapToCurveSimpleSWU2;
|
|
231767
232152
|
var curve_js_1 = require_curve5();
|
|
231768
|
-
var
|
|
232153
|
+
var modular_js_1 = require_modular3();
|
|
231769
232154
|
var ut = require_utils24();
|
|
231770
232155
|
var utils_js_1 = require_utils24();
|
|
231771
232156
|
function validateSigVerOpts2(opts) {
|
|
@@ -231915,7 +232300,7 @@ var require_weierstrass3 = __commonJS({
|
|
|
231915
232300
|
function weierstrassPoints2(opts) {
|
|
231916
232301
|
const CURVE = validatePointOpts2(opts);
|
|
231917
232302
|
const { Fp } = CURVE;
|
|
231918
|
-
const Fn =
|
|
232303
|
+
const Fn = (0, modular_js_1.Field)(CURVE.n, CURVE.nBitLength);
|
|
231919
232304
|
const toBytes4 = CURVE.toBytes || ((_c, point, _isCompressed) => {
|
|
231920
232305
|
const a = point.toAffine();
|
|
231921
232306
|
return ut.concatBytes(Uint8Array.from([4]), Fp.toBytes(a.x), Fp.toBytes(a.y));
|
|
@@ -231953,7 +232338,7 @@ var require_weierstrass3 = __commonJS({
|
|
|
231953
232338
|
throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key);
|
|
231954
232339
|
}
|
|
231955
232340
|
if (wrapPrivateKey)
|
|
231956
|
-
num2 =
|
|
232341
|
+
num2 = (0, modular_js_1.mod)(num2, N);
|
|
231957
232342
|
ut.aInRange("private key", num2, _1n7, N);
|
|
231958
232343
|
return num2;
|
|
231959
232344
|
}
|
|
@@ -232327,10 +232712,10 @@ var require_weierstrass3 = __commonJS({
|
|
|
232327
232712
|
const compressedLen = Fp.BYTES + 1;
|
|
232328
232713
|
const uncompressedLen = 2 * Fp.BYTES + 1;
|
|
232329
232714
|
function modN2(a) {
|
|
232330
|
-
return
|
|
232715
|
+
return (0, modular_js_1.mod)(a, CURVE_ORDER);
|
|
232331
232716
|
}
|
|
232332
232717
|
function invN(a) {
|
|
232333
|
-
return
|
|
232718
|
+
return (0, modular_js_1.invert)(a, CURVE_ORDER);
|
|
232334
232719
|
}
|
|
232335
232720
|
const { ProjectivePoint: Point2, normPrivateKeyToScalar, weierstrassEquation, isWithinCurveOrder } = weierstrassPoints2({
|
|
232336
232721
|
...CURVE,
|
|
@@ -232468,8 +232853,8 @@ var require_weierstrass3 = __commonJS({
|
|
|
232468
232853
|
* (groupLen + ceil(groupLen / 2)) with modulo bias being negligible.
|
|
232469
232854
|
*/
|
|
232470
232855
|
randomPrivateKey: () => {
|
|
232471
|
-
const length =
|
|
232472
|
-
return
|
|
232856
|
+
const length = (0, modular_js_1.getMinHashLength)(CURVE.n);
|
|
232857
|
+
return (0, modular_js_1.mapHashToField)(CURVE.randomBytes(length), CURVE.n);
|
|
232473
232858
|
},
|
|
232474
232859
|
/**
|
|
232475
232860
|
* Creates precompute table for an arbitrary EC point. Makes point "cached".
|
|
@@ -232699,7 +233084,7 @@ var require_weierstrass3 = __commonJS({
|
|
|
232699
233084
|
return sqrtRatio;
|
|
232700
233085
|
}
|
|
232701
233086
|
function mapToCurveSimpleSWU2(Fp, opts) {
|
|
232702
|
-
|
|
233087
|
+
(0, modular_js_1.validateField)(Fp);
|
|
232703
233088
|
if (!Fp.isValid(opts.A) || !Fp.isValid(opts.B) || !Fp.isValid(opts.Z))
|
|
232704
233089
|
throw new Error("mapToCurveSimpleSWU: invalid opts");
|
|
232705
233090
|
const sqrtRatio = SWUFpSqrtRatio2(Fp, opts.Z);
|
|
@@ -238563,7 +238948,7 @@ var require_PasskeyClient = __commonJS({
|
|
|
238563
238948
|
throw new Error("invalid signature encoding");
|
|
238564
238949
|
}
|
|
238565
238950
|
};
|
|
238566
|
-
const view = new DataView(signature);
|
|
238951
|
+
const view = new DataView(signature instanceof ArrayBuffer ? signature : signature instanceof Uint8Array ? signature.buffer : new Uint8Array(signature).buffer);
|
|
238567
238952
|
check(view.getUint8(0) === 48);
|
|
238568
238953
|
check(view.getUint8(1) === view.byteLength - 2);
|
|
238569
238954
|
const readInt = (offset) => {
|
|
@@ -266670,6 +267055,42 @@ var require_createPasskeyDeploymentTransaction = __commonJS({
|
|
|
266670
267055
|
}
|
|
266671
267056
|
});
|
|
266672
267057
|
|
|
267058
|
+
// ../../node_modules/@safe-global/protocol-kit/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.js
|
|
267059
|
+
var require_generateOnChainIdentifier = __commonJS({
|
|
267060
|
+
"../../node_modules/@safe-global/protocol-kit/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.js"(exports2) {
|
|
267061
|
+
"use strict";
|
|
267062
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
267063
|
+
exports2.generateHash = void 0;
|
|
267064
|
+
var viem_1 = require_cjs3();
|
|
267065
|
+
function generateHash(input, size4) {
|
|
267066
|
+
const fullHash = (0, viem_1.keccak256)((0, viem_1.toHex)(input));
|
|
267067
|
+
return (0, viem_1.toHex)(fullHash.slice(-size4)).replace("0x", "");
|
|
267068
|
+
}
|
|
267069
|
+
exports2.generateHash = generateHash;
|
|
267070
|
+
function generateOnChainIdentifier({ project, platform = "Web", tool, toolVersion }) {
|
|
267071
|
+
const identifierPrefix = "5afe";
|
|
267072
|
+
const identifierVersion = "00";
|
|
267073
|
+
const projectHash = generateHash(project, 20);
|
|
267074
|
+
const platformHash = generateHash(platform, 3);
|
|
267075
|
+
const toolHash = generateHash(tool, 3);
|
|
267076
|
+
const toolVersionHash = generateHash(toolVersion, 3);
|
|
267077
|
+
return `${identifierPrefix}${identifierVersion}${projectHash}${platformHash}${toolHash}${toolVersionHash}`;
|
|
267078
|
+
}
|
|
267079
|
+
exports2.default = generateOnChainIdentifier;
|
|
267080
|
+
}
|
|
267081
|
+
});
|
|
267082
|
+
|
|
267083
|
+
// ../../node_modules/@safe-global/protocol-kit/dist/src/utils/getProtocolKitVersion.js
|
|
267084
|
+
var require_getProtocolKitVersion = __commonJS({
|
|
267085
|
+
"../../node_modules/@safe-global/protocol-kit/dist/src/utils/getProtocolKitVersion.js"(exports2) {
|
|
267086
|
+
"use strict";
|
|
267087
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
267088
|
+
exports2.getProtocolKitVersion = void 0;
|
|
267089
|
+
var getProtocolKitVersion = () => "5.2.0";
|
|
267090
|
+
exports2.getProtocolKitVersion = getProtocolKitVersion;
|
|
267091
|
+
}
|
|
267092
|
+
});
|
|
267093
|
+
|
|
266673
267094
|
// ../../node_modules/@safe-global/protocol-kit/dist/src/Safe.js
|
|
266674
267095
|
var require_Safe2 = __commonJS({
|
|
266675
267096
|
"../../node_modules/@safe-global/protocol-kit/dist/src/Safe.js"(exports2) {
|
|
@@ -266699,6 +267120,7 @@ var require_Safe2 = __commonJS({
|
|
|
266699
267120
|
var _Safe_fallbackHandlerManager;
|
|
266700
267121
|
var _Safe_MAGIC_VALUE;
|
|
266701
267122
|
var _Safe_MAGIC_VALUE_BYTES;
|
|
267123
|
+
var _Safe_onchainIdentifier;
|
|
266702
267124
|
var _Safe_initializeProtocolKit;
|
|
266703
267125
|
var _Safe_addPreValidatedSignature;
|
|
266704
267126
|
var _Safe_isReadyToExecute;
|
|
@@ -266724,6 +267146,8 @@ var require_Safe2 = __commonJS({
|
|
|
266724
267146
|
var types_3 = require_types12();
|
|
266725
267147
|
var getPasskeyOwnerAddress_1 = __importDefault4(require_getPasskeyOwnerAddress());
|
|
266726
267148
|
var createPasskeyDeploymentTransaction_1 = __importDefault4(require_createPasskeyDeploymentTransaction());
|
|
267149
|
+
var generateOnChainIdentifier_1 = __importDefault4(require_generateOnChainIdentifier());
|
|
267150
|
+
var getProtocolKitVersion_1 = require_getProtocolKitVersion();
|
|
266727
267151
|
var EQ_OR_GT_1_4_1 = ">=1.4.1";
|
|
266728
267152
|
var EQ_OR_GT_1_3_0 = ">=1.3.0";
|
|
266729
267153
|
var Safe = class {
|
|
@@ -266740,6 +267164,11 @@ var require_Safe2 = __commonJS({
|
|
|
266740
267164
|
_Safe_MAGIC_VALUE_BYTES.set(
|
|
266741
267165
|
this,
|
|
266742
267166
|
"0x20c13b0b"
|
|
267167
|
+
// on-chain Analytics
|
|
267168
|
+
);
|
|
267169
|
+
_Safe_onchainIdentifier.set(
|
|
267170
|
+
this,
|
|
267171
|
+
""
|
|
266743
267172
|
/**
|
|
266744
267173
|
* Creates an instance of the Safe Core SDK.
|
|
266745
267174
|
* @param config - Ethers Safe configuration
|
|
@@ -267687,6 +268116,25 @@ var require_Safe2 = __commonJS({
|
|
|
267687
268116
|
}
|
|
267688
268117
|
}
|
|
267689
268118
|
const signerAddress = await __classPrivateFieldGet5(this, _Safe_safeProvider, "f").getSignerAddress();
|
|
268119
|
+
if (__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f")) {
|
|
268120
|
+
const encodedTransaction = await this.getEncodedTransaction(signedSafeTransaction);
|
|
268121
|
+
const transaction2 = {
|
|
268122
|
+
to: await this.getAddress(),
|
|
268123
|
+
value: 0n,
|
|
268124
|
+
data: encodedTransaction + __classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f")
|
|
268125
|
+
};
|
|
268126
|
+
const signer = await __classPrivateFieldGet5(this, _Safe_safeProvider, "f").getExternalSigner();
|
|
268127
|
+
if (!signer) {
|
|
268128
|
+
throw new Error("A signer must be set");
|
|
268129
|
+
}
|
|
268130
|
+
const hash2 = await signer.sendTransaction({
|
|
268131
|
+
...transaction2,
|
|
268132
|
+
account: signer.account,
|
|
268133
|
+
...options
|
|
268134
|
+
});
|
|
268135
|
+
const provider = __classPrivateFieldGet5(this, _Safe_safeProvider, "f").getExternalProvider();
|
|
268136
|
+
return (0, utils_1.toTxResult)(provider, hash2, options);
|
|
268137
|
+
}
|
|
267690
268138
|
const txResponse = await __classPrivateFieldGet5(this, _Safe_contractManager, "f").safeContract.execTransaction(signedSafeTransaction, {
|
|
267691
268139
|
from: signerAddress,
|
|
267692
268140
|
...options
|
|
@@ -267745,6 +268193,9 @@ var require_Safe2 = __commonJS({
|
|
|
267745
268193
|
throw new Error("Safe already deployed");
|
|
267746
268194
|
}
|
|
267747
268195
|
const safeDeploymentTransaction = await this.createSafeDeploymentTransaction();
|
|
268196
|
+
if (safeDeploymentTransaction.data.endsWith(__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f"))) {
|
|
268197
|
+
safeDeploymentTransaction.data = safeDeploymentTransaction.data.replace(__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f"), "");
|
|
268198
|
+
}
|
|
267748
268199
|
const safeDeploymentBatchTransaction = {
|
|
267749
268200
|
to: safeDeploymentTransaction.to,
|
|
267750
268201
|
value: safeDeploymentTransaction.value,
|
|
@@ -267758,7 +268209,12 @@ var require_Safe2 = __commonJS({
|
|
|
267758
268209
|
operation: types_kit_1.OperationType.Call
|
|
267759
268210
|
};
|
|
267760
268211
|
const transactions = [safeDeploymentBatchTransaction, safeBatchTransaction];
|
|
267761
|
-
const safeDeploymentBatch = await this.createTransactionBatch(
|
|
268212
|
+
const safeDeploymentBatch = await this.createTransactionBatch(
|
|
268213
|
+
transactions,
|
|
268214
|
+
transactionOptions,
|
|
268215
|
+
!!__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f")
|
|
268216
|
+
// include the on chain identifier
|
|
268217
|
+
);
|
|
267762
268218
|
return safeDeploymentBatch;
|
|
267763
268219
|
}
|
|
267764
268220
|
/**
|
|
@@ -267817,6 +268273,9 @@ var require_Safe2 = __commonJS({
|
|
|
267817
268273
|
BigInt(saltNonce)
|
|
267818
268274
|
])
|
|
267819
268275
|
};
|
|
268276
|
+
if (__classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f")) {
|
|
268277
|
+
safeDeployTransactionData.data += __classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f");
|
|
268278
|
+
}
|
|
267820
268279
|
return safeDeployTransactionData;
|
|
267821
268280
|
}
|
|
267822
268281
|
/**
|
|
@@ -267827,10 +268286,11 @@ var require_Safe2 = __commonJS({
|
|
|
267827
268286
|
* @function createTransactionBatch
|
|
267828
268287
|
* @param {MetaTransactionData[]} transactions - An array of MetaTransactionData objects to be batched together.
|
|
267829
268288
|
* @param {TransactionOption} [transactionOptions] - Optional TransactionOption object to specify additional options for the transaction batch.
|
|
268289
|
+
* @param {boolean} [includeOnchainIdentifier=false] - A flag indicating whether to append the onchain identifier to the data field of the resulting transaction.
|
|
267830
268290
|
* @returns {Promise<Transaction>} A Promise that resolves with the created transaction batch.
|
|
267831
268291
|
*
|
|
267832
268292
|
*/
|
|
267833
|
-
async createTransactionBatch(transactions, transactionOptions) {
|
|
268293
|
+
async createTransactionBatch(transactions, transactionOptions, includeOnchainIdentifier = false) {
|
|
267834
268294
|
const multiSendCallOnlyContract = __classPrivateFieldGet5(this, _Safe_contractManager, "f").multiSendCallOnlyContract;
|
|
267835
268295
|
const batchData = multiSendCallOnlyContract.encode("multiSend", [
|
|
267836
268296
|
(0, types_3.asHex)((0, utils_3.encodeMultiSendData)(transactions))
|
|
@@ -267843,10 +268303,16 @@ var require_Safe2 = __commonJS({
|
|
|
267843
268303
|
value: "0",
|
|
267844
268304
|
data: batchData
|
|
267845
268305
|
};
|
|
268306
|
+
if (includeOnchainIdentifier) {
|
|
268307
|
+
transactionBatch.data += __classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f");
|
|
268308
|
+
}
|
|
267846
268309
|
return transactionBatch;
|
|
267847
268310
|
}
|
|
268311
|
+
getOnchainIdentifier() {
|
|
268312
|
+
return __classPrivateFieldGet5(this, _Safe_onchainIdentifier, "f");
|
|
268313
|
+
}
|
|
267848
268314
|
};
|
|
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 = /**
|
|
268315
|
+
_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
268316
|
* Initializes the Safe Core SDK instance.
|
|
267851
268317
|
* @param config - Safe configuration
|
|
267852
268318
|
* @throws "Signer must be connected to a provider"
|
|
@@ -267855,7 +268321,16 @@ var require_Safe2 = __commonJS({
|
|
|
267855
268321
|
* @throws "MultiSendCallOnly contract is not deployed on the current network"
|
|
267856
268322
|
*/
|
|
267857
268323
|
async function _Safe_initializeProtocolKit2(config) {
|
|
267858
|
-
const { provider, signer, isL1SafeSingleton, contractNetworks } = config;
|
|
268324
|
+
const { provider, signer, isL1SafeSingleton, contractNetworks, onchainAnalytics } = config;
|
|
268325
|
+
if (onchainAnalytics?.project) {
|
|
268326
|
+
const { project, platform } = onchainAnalytics;
|
|
268327
|
+
__classPrivateFieldSet5(this, _Safe_onchainIdentifier, (0, generateOnChainIdentifier_1.default)({
|
|
268328
|
+
project,
|
|
268329
|
+
platform,
|
|
268330
|
+
tool: "protocol-kit",
|
|
268331
|
+
toolVersion: (0, getProtocolKitVersion_1.getProtocolKitVersion)()
|
|
268332
|
+
}), "f");
|
|
268333
|
+
}
|
|
267859
268334
|
__classPrivateFieldSet5(this, _Safe_safeProvider, await SafeProvider_1.default.init({
|
|
267860
268335
|
provider,
|
|
267861
268336
|
signer,
|
|
@@ -268069,8 +268544,8 @@ var require_src9 = __commonJS({
|
|
|
268069
268544
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
268070
268545
|
};
|
|
268071
268546
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
268072
|
-
exports2.
|
|
268073
|
-
exports2.getPasskeyOwnerAddress = void 0;
|
|
268547
|
+
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;
|
|
268548
|
+
exports2.getPasskeyOwnerAddress = exports2.EthSafeMessage = void 0;
|
|
268074
268549
|
var Safe_1 = __importDefault4(require_Safe2());
|
|
268075
268550
|
var SafeProvider_1 = __importDefault4(require_SafeProvider());
|
|
268076
268551
|
exports2.SafeProvider = SafeProvider_1.default;
|
|
@@ -268230,6 +268705,8 @@ var require_src9 = __commonJS({
|
|
|
268230
268705
|
} });
|
|
268231
268706
|
var getPasskeyOwnerAddress_1 = __importDefault4(require_getPasskeyOwnerAddress());
|
|
268232
268707
|
exports2.getPasskeyOwnerAddress = getPasskeyOwnerAddress_1.default;
|
|
268708
|
+
var generateOnChainIdentifier_1 = __importDefault4(require_generateOnChainIdentifier());
|
|
268709
|
+
exports2.generateOnChainIdentifier = generateOnChainIdentifier_1.default;
|
|
268233
268710
|
__exportStar4(require_types13(), exports2);
|
|
268234
268711
|
exports2.default = Safe_1.default;
|
|
268235
268712
|
}
|
|
@@ -281731,17 +282208,17 @@ var require_interface3 = __commonJS({
|
|
|
281731
282208
|
* Create a new Interface for the %%fragments%%.
|
|
281732
282209
|
*/
|
|
281733
282210
|
constructor(fragments) {
|
|
281734
|
-
let
|
|
282211
|
+
let abi33 = [];
|
|
281735
282212
|
if (typeof fragments === "string") {
|
|
281736
|
-
|
|
282213
|
+
abi33 = JSON.parse(fragments);
|
|
281737
282214
|
} else {
|
|
281738
|
-
|
|
282215
|
+
abi33 = fragments;
|
|
281739
282216
|
}
|
|
281740
282217
|
this.#functions = /* @__PURE__ */ new Map();
|
|
281741
282218
|
this.#errors = /* @__PURE__ */ new Map();
|
|
281742
282219
|
this.#events = /* @__PURE__ */ new Map();
|
|
281743
282220
|
const frags = [];
|
|
281744
|
-
for (const a of
|
|
282221
|
+
for (const a of abi33) {
|
|
281745
282222
|
try {
|
|
281746
282223
|
frags.push(fragments_js_1.Fragment.from(a));
|
|
281747
282224
|
} catch (error) {
|
|
@@ -281805,16 +282282,16 @@ var require_interface3 = __commonJS({
|
|
|
281805
282282
|
*/
|
|
281806
282283
|
format(minimal) {
|
|
281807
282284
|
const format = minimal ? "minimal" : "full";
|
|
281808
|
-
const
|
|
281809
|
-
return
|
|
282285
|
+
const abi33 = this.fragments.map((f) => f.format(format));
|
|
282286
|
+
return abi33;
|
|
281810
282287
|
}
|
|
281811
282288
|
/**
|
|
281812
282289
|
* Return the JSON-encoded ABI. This is the format Solidiy
|
|
281813
282290
|
* returns.
|
|
281814
282291
|
*/
|
|
281815
282292
|
formatJson() {
|
|
281816
|
-
const
|
|
281817
|
-
return JSON.stringify(
|
|
282293
|
+
const abi33 = this.fragments.map((f) => f.format("json"));
|
|
282294
|
+
return JSON.stringify(abi33.map((j) => JSON.parse(j)));
|
|
281818
282295
|
}
|
|
281819
282296
|
/**
|
|
281820
282297
|
* The ABI coder that will be used to encode and decode binary
|
|
@@ -284582,12 +285059,12 @@ var require_contract5 = __commonJS({
|
|
|
284582
285059
|
* optionally connected to a %%runner%% to perform operations on behalf
|
|
284583
285060
|
* of.
|
|
284584
285061
|
*/
|
|
284585
|
-
constructor(target,
|
|
285062
|
+
constructor(target, abi33, runner, _deployTx) {
|
|
284586
285063
|
(0, index_js_3.assertArgument)(typeof target === "string" || (0, index_js_2.isAddressable)(target), "invalid value for Contract target", "target", target);
|
|
284587
285064
|
if (runner == null) {
|
|
284588
285065
|
runner = null;
|
|
284589
285066
|
}
|
|
284590
|
-
const iface = index_js_1.Interface.from(
|
|
285067
|
+
const iface = index_js_1.Interface.from(abi33);
|
|
284591
285068
|
(0, index_js_3.defineProperties)(this, { target, runner, interface: iface });
|
|
284592
285069
|
Object.defineProperty(this, internal, { value: {} });
|
|
284593
285070
|
let addrPromise;
|
|
@@ -284950,10 +285427,10 @@ var require_contract5 = __commonJS({
|
|
|
284950
285427
|
/**
|
|
284951
285428
|
* Create a new Class for the %%abi%%.
|
|
284952
285429
|
*/
|
|
284953
|
-
static buildClass(
|
|
285430
|
+
static buildClass(abi33) {
|
|
284954
285431
|
class CustomContract extends _BaseContract {
|
|
284955
285432
|
constructor(address, runner = null) {
|
|
284956
|
-
super(address,
|
|
285433
|
+
super(address, abi33, runner);
|
|
284957
285434
|
}
|
|
284958
285435
|
}
|
|
284959
285436
|
return CustomContract;
|
|
@@ -284961,11 +285438,11 @@ var require_contract5 = __commonJS({
|
|
|
284961
285438
|
/**
|
|
284962
285439
|
* Create a new BaseContract with a specified Interface.
|
|
284963
285440
|
*/
|
|
284964
|
-
static from(target,
|
|
285441
|
+
static from(target, abi33, runner) {
|
|
284965
285442
|
if (runner == null) {
|
|
284966
285443
|
runner = null;
|
|
284967
285444
|
}
|
|
284968
|
-
const contract = new this(target,
|
|
285445
|
+
const contract = new this(target, abi33, runner);
|
|
284969
285446
|
return contract;
|
|
284970
285447
|
}
|
|
284971
285448
|
};
|
|
@@ -285009,8 +285486,8 @@ var require_factory2 = __commonJS({
|
|
|
285009
285486
|
* The %%bytecode%% may be the ``bytecode`` property within the
|
|
285010
285487
|
* standard Solidity JSON output.
|
|
285011
285488
|
*/
|
|
285012
|
-
constructor(
|
|
285013
|
-
const iface = index_js_1.Interface.from(
|
|
285489
|
+
constructor(abi33, bytecode, runner) {
|
|
285490
|
+
const iface = index_js_1.Interface.from(abi33);
|
|
285014
285491
|
if (bytecode instanceof Uint8Array) {
|
|
285015
285492
|
bytecode = (0, index_js_3.hexlify)((0, index_js_3.getBytes)(bytecode));
|
|
285016
285493
|
} else {
|
|
@@ -285080,14 +285557,14 @@ var require_factory2 = __commonJS({
|
|
|
285080
285557
|
if (typeof output === "string") {
|
|
285081
285558
|
output = JSON.parse(output);
|
|
285082
285559
|
}
|
|
285083
|
-
const
|
|
285560
|
+
const abi33 = output.abi;
|
|
285084
285561
|
let bytecode = "";
|
|
285085
285562
|
if (output.bytecode) {
|
|
285086
285563
|
bytecode = output.bytecode;
|
|
285087
285564
|
} else if (output.evm && output.evm.bytecode) {
|
|
285088
285565
|
bytecode = output.evm.bytecode;
|
|
285089
285566
|
}
|
|
285090
|
-
return new this(
|
|
285567
|
+
return new this(abi33, bytecode, runner);
|
|
285091
285568
|
}
|
|
285092
285569
|
};
|
|
285093
285570
|
exports2.ContractFactory = ContractFactory;
|
|
@@ -290037,8 +290514,8 @@ var require_provider_etherscan2 = __commonJS({
|
|
|
290037
290514
|
action: "getabi",
|
|
290038
290515
|
address
|
|
290039
290516
|
});
|
|
290040
|
-
const
|
|
290041
|
-
return new index_js_2.Contract(address,
|
|
290517
|
+
const abi33 = JSON.parse(resp);
|
|
290518
|
+
return new index_js_2.Contract(address, abi33, this);
|
|
290042
290519
|
} catch (error) {
|
|
290043
290520
|
return null;
|
|
290044
290521
|
}
|
|
@@ -340052,10 +340529,10 @@ init_formatAbiItem2();
|
|
|
340052
340529
|
init_getAbiItem();
|
|
340053
340530
|
var docsPath = "/docs/contract/encodeEventTopics";
|
|
340054
340531
|
function encodeEventTopics(parameters) {
|
|
340055
|
-
const { abi:
|
|
340056
|
-
let abiItem =
|
|
340532
|
+
const { abi: abi33, eventName, args } = parameters;
|
|
340533
|
+
let abiItem = abi33[0];
|
|
340057
340534
|
if (eventName) {
|
|
340058
|
-
const item = getAbiItem({ abi:
|
|
340535
|
+
const item = getAbiItem({ abi: abi33, name: eventName });
|
|
340059
340536
|
if (!item)
|
|
340060
340537
|
throw new AbiEventNotFoundError(eventName, { docsPath });
|
|
340061
340538
|
abiItem = item;
|
|
@@ -340102,12 +340579,12 @@ function createFilterRequestScope(client, { method }) {
|
|
|
340102
340579
|
|
|
340103
340580
|
// ../../node_modules/viem/_esm/actions/public/createContractEventFilter.js
|
|
340104
340581
|
async function createContractEventFilter(client, parameters) {
|
|
340105
|
-
const { address, abi:
|
|
340582
|
+
const { address, abi: abi33, args, eventName, fromBlock, strict, toBlock } = parameters;
|
|
340106
340583
|
const getRequest = createFilterRequestScope(client, {
|
|
340107
340584
|
method: "eth_newFilter"
|
|
340108
340585
|
});
|
|
340109
340586
|
const topics = eventName ? encodeEventTopics({
|
|
340110
|
-
abi:
|
|
340587
|
+
abi: abi33,
|
|
340111
340588
|
args,
|
|
340112
340589
|
eventName
|
|
340113
340590
|
}) : void 0;
|
|
@@ -340123,7 +340600,7 @@ async function createContractEventFilter(client, parameters) {
|
|
|
340123
340600
|
]
|
|
340124
340601
|
});
|
|
340125
340602
|
return {
|
|
340126
|
-
abi:
|
|
340603
|
+
abi: abi33,
|
|
340127
340604
|
args,
|
|
340128
340605
|
eventName,
|
|
340129
340606
|
id,
|
|
@@ -340144,7 +340621,7 @@ init_contract();
|
|
|
340144
340621
|
init_request();
|
|
340145
340622
|
init_rpc();
|
|
340146
340623
|
var EXECUTION_REVERTED_ERROR_CODE = 3;
|
|
340147
|
-
function getContractError(err, { abi:
|
|
340624
|
+
function getContractError(err, { abi: abi33, address, args, docsPath: docsPath6, functionName, sender }) {
|
|
340148
340625
|
const error = err instanceof RawContractError ? err : err instanceof BaseError2 ? err.walk((err2) => "data" in err2) || err.walk() : {};
|
|
340149
340626
|
const { code, data, details, message, shortMessage } = error;
|
|
340150
340627
|
const cause = (() => {
|
|
@@ -340152,7 +340629,7 @@ function getContractError(err, { abi: abi32, address, args, docsPath: docsPath6,
|
|
|
340152
340629
|
return new ContractFunctionZeroDataError({ functionName });
|
|
340153
340630
|
if ([EXECUTION_REVERTED_ERROR_CODE, InternalRpcError.code].includes(code) && (data || details || message || shortMessage)) {
|
|
340154
340631
|
return new ContractFunctionRevertedError({
|
|
340155
|
-
abi:
|
|
340632
|
+
abi: abi33,
|
|
340156
340633
|
data: typeof data === "object" ? data.data : data,
|
|
340157
340634
|
functionName,
|
|
340158
340635
|
message: error instanceof RpcRequestError ? details : shortMessage ?? message
|
|
@@ -340161,7 +340638,7 @@ function getContractError(err, { abi: abi32, address, args, docsPath: docsPath6,
|
|
|
340161
340638
|
return err;
|
|
340162
340639
|
})();
|
|
340163
340640
|
return new ContractFunctionExecutionError(cause, {
|
|
340164
|
-
abi:
|
|
340641
|
+
abi: abi33,
|
|
340165
340642
|
args,
|
|
340166
340643
|
contractAddress: address,
|
|
340167
340644
|
docsPath: docsPath6,
|
|
@@ -341360,9 +341837,9 @@ async function estimateGas(client, args) {
|
|
|
341360
341837
|
|
|
341361
341838
|
// ../../node_modules/viem/_esm/actions/public/estimateContractGas.js
|
|
341362
341839
|
async function estimateContractGas(client, parameters) {
|
|
341363
|
-
const { abi:
|
|
341840
|
+
const { abi: abi33, address, args, functionName, dataSuffix, ...request } = parameters;
|
|
341364
341841
|
const data = encodeFunctionData({
|
|
341365
|
-
abi:
|
|
341842
|
+
abi: abi33,
|
|
341366
341843
|
args,
|
|
341367
341844
|
functionName
|
|
341368
341845
|
});
|
|
@@ -341376,7 +341853,7 @@ async function estimateContractGas(client, parameters) {
|
|
|
341376
341853
|
} catch (error) {
|
|
341377
341854
|
const account = request.account ? parseAccount(request.account) : void 0;
|
|
341378
341855
|
throw getContractError(error, {
|
|
341379
|
-
abi:
|
|
341856
|
+
abi: abi33,
|
|
341380
341857
|
address,
|
|
341381
341858
|
args,
|
|
341382
341859
|
docsPath: "/docs/contract/estimateContractGas",
|
|
@@ -341405,15 +341882,15 @@ init_decodeAbiParameters();
|
|
|
341405
341882
|
init_formatAbiItem2();
|
|
341406
341883
|
var docsPath3 = "/docs/contract/decodeEventLog";
|
|
341407
341884
|
function decodeEventLog(parameters) {
|
|
341408
|
-
const { abi:
|
|
341885
|
+
const { abi: abi33, data, strict: strict_, topics } = parameters;
|
|
341409
341886
|
const strict = strict_ ?? true;
|
|
341410
341887
|
const [signature, ...argTopics] = topics;
|
|
341411
341888
|
if (!signature)
|
|
341412
341889
|
throw new AbiEventSignatureEmptyTopicsError({ docsPath: docsPath3 });
|
|
341413
341890
|
const abiItem = (() => {
|
|
341414
|
-
if (
|
|
341415
|
-
return
|
|
341416
|
-
return
|
|
341891
|
+
if (abi33.length === 1)
|
|
341892
|
+
return abi33[0];
|
|
341893
|
+
return abi33.find((x) => x.type === "event" && signature === toEventSelector(formatAbiItem2(x)));
|
|
341417
341894
|
})();
|
|
341418
341895
|
if (!(abiItem && "name" in abiItem) || abiItem.type !== "event")
|
|
341419
341896
|
throw new AbiEventSignatureNotFoundError(signature, { docsPath: docsPath3 });
|
|
@@ -341480,7 +341957,7 @@ function decodeTopic({ param, value }) {
|
|
|
341480
341957
|
|
|
341481
341958
|
// ../../node_modules/viem/_esm/utils/abi/parseEventLogs.js
|
|
341482
341959
|
function parseEventLogs(parameters) {
|
|
341483
|
-
const { abi:
|
|
341960
|
+
const { abi: abi33, args, logs, strict = true } = parameters;
|
|
341484
341961
|
const eventName = (() => {
|
|
341485
341962
|
if (!parameters.eventName)
|
|
341486
341963
|
return void 0;
|
|
@@ -341490,7 +341967,7 @@ function parseEventLogs(parameters) {
|
|
|
341490
341967
|
})();
|
|
341491
341968
|
return logs.map((log2) => {
|
|
341492
341969
|
try {
|
|
341493
|
-
const abiItem =
|
|
341970
|
+
const abiItem = abi33.find((abiItem2) => abiItem2.type === "event" && log2.topics[0] === toEventSelector(abiItem2));
|
|
341494
341971
|
if (!abiItem)
|
|
341495
341972
|
return null;
|
|
341496
341973
|
const event = decodeEventLog({
|
|
@@ -341626,9 +342103,9 @@ async function getLogs(client, { address, blockHash, fromBlock, toBlock, event,
|
|
|
341626
342103
|
|
|
341627
342104
|
// ../../node_modules/viem/_esm/actions/public/getContractEvents.js
|
|
341628
342105
|
async function getContractEvents(client, parameters) {
|
|
341629
|
-
const { abi:
|
|
341630
|
-
const event = eventName ? getAbiItem({ abi:
|
|
341631
|
-
const events = !event ?
|
|
342106
|
+
const { abi: abi33, address, args, blockHash, eventName, fromBlock, toBlock, strict } = parameters;
|
|
342107
|
+
const event = eventName ? getAbiItem({ abi: abi33, name: eventName }) : void 0;
|
|
342108
|
+
const events = !event ? abi33.filter((x) => x.type === "event") : void 0;
|
|
341632
342109
|
return getAction(client, getLogs, "getLogs")({
|
|
341633
342110
|
address,
|
|
341634
342111
|
args,
|
|
@@ -341646,9 +342123,9 @@ init_decodeFunctionResult();
|
|
|
341646
342123
|
init_encodeFunctionData();
|
|
341647
342124
|
init_call();
|
|
341648
342125
|
async function readContract(client, parameters) {
|
|
341649
|
-
const { abi:
|
|
342126
|
+
const { abi: abi33, address, args, functionName, ...rest2 } = parameters;
|
|
341650
342127
|
const calldata = encodeFunctionData({
|
|
341651
|
-
abi:
|
|
342128
|
+
abi: abi33,
|
|
341652
342129
|
args,
|
|
341653
342130
|
functionName
|
|
341654
342131
|
});
|
|
@@ -341659,14 +342136,14 @@ async function readContract(client, parameters) {
|
|
|
341659
342136
|
to: address
|
|
341660
342137
|
});
|
|
341661
342138
|
return decodeFunctionResult({
|
|
341662
|
-
abi:
|
|
342139
|
+
abi: abi33,
|
|
341663
342140
|
args,
|
|
341664
342141
|
functionName,
|
|
341665
342142
|
data: data || "0x"
|
|
341666
342143
|
});
|
|
341667
342144
|
} catch (error) {
|
|
341668
342145
|
throw getContractError(error, {
|
|
341669
|
-
abi:
|
|
342146
|
+
abi: abi33,
|
|
341670
342147
|
address,
|
|
341671
342148
|
args,
|
|
341672
342149
|
docsPath: "/docs/contract/readContract",
|
|
@@ -341681,9 +342158,9 @@ init_decodeFunctionResult();
|
|
|
341681
342158
|
init_encodeFunctionData();
|
|
341682
342159
|
init_call();
|
|
341683
342160
|
async function simulateContract(client, parameters) {
|
|
341684
|
-
const { abi:
|
|
342161
|
+
const { abi: abi33, address, args, dataSuffix, functionName, ...callRequest } = parameters;
|
|
341685
342162
|
const account = callRequest.account ? parseAccount(callRequest.account) : client.account;
|
|
341686
|
-
const calldata = encodeFunctionData({ abi:
|
|
342163
|
+
const calldata = encodeFunctionData({ abi: abi33, args, functionName });
|
|
341687
342164
|
try {
|
|
341688
342165
|
const { data } = await getAction(client, call, "call")({
|
|
341689
342166
|
batch: false,
|
|
@@ -341693,12 +342170,12 @@ async function simulateContract(client, parameters) {
|
|
|
341693
342170
|
account
|
|
341694
342171
|
});
|
|
341695
342172
|
const result = decodeFunctionResult({
|
|
341696
|
-
abi:
|
|
342173
|
+
abi: abi33,
|
|
341697
342174
|
args,
|
|
341698
342175
|
functionName,
|
|
341699
342176
|
data: data || "0x"
|
|
341700
342177
|
});
|
|
341701
|
-
const minimizedAbi =
|
|
342178
|
+
const minimizedAbi = abi33.filter((abiItem) => "name" in abiItem && abiItem.name === parameters.functionName);
|
|
341702
342179
|
return {
|
|
341703
342180
|
result,
|
|
341704
342181
|
request: {
|
|
@@ -341713,7 +342190,7 @@ async function simulateContract(client, parameters) {
|
|
|
341713
342190
|
};
|
|
341714
342191
|
} catch (error) {
|
|
341715
342192
|
throw getContractError(error, {
|
|
341716
|
-
abi:
|
|
342193
|
+
abi: abi33,
|
|
341717
342194
|
address,
|
|
341718
342195
|
args,
|
|
341719
342196
|
docsPath: "/docs/contract/simulateContract",
|
|
@@ -341881,7 +342358,7 @@ async function uninstallFilter(_client, { filter }) {
|
|
|
341881
342358
|
|
|
341882
342359
|
// ../../node_modules/viem/_esm/actions/public/watchContractEvent.js
|
|
341883
342360
|
function watchContractEvent(client, parameters) {
|
|
341884
|
-
const { abi:
|
|
342361
|
+
const { abi: abi33, address, args, batch = true, eventName, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ } = parameters;
|
|
341885
342362
|
const enablePolling = (() => {
|
|
341886
342363
|
if (typeof poll_ !== "undefined")
|
|
341887
342364
|
return poll_;
|
|
@@ -341916,7 +342393,7 @@ function watchContractEvent(client, parameters) {
|
|
|
341916
342393
|
if (!initialized) {
|
|
341917
342394
|
try {
|
|
341918
342395
|
filter = await getAction(client, createContractEventFilter, "createContractEventFilter")({
|
|
341919
|
-
abi:
|
|
342396
|
+
abi: abi33,
|
|
341920
342397
|
address,
|
|
341921
342398
|
args,
|
|
341922
342399
|
eventName,
|
|
@@ -341936,7 +342413,7 @@ function watchContractEvent(client, parameters) {
|
|
|
341936
342413
|
const blockNumber = await getAction(client, getBlockNumber, "getBlockNumber")({});
|
|
341937
342414
|
if (previousBlockNumber && previousBlockNumber < blockNumber) {
|
|
341938
342415
|
logs = await getAction(client, getContractEvents, "getContractEvents")({
|
|
341939
|
-
abi:
|
|
342416
|
+
abi: abi33,
|
|
341940
342417
|
address,
|
|
341941
342418
|
args,
|
|
341942
342419
|
eventName,
|
|
@@ -342000,7 +342477,7 @@ function watchContractEvent(client, parameters) {
|
|
|
342000
342477
|
return client.transport;
|
|
342001
342478
|
})();
|
|
342002
342479
|
const topics = eventName ? encodeEventTopics({
|
|
342003
|
-
abi:
|
|
342480
|
+
abi: abi33,
|
|
342004
342481
|
eventName,
|
|
342005
342482
|
args
|
|
342006
342483
|
}) : [];
|
|
@@ -342012,7 +342489,7 @@ function watchContractEvent(client, parameters) {
|
|
|
342012
342489
|
const log2 = data.result;
|
|
342013
342490
|
try {
|
|
342014
342491
|
const { eventName: eventName2, args: args2 } = decodeEventLog({
|
|
342015
|
-
abi:
|
|
342492
|
+
abi: abi33,
|
|
342016
342493
|
data: log2.data,
|
|
342017
342494
|
topics: log2.topics,
|
|
342018
342495
|
strict: strict_
|
|
@@ -342263,14 +342740,14 @@ async function sendTransaction(client, parameters) {
|
|
|
342263
342740
|
|
|
342264
342741
|
// ../../node_modules/viem/_esm/actions/wallet/writeContract.js
|
|
342265
342742
|
async function writeContract(client, parameters) {
|
|
342266
|
-
const { abi:
|
|
342743
|
+
const { abi: abi33, account: account_ = client.account, address, args, dataSuffix, functionName, ...request } = parameters;
|
|
342267
342744
|
if (typeof account_ === "undefined")
|
|
342268
342745
|
throw new AccountNotFoundError({
|
|
342269
342746
|
docsPath: "/docs/contract/writeContract"
|
|
342270
342747
|
});
|
|
342271
342748
|
const account = account_ ? parseAccount(account_) : null;
|
|
342272
342749
|
const data = encodeFunctionData({
|
|
342273
|
-
abi:
|
|
342750
|
+
abi: abi33,
|
|
342274
342751
|
args,
|
|
342275
342752
|
functionName
|
|
342276
342753
|
});
|
|
@@ -342283,7 +342760,7 @@ async function writeContract(client, parameters) {
|
|
|
342283
342760
|
});
|
|
342284
342761
|
} catch (error) {
|
|
342285
342762
|
throw getContractError(error, {
|
|
342286
|
-
abi:
|
|
342763
|
+
abi: abi33,
|
|
342287
342764
|
address,
|
|
342288
342765
|
args,
|
|
342289
342766
|
docsPath: "/docs/contract/writeContract",
|
|
@@ -342294,7 +342771,7 @@ async function writeContract(client, parameters) {
|
|
|
342294
342771
|
}
|
|
342295
342772
|
|
|
342296
342773
|
// ../../node_modules/viem/_esm/actions/getContract.js
|
|
342297
|
-
function getContract({ abi:
|
|
342774
|
+
function getContract({ abi: abi33, address, client: client_ }) {
|
|
342298
342775
|
const client = client_;
|
|
342299
342776
|
const [publicClient, walletClient] = (() => {
|
|
342300
342777
|
if (!client)
|
|
@@ -342313,7 +342790,7 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342313
342790
|
let hasReadFunction = false;
|
|
342314
342791
|
let hasWriteFunction = false;
|
|
342315
342792
|
let hasEvent = false;
|
|
342316
|
-
for (const item of
|
|
342793
|
+
for (const item of abi33) {
|
|
342317
342794
|
if (item.type === "function")
|
|
342318
342795
|
if (item.stateMutability === "view" || item.stateMutability === "pure")
|
|
342319
342796
|
hasReadFunction = true;
|
|
@@ -342331,7 +342808,7 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342331
342808
|
return (...parameters) => {
|
|
342332
342809
|
const { args, options } = getFunctionParameters(parameters);
|
|
342333
342810
|
return getAction(publicClient, readContract, "readContract")({
|
|
342334
|
-
abi:
|
|
342811
|
+
abi: abi33,
|
|
342335
342812
|
address,
|
|
342336
342813
|
functionName,
|
|
342337
342814
|
args,
|
|
@@ -342346,7 +342823,7 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342346
342823
|
return (...parameters) => {
|
|
342347
342824
|
const { args, options } = getFunctionParameters(parameters);
|
|
342348
342825
|
return getAction(publicClient, simulateContract, "simulateContract")({
|
|
342349
|
-
abi:
|
|
342826
|
+
abi: abi33,
|
|
342350
342827
|
address,
|
|
342351
342828
|
functionName,
|
|
342352
342829
|
args,
|
|
@@ -342359,10 +342836,10 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342359
342836
|
contract.createEventFilter = new Proxy({}, {
|
|
342360
342837
|
get(_, eventName) {
|
|
342361
342838
|
return (...parameters) => {
|
|
342362
|
-
const abiEvent =
|
|
342839
|
+
const abiEvent = abi33.find((x) => x.type === "event" && x.name === eventName);
|
|
342363
342840
|
const { args, options } = getEventParameters(parameters, abiEvent);
|
|
342364
342841
|
return getAction(publicClient, createContractEventFilter, "createContractEventFilter")({
|
|
342365
|
-
abi:
|
|
342842
|
+
abi: abi33,
|
|
342366
342843
|
address,
|
|
342367
342844
|
eventName,
|
|
342368
342845
|
args,
|
|
@@ -342374,10 +342851,10 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342374
342851
|
contract.getEvents = new Proxy({}, {
|
|
342375
342852
|
get(_, eventName) {
|
|
342376
342853
|
return (...parameters) => {
|
|
342377
|
-
const abiEvent =
|
|
342854
|
+
const abiEvent = abi33.find((x) => x.type === "event" && x.name === eventName);
|
|
342378
342855
|
const { args, options } = getEventParameters(parameters, abiEvent);
|
|
342379
342856
|
return getAction(publicClient, getContractEvents, "getContractEvents")({
|
|
342380
|
-
abi:
|
|
342857
|
+
abi: abi33,
|
|
342381
342858
|
address,
|
|
342382
342859
|
eventName,
|
|
342383
342860
|
args,
|
|
@@ -342389,10 +342866,10 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342389
342866
|
contract.watchEvent = new Proxy({}, {
|
|
342390
342867
|
get(_, eventName) {
|
|
342391
342868
|
return (...parameters) => {
|
|
342392
|
-
const abiEvent =
|
|
342869
|
+
const abiEvent = abi33.find((x) => x.type === "event" && x.name === eventName);
|
|
342393
342870
|
const { args, options } = getEventParameters(parameters, abiEvent);
|
|
342394
342871
|
return getAction(publicClient, watchContractEvent, "watchContractEvent")({
|
|
342395
|
-
abi:
|
|
342872
|
+
abi: abi33,
|
|
342396
342873
|
address,
|
|
342397
342874
|
eventName,
|
|
342398
342875
|
args,
|
|
@@ -342410,7 +342887,7 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342410
342887
|
return (...parameters) => {
|
|
342411
342888
|
const { args, options } = getFunctionParameters(parameters);
|
|
342412
342889
|
return getAction(walletClient, writeContract, "writeContract")({
|
|
342413
|
-
abi:
|
|
342890
|
+
abi: abi33,
|
|
342414
342891
|
address,
|
|
342415
342892
|
functionName,
|
|
342416
342893
|
args,
|
|
@@ -342428,7 +342905,7 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342428
342905
|
const { args, options } = getFunctionParameters(parameters);
|
|
342429
342906
|
const client2 = publicClient ?? walletClient;
|
|
342430
342907
|
return getAction(client2, estimateContractGas, "estimateContractGas")({
|
|
342431
|
-
abi:
|
|
342908
|
+
abi: abi33,
|
|
342432
342909
|
address,
|
|
342433
342910
|
functionName,
|
|
342434
342911
|
args,
|
|
@@ -342440,7 +342917,7 @@ function getContract({ abi: abi32, address, client: client_ }) {
|
|
|
342440
342917
|
});
|
|
342441
342918
|
}
|
|
342442
342919
|
contract.address = address;
|
|
342443
|
-
contract.abi =
|
|
342920
|
+
contract.abi = abi33;
|
|
342444
342921
|
return contract;
|
|
342445
342922
|
}
|
|
342446
342923
|
function getFunctionParameters(values) {
|
|
@@ -342646,10 +343123,19 @@ function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shoul
|
|
|
342646
343123
|
init_stringify();
|
|
342647
343124
|
function buildRequest(request, options = {}) {
|
|
342648
343125
|
return async (args, overrideOptions = {}) => {
|
|
342649
|
-
const { dedupe = false, retryDelay = 150, retryCount = 3, uid: uid2 } = {
|
|
343126
|
+
const { dedupe = false, methods, retryDelay = 150, retryCount = 3, uid: uid2 } = {
|
|
342650
343127
|
...options,
|
|
342651
343128
|
...overrideOptions
|
|
342652
343129
|
};
|
|
343130
|
+
const { method } = args;
|
|
343131
|
+
if (methods?.exclude?.includes(method))
|
|
343132
|
+
throw new MethodNotSupportedRpcError(new Error("method not supported"), {
|
|
343133
|
+
method
|
|
343134
|
+
});
|
|
343135
|
+
if (methods?.include && !methods.include.includes(method))
|
|
343136
|
+
throw new MethodNotSupportedRpcError(new Error("method not supported"), {
|
|
343137
|
+
method
|
|
343138
|
+
});
|
|
342653
343139
|
const requestId = dedupe ? keccak256(stringToHex(`${uid2}.${stringify(args)}`)) : void 0;
|
|
342654
343140
|
return withDedupe(() => withRetry(async () => {
|
|
342655
343141
|
try {
|
|
@@ -342770,7 +343256,7 @@ function shouldRetry(error) {
|
|
|
342770
343256
|
}
|
|
342771
343257
|
|
|
342772
343258
|
// ../../node_modules/viem/_esm/clients/transports/createTransport.js
|
|
342773
|
-
function createTransport({ key, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
|
|
343259
|
+
function createTransport({ key, methods, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
|
|
342774
343260
|
const uid2 = uid();
|
|
342775
343261
|
return {
|
|
342776
343262
|
config: {
|
|
@@ -342782,7 +343268,7 @@ function createTransport({ key, name, request, retryCount = 3, retryDelay = 150,
|
|
|
342782
343268
|
timeout,
|
|
342783
343269
|
type
|
|
342784
343270
|
},
|
|
342785
|
-
request: buildRequest(request, { retryCount, retryDelay, uid: uid2 }),
|
|
343271
|
+
request: buildRequest(request, { methods, retryCount, retryDelay, uid: uid2 }),
|
|
342786
343272
|
value
|
|
342787
343273
|
};
|
|
342788
343274
|
}
|
|
@@ -343057,7 +343543,7 @@ function getHttpRpcClient(url, options = {}) {
|
|
|
343057
343543
|
|
|
343058
343544
|
// ../../node_modules/viem/_esm/clients/transports/http.js
|
|
343059
343545
|
function http(url, config = {}) {
|
|
343060
|
-
const { batch, fetchOptions, key = "http", name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay } = config;
|
|
343546
|
+
const { batch, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay } = config;
|
|
343061
343547
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
|
343062
343548
|
const { batchSize = 1e3, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
|
|
343063
343549
|
const retryCount = config.retryCount ?? retryCount_;
|
|
@@ -343073,6 +343559,7 @@ function http(url, config = {}) {
|
|
|
343073
343559
|
});
|
|
343074
343560
|
return createTransport({
|
|
343075
343561
|
key,
|
|
343562
|
+
methods,
|
|
343076
343563
|
name,
|
|
343077
343564
|
async request({ method, params }) {
|
|
343078
343565
|
const body = { method, params };
|
|
@@ -344125,9 +344612,9 @@ init_toFunctionSelector();
|
|
|
344125
344612
|
init_decodeAbiParameters();
|
|
344126
344613
|
init_formatAbiItem2();
|
|
344127
344614
|
function decodeFunctionData(parameters) {
|
|
344128
|
-
const { abi:
|
|
344615
|
+
const { abi: abi33, data } = parameters;
|
|
344129
344616
|
const signature = slice(data, 0, 4);
|
|
344130
|
-
const description =
|
|
344617
|
+
const description = abi33.find((x) => x.type === "function" && signature === toFunctionSelector(formatAbiItem2(x)));
|
|
344131
344618
|
if (!description)
|
|
344132
344619
|
throw new AbiFunctionSignatureNotFoundError(signature, {
|
|
344133
344620
|
docsPath: "/docs/contract/decodeFunctionData"
|
|
@@ -344771,9 +345258,9 @@ async function multicall(client, parameters) {
|
|
|
344771
345258
|
let currentChunk = 0;
|
|
344772
345259
|
let currentChunkSize = 0;
|
|
344773
345260
|
for (let i = 0; i < contracts2.length; i++) {
|
|
344774
|
-
const { abi:
|
|
345261
|
+
const { abi: abi33, address, args, functionName } = contracts2[i];
|
|
344775
345262
|
try {
|
|
344776
|
-
const callData = encodeFunctionData({ abi:
|
|
345263
|
+
const callData = encodeFunctionData({ abi: abi33, args, functionName });
|
|
344777
345264
|
currentChunkSize += (callData.length - 2) / 2;
|
|
344778
345265
|
if (
|
|
344779
345266
|
// Check if batching is enabled.
|
|
@@ -344795,7 +345282,7 @@ async function multicall(client, parameters) {
|
|
|
344795
345282
|
];
|
|
344796
345283
|
} catch (err) {
|
|
344797
345284
|
const error = getContractError(err, {
|
|
344798
|
-
abi:
|
|
345285
|
+
abi: abi33,
|
|
344799
345286
|
address,
|
|
344800
345287
|
args,
|
|
344801
345288
|
docsPath: "/docs/contract/multicall",
|
|
@@ -344841,14 +345328,14 @@ async function multicall(client, parameters) {
|
|
|
344841
345328
|
for (let j = 0; j < aggregate3Result.length; j++) {
|
|
344842
345329
|
const { returnData, success } = aggregate3Result[j];
|
|
344843
345330
|
const { callData } = chunkedCalls[i][j];
|
|
344844
|
-
const { abi:
|
|
345331
|
+
const { abi: abi33, address, functionName, args } = contracts2[results.length];
|
|
344845
345332
|
try {
|
|
344846
345333
|
if (callData === "0x")
|
|
344847
345334
|
throw new AbiDecodingZeroDataError();
|
|
344848
345335
|
if (!success)
|
|
344849
345336
|
throw new RawContractError({ data: returnData });
|
|
344850
345337
|
const result2 = decodeFunctionResult({
|
|
344851
|
-
abi:
|
|
345338
|
+
abi: abi33,
|
|
344852
345339
|
args,
|
|
344853
345340
|
data: returnData,
|
|
344854
345341
|
functionName
|
|
@@ -344856,7 +345343,7 @@ async function multicall(client, parameters) {
|
|
|
344856
345343
|
results.push(allowFailure ? { result: result2, status: "success" } : result2);
|
|
344857
345344
|
} catch (err) {
|
|
344858
345345
|
const error = getContractError(err, {
|
|
344859
|
-
abi:
|
|
345346
|
+
abi: abi33,
|
|
344860
345347
|
address,
|
|
344861
345348
|
args,
|
|
344862
345349
|
docsPath: "/docs/contract/multicall",
|
|
@@ -345131,13 +345618,13 @@ async function simulate(client, parameters) {
|
|
|
345131
345618
|
return result.map((block2, i) => ({
|
|
345132
345619
|
...formatBlock(block2),
|
|
345133
345620
|
calls: block2.calls.map((call2, j) => {
|
|
345134
|
-
const { abi:
|
|
345621
|
+
const { abi: abi33, args, functionName, to } = blocks[i].calls[j];
|
|
345135
345622
|
const data = call2.error?.data ?? call2.returnData;
|
|
345136
345623
|
const gasUsed = BigInt(call2.gasUsed);
|
|
345137
345624
|
const logs = call2.logs?.map((log2) => formatLog(log2));
|
|
345138
345625
|
const status = call2.status === "0x1" ? "success" : "failure";
|
|
345139
|
-
const result2 =
|
|
345140
|
-
abi:
|
|
345626
|
+
const result2 = abi33 ? decodeFunctionResult({
|
|
345627
|
+
abi: abi33,
|
|
345141
345628
|
data,
|
|
345142
345629
|
functionName
|
|
345143
345630
|
}) : null;
|
|
@@ -345152,7 +345639,7 @@ async function simulate(client, parameters) {
|
|
|
345152
345639
|
if (!error2)
|
|
345153
345640
|
return void 0;
|
|
345154
345641
|
return getContractError(error2, {
|
|
345155
|
-
abi:
|
|
345642
|
+
abi: abi33 ?? [],
|
|
345156
345643
|
address: to,
|
|
345157
345644
|
args,
|
|
345158
345645
|
functionName: functionName ?? "<unknown>"
|
|
@@ -346372,8 +346859,8 @@ function createTestClient(parameters) {
|
|
|
346372
346859
|
// ../../node_modules/viem/_esm/actions/wallet/deployContract.js
|
|
346373
346860
|
init_encodeDeployData();
|
|
346374
346861
|
function deployContract(walletClient, parameters) {
|
|
346375
|
-
const { abi:
|
|
346376
|
-
const calldata = encodeDeployData({ abi:
|
|
346862
|
+
const { abi: abi33, args, bytecode, ...request } = parameters;
|
|
346863
|
+
const calldata = encodeDeployData({ abi: abi33, args, bytecode });
|
|
346377
346864
|
return sendTransaction(walletClient, {
|
|
346378
346865
|
...request,
|
|
346379
346866
|
data: calldata
|
|
@@ -367005,6 +367492,142 @@ var iMellowVaultAdapterAbi = [
|
|
|
367005
367492
|
]
|
|
367006
367493
|
}
|
|
367007
367494
|
];
|
|
367495
|
+
var iErc4626AdapterAbi = [
|
|
367496
|
+
{
|
|
367497
|
+
type: "function",
|
|
367498
|
+
name: "_gearboxAdapterType",
|
|
367499
|
+
inputs: [],
|
|
367500
|
+
outputs: [{ name: "", type: "uint8", internalType: "enum AdapterType" }],
|
|
367501
|
+
stateMutability: "view"
|
|
367502
|
+
},
|
|
367503
|
+
{
|
|
367504
|
+
type: "function",
|
|
367505
|
+
name: "_gearboxAdapterVersion",
|
|
367506
|
+
inputs: [],
|
|
367507
|
+
outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
|
|
367508
|
+
stateMutability: "view"
|
|
367509
|
+
},
|
|
367510
|
+
{
|
|
367511
|
+
type: "function",
|
|
367512
|
+
name: "addressProvider",
|
|
367513
|
+
inputs: [],
|
|
367514
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
367515
|
+
stateMutability: "view"
|
|
367516
|
+
},
|
|
367517
|
+
{
|
|
367518
|
+
type: "function",
|
|
367519
|
+
name: "asset",
|
|
367520
|
+
inputs: [],
|
|
367521
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
367522
|
+
stateMutability: "view"
|
|
367523
|
+
},
|
|
367524
|
+
{
|
|
367525
|
+
type: "function",
|
|
367526
|
+
name: "assetMask",
|
|
367527
|
+
inputs: [],
|
|
367528
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
367529
|
+
stateMutability: "view"
|
|
367530
|
+
},
|
|
367531
|
+
{
|
|
367532
|
+
type: "function",
|
|
367533
|
+
name: "creditManager",
|
|
367534
|
+
inputs: [],
|
|
367535
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
367536
|
+
stateMutability: "view"
|
|
367537
|
+
},
|
|
367538
|
+
{
|
|
367539
|
+
type: "function",
|
|
367540
|
+
name: "deposit",
|
|
367541
|
+
inputs: [
|
|
367542
|
+
{ name: "assets", type: "uint256", internalType: "uint256" },
|
|
367543
|
+
{ name: "", type: "address", internalType: "address" }
|
|
367544
|
+
],
|
|
367545
|
+
outputs: [
|
|
367546
|
+
{ name: "tokensToEnable", type: "uint256", internalType: "uint256" },
|
|
367547
|
+
{ name: "tokensToDisable", type: "uint256", internalType: "uint256" }
|
|
367548
|
+
],
|
|
367549
|
+
stateMutability: "nonpayable"
|
|
367550
|
+
},
|
|
367551
|
+
{
|
|
367552
|
+
type: "function",
|
|
367553
|
+
name: "depositDiff",
|
|
367554
|
+
inputs: [
|
|
367555
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
367556
|
+
],
|
|
367557
|
+
outputs: [
|
|
367558
|
+
{ name: "tokensToEnable", type: "uint256", internalType: "uint256" },
|
|
367559
|
+
{ name: "tokensToDisable", type: "uint256", internalType: "uint256" }
|
|
367560
|
+
],
|
|
367561
|
+
stateMutability: "nonpayable"
|
|
367562
|
+
},
|
|
367563
|
+
{
|
|
367564
|
+
type: "function",
|
|
367565
|
+
name: "mint",
|
|
367566
|
+
inputs: [
|
|
367567
|
+
{ name: "shares", type: "uint256", internalType: "uint256" },
|
|
367568
|
+
{ name: "", type: "address", internalType: "address" }
|
|
367569
|
+
],
|
|
367570
|
+
outputs: [
|
|
367571
|
+
{ name: "tokensToEnable", type: "uint256", internalType: "uint256" },
|
|
367572
|
+
{ name: "tokensToDisable", type: "uint256", internalType: "uint256" }
|
|
367573
|
+
],
|
|
367574
|
+
stateMutability: "nonpayable"
|
|
367575
|
+
},
|
|
367576
|
+
{
|
|
367577
|
+
type: "function",
|
|
367578
|
+
name: "redeem",
|
|
367579
|
+
inputs: [
|
|
367580
|
+
{ name: "shares", type: "uint256", internalType: "uint256" },
|
|
367581
|
+
{ name: "", type: "address", internalType: "address" },
|
|
367582
|
+
{ name: "", type: "address", internalType: "address" }
|
|
367583
|
+
],
|
|
367584
|
+
outputs: [
|
|
367585
|
+
{ name: "tokensToEnable", type: "uint256", internalType: "uint256" },
|
|
367586
|
+
{ name: "tokensToDisable", type: "uint256", internalType: "uint256" }
|
|
367587
|
+
],
|
|
367588
|
+
stateMutability: "nonpayable"
|
|
367589
|
+
},
|
|
367590
|
+
{
|
|
367591
|
+
type: "function",
|
|
367592
|
+
name: "redeemDiff",
|
|
367593
|
+
inputs: [
|
|
367594
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
367595
|
+
],
|
|
367596
|
+
outputs: [
|
|
367597
|
+
{ name: "tokensToEnable", type: "uint256", internalType: "uint256" },
|
|
367598
|
+
{ name: "tokensToDisable", type: "uint256", internalType: "uint256" }
|
|
367599
|
+
],
|
|
367600
|
+
stateMutability: "nonpayable"
|
|
367601
|
+
},
|
|
367602
|
+
{
|
|
367603
|
+
type: "function",
|
|
367604
|
+
name: "sharesMask",
|
|
367605
|
+
inputs: [],
|
|
367606
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
367607
|
+
stateMutability: "view"
|
|
367608
|
+
},
|
|
367609
|
+
{
|
|
367610
|
+
type: "function",
|
|
367611
|
+
name: "targetContract",
|
|
367612
|
+
inputs: [],
|
|
367613
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
367614
|
+
stateMutability: "view"
|
|
367615
|
+
},
|
|
367616
|
+
{
|
|
367617
|
+
type: "function",
|
|
367618
|
+
name: "withdraw",
|
|
367619
|
+
inputs: [
|
|
367620
|
+
{ name: "assets", type: "uint256", internalType: "uint256" },
|
|
367621
|
+
{ name: "", type: "address", internalType: "address" },
|
|
367622
|
+
{ name: "", type: "address", internalType: "address" }
|
|
367623
|
+
],
|
|
367624
|
+
outputs: [
|
|
367625
|
+
{ name: "tokensToEnable", type: "uint256", internalType: "uint256" },
|
|
367626
|
+
{ name: "tokensToDisable", type: "uint256", internalType: "uint256" }
|
|
367627
|
+
],
|
|
367628
|
+
stateMutability: "nonpayable"
|
|
367629
|
+
}
|
|
367630
|
+
];
|
|
367008
367631
|
var iPendleRouterAdapterAbi = [
|
|
367009
367632
|
{
|
|
367010
367633
|
type: "function",
|
|
@@ -374080,12 +374703,12 @@ var json_parse = (s) => {
|
|
|
374080
374703
|
function createRawTx(to, parameters, description) {
|
|
374081
374704
|
const { args } = parameters;
|
|
374082
374705
|
const fname = parameters.functionName;
|
|
374083
|
-
const { abi:
|
|
374706
|
+
const { abi: abi33, functionName } = (() => {
|
|
374084
374707
|
if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
|
|
374085
374708
|
return parameters;
|
|
374086
374709
|
return prepareEncodeFunctionData(parameters);
|
|
374087
374710
|
})();
|
|
374088
|
-
const abiItem =
|
|
374711
|
+
const abiItem = abi33[0];
|
|
374089
374712
|
const signature = functionName;
|
|
374090
374713
|
const data = "inputs" in abiItem && abiItem.inputs ? encodeAbiParameters(abiItem.inputs, args ?? []) : void 0;
|
|
374091
374714
|
const functionEncodedData = concatHex([signature, data ?? "0x"]);
|
|
@@ -374543,8 +375166,8 @@ var CurveV1StableNGAdapterContract = class extends AbstractAdapterContract {
|
|
|
374543
375166
|
});
|
|
374544
375167
|
}
|
|
374545
375168
|
};
|
|
374546
|
-
var abi13 =
|
|
374547
|
-
var
|
|
375169
|
+
var abi13 = iErc4626AdapterAbi;
|
|
375170
|
+
var MellowERC4626VaultAdapterContract = class extends AbstractAdapterContract {
|
|
374548
375171
|
constructor(sdk, args) {
|
|
374549
375172
|
super(sdk, {
|
|
374550
375173
|
...args,
|
|
@@ -374552,8 +375175,8 @@ var MellowVaultAdapterContract = class extends AbstractAdapterContract {
|
|
|
374552
375175
|
});
|
|
374553
375176
|
}
|
|
374554
375177
|
};
|
|
374555
|
-
var abi14 =
|
|
374556
|
-
var
|
|
375178
|
+
var abi14 = iMellowVaultAdapterAbi;
|
|
375179
|
+
var MellowVaultAdapterContract = class extends AbstractAdapterContract {
|
|
374557
375180
|
constructor(sdk, args) {
|
|
374558
375181
|
super(sdk, {
|
|
374559
375182
|
...args,
|
|
@@ -374561,8 +375184,8 @@ var PendleRouterAdapterContract = class extends AbstractAdapterContract {
|
|
|
374561
375184
|
});
|
|
374562
375185
|
}
|
|
374563
375186
|
};
|
|
374564
|
-
var abi15 =
|
|
374565
|
-
var
|
|
375187
|
+
var abi15 = iPendleRouterAdapterAbi;
|
|
375188
|
+
var PendleRouterAdapterContract = class extends AbstractAdapterContract {
|
|
374566
375189
|
constructor(sdk, args) {
|
|
374567
375190
|
super(sdk, {
|
|
374568
375191
|
...args,
|
|
@@ -374570,8 +375193,8 @@ var StakingRewardsAdapterContract = class extends AbstractAdapterContract {
|
|
|
374570
375193
|
});
|
|
374571
375194
|
}
|
|
374572
375195
|
};
|
|
374573
|
-
var abi16 =
|
|
374574
|
-
var
|
|
375196
|
+
var abi16 = iStakingRewardsAdapterAbi;
|
|
375197
|
+
var StakingRewardsAdapterContract = class extends AbstractAdapterContract {
|
|
374575
375198
|
constructor(sdk, args) {
|
|
374576
375199
|
super(sdk, {
|
|
374577
375200
|
...args,
|
|
@@ -374579,14 +375202,23 @@ var UniswapV2AdapterContract = class extends AbstractAdapterContract {
|
|
|
374579
375202
|
});
|
|
374580
375203
|
}
|
|
374581
375204
|
};
|
|
374582
|
-
var abi17 =
|
|
374583
|
-
var
|
|
375205
|
+
var abi17 = uniswapV2AdapterAbi;
|
|
375206
|
+
var UniswapV2AdapterContract = class extends AbstractAdapterContract {
|
|
374584
375207
|
constructor(sdk, args) {
|
|
374585
375208
|
super(sdk, {
|
|
374586
375209
|
...args,
|
|
374587
375210
|
abi: abi17
|
|
374588
375211
|
});
|
|
374589
375212
|
}
|
|
375213
|
+
};
|
|
375214
|
+
var abi18 = uniswapV3AdapterAbi;
|
|
375215
|
+
var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
375216
|
+
constructor(sdk, args) {
|
|
375217
|
+
super(sdk, {
|
|
375218
|
+
...args,
|
|
375219
|
+
abi: abi18
|
|
375220
|
+
});
|
|
375221
|
+
}
|
|
374590
375222
|
parseFunctionParams(params) {
|
|
374591
375223
|
switch (params.functionName) {
|
|
374592
375224
|
case "exactInputSingle": {
|
|
@@ -374703,30 +375335,30 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
374703
375335
|
return result;
|
|
374704
375336
|
}
|
|
374705
375337
|
};
|
|
374706
|
-
var
|
|
375338
|
+
var abi19 = velodromeV2RouterAdapterAbi;
|
|
374707
375339
|
var VelodromeV2RouterAdapterContract = class extends AbstractAdapterContract {
|
|
374708
375340
|
constructor(sdk, args) {
|
|
374709
375341
|
super(sdk, {
|
|
374710
375342
|
...args,
|
|
374711
|
-
abi:
|
|
375343
|
+
abi: abi19
|
|
374712
375344
|
});
|
|
374713
375345
|
}
|
|
374714
375346
|
};
|
|
374715
|
-
var
|
|
375347
|
+
var abi20 = wstEthv1AdapterAbi;
|
|
374716
375348
|
var WstETHV1AdapterContract = class extends AbstractAdapterContract {
|
|
374717
375349
|
constructor(sdk, args) {
|
|
374718
375350
|
super(sdk, {
|
|
374719
375351
|
...args,
|
|
374720
|
-
abi:
|
|
375352
|
+
abi: abi20
|
|
374721
375353
|
});
|
|
374722
375354
|
}
|
|
374723
375355
|
};
|
|
374724
|
-
var
|
|
375356
|
+
var abi21 = yearnV2AdapterAbi;
|
|
374725
375357
|
var YearnV2RouterAdapterContract = class extends AbstractAdapterContract {
|
|
374726
375358
|
constructor(sdk, args) {
|
|
374727
375359
|
super(sdk, {
|
|
374728
375360
|
...args,
|
|
374729
|
-
abi:
|
|
375361
|
+
abi: abi21
|
|
374730
375362
|
});
|
|
374731
375363
|
}
|
|
374732
375364
|
};
|
|
@@ -374769,6 +375401,8 @@ function createAdapter(sdk, args) {
|
|
|
374769
375401
|
return new YearnV2RouterAdapterContract(sdk, args);
|
|
374770
375402
|
case "AD_MELLOW_LRT_VAULT":
|
|
374771
375403
|
return new MellowVaultAdapterContract(sdk, args);
|
|
375404
|
+
case "AD_MELLOW_ERC4626_VAULT":
|
|
375405
|
+
return new MellowERC4626VaultAdapterContract(sdk, args);
|
|
374772
375406
|
case "AD_PENDLE_ROUTER":
|
|
374773
375407
|
return new PendleRouterAdapterContract(sdk, args);
|
|
374774
375408
|
case "AD_DAI_USDS_EXCHANGE":
|
|
@@ -374781,7 +375415,7 @@ function createAdapter(sdk, args) {
|
|
|
374781
375415
|
);
|
|
374782
375416
|
}
|
|
374783
375417
|
}
|
|
374784
|
-
var
|
|
375418
|
+
var abi222 = creditConfiguratorV3Abi;
|
|
374785
375419
|
var CreditConfiguratorV300Contract = class extends BaseContract {
|
|
374786
375420
|
adapters = [];
|
|
374787
375421
|
isPaused = false;
|
|
@@ -374789,7 +375423,7 @@ var CreditConfiguratorV300Contract = class extends BaseContract {
|
|
|
374789
375423
|
super(sdk, {
|
|
374790
375424
|
...creditConfigurator.baseParams,
|
|
374791
375425
|
name: `CreditConfigurator(${creditManager.name})`,
|
|
374792
|
-
abi:
|
|
375426
|
+
abi: abi222
|
|
374793
375427
|
});
|
|
374794
375428
|
}
|
|
374795
375429
|
processLog(log2) {
|
|
@@ -374888,7 +375522,7 @@ var CreditConfiguratorV300Contract = class extends BaseContract {
|
|
|
374888
375522
|
}
|
|
374889
375523
|
}
|
|
374890
375524
|
};
|
|
374891
|
-
var
|
|
375525
|
+
var abi23 = iCreditConfiguratorV310Abi;
|
|
374892
375526
|
var CreditConfiguratorV310Contract = class extends BaseContract {
|
|
374893
375527
|
adapters = [];
|
|
374894
375528
|
isPaused = false;
|
|
@@ -374896,7 +375530,7 @@ var CreditConfiguratorV310Contract = class extends BaseContract {
|
|
|
374896
375530
|
super(sdk, {
|
|
374897
375531
|
...creditConfigurator.baseParams,
|
|
374898
375532
|
name: `CreditConfigurator(${creditManager.name})`,
|
|
374899
|
-
abi:
|
|
375533
|
+
abi: abi23
|
|
374900
375534
|
});
|
|
374901
375535
|
}
|
|
374902
375536
|
processLog(log2) {
|
|
@@ -374982,7 +375616,7 @@ var CreditConfiguratorV310Contract = class extends BaseContract {
|
|
|
374982
375616
|
}
|
|
374983
375617
|
}
|
|
374984
375618
|
};
|
|
374985
|
-
var
|
|
375619
|
+
var abi24 = [...creditFacadeV3Abi, ...iCreditFacadeV3MulticallAbi];
|
|
374986
375620
|
var CreditFacadeV300Contract = class extends BaseContract {
|
|
374987
375621
|
underlying;
|
|
374988
375622
|
constructor(sdk, { creditFacade, creditManager }) {
|
|
@@ -374990,7 +375624,7 @@ var CreditFacadeV300Contract = class extends BaseContract {
|
|
|
374990
375624
|
super(sdk, {
|
|
374991
375625
|
...baseParams,
|
|
374992
375626
|
name: `CreditFacadeV3(${creditManager.name})`,
|
|
374993
|
-
abi:
|
|
375627
|
+
abi: abi24
|
|
374994
375628
|
});
|
|
374995
375629
|
Object.assign(this, rest2);
|
|
374996
375630
|
this.underlying = creditManager.underlying;
|
|
@@ -375118,7 +375752,7 @@ var CreditFacadeV300Contract = class extends BaseContract {
|
|
|
375118
375752
|
}
|
|
375119
375753
|
}
|
|
375120
375754
|
};
|
|
375121
|
-
var
|
|
375755
|
+
var abi25 = [...iCreditFacadeV310Abi, ...iCreditFacadeV310MulticallAbi];
|
|
375122
375756
|
var CreditFacadeV310Contract = class extends BaseContract {
|
|
375123
375757
|
underlying;
|
|
375124
375758
|
constructor(sdk, { creditFacade, creditManager }) {
|
|
@@ -375126,7 +375760,7 @@ var CreditFacadeV310Contract = class extends BaseContract {
|
|
|
375126
375760
|
super(sdk, {
|
|
375127
375761
|
...baseParams,
|
|
375128
375762
|
name: `CreditFacadeV310(${creditManager.name})`,
|
|
375129
|
-
abi:
|
|
375763
|
+
abi: abi25
|
|
375130
375764
|
});
|
|
375131
375765
|
Object.assign(this, rest2);
|
|
375132
375766
|
this.underlying = creditManager.underlying;
|
|
@@ -375244,7 +375878,7 @@ var CreditFacadeV310Contract = class extends BaseContract {
|
|
|
375244
375878
|
}
|
|
375245
375879
|
}
|
|
375246
375880
|
};
|
|
375247
|
-
var
|
|
375881
|
+
var abi26 = creditManagerV3Abi;
|
|
375248
375882
|
var CreditManagerV300Contract = class extends BaseContract {
|
|
375249
375883
|
/**
|
|
375250
375884
|
* Mapping targetContract => adapter
|
|
@@ -375259,7 +375893,7 @@ var CreditManagerV300Contract = class extends BaseContract {
|
|
|
375259
375893
|
super(sdk, {
|
|
375260
375894
|
...baseParams,
|
|
375261
375895
|
name: `CreditManagerV300(${creditManager.name})`,
|
|
375262
|
-
abi:
|
|
375896
|
+
abi: abi26
|
|
375263
375897
|
});
|
|
375264
375898
|
Object.assign(this, rest2);
|
|
375265
375899
|
this.liquidationThresholds = new AddressMap(
|
|
@@ -375323,7 +375957,7 @@ var CreditManagerV300Contract = class extends BaseContract {
|
|
|
375323
375957
|
}
|
|
375324
375958
|
}
|
|
375325
375959
|
};
|
|
375326
|
-
var
|
|
375960
|
+
var abi27 = iCreditManagerV310Abi;
|
|
375327
375961
|
var CreditManagerV310Contract = class extends BaseContract {
|
|
375328
375962
|
/**
|
|
375329
375963
|
* Mapping targetContract => adapter
|
|
@@ -375338,7 +375972,7 @@ var CreditManagerV310Contract = class extends BaseContract {
|
|
|
375338
375972
|
super(sdk, {
|
|
375339
375973
|
...baseParams,
|
|
375340
375974
|
name: `CreditManagerV310(${creditManager.name})`,
|
|
375341
|
-
abi:
|
|
375975
|
+
abi: abi27
|
|
375342
375976
|
});
|
|
375343
375977
|
Object.assign(this, rest2);
|
|
375344
375978
|
this.liquidationThresholds = new AddressMap(
|
|
@@ -375728,9 +376362,9 @@ async function simulateMulticall(client, parameters) {
|
|
|
375728
376362
|
let currentChunk = 0;
|
|
375729
376363
|
let currentChunkSize = 0;
|
|
375730
376364
|
for (const contract of contracts2) {
|
|
375731
|
-
const { abi:
|
|
376365
|
+
const { abi: abi33, address, args, functionName } = contract;
|
|
375732
376366
|
try {
|
|
375733
|
-
const callData = encodeFunctionData({ abi:
|
|
376367
|
+
const callData = encodeFunctionData({ abi: abi33, args, functionName });
|
|
375734
376368
|
currentChunkSize += (callData.length - 2) / 2;
|
|
375735
376369
|
if (
|
|
375736
376370
|
// Check if batching is enabled.
|
|
@@ -375752,7 +376386,7 @@ async function simulateMulticall(client, parameters) {
|
|
|
375752
376386
|
];
|
|
375753
376387
|
} catch (err) {
|
|
375754
376388
|
const error = getContractError(err, {
|
|
375755
|
-
abi:
|
|
376389
|
+
abi: abi33,
|
|
375756
376390
|
address,
|
|
375757
376391
|
args,
|
|
375758
376392
|
docsPath: "/docs/contract/multicall",
|
|
@@ -375809,12 +376443,12 @@ async function simulateMulticall(client, parameters) {
|
|
|
375809
376443
|
for (let j = 0; j < aggregate3Result.length; j++) {
|
|
375810
376444
|
const { returnData, success } = aggregate3Result[j];
|
|
375811
376445
|
const { callData } = chunkedCalls[i][j];
|
|
375812
|
-
const { abi:
|
|
376446
|
+
const { abi: abi33, address, functionName, args } = contracts2[results.length];
|
|
375813
376447
|
try {
|
|
375814
376448
|
if (callData === "0x") throw new AbiDecodingZeroDataError();
|
|
375815
376449
|
if (!success) throw new RawContractError({ data: returnData });
|
|
375816
376450
|
const result2 = decodeFunctionResult({
|
|
375817
|
-
abi:
|
|
376451
|
+
abi: abi33,
|
|
375818
376452
|
args,
|
|
375819
376453
|
data: returnData,
|
|
375820
376454
|
functionName
|
|
@@ -375822,7 +376456,7 @@ async function simulateMulticall(client, parameters) {
|
|
|
375822
376456
|
results.push(allowFailure ? { result: result2, status: "success" } : result2);
|
|
375823
376457
|
} catch (err) {
|
|
375824
376458
|
const error = getContractError(err, {
|
|
375825
|
-
abi:
|
|
376459
|
+
abi: abi33,
|
|
375826
376460
|
address,
|
|
375827
376461
|
args,
|
|
375828
376462
|
docsPath: "/docs/contract/multicall",
|
|
@@ -375837,11 +376471,11 @@ async function simulateMulticall(client, parameters) {
|
|
|
375837
376471
|
throw new BaseError2("multicall results mismatch");
|
|
375838
376472
|
return results;
|
|
375839
376473
|
}
|
|
375840
|
-
var
|
|
376474
|
+
var abi28 = iMarketConfiguratorV310Abi;
|
|
375841
376475
|
var MarketConfiguratorContract = class extends BaseContract {
|
|
375842
376476
|
constructor(sdk, address) {
|
|
375843
376477
|
super(sdk, {
|
|
375844
|
-
abi:
|
|
376478
|
+
abi: abi28,
|
|
375845
376479
|
addr: address,
|
|
375846
376480
|
contractType: AP_MARKET_CONFIGURATOR,
|
|
375847
376481
|
version: 0
|
|
@@ -375860,7 +376494,7 @@ var MarketConfiguratorContract = class extends BaseContract {
|
|
|
375860
376494
|
}
|
|
375861
376495
|
}
|
|
375862
376496
|
};
|
|
375863
|
-
var
|
|
376497
|
+
var abi29 = poolV3Abi;
|
|
375864
376498
|
var PoolContract = class extends BaseContract {
|
|
375865
376499
|
creditManagerDebtParams;
|
|
375866
376500
|
constructor(sdk, data) {
|
|
@@ -375868,7 +376502,7 @@ var PoolContract = class extends BaseContract {
|
|
|
375868
376502
|
super(sdk, {
|
|
375869
376503
|
...data.baseParams,
|
|
375870
376504
|
name: `PoolV3(${data.name})`,
|
|
375871
|
-
abi:
|
|
376505
|
+
abi: abi29
|
|
375872
376506
|
});
|
|
375873
376507
|
Object.assign(this, rest2);
|
|
375874
376508
|
this.creditManagerDebtParams = new AddressMap(
|
|
@@ -377974,6 +378608,7 @@ var decimals = {
|
|
|
377974
378608
|
sUSDS: 18,
|
|
377975
378609
|
YieldETH: 18,
|
|
377976
378610
|
scrvUSD: 18,
|
|
378611
|
+
beraSTONE: 18,
|
|
377977
378612
|
rETH: 18,
|
|
377978
378613
|
rETH_f: 18,
|
|
377979
378614
|
stkUSDS: 18,
|
|
@@ -378648,6 +379283,14 @@ var normalTokens = {
|
|
|
378648
379283
|
/* NORMAL_TOKEN */
|
|
378649
379284
|
}
|
|
378650
379285
|
},
|
|
379286
|
+
beraSTONE: {
|
|
379287
|
+
name: "Berachain STONE",
|
|
379288
|
+
symbol: "beraSTONE",
|
|
379289
|
+
type: {
|
|
379290
|
+
AllNetworks: 1
|
|
379291
|
+
/* NORMAL_TOKEN */
|
|
379292
|
+
}
|
|
379293
|
+
},
|
|
378651
379294
|
frxETH: {
|
|
378652
379295
|
name: "Frax ETH",
|
|
378653
379296
|
symbol: "frxETH",
|
|
@@ -379275,6 +379918,7 @@ var tokenDataByNetwork = {
|
|
|
379275
379918
|
sUSDe: "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
|
|
379276
379919
|
sUSDS: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD",
|
|
379277
379920
|
scrvUSD: "0x0655977FEb2f289A4aB78af67BAB0d17aAb84367",
|
|
379921
|
+
beraSTONE: "0x97Ad75064b20fb2B2447feD4fa953bF7F007a706",
|
|
379278
379922
|
// AAVE
|
|
379279
379923
|
aUSDC: "0xBcca60bB61934080951369a648Fb03DF4F96263C",
|
|
379280
379924
|
aDAI: "0x028171bCA77440897B824Ca71D1c56caC55b68A3",
|
|
@@ -379569,6 +380213,7 @@ var tokenDataByNetwork = {
|
|
|
379569
380213
|
sUSDe: NOT_DEPLOYED,
|
|
379570
380214
|
sUSDS: NOT_DEPLOYED,
|
|
379571
380215
|
scrvUSD: NOT_DEPLOYED,
|
|
380216
|
+
beraSTONE: NOT_DEPLOYED,
|
|
379572
380217
|
// ZIRCUIT
|
|
379573
380218
|
zpufETH: NOT_DEPLOYED,
|
|
379574
380219
|
// SKY
|
|
@@ -379847,6 +380492,7 @@ var tokenDataByNetwork = {
|
|
|
379847
380492
|
sUSDe: NOT_DEPLOYED,
|
|
379848
380493
|
sUSDS: NOT_DEPLOYED,
|
|
379849
380494
|
scrvUSD: NOT_DEPLOYED,
|
|
380495
|
+
beraSTONE: NOT_DEPLOYED,
|
|
379850
380496
|
// ZIRCUIT
|
|
379851
380497
|
zpufETH: NOT_DEPLOYED,
|
|
379852
380498
|
// SKY
|
|
@@ -380127,6 +380773,7 @@ var tokenDataByNetwork = {
|
|
|
380127
380773
|
sUSDe: NOT_DEPLOYED,
|
|
380128
380774
|
sUSDS: NOT_DEPLOYED,
|
|
380129
380775
|
scrvUSD: NOT_DEPLOYED,
|
|
380776
|
+
beraSTONE: NOT_DEPLOYED,
|
|
380130
380777
|
GHO: NOT_DEPLOYED,
|
|
380131
380778
|
GHOUSDe: NOT_DEPLOYED,
|
|
380132
380779
|
GHO_USDT_USDC: NOT_DEPLOYED,
|
|
@@ -380232,6 +380879,15 @@ var tickerInfoTokensByNetwork = {
|
|
|
380232
380879
|
reserve: false
|
|
380233
380880
|
}
|
|
380234
380881
|
],
|
|
380882
|
+
beraSTONE: [
|
|
380883
|
+
{
|
|
380884
|
+
symbol: "beraSTONE/ETH",
|
|
380885
|
+
dataId: "beraETH_FUNDAMENTAL",
|
|
380886
|
+
address: "0x692072eE081c9Ded28d2CfD27513E578d895FD0d",
|
|
380887
|
+
priceFeed: "0xf12b7879713FA998B39b3C7C9c2631E40a0b9dfB",
|
|
380888
|
+
reserve: false
|
|
380889
|
+
}
|
|
380890
|
+
],
|
|
380235
380891
|
stkcvxcrvUSDUSDC: [
|
|
380236
380892
|
{
|
|
380237
380893
|
symbol: "crvUSD",
|
|
@@ -382757,7 +383413,7 @@ var MellowLRTPriceFeedContract = class extends AbstractLPPriceFeedContract {
|
|
|
382757
383413
|
return stack.totalValue * BigInt(1e18) / stack.totalSupply;
|
|
382758
383414
|
}
|
|
382759
383415
|
};
|
|
382760
|
-
var
|
|
383416
|
+
var abi30 = pendleTWAPPTPriceFeedAbi;
|
|
382761
383417
|
var PendleTWAPPTPriceFeed = class extends AbstractPriceFeedContract {
|
|
382762
383418
|
market;
|
|
382763
383419
|
sy;
|
|
@@ -382769,7 +383425,7 @@ var PendleTWAPPTPriceFeed = class extends AbstractPriceFeedContract {
|
|
|
382769
383425
|
super(sdk, {
|
|
382770
383426
|
...args,
|
|
382771
383427
|
name: "PendleTWAPPTPriceFeed",
|
|
382772
|
-
abi:
|
|
383428
|
+
abi: abi30
|
|
382773
383429
|
});
|
|
382774
383430
|
const decoded = decodeAbiParameters(
|
|
382775
383431
|
[
|
|
@@ -383146,7 +383802,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
383146
383802
|
if (existing?.loaded) {
|
|
383147
383803
|
return existing;
|
|
383148
383804
|
}
|
|
383149
|
-
const feed = this
|
|
383805
|
+
const feed = this.create(data);
|
|
383150
383806
|
this.#feeds.upsert(data.baseParams.addr, feed);
|
|
383151
383807
|
return feed;
|
|
383152
383808
|
}
|
|
@@ -383168,7 +383824,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
383168
383824
|
pools
|
|
383169
383825
|
);
|
|
383170
383826
|
for (const data of feedsData) {
|
|
383171
|
-
const feed = this
|
|
383827
|
+
const feed = this.create({ baseParams: data });
|
|
383172
383828
|
this.#feeds.upsert(feed.address, feed);
|
|
383173
383829
|
}
|
|
383174
383830
|
}
|
|
@@ -383183,7 +383839,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
383183
383839
|
marketConfigurators,
|
|
383184
383840
|
pools
|
|
383185
383841
|
);
|
|
383186
|
-
const feeds = feedsData.map((data) => this
|
|
383842
|
+
const feeds = feedsData.map((data) => this.create({ baseParams: data }));
|
|
383187
383843
|
const updates = await this.#generatePriceFeedsUpdateTxs(feeds);
|
|
383188
383844
|
return createRawTx(
|
|
383189
383845
|
getChainContractAddress({
|
|
@@ -383262,7 +383918,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
383262
383918
|
this.logger?.debug(`loaded ${result.length} updatable price feeds`);
|
|
383263
383919
|
return result;
|
|
383264
383920
|
}
|
|
383265
|
-
|
|
383921
|
+
create(data) {
|
|
383266
383922
|
const contractType = bytes32ToString(
|
|
383267
383923
|
data.baseParams.contractType
|
|
383268
383924
|
);
|
|
@@ -383409,6 +384065,16 @@ var PriceOracleBaseContract = class extends BaseContract {
|
|
|
383409
384065
|
);
|
|
383410
384066
|
return result;
|
|
383411
384067
|
}
|
|
384068
|
+
/**
|
|
384069
|
+
* Returns true if oracle's price feed tree contains given price feed
|
|
384070
|
+
* @param priceFeed
|
|
384071
|
+
* @returns
|
|
384072
|
+
*/
|
|
384073
|
+
usesPriceFeed(priceFeed) {
|
|
384074
|
+
return this.#priceFeedTree.some(
|
|
384075
|
+
(node) => node.baseParams.addr.toLowerCase() === priceFeed.toLowerCase()
|
|
384076
|
+
);
|
|
384077
|
+
}
|
|
383412
384078
|
/**
|
|
383413
384079
|
* Tries to convert amount of token into underlying of current market
|
|
383414
384080
|
* @param token
|
|
@@ -383861,7 +384527,16 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
383861
384527
|
return market;
|
|
383862
384528
|
}
|
|
383863
384529
|
}
|
|
383864
|
-
throw new Error(`cannot find price oracle ${address}`);
|
|
384530
|
+
throw new Error(`cannot find market for price oracle ${address}`);
|
|
384531
|
+
}
|
|
384532
|
+
findByPool(address) {
|
|
384533
|
+
const addr = address.toLowerCase();
|
|
384534
|
+
for (const market of this.markets) {
|
|
384535
|
+
if (market.pool.pool.address.toLowerCase() === addr) {
|
|
384536
|
+
return market;
|
|
384537
|
+
}
|
|
384538
|
+
}
|
|
384539
|
+
throw new Error(`cannot find market for pool ${address}`);
|
|
383865
384540
|
}
|
|
383866
384541
|
get marketsMap() {
|
|
383867
384542
|
return this.#markets;
|
|
@@ -385091,7 +385766,7 @@ var AbstractAddressProviderContract = class extends BaseContract {
|
|
|
385091
385766
|
};
|
|
385092
385767
|
}
|
|
385093
385768
|
};
|
|
385094
|
-
var
|
|
385769
|
+
var abi31 = iAddressProviderV3_1Abi;
|
|
385095
385770
|
var AddressProviderContractV3_1 = class extends AbstractAddressProviderContract {
|
|
385096
385771
|
constructor(sdk, address, addresses = {}) {
|
|
385097
385772
|
super(
|
|
@@ -385099,7 +385774,7 @@ var AddressProviderContractV3_1 = class extends AbstractAddressProviderContract
|
|
|
385099
385774
|
{
|
|
385100
385775
|
addr: address,
|
|
385101
385776
|
name: "AddressProviderV3_1",
|
|
385102
|
-
abi:
|
|
385777
|
+
abi: abi31,
|
|
385103
385778
|
version: 310
|
|
385104
385779
|
},
|
|
385105
385780
|
addresses
|
|
@@ -385149,7 +385824,7 @@ var AddressProviderContractV3_1 = class extends AbstractAddressProviderContract
|
|
|
385149
385824
|
}
|
|
385150
385825
|
}
|
|
385151
385826
|
};
|
|
385152
|
-
var
|
|
385827
|
+
var abi32 = iAddressProviderV3Abi;
|
|
385153
385828
|
var AddressProviderContractV3 = class extends AbstractAddressProviderContract {
|
|
385154
385829
|
constructor(sdk, address, addresses = {}) {
|
|
385155
385830
|
super(
|
|
@@ -385157,7 +385832,7 @@ var AddressProviderContractV3 = class extends AbstractAddressProviderContract {
|
|
|
385157
385832
|
{
|
|
385158
385833
|
addr: address,
|
|
385159
385834
|
name: "AddressProviderV3",
|
|
385160
|
-
abi:
|
|
385835
|
+
abi: abi32,
|
|
385161
385836
|
version: 300
|
|
385162
385837
|
},
|
|
385163
385838
|
addresses
|
|
@@ -402765,7 +403440,7 @@ function normalizeTransactions(batch) {
|
|
|
402765
403440
|
});
|
|
402766
403441
|
}
|
|
402767
403442
|
function normalizeDirectTx(t) {
|
|
402768
|
-
const
|
|
403443
|
+
const abi33 = [
|
|
402769
403444
|
{
|
|
402770
403445
|
type: "function",
|
|
402771
403446
|
outputs: [],
|
|
@@ -402787,10 +403462,10 @@ function normalizeDirectTx(t) {
|
|
|
402787
403462
|
return {
|
|
402788
403463
|
target: t.to,
|
|
402789
403464
|
value: t.value,
|
|
402790
|
-
signature: formatAbiItem2(
|
|
403465
|
+
signature: formatAbiItem2(abi33[0], { includeName: false }),
|
|
402791
403466
|
parameters,
|
|
402792
403467
|
data: encodeFunctionData({
|
|
402793
|
-
abi:
|
|
403468
|
+
abi: abi33,
|
|
402794
403469
|
functionName: t.contractMethod.name,
|
|
402795
403470
|
args: values
|
|
402796
403471
|
})
|
|
@@ -409901,149 +410576,6 @@ var AccountOpener = class extends SDKConstruct {
|
|
|
409901
410576
|
return quota / PERCENTAGE_FACTOR * PERCENTAGE_FACTOR;
|
|
409902
410577
|
}
|
|
409903
410578
|
};
|
|
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
410579
|
var iaclAbi2 = [
|
|
410048
410580
|
{
|
|
410049
410581
|
type: "function",
|
|
@@ -411419,6 +411951,149 @@ var iCreditManagerV3Abi2 = [
|
|
|
411419
411951
|
name: "SetCreditConfigurator"
|
|
411420
411952
|
}
|
|
411421
411953
|
];
|
|
411954
|
+
var SDKExample = class {
|
|
411955
|
+
#sdk;
|
|
411956
|
+
#logger;
|
|
411957
|
+
constructor(logger2) {
|
|
411958
|
+
this.#logger = logger2;
|
|
411959
|
+
}
|
|
411960
|
+
async run(opts) {
|
|
411961
|
+
const {
|
|
411962
|
+
addressProvider: ap,
|
|
411963
|
+
addressProviderJson,
|
|
411964
|
+
marketConfigurator: mc,
|
|
411965
|
+
marketConfiguratorJson,
|
|
411966
|
+
anvilUrl = "http://127.0.0.1:8545",
|
|
411967
|
+
outFile
|
|
411968
|
+
} = opts;
|
|
411969
|
+
const addressProvider = await this.#readConfigAddress(
|
|
411970
|
+
"addressProvider",
|
|
411971
|
+
ap,
|
|
411972
|
+
addressProviderJson
|
|
411973
|
+
);
|
|
411974
|
+
const marketConfigurator = await this.#readConfigAddress(
|
|
411975
|
+
"marketConfigurator",
|
|
411976
|
+
mc,
|
|
411977
|
+
marketConfiguratorJson
|
|
411978
|
+
);
|
|
411979
|
+
this.#sdk = await GearboxSDK.attach({
|
|
411980
|
+
rpcURLs: [anvilUrl],
|
|
411981
|
+
timeout: 48e4,
|
|
411982
|
+
addressProvider,
|
|
411983
|
+
logger: this.#logger,
|
|
411984
|
+
ignoreUpdateablePrices: true,
|
|
411985
|
+
marketConfigurators: [marketConfigurator]
|
|
411986
|
+
});
|
|
411987
|
+
await this.#safeMigrateFaucet(addressProvider);
|
|
411988
|
+
const puTx = await this.#sdk.priceFeeds.getUpdatePriceFeedsTx([
|
|
411989
|
+
marketConfigurator
|
|
411990
|
+
]);
|
|
411991
|
+
const updater = createWalletClient({
|
|
411992
|
+
account: privateKeyToAccount(
|
|
411993
|
+
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
|
|
411994
|
+
// well-known anvil private key
|
|
411995
|
+
),
|
|
411996
|
+
transport: http(anvilUrl)
|
|
411997
|
+
});
|
|
411998
|
+
const publicClient = createPublicClient({
|
|
411999
|
+
transport: http(anvilUrl)
|
|
412000
|
+
});
|
|
412001
|
+
const hash2 = await sendRawTx(updater, { tx: puTx });
|
|
412002
|
+
await publicClient.waitForTransactionReceipt({ hash: hash2 });
|
|
412003
|
+
await this.#sdk.marketRegister.loadMarkets([marketConfigurator], true);
|
|
412004
|
+
this.#logger?.info("attached sdk");
|
|
412005
|
+
if (outFile) {
|
|
412006
|
+
try {
|
|
412007
|
+
await writeFile2(
|
|
412008
|
+
outFile,
|
|
412009
|
+
json_stringify(this.#sdk.stateHuman()),
|
|
412010
|
+
"utf-8"
|
|
412011
|
+
);
|
|
412012
|
+
} catch (e) {
|
|
412013
|
+
this.#logger?.error(`failed to write to ${outFile}: ${e}`);
|
|
412014
|
+
}
|
|
412015
|
+
}
|
|
412016
|
+
}
|
|
412017
|
+
async #readConfigAddress(name, value, file) {
|
|
412018
|
+
let result = value;
|
|
412019
|
+
if (!result) {
|
|
412020
|
+
if (!file) {
|
|
412021
|
+
throw new Error(`${name} is not specified`);
|
|
412022
|
+
}
|
|
412023
|
+
this.#logger?.debug(`reading ${name} json ${file}`);
|
|
412024
|
+
const apFile = await readFile3(file, "utf-8").then(JSON.parse);
|
|
412025
|
+
result = apFile[name];
|
|
412026
|
+
}
|
|
412027
|
+
if (!result) {
|
|
412028
|
+
throw new Error(`${name} is not specified`);
|
|
412029
|
+
}
|
|
412030
|
+
if (!isAddress(result)) {
|
|
412031
|
+
throw new Error(`${name} is not a valid address: ${result}`);
|
|
412032
|
+
}
|
|
412033
|
+
this.#logger?.info(`using ${name} ${result}`);
|
|
412034
|
+
return result;
|
|
412035
|
+
}
|
|
412036
|
+
async #safeMigrateFaucet(addressProvider) {
|
|
412037
|
+
try {
|
|
412038
|
+
await this.#migrateFaucet(addressProvider);
|
|
412039
|
+
this.#logger?.info("faucet migrated successfully");
|
|
412040
|
+
} catch (e) {
|
|
412041
|
+
this.#logger?.error(`faucet migration failed: ${e}`);
|
|
412042
|
+
}
|
|
412043
|
+
}
|
|
412044
|
+
/**
|
|
412045
|
+
* Migrates faucet from address provider v3 to v3.1
|
|
412046
|
+
* @param addressProvider 3.1 address provider
|
|
412047
|
+
*/
|
|
412048
|
+
async #migrateFaucet(addressProvider) {
|
|
412049
|
+
const anvil = createAnvilClient({
|
|
412050
|
+
chain: this.sdk.provider.chain,
|
|
412051
|
+
transport: this.sdk.provider.transport
|
|
412052
|
+
});
|
|
412053
|
+
const [faucetAddr, owner] = await anvil.multicall({
|
|
412054
|
+
contracts: [
|
|
412055
|
+
{
|
|
412056
|
+
abi: iAddressProviderV3Abi,
|
|
412057
|
+
address: ADDRESS_PROVIDER[this.sdk.provider.networkType],
|
|
412058
|
+
functionName: "getAddressOrRevert",
|
|
412059
|
+
args: [stringToHex("FAUCET", { size: 32 }), 0n]
|
|
412060
|
+
},
|
|
412061
|
+
{
|
|
412062
|
+
abi: iAddressProviderV3_1Abi,
|
|
412063
|
+
address: addressProvider,
|
|
412064
|
+
functionName: "owner",
|
|
412065
|
+
args: []
|
|
412066
|
+
}
|
|
412067
|
+
],
|
|
412068
|
+
allowFailure: false
|
|
412069
|
+
});
|
|
412070
|
+
this.#logger?.debug(`faucet address: ${faucetAddr}, owner: ${owner}`);
|
|
412071
|
+
await anvil.impersonateAccount({ address: owner });
|
|
412072
|
+
await anvil.setBalance({
|
|
412073
|
+
address: owner,
|
|
412074
|
+
value: parseEther("100")
|
|
412075
|
+
});
|
|
412076
|
+
const hash2 = await anvil.writeContract({
|
|
412077
|
+
chain: anvil.chain,
|
|
412078
|
+
account: owner,
|
|
412079
|
+
address: addressProvider,
|
|
412080
|
+
abi: iAddressProviderV3_1Abi,
|
|
412081
|
+
functionName: "setAddress",
|
|
412082
|
+
args: [stringToHex("FAUCET", { size: 32 }), faucetAddr, true]
|
|
412083
|
+
});
|
|
412084
|
+
const receipt = await anvil.waitForTransactionReceipt({ hash: hash2 });
|
|
412085
|
+
await anvil.stopImpersonatingAccount({ address: owner });
|
|
412086
|
+
if (receipt.status === "reverted") {
|
|
412087
|
+
throw new Error("faucet migration reverted");
|
|
412088
|
+
}
|
|
412089
|
+
}
|
|
412090
|
+
get sdk() {
|
|
412091
|
+
if (!this.#sdk) {
|
|
412092
|
+
throw new Error("sdk is not attached");
|
|
412093
|
+
}
|
|
412094
|
+
return this.#sdk;
|
|
412095
|
+
}
|
|
412096
|
+
};
|
|
411422
412097
|
async function setLTZero(anvil, cm, logger2) {
|
|
411423
412098
|
const aclAddr = await anvil.readContract({
|
|
411424
412099
|
address: cm.creditConfigurator,
|
|
@@ -413118,15 +413793,15 @@ function resolveStructs2(abiParameters, structs, ancestors = /* @__PURE__ */ new
|
|
|
413118
413793
|
// ../../node_modules/abitype/dist/esm/human-readable/parseAbi.js
|
|
413119
413794
|
function parseAbi2(signatures) {
|
|
413120
413795
|
const structs = parseStructs2(signatures);
|
|
413121
|
-
const
|
|
413796
|
+
const abi33 = [];
|
|
413122
413797
|
const length = signatures.length;
|
|
413123
413798
|
for (let i = 0; i < length; i++) {
|
|
413124
413799
|
const signature = signatures[i];
|
|
413125
413800
|
if (isStructSignature2(signature))
|
|
413126
413801
|
continue;
|
|
413127
|
-
|
|
413802
|
+
abi33.push(parseSignature2(signature, structs));
|
|
413128
413803
|
}
|
|
413129
|
-
return
|
|
413804
|
+
return abi33;
|
|
413130
413805
|
}
|
|
413131
413806
|
|
|
413132
413807
|
// ../../packages/node/dist/tree/visitors/ContractsRegisterVisitor.js
|
|
@@ -414630,9 +415305,9 @@ var AbstractParser = class {
|
|
|
414630
415305
|
};
|
|
414631
415306
|
}
|
|
414632
415307
|
parseConstructor(address, encodedArgs) {
|
|
414633
|
-
for (const { abi:
|
|
415308
|
+
for (const { abi: abi33, comment } of this.constructorAbis) {
|
|
414634
415309
|
try {
|
|
414635
|
-
return this.#parseConstructor(address, encodedArgs,
|
|
415310
|
+
return this.#parseConstructor(address, encodedArgs, abi33, comment);
|
|
414636
415311
|
} catch (e) {
|
|
414637
415312
|
this.logger.warn(`constructor ${comment} of ${address} failed to parse args: ${e}`);
|
|
414638
415313
|
}
|
|
@@ -415034,6 +415709,17 @@ var LidoWstethV1AdapterParser = class extends AbstractParser {
|
|
|
415034
415709
|
}
|
|
415035
415710
|
};
|
|
415036
415711
|
|
|
415712
|
+
// ../../packages/node/dist/parsers/adapters/MellowErc4626AdapterParser.js
|
|
415713
|
+
var MellowErc4626AdapterParser = class extends AbstractParser {
|
|
415714
|
+
constructor(contractType) {
|
|
415715
|
+
super(contractType, "constructor(address _creditManager, address _vault)");
|
|
415716
|
+
this._abi = ierc4626AdapterAbi;
|
|
415717
|
+
this.parameterParsers = {
|
|
415718
|
+
constructor: [parseAddress(), parseAddress()]
|
|
415719
|
+
};
|
|
415720
|
+
}
|
|
415721
|
+
};
|
|
415722
|
+
|
|
415037
415723
|
// ../../packages/node/dist/parsers/adapters/MellowVaultAdapterParser.js
|
|
415038
415724
|
var MellowVaultAdapterParser = class extends AbstractParser {
|
|
415039
415725
|
constructor(contractType) {
|
|
@@ -415218,6 +415904,8 @@ function adapterParser(contract, version5, contractName) {
|
|
|
415218
415904
|
return new PendlerRouterAdapterParser(contract);
|
|
415219
415905
|
case "ADAPTER_MELLOW_LRT_VAULT":
|
|
415220
415906
|
return new MellowVaultAdapterParser(contract);
|
|
415907
|
+
case "ADAPTER_MELLOW_ERC4626_VAULT":
|
|
415908
|
+
return new MellowErc4626AdapterParser(contract);
|
|
415221
415909
|
}
|
|
415222
415910
|
}
|
|
415223
415911
|
|
|
@@ -418441,7 +419129,7 @@ function getRenderer(opts) {
|
|
|
418441
419129
|
var package_default = {
|
|
418442
419130
|
name: "@gearbox-protocol/deploy-tools",
|
|
418443
419131
|
description: "Gearbox deploy tools",
|
|
418444
|
-
version: "5.5.
|
|
419132
|
+
version: "5.5.2",
|
|
418445
419133
|
homepage: "https://gearbox.fi",
|
|
418446
419134
|
keywords: [
|
|
418447
419135
|
"gearbox"
|
|
@@ -418484,7 +419172,7 @@ var package_default = {
|
|
|
418484
419172
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
418485
419173
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
418486
419174
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
418487
|
-
"@gearbox-protocol/sdk": "^3.0.0-vfour.
|
|
419175
|
+
"@gearbox-protocol/sdk": "^3.0.0-vfour.187",
|
|
418488
419176
|
"@gearbox-protocol/sdk-gov": "^2.33.2",
|
|
418489
419177
|
"@types/lodash-es": "^4.17.12",
|
|
418490
419178
|
"@types/node": "^22.10.6",
|
|
@@ -418506,7 +419194,7 @@ var package_default = {
|
|
|
418506
419194
|
"react-dom": "^19.0.0",
|
|
418507
419195
|
table: "^6.9.0",
|
|
418508
419196
|
tsx: "^4.19.2",
|
|
418509
|
-
viem: "^2.22.
|
|
419197
|
+
viem: "^2.22.11",
|
|
418510
419198
|
yaml: "^2.7.0",
|
|
418511
419199
|
zod: "^3.24.1"
|
|
418512
419200
|
},
|