anymal-protocol 1.0.112 → 1.0.114
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 +18 -11
- package/dist/index.mjs +18 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1294,7 +1294,7 @@ function useMintAnymalNFT() {
|
|
|
1294
1294
|
data: callData
|
|
1295
1295
|
}
|
|
1296
1296
|
],
|
|
1297
|
-
maxPriorityFeePerGas: (0, import_viem.parseGwei)("0.
|
|
1297
|
+
maxPriorityFeePerGas: (0, import_viem.parseGwei)("0.003")
|
|
1298
1298
|
});
|
|
1299
1299
|
await bundlerClient.waitForUserOperationReceipt({
|
|
1300
1300
|
hash: userOpHash,
|
|
@@ -1722,7 +1722,7 @@ function useProcessPartialKibblePayment() {
|
|
|
1722
1722
|
data: callData
|
|
1723
1723
|
}
|
|
1724
1724
|
],
|
|
1725
|
-
maxPriorityFeePerGas: (0, import_viem2.parseGwei)("0.
|
|
1725
|
+
maxPriorityFeePerGas: (0, import_viem2.parseGwei)("0.003")
|
|
1726
1726
|
});
|
|
1727
1727
|
const receipt = await bundlerClient.waitForUserOperationReceipt({
|
|
1728
1728
|
hash: userOpHash,
|
|
@@ -1767,7 +1767,7 @@ function useApproveKibbleToken() {
|
|
|
1767
1767
|
data: callData
|
|
1768
1768
|
}
|
|
1769
1769
|
],
|
|
1770
|
-
maxPriorityFeePerGas: (0, import_viem3.parseGwei)("0.
|
|
1770
|
+
maxPriorityFeePerGas: (0, import_viem3.parseGwei)("0.003")
|
|
1771
1771
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1772
1772
|
});
|
|
1773
1773
|
await bundlerClient.waitForUserOperationReceipt({
|
|
@@ -1828,12 +1828,14 @@ function useCreateOrganizationBase() {
|
|
|
1828
1828
|
data: callData
|
|
1829
1829
|
}
|
|
1830
1830
|
],
|
|
1831
|
-
maxPriorityFeePerGas: (0, import_viem4.parseGwei)("0.
|
|
1831
|
+
maxPriorityFeePerGas: (0, import_viem4.parseGwei)("0.003")
|
|
1832
1832
|
// Low priority fee
|
|
1833
1833
|
// maxFeePerGas: parseGwei("0.15"), // Max fee cap -- keeps rising at random
|
|
1834
1834
|
});
|
|
1835
1835
|
const txReceipt = await bundlerClient.waitForUserOperationReceipt({
|
|
1836
|
-
hash: userOpHash
|
|
1836
|
+
hash: userOpHash,
|
|
1837
|
+
timeout: 3e4,
|
|
1838
|
+
retryCount: 10
|
|
1837
1839
|
});
|
|
1838
1840
|
if (!txReceipt.success) {
|
|
1839
1841
|
return {
|
|
@@ -1910,14 +1912,19 @@ function useApproveOrgPartialPayment() {
|
|
|
1910
1912
|
data: executeApproveCalldata
|
|
1911
1913
|
}
|
|
1912
1914
|
],
|
|
1913
|
-
maxPriorityFeePerGas: (0, import_viem5.parseGwei)("0.
|
|
1915
|
+
maxPriorityFeePerGas: (0, import_viem5.parseGwei)("0.003")
|
|
1914
1916
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1915
1917
|
});
|
|
1916
|
-
await bundlerClient.waitForUserOperationReceipt({
|
|
1918
|
+
await bundlerClient.waitForUserOperationReceipt({
|
|
1919
|
+
hash: userOpApproveHash
|
|
1920
|
+
});
|
|
1917
1921
|
return { success: true, message: "Approval processed successfully." };
|
|
1918
1922
|
} catch (error) {
|
|
1919
1923
|
const errorMessage = error instanceof Error ? error.message : "An unknown error occurred.";
|
|
1920
|
-
return {
|
|
1924
|
+
return {
|
|
1925
|
+
success: false,
|
|
1926
|
+
message: `Error processing approval: ${errorMessage}`
|
|
1927
|
+
};
|
|
1921
1928
|
}
|
|
1922
1929
|
},
|
|
1923
1930
|
[]
|
|
@@ -1964,7 +1971,7 @@ function useProcessOrgPartialKibblePayment() {
|
|
|
1964
1971
|
data: executePartialPayCalldata
|
|
1965
1972
|
}
|
|
1966
1973
|
],
|
|
1967
|
-
maxPriorityFeePerGas: (0, import_viem6.parseGwei)("0.
|
|
1974
|
+
maxPriorityFeePerGas: (0, import_viem6.parseGwei)("0.003")
|
|
1968
1975
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1969
1976
|
});
|
|
1970
1977
|
const receipt = await bundlerClient.waitForUserOperationReceipt({
|
|
@@ -2427,7 +2434,7 @@ function useClaimActionReward() {
|
|
|
2427
2434
|
data: callData
|
|
2428
2435
|
}
|
|
2429
2436
|
],
|
|
2430
|
-
maxPriorityFeePerGas: (0, import_viem9.parseGwei)("0.
|
|
2437
|
+
maxPriorityFeePerGas: (0, import_viem9.parseGwei)("0.003")
|
|
2431
2438
|
});
|
|
2432
2439
|
await bundlerClient.waitForUserOperationReceipt({
|
|
2433
2440
|
hash: userOpHash,
|
|
@@ -2470,7 +2477,7 @@ function useClaimOrgActionReward() {
|
|
|
2470
2477
|
data: executeClaimCalldata
|
|
2471
2478
|
}
|
|
2472
2479
|
],
|
|
2473
|
-
maxPriorityFeePerGas: (0, import_viem10.parseGwei)("0.
|
|
2480
|
+
maxPriorityFeePerGas: (0, import_viem10.parseGwei)("0.003")
|
|
2474
2481
|
});
|
|
2475
2482
|
await bundlerClient.waitForUserOperationReceipt({
|
|
2476
2483
|
hash: userOpHash,
|
package/dist/index.mjs
CHANGED
|
@@ -1231,7 +1231,7 @@ function useMintAnymalNFT() {
|
|
|
1231
1231
|
data: callData
|
|
1232
1232
|
}
|
|
1233
1233
|
],
|
|
1234
|
-
maxPriorityFeePerGas: parseGwei("0.
|
|
1234
|
+
maxPriorityFeePerGas: parseGwei("0.003")
|
|
1235
1235
|
});
|
|
1236
1236
|
await bundlerClient.waitForUserOperationReceipt({
|
|
1237
1237
|
hash: userOpHash,
|
|
@@ -1659,7 +1659,7 @@ function useProcessPartialKibblePayment() {
|
|
|
1659
1659
|
data: callData
|
|
1660
1660
|
}
|
|
1661
1661
|
],
|
|
1662
|
-
maxPriorityFeePerGas: parseGwei2("0.
|
|
1662
|
+
maxPriorityFeePerGas: parseGwei2("0.003")
|
|
1663
1663
|
});
|
|
1664
1664
|
const receipt = await bundlerClient.waitForUserOperationReceipt({
|
|
1665
1665
|
hash: userOpHash,
|
|
@@ -1704,7 +1704,7 @@ function useApproveKibbleToken() {
|
|
|
1704
1704
|
data: callData
|
|
1705
1705
|
}
|
|
1706
1706
|
],
|
|
1707
|
-
maxPriorityFeePerGas: parseGwei3("0.
|
|
1707
|
+
maxPriorityFeePerGas: parseGwei3("0.003")
|
|
1708
1708
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1709
1709
|
});
|
|
1710
1710
|
await bundlerClient.waitForUserOperationReceipt({
|
|
@@ -1765,12 +1765,14 @@ function useCreateOrganizationBase() {
|
|
|
1765
1765
|
data: callData
|
|
1766
1766
|
}
|
|
1767
1767
|
],
|
|
1768
|
-
maxPriorityFeePerGas: parseGwei4("0.
|
|
1768
|
+
maxPriorityFeePerGas: parseGwei4("0.003")
|
|
1769
1769
|
// Low priority fee
|
|
1770
1770
|
// maxFeePerGas: parseGwei("0.15"), // Max fee cap -- keeps rising at random
|
|
1771
1771
|
});
|
|
1772
1772
|
const txReceipt = await bundlerClient.waitForUserOperationReceipt({
|
|
1773
|
-
hash: userOpHash
|
|
1773
|
+
hash: userOpHash,
|
|
1774
|
+
timeout: 3e4,
|
|
1775
|
+
retryCount: 10
|
|
1774
1776
|
});
|
|
1775
1777
|
if (!txReceipt.success) {
|
|
1776
1778
|
return {
|
|
@@ -1847,14 +1849,19 @@ function useApproveOrgPartialPayment() {
|
|
|
1847
1849
|
data: executeApproveCalldata
|
|
1848
1850
|
}
|
|
1849
1851
|
],
|
|
1850
|
-
maxPriorityFeePerGas: parseGwei5("0.
|
|
1852
|
+
maxPriorityFeePerGas: parseGwei5("0.003")
|
|
1851
1853
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1852
1854
|
});
|
|
1853
|
-
await bundlerClient.waitForUserOperationReceipt({
|
|
1855
|
+
await bundlerClient.waitForUserOperationReceipt({
|
|
1856
|
+
hash: userOpApproveHash
|
|
1857
|
+
});
|
|
1854
1858
|
return { success: true, message: "Approval processed successfully." };
|
|
1855
1859
|
} catch (error) {
|
|
1856
1860
|
const errorMessage = error instanceof Error ? error.message : "An unknown error occurred.";
|
|
1857
|
-
return {
|
|
1861
|
+
return {
|
|
1862
|
+
success: false,
|
|
1863
|
+
message: `Error processing approval: ${errorMessage}`
|
|
1864
|
+
};
|
|
1858
1865
|
}
|
|
1859
1866
|
},
|
|
1860
1867
|
[]
|
|
@@ -1901,7 +1908,7 @@ function useProcessOrgPartialKibblePayment() {
|
|
|
1901
1908
|
data: executePartialPayCalldata
|
|
1902
1909
|
}
|
|
1903
1910
|
],
|
|
1904
|
-
maxPriorityFeePerGas: parseGwei6("0.
|
|
1911
|
+
maxPriorityFeePerGas: parseGwei6("0.003")
|
|
1905
1912
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1906
1913
|
});
|
|
1907
1914
|
const receipt = await bundlerClient.waitForUserOperationReceipt({
|
|
@@ -2284,7 +2291,7 @@ function useClaimActionReward() {
|
|
|
2284
2291
|
data: callData
|
|
2285
2292
|
}
|
|
2286
2293
|
],
|
|
2287
|
-
maxPriorityFeePerGas: parseGwei7("0.
|
|
2294
|
+
maxPriorityFeePerGas: parseGwei7("0.003")
|
|
2288
2295
|
});
|
|
2289
2296
|
await bundlerClient.waitForUserOperationReceipt({
|
|
2290
2297
|
hash: userOpHash,
|
|
@@ -2327,7 +2334,7 @@ function useClaimOrgActionReward() {
|
|
|
2327
2334
|
data: executeClaimCalldata
|
|
2328
2335
|
}
|
|
2329
2336
|
],
|
|
2330
|
-
maxPriorityFeePerGas: parseGwei8("0.
|
|
2337
|
+
maxPriorityFeePerGas: parseGwei8("0.003")
|
|
2331
2338
|
});
|
|
2332
2339
|
await bundlerClient.waitForUserOperationReceipt({
|
|
2333
2340
|
hash: userOpHash,
|
package/package.json
CHANGED