An open API service indexing awesome lists of open source software.

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.

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