Skip to content

Add utility pallet#29

Closed
flipchan wants to merge 3 commits intomainfrom
new_utils
Closed

Add utility pallet#29
flipchan wants to merge 3 commits intomainfrom
new_utils

Conversation

@flipchan
Copy link
Contributor

Add utility pallet to runtime

@flipchan
Copy link
Contributor Author

Could someone check this (poke @seunlanlege @Br1ght0ne )

@seunlanlege
Copy link
Contributor

why not just add as dependency?

@flipchan
Copy link
Contributor Author

@seunlanlege a notion page said to move it, could be simpler to just add is as a decencies to make the code base smaller, @scruffy-dev what do you think?

@flipchan
Copy link
Contributor Author

less maintenance with linking it, but more customisation if its included

timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.8", default-features = false }
transaction-payment = { package = "pallet-transaction-payment", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.8", default-features = false }
oracle = { package = "pallet-oracle", path = "../../frame/oracle", default-features = false }
utility = { package = "pallet-utility", path = "../../frame/utility", version = "0.1.0", default-features = false }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should get this from the substrate folder like timestamp, or transaction payment. There is no need to pull it in manually. This would reduce code and would be a safer form of handling it

TransactionPayment: transaction_payment::{Pallet, Storage},
Sudo: sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
Oracle: oracle::{Pallet, Call, Storage, Event<T>},
Utility: utility::{Pallet, Call, Event<T>},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the pallet config in here, does it compile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, just tried it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flipchan
Copy link
Contributor Author

code updated now linked from upstream parity substrate

@KaiserKarel
Copy link
Contributor

@flipchan could you take a look at the CI failure?

TransactionPayment: transaction_payment::{Pallet, Storage},
Sudo: sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
Oracle: oracle::{Pallet, Call, Storage, Event<T>},
Utility: utility::{Pallet, Call, Event<T>},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flipchan
Copy link
Contributor Author

added WeightInfo, need to add the Event :

Event {
    BatchInterrupted(u32, DispatchError),
    BatchCompleted,
}

@flipchan
Copy link
Contributor Author

adding event thing now

@seunlanlege
Copy link
Contributor

@flipchan any blockers on getting this merged?

@seunlanlege
Copy link
Contributor

Would be nice to get this merged, we still don't have a utility pallet.

@flipchan
Copy link
Contributor Author

flipchan commented Sep 3, 2021

Hey, so sorry, missed this issue completely

@flipchan
Copy link
Contributor Author

flipchan commented Sep 3, 2021

compiling here(with benchmarks): #68

@flipchan flipchan closed this Sep 3, 2021
@flipchan flipchan deleted the new_utils branch September 3, 2021 16:07
seunlanlege pushed a commit that referenced this pull request Sep 20, 2021
seunlanlege pushed a commit that referenced this pull request Oct 6, 2022
seunlanlege pushed a commit that referenced this pull request Oct 6, 2022
chain agnostic client updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants