Skip to content
Unverified Commit 79dba808 authored by Ron's avatar Ron Committed by GitHub
Browse files

Update constant fee for InboundMessage (#970)



* Support reserve deposit for control operations

* Pay as agent_owner

* Add AgentAccountDescription converter

* Revamp smoke test config fee for control operations

* Add SovereignAccountOf to runtime config

* Fix format

* More refactor

* Configurable base fee plus static per-operation fee multiplier

* Update smoke test accordingly

* Update cumulus

* Fix format

* Remove call index from the cross-chain interface

* Update test fixture

* Fix format

* Configurable dispatch_gas

* Update relayer

* Refactor to charge fee for outbound commands

* More refactor

* Update cargo.lock

* Chore

* Fix clippy

* Chore format

* Update cumulus

* Reward message relayer

* Fix smoke tests

* Set default dispatch gas

* Fix for origin of control operations & Charge fee without gas cost

* Update parachain/pallets/outbound-queue/src/lib.rs

Co-authored-by: default avatarVincent Geddes <[email protected]>

* Update parachain/pallets/outbound-queue/src/lib.rs

Co-authored-by: default avatarVincent Geddes <[email protected]>

* Specify the fee for xcm export & upfront charge for create_agent only

* Remove deprecated config

* Fix format

* Set decent default for outbound configs

* Make create-channel upfront charged & start template relayer for other non-charged control commands like TransferNativeFromAgent

* Disable base fee for sudo operations

* Update gas cost

* Fix cargo tarpaulin

* Update RegisterCallIndex as runtime const

* Fix cargo tarpaulin

* Update cumulus

* Update cumulus

* Add OutboundFeeConfig

* Fund template sovereign account

* Rename as agent_location

* Fix clippy

* Validate ticket with gas check

* Move the charge logic to control pallet & More refactor

* Fix clippy

* Disable format temporarily for less distraction

* Refactor estimate by message

* More refactor

* Fix clippy

* Introduce VersionedMessageToXcmConverter

* Fix clippy

* More cleanup

* Fix test & Remove format

* Add estimate rpc

* Estimate by command index & Add smoke test accordingly

* Fix upgrade test

* Initialize with more funds & Add script for fund

* Update contracts/test/Gateway.t.sol

Co-authored-by: default avatarClara van Staden <[email protected]>

* Rename event as OutboundFeeConfigUpdated

* For comment

* Chore

* Refactor with structured OriginInfo

* Clean derive macros

* Leave enough space for upgrade

* Runtime api for compute_fee_reward

* Use TreasuryAccount more specific

* Improve comments

* Improve smoke test

* Update smoketest/src/helper.rs

Co-authored-by: default avatarClara van Staden <[email protected]>

* Update smoketest/src/helper.rs

Co-authored-by: default avatarClara van Staden <[email protected]>

* Some cleanup

* Update cumulus

* Test for fee with config changed

* A thin shell wrapper funding agent

* More tests

* foo

* foo

* fix tests

* compilation works

* Update cumulus

* improve benchmarks

* fix benchmarks

* update cumulus

* fix clippy errors

* Update Cargo.lock

* update cumulus

* Remove obsolete fee estimation code

* Use full polkadot repository URL in Cargo.toml

* Update cumulus fix for smoke test

* Fix format

* Introduce VersionedMessageToXcmConverter

* Fix xcm instruction

* Chore

* remove relayers for template node

* Improve the implementation of the control pallet

* fix broken bindings generator for smoketests

* update cumulus submodule

* Update benchmarks

* Fix clippy

* Cleanup

* Revert "remove relayers for template node"

This reverts commit 2a9633ba2f688021a7bb59f95d7d48fbf20c302f.

* Fix agent id

* Update inbound MessageConverter

* Update for ConstantFeeForInboundMessage

* Add runtime api for generating agent ids

* Improve benchmarking code

* Fix for smoke test to create agent

* Update cumulus

* mark some config items as pallet constants

* Some polish

* Polish

* Minor improvements to reward logic in Gateway

* Improve Gateway tests

* update cumulus submodule

* Improve test for xcm convert

* Fix convert

* Add CreateAssetExecutionFee as runtime config

* Rename field as command

* Update cumulus

---------

Co-authored-by: default avatarVincent Geddes <[email protected]>
Co-authored-by: default avatarClara van Staden <[email protected]>
Co-authored-by: default avatarVincent Geddes <[email protected]>
parent 08ff3d63
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment