Skip to content

Commit 28b05bc

Browse files
committed
undo sdk
1 parent 845bea9 commit 28b05bc

22 files changed

+347
-794
lines changed

sdk/src/services/AccountFactoryService.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class AccountFactoryService {
1212
/**
1313
* Get all smart accounts
1414
* Get all the smart accounts for this account factory.
15-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
15+
* @param chain Chain ID or name
1616
* @param contractAddress Contract address
1717
* @returns any Default Response
1818
* @throws ApiError
@@ -45,7 +45,7 @@ export class AccountFactoryService {
4545
* Get associated smart accounts
4646
* Get all the smart accounts for this account factory associated with the specific admin wallet.
4747
* @param signerAddress The address of the signer to get associated accounts from
48-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
48+
* @param chain Chain ID or name
4949
* @param contractAddress Contract address
5050
* @returns any Default Response
5151
* @throws ApiError
@@ -82,7 +82,7 @@ export class AccountFactoryService {
8282
* Check if deployed
8383
* Check if a smart account has been deployed to the blockchain.
8484
* @param adminAddress The address of the admin to check if the account address is deployed
85-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
85+
* @param chain Chain ID or name
8686
* @param contractAddress Contract address
8787
* @param extraData Extra data to use in predicting the account address
8888
* @returns any Default Response
@@ -122,7 +122,7 @@ export class AccountFactoryService {
122122
* Predict smart account address
123123
* Get the counterfactual address of a smart account.
124124
* @param adminAddress The address of the admin to predict the account address for
125-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
125+
* @param chain Chain ID or name
126126
* @param contractAddress Contract address
127127
* @param extraData Extra data (account salt) to add to use in predicting the account address
128128
* @returns any Default Response
@@ -161,14 +161,14 @@ export class AccountFactoryService {
161161
/**
162162
* Create smart account
163163
* Create a smart account for this account factory.
164-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
164+
* @param chain Chain ID or name
165165
* @param contractAddress Contract address
166166
* @param xBackendWalletAddress Backend wallet address
167167
* @param requestBody
168-
* @param simulateTx Simulates the transaction before adding it to the queue, returning an error if it fails simulation. Note: This step is less performant and recommended only for debugging purposes.
168+
* @param simulateTx Simulate the transaction on-chain without executing
169169
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
170170
* @param xAccountAddress Smart account address
171-
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
171+
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
172172
* @param xAccountSalt Smart account salt as string or hex. This is used to predict the smart account address. Useful when creating multiple accounts with the same admin and only needed when deploying the account as part of a userop.
173173
* @returns any Default Response
174174
* @throws ApiError
@@ -191,10 +191,6 @@ export class AccountFactoryService {
191191
* Gas limit for the transaction
192192
*/
193193
gas?: string;
194-
/**
195-
* Gas price for the transaction. Do not use this if maxFeePerGas is set or if you want to use EIP-1559 type transactions. Only use this if you want to use legacy transactions.
196-
*/
197-
gasPrice?: string;
198194
/**
199195
* Maximum fee per gas
200196
*/

sdk/src/services/AccountService.ts

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class AccountService {
1212
/**
1313
* Get all admins
1414
* Get all admins for a smart account.
15-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
15+
* @param chain Chain ID or name
1616
* @param contractAddress Contract address
1717
* @returns any Default Response
1818
* @throws ApiError
@@ -44,7 +44,7 @@ export class AccountService {
4444
/**
4545
* Get all session keys
4646
* Get all session keys for a smart account.
47-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
47+
* @param chain Chain ID or name
4848
* @param contractAddress Contract address
4949
* @returns any Default Response
5050
* @throws ApiError
@@ -82,14 +82,14 @@ export class AccountService {
8282
/**
8383
* Grant admin
8484
* Grant a smart account's admin permission.
85-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
85+
* @param chain Chain ID or name
8686
* @param contractAddress Contract address
8787
* @param xBackendWalletAddress Backend wallet address
8888
* @param requestBody
89-
* @param simulateTx Simulates the transaction before adding it to the queue, returning an error if it fails simulation. Note: This step is less performant and recommended only for debugging purposes.
89+
* @param simulateTx Simulate the transaction on-chain without executing
9090
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
9191
* @param xAccountAddress Smart account address
92-
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
92+
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
9393
* @param xAccountSalt Smart account salt as string or hex. This is used to predict the smart account address. Useful when creating multiple accounts with the same admin and only needed when deploying the account as part of a userop.
9494
* @returns any Default Response
9595
* @throws ApiError
@@ -108,10 +108,6 @@ export class AccountService {
108108
* Gas limit for the transaction
109109
*/
110110
gas?: string;
111-
/**
112-
* Gas price for the transaction. Do not use this if maxFeePerGas is set or if you want to use EIP-1559 type transactions. Only use this if you want to use legacy transactions.
113-
*/
114-
gasPrice?: string;
115111
/**
116112
* Maximum fee per gas
117113
*/
@@ -173,14 +169,14 @@ export class AccountService {
173169
/**
174170
* Revoke admin
175171
* Revoke a smart account's admin permission.
176-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
172+
* @param chain Chain ID or name
177173
* @param contractAddress Contract address
178174
* @param xBackendWalletAddress Backend wallet address
179175
* @param requestBody
180-
* @param simulateTx Simulates the transaction before adding it to the queue, returning an error if it fails simulation. Note: This step is less performant and recommended only for debugging purposes.
176+
* @param simulateTx Simulate the transaction on-chain without executing
181177
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
182178
* @param xAccountAddress Smart account address
183-
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
179+
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
184180
* @param xAccountSalt Smart account salt as string or hex. This is used to predict the smart account address. Useful when creating multiple accounts with the same admin and only needed when deploying the account as part of a userop.
185181
* @returns any Default Response
186182
* @throws ApiError
@@ -199,10 +195,6 @@ export class AccountService {
199195
* Gas limit for the transaction
200196
*/
201197
gas?: string;
202-
/**
203-
* Gas price for the transaction. Do not use this if maxFeePerGas is set or if you want to use EIP-1559 type transactions. Only use this if you want to use legacy transactions.
204-
*/
205-
gasPrice?: string;
206198
/**
207199
* Maximum fee per gas
208200
*/
@@ -264,14 +256,14 @@ export class AccountService {
264256
/**
265257
* Create session key
266258
* Create a session key for a smart account.
267-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
259+
* @param chain Chain ID or name
268260
* @param contractAddress Contract address
269261
* @param xBackendWalletAddress Backend wallet address
270262
* @param requestBody
271-
* @param simulateTx Simulates the transaction before adding it to the queue, returning an error if it fails simulation. Note: This step is less performant and recommended only for debugging purposes.
263+
* @param simulateTx Simulate the transaction on-chain without executing
272264
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
273265
* @param xAccountAddress Smart account address
274-
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
266+
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
275267
* @param xAccountSalt Smart account salt as string or hex. This is used to predict the smart account address. Useful when creating multiple accounts with the same admin and only needed when deploying the account as part of a userop.
276268
* @returns any Default Response
277269
* @throws ApiError
@@ -294,10 +286,6 @@ export class AccountService {
294286
* Gas limit for the transaction
295287
*/
296288
gas?: string;
297-
/**
298-
* Gas price for the transaction. Do not use this if maxFeePerGas is set or if you want to use EIP-1559 type transactions. Only use this if you want to use legacy transactions.
299-
*/
300-
gasPrice?: string;
301289
/**
302290
* Maximum fee per gas
303291
*/
@@ -359,14 +347,14 @@ export class AccountService {
359347
/**
360348
* Revoke session key
361349
* Revoke a session key for a smart account.
362-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
350+
* @param chain Chain ID or name
363351
* @param contractAddress Contract address
364352
* @param xBackendWalletAddress Backend wallet address
365353
* @param requestBody
366-
* @param simulateTx Simulates the transaction before adding it to the queue, returning an error if it fails simulation. Note: This step is less performant and recommended only for debugging purposes.
354+
* @param simulateTx Simulate the transaction on-chain without executing
367355
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
368356
* @param xAccountAddress Smart account address
369-
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
357+
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
370358
* @param xAccountSalt Smart account salt as string or hex. This is used to predict the smart account address. Useful when creating multiple accounts with the same admin and only needed when deploying the account as part of a userop.
371359
* @returns any Default Response
372360
* @throws ApiError
@@ -385,10 +373,6 @@ export class AccountService {
385373
* Gas limit for the transaction
386374
*/
387375
gas?: string;
388-
/**
389-
* Gas price for the transaction. Do not use this if maxFeePerGas is set or if you want to use EIP-1559 type transactions. Only use this if you want to use legacy transactions.
390-
*/
391-
gasPrice?: string;
392376
/**
393377
* Maximum fee per gas
394378
*/
@@ -450,14 +434,14 @@ export class AccountService {
450434
/**
451435
* Update session key
452436
* Update a session key for a smart account.
453-
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
437+
* @param chain Chain ID or name
454438
* @param contractAddress Contract address
455439
* @param xBackendWalletAddress Backend wallet address
456440
* @param requestBody
457-
* @param simulateTx Simulates the transaction before adding it to the queue, returning an error if it fails simulation. Note: This step is less performant and recommended only for debugging purposes.
441+
* @param simulateTx Simulate the transaction on-chain without executing
458442
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
459443
* @param xAccountAddress Smart account address
460-
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
444+
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
461445
* @param xAccountSalt Smart account salt as string or hex. This is used to predict the smart account address. Useful when creating multiple accounts with the same admin and only needed when deploying the account as part of a userop.
462446
* @returns any Default Response
463447
* @throws ApiError
@@ -480,10 +464,6 @@ export class AccountService {
480464
* Gas limit for the transaction
481465
*/
482466
gas?: string;
483-
/**
484-
* Gas price for the transaction. Do not use this if maxFeePerGas is set or if you want to use EIP-1559 type transactions. Only use this if you want to use legacy transactions.
485-
*/
486-
gasPrice?: string;
487467
/**
488468
* Maximum fee per gas
489469
*/

0 commit comments

Comments
 (0)