https://github.com/xandkar/solana-echo-fixed
Illustrates reusing a single, fixed-size buffer account. Client in Rust.
https://github.com/xandkar/solana-echo-fixed
Last synced: 7 months ago
JSON representation
Illustrates reusing a single, fixed-size buffer account. Client in Rust.
- Host: GitHub
- URL: https://github.com/xandkar/solana-echo-fixed
- Owner: xandkar
- License: bsd-3-clause
- Created: 2022-08-19T20:56:12.000Z (about 3 years ago)
- Default Branch: dominus
- Last Pushed: 2022-08-19T20:56:23.000Z (about 3 years ago)
- Last Synced: 2024-10-19T03:06:43.733Z (12 months ago)
- Language: Rust
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
solana echo fixed
=================Like echo-dyn[1], but using a single, fixed-size buffer account, instead of
allocating new ones dynamically.If all goes well, your interactive session would look something like this:
airdrop requesting.
airdrop confirming .....
airdrop done
> hi
< hi
: 61UH7E6V8paqMryHuthhNX64FhnsyZyyE3gda75AUMpryxX7MxfedKz3xqxUiW3t1pAogs4G7XcixfYV6Rc6c5LA
> foo bar baz qux quux
< foo bar baz qux quux
: 5bPPAoJkcTEtXdu2qKybsCjNJ5BefEtehhB6nkzT2Z8Bqo4iGhbrew4GqPxwAzhAApSUB1EaMfoLajJ7zSYwSo67
> - "Do you like apples?"
< - "Do you like apples?"
: 2hvDgarxgpGtYGdmm9vCjBjrGhjbtr2Q86PwwUEHmdYi53Rit3jfEEnrHvkzqwxKd1L5U9Egv5iZDF7s9pibaF77
>[1]: https://github.com/xandkar/solana-echo-dyn
build
-----make build
run
---### local
$ solana-test-validator&
$ make all### devnet
$ CLUSTER=dev make all
### testnet
$ CLUSTER=test make all