anymal-protocol 1.0.113 → 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 +15 -10
- package/dist/index.mjs +15 -10
- 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,7 +1828,7 @@ 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
|
});
|
|
@@ -1912,14 +1912,19 @@ function useApproveOrgPartialPayment() {
|
|
|
1912
1912
|
data: executeApproveCalldata
|
|
1913
1913
|
}
|
|
1914
1914
|
],
|
|
1915
|
-
maxPriorityFeePerGas: (0, import_viem5.parseGwei)("0.
|
|
1915
|
+
maxPriorityFeePerGas: (0, import_viem5.parseGwei)("0.003")
|
|
1916
1916
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1917
1917
|
});
|
|
1918
|
-
await bundlerClient.waitForUserOperationReceipt({
|
|
1918
|
+
await bundlerClient.waitForUserOperationReceipt({
|
|
1919
|
+
hash: userOpApproveHash
|
|
1920
|
+
});
|
|
1919
1921
|
return { success: true, message: "Approval processed successfully." };
|
|
1920
1922
|
} catch (error) {
|
|
1921
1923
|
const errorMessage = error instanceof Error ? error.message : "An unknown error occurred.";
|
|
1922
|
-
return {
|
|
1924
|
+
return {
|
|
1925
|
+
success: false,
|
|
1926
|
+
message: `Error processing approval: ${errorMessage}`
|
|
1927
|
+
};
|
|
1923
1928
|
}
|
|
1924
1929
|
},
|
|
1925
1930
|
[]
|
|
@@ -1966,7 +1971,7 @@ function useProcessOrgPartialKibblePayment() {
|
|
|
1966
1971
|
data: executePartialPayCalldata
|
|
1967
1972
|
}
|
|
1968
1973
|
],
|
|
1969
|
-
maxPriorityFeePerGas: (0, import_viem6.parseGwei)("0.
|
|
1974
|
+
maxPriorityFeePerGas: (0, import_viem6.parseGwei)("0.003")
|
|
1970
1975
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1971
1976
|
});
|
|
1972
1977
|
const receipt = await bundlerClient.waitForUserOperationReceipt({
|
|
@@ -2429,7 +2434,7 @@ function useClaimActionReward() {
|
|
|
2429
2434
|
data: callData
|
|
2430
2435
|
}
|
|
2431
2436
|
],
|
|
2432
|
-
maxPriorityFeePerGas: (0, import_viem9.parseGwei)("0.
|
|
2437
|
+
maxPriorityFeePerGas: (0, import_viem9.parseGwei)("0.003")
|
|
2433
2438
|
});
|
|
2434
2439
|
await bundlerClient.waitForUserOperationReceipt({
|
|
2435
2440
|
hash: userOpHash,
|
|
@@ -2472,7 +2477,7 @@ function useClaimOrgActionReward() {
|
|
|
2472
2477
|
data: executeClaimCalldata
|
|
2473
2478
|
}
|
|
2474
2479
|
],
|
|
2475
|
-
maxPriorityFeePerGas: (0, import_viem10.parseGwei)("0.
|
|
2480
|
+
maxPriorityFeePerGas: (0, import_viem10.parseGwei)("0.003")
|
|
2476
2481
|
});
|
|
2477
2482
|
await bundlerClient.waitForUserOperationReceipt({
|
|
2478
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,7 +1765,7 @@ 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
|
});
|
|
@@ -1849,14 +1849,19 @@ function useApproveOrgPartialPayment() {
|
|
|
1849
1849
|
data: executeApproveCalldata
|
|
1850
1850
|
}
|
|
1851
1851
|
],
|
|
1852
|
-
maxPriorityFeePerGas: parseGwei5("0.
|
|
1852
|
+
maxPriorityFeePerGas: parseGwei5("0.003")
|
|
1853
1853
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1854
1854
|
});
|
|
1855
|
-
await bundlerClient.waitForUserOperationReceipt({
|
|
1855
|
+
await bundlerClient.waitForUserOperationReceipt({
|
|
1856
|
+
hash: userOpApproveHash
|
|
1857
|
+
});
|
|
1856
1858
|
return { success: true, message: "Approval processed successfully." };
|
|
1857
1859
|
} catch (error) {
|
|
1858
1860
|
const errorMessage = error instanceof Error ? error.message : "An unknown error occurred.";
|
|
1859
|
-
return {
|
|
1861
|
+
return {
|
|
1862
|
+
success: false,
|
|
1863
|
+
message: `Error processing approval: ${errorMessage}`
|
|
1864
|
+
};
|
|
1860
1865
|
}
|
|
1861
1866
|
},
|
|
1862
1867
|
[]
|
|
@@ -1903,7 +1908,7 @@ function useProcessOrgPartialKibblePayment() {
|
|
|
1903
1908
|
data: executePartialPayCalldata
|
|
1904
1909
|
}
|
|
1905
1910
|
],
|
|
1906
|
-
maxPriorityFeePerGas: parseGwei6("0.
|
|
1911
|
+
maxPriorityFeePerGas: parseGwei6("0.003")
|
|
1907
1912
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1908
1913
|
});
|
|
1909
1914
|
const receipt = await bundlerClient.waitForUserOperationReceipt({
|
|
@@ -2286,7 +2291,7 @@ function useClaimActionReward() {
|
|
|
2286
2291
|
data: callData
|
|
2287
2292
|
}
|
|
2288
2293
|
],
|
|
2289
|
-
maxPriorityFeePerGas: parseGwei7("0.
|
|
2294
|
+
maxPriorityFeePerGas: parseGwei7("0.003")
|
|
2290
2295
|
});
|
|
2291
2296
|
await bundlerClient.waitForUserOperationReceipt({
|
|
2292
2297
|
hash: userOpHash,
|
|
@@ -2329,7 +2334,7 @@ function useClaimOrgActionReward() {
|
|
|
2329
2334
|
data: executeClaimCalldata
|
|
2330
2335
|
}
|
|
2331
2336
|
],
|
|
2332
|
-
maxPriorityFeePerGas: parseGwei8("0.
|
|
2337
|
+
maxPriorityFeePerGas: parseGwei8("0.003")
|
|
2333
2338
|
});
|
|
2334
2339
|
await bundlerClient.waitForUserOperationReceipt({
|
|
2335
2340
|
hash: userOpHash,
|
package/package.json
CHANGED