anymal-protocol 1.0.142 → 1.0.143
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 -4
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -429,7 +429,7 @@ declare const ORG_FUNCTION = "executeCall";
|
|
|
429
429
|
*
|
|
430
430
|
* @returns {Function} - Async function to create the organization.
|
|
431
431
|
*/
|
|
432
|
-
declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName: string,
|
|
432
|
+
declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName: string, orgContractAddress: `0x${string}`, evmAddress: `0x${string}`) => Promise<{
|
|
433
433
|
success: boolean;
|
|
434
434
|
message: string;
|
|
435
435
|
proxyAddress?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -429,7 +429,7 @@ declare const ORG_FUNCTION = "executeCall";
|
|
|
429
429
|
*
|
|
430
430
|
* @returns {Function} - Async function to create the organization.
|
|
431
431
|
*/
|
|
432
|
-
declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName: string,
|
|
432
|
+
declare function useCoinbaseCreateOrganizationWallet(): (orgPid: string, orgName: string, orgContractAddress: `0x${string}`, evmAddress: `0x${string}`) => Promise<{
|
|
433
433
|
success: boolean;
|
|
434
434
|
message: string;
|
|
435
435
|
proxyAddress?: string;
|
package/dist/index.js
CHANGED
|
@@ -3030,13 +3030,12 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
3030
3030
|
*
|
|
3031
3031
|
* @param orgPid - The PID of the organization as registered in Firestore.
|
|
3032
3032
|
* @param orgName - The name of the organization as registered in Firestore.
|
|
3033
|
-
* @param ownerAddress - The wallet address of the user who will be the default manager.
|
|
3034
3033
|
* @param orgContractAddress - The contract address of the organization beacon.
|
|
3035
3034
|
* @param evmAddress - The Coinbase smart account address of the admin.
|
|
3036
3035
|
* @returns A promise with success status, message, and optional proxyAddress.
|
|
3037
3036
|
*/
|
|
3038
|
-
async (orgPid, orgName,
|
|
3039
|
-
if (!orgPid || !orgName || !
|
|
3037
|
+
async (orgPid, orgName, orgContractAddress, evmAddress) => {
|
|
3038
|
+
if (!orgPid || !orgName || !evmAddress || !orgContractAddress) {
|
|
3040
3039
|
return {
|
|
3041
3040
|
success: false,
|
|
3042
3041
|
message: "Missing required parameters for organization creation.",
|
|
@@ -3050,7 +3049,7 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
3050
3049
|
orgContractAddress,
|
|
3051
3050
|
ORGANIZATION_BEACON_ABI,
|
|
3052
3051
|
"createOrganizationProxy",
|
|
3053
|
-
[
|
|
3052
|
+
[evmAddress, orgName, orgPid]
|
|
3054
3053
|
);
|
|
3055
3054
|
if (!result.success) {
|
|
3056
3055
|
return { ...result, status: "error", data };
|
package/dist/index.mjs
CHANGED
|
@@ -2951,13 +2951,12 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
2951
2951
|
*
|
|
2952
2952
|
* @param orgPid - The PID of the organization as registered in Firestore.
|
|
2953
2953
|
* @param orgName - The name of the organization as registered in Firestore.
|
|
2954
|
-
* @param ownerAddress - The wallet address of the user who will be the default manager.
|
|
2955
2954
|
* @param orgContractAddress - The contract address of the organization beacon.
|
|
2956
2955
|
* @param evmAddress - The Coinbase smart account address of the admin.
|
|
2957
2956
|
* @returns A promise with success status, message, and optional proxyAddress.
|
|
2958
2957
|
*/
|
|
2959
|
-
async (orgPid, orgName,
|
|
2960
|
-
if (!orgPid || !orgName || !
|
|
2958
|
+
async (orgPid, orgName, orgContractAddress, evmAddress) => {
|
|
2959
|
+
if (!orgPid || !orgName || !evmAddress || !orgContractAddress) {
|
|
2961
2960
|
return {
|
|
2962
2961
|
success: false,
|
|
2963
2962
|
message: "Missing required parameters for organization creation.",
|
|
@@ -2971,7 +2970,7 @@ function useCoinbaseCreateOrganizationWallet() {
|
|
|
2971
2970
|
orgContractAddress,
|
|
2972
2971
|
ORGANIZATION_BEACON_ABI,
|
|
2973
2972
|
"createOrganizationProxy",
|
|
2974
|
-
[
|
|
2973
|
+
[evmAddress, orgName, orgPid]
|
|
2975
2974
|
);
|
|
2976
2975
|
if (!result.success) {
|
|
2977
2976
|
return { ...result, status: "error", data };
|
package/package.json
CHANGED