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(v1.0.0): Remove pallet-airdrop #3276

Merged
merged 2 commits into from
Sep 15, 2023
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
32 changes: 0 additions & 32 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ gear-wasm-gen = { path = "utils/wasm-gen" }
gear-wasm-instrument = { path = "utils/wasm-instrument", default-features = false }
junit-common = { path = "utils/junit-common" }
actor-system-error = { path = "utils/actor-system-error" }
pallet-airdrop = { path = "pallets/airdrop", default-features = false }
pallet-gear = { path = "pallets/gear", default-features = false }
pallet-gear-debug = { path = "pallets/gear-debug", default-features = false }
pallet-gear-gas = { path = "pallets/gas", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion gsdk/src/metadata/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ macro_rules! export_module_error {
// pallets that don't have `Error` type.
//
// - pallet_transaction_payment
// - pallet_airdrop
//
// pallets that share the same `errors::RankedCollective`
//
Expand Down
97 changes: 0 additions & 97 deletions gsdk/src/metadata/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1000,73 +1000,6 @@ pub mod runtime_types {
}
}
}
pub mod pallet_airdrop {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains one variant per dispatchable that can be called by an extrinsic."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Transfer tokens from pre-funded `source` to `dest` account."]
#[doc = ""]
#[doc = "The origin must be the root."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `source`: the pre-funded account (i.e. root),"]
#[doc = "- `dest`: the beneficiary account,"]
#[doc = "- `amount`: the amount of tokens to be minted."]
#[doc = ""]
#[doc = "Emits the following events:"]
#[doc = "- `TokensDeposited{ dest, amount }`"]
transfer {
source: ::subxt::utils::AccountId32,
dest: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 1)]
#[doc = "Remove vesting for `source` account and transfer tokens to `dest` account."]
#[doc = ""]
#[doc = "The origin must be the root."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `source`: the account with vesting running,"]
#[doc = "- `dest`: the beneficiary account,"]
#[doc = "- `schedule_index`: the index of `VestingInfo` for source account."]
#[doc = "- `amount`: the amount to be unlocked and transferred from `VestingInfo`."]
#[doc = ""]
#[doc = "Emits the following events:"]
#[doc = "- `VestingScheduleRemoved{ who, schedule_index }`"]
transfer_vested {
source: ::subxt::utils::AccountId32,
dest: ::subxt::utils::AccountId32,
schedule_index: ::core::primitive::u32,
amount: ::core::option::Option<::core::primitive::u128>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Error for the airdrop pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Amount to being transferred is bigger than vested."]
AmountBigger,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"]
pub enum Event {
#[codec(index = 0)]
TokensDeposited {
account: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 1)]
VestingScheduleRemoved {
who: ::subxt::utils::AccountId32,
schedule_index: ::core::primitive::u32,
},
}
}
}
pub mod pallet_babe {
use super::runtime_types;
pub mod pallet {
Expand Down Expand Up @@ -9113,8 +9046,6 @@ pub mod runtime_types {
GearVoucher(runtime_types::pallet_gear_voucher::pallet::Call),
#[codec(index = 99)]
Sudo(runtime_types::pallet_sudo::pallet::Call),
#[codec(index = 198)]
Airdrop(runtime_types::pallet_airdrop::pallet::Call),
#[codec(index = 199)]
GearDebug(runtime_types::pallet_gear_debug::pallet::Call),
}
Expand Down Expand Up @@ -9182,8 +9113,6 @@ pub mod runtime_types {
GearVoucher(runtime_types::pallet_gear_voucher::pallet::Event),
#[codec(index = 99)]
Sudo(runtime_types::pallet_sudo::pallet::Event),
#[codec(index = 198)]
Airdrop(runtime_types::pallet_airdrop::pallet::Event),
#[codec(index = 199)]
GearDebug(runtime_types::pallet_gear_debug::pallet::Event),
}
Expand All @@ -9204,20 +9133,6 @@ pub mod calls {
#[doc = r" returns call name."]
fn call_name(&self) -> &'static str;
}
#[doc = "Calls of pallet `Airdrop`."]
pub enum AirdropCall {
Transfer,
TransferVested,
}
impl CallInfo for AirdropCall {
const PALLET: &'static str = "Airdrop";
fn call_name(&self) -> &'static str {
match self {
Self::Transfer => "transfer",
Self::TransferVested => "transfer_vested",
}
}
}
#[doc = "Calls of pallet `Babe`."]
pub enum BabeCall {
ReportEquivocation,
Expand Down Expand Up @@ -11061,15 +10976,6 @@ pub mod impls {
)?,
));
}
if pallet_name == "Airdrop" {
return Ok(Event::Airdrop(
crate::metadata::airdrop::Event::decode_with_metadata(
&mut &*pallet_bytes,
pallet_ty,
metadata,
)?,
));
}
if pallet_name == "GearDebug" {
return Ok(Event::GearDebug(
crate::metadata::gear_debug::Event::decode_with_metadata(
Expand Down Expand Up @@ -11179,9 +11085,6 @@ pub mod exports {
pub mod sudo {
pub use super::runtime_types::pallet_sudo::pallet::Event;
}
pub mod airdrop {
pub use super::runtime_types::pallet_airdrop::pallet::Event;
}
pub mod gear_debug {
pub use super::runtime_types::pallet_gear_debug::pallet::Event;
}
Expand Down
70 changes: 0 additions & 70 deletions pallets/airdrop/Cargo.toml

This file was deleted.

7 changes: 0 additions & 7 deletions pallets/airdrop/README.md

This file was deleted.

70 changes: 0 additions & 70 deletions pallets/airdrop/src/benchmarking.rs

This file was deleted.

Loading