omnipin 2.0.1 → 2.0.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.js +26 -20
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -11226,13 +11226,26 @@ class TipAboveFeeCapError extends BaseError {
|
|
|
11226
11226
|
});
|
|
11227
11227
|
}
|
|
11228
11228
|
}
|
|
11229
|
-
let serializedType = '0x02', TxEnvelopeEip1559_type = 'eip1559',
|
|
11229
|
+
let serializedType = '0x02', TxEnvelopeEip1559_type = 'eip1559', estimateGas = async ({ provider, to, data, from, value = '0x0' })=>toBigInt(await provider.request({
|
|
11230
|
+
method: 'eth_estimateGas',
|
|
11231
|
+
params: [
|
|
11232
|
+
{
|
|
11233
|
+
from,
|
|
11234
|
+
to,
|
|
11235
|
+
data,
|
|
11236
|
+
value,
|
|
11237
|
+
gas: 30000000n
|
|
11238
|
+
},
|
|
11239
|
+
'latest'
|
|
11240
|
+
]
|
|
11241
|
+
})), simulateTransaction = async ({ provider, to, data, from })=>provider.request({
|
|
11230
11242
|
method: 'eth_call',
|
|
11231
11243
|
params: [
|
|
11232
11244
|
{
|
|
11233
11245
|
to,
|
|
11234
11246
|
data,
|
|
11235
|
-
from
|
|
11247
|
+
from,
|
|
11248
|
+
gas: 30000000n
|
|
11236
11249
|
},
|
|
11237
11250
|
'latest'
|
|
11238
11251
|
]
|
|
@@ -11248,18 +11261,12 @@ let serializedType = '0x02', TxEnvelopeEip1559_type = 'eip1559', simulateTransac
|
|
|
11248
11261
|
90
|
|
11249
11262
|
]
|
|
11250
11263
|
]
|
|
11251
|
-
}), estimatedGas =
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
data,
|
|
11258
|
-
value: '0x0'
|
|
11259
|
-
},
|
|
11260
|
-
'latest'
|
|
11261
|
-
]
|
|
11262
|
-
}));
|
|
11264
|
+
}), estimatedGas = await estimateGas({
|
|
11265
|
+
provider,
|
|
11266
|
+
from,
|
|
11267
|
+
to,
|
|
11268
|
+
data
|
|
11269
|
+
});
|
|
11263
11270
|
logger.info(`Estimated gas: ${estimatedGas}`);
|
|
11264
11271
|
let nonce = toBigInt(await provider.request({
|
|
11265
11272
|
method: 'eth_getTransactionCount',
|
|
@@ -11473,7 +11480,8 @@ let serializedType = '0x02', TxEnvelopeEip1559_type = 'eip1559', simulateTransac
|
|
|
11473
11480
|
data: AbiFunction_encodeData(multicall_abi, [
|
|
11474
11481
|
calls
|
|
11475
11482
|
]),
|
|
11476
|
-
to: chain.contracts.multicall3.address
|
|
11483
|
+
to: chain.contracts.multicall3.address,
|
|
11484
|
+
gas: 30000000n
|
|
11477
11485
|
},
|
|
11478
11486
|
'latest'
|
|
11479
11487
|
]
|
|
@@ -17264,11 +17272,9 @@ let cbor_encodeOptions = {
|
|
|
17264
17272
|
float64: !0,
|
|
17265
17273
|
typeEncoders: {
|
|
17266
17274
|
Object: function(obj) {
|
|
17267
|
-
if (obj.asCID !== obj && obj['/'] !== obj.bytes) return null;
|
|
17268
|
-
let
|
|
17269
|
-
|
|
17270
|
-
let bytes = new Uint8Array(cid.bytes.byteLength + 1);
|
|
17271
|
-
return bytes.set(cid.bytes, 1), [
|
|
17275
|
+
if (obj.asCID !== obj && obj['/'] !== obj.bytes || !(obj.bytes instanceof Uint8Array)) return null;
|
|
17276
|
+
let bytes = new Uint8Array(obj.bytes.byteLength + 1);
|
|
17277
|
+
return bytes.set(obj.bytes, 1), [
|
|
17272
17278
|
new Token(Type.tag, 42),
|
|
17273
17279
|
new Token(Type.bytes, bytes)
|
|
17274
17280
|
];
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnipin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"author": "v1rtl <hi@v1rtl.site>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/omnipin/omnipin.git"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@biomejs/biome": "^2.3.
|
|
10
|
+
"@biomejs/biome": "^2.3.11",
|
|
11
11
|
"@ipld/car": "^5.4.2",
|
|
12
12
|
"@ipld/dag-ucan": "^3.4.5",
|
|
13
13
|
"@rslib/core": "^0.19.1",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"cborg": "^4.3.2",
|
|
25
25
|
"esbuild": "^0.27.2",
|
|
26
26
|
"ipfs-unixfs": "^12.0.0",
|
|
27
|
-
"ipfs-unixfs-importer": "^16.0.
|
|
27
|
+
"ipfs-unixfs-importer": "^16.0.2",
|
|
28
28
|
"multiformats": "13.4.2",
|
|
29
29
|
"nanotar": "^0.2.0",
|
|
30
30
|
"ox": "^0.11.3",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
],
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"overrides": {
|
|
58
|
-
"@multiformats/murmur3": "npm:@omnipin/multiformats-murmur3@2.2.0"
|
|
58
|
+
"@multiformats/murmur3": "npm:@omnipin/multiformats-murmur3@2.2.0",
|
|
59
|
+
"multiformats": "13.4.2"
|
|
59
60
|
},
|
|
60
61
|
"release": {
|
|
61
62
|
"branches": [
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"size-limit": [
|
|
73
74
|
{
|
|
74
75
|
"path": "dist/index.js",
|
|
75
|
-
"limit": "
|
|
76
|
+
"limit": "1MB",
|
|
76
77
|
"brotli": false
|
|
77
78
|
}
|
|
78
79
|
],
|