@orca-so/common-sdk
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -17,3 +17,3 @@ import { Account, Mint } from "@solana/spl-token"; | ||
*/ | ||
getAccount: (address: Address, parser: ParsableEntity<T>, opts?: AccountFetchOptions) => Promise<T | null>; | ||
getAccount: <U extends T>(address: Address, parser: ParsableEntity<U>, opts?: AccountFetchOptions) => Promise<U | null>; | ||
/** | ||
@@ -26,3 +26,3 @@ * Fetch multiple accounts from the cache or from the network | ||
*/ | ||
getAccounts: (address: Address[], parser: ParsableEntity<T>, opts?: AccountFetchOptions) => Promise<ReadonlyMap<string, T | null>>; | ||
getAccounts: <U extends T>(address: Address[], parser: ParsableEntity<U>, opts?: AccountFetchOptions) => Promise<ReadonlyMap<string, U | null>>; | ||
/** | ||
@@ -35,3 +35,3 @@ * Fetch multiple accounts from the cache or from the network and return as an array | ||
*/ | ||
getAccountsAsArray: (address: Address[], parser: ParsableEntity<T>, opts?: AccountFetchOptions) => Promise<ReadonlyArray<T | null>>; | ||
getAccountsAsArray: <U extends T>(address: Address[], parser: ParsableEntity<U>, opts?: AccountFetchOptions) => Promise<ReadonlyArray<U | null>>; | ||
} |
{ | ||
"name": "@orca-so/common-sdk", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"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
153078