Skip to content

Commit

Permalink
docs: add 'instruction handler' and separate from 'instruction' (#70)
Browse files Browse the repository at this point in the history
* docs: add 'instruction handler' and separate from 'instruction'

* Update docs/terminology.md

* Update docs/terminology.md

---------

Co-authored-by: Nick Frostbutter <75431177+nickfrosty@users.noreply.github.com>
  • Loading branch information
mikemaccana and nickfrosty authored Feb 24, 2024
1 parent 650bb55 commit 926ef7e
Showing 1 changed file with 11 additions and 4 deletions.
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

0 comments on commit 926ef7e

Please sign in to comment.