Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "stable-asset"]
path = ecosystem-modules/stable-asset
url = https://github.com/nutsfinance/stable-asset.git
[submodule "pint"]
path = ecosystem-modules/pint
url = https://github.com/ChainSafe/PINT.git
99 changes: 99 additions & 0 deletions Cargo.lock

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

12 changes: 11 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ members = [
"orml/nft",
"orml/oracle",
"orml/oracle/rpc",
"orml/oracle/rpc/runtime-api",
"orml/oracle/rpc/runtime-api",
"orml/rewards",
"orml/tokens",
"orml/traits",
Expand All @@ -47,6 +47,9 @@ members = [
"ecosystem-modules/compound-cash",
"ecosystem-modules/stable-asset/lib/stable-asset",
]
exclude = [
"ecosystem-modules/pint"
]

resolver = "2"

Expand Down Expand Up @@ -300,3 +303,10 @@ pallet-beefy = { git = "https://github.com/paritytech//grandpa-bridge-gadget", r
beefy-primitives = { git = "https://github.com/paritytech//grandpa-bridge-gadget", rev = "f40c0ab7b327e874d5c8d699bfa5d762f1759ee0" }
beefy-gadget = { git = "https://github.com/paritytech//grandpa-bridge-gadget", rev = "f40c0ab7b327e874d5c8d699bfa5d762f1759ee0" }
beefy-gadget-rpc = { git = "https://github.com/paritytech//grandpa-bridge-gadget", rev = "f40c0ab7b327e874d5c8d699bfa5d762f1759ee0" }

[patch."https://github.com/open-web3-stack/open-runtime-module-library"]
orml-currencies = { path = "./orml/currencies" }
orml-tokens = { path = "./orml/tokens" }
orml-xtokens = { path = "./orml/xtokens" }
orml-xcm-support = { path = "./orml/xcm-support" }
orml-traits = { path = "./orml/traits" }
1 change: 1 addition & 0 deletions ecosystem-modules/pint
Submodule pint added at 40d4ee
28 changes: 20 additions & 8 deletions node/service/src/chain_spec/mandala.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ fn testnet_genesis(
CollatorSelectionConfig, DexConfig, EVMConfig, EnabledTradingPairs, FinancialCouncilMembershipConfig,
GeneralCouncilMembershipConfig, HomaCouncilMembershipConfig, IndicesConfig, NativeTokenExistentialDeposit,
OperatorMembershipAcalaConfig, OperatorMembershipBandConfig, OrmlNFTConfig, ParachainInfoConfig, Period,
RenVmBridgeConfig, SessionConfig, SessionKeys, SessionManagerConfig, StakingPoolConfig, StarportConfig,
SudoConfig, SystemConfig, TechnicalCommitteeMembershipConfig, TokensConfig, VestingConfig, ACA, AUSD, DOT,
LDOT, RENBTC,
PintCommitteeConfig, RenVmBridgeConfig, SessionConfig, SessionKeys, SessionManagerConfig, StakingPoolConfig,
StarportConfig, SudoConfig, SystemConfig, TechnicalCommitteeMembershipConfig, TokensConfig, VestingConfig, ACA,
AUSD, DOT, LDOT, RENBTC,
};

let existential_deposit = NativeTokenExistentialDeposit::get();
Expand Down Expand Up @@ -366,7 +366,7 @@ fn testnet_genesis(
},
evm: EVMConfig {
accounts: evm_genesis_accounts,
treasury: root_key,
treasury: root_key.clone(),
},
staking_pool: StakingPoolConfig {
staking_pool_params: module_staking_pool::Params {
Expand Down Expand Up @@ -430,6 +430,12 @@ fn testnet_genesis(
aura: Default::default(),
aura_ext: Default::default(),
parachain_system: Default::default(),

// pint configs
pint_committee: PintCommitteeConfig {
council_members: vec![root_key],
..Default::default()
},
}
}

Expand All @@ -444,9 +450,9 @@ fn mandala_genesis(
CdpEngineConfig, CdpTreasuryConfig, CollatorSelectionConfig, DexConfig, EVMConfig, EnabledTradingPairs,
FinancialCouncilMembershipConfig, GeneralCouncilMembershipConfig, HomaCouncilMembershipConfig, IndicesConfig,
NativeTokenExistentialDeposit, OperatorMembershipAcalaConfig, OperatorMembershipBandConfig, OrmlNFTConfig,
ParachainInfoConfig, Period, RenVmBridgeConfig, SessionConfig, SessionKeys, SessionManagerConfig,
StakingPoolConfig, StarportConfig, SudoConfig, SystemConfig, TechnicalCommitteeMembershipConfig, TokensConfig,
VestingConfig, ACA, AUSD, DOT, LDOT, RENBTC,
ParachainInfoConfig, Period, PintCommitteeConfig, RenVmBridgeConfig, SessionConfig, SessionKeys,
SessionManagerConfig, StakingPoolConfig, StarportConfig, SudoConfig, SystemConfig,
TechnicalCommitteeMembershipConfig, TokensConfig, VestingConfig, ACA, AUSD, DOT, LDOT, RENBTC,
};

let existential_deposit = NativeTokenExistentialDeposit::get();
Expand Down Expand Up @@ -578,7 +584,7 @@ fn mandala_genesis(
},
evm: EVMConfig {
accounts: evm_genesis_accounts,
treasury: root_key,
treasury: root_key.clone(),
},
staking_pool: StakingPoolConfig {
staking_pool_params: module_staking_pool::Params {
Expand Down Expand Up @@ -659,5 +665,11 @@ fn mandala_genesis(
aura: Default::default(),
aura_ext: Default::default(),
parachain_system: Default::default(),

// pint configs
pint_committee: PintCommitteeConfig {
council_members: vec![root_key],
..Default::default()
},
}
}
1 change: 1 addition & 0 deletions primitives/src/currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ create_currency_id! {
// 150: Reserved for CASH
// 168 - 255: Kusama parachain tokens
BNC("Bifrost Native Token", 12) = 168,
PINT("PINT", 12) = 169,
}
}

Expand Down
1 change: 1 addition & 0 deletions runtime/karura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ parameter_type_with_key! {
TokenSymbol::LDOT |
TokenSymbol::RENBTC |
TokenSymbol::KAR |
TokenSymbol::PINT |
TokenSymbol::CASH => Balance::max_value() // unsupported
},
CurrencyId::DexShare(dex_share_0, _) => {
Expand Down
21 changes: 21 additions & 0 deletions runtime/mandala/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ ecosystem-starport = { path = "../../ecosystem-modules/starport", default-featur
ecosystem-compound-cash = { path = "../../ecosystem-modules/compound-cash", default-features = false }
chainbridge = { git = "https://github.com/AcalaNetwork/chainbridge-substrate", default-features = false }

pint-asset-index = { path = "../../ecosystem-modules/pint/pallets/asset-index", package = "pallet-asset-index", default-features = false }
pint-committee = { path = "../../ecosystem-modules/pint/pallets/committee", package = "pallet-committee", default-features = false }
pint-local-treasury = { path = "../../ecosystem-modules/pint/pallets/local-treasury", package = "pallet-local-treasury", default-features = false }
pint-price-feed = { path = "../../ecosystem-modules/pint/pallets/price-feed", package = "pallet-price-feed", default-features = false }
pint-saft-registry = { path = "../../ecosystem-modules/pint/pallets/saft-registry", package = "pallet-saft-registry", default-features = false }
pint-primitives = { path = "../../ecosystem-modules/pint/primitives/primitives", package = "primitives", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.9" }

Expand Down Expand Up @@ -266,6 +273,13 @@ std = [
"ecosystem-starport/std",
"ecosystem-compound-cash/std",
"chainbridge/std",

"pint-committee/std",
"pint-saft-registry/std",
"pint-asset-index/std",
"pint-local-treasury/std",
"pint-primitives/std",
"pint-price-feed/std"
]
runtime-benchmarks = [
"frame-benchmarking",
Expand All @@ -288,6 +302,13 @@ runtime-benchmarks = [
"module-homa-lite/runtime-benchmarks",

"sp-api/disable-logging",

"pint-committee/runtime-benchmarks",
"pint-saft-registry/runtime-benchmarks",
"pint-asset-index/runtime-benchmarks",
"pint-local-treasury/runtime-benchmarks",
"pint-price-feed/runtime-benchmarks",
"pint-primitives/runtime-benchmarks"
]
# When enabled, the runtime api will not be build.
#
Expand Down
Loading