Update dependencies and refactor Privy integration in Web3Proxy. Replace @privy-io/server-auth with @privy-io/node, introducing authorization context handling for improved transaction security. Modify transaction methods to align with the new SDK structure, ensuring compatibility and enhanced logging for wallet operations.

This commit is contained in:
2025-12-30 00:37:12 +07:00
parent 263c1b0592
commit 274effc749
6 changed files with 191 additions and 295 deletions

View File

@@ -10,7 +10,7 @@ test('getAuthorizationSignature generates valid signatures', async () => {
const signature = getAuthorizationSignature({ url, body })
assert.ok(signature && typeof signature === 'string', 'Signature should be a string')
assert.ok(signature.length > 0, 'Signature should not be empty')
assert.ok((signature as string).length > 0, 'Signature should not be empty')
// Check if signature matches base64 pattern
const base64Regex = /^[A-Za-z0-9+/]+={0,2}$/