fix: add missing function descriptions

This commit is contained in:
Tyera Eulberg
2020-01-08 14:44:50 -07:00
committed by Michael Vines
parent 4a547b0057
commit 17065c3692

View File

@ -677,7 +677,7 @@ export class Connection {
} }
/** /**
* Fetch the balance for the specified public key * Fetch the balance for the specified public key, return with context
*/ */
async getBalanceAndContext( async getBalanceAndContext(
publicKey: PublicKey, publicKey: PublicKey,
@ -692,6 +692,10 @@ export class Connection {
assert(typeof res.result !== 'undefined'); assert(typeof res.result !== 'undefined');
return res.result; return res.result;
} }
/**
* Fetch the balance for the specified public key
*/
async getBalance( async getBalance(
publicKey: PublicKey, publicKey: PublicKey,
commitment: ?Commitment, commitment: ?Commitment,
@ -704,7 +708,7 @@ export class Connection {
} }
/** /**
* Fetch all the account info for the specified public key * Fetch all the account info for the specified public key, return with context
*/ */
async getAccountInfoAndContext( async getAccountInfoAndContext(
publicKey: PublicKey, publicKey: PublicKey,
@ -737,6 +741,10 @@ export class Connection {
value, value,
}; };
} }
/**
* Fetch all the account info for the specified public key
*/
async getAccountInfo( async getAccountInfo(
publicKey: PublicKey, publicKey: PublicKey,
commitment: ?Commitment, commitment: ?Commitment,
@ -779,7 +787,7 @@ export class Connection {
} }
/** /**
* Confirm the transaction identified by the specified signature * Confirm the transaction identified by the specified signature, return with context
*/ */
async confirmTransactionAndContext( async confirmTransactionAndContext(
signature: TransactionSignature, signature: TransactionSignature,
@ -794,6 +802,10 @@ export class Connection {
assert(typeof res.result !== 'undefined'); assert(typeof res.result !== 'undefined');
return res.result; return res.result;
} }
/**
* Confirm the transaction identified by the specified signature
*/
async confirmTransaction( async confirmTransaction(
signature: TransactionSignature, signature: TransactionSignature,
commitment: ?Commitment, commitment: ?Commitment,
@ -971,7 +983,7 @@ export class Connection {
} }
/** /**
* Fetch a recent blockhash from the cluster * Fetch a recent blockhash from the cluster, return with context
*/ */
async getRecentBlockhashAndContext( async getRecentBlockhashAndContext(
commitment: ?Commitment, commitment: ?Commitment,
@ -986,6 +998,10 @@ export class Connection {
assert(typeof res.result !== 'undefined'); assert(typeof res.result !== 'undefined');
return res.result; return res.result;
} }
/**
* Fetch a recent blockhash from the cluster
*/
async getRecentBlockhash( async getRecentBlockhash(
commitment: ?Commitment, commitment: ?Commitment,
): Promise<BlockhashAndFeeCalculator> { ): Promise<BlockhashAndFeeCalculator> {
@ -1033,7 +1049,7 @@ export class Connection {
} }
/** /**
* Fetch the contents of a Nonce account from the cluster * Fetch the contents of a Nonce account from the cluster, return with context
*/ */
async getNonceAndContext( async getNonceAndContext(
nonceAccount: PublicKey, nonceAccount: PublicKey,
@ -1064,6 +1080,10 @@ export class Connection {
value, value,
}; };
} }
/**
* Fetch the contents of a Nonce account from the cluster
*/
async getNonce( async getNonce(
nonceAccount: PublicKey, nonceAccount: PublicKey,
commitment: ?Commitment, commitment: ?Commitment,