- Coin: Zano → Lethean, ticker: ZAN/ZANO → LTHN - Ports: 11211 → 36941 (mainnet RPC), 46941 (testnet RPC) - Wallet: 11212 → 36944/46944 - Address prefix: iTHN - URLs: zano.org → lethean.io - Explorer links: explorer.lthn.io Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
478 B
TypeScript
16 lines
478 B
TypeScript
import LtheanWindow from '@/interfaces/common/LtheanWindow';
|
|
import IonicSwap from '@/interfaces/wallet/IonicSwap';
|
|
|
|
async function ionicSwap(params: IonicSwap) {
|
|
return (window as unknown as LtheanWindow).lethean.request('IONIC_SWAP', params, null);
|
|
}
|
|
|
|
async function confirmIonicSwap(hex_raw_proposal: string) {
|
|
return (window as unknown as LtheanWindow).lethean.request(
|
|
'IONIC_SWAP_ACCEPT',
|
|
{ hex_raw_proposal },
|
|
null,
|
|
);
|
|
}
|
|
|
|
export { ionicSwap, confirmIonicSwap };
|