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 integration Branch (do not close) #925

Merged
merged 73 commits into from May 17, 2023

Conversation

mariari
Copy link
Member

@mariari mariari commented Dec 19, 2022

Integration branch for #921

@murisi murisi force-pushed the mariari/shared-sdk-integration branch from 80625a4 to fd98fda Compare February 11, 2023 13:04
@Fraccaman
Copy link
Member

pls spawn devnet [anoma-devnet-0.13.0-zondax,10,heliaxdev@1be9883,ON]

@Fraccaman
Copy link
Member

pls spawn devnet [anoma-devnet-0.12.0,10,heliaxdev@1be9883,ON]

1 similar comment
@Fraccaman
Copy link
Member

pls spawn devnet [anoma-devnet-0.12.0,10,heliaxdev@1be9883,ON]

@cwgoes
Copy link
Contributor

cwgoes commented May 10, 2023

Is this still relevant?

@tzemanovic
Copy link
Member

closing in favor of #1350

@tzemanovic tzemanovic closed this May 12, 2023
@juped juped reopened this May 14, 2023
@juped juped changed the title Shared sdk integration Branch Shared sdk integration Branch (do not close) May 14, 2023
@juped juped added this to the 0.16 milestone May 15, 2023
juped added a commit that referenced this pull request May 17, 2023
* mariari/shared-sdk-integration:
  Replaced tendermint branch with commit hash.
  Now use WalletUtils as a backup for when alias/password parameters are not supplied.
  Removed new_password_prompt since it is equivalent to read_and_confirm_pwd.
  refactor: read_and_confirm_pwd and new_password_prompt moved to the client
  Fixed clippy compilation errors.
  feat: poll without tokio
  Removed default-features flag from tendermint-rpc.
  [ci] wasm checksums update
  Fixed dependencies for WASM builds.
  [ci] wasm checksums update
  Fixed the import errors in the E2E tests.
  The SDK now uses a local trait called Client that is just a copy of Tendermints.
  deps: update to masp crate with wasm-compatible libsecp256k1
  Disabled http-client in tendermint-rpc dependency.
  Disabled http-client in tendermint-rpc dependency.
  changed tendermint-rpc dep to one from memasdeligeorgakis/tendermint-rs
  Add a namada-sdk feature
  UMove the useage of tendermint_rpc to the crate level
  Turn off the default features of tokio
  Remove an explicit reference to `save` as it is in apps not shared
  Remove all warnings not associated with a lack of a doc string
  Removing panics in singing and promoting them to the Result type
  Using the given result types in client, and progate usage in shared
  Convert over the boolean functions to being of Result
  Converted all panics except for the boolean functions
  Turn `expect` into encoding failures
  Abstract out common query_storage_value pattern
  Ran the formatter
  Abstract out rpc::known_adddress calls, converted more panics
  Converted over more uses of panic, also abstracted known validator
  Turning panics in tx.rs into returning results
  Alias namada::ledger::tx to just tx
  Remove extra imports from refactoring
  Made ShieldedUtils trait smaller.
  Reduced usage of generic parameters.
  Moved more tx.rs functions into shared.
  Moved more tx.rs functions into shared.
  Moved more tx.rs functions into shared.
  Extended WalletUtils to allow prompting for aliases.
  Started moving functions from tx.rs and rpc.rs.
  Parameterized tx functions by storage location.
  Moved functions from rpc.rs into the shared crate.
  Generalized functions to depend on Client instead of HttpClient.
  Moved CLI arguments into the shared crate.
  Added some documentation.
  Moved Wallet into the shared crate and parameterized it by its interactive components.
  Factored out saving and loading code from Wallet.
  Now pass down Client as a parameter in ShieldedContext.
  Reduced dependency of rpc.rs on Context.
  Removed Context dependency from submit_transfer.
  Replaced Context parameters with Wallets.
  Removed the WASM file reading from tx.rs.
  Pass native token into tx function through args instead of Context.
  Removed some unnecessary parameters.
  Started parameterizing code by client.
  Added conversion functions for arguments.
  Started to parameterize CLI arguments.
  Fixed help for show-transfers subcommand.
  Started adding documentation.
  Moved query_tx_deltas into shared crate.
  Now attach events to decryptable transactions. Corrected the parsing of BlockResult keys.
  Moved ShieldedContext into shared crate.
  Started factoring platform dependent code out of ShieldedContext.
  Moved gen_shielded_transfer into ShieldedContext.
  Reaggregated transaction creation code.
