chore: cleanup flow and package.json

This commit is contained in:
Justin Starry
2021-02-08 00:57:12 +08:00
committed by Justin Starry
parent c675c67c26
commit f0a8aba2e2
50 changed files with 2167 additions and 285 deletions

View File

@@ -1423,7 +1423,7 @@ const SendTransactionRpcResult = jsonRpcResult('string');
* @property {number} parent Parent of the current slot
* @property {number} root The root block of the current slot's fork
*/
type SlotInfo = {
export type SlotInfo = {
slot: number,
parent: number,
root: number,
@@ -1480,7 +1480,7 @@ type AccountInfo<T> = {
* @property {PublicKey} accountId
* @property {AccountInfo<Buffer>} accountInfo
*/
type KeyedAccountInfo = {
export type KeyedAccountInfo = {
accountId: PublicKey,
accountInfo: AccountInfo<Buffer>,
};

View File

@@ -6,7 +6,6 @@ import nacl from 'tweetnacl';
import {sha256} from 'crypto-hash';
import {Buffer} from 'buffer';
//$FlowFixMe
let naclLowLevel = nacl.lowlevel;
type PublicKeyNonce = [PublicKey, number]; // This type exists to workaround an esdoc parse error