anymal-protocol 1.0.148 → 1.0.149

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
@@ -3066,6 +3066,7 @@ function useCoinbaseCreateOrganizationWallet() {
3066
3066
 
3067
3067
  // src/utils/coinbase/useCoinbaseMintOrgAnymalNFT.ts
3068
3068
  var import_react14 = require("react");
3069
+ var import_viem4 = require("viem");
3069
3070
  function useCoinbaseMintOrgAnymalNFT() {
3070
3071
  const { sendOperationFn, status } = useSendCoinbaseUserOperation();
3071
3072
  return (0, import_react14.useCallback)(
@@ -3077,18 +3078,25 @@ function useCoinbaseMintOrgAnymalNFT() {
3077
3078
  status: "error"
3078
3079
  };
3079
3080
  }
3081
+ const args = [
3082
+ pid,
3083
+ nftId,
3084
+ `https://dev-nft.petastic.com/metadata/${nftId}`,
3085
+ "petastic-signup-campaign-1",
3086
+ anymalTxId
3087
+ ];
3088
+ const callData = (0, import_viem4.encodeFunctionData)({
3089
+ abi: PET_NFT_ABI,
3090
+ functionName: "submitMetadataByCampaignName",
3091
+ args
3092
+ });
3093
+ const executeArgs = [validationContractAddress, callData];
3080
3094
  const result = await sendOperationFn(
3081
3095
  evmAddress,
3082
3096
  validationContractAddress,
3083
3097
  PET_NFT_ABI,
3084
3098
  "submitMetadataByCampaignName",
3085
- [
3086
- pid,
3087
- nftId,
3088
- `https://dev-nft.petastic.com/metadata/${nftId}`,
3089
- "petastic-signup-campaign-1",
3090
- anymalTxId
3091
- ]
3099
+ executeArgs
3092
3100
  );
3093
3101
  return { ...result, status };
3094
3102
  },
@@ -3097,7 +3105,7 @@ function useCoinbaseMintOrgAnymalNFT() {
3097
3105
  }
3098
3106
 
3099
3107
  // src/utils/anymals/useMintAnymalNFT.ts
3100
- var import_viem5 = require("viem");
3108
+ var import_viem6 = require("viem");
3101
3109
  var import_react15 = require("react");
3102
3110
 
3103
3111
  // src/helpers/GasEstimateHelper.tsx
@@ -3142,18 +3150,18 @@ async function applyBundlerGasEstimator(account, bundlerClient, options) {
3142
3150
  }
3143
3151
 
3144
3152
  // src/helpers/HumanRevert.tsx
3145
- var import_viem4 = require("viem");
3153
+ var import_viem5 = require("viem");
3146
3154
  function humanRevert(raw, shortMessage) {
3147
3155
  if (!raw) return shortMessage ?? "Simulation reverted";
3148
3156
  try {
3149
- const { errorName, args } = (0, import_viem4.decodeErrorResult)({
3157
+ const { errorName, args } = (0, import_viem5.decodeErrorResult)({
3150
3158
  abi: ERROR_ABI,
3151
3159
  data: raw
3152
3160
  });
3153
3161
  return `${errorName}(${args.map(String).join(", ")})`;
3154
3162
  } catch {
3155
3163
  if (raw.startsWith("0x08c379a0") && raw.length >= 138) {
3156
- return (0, import_viem4.hexToString)(`0x${raw.slice(138)}`);
3164
+ return (0, import_viem5.hexToString)(`0x${raw.slice(138)}`);
3157
3165
  }
3158
3166
  return `${raw.slice(0, 10)}\u2026`;
3159
3167
  }
@@ -3195,7 +3203,7 @@ function useMintAnymalNFT() {
3195
3203
  "petastic-signup-campaign-1",
3196
3204
  anymalTxId
3197
3205
  ];
3198
- const callData = (0, import_viem5.encodeFunctionData)({
3206
+ const callData = (0, import_viem6.encodeFunctionData)({
3199
3207
  abi: PET_NFT_ABI,
3200
3208
  functionName,
3201
3209
  args
@@ -3382,7 +3390,7 @@ function useUploadAnymalImage() {
3382
3390
  var import_react18 = require("react");
3383
3391
 
3384
3392
  // src/helpers/ProcessDirectPartialPayment.tsx
3385
- var import_viem6 = require("viem");
3393
+ var import_viem7 = require("viem");
3386
3394
 
3387
3395
  // src/helpers/SendUserOpWithRetries.tsx
3388
3396
  async function sendUserOpWithRetries(bundlerClient, params, retries = 3, delay = 1e3) {
@@ -3442,7 +3450,7 @@ async function processDirectPartialPayment(marketplaceContract, smartAccount, bu
3442
3450
  deadline,
3443
3451
  backendSignature
3444
3452
  ];
3445
- const partialPayCalldata = (0, import_viem6.encodeFunctionData)({
3453
+ const partialPayCalldata = (0, import_viem7.encodeFunctionData)({
3446
3454
  abi: MARKETPLACE_ABI,
3447
3455
  functionName,
3448
3456
  args
@@ -3538,20 +3546,20 @@ function useProcessPartialKibblePayment() {
3538
3546
  var import_react19 = require("react");
3539
3547
 
3540
3548
  // src/helpers/ProcessDirectKibbleApproval.tsx
3541
- var import_viem7 = require("viem");
3549
+ var import_viem8 = require("viem");
3542
3550
  async function processDirectKibbleApproval(kibbleTokenAddress, spenderAddress, smartAccount, bundlerClient, approveAmount) {
3543
3551
  try {
3544
3552
  const functionName = "approve";
3545
3553
  const args = [spenderAddress, approveAmount];
3546
- const approveCalldata = (0, import_viem7.encodeFunctionData)({
3547
- abi: import_viem7.erc20Abi,
3554
+ const approveCalldata = (0, import_viem8.encodeFunctionData)({
3555
+ abi: import_viem8.erc20Abi,
3548
3556
  functionName,
3549
3557
  args
3550
3558
  });
3551
3559
  await simulateCall(
3552
3560
  bundlerClient.client,
3553
3561
  kibbleTokenAddress,
3554
- import_viem7.erc20Abi,
3562
+ import_viem8.erc20Abi,
3555
3563
  functionName,
3556
3564
  args,
3557
3565
  smartAccount.address
@@ -3608,7 +3616,7 @@ function useApproveKibbleToken() {
3608
3616
 
3609
3617
  // src/utils/organization/useCreateOrganizationBase.ts
3610
3618
  var import_react20 = require("react");
3611
- var import_viem8 = require("viem");
3619
+ var import_viem9 = require("viem");
3612
3620
  function useCreateOrganizationBase() {
3613
3621
  return (0, import_react20.useCallback)(
3614
3622
  /**
@@ -3632,7 +3640,7 @@ function useCreateOrganizationBase() {
3632
3640
  try {
3633
3641
  const functionName = "createOrganizationProxy";
3634
3642
  const args = [ownerAddress, orgName, orgPid];
3635
- const callData = (0, import_viem8.encodeFunctionData)({
3643
+ const callData = (0, import_viem9.encodeFunctionData)({
3636
3644
  abi: ORGANIZATION_BEACON_ABI,
3637
3645
  functionName,
3638
3646
  args
@@ -3670,7 +3678,7 @@ function useCreateOrganizationBase() {
3670
3678
  let proxyAddress;
3671
3679
  for (const log of txReceipt.logs) {
3672
3680
  try {
3673
- const decoded = (0, import_viem8.decodeEventLog)({
3681
+ const decoded = (0, import_viem9.decodeEventLog)({
3674
3682
  abi: ORGANIZATION_BEACON_ABI,
3675
3683
  data: log.data,
3676
3684
  topics: log.topics
@@ -3709,10 +3717,10 @@ function useCreateOrganizationBase() {
3709
3717
  var import_react21 = require("react");
3710
3718
 
3711
3719
  // src/helpers/ProcessOrgKibbleApproval.tsx
3712
- var import_viem10 = require("viem");
3720
+ var import_viem11 = require("viem");
3713
3721
 
3714
3722
  // src/helpers/WaitForAllowance.tsx
3715
- var import_viem9 = require("viem");
3723
+ var import_viem10 = require("viem");
3716
3724
  async function waitForAllowance(publicClient, tokenAddress, ownerAddress, spenderAddress, expectedAmount) {
3717
3725
  const MAX_RETRIES = 10;
3718
3726
  const RETRY_INTERVAL = 2e3;
@@ -3721,7 +3729,7 @@ async function waitForAllowance(publicClient, tokenAddress, ownerAddress, spende
3721
3729
  try {
3722
3730
  const currentAllowance = await publicClient.readContract({
3723
3731
  address: tokenAddress,
3724
- abi: import_viem9.erc20Abi,
3732
+ abi: import_viem10.erc20Abi,
3725
3733
  functionName: "allowance",
3726
3734
  args: [ownerAddress, spenderAddress]
3727
3735
  });
@@ -3746,13 +3754,13 @@ async function processOrgKibbleApproval(orgContractAddress, kibbleTokenAddress,
3746
3754
  if (approveAmount <= 0n) {
3747
3755
  return { success: false, message: "Approval amount must be greater than zero." };
3748
3756
  }
3749
- const approveCalldata = (0, import_viem10.encodeFunctionData)({
3750
- abi: import_viem10.erc20Abi,
3757
+ const approveCalldata = (0, import_viem11.encodeFunctionData)({
3758
+ abi: import_viem11.erc20Abi,
3751
3759
  functionName: "approve",
3752
3760
  args: [partialPaymentModuleAddress, approveAmount]
3753
3761
  });
3754
3762
  const args = [kibbleTokenAddress, approveCalldata];
3755
- const executeApproveCalldata = (0, import_viem10.encodeFunctionData)({
3763
+ const executeApproveCalldata = (0, import_viem11.encodeFunctionData)({
3756
3764
  abi: ORGANIZATION_IMPL_ABI,
3757
3765
  functionName: ORG_FUNCTION,
3758
3766
  args
@@ -3839,10 +3847,10 @@ function useApproveOrgPartialPayment() {
3839
3847
  var import_react22 = require("react");
3840
3848
 
3841
3849
  // src/helpers/ProcessOrgPartialPayment.tsx
3842
- var import_viem11 = require("viem");
3850
+ var import_viem12 = require("viem");
3843
3851
  async function processOrgPartialPayment(orgContractAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, orderId, anymalNftId, pid, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) {
3844
3852
  try {
3845
- const partialPayCalldata = (0, import_viem11.encodeFunctionData)({
3853
+ const partialPayCalldata = (0, import_viem12.encodeFunctionData)({
3846
3854
  abi: MARKETPLACE_ABI,
3847
3855
  functionName: "partialPay",
3848
3856
  args: [
@@ -3857,7 +3865,7 @@ async function processOrgPartialPayment(orgContractAddress, partialPaymentModule
3857
3865
  ]
3858
3866
  });
3859
3867
  const args = [partialPaymentModuleAddress, partialPayCalldata];
3860
- const executePartialPayCalldata = (0, import_viem11.encodeFunctionData)({
3868
+ const executePartialPayCalldata = (0, import_viem12.encodeFunctionData)({
3861
3869
  abi: ORGANIZATION_IMPL_ABI,
3862
3870
  functionName: ORG_FUNCTION,
3863
3871
  args
@@ -3973,7 +3981,7 @@ function useUpdateOrgWalletAddress() {
3973
3981
  }
3974
3982
 
3975
3983
  // src/utils/organization/useMintOrgAnymalNFT.ts
3976
- var import_viem12 = require("viem");
3984
+ var import_viem13 = require("viem");
3977
3985
  var import_react24 = require("react");
3978
3986
  function useMintOrgAnymalNFT() {
3979
3987
  return (0, import_react24.useCallback)(
@@ -3992,13 +4000,13 @@ function useMintOrgAnymalNFT() {
3992
4000
  "petastic-signup-campaign-1",
3993
4001
  anymalTxId
3994
4002
  ];
3995
- const callData = (0, import_viem12.encodeFunctionData)({
4003
+ const callData = (0, import_viem13.encodeFunctionData)({
3996
4004
  abi: PET_NFT_ABI,
3997
4005
  functionName,
3998
4006
  args
3999
4007
  });
4000
4008
  const executeArgs = [validationContractAddress, callData];
4001
- const executeSubmitMetaCalldata = (0, import_viem12.encodeFunctionData)({
4009
+ const executeSubmitMetaCalldata = (0, import_viem13.encodeFunctionData)({
4002
4010
  abi: ORGANIZATION_IMPL_ABI,
4003
4011
  functionName: ORG_FUNCTION,
4004
4012
  args: executeArgs
@@ -4031,10 +4039,10 @@ function useMintOrgAnymalNFT() {
4031
4039
 
4032
4040
  // src/helpers/NonceHelper.tsx
4033
4041
  var import_uuid = require("uuid");
4034
- var import_viem13 = require("viem");
4042
+ var import_viem14 = require("viem");
4035
4043
  var generateBytes32Nonce = () => {
4036
4044
  const uuid3 = (0, import_uuid.v4)().replace(/-/g, "");
4037
- return (0, import_viem13.padHex)(`0x${uuid3}`, { size: 32 });
4045
+ return (0, import_viem14.padHex)(`0x${uuid3}`, { size: 32 });
4038
4046
  };
4039
4047
 
4040
4048
  // src/helpers/CryptoUtils.tsx
@@ -4490,16 +4498,16 @@ function useCreateOrganizationAppData() {
4490
4498
 
4491
4499
  // src/utils/balance/useFetchBalance.ts
4492
4500
  var import_react29 = require("react");
4493
- var import_viem14 = require("viem");
4501
+ var import_viem15 = require("viem");
4494
4502
  function useFetchBalance() {
4495
4503
  return (0, import_react29.useCallback)(
4496
4504
  async (publicClient, walletAddress, kibbleTokenAddress) => {
4497
4505
  try {
4498
4506
  const balance = await publicClient.readContract({
4499
- address: (0, import_viem14.getAddress)(kibbleTokenAddress),
4500
- abi: import_viem14.erc20Abi,
4507
+ address: (0, import_viem15.getAddress)(kibbleTokenAddress),
4508
+ abi: import_viem15.erc20Abi,
4501
4509
  functionName: "balanceOf",
4502
- args: [(0, import_viem14.getAddress)(walletAddress)]
4510
+ args: [(0, import_viem15.getAddress)(walletAddress)]
4503
4511
  });
4504
4512
  return Number(balance);
4505
4513
  } catch (error) {
@@ -4511,7 +4519,7 @@ function useFetchBalance() {
4511
4519
  }
4512
4520
 
4513
4521
  // src/utils/actions/useClaimActionReward.ts
4514
- var import_viem15 = require("viem");
4522
+ var import_viem16 = require("viem");
4515
4523
  var import_react30 = require("react");
4516
4524
  function useClaimActionReward() {
4517
4525
  return (0, import_react30.useCallback)(
@@ -4524,7 +4532,7 @@ function useClaimActionReward() {
4524
4532
  }
4525
4533
  const args = [actionId, claimIndex];
4526
4534
  const functionName = "claimByIndex";
4527
- const callData = (0, import_viem15.encodeFunctionData)({
4535
+ const callData = (0, import_viem16.encodeFunctionData)({
4528
4536
  abi: REWARDABLE_ACTIONS_ABI,
4529
4537
  functionName,
4530
4538
  args
@@ -4560,7 +4568,7 @@ function useClaimActionReward() {
4560
4568
  }
4561
4569
 
4562
4570
  // src/utils/actions/useClaimOrgActionReward.ts
4563
- var import_viem16 = require("viem");
4571
+ var import_viem17 = require("viem");
4564
4572
  var import_react31 = require("react");
4565
4573
  function useClaimOrgActionReward() {
4566
4574
  return (0, import_react31.useCallback)(
@@ -4571,13 +4579,13 @@ function useClaimOrgActionReward() {
4571
4579
  message: "Missing web3auth account info or contract address."
4572
4580
  };
4573
4581
  }
4574
- const claimCallData = (0, import_viem16.encodeFunctionData)({
4582
+ const claimCallData = (0, import_viem17.encodeFunctionData)({
4575
4583
  abi: REWARDABLE_ACTIONS_ABI,
4576
4584
  functionName: "claimByIndex",
4577
4585
  args: [actionId, claimIndex]
4578
4586
  });
4579
4587
  const args = [rewardableActionContractAddress, claimCallData];
4580
- const executeClaimCalldata = (0, import_viem16.encodeFunctionData)({
4588
+ const executeClaimCalldata = (0, import_viem17.encodeFunctionData)({
4581
4589
  abi: ORGANIZATION_IMPL_ABI,
4582
4590
  functionName: ORG_FUNCTION,
4583
4591
  args
package/dist/index.mjs CHANGED
@@ -2986,6 +2986,7 @@ function useCoinbaseCreateOrganizationWallet() {
2986
2986
 
2987
2987
  // src/utils/coinbase/useCoinbaseMintOrgAnymalNFT.ts
2988
2988
  import { useCallback as useCallback14 } from "react";
2989
+ import { encodeFunctionData as encodeFunctionData2 } from "viem";
2989
2990
  function useCoinbaseMintOrgAnymalNFT() {
2990
2991
  const { sendOperationFn, status } = useSendCoinbaseUserOperation();
2991
2992
  return useCallback14(
@@ -2997,18 +2998,25 @@ function useCoinbaseMintOrgAnymalNFT() {
2997
2998
  status: "error"
2998
2999
  };
2999
3000
  }
3001
+ const args = [
3002
+ pid,
3003
+ nftId,
3004
+ `https://dev-nft.petastic.com/metadata/${nftId}`,
3005
+ "petastic-signup-campaign-1",
3006
+ anymalTxId
3007
+ ];
3008
+ const callData = encodeFunctionData2({
3009
+ abi: PET_NFT_ABI,
3010
+ functionName: "submitMetadataByCampaignName",
3011
+ args
3012
+ });
3013
+ const executeArgs = [validationContractAddress, callData];
3000
3014
  const result = await sendOperationFn(
3001
3015
  evmAddress,
3002
3016
  validationContractAddress,
3003
3017
  PET_NFT_ABI,
3004
3018
  "submitMetadataByCampaignName",
3005
- [
3006
- pid,
3007
- nftId,
3008
- `https://dev-nft.petastic.com/metadata/${nftId}`,
3009
- "petastic-signup-campaign-1",
3010
- anymalTxId
3011
- ]
3019
+ executeArgs
3012
3020
  );
3013
3021
  return { ...result, status };
3014
3022
  },
@@ -3017,7 +3025,7 @@ function useCoinbaseMintOrgAnymalNFT() {
3017
3025
  }
3018
3026
 
3019
3027
  // src/utils/anymals/useMintAnymalNFT.ts
3020
- import { encodeFunctionData as encodeFunctionData2 } from "viem";
3028
+ import { encodeFunctionData as encodeFunctionData3 } from "viem";
3021
3029
  import { useCallback as useCallback15 } from "react";
3022
3030
 
3023
3031
  // src/helpers/GasEstimateHelper.tsx
@@ -3115,7 +3123,7 @@ function useMintAnymalNFT() {
3115
3123
  "petastic-signup-campaign-1",
3116
3124
  anymalTxId
3117
3125
  ];
3118
- const callData = encodeFunctionData2({
3126
+ const callData = encodeFunctionData3({
3119
3127
  abi: PET_NFT_ABI,
3120
3128
  functionName,
3121
3129
  args
@@ -3302,7 +3310,7 @@ function useUploadAnymalImage() {
3302
3310
  import { useCallback as useCallback18 } from "react";
3303
3311
 
3304
3312
  // src/helpers/ProcessDirectPartialPayment.tsx
3305
- import { encodeFunctionData as encodeFunctionData3 } from "viem";
3313
+ import { encodeFunctionData as encodeFunctionData4 } from "viem";
3306
3314
 
3307
3315
  // src/helpers/SendUserOpWithRetries.tsx
3308
3316
  async function sendUserOpWithRetries(bundlerClient, params, retries = 3, delay = 1e3) {
@@ -3362,7 +3370,7 @@ async function processDirectPartialPayment(marketplaceContract, smartAccount, bu
3362
3370
  deadline,
3363
3371
  backendSignature
3364
3372
  ];
3365
- const partialPayCalldata = encodeFunctionData3({
3373
+ const partialPayCalldata = encodeFunctionData4({
3366
3374
  abi: MARKETPLACE_ABI,
3367
3375
  functionName,
3368
3376
  args
@@ -3458,12 +3466,12 @@ function useProcessPartialKibblePayment() {
3458
3466
  import { useCallback as useCallback19 } from "react";
3459
3467
 
3460
3468
  // src/helpers/ProcessDirectKibbleApproval.tsx
3461
- import { encodeFunctionData as encodeFunctionData4, erc20Abi } from "viem";
3469
+ import { encodeFunctionData as encodeFunctionData5, erc20Abi } from "viem";
3462
3470
  async function processDirectKibbleApproval(kibbleTokenAddress, spenderAddress, smartAccount, bundlerClient, approveAmount) {
3463
3471
  try {
3464
3472
  const functionName = "approve";
3465
3473
  const args = [spenderAddress, approveAmount];
3466
- const approveCalldata = encodeFunctionData4({
3474
+ const approveCalldata = encodeFunctionData5({
3467
3475
  abi: erc20Abi,
3468
3476
  functionName,
3469
3477
  args
@@ -3528,7 +3536,7 @@ function useApproveKibbleToken() {
3528
3536
 
3529
3537
  // src/utils/organization/useCreateOrganizationBase.ts
3530
3538
  import { useCallback as useCallback20 } from "react";
3531
- import { decodeEventLog, encodeFunctionData as encodeFunctionData5 } from "viem";
3539
+ import { decodeEventLog, encodeFunctionData as encodeFunctionData6 } from "viem";
3532
3540
  function useCreateOrganizationBase() {
3533
3541
  return useCallback20(
3534
3542
  /**
@@ -3552,7 +3560,7 @@ function useCreateOrganizationBase() {
3552
3560
  try {
3553
3561
  const functionName = "createOrganizationProxy";
3554
3562
  const args = [ownerAddress, orgName, orgPid];
3555
- const callData = encodeFunctionData5({
3563
+ const callData = encodeFunctionData6({
3556
3564
  abi: ORGANIZATION_BEACON_ABI,
3557
3565
  functionName,
3558
3566
  args
@@ -3629,7 +3637,7 @@ function useCreateOrganizationBase() {
3629
3637
  import { useCallback as useCallback21 } from "react";
3630
3638
 
3631
3639
  // src/helpers/ProcessOrgKibbleApproval.tsx
3632
- import { encodeFunctionData as encodeFunctionData6, erc20Abi as erc20Abi3 } from "viem";
3640
+ import { encodeFunctionData as encodeFunctionData7, erc20Abi as erc20Abi3 } from "viem";
3633
3641
 
3634
3642
  // src/helpers/WaitForAllowance.tsx
3635
3643
  import { erc20Abi as erc20Abi2 } from "viem";
@@ -3666,13 +3674,13 @@ async function processOrgKibbleApproval(orgContractAddress, kibbleTokenAddress,
3666
3674
  if (approveAmount <= 0n) {
3667
3675
  return { success: false, message: "Approval amount must be greater than zero." };
3668
3676
  }
3669
- const approveCalldata = encodeFunctionData6({
3677
+ const approveCalldata = encodeFunctionData7({
3670
3678
  abi: erc20Abi3,
3671
3679
  functionName: "approve",
3672
3680
  args: [partialPaymentModuleAddress, approveAmount]
3673
3681
  });
3674
3682
  const args = [kibbleTokenAddress, approveCalldata];
3675
- const executeApproveCalldata = encodeFunctionData6({
3683
+ const executeApproveCalldata = encodeFunctionData7({
3676
3684
  abi: ORGANIZATION_IMPL_ABI,
3677
3685
  functionName: ORG_FUNCTION,
3678
3686
  args
@@ -3759,10 +3767,10 @@ function useApproveOrgPartialPayment() {
3759
3767
  import { useCallback as useCallback22 } from "react";
3760
3768
 
3761
3769
  // src/helpers/ProcessOrgPartialPayment.tsx
3762
- import { encodeFunctionData as encodeFunctionData7 } from "viem";
3770
+ import { encodeFunctionData as encodeFunctionData8 } from "viem";
3763
3771
  async function processOrgPartialPayment(orgContractAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, orderId, anymalNftId, pid, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) {
3764
3772
  try {
3765
- const partialPayCalldata = encodeFunctionData7({
3773
+ const partialPayCalldata = encodeFunctionData8({
3766
3774
  abi: MARKETPLACE_ABI,
3767
3775
  functionName: "partialPay",
3768
3776
  args: [
@@ -3777,7 +3785,7 @@ async function processOrgPartialPayment(orgContractAddress, partialPaymentModule
3777
3785
  ]
3778
3786
  });
3779
3787
  const args = [partialPaymentModuleAddress, partialPayCalldata];
3780
- const executePartialPayCalldata = encodeFunctionData7({
3788
+ const executePartialPayCalldata = encodeFunctionData8({
3781
3789
  abi: ORGANIZATION_IMPL_ABI,
3782
3790
  functionName: ORG_FUNCTION,
3783
3791
  args
@@ -3893,7 +3901,7 @@ function useUpdateOrgWalletAddress() {
3893
3901
  }
3894
3902
 
3895
3903
  // src/utils/organization/useMintOrgAnymalNFT.ts
3896
- import { encodeFunctionData as encodeFunctionData8 } from "viem";
3904
+ import { encodeFunctionData as encodeFunctionData9 } from "viem";
3897
3905
  import { useCallback as useCallback24 } from "react";
3898
3906
  function useMintOrgAnymalNFT() {
3899
3907
  return useCallback24(
@@ -3912,13 +3920,13 @@ function useMintOrgAnymalNFT() {
3912
3920
  "petastic-signup-campaign-1",
3913
3921
  anymalTxId
3914
3922
  ];
3915
- const callData = encodeFunctionData8({
3923
+ const callData = encodeFunctionData9({
3916
3924
  abi: PET_NFT_ABI,
3917
3925
  functionName,
3918
3926
  args
3919
3927
  });
3920
3928
  const executeArgs = [validationContractAddress, callData];
3921
- const executeSubmitMetaCalldata = encodeFunctionData8({
3929
+ const executeSubmitMetaCalldata = encodeFunctionData9({
3922
3930
  abi: ORGANIZATION_IMPL_ABI,
3923
3931
  functionName: ORG_FUNCTION,
3924
3932
  args: executeArgs
@@ -4248,7 +4256,7 @@ function useFetchBalance() {
4248
4256
  }
4249
4257
 
4250
4258
  // src/utils/actions/useClaimActionReward.ts
4251
- import { encodeFunctionData as encodeFunctionData9 } from "viem";
4259
+ import { encodeFunctionData as encodeFunctionData10 } from "viem";
4252
4260
  import { useCallback as useCallback30 } from "react";
4253
4261
  function useClaimActionReward() {
4254
4262
  return useCallback30(
@@ -4261,7 +4269,7 @@ function useClaimActionReward() {
4261
4269
  }
4262
4270
  const args = [actionId, claimIndex];
4263
4271
  const functionName = "claimByIndex";
4264
- const callData = encodeFunctionData9({
4272
+ const callData = encodeFunctionData10({
4265
4273
  abi: REWARDABLE_ACTIONS_ABI,
4266
4274
  functionName,
4267
4275
  args
@@ -4297,7 +4305,7 @@ function useClaimActionReward() {
4297
4305
  }
4298
4306
 
4299
4307
  // src/utils/actions/useClaimOrgActionReward.ts
4300
- import { encodeFunctionData as encodeFunctionData10 } from "viem";
4308
+ import { encodeFunctionData as encodeFunctionData11 } from "viem";
4301
4309
  import { useCallback as useCallback31 } from "react";
4302
4310
  function useClaimOrgActionReward() {
4303
4311
  return useCallback31(
@@ -4308,13 +4316,13 @@ function useClaimOrgActionReward() {
4308
4316
  message: "Missing web3auth account info or contract address."
4309
4317
  };
4310
4318
  }
4311
- const claimCallData = encodeFunctionData10({
4319
+ const claimCallData = encodeFunctionData11({
4312
4320
  abi: REWARDABLE_ACTIONS_ABI,
4313
4321
  functionName: "claimByIndex",
4314
4322
  args: [actionId, claimIndex]
4315
4323
  });
4316
4324
  const args = [rewardableActionContractAddress, claimCallData];
4317
- const executeClaimCalldata = encodeFunctionData10({
4325
+ const executeClaimCalldata = encodeFunctionData11({
4318
4326
  abi: ORGANIZATION_IMPL_ABI,
4319
4327
  functionName: ORG_FUNCTION,
4320
4328
  args
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.148",
3
+ "version": "1.0.149",
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": {