juped added a commit that referenced this pull request May 17, 2023
* mariari/shared-sdk-integration:
  Replaced tendermint branch with commit hash.
  Now use WalletUtils as a backup for when alias/password parameters are not supplied.
  Removed new_password_prompt since it is equivalent to read_and_confirm_pwd.
  refactor: read_and_confirm_pwd and new_password_prompt moved to the client
  Fixed clippy compilation errors.
  feat: poll without tokio
  Removed default-features flag from tendermint-rpc.
  [ci] wasm checksums update
  Fixed dependencies for WASM builds.
  [ci] wasm checksums update
  Fixed the import errors in the E2E tests.
  The SDK now uses a local trait called Client that is just a copy of Tendermints.
  deps: update to masp crate with wasm-compatible libsecp256k1
  Disabled http-client in tendermint-rpc dependency.
  Disabled http-client in tendermint-rpc dependency.
  changed tendermint-rpc dep to one from memasdeligeorgakis/tendermint-rs
  Add a namada-sdk feature
  UMove the useage of tendermint_rpc to the crate level
  Turn off the default features of tokio
  Remove an explicit reference to `save` as it is in apps not shared
  Remove all warnings not associated with a lack of a doc string
  Removing panics in singing and promoting them to the Result type
  Using the given result types in client, and progate usage in shared
  Convert over the boolean functions to being of Result
  Converted all panics except for the boolean functions
  Turn `expect` into encoding failures
  Abstract out common query_storage_value pattern
  Ran the formatter
  Abstract out rpc::known_adddress calls, converted more panics
  Converted over more uses of panic, also abstracted known validator
  Turning panics in tx.rs into returning results
  Alias namada::ledger::tx to just tx
  Remove extra imports from refactoring
  Made ShieldedUtils trait smaller.
  Reduced usage of generic parameters.
  Moved more tx.rs functions into shared.
  Moved more tx.rs functions into shared.
  Moved more tx.rs functions into shared.
  Extended WalletUtils to allow prompting for aliases.
  Started moving functions from tx.rs and rpc.rs.
  Parameterized tx functions by storage location.
  Moved functions from rpc.rs into the shared crate.
  Generalized functions to depend on Client instead of HttpClient.
  Moved CLI arguments into the shared crate.
  Added some documentation.
  Moved Wallet into the shared crate and parameterized it by its interactive components.
  Factored out saving and loading code from Wallet.
  Now pass down Client as a parameter in ShieldedContext.
  Reduced dependency of rpc.rs on Context.
  Removed Context dependency from submit_transfer.
  Replaced Context parameters with Wallets.
  Removed the WASM file reading from tx.rs.
  Pass native token into tx function through args instead of Context.
  Removed some unnecessary parameters.
  Started parameterizing code by client.
  Added conversion functions for arguments.
  Started to parameterize CLI arguments.
  Fixed help for show-transfers subcommand.
  Started adding documentation.
  Moved query_tx_deltas into shared crate.
  Now attach events to decryptable transactions. Corrected the parsing of BlockResult keys.
  Moved ShieldedContext into shared crate.
  Started factoring platform dependent code out of ShieldedContext.
  Moved gen_shielded_transfer into ShieldedContext.
  Reaggregated transaction creation code.
@juped juped merged commit 975c035 into main May 17, 2023
5 of 14 checks passed
@juped juped deleted the mariari/shared-sdk-integration branch May 17, 2023 18:53
juped added a commit that referenced this pull request May 18, 2023
This was omitted in 0.16.0's changelog.
@tzemanovic tzemanovic mentioned this pull request May 20, 2023
tzemanovic added a commit that referenced this pull request May 21, 2023
* mateusz/shared-sdk-integration-wip:
  changelog: add #1238
  wasm: update checksums
  feat: point to the masp_proofs with correct multicore feature flag
  feat: disable multicore ff by default, make ShieldedUtils trait async
  format: rustfmt for incorrect sdk-wallet-force commits
  changelog: add #925, update
  changelog: add #889
  DoS checks in fee specs for fee unshielding
  ci: remove clippy-abcipp check
  Adjusts block proposer address in fee specs
  Improves unshielding tx verification in fee specs
  Updates tendermint link in fee specs
  Improves gas accounting in specs
  Updates check table in fee specs
  Misc updates to fee specs
  Fixes wal in fee specs
  Adds protocol transactions to fee specs
  Adds governance proposals to fee specs
  Fixes unshielding in fee specs
  Enforces tx type order in fee specs
  Refactors sections of fee specs
  Adds unshielding to fee specs
  Updates fee specs
  Adds fee specs
