34 lines
815 B
TypeScript
34 lines
815 B
TypeScript
/**
|
|
* Step 7 — Wallet API: types for Ethereum family (Chain 138)
|
|
* Target: wallet-api packages/core/src/families/ethereum/types.ts
|
|
*
|
|
* Transaction and Raw transaction types. Chain 138 uses same shape as Ethereum;
|
|
* chainId 138 identifies the network.
|
|
*/
|
|
|
|
export interface EthereumTransaction {
|
|
family: "ethereum";
|
|
amount: string;
|
|
recipient: string;
|
|
gasPrice?: string;
|
|
maxFeePerGas?: string;
|
|
maxPriorityFeePerGas?: string;
|
|
gasLimit?: string;
|
|
data?: string;
|
|
nonce?: number;
|
|
chainId: number; // 138 for Defi Oracle Meta Mainnet
|
|
}
|
|
|
|
export interface RawEthereumTransaction {
|
|
family: "ethereum";
|
|
amount: string;
|
|
recipient: string;
|
|
gasPrice?: string;
|
|
maxFeePerGas?: string;
|
|
maxPriorityFeePerGas?: string;
|
|
gasLimit?: string;
|
|
data?: string;
|
|
nonce?: number;
|
|
chainId: number;
|
|
}
|