anymal-protocol 1.0.147 → 1.0.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +115 -73
- package/dist/index.mjs +99 -58
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -437,6 +437,12 @@ declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName
|
|
|
437
437
|
data: GetUserOperationResult | undefined;
|
|
438
438
|
}>;
|
|
439
439
|
|
|
440
|
+
declare function useCoinbaseMintOrgAnymalNFT(): (evmAddress: `0x${string}`, pid: string, nftId: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
|
|
441
|
+
success: boolean;
|
|
442
|
+
message: string;
|
|
443
|
+
status: string;
|
|
444
|
+
}>;
|
|
445
|
+
|
|
440
446
|
declare function useMintAnymalNFT(): (pid: string, nftId: string, anymalTxId: string, dbAuthToken: string, validationContractAddress: string, smartAccount: any, bundlerClient: any) => Promise<{
|
|
441
447
|
success: boolean;
|
|
442
448
|
message: string;
|
|
@@ -873,4 +879,4 @@ declare function useSubmitContractAction(): (idToken: string, pid: string, sourc
|
|
|
873
879
|
*/
|
|
874
880
|
declare function humanRevert(raw: `0x${string}` | undefined, shortMessage?: string): string;
|
|
875
881
|
|
|
876
|
-
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, useCoinbaseCreateOrganizationWallet, 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 };
|
|
882
|
+
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, useCoinbaseCreateOrganizationWallet, useCoinbaseMintAnymalNFT, useCoinbaseMintOrgAnymalNFT, 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
|
@@ -437,6 +437,12 @@ declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName
|
|
|
437
437
|
data: GetUserOperationResult | undefined;
|
|
438
438
|
}>;
|
|
439
439
|
|
|
440
|
+
declare function useCoinbaseMintOrgAnymalNFT(): (evmAddress: `0x${string}`, pid: string, nftId: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
|
|
441
|
+
success: boolean;
|
|
442
|
+
message: string;
|
|
443
|
+
status: string;
|
|
444
|
+
}>;
|
|
445
|
+
|
|
440
446
|
declare function useMintAnymalNFT(): (pid: string, nftId: string, anymalTxId: string, dbAuthToken: string, validationContractAddress: string, smartAccount: any, bundlerClient: any) => Promise<{
|
|
441
447
|
success: boolean;
|
|
442
448
|
message: string;
|
|
@@ -873,4 +879,4 @@ declare function useSubmitContractAction(): (idToken: string, pid: string, sourc
|
|
|
873
879
|
*/
|
|
874
880
|
declare function humanRevert(raw: `0x${string}` | undefined, shortMessage?: string): string;
|
|
875
881
|
|
|
876
|
-
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, useCoinbaseCreateOrganizationWallet, 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 };
|
|
882
|
+
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, useCoinbaseCreateOrganizationWallet, useCoinbaseMintAnymalNFT, useCoinbaseMintOrgAnymalNFT, 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.js
CHANGED
|
@@ -64,6 +64,7 @@ __export(index_exports, {
|
|
|
64
64
|
useCoinbaseClaimActionReward: () => useCoinbaseClaimActionReward,
|
|
65
65
|
useCoinbaseCreateOrganizationWallet: () => useCoinbaseCreateOrganizationWallet,
|
|
66
66
|
useCoinbaseMintAnymalNFT: () => useCoinbaseMintAnymalNFT,
|
|
67
|
+
useCoinbaseMintOrgAnymalNFT: () => useCoinbaseMintOrgAnymalNFT,
|
|
67
68
|
useCreateOrganizationAppData: () => useCreateOrganizationAppData,
|
|
68
69
|
useCreateOrganizationBase: () => useCreateOrganizationBase,
|
|
69
70
|
useCreateUserAppData: () => useCreateUserAppData,
|
|
@@ -3063,9 +3064,49 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
3063
3064
|
);
|
|
3064
3065
|
}
|
|
3065
3066
|
|
|
3066
|
-
// src/utils/
|
|
3067
|
-
var import_viem5 = require("viem");
|
|
3067
|
+
// src/utils/coinbase/useCoinbaseMintOrgAnymalNFT.ts
|
|
3068
3068
|
var import_react14 = require("react");
|
|
3069
|
+
var import_viem4 = require("viem");
|
|
3070
|
+
function useCoinbaseMintOrgAnymalNFT() {
|
|
3071
|
+
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
3072
|
+
return (0, import_react14.useCallback)(
|
|
3073
|
+
async (evmAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
3074
|
+
if (!nftId || !pid || !validationContractAddress) {
|
|
3075
|
+
return {
|
|
3076
|
+
success: false,
|
|
3077
|
+
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
3078
|
+
status: "error"
|
|
3079
|
+
};
|
|
3080
|
+
}
|
|
3081
|
+
const args = [
|
|
3082
|
+
pid,
|
|
3083
|
+
nftId,
|
|
3084
|
+
`https://dev-nft.petastic.com/metadata/${nftId}`,
|
|
3085
|
+
"petastic-signup-campaign-1",
|
|
3086
|
+
anymalTxId
|
|
3087
|
+
];
|
|
3088
|
+
const callData = (0, import_viem4.encodeFunctionData)({
|
|
3089
|
+
abi: PET_NFT_ABI,
|
|
3090
|
+
functionName: "submitMetadataByCampaignName",
|
|
3091
|
+
args
|
|
3092
|
+
});
|
|
3093
|
+
const executeArgs = [validationContractAddress, callData];
|
|
3094
|
+
const result = await sendOperationFn(
|
|
3095
|
+
evmAddress,
|
|
3096
|
+
validationContractAddress,
|
|
3097
|
+
PET_NFT_ABI,
|
|
3098
|
+
"submitMetadataByCampaignName",
|
|
3099
|
+
executeArgs
|
|
3100
|
+
);
|
|
3101
|
+
return { ...result, status };
|
|
3102
|
+
},
|
|
3103
|
+
[sendOperationFn, status]
|
|
3104
|
+
);
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
// src/utils/anymals/useMintAnymalNFT.ts
|
|
3108
|
+
var import_viem6 = require("viem");
|
|
3109
|
+
var import_react15 = require("react");
|
|
3069
3110
|
|
|
3070
3111
|
// src/helpers/GasEstimateHelper.tsx
|
|
3071
3112
|
async function applyBundlerGasEstimator(account, bundlerClient, options) {
|
|
@@ -3109,18 +3150,18 @@ async function applyBundlerGasEstimator(account, bundlerClient, options) {
|
|
|
3109
3150
|
}
|
|
3110
3151
|
|
|
3111
3152
|
// src/helpers/HumanRevert.tsx
|
|
3112
|
-
var
|
|
3153
|
+
var import_viem5 = require("viem");
|
|
3113
3154
|
function humanRevert(raw, shortMessage) {
|
|
3114
3155
|
if (!raw) return shortMessage ?? "Simulation reverted";
|
|
3115
3156
|
try {
|
|
3116
|
-
const { errorName, args } = (0,
|
|
3157
|
+
const { errorName, args } = (0, import_viem5.decodeErrorResult)({
|
|
3117
3158
|
abi: ERROR_ABI,
|
|
3118
3159
|
data: raw
|
|
3119
3160
|
});
|
|
3120
3161
|
return `${errorName}(${args.map(String).join(", ")})`;
|
|
3121
3162
|
} catch {
|
|
3122
3163
|
if (raw.startsWith("0x08c379a0") && raw.length >= 138) {
|
|
3123
|
-
return (0,
|
|
3164
|
+
return (0, import_viem5.hexToString)(`0x${raw.slice(138)}`);
|
|
3124
3165
|
}
|
|
3125
3166
|
return `${raw.slice(0, 10)}\u2026`;
|
|
3126
3167
|
}
|
|
@@ -3146,7 +3187,7 @@ async function simulateCall(publicClient, target, abi, functionName, args, calle
|
|
|
3146
3187
|
|
|
3147
3188
|
// src/utils/anymals/useMintAnymalNFT.ts
|
|
3148
3189
|
function useMintAnymalNFT() {
|
|
3149
|
-
return (0,
|
|
3190
|
+
return (0, import_react15.useCallback)(
|
|
3150
3191
|
async (pid, nftId, anymalTxId, dbAuthToken, validationContractAddress, smartAccount, bundlerClient) => {
|
|
3151
3192
|
if (!dbAuthToken || !nftId || !bundlerClient || !smartAccount || !pid || !validationContractAddress) {
|
|
3152
3193
|
return {
|
|
@@ -3162,7 +3203,7 @@ function useMintAnymalNFT() {
|
|
|
3162
3203
|
"petastic-signup-campaign-1",
|
|
3163
3204
|
anymalTxId
|
|
3164
3205
|
];
|
|
3165
|
-
const callData = (0,
|
|
3206
|
+
const callData = (0, import_viem6.encodeFunctionData)({
|
|
3166
3207
|
abi: PET_NFT_ABI,
|
|
3167
3208
|
functionName,
|
|
3168
3209
|
args
|
|
@@ -3198,9 +3239,9 @@ function useMintAnymalNFT() {
|
|
|
3198
3239
|
}
|
|
3199
3240
|
|
|
3200
3241
|
// src/utils/anymals/useSaveAnymalMetadata.ts
|
|
3201
|
-
var
|
|
3242
|
+
var import_react16 = require("react");
|
|
3202
3243
|
function useSaveAnymalMetadata() {
|
|
3203
|
-
return (0,
|
|
3244
|
+
return (0, import_react16.useCallback)(
|
|
3204
3245
|
async (userPid, anymalTxId, idToken, nftMetadataInput, authServiceBaseUrl) => {
|
|
3205
3246
|
const response = await fetch(`${authServiceBaseUrl}/process-nft`, {
|
|
3206
3247
|
method: "POST",
|
|
@@ -3228,7 +3269,7 @@ function useSaveAnymalMetadata() {
|
|
|
3228
3269
|
}
|
|
3229
3270
|
|
|
3230
3271
|
// src/utils/anymals/useUploadAnymalImage.ts
|
|
3231
|
-
var
|
|
3272
|
+
var import_react17 = require("react");
|
|
3232
3273
|
|
|
3233
3274
|
// src/helpers/UploadImageHelper.tsx
|
|
3234
3275
|
function resizeImage(file, maxWidth = 800, maxHeight = 800, quality = 0.7) {
|
|
@@ -3285,7 +3326,7 @@ function toBase64(file) {
|
|
|
3285
3326
|
|
|
3286
3327
|
// src/utils/anymals/useUploadAnymalImage.ts
|
|
3287
3328
|
function useUploadAnymalImage() {
|
|
3288
|
-
return (0,
|
|
3329
|
+
return (0, import_react17.useCallback)(
|
|
3289
3330
|
async (imageFile, type, idToken, authServiceBaseUrl, petType, breed, lifestage, anymalPid) => {
|
|
3290
3331
|
if (!imageFile || !idToken) {
|
|
3291
3332
|
return {
|
|
@@ -3346,10 +3387,10 @@ function useUploadAnymalImage() {
|
|
|
3346
3387
|
}
|
|
3347
3388
|
|
|
3348
3389
|
// src/utils/marketplace/useProcessPartialKibblePayment.ts
|
|
3349
|
-
var
|
|
3390
|
+
var import_react18 = require("react");
|
|
3350
3391
|
|
|
3351
3392
|
// src/helpers/ProcessDirectPartialPayment.tsx
|
|
3352
|
-
var
|
|
3393
|
+
var import_viem7 = require("viem");
|
|
3353
3394
|
|
|
3354
3395
|
// src/helpers/SendUserOpWithRetries.tsx
|
|
3355
3396
|
async function sendUserOpWithRetries(bundlerClient, params, retries = 3, delay = 1e3) {
|
|
@@ -3409,7 +3450,7 @@ async function processDirectPartialPayment(marketplaceContract, smartAccount, bu
|
|
|
3409
3450
|
deadline,
|
|
3410
3451
|
backendSignature
|
|
3411
3452
|
];
|
|
3412
|
-
const partialPayCalldata = (0,
|
|
3453
|
+
const partialPayCalldata = (0, import_viem7.encodeFunctionData)({
|
|
3413
3454
|
abi: MARKETPLACE_ABI,
|
|
3414
3455
|
functionName,
|
|
3415
3456
|
args
|
|
@@ -3446,7 +3487,7 @@ async function processDirectPartialPayment(marketplaceContract, smartAccount, bu
|
|
|
3446
3487
|
|
|
3447
3488
|
// src/utils/marketplace/useProcessPartialKibblePayment.ts
|
|
3448
3489
|
function useProcessPartialKibblePayment() {
|
|
3449
|
-
return (0,
|
|
3490
|
+
return (0, import_react18.useCallback)(
|
|
3450
3491
|
async (pid, nftId, orderId, dbAuthToken, marketplaceContract, smartAccount, bundlerClient, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) => {
|
|
3451
3492
|
if (!orderId || !dbAuthToken || !nftId || !bundlerClient || !smartAccount || !pid || !marketplaceContract || !amountInTokens || !maxTokenPayment || !nonce || !deadline) {
|
|
3452
3493
|
return {
|
|
@@ -3502,23 +3543,23 @@ function useProcessPartialKibblePayment() {
|
|
|
3502
3543
|
}
|
|
3503
3544
|
|
|
3504
3545
|
// src/utils/marketplace/useApproveKibbleToken.ts
|
|
3505
|
-
var
|
|
3546
|
+
var import_react19 = require("react");
|
|
3506
3547
|
|
|
3507
3548
|
// src/helpers/ProcessDirectKibbleApproval.tsx
|
|
3508
|
-
var
|
|
3549
|
+
var import_viem8 = require("viem");
|
|
3509
3550
|
async function processDirectKibbleApproval(kibbleTokenAddress, spenderAddress, smartAccount, bundlerClient, approveAmount) {
|
|
3510
3551
|
try {
|
|
3511
3552
|
const functionName = "approve";
|
|
3512
3553
|
const args = [spenderAddress, approveAmount];
|
|
3513
|
-
const approveCalldata = (0,
|
|
3514
|
-
abi:
|
|
3554
|
+
const approveCalldata = (0, import_viem8.encodeFunctionData)({
|
|
3555
|
+
abi: import_viem8.erc20Abi,
|
|
3515
3556
|
functionName,
|
|
3516
3557
|
args
|
|
3517
3558
|
});
|
|
3518
3559
|
await simulateCall(
|
|
3519
3560
|
bundlerClient.client,
|
|
3520
3561
|
kibbleTokenAddress,
|
|
3521
|
-
|
|
3562
|
+
import_viem8.erc20Abi,
|
|
3522
3563
|
functionName,
|
|
3523
3564
|
args,
|
|
3524
3565
|
smartAccount.address
|
|
@@ -3547,7 +3588,7 @@ async function processDirectKibbleApproval(kibbleTokenAddress, spenderAddress, s
|
|
|
3547
3588
|
|
|
3548
3589
|
// src/utils/marketplace/useApproveKibbleToken.ts
|
|
3549
3590
|
function useApproveKibbleToken() {
|
|
3550
|
-
return (0,
|
|
3591
|
+
return (0, import_react19.useCallback)(
|
|
3551
3592
|
async (kibbleTokenAddress, marketplaceContract, amount, smartAccount, bundlerClient) => {
|
|
3552
3593
|
try {
|
|
3553
3594
|
const result = await processDirectKibbleApproval(
|
|
@@ -3574,10 +3615,10 @@ function useApproveKibbleToken() {
|
|
|
3574
3615
|
}
|
|
3575
3616
|
|
|
3576
3617
|
// src/utils/organization/useCreateOrganizationBase.ts
|
|
3577
|
-
var
|
|
3578
|
-
var
|
|
3618
|
+
var import_react20 = require("react");
|
|
3619
|
+
var import_viem9 = require("viem");
|
|
3579
3620
|
function useCreateOrganizationBase() {
|
|
3580
|
-
return (0,
|
|
3621
|
+
return (0, import_react20.useCallback)(
|
|
3581
3622
|
/**
|
|
3582
3623
|
* Creates a new organization on-chain.
|
|
3583
3624
|
*
|
|
@@ -3599,7 +3640,7 @@ function useCreateOrganizationBase() {
|
|
|
3599
3640
|
try {
|
|
3600
3641
|
const functionName = "createOrganizationProxy";
|
|
3601
3642
|
const args = [ownerAddress, orgName, orgPid];
|
|
3602
|
-
const callData = (0,
|
|
3643
|
+
const callData = (0, import_viem9.encodeFunctionData)({
|
|
3603
3644
|
abi: ORGANIZATION_BEACON_ABI,
|
|
3604
3645
|
functionName,
|
|
3605
3646
|
args
|
|
@@ -3637,7 +3678,7 @@ function useCreateOrganizationBase() {
|
|
|
3637
3678
|
let proxyAddress;
|
|
3638
3679
|
for (const log of txReceipt.logs) {
|
|
3639
3680
|
try {
|
|
3640
|
-
const decoded = (0,
|
|
3681
|
+
const decoded = (0, import_viem9.decodeEventLog)({
|
|
3641
3682
|
abi: ORGANIZATION_BEACON_ABI,
|
|
3642
3683
|
data: log.data,
|
|
3643
3684
|
topics: log.topics
|
|
@@ -3673,13 +3714,13 @@ function useCreateOrganizationBase() {
|
|
|
3673
3714
|
}
|
|
3674
3715
|
|
|
3675
3716
|
// src/utils/organization/useApproveOrgKibbleToken.ts
|
|
3676
|
-
var
|
|
3717
|
+
var import_react21 = require("react");
|
|
3677
3718
|
|
|
3678
3719
|
// src/helpers/ProcessOrgKibbleApproval.tsx
|
|
3679
|
-
var
|
|
3720
|
+
var import_viem11 = require("viem");
|
|
3680
3721
|
|
|
3681
3722
|
// src/helpers/WaitForAllowance.tsx
|
|
3682
|
-
var
|
|
3723
|
+
var import_viem10 = require("viem");
|
|
3683
3724
|
async function waitForAllowance(publicClient, tokenAddress, ownerAddress, spenderAddress, expectedAmount) {
|
|
3684
3725
|
const MAX_RETRIES = 10;
|
|
3685
3726
|
const RETRY_INTERVAL = 2e3;
|
|
@@ -3688,7 +3729,7 @@ async function waitForAllowance(publicClient, tokenAddress, ownerAddress, spende
|
|
|
3688
3729
|
try {
|
|
3689
3730
|
const currentAllowance = await publicClient.readContract({
|
|
3690
3731
|
address: tokenAddress,
|
|
3691
|
-
abi:
|
|
3732
|
+
abi: import_viem10.erc20Abi,
|
|
3692
3733
|
functionName: "allowance",
|
|
3693
3734
|
args: [ownerAddress, spenderAddress]
|
|
3694
3735
|
});
|
|
@@ -3713,13 +3754,13 @@ async function processOrgKibbleApproval(orgContractAddress, kibbleTokenAddress,
|
|
|
3713
3754
|
if (approveAmount <= 0n) {
|
|
3714
3755
|
return { success: false, message: "Approval amount must be greater than zero." };
|
|
3715
3756
|
}
|
|
3716
|
-
const approveCalldata = (0,
|
|
3717
|
-
abi:
|
|
3757
|
+
const approveCalldata = (0, import_viem11.encodeFunctionData)({
|
|
3758
|
+
abi: import_viem11.erc20Abi,
|
|
3718
3759
|
functionName: "approve",
|
|
3719
3760
|
args: [partialPaymentModuleAddress, approveAmount]
|
|
3720
3761
|
});
|
|
3721
3762
|
const args = [kibbleTokenAddress, approveCalldata];
|
|
3722
|
-
const executeApproveCalldata = (0,
|
|
3763
|
+
const executeApproveCalldata = (0, import_viem11.encodeFunctionData)({
|
|
3723
3764
|
abi: ORGANIZATION_IMPL_ABI,
|
|
3724
3765
|
functionName: ORG_FUNCTION,
|
|
3725
3766
|
args
|
|
@@ -3771,7 +3812,7 @@ async function processOrgKibbleApproval(orgContractAddress, kibbleTokenAddress,
|
|
|
3771
3812
|
|
|
3772
3813
|
// src/utils/organization/useApproveOrgKibbleToken.ts
|
|
3773
3814
|
function useApproveOrgPartialPayment() {
|
|
3774
|
-
return (0,
|
|
3815
|
+
return (0, import_react21.useCallback)(
|
|
3775
3816
|
async (orgContractAddress, kibbleTokenAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, approveAmount) => {
|
|
3776
3817
|
if (!orgContractAddress || !kibbleTokenAddress || !partialPaymentModuleAddress || !managerSmartAccount || !bundlerClient || !approveAmount) {
|
|
3777
3818
|
return {
|
|
@@ -3803,13 +3844,13 @@ function useApproveOrgPartialPayment() {
|
|
|
3803
3844
|
}
|
|
3804
3845
|
|
|
3805
3846
|
// src/utils/organization/useProcessOrgPartialKibblePayment.ts
|
|
3806
|
-
var
|
|
3847
|
+
var import_react22 = require("react");
|
|
3807
3848
|
|
|
3808
3849
|
// src/helpers/ProcessOrgPartialPayment.tsx
|
|
3809
|
-
var
|
|
3850
|
+
var import_viem12 = require("viem");
|
|
3810
3851
|
async function processOrgPartialPayment(orgContractAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, orderId, anymalNftId, pid, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) {
|
|
3811
3852
|
try {
|
|
3812
|
-
const partialPayCalldata = (0,
|
|
3853
|
+
const partialPayCalldata = (0, import_viem12.encodeFunctionData)({
|
|
3813
3854
|
abi: MARKETPLACE_ABI,
|
|
3814
3855
|
functionName: "partialPay",
|
|
3815
3856
|
args: [
|
|
@@ -3824,7 +3865,7 @@ async function processOrgPartialPayment(orgContractAddress, partialPaymentModule
|
|
|
3824
3865
|
]
|
|
3825
3866
|
});
|
|
3826
3867
|
const args = [partialPaymentModuleAddress, partialPayCalldata];
|
|
3827
|
-
const executePartialPayCalldata = (0,
|
|
3868
|
+
const executePartialPayCalldata = (0, import_viem12.encodeFunctionData)({
|
|
3828
3869
|
abi: ORGANIZATION_IMPL_ABI,
|
|
3829
3870
|
functionName: ORG_FUNCTION,
|
|
3830
3871
|
args
|
|
@@ -3861,7 +3902,7 @@ async function processOrgPartialPayment(orgContractAddress, partialPaymentModule
|
|
|
3861
3902
|
|
|
3862
3903
|
// src/utils/organization/useProcessOrgPartialKibblePayment.ts
|
|
3863
3904
|
function useProcessOrgPartialKibblePayment() {
|
|
3864
|
-
return (0,
|
|
3905
|
+
return (0, import_react22.useCallback)(
|
|
3865
3906
|
async (orgContractAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, orderId, anymalNftId, pid, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) => {
|
|
3866
3907
|
if (!orgContractAddress || !partialPaymentModuleAddress || !managerSmartAccount || !bundlerClient || !orderId || !pid || !nonce || !backendSignature) {
|
|
3867
3908
|
return {
|
|
@@ -3899,9 +3940,9 @@ function useProcessOrgPartialKibblePayment() {
|
|
|
3899
3940
|
}
|
|
3900
3941
|
|
|
3901
3942
|
// src/utils/organization/useUpdateOrgWalletAddress.ts
|
|
3902
|
-
var
|
|
3943
|
+
var import_react23 = require("react");
|
|
3903
3944
|
function useUpdateOrgWalletAddress() {
|
|
3904
|
-
return (0,
|
|
3945
|
+
return (0, import_react23.useCallback)(
|
|
3905
3946
|
async (dbAuthToken, docID, baseWalletAddress, endpoint) => {
|
|
3906
3947
|
try {
|
|
3907
3948
|
const mutation = `
|
|
@@ -3940,10 +3981,10 @@ function useUpdateOrgWalletAddress() {
|
|
|
3940
3981
|
}
|
|
3941
3982
|
|
|
3942
3983
|
// src/utils/organization/useMintOrgAnymalNFT.ts
|
|
3943
|
-
var
|
|
3944
|
-
var
|
|
3984
|
+
var import_viem13 = require("viem");
|
|
3985
|
+
var import_react24 = require("react");
|
|
3945
3986
|
function useMintOrgAnymalNFT() {
|
|
3946
|
-
return (0,
|
|
3987
|
+
return (0, import_react24.useCallback)(
|
|
3947
3988
|
async (orgContractAddress, pid, nftId, anymalTxId, dbAuthToken, validationContractAddress, managerSmartAccount, bundlerClient) => {
|
|
3948
3989
|
if (!dbAuthToken || !nftId || !bundlerClient || !managerSmartAccount || !pid || !validationContractAddress || !orgContractAddress) {
|
|
3949
3990
|
return {
|
|
@@ -3959,13 +4000,13 @@ function useMintOrgAnymalNFT() {
|
|
|
3959
4000
|
"petastic-signup-campaign-1",
|
|
3960
4001
|
anymalTxId
|
|
3961
4002
|
];
|
|
3962
|
-
const callData = (0,
|
|
4003
|
+
const callData = (0, import_viem13.encodeFunctionData)({
|
|
3963
4004
|
abi: PET_NFT_ABI,
|
|
3964
4005
|
functionName,
|
|
3965
4006
|
args
|
|
3966
4007
|
});
|
|
3967
4008
|
const executeArgs = [validationContractAddress, callData];
|
|
3968
|
-
const executeSubmitMetaCalldata = (0,
|
|
4009
|
+
const executeSubmitMetaCalldata = (0, import_viem13.encodeFunctionData)({
|
|
3969
4010
|
abi: ORGANIZATION_IMPL_ABI,
|
|
3970
4011
|
functionName: ORG_FUNCTION,
|
|
3971
4012
|
args: executeArgs
|
|
@@ -3998,10 +4039,10 @@ function useMintOrgAnymalNFT() {
|
|
|
3998
4039
|
|
|
3999
4040
|
// src/helpers/NonceHelper.tsx
|
|
4000
4041
|
var import_uuid = require("uuid");
|
|
4001
|
-
var
|
|
4042
|
+
var import_viem14 = require("viem");
|
|
4002
4043
|
var generateBytes32Nonce = () => {
|
|
4003
4044
|
const uuid3 = (0, import_uuid.v4)().replace(/-/g, "");
|
|
4004
|
-
return (0,
|
|
4045
|
+
return (0, import_viem14.padHex)(`0x${uuid3}`, { size: 32 });
|
|
4005
4046
|
};
|
|
4006
4047
|
|
|
4007
4048
|
// src/helpers/CryptoUtils.tsx
|
|
@@ -4211,9 +4252,9 @@ async function submitAction(idToken, pid, sourceType, payload, endpointBaseUrl)
|
|
|
4211
4252
|
}
|
|
4212
4253
|
|
|
4213
4254
|
// src/utils/actions/useFetchActions.ts
|
|
4214
|
-
var
|
|
4255
|
+
var import_react25 = require("react");
|
|
4215
4256
|
function useFetchActions() {
|
|
4216
|
-
return (0,
|
|
4257
|
+
return (0, import_react25.useCallback)(
|
|
4217
4258
|
async (idToken, actionsServiceBaseUrl, pid, status, limit, offset) => {
|
|
4218
4259
|
const params = new URLSearchParams({ pid });
|
|
4219
4260
|
if (status) params.set("status", status);
|
|
@@ -4242,9 +4283,9 @@ function useFetchActions() {
|
|
|
4242
4283
|
}
|
|
4243
4284
|
|
|
4244
4285
|
// src/utils/actions/useFetchActionDefinitions.ts
|
|
4245
|
-
var
|
|
4286
|
+
var import_react26 = require("react");
|
|
4246
4287
|
function useFetchActionDefinitions() {
|
|
4247
|
-
return (0,
|
|
4288
|
+
return (0, import_react26.useCallback)(
|
|
4248
4289
|
async (idToken, actionsServiceBaseUrl) => {
|
|
4249
4290
|
try {
|
|
4250
4291
|
const response = await fetch(
|
|
@@ -4341,10 +4382,10 @@ var convertToMultipleActionRecords = (frs) => frs.map(convertToActionRecord);
|
|
|
4341
4382
|
var convertToMultipleActionDefinitions = (frs) => frs.map(convertToActionDefinition);
|
|
4342
4383
|
|
|
4343
4384
|
// src/utils/application/useCreateUserAppData.ts
|
|
4344
|
-
var
|
|
4385
|
+
var import_react27 = require("react");
|
|
4345
4386
|
var import_uuid2 = require("uuid");
|
|
4346
4387
|
function useCreateUserAppData() {
|
|
4347
|
-
return (0,
|
|
4388
|
+
return (0, import_react27.useCallback)(
|
|
4348
4389
|
async (appId, pid, dbAuthToken, endpoint) => {
|
|
4349
4390
|
if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
|
|
4350
4391
|
const appValues = {
|
|
@@ -4399,10 +4440,10 @@ function useCreateUserAppData() {
|
|
|
4399
4440
|
}
|
|
4400
4441
|
|
|
4401
4442
|
// src/utils/application/useCreateOrganizationAppData.ts
|
|
4402
|
-
var
|
|
4443
|
+
var import_react28 = require("react");
|
|
4403
4444
|
var import_uuid3 = require("uuid");
|
|
4404
4445
|
function useCreateOrganizationAppData() {
|
|
4405
|
-
return (0,
|
|
4446
|
+
return (0, import_react28.useCallback)(
|
|
4406
4447
|
async (appId, pid, dbAuthToken, endpoint) => {
|
|
4407
4448
|
if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
|
|
4408
4449
|
const appValues = {
|
|
@@ -4456,17 +4497,17 @@ function useCreateOrganizationAppData() {
|
|
|
4456
4497
|
}
|
|
4457
4498
|
|
|
4458
4499
|
// src/utils/balance/useFetchBalance.ts
|
|
4459
|
-
var
|
|
4460
|
-
var
|
|
4500
|
+
var import_react29 = require("react");
|
|
4501
|
+
var import_viem15 = require("viem");
|
|
4461
4502
|
function useFetchBalance() {
|
|
4462
|
-
return (0,
|
|
4503
|
+
return (0, import_react29.useCallback)(
|
|
4463
4504
|
async (publicClient, walletAddress, kibbleTokenAddress) => {
|
|
4464
4505
|
try {
|
|
4465
4506
|
const balance = await publicClient.readContract({
|
|
4466
|
-
address: (0,
|
|
4467
|
-
abi:
|
|
4507
|
+
address: (0, import_viem15.getAddress)(kibbleTokenAddress),
|
|
4508
|
+
abi: import_viem15.erc20Abi,
|
|
4468
4509
|
functionName: "balanceOf",
|
|
4469
|
-
args: [(0,
|
|
4510
|
+
args: [(0, import_viem15.getAddress)(walletAddress)]
|
|
4470
4511
|
});
|
|
4471
4512
|
return Number(balance);
|
|
4472
4513
|
} catch (error) {
|
|
@@ -4478,10 +4519,10 @@ function useFetchBalance() {
|
|
|
4478
4519
|
}
|
|
4479
4520
|
|
|
4480
4521
|
// src/utils/actions/useClaimActionReward.ts
|
|
4481
|
-
var
|
|
4482
|
-
var
|
|
4522
|
+
var import_viem16 = require("viem");
|
|
4523
|
+
var import_react30 = require("react");
|
|
4483
4524
|
function useClaimActionReward() {
|
|
4484
|
-
return (0,
|
|
4525
|
+
return (0, import_react30.useCallback)(
|
|
4485
4526
|
async (actionId, claimIndex, rewardableActionContractAddress, smartAccount, bundlerClient) => {
|
|
4486
4527
|
if (!actionId || claimIndex === void 0 || !bundlerClient || !smartAccount || !rewardableActionContractAddress) {
|
|
4487
4528
|
return {
|
|
@@ -4491,7 +4532,7 @@ function useClaimActionReward() {
|
|
|
4491
4532
|
}
|
|
4492
4533
|
const args = [actionId, claimIndex];
|
|
4493
4534
|
const functionName = "claimByIndex";
|
|
4494
|
-
const callData = (0,
|
|
4535
|
+
const callData = (0, import_viem16.encodeFunctionData)({
|
|
4495
4536
|
abi: REWARDABLE_ACTIONS_ABI,
|
|
4496
4537
|
functionName,
|
|
4497
4538
|
args
|
|
@@ -4527,10 +4568,10 @@ function useClaimActionReward() {
|
|
|
4527
4568
|
}
|
|
4528
4569
|
|
|
4529
4570
|
// src/utils/actions/useClaimOrgActionReward.ts
|
|
4530
|
-
var
|
|
4531
|
-
var
|
|
4571
|
+
var import_viem17 = require("viem");
|
|
4572
|
+
var import_react31 = require("react");
|
|
4532
4573
|
function useClaimOrgActionReward() {
|
|
4533
|
-
return (0,
|
|
4574
|
+
return (0, import_react31.useCallback)(
|
|
4534
4575
|
async (orgContractAddress, rewardableActionContractAddress, actionId, claimIndex, smartAccount, bundlerClient) => {
|
|
4535
4576
|
if (!orgContractAddress || !actionId || claimIndex === void 0 || !bundlerClient || !smartAccount) {
|
|
4536
4577
|
return {
|
|
@@ -4538,13 +4579,13 @@ function useClaimOrgActionReward() {
|
|
|
4538
4579
|
message: "Missing web3auth account info or contract address."
|
|
4539
4580
|
};
|
|
4540
4581
|
}
|
|
4541
|
-
const claimCallData = (0,
|
|
4582
|
+
const claimCallData = (0, import_viem17.encodeFunctionData)({
|
|
4542
4583
|
abi: REWARDABLE_ACTIONS_ABI,
|
|
4543
4584
|
functionName: "claimByIndex",
|
|
4544
4585
|
args: [actionId, claimIndex]
|
|
4545
4586
|
});
|
|
4546
4587
|
const args = [rewardableActionContractAddress, claimCallData];
|
|
4547
|
-
const executeClaimCalldata = (0,
|
|
4588
|
+
const executeClaimCalldata = (0, import_viem17.encodeFunctionData)({
|
|
4548
4589
|
abi: ORGANIZATION_IMPL_ABI,
|
|
4549
4590
|
functionName: ORG_FUNCTION,
|
|
4550
4591
|
args
|
|
@@ -4580,9 +4621,9 @@ function useClaimOrgActionReward() {
|
|
|
4580
4621
|
}
|
|
4581
4622
|
|
|
4582
4623
|
// src/utils/actions/useSubmitContractAction.ts
|
|
4583
|
-
var
|
|
4624
|
+
var import_react32 = require("react");
|
|
4584
4625
|
function useSubmitContractAction() {
|
|
4585
|
-
return (0,
|
|
4626
|
+
return (0, import_react32.useCallback)(
|
|
4586
4627
|
(idToken, pid, source, endpoint, payload) => {
|
|
4587
4628
|
if (!idToken || !pid || !source || !endpoint || !payload) return;
|
|
4588
4629
|
let sourceTypePayload = {};
|
|
@@ -4743,6 +4784,7 @@ function isMarketplacePurchaseAction(payload) {
|
|
|
4743
4784
|
useCoinbaseClaimActionReward,
|
|
4744
4785
|
useCoinbaseCreateOrganizationWallet,
|
|
4745
4786
|
useCoinbaseMintAnymalNFT,
|
|
4787
|
+
useCoinbaseMintOrgAnymalNFT,
|
|
4746
4788
|
useCreateOrganizationAppData,
|
|
4747
4789
|
useCreateOrganizationBase,
|
|
4748
4790
|
useCreateUserAppData,
|
package/dist/index.mjs
CHANGED
|
@@ -2984,9 +2984,49 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
2984
2984
|
);
|
|
2985
2985
|
}
|
|
2986
2986
|
|
|
2987
|
-
// src/utils/
|
|
2988
|
-
import { encodeFunctionData as encodeFunctionData2 } from "viem";
|
|
2987
|
+
// src/utils/coinbase/useCoinbaseMintOrgAnymalNFT.ts
|
|
2989
2988
|
import { useCallback as useCallback14 } from "react";
|
|
2989
|
+
import { encodeFunctionData as encodeFunctionData2 } from "viem";
|
|
2990
|
+
function useCoinbaseMintOrgAnymalNFT() {
|
|
2991
|
+
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
2992
|
+
return useCallback14(
|
|
2993
|
+
async (evmAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
2994
|
+
if (!nftId || !pid || !validationContractAddress) {
|
|
2995
|
+
return {
|
|
2996
|
+
success: false,
|
|
2997
|
+
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
2998
|
+
status: "error"
|
|
2999
|
+
};
|
|
3000
|
+
}
|
|
3001
|
+
const args = [
|
|
3002
|
+
pid,
|
|
3003
|
+
nftId,
|
|
3004
|
+
`https://dev-nft.petastic.com/metadata/${nftId}`,
|
|
3005
|
+
"petastic-signup-campaign-1",
|
|
3006
|
+
anymalTxId
|
|
3007
|
+
];
|
|
3008
|
+
const callData = encodeFunctionData2({
|
|
3009
|
+
abi: PET_NFT_ABI,
|
|
3010
|
+
functionName: "submitMetadataByCampaignName",
|
|
3011
|
+
args
|
|
3012
|
+
});
|
|
3013
|
+
const executeArgs = [validationContractAddress, callData];
|
|
3014
|
+
const result = await sendOperationFn(
|
|
3015
|
+
evmAddress,
|
|
3016
|
+
validationContractAddress,
|
|
3017
|
+
PET_NFT_ABI,
|
|
3018
|
+
"submitMetadataByCampaignName",
|
|
3019
|
+
executeArgs
|
|
3020
|
+
);
|
|
3021
|
+
return { ...result, status };
|
|
3022
|
+
},
|
|
3023
|
+
[sendOperationFn, status]
|
|
3024
|
+
);
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
// src/utils/anymals/useMintAnymalNFT.ts
|
|
3028
|
+
import { encodeFunctionData as encodeFunctionData3 } from "viem";
|
|
3029
|
+
import { useCallback as useCallback15 } from "react";
|
|
2990
3030
|
|
|
2991
3031
|
// src/helpers/GasEstimateHelper.tsx
|
|
2992
3032
|
async function applyBundlerGasEstimator(account, bundlerClient, options) {
|
|
@@ -3067,7 +3107,7 @@ async function simulateCall(publicClient, target, abi, functionName, args, calle
|
|
|
3067
3107
|
|
|
3068
3108
|
// src/utils/anymals/useMintAnymalNFT.ts
|
|
3069
3109
|
function useMintAnymalNFT() {
|
|
3070
|
-
return
|
|
3110
|
+
return useCallback15(
|
|
3071
3111
|
async (pid, nftId, anymalTxId, dbAuthToken, validationContractAddress, smartAccount, bundlerClient) => {
|
|
3072
3112
|
if (!dbAuthToken || !nftId || !bundlerClient || !smartAccount || !pid || !validationContractAddress) {
|
|
3073
3113
|
return {
|
|
@@ -3083,7 +3123,7 @@ function useMintAnymalNFT() {
|
|
|
3083
3123
|
"petastic-signup-campaign-1",
|
|
3084
3124
|
anymalTxId
|
|
3085
3125
|
];
|
|
3086
|
-
const callData =
|
|
3126
|
+
const callData = encodeFunctionData3({
|
|
3087
3127
|
abi: PET_NFT_ABI,
|
|
3088
3128
|
functionName,
|
|
3089
3129
|
args
|
|
@@ -3119,9 +3159,9 @@ function useMintAnymalNFT() {
|
|
|
3119
3159
|
}
|
|
3120
3160
|
|
|
3121
3161
|
// src/utils/anymals/useSaveAnymalMetadata.ts
|
|
3122
|
-
import { useCallback as
|
|
3162
|
+
import { useCallback as useCallback16 } from "react";
|
|
3123
3163
|
function useSaveAnymalMetadata() {
|
|
3124
|
-
return
|
|
3164
|
+
return useCallback16(
|
|
3125
3165
|
async (userPid, anymalTxId, idToken, nftMetadataInput, authServiceBaseUrl) => {
|
|
3126
3166
|
const response = await fetch(`${authServiceBaseUrl}/process-nft`, {
|
|
3127
3167
|
method: "POST",
|
|
@@ -3149,7 +3189,7 @@ function useSaveAnymalMetadata() {
|
|
|
3149
3189
|
}
|
|
3150
3190
|
|
|
3151
3191
|
// src/utils/anymals/useUploadAnymalImage.ts
|
|
3152
|
-
import { useCallback as
|
|
3192
|
+
import { useCallback as useCallback17 } from "react";
|
|
3153
3193
|
|
|
3154
3194
|
// src/helpers/UploadImageHelper.tsx
|
|
3155
3195
|
function resizeImage(file, maxWidth = 800, maxHeight = 800, quality = 0.7) {
|
|
@@ -3206,7 +3246,7 @@ function toBase64(file) {
|
|
|
3206
3246
|
|
|
3207
3247
|
// src/utils/anymals/useUploadAnymalImage.ts
|
|
3208
3248
|
function useUploadAnymalImage() {
|
|
3209
|
-
return
|
|
3249
|
+
return useCallback17(
|
|
3210
3250
|
async (imageFile, type, idToken, authServiceBaseUrl, petType, breed, lifestage, anymalPid) => {
|
|
3211
3251
|
if (!imageFile || !idToken) {
|
|
3212
3252
|
return {
|
|
@@ -3267,10 +3307,10 @@ function useUploadAnymalImage() {
|
|
|
3267
3307
|
}
|
|
3268
3308
|
|
|
3269
3309
|
// src/utils/marketplace/useProcessPartialKibblePayment.ts
|
|
3270
|
-
import { useCallback as
|
|
3310
|
+
import { useCallback as useCallback18 } from "react";
|
|
3271
3311
|
|
|
3272
3312
|
// src/helpers/ProcessDirectPartialPayment.tsx
|
|
3273
|
-
import { encodeFunctionData as
|
|
3313
|
+
import { encodeFunctionData as encodeFunctionData4 } from "viem";
|
|
3274
3314
|
|
|
3275
3315
|
// src/helpers/SendUserOpWithRetries.tsx
|
|
3276
3316
|
async function sendUserOpWithRetries(bundlerClient, params, retries = 3, delay = 1e3) {
|
|
@@ -3330,7 +3370,7 @@ async function processDirectPartialPayment(marketplaceContract, smartAccount, bu
|
|
|
3330
3370
|
deadline,
|
|
3331
3371
|
backendSignature
|
|
3332
3372
|
];
|
|
3333
|
-
const partialPayCalldata =
|
|
3373
|
+
const partialPayCalldata = encodeFunctionData4({
|
|
3334
3374
|
abi: MARKETPLACE_ABI,
|
|
3335
3375
|
functionName,
|
|
3336
3376
|
args
|
|
@@ -3367,7 +3407,7 @@ async function processDirectPartialPayment(marketplaceContract, smartAccount, bu
|
|
|
3367
3407
|
|
|
3368
3408
|
// src/utils/marketplace/useProcessPartialKibblePayment.ts
|
|
3369
3409
|
function useProcessPartialKibblePayment() {
|
|
3370
|
-
return
|
|
3410
|
+
return useCallback18(
|
|
3371
3411
|
async (pid, nftId, orderId, dbAuthToken, marketplaceContract, smartAccount, bundlerClient, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) => {
|
|
3372
3412
|
if (!orderId || !dbAuthToken || !nftId || !bundlerClient || !smartAccount || !pid || !marketplaceContract || !amountInTokens || !maxTokenPayment || !nonce || !deadline) {
|
|
3373
3413
|
return {
|
|
@@ -3423,15 +3463,15 @@ function useProcessPartialKibblePayment() {
|
|
|
3423
3463
|
}
|
|
3424
3464
|
|
|
3425
3465
|
// src/utils/marketplace/useApproveKibbleToken.ts
|
|
3426
|
-
import { useCallback as
|
|
3466
|
+
import { useCallback as useCallback19 } from "react";
|
|
3427
3467
|
|
|
3428
3468
|
// src/helpers/ProcessDirectKibbleApproval.tsx
|
|
3429
|
-
import { encodeFunctionData as
|
|
3469
|
+
import { encodeFunctionData as encodeFunctionData5, erc20Abi } from "viem";
|
|
3430
3470
|
async function processDirectKibbleApproval(kibbleTokenAddress, spenderAddress, smartAccount, bundlerClient, approveAmount) {
|
|
3431
3471
|
try {
|
|
3432
3472
|
const functionName = "approve";
|
|
3433
3473
|
const args = [spenderAddress, approveAmount];
|
|
3434
|
-
const approveCalldata =
|
|
3474
|
+
const approveCalldata = encodeFunctionData5({
|
|
3435
3475
|
abi: erc20Abi,
|
|
3436
3476
|
functionName,
|
|
3437
3477
|
args
|
|
@@ -3468,7 +3508,7 @@ async function processDirectKibbleApproval(kibbleTokenAddress, spenderAddress, s
|
|
|
3468
3508
|
|
|
3469
3509
|
// src/utils/marketplace/useApproveKibbleToken.ts
|
|
3470
3510
|
function useApproveKibbleToken() {
|
|
3471
|
-
return
|
|
3511
|
+
return useCallback19(
|
|
3472
3512
|
async (kibbleTokenAddress, marketplaceContract, amount, smartAccount, bundlerClient) => {
|
|
3473
3513
|
try {
|
|
3474
3514
|
const result = await processDirectKibbleApproval(
|
|
@@ -3495,10 +3535,10 @@ function useApproveKibbleToken() {
|
|
|
3495
3535
|
}
|
|
3496
3536
|
|
|
3497
3537
|
// src/utils/organization/useCreateOrganizationBase.ts
|
|
3498
|
-
import { useCallback as
|
|
3499
|
-
import { decodeEventLog, encodeFunctionData as
|
|
3538
|
+
import { useCallback as useCallback20 } from "react";
|
|
3539
|
+
import { decodeEventLog, encodeFunctionData as encodeFunctionData6 } from "viem";
|
|
3500
3540
|
function useCreateOrganizationBase() {
|
|
3501
|
-
return
|
|
3541
|
+
return useCallback20(
|
|
3502
3542
|
/**
|
|
3503
3543
|
* Creates a new organization on-chain.
|
|
3504
3544
|
*
|
|
@@ -3520,7 +3560,7 @@ function useCreateOrganizationBase() {
|
|
|
3520
3560
|
try {
|
|
3521
3561
|
const functionName = "createOrganizationProxy";
|
|
3522
3562
|
const args = [ownerAddress, orgName, orgPid];
|
|
3523
|
-
const callData =
|
|
3563
|
+
const callData = encodeFunctionData6({
|
|
3524
3564
|
abi: ORGANIZATION_BEACON_ABI,
|
|
3525
3565
|
functionName,
|
|
3526
3566
|
args
|
|
@@ -3594,10 +3634,10 @@ function useCreateOrganizationBase() {
|
|
|
3594
3634
|
}
|
|
3595
3635
|
|
|
3596
3636
|
// src/utils/organization/useApproveOrgKibbleToken.ts
|
|
3597
|
-
import { useCallback as
|
|
3637
|
+
import { useCallback as useCallback21 } from "react";
|
|
3598
3638
|
|
|
3599
3639
|
// src/helpers/ProcessOrgKibbleApproval.tsx
|
|
3600
|
-
import { encodeFunctionData as
|
|
3640
|
+
import { encodeFunctionData as encodeFunctionData7, erc20Abi as erc20Abi3 } from "viem";
|
|
3601
3641
|
|
|
3602
3642
|
// src/helpers/WaitForAllowance.tsx
|
|
3603
3643
|
import { erc20Abi as erc20Abi2 } from "viem";
|
|
@@ -3634,13 +3674,13 @@ async function processOrgKibbleApproval(orgContractAddress, kibbleTokenAddress,
|
|
|
3634
3674
|
if (approveAmount <= 0n) {
|
|
3635
3675
|
return { success: false, message: "Approval amount must be greater than zero." };
|
|
3636
3676
|
}
|
|
3637
|
-
const approveCalldata =
|
|
3677
|
+
const approveCalldata = encodeFunctionData7({
|
|
3638
3678
|
abi: erc20Abi3,
|
|
3639
3679
|
functionName: "approve",
|
|
3640
3680
|
args: [partialPaymentModuleAddress, approveAmount]
|
|
3641
3681
|
});
|
|
3642
3682
|
const args = [kibbleTokenAddress, approveCalldata];
|
|
3643
|
-
const executeApproveCalldata =
|
|
3683
|
+
const executeApproveCalldata = encodeFunctionData7({
|
|
3644
3684
|
abi: ORGANIZATION_IMPL_ABI,
|
|
3645
3685
|
functionName: ORG_FUNCTION,
|
|
3646
3686
|
args
|
|
@@ -3692,7 +3732,7 @@ async function processOrgKibbleApproval(orgContractAddress, kibbleTokenAddress,
|
|
|
3692
3732
|
|
|
3693
3733
|
// src/utils/organization/useApproveOrgKibbleToken.ts
|
|
3694
3734
|
function useApproveOrgPartialPayment() {
|
|
3695
|
-
return
|
|
3735
|
+
return useCallback21(
|
|
3696
3736
|
async (orgContractAddress, kibbleTokenAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, approveAmount) => {
|
|
3697
3737
|
if (!orgContractAddress || !kibbleTokenAddress || !partialPaymentModuleAddress || !managerSmartAccount || !bundlerClient || !approveAmount) {
|
|
3698
3738
|
return {
|
|
@@ -3724,13 +3764,13 @@ function useApproveOrgPartialPayment() {
|
|
|
3724
3764
|
}
|
|
3725
3765
|
|
|
3726
3766
|
// src/utils/organization/useProcessOrgPartialKibblePayment.ts
|
|
3727
|
-
import { useCallback as
|
|
3767
|
+
import { useCallback as useCallback22 } from "react";
|
|
3728
3768
|
|
|
3729
3769
|
// src/helpers/ProcessOrgPartialPayment.tsx
|
|
3730
|
-
import { encodeFunctionData as
|
|
3770
|
+
import { encodeFunctionData as encodeFunctionData8 } from "viem";
|
|
3731
3771
|
async function processOrgPartialPayment(orgContractAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, orderId, anymalNftId, pid, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) {
|
|
3732
3772
|
try {
|
|
3733
|
-
const partialPayCalldata =
|
|
3773
|
+
const partialPayCalldata = encodeFunctionData8({
|
|
3734
3774
|
abi: MARKETPLACE_ABI,
|
|
3735
3775
|
functionName: "partialPay",
|
|
3736
3776
|
args: [
|
|
@@ -3745,7 +3785,7 @@ async function processOrgPartialPayment(orgContractAddress, partialPaymentModule
|
|
|
3745
3785
|
]
|
|
3746
3786
|
});
|
|
3747
3787
|
const args = [partialPaymentModuleAddress, partialPayCalldata];
|
|
3748
|
-
const executePartialPayCalldata =
|
|
3788
|
+
const executePartialPayCalldata = encodeFunctionData8({
|
|
3749
3789
|
abi: ORGANIZATION_IMPL_ABI,
|
|
3750
3790
|
functionName: ORG_FUNCTION,
|
|
3751
3791
|
args
|
|
@@ -3782,7 +3822,7 @@ async function processOrgPartialPayment(orgContractAddress, partialPaymentModule
|
|
|
3782
3822
|
|
|
3783
3823
|
// src/utils/organization/useProcessOrgPartialKibblePayment.ts
|
|
3784
3824
|
function useProcessOrgPartialKibblePayment() {
|
|
3785
|
-
return
|
|
3825
|
+
return useCallback22(
|
|
3786
3826
|
async (orgContractAddress, partialPaymentModuleAddress, managerSmartAccount, bundlerClient, orderId, anymalNftId, pid, amountInTokens, maxTokenPayment, nonce, deadline, backendSignature) => {
|
|
3787
3827
|
if (!orgContractAddress || !partialPaymentModuleAddress || !managerSmartAccount || !bundlerClient || !orderId || !pid || !nonce || !backendSignature) {
|
|
3788
3828
|
return {
|
|
@@ -3820,9 +3860,9 @@ function useProcessOrgPartialKibblePayment() {
|
|
|
3820
3860
|
}
|
|
3821
3861
|
|
|
3822
3862
|
// src/utils/organization/useUpdateOrgWalletAddress.ts
|
|
3823
|
-
import { useCallback as
|
|
3863
|
+
import { useCallback as useCallback23 } from "react";
|
|
3824
3864
|
function useUpdateOrgWalletAddress() {
|
|
3825
|
-
return
|
|
3865
|
+
return useCallback23(
|
|
3826
3866
|
async (dbAuthToken, docID, baseWalletAddress, endpoint) => {
|
|
3827
3867
|
try {
|
|
3828
3868
|
const mutation = `
|
|
@@ -3861,10 +3901,10 @@ function useUpdateOrgWalletAddress() {
|
|
|
3861
3901
|
}
|
|
3862
3902
|
|
|
3863
3903
|
// src/utils/organization/useMintOrgAnymalNFT.ts
|
|
3864
|
-
import { encodeFunctionData as
|
|
3865
|
-
import { useCallback as
|
|
3904
|
+
import { encodeFunctionData as encodeFunctionData9 } from "viem";
|
|
3905
|
+
import { useCallback as useCallback24 } from "react";
|
|
3866
3906
|
function useMintOrgAnymalNFT() {
|
|
3867
|
-
return
|
|
3907
|
+
return useCallback24(
|
|
3868
3908
|
async (orgContractAddress, pid, nftId, anymalTxId, dbAuthToken, validationContractAddress, managerSmartAccount, bundlerClient) => {
|
|
3869
3909
|
if (!dbAuthToken || !nftId || !bundlerClient || !managerSmartAccount || !pid || !validationContractAddress || !orgContractAddress) {
|
|
3870
3910
|
return {
|
|
@@ -3880,13 +3920,13 @@ function useMintOrgAnymalNFT() {
|
|
|
3880
3920
|
"petastic-signup-campaign-1",
|
|
3881
3921
|
anymalTxId
|
|
3882
3922
|
];
|
|
3883
|
-
const callData =
|
|
3923
|
+
const callData = encodeFunctionData9({
|
|
3884
3924
|
abi: PET_NFT_ABI,
|
|
3885
3925
|
functionName,
|
|
3886
3926
|
args
|
|
3887
3927
|
});
|
|
3888
3928
|
const executeArgs = [validationContractAddress, callData];
|
|
3889
|
-
const executeSubmitMetaCalldata =
|
|
3929
|
+
const executeSubmitMetaCalldata = encodeFunctionData9({
|
|
3890
3930
|
abi: ORGANIZATION_IMPL_ABI,
|
|
3891
3931
|
functionName: ORG_FUNCTION,
|
|
3892
3932
|
args: executeArgs
|
|
@@ -3949,9 +3989,9 @@ async function submitAction(idToken, pid, sourceType, payload, endpointBaseUrl)
|
|
|
3949
3989
|
}
|
|
3950
3990
|
|
|
3951
3991
|
// src/utils/actions/useFetchActions.ts
|
|
3952
|
-
import { useCallback as
|
|
3992
|
+
import { useCallback as useCallback25 } from "react";
|
|
3953
3993
|
function useFetchActions() {
|
|
3954
|
-
return
|
|
3994
|
+
return useCallback25(
|
|
3955
3995
|
async (idToken, actionsServiceBaseUrl, pid, status, limit, offset) => {
|
|
3956
3996
|
const params = new URLSearchParams({ pid });
|
|
3957
3997
|
if (status) params.set("status", status);
|
|
@@ -3980,9 +4020,9 @@ function useFetchActions() {
|
|
|
3980
4020
|
}
|
|
3981
4021
|
|
|
3982
4022
|
// src/utils/actions/useFetchActionDefinitions.ts
|
|
3983
|
-
import { useCallback as
|
|
4023
|
+
import { useCallback as useCallback26 } from "react";
|
|
3984
4024
|
function useFetchActionDefinitions() {
|
|
3985
|
-
return
|
|
4025
|
+
return useCallback26(
|
|
3986
4026
|
async (idToken, actionsServiceBaseUrl) => {
|
|
3987
4027
|
try {
|
|
3988
4028
|
const response = await fetch(
|
|
@@ -4079,10 +4119,10 @@ var convertToMultipleActionRecords = (frs) => frs.map(convertToActionRecord);
|
|
|
4079
4119
|
var convertToMultipleActionDefinitions = (frs) => frs.map(convertToActionDefinition);
|
|
4080
4120
|
|
|
4081
4121
|
// src/utils/application/useCreateUserAppData.ts
|
|
4082
|
-
import { useCallback as
|
|
4122
|
+
import { useCallback as useCallback27 } from "react";
|
|
4083
4123
|
import { v4 as uuid } from "uuid";
|
|
4084
4124
|
function useCreateUserAppData() {
|
|
4085
|
-
return
|
|
4125
|
+
return useCallback27(
|
|
4086
4126
|
async (appId, pid, dbAuthToken, endpoint) => {
|
|
4087
4127
|
if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
|
|
4088
4128
|
const appValues = {
|
|
@@ -4137,10 +4177,10 @@ function useCreateUserAppData() {
|
|
|
4137
4177
|
}
|
|
4138
4178
|
|
|
4139
4179
|
// src/utils/application/useCreateOrganizationAppData.ts
|
|
4140
|
-
import { useCallback as
|
|
4180
|
+
import { useCallback as useCallback28 } from "react";
|
|
4141
4181
|
import { v4 as uuid2 } from "uuid";
|
|
4142
4182
|
function useCreateOrganizationAppData() {
|
|
4143
|
-
return
|
|
4183
|
+
return useCallback28(
|
|
4144
4184
|
async (appId, pid, dbAuthToken, endpoint) => {
|
|
4145
4185
|
if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
|
|
4146
4186
|
const appValues = {
|
|
@@ -4194,10 +4234,10 @@ function useCreateOrganizationAppData() {
|
|
|
4194
4234
|
}
|
|
4195
4235
|
|
|
4196
4236
|
// src/utils/balance/useFetchBalance.ts
|
|
4197
|
-
import { useCallback as
|
|
4237
|
+
import { useCallback as useCallback29 } from "react";
|
|
4198
4238
|
import { erc20Abi as erc20Abi4, getAddress } from "viem";
|
|
4199
4239
|
function useFetchBalance() {
|
|
4200
|
-
return
|
|
4240
|
+
return useCallback29(
|
|
4201
4241
|
async (publicClient, walletAddress, kibbleTokenAddress) => {
|
|
4202
4242
|
try {
|
|
4203
4243
|
const balance = await publicClient.readContract({
|
|
@@ -4216,10 +4256,10 @@ function useFetchBalance() {
|
|
|
4216
4256
|
}
|
|
4217
4257
|
|
|
4218
4258
|
// src/utils/actions/useClaimActionReward.ts
|
|
4219
|
-
import { encodeFunctionData as
|
|
4220
|
-
import { useCallback as
|
|
4259
|
+
import { encodeFunctionData as encodeFunctionData10 } from "viem";
|
|
4260
|
+
import { useCallback as useCallback30 } from "react";
|
|
4221
4261
|
function useClaimActionReward() {
|
|
4222
|
-
return
|
|
4262
|
+
return useCallback30(
|
|
4223
4263
|
async (actionId, claimIndex, rewardableActionContractAddress, smartAccount, bundlerClient) => {
|
|
4224
4264
|
if (!actionId || claimIndex === void 0 || !bundlerClient || !smartAccount || !rewardableActionContractAddress) {
|
|
4225
4265
|
return {
|
|
@@ -4229,7 +4269,7 @@ function useClaimActionReward() {
|
|
|
4229
4269
|
}
|
|
4230
4270
|
const args = [actionId, claimIndex];
|
|
4231
4271
|
const functionName = "claimByIndex";
|
|
4232
|
-
const callData =
|
|
4272
|
+
const callData = encodeFunctionData10({
|
|
4233
4273
|
abi: REWARDABLE_ACTIONS_ABI,
|
|
4234
4274
|
functionName,
|
|
4235
4275
|
args
|
|
@@ -4265,10 +4305,10 @@ function useClaimActionReward() {
|
|
|
4265
4305
|
}
|
|
4266
4306
|
|
|
4267
4307
|
// src/utils/actions/useClaimOrgActionReward.ts
|
|
4268
|
-
import { encodeFunctionData as
|
|
4269
|
-
import { useCallback as
|
|
4308
|
+
import { encodeFunctionData as encodeFunctionData11 } from "viem";
|
|
4309
|
+
import { useCallback as useCallback31 } from "react";
|
|
4270
4310
|
function useClaimOrgActionReward() {
|
|
4271
|
-
return
|
|
4311
|
+
return useCallback31(
|
|
4272
4312
|
async (orgContractAddress, rewardableActionContractAddress, actionId, claimIndex, smartAccount, bundlerClient) => {
|
|
4273
4313
|
if (!orgContractAddress || !actionId || claimIndex === void 0 || !bundlerClient || !smartAccount) {
|
|
4274
4314
|
return {
|
|
@@ -4276,13 +4316,13 @@ function useClaimOrgActionReward() {
|
|
|
4276
4316
|
message: "Missing web3auth account info or contract address."
|
|
4277
4317
|
};
|
|
4278
4318
|
}
|
|
4279
|
-
const claimCallData =
|
|
4319
|
+
const claimCallData = encodeFunctionData11({
|
|
4280
4320
|
abi: REWARDABLE_ACTIONS_ABI,
|
|
4281
4321
|
functionName: "claimByIndex",
|
|
4282
4322
|
args: [actionId, claimIndex]
|
|
4283
4323
|
});
|
|
4284
4324
|
const args = [rewardableActionContractAddress, claimCallData];
|
|
4285
|
-
const executeClaimCalldata =
|
|
4325
|
+
const executeClaimCalldata = encodeFunctionData11({
|
|
4286
4326
|
abi: ORGANIZATION_IMPL_ABI,
|
|
4287
4327
|
functionName: ORG_FUNCTION,
|
|
4288
4328
|
args
|
|
@@ -4318,9 +4358,9 @@ function useClaimOrgActionReward() {
|
|
|
4318
4358
|
}
|
|
4319
4359
|
|
|
4320
4360
|
// src/utils/actions/useSubmitContractAction.ts
|
|
4321
|
-
import { useCallback as
|
|
4361
|
+
import { useCallback as useCallback32 } from "react";
|
|
4322
4362
|
function useSubmitContractAction() {
|
|
4323
|
-
return
|
|
4363
|
+
return useCallback32(
|
|
4324
4364
|
(idToken, pid, source, endpoint, payload) => {
|
|
4325
4365
|
if (!idToken || !pid || !source || !endpoint || !payload) return;
|
|
4326
4366
|
let sourceTypePayload = {};
|
|
@@ -4480,6 +4520,7 @@ export {
|
|
|
4480
4520
|
useCoinbaseClaimActionReward,
|
|
4481
4521
|
useCoinbaseCreateOrganizationWallet,
|
|
4482
4522
|
useCoinbaseMintAnymalNFT,
|
|
4523
|
+
useCoinbaseMintOrgAnymalNFT,
|
|
4483
4524
|
useCreateOrganizationAppData,
|
|
4484
4525
|
useCreateOrganizationBase,
|
|
4485
4526
|
useCreateUserAppData,
|
package/package.json
CHANGED