anymal-protocol 1.0.123 → 1.0.124

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.mjs CHANGED
@@ -386,15 +386,1140 @@ function useFetchNotifications() {
386
386
  );
387
387
  }
388
388
 
389
- // src/utils/anymals/useMintAnymalNFT.ts
390
- import { encodeFunctionData } from "viem";
389
+ // src/utils/coinbase/useSendCoinbaseUserOperation.ts
390
+ import { useCallback as useCallback10 } from "react";
391
+ import { useSendUserOperation } from "@coinbase/cdp-hooks";
392
+ function useSendCoinbaseUserOperation() {
393
+ const { sendUserOperation, data, error, status } = useSendUserOperation();
394
+ const sendOperationFn = useCallback10(
395
+ async (evmAddress, callData, contractAddress) => {
396
+ if (!evmAddress || !callData || !contractAddress) {
397
+ return { success: false, message: "Missing required information" };
398
+ }
399
+ try {
400
+ await sendUserOperation({
401
+ evmSmartAccount: evmAddress,
402
+ network: "base-sepolia",
403
+ useCdpPaymaster: true,
404
+ calls: [{ data: callData, to: contractAddress }]
405
+ });
406
+ return { success: true, message: "Operation submitted." };
407
+ } catch (e) {
408
+ console.error(e);
409
+ return { success: false, message: e.message };
410
+ }
411
+ },
412
+ [sendUserOperation]
413
+ );
414
+ return { sendOperationFn, data, status, error };
415
+ }
391
416
 
392
417
  // src/helpers/BlockchainAbiHelper.tsx
393
418
  import { parseAbi } from "viem";
394
- 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" }];
395
- var MARKETPLACE_ABI = [{ "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "length", "type": "uint256" }], "name": "ECDSAInvalidSignatureLength", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "ECDSAInvalidSignatureS", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "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": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "anymalNftId", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "PartialPaymentMade", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "PaymentMade", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "refundedAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "RefundProcessed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "enabled", "type": "bool" }], "name": "SignatureCheckToggled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "authorizer", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_initialOwner", "type": "address" }, { "internalType": "address", "name": "_authorizer", "type": "address" }, { "internalType": "address", "name": "_kibbleToken", "type": "address" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "kibbleToken", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" }], "name": "paidAmounts", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, { "internalType": "string", "name": "anymalNftId", "type": "string" }, { "internalType": "string", "name": "pid", "type": "string" }, { "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "internalType": "uint256", "name": "maxTokenPayment", "type": "uint256" }, { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "bytes", "name": "backendSignature", "type": "bytes" }], "name": "partialPay", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, { "internalType": "address", "name": "payer", "type": "address" }, { "internalType": "string", "name": "pid", "type": "string" }], "name": "refund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_authorizer", "type": "address" }], "name": "setAuthorizer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "enabled", "type": "bool" }], "name": "setSignatureCheckEnabled", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "signatureCheckEnabled", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "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" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "usedNonces", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawKibble", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
396
- var ORGANIZATION_BEACON_ABI = [{ "inputs": [{ "internalType": "address", "name": "_initialImplementation", "type": "address" }, { "internalType": "address", "name": "_initialOwner", "type": "address" }, { "internalType": "address", "name": "_anymalNFTProxy", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "BeaconInvalidImplementation", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "name", "type": "string" }, { "indexed": false, "internalType": "address", "name": "proxyAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "networkAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "userAdmin", "type": "address" }], "name": "NewOrganizationCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "anymalNFTProxy", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_userAdmin", "type": "address" }, { "internalType": "string", "name": "_orgName", "type": "string" }, { "internalType": "string", "name": "_orgPid", "type": "string" }], "name": "createOrganizationProxy", "outputs": [{ "internalType": "address", "name": "proxyAddress", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "implementation", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }], "name": "upgradeBeaconTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }], "name": "upgradeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
397
- var REWARDABLE_ACTIONS_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": "FailedCall", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "maxClaims", "type": "uint256" }], "name": "ActionTypeAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "newRewardAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newMaxClaims", "type": "uint256" }], "name": "ActionTypeUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "index", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "quantity", "type": "uint256" }, { "indexed": false, "internalType": "uint16", "name": "multiplier", "type": "uint16" }], "name": "ActionValidated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "index", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "RewardClaimedByIndex", "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": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "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": "bytes32", "name": "", "type": "bytes32" }], "name": "actionConfigs", "outputs": [{ "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "internalType": "uint256", "name": "maxClaims", "type": "uint256" }, { "internalType": "bool", "name": "exists", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, { "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "internalType": "uint256", "name": "maxClaims", "type": "uint256" }], "name": "addActionType", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, { "internalType": "uint256", "name": "index", "type": "uint256" }], "name": "claimByIndex", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "depositRewards", "outputs": [], "stateMutability": "nonpayable", "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" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "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": "bytes4", "name": "interfaceId", "type": "bytes4" }], "name": "supportsInterface", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "bytes32", "name": "actionId", "type": "bytes32" }], "name": "totalValidatedSlots", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "bytes32", "name": "actionId", "type": "bytes32" }], "name": "unclaimedSlots", "outputs": [{ "internalType": "uint256", "name": "count", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, { "internalType": "uint256", "name": "newRewardAmount", "type": "uint256" }, { "internalType": "uint256", "name": "newMaxClaims", "type": "uint256" }], "name": "updateActionType", "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" }, { "inputs": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, { "internalType": "uint256", "name": "quantity", "type": "uint256" }, { "internalType": "uint16", "name": "multiplier", "type": "uint16" }], "name": "validateAction", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "validations", "outputs": [{ "internalType": "uint256", "name": "quantity", "type": "uint256" }, { "internalType": "uint16", "name": "multiplier", "type": "uint16" }, { "internalType": "bool", "name": "claimed", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
419
+ var PET_NFT_ABI = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, {
420
+ "inputs": [],
421
+ "name": "AccessControlBadConfirmation",
422
+ "type": "error"
423
+ }, {
424
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, {
425
+ "internalType": "bytes32",
426
+ "name": "neededRole",
427
+ "type": "bytes32"
428
+ }],
429
+ "name": "AccessControlUnauthorizedAccount",
430
+ "type": "error"
431
+ }, {
432
+ "inputs": [{ "internalType": "address", "name": "target", "type": "address" }],
433
+ "name": "AddressEmptyCode",
434
+ "type": "error"
435
+ }, {
436
+ "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }],
437
+ "name": "ERC1967InvalidImplementation",
438
+ "type": "error"
439
+ }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, {
440
+ "inputs": [],
441
+ "name": "EnforcedPause",
442
+ "type": "error"
443
+ }, { "inputs": [], "name": "ExpectedPause", "type": "error" }, {
444
+ "inputs": [],
445
+ "name": "FailedCall",
446
+ "type": "error"
447
+ }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, {
448
+ "inputs": [],
449
+ "name": "NotInitializing",
450
+ "type": "error"
451
+ }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, {
452
+ "inputs": [{
453
+ "internalType": "bytes32",
454
+ "name": "slot",
455
+ "type": "bytes32"
456
+ }],
457
+ "name": "UUPSUnsupportedProxiableUUID",
458
+ "type": "error"
459
+ }, {
460
+ "anonymous": false,
461
+ "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }],
462
+ "name": "Initialized",
463
+ "type": "event"
464
+ }, {
465
+ "anonymous": false,
466
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, {
467
+ "indexed": false,
468
+ "internalType": "string",
469
+ "name": "pid",
470
+ "type": "string"
471
+ }, { "indexed": false, "internalType": "string", "name": "nftId", "type": "string" }, {
472
+ "indexed": false,
473
+ "internalType": "string",
474
+ "name": "metadataURL",
475
+ "type": "string"
476
+ }, { "indexed": false, "internalType": "uint256", "name": "campaignId", "type": "uint256" }, {
477
+ "indexed": false,
478
+ "internalType": "uint256",
479
+ "name": "rewardAmount",
480
+ "type": "uint256"
481
+ }, { "indexed": false, "internalType": "string", "name": "_anymalTxId", "type": "string" }],
482
+ "name": "MetadataApproved",
483
+ "type": "event"
484
+ }, {
485
+ "anonymous": false,
486
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, {
487
+ "indexed": false,
488
+ "internalType": "string",
489
+ "name": "anymalTxId",
490
+ "type": "string"
491
+ }, { "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, {
492
+ "indexed": false,
493
+ "internalType": "string",
494
+ "name": "nftId",
495
+ "type": "string"
496
+ }, { "indexed": false, "internalType": "string", "name": "metadataURL", "type": "string" }, {
497
+ "indexed": false,
498
+ "internalType": "uint256",
499
+ "name": "campaignId",
500
+ "type": "uint256"
501
+ }, { "indexed": false, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, {
502
+ "indexed": false,
503
+ "internalType": "string",
504
+ "name": "_anymalTxId",
505
+ "type": "string"
506
+ }],
507
+ "name": "MetadataRejected",
508
+ "type": "event"
509
+ }, {
510
+ "anonymous": false,
511
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, {
512
+ "indexed": false,
513
+ "internalType": "string",
514
+ "name": "pid",
515
+ "type": "string"
516
+ }, { "indexed": false, "internalType": "string", "name": "nftId", "type": "string" }, {
517
+ "indexed": false,
518
+ "internalType": "string",
519
+ "name": "metadataURL",
520
+ "type": "string"
521
+ }, { "indexed": false, "internalType": "uint256", "name": "campaignId", "type": "uint256" }, {
522
+ "indexed": false,
523
+ "internalType": "uint256",
524
+ "name": "rewardAmount",
525
+ "type": "uint256"
526
+ }, { "indexed": false, "internalType": "string", "name": "_anymalTxId", "type": "string" }],
527
+ "name": "MetadataSubmitted",
528
+ "type": "event"
529
+ }, {
530
+ "anonymous": false,
531
+ "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }],
532
+ "name": "Paused",
533
+ "type": "event"
534
+ }, {
535
+ "anonymous": false,
536
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, {
537
+ "indexed": false,
538
+ "internalType": "string",
539
+ "name": "pid",
540
+ "type": "string"
541
+ }, { "indexed": false, "internalType": "string", "name": "nftId", "type": "string" }, {
542
+ "indexed": false,
543
+ "internalType": "uint256",
544
+ "name": "rewardAmount",
545
+ "type": "uint256"
546
+ }, { "indexed": false, "internalType": "uint256", "name": "campaignId", "type": "uint256" }, {
547
+ "indexed": false,
548
+ "internalType": "string",
549
+ "name": "_anymalTxId",
550
+ "type": "string"
551
+ }],
552
+ "name": "RewardDistributed",
553
+ "type": "event"
554
+ }, {
555
+ "anonymous": false,
556
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
557
+ "indexed": true,
558
+ "internalType": "bytes32",
559
+ "name": "previousAdminRole",
560
+ "type": "bytes32"
561
+ }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" }],
562
+ "name": "RoleAdminChanged",
563
+ "type": "event"
564
+ }, {
565
+ "anonymous": false,
566
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
567
+ "indexed": true,
568
+ "internalType": "address",
569
+ "name": "account",
570
+ "type": "address"
571
+ }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }],
572
+ "name": "RoleGranted",
573
+ "type": "event"
574
+ }, {
575
+ "anonymous": false,
576
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
577
+ "indexed": true,
578
+ "internalType": "address",
579
+ "name": "account",
580
+ "type": "address"
581
+ }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }],
582
+ "name": "RoleRevoked",
583
+ "type": "event"
584
+ }, {
585
+ "anonymous": false,
586
+ "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }],
587
+ "name": "Unpaused",
588
+ "type": "event"
589
+ }, {
590
+ "anonymous": false,
591
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }],
592
+ "name": "Upgraded",
593
+ "type": "event"
594
+ }, {
595
+ "inputs": [],
596
+ "name": "APPROVER_ROLE",
597
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
598
+ "stateMutability": "view",
599
+ "type": "function"
600
+ }, {
601
+ "inputs": [],
602
+ "name": "DEFAULT_ADMIN_ROLE",
603
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
604
+ "stateMutability": "view",
605
+ "type": "function"
606
+ }, {
607
+ "inputs": [],
608
+ "name": "UPGRADE_INTERFACE_VERSION",
609
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
610
+ "stateMutability": "view",
611
+ "type": "function"
612
+ }, {
613
+ "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, {
614
+ "internalType": "string",
615
+ "name": "_pid",
616
+ "type": "string"
617
+ }, { "internalType": "string", "name": "_nftId", "type": "string" }, {
618
+ "internalType": "string",
619
+ "name": "_metadataURL",
620
+ "type": "string"
621
+ }, { "internalType": "uint256", "name": "_campaignId", "type": "uint256" }, {
622
+ "internalType": "string",
623
+ "name": "_anymalTxId",
624
+ "type": "string"
625
+ }],
626
+ "name": "approveMetadata",
627
+ "outputs": [],
628
+ "stateMutability": "nonpayable",
629
+ "type": "function"
630
+ }, {
631
+ "inputs": [],
632
+ "name": "campaignCount",
633
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
634
+ "stateMutability": "view",
635
+ "type": "function"
636
+ }, {
637
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
638
+ "name": "campaigns",
639
+ "outputs": [{ "internalType": "string", "name": "name", "type": "string" }, {
640
+ "internalType": "uint256",
641
+ "name": "rewardAmount",
642
+ "type": "uint256"
643
+ }, { "internalType": "bool", "name": "isActive", "type": "bool" }],
644
+ "stateMutability": "view",
645
+ "type": "function"
646
+ }, {
647
+ "inputs": [{ "internalType": "string", "name": "_name", "type": "string" }, {
648
+ "internalType": "uint256",
649
+ "name": "_rewardAmount",
650
+ "type": "uint256"
651
+ }],
652
+ "name": "createCampaign",
653
+ "outputs": [],
654
+ "stateMutability": "nonpayable",
655
+ "type": "function"
656
+ }, {
657
+ "inputs": [],
658
+ "name": "defaultRewardAmount",
659
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ }, {
663
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }],
664
+ "name": "getRoleAdmin",
665
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
666
+ "stateMutability": "view",
667
+ "type": "function"
668
+ }, {
669
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
670
+ "internalType": "address",
671
+ "name": "account",
672
+ "type": "address"
673
+ }],
674
+ "name": "grantRole",
675
+ "outputs": [],
676
+ "stateMutability": "nonpayable",
677
+ "type": "function"
678
+ }, {
679
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
680
+ "internalType": "address",
681
+ "name": "account",
682
+ "type": "address"
683
+ }],
684
+ "name": "hasRole",
685
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ }, {
689
+ "inputs": [{
690
+ "internalType": "address",
691
+ "name": "initialOwner",
692
+ "type": "address"
693
+ }, {
694
+ "internalType": "contract IERC20",
695
+ "name": "_rewardToken",
696
+ "type": "address"
697
+ }, { "internalType": "contract IPetToken", "name": "_petToken", "type": "address" }, {
698
+ "internalType": "uint256",
699
+ "name": "_defaultRewardAmount",
700
+ "type": "uint256"
701
+ }],
702
+ "name": "initialize",
703
+ "outputs": [],
704
+ "stateMutability": "nonpayable",
705
+ "type": "function"
706
+ }, {
707
+ "inputs": [],
708
+ "name": "pause",
709
+ "outputs": [],
710
+ "stateMutability": "nonpayable",
711
+ "type": "function"
712
+ }, {
713
+ "inputs": [],
714
+ "name": "paused",
715
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
716
+ "stateMutability": "view",
717
+ "type": "function"
718
+ }, {
719
+ "inputs": [],
720
+ "name": "petToken",
721
+ "outputs": [{ "internalType": "contract IPetToken", "name": "", "type": "address" }],
722
+ "stateMutability": "view",
723
+ "type": "function"
724
+ }, {
725
+ "inputs": [],
726
+ "name": "proxiableUUID",
727
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
728
+ "stateMutability": "view",
729
+ "type": "function"
730
+ }, {
731
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
732
+ "internalType": "address",
733
+ "name": "callerConfirmation",
734
+ "type": "address"
735
+ }],
736
+ "name": "renounceRole",
737
+ "outputs": [],
738
+ "stateMutability": "nonpayable",
739
+ "type": "function"
740
+ }, {
741
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
742
+ "internalType": "address",
743
+ "name": "account",
744
+ "type": "address"
745
+ }],
746
+ "name": "revokeRole",
747
+ "outputs": [],
748
+ "stateMutability": "nonpayable",
749
+ "type": "function"
750
+ }, {
751
+ "inputs": [],
752
+ "name": "rewardToken",
753
+ "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
754
+ "stateMutability": "view",
755
+ "type": "function"
756
+ }, {
757
+ "inputs": [{ "internalType": "string", "name": "_pid", "type": "string" }, {
758
+ "internalType": "string",
759
+ "name": "_nftId",
760
+ "type": "string"
761
+ }, { "internalType": "string", "name": "_metadataURL", "type": "string" }, {
762
+ "internalType": "uint256",
763
+ "name": "_campaignId",
764
+ "type": "uint256"
765
+ }, { "internalType": "string", "name": "_anymalTxId", "type": "string" }],
766
+ "name": "submitMetadata",
767
+ "outputs": [],
768
+ "stateMutability": "nonpayable",
769
+ "type": "function"
770
+ }, {
771
+ "inputs": [{ "internalType": "string", "name": "_pid", "type": "string" }, {
772
+ "internalType": "string",
773
+ "name": "_nftId",
774
+ "type": "string"
775
+ }, { "internalType": "string", "name": "_metadataURL", "type": "string" }, {
776
+ "internalType": "string",
777
+ "name": "_campaignName",
778
+ "type": "string"
779
+ }, { "internalType": "string", "name": "_anymalTxId", "type": "string" }],
780
+ "name": "submitMetadataByCampaignName",
781
+ "outputs": [],
782
+ "stateMutability": "nonpayable",
783
+ "type": "function"
784
+ }, {
785
+ "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }],
786
+ "name": "supportsInterface",
787
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
788
+ "stateMutability": "view",
789
+ "type": "function"
790
+ }, {
791
+ "inputs": [],
792
+ "name": "unpause",
793
+ "outputs": [],
794
+ "stateMutability": "nonpayable",
795
+ "type": "function"
796
+ }, {
797
+ "inputs": [{ "internalType": "uint256", "name": "_campaignId", "type": "uint256" }, {
798
+ "internalType": "uint256",
799
+ "name": "_rewardAmount",
800
+ "type": "uint256"
801
+ }, { "internalType": "bool", "name": "_isActive", "type": "bool" }],
802
+ "name": "updateCampaign",
803
+ "outputs": [],
804
+ "stateMutability": "nonpayable",
805
+ "type": "function"
806
+ }, {
807
+ "inputs": [{ "internalType": "uint256", "name": "_rewardAmount", "type": "uint256" }],
808
+ "name": "updateDefaultReward",
809
+ "outputs": [],
810
+ "stateMutability": "nonpayable",
811
+ "type": "function"
812
+ }, {
813
+ "inputs": [{
814
+ "internalType": "address",
815
+ "name": "newImplementation",
816
+ "type": "address"
817
+ }, { "internalType": "bytes", "name": "data", "type": "bytes" }],
818
+ "name": "upgradeToAndCall",
819
+ "outputs": [],
820
+ "stateMutability": "payable",
821
+ "type": "function"
822
+ }];
823
+ var MARKETPLACE_ABI = [{
824
+ "inputs": [{ "internalType": "address", "name": "target", "type": "address" }],
825
+ "name": "AddressEmptyCode",
826
+ "type": "error"
827
+ }, { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" }, {
828
+ "inputs": [{
829
+ "internalType": "uint256",
830
+ "name": "length",
831
+ "type": "uint256"
832
+ }],
833
+ "name": "ECDSAInvalidSignatureLength",
834
+ "type": "error"
835
+ }, {
836
+ "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }],
837
+ "name": "ECDSAInvalidSignatureS",
838
+ "type": "error"
839
+ }, {
840
+ "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }],
841
+ "name": "ERC1967InvalidImplementation",
842
+ "type": "error"
843
+ }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, {
844
+ "inputs": [],
845
+ "name": "FailedCall",
846
+ "type": "error"
847
+ }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, {
848
+ "inputs": [],
849
+ "name": "NotInitializing",
850
+ "type": "error"
851
+ }, {
852
+ "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }],
853
+ "name": "OwnableInvalidOwner",
854
+ "type": "error"
855
+ }, {
856
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
857
+ "name": "OwnableUnauthorizedAccount",
858
+ "type": "error"
859
+ }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, {
860
+ "inputs": [{
861
+ "internalType": "bytes32",
862
+ "name": "slot",
863
+ "type": "bytes32"
864
+ }],
865
+ "name": "UUPSUnsupportedProxiableUUID",
866
+ "type": "error"
867
+ }, {
868
+ "anonymous": false,
869
+ "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }],
870
+ "name": "Initialized",
871
+ "type": "event"
872
+ }, {
873
+ "anonymous": false,
874
+ "inputs": [{
875
+ "indexed": true,
876
+ "internalType": "address",
877
+ "name": "previousOwner",
878
+ "type": "address"
879
+ }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }],
880
+ "name": "OwnershipTransferred",
881
+ "type": "event"
882
+ }, {
883
+ "anonymous": false,
884
+ "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, {
885
+ "indexed": true,
886
+ "internalType": "address",
887
+ "name": "payer",
888
+ "type": "address"
889
+ }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, {
890
+ "indexed": false,
891
+ "internalType": "string",
892
+ "name": "anymalNftId",
893
+ "type": "string"
894
+ }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, {
895
+ "indexed": false,
896
+ "internalType": "uint256",
897
+ "name": "timestamp",
898
+ "type": "uint256"
899
+ }],
900
+ "name": "PartialPaymentMade",
901
+ "type": "event"
902
+ }, {
903
+ "anonymous": false,
904
+ "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, {
905
+ "indexed": true,
906
+ "internalType": "address",
907
+ "name": "payer",
908
+ "type": "address"
909
+ }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, {
910
+ "indexed": false,
911
+ "internalType": "uint256",
912
+ "name": "timestamp",
913
+ "type": "uint256"
914
+ }],
915
+ "name": "PaymentMade",
916
+ "type": "event"
917
+ }, {
918
+ "anonymous": false,
919
+ "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, {
920
+ "indexed": true,
921
+ "internalType": "address",
922
+ "name": "payer",
923
+ "type": "address"
924
+ }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, {
925
+ "indexed": false,
926
+ "internalType": "uint256",
927
+ "name": "refundedAmount",
928
+ "type": "uint256"
929
+ }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }],
930
+ "name": "RefundProcessed",
931
+ "type": "event"
932
+ }, {
933
+ "anonymous": false,
934
+ "inputs": [{ "indexed": false, "internalType": "bool", "name": "enabled", "type": "bool" }],
935
+ "name": "SignatureCheckToggled",
936
+ "type": "event"
937
+ }, {
938
+ "anonymous": false,
939
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }],
940
+ "name": "Upgraded",
941
+ "type": "event"
942
+ }, {
943
+ "inputs": [],
944
+ "name": "UPGRADE_INTERFACE_VERSION",
945
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
946
+ "stateMutability": "view",
947
+ "type": "function"
948
+ }, {
949
+ "inputs": [],
950
+ "name": "authorizer",
951
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
952
+ "stateMutability": "view",
953
+ "type": "function"
954
+ }, {
955
+ "inputs": [{ "internalType": "address", "name": "_initialOwner", "type": "address" }, {
956
+ "internalType": "address",
957
+ "name": "_authorizer",
958
+ "type": "address"
959
+ }, { "internalType": "address", "name": "_kibbleToken", "type": "address" }],
960
+ "name": "initialize",
961
+ "outputs": [],
962
+ "stateMutability": "nonpayable",
963
+ "type": "function"
964
+ }, {
965
+ "inputs": [],
966
+ "name": "kibbleToken",
967
+ "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
968
+ "stateMutability": "view",
969
+ "type": "function"
970
+ }, {
971
+ "inputs": [],
972
+ "name": "owner",
973
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
974
+ "stateMutability": "view",
975
+ "type": "function"
976
+ }, {
977
+ "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, {
978
+ "internalType": "address",
979
+ "name": "",
980
+ "type": "address"
981
+ }],
982
+ "name": "paidAmounts",
983
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
984
+ "stateMutability": "view",
985
+ "type": "function"
986
+ }, {
987
+ "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, {
988
+ "internalType": "string",
989
+ "name": "anymalNftId",
990
+ "type": "string"
991
+ }, { "internalType": "string", "name": "pid", "type": "string" }, {
992
+ "internalType": "uint256",
993
+ "name": "amountInTokens",
994
+ "type": "uint256"
995
+ }, { "internalType": "uint256", "name": "maxTokenPayment", "type": "uint256" }, {
996
+ "internalType": "bytes32",
997
+ "name": "nonce",
998
+ "type": "bytes32"
999
+ }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, {
1000
+ "internalType": "bytes",
1001
+ "name": "backendSignature",
1002
+ "type": "bytes"
1003
+ }],
1004
+ "name": "partialPay",
1005
+ "outputs": [],
1006
+ "stateMutability": "nonpayable",
1007
+ "type": "function"
1008
+ }, {
1009
+ "inputs": [],
1010
+ "name": "proxiableUUID",
1011
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1012
+ "stateMutability": "view",
1013
+ "type": "function"
1014
+ }, {
1015
+ "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, {
1016
+ "internalType": "address",
1017
+ "name": "payer",
1018
+ "type": "address"
1019
+ }, { "internalType": "string", "name": "pid", "type": "string" }],
1020
+ "name": "refund",
1021
+ "outputs": [],
1022
+ "stateMutability": "nonpayable",
1023
+ "type": "function"
1024
+ }, {
1025
+ "inputs": [],
1026
+ "name": "renounceOwnership",
1027
+ "outputs": [],
1028
+ "stateMutability": "nonpayable",
1029
+ "type": "function"
1030
+ }, {
1031
+ "inputs": [{ "internalType": "address", "name": "_authorizer", "type": "address" }],
1032
+ "name": "setAuthorizer",
1033
+ "outputs": [],
1034
+ "stateMutability": "nonpayable",
1035
+ "type": "function"
1036
+ }, {
1037
+ "inputs": [{ "internalType": "bool", "name": "enabled", "type": "bool" }],
1038
+ "name": "setSignatureCheckEnabled",
1039
+ "outputs": [],
1040
+ "stateMutability": "nonpayable",
1041
+ "type": "function"
1042
+ }, {
1043
+ "inputs": [],
1044
+ "name": "signatureCheckEnabled",
1045
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1046
+ "stateMutability": "view",
1047
+ "type": "function"
1048
+ }, {
1049
+ "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
1050
+ "name": "transferOwnership",
1051
+ "outputs": [],
1052
+ "stateMutability": "nonpayable",
1053
+ "type": "function"
1054
+ }, {
1055
+ "inputs": [{
1056
+ "internalType": "address",
1057
+ "name": "newImplementation",
1058
+ "type": "address"
1059
+ }, { "internalType": "bytes", "name": "data", "type": "bytes" }],
1060
+ "name": "upgradeToAndCall",
1061
+ "outputs": [],
1062
+ "stateMutability": "payable",
1063
+ "type": "function"
1064
+ }, {
1065
+ "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1066
+ "name": "usedNonces",
1067
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1068
+ "stateMutability": "view",
1069
+ "type": "function"
1070
+ }, {
1071
+ "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, {
1072
+ "internalType": "uint256",
1073
+ "name": "amount",
1074
+ "type": "uint256"
1075
+ }],
1076
+ "name": "withdrawKibble",
1077
+ "outputs": [],
1078
+ "stateMutability": "nonpayable",
1079
+ "type": "function"
1080
+ }];
1081
+ var ORGANIZATION_BEACON_ABI = [{
1082
+ "inputs": [{
1083
+ "internalType": "address",
1084
+ "name": "_initialImplementation",
1085
+ "type": "address"
1086
+ }, { "internalType": "address", "name": "_initialOwner", "type": "address" }, {
1087
+ "internalType": "address",
1088
+ "name": "_anymalNFTProxy",
1089
+ "type": "address"
1090
+ }],
1091
+ "stateMutability": "nonpayable",
1092
+ "type": "constructor"
1093
+ }, {
1094
+ "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }],
1095
+ "name": "BeaconInvalidImplementation",
1096
+ "type": "error"
1097
+ }, {
1098
+ "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }],
1099
+ "name": "OwnableInvalidOwner",
1100
+ "type": "error"
1101
+ }, {
1102
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
1103
+ "name": "OwnableUnauthorizedAccount",
1104
+ "type": "error"
1105
+ }, {
1106
+ "anonymous": false,
1107
+ "inputs": [{ "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, {
1108
+ "indexed": false,
1109
+ "internalType": "string",
1110
+ "name": "name",
1111
+ "type": "string"
1112
+ }, { "indexed": false, "internalType": "address", "name": "proxyAddress", "type": "address" }, {
1113
+ "indexed": false,
1114
+ "internalType": "address",
1115
+ "name": "networkAdmin",
1116
+ "type": "address"
1117
+ }, { "indexed": false, "internalType": "address", "name": "userAdmin", "type": "address" }],
1118
+ "name": "NewOrganizationCreated",
1119
+ "type": "event"
1120
+ }, {
1121
+ "anonymous": false,
1122
+ "inputs": [{
1123
+ "indexed": true,
1124
+ "internalType": "address",
1125
+ "name": "previousOwner",
1126
+ "type": "address"
1127
+ }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }],
1128
+ "name": "OwnershipTransferred",
1129
+ "type": "event"
1130
+ }, {
1131
+ "anonymous": false,
1132
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }],
1133
+ "name": "Upgraded",
1134
+ "type": "event"
1135
+ }, {
1136
+ "inputs": [],
1137
+ "name": "anymalNFTProxy",
1138
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1139
+ "stateMutability": "view",
1140
+ "type": "function"
1141
+ }, {
1142
+ "inputs": [{ "internalType": "address", "name": "_userAdmin", "type": "address" }, {
1143
+ "internalType": "string",
1144
+ "name": "_orgName",
1145
+ "type": "string"
1146
+ }, { "internalType": "string", "name": "_orgPid", "type": "string" }],
1147
+ "name": "createOrganizationProxy",
1148
+ "outputs": [{ "internalType": "address", "name": "proxyAddress", "type": "address" }],
1149
+ "stateMutability": "nonpayable",
1150
+ "type": "function"
1151
+ }, {
1152
+ "inputs": [],
1153
+ "name": "implementation",
1154
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1155
+ "stateMutability": "view",
1156
+ "type": "function"
1157
+ }, {
1158
+ "inputs": [],
1159
+ "name": "owner",
1160
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1161
+ "stateMutability": "view",
1162
+ "type": "function"
1163
+ }, {
1164
+ "inputs": [],
1165
+ "name": "renounceOwnership",
1166
+ "outputs": [],
1167
+ "stateMutability": "nonpayable",
1168
+ "type": "function"
1169
+ }, {
1170
+ "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
1171
+ "name": "transferOwnership",
1172
+ "outputs": [],
1173
+ "stateMutability": "nonpayable",
1174
+ "type": "function"
1175
+ }, {
1176
+ "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }],
1177
+ "name": "upgradeBeaconTo",
1178
+ "outputs": [],
1179
+ "stateMutability": "nonpayable",
1180
+ "type": "function"
1181
+ }, {
1182
+ "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }],
1183
+ "name": "upgradeTo",
1184
+ "outputs": [],
1185
+ "stateMutability": "nonpayable",
1186
+ "type": "function"
1187
+ }];
1188
+ var REWARDABLE_ACTIONS_ABI = [{
1189
+ "inputs": [],
1190
+ "stateMutability": "nonpayable",
1191
+ "type": "constructor"
1192
+ }, { "inputs": [], "name": "AccessControlBadConfirmation", "type": "error" }, {
1193
+ "inputs": [{
1194
+ "internalType": "address",
1195
+ "name": "account",
1196
+ "type": "address"
1197
+ }, { "internalType": "bytes32", "name": "neededRole", "type": "bytes32" }],
1198
+ "name": "AccessControlUnauthorizedAccount",
1199
+ "type": "error"
1200
+ }, {
1201
+ "inputs": [{ "internalType": "address", "name": "target", "type": "address" }],
1202
+ "name": "AddressEmptyCode",
1203
+ "type": "error"
1204
+ }, {
1205
+ "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }],
1206
+ "name": "ERC1967InvalidImplementation",
1207
+ "type": "error"
1208
+ }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, {
1209
+ "inputs": [],
1210
+ "name": "FailedCall",
1211
+ "type": "error"
1212
+ }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, {
1213
+ "inputs": [],
1214
+ "name": "NotInitializing",
1215
+ "type": "error"
1216
+ }, { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" }, {
1217
+ "inputs": [],
1218
+ "name": "UUPSUnauthorizedCallContext",
1219
+ "type": "error"
1220
+ }, {
1221
+ "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }],
1222
+ "name": "UUPSUnsupportedProxiableUUID",
1223
+ "type": "error"
1224
+ }, {
1225
+ "anonymous": false,
1226
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, {
1227
+ "indexed": false,
1228
+ "internalType": "uint256",
1229
+ "name": "rewardAmount",
1230
+ "type": "uint256"
1231
+ }, { "indexed": false, "internalType": "uint256", "name": "maxClaims", "type": "uint256" }],
1232
+ "name": "ActionTypeAdded",
1233
+ "type": "event"
1234
+ }, {
1235
+ "anonymous": false,
1236
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, {
1237
+ "indexed": false,
1238
+ "internalType": "uint256",
1239
+ "name": "newRewardAmount",
1240
+ "type": "uint256"
1241
+ }, { "indexed": false, "internalType": "uint256", "name": "newMaxClaims", "type": "uint256" }],
1242
+ "name": "ActionTypeUpdated",
1243
+ "type": "event"
1244
+ }, {
1245
+ "anonymous": false,
1246
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, {
1247
+ "indexed": true,
1248
+ "internalType": "address",
1249
+ "name": "user",
1250
+ "type": "address"
1251
+ }, { "indexed": true, "internalType": "uint256", "name": "index", "type": "uint256" }, {
1252
+ "indexed": false,
1253
+ "internalType": "uint256",
1254
+ "name": "quantity",
1255
+ "type": "uint256"
1256
+ }, { "indexed": false, "internalType": "uint16", "name": "multiplier", "type": "uint16" }],
1257
+ "name": "ActionValidated",
1258
+ "type": "event"
1259
+ }, {
1260
+ "anonymous": false,
1261
+ "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }],
1262
+ "name": "Initialized",
1263
+ "type": "event"
1264
+ }, {
1265
+ "anonymous": false,
1266
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, {
1267
+ "indexed": true,
1268
+ "internalType": "address",
1269
+ "name": "user",
1270
+ "type": "address"
1271
+ }, { "indexed": true, "internalType": "uint256", "name": "index", "type": "uint256" }, {
1272
+ "indexed": false,
1273
+ "internalType": "uint256",
1274
+ "name": "amount",
1275
+ "type": "uint256"
1276
+ }],
1277
+ "name": "RewardClaimedByIndex",
1278
+ "type": "event"
1279
+ }, {
1280
+ "anonymous": false,
1281
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
1282
+ "indexed": true,
1283
+ "internalType": "bytes32",
1284
+ "name": "previousAdminRole",
1285
+ "type": "bytes32"
1286
+ }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" }],
1287
+ "name": "RoleAdminChanged",
1288
+ "type": "event"
1289
+ }, {
1290
+ "anonymous": false,
1291
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
1292
+ "indexed": true,
1293
+ "internalType": "address",
1294
+ "name": "account",
1295
+ "type": "address"
1296
+ }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }],
1297
+ "name": "RoleGranted",
1298
+ "type": "event"
1299
+ }, {
1300
+ "anonymous": false,
1301
+ "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
1302
+ "indexed": true,
1303
+ "internalType": "address",
1304
+ "name": "account",
1305
+ "type": "address"
1306
+ }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }],
1307
+ "name": "RoleRevoked",
1308
+ "type": "event"
1309
+ }, {
1310
+ "anonymous": false,
1311
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }],
1312
+ "name": "Upgraded",
1313
+ "type": "event"
1314
+ }, {
1315
+ "inputs": [],
1316
+ "name": "ADMIN_ROLE",
1317
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1318
+ "stateMutability": "view",
1319
+ "type": "function"
1320
+ }, {
1321
+ "inputs": [],
1322
+ "name": "APPROVER_ROLE",
1323
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1324
+ "stateMutability": "view",
1325
+ "type": "function"
1326
+ }, {
1327
+ "inputs": [],
1328
+ "name": "DEFAULT_ADMIN_ROLE",
1329
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1330
+ "stateMutability": "view",
1331
+ "type": "function"
1332
+ }, {
1333
+ "inputs": [],
1334
+ "name": "UPGRADE_INTERFACE_VERSION",
1335
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
1336
+ "stateMutability": "view",
1337
+ "type": "function"
1338
+ }, {
1339
+ "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1340
+ "name": "actionConfigs",
1341
+ "outputs": [{ "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, {
1342
+ "internalType": "uint256",
1343
+ "name": "maxClaims",
1344
+ "type": "uint256"
1345
+ }, { "internalType": "bool", "name": "exists", "type": "bool" }],
1346
+ "stateMutability": "view",
1347
+ "type": "function"
1348
+ }, {
1349
+ "inputs": [{ "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, {
1350
+ "internalType": "uint256",
1351
+ "name": "rewardAmount",
1352
+ "type": "uint256"
1353
+ }, { "internalType": "uint256", "name": "maxClaims", "type": "uint256" }],
1354
+ "name": "addActionType",
1355
+ "outputs": [],
1356
+ "stateMutability": "nonpayable",
1357
+ "type": "function"
1358
+ }, {
1359
+ "inputs": [{ "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, {
1360
+ "internalType": "uint256",
1361
+ "name": "index",
1362
+ "type": "uint256"
1363
+ }],
1364
+ "name": "claimByIndex",
1365
+ "outputs": [],
1366
+ "stateMutability": "nonpayable",
1367
+ "type": "function"
1368
+ }, {
1369
+ "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }],
1370
+ "name": "depositRewards",
1371
+ "outputs": [],
1372
+ "stateMutability": "nonpayable",
1373
+ "type": "function"
1374
+ }, {
1375
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }],
1376
+ "name": "getRoleAdmin",
1377
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1378
+ "stateMutability": "view",
1379
+ "type": "function"
1380
+ }, {
1381
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
1382
+ "internalType": "address",
1383
+ "name": "account",
1384
+ "type": "address"
1385
+ }],
1386
+ "name": "grantRole",
1387
+ "outputs": [],
1388
+ "stateMutability": "nonpayable",
1389
+ "type": "function"
1390
+ }, {
1391
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
1392
+ "internalType": "address",
1393
+ "name": "account",
1394
+ "type": "address"
1395
+ }],
1396
+ "name": "hasRole",
1397
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1398
+ "stateMutability": "view",
1399
+ "type": "function"
1400
+ }, {
1401
+ "inputs": [{
1402
+ "internalType": "address",
1403
+ "name": "initialOwner",
1404
+ "type": "address"
1405
+ }, { "internalType": "contract IERC20", "name": "_rewardToken", "type": "address" }],
1406
+ "name": "initialize",
1407
+ "outputs": [],
1408
+ "stateMutability": "nonpayable",
1409
+ "type": "function"
1410
+ }, {
1411
+ "inputs": [],
1412
+ "name": "proxiableUUID",
1413
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1414
+ "stateMutability": "view",
1415
+ "type": "function"
1416
+ }, {
1417
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
1418
+ "internalType": "address",
1419
+ "name": "callerConfirmation",
1420
+ "type": "address"
1421
+ }],
1422
+ "name": "renounceRole",
1423
+ "outputs": [],
1424
+ "stateMutability": "nonpayable",
1425
+ "type": "function"
1426
+ }, {
1427
+ "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, {
1428
+ "internalType": "address",
1429
+ "name": "account",
1430
+ "type": "address"
1431
+ }],
1432
+ "name": "revokeRole",
1433
+ "outputs": [],
1434
+ "stateMutability": "nonpayable",
1435
+ "type": "function"
1436
+ }, {
1437
+ "inputs": [],
1438
+ "name": "rewardToken",
1439
+ "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
1440
+ "stateMutability": "view",
1441
+ "type": "function"
1442
+ }, {
1443
+ "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }],
1444
+ "name": "supportsInterface",
1445
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1446
+ "stateMutability": "view",
1447
+ "type": "function"
1448
+ }, {
1449
+ "inputs": [{ "internalType": "address", "name": "user", "type": "address" }, {
1450
+ "internalType": "bytes32",
1451
+ "name": "actionId",
1452
+ "type": "bytes32"
1453
+ }],
1454
+ "name": "totalValidatedSlots",
1455
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1456
+ "stateMutability": "view",
1457
+ "type": "function"
1458
+ }, {
1459
+ "inputs": [{ "internalType": "address", "name": "user", "type": "address" }, {
1460
+ "internalType": "bytes32",
1461
+ "name": "actionId",
1462
+ "type": "bytes32"
1463
+ }],
1464
+ "name": "unclaimedSlots",
1465
+ "outputs": [{ "internalType": "uint256", "name": "count", "type": "uint256" }],
1466
+ "stateMutability": "view",
1467
+ "type": "function"
1468
+ }, {
1469
+ "inputs": [{ "internalType": "bytes32", "name": "actionId", "type": "bytes32" }, {
1470
+ "internalType": "uint256",
1471
+ "name": "newRewardAmount",
1472
+ "type": "uint256"
1473
+ }, { "internalType": "uint256", "name": "newMaxClaims", "type": "uint256" }],
1474
+ "name": "updateActionType",
1475
+ "outputs": [],
1476
+ "stateMutability": "nonpayable",
1477
+ "type": "function"
1478
+ }, {
1479
+ "inputs": [{
1480
+ "internalType": "address",
1481
+ "name": "newImplementation",
1482
+ "type": "address"
1483
+ }, { "internalType": "bytes", "name": "data", "type": "bytes" }],
1484
+ "name": "upgradeToAndCall",
1485
+ "outputs": [],
1486
+ "stateMutability": "payable",
1487
+ "type": "function"
1488
+ }, {
1489
+ "inputs": [{ "internalType": "address", "name": "user", "type": "address" }, {
1490
+ "internalType": "bytes32",
1491
+ "name": "actionId",
1492
+ "type": "bytes32"
1493
+ }, { "internalType": "uint256", "name": "quantity", "type": "uint256" }, {
1494
+ "internalType": "uint16",
1495
+ "name": "multiplier",
1496
+ "type": "uint16"
1497
+ }],
1498
+ "name": "validateAction",
1499
+ "outputs": [],
1500
+ "stateMutability": "nonpayable",
1501
+ "type": "function"
1502
+ }, {
1503
+ "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, {
1504
+ "internalType": "address",
1505
+ "name": "",
1506
+ "type": "address"
1507
+ }, { "internalType": "uint256", "name": "", "type": "uint256" }],
1508
+ "name": "validations",
1509
+ "outputs": [{ "internalType": "uint256", "name": "quantity", "type": "uint256" }, {
1510
+ "internalType": "uint16",
1511
+ "name": "multiplier",
1512
+ "type": "uint16"
1513
+ }, { "internalType": "bool", "name": "claimed", "type": "bool" }],
1514
+ "stateMutability": "view",
1515
+ "type": "function"
1516
+ }, {
1517
+ "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }],
1518
+ "name": "withdrawRewards",
1519
+ "outputs": [],
1520
+ "stateMutability": "nonpayable",
1521
+ "type": "function"
1522
+ }];
398
1523
  var ORGANIZATION_IMPL_ABI = [
399
1524
  {
400
1525
  "inputs": [],
@@ -1205,7 +2330,506 @@ var ORGANIZATION_IMPL_ABI = [
1205
2330
  "type": "function"
1206
2331
  }
1207
2332
  ];
1208
- var KIBBLE_TOKEN_ABI = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "CheckpointUnorderedInsertion", "type": "error" }, { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "length", "type": "uint256" }], "name": "ECDSAInvalidSignatureLength", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "ECDSAInvalidSignatureS", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "increasedSupply", "type": "uint256" }, { "internalType": "uint256", "name": "cap", "type": "uint256" }], "name": "ERC20ExceededSafeSupply", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" }], "name": "ERC20InsufficientAllowance", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" }], "name": "ERC20InsufficientBalance", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "approver", "type": "address" }], "name": "ERC20InvalidApprover", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "receiver", "type": "address" }], "name": "ERC20InvalidReceiver", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "ERC20InvalidSender", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }], "name": "ERC20InvalidSpender", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "ERC2612ExpiredSignature", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "address", "name": "owner", "type": "address" }], "name": "ERC2612InvalidSigner", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "timepoint", "type": "uint256" }, { "internalType": "uint48", "name": "clock", "type": "uint48" }], "name": "ERC5805FutureLookup", "type": "error" }, { "inputs": [], "name": "ERC6372InconsistentClock", "type": "error" }, { "inputs": [], "name": "EnforcedPause", "type": "error" }, { "inputs": [], "name": "ExpectedPause", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "currentNonce", "type": "uint256" }], "name": "InvalidAccountNonce", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [{ "internalType": "uint8", "name": "bits", "type": "uint8" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "SafeCastOverflowedUintDowncast", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "expiry", "type": "uint256" }], "name": "VotesExpiredSignature", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "delegator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "fromDelegate", "type": "address" }, { "indexed": true, "internalType": "address", "name": "toDelegate", "type": "address" }], "name": "DelegateChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "delegate", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "previousVotes", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newVotes", "type": "uint256" }], "name": "DelegateVotesChanged", "type": "event" }, { "anonymous": false, "inputs": [], "name": "EIP712DomainChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "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": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Transfer", "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": "CLOCK_MODE", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DOMAIN_SEPARATOR", "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": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "burnFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint32", "name": "pos", "type": "uint32" }], "name": "checkpoints", "outputs": [{ "components": [{ "internalType": "uint48", "name": "_key", "type": "uint48" }, { "internalType": "uint208", "name": "_value", "type": "uint208" }], "internalType": "struct Checkpoints.Checkpoint208", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "clock", "outputs": [{ "internalType": "uint48", "name": "", "type": "uint48" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "delegatee", "type": "address" }], "name": "delegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "delegatee", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "expiry", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "delegateBySig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "delegates", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "eip712Domain", "outputs": [{ "internalType": "bytes1", "name": "fields", "type": "bytes1" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "version", "type": "string" }, { "internalType": "uint256", "name": "chainId", "type": "uint256" }, { "internalType": "address", "name": "verifyingContract", "type": "address" }, { "internalType": "bytes32", "name": "salt", "type": "bytes32" }, { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "timepoint", "type": "uint256" }], "name": "getPastTotalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "timepoint", "type": "uint256" }], "name": "getPastVotes", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "getVotes", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "initialOwner", "type": "address" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "nonces", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "numCheckpoints", "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "permit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpause", "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" }];
2333
+ var KIBBLE_TOKEN_ABI = [{
2334
+ "inputs": [],
2335
+ "stateMutability": "nonpayable",
2336
+ "type": "constructor"
2337
+ }, {
2338
+ "inputs": [{ "internalType": "address", "name": "target", "type": "address" }],
2339
+ "name": "AddressEmptyCode",
2340
+ "type": "error"
2341
+ }, { "inputs": [], "name": "CheckpointUnorderedInsertion", "type": "error" }, {
2342
+ "inputs": [],
2343
+ "name": "ECDSAInvalidSignature",
2344
+ "type": "error"
2345
+ }, {
2346
+ "inputs": [{ "internalType": "uint256", "name": "length", "type": "uint256" }],
2347
+ "name": "ECDSAInvalidSignatureLength",
2348
+ "type": "error"
2349
+ }, {
2350
+ "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }],
2351
+ "name": "ECDSAInvalidSignatureS",
2352
+ "type": "error"
2353
+ }, {
2354
+ "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }],
2355
+ "name": "ERC1967InvalidImplementation",
2356
+ "type": "error"
2357
+ }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, {
2358
+ "inputs": [{
2359
+ "internalType": "uint256",
2360
+ "name": "increasedSupply",
2361
+ "type": "uint256"
2362
+ }, { "internalType": "uint256", "name": "cap", "type": "uint256" }],
2363
+ "name": "ERC20ExceededSafeSupply",
2364
+ "type": "error"
2365
+ }, {
2366
+ "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, {
2367
+ "internalType": "uint256",
2368
+ "name": "allowance",
2369
+ "type": "uint256"
2370
+ }, { "internalType": "uint256", "name": "needed", "type": "uint256" }],
2371
+ "name": "ERC20InsufficientAllowance",
2372
+ "type": "error"
2373
+ }, {
2374
+ "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, {
2375
+ "internalType": "uint256",
2376
+ "name": "balance",
2377
+ "type": "uint256"
2378
+ }, { "internalType": "uint256", "name": "needed", "type": "uint256" }],
2379
+ "name": "ERC20InsufficientBalance",
2380
+ "type": "error"
2381
+ }, {
2382
+ "inputs": [{ "internalType": "address", "name": "approver", "type": "address" }],
2383
+ "name": "ERC20InvalidApprover",
2384
+ "type": "error"
2385
+ }, {
2386
+ "inputs": [{ "internalType": "address", "name": "receiver", "type": "address" }],
2387
+ "name": "ERC20InvalidReceiver",
2388
+ "type": "error"
2389
+ }, {
2390
+ "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }],
2391
+ "name": "ERC20InvalidSender",
2392
+ "type": "error"
2393
+ }, {
2394
+ "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }],
2395
+ "name": "ERC20InvalidSpender",
2396
+ "type": "error"
2397
+ }, {
2398
+ "inputs": [{ "internalType": "uint256", "name": "deadline", "type": "uint256" }],
2399
+ "name": "ERC2612ExpiredSignature",
2400
+ "type": "error"
2401
+ }, {
2402
+ "inputs": [{ "internalType": "address", "name": "signer", "type": "address" }, {
2403
+ "internalType": "address",
2404
+ "name": "owner",
2405
+ "type": "address"
2406
+ }],
2407
+ "name": "ERC2612InvalidSigner",
2408
+ "type": "error"
2409
+ }, {
2410
+ "inputs": [{ "internalType": "uint256", "name": "timepoint", "type": "uint256" }, {
2411
+ "internalType": "uint48",
2412
+ "name": "clock",
2413
+ "type": "uint48"
2414
+ }],
2415
+ "name": "ERC5805FutureLookup",
2416
+ "type": "error"
2417
+ }, { "inputs": [], "name": "ERC6372InconsistentClock", "type": "error" }, {
2418
+ "inputs": [],
2419
+ "name": "EnforcedPause",
2420
+ "type": "error"
2421
+ }, { "inputs": [], "name": "ExpectedPause", "type": "error" }, {
2422
+ "inputs": [],
2423
+ "name": "FailedCall",
2424
+ "type": "error"
2425
+ }, {
2426
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, {
2427
+ "internalType": "uint256",
2428
+ "name": "currentNonce",
2429
+ "type": "uint256"
2430
+ }],
2431
+ "name": "InvalidAccountNonce",
2432
+ "type": "error"
2433
+ }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, {
2434
+ "inputs": [],
2435
+ "name": "NotInitializing",
2436
+ "type": "error"
2437
+ }, {
2438
+ "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }],
2439
+ "name": "OwnableInvalidOwner",
2440
+ "type": "error"
2441
+ }, {
2442
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
2443
+ "name": "OwnableUnauthorizedAccount",
2444
+ "type": "error"
2445
+ }, {
2446
+ "inputs": [{ "internalType": "uint8", "name": "bits", "type": "uint8" }, {
2447
+ "internalType": "uint256",
2448
+ "name": "value",
2449
+ "type": "uint256"
2450
+ }],
2451
+ "name": "SafeCastOverflowedUintDowncast",
2452
+ "type": "error"
2453
+ }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, {
2454
+ "inputs": [{
2455
+ "internalType": "bytes32",
2456
+ "name": "slot",
2457
+ "type": "bytes32"
2458
+ }],
2459
+ "name": "UUPSUnsupportedProxiableUUID",
2460
+ "type": "error"
2461
+ }, {
2462
+ "inputs": [{ "internalType": "uint256", "name": "expiry", "type": "uint256" }],
2463
+ "name": "VotesExpiredSignature",
2464
+ "type": "error"
2465
+ }, {
2466
+ "anonymous": false,
2467
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, {
2468
+ "indexed": true,
2469
+ "internalType": "address",
2470
+ "name": "spender",
2471
+ "type": "address"
2472
+ }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }],
2473
+ "name": "Approval",
2474
+ "type": "event"
2475
+ }, {
2476
+ "anonymous": false,
2477
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "delegator", "type": "address" }, {
2478
+ "indexed": true,
2479
+ "internalType": "address",
2480
+ "name": "fromDelegate",
2481
+ "type": "address"
2482
+ }, { "indexed": true, "internalType": "address", "name": "toDelegate", "type": "address" }],
2483
+ "name": "DelegateChanged",
2484
+ "type": "event"
2485
+ }, {
2486
+ "anonymous": false,
2487
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "delegate", "type": "address" }, {
2488
+ "indexed": false,
2489
+ "internalType": "uint256",
2490
+ "name": "previousVotes",
2491
+ "type": "uint256"
2492
+ }, { "indexed": false, "internalType": "uint256", "name": "newVotes", "type": "uint256" }],
2493
+ "name": "DelegateVotesChanged",
2494
+ "type": "event"
2495
+ }, { "anonymous": false, "inputs": [], "name": "EIP712DomainChanged", "type": "event" }, {
2496
+ "anonymous": false,
2497
+ "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }],
2498
+ "name": "Initialized",
2499
+ "type": "event"
2500
+ }, {
2501
+ "anonymous": false,
2502
+ "inputs": [{
2503
+ "indexed": true,
2504
+ "internalType": "address",
2505
+ "name": "previousOwner",
2506
+ "type": "address"
2507
+ }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }],
2508
+ "name": "OwnershipTransferred",
2509
+ "type": "event"
2510
+ }, {
2511
+ "anonymous": false,
2512
+ "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }],
2513
+ "name": "Paused",
2514
+ "type": "event"
2515
+ }, {
2516
+ "anonymous": false,
2517
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, {
2518
+ "indexed": true,
2519
+ "internalType": "address",
2520
+ "name": "to",
2521
+ "type": "address"
2522
+ }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }],
2523
+ "name": "Transfer",
2524
+ "type": "event"
2525
+ }, {
2526
+ "anonymous": false,
2527
+ "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }],
2528
+ "name": "Unpaused",
2529
+ "type": "event"
2530
+ }, {
2531
+ "anonymous": false,
2532
+ "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }],
2533
+ "name": "Upgraded",
2534
+ "type": "event"
2535
+ }, {
2536
+ "inputs": [],
2537
+ "name": "CLOCK_MODE",
2538
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
2539
+ "stateMutability": "view",
2540
+ "type": "function"
2541
+ }, {
2542
+ "inputs": [],
2543
+ "name": "DOMAIN_SEPARATOR",
2544
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
2545
+ "stateMutability": "view",
2546
+ "type": "function"
2547
+ }, {
2548
+ "inputs": [],
2549
+ "name": "UPGRADE_INTERFACE_VERSION",
2550
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
2551
+ "stateMutability": "view",
2552
+ "type": "function"
2553
+ }, {
2554
+ "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, {
2555
+ "internalType": "address",
2556
+ "name": "spender",
2557
+ "type": "address"
2558
+ }],
2559
+ "name": "allowance",
2560
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
2561
+ "stateMutability": "view",
2562
+ "type": "function"
2563
+ }, {
2564
+ "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, {
2565
+ "internalType": "uint256",
2566
+ "name": "value",
2567
+ "type": "uint256"
2568
+ }],
2569
+ "name": "approve",
2570
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
2571
+ "stateMutability": "nonpayable",
2572
+ "type": "function"
2573
+ }, {
2574
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
2575
+ "name": "balanceOf",
2576
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
2577
+ "stateMutability": "view",
2578
+ "type": "function"
2579
+ }, {
2580
+ "inputs": [{ "internalType": "uint256", "name": "value", "type": "uint256" }],
2581
+ "name": "burn",
2582
+ "outputs": [],
2583
+ "stateMutability": "nonpayable",
2584
+ "type": "function"
2585
+ }, {
2586
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, {
2587
+ "internalType": "uint256",
2588
+ "name": "value",
2589
+ "type": "uint256"
2590
+ }],
2591
+ "name": "burnFrom",
2592
+ "outputs": [],
2593
+ "stateMutability": "nonpayable",
2594
+ "type": "function"
2595
+ }, {
2596
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, {
2597
+ "internalType": "uint32",
2598
+ "name": "pos",
2599
+ "type": "uint32"
2600
+ }],
2601
+ "name": "checkpoints",
2602
+ "outputs": [{
2603
+ "components": [{
2604
+ "internalType": "uint48",
2605
+ "name": "_key",
2606
+ "type": "uint48"
2607
+ }, { "internalType": "uint208", "name": "_value", "type": "uint208" }],
2608
+ "internalType": "struct Checkpoints.Checkpoint208",
2609
+ "name": "",
2610
+ "type": "tuple"
2611
+ }],
2612
+ "stateMutability": "view",
2613
+ "type": "function"
2614
+ }, {
2615
+ "inputs": [],
2616
+ "name": "clock",
2617
+ "outputs": [{ "internalType": "uint48", "name": "", "type": "uint48" }],
2618
+ "stateMutability": "view",
2619
+ "type": "function"
2620
+ }, {
2621
+ "inputs": [],
2622
+ "name": "decimals",
2623
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
2624
+ "stateMutability": "view",
2625
+ "type": "function"
2626
+ }, {
2627
+ "inputs": [{ "internalType": "address", "name": "delegatee", "type": "address" }],
2628
+ "name": "delegate",
2629
+ "outputs": [],
2630
+ "stateMutability": "nonpayable",
2631
+ "type": "function"
2632
+ }, {
2633
+ "inputs": [{ "internalType": "address", "name": "delegatee", "type": "address" }, {
2634
+ "internalType": "uint256",
2635
+ "name": "nonce",
2636
+ "type": "uint256"
2637
+ }, { "internalType": "uint256", "name": "expiry", "type": "uint256" }, {
2638
+ "internalType": "uint8",
2639
+ "name": "v",
2640
+ "type": "uint8"
2641
+ }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, {
2642
+ "internalType": "bytes32",
2643
+ "name": "s",
2644
+ "type": "bytes32"
2645
+ }],
2646
+ "name": "delegateBySig",
2647
+ "outputs": [],
2648
+ "stateMutability": "nonpayable",
2649
+ "type": "function"
2650
+ }, {
2651
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
2652
+ "name": "delegates",
2653
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
2654
+ "stateMutability": "view",
2655
+ "type": "function"
2656
+ }, {
2657
+ "inputs": [],
2658
+ "name": "eip712Domain",
2659
+ "outputs": [{ "internalType": "bytes1", "name": "fields", "type": "bytes1" }, {
2660
+ "internalType": "string",
2661
+ "name": "name",
2662
+ "type": "string"
2663
+ }, { "internalType": "string", "name": "version", "type": "string" }, {
2664
+ "internalType": "uint256",
2665
+ "name": "chainId",
2666
+ "type": "uint256"
2667
+ }, { "internalType": "address", "name": "verifyingContract", "type": "address" }, {
2668
+ "internalType": "bytes32",
2669
+ "name": "salt",
2670
+ "type": "bytes32"
2671
+ }, { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" }],
2672
+ "stateMutability": "view",
2673
+ "type": "function"
2674
+ }, {
2675
+ "inputs": [{ "internalType": "uint256", "name": "timepoint", "type": "uint256" }],
2676
+ "name": "getPastTotalSupply",
2677
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
2678
+ "stateMutability": "view",
2679
+ "type": "function"
2680
+ }, {
2681
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, {
2682
+ "internalType": "uint256",
2683
+ "name": "timepoint",
2684
+ "type": "uint256"
2685
+ }],
2686
+ "name": "getPastVotes",
2687
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
2688
+ "stateMutability": "view",
2689
+ "type": "function"
2690
+ }, {
2691
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
2692
+ "name": "getVotes",
2693
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
2694
+ "stateMutability": "view",
2695
+ "type": "function"
2696
+ }, {
2697
+ "inputs": [{ "internalType": "address", "name": "initialOwner", "type": "address" }],
2698
+ "name": "initialize",
2699
+ "outputs": [],
2700
+ "stateMutability": "nonpayable",
2701
+ "type": "function"
2702
+ }, {
2703
+ "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, {
2704
+ "internalType": "uint256",
2705
+ "name": "amount",
2706
+ "type": "uint256"
2707
+ }],
2708
+ "name": "mint",
2709
+ "outputs": [],
2710
+ "stateMutability": "nonpayable",
2711
+ "type": "function"
2712
+ }, {
2713
+ "inputs": [],
2714
+ "name": "name",
2715
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
2716
+ "stateMutability": "view",
2717
+ "type": "function"
2718
+ }, {
2719
+ "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }],
2720
+ "name": "nonces",
2721
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
2722
+ "stateMutability": "view",
2723
+ "type": "function"
2724
+ }, {
2725
+ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
2726
+ "name": "numCheckpoints",
2727
+ "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }],
2728
+ "stateMutability": "view",
2729
+ "type": "function"
2730
+ }, {
2731
+ "inputs": [],
2732
+ "name": "owner",
2733
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
2734
+ "stateMutability": "view",
2735
+ "type": "function"
2736
+ }, {
2737
+ "inputs": [],
2738
+ "name": "pause",
2739
+ "outputs": [],
2740
+ "stateMutability": "nonpayable",
2741
+ "type": "function"
2742
+ }, {
2743
+ "inputs": [],
2744
+ "name": "paused",
2745
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
2746
+ "stateMutability": "view",
2747
+ "type": "function"
2748
+ }, {
2749
+ "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, {
2750
+ "internalType": "address",
2751
+ "name": "spender",
2752
+ "type": "address"
2753
+ }, { "internalType": "uint256", "name": "value", "type": "uint256" }, {
2754
+ "internalType": "uint256",
2755
+ "name": "deadline",
2756
+ "type": "uint256"
2757
+ }, { "internalType": "uint8", "name": "v", "type": "uint8" }, {
2758
+ "internalType": "bytes32",
2759
+ "name": "r",
2760
+ "type": "bytes32"
2761
+ }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }],
2762
+ "name": "permit",
2763
+ "outputs": [],
2764
+ "stateMutability": "nonpayable",
2765
+ "type": "function"
2766
+ }, {
2767
+ "inputs": [],
2768
+ "name": "proxiableUUID",
2769
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
2770
+ "stateMutability": "view",
2771
+ "type": "function"
2772
+ }, {
2773
+ "inputs": [],
2774
+ "name": "renounceOwnership",
2775
+ "outputs": [],
2776
+ "stateMutability": "nonpayable",
2777
+ "type": "function"
2778
+ }, {
2779
+ "inputs": [],
2780
+ "name": "symbol",
2781
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
2782
+ "stateMutability": "view",
2783
+ "type": "function"
2784
+ }, {
2785
+ "inputs": [],
2786
+ "name": "totalSupply",
2787
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
2788
+ "stateMutability": "view",
2789
+ "type": "function"
2790
+ }, {
2791
+ "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, {
2792
+ "internalType": "uint256",
2793
+ "name": "value",
2794
+ "type": "uint256"
2795
+ }],
2796
+ "name": "transfer",
2797
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
2798
+ "stateMutability": "nonpayable",
2799
+ "type": "function"
2800
+ }, {
2801
+ "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, {
2802
+ "internalType": "address",
2803
+ "name": "to",
2804
+ "type": "address"
2805
+ }, { "internalType": "uint256", "name": "value", "type": "uint256" }],
2806
+ "name": "transferFrom",
2807
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
2808
+ "stateMutability": "nonpayable",
2809
+ "type": "function"
2810
+ }, {
2811
+ "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
2812
+ "name": "transferOwnership",
2813
+ "outputs": [],
2814
+ "stateMutability": "nonpayable",
2815
+ "type": "function"
2816
+ }, {
2817
+ "inputs": [],
2818
+ "name": "unpause",
2819
+ "outputs": [],
2820
+ "stateMutability": "nonpayable",
2821
+ "type": "function"
2822
+ }, {
2823
+ "inputs": [{
2824
+ "internalType": "address",
2825
+ "name": "newImplementation",
2826
+ "type": "address"
2827
+ }, { "internalType": "bytes", "name": "data", "type": "bytes" }],
2828
+ "name": "upgradeToAndCall",
2829
+ "outputs": [],
2830
+ "stateMutability": "payable",
2831
+ "type": "function"
2832
+ }];
1209
2833
  var LOCAL_ERRORS = [
1210
2834
  ...KIBBLE_TOKEN_ABI.filter((item) => item.type === "error"),
1211
2835
  ...ORGANIZATION_IMPL_ABI.filter((item) => item.type === "error"),
@@ -1222,7 +2846,8 @@ var ERROR_ABI = [...LOCAL_ERRORS, parseAbi([...OZ_ERROR_FRAGMENTS])];
1222
2846
  var ORG_FUNCTION = "executeCall";
1223
2847
 
1224
2848
  // src/utils/anymals/useMintAnymalNFT.ts
1225
- import { useCallback as useCallback10 } from "react";
2849
+ import { encodeFunctionData } from "viem";
2850
+ import { useCallback as useCallback11 } from "react";
1226
2851
 
1227
2852
  // src/helpers/GasEstimateHelper.tsx
1228
2853
  async function applyBundlerGasEstimator(account, bundlerClient, options) {
@@ -1303,7 +2928,7 @@ async function simulateCall(publicClient, target, abi, functionName, args, calle
1303
2928
 
1304
2929
  // src/utils/anymals/useMintAnymalNFT.ts
1305
2930
  function useMintAnymalNFT() {
1306
- return useCallback10(
2931
+ return useCallback11(
1307
2932
  async (pid, nftId, anymalTxId, dbAuthToken, validationContractAddress, smartAccount, bundlerClient) => {
1308
2933
  if (!dbAuthToken || !nftId || !bundlerClient || !smartAccount || !pid || !validationContractAddress) {
1309
2934
  return {
@@ -1355,9 +2980,9 @@ function useMintAnymalNFT() {
1355
2980
  }
1356
2981
 
1357
2982
  // src/utils/anymals/useAddAnymalToDatabase.ts
1358
- import { useCallback as useCallback11 } from "react";
2983
+ import { useCallback as useCallback12 } from "react";
1359
2984
  function useAddAnymalToDatabase() {
1360
- return useCallback11(
2985
+ return useCallback12(
1361
2986
  async (dbAuthToken, endpoint, anymalData) => {
1362
2987
  if (!dbAuthToken) {
1363
2988
  return {
@@ -1430,9 +3055,9 @@ function useAddAnymalToDatabase() {
1430
3055
  }
1431
3056
 
1432
3057
  // src/utils/anymals/useDeleteAnymalFromDatabase.ts
1433
- import { useCallback as useCallback12 } from "react";
3058
+ import { useCallback as useCallback13 } from "react";
1434
3059
  function useDeleteAnymalFromDatabase() {
1435
- return useCallback12(
3060
+ return useCallback13(
1436
3061
  async (dbAuthToken, endpoint, anymalDocID) => {
1437
3062
  if (!dbAuthToken || !endpoint || !anymalDocID) return;
1438
3063
  try {
@@ -1470,9 +3095,9 @@ function useDeleteAnymalFromDatabase() {
1470
3095
  }
1471
3096
 
1472
3097
  // src/utils/anymals/useSaveAnymalMetadata.ts
1473
- import { useCallback as useCallback13 } from "react";
3098
+ import { useCallback as useCallback14 } from "react";
1474
3099
  function useSaveAnymalMetadata() {
1475
- return useCallback13(
3100
+ return useCallback14(
1476
3101
  async (userPid, anymalTxId, idToken, publicKey, nftMetadataInput, authServiceBaseUrl) => {
1477
3102
  const response = await fetch(`${authServiceBaseUrl}/process-nft`, {
1478
3103
  method: "POST",
@@ -1501,9 +3126,9 @@ function useSaveAnymalMetadata() {
1501
3126
  }
1502
3127
 
1503
3128
  // src/utils/anymals/useUpdateAnymalWithNFT.ts
1504
- import { useCallback as useCallback14 } from "react";
3129
+ import { useCallback as useCallback15 } from "react";
1505
3130
  function useUpdateAnymalWithNFT() {
1506
- return useCallback14(
3131
+ return useCallback15(
1507
3132
  async (anymalPassportId, anymalDocId, dbAuthToken, endpoint) => {
1508
3133
  if (!dbAuthToken || !anymalPassportId || !anymalDocId || !endpoint) {
1509
3134
  return {
@@ -1550,7 +3175,7 @@ function useUpdateAnymalWithNFT() {
1550
3175
  }
1551
3176
 
1552
3177
  // src/utils/anymals/useUploadAnymalImage.ts
1553
- import { useCallback as useCallback15 } from "react";
3178
+ import { useCallback as useCallback16 } from "react";
1554
3179
 
1555
3180
  // src/helpers/UploadImageHelper.tsx
1556
3181
  function resizeImage(file, maxWidth = 800, maxHeight = 800, quality = 0.7) {
@@ -1607,7 +3232,7 @@ function toBase64(file) {
1607
3232
 
1608
3233
  // src/utils/anymals/useUploadAnymalImage.ts
1609
3234
  function useUploadAnymalImage() {
1610
- return useCallback15(
3235
+ return useCallback16(
1611
3236
  async (imageFile, type, idToken, publicKey, authServiceBaseUrl, petType, breed, lifestage, anymalPid) => {
1612
3237
  if (!imageFile || !idToken) {
1613
3238
  return {
@@ -1669,7 +3294,7 @@ function useUploadAnymalImage() {
1669
3294
  }
1670
3295
 
1671
3296
  // src/utils/anymals/useFetchAnymals.ts
1672
- import { useCallback as useCallback16 } from "react";
3297
+ import { useCallback as useCallback17 } from "react";
1673
3298
 
1674
3299
  // src/utils/anymals/fetchAnymals.ts
1675
3300
  async function fetchAnymals({
@@ -1722,11 +3347,11 @@ async function fetchAnymals({
1722
3347
 
1723
3348
  // src/utils/anymals/useFetchAnymals.ts
1724
3349
  function useFetchAnymals() {
1725
- return useCallback16(fetchAnymals, []);
3350
+ return useCallback17(fetchAnymals, []);
1726
3351
  }
1727
3352
 
1728
3353
  // src/utils/marketplace/useProcessPartialKibblePayment.ts
1729
- import { useCallback as useCallback17 } from "react";
3354
+ import { useCallback as useCallback18 } from "react";
1730
3355
 
1731
3356
  // src/helpers/ProcessDirectPartialPayment.tsx
1732
3357
  import { encodeFunctionData as encodeFunctionData2 } from "viem";
@@ -1826,7 +3451,7 @@ async function processDirectPartialPayment(marketplaceContract, smartAccount, bu
1826
3451
 
1827
3452
  // src/utils/marketplace/useProcessPartialKibblePayment.ts
1828
3453
  function useProcessPartialKibblePayment() {
1829
- return useCallback17(
3454
+ return useCallback18(
1830
3455
  async (pid, nftId, orderId, dbAuthToken, marketplaceContract, smartAccount, bundlerClient, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) => {
1831
3456
  if (!orderId || !dbAuthToken || !nftId || !bundlerClient || !smartAccount || !pid || !marketplaceContract || !amountInTokens || !maxTokenPayment || !nonce || !deadline) {
1832
3457
  return {
@@ -1882,7 +3507,7 @@ function useProcessPartialKibblePayment() {
1882
3507
  }
1883
3508
 
1884
3509
  // src/utils/marketplace/useApproveKibbleToken.ts
1885
- import { useCallback as useCallback18 } from "react";
3510
+ import { useCallback as useCallback19 } from "react";
1886
3511
 
1887
3512
  // src/helpers/ProcessDirectKibbleApproval.tsx
1888
3513
  import { encodeFunctionData as encodeFunctionData3, erc20Abi } from "viem";
@@ -1927,7 +3552,7 @@ async function processDirectKibbleApproval(kibbleTokenAddress, spenderAddress, s
1927
3552
 
1928
3553
  // src/utils/marketplace/useApproveKibbleToken.ts
1929
3554
  function useApproveKibbleToken() {
1930
- return useCallback18(
3555
+ return useCallback19(
1931
3556
  async (kibbleTokenAddress, marketplaceContract, amount, smartAccount, bundlerClient) => {
1932
3557
  try {
1933
3558
  const result = await processDirectKibbleApproval(
@@ -1954,10 +3579,10 @@ function useApproveKibbleToken() {
1954
3579
  }
1955
3580
 
1956
3581
  // src/utils/organization/useCreateOrganizationBase.ts
1957
- import { useCallback as useCallback19 } from "react";
3582
+ import { useCallback as useCallback20 } from "react";
1958
3583
  import { decodeEventLog, encodeFunctionData as encodeFunctionData4 } from "viem";
1959
3584
  function useCreateOrganizationBase() {
1960
- return useCallback19(
3585
+ return useCallback20(
1961
3586
  /**
1962
3587
  * Creates a new organization on-chain.
1963
3588
  *
@@ -2053,7 +3678,7 @@ function useCreateOrganizationBase() {
2053
3678
  }
2054
3679
 
2055
3680
  // src/utils/organization/useApproveOrgKibbleToken.ts
2056
- import { useCallback as useCallback20 } from "react";
3681
+ import { useCallback as useCallback21 } from "react";
2057
3682
 
2058
3683
  // src/helpers/ProcessOrgKibbleApproval.tsx
2059
3684
  import { encodeFunctionData as encodeFunctionData5, erc20Abi as erc20Abi3 } from "viem";
@@ -2151,7 +3776,7 @@ async function processOrgKibbleApproval(orgContractAddress, kibbleTokenAddress,
2151
3776
 
2152
3777
  // src/utils/organization/useApproveOrgKibbleToken.ts
2153
3778
  function useApproveOrgPartialPayment() {
2154
- return useCallback20(
3779
+ return useCallback21(
2155
3780
  async (orgContractAddress, kibbleTokenAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, approveAmount) => {
2156
3781
  if (!orgContractAddress || !kibbleTokenAddress || !partialPaymentModuleAddress || !managerSmartAccount || !bundlerClient || !approveAmount) {
2157
3782
  return {
@@ -2183,7 +3808,7 @@ function useApproveOrgPartialPayment() {
2183
3808
  }
2184
3809
 
2185
3810
  // src/utils/organization/useProcessOrgPartialKibblePayment.ts
2186
- import { useCallback as useCallback21 } from "react";
3811
+ import { useCallback as useCallback22 } from "react";
2187
3812
 
2188
3813
  // src/helpers/ProcessOrgPartialPayment.tsx
2189
3814
  import { encodeFunctionData as encodeFunctionData6 } from "viem";
@@ -2241,7 +3866,7 @@ async function processOrgPartialPayment(orgContractAddress, partialPaymentModule
2241
3866
 
2242
3867
  // src/utils/organization/useProcessOrgPartialKibblePayment.ts
2243
3868
  function useProcessOrgPartialKibblePayment() {
2244
- return useCallback21(
3869
+ return useCallback22(
2245
3870
  async (orgContractAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, orderId, anymalNftId, pid, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) => {
2246
3871
  if (!orgContractAddress || !partialPaymentModuleAddress || !managerSmartAccount || !bundlerClient || !orderId || !pid || !nonce || !backendSignature) {
2247
3872
  return {
@@ -2279,9 +3904,9 @@ function useProcessOrgPartialKibblePayment() {
2279
3904
  }
2280
3905
 
2281
3906
  // src/utils/organization/useUpdateOrgWalletAddress.ts
2282
- import { useCallback as useCallback22 } from "react";
3907
+ import { useCallback as useCallback23 } from "react";
2283
3908
  function useUpdateOrgWalletAddress() {
2284
- return useCallback22(
3909
+ return useCallback23(
2285
3910
  async (dbAuthToken, docID, baseWalletAddress, endpoint) => {
2286
3911
  try {
2287
3912
  const mutation = `
@@ -2321,9 +3946,9 @@ function useUpdateOrgWalletAddress() {
2321
3946
 
2322
3947
  // src/utils/organization/useMintOrgAnymalNFT.ts
2323
3948
  import { encodeFunctionData as encodeFunctionData7 } from "viem";
2324
- import { useCallback as useCallback23 } from "react";
3949
+ import { useCallback as useCallback24 } from "react";
2325
3950
  function useMintOrgAnymalNFT() {
2326
- return useCallback23(
3951
+ return useCallback24(
2327
3952
  async (orgContractAddress, pid, nftId, anymalTxId, dbAuthToken, validationContractAddress, managerSmartAccount, bundlerClient) => {
2328
3953
  if (!dbAuthToken || !nftId || !bundlerClient || !managerSmartAccount || !pid || !validationContractAddress || !orgContractAddress) {
2329
3954
  return {
@@ -2403,9 +4028,9 @@ async function submitAction(idToken, pid, sourceType, payload, endpointBaseUrl)
2403
4028
  }
2404
4029
 
2405
4030
  // src/utils/actions/useFetchActions.ts
2406
- import { useCallback as useCallback24 } from "react";
4031
+ import { useCallback as useCallback25 } from "react";
2407
4032
  function useFetchActions() {
2408
- return useCallback24(
4033
+ return useCallback25(
2409
4034
  async (idToken, actionsServiceBaseUrl, pid, status, limit, offset) => {
2410
4035
  const params = new URLSearchParams({ pid });
2411
4036
  if (status) params.set("status", status);
@@ -2434,9 +4059,9 @@ function useFetchActions() {
2434
4059
  }
2435
4060
 
2436
4061
  // src/utils/actions/useFetchActionDefinitions.ts
2437
- import { useCallback as useCallback25 } from "react";
4062
+ import { useCallback as useCallback26 } from "react";
2438
4063
  function useFetchActionDefinitions() {
2439
- return useCallback25(
4064
+ return useCallback26(
2440
4065
  async (idToken, actionsServiceBaseUrl) => {
2441
4066
  try {
2442
4067
  const response = await fetch(
@@ -2533,10 +4158,10 @@ var convertToMultipleActionRecords = (frs) => frs.map(convertToActionRecord);
2533
4158
  var convertToMultipleActionDefinitions = (frs) => frs.map(convertToActionDefinition);
2534
4159
 
2535
4160
  // src/utils/application/useCreateUserAppData.ts
2536
- import { useCallback as useCallback26 } from "react";
4161
+ import { useCallback as useCallback27 } from "react";
2537
4162
  import { v4 as uuid } from "uuid";
2538
4163
  function useCreateUserAppData() {
2539
- return useCallback26(
4164
+ return useCallback27(
2540
4165
  async (appId, pid, dbAuthToken, endpoint) => {
2541
4166
  if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
2542
4167
  const appValues = {
@@ -2591,10 +4216,10 @@ function useCreateUserAppData() {
2591
4216
  }
2592
4217
 
2593
4218
  // src/utils/application/useCreateOrganizationAppData.ts
2594
- import { useCallback as useCallback27 } from "react";
4219
+ import { useCallback as useCallback28 } from "react";
2595
4220
  import { v4 as uuid2 } from "uuid";
2596
4221
  function useCreateOrganizationAppData() {
2597
- return useCallback27(
4222
+ return useCallback28(
2598
4223
  async (appId, pid, dbAuthToken, endpoint) => {
2599
4224
  if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
2600
4225
  const appValues = {
@@ -2648,10 +4273,10 @@ function useCreateOrganizationAppData() {
2648
4273
  }
2649
4274
 
2650
4275
  // src/utils/balance/useFetchBalance.ts
2651
- import { useCallback as useCallback28 } from "react";
4276
+ import { useCallback as useCallback29 } from "react";
2652
4277
  import { erc20Abi as erc20Abi4, getAddress } from "viem";
2653
4278
  function useFetchBalance() {
2654
- return useCallback28(
4279
+ return useCallback29(
2655
4280
  async (publicClient, walletAddress, kibbleTokenAddress) => {
2656
4281
  try {
2657
4282
  const balance = await publicClient.readContract({
@@ -2671,9 +4296,9 @@ function useFetchBalance() {
2671
4296
 
2672
4297
  // src/utils/actions/useClaimActionReward.ts
2673
4298
  import { encodeFunctionData as encodeFunctionData8 } from "viem";
2674
- import { useCallback as useCallback29 } from "react";
4299
+ import { useCallback as useCallback30 } from "react";
2675
4300
  function useClaimActionReward() {
2676
- return useCallback29(
4301
+ return useCallback30(
2677
4302
  async (actionId, claimIndex, rewardableActionContractAddress, smartAccount, bundlerClient) => {
2678
4303
  if (!actionId || claimIndex === void 0 || !bundlerClient || !smartAccount || !rewardableActionContractAddress) {
2679
4304
  return {
@@ -2720,9 +4345,9 @@ function useClaimActionReward() {
2720
4345
 
2721
4346
  // src/utils/actions/useClaimOrgActionReward.ts
2722
4347
  import { encodeFunctionData as encodeFunctionData9 } from "viem";
2723
- import { useCallback as useCallback30 } from "react";
4348
+ import { useCallback as useCallback31 } from "react";
2724
4349
  function useClaimOrgActionReward() {
2725
- return useCallback30(
4350
+ return useCallback31(
2726
4351
  async (orgContractAddress, rewardableActionContractAddress, actionId, claimIndex, smartAccount, bundlerClient) => {
2727
4352
  if (!orgContractAddress || !actionId || claimIndex === void 0 || !bundlerClient || !smartAccount) {
2728
4353
  return {
@@ -2772,9 +4397,9 @@ function useClaimOrgActionReward() {
2772
4397
  }
2773
4398
 
2774
4399
  // src/utils/actions/useSubmitContractAction.ts
2775
- import { useCallback as useCallback31 } from "react";
4400
+ import { useCallback as useCallback32 } from "react";
2776
4401
  function useSubmitContractAction() {
2777
- return useCallback31(
4402
+ return useCallback32(
2778
4403
  (idToken, pid, source, endpoint, payload) => {
2779
4404
  if (!idToken || !pid || !source || !endpoint || !payload) return;
2780
4405
  let sourceTypePayload = {};
@@ -2894,11 +4519,19 @@ export {
2894
4519
  ActionSourceType,
2895
4520
  ActionStatus,
2896
4521
  ActionType,
4522
+ ERROR_ABI,
2897
4523
  FIREBASE_WEB_API_KEYS,
2898
4524
  FIREBASE_WEB_AUTH_API_ENDPOINTS,
4525
+ KIBBLE_TOKEN_ABI,
4526
+ MARKETPLACE_ABI,
2899
4527
  MarketplacePaymentType,
2900
4528
  NETWORK_HOSTS,
2901
4529
  Network,
4530
+ ORGANIZATION_BEACON_ABI,
4531
+ ORGANIZATION_IMPL_ABI,
4532
+ ORG_FUNCTION,
4533
+ PET_NFT_ABI,
4534
+ REWARDABLE_ACTIONS_ABI,
2902
4535
  convertToActionDefinition,
2903
4536
  convertToActionRecord,
2904
4537
  convertToMultipleActionDefinitions,
@@ -2941,6 +4574,7 @@ export {
2941
4574
  useProcessOrgPartialKibblePayment,
2942
4575
  useProcessPartialKibblePayment,
2943
4576
  useSaveAnymalMetadata,
4577
+ useSendCoinbaseUserOperation,
2944
4578
  useSubmitContractAction,
2945
4579
  useUpdateAnymalWithNFT,
2946
4580
  useUpdateOrgWalletAddress,