Skip to content

Commit

Permalink
279 update the foucoco genesis configuration to latest on chain values (
Browse files Browse the repository at this point in the history
#282)

* Changed fee pallet configuration in chain_spec.

* Changed oracle pallet configuration in chain_spec.

* Changed oracle pallet configuration in chain_spec. Added Native currency.

* Changed diaOracleModule pallet configuration in chain_spec.

* Changed issue pallet configuration in chain_spec.

* Changed redeem pallet configuration in chain_spec.

* Changed replace pallet configuration in chain_spec.

* Changed vault_registry pallet configuration in chain_spec.

* Improved code format.

* Fixed some misconfigurations.

* Added premium redeem factor, and fixed liquidation factor

* Refactored offchain worker price feeder account generation.

* Code formated

* Fixed some issues

* Improved code format

* Changed currencies names.

* Separated amplitude and foucoco constants into a separate file, called amplitude.rs.

* improved format

* Fixed supported currencies blockchain names.

* Added system collateral ceiling for more currencies.

* Removed CurrencyId::Native from minimum_collateral_vault vec.

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

* Replaced TESTNET_STELLAR_CURRENCY_ID constant

* Refactored constants names. Added Mainnet issuers.

* Added comment explaining how many days max_delay represents.

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

* Updated spacewalk dependencies

* Deleted unnecessary constant. Removed unused function

* Fixed code format

* Reset spec_version and transaction_version back to 1

* Renamed spec_name and impl_name from 'amplitude' to 'foucoco'

* Added INITIAL_FOUCOCO_VALIDATORS constant. This constant is passed in chain_spec as the invulnerables (collators) for the foucoco config.

* Deleted XCM(1) tokens from the initial balance.

* Added COLLATOR_ADDITIONAL constant.

* Fixed code format

* Removed unnecessary imports

* Change signatories of Foucoco chain spec

* Add new Foucoco chain spec

* Change relay chain in Foucoco chain spec

---------

Co-authored-by: Marcel Ebert <[email protected]>
Co-authored-by: Torsten Stüber <[email protected]>
  • Loading branch information
3 people authored Jul 24, 2023
1 parent 43f0990 commit 597053d
Show file tree
Hide file tree
Showing 19 changed files with 4,057 additions and 812 deletions.
795 changes: 419 additions & 376 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ For the raw chain spec, just add the option `--raw` and the `--chain` should be
### How to Generate Wasm:

```
/target/release/pendulum-node export-genesis-wasm --chain local-parachain-raw.json > para-2000-wasm
./target/release/pendulum-node export-genesis-wasm --chain local-parachain-raw.json > para-2000-wasm
```

### How to Generate Genesis State:
Expand Down
12 changes: 6 additions & 6 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ codec = { package = "parity-scale-codec", version = "3.0.0" }
serde = { version = "1.0.145", features = ["derive"] }
jsonrpsee = { version = "0.16.2", features = ["server"] }

module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}
module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}
module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}
module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}
module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}

spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}

# Local
amplitude-runtime = {path = "../runtime/amplitude"}
Expand Down
Loading

0 comments on commit 597053d

Please sign in to comment.