Skip to content

Commit

Permalink
remove migrate postgres worker
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven committed Dec 10, 2024
1 parent 1505c30 commit 845bea9
Show file tree
Hide file tree
Showing 27 changed files with 885 additions and 689 deletions.
18 changes: 11 additions & 7 deletions sdk/src/services/AccountFactoryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class AccountFactoryService {
/**
* Get all smart accounts
* Get all the smart accounts for this account factory.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @returns any Default Response
* @throws ApiError
Expand Down Expand Up @@ -45,7 +45,7 @@ export class AccountFactoryService {
* Get associated smart accounts
* Get all the smart accounts for this account factory associated with the specific admin wallet.
* @param signerAddress The address of the signer to get associated accounts from
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @returns any Default Response
* @throws ApiError
Expand Down Expand Up @@ -82,7 +82,7 @@ export class AccountFactoryService {
* Check if deployed
* Check if a smart account has been deployed to the blockchain.
* @param adminAddress The address of the admin to check if the account address is deployed
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @param extraData Extra data to use in predicting the account address
* @returns any Default Response
Expand Down Expand Up @@ -122,7 +122,7 @@ export class AccountFactoryService {
* Predict smart account address
* Get the counterfactual address of a smart account.
* @param adminAddress The address of the admin to predict the account address for
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @param extraData Extra data (account salt) to add to use in predicting the account address
* @returns any Default Response
Expand Down Expand Up @@ -161,14 +161,14 @@ export class AccountFactoryService {
/**
* Create smart account
* Create a smart account for this account factory.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @param xBackendWalletAddress Backend wallet address
* @param requestBody
* @param simulateTx Simulate the transaction on-chain without executing
* @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.
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
* @param xAccountAddress Smart account address
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
* @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.
* @returns any Default Response
* @throws ApiError
Expand All @@ -191,6 +191,10 @@ export class AccountFactoryService {
* Gas limit for the transaction
*/
gas?: string;
/**
* 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.
*/
gasPrice?: string;
/**
* Maximum fee per gas
*/
Expand Down
54 changes: 37 additions & 17 deletions sdk/src/services/AccountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class AccountService {
/**
* Get all admins
* Get all admins for a smart account.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @returns any Default Response
* @throws ApiError
Expand Down Expand Up @@ -44,7 +44,7 @@ export class AccountService {
/**
* Get all session keys
* Get all session keys for a smart account.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @returns any Default Response
* @throws ApiError
Expand Down Expand Up @@ -82,14 +82,14 @@ export class AccountService {
/**
* Grant admin
* Grant a smart account's admin permission.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @param xBackendWalletAddress Backend wallet address
* @param requestBody
* @param simulateTx Simulate the transaction on-chain without executing
* @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.
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
* @param xAccountAddress Smart account address
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
* @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.
* @returns any Default Response
* @throws ApiError
Expand All @@ -108,6 +108,10 @@ export class AccountService {
* Gas limit for the transaction
*/
gas?: string;
/**
* 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.
*/
gasPrice?: string;
/**
* Maximum fee per gas
*/
Expand Down Expand Up @@ -169,14 +173,14 @@ export class AccountService {
/**
* Revoke admin
* Revoke a smart account's admin permission.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @param xBackendWalletAddress Backend wallet address
* @param requestBody
* @param simulateTx Simulate the transaction on-chain without executing
* @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.
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
* @param xAccountAddress Smart account address
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
* @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.
* @returns any Default Response
* @throws ApiError
Expand All @@ -195,6 +199,10 @@ export class AccountService {
* Gas limit for the transaction
*/
gas?: string;
/**
* 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.
*/
gasPrice?: string;
/**
* Maximum fee per gas
*/
Expand Down Expand Up @@ -256,14 +264,14 @@ export class AccountService {
/**
* Create session key
* Create a session key for a smart account.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @param xBackendWalletAddress Backend wallet address
* @param requestBody
* @param simulateTx Simulate the transaction on-chain without executing
* @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.
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
* @param xAccountAddress Smart account address
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
* @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.
* @returns any Default Response
* @throws ApiError
Expand All @@ -286,6 +294,10 @@ export class AccountService {
* Gas limit for the transaction
*/
gas?: string;
/**
* 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.
*/
gasPrice?: string;
/**
* Maximum fee per gas
*/
Expand Down Expand Up @@ -347,14 +359,14 @@ export class AccountService {
/**
* Revoke session key
* Revoke a session key for a smart account.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @param xBackendWalletAddress Backend wallet address
* @param requestBody
* @param simulateTx Simulate the transaction on-chain without executing
* @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.
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
* @param xAccountAddress Smart account address
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
* @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.
* @returns any Default Response
* @throws ApiError
Expand All @@ -373,6 +385,10 @@ export class AccountService {
* Gas limit for the transaction
*/
gas?: string;
/**
* 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.
*/
gasPrice?: string;
/**
* Maximum fee per gas
*/
Expand Down Expand Up @@ -434,14 +450,14 @@ export class AccountService {
/**
* Update session key
* Update a session key for a smart account.
* @param chain Chain ID or name
* @param chain A chain ID ("137") or slug ("polygon-amoy-testnet"). Chain ID is preferred.
* @param contractAddress Contract address
* @param xBackendWalletAddress Backend wallet address
* @param requestBody
* @param simulateTx Simulate the transaction on-chain without executing
* @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.
* @param xIdempotencyKey Transactions submitted with the same idempotency key will be de-duplicated. Only the last 100000 transactions are compared.
* @param xAccountAddress Smart account address
* @param xAccountFactoryAddress Smart account factory address. If omitted, engine will try to resolve it from the chain.
* @param xAccountFactoryAddress Smart account factory address. If omitted, Engine will try to resolve it from the contract.
* @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.
* @returns any Default Response
* @throws ApiError
Expand All @@ -464,6 +480,10 @@ export class AccountService {
* Gas limit for the transaction
*/
gas?: string;
/**
* 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.
*/
gasPrice?: string;
/**
* Maximum fee per gas
*/
Expand Down
Loading

0 comments on commit 845bea9

Please sign in to comment.