This commit is contained in:
Michael Vines
2018-09-20 15:35:41 -07:00
parent 7148b0f7d8
commit 914c54e071
2 changed files with 12 additions and 0 deletions

View File

@ -135,6 +135,11 @@ const SendTokensRpcResult = struct({
/** /**
* Information describing an account * Information describing an account
*
* @typedef {Object} AccountInfo
* @property {number} tokens Number of tokens assigned to the account
* @property {PublicKey} programId Identifier of the program assigned to the account
* @property {?Buffer} userdata Optional userdata assigned to the account
*/ */
type AccountInfo = { type AccountInfo = {
tokens: number, tokens: number,

View File

@ -18,6 +18,13 @@ export type TransactionId = string;
/** /**
* List of Transaction object fields that may be initialized at construction * List of Transaction object fields that may be initialized at construction
*
* @typedef {Object} TransactionCtorFields
* @property {?Buffer} signature
* @property {?Array<PublicKey>} keys
* @property {?PublicKey} programId
* @property {?number} fee
* @property {?Buffer} userdata
*/ */
type TransactionCtorFields = {| type TransactionCtorFields = {|
signature?: Buffer; signature?: Buffer;