Skip to content

Commit

Permalink
AMM RPC endpoints for UI integration (#220)
Browse files Browse the repository at this point in the history
* add bifrost-farming and bifrost-farming-rpc-runtime-api dependency

* introduce T::CurrencyId to bifrost farming pallet

* add farming runtime rpc to foucoco

* Update runtime/foucoco/src/lib.rs

Co-authored-by: Marcel Ebert <[email protected]>

* fix build in foucoco runtime with FoucocoTreasuryAccount

* add patch for git and crates io

* update pr according to request changes in PR

#208

* Add farming rpc api intou pendulum node for foucoco runtime (#216)

add farming rpc api for foucoco

* move PoolId type declaration to runtime common

* renaming

create_full_spacewalk_foucoco -> create_full_foucoco
create_full_spacewalk -> create_full_amplitude
create_full -> create_full_pendulum

* replace "introduce-abstraction-for-currency-id" to "polkadot-v0.9.37"

* Update runtime/common/src/lib.rs

Co-authored-by: Marcel Ebert <[email protected]>

* renaming 

start_node_impl() -> start_node_impl_pendulum()
start_node_impl_spacewalk_foucoco() -> start_node_impl_foucoco()
start_node_impl_spacewalk_amplitude() -> start_node_impl_amplitude()

* expose zenlink runtime rpc endpoints in pendulum-node

* Merge main into zenlink rpc branch (#223)

207 implement lp rewards on amm (#208)

* add bifrost-farming and bifrost-farming-rpc-runtime-api dependency

* introduce T::CurrencyId to bifrost farming pallet

* add farming runtime rpc to foucoco

* Update runtime/foucoco/src/lib.rs



* fix build in foucoco runtime with FoucocoTreasuryAccount

* add patch for git and crates io

* update pr according to request changes in PR

#208

* Add farming rpc api intou pendulum node for foucoco runtime (#216)

add farming rpc api for foucoco

* move PoolId type declaration to runtime common

* renaming

create_full_spacewalk_foucoco -> create_full_foucoco
create_full_spacewalk -> create_full_amplitude
create_full -> create_full_pendulum

* replace "introduce-abstraction-for-currency-id" to "polkadot-v0.9.37"

* Update runtime/common/src/lib.rs



* renaming 

start_node_impl() -> start_node_impl_pendulum()
start_node_impl_spacewalk_foucoco() -> start_node_impl_foucoco()
start_node_impl_spacewalk_amplitude() -> start_node_impl_amplitude()

---------

Co-authored-by: Marcel Ebert <[email protected]>

* remove duplicates in foucoco cargo toml

* remove duplication

C::Api: ZenlinkProtocolRuntimeApi<Block, AccountId, AssetId>,

* remove unnecessary clone for TransactionPayment instance

---------

Co-authored-by: Marcel Ebert <[email protected]>
  • Loading branch information
RustNinja and ebma authored Apr 24, 2023
1 parent f4e73ba commit ebd6e55
Show file tree
Hide file tree
Showing 9 changed files with 348 additions and 70 deletions.
115 changes: 60 additions & 55 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ orml-traits = { git = "https://github.com/open-web3-stack//open-runtime-module-l
orml-traits = { git = "https://github.com/open-web3-stack//open-runtime-module-library", branch = "polkadot-v0.9.37" }
orml-currencies = { git = "https://github.com/open-web3-stack//open-runtime-module-library", branch = "polkadot-v0.9.37" }
orml-tokens = { git = "https://github.com/open-web3-stack//open-runtime-module-library", branch = "polkadot-v0.9.37" }
zenlink-protocol = { git = "https://github.com/zenlinkpro//Zenlink-DEX-Module", branch = "polkadot-v0.9.37" }
zenlink-protocol-runtime-api = { git = "https://github.com/zenlinkpro//Zenlink-DEX-Module", branch = "polkadot-v0.9.37" }
zenlink-protocol = { git = "https://github.com/pendulum-chain/Zenlink-DEX-Module", branch = "polkadot-v0.9.37" }
zenlink-protocol-runtime-api = { git = "https://github.com/pendulum-chain/Zenlink-DEX-Module", branch = "polkadot-v0.9.37" }
4 changes: 4 additions & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ cumulus-relay-chain-minimal-node = { git = "https://github.com/paritytech/cumulu
bifrost-farming-rpc-api = { git = "https://github.com/pendulum-chain/bifrost", branch = "polkadot-v0.9.37" }
bifrost-farming-rpc-runtime-api = { git = "https://github.com/pendulum-chain/bifrost", branch = "polkadot-v0.9.37" }

zenlink-protocol = { git = "https://github.com/pendulum-chain/Zenlink-DEX-Module", branch = "polkadot-v0.9.37" }
zenlink-protocol-rpc = { git = "https://github.com/pendulum-chain/Zenlink-DEX-Module", branch = "polkadot-v0.9.37" }
zenlink-protocol-runtime-api = { git = "https://github.com/pendulum-chain/Zenlink-DEX-Module", branch = "polkadot-v0.9.37" }

[build-dependencies]
substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }

Expand Down
4 changes: 2 additions & 2 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ pub fn run() -> Result<()> {
sp_core::crypto::set_default_ss58_version(
pendulum_runtime::SS58Prefix::get().into(),
);
crate::service::start_parachain_node::<pendulum_runtime::RuntimeApi, PendulumRuntimeExecutor>(
crate::service::start_parachain_node_pendulum::<pendulum_runtime::RuntimeApi, PendulumRuntimeExecutor>(
config,
polkadot_config,
collator_options,
Expand All @@ -468,7 +468,7 @@ pub fn run() -> Result<()> {
.map_err(Into::into)
},

ChainIdentity::Development => crate::service::start_parachain_node::<development_runtime::RuntimeApi, DevelopmentRuntimeExecutor>(
ChainIdentity::Development => crate::service::start_parachain_node_development::<development_runtime::RuntimeApi, DevelopmentRuntimeExecutor>(
config,
polkadot_config,
collator_options,
Expand Down
Loading

0 comments on commit ebd6e55

Please sign in to comment.