anymal-protocol 1.0.124 → 1.0.126

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.d.mts CHANGED
@@ -63,6 +63,18 @@ declare function useSendCoinbaseUserOperation(): {
63
63
  error: Error | undefined;
64
64
  };
65
65
 
66
+ declare function useCoinbaseClaimActionReward(): (evmAddress: `0x${string}`, actionId: string, claimIndex: number, validationContractAddress: `0x${string}`) => Promise<{
67
+ success: boolean;
68
+ message: string;
69
+ status: string;
70
+ }>;
71
+
72
+ declare function useCoinbaseMintAnymalNFT(): (evmAddress: `0x${string}`, pid: string, nftId: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
73
+ success: boolean;
74
+ message: string;
75
+ status: string;
76
+ }>;
77
+
66
78
  declare const PET_NFT_ABI: ({
67
79
  inputs: never[];
68
80
  stateMutability: string;
@@ -422,25 +434,12 @@ interface AnymalNftMetadataInputData {
422
434
  nft_id: string;
423
435
  }
424
436
 
425
- declare function useAddAnymalToDatabase(): (dbAuthToken: string, endpoint: string, anymalData: CreateAnymalInputData) => Promise<{
426
- _docID: string | null;
427
- dbCid: string | null;
428
- success: boolean;
429
- message: string;
430
- }>;
431
-
432
- declare function useDeleteAnymalFromDatabase(): (dbAuthToken: string, endpoint: string, anymalDocID: string) => Promise<void>;
433
-
434
- declare function useSaveAnymalMetadata(): (userPid: string, anymalTxId: string, idToken: string, publicKey: string, nftMetadataInput: AnymalNftMetadataInputData, authServiceBaseUrl: string) => Promise<{
437
+ declare function useSaveAnymalMetadata(): (userPid: string, anymalTxId: string, idToken: string, nftMetadataInput: AnymalNftMetadataInputData, authServiceBaseUrl: string) => Promise<{
435
438
  success: boolean;
436
439
  message: any;
437
440
  }>;
438
441
 
439
- declare function useUpdateAnymalWithNFT(): (anymalPassportId: string, anymalDocId: string, dbAuthToken: string, endpoint: string) => Promise<{
440
- success: boolean;
441
- }>;
442
-
443
- declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken: string, publicKey: string, authServiceBaseUrl: string, petType: string, breed: string[], lifestage: string, anymalPid: string) => Promise<{
442
+ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken: string, authServiceBaseUrl: string, petType: string, breed: string[], lifestage: string, anymalPid: string) => Promise<{
444
443
  success: boolean;
445
444
  message: string;
446
445
  url: null;
@@ -454,14 +453,6 @@ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken
454
453
  type: string;
455
454
  }>;
456
455
 
457
- declare function fetchAnymals({ dbAuthToken, endpoint, userPid, }: {
458
- dbAuthToken: string;
459
- endpoint: string;
460
- userPid: string;
461
- }): Promise<any>;
462
-
463
- declare function useFetchAnymals(): typeof fetchAnymals;
464
-
465
456
  declare function useProcessPartialKibblePayment(): (pid: string, nftId: string, orderId: string, dbAuthToken: string, marketplaceContract: string, smartAccount: any, bundlerClient: any, amountInTokens: bigint, maxTokenPayment: bigint, nonce: string, deadline: number, backendSignature: string) => Promise<{
466
457
  success: boolean;
467
458
  message: string;
@@ -865,4 +856,4 @@ declare function useSubmitContractAction(): (idToken: string, pid: string, sourc
865
856
  */
866
857
  declare function humanRevert(raw: `0x${string}` | undefined, shortMessage?: string): string;
867
858
 
868
- export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, type ActionReferral, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, ERROR_ABI, type ExternalActionPayload, FIREBASE_WEB_API_KEYS, FIREBASE_WEB_AUTH_API_ENDPOINTS, type GraphQLActionPayload, type JWTOptions, KIBBLE_TOKEN_ABI, MARKETPLACE_ABI, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, ORGANIZATION_BEACON_ABI, ORGANIZATION_IMPL_ABI, ORG_FUNCTION, PET_NFT_ABI, REWARDABLE_ACTIONS_ABI, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createApp, createAuthEnvelope, fetchAnymals, flattenFirestoreData, generateAppSignature, generateBytes32Nonce, generateJWT, getFirebaseTokenForApp, humanRevert, loadExistingSecp256k1PrivateKey, processDirectKibbleApproval, processDirectPartialPayment, processOrgKibbleApproval, processOrgPartialPayment, sendUserOpWithRetries, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useMintOrgAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSendCoinbaseUserOperation, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession, waitForAllowance, waitForReceiptWithRetries };
859
+ export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, type ActionReferral, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, ERROR_ABI, type ExternalActionPayload, FIREBASE_WEB_API_KEYS, FIREBASE_WEB_AUTH_API_ENDPOINTS, type GraphQLActionPayload, type JWTOptions, KIBBLE_TOKEN_ABI, MARKETPLACE_ABI, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, ORGANIZATION_BEACON_ABI, ORGANIZATION_IMPL_ABI, ORG_FUNCTION, PET_NFT_ABI, REWARDABLE_ACTIONS_ABI, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createApp, createAuthEnvelope, flattenFirestoreData, generateAppSignature, generateBytes32Nonce, generateJWT, getFirebaseTokenForApp, humanRevert, loadExistingSecp256k1PrivateKey, processDirectKibbleApproval, processDirectPartialPayment, processOrgKibbleApproval, processOrgPartialPayment, sendUserOpWithRetries, serializePublicKeyCompressed, submitAction, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCoinbaseClaimActionReward, useCoinbaseMintAnymalNFT, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useFetchActionDefinitions, useFetchActions, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useMintOrgAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSendCoinbaseUserOperation, useSubmitContractAction, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession, waitForAllowance, waitForReceiptWithRetries };
package/dist/index.d.ts CHANGED
@@ -63,6 +63,18 @@ declare function useSendCoinbaseUserOperation(): {
63
63
  error: Error | undefined;
64
64
  };
65
65
 
66
+ declare function useCoinbaseClaimActionReward(): (evmAddress: `0x${string}`, actionId: string, claimIndex: number, validationContractAddress: `0x${string}`) => Promise<{
67
+ success: boolean;
68
+ message: string;
69
+ status: string;
70
+ }>;
71
+
72
+ declare function useCoinbaseMintAnymalNFT(): (evmAddress: `0x${string}`, pid: string, nftId: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
73
+ success: boolean;
74
+ message: string;
75
+ status: string;
76
+ }>;
77
+
66
78
  declare const PET_NFT_ABI: ({
67
79
  inputs: never[];
68
80
  stateMutability: string;
@@ -422,25 +434,12 @@ interface AnymalNftMetadataInputData {
422
434
  nft_id: string;
423
435
  }
424
436
 
425
- declare function useAddAnymalToDatabase(): (dbAuthToken: string, endpoint: string, anymalData: CreateAnymalInputData) => Promise<{
426
- _docID: string | null;
427
- dbCid: string | null;
428
- success: boolean;
429
- message: string;
430
- }>;
431
-
432
- declare function useDeleteAnymalFromDatabase(): (dbAuthToken: string, endpoint: string, anymalDocID: string) => Promise<void>;
433
-
434
- declare function useSaveAnymalMetadata(): (userPid: string, anymalTxId: string, idToken: string, publicKey: string, nftMetadataInput: AnymalNftMetadataInputData, authServiceBaseUrl: string) => Promise<{
437
+ declare function useSaveAnymalMetadata(): (userPid: string, anymalTxId: string, idToken: string, nftMetadataInput: AnymalNftMetadataInputData, authServiceBaseUrl: string) => Promise<{
435
438
  success: boolean;
436
439
  message: any;
437
440
  }>;
438
441
 
439
- declare function useUpdateAnymalWithNFT(): (anymalPassportId: string, anymalDocId: string, dbAuthToken: string, endpoint: string) => Promise<{
440
- success: boolean;
441
- }>;
442
-
443
- declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken: string, publicKey: string, authServiceBaseUrl: string, petType: string, breed: string[], lifestage: string, anymalPid: string) => Promise<{
442
+ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken: string, authServiceBaseUrl: string, petType: string, breed: string[], lifestage: string, anymalPid: string) => Promise<{
444
443
  success: boolean;
445
444
  message: string;
446
445
  url: null;
@@ -454,14 +453,6 @@ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken
454
453
  type: string;
455
454
  }>;
456
455
 
457
- declare function fetchAnymals({ dbAuthToken, endpoint, userPid, }: {
458
- dbAuthToken: string;
459
- endpoint: string;
460
- userPid: string;
461
- }): Promise<any>;
462
-
463
- declare function useFetchAnymals(): typeof fetchAnymals;
464
-
465
456
  declare function useProcessPartialKibblePayment(): (pid: string, nftId: string, orderId: string, dbAuthToken: string, marketplaceContract: string, smartAccount: any, bundlerClient: any, amountInTokens: bigint, maxTokenPayment: bigint, nonce: string, deadline: number, backendSignature: string) => Promise<{
466
457
  success: boolean;
467
458
  message: string;
@@ -865,4 +856,4 @@ declare function useSubmitContractAction(): (idToken: string, pid: string, sourc
865
856
  */
866
857
  declare function humanRevert(raw: `0x${string}` | undefined, shortMessage?: string): string;
867
858
 
868
- export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, type ActionReferral, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, ERROR_ABI, type ExternalActionPayload, FIREBASE_WEB_API_KEYS, FIREBASE_WEB_AUTH_API_ENDPOINTS, type GraphQLActionPayload, type JWTOptions, KIBBLE_TOKEN_ABI, MARKETPLACE_ABI, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, ORGANIZATION_BEACON_ABI, ORGANIZATION_IMPL_ABI, ORG_FUNCTION, PET_NFT_ABI, REWARDABLE_ACTIONS_ABI, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createApp, createAuthEnvelope, fetchAnymals, flattenFirestoreData, generateAppSignature, generateBytes32Nonce, generateJWT, getFirebaseTokenForApp, humanRevert, loadExistingSecp256k1PrivateKey, processDirectKibbleApproval, processDirectPartialPayment, processOrgKibbleApproval, processOrgPartialPayment, sendUserOpWithRetries, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useMintOrgAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSendCoinbaseUserOperation, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession, waitForAllowance, waitForReceiptWithRetries };
859
+ export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, type ActionReferral, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, ERROR_ABI, type ExternalActionPayload, FIREBASE_WEB_API_KEYS, FIREBASE_WEB_AUTH_API_ENDPOINTS, type GraphQLActionPayload, type JWTOptions, KIBBLE_TOKEN_ABI, MARKETPLACE_ABI, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, ORGANIZATION_BEACON_ABI, ORGANIZATION_IMPL_ABI, ORG_FUNCTION, PET_NFT_ABI, REWARDABLE_ACTIONS_ABI, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createApp, createAuthEnvelope, flattenFirestoreData, generateAppSignature, generateBytes32Nonce, generateJWT, getFirebaseTokenForApp, humanRevert, loadExistingSecp256k1PrivateKey, processDirectKibbleApproval, processDirectPartialPayment, processOrgKibbleApproval, processOrgPartialPayment, sendUserOpWithRetries, serializePublicKeyCompressed, submitAction, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCoinbaseClaimActionReward, useCoinbaseMintAnymalNFT, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useFetchActionDefinitions, useFetchActions, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useMintOrgAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSendCoinbaseUserOperation, useSubmitContractAction, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession, waitForAllowance, waitForReceiptWithRetries };