brentstone pushed a commit that referenced this pull request Jun 1, 2023
This was omitted in 0.16.0's changelog.
brentstone added a commit that referenced this pull request Jun 1, 2023
* brent/cubic-slashing:
  WIP changes from Manu and logging
  fixing `find_slashes_in_range`
  pos sm test: ease load on the CI
  changelog: #892
  fixup!: don't call `process_slashes` within `advance_epoch`
  clean up logging
  fix clippy
  remove test code until slash pool transfers are solved
  rip slash pool
  get_slashed_amount: inclusive on infraction epoch
  add cli to sdk impl for tx unjail
  make find_slashes_in_ranges inclusive on end epoch
  withdraw: fix bounds for collecting slashes for an unbond
  aesthetic cleaning
  revert bound cleaning for readability
  refactor slash lookup
  fixup! add cubic_slash_window_length to bounds (maybe still needs change)
  remove unused cubic slash function
  refactor epoch offsets with params methods
  store total bond sums of each validator for efficient computation
  pos/lib.rs: WIP fix things inside of `bonds_and_unbonds`
  fix PoS client query related functions
  fix `bond_amount`
  state machine test: add slashing
  basic nested map test
  slashing: unit and e2e tests
  Makefile and Cargo.toml
  cubic and general slashing algorithms and transactions
  format: rustfmt for incorrect sdk-wallet-force commits
  changelog: add #925, update
  ci: remove clippy-abcipp check
  changelog: add #889
  DoS checks in fee specs for fee unshielding
  Adjusts block proposer address in fee specs
  Improves unshielding tx verification in fee specs
  Updates tendermint link in fee specs
  Improves gas accounting in specs
  Updates check table in fee specs
  Misc updates to fee specs
  Fixes wal in fee specs
  Adds protocol transactions to fee specs
  Adds governance proposals to fee specs
  Fixes unshielding in fee specs
  Enforces tx type order in fee specs
  Refactors sections of fee specs
  Adds unshielding to fee specs
  Updates fee specs
  Adds fee specs
brentstone pushed a commit that referenced this pull request Jun 1, 2023
This was omitted in 0.16.0's changelog.
brentstone added a commit that referenced this pull request Jun 1, 2023
* brent/cubic-slashing:
  fix wasm tx tests
  WIP changes from Manu and logging
  fixing `find_slashes_in_range`
  pos sm test: ease load on the CI
  changelog: #892
  fixup!: don't call `process_slashes` within `advance_epoch`
  clean up logging
  fix clippy
  remove test code until slash pool transfers are solved
  rip slash pool
  get_slashed_amount: inclusive on infraction epoch
  add cli to sdk impl for tx unjail
  make find_slashes_in_ranges inclusive on end epoch
  withdraw: fix bounds for collecting slashes for an unbond
  aesthetic cleaning
  revert bound cleaning for readability
  refactor slash lookup
  fixup! add cubic_slash_window_length to bounds (maybe still needs change)
  remove unused cubic slash function
  refactor epoch offsets with params methods
  store total bond sums of each validator for efficient computation
  pos/lib.rs: WIP fix things inside of `bonds_and_unbonds`
  fix PoS client query related functions
  fix `bond_amount`
  state machine test: add slashing
  basic nested map test
  slashing: unit and e2e tests
  Makefile and Cargo.toml
  cubic and general slashing algorithms and transactions
  format: rustfmt for incorrect sdk-wallet-force commits
  changelog: add #925, update
  ci: remove clippy-abcipp check
  changelog: add #889
  DoS checks in fee specs for fee unshielding
  Adjusts block proposer address in fee specs
  Improves unshielding tx verification in fee specs
  Updates tendermint link in fee specs
  Improves gas accounting in specs
  Updates check table in fee specs
  Misc updates to fee specs
  Fixes wal in fee specs
  Adds protocol transactions to fee specs
  Adds governance proposals to fee specs
  Fixes unshielding in fee specs
  Enforces tx type order in fee specs
  Refactors sections of fee specs
  Adds unshielding to fee specs
  Updates fee specs
  Adds fee specs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants