Skip to content

Commit

Permalink
pallet treasury & asset-rate initial config (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrishoLukamba committed Aug 24, 2024
1 parent 5c869cf commit c12431c
Show file tree
Hide file tree
Showing 21 changed files with 1,420 additions and 27 deletions.
9 changes: 9 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ sp-state-machine = { version = "0.43.0", default-features = false }
sp-storage = { version = "21.0.0", default-features = false }
pallet-beefy-mmr = { version = "38.0.0", default-features = false }
pallet-assets = { version = "39.0.0", default-features = false }
pallet-treasury = { version = "36.0.0", default-features = false}
pallet-asset-rate = {version = "16.0.0", default-features = false}
pallet-collective = {version = "37.0.0", default-features = false}
frame-metadata-hash-extension = { default-features = false, version = "0.5.0" }
sp-keyring = "39.0.0"

Expand Down
15 changes: 10 additions & 5 deletions evm/abi/src/generated/evm_host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2720,7 +2720,8 @@ pub mod evm_host {
///Gets the contract's `GetRequestHandled` event
pub fn get_request_handled_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, GetRequestHandledFilter> {
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, GetRequestHandledFilter>
{
self.0.event()
}
///Gets the contract's `GetRequestTimeoutHandled` event
Expand All @@ -2742,7 +2743,8 @@ pub mod evm_host {
///Gets the contract's `HostParamsUpdated` event
pub fn host_params_updated_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, HostParamsUpdatedFilter> {
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, HostParamsUpdatedFilter>
{
self.0.event()
}
///Gets the contract's `HostWithdrawal` event
Expand All @@ -2760,7 +2762,8 @@ pub mod evm_host {
///Gets the contract's `PostRequestHandled` event
pub fn post_request_handled_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, PostRequestHandledFilter> {
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, PostRequestHandledFilter>
{
self.0.event()
}
///Gets the contract's `PostRequestTimeoutHandled` event
Expand All @@ -2776,13 +2779,15 @@ pub mod evm_host {
///Gets the contract's `PostResponseEvent` event
pub fn post_response_event_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, PostResponseEventFilter> {
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, PostResponseEventFilter>
{
self.0.event()
}
///Gets the contract's `PostResponseFunded` event
pub fn post_response_funded_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, PostResponseFundedFilter> {
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, PostResponseFundedFilter>
{
self.0.event()
}
///Gets the contract's `PostResponseHandled` event
Expand Down
6 changes: 4 additions & 2 deletions evm/abi/src/generated/ping_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,13 +713,15 @@ pub mod ping_module {
///Gets the contract's `GetTimeoutReceived` event
pub fn get_timeout_received_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, GetTimeoutReceivedFilter> {
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, GetTimeoutReceivedFilter>
{
self.0.event()
}
///Gets the contract's `MessageDispatched` event
pub fn message_dispatched_filter(
&self,
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, MessageDispatchedFilter> {
) -> ::ethers::contract::builders::Event<::std::sync::Arc<M>, M, MessageDispatchedFilter>
{
self.0.event()
}
///Gets the contract's `PostReceived` event
Expand Down
21 changes: 14 additions & 7 deletions modules/consensus/beefy/prover/src/runtime/paseo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ pub mod api {
pub fn pending_rewards(
&self,
who: ::subxt::utils::AccountId32,
) -> ::subxt::runtime_api::Payload<types::PendingRewards, ::core::primitive::u128> {
) -> ::subxt::runtime_api::Payload<types::PendingRewards, ::core::primitive::u128>
{
::subxt::runtime_api::Payload::new_static(
"NominationPoolsApi",
"pending_rewards",
Expand Down Expand Up @@ -2246,7 +2247,8 @@ pub mod api {
#[doc = " Get current GRANDPA authority set id."]
pub fn current_set_id(
&self,
) -> ::subxt::runtime_api::Payload<types::CurrentSetId, ::core::primitive::u64> {
) -> ::subxt::runtime_api::Payload<types::CurrentSetId, ::core::primitive::u64>
{
::subxt::runtime_api::Payload::new_static(
"GrandpaApi",
"current_set_id",
Expand Down Expand Up @@ -2683,7 +2685,8 @@ pub mod api {
pub fn account_nonce(
&self,
account: ::subxt::utils::AccountId32,
) -> ::subxt::runtime_api::Payload<types::AccountNonce, ::core::primitive::u32> {
) -> ::subxt::runtime_api::Payload<types::AccountNonce, ::core::primitive::u32>
{
::subxt::runtime_api::Payload::new_static(
"AccountNonceApi",
"account_nonce",
Expand Down Expand Up @@ -4395,7 +4398,8 @@ pub mod api {
#[doc = " The maximum length of a block (in bytes)."]
pub fn block_length(
&self,
) -> ::subxt::constants::Address<runtime_types::frame_system::limits::BlockLength> {
) -> ::subxt::constants::Address<runtime_types::frame_system::limits::BlockLength>
{
::subxt::constants::Address::new_static(
"System",
"BlockLength",
Expand Down Expand Up @@ -12685,7 +12689,8 @@ pub mod api {
#[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."]
pub fn proposal_bond_maximum(
&self,
) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> {
) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>>
{
::subxt::constants::Address::new_static(
"Treasury",
"ProposalBondMaximum",
Expand Down Expand Up @@ -18649,7 +18654,8 @@ pub mod api {
#[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."]
pub fn curator_deposit_max(
&self,
) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> {
) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>>
{
::subxt::constants::Address::new_static(
"Bounties",
"CuratorDepositMax",
Expand All @@ -18664,7 +18670,8 @@ pub mod api {
#[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."]
pub fn curator_deposit_min(
&self,
) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> {
) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>>
{
::subxt::constants::Address::new_static(
"Bounties",
"CuratorDepositMin",
Expand Down
9 changes: 6 additions & 3 deletions modules/utils/subxt/src/gargantua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ pub mod api {
&self,
included_hash: ::subxt::utils::H256,
slot: runtime_types::sp_consensus_slots::Slot,
) -> ::subxt::runtime_api::Payload<types::CanBuildUpon, ::core::primitive::bool> {
) -> ::subxt::runtime_api::Payload<types::CanBuildUpon, ::core::primitive::bool>
{
::subxt::runtime_api::Payload::new_static(
"AuraUnincludedSegmentApi",
"can_build_upon",
Expand Down Expand Up @@ -857,7 +858,8 @@ pub mod api {
pub fn account_nonce(
&self,
account: ::subxt::utils::AccountId32,
) -> ::subxt::runtime_api::Payload<types::AccountNonce, ::core::primitive::u32> {
) -> ::subxt::runtime_api::Payload<types::AccountNonce, ::core::primitive::u32>
{
::subxt::runtime_api::Payload::new_static(
"AccountNonceApi",
"account_nonce",
Expand Down Expand Up @@ -3371,7 +3373,8 @@ pub mod api {
#[doc = " The maximum length of a block (in bytes)."]
pub fn block_length(
&self,
) -> ::subxt::constants::Address<runtime_types::frame_system::limits::BlockLength> {
) -> ::subxt::constants::Address<runtime_types::frame_system::limits::BlockLength>
{
::subxt::constants::Address::new_static(
"System",
"BlockLength",
Expand Down
9 changes: 9 additions & 0 deletions parachain/runtimes/gargantua/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ pallet-timestamp = { workspace = true }
pallet-transaction-payment = { workspace = true }
pallet-transaction-payment-rpc-runtime-api = { workspace = true }
pallet-message-queue = { workspace = true }
pallet-treasury = { workspace = true}
pallet-asset-rate = { workspace = true}
pallet-collective = { workspace = true}
sp-api = { workspace = true }
sp-block-builder = { workspace = true }
sp-consensus-aura = { workspace = true }
Expand Down Expand Up @@ -130,6 +133,9 @@ std = [
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-xcm/std",
"pallet-treasury/std",
"pallet-asset-rate/std",
"pallet-collective/std",
"pallet-ismp/std",
"pallet-ismp-runtime-api/std",
"pallet-ismp-demo/std",
Expand Down Expand Up @@ -187,6 +193,9 @@ runtime-benchmarks = [
"pallet-timestamp/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
"pallet-collective/runtime-benchmarks",
"pallet-asset-rate/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"staging-xcm-builder/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
Expand Down
Loading

0 comments on commit c12431c

Please sign in to comment.