@relayprotocol/relay-svm-wallet-adapter 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ import { Connection, TransactionInstruction, VersionedTransaction, type SendOptions, type TransactionSignature } from '@solana/web3.js';
2
+ import { type AdaptedWallet, type TransactionStepItem } from '@relayprotocol/relay-sdk';
3
+ /**
4
+ * Adapts a Solana wallet to work with the Relay SDK
5
+ * @param walletAddress - The public key address of the Solana wallet
6
+ * @param chainId - The chain ID for the Solana network (e.g., 101 for mainnet, 102 for testnet)
7
+ * @param connection - The Solana web3.js Connection instance for interacting with the network
8
+ * @param signAndSendTransaction - Function to sign and send a transaction, returning a promise with the transaction signature
9
+ * @param payerKey - Optional public key of the account that will pay for transaction fees (defaults to walletAddress)
10
+ * @returns An AdaptedWallet object that conforms to the Relay SDK interface
11
+ */
12
+ export declare const adaptSolanaWallet: (walletAddress: string, chainId: number, connection: Connection, signAndSendTransaction: (transaction: VersionedTransaction, options?: SendOptions, instructions?: TransactionInstruction[], rawInstructions?: TransactionStepItem['data']['instructions']) => Promise<{
13
+ signature: TransactionSignature;
14
+ }>, payerKey?: string) => AdaptedWallet;
15
+ //# sourceMappingURL=adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,sBAAsB,EAEtB,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EAC1B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAA;AAEjC;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,kBACb,MAAM,WACZ,MAAM,cACH,UAAU,0BACE,CACtB,WAAW,EAAE,oBAAoB,EACjC,OAAO,CAAC,EAAE,WAAW,EACrB,YAAY,CAAC,EAAE,sBAAsB,EAAE,EACvC,eAAe,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,KAC1D,QAAQ;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC,aACS,MAAM,KAChB,aA4FF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './adapter.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}