Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add 'instruction handler' and separate from 'instruction' #70

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions docs/terminology.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,18 @@ See [cross-program invocation](#cross-program-invocation-cpi).

## instruction

The smallest contiguous unit of execution logic in a [program](#program). An
instruction specifies which program it is calling, which accounts it wants to
A call to invoke a specific [instruction handler](#instruction-handler) in a
[program](#program). An instruction also specifies which accounts it wants to
read or modify, and additional data that serves as auxiliary input to the
program. A [client](#client) can include one or multiple instructions in a
[transaction](#transaction). An instruction may contain one or more
[instruction handler](#instruction-handler). A [client](#client) must include at
least one instruction in a [transaction](#transaction), and all instructions
must complete for the transaction to be considered successful.

## instruction handler

Instruction handlers are [program](#program) functions that process
[instructions](#instruction) from [transactions](#transaction). An instruction
handler may contain one or more
[cross-program invocations](#cross-program-invocation-cpi).

## keypair
Expand Down
Loading