Skip to content

Commit 07535d8

Browse files
committed
change adapter types
1 parent bb2b5af commit 07535d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: packages/core/src/client-types.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { WalletClient } from "viem";
1515

1616
import * as types from "./types";
17-
import { SignerWalletAdapter } from "@solana/wallet-adapter-base";
17+
import { Adapter } from "@solana/wallet-adapter-base";
1818
export type EndpointOptions = {
1919
rpc?: string;
2020
rest?: string;
@@ -25,7 +25,7 @@ export interface SkipRouterOptions {
2525
clientID?: string;
2626
getEVMSigner?: (chainID: string) => Promise<WalletClient>;
2727
getCosmosSigner?: (chainID: string) => Promise<OfflineSigner>;
28-
getSVMSigner?: () => Promise<SignerWalletAdapter>;
28+
getSVMSigner?: () => Promise<Adapter>;
2929
endpointOptions?: {
3030
endpoints?: Record<string, EndpointOptions>;
3131
getRpcEndpointForChain?: (chainID: string) => Promise<string>;
@@ -40,7 +40,7 @@ export type ExecuteRouteOptions = {
4040
userAddresses: Record<string, string>;
4141
getEVMSigner?: (chainID: string) => Promise<WalletClient>;
4242
getCosmosSigner?: (chainID: string) => Promise<OfflineSigner>;
43-
getSVMSigner?: () => Promise<SignerWalletAdapter>;
43+
getSVMSigner?: () => Promise<Adapter>;
4444
onTransactionBroadcast?: (txInfo: {
4545
txHash: string;
4646
chainID: string;

Diff for: packages/core/src/client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import {
6060
import * as types from "./types";
6161
import * as clientTypes from "./client-types";
6262
import { msgsDirectRequestToJSON } from "./types/converters";
63-
import { SignerWalletAdapter } from "@solana/wallet-adapter-base";
63+
import { Adapter } from "@solana/wallet-adapter-base";
6464
import { Connection, Transaction } from "@solana/web3.js";
6565

6666
export const SKIP_API_URL = "https://api.skip.money";
@@ -81,7 +81,7 @@ export class SkipRouter {
8181

8282
private getCosmosSigner?: (chainID: string) => Promise<OfflineSigner>;
8383
private getEVMSigner?: (chainID: string) => Promise<WalletClient>;
84-
private getSVMSigner?: () => Promise<SignerWalletAdapter>;
84+
private getSVMSigner?: () => Promise<Adapter>;
8585

8686
constructor(options: clientTypes.SkipRouterOptions = {}) {
8787
this.clientID = options.clientID || "skip-router-js";
@@ -558,7 +558,7 @@ export class SkipRouter {
558558
signer,
559559
message,
560560
}: {
561-
signer: SignerWalletAdapter;
561+
signer: Adapter;
562562
message: types.SvmTx;
563563
}) {
564564
const _tx = Buffer.from(message.tx, "base64");

0 commit comments

Comments
 (0)