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

Shared Sdk #921

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
53c7ad5
Reaggregated transaction creation code.
murisi Nov 30, 2022
312f2c4
Moved gen_shielded_transfer into ShieldedContext.
murisi Nov 30, 2022
2fefb6b
Started factoring platform dependent code out of ShieldedContext.
murisi Nov 30, 2022
24c4da0
Moved ShieldedContext into shared crate.
murisi Nov 30, 2022
a347134
Now attach events to decryptable transactions. Corrected the parsing …
murisi Dec 7, 2022
e479c76
Moved query_tx_deltas into shared crate.
murisi Dec 8, 2022
9c30c34
Started adding documentation.
murisi Dec 8, 2022
a2cce3d
Fixed help for show-transfers subcommand.
murisi Dec 8, 2022
19f35c2
Started to parameterize CLI arguments.
murisi Dec 13, 2022
85640e1
Added conversion functions for arguments.
murisi Dec 13, 2022
d562b65
Started parameterizing code by client.
murisi Dec 14, 2022
a5e3147
Removed some unnecessary parameters.
murisi Dec 14, 2022
5b27086
Pass native token into tx function through args instead of Context.
murisi Dec 15, 2022
a708536
Removed the WASM file reading from tx.rs.
murisi Dec 15, 2022
5defee9
Replaced Context parameters with Wallets.
murisi Dec 15, 2022
b3a852b
Removed Context dependency from submit_transfer.
murisi Dec 15, 2022
598c587
Reduced dependency of rpc.rs on Context.
murisi Dec 15, 2022
11e048f
Now pass down Client as a parameter in ShieldedContext.
murisi Dec 15, 2022
9b0457c
Factored out saving and loading code from Wallet.
murisi Dec 15, 2022
326a7f7
Moved Wallet into the shared crate and parameterized it by its intera…
murisi Dec 17, 2022
9d4a9b2
Added some documentation.
murisi Dec 17, 2022
dd351ec
Moved CLI arguments into the shared crate.
murisi Dec 17, 2022
88223d8
Generalized functions to depend on Client instead of HttpClient.
murisi Dec 17, 2022
0ca277f
Moved functions from rpc.rs into the shared crate.
murisi Dec 18, 2022
84d9340
Parameterized tx functions by storage location.
murisi Dec 18, 2022
e777947
Started moving functions from tx.rs and rpc.rs.
murisi Dec 18, 2022
9f6baa8
Extended WalletUtils to allow prompting for aliases.
murisi Dec 18, 2022
11b7da9
Moved more tx.rs functions into shared.
murisi Dec 18, 2022
2bddb0f
Moved more tx.rs functions into shared.
murisi Dec 18, 2022
178447e
Moved more tx.rs functions into shared.
murisi Dec 18, 2022
b3a6aae
Reduced usage of generic parameters.
murisi Dec 18, 2022
be27cb0
Made ShieldedUtils trait smaller.
murisi Dec 18, 2022
d6c4546
Remove extra imports from refactoring
mariari Dec 19, 2022
817d18b
Alias namada::ledger::tx to just tx
mariari Dec 19, 2022
0df070b
Turning panics in tx.rs into returning results
mariari Dec 19, 2022
5d59cfa
Converted over more uses of panic, also abstracted known validator
mariari Dec 19, 2022
dda4943
Abstract out rpc::known_adddress calls, converted more panics
mariari Dec 19, 2022
5f618b6
Ran the formatter
mariari Dec 19, 2022
65c0b37
Abstract out common query_storage_value pattern
mariari Dec 19, 2022
41dd2ca
Turn `expect` into encoding failures
mariari Dec 20, 2022
ddc5b4c
Converted all panics except for the boolean functions
mariari Dec 20, 2022
da256ff
Convert over the boolean functions to being of Result
mariari Dec 20, 2022
02e8d3b
Using the given result types in client, and progate usage in shared
mariari Dec 20, 2022
b30e11e
Removing panics in singing and promoting them to the Result type
mariari Dec 20, 2022
0118b13
Remove all warnings not associated with a lack of a doc string
mariari Dec 20, 2022
3780320
Remove an explicit reference to `save` as it is in apps not shared
mariari Dec 20, 2022
853ab45
Turn off the default features of tokio
mariari Dec 21, 2022
6a217af
UMove the useage of tendermint_rpc to the crate level
mariari Dec 22, 2022
04fa51b
Add a namada-sdk feature
mariari Dec 22, 2022
9e0c9b2
deps: update to masp crate with wasm-compatible libsecp256k1
tzemanovic Dec 22, 2022
09a1430
shared: feature-guard "http-client" for wasm-compat
tzemanovic Dec 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
109 changes: 73 additions & 36 deletions Cargo.lock

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

8 changes: 5 additions & 3 deletions apps/Cargo.toml
Expand Up @@ -49,6 +49,7 @@ testing = ["dev"]
abcipp = [
"namada/abcipp",
"namada/tendermint-rpc-abcipp",
"namada/http-client-abcipp",
"tendermint-abcipp",
"tendermint-config-abcipp",
"tendermint-proto-abcipp",
Expand All @@ -59,6 +60,7 @@ abcipp = [
abciplus = [
"namada/abciplus",
"namada/tendermint-rpc",
"namada/http-client",
"tendermint",
"tendermint-config",
"tendermint-rpc",
Expand All @@ -67,7 +69,7 @@ abciplus = [
]

[dependencies]
namada = {path = "../shared", default-features = false, features = ["wasm-runtime", "ferveo-tpke"]}
namada = {path = "../shared", default-features = false, features = ["wasm-runtime", "ferveo-tpke", "masp-tx-gen"]}
ark-serialize = "0.3.0"
ark-std = "0.3.0"
# branch = "bat/arse-merkle-tree"
Expand Down Expand Up @@ -143,8 +145,8 @@ tracing-subscriber = {version = "0.3.7", features = ["env-filter"]}
websocket = "0.26.2"
winapi = "0.3.9"
#libmasp = { git = "https://github.com/anoma/masp", branch = "murisi/masp-incentive" }
masp_primitives = { git = "https://github.com/anoma/masp", rev = "bee40fc465f6afbd10558d12fe96eb1742eee45c", features = ["transparent-inputs"] }
masp_proofs = { git = "https://github.com/anoma/masp", rev = "bee40fc465f6afbd10558d12fe96eb1742eee45c", features = ["bundled-prover", "download-params"] }
masp_primitives = { git = "https://github.com/anoma/masp", rev = "117bff3b0d3e15aff993c25ff6222d411136559d", features = ["transparent-inputs"] }
masp_proofs = { git = "https://github.com/anoma/masp", rev = "117bff3b0d3e15aff993c25ff6222d411136559d", features = ["bundled-prover", "download-params"] }
bimap = {version = "0.6.2", features = ["serde"]}
rust_decimal = "1.26.1"
rust_decimal_macros = "1.26.1"
Expand Down