anymal-protocol 1.0.153 → 1.0.155
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -70,7 +70,7 @@ declare function useCoinbaseClaimActionReward(): (evmAddress: `0x${string}`, act
|
|
|
70
70
|
status: string;
|
|
71
71
|
}>;
|
|
72
72
|
|
|
73
|
-
declare function useCoinbaseMintAnymalNFT(): (evmAddress: `0x${string}`, pid: string,
|
|
73
|
+
declare function useCoinbaseMintAnymalNFT(): (evmAddress: `0x${string}`, pid: string, passportID: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
|
|
74
74
|
success: boolean;
|
|
75
75
|
message: string;
|
|
76
76
|
status: string;
|
|
@@ -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}`, orgContractAddress: string, pid: string,
|
|
440
|
+
declare function useCoinbaseMintOrgAnymalNFT(): (evmAddress: `0x${string}`, orgContractAddress: string, pid: string, passportID: 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
|
@@ -70,7 +70,7 @@ declare function useCoinbaseClaimActionReward(): (evmAddress: `0x${string}`, act
|
|
|
70
70
|
status: string;
|
|
71
71
|
}>;
|
|
72
72
|
|
|
73
|
-
declare function useCoinbaseMintAnymalNFT(): (evmAddress: `0x${string}`, pid: string,
|
|
73
|
+
declare function useCoinbaseMintAnymalNFT(): (evmAddress: `0x${string}`, pid: string, passportID: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
|
|
74
74
|
success: boolean;
|
|
75
75
|
message: string;
|
|
76
76
|
status: string;
|
|
@@ -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}`, orgContractAddress: string, pid: string,
|
|
440
|
+
declare function useCoinbaseMintOrgAnymalNFT(): (evmAddress: `0x${string}`, orgContractAddress: string, pid: string, passportID: string, anymalTxId: string, validationContractAddress: `0x${string}`) => Promise<{
|
|
441
441
|
success: boolean;
|
|
442
442
|
message: string;
|
|
443
443
|
status: string;
|
package/dist/index.js
CHANGED
|
@@ -2993,8 +2993,8 @@ var import_react12 = require("react");
|
|
|
2993
2993
|
function useCoinbaseMintAnymalNFT() {
|
|
2994
2994
|
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
2995
2995
|
return (0, import_react12.useCallback)(
|
|
2996
|
-
async (evmAddress, pid,
|
|
2997
|
-
if (!
|
|
2996
|
+
async (evmAddress, pid, passportID, anymalTxId, validationContractAddress) => {
|
|
2997
|
+
if (!passportID || !pid || !validationContractAddress) {
|
|
2998
2998
|
return {
|
|
2999
2999
|
success: false,
|
|
3000
3000
|
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
@@ -3008,8 +3008,8 @@ function useCoinbaseMintAnymalNFT() {
|
|
|
3008
3008
|
"submitMetadataByCampaignName",
|
|
3009
3009
|
[
|
|
3010
3010
|
pid,
|
|
3011
|
-
|
|
3012
|
-
`https://dev-nft.petastic.com/metadata/${
|
|
3011
|
+
passportID,
|
|
3012
|
+
`https://dev-nft.petastic.com/metadata/${passportID}`,
|
|
3013
3013
|
"petastic-signup-campaign-1",
|
|
3014
3014
|
anymalTxId
|
|
3015
3015
|
]
|
|
@@ -3078,8 +3078,8 @@ var import_viem4 = require("viem");
|
|
|
3078
3078
|
function useCoinbaseMintOrgAnymalNFT() {
|
|
3079
3079
|
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
3080
3080
|
return (0, import_react14.useCallback)(
|
|
3081
|
-
async (evmAddress, orgContractAddress, pid,
|
|
3082
|
-
if (!
|
|
3081
|
+
async (evmAddress, orgContractAddress, pid, passportID, anymalTxId, validationContractAddress) => {
|
|
3082
|
+
if (!passportID || !orgContractAddress || !pid || !validationContractAddress) {
|
|
3083
3083
|
return {
|
|
3084
3084
|
success: false,
|
|
3085
3085
|
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
@@ -3088,8 +3088,8 @@ function useCoinbaseMintOrgAnymalNFT() {
|
|
|
3088
3088
|
}
|
|
3089
3089
|
const args = [
|
|
3090
3090
|
pid,
|
|
3091
|
-
|
|
3092
|
-
`https://dev-nft.petastic.com/metadata/${
|
|
3091
|
+
passportID,
|
|
3092
|
+
`https://dev-nft.petastic.com/metadata/${passportID}`,
|
|
3093
3093
|
"petastic-signup-campaign-1",
|
|
3094
3094
|
anymalTxId
|
|
3095
3095
|
];
|
package/dist/index.mjs
CHANGED
|
@@ -2912,8 +2912,8 @@ import { useCallback as useCallback12 } from "react";
|
|
|
2912
2912
|
function useCoinbaseMintAnymalNFT() {
|
|
2913
2913
|
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
2914
2914
|
return useCallback12(
|
|
2915
|
-
async (evmAddress, pid,
|
|
2916
|
-
if (!
|
|
2915
|
+
async (evmAddress, pid, passportID, anymalTxId, validationContractAddress) => {
|
|
2916
|
+
if (!passportID || !pid || !validationContractAddress) {
|
|
2917
2917
|
return {
|
|
2918
2918
|
success: false,
|
|
2919
2919
|
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
@@ -2927,8 +2927,8 @@ function useCoinbaseMintAnymalNFT() {
|
|
|
2927
2927
|
"submitMetadataByCampaignName",
|
|
2928
2928
|
[
|
|
2929
2929
|
pid,
|
|
2930
|
-
|
|
2931
|
-
`https://dev-nft.petastic.com/metadata/${
|
|
2930
|
+
passportID,
|
|
2931
|
+
`https://dev-nft.petastic.com/metadata/${passportID}`,
|
|
2932
2932
|
"petastic-signup-campaign-1",
|
|
2933
2933
|
anymalTxId
|
|
2934
2934
|
]
|
|
@@ -2997,8 +2997,8 @@ import { encodeFunctionData as encodeFunctionData2 } from "viem";
|
|
|
2997
2997
|
function useCoinbaseMintOrgAnymalNFT() {
|
|
2998
2998
|
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
2999
2999
|
return useCallback14(
|
|
3000
|
-
async (evmAddress, orgContractAddress, pid,
|
|
3001
|
-
if (!
|
|
3000
|
+
async (evmAddress, orgContractAddress, pid, passportID, anymalTxId, validationContractAddress) => {
|
|
3001
|
+
if (!passportID || !orgContractAddress || !pid || !validationContractAddress) {
|
|
3002
3002
|
return {
|
|
3003
3003
|
success: false,
|
|
3004
3004
|
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
@@ -3007,8 +3007,8 @@ function useCoinbaseMintOrgAnymalNFT() {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
const args = [
|
|
3009
3009
|
pid,
|
|
3010
|
-
|
|
3011
|
-
`https://dev-nft.petastic.com/metadata/${
|
|
3010
|
+
passportID,
|
|
3011
|
+
`https://dev-nft.petastic.com/metadata/${passportID}`,
|
|
3012
3012
|
"petastic-signup-campaign-1",
|
|
3013
3013
|
anymalTxId
|
|
3014
3014
|
];
|
package/package.json
CHANGED