2026-04-01 22:24:09 +01:00
|
|
|
import LtheanWindow from '@/interfaces/common/LtheanWindow';
|
2025-06-02 11:40:07 +05:00
|
|
|
import IonicSwap from '@/interfaces/wallet/IonicSwap';
|
|
|
|
|
|
|
|
|
|
async function ionicSwap(params: IonicSwap) {
|
2026-04-01 22:24:09 +01:00
|
|
|
return (window as unknown as LtheanWindow).lethean.request('IONIC_SWAP', params, null);
|
2025-06-02 11:40:07 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function confirmIonicSwap(hex_raw_proposal: string) {
|
2026-04-01 22:24:09 +01:00
|
|
|
return (window as unknown as LtheanWindow).lethean.request(
|
2025-06-02 11:40:07 +05:00
|
|
|
'IONIC_SWAP_ACCEPT',
|
|
|
|
|
{ hex_raw_proposal },
|
|
|
|
|
null,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { ionicSwap, confirmIonicSwap };
|