trade-frontend/src/utils/wallet.ts

17 lines
478 B
TypeScript
Raw Normal View History

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) {
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) {
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 };