anymal-protocol 1.0.144 → 1.0.146
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -428,7 +428,7 @@ declare const ORG_FUNCTION = "executeCall";
|
|
|
428
428
|
*
|
|
429
429
|
* @returns {Function} - Async function to create the organization.
|
|
430
430
|
*/
|
|
431
|
-
declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName: string,
|
|
431
|
+
declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName: string, orgContractAddress: `0x${string}`, evmAddress: `0x${string}`) => Promise<{
|
|
432
432
|
success: boolean;
|
|
433
433
|
message: string;
|
|
434
434
|
proxyAddress?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -428,7 +428,7 @@ declare const ORG_FUNCTION = "executeCall";
|
|
|
428
428
|
*
|
|
429
429
|
* @returns {Function} - Async function to create the organization.
|
|
430
430
|
*/
|
|
431
|
-
declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName: string,
|
|
431
|
+
declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName: string, orgContractAddress: `0x${string}`, evmAddress: `0x${string}`) => Promise<{
|
|
432
432
|
success: boolean;
|
|
433
433
|
message: string;
|
|
434
434
|
proxyAddress?: string;
|
package/dist/index.js
CHANGED
|
@@ -3034,8 +3034,8 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
3034
3034
|
* @param evmAddress - The Coinbase smart account address of the admin.
|
|
3035
3035
|
* @returns A promise with success status, message, and optional proxyAddress.
|
|
3036
3036
|
*/
|
|
3037
|
-
async (orgPid, orgName,
|
|
3038
|
-
if (!orgPid || !orgName || !
|
|
3037
|
+
async (orgPid, orgName, orgContractAddress, evmAddress) => {
|
|
3038
|
+
if (!orgPid || !orgName || !orgContractAddress || !evmAddress) {
|
|
3039
3039
|
return {
|
|
3040
3040
|
success: false,
|
|
3041
3041
|
message: "Missing required parameters for organization creation.",
|
|
@@ -3047,7 +3047,7 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
3047
3047
|
orgContractAddress,
|
|
3048
3048
|
ORGANIZATION_BEACON_ABI,
|
|
3049
3049
|
"createOrganizationProxy",
|
|
3050
|
-
[
|
|
3050
|
+
[evmAddress, orgName, orgPid]
|
|
3051
3051
|
);
|
|
3052
3052
|
if (!result.success) {
|
|
3053
3053
|
return { ...result, status: "error" };
|
package/dist/index.mjs
CHANGED
|
@@ -2955,8 +2955,8 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
2955
2955
|
* @param evmAddress - The Coinbase smart account address of the admin.
|
|
2956
2956
|
* @returns A promise with success status, message, and optional proxyAddress.
|
|
2957
2957
|
*/
|
|
2958
|
-
async (orgPid, orgName,
|
|
2959
|
-
if (!orgPid || !orgName || !
|
|
2958
|
+
async (orgPid, orgName, orgContractAddress, evmAddress) => {
|
|
2959
|
+
if (!orgPid || !orgName || !orgContractAddress || !evmAddress) {
|
|
2960
2960
|
return {
|
|
2961
2961
|
success: false,
|
|
2962
2962
|
message: "Missing required parameters for organization creation.",
|
|
@@ -2968,7 +2968,7 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
2968
2968
|
orgContractAddress,
|
|
2969
2969
|
ORGANIZATION_BEACON_ABI,
|
|
2970
2970
|
"createOrganizationProxy",
|
|
2971
|
-
[
|
|
2971
|
+
[evmAddress, orgName, orgPid]
|
|
2972
2972
|
);
|
|
2973
2973
|
if (!result.success) {
|
|
2974
2974
|
return { ...result, status: "error" };
|
package/package.json
CHANGED