anymal-protocol 1.0.141 → 1.0.142
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 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -4
- package/dist/index.mjs +7 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _coinbase_cdp_hooks from '@coinbase/cdp-hooks';
|
|
2
2
|
import * as _coinbase_cdp_api_client from '@coinbase/cdp-api-client';
|
|
3
3
|
import * as abitype from 'abitype';
|
|
4
|
+
import { GetUserOperationResult } from '@coinbase/cdp-core';
|
|
4
5
|
import { BundlerClient } from 'viem/account-abstraction';
|
|
5
6
|
import { ec } from 'elliptic';
|
|
6
7
|
|
|
@@ -433,6 +434,7 @@ declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName
|
|
|
433
434
|
message: string;
|
|
434
435
|
proxyAddress?: string;
|
|
435
436
|
status: string;
|
|
437
|
+
data: GetUserOperationResult | undefined;
|
|
436
438
|
}>;
|
|
437
439
|
|
|
438
440
|
declare function useMintAnymalNFT(): (pid: string, nftId: string, anymalTxId: string, dbAuthToken: string, validationContractAddress: string, smartAccount: any, bundlerClient: any) => Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _coinbase_cdp_hooks from '@coinbase/cdp-hooks';
|
|
2
2
|
import * as _coinbase_cdp_api_client from '@coinbase/cdp-api-client';
|
|
3
3
|
import * as abitype from 'abitype';
|
|
4
|
+
import { GetUserOperationResult } from '@coinbase/cdp-core';
|
|
4
5
|
import { BundlerClient } from 'viem/account-abstraction';
|
|
5
6
|
import { ec } from 'elliptic';
|
|
6
7
|
|
|
@@ -433,6 +434,7 @@ declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName
|
|
|
433
434
|
message: string;
|
|
434
435
|
proxyAddress?: string;
|
|
435
436
|
status: string;
|
|
437
|
+
data: GetUserOperationResult | undefined;
|
|
436
438
|
}>;
|
|
437
439
|
|
|
438
440
|
declare function useMintAnymalNFT(): (pid: string, nftId: string, anymalTxId: string, dbAuthToken: string, validationContractAddress: string, smartAccount: any, bundlerClient: any) => Promise<{
|
package/dist/index.js
CHANGED
|
@@ -3040,7 +3040,8 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
3040
3040
|
return {
|
|
3041
3041
|
success: false,
|
|
3042
3042
|
message: "Missing required parameters for organization creation.",
|
|
3043
|
-
status: "error"
|
|
3043
|
+
status: "error",
|
|
3044
|
+
data
|
|
3044
3045
|
};
|
|
3045
3046
|
}
|
|
3046
3047
|
try {
|
|
@@ -3052,18 +3053,20 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
3052
3053
|
[ownerAddress, orgName, orgPid]
|
|
3053
3054
|
);
|
|
3054
3055
|
if (!result.success) {
|
|
3055
|
-
return { ...result, status: "error" };
|
|
3056
|
+
return { ...result, status: "error", data };
|
|
3056
3057
|
}
|
|
3057
3058
|
return {
|
|
3058
3059
|
...result,
|
|
3059
|
-
status
|
|
3060
|
+
status,
|
|
3061
|
+
data
|
|
3060
3062
|
};
|
|
3061
3063
|
} catch (error) {
|
|
3062
3064
|
console.error("Org wallet creation error", error);
|
|
3063
3065
|
return {
|
|
3064
3066
|
success: false,
|
|
3065
3067
|
message: "Error",
|
|
3066
|
-
status: "error"
|
|
3068
|
+
status: "error",
|
|
3069
|
+
data
|
|
3067
3070
|
};
|
|
3068
3071
|
}
|
|
3069
3072
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -2961,7 +2961,8 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
2961
2961
|
return {
|
|
2962
2962
|
success: false,
|
|
2963
2963
|
message: "Missing required parameters for organization creation.",
|
|
2964
|
-
status: "error"
|
|
2964
|
+
status: "error",
|
|
2965
|
+
data
|
|
2965
2966
|
};
|
|
2966
2967
|
}
|
|
2967
2968
|
try {
|
|
@@ -2973,18 +2974,20 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
2973
2974
|
[ownerAddress, orgName, orgPid]
|
|
2974
2975
|
);
|
|
2975
2976
|
if (!result.success) {
|
|
2976
|
-
return { ...result, status: "error" };
|
|
2977
|
+
return { ...result, status: "error", data };
|
|
2977
2978
|
}
|
|
2978
2979
|
return {
|
|
2979
2980
|
...result,
|
|
2980
|
-
status
|
|
2981
|
+
status,
|
|
2982
|
+
data
|
|
2981
2983
|
};
|
|
2982
2984
|
} catch (error) {
|
|
2983
2985
|
console.error("Org wallet creation error", error);
|
|
2984
2986
|
return {
|
|
2985
2987
|
success: false,
|
|
2986
2988
|
message: "Error",
|
|
2987
|
-
status: "error"
|
|
2989
|
+
status: "error",
|
|
2990
|
+
data
|
|
2988
2991
|
};
|
|
2989
2992
|
}
|
|
2990
2993
|
},
|
package/package.json
CHANGED