fix(flow): Add ProgramAccountChangeCallback type
This commit is contained in:
parent
b5653f47eb
commit
a4835edf3c
|
@ -43,7 +43,13 @@ declare module '@solana/web3.js' {
|
||||||
data: Buffer,
|
data: Buffer,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
declare export type KeyedAccountInfo = {
|
||||||
|
accountId: PublicKey,
|
||||||
|
accountInfo: AccountInfo,
|
||||||
|
};
|
||||||
|
|
||||||
declare type AccountChangeCallback = (accountInfo: AccountInfo) => void;
|
declare type AccountChangeCallback = (accountInfo: AccountInfo) => void;
|
||||||
|
declare type ProgramAccountChangeCallback = (keyedAccountInfo: KeyedAccountInfo) => void;
|
||||||
|
|
||||||
declare export type SignatureStatus =
|
declare export type SignatureStatus =
|
||||||
| 'Confirmed'
|
| 'Confirmed'
|
||||||
|
|
Loading…
Reference in New Issue