anymal-protocol 1.0.151 → 1.0.153
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -3
- package/dist/index.mjs +10 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -437,7 +437,7 @@ 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<{
|
|
440
|
+
declare function useCoinbaseMintOrgAnymalNFT(): (evmAddress: `0x${string}`, orgContractAddress: string, pid: string, nftId: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
|
|
441
441
|
success: boolean;
|
|
442
442
|
message: string;
|
|
443
443
|
status: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -437,7 +437,7 @@ 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<{
|
|
440
|
+
declare function useCoinbaseMintOrgAnymalNFT(): (evmAddress: `0x${string}`, orgContractAddress: string, pid: string, nftId: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
|
|
441
441
|
success: boolean;
|
|
442
442
|
message: string;
|
|
443
443
|
status: string;
|
package/dist/index.js
CHANGED
|
@@ -483,6 +483,13 @@ function useSendCoinbaseUserOperation() {
|
|
|
483
483
|
);
|
|
484
484
|
const sendOperationFn = (0, import_react10.useCallback)(
|
|
485
485
|
async (evmAddress, contractAddress, abi, functionName, args) => {
|
|
486
|
+
console.log("sendOperationFn called with:", {
|
|
487
|
+
evmAddress,
|
|
488
|
+
contractAddress,
|
|
489
|
+
functionName,
|
|
490
|
+
args,
|
|
491
|
+
argsLength: args.length
|
|
492
|
+
});
|
|
486
493
|
if (!evmAddress || !contractAddress || !abi || !functionName) {
|
|
487
494
|
return { success: false, message: "Missing required information" };
|
|
488
495
|
}
|
|
@@ -3071,8 +3078,8 @@ var import_viem4 = require("viem");
|
|
|
3071
3078
|
function useCoinbaseMintOrgAnymalNFT() {
|
|
3072
3079
|
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
3073
3080
|
return (0, import_react14.useCallback)(
|
|
3074
|
-
async (evmAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
3075
|
-
if (!nftId || !pid || !validationContractAddress) {
|
|
3081
|
+
async (evmAddress, orgContractAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
3082
|
+
if (!nftId || !orgContractAddress || !pid || !validationContractAddress) {
|
|
3076
3083
|
return {
|
|
3077
3084
|
success: false,
|
|
3078
3085
|
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
@@ -3094,7 +3101,7 @@ function useCoinbaseMintOrgAnymalNFT() {
|
|
|
3094
3101
|
const executeArgs = [validationContractAddress, callData];
|
|
3095
3102
|
const result = await sendOperationFn(
|
|
3096
3103
|
evmAddress,
|
|
3097
|
-
|
|
3104
|
+
orgContractAddress,
|
|
3098
3105
|
ORGANIZATION_IMPL_ABI,
|
|
3099
3106
|
ORG_FUNCTION,
|
|
3100
3107
|
executeArgs
|
package/dist/index.mjs
CHANGED
|
@@ -402,6 +402,13 @@ function useSendCoinbaseUserOperation() {
|
|
|
402
402
|
);
|
|
403
403
|
const sendOperationFn = useCallback10(
|
|
404
404
|
async (evmAddress, contractAddress, abi, functionName, args) => {
|
|
405
|
+
console.log("sendOperationFn called with:", {
|
|
406
|
+
evmAddress,
|
|
407
|
+
contractAddress,
|
|
408
|
+
functionName,
|
|
409
|
+
args,
|
|
410
|
+
argsLength: args.length
|
|
411
|
+
});
|
|
405
412
|
if (!evmAddress || !contractAddress || !abi || !functionName) {
|
|
406
413
|
return { success: false, message: "Missing required information" };
|
|
407
414
|
}
|
|
@@ -2990,8 +2997,8 @@ import { encodeFunctionData as encodeFunctionData2 } from "viem";
|
|
|
2990
2997
|
function useCoinbaseMintOrgAnymalNFT() {
|
|
2991
2998
|
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
2992
2999
|
return useCallback14(
|
|
2993
|
-
async (evmAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
2994
|
-
if (!nftId || !pid || !validationContractAddress) {
|
|
3000
|
+
async (evmAddress, orgContractAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
3001
|
+
if (!nftId || !orgContractAddress || !pid || !validationContractAddress) {
|
|
2995
3002
|
return {
|
|
2996
3003
|
success: false,
|
|
2997
3004
|
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
@@ -3013,7 +3020,7 @@ function useCoinbaseMintOrgAnymalNFT() {
|
|
|
3013
3020
|
const executeArgs = [validationContractAddress, callData];
|
|
3014
3021
|
const result = await sendOperationFn(
|
|
3015
3022
|
evmAddress,
|
|
3016
|
-
|
|
3023
|
+
orgContractAddress,
|
|
3017
3024
|
ORGANIZATION_IMPL_ABI,
|
|
3018
3025
|
ORG_FUNCTION,
|
|
3019
3026
|
executeArgs
|
package/package.json
CHANGED