feat: add root subscription api
This commit is contained in:
committed by
Michael Vines
parent
3379e8cd46
commit
a2c6c991b8
@ -142,6 +142,7 @@ declare module '@solana/web3.js' {
|
||||
signatureResult: SignatureSuccess | TransactionError,
|
||||
context: Context,
|
||||
) => void;
|
||||
declare type RootChangeCallback = (root: number) => void;
|
||||
|
||||
declare export type SignatureSuccess = {|
|
||||
Ok: null,
|
||||
@ -255,6 +256,8 @@ declare module '@solana/web3.js' {
|
||||
callback: SignatureResultCallback,
|
||||
): number;
|
||||
removeSignatureListener(id: number): Promise<void>;
|
||||
onRootChange(callback: RootChangeCallback): number;
|
||||
removeRootChangeListener(id: number): Promise<void>;
|
||||
validatorExit(): Promise<boolean>;
|
||||
getMinimumBalanceForRentExemption(
|
||||
dataLength: number,
|
||||
|
Reference in New Issue
Block a user