@alchemy/aa-accounts
Advanced tools
Comparing version 0.1.0-alpha.19 to 0.1.0-alpha.20
@@ -25,2 +25,5 @@ "use strict"; | ||
getAddress: async () => ownerAccount.address, | ||
signTypedData: async (params) => { | ||
return ownerAccount.signTypedData(params); | ||
}, | ||
}; | ||
@@ -27,0 +30,0 @@ const mockOwner = new mock_signer_js_1.MockSigner(); |
@@ -1,5 +0,6 @@ | ||
import type { Address, Hex, SmartAccountSigner } from "@alchemy/aa-core"; | ||
import type { Address, Hex, SignTypedDataParams, SmartAccountSigner } from "@alchemy/aa-core"; | ||
export declare class MockSigner implements SmartAccountSigner { | ||
getAddress(): Promise<Address>; | ||
signMessage(_msg: Uint8Array | Hex | string): Promise<Hex>; | ||
signTypedData(_params: SignTypedDataParams): Promise<`0x${string}`>; | ||
} |
@@ -11,4 +11,7 @@ "use strict"; | ||
} | ||
signTypedData(_params) { | ||
return Promise.resolve("0x4d61c5c27fb64b207cbf3bcf60d78e725659cff5f93db9a1316162117dff72aa631761619d93d4d97dfb761ba00b61f9274c6a4a76e494df644d968dd84ddcdb1c"); | ||
} | ||
} | ||
exports.MockSigner = MockSigner; | ||
//# sourceMappingURL=mock-signer.js.map |
@@ -24,2 +24,5 @@ import {} from "@alchemy/aa-core"; | ||
getAddress: async () => ownerAccount.address, | ||
signTypedData: async (params) => { | ||
return ownerAccount.signTypedData(params); | ||
}, | ||
}; | ||
@@ -26,0 +29,0 @@ const mockOwner = new MockSigner(); |
@@ -1,5 +0,6 @@ | ||
import type { Address, Hex, SmartAccountSigner } from "@alchemy/aa-core"; | ||
import type { Address, Hex, SignTypedDataParams, SmartAccountSigner } from "@alchemy/aa-core"; | ||
export declare class MockSigner implements SmartAccountSigner { | ||
getAddress(): Promise<Address>; | ||
signMessage(_msg: Uint8Array | Hex | string): Promise<Hex>; | ||
signTypedData(_params: SignTypedDataParams): Promise<`0x${string}`>; | ||
} |
@@ -8,3 +8,6 @@ export class MockSigner { | ||
} | ||
signTypedData(_params) { | ||
return Promise.resolve("0x4d61c5c27fb64b207cbf3bcf60d78e725659cff5f93db9a1316162117dff72aa631761619d93d4d97dfb761ba00b61f9274c6a4a76e494df644d968dd84ddcdb1c"); | ||
} | ||
} | ||
//# sourceMappingURL=mock-signer.js.map |
@@ -1,6 +0,7 @@ | ||
import type { Address, Hex, SmartAccountSigner } from "@alchemy/aa-core"; | ||
import type { Address, Hex, SignTypedDataParams, SmartAccountSigner } from "@alchemy/aa-core"; | ||
export declare class MockSigner implements SmartAccountSigner { | ||
getAddress(): Promise<Address>; | ||
signMessage(_msg: Uint8Array | Hex | string): Promise<Hex>; | ||
signTypedData(_params: SignTypedDataParams): Promise<`0x${string}`>; | ||
} | ||
//# sourceMappingURL=mock-signer.d.ts.map |
{ | ||
"name": "@alchemy/aa-accounts", | ||
"version": "0.1.0-alpha.19", | ||
"version": "0.1.0-alpha.20", | ||
"description": "A collection of ERC-4337 compliant smart contract account interfaces", | ||
@@ -42,11 +42,9 @@ "author": "Alchemy", | ||
"devDependencies": { | ||
"@alchemy/aa-core": "^0.1.0-alpha.19", | ||
"@alchemy/aa-core": "^0.1.0-alpha.20", | ||
"typescript": "^5.0.4", | ||
"typescript-template": "*", | ||
"viem": "^1.1.7", | ||
"vitest": "^0.31.0" | ||
}, | ||
"peerDependencies": { | ||
"@alchemy/aa-core": "^0.1.0-alpha.1", | ||
"viem": "^1.1.7" | ||
"@alchemy/aa-core": "^0.1.0-alpha.1" | ||
}, | ||
@@ -65,3 +63,6 @@ "publishConfig": { | ||
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme", | ||
"gitHead": "721d3969174175f2549fa1cb5e56472590f2e68c" | ||
"gitHead": "f3592acfa87dca8f446957e30aeb628d2c8d75b8", | ||
"dependencies": { | ||
"viem": "^1.5.3" | ||
} | ||
} |
@@ -1,2 +0,7 @@ | ||
import type { Address, Hex, SmartAccountSigner } from "@alchemy/aa-core"; | ||
import type { | ||
Address, | ||
Hex, | ||
SignTypedDataParams, | ||
SmartAccountSigner, | ||
} from "@alchemy/aa-core"; | ||
@@ -13,2 +18,8 @@ export class MockSigner implements SmartAccountSigner { | ||
} | ||
signTypedData(_params: SignTypedDataParams): Promise<`0x${string}`> { | ||
return Promise.resolve( | ||
"0x4d61c5c27fb64b207cbf3bcf60d78e725659cff5f93db9a1316162117dff72aa631761619d93d4d97dfb761ba00b61f9274c6a4a76e494df644d968dd84ddcdb1c" | ||
); | ||
} | ||
} |
@@ -1,2 +0,7 @@ | ||
import type { Address, Hex, SmartAccountSigner } from "@alchemy/aa-core"; | ||
import type { | ||
Address, | ||
Hex, | ||
SignTypedDataParams, | ||
SmartAccountSigner, | ||
} from "@alchemy/aa-core"; | ||
@@ -13,2 +18,8 @@ export class MockSigner implements SmartAccountSigner { | ||
} | ||
signTypedData(_params: SignTypedDataParams): Promise<`0x${string}`> { | ||
return Promise.resolve( | ||
"0x4d61c5c27fb64b207cbf3bcf60d78e725659cff5f93db9a1316162117dff72aa631761619d93d4d97dfb761ba00b61f9274c6a4a76e494df644d968dd84ddcdb1c" | ||
); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
278912
4
5078
+ Addedviem@^1.5.3