@saberhq/solana-contrib
Advanced tools
Comparing version 1.12.52 to 1.12.53
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import type { Blockhash, Commitment, ConfirmOptions, Connection, KeyedAccountInfo, PublicKey, RpcResponseAndContext, Signer, SimulatedTransactionResponse, Transaction } from "@solana/web3.js"; | ||
@@ -165,2 +166,21 @@ import type { PendingTransaction } from "."; | ||
export declare type EventParser<E extends Event> = (logs: string[]) => E[]; | ||
/** | ||
* A parser for program-owned accounts. | ||
* | ||
* This is used downstream by Sail. | ||
*/ | ||
export interface ProgramAccountParser<T> { | ||
/** | ||
* ID of the program. | ||
*/ | ||
programID: PublicKey; | ||
/** | ||
* Name of the account. | ||
*/ | ||
name: string; | ||
/** | ||
* Function which parses the account. | ||
*/ | ||
parse: (data: Buffer) => T; | ||
} | ||
//# sourceMappingURL=interfaces.d.ts.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import type { Blockhash, Commitment, ConfirmOptions, Connection, KeyedAccountInfo, PublicKey, RpcResponseAndContext, Signer, SimulatedTransactionResponse, Transaction } from "@solana/web3.js"; | ||
@@ -165,2 +166,21 @@ import type { PendingTransaction } from "."; | ||
export declare type EventParser<E extends Event> = (logs: string[]) => E[]; | ||
/** | ||
* A parser for program-owned accounts. | ||
* | ||
* This is used downstream by Sail. | ||
*/ | ||
export interface ProgramAccountParser<T> { | ||
/** | ||
* ID of the program. | ||
*/ | ||
programID: PublicKey; | ||
/** | ||
* Name of the account. | ||
*/ | ||
name: string; | ||
/** | ||
* Function which parses the account. | ||
*/ | ||
parse: (data: Buffer) => T; | ||
} | ||
//# sourceMappingURL=interfaces.d.ts.map |
{ | ||
"name": "@saberhq/solana-contrib", | ||
"version": "1.12.52", | ||
"version": "1.12.53", | ||
"description": "Common types and libraries for Solana", | ||
@@ -45,3 +45,3 @@ "author": "Ian Macalinao <ian@saber.so>", | ||
}, | ||
"gitHead": "7dde0daf9c8b79f5ee2e3ac6406fddd28aec46e7", | ||
"gitHead": "27bd412a8bf627783d09aba117f8c87417d41d24", | ||
"publishConfig": { | ||
@@ -48,0 +48,0 @@ "access": "public" |
@@ -225,1 +225,21 @@ import type { | ||
export type EventParser<E extends Event> = (logs: string[]) => E[]; | ||
/** | ||
* A parser for program-owned accounts. | ||
* | ||
* This is used downstream by Sail. | ||
*/ | ||
export interface ProgramAccountParser<T> { | ||
/** | ||
* ID of the program. | ||
*/ | ||
programID: PublicKey; | ||
/** | ||
* Name of the account. | ||
*/ | ||
name: string; | ||
/** | ||
* Function which parses the account. | ||
*/ | ||
parse: (data: Buffer) => T; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
646458
9103