Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program / program-test / cli / js / client / confidential-transfer:Port from SPL #55

Merged
merged 2,228 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2228 commits
Select commit Hold shift + click to select a range
65b4d3e
Reapply "[token-2022] Add support for reading proofs from record acco…
joncinque Jul 31, 2024
3735c55
build(deps-dev): bump @types/node from 22.0.0 to 22.0.2 (#7088)
dependabot[bot] Aug 1, 2024
1e5dae5
build(deps-dev): bump @types/chai from 4.3.16 to 4.3.17 (#7093)
dependabot[bot] Aug 1, 2024
22476c9
build(deps-dev): bump @solana/codecs-strings from 2.0.0-preview.4 to …
dependabot[bot] Aug 1, 2024
deb0e23
token-cli: create transfer-fee-basis-points and transfer-fee-maximum-…
Hrushi20 Aug 1, 2024
2761d7f
spl-token-cli: support compute price + limit with native tokens (#7101)
0xcypher02 Aug 1, 2024
a2c9229
build(deps): bump serde_json from 1.0.121 to 1.0.122 (#7102)
dependabot[bot] Aug 2, 2024
b476aec
build(deps-dev): bump @types/node from 22.0.2 to 22.0.3 (#7103)
dependabot[bot] Aug 2, 2024
e97fb74
transfer-hook: Relax requirement of validation account (#7099)
joncinque Aug 2, 2024
0431b84
build(deps): bump tempfile from 3.10.1 to 3.11.0 (#7107)
dependabot[bot] Aug 5, 2024
d22a462
build(deps-dev): bump @types/node from 22.0.3 to 22.1.0 (#7111)
dependabot[bot] Aug 5, 2024
a2dcbe0
pnpm: Use workspace-wide prettier configuration (#7115)
joncinque Aug 5, 2024
8bda23d
build(deps): bump tempfile from 3.11.0 to 3.12.0 (#7119)
dependabot[bot] Aug 7, 2024
d6fcf02
build(deps): bump serde from 1.0.204 to 1.0.205 (#7124)
dependabot[bot] Aug 8, 2024
52dbdf1
build(deps): bump assert_cmd from 2.0.15 to 2.0.16 (#7128)
dependabot[bot] Aug 9, 2024
0321531
token-2022: add token 2022 argument to token cli for easy use (#7006)
Woody4618 Aug 9, 2024
d5c50ae
[token-2022] Add support for record program for `Transfer` and `Trans…
samkim-crypto Aug 11, 2024
ef3541c
build(deps): bump serde from 1.0.205 to 1.0.206 (#7131)
dependabot[bot] Aug 12, 2024
7055638
build(deps-dev): bump @types/node from 22.1.0 to 22.2.0 (#7133)
dependabot[bot] Aug 12, 2024
d0f7aa9
build(deps-dev): bump mocha from 10.7.0 to 10.7.3 (#7136)
dependabot[bot] Aug 12, 2024
17648fc
build(deps-dev): bump @solana/codecs-strings from 2.0.0-rc.0 to 2.0.0…
dependabot[bot] Aug 12, 2024
3bf902c
build(deps): bump serde_json from 1.0.122 to 1.0.124 (#7132)
dependabot[bot] Aug 12, 2024
7b09a51
build(deps): bump serde from 1.0.206 to 1.0.207 (#7139)
dependabot[bot] Aug 13, 2024
a979cb3
build(deps-dev): bump @typescript-eslint/parser from 7.18.0 to 8.1.0 …
dependabot[bot] Aug 13, 2024
32bd5a8
build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.17.0 to…
dependabot[bot] Aug 13, 2024
eef43ad
build(deps-dev): bump @types/node from 22.2.0 to 22.3.0 (#7149)
dependabot[bot] Aug 14, 2024
cb9d1b1
Adding Curve Option When Creating ATA (#7143)
QiLOL Aug 15, 2024
5061216
[token-2022] Upgrade to `zk-sdk` (#7148)
samkim-crypto Aug 16, 2024
02370f2
build(deps): bump serde_json from 1.0.124 to 1.0.125 (#7157)
dependabot[bot] Aug 16, 2024
be943e2
build(deps): bump bytemuck from 1.16.3 to 1.17.0 (#7159)
dependabot[bot] Aug 16, 2024
a3c0bec
build(deps): bump serde from 1.0.207 to 1.0.208 (#7158)
dependabot[bot] Aug 16, 2024
62df50e
token-cli: Add check withdraw-withheld-tokens has sources or include …
zzau13 Aug 16, 2024
fae4965
build(deps-dev): bump @types/node from 22.3.0 to 22.4.1 (#7170)
dependabot[bot] Aug 19, 2024
2e7ec20
build(deps-dev): bump typedoc from 0.26.5 to 0.26.6 (#7168)
dependabot[bot] Aug 19, 2024
7f0ddc3
[token-2022] Update docs to use `zk_elgamal_proof` program (#7162)
samkim-crypto Aug 19, 2024
7555bce
[token-2022] Update to `check_zk_elgamal_proof_program_account` (#7163)
samkim-crypto Aug 19, 2024
d13e9f9
[token-2022] Remove unnecessary split proof generation logic (#7164)
samkim-crypto Aug 19, 2024
c5e30ba
[token-2022] Refactor tests to use `ConfidentialTransferOption` (#7165)
samkim-crypto Aug 19, 2024
621b5bf
build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.1.0 to …
dependabot[bot] Aug 20, 2024
84168a8
build(deps-dev): bump @typescript-eslint/parser from 8.1.0 to 8.2.0 (…
dependabot[bot] Aug 20, 2024
ed5b37f
token-group: Increase max size type to u64 (#7130)
jacksondoherty Aug 20, 2024
6295058
build(deps): bump @solana/web3.js from 1.95.2 to 1.95.3 (#7177)
dependabot[bot] Aug 21, 2024
cf07c15
build(deps-dev): bump @types/node from 22.4.1 to 22.4.2 (#7176)
dependabot[bot] Aug 21, 2024
675a610
[token-client] use `Signers`instead of `Signer` for confidential tran…
samkim-crypto Aug 21, 2024
648ed26
[token-client] Make `close_context_state_account` and `close_record_a…
samkim-crypto Aug 21, 2024
12e0175
[token-client] remove `curve25519-dalek` dependency (#7179)
samkim-crypto Aug 22, 2024
27b500d
build(deps-dev): bump @types/node from 22.4.2 to 22.5.0 (#7180)
dependabot[bot] Aug 22, 2024
0b6b7b7
token-js: add derivation of createAssociatedTokenAccountIdempotentIns…
zzau13 Aug 23, 2024
408017f
build(deps): bump serde from 1.0.208 to 1.0.209 (#7187)
dependabot[bot] Aug 26, 2024
461e04a
build(deps-dev): bump @types/chai from 4.3.17 to 4.3.18 (#7189)
dependabot[bot] Aug 26, 2024
d018e14
build(deps): bump serde_json from 1.0.125 to 1.0.127 (#7188)
dependabot[bot] Aug 26, 2024
90201e5
deps: Bump solana-curve25519 to 2.0.3 for consistency (#7196)
joncinque Aug 26, 2024
384928e
build(deps-dev): bump @typescript-eslint/parser from 8.2.0 to 8.3.0 (…
dependabot[bot] Aug 27, 2024
8adc1c4
build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.2.0 to …
dependabot[bot] Aug 27, 2024
db13731
ATA: Extract associated-token-account-client crate from associated-to…
kevinheavey Aug 27, 2024
b11a126
Publish pod v0.3.2
github-actions[bot] Aug 27, 2024
988cfbd
Publish token-group-interface v0.4.0
github-actions[bot] Aug 27, 2024
4fc7d7e
Publish transfer-hook-interface v0.8.0
github-actions[bot] Aug 27, 2024
46bc7f4
Publish token-2022 v5.0.0
github-actions[bot] Aug 27, 2024
26f7240
Bump token-metadata-js and token-group-js (#7207)
buffalojoec Aug 28, 2024
17d110e
build(deps): bump bytemuck from 1.17.0 to 1.17.1 (#7209)
dependabot[bot] Aug 28, 2024
40a2cc6
Publish pod v0.4.0
github-actions[bot] Aug 28, 2024
cb0cc7f
build(deps-dev): bump @types/node from 22.5.0 to 22.5.1 (#7210)
dependabot[bot] Aug 28, 2024
b88f98d
build(deps-dev): bump @types/chai-as-promised from 7.1.8 to 8.0.0 (#7…
dependabot[bot] Aug 28, 2024
9206fcc
build(deps-dev): bump @types/chai from 4.3.18 to 4.3.19 (#7213)
dependabot[bot] Aug 28, 2024
f92197a
Publish tlv-account-resolution v0.8.0
github-actions[bot] Aug 28, 2024
0abd4c4
Publish record v0.2.1
github-actions[bot] Aug 28, 2024
d910ac7
Publish token-metadata-interface v0.5.0
github-actions[bot] Aug 28, 2024
d9458e9
Publish token-group-interface v0.4.1
github-actions[bot] Aug 28, 2024
87a26ea
Publish transfer-hook-interface v0.8.1
github-actions[bot] Aug 28, 2024
49cf485
Publish token-2022 v5.0.1
github-actions[bot] Aug 28, 2024
eb70ae2
Publish token-client v0.12.0
github-actions[bot] Aug 28, 2024
44f279d
Publish token-cli v4.1.0
github-actions[bot] Aug 28, 2024
9b87b56
build(deps-dev): bump @types/node from 22.5.1 to 22.5.2 (#7228)
dependabot[bot] Sep 2, 2024
1715254
build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.3.0 to …
dependabot[bot] Sep 3, 2024
5277993
build(deps-dev): bump @typescript-eslint/parser from 8.3.0 to 8.4.0 (…
dependabot[bot] Sep 3, 2024
e6ea3dd
Publish type-length-value v0.6.0 (#7233)
joncinque Sep 3, 2024
623f683
ci: Remove all references to twoxtx (#7234)
joncinque Sep 3, 2024
022603a
Publish tlv-account-resolution v0.8.1
github-actions[bot] Sep 3, 2024
b916ad9
Publish token-metadata-interface v0.5.1
github-actions[bot] Sep 3, 2024
ed22014
build(deps): bump tokio from 1.39.3 to 1.40.0 (#7217)
dependabot[bot] Sep 3, 2024
c0c220b
Publish token-group-interface v0.4.2
github-actions[bot] Sep 3, 2024
9a859cd
Publish transfer-hook-interface v0.8.2
github-actions[bot] Sep 3, 2024
ced9043
Publish token-2022 v5.0.2
github-actions[bot] Sep 3, 2024
263f8c0
Publish token-client v0.12.1
github-actions[bot] Sep 3, 2024
26bd500
Publish token-cli v4.1.1
github-actions[bot] Sep 3, 2024
870c7e8
Publish associated-token-account v4.0.1
github-actions[bot] Sep 3, 2024
5b20372
Publish associated-token-account v5.0.1
github-actions[bot] Sep 3, 2024
fc29027
token-2022: Update security.txt info (#7240)
joncinque Sep 4, 2024
9099374
build(deps-dev): bump @types/node from 22.5.2 to 22.5.3 (#7239)
dependabot[bot] Sep 4, 2024
04e031a
build(deps): bump serde_json from 1.0.127 to 1.0.128 (#7241)
dependabot[bot] Sep 5, 2024
8f79da1
build(deps-dev): bump @types/node from 22.5.3 to 22.5.4 (#7242)
dependabot[bot] Sep 5, 2024
f302b53
build(deps): bump bytemuck from 1.17.1 to 1.18.0 (#7244)
dependabot[bot] Sep 6, 2024
a9c4e75
build(deps): bump serde from 1.0.209 to 1.0.210 (#7250)
dependabot[bot] Sep 9, 2024
5d57638
build(deps-dev): bump start-server-and-test from 2.0.5 to 2.0.6 (#7252)
dependabot[bot] Sep 9, 2024
cdeaedf
build(deps-dev): bump typedoc from 0.26.6 to 0.26.7 (#7254)
dependabot[bot] Sep 9, 2024
d6d96dd
build(deps-dev): bump start-server-and-test from 2.0.6 to 2.0.7 (#7256)
dependabot[bot] Sep 10, 2024
eed75a0
build(deps-dev): bump typescript from 5.5.4 to 5.6.2 (#7255)
dependabot[bot] Sep 10, 2024
45632be
build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.4.0 to …
dependabot[bot] Sep 10, 2024
532ca77
build(deps-dev): bump @typescript-eslint/parser from 8.4.0 to 8.5.0 (…
dependabot[bot] Sep 10, 2024
8974ece
[token-cli] Add support for transfer-hook account resolution for tran…
tonton-sol Sep 12, 2024
429af7b
Revert ESLint plugin bump (#7260)
buffalojoec Sep 12, 2024
7a545c3
[confidential-transfer] Add confidential burn proof generation and ex…
samkim-crypto Sep 13, 2024
144acc3
build(deps-dev): bump @types/mocha from 10.0.7 to 10.0.8 (#7275)
dependabot[bot] Sep 13, 2024
8a8ac09
build(deps): bump arrayref from 0.3.8 to 0.3.9 (#7278)
dependabot[bot] Sep 16, 2024
21850c1
build(deps-dev): bump @types/node from 22.5.4 to 22.5.5 (#7279)
dependabot[bot] Sep 16, 2024
d2d170c
build(deps-dev): bump start-server-and-test from 2.0.7 to 2.0.8 (#7280)
dependabot[bot] Sep 16, 2024
ac59f64
build(deps): bump thiserror from 1.0.63 to 1.0.64 (#7288)
dependabot[bot] Sep 23, 2024
f74851f
build(deps-dev): bump @types/node from 22.5.5 to 22.6.1 (#7295)
dependabot[bot] Sep 24, 2024
0788715
build(deps-dev): bump @types/node from 22.6.1 to 22.7.0 (#7302)
dependabot[bot] Sep 25, 2024
80d1829
build(deps-dev): bump @types/chai from 4.3.19 to 5.0.0 (#7303)
dependabot[bot] Sep 25, 2024
01d41ca
build(deps-dev): bump @types/chai-as-promised from 8.0.0 to 8.0.1 (#7…
dependabot[bot] Sep 25, 2024
fa4c739
build(deps-dev): bump @types/node from 22.7.0 to 22.7.2 (#7307)
dependabot[bot] Sep 27, 2024
eb3a6a2
build(deps): bump tempfile from 3.12.0 to 3.13.0 (#7309)
dependabot[bot] Oct 1, 2024
203e857
build(deps-dev): bump @types/node from 22.7.2 to 22.7.4 (#7310)
dependabot[bot] Oct 1, 2024
dfdb258
build(deps): bump serde_with from 3.9.0 to 3.10.0 (#7320)
dependabot[bot] Oct 3, 2024
31a5a38
build(deps): bump serde_with from 3.10.0 to 3.11.0 (#7327)
dependabot[bot] Oct 7, 2024
789e12e
build(deps): bump futures from 0.3.30 to 0.3.31 (#7328)
dependabot[bot] Oct 7, 2024
c3f218a
build(deps): bump libtest-mimic from 0.7.3 to 0.8.1 (#7329)
dependabot[bot] Oct 7, 2024
6b0d390
build(deps-dev): bump typedoc from 0.26.7 to 0.26.8 (#7330)
dependabot[bot] Oct 7, 2024
5be4e20
build(deps-dev): bump @types/mocha from 10.0.8 to 10.0.9 (#7338)
dependabot[bot] Oct 8, 2024
e571757
build(deps-dev): bump @types/node from 22.7.4 to 22.7.5 (#7337)
dependabot[bot] Oct 8, 2024
37bb408
build(deps-dev): bump typescript from 5.6.2 to 5.6.3 (#7343)
dependabot[bot] Oct 9, 2024
5a89dac
build(deps-dev): bump gh-pages from 6.1.1 to 6.2.0 (#7344)
dependabot[bot] Oct 11, 2024
dcc5ab5
build(deps): bump bytemuck from 1.18.0 to 1.19.0 (#7345)
dependabot[bot] Oct 14, 2024
2902eb1
build(deps-dev): bump typedoc from 0.26.8 to 0.26.9 (#7346)
dependabot[bot] Oct 14, 2024
9047774
build(deps-dev): bump typedoc from 0.26.9 to 0.26.10 (#7352)
dependabot[bot] Oct 16, 2024
d614e7d
build(deps-dev): bump @types/node from 22.7.5 to 22.7.6 (#7362)
dependabot[bot] Oct 17, 2024
59a97e1
Hardcode the discriminators so that you don't have to compute them at…
steveluscher Oct 17, 2024
38af516
build(deps): bump serde_json from 1.0.128 to 1.0.129 (#7364)
dependabot[bot] Oct 18, 2024
65e9f59
build(deps): bump @solana/web3.js from 1.95.3 to 1.95.4 (#7366)
dependabot[bot] Oct 18, 2024
9d56bae
build(deps): bump serde_json from 1.0.129 to 1.0.132 (#7372)
dependabot[bot] Oct 21, 2024
4fbd168
build(deps-dev): bump @types/node from 22.7.6 to 22.7.7 (#7373)
dependabot[bot] Oct 21, 2024
2208fc8
build(deps): bump tokio from 1.40.0 to 1.41.0 (#7379)
dependabot[bot] Oct 22, 2024
c5497b2
build(deps): bump serde from 1.0.210 to 1.0.211 (#7380)
dependabot[bot] Oct 22, 2024
e877506
build(deps-dev): bump @types/node from 22.7.7 to 22.7.8 (#7384)
dependabot[bot] Oct 22, 2024
ebc6756
build(deps): bump thiserror from 1.0.64 to 1.0.65 (#7387)
dependabot[bot] Oct 23, 2024
95cb827
build(deps): bump serde from 1.0.211 to 1.0.213 (#7388)
dependabot[bot] Oct 23, 2024
95ae862
build(deps-dev): bump chai from 5.1.1 to 5.1.2 (#7389)
dependabot[bot] Oct 23, 2024
057acfd
build(deps-dev): bump @types/node from 22.7.8 to 22.7.9 (#7390)
dependabot[bot] Oct 23, 2024
c97c2cf
[token-2022] Add elgamal registry account (#7341)
samkim-crypto Oct 25, 2024
9840fae
CI: Update clippy to use `--all-features`, fix issues (#7395)
joncinque Oct 25, 2024
3b2bc56
build(deps-dev): bump @types/node from 22.7.9 to 22.8.1 (#7401)
dependabot[bot] Oct 28, 2024
30af055
build(deps): bump serde from 1.0.213 to 1.0.214 (#7405)
dependabot[bot] Oct 29, 2024
4bea191
build(deps-dev): bump @types/node from 22.8.1 to 22.8.2 (#7407)
dependabot[bot] Oct 29, 2024
09ef362
build(deps-dev): bump @types/chai from 5.0.0 to 5.0.1 (#7409)
dependabot[bot] Oct 29, 2024
0d40df0
[token-cli] Upgrade to clap-v3 (#6376)
samkim-crypto Oct 30, 2024
4c094ff
build(deps-dev): bump mocha from 10.7.3 to 10.8.1 (#7413)
dependabot[bot] Oct 30, 2024
fd4d0f1
build(deps-dev): bump @types/node from 22.8.2 to 22.8.4 (#7411)
dependabot[bot] Oct 30, 2024
15a5cb4
Mention the packages to use for web3.js version 2. (#7417)
mikemaccana Oct 30, 2024
ca42beb
Confidential mint burn extension: Token program changes (#7319)
abcalphabet Oct 31, 2024
5541832
build(deps-dev): bump mocha from 10.8.1 to 10.8.2 (#7422)
dependabot[bot] Oct 31, 2024
9aaaa9e
build(deps-dev): bump @types/node from 22.8.4 to 22.8.5 (#7423)
dependabot[bot] Oct 31, 2024
6e5458b
CI: Update to Solana v2.1 crates (#7416)
joncinque Oct 31, 2024
590609d
CI: Fix clippy for confidential mint/burn (#7424)
joncinque Oct 31, 2024
e62f4ac
js: Update libs from rc.1 to rc.2 (#7426)
joncinque Oct 31, 2024
8d58b8b
Publish spl-pod v0.5.0
github-actions[bot] Nov 1, 2024
686b5bf
build(deps): bump thiserror from 1.0.65 to 1.0.66 (#7438)
dependabot[bot] Nov 1, 2024
84f2e21
build(deps-dev): bump @types/node from 22.8.5 to 22.8.6 (#7439)
dependabot[bot] Nov 1, 2024
2c0de57
Lock to web3.js 1.x for compatibility (#7419)
steveluscher Nov 1, 2024
f1dc7b3
Publish spl-instruction-padding v0.3.0
github-actions[bot] Nov 1, 2024
d5cb1d3
Publish spl-memo v6.0.0
github-actions[bot] Nov 1, 2024
03036d6
Publish spl-type-length-value v0.7.0
github-actions[bot] Nov 1, 2024
046311b
Publish spl-tlv-account-resolution v0.9.0
github-actions[bot] Nov 1, 2024
980ae06
Publish spl-token-group-interface v0.5.0
github-actions[bot] Nov 1, 2024
9b858da
Publish spl-token-metadata-interface v0.6.0
github-actions[bot] Nov 1, 2024
72aca31
Publish spl-associated-token-account-client v2.0.0
github-actions[bot] Nov 1, 2024
5dd84c3
Publish spl-token-confidential-transfer-proof-extraction v0.2.0
github-actions[bot] Nov 1, 2024
f540430
Publish spl-token-confidential-transfer-proof-generation v0.2.0
github-actions[bot] Nov 1, 2024
e9fe2de
Publish spl-token-confidential-transfer-ciphertext-arithmetic v0.2.0
github-actions[bot] Nov 1, 2024
a8d4a78
Publish spl-token v7.0.0
github-actions[bot] Nov 1, 2024
dddfde6
transfer-hook-interface: Remove solana-program dependency (#7442)
joncinque Nov 1, 2024
c01ab8e
Publish spl-transfer-hook-interface v0.9.0
github-actions[bot] Nov 1, 2024
f566790
Publish spl-token-2022 v6.0.0
github-actions[bot] Nov 1, 2024
6966c6b
Publish spl-associated-token-account v6.0.0
github-actions[bot] Nov 1, 2024
6aa619b
token-cli: Add unreachable pattern for future change (#7446)
joncinque Nov 4, 2024
e3043dd
build(deps-dev): bump typedoc from 0.26.10 to 0.26.11 (#7451)
dependabot[bot] Nov 4, 2024
dbd778b
build(deps-dev): bump @types/node from 22.8.6 to 22.8.7 (#7452)
dependabot[bot] Nov 4, 2024
5f25b37
[token-cli] Parse compute unit limit with the proper name (#7449)
samkim-crypto Nov 4, 2024
d57fcbe
build(deps): bump thiserror from 1.0.66 to 1.0.67 (#7450)
dependabot[bot] Nov 4, 2024
c8f19d9
Publish spl-record v0.3.0
github-actions[bot] Nov 4, 2024
83f78c0
Publish spl-token-client v0.13.0
github-actions[bot] Nov 4, 2024
21cf203
Publish spl-token-cli v5.0.0
github-actions[bot] Nov 4, 2024
d69eb35
build(deps-dev): bump @types/node from 22.8.7 to 22.9.0 (#7459)
dependabot[bot] Nov 5, 2024
1a33e4e
build(deps): bump thiserror from 1.0.67 to 1.0.68 (#7457)
dependabot[bot] Nov 5, 2024
660b852
build(deps): bump thiserror from 1.0.68 to 2.0.0 (#7462)
dependabot[bot] Nov 6, 2024
520f8db
[token-cli] Remove `is_amount_or_all`, `is_amount`, and `is_parsable`…
samkim-crypto Nov 8, 2024
7fe9e4c
build(deps): bump tempfile from 3.13.0 to 3.14.0 (#7468)
dependabot[bot] Nov 8, 2024
ebdb725
build(deps): bump borsh from 1.5.1 to 1.5.2 (#7470)
dependabot[bot] Nov 8, 2024
5fcc3b8
build(deps-dev): bump @solana/codecs-strings from 2.0.0-rc.2 to 2.0.0…
dependabot[bot] Nov 8, 2024
e78801f
build(deps): bump thiserror from 2.0.0 to 2.0.3 (#7482)
dependabot[bot] Nov 11, 2024
86bf80d
build(deps): bump serial_test from 3.1.1 to 3.2.0 (#7481)
dependabot[bot] Nov 11, 2024
f612638
build(deps): bump serde from 1.0.214 to 1.0.215 (#7485)
dependabot[bot] Nov 12, 2024
4f902e2
build(deps-dev): bump @types/node-fetch from 2.6.11 to 2.6.12 (#7488)
dependabot[bot] Nov 12, 2024
b0ec833
Adds --blockhash arg to Close (#7456)
brooksprumo Nov 12, 2024
8ae78b2
token-cli: Add confirm-tx timeout to RPC client (#7484)
joncinque Nov 12, 2024
23e7b34
[token22] Avoid the use of `extend_from_slice` when appending instruc…
samkim-crypto Nov 13, 2024
25283f5
build(deps): bump borsh from 1.5.2 to 1.5.3 (#7491)
dependabot[bot] Nov 14, 2024
177638d
[program-2022] Add auditor ciphertexts to instruction data (#7480)
samkim-crypto Nov 15, 2024
08dd34a
build(deps): bump serde_json from 1.0.132 to 1.0.133 (#7497)
dependabot[bot] Nov 18, 2024
0503b57
token: Fix typos for cargo-spellcheck (#7503)
joncinque Nov 18, 2024
91d3cad
build(deps): bump bytemuck from 1.19.0 to 1.20.0 (#7507)
dependabot[bot] Nov 20, 2024
5164411
build(deps-dev): bump @types/node from 22.9.0 to 22.9.1 (#7508)
dependabot[bot] Nov 20, 2024
f3037cb
build(deps-dev): bump @types/mocha from 10.0.9 to 10.0.10 (#7513)
dependabot[bot] Nov 21, 2024
fa8eabf
build(deps): bump @solana/web3.js from 1.95.4 to 1.95.5 (#7512)
dependabot[bot] Nov 21, 2024
3d5a544
token-2022: Add scaled amount extension (#7511)
joncinque Nov 25, 2024
d0bcf57
build(deps-dev): bump chai-as-promised from 8.0.0 to 8.0.1 (#7520)
dependabot[bot] Nov 25, 2024
cf58902
build(deps-dev): bump @types/node from 22.9.1 to 22.9.3 (#7522)
dependabot[bot] Nov 25, 2024
cb6e128
build(deps-dev): bump typescript from 5.6.3 to 5.7.2 (#7521)
dependabot[bot] Nov 25, 2024
e45473c
build(deps-dev): bump @types/node from 22.9.3 to 22.10.0 (#7534)
dependabot[bot] Nov 26, 2024
2383419
build(deps-dev): bump typedoc from 0.26.11 to 0.27.0 (#7536)
dependabot[bot] Nov 27, 2024
3343c86
[token-cli] Fix panicking behavior from `sign_only` (#7527)
samkim-crypto Nov 27, 2024
c34e722
build(deps-dev): bump @types/node from 22.10.0 to 22.10.1 (#7544)
dependabot[bot] Nov 28, 2024
964dc48
build(deps-dev): bump typedoc from 0.27.0 to 0.27.1 (#7545)
dependabot[bot] Nov 28, 2024
a9eed28
build(deps-dev): bump typedoc from 0.27.1 to 0.27.2 (#7548)
dependabot[bot] Dec 2, 2024
c83121a
memo: Remove local program / client and point to new repo (#7535)
joncinque Dec 2, 2024
79f3675
build(deps-dev): bump @solana/spl-memo from 0.2.4 to 0.2.5 (#7551)
dependabot[bot] Dec 3, 2024
3bcb99b
build(deps-dev): bump mocha from 10.8.2 to 11.0.1 (#7553)
dependabot[bot] Dec 3, 2024
4678570
add allowOwnerOffCurve parameter to createAssociatedTokenAccountIdemp…
wei1769 Dec 4, 2024
fc51c9b
build(deps): bump tokio from 1.41.1 to 1.42.0 (#7556)
dependabot[bot] Dec 4, 2024
efa0687
build(deps): bump thiserror from 2.0.3 to 2.0.4 (#7555)
dependabot[bot] Dec 4, 2024
3a1d0bc
build(deps-dev): bump typedoc from 0.27.2 to 0.27.3 (#7558)
dependabot[bot] Dec 4, 2024
7930539
token-js: add JS helpers for interest bearing tokens' UIAmounts (#7541)
gitteri Dec 4, 2024
fdb3ec7
token-2022: Take decimals into account for UI amount (#7540)
joncinque Dec 6, 2024
edf6ade
chore: fix some comments (#7564)
goodactive Dec 6, 2024
0b5cf6c
build(deps): bump thiserror from 2.0.4 to 2.0.6 (#7566)
dependabot[bot] Dec 9, 2024
6cd23ad
build(deps-dev): bump typedoc from 0.27.3 to 0.27.4 (#7567)
dependabot[bot] Dec 9, 2024
532208b
token-2022: Add Pausable extension (#7562)
joncinque Dec 9, 2024
8cb8ab7
[program-2022] Make confidential mint/burn function parameters consis…
samkim-crypto Dec 11, 2024
78710d9
build(deps): bump serde from 1.0.215 to 1.0.216 (#7576)
dependabot[bot] Dec 11, 2024
c55be41
build(deps-dev): bump @types/node from 22.10.1 to 22.10.2 (#7578)
dependabot[bot] Dec 11, 2024
ecf162d
build(deps-dev): bump start-server-and-test from 2.0.8 to 2.0.9 (#7577)
dependabot[bot] Dec 11, 2024
f1cbfd6
[program-2022] Add functions to generate mint/burn proofs from accoun…
samkim-crypto Dec 11, 2024
8f4bdd6
build(deps-dev): bump typedoc from 0.27.4 to 0.27.5 (#7588)
dependabot[bot] Dec 16, 2024
de87499
build(deps): bump console from 0.15.8 to 0.15.9 (#7582)
dependabot[bot] Dec 16, 2024
fa447a3
build(deps): bump proptest from 1.5.0 to 1.6.0 (#7581)
dependabot[bot] Dec 16, 2024
5ddba90
build(deps): bump thiserror from 2.0.6 to 2.0.7 (#7580)
dependabot[bot] Dec 16, 2024
b6a8edb
token-cli: Use the `commitment` field from Solana config (#7591)
acheroncrypto Dec 16, 2024
5636454
build(deps): bump console from 0.15.9 to 0.15.10 (#7592)
dependabot[bot] Dec 17, 2024
56d07ec
build(deps): bump thiserror from 2.0.7 to 2.0.8 (#7597)
dependabot[bot] Dec 18, 2024
76fa5b1
build(deps): bump bytemuck from 1.20.0 to 1.21.0 (#7608)
dependabot[bot] Dec 23, 2024
6007b17
build(deps): bump serde_json from 1.0.133 to 1.0.134 (#7607)
dependabot[bot] Dec 23, 2024
fb548de
build(deps): bump thiserror from 2.0.8 to 2.0.9 (#7605)
dependabot[bot] Dec 23, 2024
b90b276
build(deps): bump serde_with from 3.11.0 to 3.12.0 (#7613)
dependabot[bot] Dec 27, 2024
9688b31
build(deps-dev): bump typedoc from 0.27.5 to 0.27.6 (#7614)
dependabot[bot] Dec 27, 2024
fce1a4c
build(deps): bump serde from 1.0.216 to 1.0.217 (#7618)
dependabot[bot] Dec 30, 2024
58c92f5
build(deps-dev): bump @types/node from 22.10.2 to 22.10.3 (#7622)
dependabot[bot] Jan 1, 2025
4282974
build(deps-dev): bump gh-pages from 6.2.0 to 6.3.0 (#7624)
dependabot[bot] Jan 3, 2025
26fe261
build(deps-dev): bump @types/node from 22.10.3 to 22.10.5 (#7625)
dependabot[bot] Jan 3, 2025
779da2c
build(deps): bump serde_json from 1.0.134 to 1.0.135 (#7632)
dependabot[bot] Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 61 additions & 0 deletions clients/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[package]
authors = ["Solana Labs Maintainers <[email protected]>"]
description = "SPL-Token Command-line Utility"
edition = "2021"
homepage = "https://spl.solana.com/token"
license = "Apache-2.0"
name = "spl-token-cli"
repository = "https://github.com/solana-labs/solana-program-library"
version = "5.0.0"

[build-dependencies]
walkdir = "2"

[dependencies]
base64 = "0.22.1"
clap = "3.2.23"
console = "0.15.10"
futures = "0.3"
serde = "1.0.217"
serde_derive = "1.0.103"
serde_json = "1.0.135"
solana-account-decoder = "2.1.0"
solana-clap-v3-utils = "2.1.0"
solana-cli-config = "2.1.0"
solana-cli-output = "2.1.0"
solana-client = "2.1.0"
solana-logger = "2.1.0"
solana-remote-wallet = "2.1.0"
solana-sdk = "2.1.0"
solana-transaction-status = "2.1.0"
spl-associated-token-account-client = { version = "2.0.0", path = "../../associated-token-account/client" }
spl-token = { version = "7.0", path = "../program", features = [
"no-entrypoint",
] }
spl-token-2022 = { version = "6.0.0", path = "../program-2022", features = [
"no-entrypoint",
] }
spl-token-client = { version = "0.13.0", path = "../client" }
spl-token-confidential-transfer-proof-generation = { version = "0.2.0", path = "../confidential-transfer/proof-generation" }
spl-token-metadata-interface = { version = "0.6.0", path = "../../token-metadata/interface" }
spl-token-group-interface = { version = "0.5.0", path = "../../token-group/interface" }
spl-memo = { version = "6.0", features = ["no-entrypoint"] }
strum = "0.26"
strum_macros = "0.26"
tokio = "1.42"

[dev-dependencies]
solana-test-validator = "2.1.0"
assert_cmd = "2.0.16"
libtest-mimic = "0.8"
serial_test = "3.2.0"
tempfile = "3.14.0"

[[bin]]
name = "spl-token"
path = "src/main.rs"

[[test]]
name = "command"
path = "tests/command.rs"
harness = false
42 changes: 42 additions & 0 deletions clients/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPL Token program command-line utility

A basic command-line for creating and using SPL Tokens. See <https://spl.solana.com/token> for more details

## Build

To build the CLI locally, simply run:

```sh
cargo build
```

## Testing

The tests require locally built programs for Token, Token-2022, and Associated
Token Account. To build these, you can run:

```sh
BUILD_DEPENDENT_PROGRAMS=1 cargo build
```

This method uses the local `build.rs` file, which can be error-prone, so alternatively,
you can build the programs by running the following commands from this directory:

```sh
cargo build-sbf --manifest-path ../program/Cargo.toml
cargo build-sbf --manifest-path ../program-2022/Cargo.toml
cargo build-sbf --manifest-path ../../associated-token-account/program/Cargo.toml
```

After that, you can run the tests as any other Rust project:

```sh
cargo test
```

To run it locally you can do it like this:

```sh
cargo build --manifest-path token/cli/Cargo.toml
target/debug/spl-token <command>
```
79 changes: 79 additions & 0 deletions clients/cli/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
extern crate walkdir;

use {
std::{env, path::Path, process::Command},
walkdir::WalkDir,
};

fn rerun_if_changed(directory: &Path) {
let src = directory.join("src");
let files_in_src: Vec<_> = WalkDir::new(src)
.into_iter()
.map(|entry| entry.unwrap())
.filter(|entry| {
if !entry.file_type().is_file() {
return false;
}
true
})
.map(|f| f.path().to_str().unwrap().to_owned())
.collect();

for file in files_in_src {
if !Path::new(&file).is_file() {
panic!("{} is not a file", file);
}
println!("cargo:rerun-if-changed={}", file);
}
let toml = directory.join("Cargo.toml").to_str().unwrap().to_owned();
println!("cargo:rerun-if-changed={}", toml);
}

fn build_bpf(program_directory: &Path) {
let toml_file = program_directory.join("Cargo.toml");
let toml_file = format!("{}", toml_file.display());
let args = vec!["build-sbf", "--manifest-path", &toml_file];
let output = Command::new("cargo")
.args(&args)
.output()
.expect("Error running cargo build-sbf");
if let Ok(output_str) = std::str::from_utf8(&output.stdout) {
let subs = output_str.split('\n');
for sub in subs {
println!("cargo:warning=(not a warning) {}", sub);
}
}
}

fn main() {
let is_debug = env::var("DEBUG").map(|v| v == "true").unwrap_or(false);
let build_dependent_programs = env::var("BUILD_DEPENDENT_PROGRAMS")
.map(|v| v != "false" && v != "0")
.unwrap_or(false);
if is_debug && build_dependent_programs {
let cwd = env::current_dir().expect("Unable to get current working directory");
let spl_token_2022_dir = cwd
.parent()
.expect("Unable to get parent directory of current working dir")
.join("program-2022");
rerun_if_changed(&spl_token_2022_dir);
let spl_token_dir = cwd
.parent()
.expect("Unable to get parent directory of current working dir")
.join("program");
rerun_if_changed(&spl_token_dir);
let spl_associated_token_account_dir = cwd
.parent()
.expect("Unable to get parent directory of current working dir")
.parent()
.expect("Unable to get parent directory of current working dir")
.join("associated-token-account")
.join("program");
rerun_if_changed(&spl_associated_token_account_dir);

build_bpf(&spl_token_dir);
build_bpf(&spl_token_2022_dir);
build_bpf(&spl_associated_token_account_dir);
}
println!("cargo:rerun-if-changed=build.rs");
}
77 changes: 77 additions & 0 deletions clients/cli/examples/confidential-transfer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#!/usr/bin/env bash

# Set whichever network you would like to test with
# solana config set -ul

program_id="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"

echo "Setup keypairs"
solana-keygen new -o confidential-mint.json --no-bip39-passphrase
solana-keygen new -o confidential-source.json --no-bip39-passphrase
solana-keygen new -o confidential-destination.json --no-bip39-passphrase
mint_pubkey=$(solana-keygen pubkey "confidential-mint.json")
source_pubkey=$(solana-keygen pubkey "confidential-source.json")
destination_pubkey=$(solana-keygen pubkey "confidential-destination.json")

set -ex
echo "Initializing mint"
spl-token --program-id "$program_id" create-token confidential-mint.json --enable-confidential-transfers auto
echo "Displaying"
spl-token display "$mint_pubkey"
read -n 1 -p "..."

echo "Setting up transfer accounts"
spl-token create-account "$mint_pubkey" confidential-source.json
spl-token configure-confidential-transfer-account --address "$source_pubkey"
spl-token create-account "$mint_pubkey" confidential-destination.json
spl-token configure-confidential-transfer-account --address "$destination_pubkey"
spl-token mint "$mint_pubkey" 100 confidential-source.json

echo "Displaying"
spl-token display "$source_pubkey"
read -n 1 -p "..."

echo "Depositing into confidential"
spl-token deposit-confidential-tokens "$mint_pubkey" 100 --address "$source_pubkey"
echo "Displaying"
spl-token display "$source_pubkey"
read -n 1 -p "..."

echo "Applying pending balances"
spl-token apply-pending-balance --address "$source_pubkey"
echo "Displaying"
spl-token display "$source_pubkey"
read -n 1 -p "..."

echo "Transferring 10"
spl-token transfer "$mint_pubkey" 10 "$destination_pubkey" --from "$source_pubkey" --confidential
echo "Displaying source"
spl-token display "$source_pubkey"
echo "Displaying destination"
spl-token display "$destination_pubkey"
read -n 1 -p "..."

echo "Applying balance on destination"
spl-token apply-pending-balance --address "$destination_pubkey"
echo "Displaying destination"
spl-token display "$destination_pubkey"
read -n 1 -p "..."

echo "Transferring 0"
spl-token transfer "$mint_pubkey" 0 "$destination_pubkey" --from "$source_pubkey" --confidential
echo "Displaying destination"
spl-token display "$destination_pubkey"
read -n 1 -p "..."

echo "Transferring 0 again"
spl-token transfer "$mint_pubkey" 0 "$destination_pubkey" --from "$source_pubkey" --confidential
echo "Displaying destination"
spl-token display "$destination_pubkey"
read -n 1 -p "..."

echo "Withdrawing 10 from destination"
spl-token apply-pending-balance --address "$destination_pubkey"
spl-token withdraw-confidential-tokens "$mint_pubkey" 10 --address "$destination_pubkey"
echo "Displaying destination"
spl-token display "$destination_pubkey"
read -n 1 -p "..."
Loading
Loading