Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Jun 30, 2024
1 parent 19d5c66 commit a1d0883
Show file tree
Hide file tree
Showing 7 changed files with 316 additions and 97 deletions.
2 changes: 1 addition & 1 deletion extensions/wallet/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 extensions/wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,23 @@
resolver = "2"
members = ["program"]

[workspace.package]
authors = ["DePHY dev team"]
homepage = "https://dephy.id"
repository = "https://github.com/dephy-io/dephy-id"
license = "Apache-2.0"

[workspace.metadata.solana]
external-programs-output = "../../target/deploy"

[workspace.dependencies]
borsh = "1.5.1"
shank = "0.4.2"
num-derive = "0.4.2"
num-traits = "0.2.19"
solana-program = "2.0.1"
thiserror = "1.0.61"
dephy-id-program-client = { path = "../../clients/rust" }
spl-token-2022 = "4.0.0"
spl-associated-token-account = "4.0.0"
spl-token-metadata-interface = "0.4.0"
29 changes: 16 additions & 13 deletions extensions/wallet/program/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[package]
name = "dephy-id-wallet"
version = "0.0.0"
version = "0.0.1"
authors.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
readme = "README.md"
edition = "2021"
readme = "./README.md"
license-file = "../LICENSE"
publish = false

[package.metadata.solana]
Expand All @@ -17,14 +20,14 @@ dephy_id_program = "hdMghjD73uASxgJXi6e1mGPsXqnADMsrqB1bveqABP1"
crate-type = ["cdylib", "lib"]

[dependencies]
borsh = "1.5.1"
shank = "^0.4.2"
num-derive = "0.4.2"
num-traits = "^0.2"
solana-program = "~2.0"
thiserror = "^1.0"
dephy-id-program-client = { path = "../../../clients/rust" }
spl-token-2022 = { version = "4.0.0", features = ["no-entrypoint"] }
spl-associated-token-account = { version = "4.0.0", features = ["no-entrypoint"] }
spl-token-metadata-interface = "0.4.0"
borsh = { workspace = true }
shank = { workspace = true }
num-derive = { workspace = true }
num-traits = { workspace = true }
solana-program = { workspace = true }
thiserror = { workspace = true }
dephy-id-program-client = { workspace = true }
spl-token-2022 = { workspace = true, features = ["no-entrypoint"] }
spl-associated-token-account = { workspace = true, features = ["no-entrypoint"] }
spl-token-metadata-interface = { workspace = true }

24 changes: 24 additions & 0 deletions extensions/wallet/program/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
DePHY ID wallet Solana program
====

> Note: Use `Solana 1.18.15` or later
## Local setup

## Compile program

```sh
cargo-build-sbf
```

## Test program

```sh
cargo-test-sbf
```

### Deploy program

```sh
solana -u l program deploy target/deploy/dephy_id_wallet.so --program-id ./program/keypair.json
```
2 changes: 1 addition & 1 deletion program/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ DePHY ID Solana program

> Run all commands in the root of the repo
> Note: Use `Solana 1.18.12` or later
> Note: Use `Solana 1.18.15` or later
## Local setup

Expand Down
Loading

0 comments on commit a1d0883

Please sign in to comment.