35 lines
717 B
TypeScript
35 lines
717 B
TypeScript
export interface MetaTransaction {
|
|
from: string;
|
|
target: string; // 目标合约地址
|
|
calldata: string; // 编码后的函数调用数据
|
|
nonce: number;
|
|
gasLimit: string;
|
|
signature: string; // EIP-712 签名
|
|
domain: {
|
|
name: string;
|
|
version: string;
|
|
chainId: number;
|
|
verifyingContract: string;
|
|
};
|
|
}
|
|
|
|
export interface RelayResult {
|
|
txHash: string;
|
|
from: string;
|
|
target: string;
|
|
gasUsed: string;
|
|
status: 'pending' | 'success' | 'failed';
|
|
}
|
|
|
|
export interface GasAccounting {
|
|
totalGasSpent: string;
|
|
totalTransactions: number;
|
|
relayerBalance: string;
|
|
subsidyPoolBalance: string;
|
|
}
|
|
|
|
export interface NonceInfo {
|
|
address: string;
|
|
currentNonce: number;
|
|
}
|