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

Stardust ledger #977

Merged
Merged
Show file tree
Hide file tree
Changes from 84 commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
935ef3a
Changed variants of `ConflictReason`
thibault-martinez Jan 17, 2022
3cc1163
Stardust ledger start
thibault-martinez Jan 17, 2022
0f8a2a1
Fix compilation
thibault-martinez Jan 28, 2022
020aaa7
Use wildcards for invalid input/output types
thibault-martinez Jan 30, 2022
22167e8
Add alias_chain_constraint
thibault-martinez Jan 30, 2022
2a9f53c
Add unlock_foundry_output
thibault-martinez Jan 30, 2022
7d2ffb0
Add unlock_address
thibault-martinez Jan 30, 2022
d70fb10
HashMap -> Vec
thibault-martinez Jan 30, 2022
b3487f1
Complete unlock_address
thibault-martinez Jan 30, 2022
08358c7
check_input_unlock_conditions
thibault-martinez Jan 30, 2022
d78acdf
Fix timelock unlock condition
thibault-martinez Jan 31, 2022
18ced84
check_output_feature_blocks
thibault-martinez Jan 31, 2022
78eda23
Remove unlock block code duplication
thibault-martinez Jan 31, 2022
d326092
Explicit/Implicit AliasId/NftId
thibault-martinez Feb 3, 2022
3d7e7f0
Add Foundry to ChainId
thibault-martinez Feb 3, 2022
e7c198b
Fix compilation
thibault-martinez Feb 11, 2022
6dc3277
Add note to check inputs commitment
thibault-martinez Feb 11, 2022
8e699ac
Fix compilation
thibault-martinez Feb 21, 2022
99270c7
Fix compilation
thibault-martinez Feb 22, 2022
0ac987c
Improve unlock_alias_output
thibault-martinez Feb 22, 2022
83ac06d
Fix compilation
thibault-martinez Mar 7, 2022
9f2df62
Some ValidationContext changes
thibault-martinez Mar 7, 2022
1912dd0
Fmt
thibault-martinez Mar 9, 2022
2b7d440
Output::chain_id
thibault-martinez Mar 9, 2022
7951058
Set up output_chains
thibault-martinez Mar 9, 2022
66af39e
Set up input_chains
thibault-martinez Mar 9, 2022
ae4d632
Set up state transitions
thibault-martinez Mar 9, 2022
b474607
Move ValidationContext to bee-message
thibault-martinez Mar 9, 2022
13a01a9
Pass context to state transition
thibault-martinez Mar 10, 2022
1804743
Faillible state transitions
thibault-martinez Mar 10, 2022
1985077
Alias transition example
thibault-martinez Mar 10, 2022
7ee5f7a
ChainId::or_from_output_id
thibault-martinez Mar 10, 2022
756cce1
More state transition
thibault-martinez Mar 10, 2022
c79e754
Created foundries count consistency
thibault-martinez Mar 10, 2022
1df1960
Pubify associated consts
thibault-martinez Mar 10, 2022
438879d
Nit
thibault-martinez Mar 11, 2022
16ffdc3
Finish Foundry transition
thibault-martinez Mar 11, 2022
7037020
TIP
thibault-martinez Mar 11, 2022
b6d562b
Use ed25 PUBLIC_KEY_LENGTH constant
thibault-martinez Mar 12, 2022
ef67f10
Return correct error variant
thibault-martinez Mar 12, 2022
7cd0515
Nits
thibault-martinez Mar 13, 2022
1a6c20a
Move ConflictReason to semantic module of bee-message
thibault-martinez Mar 13, 2022
18c002b
Some Foundry nits
thibault-martinez Mar 13, 2022
b074ed9
Rework inputs validation
thibault-martinez Mar 13, 2022
b32e2ae
Actually implement Id::is_null
thibault-martinez Mar 13, 2022
e2d7d83
TIP
thibault-martinez Mar 13, 2022
d76bf24
Add Foundry::token_id method
thibault-martinez Mar 13, 2022
d02347c
Rename to treasury_transaction
thibault-martinez Mar 13, 2022
eba9f58
ReceiptPayload::treasury_transaction return actual type
thibault-martinez Mar 13, 2022
37ade84
TreasuryTransaction returns actual input/output types
thibault-martinez Mar 13, 2022
0d868f7
Fmt
thibault-martinez Mar 14, 2022
5384942
Replace N2 loop with hashset
thibault-martinez Mar 14, 2022
ea460c2
Inputs commitment check
thibault-martinez Mar 14, 2022
421fd84
Move signature validation from address module to signature module
thibault-martinez Mar 14, 2022
a64ef9e
Add issuer check
thibault-martinez Mar 14, 2022
8537902
Return error instead of panic
thibault-martinez Mar 14, 2022
8be9e6a
Add sender check
thibault-martinez Mar 14, 2022
8a39e40
Add timelock check
thibault-martinez Mar 14, 2022
b262510
Clean MilestoneEssence
thibault-martinez Mar 14, 2022
b6e33da
Check state_transition return
thibault-martinez Mar 14, 2022
056d9a8
Fix tests
thibault-martinez Mar 15, 2022
6beeec7
Setup locked addresses
thibault-martinez Mar 15, 2022
450ed32
Fix compilation
thibault-martinez Mar 15, 2022
dc5f2be
Fix Signature/Reference unlock
thibault-martinez Mar 15, 2022
d6b6fa4
Actually unlock Alias/NFT
thibault-martinez Mar 15, 2022
c8e0ad3
Add unlocked Alias/NFT to to the unlocked addresses
thibault-martinez Mar 15, 2022
c7e67db
Check created alias state index and foundry counter
thibault-martinez Mar 15, 2022
66e08a5
Move unlocks to bee-message
thibault-martinez Mar 16, 2022
fbd647b
Fix clippy
thibault-martinez Mar 16, 2022
30bf422
Fix docs
thibault-martinez Mar 16, 2022
d1af764
AliasId/NftId::or_from_output_id
thibault-martinez Mar 16, 2022
ae38b2b
Fmt
thibault-martinez Mar 16, 2022
66493e8
TIP
thibault-martinez Mar 17, 2022
d4b2961
Add StorageDepositReturnMismatch check
thibault-martinez Mar 17, 2022
4afbd9f
Address comments
thibault-martinez Mar 18, 2022
0d27f24
Fix clippy
thibault-martinez Mar 18, 2022
de27835
Merge branch 'shimmer-develop' into stardust-ledger
thibault-martinez Mar 18, 2022
ddfb1b0
Remove dead code
thibault-martinez Mar 21, 2022
cfca7b5
pub OutputAmount
thibault-martinez Mar 21, 2022
59e6822
Fix storage deposit return
thibault-martinez Mar 21, 2022
47af2c1
Nits
thibault-martinez Mar 21, 2022
4271a7a
Merge branch 'shimmer-develop' into stardust-ledger
thibault-martinez Mar 22, 2022
e89c126
Address some comments
thibault-martinez Mar 22, 2022
bc3a957
Fmt
thibault-martinez Mar 22, 2022
8fa814b
Address more comments
thibault-martinez Mar 24, 2022
09912f1
StateTransitionVerifier rename
thibault-martinez Mar 24, 2022
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
88 changes: 48 additions & 40 deletions Cargo.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ use crate::{
types::{dtos::LedgerInclusionStateDto, responses::MessageMetadataResponse},
};

use bee_message::{payload::Payload, MessageId};
use bee_message::{payload::Payload, semantic::ConflictReason, MessageId};
use bee_runtime::resource::ResourceHandle;
use bee_tangle::{ConflictReason, Tangle};
use bee_tangle::Tangle;

use warp::{filters::BoxedFilter, reject, Filter, Rejection, Reply};

Expand Down
Loading