anymal-protocol 1.0.115 → 1.0.116

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 CHANGED
@@ -1333,7 +1333,7 @@ function useMintAnymalNFT() {
1333
1333
  data: callData
1334
1334
  }
1335
1335
  ],
1336
- maxPriorityFeePerGas: (0, import_viem.parseGwei)("0.003")
1336
+ paymaster: true
1337
1337
  });
1338
1338
  await bundlerClient.waitForUserOperationReceipt({
1339
1339
  hash: userOpHash,
@@ -1762,7 +1762,7 @@ function useProcessPartialKibblePayment() {
1762
1762
  data: callData
1763
1763
  }
1764
1764
  ],
1765
- maxPriorityFeePerGas: (0, import_viem2.parseGwei)("0.003")
1765
+ paymaster: true
1766
1766
  });
1767
1767
  const receipt = await bundlerClient.waitForUserOperationReceipt({
1768
1768
  hash: userOpHash,
@@ -1808,8 +1808,7 @@ function useApproveKibbleToken() {
1808
1808
  data: callData
1809
1809
  }
1810
1810
  ],
1811
- maxPriorityFeePerGas: (0, import_viem3.parseGwei)("0.003")
1812
- // maxFeePerGas: parseGwei("0.01"),
1811
+ paymaster: true
1813
1812
  });
1814
1813
  await bundlerClient.waitForUserOperationReceipt({
1815
1814
  hash: userOpHash,
@@ -1953,8 +1952,7 @@ function useApproveOrgPartialPayment() {
1953
1952
  data: executeApproveCalldata
1954
1953
  }
1955
1954
  ],
1956
- maxPriorityFeePerGas: (0, import_viem5.parseGwei)("0.003")
1957
- // maxFeePerGas: parseGwei("0.01"),
1955
+ paymaster: true
1958
1956
  });
1959
1957
  await bundlerClient.waitForUserOperationReceipt({
1960
1958
  hash: userOpApproveHash
@@ -2013,8 +2011,7 @@ function useProcessOrgPartialKibblePayment() {
2013
2011
  data: executePartialPayCalldata
2014
2012
  }
2015
2013
  ],
2016
- maxPriorityFeePerGas: (0, import_viem6.parseGwei)("0.003")
2017
- // maxFeePerGas: parseGwei("0.01"),
2014
+ paymaster: true
2018
2015
  });
2019
2016
  const receipt = await bundlerClient.waitForUserOperationReceipt({
2020
2017
  hash: userOpPartialPayHash
@@ -2477,7 +2474,7 @@ function useClaimActionReward() {
2477
2474
  data: callData
2478
2475
  }
2479
2476
  ],
2480
- maxPriorityFeePerGas: (0, import_viem9.parseGwei)("0.003")
2477
+ paymaster: true
2481
2478
  });
2482
2479
  await bundlerClient.waitForUserOperationReceipt({
2483
2480
  hash: userOpHash,
@@ -2521,7 +2518,7 @@ function useClaimOrgActionReward() {
2521
2518
  data: executeClaimCalldata
2522
2519
  }
2523
2520
  ],
2524
- maxPriorityFeePerGas: (0, import_viem10.parseGwei)("0.003")
2521
+ paymaster: true
2525
2522
  });
