evm-contracts-tools 0.0.87 → 0.0.88
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/lib/evm-contract-call-dynamic +32 -14
- package/package.json +11 -11
|
@@ -633,6 +633,9 @@ async function
|
|
|
633
633
|
_price_gas =
|
|
634
634
|
0;
|
|
635
635
|
}
|
|
636
|
+
else if ( _price_gas_type === "number" ) {
|
|
637
|
+
true;
|
|
638
|
+
}
|
|
636
639
|
else if ( _price_gas_type === "string" ) {
|
|
637
640
|
if ( 0 < _price_gas.length ) {
|
|
638
641
|
const
|
|
@@ -1221,8 +1224,9 @@ async function
|
|
|
1221
1224
|
}
|
|
1222
1225
|
// An hardcoded gas limit parameter.
|
|
1223
1226
|
_gas_limit =
|
|
1224
|
-
|
|
1225
|
-
|
|
1227
|
+
10000000
|
|
1228
|
+
// Math.floor(
|
|
1229
|
+
// 15803479 * 12 / 10);
|
|
1226
1230
|
// 17000000;
|
|
1227
1231
|
// Setting as gas limit double
|
|
1228
1232
|
// of how much you wanna spend.
|
|
@@ -1392,6 +1396,8 @@ async function
|
|
|
1392
1396
|
throw _msg;
|
|
1393
1397
|
}
|
|
1394
1398
|
else {
|
|
1399
|
+
_echo2(
|
|
1400
|
+
_error);
|
|
1395
1401
|
throw _error;
|
|
1396
1402
|
}
|
|
1397
1403
|
}
|
|
@@ -1400,14 +1406,15 @@ async function
|
|
|
1400
1406
|
|
|
1401
1407
|
async function
|
|
1402
1408
|
_call_price_gas_auto(
|
|
1409
|
+
_retries_max,
|
|
1403
1410
|
_measure_unit,
|
|
1404
1411
|
_msg_value,
|
|
1405
1412
|
_method,
|
|
1406
|
-
_method_args
|
|
1413
|
+
_method_args,
|
|
1414
|
+
_tx) {
|
|
1407
1415
|
let
|
|
1408
1416
|
_amount,
|
|
1409
|
-
_msg
|
|
1410
|
-
_tx;
|
|
1417
|
+
_msg;
|
|
1411
1418
|
const
|
|
1412
1419
|
_send_opts =
|
|
1413
1420
|
{};
|
|
@@ -1457,13 +1464,30 @@ async function
|
|
|
1457
1464
|
_error) {
|
|
1458
1465
|
_msg =
|
|
1459
1466
|
"Error sending transaction to the " +
|
|
1460
|
-
"network using the 'send' method" +
|
|
1467
|
+
"network using the 'send' method " +
|
|
1461
1468
|
"of the Ethers method object.";
|
|
1462
1469
|
_msg_error(
|
|
1463
1470
|
_msg,
|
|
1464
1471
|
0);
|
|
1465
|
-
|
|
1466
|
-
|
|
1472
|
+
const
|
|
1473
|
+
_code =
|
|
1474
|
+
_error[
|
|
1475
|
+
"info"][
|
|
1476
|
+
"error"][
|
|
1477
|
+
"code"];
|
|
1478
|
+
if ( _code === -32000 ) {
|
|
1479
|
+
_msg =
|
|
1480
|
+
_error[
|
|
1481
|
+
"info"][
|
|
1482
|
+
"error"][
|
|
1483
|
+
"message"];
|
|
1484
|
+
throw _msg;
|
|
1485
|
+
}
|
|
1486
|
+
else {
|
|
1487
|
+
_echo2(
|
|
1488
|
+
_error);
|
|
1489
|
+
throw _error;
|
|
1490
|
+
}
|
|
1467
1491
|
throw _error;
|
|
1468
1492
|
}
|
|
1469
1493
|
return _tx;
|
|
@@ -1771,12 +1795,6 @@ async function
|
|
|
1771
1795
|
];
|
|
1772
1796
|
}
|
|
1773
1797
|
|
|
1774
|
-
function
|
|
1775
|
-
_receipt_cost_get(
|
|
1776
|
-
_receipt) {
|
|
1777
|
-
true;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
1798
|
function
|
|
1781
1799
|
_retries_max_check(
|
|
1782
1800
|
_retries_max) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{ "name": "evm-contracts-tools",
|
|
2
2
|
"version":
|
|
3
|
-
"0.0.
|
|
3
|
+
"0.0.88",
|
|
4
4
|
"description":
|
|
5
5
|
"JavaScript programs and libraries to enable seamless development of native computer applications designed to interact with Ethereum Virtual Machine-compatible networks.",
|
|
6
6
|
"funding": {
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"crash-js-webpack":
|
|
103
|
-
"^0.0.
|
|
103
|
+
"^0.0.93",
|
|
104
104
|
"brace-expansion":
|
|
105
105
|
"^5.0.9",
|
|
106
106
|
"eslint":
|
|
107
|
-
"^10.
|
|
107
|
+
"^10.15.0",
|
|
108
108
|
"@eslint/js":
|
|
109
109
|
"^10.0.1",
|
|
110
110
|
"fast-uri":
|
|
@@ -120,17 +120,17 @@
|
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
122
|
"libcrash-js":
|
|
123
|
-
"npm:crash-js@^
|
|
123
|
+
"npm:crash-js@^1000000000000031.1000000000000001.1000000000000001",
|
|
124
124
|
"ethers":
|
|
125
125
|
"^6.13.2",
|
|
126
126
|
"evm-chains-info":
|
|
127
|
-
"^0.0.
|
|
127
|
+
"^0.0.43",
|
|
128
128
|
"evm-transactions-tools":
|
|
129
129
|
"^0.1.10000000000001",
|
|
130
130
|
"evm-wallet":
|
|
131
|
-
"npm:evm-wallet.js@^0.0.
|
|
131
|
+
"npm:evm-wallet.js@^0.0.108",
|
|
132
132
|
"libevm":
|
|
133
|
-
"^0.0.
|
|
133
|
+
"^0.0.58",
|
|
134
134
|
"ws":
|
|
135
135
|
"^8.21.0",
|
|
136
136
|
"yargs":
|
|
@@ -138,15 +138,15 @@
|
|
|
138
138
|
},
|
|
139
139
|
"overrides": {
|
|
140
140
|
"libcrash-js":
|
|
141
|
-
"npm:crash-js@^
|
|
141
|
+
"npm:crash-js@^1000000000000031.1000000000000001.1000000000000001",
|
|
142
142
|
"evm-contracts-tools":
|
|
143
143
|
"./evm-contracts-tools",
|
|
144
144
|
"evm-wallet":
|
|
145
|
-
"npm:evm-wallet.js@^0.0.
|
|
145
|
+
"npm:evm-wallet.js@^0.0.108",
|
|
146
146
|
"evm-wallet.js":
|
|
147
|
-
"npm:evm-wallet.js@^0.0.
|
|
147
|
+
"npm:evm-wallet.js@^0.0.108",
|
|
148
148
|
"libevm":
|
|
149
|
-
"^0.0.
|
|
149
|
+
"^0.0.58"
|
|
150
150
|
},
|
|
151
151
|
"type":
|
|
152
152
|
"module",
|