forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add shared-memory program (solana-labs#611)
* add shared-memory program * add offset and reduce shared object size
- Loading branch information
Showing
16 changed files
with
8,846 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ module.exports = { | |
"token", | ||
"token-swap", | ||
"memo", | ||
"shared-memory", | ||
], | ||
}, | ||
}; |
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 @@ | ||
--- | ||
title: Shared memory Program | ||
--- | ||
|
||
A simple program and highly optimized program that writes instruction data into | ||
the provided account's data | ||
|
||
## Background | ||
|
||
Solana's programming model and the definitions of the Solana terms used in this | ||
document are available at: | ||
|
||
- https://docs.solana.com/apps | ||
- https://docs.solana.com/terminology | ||
|
||
## Source | ||
|
||
The Shared memory Program's source is available on | ||
[github](https://github.com/solana-labs/solana-program-library) | ||
|
||
## Interface | ||
|
||
The Shared memory program expects one account and writes instruction data into | ||
the account's data. The first 8 bytes of the instruction data contain the | ||
little-endian offset into the account data. The rest of the instruction data is | ||
written into the account data starting at that offset. | ||
|
||
## Operational overview | ||
|
||
This program is useful for returning data from cross-program invoked programs to | ||
the invoker. Because the account does not need to be signed it is not reliable | ||
to use this program to pass data between programs from different transactions. |
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,6 @@ | ||
# Shared memory program | ||
|
||
A shared-memory program on the Solana blockchain, usable for for sharing data | ||
between programs or within cross-program invocations. | ||
|
||
Full documentation is available at https://spl.solana.com |
Oops, something went wrong.