@1llet.xyz/erc4337-gasless-sdk 0.4.28 → 0.4.30
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 -10
- package/dist/index.d.ts +1 -10
- package/dist/index.js +234 -330
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +235 -331
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -79,17 +79,10 @@ declare class AccountAbstraction {
|
|
|
79
79
|
* Get the Smart Account address for an owner
|
|
80
80
|
*/
|
|
81
81
|
getSmartAccountAddress(owner: Address): Promise<Address>;
|
|
82
|
-
/**
|
|
83
|
-
* Check if the Smart Account is deployed
|
|
84
|
-
*/
|
|
85
|
-
isAccountDeployed(): Promise<boolean>;
|
|
86
82
|
getTokenAddress(token: string | Address): Address;
|
|
87
83
|
getBalance(token: string | Address): Promise<bigint>;
|
|
88
84
|
getEoaBalance(token: string | Address): Promise<bigint>;
|
|
89
|
-
getUsdcBalance(): Promise<bigint>;
|
|
90
|
-
getEoaUsdcBalance(): Promise<bigint>;
|
|
91
85
|
getAllowance(token?: string | Address): Promise<bigint>;
|
|
92
|
-
deployAccount(): Promise<UserOpReceipt>;
|
|
93
86
|
sendTransaction(tx: {
|
|
94
87
|
target: Address;
|
|
95
88
|
value?: bigint;
|
|
@@ -106,7 +99,6 @@ declare class AccountAbstraction {
|
|
|
106
99
|
* Approve a token for the Smart Account
|
|
107
100
|
*/
|
|
108
101
|
approveToken(token: Address, spender: Address, amount?: bigint): Promise<Hash | "NOT_NEEDED">;
|
|
109
|
-
buildUserOperationBatch(transactions: any[]): Promise<UserOperation>;
|
|
110
102
|
signUserOperation(userOp: UserOperation): Promise<UserOperation>;
|
|
111
103
|
sendUserOperation(userOp: UserOperation): Promise<Hash>;
|
|
112
104
|
waitForUserOperation(hash: Hash, timeout?: number): Promise<UserOpReceipt>;
|
|
@@ -130,7 +122,6 @@ declare global {
|
|
|
130
122
|
|
|
131
123
|
declare class BundlerClient {
|
|
132
124
|
private bundlerUrl;
|
|
133
|
-
private chainId;
|
|
134
125
|
private entryPointAddress;
|
|
135
126
|
constructor(config: ChainConfig, entryPointAddress: Address);
|
|
136
127
|
private call;
|
|
@@ -282,9 +273,9 @@ declare const erc20Abi: readonly [{
|
|
|
282
273
|
declare const CHAIN_ID_TO_KEY: Record<string, string>;
|
|
283
274
|
|
|
284
275
|
declare const ChainKeyEnum: z.ZodEnum<{
|
|
285
|
-
Base: "Base";
|
|
286
276
|
Optimism: "Optimism";
|
|
287
277
|
Arbitrum: "Arbitrum";
|
|
278
|
+
Base: "Base";
|
|
288
279
|
Unichain: "Unichain";
|
|
289
280
|
Polygon: "Polygon";
|
|
290
281
|
Avalanche: "Avalanche";
|
package/dist/index.d.ts
CHANGED
|
@@ -79,17 +79,10 @@ declare class AccountAbstraction {
|
|
|
79
79
|
* Get the Smart Account address for an owner
|
|
80
80
|
*/
|
|
81
81
|
getSmartAccountAddress(owner: Address): Promise<Address>;
|
|
82
|
-
/**
|
|
83
|
-
* Check if the Smart Account is deployed
|
|
84
|
-
*/
|
|
85
|
-
isAccountDeployed(): Promise<boolean>;
|
|
86
82
|
getTokenAddress(token: string | Address): Address;
|
|
87
83
|
getBalance(token: string | Address): Promise<bigint>;
|
|
88
84
|
getEoaBalance(token: string | Address): Promise<bigint>;
|
|
89
|
-
getUsdcBalance(): Promise<bigint>;
|
|
90
|
-
getEoaUsdcBalance(): Promise<bigint>;
|
|
91
85
|
getAllowance(token?: string | Address): Promise<bigint>;
|
|
92
|
-
deployAccount(): Promise<UserOpReceipt>;
|
|
93
86
|
sendTransaction(tx: {
|
|
94
87
|
target: Address;
|
|
95
88
|
value?: bigint;
|
|
@@ -106,7 +99,6 @@ declare class AccountAbstraction {
|
|
|
106
99
|
* Approve a token for the Smart Account
|
|
107
100
|
*/
|
|
108
101
|
approveToken(token: Address, spender: Address, amount?: bigint): Promise<Hash | "NOT_NEEDED">;
|
|
109
|
-
buildUserOperationBatch(transactions: any[]): Promise<UserOperation>;
|
|
110
102
|
signUserOperation(userOp: UserOperation): Promise<UserOperation>;
|
|
111
103
|
sendUserOperation(userOp: UserOperation): Promise<Hash>;
|
|
112
104
|
waitForUserOperation(hash: Hash, timeout?: number): Promise<UserOpReceipt>;
|
|
@@ -130,7 +122,6 @@ declare global {
|
|
|
130
122
|
|
|
131
123
|
declare class BundlerClient {
|
|
132
124
|
private bundlerUrl;
|
|
133
|
-
private chainId;
|
|
134
125
|
private entryPointAddress;
|
|
135
126
|
constructor(config: ChainConfig, entryPointAddress: Address);
|
|
136
127
|
private call;
|
|
@@ -282,9 +273,9 @@ declare const erc20Abi: readonly [{
|
|
|
282
273
|
declare const CHAIN_ID_TO_KEY: Record<string, string>;
|
|
283
274
|
|
|
284
275
|
declare const ChainKeyEnum: z.ZodEnum<{
|
|
285
|
-
Base: "Base";
|
|
286
276
|
Optimism: "Optimism";
|
|
287
277
|
Arbitrum: "Arbitrum";
|
|
278
|
+
Base: "Base";
|
|
288
279
|
Unichain: "Unichain";
|
|
289
280
|
Polygon: "Polygon";
|
|
290
281
|
Avalanche: "Avalanche";
|