Skip to content

Commit 0c22062

Browse files
authored
Merge pull request #113 from BitGo/BTC-2955
feat(wasm-solana): add transaction building support
2 parents 5c34219 + 9709ed2 commit 0c22062

File tree

25 files changed

+6346
-144
lines changed

25 files changed

+6346
-144
lines changed

packages/wasm-solana/Cargo.lock

Lines changed: 964 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/wasm-solana/Cargo.toml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,30 @@ wasm-bindgen = "0.2"
1717
js-sys = "0.3"
1818
serde = { version = "1.0", features = ["derive"] }
1919
serde_json = "1.0"
20-
# Solana SDK crates
20+
# Solana 3.x crates (for transaction building)
21+
solana-sdk = { version = "3.0", default-features = false, features = ["full"] }
22+
solana-transaction = { version = "3.0", features = ["serde", "bincode"] }
23+
solana-message = { version = "3.0", features = ["serde", "bincode"] }
24+
solana-system-interface = { version = "3.0", features = ["bincode"] }
25+
solana-compute-budget-interface = { version = "3.0", features = ["borsh"] }
26+
# Solana 2.x crates (no 3.x available yet for these)
27+
solana-stake-interface = { version = "2.0", features = ["bincode"] }
2128
solana-pubkey = { version = "2.0", features = ["curve25519"] }
2229
solana-keypair = "2.0"
2330
solana-signer = "2.0"
24-
solana-transaction = { version = "3.0", features = ["serde", "bincode"] }
25-
# Instruction decoder interfaces (official Solana crates)
26-
solana-system-interface = { version = "2.0", features = ["bincode"] }
27-
solana-stake-interface = { version = "2.0", features = ["bincode"] }
28-
solana-compute-budget-interface = { version = "2.0", features = ["borsh"] }
31+
solana-signature = "3.0"
32+
solana-address = "1.0"
2933
# Serialization
3034
bincode = "1.3"
3135
borsh = "1.5"
3236
base64 = "0.22"
37+
hex = "0.4"
3338
serde-wasm-bindgen = "0.6"
39+
# SPL crates for token/ATA operations
3440
spl-stake-pool = { version = "2.0.3", features = ["no-entrypoint"] }
41+
spl-token = { version = "6.0", features = ["no-entrypoint"] }
42+
spl-associated-token-account = { version = "4.0", features = ["no-entrypoint"] }
43+
spl-memo = { version = "5.0", features = ["no-entrypoint"] }
3544

3645
[dev-dependencies]
3746
wasm-bindgen-test = "0.3"

0 commit comments

Comments
 (0)