@@ -5,18 +5,18 @@ import { WalletType } from "../../../schema/wallet";
55import { thirdwebClient } from "../../../utils/sdk" ;
66import { splitAwsKmsArn } from "./awsKmsArn" ;
77import {
8- createAwsKmsWallet ,
8+ createAwsKmsKey ,
99 type CreateAwsKmsWalletParams ,
1010} from "./createAwsKmsWallet" ;
1111import {
12- createGcpKmsWallet ,
12+ createGcpKmsKey ,
1313 type CreateGcpKmsWalletParams ,
1414} from "./createGcpKmsWallet" ;
1515import { createLocalWallet } from "./createLocalWallet" ;
1616import { getAwsKmsAccount } from "./getAwsKmsAccount" ;
1717import { getGcpKmsAccount } from "./getGcpKmsAccount" ;
1818
19- const createSmartWallet = async ( {
19+ const getSmartWalletAddresses = async ( {
2020 adminAccount,
2121 accountFactoryAddress,
2222} : {
@@ -44,12 +44,12 @@ export type CreateSmartAwsWalletParams = CreateAwsKmsWalletParams & {
4444 accountFactoryAddress ?: Address ;
4545} ;
4646
47- export const createAndStoreSmartAwsWallet = async ( {
47+ export const createSmartAwsWalletDetails = async ( {
4848 label,
4949 accountFactoryAddress,
5050 ...awsKmsWalletParams
5151} : CreateSmartAwsWalletParams ) => {
52- const awsKmsWallet = await createAwsKmsWallet ( awsKmsWalletParams ) ;
52+ const awsKmsWallet = await createAwsKmsKey ( awsKmsWalletParams ) ;
5353
5454 const { keyId } = splitAwsKmsArn ( awsKmsWallet . awsKmsArn ) ;
5555
@@ -65,7 +65,7 @@ export const createAndStoreSmartAwsWallet = async ({
6565 } ,
6666 } ) ;
6767
68- const smartAccountAddress = await createSmartWallet ( {
68+ const smartAccountAddress = await getSmartWalletAddresses ( {
6969 adminAccount,
7070 accountFactoryAddress,
7171 } ) ;
@@ -88,12 +88,12 @@ export type CreateSmartGcpWalletParams = CreateGcpKmsWalletParams & {
8888 accountFactoryAddress ?: Address ;
8989} ;
9090
91- export const createAndStoreSmartGcpWallet = async ( {
91+ export const createSmartGcpWalletDetails = async ( {
9292 label,
9393 accountFactoryAddress,
9494 ...gcpKmsWalletParams
9595} : CreateSmartGcpWalletParams ) => {
96- const gcpKmsWallet = await createGcpKmsWallet ( gcpKmsWalletParams ) ;
96+ const gcpKmsWallet = await createGcpKmsKey ( gcpKmsWalletParams ) ;
9797
9898 const adminAccount = await getGcpKmsAccount ( {
9999 client : thirdwebClient ,
@@ -106,7 +106,7 @@ export const createAndStoreSmartGcpWallet = async ({
106106 } ,
107107 } ) ;
108108
109- const smartAccountAddress = await createSmartWallet ( {
109+ const smartAccountAddress = await getSmartWalletAddresses ( {
110110 adminAccount,
111111 accountFactoryAddress,
112112 } ) ;
@@ -130,13 +130,13 @@ export type CreateSmartLocalWalletParams = {
130130 accountFactoryAddress ?: Address ;
131131} ;
132132
133- export const createAndStoreSmartLocalWallet = async ( {
133+ export const createSmartLocalWalletDetails = async ( {
134134 label,
135135 accountFactoryAddress,
136136} : CreateSmartLocalWalletParams ) => {
137137 const { account, encryptedJson } = await createLocalWallet ( ) ;
138138
139- const smartAccountAddress = await createSmartWallet ( {
139+ const smartAccountAddress = await getSmartWalletAddresses ( {
140140 adminAccount : account ,
141141 accountFactoryAddress,
142142 } ) ;
0 commit comments