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

Draft #1980

Closed
wants to merge 191 commits into from
Closed

Draft #1980

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
4f89775
refactor `Epoched` for past epochs
brentstone Sep 26, 2023
d8a29ef
cleaning: remove unused code + improve docstrings
brentstone Sep 26, 2023
cd64eff
Test vector formatting changes.
murisi Sep 11, 2023
4d0d333
Added a changelog record.
murisi Sep 22, 2023
1783a94
transfer and query with trace-path
yito88 Sep 27, 2023
4f45b81
Inner tx signer also signs tx header
grarco Aug 28, 2023
ee31f47
Adds `raw_header_hash` method for `Tx`
grarco Aug 28, 2023
8c7bdf0
query balances for IbcToken
yito88 Sep 27, 2023
1b79599
add changelog
yito88 Sep 28, 2023
0613ac2
benches: move bench lib code to apps crate and feature guard it
tzemanovic Sep 28, 2023
4dc0304
benches: update docs
tzemanovic Sep 28, 2023
5aaa83e
benches: rm unused deps
tzemanovic Sep 28, 2023
bc2e285
changelog: add #1955
tzemanovic Sep 28, 2023
f015005
Moves signatures verification gas in `Signature`
grarco Sep 28, 2023
6fba21a
changelog: add #1954
grarco Sep 28, 2023
8416f0b
test/eth: init storage with PoS params where needed
tzemanovic Sep 28, 2023
f5d4544
test/PoS/epoched: init PoS params and fix `PastEpochs` type param
tzemanovic Sep 28, 2023
d3f1eb3
changelog: add #1943
brentstone Sep 28, 2023
812b2c2
[ci] wasm checksums update
github-actions[bot] Sep 28, 2023
bfd91f9
WIP want to pass `max_proposal_period` from gov params into PoS
brentstone Sep 26, 2023
053fffb
add PosParams type with added gov param
tzemanovic Sep 27, 2023
bfe4c97
pos/types: configure number of past epochs kept for PoS data
brentstone Sep 28, 2023
eaed189
new impl for purging old validator sets
brentstone Sep 28, 2023
85bf4aa
docstring cleanup
brentstone Sep 28, 2023
6364cc0
Apply suggestions from code review
tzemanovic Sep 28, 2023
1ddd82b
fixup! Apply suggestions from code review
tzemanovic Sep 28, 2023
f1bc264
fix PoS crate standalone build
tzemanovic Sep 28, 2023
f40bd26
replace direct storage read of PosParams with an RPC fn
tzemanovic Sep 28, 2023
41d3838
fixup! replace direct storage read of PosParams with an RPC fn
tzemanovic Sep 28, 2023
620e4e2
core/types/storage:m ore flexible fn checked_sub param
tzemanovic Sep 28, 2023
856130e
PoS: refactor usages of `Epoch::checked_sub`
tzemanovic Sep 28, 2023
20180c4
changelog: add #1944
brentstone Sep 28, 2023
3fa8d38
[ci] wasm checksums update
github-actions[bot] Sep 28, 2023
c65a6d0
fixed `epoched` tests and `test_validator_sets`
brentstone Sep 28, 2023
9971497
fixup! pos/types: configure number of past epochs kept for PoS data
tzemanovic Sep 29, 2023
fe6c3eb
Combined construction of signing data with transaction construction.
murisi Sep 19, 2023
16425d5
Created builders and constructors for each type of transaction.
murisi Sep 20, 2023
d10ba96
Allow the prototypical Tx builder to be modified in NamadaImpl instan…
murisi Sep 25, 2023
b874ffa
remove trace-path
yito88 Oct 2, 2023
4cf16cb
WIP: receive to a shielded address
yito88 Sep 19, 2023
f35b779
add gen_ibc_shielded_transfer
yito88 Sep 20, 2023
0e18507
WIP: add e2e test for receiving to payment address
yito88 Sep 20, 2023
94e6c2d
workaround for decoding asset types for IbcToken
yito88 Sep 22, 2023
c8f8426
fix after merge
yito88 Sep 29, 2023
27f4e0a
fix get_shielded_action
yito88 Sep 29, 2023
6806410
remove Address::Foreign
yito88 Sep 29, 2023
7c7ee02
keep validator eth keys for max proposal period
brentstone Oct 2, 2023
85770be
clear old enqueued slashes when processing slashes
brentstone Oct 2, 2023
59d8465
keep `total_deltas` for same period of time as `validator_deltas`
brentstone Oct 2, 2023
6656f1b
fix get_ibc_event
yito88 Oct 2, 2023
e471b6c
Moved FsShieldedUtils into the SDK behind a feature flag.
murisi Sep 27, 2023
1142e64
Adding saving and loading function to Wallet.
murisi Sep 28, 2023
f99eaa3
Made the ShieldedUtils trait similar to the WalletStorage trait.
murisi Oct 1, 2023
79f006a
Added function to construct DenominatedAmounts from Amounts.
murisi Oct 1, 2023
c775ec7
Removed unnecessary requirement for mutable references in Namada trait.
murisi Oct 1, 2023
9f06a4b
Enabled parallel usage of the Namada trait using read and write locks.
murisi Oct 1, 2023
64e817b
move protocol keys into epoched PoS data
brentstone Oct 3, 2023
b38e6f4
deps: switch to use libseck256k1 to k256
tzemanovic Sep 29, 2023
7e4e922
changelog: add #1958
tzemanovic Sep 29, 2023
609e70d
Implement ZeroizeOnDrop on ed25519 keys
sug0 Sep 28, 2023
5d7c951
Changelog for #1956
sug0 Oct 4, 2023
2a141f1
Update to upstream borsh v1.0.0-alpha.4
sug0 Sep 14, 2023
f542fa2
Add borsh-ext dependency
sug0 Sep 15, 2023
b5076f6
Update color-eyre
sug0 Sep 15, 2023
e93e97e
Update borsh on heliaxdev deps
sug0 Sep 25, 2023
7eb80b1
Fix compilation errors
sug0 Sep 15, 2023
134798e
Add Cargo lock files
sug0 Sep 15, 2023
bbe3a67
Fix unit test
sug0 Sep 25, 2023
f0a9720
Changelog for #1930
sug0 Sep 25, 2023
ac2535a
add changelog
yito88 Oct 6, 2023
b1bc845
Reintegrated generic IO support.
murisi Oct 4, 2023
68a3393
add checks and simplify code
brentstone Oct 6, 2023
2e84ddc
changelog: add #1973
brentstone Oct 6, 2023
615ebc8
SDK can now query for the native token address from the network. Also…
murisi Oct 9, 2023
9aa1d45
Fix transmitting protocol txs if validator node
sug0 Oct 3, 2023
25ffc67
Allow shutting off the Ethereum oracle in tests
sug0 Oct 3, 2023
9d5b454
Add test_broadcast_valset_upd_inspite_oracle_off() unit test
sug0 Oct 3, 2023
2368969
Changelog for #1964
sug0 Oct 3, 2023
af011f6
fix error handling
yito88 Oct 9, 2023
66a7567
check if rate > 1 in lib code
brentstone Oct 11, 2023
78ccf42
Writes the result of a governance proposal in storage
grarco Oct 11, 2023
464d93a
Client first looks for governance proposal result in storage
grarco Oct 11, 2023
79c85cb
Changelog #1979
grarco Oct 11, 2023
17c3e6c
Separated an SDK crate out of the shared crate.
murisi Oct 11, 2023
f892ab4
Changes to enable better usage of the SDK in the absence of wallet or…
murisi Oct 12, 2023
94b2d4b
Added a change log entry.
murisi Oct 12, 2023
3cd3970
Merge branch 'murisi/sdk-refactor-rebased' (#1963)
murisi Oct 12, 2023
0c006ec
Add new SDK errors
sug0 Sep 26, 2023
abb6710
core/lazy_map+set: avoid calling delete when given key is not present
tzemanovic Oct 13, 2023
027a920
Phase out Halt and its cousins from the SDK
sug0 Sep 26, 2023
cff47a2
Remove halt abstraction from the SDK
sug0 Sep 27, 2023
e986bcf
Apply suggestions from code review
sug0 Sep 29, 2023
1831e8e
Internal macros SDK module
sug0 Oct 9, 2023
f338ae3
Echo SDK errors to stdout
sug0 Oct 9, 2023
af1fa0e
Changelog for #1953
sug0 Sep 28, 2023
79af00e
Implemented compounding inflation for native tokens.
murisi Oct 13, 2023
88a3961
Factor out submit_bridge_pool_tx()
sug0 Sep 28, 2023
5aeabd8
Factor out validate_bridge_pool_tx()
sug0 Sep 28, 2023
601ada8
Add new SDK error types
sug0 Sep 28, 2023
a025cfc
Check ERC20 token caps
sug0 Sep 28, 2023
3b3e6e9
Make ERC20 flow control fields public
sug0 Sep 28, 2023
3525f01
Validate Bridge pool client transfers
sug0 Sep 28, 2023
bbab1c4
Changelog for #1957
sug0 Sep 29, 2023
7ae503f
Merge branch 'tiago/phase-out-try-halt' (#1953)
sug0 Oct 13, 2023
bf3f7aa
Merge branch 'tiago/bp-client-validation' (#1957)
sug0 Oct 13, 2023
fb72c6e
Merge branch 'tiago/fix-protocol-txs' (#1964)
sug0 Oct 13, 2023
21c5e58
Merge branch 'tomas/k256' (#1958)
sug0 Oct 13, 2023
03b1856
Merge branch 'tiago/zeroize-secret-keys' (#1956)
sug0 Oct 13, 2023
2e95338
Merge branch 'tiago/update-borsh' (#1930)
sug0 Oct 13, 2023
672e153
changelog: add #1984
tzemanovic Oct 13, 2023
0bad247
update ibc-rs for ibc-rs/#911
yito88 Oct 13, 2023
6bb2bb0
add changelog
yito88 Oct 13, 2023
68b5704
SQUASHED redelegation
brentstone Jun 23, 2023
2e407e4
Replay protection column family and related methods in `DB` trait and…
grarco Oct 4, 2023
58b424e
Writes replay protection keys under separate storage root
grarco Oct 5, 2023
935e55f
Removes hacky solution for replay protection merkle tree
grarco Oct 5, 2023
61724b4
Renames replay protection storage key getter
grarco Oct 5, 2023
7caac7f
Removes replay protecion internal address and vp
grarco Oct 5, 2023
60f0014
Updates `DB` and `DBIter` traits for replay protection
grarco Oct 6, 2023
77dfccb
Refactors replay protection helper functions
grarco Oct 6, 2023
2eddc70
New field in `WriteLog` for replay protection changes
grarco Oct 6, 2023
daeae3e
Improves replay protection `WriteLog` API
grarco Oct 9, 2023
2661d86
Fixes unit tests
grarco Oct 9, 2023
b2ec6a3
Renames `finalize_tx_hashes`
grarco Oct 9, 2023
4a7ec74
Removes wrapper hash when committed inner tx
grarco Oct 10, 2023
1e06990
Writes only one hash at a time for replay protection
grarco Oct 10, 2023
37a6602
Fixes check for replay protection keys
grarco Oct 13, 2023
914b6f5
Reworks replay protection check
grarco Oct 13, 2023
673c99a
Removes useless checks on decrypted tx, error codes and unit tests
grarco Aug 28, 2023
39c9b43
Adds raw header signature in tests
grarco Aug 29, 2023
3dbd59a
Client signs the raw transaction header
grarco Aug 29, 2023
64a42d6
Merge branch 'brent/pos-redelegation' (#1612)
brentstone Oct 14, 2023
bf5ca7a
Mock ledger services in integration tests
sug0 Oct 6, 2023
aed3c8f
Improve reading flow of mock node service defs
sug0 Oct 16, 2023
9c69e4b
Changelog for #1976
sug0 Oct 16, 2023
a77cb5c
Expose replay protection methods from `WlStorage`
grarco Oct 16, 2023
4fca277
Changelog #1977
grarco Oct 11, 2023
d19e365
evil make: skip pos_state_machine_test in CI
tzemanovic Oct 16, 2023
d4fc717
evil bench/vps: credit source before bond tx
tzemanovic Oct 16, 2023
ed55676
evil test/e2e/slashing: fix flakiness
tzemanovic Oct 16, 2023
5218ec6
Merge branch 'brent/refactor-past-epoch-offsets' (#1943)
brentstone Oct 16, 2023
07af16f
Merge branch 'brent/tune-storage-past-epochs' (#1944)
brentstone Oct 16, 2023
296fde2
Merge branch 'tomas/rm-redundant-writes' (#1984)
brentstone Oct 16, 2023
bcd7557
remove dbg prints
tzemanovic Oct 17, 2023
ca1ebc2
Merge branch 'brent/pos-redelegation' (#1612)
tzemanovic Oct 17, 2023
c38d822
make: skip pos_state_machine_test in CI
tzemanovic Oct 16, 2023
efeebfd
bench/vps: credit source before bond tx
tzemanovic Oct 16, 2023
2075e8e
test/e2e/slashing: fix flakiness
tzemanovic Oct 16, 2023
a9964d6
Integrated PD controller support.
murisi Oct 16, 2023
b301581
Merge branch 'yuji/ibc-balance-query' (#1951)
yito88 Oct 17, 2023
b0f988f
evil: fix queries for new sdk
yito88 Oct 17, 2023
4262206
Merge branch 'yuji/ibc-shielded-actions' (#1917)
yito88 Oct 17, 2023
a5a82dc
evil: move GenIbcShieldedTransafer
yito88 Oct 17, 2023
9eb62e9
Merge branch 'yuji/fix-ibc-client-validation' (#1989)
yito88 Oct 18, 2023
c8f3a7d
PoS: comment out unused code
tzemanovic Oct 18, 2023
c273d0b
Merge branch 'brent/pos-redelegation' (#1612)
tzemanovic Oct 18, 2023
8bd09aa
Merge branch 'brent/refine-commission-tx' (#1973)
tzemanovic Oct 18, 2023
e4b415a
evil: moved PoS error type to sub-module
tzemanovic Oct 18, 2023
b2ed599
evil: sdk IO changes and missing arg deref
tzemanovic Oct 18, 2023
65751c2
Merge branch 'tomas/avoid-testing-feature-in-workspace' (#1955)
tzemanovic Oct 18, 2023
ce20a15
Increased the precision of MASP rewards.
murisi Oct 17, 2023
7eaf2f3
Merge branch 'tiago/int-test-services' (#1976)
Fraccaman Oct 18, 2023
d4da00b
Fixes pgf inflation
grarco Oct 18, 2023
ab20766
make token amounts in `RewardsController` of `Uint` type
brentstone Oct 18, 2023
2e58240
process_slashes: fix critical bug
brentstone Oct 19, 2023
37798a8
Merge branch 'brent/pos-redelegation' (#1612)
brentstone Oct 19, 2023
05fbe1f
Changelog #1999
grarco Oct 19, 2023
b6b376d
fix bug in SMv1 test
brentstone Oct 19, 2023
fce7325
Merge branch 'brent/pos-redelegation' (#1612)
brentstone Oct 19, 2023
7877a13
Implemented a mul_div operation for Uints and reduced overflow risks …
murisi Oct 20, 2023
2e3e640
Added changelog entry.
murisi Oct 20, 2023
8c14123
Merge branch 'murisi/compounding-rewards' (#1985)
murisi Oct 20, 2023
b4b0525
Merge branch 'aleks+murisi/ledger-test-vector-generator-fix-0.22.0' (…
murisi Oct 20, 2023
ed12b23
Merge branch 'grarco/proposal-result-in-storage' (#1979)
grarco Oct 20, 2023
cf1db81
evil: client from context in rpc
grarco Oct 20, 2023
329591a
Merge branch 'grarco/gas-in-sig-ver' (#1954)
grarco Oct 20, 2023
4dfa8bc
Merge branch 'grarco/replay-protection-storage' (#1977)
grarco Oct 20, 2023
454b3f6
evil: fixes missing test import and `dry_run` parameter
grarco Oct 20, 2023
738fb61
Merge branch 'grarco/fix-pgf-stewards-funding' (#1999)
grarco Oct 20, 2023
44633e2
Removes redundant signature on `Code` and `Data`
grarco Aug 30, 2023
ca14bfc
Fixes raw header hash in compressed signature
grarco Oct 23, 2023
c40cbc1
Changelog #1867
grarco Oct 12, 2023
f4b94dc
Merge branch 'grarco/fix-replay-protection' (#1867)
grarco Oct 23, 2023
7e01122
evil: updates calls to `raw_header_hash`
grarco Oct 23, 2023
b0e45ab
evil: updates lock files
grarco Oct 23, 2023
adbc185
Now re-export crates that may be needed to use the SDK.
murisi Oct 23, 2023
abc49d6
Added changelog entry.
murisi Oct 23, 2023
7f3fc5e
Reintroduced a dummy field in order to achieve compatability with har…
murisi Sep 27, 2023
696c8be
Added changelog entry.
murisi Sep 27, 2023
a27b984
Merge branch 'murisi/pow-solution-fix' (#1949)
murisi Oct 23, 2023
15f35b2
Merge branch 'murisi/sdk-re-exports' (#2033)
murisi Oct 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changelog/unreleased/SDK/1953-phase-out-try-halt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Phase out Halt abstractions
([\#1953](https://github.com/anoma/namada/pull/1953))
2 changes: 2 additions & 0 deletions .changelog/unreleased/SDK/1957-bp-client-validation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Validate Bridge pool transfers before submitting them to the network
([\#1957](https://github.com/anoma/namada/pull/1957))
2 changes: 2 additions & 0 deletions .changelog/unreleased/SDK/1963-sdk-refactor-rebased.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Improved the usability of the SDK and moved it to separate crate.
([\#1963](https://github.com/anoma/namada/pull/1963))
2 changes: 2 additions & 0 deletions .changelog/unreleased/SDK/2033-sdk-re-exports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Now re-exporting crates that will commonly be used with the SDK.
([\#2033](https://github.com/anoma/namada/pull/2033))
2 changes: 2 additions & 0 deletions .changelog/unreleased/bug-fixes/1949-pow-solution-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Reintroduced a dummy field in order to achieve compatibility with hardware
wallet. ([\#1949](https://github.com/anoma/namada/pull/1949))
2 changes: 2 additions & 0 deletions .changelog/unreleased/bug-fixes/1964-fix-protocol-txs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix broadcasting logic for protocol txs when a node operating the network is a
validator ([\#1964](https://github.com/anoma/namada/pull/1964))
4 changes: 4 additions & 0 deletions .changelog/unreleased/bug-fixes/1984-rm-redundant-writes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Avoid redundant storage deletions in lazy collections that would incur
extra gas cause and appear in transaction result as changed keys even if not
changed occurred. This may have caused PoS transactions to run out of gas.
([\#1984](https://github.com/anoma/namada/pull/1984))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Update ibc-rs with the fix for ibc-rs/#911
([\#1989](https://github.com/anoma/namada/issues/1989))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fixed the pgf stewards reward to be constant regardless of the number of
stewards. ([\#1999](https://github.com/anoma/namada/pull/1999))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Reworked the signature of inner transactions to improve safety and fix replay
protection. ([\#1867](https://github.com/anoma/namada/pull/1867))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Updated the generation of hardware wallet test vectors to cover current
codebase ([\#1888](https://github.com/anoma/namada/pull/1888))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- IBC transfer to a payment address
([\#1917](https://github.com/anoma/namada/issues/1917))
1 change: 1 addition & 0 deletions .changelog/unreleased/improvements/1930-update-borsh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Migrate to upstream borsh ([\#1930](https://github.com/anoma/namada/pull/1930))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Improve the Epoched data structure's bookkeeping of past
epochs, now parameterizable by PoS and governance params.
([\#1943](https://github.com/anoma/namada/pull/1943))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- New implementation and parameters for purging old epochs for Epoched validator
data in storage. ([\#1944](https://github.com/anoma/namada/pull/1944))
2 changes: 2 additions & 0 deletions .changelog/unreleased/improvements/1946-ibc-balance-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Query also IBC token balances
([\#1946](https://github.com/anoma/namada/issues/1946))
2 changes: 2 additions & 0 deletions .changelog/unreleased/improvements/1954-gas-in-sig-ver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Increased resoultion of gas accounting for signature verification.
([\#1954](https://github.com/anoma/namada/pull/1954))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Refactor benchmarks to avoid enabling `"testing`" and `"dev"`` features by
default in the workspace.
([\#1955](https://github.com/anoma/namada/pull/1955))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add missing checks for the commission rate change tx and code clean-up
([\#1973](https://github.com/anoma/namada/pull/1973))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Reduced the storage consumption of replay protection.
([\#1977](https://github.com/anoma/namada/pull/1977))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Persist the results of governance proposals in storage to allow recovering old
results. ([\#1979](https://github.com/anoma/namada/pull/1979))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- MASP rewards are now distributed in the manner dictated by the PD-controller
([\#1985](https://github.com/anoma/namada/pull/1985))
2 changes: 2 additions & 0 deletions .changelog/unreleased/miscellaneous/1958-k256.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Switched from using `libsecp256k1` to `k256` crate.
([\#1958](https://github.com/anoma/namada/pull/1958))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Tag `ed25519` keys with `ZeroizeOnDrop`
([\#1958](https://github.com/anoma/namada/pull/1958))
2 changes: 2 additions & 0 deletions .changelog/unreleased/testing/1976-int-test-services.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Mock ledger services in integration tests
([\#1976](https://github.com/anoma/namada/pull/1976))
Loading
Loading