2526
2523
  await bundlerClient.waitForUserOperationReceipt({
2527
2524
  hash: userOpHash,
package/dist/index.mjs CHANGED
@@ -383,7 +383,7 @@ function useFetchNotifications() {
383
383
  }
384
384
 
385
385
  // src/utils/anymals/useMintAnymalNFT.ts
386
- import { encodeFunctionData, parseGwei } from "viem";
386
+ import { encodeFunctionData } from "viem";
387
387
 
388
388
  // src/helpers/BlockchainAbiHelper.tsx
389
389
  var PET_NFT_ABI = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "AccessControlBadConfirmation", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "bytes32", "name": "neededRole", "type": "bytes32" }], "name": "AccessControlUnauthorizedAccount", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "EnforcedPause", "type": "error" }, { "inputs": [], "name": "ExpectedPause", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "nftId", "type": "string" }, { "indexed": false, "internalType": "string", "name": "metadataURL", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "campaignId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "_anymalTxId", "type": "string" }], "name": "MetadataApproved", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "string", "name": "anymalTxId", "type": "string" }, { "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "nftId", "type": "string" }, { "indexed": false, "internalType": "string", "name": "metadataURL", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "campaignId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "_anymalTxId", "type": "string" }], "name": "MetadataRejected", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "nftId", "type": "string" }, { "indexed": false, "internalType": "string", "name": "metadataURL", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "campaignId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "_anymalTxId", "type": "string" }], "name": "MetadataSubmitted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "nftId", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "campaignId", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "_anymalTxId", "type": "string" }], "name": "RewardDistributed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" }], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "RoleRevoked", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "APPROVER_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "string", "name": "_pid", "type": "string" }, { "internalType": "string", "name": "_nftId", "type": "string" }, { "internalType": "string", "name": "_metadataURL", "type": "string" }, { "internalType": "uint256", "name": "_campaignId", "type": "uint256" }, { "internalType": "string", "name": "_anymalTxId", "type": "string" }], "name": "approveMetadata", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "campaignCount", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "campaigns", "outputs": [{ "internalType": "string", "name": "name", "type": "string" }, { "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "internalType": "bool", "name": "isActive", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "_name", "type": "string" }, { "internalType": "uint256", "name": "_rewardAmount", "type": "uint256" }], "name": "createCampaign", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "defaultRewardAmount", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], "name": "getRoleAdmin", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "hasRole", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "initialOwner", "type": "address" }, { "internalType": "contract IERC20", "name": "_rewardToken", "type": "address" }, { "internalType": "contract IPetToken", "name": "_petToken", "type": "address" }, { "internalType": "uint256", "name": "_defaultRewardAmount", "type": "uint256" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "petToken", "outputs": [{ "internalType": "contract IPetToken", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "callerConfirmation", "type": "address" }], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "rewardToken", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "_pid", "type": "string" }, { "internalType": "string", "name": "_nftId", "type": "string" }, { "internalType": "string", "name": "_metadataURL", "type": "string" }, { "internalType": "uint256", "name": "_campaignId", "type": "uint256" }, { "internalType": "string", "name": "_anymalTxId", "type": "string" }], "name": "submitMetadata", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "_pid", "type": "string" }, { "internalType": "string", "name": "_nftId", "type": "string" }, { "internalType": "string", "name": "_metadataURL", "type": "string" }, { "internalType": "string", "name": "_campaignName", "type": "string" }, { "internalType": "string", "name": "_anymalTxId", "type": "string" }], "name": "submitMetadataByCampaignName", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }], "name": "supportsInterface", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_campaignId", "type": "uint256" }, { "internalType": "uint256", "name": "_rewardAmount", "type": "uint256" }, { "internalType": "bool", "name": "_isActive", "type": "bool" }], "name": "updateCampaign", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_rewardAmount", "type": "uint256" }], "name": "updateDefaultReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }];
@@ -1270,7 +1270,7 @@ function useMintAnymalNFT() {
1270
1270
  data: callData
1271
1271
  }
1272
1272
  ],
1273
- maxPriorityFeePerGas: parseGwei("0.003")
1273
+ paymaster: true
1274
1274
  });
1275
1275
  await bundlerClient.waitForUserOperationReceipt({
1276
1276
  hash: userOpHash,
@@ -1655,7 +1655,7 @@ function useFetchAnymals() {
1655
1655
  }
1656
1656
 
1657
1657
  // src/utils/marketplace/useProcessPartialKibblePayment.ts
1658
- import { encodeFunctionData as encodeFunctionData2, parseGwei as parseGwei2 } from "viem";
1658
+ import { encodeFunctionData as encodeFunctionData2 } from "viem";
1659
1659
  import { useCallback as useCallback17 } from "react";
1660
1660
  function useProcessPartialKibblePayment() {
1661
1661
  return useCallback17(
@@ -1699,7 +1699,7 @@ function useProcessPartialKibblePayment() {
1699
1699
  data: callData
1700
1700
  }
1701
1701
  ],
1702
- maxPriorityFeePerGas: parseGwei2("0.003")
1702
+ paymaster: true
1703
1703
  });
1704
1704
  const receipt = await bundlerClient.waitForUserOperationReceipt({
1705
1705
  hash: userOpHash,
@@ -1720,7 +1720,7 @@ function useProcessPartialKibblePayment() {
1720
1720
  }
1721
1721
 
1722
1722
  // src/utils/marketplace/useApproveKibbleToken.ts
1723
- import { encodeFunctionData as encodeFunctionData3, erc20Abi, parseGwei as parseGwei3 } from "viem";
1723
+ import { encodeFunctionData as encodeFunctionData3, erc20Abi } from "viem";
1724
1724
  import { useCallback as useCallback18 } from "react";
1725
1725
  function useApproveKibbleToken() {
1726
1726
  return useCallback18(
@@ -1745,8 +1745,7 @@ function useApproveKibbleToken() {
1745
1745
  data: callData
1746
1746
  }
1747
1747
  ],
1748
- maxPriorityFeePerGas: parseGwei3("0.003")
1749
- // maxFeePerGas: parseGwei("0.01"),
1748
+ paymaster: true
1750
1749
  });
1751
1750
  await bundlerClient.waitForUserOperationReceipt({
1752
1751
  hash: userOpHash,
@@ -1860,7 +1859,7 @@ function useCreateOrganizationBase() {
1860
1859
 
1861
1860
  // src/utils/organization/useApproveOrgKibbleToken.ts
1862
1861
  import { useCallback as useCallback20 } from "react";
1863
- import { encodeFunctionData as encodeFunctionData5, erc20Abi as erc20Abi2, parseGwei as parseGwei5 } from "viem";
1862
+ import { encodeFunctionData as encodeFunctionData5, erc20Abi as erc20Abi2 } from "viem";
1864
1863
  function useApproveOrgPartialPayment() {
1865
1864
  return useCallback20(
1866
1865
  async (orgContractAddress, kibbleTokenAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, approveAmount) => {
@@ -1890,8 +1889,7 @@ function useApproveOrgPartialPayment() {
1890
1889
  data: executeApproveCalldata
1891
1890
  }
1892
1891
  ],
1893
- maxPriorityFeePerGas: parseGwei5("0.003")
1894
- // maxFeePerGas: parseGwei("0.01"),
1892
+ paymaster: true
1895
1893
  });
1896
1894
  await bundlerClient.waitForUserOperationReceipt({
1897
1895
  hash: userOpApproveHash
@@ -1911,7 +1909,7 @@ function useApproveOrgPartialPayment() {
1911
1909
 
1912
1910
  // src/utils/organization/useProcessOrgPartialKibblePayment.ts
1913
1911
  import { useCallback as useCallback21 } from "react";
1914
- import { encodeFunctionData as encodeFunctionData6, parseGwei as parseGwei6 } from "viem";
1912
+ import { encodeFunctionData as encodeFunctionData6 } from "viem";
1915
1913
  function useProcessOrgPartialKibblePayment() {
1916
1914
  return useCallback21(
1917
1915
  async (orgContractAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, orderId, anymalNftId, pid, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) => {
@@ -1950,8 +1948,7 @@ function useProcessOrgPartialKibblePayment() {
1950
1948
  data: executePartialPayCalldata
1951
1949
  }
1952
1950
  ],
1953
- maxPriorityFeePerGas: parseGwei6("0.003")
1954
- // maxFeePerGas: parseGwei("0.01"),
1951
+ paymaster: true
1955
1952
  });
1956
1953
  const receipt = await bundlerClient.waitForUserOperationReceipt({
1957
1954
  hash: userOpPartialPayHash
@@ -2309,7 +2306,7 @@ function useFetchBalance() {
2309
2306
  }
2310
2307
 
2311
2308
  // src/utils/actions/useClaimActionReward.ts
2312
- import { encodeFunctionData as encodeFunctionData7, parseGwei as parseGwei7 } from "viem";
2309
+ import { encodeFunctionData as encodeFunctionData7 } from "viem";
2313
2310
  import { useCallback as useCallback28 } from "react";
2314
2311
  function useClaimActionReward() {
2315
2312
  return useCallback28(
@@ -2334,7 +2331,7 @@ function useClaimActionReward() {
2334
2331
  data: callData
2335
2332
  }
2336
2333
  ],
2337
- maxPriorityFeePerGas: parseGwei7("0.003")
2334
+ paymaster: true
2338
2335
  });
2339
2336
  await bundlerClient.waitForUserOperationReceipt({
2340
2337
  hash: userOpHash,
@@ -2348,7 +2345,7 @@ function useClaimActionReward() {
2348
2345
  }
2349
2346
 
2350
2347
  // src/utils/actions/useClaimOrgActionReward.ts
2351
- import { encodeFunctionData as encodeFunctionData8, parseGwei as parseGwei8 } from "viem";
2348
+ import { encodeFunctionData as encodeFunctionData8 } from "viem";
2352
2349
  import { useCallback as useCallback29 } from "react";
2353
2350
  function useClaimOrgActionReward() {
2354
2351
  return useCallback29(
@@ -2378,7 +2375,7 @@ function useClaimOrgActionReward() {
2378
2375
  data: executeClaimCalldata
2379
2376
  }
2380
2377
  ],
2381
- maxPriorityFeePerGas: parseGwei8("0.003")
2378
+ paymaster: true
2382
2379
  });
2383
2380
  await bundlerClient.waitForUserOperationReceipt({
2384
2381
  hash: userOpHash,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.115",
3
+ "version": "1.0.116",
4
4
  "description": "A React/TypeScript-based utility library for reusable functions and hooks inside of the Anymal Ecosystem.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {