import type { ApproveDelegationRequest, ApproveDelegationResponse, RevokeDelegationRequest, RevokeDelegationResponse, GetDelegationStatusRequest, DelegationStatusResponse, TransferFromRequest, TransferFromResponse, } from '@portal-hq/web' export const mockHost = 'web.portalhq.io' export const mockEVMApproveRequest: ApproveDelegationRequest = { chain: 'eip155:1', token: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', delegateAddress: '0x1234567890123456789012345678901234567890', amount: '1000000000', } export const mockEVMApproveResponse: ApproveDelegationResponse = { transactions: [ { from: '0xUserAddress', to: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', data: '0x095ea7b3', value: '0x0', }, ], metadata: { chainId: 'eip155:1', delegateAmount: '1000', delegateAmountRaw: '1000000000', delegateAddress: '0x1234567890123456789012345678901234567890', tokenSymbol: 'USDC', tokenAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', ownerAddress: '0xUserAddress', }, } export const mockEVMRevokeRequest: RevokeDelegationRequest = { chain: 'eip155:1', token: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', delegateAddress: '0x1234567890123456789012345678901234567890', } export const mockEVMRevokeResponse: RevokeDelegationResponse = { transactions: [ { from: '0xUserAddress', to: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', data: '0x095ea7b3', value: '0x0', }, ], metadata: { chainId: 'eip155:1', revokedAddress: '0x1234567890123456789012345678901234567890', tokenSymbol: 'USDC', tokenAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', ownerAddress: '0xUserAddress', }, } export const mockGetStatusRequest: GetDelegationStatusRequest = { chain: 'eip155:1', token: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', delegateAddress: '0x1234567890123456789012345678901234567890', } export const mockGetStatusResponse: DelegationStatusResponse = { chainId: 'eip155:1', token: 'USDC', tokenAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', balance: '5000', balanceRaw: '5000000000', delegations: [ { address: '0x1234567890123456789012345678901234567890', delegateAmount: '1000', delegateAmountRaw: '1000000000', }, ], } export const mockTransferFromRequest: TransferFromRequest = { chain: 'eip155:11155111', token: 'USDC', fromAddress: '0xc53fbaea2daa07f2a3d7e586aeed7b3b92fe2985', toAddress: '0xdFd8302f44727A6348F702fF7B594f127dE3A902', amount: '1.0', } export const mockTransferFromResponse: TransferFromResponse = { transactions: [ { from: mockTransferFromRequest.fromAddress, to: mockTransferFromRequest.toAddress, data: '0xmockdata', value: '0x1', }, ], metadata: { chainId: 'eip155:11155111', amount: mockTransferFromRequest.amount, amountRaw: '1000000', tokenSymbol: 'USDC', }, }