@orca-so/common-sdk
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -7,1 +7,7 @@ import { PublicKey, Transaction, VersionedTransaction } from "@solana/web3.js"; | ||
} | ||
export declare class ReadOnlyWallet implements Wallet { | ||
publicKey: PublicKey; | ||
constructor(publicKey?: PublicKey); | ||
signTransaction<T extends Transaction | VersionedTransaction>(_transaction: T): Promise<T>; | ||
signAllTransactions<T extends Transaction | VersionedTransaction>(_transactions: T[]): Promise<T[]>; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ReadOnlyWallet = void 0; | ||
const web3_js_1 = require("@solana/web3.js"); | ||
class ReadOnlyWallet { | ||
constructor(publicKey = web3_js_1.PublicKey.default) { | ||
this.publicKey = publicKey; | ||
} | ||
signTransaction(_transaction) { | ||
throw new Error("Read only wallet cannot sign transaction."); | ||
} | ||
signAllTransactions(_transactions) { | ||
throw new Error("Read only wallet cannot sign transactions."); | ||
} | ||
} | ||
exports.ReadOnlyWallet = ReadOnlyWallet; |
{ | ||
"name": "@orca-so/common-sdk", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Common Typescript components across Orca", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/orca-so/orca-sdks", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1773
127213