Skip to content

Commit

Permalink
Add utf8 memo program (solana-labs#27)
Browse files Browse the repository at this point in the history
* Initial memo commit

* Add program id

* Update CI

* Remove unneeded dependencies

* Try instead of map

* clippy --tests
  • Loading branch information
CriesofCarrots authored Jun 6, 2020
1 parent 3cf8c8b commit ff8b5ac
Show file tree
Hide file tree
Showing 11 changed files with 417 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bin
*/target/
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ install:
jobs:
include:
- stage: "Test Programs"
script: ./ci/build-test-all.sh
- script: ./ci/token.sh
script: ./ci/token.sh
- script: ./ci/memo.sh
4 changes: 2 additions & 2 deletions ci/build-test-all.sh → ci/memo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ cd "$(dirname "$0")/.."

set -e

./do.sh build
./do.sh test
./do.sh build memo
./do.sh test memo
339 changes: 339 additions & 0 deletions memo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions memo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

# Note: This crate must be built using do.sh

[package]
name = "spl-memo"
version = "0.1.0"
description = "Solana Program Library Memo"
authors = ["Solana Maintainers <maintainers@solana.com>"]
repository = "https://github.com/solana-labs/solana-program-library"
license = "Apache-2.0"
edition = "2018"

[dependencies]
solana-sdk = { version = "=1.2.0", default-features = false, features=["program"] }

[lib]
name = "spl_memo"
crate-type = ["cdylib", "lib"]
4 changes: 4 additions & 0 deletions memo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Memo Program

A simple program that accepts a string of encoded characters and verifies that
it parses. Currently handles UTF-8.
2 changes: 2 additions & 0 deletions memo/Xargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.bpfel-unknown-unknown.dependencies.std]
features = []
1 change: 1 addition & 0 deletions memo/program-id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo
1 change: 1 addition & 0 deletions memo/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod processor;
Loading

0 comments on commit ff8b5ac

Please sign in to comment.