-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export * from './legacy'; | ||
|
||
/** | ||
* The message header, identifying signed and read-only account | ||
*/ | ||
export type MessageHeader = { | ||
/** | ||
* The number of signatures required for this message to be considered valid. The | ||
* signatures must match the first `numRequiredSignatures` of `accountKeys`. | ||
*/ | ||
numRequiredSignatures: number; | ||
/** The last `numReadonlySignedAccounts` of the signed keys are read-only accounts */ | ||
numReadonlySignedAccounts: number; | ||
/** The last `numReadonlySignedAccounts` of the unsigned keys are read-only accounts */ | ||
numReadonlyUnsignedAccounts: number; | ||
}; | ||
|
||
/** | ||
* An instruction to execute by a program | ||
* | ||
* @property {number} programIdIndex | ||
* @property {number[]} accounts | ||
* @property {string} data | ||
*/ | ||
export type CompiledInstruction = { | ||
/** Index into the transaction keys array indicating the program account that executes this instruction */ | ||
programIdIndex: number; | ||
/** Ordered indices into the transaction keys array indicating which accounts to pass to the program */ | ||
accounts: number[]; | ||
/** The program input data encoded as base 58 */ | ||
data: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters