anymal-protocol 1.0.150 → 1.0.152
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 +5 -5
- package/dist/index.mjs +5 -5
- 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
|
@@ -3071,8 +3071,8 @@ var import_viem4 = require("viem");
|
|
|
3071
3071
|
function useCoinbaseMintOrgAnymalNFT() {
|
|
3072
3072
|
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
3073
3073
|
return (0, import_react14.useCallback)(
|
|
3074
|
-
async (evmAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
3075
|
-
if (!nftId || !pid || !validationContractAddress) {
|
|
3074
|
+
async (evmAddress, orgContractAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
3075
|
+
if (!nftId || !orgContractAddress || !pid || !validationContractAddress) {
|
|
3076
3076
|
return {
|
|
3077
3077
|
success: false,
|
|
3078
3078
|
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
@@ -3094,9 +3094,9 @@ function useCoinbaseMintOrgAnymalNFT() {
|
|
|
3094
3094
|
const executeArgs = [validationContractAddress, callData];
|
|
3095
3095
|
const result = await sendOperationFn(
|
|
3096
3096
|
evmAddress,
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3097
|
+
orgContractAddress,
|
|
3098
|
+
ORGANIZATION_IMPL_ABI,
|
|
3099
|
+
ORG_FUNCTION,
|
|
3100
3100
|
executeArgs
|
|
3101
3101
|
);
|
|
3102
3102
|
return { ...result, status };
|
package/dist/index.mjs
CHANGED
|
@@ -2990,8 +2990,8 @@ import { encodeFunctionData as encodeFunctionData2 } from "viem";
|
|
|
2990
2990
|
function useCoinbaseMintOrgAnymalNFT() {
|
|
2991
2991
|
const { sendOperationFn, status } = useSendCoinbaseUserOperation();
|
|
2992
2992
|
return useCallback14(
|
|
2993
|
-
async (evmAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
2994
|
-
if (!nftId || !pid || !validationContractAddress) {
|
|
2993
|
+
async (evmAddress, orgContractAddress, pid, nftId, anymalTxId, validationContractAddress) => {
|
|
2994
|
+
if (!nftId || !orgContractAddress || !pid || !validationContractAddress) {
|
|
2995
2995
|
return {
|
|
2996
2996
|
success: false,
|
|
2997
2997
|
message: "Coinbase Mint NFT: Missing authentication token OR NFT ID.",
|
|
@@ -3013,9 +3013,9 @@ function useCoinbaseMintOrgAnymalNFT() {
|
|
|
3013
3013
|
const executeArgs = [validationContractAddress, callData];
|
|
3014
3014
|
const result = await sendOperationFn(
|
|
3015
3015
|
evmAddress,
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3016
|
+
orgContractAddress,
|
|
3017
|
+
ORGANIZATION_IMPL_ABI,
|
|
3018
|
+
ORG_FUNCTION,
|
|
3019
3019
|
executeArgs
|
|
3020
3020
|
);
|
|
3021
3021
|
return { ...result, status };
|
package/package.json
CHANGED