anymal-protocol 1.0.128 → 1.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +35 -18
- package/dist/index.mjs +35 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2947,11 +2947,19 @@ function useCoinbaseClaimActionReward() {
|
|
|
2947
2947
|
functionName,
|
|
2948
2948
|
args
|
|
2949
2949
|
});
|
|
2950
|
-
await sendOperationFn(
|
|
2951
|
-
|
|
2950
|
+
const opsRes = await sendOperationFn(
|
|
2951
|
+
evmAddress,
|
|
2952
|
+
callData,
|
|
2953
|
+
validationContractAddress
|
|
2954
|
+
);
|
|
2955
|
+
return { success: opsRes.success, message: opsRes.message, status };
|
|
2952
2956
|
} catch (error) {
|
|
2953
2957
|
console.error(error);
|
|
2954
|
-
return {
|
|
2958
|
+
return {
|
|
2959
|
+
success: false,
|
|
2960
|
+
message: "Reward not claimed",
|
|
2961
|
+
status: "error"
|
|
2962
|
+
};
|
|
2955
2963
|
}
|
|
2956
2964
|
},
|
|
2957
2965
|
[]
|
|
@@ -2972,21 +2980,30 @@ function useCoinbaseMintAnymalNFT() {
|
|
|
2972
2980
|
status: "error"
|
|
2973
2981
|
};
|
|
2974
2982
|
}
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2983
|
+
try {
|
|
2984
|
+
const functionName = "submitMetadataByCampaignName";
|
|
2985
|
+
const args = [
|
|
2986
|
+
pid,
|
|
2987
|
+
nftId,
|
|
2988
|
+
`https://dev-nft.petastic.com/metadata/${nftId}`,
|
|
2989
|
+
"petastic-signup-campaign-1",
|
|
2990
|
+
anymalTxId
|
|
2991
|
+
];
|
|
2992
|
+
const callData = (0, import_viem3.encodeFunctionData)({
|
|
2993
|
+
abi: PET_NFT_ABI,
|
|
2994
|
+
functionName,
|
|
2995
|
+
args
|
|
2996
|
+
});
|
|
2997
|
+
const opsRes = await sendOperationFn(
|
|
2998
|
+
evmAddress,
|
|
2999
|
+
callData,
|
|
3000
|
+
validationContractAddress
|
|
3001
|
+
);
|
|
3002
|
+
return { success: opsRes.success, message: opsRes.message, status };
|
|
3003
|
+
} catch (error) {
|
|
3004
|
+
console.error(error);
|
|
3005
|
+
return { success: false, message: "Error", status: "error" };
|
|
3006
|
+
}
|
|
2990
3007
|
},
|
|
2991
3008
|
[]
|
|
2992
3009
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -2869,11 +2869,19 @@ function useCoinbaseClaimActionReward() {
|
|
|
2869
2869
|
functionName,
|
|
2870
2870
|
args
|
|
2871
2871
|
});
|
|
2872
|
-
await sendOperationFn(
|
|
2873
|
-
|
|
2872
|
+
const opsRes = await sendOperationFn(
|
|
2873
|
+
evmAddress,
|
|
2874
|
+
callData,
|
|
2875
|
+
validationContractAddress
|
|
2876
|
+
);
|
|
2877
|
+
return { success: opsRes.success, message: opsRes.message, status };
|
|
2874
2878
|
} catch (error) {
|
|
2875
2879
|
console.error(error);
|
|
2876
|
-
return {
|
|
2880
|
+
return {
|
|
2881
|
+
success: false,
|
|
2882
|
+
message: "Reward not claimed",
|
|
2883
|
+
status: "error"
|
|
2884
|
+
};
|
|
2877
2885
|
}
|
|
2878
2886
|
},
|
|
2879
2887
|
[]
|
|
@@ -2894,21 +2902,30 @@ function useCoinbaseMintAnymalNFT() {
|
|
|
2894
2902
|
status: "error"
|
|
2895
2903
|
};
|
|
2896
2904
|
}
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2905
|
+
try {
|
|
2906
|
+
const functionName = "submitMetadataByCampaignName";
|
|
2907
|
+
const args = [
|
|
2908
|
+
pid,
|
|
2909
|
+
nftId,
|
|
2910
|
+
`https://dev-nft.petastic.com/metadata/${nftId}`,
|
|
2911
|
+
"petastic-signup-campaign-1",
|
|
2912
|
+
anymalTxId
|
|
2913
|
+
];
|
|
2914
|
+
const callData = encodeFunctionData2({
|
|
2915
|
+
abi: PET_NFT_ABI,
|
|
2916
|
+
functionName,
|
|
2917
|
+
args
|
|
2918
|
+
});
|
|
2919
|
+
const opsRes = await sendOperationFn(
|
|
2920
|
+
evmAddress,
|
|
2921
|
+
callData,
|
|
2922
|
+
validationContractAddress
|
|
2923
|
+
);
|
|
2924
|
+
return { success: opsRes.success, message: opsRes.message, status };
|
|
2925
|
+
} catch (error) {
|
|
2926
|
+
console.error(error);
|
|
2927
|
+
return { success: false, message: "Error", status: "error" };
|
|
2928
|
+
}
|
|
2912
2929
|
},
|
|
2913
2930
|
[]
|
|
2914
2931
|
);
|
package/package.json
CHANGED