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

chore: checked sub and add for all remaining pallet ops #889

Merged
merged 21 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions Cargo.lock

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

11 changes: 6 additions & 5 deletions client/evm-tracing/src/formatters/blockscout.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

use crate::{
listeners::call_list::Listener,
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/formatters/call_tracer.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.
#[allow(clippy::all)]
use super::blockscout::BlockscoutCallInner;
use crate::types::{
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/formatters/mod.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.
pub mod blockscout;
pub mod call_tracer;
pub mod raw;
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/formatters/raw.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

use crate::{listeners::raw::Listener, types::single::TransactionTrace};

Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/formatters/trace_filter.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

use super::blockscout::BlockscoutCallInner as CallInner;
use crate::{
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

//! This crate contains the client-side part that interacts with our "v2" tracing design.
#![allow(clippy::all)]
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/listeners/call_list.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

use crate::{
formatters::blockscout::{BlockscoutCall as Call, BlockscoutCallInner as CallInner},
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/listeners/mod.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

pub mod call_list;
pub mod raw;
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/listeners/raw.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

use ethereum_types::{H160, H256};
use std::{collections::btree_map::BTreeMap, vec, vec::Vec};
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/types/block.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

//! Types for tracing all Ethereum transactions of a block.

Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/types/mod.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

//! Runtime API allowing to debug/trace Ethereum
#![allow(clippy::all)]
Expand Down
11 changes: 6 additions & 5 deletions client/evm-tracing/src/types/serialization.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

//! Provide serialization functions for various types and formats.

Expand Down
12 changes: 6 additions & 6 deletions client/evm-tracing/src/types/single.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

//! Types for the tracing of a single Ethereum transaction.
//! Structure from "raw" debug_trace and a "call list" matching
Expand Down Expand Up @@ -68,7 +69,6 @@ pub struct RawStepLog {
#[serde(serialize_with = "u256_serialize")]
pub depth: U256,

//error: TODO
#[serde(serialize_with = "u256_serialize")]
pub gas: U256,

Expand Down
11 changes: 6 additions & 5 deletions client/rpc-core/debug/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

use client_evm_tracing::types::single;
use ethereum::AccessListItem;
Expand Down
11 changes: 6 additions & 5 deletions client/rpc-core/trace/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// Copyright 2019-2022 PureStake Inc.
// This file is part of Moonbeam.
// Copyright 2022-2025 Tangle Foundation.
// This file is part of Tangle.
// This file originated in Moonbeam's codebase.

// Moonbeam is free software: you can redistribute it and/or modify
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Moonbeam is distributed in the hope that it will be useful,
// Tangle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
// along with Tangle. If not, see <http://www.gnu.org/licenses/>.

use client_evm_tracing::types::block::TransactionTrace;
use ethereum_types::H160;
Expand Down
Loading
Loading