File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
import { WalletClient } from "viem" ;
15
15
16
16
import * as types from "./types" ;
17
- import { SignerWalletAdapter } from "@solana/wallet-adapter-base" ;
17
+ import { Adapter } from "@solana/wallet-adapter-base" ;
18
18
export type EndpointOptions = {
19
19
rpc ?: string ;
20
20
rest ?: string ;
@@ -25,7 +25,7 @@ export interface SkipRouterOptions {
25
25
clientID ?: string ;
26
26
getEVMSigner ?: ( chainID : string ) => Promise < WalletClient > ;
27
27
getCosmosSigner ?: ( chainID : string ) => Promise < OfflineSigner > ;
28
- getSVMSigner ?: ( ) => Promise < SignerWalletAdapter > ;
28
+ getSVMSigner ?: ( ) => Promise < Adapter > ;
29
29
endpointOptions ?: {
30
30
endpoints ?: Record < string , EndpointOptions > ;
31
31
getRpcEndpointForChain ?: ( chainID : string ) => Promise < string > ;
@@ -40,7 +40,7 @@ export type ExecuteRouteOptions = {
40
40
userAddresses : Record < string , string > ;
41
41
getEVMSigner ?: ( chainID : string ) => Promise < WalletClient > ;
42
42
getCosmosSigner ?: ( chainID : string ) => Promise < OfflineSigner > ;
43
- getSVMSigner ?: ( ) => Promise < SignerWalletAdapter > ;
43
+ getSVMSigner ?: ( ) => Promise < Adapter > ;
44
44
onTransactionBroadcast ?: ( txInfo : {
45
45
txHash : string ;
46
46
chainID : string ;
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ import {
60
60
import * as types from "./types" ;
61
61
import * as clientTypes from "./client-types" ;
62
62
import { msgsDirectRequestToJSON } from "./types/converters" ;
63
- import { SignerWalletAdapter } from "@solana/wallet-adapter-base" ;
63
+ import { Adapter } from "@solana/wallet-adapter-base" ;
64
64
import { Connection , Transaction } from "@solana/web3.js" ;
65
65
66
66
export const SKIP_API_URL = "https://api.skip.money" ;
@@ -81,7 +81,7 @@ export class SkipRouter {
81
81
82
82
private getCosmosSigner ?: ( chainID : string ) => Promise < OfflineSigner > ;
83
83
private getEVMSigner ?: ( chainID : string ) => Promise < WalletClient > ;
84
- private getSVMSigner ?: ( ) => Promise < SignerWalletAdapter > ;
84
+ private getSVMSigner ?: ( ) => Promise < Adapter > ;
85
85
86
86
constructor ( options : clientTypes . SkipRouterOptions = { } ) {
87
87
this . clientID = options . clientID || "skip-router-js" ;
@@ -558,7 +558,7 @@ export class SkipRouter {
558
558
signer,
559
559
message,
560
560
} : {
561
- signer : SignerWalletAdapter ;
561
+ signer : Adapter ;
562
562
message : types . SvmTx ;
563
563
} ) {
564
564
const _tx = Buffer . from ( message . tx , "base64" ) ;
You can’t perform that action at this time.
0 commit comments